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
|
@ -33,6 +33,7 @@
|
|||
#define __imx_boot_dcd_section Z_GENERIC_SECTION(_IMX_BOOT_DCD_SECTION_NAME)
|
||||
#define __stm32_sdram1_section Z_GENERIC_SECTION(_STM32_SDRAM1_SECTION_NAME)
|
||||
#define __stm32_sdram2_section Z_GENERIC_SECTION(_STM32_SDRAM2_SECTION_NAME)
|
||||
#define __stm32_backup_sram_section Z_GENERIC_SECTION(_STM32_BACKUP_SRAM_SECTION_NAME)
|
||||
#endif /* CONFIG_ARM */
|
||||
|
||||
#if defined(CONFIG_NOCACHE_MEMORY)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue