diff options
author | Jason Liu <r64343@freescale.com> | 2012-02-07 14:26:23 +0800 |
---|---|---|
committer | Jason Liu <r64343@freescale.com> | 2012-02-07 18:28:38 +0800 |
commit | 30175439a32d337e4030754b38efca05cc3d2358 (patch) | |
tree | 6f75de83e2d5c89037ff982d93e23beac1c84837 /arch/arm/plat-mxc/usb_common.c | |
parent | ae4888781590b530d48a8f5b9daf1c232b1ed192 (diff) |
ENGR00173869-8: i.mx6: ARM2: add i.mx6dl support
i.mx6dl and i.mx6q share the same ARM2 board due to the pin-pin
compatible between them.
Signed-off-by: Jason Liu <r64343@freescale.com>
Diffstat (limited to 'arch/arm/plat-mxc/usb_common.c')
-rwxr-xr-x | arch/arm/plat-mxc/usb_common.c | 8 |
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 b50963b9b403..bb9c45a0127e 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()) + if (cpu_is_mx6q() || cpu_is_mx6dl()) 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()) + if (cpu_is_mx6q() || cpu_is_mx6dl()) 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()) { + if (!(cpu_is_mx6q() || cpu_is_mx6dl())) { 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())) { + if (!((cpu_is_mx6q() || cpu_is_mx6dl()))) { UOG_PORTSC1 = UOG_PORTSC1 & ~PORTSC_PHCD; |