Files
kernel_common_drivers/include/linux
dian.shao 2785ce4b38 usb: s6 power optimise & misc [1/1]
PD#SWPL-177679

Problem:
S6 usb high power.
speed-drop usb devices.
u2phy disconnect, squelch & edgedrv cali

Solution:
Optimise suspend logic by holding usb controller reset bit,
usb controller comb reset bit, usb2_phy_reset_bit, usb3_phy_reset_bit
.Besides:
1. reset usb3_apb_reset_bit and leave it set then modify corresponding
static regs for low power.
2. off unused usb3phy digital 100M clk.
3. Some quirky devices take >2s to turn on Rterm and begin polling
after resume, which is seen in the new clean usb3 phy. This leads
to wait_for_connected timeout when resuming. Add XHCI_MISSING_CAS
for xHC to workaround by asserting warm reset at resume.

The speed-drop usb devices TX maybe unstable at insertion, leading to
CDR KI overload. Delay freq tracking start point by modifying fr_en
delay 1us->300us.

Modify params in driver & dts.

Verify:
BL201.

Change-Id: I4d6139ecad79e8582ada818338fcf53a1d66b131
Signed-off-by: dian.shao <dian.shao@amlogic.com>
2024-08-02 19:13:37 +08:00
..