]> git.sur5r.net Git - u-boot/commitdiff
ARM: OMAP5+: Provide enable/disable_usb_clocks() for CONFIG_USB_XHCI_OMAP
authorRoger Quadros <rogerq@ti.com>
Mon, 23 May 2016 14:37:47 +0000 (17:37 +0300)
committerTom Rini <trini@konsulko.com>
Fri, 3 Jun 2016 01:42:14 +0000 (21:42 -0400)
CONFIG_USB_XHCI_OMAP is enabled for host mode independent of CONFIG_USB_DWC3
which is meant for gadget mode only. We need enable/disbale_usb_clocks() for
host mode as well so provide for it.

Fixes: 09cc14f4bcbf ("ARM: AM43xx: Add functions to enable and disable USB clocks"
Signed-off-by: Roger Quadros <rogerq@ti.com>
arch/arm/cpu/armv7/am33xx/clock_am43xx.c
arch/arm/cpu/armv7/omap5/hw_data.c

index 5c2a2ab0f28d785e0b8e71756c80980336f005a5..73ea955a6cfb1414510889e6247e3c6eec648b8b 100644 (file)
@@ -160,7 +160,7 @@ void disable_edma3_clocks(void)
 }
 #endif
 
-#ifdef CONFIG_USB_DWC3
+#if defined(CONFIG_USB_DWC3) || defined(CONFIG_USB_XHCI_OMAP)
 void enable_usb_clocks(int index)
 {
        u32 *usbclkctrl = 0;
index 88e8920bad31294f5b564b9c275a5e3d26c08a2f..8734815a67ddceb8a5aefb1901f911e83dd684ad 100644 (file)
@@ -602,7 +602,7 @@ void disable_edma3_clocks(void)
 }
 #endif
 
-#ifdef CONFIG_USB_DWC3
+#if defined(CONFIG_USB_DWC3) || defined(CONFIG_USB_XHCI_OMAP)
 void enable_usb_clocks(int index)
 {
        u32 cm_l3init_usb_otg_ss_clkctrl = 0;