| /OK3568_Linux_fs/kernel/drivers/phy/rockchip/ |
| H A D | phy-rockchip-naneng-usb2.c | 255 static inline int property_enable(struct regmap *base, in property_enable() function 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() 401 ret = property_enable(rphy->grf, in rockchip_usb2phy_enable_id_irq() 406 ret = property_enable(rphy->grf, &rport->port_cfg->idfall_det_en, en); in rockchip_usb2phy_enable_id_irq() 410 ret = property_enable(rphy->grf, in rockchip_usb2phy_enable_id_irq() 415 ret = property_enable(rphy->grf, &rport->port_cfg->idrise_det_en, en); in rockchip_usb2phy_enable_id_irq() 427 ret = property_enable(rphy->grf, in rockchip_usb2phy_enable_vbus_irq() 432 ret = property_enable(rphy->grf, in rockchip_usb2phy_enable_vbus_irq() 437 ret = property_enable(rphy->grf, in rockchip_usb2phy_enable_vbus_irq() [all …]
|
| H A D | phy-rockchip-inno-usb2.c | 360 static inline int property_enable(struct regmap *base, in property_enable() function 473 ret = property_enable(base, &rphy->phy_cfg->clkout_ctl, true); in rockchip_usb2phy_clk480m_prepare() 494 property_enable(base, &rphy->phy_cfg->clkout_ctl, false); in rockchip_usb2phy_clk480m_unprepare() 626 ret = property_enable(rphy->grf, &rport->port_cfg->idfall_det_clr, true); in rockchip_usb2phy_enable_id_irq() 630 ret = property_enable(rphy->grf, &rport->port_cfg->idfall_det_en, en); in rockchip_usb2phy_enable_id_irq() 634 ret = property_enable(rphy->grf, &rport->port_cfg->idrise_det_clr, true); in rockchip_usb2phy_enable_id_irq() 638 ret = property_enable(rphy->grf, &rport->port_cfg->idrise_det_en, en); in rockchip_usb2phy_enable_id_irq() 650 ret = property_enable(rphy->grf, &rport->port_cfg->bvalid_det_clr, true); in rockchip_usb2phy_enable_vbus_irq() 654 ret = property_enable(rphy->grf, &rport->port_cfg->bvalid_det_en, en); in rockchip_usb2phy_enable_vbus_irq() 665 ret = property_enable(rphy->grf, &rport->port_cfg->ls_det_clr, true); in rockchip_usb2phy_enable_line_irq() [all …]
|
| H A D | phy-rockchip-typec.c | 1086 static inline int property_enable(struct rockchip_typec_phy *tcphy, in property_enable() function 1253 property_enable(tcphy, &cfg->usb3tousb2_en, value); in tcphy_cfg_usb3_to_usb2_only() 1254 property_enable(tcphy, &cfg->usb3_host_disable, value); in tcphy_cfg_usb3_to_usb2_only() 1255 property_enable(tcphy, &cfg->usb3_host_port, !value); in tcphy_cfg_usb3_to_usb2_only() 1280 property_enable(tcphy, &cfg->typec_conn_dir, tcphy->flip); in tcphy_phy_init() 1526 property_enable(tcphy, &cfg->uphy_dp_sel, 1); in rockchip_dp_phy_power_on() 1713 property_enable(tcphy, &cfg->external_psm, 1); in typec_phy_pre_init() 1714 property_enable(tcphy, &cfg->usb3tousb2_en, 0); in typec_phy_pre_init()
|
| /OK3568_Linux_fs/u-boot/drivers/usb/phy/ |
| H A D | rockchip_usb2_phy.c | 60 static void property_enable(struct dwc2_plat_otg_data *pdata, in property_enable() function 188 property_enable(pdata, &phy_cfg->siddq, false); in otg_phy_init() 191 property_enable(pdata, &phy_cfg->soft_con, false); in otg_phy_init() 194 property_enable(pdata, &phy_cfg->port_reset, true); in otg_phy_init() 196 property_enable(pdata, &phy_cfg->port_reset, false); in otg_phy_init() 211 property_enable(pdata, &phy_cfg->soft_con, true); in otg_phy_off() 213 property_enable(pdata, &phy_cfg->suspend, true); in otg_phy_off()
|
| /OK3568_Linux_fs/u-boot/drivers/phy/ |
| H A D | phy-rockchip-naneng-usb2.c | 153 static inline int property_enable(void __iomem *base, in property_enable() function 227 property_enable(rphy->grf, &rphy->phy_cfg->chg_det.chg_en, true); in rockchip_chg_get_type() 228 property_enable(rphy->grf, &rphy->phy_cfg->chg_det.chg_rst, false); in rockchip_chg_get_type() 250 property_enable(rphy->grf, &rphy->phy_cfg->chg_det.chg_rst, true); in rockchip_chg_get_type() 251 property_enable(rphy->grf, &rphy->phy_cfg->chg_det.chg_en, false); in rockchip_chg_get_type() 304 property_enable(rphy->grf, &port_cfg->phy_sus, false); in rockchip_usb2phy_init() 327 property_enable(rphy->grf, &port_cfg->phy_sus, true); in rockchip_usb2phy_exit()
|
| H A D | phy-rockchip-inno-usb2.c | 172 static inline int property_enable(struct regmap *base, in property_enable() function 218 property_enable(base, &rphy->phy_cfg->chg_det.rdm_pdwn_en, en); in rockchip_chg_enable_dcd() 219 property_enable(base, &rphy->phy_cfg->chg_det.idp_src_en, en); in rockchip_chg_enable_dcd() 227 property_enable(base, &rphy->phy_cfg->chg_det.vdp_src_en, en); in rockchip_chg_enable_primary_det() 228 property_enable(base, &rphy->phy_cfg->chg_det.idm_sink_en, en); in rockchip_chg_enable_primary_det() 236 property_enable(base, &rphy->phy_cfg->chg_det.vdm_src_en, en); in rockchip_chg_enable_secondary_det() 237 property_enable(base, &rphy->phy_cfg->chg_det.idp_sink_en, en); in rockchip_chg_enable_secondary_det() 293 property_enable(base, &port_cfg->phy_sus, true); in rockchip_chg_get_type() 294 property_enable(base, &rphy->phy_cfg->chg_det.opmode, false); in rockchip_chg_get_type() 358 property_enable(base, &rphy->phy_cfg->chg_det.opmode, true); in rockchip_chg_get_type() [all …]
|
| H A D | phy-rockchip-typec.c | 176 static inline int property_enable(struct rockchip_typec_phy *tcphy, in property_enable() function 190 property_enable(tcphy, &cfg->usb3tousb2_en, value); in tcphy_cfg_usb3_to_usb2_only() 191 property_enable(tcphy, &cfg->usb3host_disable, value); in tcphy_cfg_usb3_to_usb2_only() 192 property_enable(tcphy, &cfg->usb3host_port, !value); in tcphy_cfg_usb3_to_usb2_only() 205 property_enable(tcphy, &cfg->typec_conn_dir, tcphy->flip); in tcphy_phy_init() 458 property_enable(tcphy, &cfg->external_psm, 1); in typec_phy_pre_init() 459 property_enable(tcphy, &cfg->usb3tousb2_en, 0); in typec_phy_pre_init()
|