drivers: clock_control: stm32: Enable SYSCFG on STM32L0

The entropy driver needs to use the SYSCFG block to control VREF on
the STM32L0. Clock the block if the entropy driver has been enabled.

Signed-off-by: Andreas Sandberg <andreas@sandberg.pp.se>
This commit is contained in:
Andreas Sandberg 2020-05-08 12:33:36 +01:00 committed by Ioannis Glaropoulos
commit f1d80b3f02

View file

@ -38,7 +38,9 @@ void config_pll_init(LL_UTILS_PLLInitTypeDef *pllinit)
*/
void config_enable_default_clocks(void)
{
#if defined(CONFIG_EXTI_STM32) || defined(CONFIG_USB_DC_STM32)
#if defined(CONFIG_EXTI_STM32) || defined(CONFIG_USB_DC_STM32) || \
(defined(CONFIG_SOC_SERIES_STM32L0X) && \
defined(CONFIG_ENTROPY_STM32_RNG))
/* Enable System Configuration Controller clock. */
LL_APB2_GRP1_EnableClock(LL_APB2_GRP1_PERIPH_SYSCFG);
#endif