Skip to content

Commit

Permalink
tools/litex_json2dts_zephyr: add mapped SPI flash for XIP support
Browse files Browse the repository at this point in the history
This allows to execute a firmware loaded in the SPI flash.

No support for partitions yet: this does not yet support cohabitating the
bitstream and firmware yet, so the bitstream has to be loaded to CRAM
directly for now (default for --load).

This allows loading larger Zephyr examples, and was required to fit
the shell on the Crosslink-NX board.

See litex-hub/zephyr-on-litex-vexriscv#13
  • Loading branch information
josuah committed Sep 2, 2023
1 parent 8853215 commit 46ed967
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions litex/tools/litex_json2dts_zephyr.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,11 +207,6 @@ def peripheral_handler(name, parm, csr):
'alias': 'eth0',
'config_entry': 'ETH_LITEETH'
},
'spiflash': {
'handler': peripheral_handler,
'alias': 'spi0',
'config_entry': 'SPI_LITESPI'
},
'sdcard_block2mem': {
'handler': peripheral_handler,
'alias': 'sdcard_block2mem',
Expand Down Expand Up @@ -263,6 +258,11 @@ def peripheral_handler(name, parm, csr):
'handler': ram_handler,
'alias': 'ram0',
},
'spiflash': {
'handler': ram_handler,
'alias': 'flash0',
'config_entry': 'XIP'
},
'identifier_mem': {
'handler': peripheral_handler,
'alias': 'dna0',
Expand Down

0 comments on commit 46ed967

Please sign in to comment.