Lines Matching refs:pmc
19 struct at91_pmc *pmc = (struct at91_pmc *)ATMEL_BASE_PMC; in switch_to_main_crystal_osc() local
22 tmp = readl(&pmc->mor); in switch_to_main_crystal_osc()
28 writel(tmp, &pmc->mor); in switch_to_main_crystal_osc()
29 while (!(readl(&pmc->sr) & AT91_PMC_IXR_MOSCS)) in switch_to_main_crystal_osc()
34 tmp = readl(&pmc->mcfr); in switch_to_main_crystal_osc()
37 writel(tmp, &pmc->mcfr); in switch_to_main_crystal_osc()
39 while (!(readl(&pmc->mcfr) & AT91_PMC_MCFR_MAINRDY)) in switch_to_main_crystal_osc()
42 if (!(readl(&pmc->mcfr) & AT91_PMC_MCFR_MAINF_MASK)) in switch_to_main_crystal_osc()
46 tmp = readl(&pmc->mor); in switch_to_main_crystal_osc()
50 writel(tmp, &pmc->mor); in switch_to_main_crystal_osc()
52 tmp = readl(&pmc->mor); in switch_to_main_crystal_osc()
56 writel(tmp, &pmc->mor); in switch_to_main_crystal_osc()
58 while (!(readl(&pmc->sr) & AT91_PMC_IXR_MOSCSELS)) in switch_to_main_crystal_osc()
63 while (!(readl(&pmc->mcfr) & AT91_PMC_MAINRDY)) in switch_to_main_crystal_osc()
68 tmp = readl(&pmc->mor); in switch_to_main_crystal_osc()
72 writel(tmp, &pmc->mor); in switch_to_main_crystal_osc()