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:
parent
299ef2e5fe
commit
f1d80b3f02
1 changed files with 3 additions and 1 deletions
|
@ -38,7 +38,9 @@ void config_pll_init(LL_UTILS_PLLInitTypeDef *pllinit)
|
||||||
*/
|
*/
|
||||||
void config_enable_default_clocks(void)
|
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. */
|
/* Enable System Configuration Controller clock. */
|
||||||
LL_APB2_GRP1_EnableClock(LL_APB2_GRP1_PERIPH_SYSCFG);
|
LL_APB2_GRP1_EnableClock(LL_APB2_GRP1_PERIPH_SYSCFG);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue