mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
phy: rockchip-inno-usb2: support usb BC1.2 for rk3399 Type-C1
rk3399 Type-C1 USB 2.0 PHY supports USB BC1.2. This patch adds registers configuration for Type-C1 USB BC1.2. With this patch, and set dr_mode of Type-C1 USB to "otg" or "peripheral" in the DTS, then the Type-C1 USB can detect USB battery charger. Change-Id: I2f07ae675cc6066db46e428e6e27045b911a0773 Signed-off-by: Wu Liang feng <wulf@rock-chips.com> Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
This commit is contained in:
@@ -2055,6 +2055,18 @@ static const struct rockchip_usb2phy_cfg rk3399_phy_cfgs[] = {
|
||||
.utmi_hstdet = { 0xe2ac, 27, 27, 0, 1 }
|
||||
}
|
||||
},
|
||||
.chg_det = {
|
||||
.opmode = { 0xe464, 3, 0, 5, 1 },
|
||||
.cp_det = { 0xe2ac, 5, 5, 0, 1 },
|
||||
.dcp_det = { 0xe2ac, 4, 4, 0, 1 },
|
||||
.dp_det = { 0xe2ac, 3, 3, 0, 1 },
|
||||
.idm_sink_en = { 0xe460, 8, 8, 0, 1 },
|
||||
.idp_sink_en = { 0xe460, 7, 7, 0, 1 },
|
||||
.idp_src_en = { 0xe460, 9, 9, 0, 1 },
|
||||
.rdm_pdwn_en = { 0xe460, 10, 10, 0, 1 },
|
||||
.vdm_src_en = { 0xe460, 12, 12, 0, 1 },
|
||||
.vdp_src_en = { 0xe460, 11, 11, 0, 1 },
|
||||
},
|
||||
},
|
||||
{ /* sentinel */ }
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user