mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 19:08:57 +09:00
phy: rockchip-inno-usb2: open pre-emphasize for rk3228
Open pre-emphasize in non-chirp state for rk3228 USB PHY0 otg port to increase HS slew rate. Change-Id: Ia565746286a750a251619a83cbbead99c0ddecbd 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:
@@ -1933,6 +1933,17 @@ static int rk312x_usb2phy_tuning(struct rockchip_usb2phy *rphy)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int rk3228_usb2phy_tuning(struct rockchip_usb2phy *rphy)
|
||||
{
|
||||
int ret = 0;
|
||||
|
||||
/* Open pre-emphasize in non-chirp state for PHY0 otg port */
|
||||
if (rphy->phy_cfg->reg == 0x760)
|
||||
ret = regmap_write(rphy->grf, 0x76c, 0x00070004);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int rk3308_usb2phy_tuning(struct rockchip_usb2phy *rphy)
|
||||
{
|
||||
int ret;
|
||||
@@ -2235,6 +2246,7 @@ static const struct rockchip_usb2phy_cfg rk3228_phy_cfgs[] = {
|
||||
{
|
||||
.reg = 0x760,
|
||||
.num_ports = 2,
|
||||
.phy_tuning = rk3228_usb2phy_tuning,
|
||||
.clkout_ctl = { 0x0768, 4, 4, 1, 0 },
|
||||
.port_cfgs = {
|
||||
[USB2PHY_PORT_OTG] = {
|
||||
|
||||
Reference in New Issue
Block a user