devicetree: Remove DT_SRAM_{BASE_ADDRESS,SIZE}, use CONFIG_* versions
The SRAM address and size are currently available as both DT_SRAM_{BASE_ADDRESS,SIZE} and as CONFIG_SRAM_{BASE_ADDRESS,SIZE} (via the Kconfig preprocessor). Use the CONFIG_SRAM_* versions everywhere, and remove generation of the DT_SRAM_* versions from gen_defines.py. The Kconfig symbols currently depend on 'ARC || ARM || NIOS2 || X86'. Not sure why, so I removed it. It looks like no configuration files set CONFIG_SRAM_* at the moment, so another option might be to use the DT_* symbols everywhere instead. Some Kconfig.defconfig.series files add defaults to them though. Also improve the help texts for CONFIG_SRAM_* to say that they normally come from devicetree rather than configuration files. Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
This commit is contained in:
parent
1c9942461d
commit
def1f0e2d5
9 changed files with 22 additions and 23 deletions
|
@ -35,7 +35,7 @@ MEMORY
|
|||
#ifdef CONFIG_XIP
|
||||
ROM (rx) : ORIGIN = DT_FLASH_BASE_ADDRESS, LENGTH = KB(DT_FLASH_SIZE)
|
||||
#endif
|
||||
RAM (rwx) : ORIGIN = DT_SRAM_BASE_ADDRESS, LENGTH = KB(DT_SRAM_SIZE)
|
||||
RAM (rwx) : ORIGIN = CONFIG_SRAM_BASE_ADDRESS, LENGTH = KB(CONFIG_SRAM_SIZE)
|
||||
/* Used by and documented in include/linker/intlist.ld */
|
||||
IDT_LIST (wx) : ORIGIN = 0xFFFFF7FF, LENGTH = 2K
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue