Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drivers:usb:fsl: Introduce FSL_USB2_PHY_UTMI_DUAL macro

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>

authored by

Nikhil Badola and committed by
Greg Kroah-Hartman
6009d95e 523f1dec

+4
+1
drivers/usb/host/ehci-fsl.c
··· 213 213 portsc |= PORT_PTS_PTW; 214 214 /* fall through */ 215 215 case FSL_USB2_PHY_UTMI: 216 + case FSL_USB2_PHY_UTMI_DUAL: 216 217 if (pdata->have_sysif_regs && pdata->controller_ver) { 217 218 /* controller version 1.6 or above */ 218 219 setbits32(non_ehci + FSL_SOC_USB_CTRL, UTMI_PHY_EN);
+2
drivers/usb/host/fsl-mph-dr-of.c
··· 69 69 return FSL_USB2_PHY_UTMI; 70 70 if (!strcasecmp(phy_type, "utmi_wide")) 71 71 return FSL_USB2_PHY_UTMI_WIDE; 72 + if (!strcasecmp(phy_type, "utmi_dual")) 73 + return FSL_USB2_PHY_UTMI_DUAL; 72 74 if (!strcasecmp(phy_type, "serial")) 73 75 return FSL_USB2_PHY_SERIAL; 74 76
+1
include/linux/fsl_devices.h
··· 69 69 FSL_USB2_PHY_UTMI, 70 70 FSL_USB2_PHY_UTMI_WIDE, 71 71 FSL_USB2_PHY_SERIAL, 72 + FSL_USB2_PHY_UTMI_DUAL, 72 73 }; 73 74 74 75 struct clk;