Lines Matching defs:pwm
19 #include <linux/pwm.h>
96 static int brcmstb_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm,
101 unsigned int channel = pwm->hwpwm;
195 static int brcmstb_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm,
205 if (pwm->state.enabled)
206 brcmstb_pwm_enable_set(p, pwm->hwpwm, false);
211 err = brcmstb_pwm_config(chip, pwm, state->duty_cycle, state->period);
215 if (!pwm->state.enabled)
216 brcmstb_pwm_enable_set(p, pwm->hwpwm, true);
227 { .compatible = "brcm,bcm7038-pwm", },
313 .name = "pwm-brcmstb",
322 MODULE_ALIAS("platform:pwm-brcmstb");