]> asedeno.scripts.mit.edu Git - linux.git/commit
phy: rockchip-inno-usb2: support otg-port for rk3399
authorWilliam Wu <wulf@rock-chips.com>
Mon, 7 Nov 2016 12:08:48 +0000 (20:08 +0800)
committerKishon Vijay Abraham I <kishon@ti.com>
Fri, 18 Nov 2016 12:49:14 +0000 (18:19 +0530)
commit98898f3bc83c8a74e562869332cb1b349976a116
tree4c29744f2339226e8088e14cc7e0ef02be532f87
parent5acefd4aed454971eb6c55263a7def8392420e33
phy: rockchip-inno-usb2: support otg-port for rk3399

The rk3399 SoC USB2 PHY is comprised of one Host port and
one OTG port. And OTG port is for USB2.0 part of USB3.0 OTG
controller, as a part to construct a fully feature Type-C
subsystem.

With this patch, we can support OTG port with the following
functions:
- Support BC1.2 charger detect, and use extcon notifier to
  send USB charger types to power driver.
- Support PHY suspend for power management.
- Support OTG Host only mode.

Signed-off-by: William Wu <wulf@rock-chips.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/phy-rockchip-inno-usb2.c