soc: stm32: common: Define STM32_LPTIM_CLOCK from device tree inputs
Now that: 1 - LS Clocks sources values are identical accross series 2 - We're able to extract this value from device tree define STM32_LPTIM_CLOCK choice symbol from device tree Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
This commit is contained in:
parent
b677ed0b69
commit
7a2e74604f
1 changed files with 5 additions and 0 deletions
|
@ -45,6 +45,11 @@ config SYS_CLOCK_TICKS_PER_SEC
|
|||
default 250 if "$(dt_node_int_prop_int,$(DT_STM32_LPTIM_PATH),$(DT_ST_PRESCALER))" = 128
|
||||
depends on STM32_LPTIM_TIMER && STM32_LPTIM_CLOCK_LSI
|
||||
|
||||
choice STM32_LPTIM_CLOCK
|
||||
default STM32_LPTIM_CLOCK_LSE if "$(dt_node_ph_array_prop_int,$(DT_STM32_LPTIM_PATH),clocks,1,bus)" = 2
|
||||
default STM32_LPTIM_CLOCK_LSI if "$(dt_node_ph_array_prop_int,$(DT_STM32_LPTIM_PATH),clocks,1,bus)" = 3
|
||||
endchoice
|
||||
|
||||
config CLOCK_CONTROL_STM32_CUBE
|
||||
default y
|
||||
depends on CLOCK_CONTROL
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue