usb: gadget: fsl: Introduce FSL_USB2_PHY_UTMI_DUAL for usb gadget
authorNikhil Badola <nikhil.badola@freescale.com>
Thu, 17 May 2018 21:28:37 +0000 (18:28 -0300)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 21 May 2018 07:01:02 +0000 (10:01 +0300)
Introduce FSL_USB2_PHY_UTMI_DUAL in gadget driver for setting
phy in SOCs with utmi dual phy

Acked-by: Li Yang <leoyang.li@nxp.com>
Signed-off-by: Nikhil Badola <nikhil.badola@freescale.com>
Tested-by: Tiago Brusamarello <tbrusa@gmail.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/udc/fsl_udc_core.c

index 56b517a38865aace8b212a75044d8ab29bf575ec..a3c092b4db20750d482003834d283a2678c05ce1 100644 (file)
@@ -253,6 +253,7 @@ static int dr_controller_setup(struct fsl_udc *udc)
                portctrl |= PORTSCX_PTW_16BIT;
                /* fall through */
        case FSL_USB2_PHY_UTMI:
+       case FSL_USB2_PHY_UTMI_DUAL:
                if (udc->pdata->have_sysif_regs) {
                        if (udc->pdata->controller_ver) {
                                /* controller version 1.6 or above */