Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/phy/rockchip/
Dphy-rockchip-pcie.c96 struct rockchip_pcie_phy *rk_phy = dev_get_drvdata(dev); in rockchip_pcie_phy_of_xlate() local
99 return rk_phy->phys[0].phy; in rockchip_pcie_phy_of_xlate()
104 return rk_phy->phys[args->args[0]].phy; in rockchip_pcie_phy_of_xlate()
108 static inline void phy_wr_cfg(struct rockchip_pcie_phy *rk_phy, in phy_wr_cfg() argument
111 regmap_write(rk_phy->reg_base, rk_phy->phy_data->pcie_conf, in phy_wr_cfg()
119 regmap_write(rk_phy->reg_base, rk_phy->phy_data->pcie_conf, in phy_wr_cfg()
124 regmap_write(rk_phy->reg_base, rk_phy->phy_data->pcie_conf, in phy_wr_cfg()
130 static inline u32 phy_rd_cfg(struct rockchip_pcie_phy *rk_phy, in phy_rd_cfg() argument
135 regmap_write(rk_phy->reg_base, rk_phy->phy_data->pcie_conf, in phy_rd_cfg()
139 regmap_read(rk_phy->reg_base, in phy_rd_cfg()
[all …]
Dphy-rockchip-emmc.c94 struct rockchip_emmc_phy *rk_phy = phy_get_drvdata(phy); in rockchip_emmc_phy_power() local
105 regmap_write(rk_phy->reg_base, in rockchip_emmc_phy_power()
106 rk_phy->reg_offset + GRF_EMMCPHY_CON6, in rockchip_emmc_phy_power()
110 regmap_write(rk_phy->reg_base, in rockchip_emmc_phy_power()
111 rk_phy->reg_offset + GRF_EMMCPHY_CON6, in rockchip_emmc_phy_power()
120 rate = clk_get_rate(rk_phy->emmcclk); in rockchip_emmc_phy_power()
163 regmap_write(rk_phy->reg_base, in rockchip_emmc_phy_power()
164 rk_phy->reg_offset + GRF_EMMCPHY_CON6, in rockchip_emmc_phy_power()
176 ret = regmap_read_poll_timeout(rk_phy->reg_base, in rockchip_emmc_phy_power()
177 rk_phy->reg_offset + GRF_EMMCPHY_STATUS, in rockchip_emmc_phy_power()
[all …]
Dphy-rockchip-usb.c183 struct rockchip_usb_phy *rk_phy = data; in rockchip_usb_phy_action() local
185 if (!rk_phy->uart_enabled) { in rockchip_usb_phy_action()
186 of_clk_del_provider(rk_phy->np); in rockchip_usb_phy_action()
187 clk_unregister(rk_phy->clk480m); in rockchip_usb_phy_action()
190 if (rk_phy->clk) in rockchip_usb_phy_action()
191 clk_put(rk_phy->clk); in rockchip_usb_phy_action()
197 struct rockchip_usb_phy *rk_phy; in rockchip_usb_phy_init() local
203 rk_phy = devm_kzalloc(base->dev, sizeof(*rk_phy), GFP_KERNEL); in rockchip_usb_phy_init()
204 if (!rk_phy) in rockchip_usb_phy_init()
207 rk_phy->base = base; in rockchip_usb_phy_init()
[all …]