OSDN Git Service

usb: phy: msm: Select secondary PHY via TCSR
authorTim Bird <tbird20d@gmail.com>
Mon, 28 Apr 2014 13:34:20 +0000 (16:34 +0300)
committerFelipe Balbi <balbi@ti.com>
Wed, 30 Apr 2014 16:29:51 +0000 (11:29 -0500)
commit30bf8667cef5655ddfaedf043f13d03606844213
tree6a1a3b176f6d2078d04b838830fd5b56a2384de0
parent9f27984b9e098ce0a35b210ec0315c76108494e4
usb: phy: msm: Select secondary PHY via TCSR

Select the secondary PHY using the TCSR register, if phy-num=1
in the DTS (or phy_number is set in the platform data).  The
SOC has 2 PHYs which can be used with the OTG port, and this
code allows configuring the correct one.

Note: This resolves the problem I was seeing where I couldn't
get the USB driver working at all on a dragonboard, from cold
boot.  This patch depends on patch 5/14 from Ivan's msm USB
patch set.  It does not use DT for the register address, as
there's no evidence that this address changes between SoC
versions.

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>
drivers/usb/phy/phy-msm-usb.c
include/linux/usb/msm_hsusb_hw.h