drivers:usb:fsl: Introduce FSL_USB2_PHY_UTMI_DUAL macro
authorNikhil Badola <nikhil.badola@freescale.com>
Mon, 15 Jun 2015 10:18:22 +0000 (15:48 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Jul 2015 23:37:32 +0000 (16:37 -0700)
Introduce FSL_USB2_PHY_UTMI_DUAL macro for setting phy mode
in SOCs such has T4240, T1040, T2080 which have utmi dual-phy

Signed-off-by: Ramneek Mehresh <ramneek.mehresh@freescale.com>
Signed-off-by: Nikhil Badola <nikhil.badola@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ehci-fsl.c
drivers/usb/host/fsl-mph-dr-of.c
include/linux/fsl_devices.h

index 716aa8be1d6f6aa1ebab3be946cd1c55f2f4e944..b04c9dbd5c7dbdd08e090fc0fd8c899513a85189 100644 (file)
@@ -213,6 +213,7 @@ static int ehci_fsl_setup_phy(struct usb_hcd *hcd,
                portsc |= PORT_PTS_PTW;
                /* fall through */
        case FSL_USB2_PHY_UTMI:
+       case FSL_USB2_PHY_UTMI_DUAL:
                if (pdata->have_sysif_regs && pdata->controller_ver) {
                        /* controller version 1.6 or above */
                        setbits32(non_ehci + FSL_SOC_USB_CTRL, UTMI_PHY_EN);
index 17e1e6b7a03569ab36f2c9d91d6fb86abcf33ef9..631fc504afdaaf250dc844dcf704e9bde0625cce 100644 (file)
@@ -69,6 +69,8 @@ static enum fsl_usb2_phy_modes determine_usb_phy(const char *phy_type)
                return FSL_USB2_PHY_UTMI;
        if (!strcasecmp(phy_type, "utmi_wide"))
                return FSL_USB2_PHY_UTMI_WIDE;
+       if (!strcasecmp(phy_type, "utmi_dual"))
+               return FSL_USB2_PHY_UTMI_DUAL;
        if (!strcasecmp(phy_type, "serial"))
                return FSL_USB2_PHY_SERIAL;
 
index bdb40f67180cb4a10bfc39a09ba28da6f1b70479..070d9aef90a79ab9a2bc33448127427ffd2ca2ad 100644 (file)
@@ -69,6 +69,7 @@ enum fsl_usb2_phy_modes {
        FSL_USB2_PHY_UTMI,
        FSL_USB2_PHY_UTMI_WIDE,
        FSL_USB2_PHY_SERIAL,
+       FSL_USB2_PHY_UTMI_DUAL,
 };
 
 struct clk;