Home
last modified time | relevance | path

Searched refs:atmel_tcb_divisors (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/drivers/pwm/
H A Dpwm-atmel-tcb.c62 static const u8 atmel_tcb_divisors[] = { 2, 8, 32, 128, 0, }; variable
285 for (; i < ARRAY_SIZE(atmel_tcb_divisors); ++i) { in atmel_tcb_pwm_config()
286 if (atmel_tcb_divisors[i] == 0) { in atmel_tcb_pwm_config()
290 min = div_u64((u64)NSEC_PER_SEC * atmel_tcb_divisors[i], rate); in atmel_tcb_pwm_config()
300 if (i == ARRAY_SIZE(atmel_tcb_divisors)) { in atmel_tcb_pwm_config()
/openbmc/linux/drivers/clocksource/
H A Dtimer-atmel-tcb.c51 static const u8 atmel_tcb_divisors[] = { 2, 8, 32, 128 }; variable
273 clkevt.rate = clk_get_rate(t2_clk) / atmel_tcb_divisors[divisor_idx]; in setup_clkevents()
439 for (; i < ARRAY_SIZE(atmel_tcb_divisors); i++) { in tcb_clksrc_init()
440 unsigned divisor = atmel_tcb_divisors[i]; in tcb_clksrc_init()