summaryrefslogtreecommitdiff
path: root/arch/arm/plat-mxc
diff options
context:
space:
mode:
authorTony LIU <junjie.liu@freescale.com>2012-04-28 10:47:21 +0800
committerJason Liu <r64343@freescale.com>2012-07-20 13:37:27 +0800
commit21aa50c85e214dceb4a1b7d0753131e1e59a7359 (patch)
treea91e2cdca6d8ff8a51b59311a97383f52a1d991f /arch/arm/plat-mxc
parentfb41093636260cae03b2f3204fea7e95f507a7c5 (diff)
ENGR00209480-1 mx6sl_usb bring up
- add usb otg power gpio control - change cpu_is_mx6x() to cpu_is_mx6 - enable usb hsic support Signed-off-by: Tony LIU <junjie.liu@freescale.com>
Diffstat (limited to 'arch/arm/plat-mxc')
-rwxr-xr-xarch/arm/plat-mxc/usb_common.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/arm/plat-mxc/usb_common.c b/arch/arm/plat-mxc/usb_common.c
index a4a3721246f8..6cf2fa8fb682 100755
--- a/arch/arm/plat-mxc/usb_common.c
+++ b/arch/arm/plat-mxc/usb_common.c
@@ -88,7 +88,7 @@ static int fsl_check_usbclk(void)
usb_ahb_clk = clk_get(NULL, "usb_ahb_clk");
if (clk_enable(usb_ahb_clk)) {
- if (cpu_is_mx6q() || cpu_is_mx6dl())
+ if (cpu_is_mx6())
return 0; /* there is no ahb clock at mx6 */
printk(KERN_ERR "clk_enable(usb_ahb_clk) failed\n");
return -EINVAL;
@@ -97,7 +97,7 @@ static int fsl_check_usbclk(void)
usb_clk = clk_get(NULL, "usb_clk");
if (clk_enable(usb_clk)) {
- if (cpu_is_mx6q() || cpu_is_mx6dl())
+ if (cpu_is_mx6())
return 0; /* there is usb_clk at mx6 */
printk(KERN_ERR "clk_enable(usb_clk) failed\n");
return -EINVAL;
@@ -502,7 +502,7 @@ int fsl_usb_host_init(struct platform_device *pdev)
if (usb_register_remote_wakeup(pdev))
pr_debug("%s port is not a wakeup source.\n", pdata->name);
- if (!(cpu_is_mx6q() || cpu_is_mx6dl())) {
+ if (!(cpu_is_mx6())) {
if (xops->xcvr_type == PORTSC_PTS_SERIAL) {
if (cpu_is_mx35()) {
usbh2_set_serial_xcvr();
@@ -814,7 +814,7 @@ int usbotg_init(struct platform_device *pdev)
return -EINVAL;
if (xops->init)
xops->init(xops);
- if (!((cpu_is_mx6q() || cpu_is_mx6dl()))) {
+ if (!(cpu_is_mx6())) {
UOG_PORTSC1 = UOG_PORTSC1 & ~PORTSC_PHCD;