Lines Matching refs:phy_cfg

251 	const struct		rockchip_usb2phy_cfg *phy_cfg;  member
289 if (!property_enabled(rphy->grf, &rphy->phy_cfg->clkout_ctl)) { in rockchip_usb2phy_clk480m_prepare()
290 ret = property_enable(rphy->grf, &rphy->phy_cfg->clkout_ctl, in rockchip_usb2phy_clk480m_prepare()
308 property_enable(rphy->grf, &rphy->phy_cfg->clkout_ctl, false); in rockchip_usb2phy_clk480m_unprepare()
316 return property_enabled(rphy->grf, &rphy->phy_cfg->clkout_ctl); in rockchip_usb2phy_clk480m_prepared()
808 property_enable(rphy->grf, &rphy->phy_cfg->chg_det.chg_en, true); in rockchip_chg_detect()
809 property_enable(rphy->grf, &rphy->phy_cfg->chg_det.chg_rst, false); in rockchip_chg_detect()
815 &rphy->phy_cfg->chg_det.chg_valid); in rockchip_chg_detect()
818 &rphy->phy_cfg->chg_det.phy_connect); in rockchip_chg_detect()
851 property_enable(rphy->grf, &rphy->phy_cfg->chg_det.chg_rst, true); in rockchip_chg_detect()
852 property_enable(rphy->grf, &rphy->phy_cfg->chg_det.chg_en, false); in rockchip_chg_detect()
996 for (index = 0; index < rphy->phy_cfg->num_ports; index++) { in otg_mode_show()
1036 for (index = 0; index < rphy->phy_cfg->num_ports; index++) { in otg_mode_store()
1216 rport->port_cfg = &rphy->phy_cfg->port_cfgs[USB2PHY_PORT_OTG]; in rockchip_usb2phy_otg_port_init()
1383 rport->port_cfg = &rphy->phy_cfg->port_cfgs[USB2PHY_PORT_HOST]; in rockchip_usb2phy_host_port_init()
1500 rphy->phy_cfg = &phy_cfgs[index]; in rockchip_usb2phy_probe()
1505 if (!rphy->phy_cfg) { in rockchip_usb2phy_probe()
1511 rphy->num_clks = rphy->phy_cfg->num_clks; in rockchip_usb2phy_probe()
1513 rphy->clks = devm_kmemdup(dev, rphy->phy_cfg->clks, in rockchip_usb2phy_probe()
1532 if (rphy->phy_cfg->phy_tuning) { in rockchip_usb2phy_probe()
1533 ret = rphy->phy_cfg->phy_tuning(rphy); in rockchip_usb2phy_probe()
1582 if (++index >= rphy->phy_cfg->num_ports) in rockchip_usb2phy_probe()
1635 if (rphy->phy_cfg->reg == 0xff4c0000) { in rv1126_usb2phy_tuning()
1671 if (rphy->phy_cfg->reg == 0xff4c8000) { in rv1126_usb2phy_tuning()
1716 for (index = 0; index < rphy->phy_cfg->num_ports; index++) { in rockchip_usb2phy_pm_suspend()
1755 if (rphy->phy_cfg->phy_lowpower) in rockchip_usb2phy_pm_suspend()
1756 ret = rphy->phy_cfg->phy_lowpower(rphy, true); in rockchip_usb2phy_pm_suspend()
1774 if (rphy->phy_cfg->phy_lowpower) in rockchip_usb2phy_pm_resume()
1775 ret = rphy->phy_cfg->phy_lowpower(rphy, false); in rockchip_usb2phy_pm_resume()
1777 for (index = 0; index < rphy->phy_cfg->num_ports; index++) { in rockchip_usb2phy_pm_resume()