Lines Matching refs:phy_cfg
167 const struct rockchip_usb2phy_cfg *phy_cfg; member
246 property_enable(base, &rphy->phy_cfg->chg_det.rdm_pdwn_en, en); in rockchip_chg_enable_dcd()
247 property_enable(base, &rphy->phy_cfg->chg_det.idp_src_en, en); in rockchip_chg_enable_dcd()
255 property_enable(base, &rphy->phy_cfg->chg_det.vdp_src_en, en); in rockchip_chg_enable_primary_det()
256 property_enable(base, &rphy->phy_cfg->chg_det.idm_sink_en, en); in rockchip_chg_enable_primary_det()
264 property_enable(base, &rphy->phy_cfg->chg_det.vdm_src_en, en); in rockchip_chg_enable_secondary_det()
265 property_enable(base, &rphy->phy_cfg->chg_det.idp_sink_en, en); in rockchip_chg_enable_secondary_det()
277 vout = property_enabled(base, &rphy->phy_cfg->chg_det.cp_det); in rockchip_chg_primary_det_retry()
333 port_cfg = &rphy->phy_cfg->port_cfgs[USB2PHY_PORT_OTG]; in rockchip_chg_get_type()
361 property_enable(base, &rphy->phy_cfg->chg_det.opmode, false); in rockchip_chg_get_type()
373 is_dcd = property_enabled(base, &rphy->phy_cfg->chg_det.dp_det); in rockchip_chg_get_type()
387 vout = property_enabled(base, &rphy->phy_cfg->chg_det.cp_det); in rockchip_chg_get_type()
415 vout = property_enabled(base, &rphy->phy_cfg->chg_det.dcp_det); in rockchip_chg_get_type()
425 property_enable(base, &rphy->phy_cfg->chg_det.opmode, true); in rockchip_chg_get_type()
462 port_cfg = &rphy->phy_cfg->port_cfgs[USB2PHY_PORT_OTG]; in otg_phy_init()
465 if(rphy->phy_cfg->clkout_ctl.disable) in otg_phy_init()
466 property_enable(base, &rphy->phy_cfg->clkout_ctl, true); in otg_phy_init()
508 port_cfg = &rphy->phy_cfg->port_cfgs[USB2PHY_PORT_OTG]; in rockchip_usb2phy_init()
510 port_cfg = &rphy->phy_cfg->port_cfgs[USB2PHY_PORT_HOST]; in rockchip_usb2phy_init()
532 port_cfg = &rphy->phy_cfg->port_cfgs[USB2PHY_PORT_OTG]; in rockchip_usb2phy_exit()
534 port_cfg = &rphy->phy_cfg->port_cfgs[USB2PHY_PORT_HOST]; in rockchip_usb2phy_exit()
713 rphy->phy_cfg = &phy_cfgs[index]; in rockchip_usb2phy_probe()
719 if (!rphy->phy_cfg) { in rockchip_usb2phy_probe()
724 if (rphy->phy_cfg->phy_tuning) in rockchip_usb2phy_probe()
725 rphy->phy_cfg->phy_tuning(rphy); in rockchip_usb2phy_probe()
736 if (rphy->phy_cfg->reg == 0x760) in rk322x_usb2phy_tuning()
1006 if (rphy->phy_cfg->reg == 0x0) { in rk3576_usb2phy_tuning()
1026 } else if (rphy->phy_cfg->reg == 0x2000) { in rk3576_usb2phy_tuning()