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:
Gerard Marull-Paretas 2021-01-27 13:20:29 +01:00 committed by Anas Nashif
commit 10532a5310
8 changed files with 113 additions and 0 deletions

View file

@ -61,6 +61,8 @@
#define _STM32_SDRAM1_SECTION_NAME .stm32_sdram1
#define _STM32_SDRAM2_SECTION_NAME .stm32_sdram2
#define _STM32_BACKUP_SRAM_SECTION_NAME .stm32_backup_sram
#ifdef CONFIG_NOCACHE_MEMORY
#define _NOCACHE_SECTION_NAME nocache
#endif