Searched refs:mckr (Results 1 – 1 of 1) sorted by relevance
678 unsigned tmp, freq, mckr; in at91_pmc_init() local712 mckr = at91_pmc_read(AT91_PMC_MCKR); in at91_pmc_init()713 plla.rate_hz /= (1 << ((mckr & AT91_PMC_PLLADIV2) >> 12)); /* plla divisor by 2 */ in at91_pmc_init()752 mckr = at91_pmc_read(AT91_PMC_MCKR); in at91_pmc_init()753 mck.parent = at91_css_to_clk(mckr & AT91_PMC_CSS); in at91_pmc_init()755 freq /= pmc_prescaler_divider(mckr); /* prescale */ in at91_pmc_init()757 mck.rate_hz = freq / (1 + ((mckr & AT91_PMC_MDIV) >> 8)); /* mdiv */ in at91_pmc_init()759 mck.rate_hz = (mckr & AT91_PMC_MDIV) ? in at91_pmc_init()760 freq / ((mckr & AT91_PMC_MDIV) >> 7) : freq; /* mdiv ; (x >> 7) = ((x >> 8) * 2) */ in at91_pmc_init()761 if (mckr & AT91_PMC_PDIV) in at91_pmc_init()[all …]