arch: riscv: linker: do not require jedec,spi-nor to be 'okay'
It is not always possible to enable the jedec,spi-nor driver (e.g. because the SPI controller can't be enabled). This is the case for HiFive boards. Still, DT can be used for hardware description. Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
parent
e0c647c147
commit
1e2dbf075d
|
@ -40,7 +40,7 @@
|
|||
#define ROM_BASE DT_REG_ADDR(DT_CHOSEN(zephyr_flash))
|
||||
#endif /* CONFIG_FLASH_LOAD_OFFSET */
|
||||
#define ROM_SIZE DT_REG_SIZE(DT_CHOSEN(zephyr_flash))
|
||||
#elif DT_NODE_HAS_COMPAT_STATUS(DT_CHOSEN(zephyr_flash), jedec_spi_nor, okay)
|
||||
#elif DT_NODE_HAS_COMPAT(DT_CHOSEN(zephyr_flash), jedec_spi_nor)
|
||||
/* For jedec,spi-nor we expect the spi controller to memory map the flash
|
||||
* and for that mapping to be the second register property of the spi
|
||||
* controller.
|
||||
|
|
Loading…
Reference in a new issue