zephyr/drivers/bbram/Kconfig.stm32
Johan Lafon a63bb6317c drivers: rtc: stm32: allow new RTC driver to work with BBRAM
STM32 BBRAM depends on RTC to work. This changes STM32 RTC init stage to
PRE_KERNEL_1 to allow RTC driver to initialize before BBRAM driver.

Some adjustments are made so that kernel API is not used during the init
procedure.

Signed-off-by: Johan Lafon <johan.lafon@syslinbit.com>
2023-09-20 11:34:52 +01:00

18 lines
646 B
Plaintext

# Copyright (c) 2022 Google Inc
# SPDX-License-Identifier: Apache-2.0
config BBRAM_STM32
bool "ST STM32 Battery-backed RAM drivers"
default y
depends on DT_HAS_ST_STM32_BBRAM_ENABLED
depends on COUNTER_RTC_STM32 || RTC_STM32
help
This option enables the BBRAM driver for STM32 family of
processors.
STM32 BBRAM are 32-bit registers which can be used for storing user
application data. They are implemented in the backup domain that remains
powered-on by VBAT when the VDD power is switched off. They are not reset
by system reset or when the device wakes up from Standby mode. They are
reset by a backup domain reset.