/drivers/net/ethernet/stmicro/stmmac/ |
D | dwmac-rk.c | 68 struct regmap *grf; member 110 if (IS_ERR(bsp_priv->grf)) { in rk3228_set_to_rgmii() 115 regmap_write(bsp_priv->grf, RK3228_GRF_MAC_CON1, in rk3228_set_to_rgmii() 121 regmap_write(bsp_priv->grf, RK3228_GRF_MAC_CON0, in rk3228_set_to_rgmii() 130 if (IS_ERR(bsp_priv->grf)) { in rk3228_set_to_rmii() 135 regmap_write(bsp_priv->grf, RK3228_GRF_MAC_CON1, in rk3228_set_to_rmii() 140 regmap_write(bsp_priv->grf, RK3228_GRF_MAC_CON1, GRF_BIT(11)); in rk3228_set_to_rmii() 147 if (IS_ERR(bsp_priv->grf)) { in rk3228_set_rgmii_speed() 153 regmap_write(bsp_priv->grf, RK3228_GRF_MAC_CON1, in rk3228_set_rgmii_speed() 156 regmap_write(bsp_priv->grf, RK3228_GRF_MAC_CON1, in rk3228_set_rgmii_speed() [all …]
|
/drivers/phy/ |
D | phy-rockchip-usb.c | 49 int (*init_usb_uart)(struct regmap *grf); 337 static int __init rk3288_init_usb_uart(struct regmap *grf) in rk3288_init_usb_uart() argument 353 ret = regmap_write(grf, RK3288_UOC0_CON0, val); in rk3288_init_usb_uart() 359 ret = regmap_write(grf, RK3288_UOC0_CON2, val); in rk3288_init_usb_uart() 370 ret = regmap_write(grf, RK3288_UOC0_CON3, val); in rk3288_init_usb_uart() 378 ret = regmap_write(grf, RK3288_UOC0_CON3, val); in rk3288_init_usb_uart() 467 struct regmap *grf; in rockchip_init_usb_uart() local 489 grf = ERR_PTR(-ENODEV); in rockchip_init_usb_uart() 491 grf = syscon_node_to_regmap(np->parent); in rockchip_init_usb_uart() 492 if (IS_ERR(grf)) in rockchip_init_usb_uart() [all …]
|
D | phy-rockchip-dp.c | 31 struct regmap *grf; member 41 ret = regmap_write(dp->grf, GRF_SOC_CON12, in rockchip_set_phy_state() 53 ret = regmap_write(dp->grf, GRF_SOC_CON12, in rockchip_set_phy_state() 110 dp->grf = syscon_node_to_regmap(dev->parent->of_node); in rockchip_dp_phy_probe() 111 if (IS_ERR(dp->grf)) { in rockchip_dp_phy_probe() 113 return PTR_ERR(dp->grf); in rockchip_dp_phy_probe() 116 ret = regmap_write(dp->grf, GRF_SOC_CON12, GRF_EDP_REF_CLK_SEL_INTER | in rockchip_dp_phy_probe()
|
D | phy-rockchip-emmc.c | 327 struct regmap *grf; in rockchip_emmc_phy_probe() local 333 grf = syscon_node_to_regmap(dev->parent->of_node); in rockchip_emmc_phy_probe() 334 if (IS_ERR(grf)) { in rockchip_emmc_phy_probe() 336 return PTR_ERR(grf); in rockchip_emmc_phy_probe() 350 rk_phy->reg_base = grf; in rockchip_emmc_phy_probe()
|
D | phy-rockchip-pcie.c | 288 struct regmap *grf; in rockchip_pcie_phy_probe() local 291 grf = syscon_node_to_regmap(dev->parent->of_node); in rockchip_pcie_phy_probe() 292 if (IS_ERR(grf)) { in rockchip_pcie_phy_probe() 294 return PTR_ERR(grf); in rockchip_pcie_phy_probe() 306 rk_phy->reg_base = grf; in rockchip_pcie_phy_probe()
|
D | phy-rockchip-inno-usb2.c | 121 struct regmap *grf; member 138 return regmap_write(rphy->grf, reg->offset, val); in property_enable() 148 ret = regmap_read(rphy->grf, reg->offset, &orig); in property_enabled() 383 ret = regmap_read(rphy->grf, rport->port_cfg->utmi_ls.offset, &ul); in rockchip_usb2phy_sm_work() 387 ret = regmap_read(rphy->grf, rport->port_cfg->utmi_hstdet.offset, in rockchip_usb2phy_sm_work() 544 rphy->grf = syscon_node_to_regmap(dev->parent->of_node); in rockchip_usb2phy_probe() 545 if (IS_ERR(rphy->grf)) in rockchip_usb2phy_probe() 546 return PTR_ERR(rphy->grf); in rockchip_usb2phy_probe()
|
/drivers/power/avs/ |
D | rockchip-io-domain.c | 74 struct regmap *grf; member 93 ret = regmap_write(iod->grf, iod->soc_data->grf_offset, val); in rockchip_iodomain_write() 164 ret = regmap_write(iod->grf, RK3288_SOC_CON2, val); in rk3288_iodomain_init() 183 ret = regmap_write(iod->grf, RK3368_SOC_CON15, val); in rk3368_iodomain_init() 202 ret = regmap_write(iod->grf, RK3399_PMUGRF_CON0, val); in rk3399_pmu_iodomain_init() 357 iod->grf = syscon_node_to_regmap(parent->of_node); in rockchip_iodomain_probe() 360 iod->grf = syscon_regmap_lookup_by_phandle(np, "rockchip,grf"); in rockchip_iodomain_probe() 363 if (IS_ERR(iod->grf)) { in rockchip_iodomain_probe() 365 return PTR_ERR(iod->grf); in rockchip_iodomain_probe()
|
/drivers/net/ethernet/arc/ |
D | emac_rockchip.c | 39 struct regmap *grf; member 65 err = regmap_write(emac->grf, emac->soc_data->grf_offset, data); in emac_rockchip_set_mac_speed() 135 priv->grf = syscon_regmap_lookup_by_phandle(dev->of_node, in emac_rockchip_probe() 137 if (IS_ERR(priv->grf)) { in emac_rockchip_probe() 139 PTR_ERR(priv->grf)); in emac_rockchip_probe() 140 err = PTR_ERR(priv->grf); in emac_rockchip_probe() 195 err = regmap_write(priv->grf, priv->soc_data->grf_offset, data); in emac_rockchip_probe()
|
/drivers/thermal/ |
D | rockchip_thermal.c | 115 void (*initialize)(struct regmap *grf, 169 struct regmap *grf; member 510 static void rk_tsadcv2_initialize(struct regmap *grf, void __iomem *regs, in rk_tsadcv2_initialize() argument 528 if (IS_ERR(grf)) { in rk_tsadcv2_initialize() 551 static void rk_tsadcv3_initialize(struct regmap *grf, void __iomem *regs, in rk_tsadcv3_initialize() argument 555 if (IS_ERR(grf)) { in rk_tsadcv3_initialize() 571 regmap_write(grf, GRF_TSADC_TESTBIT_L, GRF_TSADC_VCM_EN_L); in rk_tsadcv3_initialize() 572 regmap_write(grf, GRF_TSADC_TESTBIT_H, GRF_TSADC_VCM_EN_H); in rk_tsadcv3_initialize() 575 regmap_write(grf, GRF_SARADC_TESTBIT, GRF_SARADC_TESTBIT_ON); in rk_tsadcv3_initialize() 576 regmap_write(grf, GRF_TSADC_TESTBIT_H, GRF_TSADC_TESTBIT_H_ON); in rk_tsadcv3_initialize() [all …]
|
/drivers/gpu/drm/rockchip/ |
D | analogix_dp-rockchip.c | 71 struct regmap *grf; member 230 ret = regmap_write(dp->grf, dp->data->lcdsel_grf_reg, val); in rockchip_dp_drm_encoder_enable() 298 dp->grf = syscon_regmap_lookup_by_phandle(np, "rockchip,grf"); in rockchip_dp_init() 299 if (IS_ERR(dp->grf)) { in rockchip_dp_init() 301 return PTR_ERR(dp->grf); in rockchip_dp_init()
|
/drivers/clk/rockchip/ |
D | clk-pll.c | 95 struct regmap *grf = pll->ctx->grf; in rockchip_pll_wait_lock() local 100 ret = regmap_read(grf, pll->lock_offset, &val); in rockchip_pll_wait_lock() 919 if (!pll->rate_table || IS_ERR(ctx->grf)) in rockchip_clk_register_pll() 925 if (!pll->rate_table || IS_ERR(ctx->grf)) in rockchip_clk_register_pll()
|
D | clk.c | 347 ctx->grf = ERR_PTR(-EPROBE_DEFER); in rockchip_clk_init() 350 ctx->grf = syscon_regmap_lookup_by_phandle(ctx->cru_node, in rockchip_clk_init()
|
D | clk.h | 163 struct regmap *grf; member
|
/drivers/i2c/busses/ |
D | i2c-rk3x.c | 1232 struct regmap *grf; in rk3x_i2c_probe() local 1234 grf = syscon_regmap_lookup_by_phandle(np, "rockchip,grf"); in rk3x_i2c_probe() 1235 if (IS_ERR(grf)) { in rk3x_i2c_probe() 1238 return PTR_ERR(grf); in rk3x_i2c_probe() 1249 ret = regmap_write(grf, i2c->soc_data->grf_offset, value); in rk3x_i2c_probe()
|