Lines Matching defs:pwm
14 #include <linux/pwm.h>
29 static int lpc32xx_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm,
62 static int lpc32xx_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm)
79 static void lpc32xx_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm)
91 static int lpc32xx_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm,
100 if (pwm->state.enabled)
101 lpc32xx_pwm_disable(chip, pwm);
106 err = lpc32xx_pwm_config(pwm->chip, pwm, state->duty_cycle, state->period);
110 if (!pwm->state.enabled)
111 err = lpc32xx_pwm_enable(chip, pwm);
158 { .compatible = "nxp,lpc3220-pwm", },
165 .name = "lpc32xx-pwm",
172 MODULE_ALIAS("platform:lpc32xx-pwm");