diff options
Diffstat (limited to 'chip/stm32/gpio-stm32l.c')
-rw-r--r-- | chip/stm32/gpio-stm32l.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chip/stm32/gpio-stm32l.c b/chip/stm32/gpio-stm32l.c index 44282fc5c0..c015112503 100644 --- a/chip/stm32/gpio-stm32l.c +++ b/chip/stm32/gpio-stm32l.c @@ -5,6 +5,7 @@ /* GPIO module for Chrome EC */ +#include "clock.h" #include "common.h" #include "gpio.h" #include "hooks.h" @@ -26,6 +27,9 @@ void gpio_enable_clocks(void) * and support disabling some of them in low-power idle. */ STM32_RCC_AHBENR |= 0x3f; + + /* Delay 1 AHB clock cycle after the clock is enabled */ + clock_wait_bus_cycles(BUS_AHB, 1); } static void gpio_init(void) |