Home
last modified time | relevance | path

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

/u-boot/drivers/pwm/
A Dpwm-imx.c29 int pwm_config_internal(struct pwm_regs *pwm, unsigned long period_cycles, in pwm_config_internal() argument
43 writel(period_cycles, &pwm->pr); in pwm_config_internal()
50 unsigned long period_cycles, duty_cycles, prescale; in pwm_config() local
55 pwm_imx_get_parms(period_ns, duty_ns, &period_cycles, &duty_cycles, in pwm_config()
58 return pwm_config_internal(pwm, period_cycles, duty_cycles, prescale); in pwm_config()
104 unsigned long period_cycles, duty_cycles, prescale; in imx_pwm_set_config() local
108 pwm_imx_get_parms(period_ns, duty_ns, &period_cycles, &duty_cycles, in imx_pwm_set_config()
111 return pwm_config_internal(regs, period_cycles, duty_cycles, prescale); in imx_pwm_set_config()
A Dpwm-ti-ehrpwm.c104 unsigned long period_cycles[TI_EHRPWM_NUM_CHANNELS]; member
213 u32 period_cycles, duty_cycles; in ti_ehrpwm_set_config() local
227 period_cycles = (unsigned long)c; in ti_ehrpwm_set_config()
229 if (period_cycles < 1) { in ti_ehrpwm_set_config()
230 period_cycles = 1; in ti_ehrpwm_set_config()
247 if (priv->period_cycles[i] && in ti_ehrpwm_set_config()
248 priv->period_cycles[i] != period_cycles) { in ti_ehrpwm_set_config()
262 priv->period_cycles[channel] = period_cycles; in ti_ehrpwm_set_config()
265 if (set_prescale_div(period_cycles / TI_EHRPWM_PERIOD_MAX, &ps_divval, in ti_ehrpwm_set_config()
276 period_cycles = period_cycles / ps_divval; in ti_ehrpwm_set_config()
[all …]

Completed in 4 milliseconds