Lines Matching refs:pmc
58 struct at91_pmc *pmc = (struct at91_pmc *)ATMEL_BASE_PMC; in at91_clock_init() local
69 tmp = readl(&pmc->mcfr); in at91_clock_init()
78 gd->arch.plla_rate_hz = at91_pll_rate(main_clock, readl(&pmc->pllar)); in at91_clock_init()
84 mckr = readl(&pmc->mckr); in at91_clock_init()
117 struct at91_pmc *pmc = (struct at91_pmc *)ATMEL_BASE_PMC; in at91_plla_init() local
119 writel(pllar, &pmc->pllar); in at91_plla_init()
120 while (!(readl(&pmc->sr) & (AT91_PMC_LOCKA | AT91_PMC_MCKRDY))) in at91_plla_init()
126 struct at91_pmc *pmc = (struct at91_pmc *)ATMEL_BASE_PMC; in at91_mck_init() local
129 tmp = readl(&pmc->mckr); in at91_mck_init()
146 writel(tmp, &pmc->mckr); in at91_mck_init()
148 while (!(readl(&pmc->sr) & AT91_PMC_MCKRDY)) in at91_mck_init()
160 struct at91_pmc *pmc = (struct at91_pmc *)ATMEL_BASE_PMC; in at91_mck_init_down() local
163 tmp = readl(&pmc->mckr); in at91_mck_init_down()
166 writel(tmp, &pmc->mckr); in at91_mck_init_down()
168 while (!(readl(&pmc->sr) & AT91_PMC_MCKRDY)) in at91_mck_init_down()
172 tmp = readl(&pmc->mckr); in at91_mck_init_down()
175 writel(tmp, &pmc->mckr); in at91_mck_init_down()
178 tmp = readl(&pmc->mckr); in at91_mck_init_down()
181 writel(tmp, &pmc->mckr); in at91_mck_init_down()
183 tmp = readl(&pmc->mckr); in at91_mck_init_down()
186 writel(tmp, &pmc->mckr); in at91_mck_init_down()
188 tmp = readl(&pmc->mckr); in at91_mck_init_down()
191 writel(tmp, &pmc->mckr); in at91_mck_init_down()
196 struct at91_pmc *pmc = (struct at91_pmc *)ATMEL_BASE_PMC; in at91_enable_periph_generated_clk() local
211 writel(id, &pmc->pcr); in at91_enable_periph_generated_clk()
212 regval = readl(&pmc->pcr); in at91_enable_periph_generated_clk()
244 writel(regval, &pmc->pcr); in at91_enable_periph_generated_clk()
248 status = readl(&pmc->sr); in at91_enable_periph_generated_clk()
259 struct at91_pmc *pmc = (struct at91_pmc *)ATMEL_BASE_PMC; in at91_get_periph_generated_clk() local
266 writel(id, &pmc->pcr); in at91_get_periph_generated_clk()
267 regval = readl(&pmc->pcr); in at91_get_periph_generated_clk()