Lines Matching refs:regval
197 u32 regval, status; in at91_enable_periph_generated_clk() local
212 regval = readl(&pmc->pcr); in at91_enable_periph_generated_clk()
213 regval &= ~AT91_PMC_PCR_GCKCSS; in at91_enable_periph_generated_clk()
214 regval &= ~AT91_PMC_PCR_GCKDIV; in at91_enable_periph_generated_clk()
218 regval |= AT91_PMC_PCR_GCKCSS_SLOW_CLK; in at91_enable_periph_generated_clk()
221 regval |= AT91_PMC_PCR_GCKCSS_MAIN_CLK; in at91_enable_periph_generated_clk()
224 regval |= AT91_PMC_PCR_GCKCSS_PLLA_CLK; in at91_enable_periph_generated_clk()
227 regval |= AT91_PMC_PCR_GCKCSS_UPLL_CLK; in at91_enable_periph_generated_clk()
230 regval |= AT91_PMC_PCR_GCKCSS_MCK_CLK; in at91_enable_periph_generated_clk()
233 regval |= AT91_PMC_PCR_GCKCSS_AUDIO_CLK; in at91_enable_periph_generated_clk()
240 regval |= AT91_PMC_PCR_CMD_WRITE | in at91_enable_periph_generated_clk()
244 writel(regval, &pmc->pcr); in at91_enable_periph_generated_clk()
260 u32 regval, clk_source, div; in at91_get_periph_generated_clk() local
267 regval = readl(&pmc->pcr); in at91_get_periph_generated_clk()
269 clk_source = regval & AT91_PMC_PCR_GCKCSS; in at91_get_periph_generated_clk()
292 div = ((regval & AT91_PMC_PCR_GCKDIV) >> AT91_PMC_PCR_GCKDIV_OFFSET); in at91_get_periph_generated_clk()