Searched refs:periph_regs (Results 1 – 5 of 5) sorted by relevance
/drivers/reset/ |
D | reset-pistachio.c | 24 struct regmap *periph_regs; member 76 return regmap_update_bits(rd->periph_regs, PISTACHIO_SOFT_RESET, in pistachio_reset_assert() 93 return regmap_update_bits(rd->periph_regs, PISTACHIO_SOFT_RESET, in pistachio_reset_deassert() 112 rd->periph_regs = syscon_node_to_regmap(np->parent); in pistachio_reset_probe() 113 if (IS_ERR(rd->periph_regs)) in pistachio_reset_probe() 114 return PTR_ERR(rd->periph_regs); in pistachio_reset_probe()
|
/drivers/clk/tegra/ |
D | clk.c | 35 static const struct tegra_clk_periph_regs periph_regs[] = { variable 110 clk_base + periph_regs[id / 32].rst_set_reg); in tegra_clk_rst_assert() 124 clk_base + periph_regs[id / 32].rst_clr_reg); in tegra_clk_rst_deassert() 152 return &periph_regs[reg_bank]; in get_reg_bank() 179 readl_relaxed(clk_base + periph_regs[i].enb_reg); in tegra_clk_periph_suspend() 183 readl_relaxed(clk_base + periph_regs[i].rst_reg); in tegra_clk_periph_suspend() 193 clk_base + periph_regs[i].enb_reg); in tegra_clk_periph_resume() 203 clk_base + periph_regs[i].rst_reg); in tegra_clk_periph_resume() 222 if (WARN_ON(banks > ARRAY_SIZE(periph_regs))) in tegra_clk_init()
|
/drivers/clocksource/ |
D | timer-pistachio.c | 154 struct regmap *periph_regs; in pistachio_clksrc_of_init() local 164 periph_regs = syscon_regmap_lookup_by_phandle(node, "img,cr-periph"); in pistachio_clksrc_of_init() 165 if (IS_ERR(periph_regs)) { in pistachio_clksrc_of_init() 167 PTR_ERR(periph_regs)); in pistachio_clksrc_of_init() 168 return PTR_ERR(periph_regs); in pistachio_clksrc_of_init() 172 ret = regmap_update_bits(periph_regs, PERIP_TIMER_CONTROL, in pistachio_clksrc_of_init()
|
/drivers/pwm/ |
D | pwm-img.c | 67 struct regmap *periph_regs; member 167 regmap_update_bits(pwm_chip->periph_regs, PERIP_PWM_PDM_CONTROL, in img_pwm_enable() 263 pwm->periph_regs = syscon_regmap_lookup_by_phandle(pdev->dev.of_node, in img_pwm_probe() 265 if (IS_ERR(pwm->periph_regs)) in img_pwm_probe() 266 return PTR_ERR(pwm->periph_regs); in img_pwm_probe() 381 regmap_update_bits(pwm_chip->periph_regs, in img_pwm_resume()
|
/drivers/dma/ |
D | img-mdc-dma.c | 138 struct regmap *periph_regs; member 840 regmap_update_bits(mdma->periph_regs, in pistachio_mdc_enable_chan() 852 regmap_update_bits(mdma->periph_regs, in pistachio_mdc_disable_chan() 906 mdma->periph_regs = syscon_regmap_lookup_by_phandle(pdev->dev.of_node, in mdc_dma_probe() 908 if (IS_ERR(mdma->periph_regs)) in mdc_dma_probe() 909 return PTR_ERR(mdma->periph_regs); in mdc_dma_probe()
|