Home
last modified time | relevance | path

Searched refs:rk_phy (Results 1 – 3 of 3) sorted by relevance

/drivers/phy/rockchip/
Dphy-rockchip-pcie.c88 struct rockchip_pcie_phy *rk_phy = dev_get_drvdata(dev); in rockchip_pcie_phy_of_xlate() local
91 return rk_phy->phys[0].phy; in rockchip_pcie_phy_of_xlate()
96 return rk_phy->phys[args->args[0]].phy; in rockchip_pcie_phy_of_xlate()
100 static inline void phy_wr_cfg(struct rockchip_pcie_phy *rk_phy, in phy_wr_cfg() argument
103 regmap_write(rk_phy->reg_base, rk_phy->phy_data->pcie_conf, in phy_wr_cfg()
111 regmap_write(rk_phy->reg_base, rk_phy->phy_data->pcie_conf, in phy_wr_cfg()
116 regmap_write(rk_phy->reg_base, rk_phy->phy_data->pcie_conf, in phy_wr_cfg()
125 struct rockchip_pcie_phy *rk_phy = to_pcie_phy(inst); in rockchip_pcie_phy_power_off() local
128 mutex_lock(&rk_phy->pcie_mutex); in rockchip_pcie_phy_power_off()
130 regmap_write(rk_phy->reg_base, in rockchip_pcie_phy_power_off()
[all …]
Dphy-rockchip-emmc.c95 struct rockchip_emmc_phy *rk_phy = phy_get_drvdata(phy); in rockchip_emmc_phy_power() local
106 regmap_write(rk_phy->reg_base, in rockchip_emmc_phy_power()
107 rk_phy->reg_offset + GRF_EMMCPHY_CON6, in rockchip_emmc_phy_power()
111 regmap_write(rk_phy->reg_base, in rockchip_emmc_phy_power()
112 rk_phy->reg_offset + GRF_EMMCPHY_CON6, in rockchip_emmc_phy_power()
121 rate = clk_get_rate(rk_phy->emmcclk); in rockchip_emmc_phy_power()
164 regmap_write(rk_phy->reg_base, in rockchip_emmc_phy_power()
165 rk_phy->reg_offset + GRF_EMMCPHY_CON6, in rockchip_emmc_phy_power()
177 ret = regmap_read_poll_timeout(rk_phy->reg_base, in rockchip_emmc_phy_power()
178 rk_phy->reg_offset + GRF_EMMCPHY_STATUS, in rockchip_emmc_phy_power()
[all …]
Dphy-rockchip-usb.c191 struct rockchip_usb_phy *rk_phy = data; in rockchip_usb_phy_action() local
193 if (!rk_phy->uart_enabled) { in rockchip_usb_phy_action()
194 of_clk_del_provider(rk_phy->np); in rockchip_usb_phy_action()
195 clk_unregister(rk_phy->clk480m); in rockchip_usb_phy_action()
198 if (rk_phy->clk) in rockchip_usb_phy_action()
199 clk_put(rk_phy->clk); in rockchip_usb_phy_action()
205 struct rockchip_usb_phy *rk_phy; in rockchip_usb_phy_init() local
211 rk_phy = devm_kzalloc(base->dev, sizeof(*rk_phy), GFP_KERNEL); in rockchip_usb_phy_init()
212 if (!rk_phy) in rockchip_usb_phy_init()
215 rk_phy->base = base; in rockchip_usb_phy_init()
[all …]