diff --git a/drivers/clock_control/clock_stm32l0_l1.c b/drivers/clock_control/clock_stm32l0_l1.c index 2915bb6a03b..a62c743341d 100644 --- a/drivers/clock_control/clock_stm32l0_l1.c +++ b/drivers/clock_control/clock_stm32l0_l1.c @@ -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