Lines Matching refs:pmc
116 at91_pmc_t *pmc = (at91_pmc_t *) ATMEL_BASE_PMC; in at91_clock_init() local
127 tmp = readl(&pmc->mcfr); in at91_clock_init()
136 gd->arch.plla_rate_hz = at91_pll_rate(main_clock, readl(&pmc->pllar)); in at91_clock_init()
155 mckr = readl(&pmc->mckr); in at91_clock_init()
204 struct at91_pmc *pmc = (struct at91_pmc *)ATMEL_BASE_PMC; in at91_plla_init() local
206 writel(pllar, &pmc->pllar); in at91_plla_init()
207 while (!(readl(&pmc->sr) & AT91_PMC_LOCKA)) in at91_plla_init()
212 struct at91_pmc *pmc = (struct at91_pmc *)ATMEL_BASE_PMC; in at91_pllb_init() local
214 writel(pllbr, &pmc->pllbr); in at91_pllb_init()
215 while (!(readl(&pmc->sr) & AT91_PMC_LOCKB)) in at91_pllb_init()
221 struct at91_pmc *pmc = (struct at91_pmc *)ATMEL_BASE_PMC; in at91_mck_init() local
224 tmp = readl(&pmc->mckr); in at91_mck_init()
227 writel(tmp, &pmc->mckr); in at91_mck_init()
228 while (!(readl(&pmc->sr) & AT91_PMC_MCKRDY)) in at91_mck_init()
231 tmp = readl(&pmc->mckr); in at91_mck_init()
234 writel(tmp, &pmc->mckr); in at91_mck_init()
235 while (!(readl(&pmc->sr) & AT91_PMC_MCKRDY)) in at91_mck_init()
238 tmp = readl(&pmc->mckr); in at91_mck_init()
241 writel(tmp, &pmc->mckr); in at91_mck_init()
242 while (!(readl(&pmc->sr) & AT91_PMC_MCKRDY)) in at91_mck_init()
245 tmp = readl(&pmc->mckr); in at91_mck_init()
248 writel(tmp, &pmc->mckr); in at91_mck_init()
249 while (!(readl(&pmc->sr) & AT91_PMC_MCKRDY)) in at91_mck_init()
255 struct at91_pmc *pmc = (at91_pmc_t *)ATMEL_BASE_PMC; in at91_pllb_clk_enable() local
259 writel(pllbr, &pmc->pllbr); in at91_pllb_clk_enable()
260 while ((readl(&pmc->sr) & AT91_PMC_LOCKB) != AT91_PMC_LOCKB) { in at91_pllb_clk_enable()
273 struct at91_pmc *pmc = (at91_pmc_t *)ATMEL_BASE_PMC; in at91_pllb_clk_disable() local
277 writel(0, &pmc->pllbr); in at91_pllb_clk_disable()
278 while ((readl(&pmc->sr) & AT91_PMC_LOCKB) != 0) { in at91_pllb_clk_disable()