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>
13 lines
339 B
Plaintext
13 lines
339 B
Plaintext
# Copyright 2023 Prevas A/S
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
config RTC_STM32
|
|
bool "STM32 RTC driver"
|
|
default y if !COUNTER
|
|
depends on DT_HAS_ST_STM32_RTC_ENABLED && !SOC_SERIES_STM32F1X
|
|
select USE_STM32_LL_RTC
|
|
select USE_STM32_LL_PWR
|
|
select USE_STM32_LL_RCC
|
|
help
|
|
Build RTC driver for STM32 SoCs, excluding STM32F1 series.
|