summaryrefslogtreecommitdiff
path: root/chip/stm32/gpio-stm32f.c
diff options
context:
space:
mode:
Diffstat (limited to 'chip/stm32/gpio-stm32f.c')
-rw-r--r--chip/stm32/gpio-stm32f.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/chip/stm32/gpio-stm32f.c b/chip/stm32/gpio-stm32f.c
index e9f7944354..79fc2235d0 100644
--- a/chip/stm32/gpio-stm32f.c
+++ b/chip/stm32/gpio-stm32f.c
@@ -138,7 +138,11 @@ void gpio_pre_init(void)
* TODO(crosbug.com/p/23770): only enable the banks we need to,
* and support disabling some of them in low-power idle.
*/
+#ifdef CHIP_VARIANT_STM32TS60
+ STM32_RCC_APB2ENR |= 0x7fd;
+#else
STM32_RCC_APB2ENR |= 0x1fd;
+#endif
}
/* Set all GPIOs to defaults */