From 43fd38729c1a2607932c39143a3044a8526ea4d8 Mon Sep 17 00:00:00 2001 From: Josuah Demangeon Date: Fri, 18 Aug 2023 11:06:31 +0200 Subject: [PATCH] tools/litex_json2dts_zephyr: add mapped SPI flash for XIP support 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 https://github.com/litex-hub/zephyr-on-litex-vexriscv/pull/13 --- litex/tools/litex_json2dts_zephyr.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/litex/tools/litex_json2dts_zephyr.py b/litex/tools/litex_json2dts_zephyr.py index 485fe9aefa..086a06c169 100755 --- a/litex/tools/litex_json2dts_zephyr.py +++ b/litex/tools/litex_json2dts_zephyr.py @@ -208,9 +208,9 @@ def peripheral_handler(name, parm, csr): 'config_entry': 'ETH_LITEETH' }, 'spiflash': { - 'handler': peripheral_handler, - 'alias': 'spi0', - 'config_entry': 'SPI_LITESPI' + 'handler': ram_handler, + 'alias': 'flash0', + 'config_entry': 'XIP' }, 'sdcard_block2mem': { 'handler': peripheral_handler,