summaryrefslogtreecommitdiff
path: root/drivers/usb
diff options
context:
space:
mode:
authorBenoît Thébaudeau <[email protected]>2012-09-28 07:09:03 +0000
committerTom Rini <[email protected]>2012-10-15 11:54:11 -0700
commit414e1660c8e898539411d92fbacdefc3e6bfbdfb (patch)
treec35c3c7ff2cc058ad105978707be0a1b089b8195 /drivers/usb
parent248cdf0b5270651ca5eefb1aff4a338df6a1ca25 (diff)
mx51: Fix USB PHY clocks
The i.MX51 has a single USB PHY clock, while the i.MX53 has two. These 3 clocks have different clock gate control bit-fields. The existing code was correct only for i.MX53, so this patch fixes the i.MX51 use case. Signed-off-by: Benoît Thébaudeau <[email protected]> Cc: Stefano Babic <[email protected]> Cc: Marek Vasut <[email protected]> Cc: Jana Rapava <[email protected]> Cc: Wolfgang Grandegger <[email protected]> Cc: Igor Grinberg <[email protected]>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/host/ehci-mx5.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/host/ehci-mx5.c b/drivers/usb/host/ehci-mx5.c
index 9c3477304a8..9a2c295ec56 100644
--- a/drivers/usb/host/ehci-mx5.c
+++ b/drivers/usb/host/ehci-mx5.c
@@ -220,7 +220,8 @@ int ehci_hcd_init(int index, struct ehci_hccr **hccr, struct ehci_hcor **hcor)
set_usboh3_clk();
enable_usboh3_clk(1);
- set_usb_phy2_clk();
+ set_usb_phy_clk();
+ enable_usb_phy1_clk(1);
enable_usb_phy2_clk(1);
mdelay(1);