summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTim Bird <tbird20d@gmail.com>2014-04-28 17:34:19 +0400
committerFelipe Balbi <balbi@ti.com>2014-04-30 20:29:40 +0400
commit9f27984b9e098ce0a35b210ec0315c76108494e4 (patch)
treebee39ae23a360c05059d13e8edaee6526d28ac38 /include
parentd69c6f5df376ea40df5886468b155f515fddfbb2 (diff)
downloadlinux-9f27984b9e098ce0a35b210ec0315c76108494e4.tar.xz
usb: phy: msm: Fix PTS definitions for MSM USB controller
Fix the value used for Parallel Transceiver Select (PTS) for the MSM USB controller. This is a standard chipidea PORTSC definition, where a PHY_TYPE of 10b (<<30) is ULPI and 11b (<<30) is SERIAL. Fix the definitions and use them correctly in the driver code. Signed-off-by: Tim Bird <tim.bird@sonymobile.com> Signed-off-by: Ivan T. Ivanov <iivanov@mm-sol.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/usb/msm_hsusb_hw.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/usb/msm_hsusb_hw.h b/include/linux/usb/msm_hsusb_hw.h
index 575c74397e52..98d3dd8976e5 100644
--- a/include/linux/usb/msm_hsusb_hw.h
+++ b/include/linux/usb/msm_hsusb_hw.h
@@ -31,8 +31,9 @@
#define USB_USBINTR (MSM_USB_BASE + 0x0148)
#define PORTSC_PHCD (1 << 23) /* phy suspend mode */
-#define PORTSC_PTS_MASK (3 << 30)
-#define PORTSC_PTS_ULPI (3 << 30)
+#define PORTSC_PTS_MASK (3 << 30)
+#define PORTSC_PTS_ULPI (2 << 30)
+#define PORTSC_PTS_SERIAL (3 << 30)
#define USB_ULPI_VIEWPORT (MSM_USB_BASE + 0x0170)
#define ULPI_RUN (1 << 30)