rockchip/rk3399: Add Type-C PHY init

Hardware / Coreboot - William wu [rock-chips.com] - 8 October 2016 09:40 UTC

Though we don't use Type-C PHY to support USB3 in firmware, we still need to initialize the Type-C PHY, and make sure the power state of pipe is always fixed to U2/P2. After this, we can force USB3 controller to work in USB2 only mode.

BRANCH=none BUG=chrome-os-partner:56425 TEST=Go to recovery mode, plug a Type-C USB drive containing chrome OS image into both ports in all orientations, check if system can boot from USB.

Change-Id: I95bb96ff27d4fecafb7b2b9e9dc2839b5c132654

801a8ef rockchip/rk3399: Add Type-C PHY init
src/soc/rockchip/rk3399/include/soc/usb.h | 33 +++++++++++++-
src/soc/rockchip/rk3399/usb.c | 68 +++++++++++++++++++++++++----
2 files changed, 91 insertions(+), 10 deletions(-)

Upstream: review.coreboot.org


  • Share