linux/drivers/phy/rockchip
William wu f293f7409f phy: rockchip-typec: enable usb3 host during usb3 phy power on
We have forced usb3 to work in usb2 only mode in firmware by setting
usb3tousb2_en (bit3 of GRF_USB3PHY0/1_CON0) to 1, and setting
host_u3_port_disable (bit0 of GRF_USB3OTG0/1_CON1) to 1 and host_u3_port
(bit15~12 of GRF_USB3OTG0/1_CON1) to 0. So we need to re-enable usb3
host.

Note that the RK3399 TRM suggests that we should keep the whole usb3
controller in reset for the duration of the Type-C PHY initialization.
However, it's hard to assert the reset in the current framework of
reset. And according to the TRM, it doesn't require that we should
clear the usb3tousb2 bit before pipe ready. So let's enable the usb3
host after pipe ready to avoid the Type-C PHY initialization failure.

Signed-off-by: William wu <wulf@rock-chips.com>
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
2018-03-16 16:55:33 +05:30
..
Kconfig phy: add 'depends on HAS_IOMEM' to fix unmet dependency 2018-03-16 13:40:45 +05:30
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
phy-rockchip-dp.c
phy-rockchip-emmc.c phy: rockchip-emmc: use regmap_read_poll_timeout to poll dllrdy 2018-03-08 13:56:23 +05:30
phy-rockchip-inno-usb2.c extcon: Split out extcon header file for consumer and provider device 2017-10-23 14:07:58 +09:00
phy-rockchip-pcie.c phy: rockchip-pcie: Reconstruct driver to support per-lane PHYs 2017-08-28 13:34:37 -05:00
phy-rockchip-typec.c phy: rockchip-typec: enable usb3 host during usb3 phy power on 2018-03-16 16:55:33 +05:30
phy-rockchip-usb.c