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:
Alexandre Bourdiol 2021-04-28 18:54:59 +02:00 committed by Anas Nashif
commit 630156a4e6

View file

@ -475,9 +475,15 @@ int stm32_clock_control_init(const struct device *dev)
if (LL_RCC_HSE_IsReady() != 1) { if (LL_RCC_HSE_IsReady() != 1) {
/* Check if need to enable HSE bypass feature or not */ /* Check if need to enable HSE bypass feature or not */
if (IS_ENABLED(STM32_HSE_BYPASS)) { 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(); LL_RCC_HSE_EnableBypass();
} else { } else {
LL_RCC_HSE_DisableBypass(); LL_RCC_HSE_DisableBypass();
#endif
} }
/* Enable HSE */ /* Enable HSE */