drivers: hci: stm32wb: LSI is not an allowed clock for BLE RF.

Remove code related to LSI used as clock source for RF wakeup,
it isn't a valid clock source.
Also don't disable LSI when LSE is selected.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
Erwan Gouriou 2022-12-13 16:36:44 +01:00 committed by Carles Cufí
commit 52b9724a88

View file

@ -405,17 +405,6 @@ static void start_ble_rf(void)
/* Select wakeup source of BLE RF */
LL_RCC_SetRFWKPClockSource(LL_RCC_RFWKP_CLKSOURCE_LSE);
/* Switch OFF LSI */
LL_RCC_LSI2_Disable();
#else
LL_RCC_LSI2_Enable();
while (!LL_RCC_LSI2_IsReady()) {
}
/* Select wakeup source of BLE RF */
LL_RCC_SetRFWKPClockSource(LL_RCC_RFWKP_CLKSOURCE_LSI);
LL_RCC_SetRTCClockSource(LL_RCC_RTC_CLKSOURCE_LSI);
#endif
/* HSI48 clock and CLK48 clock source are enabled using the device tree */