usb: dwc3: meson-g12a: refactor usb2 phy init
authorNeil Armstrong <narmstrong@baylibre.com>
Thu, 26 Mar 2020 13:44:58 +0000 (14:44 +0100)
committerFelipe Balbi <balbi@kernel.org>
Tue, 5 May 2020 08:00:12 +0000 (11:00 +0300)
commit31306821d87723d63f1be6908c7187719f282eff
tree84d91972bbf6fd0c758c4af1bcacfe0d3ed061e1
parent8f5bc1ec770c2bdc8c604ba4119a77d81d8f3529
usb: dwc3: meson-g12a: refactor usb2 phy init

Refactor the USB2 PHY init code patch to handle the Amlogic GXL/GXM
not having the PHY mode control registers in the Glue but in the PHY
registers.

The Amlogic GXL/GXM will call phy_set_mode() instead of programming the
PHY mode control registers, thus add two new callbacks to the SoC match
data.

Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
drivers/usb/dwc3/dwc3-meson-g12a.c