Lines Matching full:grf

86  *			 0: iddig; 1: grf.
103 * @iddig_output: utmi iddig value from grf output.
104 * @iddig_en: select utmi iddig output from grf or phy,
105 * 0: from phy output; 1: from grf output
151 * @reg: the address offset of grf for usb-phy config.
220 * @grf: General Register Files regmap.
238 struct regmap *grf; 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()
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()
442 ret = property_enable(rphy->grf, in rockchip_usb2phy_enable_vbus_irq()
454 ret = property_enable(rphy->grf, &rport->port_cfg->ls_det_clr, true); in rockchip_usb2phy_enable_line_irq()
458 ret = property_enable(rphy->grf, &rport->port_cfg->ls_det_en, en); in rockchip_usb2phy_enable_line_irq()
470 ret = property_enable(rphy->grf, in rockchip_usb2phy_enable_disconn_irq()
475 ret = property_enable(rphy->grf, in rockchip_usb2phy_enable_disconn_irq()
556 property_enabled(rphy->grf, in rockchip_usb2phy_init()
592 ret = property_enable(rphy->grf, &rport->port_cfg->phy_sus, false); in rockchip_usb2phy_power_on()
622 ret = property_enable(rphy->grf, &rport->port_cfg->phy_sus, true); in rockchip_usb2phy_power_off()
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()
814 chg_valid = property_enabled(rphy->grf, in rockchip_chg_detect()
817 property_enabled(rphy->grf, 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()
862 if (!property_enabled(rphy->grf, &rport->port_cfg->disconrise_det_st)) in rockchip_usb2phy_disconnect_irq()
868 property_enable(rphy->grf, &rport->port_cfg->disconrise_det_clr, true); in rockchip_usb2phy_disconnect_irq()
874 if (!property_enabled(rphy->grf, &rport->port_cfg->utmi_hostdet)) in rockchip_usb2phy_disconnect_irq()
895 if (!property_enabled(rphy->grf, &rport->port_cfg->ls_det_st)) in rockchip_usb2phy_linestate_irq()
931 !property_enabled(rphy->grf, &rport->port_cfg->utmi_iddig)) in rockchip_usb2phy_otg_sm_work()
1082 property_enable(rphy->grf, &rport->port_cfg->idpullup, in otg_mode_store()
1084 property_enable(rphy->grf, &rport->port_cfg->iddig_output, in otg_mode_store()
1086 property_enable(rphy->grf, &rport->port_cfg->iddig_en, in otg_mode_store()
1091 property_enable(rphy->grf, &rport->port_cfg->idpullup, in otg_mode_store()
1093 property_enable(rphy->grf, &rport->port_cfg->iddig_output, in otg_mode_store()
1095 property_enable(rphy->grf, &rport->port_cfg->iddig_en, in otg_mode_store()
1100 property_enable(rphy->grf, &rport->port_cfg->iddig_output, in otg_mode_store()
1102 property_enable(rphy->grf, &rport->port_cfg->iddig_en, in otg_mode_store()
1111 rport->mode == USB_DR_MODE_OTG) && property_enabled(rphy->grf, in otg_mode_store()
1141 if (!property_enabled(rphy->grf, &rport->port_cfg->bvalidfall_det_st) && in rockchip_usb2phy_bvalid_irq()
1142 !property_enabled(rphy->grf, &rport->port_cfg->bvalidrise_det_st)) in rockchip_usb2phy_bvalid_irq()
1148 if (property_enabled(rphy->grf, &rport->port_cfg->bvalidfall_det_st)) { in rockchip_usb2phy_bvalid_irq()
1149 property_enable(rphy->grf, &rport->port_cfg->bvalidfall_det_clr, in rockchip_usb2phy_bvalid_irq()
1152 } else if (property_enabled(rphy->grf, in rockchip_usb2phy_bvalid_irq()
1154 property_enable(rphy->grf, &rport->port_cfg->bvalidrise_det_clr, in rockchip_usb2phy_bvalid_irq()
1173 if (!property_enabled(rphy->grf, &rport->port_cfg->idfall_det_st) && in rockchip_usb2phy_id_irq()
1174 !property_enabled(rphy->grf, &rport->port_cfg->idrise_det_st)) in rockchip_usb2phy_id_irq()
1180 if (property_enabled(rphy->grf, &rport->port_cfg->idfall_det_st)) { in rockchip_usb2phy_id_irq()
1181 property_enable(rphy->grf, &rport->port_cfg->idfall_det_clr, in rockchip_usb2phy_id_irq()
1184 } else if (property_enabled(rphy->grf, in rockchip_usb2phy_id_irq()
1186 property_enable(rphy->grf, &rport->port_cfg->idrise_det_clr, in rockchip_usb2phy_id_irq()
1245 property_enable(rphy->grf, &rport->port_cfg->bypass_otgsuspendm, in rockchip_usb2phy_otg_port_init()
1277 property_enable(rphy->grf, &rport->port_cfg->idpullup, false); in rockchip_usb2phy_otg_port_init()
1320 iddig = property_enabled(rphy->grf, in rockchip_usb2phy_otg_port_init()
1363 ret = property_enable(rphy->grf, &rport->port_cfg->phy_sus, true); in rockchip_usb2phy_otg_port_init()
1422 ret = property_enable(rphy->grf, &rport->port_cfg->phy_sus, true); in rockchip_usb2phy_host_port_init()
1461 rphy->grf = syscon_regmap_lookup_by_phandle(np, "rockchip,grf"); in rockchip_usb2phy_probe()
1462 if (IS_ERR(rphy->grf)) in rockchip_usb2phy_probe()
1463 return PTR_ERR(rphy->grf); in rockchip_usb2phy_probe()
1637 ret = regmap_write(rphy->grf, 0x1031c, 0x000f4240); in rv1126_usb2phy_tuning()
1642 ret = regmap_write(rphy->grf, 0x1027c, 0x0f0f0100); in rv1126_usb2phy_tuning()
1673 ret = regmap_write(rphy->grf, 0x1028c, 0x0f0f0100); in rv1126_usb2phy_tuning()
1678 ret = regmap_write(rphy->grf, 0x0000, 0x00040004); in rv1126_usb2phy_tuning()
1725 property_enabled(rphy->grf, in rockchip_usb2phy_pm_suspend()
1785 iddig = property_enabled(rphy->grf, in rockchip_usb2phy_pm_resume()