Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/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()
122 static inline u32 phy_rd_cfg(struct rockchip_pcie_phy *rk_phy, in phy_rd_cfg() argument
127 regmap_write(rk_phy->reg_base, rk_phy->phy_data->pcie_conf, in phy_rd_cfg()
131 regmap_read(rk_phy->reg_base, in phy_rd_cfg()
[all …]
Dphy-rockchip-emmc.c87 struct rockchip_emmc_phy *rk_phy = phy_get_drvdata(phy); in rockchip_emmc_phy_power() local
98 regmap_write(rk_phy->reg_base, in rockchip_emmc_phy_power()
99 rk_phy->reg_offset + GRF_EMMCPHY_CON6, in rockchip_emmc_phy_power()
103 regmap_write(rk_phy->reg_base, in rockchip_emmc_phy_power()
104 rk_phy->reg_offset + GRF_EMMCPHY_CON6, in rockchip_emmc_phy_power()
113 rate = clk_get_rate(rk_phy->emmcclk); in rockchip_emmc_phy_power()
156 regmap_write(rk_phy->reg_base, in rockchip_emmc_phy_power()
157 rk_phy->reg_offset + GRF_EMMCPHY_CON6, in rockchip_emmc_phy_power()
169 ret = regmap_read_poll_timeout(rk_phy->reg_base, in rockchip_emmc_phy_power()
170 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 …]
/kernel/linux/patches/linux-5.10/yangfan_patch/
Ddrivers.patch50127 mutex_lock(&rk_phy->pcie_mutex);
50129 + regmap_write(rk_phy->reg_base,
50130 + rk_phy->phy_data->pcie_laneoff,
50135 if (rk_phy->pwr_cnt++)
50142 - regmap_write(rk_phy->reg_base,
50143 - rk_phy->phy_data->pcie_laneoff,
51224 + struct rockchip_usb_phy *rk_phy = dev_get_drvdata(dev);
51226 + if (!rk_phy) {
51231 + switch (rk_phy->mode) {
51250 + struct rockchip_usb_phy *rk_phy = dev_get_drvdata(dev);
[all …]