Lines Matching defs:on
121 /* Used by USB on at91sam9g45 */
123 .name = "upll", /* UTMI PLL, used for USB functions on 9G45 family */
232 at91_pmc_set_pllb_mode(struct at91_pmc_clock *clk, int on)
237 value = on ? pllb_init : 0;
246 while (on && (RD4(sc, PMC_SR) & PMC_IER_LOCKB) != PMC_IER_LOCKB)
252 at91_pmc_set_upll_mode(struct at91_pmc_clock *clk, int on)
257 if (on) {
258 on = PMC_IER_LOCKU;
264 while ((RD4(sc, PMC_SR) & PMC_IER_LOCKU) != on)
272 at91_pmc_set_sys_mode(struct at91_pmc_clock *clk, int on)
276 WR4(sc, on ? PMC_SCER : PMC_SCDR, clk->pmc_mask);
277 if (on)
286 at91_pmc_set_periph_mode(struct at91_pmc_clock *clk, int on)
290 WR4(sc, on ? PMC_PCER : PMC_PCDR, clk->pmc_mask);
291 if (on)
546 /* There is no pllb on AT91SAM9G45 */
599 * MCK by 3 but not, for example, on 9g20.
608 /* Only found on SAM9G20 */
622 /* XXX kludge, turn on all peripherals */