]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - arch/arm/cpu/armv7/omap5/hw_data.c
ti: dwc3: Enable clocks in enable_basic_clocks() in hw_data.c
[karo-tx-uboot.git] / arch / arm / cpu / armv7 / omap5 / hw_data.c
index e4abb25fc2430acc2917dd9a66a72c5de7092ebc..868415d038ad81f96716fd3837229dcbb5f9d5e5 100644 (file)
@@ -460,7 +460,7 @@ void enable_basic_clocks(void)
                (*prcm)->cm_l4per_gpio6_clkctrl,
                (*prcm)->cm_l4per_gpio7_clkctrl,
                (*prcm)->cm_l4per_gpio8_clkctrl,
-#ifdef CONFIG_USB_DWC3
+#if defined(CONFIG_USB_DWC3) || defined(CONFIG_USB_XHCI_OMAP)
                (*prcm)->cm_l3init_ocp2scp1_clkctrl,
                (*prcm)->cm_l3init_usb_otg_ss1_clkctrl,
 #endif
@@ -495,7 +495,7 @@ void enable_basic_clocks(void)
        setbits_le32((*prcm)->cm_l3init_hsmmc2_clkctrl,
                        HSMMC_CLKCTRL_CLKSEL_MASK);
 
-#ifdef CONFIG_USB_DWC3
+#if defined(CONFIG_USB_DWC3) || defined(CONFIG_USB_XHCI_OMAP)
        /* Enable 960 MHz clock for dwc3 */
        setbits_le32((*prcm)->cm_l3init_usb_otg_ss1_clkctrl,
                     OPTFCLKEN_REFCLK960M);