Searched refs:ps_divval (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/drivers/pwm/
H A Dpwm-tiehrpwm.c233 * period_ns = 10^9 * (ps_divval * period_cycles) / PWM_CLK_RATE
234 * duty_ns = 10^9 * (ps_divval * duty_cycles) / PWM_CLK_RATE
242 unsigned short ps_divval, tb_divval; ehrpwm_pwm_config() local
286 if (set_prescale_div(period_cycles/PERIOD_MAX, &ps_divval, ehrpwm_pwm_config()
298 period_cycles = period_cycles / ps_divval; ehrpwm_pwm_config()
299 duty_cycles = duty_cycles / ps_divval; ehrpwm_pwm_config()

Completed in 186 milliseconds