Skip to content

Commit 00d050a

Browse files
henrikbrixandersentpambor
authored andcommitted
soc: st: stm32: allow configuration of Backup SRAM initialization priority
Add CONFIG_STM32_BACKUP_SRAM_INIT_PRIORITY for configuring the initialization priority of the STM32 Backup SRAM driver. Signed-off-by: Henrik Brix Andersen <[email protected]>
1 parent 3ecaf52 commit 00d050a

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

soc/st/stm32/Kconfig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,13 @@ config STM32_BACKUP_SRAM
3131
help
3232
Enable support for STM32 backup SRAM.
3333

34+
config STM32_BACKUP_SRAM_INIT_PRIORITY
35+
int "STM32 Backup SRAM init priority"
36+
default APPLICATION_INIT_PRIORITY
37+
depends on STM32_BACKUP_SRAM
38+
help
39+
STM32 Backup SRAM device initialization priority.
40+
3441
config STM32_ENABLE_DEBUG_SLEEP_STOP
3542
bool "Allow debugger attach in stop/sleep Mode"
3643
help

soc/st/stm32/common/stm32_backup_sram.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,4 @@ static const struct stm32_backup_sram_config config = {
5959
};
6060

6161
DEVICE_DT_INST_DEFINE(0, stm32_backup_sram_init, NULL, NULL, &config,
62-
POST_KERNEL, CONFIG_APPLICATION_INIT_PRIORITY, NULL);
62+
POST_KERNEL, CONFIG_STM32_BACKUP_SRAM_INIT_PRIORITY, NULL);

0 commit comments

Comments
 (0)