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
|
@ -12,8 +12,8 @@
|
|||
#define DT_UART_NS16550_PORT_0_IRQ_FLAGS DT_NS16550_80800_IRQ_0_SENSE
|
||||
#define DT_UART_NS16550_PORT_0_CLK_FREQ DT_NS16550_80800_CLOCK_FREQUENCY
|
||||
|
||||
#define DT_L2_SRAM_BASE DT_SRAM_BASE_ADDRESS
|
||||
#define DT_L2_SRAM_SIZE DT_SRAM_SIZE * 1024
|
||||
#define DT_L2_SRAM_BASE CONFIG_SRAM_BASE_ADDRESS
|
||||
#define DT_L2_SRAM_SIZE CONFIG_SRAM_SIZE * 1024
|
||||
|
||||
#define DT_LP_SRAM_BASE DT_INST_1_MMIO_SRAM_BASE_ADDRESS
|
||||
#define DT_LP_SRAM_SIZE DT_INST_1_MMIO_SRAM_SIZE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue