/drivers/net/ethernet/stmicro/stmmac/ |
D | dwmac-rk.c | 82 struct regmap *grf; member 108 if (IS_ERR(bsp_priv->grf)) { in px30_set_to_rmii() 113 regmap_write(bsp_priv->grf, PX30_GRF_GMAC_CON1, in px30_set_to_rmii() 129 regmap_write(bsp_priv->grf, PX30_GRF_GMAC_CON1, in px30_set_rmii_speed() 137 regmap_write(bsp_priv->grf, PX30_GRF_GMAC_CON1, in px30_set_rmii_speed() 188 if (IS_ERR(bsp_priv->grf)) { in rk3128_set_to_rgmii() 193 regmap_write(bsp_priv->grf, RK3128_GRF_MAC_CON1, in rk3128_set_to_rgmii() 196 regmap_write(bsp_priv->grf, RK3128_GRF_MAC_CON0, in rk3128_set_to_rgmii() 206 if (IS_ERR(bsp_priv->grf)) { in rk3128_set_to_rmii() 211 regmap_write(bsp_priv->grf, RK3128_GRF_MAC_CON1, in rk3128_set_to_rmii() [all …]
|
/drivers/phy/rockchip/ |
D | phy-rockchip-usb.c | 56 int (*init_usb_uart)(struct regmap *grf, 324 static int __init rockchip_init_usb_uart_common(struct regmap *grf, in rockchip_init_usb_uart_common() argument 342 ret = regmap_write(grf, regoffs + UOC_CON0, val); in rockchip_init_usb_uart_common() 348 ret = regmap_write(grf, regoffs + UOC_CON2, val); in rockchip_init_usb_uart_common() 359 ret = regmap_write(grf, UOC_CON3, val); in rockchip_init_usb_uart_common() 374 static int __init rk3188_init_usb_uart(struct regmap *grf, in rk3188_init_usb_uart() argument 380 ret = rockchip_init_usb_uart_common(grf, pdata); in rk3188_init_usb_uart() 388 ret = regmap_write(grf, RK3188_UOC0_CON0, val); in rk3188_init_usb_uart() 424 static int __init rk3288_init_usb_uart(struct regmap *grf, in rk3288_init_usb_uart() argument 430 ret = rockchip_init_usb_uart_common(grf, pdata); in rk3288_init_usb_uart() [all …]
|
D | phy-rockchip-dp.c | 28 struct regmap *grf; member 38 ret = regmap_write(dp->grf, GRF_SOC_CON12, in rockchip_set_phy_state() 50 ret = regmap_write(dp->grf, GRF_SOC_CON12, in rockchip_set_phy_state() 107 dp->grf = syscon_node_to_regmap(dev->parent->of_node); in rockchip_dp_phy_probe() 108 if (IS_ERR(dp->grf)) { in rockchip_dp_phy_probe() 110 return PTR_ERR(dp->grf); in rockchip_dp_phy_probe() 113 ret = regmap_write(dp->grf, GRF_SOC_CON12, GRF_EDP_REF_CLK_SEL_INTER | in rockchip_dp_phy_probe()
|
D | phy-rockchip-inno-usb2.c | 223 struct regmap *grf; member 239 return rphy->usbgrf == NULL ? rphy->grf : rphy->usbgrf; in get_reg_base() 420 ret = property_enable(rphy->grf, in rockchip_usb2phy_init() 426 ret = property_enable(rphy->grf, in rockchip_usb2phy_init() 433 ret = property_enable(rphy->grf, in rockchip_usb2phy_init() 439 ret = property_enable(rphy->grf, in rockchip_usb2phy_init() 453 ret = property_enable(rphy->grf, in rockchip_usb2phy_init() 458 ret = property_enable(rphy->grf, in rockchip_usb2phy_init() 555 vbus_attach = property_enabled(rphy->grf, in rockchip_usb2phy_otg_sm_work() 729 is_dcd = property_enabled(rphy->grf, in rockchip_chg_detect_work() [all …]
|
D | phy-rockchip-emmc.c | 353 struct regmap *grf; in rockchip_emmc_phy_probe() local 360 grf = syscon_node_to_regmap(dev->parent->of_node); in rockchip_emmc_phy_probe() 361 if (IS_ERR(grf)) { in rockchip_emmc_phy_probe() 363 return PTR_ERR(grf); in rockchip_emmc_phy_probe() 377 rk_phy->reg_base = grf; in rockchip_emmc_phy_probe()
|
D | phy-rockchip-pcie.c | 367 struct regmap *grf; in rockchip_pcie_phy_probe() local 372 grf = syscon_node_to_regmap(dev->parent->of_node); in rockchip_pcie_phy_probe() 373 if (IS_ERR(grf)) { in rockchip_pcie_phy_probe() 375 return PTR_ERR(grf); in rockchip_pcie_phy_probe() 387 rk_phy->reg_base = grf; in rockchip_pcie_phy_probe()
|
D | phy-rockchip-inno-csidphy.c | 135 struct regmap *grf; member 149 regmap_write(priv->grf, reg->offset, in write_grf_reg() 420 priv->grf = syscon_regmap_lookup_by_phandle(dev->of_node, in rockchip_inno_csidphy_probe() 422 if (IS_ERR(priv->grf)) { in rockchip_inno_csidphy_probe() 424 return PTR_ERR(priv->grf); in rockchip_inno_csidphy_probe()
|
D | phy-rockchip-dphy-rx0.c | 151 struct regmap *grf; member 170 regmap_write(priv->grf, reg->offset, val); in rk_dphy_write_grf() 343 priv->grf = syscon_node_to_regmap(dev->parent->of_node); in rk_dphy_probe() 344 if (IS_ERR(priv->grf)) { in rk_dphy_probe()
|
/drivers/soc/rockchip/ |
D | io-domain.c | 76 struct regmap *grf; member 98 regmap_write(iod->grf, RK3568_PMU_GRF_IO_VSEL2, val0); in rk3568_iodomain_write() 99 regmap_write(iod->grf, RK3568_PMU_GRF_IO_VSEL2, val1); in rk3568_iodomain_write() 113 regmap_write(iod->grf, RK3568_PMU_GRF_IO_VSEL0, val0); in rk3568_iodomain_write() 114 regmap_write(iod->grf, RK3568_PMU_GRF_IO_VSEL1, val1); in rk3568_iodomain_write() 137 ret = regmap_write(iod->grf, iod->soc_data->grf_offset, val); in rockchip_iodomain_write() 208 ret = regmap_write(iod->grf, PX30_IO_VSEL, val); in px30_iodomain_init() 227 ret = regmap_write(iod->grf, RK3288_SOC_CON2, val); in rk3288_iodomain_init() 246 ret = regmap_write(iod->grf, RK3328_SOC_CON4, val); in rk3328_iodomain_init() 265 ret = regmap_write(iod->grf, RK3368_SOC_CON15, val); in rk3368_iodomain_init() [all …]
|
D | grf.c | 159 struct regmap *grf; in rockchip_grf_init() local 174 grf = syscon_node_to_regmap(np); in rockchip_grf_init() 176 if (IS_ERR(grf)) { in rockchip_grf_init() 178 return PTR_ERR(grf); in rockchip_grf_init() 186 ret = regmap_write(grf, val->reg, val->val); in rockchip_grf_init()
|
D | Makefile | 5 obj-$(CONFIG_ROCKCHIP_GRF) += grf.o
|
/drivers/thermal/ |
D | rockchip_thermal.c | 110 void (*initialize)(struct regmap *grf, 164 struct regmap *grf; member 661 static void rk_tsadcv2_initialize(struct regmap *grf, void __iomem *regs, in rk_tsadcv2_initialize() argument 700 static void rk_tsadcv3_initialize(struct regmap *grf, void __iomem *regs, in rk_tsadcv3_initialize() argument 704 if (IS_ERR(grf)) { in rk_tsadcv3_initialize() 720 regmap_write(grf, GRF_TSADC_TESTBIT_L, GRF_TSADC_VCM_EN_L); in rk_tsadcv3_initialize() 721 regmap_write(grf, GRF_TSADC_TESTBIT_H, GRF_TSADC_VCM_EN_H); in rk_tsadcv3_initialize() 724 regmap_write(grf, GRF_SARADC_TESTBIT, GRF_SARADC_TESTBIT_ON); in rk_tsadcv3_initialize() 725 regmap_write(grf, GRF_TSADC_TESTBIT_H, GRF_TSADC_TESTBIT_H_ON); in rk_tsadcv3_initialize() 746 static void rk_tsadcv4_initialize(struct regmap *grf, void __iomem *regs, in rk_tsadcv4_initialize() argument [all …]
|
/drivers/net/ethernet/arc/ |
D | emac_rockchip.c | 29 struct regmap *grf; member 55 err = regmap_write(emac->grf, emac->soc_data->grf_offset, data); in emac_rockchip_set_mac_speed() 127 priv->grf = syscon_regmap_lookup_by_phandle(dev->of_node, in emac_rockchip_probe() 129 if (IS_ERR(priv->grf)) { in emac_rockchip_probe() 131 PTR_ERR(priv->grf)); in emac_rockchip_probe() 132 err = PTR_ERR(priv->grf); in emac_rockchip_probe() 187 err = regmap_write(priv->grf, priv->soc_data->grf_offset, data); in emac_rockchip_probe()
|
/drivers/gpu/drm/rockchip/ |
D | rockchip_lvds.c | 52 struct regmap *grf; member 233 ret = regmap_write(lvds->grf, RK3288_LVDS_GRF_SOC_CON7, val); in rk3288_lvds_poweroff() 266 ret = regmap_write(lvds->grf, RK3288_LVDS_GRF_SOC_CON7, val); in rk3288_lvds_grf_config() 287 ret = regmap_write(lvds->grf, RK3288_LVDS_GRF_SOC_CON6, val); in rk3288_lvds_set_vop_source() 346 ret = regmap_update_bits(lvds->grf, PX30_LVDS_GRF_PD_VO_CON1, in px30_lvds_poweron() 357 regmap_update_bits(lvds->grf, PX30_LVDS_GRF_PD_VO_CON1, in px30_lvds_poweroff() 376 return regmap_update_bits(lvds->grf, PX30_LVDS_GRF_PD_VO_CON1, in px30_lvds_grf_config() 390 return regmap_update_bits(lvds->grf, PX30_LVDS_GRF_PD_VO_CON1, in px30_lvds_set_vop_source() 500 ret = regmap_update_bits(lvds->grf, PX30_LVDS_GRF_PD_VO_CON1, in px30_lvds_probe() 718 lvds->grf = syscon_regmap_lookup_by_phandle(dev->of_node, in rockchip_lvds_probe() [all …]
|
D | analogix_dp-rockchip.c | 65 struct regmap *grf; member 211 ret = regmap_write(dp->grf, dp->data->lcdsel_grf_reg, val); in rockchip_dp_drm_encoder_enable() 277 dp->grf = syscon_regmap_lookup_by_phandle(np, "rockchip,grf"); in rockchip_dp_of_probe() 278 if (IS_ERR(dp->grf)) { in rockchip_dp_of_probe() 280 return PTR_ERR(dp->grf); in rockchip_dp_of_probe()
|
D | cdn-dp-core.h | 85 struct regmap *grf; member
|
D | cdn-dp-core.c | 80 ret = regmap_write(dp->grf, reg, val); in cdn_dp_grf_write() 720 dp->grf = syscon_regmap_lookup_by_phandle(np, "rockchip,grf"); in cdn_dp_parse_dt() 721 if (IS_ERR(dp->grf)) { in cdn_dp_parse_dt() 723 return PTR_ERR(dp->grf); in cdn_dp_parse_dt()
|
D | rockchip_drm_vop2.c | 195 struct regmap *grf; member 1443 regmap_write(vop2->grf, RK3568_GRF_VO_CON1, BIT(3 + 16) | BIT(3)); in rk3568_set_intf_mux() 1445 regmap_write(vop2->grf, RK3568_GRF_VO_CON1, BIT(3 + 16)); in rk3568_set_intf_mux() 2663 vop2->grf = syscon_regmap_lookup_by_phandle(dev->of_node, "rockchip,grf"); in vop2_bind()
|
/drivers/i2c/busses/ |
D | i2c-rk3x.c | 1284 struct regmap *grf; in rk3x_i2c_probe() local 1286 grf = syscon_regmap_lookup_by_phandle(np, "rockchip,grf"); in rk3x_i2c_probe() 1287 if (IS_ERR(grf)) { in rk3x_i2c_probe() 1290 return PTR_ERR(grf); in rk3x_i2c_probe() 1301 ret = regmap_write(grf, i2c->soc_data->grf_offset, value); in rk3x_i2c_probe()
|
/drivers/media/platform/rockchip/rga/ |
D | rga.h | 69 struct regmap *grf; member
|
/drivers/clk/rockchip/ |
D | clk-pll.c | 88 struct regmap *grf = pll->ctx->grf; in rockchip_pll_wait_lock() local 92 ret = regmap_read_poll_timeout(grf, pll->lock_offset, val, in rockchip_pll_wait_lock() 949 if (!pll->rate_table || IS_ERR(ctx->grf)) in rockchip_clk_register_pll()
|
D | clk.c | 384 ctx->grf = syscon_regmap_lookup_by_phandle(ctx->cru_node, in rockchip_clk_init() 470 flags, ctx->grf, list->muxdiv_offset, in rockchip_clk_register_branches()
|
D | clk.h | 287 struct regmap *grf; member 440 int flags, struct regmap *grf, int reg,
|