phy: rockchip: inno-usb2: Fix chg_mode for rk3576

This patch disable DP/DM pull-down resistor during
charger detection, it can avoid mistakenly detected
floating charger as SDP charger.

Fixes: aedf737234 ("phy: rockchip: inno-usb2: Add usb2 phys support for rk3576")
Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: I16a3b984204e6db3f94a011d96a6e0bed57d6b4d
This commit is contained in:
William Wu
2024-03-21 15:50:32 +08:00
committed by Tao Huang
parent 8714a57e0b
commit d5cb3a119c

View File

@@ -3946,7 +3946,7 @@ static const struct rockchip_usb2phy_cfg rk3576_phy_cfgs[] = {
}
},
.chg_det = {
.chg_mode = { 0x0000, 8, 0, 0, 0x1d7 },
.chg_mode = { 0x0000, 8, 0, 0, 0x057 },
.cp_det = { 0x0080, 8, 8, 0, 1 },
.dcp_det = { 0x0080, 8, 8, 0, 1 },
.dp_det = { 0x0080, 9, 9, 1, 0 },
@@ -4000,7 +4000,7 @@ static const struct rockchip_usb2phy_cfg rk3576_phy_cfgs[] = {
}
},
.chg_det = {
.chg_mode = { 0x2000, 8, 0, 0, 0x1d7 },
.chg_mode = { 0x2000, 8, 0, 0, 0x057 },
.cp_det = { 0x2080, 8, 8, 0, 1 },
.dcp_det = { 0x2080, 8, 8, 0, 1 },
.dp_det = { 0x2080, 9, 9, 1, 0 },