drivers: counter: stm32: remove deprecated clock source Kconfigs
These clock selection Kconfigs should have been deprecated for more than 2 releases, remove them: - `CONFIG_COUNTER_RTC_STM32_CLOCK_SRC` - `CONFIG_COUNTER_RTC_STM32_CLOCK_LSI` - `CONFIG_COUNTER_RTC_STM32_CLOCK_LSE` Signed-off-by: Yong Cong Sin <ycsin@meta.com>
This commit is contained in:
parent
2792f2e3fd
commit
88c96f7986
3 changed files with 0 additions and 36 deletions
|
|
@ -17,27 +17,6 @@ menuconfig COUNTER_RTC_STM32
|
|||
|
||||
if COUNTER_RTC_STM32
|
||||
|
||||
choice COUNTER_RTC_STM32_CLOCK_SRC
|
||||
bool "RTC clock source"
|
||||
optional
|
||||
depends on COUNTER_RTC_STM32
|
||||
|
||||
config COUNTER_RTC_STM32_CLOCK_LSI
|
||||
bool "LSI"
|
||||
select DEPRECATED
|
||||
help
|
||||
Use LSI as RTC clock
|
||||
Deprecated in favor of device tree secondary domain clock
|
||||
|
||||
config COUNTER_RTC_STM32_CLOCK_LSE
|
||||
bool "LSE"
|
||||
select DEPRECATED
|
||||
help
|
||||
Use LSE as RTC clock
|
||||
Deprecated in favor of device tree secondary domain clock
|
||||
|
||||
endchoice #COUNTER_RTC_STM32_CLOCK_SRC
|
||||
|
||||
config COUNTER_RTC_STM32_SAVE_VALUE_BETWEEN_RESETS
|
||||
bool "Save rtc time value between resets"
|
||||
default n
|
||||
|
|
|
|||
|
|
@ -621,21 +621,7 @@ static int rtc_stm32_init(const struct device *dev)
|
|||
|
||||
static struct rtc_stm32_data rtc_data;
|
||||
|
||||
#if DT_INST_NUM_CLOCKS(0) == 1
|
||||
#warning STM32 RTC needs a kernel source clock. Please define it in dts file
|
||||
static const struct stm32_pclken rtc_clk[] = {
|
||||
STM32_CLOCK_INFO(0, DT_DRV_INST(0)),
|
||||
/* Use Kconfig to configure source clocks fields (Deprecated) */
|
||||
/* Fortunately, values are consistent across enabled series */
|
||||
#ifdef CONFIG_COUNTER_RTC_STM32_CLOCK_LSE
|
||||
{.bus = STM32_SRC_LSE, .enr = RTC_SEL(1)}
|
||||
#else
|
||||
{.bus = STM32_SRC_LSI, .enr = RTC_SEL(2)}
|
||||
#endif
|
||||
};
|
||||
#else
|
||||
static const struct stm32_pclken rtc_clk[] = STM32_DT_INST_CLOCKS(0);
|
||||
#endif
|
||||
|
||||
static const struct rtc_stm32_config rtc_config = {
|
||||
.counter_info = {
|
||||
|
|
|
|||
|
|
@ -873,7 +873,6 @@ flagged.
|
|||
"COMPILER_RT_RTLIB",
|
||||
"BT_6LOWPAN", # Defined in Linux, mentioned in docs
|
||||
"CMD_CACHE", # Defined in U-Boot, mentioned in docs
|
||||
"COUNTER_RTC_STM32_CLOCK_SRC",
|
||||
"CRC", # Used in TI CC13x2 / CC26x2 SDK comment
|
||||
"DEEP_SLEEP", # #defined by RV32M1 in ext/
|
||||
"DESCRIPTION",
|
||||
|
|
|
|||
Loading…
Reference in a new issue