• Home
  • Raw
  • Download

Lines Matching refs:regmap

31 	struct regmap *regmap;  member
54 static inline bool sam9x60_pll_ready(struct regmap *regmap, int id) in sam9x60_pll_ready() argument
58 regmap_read(regmap, AT91_PMC_PLL_ISR0, &status); in sam9x60_pll_ready()
63 static bool sam9x60_frac_pll_ready(struct regmap *regmap, u8 id) in sam9x60_frac_pll_ready() argument
65 return sam9x60_pll_ready(regmap, id); in sam9x60_frac_pll_ready()
82 struct regmap *regmap = core->regmap; in sam9x60_frac_pll_prepare() local
88 regmap_update_bits(regmap, AT91_PMC_PLL_UPDT, in sam9x60_frac_pll_prepare()
90 regmap_read(regmap, AT91_PMC_PLL_CTRL1, &val); in sam9x60_frac_pll_prepare()
94 if (sam9x60_frac_pll_ready(regmap, core->id) && in sam9x60_frac_pll_prepare()
103 regmap_write(regmap, AT91_PMC_PLL_ACR, val); in sam9x60_frac_pll_prepare()
105 regmap_write(regmap, AT91_PMC_PLL_CTRL1, in sam9x60_frac_pll_prepare()
112 regmap_write(regmap, AT91_PMC_PLL_ACR, val); in sam9x60_frac_pll_prepare()
118 regmap_write(regmap, AT91_PMC_PLL_ACR, val); in sam9x60_frac_pll_prepare()
123 regmap_update_bits(regmap, AT91_PMC_PLL_UPDT, in sam9x60_frac_pll_prepare()
127 regmap_update_bits(regmap, AT91_PMC_PLL_CTRL0, in sam9x60_frac_pll_prepare()
131 regmap_update_bits(regmap, AT91_PMC_PLL_UPDT, in sam9x60_frac_pll_prepare()
135 while (!sam9x60_pll_ready(regmap, core->id)) in sam9x60_frac_pll_prepare()
147 struct regmap *regmap = core->regmap; in sam9x60_frac_pll_unprepare() local
152 regmap_update_bits(regmap, AT91_PMC_PLL_UPDT, in sam9x60_frac_pll_unprepare()
155 regmap_update_bits(regmap, AT91_PMC_PLL_CTRL0, AT91_PMC_PLL_CTRL0_ENPLL, 0); in sam9x60_frac_pll_unprepare()
158 regmap_update_bits(regmap, AT91_PMC_PLL_ACR, in sam9x60_frac_pll_unprepare()
161 regmap_update_bits(regmap, AT91_PMC_PLL_UPDT, in sam9x60_frac_pll_unprepare()
172 return sam9x60_pll_ready(core->regmap, core->id); in sam9x60_frac_pll_is_prepared()
237 struct regmap *regmap = core->regmap; in sam9x60_frac_pll_set_rate_chg() local
248 regmap_update_bits(regmap, AT91_PMC_PLL_UPDT, AT91_PMC_PLL_UPDT_ID_MSK, in sam9x60_frac_pll_set_rate_chg()
250 regmap_read(regmap, AT91_PMC_PLL_CTRL1, &val); in sam9x60_frac_pll_set_rate_chg()
257 regmap_write(regmap, AT91_PMC_PLL_CTRL1, in sam9x60_frac_pll_set_rate_chg()
261 regmap_update_bits(regmap, AT91_PMC_PLL_UPDT, in sam9x60_frac_pll_set_rate_chg()
265 regmap_update_bits(regmap, AT91_PMC_PLL_CTRL0, in sam9x60_frac_pll_set_rate_chg()
270 regmap_update_bits(regmap, AT91_PMC_PLL_UPDT, in sam9x60_frac_pll_set_rate_chg()
274 while (!sam9x60_pll_ready(regmap, core->id)) in sam9x60_frac_pll_set_rate_chg()
305 struct regmap *regmap = core->regmap; in sam9x60_div_pll_prepare() local
310 regmap_update_bits(regmap, AT91_PMC_PLL_UPDT, in sam9x60_div_pll_prepare()
312 regmap_read(regmap, AT91_PMC_PLL_CTRL0, &val); in sam9x60_div_pll_prepare()
319 regmap_update_bits(regmap, AT91_PMC_PLL_CTRL0, in sam9x60_div_pll_prepare()
324 regmap_update_bits(regmap, AT91_PMC_PLL_UPDT, in sam9x60_div_pll_prepare()
328 while (!sam9x60_pll_ready(regmap, core->id)) in sam9x60_div_pll_prepare()
340 struct regmap *regmap = core->regmap; in sam9x60_div_pll_unprepare() local
345 regmap_update_bits(regmap, AT91_PMC_PLL_UPDT, in sam9x60_div_pll_unprepare()
348 regmap_update_bits(regmap, AT91_PMC_PLL_CTRL0, in sam9x60_div_pll_unprepare()
351 regmap_update_bits(regmap, AT91_PMC_PLL_UPDT, in sam9x60_div_pll_unprepare()
361 struct regmap *regmap = core->regmap; in sam9x60_div_pll_is_prepared() local
367 regmap_update_bits(regmap, AT91_PMC_PLL_UPDT, in sam9x60_div_pll_is_prepared()
369 regmap_read(regmap, AT91_PMC_PLL_CTRL0, &val); in sam9x60_div_pll_is_prepared()
452 struct regmap *regmap = core->regmap; in sam9x60_div_pll_set_rate_chg() local
459 regmap_update_bits(regmap, AT91_PMC_PLL_UPDT, AT91_PMC_PLL_UPDT_ID_MSK, in sam9x60_div_pll_set_rate_chg()
461 regmap_read(regmap, AT91_PMC_PLL_CTRL0, &val); in sam9x60_div_pll_set_rate_chg()
468 regmap_update_bits(regmap, AT91_PMC_PLL_CTRL0, in sam9x60_div_pll_set_rate_chg()
472 regmap_update_bits(regmap, AT91_PMC_PLL_UPDT, in sam9x60_div_pll_set_rate_chg()
476 while (!sam9x60_pll_ready(regmap, core->id)) in sam9x60_div_pll_set_rate_chg()
504 sam9x60_clk_register_frac_pll(struct regmap *regmap, spinlock_t *lock, in sam9x60_clk_register_frac_pll() argument
538 frac->core.regmap = regmap; in sam9x60_clk_register_frac_pll()
542 if (sam9x60_pll_ready(regmap, id)) { in sam9x60_clk_register_frac_pll()
543 regmap_update_bits(regmap, AT91_PMC_PLL_UPDT, in sam9x60_clk_register_frac_pll()
545 regmap_read(regmap, AT91_PMC_PLL_CTRL1, &val); in sam9x60_clk_register_frac_pll()
587 sam9x60_clk_register_div_pll(struct regmap *regmap, spinlock_t *lock, in sam9x60_clk_register_div_pll() argument
619 div->core.regmap = regmap; in sam9x60_clk_register_div_pll()
624 regmap_update_bits(regmap, AT91_PMC_PLL_UPDT, in sam9x60_clk_register_div_pll()
626 regmap_read(regmap, AT91_PMC_PLL_CTRL0, &val); in sam9x60_clk_register_div_pll()