linker: stm32wb: move IPC RAM definition to DT
Move the definition of the two IPC RAM blocks from `#define`'s in family linker scripts to proper devicetree nodes. Use the devicetree nodes to generate the memory regions. Signed-off-by: Jordan Yates <jordan.yates@data61.csiro.au>
This commit is contained in:
parent
ddc25b4bdf
commit
a4150c0483
3 changed files with 13 additions and 9 deletions
|
@ -102,10 +102,9 @@ MEMORY
|
|||
DT_REGION_FROM_NODE_STATUS_OKAY(DTCM, rw, DT_CHOSEN(zephyr_dtcm))
|
||||
/* STM32 Core Coupled Memory */
|
||||
DT_REGION_FROM_NODE_STATUS_OKAY(CCM, rw, DT_CHOSEN(zephyr_ccm))
|
||||
#ifdef CONFIG_BT_STM32_IPM
|
||||
SRAM1 (rw) : ORIGIN = RAM1_ADDR, LENGTH = RAM1_SIZE
|
||||
SRAM2 (rw) : ORIGIN = RAM2_ADDR, LENGTH = RAM2_SIZE
|
||||
#endif
|
||||
/* STM32WB IPC RAM */
|
||||
DT_REGION_FROM_NODE_STATUS_OKAY(SRAM1, rw, DT_NODELABEL(sram1))
|
||||
DT_REGION_FROM_NODE_STATUS_OKAY(SRAM2, rw, DT_NODELABEL(sram2))
|
||||
/* STM32 alternate RAM configurations */
|
||||
DT_REGION_FROM_NODE_STATUS_OKAY(SDRAM1, rw, DT_NODELABEL(sdram1))
|
||||
DT_REGION_FROM_NODE_STATUS_OKAY(SDRAM2, rw, DT_NODELABEL(sdram2))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue