Home
last modified time | relevance | path

Searched refs:grf (Results 1 – 7 of 7) sorted by relevance

/drivers/net/ethernet/stmicro/stmmac/
Ddwmac-rk.c66 struct regmap *grf; member
108 if (IS_ERR(bsp_priv->grf)) { in rk3288_set_to_rgmii()
113 regmap_write(bsp_priv->grf, RK3288_GRF_SOC_CON1, in rk3288_set_to_rgmii()
116 regmap_write(bsp_priv->grf, RK3288_GRF_SOC_CON3, in rk3288_set_to_rgmii()
127 if (IS_ERR(bsp_priv->grf)) { in rk3288_set_to_rmii()
132 regmap_write(bsp_priv->grf, RK3288_GRF_SOC_CON1, in rk3288_set_to_rmii()
140 if (IS_ERR(bsp_priv->grf)) { in rk3288_set_rgmii_speed()
146 regmap_write(bsp_priv->grf, RK3288_GRF_SOC_CON1, in rk3288_set_rgmii_speed()
149 regmap_write(bsp_priv->grf, RK3288_GRF_SOC_CON1, in rk3288_set_rgmii_speed()
152 regmap_write(bsp_priv->grf, RK3288_GRF_SOC_CON1, in rk3288_set_rgmii_speed()
[all …]
/drivers/net/ethernet/arc/
Demac_rockchip.c43 struct regmap *grf; member
70 err = regmap_write(emac->grf, emac->soc_data->grf_offset, data); in emac_rockchip_set_mac_speed()
120 priv->grf = syscon_regmap_lookup_by_phandle(dev->of_node, "rockchip,grf"); in emac_rockchip_probe()
121 if (IS_ERR(priv->grf)) { in emac_rockchip_probe()
122 dev_err(dev, "failed to retrieve global register file (%ld)\n", PTR_ERR(priv->grf)); in emac_rockchip_probe()
123 err = PTR_ERR(priv->grf); in emac_rockchip_probe()
179 err = regmap_write(priv->grf, priv->soc_data->grf_offset, data); in emac_rockchip_probe()
/drivers/phy/
Dphy-rockchip-usb.c99 struct regmap *grf; in rockchip_usb_phy_probe() local
103 grf = syscon_regmap_lookup_by_phandle(dev->of_node, "rockchip,grf"); in rockchip_usb_phy_probe()
104 if (IS_ERR(grf)) { in rockchip_usb_phy_probe()
106 return PTR_ERR(grf); in rockchip_usb_phy_probe()
124 rk_phy->reg_base = grf; in rockchip_usb_phy_probe()
/drivers/power/avs/
Drockchip-io-domain.c70 struct regmap *grf; member
89 ret = regmap_write(iod->grf, iod->soc_data->grf_offset, val); in rockchip_iodomain_write()
160 ret = regmap_write(iod->grf, RK3288_SOC_CON2, val); in rk3288_iodomain_init()
179 ret = regmap_write(iod->grf, RK3368_SOC_CON15, val); in rk3368_iodomain_init()
296 iod->grf = syscon_regmap_lookup_by_phandle(np, "rockchip,grf"); in rockchip_iodomain_probe()
297 if (IS_ERR(iod->grf)) { in rockchip_iodomain_probe()
299 return PTR_ERR(iod->grf); in rockchip_iodomain_probe()
/drivers/clk/rockchip/
Dclk-pll.c89 struct regmap *grf = rockchip_clk_get_grf(); in rockchip_pll_wait_lock() local
94 ret = regmap_read(grf, pll->lock_offset, &val); in rockchip_pll_wait_lock()
238 struct regmap *grf = rockchip_clk_get_grf(); in rockchip_rk3066_pll_set_rate() local
240 if (IS_ERR(grf)) { in rockchip_rk3066_pll_set_rate()
243 return PTR_ERR(grf); in rockchip_rk3066_pll_set_rate()
311 struct regmap *grf = rockchip_clk_get_grf(); in rockchip_rk3066_pll_init() local
313 if (IS_ERR(grf)) in rockchip_rk3066_pll_init()
Dclk.c167 static struct regmap *grf; variable
174 grf = ERR_PTR(-EPROBE_DEFER); in rockchip_clk_init()
187 if (IS_ERR(grf)) in rockchip_clk_get_grf()
188 grf = syscon_regmap_lookup_by_phandle(cru_node, "rockchip,grf"); in rockchip_clk_get_grf()
189 return grf; in rockchip_clk_get_grf()
/drivers/i2c/busses/
Di2c-rk3x.c946 struct regmap *grf; in rk3x_i2c_probe() local
948 grf = syscon_regmap_lookup_by_phandle(np, "rockchip,grf"); in rk3x_i2c_probe()
949 if (IS_ERR(grf)) { in rk3x_i2c_probe()
952 return PTR_ERR(grf); in rk3x_i2c_probe()
963 ret = regmap_write(grf, i2c->soc_data->grf_offset, value); in rk3x_i2c_probe()