a63bb6317c
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>
18 lines
646 B
Plaintext
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.
|