Home
last modified time | relevance | path

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

/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()
177 err = regmap_write(priv->grf, priv->soc_data->grf_offset, data); in emac_rockchip_probe()
/drivers/power/avs/
Drockchip-io-domain.c66 struct regmap *grf; member
85 ret = regmap_write(iod->grf, iod->soc_data->grf_offset, val); in rockchip_iodomain_write()
156 ret = regmap_write(iod->grf, RK3288_SOC_CON2, val); in rk3288_iodomain_init()
236 iod->grf = syscon_regmap_lookup_by_phandle(np, "rockchip,grf"); in rockchip_iodomain_probe()
237 if (IS_ERR(iod->grf)) { in rockchip_iodomain_probe()
239 return PTR_ERR(iod->grf); in rockchip_iodomain_probe()
/drivers/clk/rockchip/
Dclk.c163 static struct regmap *grf; variable
170 grf = ERR_PTR(-EPROBE_DEFER); in rockchip_clk_init()
183 if (IS_ERR(grf)) in rockchip_clk_get_grf()
184 grf = syscon_regmap_lookup_by_phandle(cru_node, "rockchip,grf"); in rockchip_clk_get_grf()
185 return grf; in rockchip_clk_get_grf()
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()
163 struct regmap *grf = rockchip_clk_get_grf(); in rockchip_rk3066_pll_set_rate() local
170 if (IS_ERR(grf)) { in rockchip_rk3066_pll_set_rate()
173 return PTR_ERR(grf); in rockchip_rk3066_pll_set_rate()
/drivers/i2c/busses/
Di2c-rk3x.c681 struct regmap *grf; in rk3x_i2c_probe() local
683 grf = syscon_regmap_lookup_by_phandle(np, "rockchip,grf"); in rk3x_i2c_probe()
684 if (IS_ERR(grf)) { in rk3x_i2c_probe()
687 return PTR_ERR(grf); in rk3x_i2c_probe()
698 ret = regmap_write(grf, i2c->soc_data->grf_offset, value); in rk3x_i2c_probe()