mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 02:50:49 +09:00
phy: rockchip: inno-usb2: increase hs eye height for otg port
Test on RK3568S EVB1, the otg device data eye test fail with far end template when use 1.2 meter long cable. So tuning the hs eye height from 400mv(default) to 437.5mv. And we test on RK3568 EVB1, it can also benefit from this patch. Change-Id: Ie2342aba5546990838fdd6faf27a007a8843fd0d Signed-off-by: William Wu <william.wu@rock-chips.com> Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
This commit is contained in:
@@ -2247,6 +2247,12 @@ static int rk3568_usb2phy_tuning(struct rockchip_usb2phy *rphy)
|
||||
writel(reg, rphy->phy_base + 0x0400);
|
||||
|
||||
if (rphy->phy_cfg->reg == 0xfe8a0000) {
|
||||
/* Set otg port HS eye height to 437.5mv(default is 400mv) */
|
||||
reg = readl(rphy->phy_base + 0x30);
|
||||
reg &= ~(0x07 << 4);
|
||||
reg |= (0x06 << 4);
|
||||
writel(reg, rphy->phy_base + 0x30);
|
||||
|
||||
/*
|
||||
* Set the bvalid filter time to 10ms
|
||||
* based on the usb2 phy grf pclk 100MHz.
|
||||
|
||||
Reference in New Issue
Block a user