summaryrefslogtreecommitdiff
path: root/chip/stm32/system.c
diff options
context:
space:
mode:
Diffstat (limited to 'chip/stm32/system.c')
-rw-r--r--chip/stm32/system.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/chip/stm32/system.c b/chip/stm32/system.c
index 90a248eafa..e906234f19 100644
--- a/chip/stm32/system.c
+++ b/chip/stm32/system.c
@@ -193,6 +193,10 @@ void system_pre_init(void)
clock_wait_bus_cycles(BUS_APB, 1);
/* Enable access to RCC CSR register and RTC backup registers */
STM32_PWR_CR |= 1 << 8;
+#ifdef CHIP_FAMILY_STM32L4
+ /* Enable Vddio2 */
+ STM32_PWR_CR2 |= 1 << 9;
+#endif
/* switch on LSI */
STM32_RCC_CSR |= 1 << 0;