OSDN Git Service

phy: amlogic: phy-meson-gxl-usb2: default to host mode
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Sun, 28 Jan 2018 20:22:43 +0000 (21:22 +0100)
committerKishon Vijay Abraham I <kishon@ti.com>
Thu, 8 Mar 2018 08:26:28 +0000 (13:56 +0530)
commit05818862bc27255e335ee6085d6ce57b6cb01f99
tree9f9dbd09197d9b08ab2157be9589ff1c4e707772
parentbc4a0241d4e1e2381f4c3b53ad0199324549e0a8
phy: amlogic: phy-meson-gxl-usb2: default to host mode

The USB2 PHY can switch between PHY_MODE_USB_HOST and
PHY_MODE_USB_DEVICE. However, it cannot do it on it's own since it
requires re-routing of the corresponding USB pins from dwc3 (which is
used for host-mode) to dwc2 (which is used for device-mode).
Thus we don't need to auto-detect the mode based on the USB controller,
which simplifies the driver code.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/amlogic/Kconfig
drivers/phy/amlogic/phy-meson-gxl-usb2.c