Home
last modified time | relevance | path

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

/drivers/reset/
Dreset-pistachio.c24 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/
Dclk.c35 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/
Dtimer-pistachio.c154 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/
Dpwm-img.c67 struct regmap *periph_regs; member
167 regmap_update_bits(pwm_chip->periph_regs, PERIP_PWM_PDM_CONTROL, in img_pwm_enable()
261 pwm->periph_regs = syscon_regmap_lookup_by_phandle(pdev->dev.of_node, in img_pwm_probe()
263 if (IS_ERR(pwm->periph_regs)) in img_pwm_probe()
264 return PTR_ERR(pwm->periph_regs); in img_pwm_probe()
380 regmap_update_bits(pwm_chip->periph_regs, in img_pwm_resume()
/drivers/dma/
Dimg-mdc-dma.c138 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()