Lines Matching refs:mck
195 struct clk mck = { variable
226 return &mck; in at91_css_to_clk()
521 clk->parent = &mck; in clk_register()
525 clk->parent = &mck; in clk_register()
624 &mck
753 mck.parent = at91_css_to_clk(mckr & AT91_PMC_CSS); in at91_pmc_init()
754 freq = mck.parent->rate_hz; 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()
764 mck.rate_hz = (mckr & AT91_PMC_MDIV) == AT91SAM9_PMC_MDIV_3 ? in at91_pmc_init()
767 mck.rate_hz = freq / (1 << ((mckr & AT91_PMC_MDIV) >> 8)); /* mdiv */ in at91_pmc_init()
772 mck.type |= CLK_TYPE_PRIMARY; in at91_pmc_init()
773 mck.id = 4; in at91_pmc_init()
793 clk_enable(&mck); in at91_pmc_init()
796 freq / 1000000, (unsigned) mck.rate_hz / 1000000, in at91_pmc_init()