Home
last modified time | relevance | path

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

/linux/drivers/pwm/
A Dpwm-renesas-tpu.c247 static const unsigned int prescalers[] = { 1, 4, 16, 64 }; in tpu_pwm_config() local
263 for (prescaler = 0; prescaler < ARRAY_SIZE(prescalers); ++prescaler) { in tpu_pwm_config()
264 period = clk_rate / prescalers[prescaler] in tpu_pwm_config()
270 if (prescaler == ARRAY_SIZE(prescalers) || period == 0) { in tpu_pwm_config()
276 duty = clk_rate / prescalers[prescaler] in tpu_pwm_config()
286 clk_rate, prescalers[prescaler], period, duty); in tpu_pwm_config()

Completed in 4 milliseconds