drivers: clock_control: stm32f3: Enable PWR clock to access BDCR
BDCR could be required for LSE or RTC for instance. Enable it here as for now, no sophisticated PM handling is available on F3 series. Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
parent
bd9bd38b87
commit
3abb0c9b4b
|
@ -150,6 +150,9 @@ void config_enable_default_clocks(void)
|
|||
LL_APB1_GRP2_EnableClock(LL_APB1_GRP2_PERIPH_SYSCFG);
|
||||
#endif
|
||||
#else
|
||||
/* Enable PWR clock, required to access BDCR */
|
||||
LL_APB1_GRP1_EnableClock(LL_APB1_GRP1_PERIPH_PWR);
|
||||
|
||||
#if defined(CONFIG_USB_DC_STM32) && defined(SYSCFG_CFGR1_USB_IT_RMP)
|
||||
/* Enable System Configuration Controller clock. */
|
||||
/* SYSCFG is required to remap IRQ to avoid conflicts with CAN */
|
||||
|
|
Loading…
Reference in a new issue