arm: spear: enable GPIO3 and 4 clocks when the GPIO controller driver is built
[platform/kernel/u-boot.git] / arch / arm / cpu / arm926ejs / spear / cpu.c
index e852a88..88a40c6 100644 (file)
@@ -49,6 +49,9 @@ int arch_cpu_init(void)
 #if defined(CONFIG_USB_EHCI_SPEAR)
        periph1_clken |= PERIPH_USBH1 | PERIPH_USBH2;
 #endif
+#if defined(CONFIG_SPEAR_GPIO)
+       periph1_clken |= MISC_GPIO3ENB | MISC_GPIO4ENB;
+#endif
 
        writel(periph1_clken, &misc_p->periph1_clken);