Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/pwm/
Dpwm-fsl-ftm.c139 unsigned long sys_rate, cnt_rate; in fsl_pwm_calculate_default_ps() local
146 cnt_rate = clk_get_rate(fpc->clk[fpc->cnt_select]); in fsl_pwm_calculate_default_ps()
147 if (!cnt_rate) in fsl_pwm_calculate_default_ps()
155 ratio = 2 * cnt_rate - 1; in fsl_pwm_calculate_default_ps()
160 ratio = 4 * cnt_rate - 1; in fsl_pwm_calculate_default_ps()