soc: arm: st_stm32: add support for STM32 backup SRAM
Add support for backup SRAM initialization found in multiple STM32 microcontrollers. Linker script facilities are also provided to make it easy to define variables in the backup SRAM. Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
This commit is contained in:
parent
1e9abde45e
commit
10532a5310
8 changed files with 113 additions and 0 deletions
|
@ -131,6 +131,9 @@ MEMORY
|
|||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(sdram2), okay)
|
||||
SDRAM2 (rw) : ORIGIN = DT_REG_ADDR(DT_NODELABEL(sdram2)), LENGTH = DT_REG_SIZE(DT_NODELABEL(sdram2))
|
||||
#endif
|
||||
#endif
|
||||
#ifdef CONFIG_STM32_BACKUP_SRAM
|
||||
BACKUP_SRAM (rw) : ORIGIN = DT_REG_ADDR(DT_NODELABEL(backup_sram)), LENGTH = DT_REG_SIZE(DT_NODELABEL(backup_sram))
|
||||
#endif
|
||||
/* Used by and documented in include/linker/intlist.ld */
|
||||
IDT_LIST (wx) : ORIGIN = (RAM_ADDR + RAM_SIZE), LENGTH = 2K
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue