phy: rockchip-inno-usb2: open pre-emphasize for rk322x

Open pre-emphasize in non-chirp state for rk322x USB
PHY0 otg port to increase HS slew rate.

Change-Id: Ia565746286a750a251619a83cbbead99c0ddecbd
Signed-off-by: William Wu <william.wu@rock-chips.com>
This commit is contained in:
William Wu
2018-04-13 10:04:28 +08:00
committed by Tao Huang
parent bde144277c
commit d26a856c7e

View File

@@ -1873,6 +1873,17 @@ static int rk312x_usb2phy_tuning(struct rockchip_usb2phy *rphy)
return 0;
}
static int rk322x_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;
@@ -2173,6 +2184,7 @@ static const struct rockchip_usb2phy_cfg rk322x_phy_cfgs[] = {
{
.reg = 0x760,
.num_ports = 2,
.phy_tuning = rk322x_usb2phy_tuning,
.clkout_ctl = { 0x0768, 4, 4, 1, 0 },
.port_cfgs = {
[USB2PHY_PORT_OTG] = {