drivers: clock_control: stm32wl doesn't have HSE bypass
LL_RCC_HSE_EnableBypass() doesn't exist on stm32wl, but can be replaced by LL_RCC_HSE_EnableTcxo() Signed-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
This commit is contained in:
parent
bfb1634af5
commit
630156a4e6
1 changed files with 6 additions and 0 deletions
|
@ -475,9 +475,15 @@ int stm32_clock_control_init(const struct device *dev)
|
|||
if (LL_RCC_HSE_IsReady() != 1) {
|
||||
/* Check if need to enable HSE bypass feature or not */
|
||||
if (IS_ENABLED(STM32_HSE_BYPASS)) {
|
||||
#ifdef CONFIG_SOC_SERIES_STM32WLX
|
||||
LL_RCC_HSE_EnableTcxo();
|
||||
} else {
|
||||
LL_RCC_HSE_DisableTcxo();
|
||||
#else
|
||||
LL_RCC_HSE_EnableBypass();
|
||||
} else {
|
||||
LL_RCC_HSE_DisableBypass();
|
||||
#endif
|
||||
}
|
||||
|
||||
/* Enable HSE */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue