Lines Matching refs:pmc
16 struct at91_pmc *pmc = (struct at91_pmc *)ATMEL_BASE_PMC; in at91_periph_clk_enable() local
25 writel(id, &pmc->pcr); in at91_periph_clk_enable()
27 div_value = readl(&pmc->pcr) & AT91_PMC_PCR_DIV; in at91_periph_clk_enable()
31 writel(regval, &pmc->pcr); in at91_periph_clk_enable()
33 writel(0x01 << id, &pmc->pcer); in at91_periph_clk_enable()
39 struct at91_pmc *pmc = (struct at91_pmc *)ATMEL_BASE_PMC; in at91_periph_clk_disable() local
49 writel(regval, &pmc->pcr); in at91_periph_clk_disable()
51 writel(0x01 << id, &pmc->pcdr); in at91_periph_clk_disable()
57 struct at91_pmc *pmc = (struct at91_pmc *)ATMEL_BASE_PMC; in at91_system_clk_enable() local
59 writel(sys_clk, &pmc->scer); in at91_system_clk_enable()
64 struct at91_pmc *pmc = (struct at91_pmc *)ATMEL_BASE_PMC; in at91_system_clk_disable() local
66 writel(sys_clk, &pmc->scdr); in at91_system_clk_disable()
71 struct at91_pmc *pmc = (at91_pmc_t *)ATMEL_BASE_PMC; in at91_upll_clk_enable() local
74 if ((readl(&pmc->uckr) & AT91_PMC_UPLLEN) == AT91_PMC_UPLLEN) in at91_upll_clk_enable()
78 writel(AT91_PMC_UPLLEN | AT91_PMC_BIASEN, &pmc->uckr); in at91_upll_clk_enable()
79 while ((readl(&pmc->sr) & AT91_PMC_LOCKU) != AT91_PMC_LOCKU) { in at91_upll_clk_enable()
92 struct at91_pmc *pmc = (at91_pmc_t *)ATMEL_BASE_PMC; in at91_upll_clk_disable() local
96 writel(readl(&pmc->uckr) & ~AT91_PMC_UPLLEN, &pmc->uckr); in at91_upll_clk_disable()
97 while ((readl(&pmc->sr) & AT91_PMC_LOCKU) == AT91_PMC_LOCKU) { in at91_upll_clk_disable()
110 struct at91_pmc *pmc = (struct at91_pmc *)ATMEL_BASE_PMC; in at91_usb_clk_init() local
112 writel(value, &pmc->usb); in at91_usb_clk_init()
117 struct at91_pmc *pmc = (struct at91_pmc *)ATMEL_BASE_PMC; in at91_pllicpr_init() local
119 writel(icpr, &pmc->pllicpr); in at91_pllicpr_init()