Commit 0868bfb77a96be8795e3e02c1d2bf733efcc0b24

Authored by Roger Quadros
Committed by Lokesh Vutla
1 parent 3d9ad458cc

ARM: OMAP5+: Provide enable/disable_usb_clocks() for CONFIG_USB_XHCI_OMAP

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>

Showing 2 changed files with 2 additions and 2 deletions Side-by-side Diff

arch/arm/cpu/armv7/am33xx/clock_am43xx.c
... ... @@ -181,7 +181,7 @@
181 181 }
182 182 #endif
183 183  
184   -#ifdef CONFIG_USB_DWC3
  184 +#if defined(CONFIG_USB_DWC3) || defined(CONFIG_USB_XHCI_OMAP)
185 185 void enable_usb_clocks(int index)
186 186 {
187 187 u32 *usbclkctrl = 0;
arch/arm/cpu/armv7/omap5/hw_data.c
... ... @@ -614,7 +614,7 @@
614 614 }
615 615 #endif
616 616  
617   -#ifdef CONFIG_USB_DWC3
  617 +#if defined(CONFIG_USB_DWC3) || defined(CONFIG_USB_XHCI_OMAP)
618 618 void enable_usb_clocks(int index)
619 619 {
620 620 u32 cm_l3init_usb_otg_ss_clkctrl = 0;