Lines Matching defs:pwm
18 #include <linux/pwm.h>
63 struct pwm_device *pwm, u64 duty_ns, u64 period_ns)
93 static int pwm_imx1_enable(struct pwm_chip *chip, struct pwm_device *pwm)
110 static void pwm_imx1_disable(struct pwm_chip *chip, struct pwm_device *pwm)
122 static int pwm_imx1_apply(struct pwm_chip *chip, struct pwm_device *pwm,
131 if (pwm->state.enabled)
132 pwm_imx1_disable(chip, pwm);
137 err = pwm_imx1_config(chip, pwm, state->duty_cycle, state->period);
141 if (!pwm->state.enabled)
142 return pwm_imx1_enable(chip, pwm);
153 { .compatible = "fsl,imx1-pwm", },
189 .name = "pwm-imx1",