]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
usb: chipidea: msm: Mux over secondary phy at the right time
authorStephen Boyd <stephen.boyd@linaro.org>
Wed, 28 Dec 2016 22:57:02 +0000 (14:57 -0800)
committerPeter Chen <peter.chen@nxp.com>
Fri, 20 Jan 2017 07:25:45 +0000 (15:25 +0800)
commit2fc305be364ed2a4ea4bdf83554a2a76521dc6c4
treef49e04877788f1f098c4514378969d32b152ba48
parente9f15a71f17b328be44767cb893576c7c838f996
usb: chipidea: msm: Mux over secondary phy at the right time

We need to pick the correct phy at runtime based on how the SoC
has been wired onto the board. If the secondary phy is used, take
it out of reset and mux over to it by writing into the TCSR
register. Make sure to do this on reset too, because this
register is reset to the default value (primary phy) after the
RESET bit is set in USBCMD.

Acked-by: Peter Chen <peter.chen@nxp.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Stephen Boyd <stephen.boyd@linaro.org>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
drivers/usb/chipidea/ci_hdrc_msm.c