Lines Matching refs:pmc
22 struct at91_pmc *pmc = (struct at91_pmc *)ATMEL_BASE_PMC; in switch_to_main_crystal_osc() local
25 tmp = readl(&pmc->mor); in switch_to_main_crystal_osc()
31 writel(tmp, &pmc->mor); in switch_to_main_crystal_osc()
32 while (!(readl(&pmc->sr) & AT91_PMC_IXR_MOSCS)) in switch_to_main_crystal_osc()
35 tmp = readl(&pmc->mor); in switch_to_main_crystal_osc()
39 writel(tmp, &pmc->mor); in switch_to_main_crystal_osc()
41 tmp = readl(&pmc->mor); in switch_to_main_crystal_osc()
45 writel(tmp, &pmc->mor); in switch_to_main_crystal_osc()
47 while (!(readl(&pmc->sr) & AT91_PMC_IXR_MOSCSELS)) in switch_to_main_crystal_osc()
51 while (!(readl(&pmc->mcfr) & AT91_PMC_MAINRDY)) in switch_to_main_crystal_osc()
55 tmp = readl(&pmc->mor); in switch_to_main_crystal_osc()
59 writel(tmp, &pmc->mor); in switch_to_main_crystal_osc()