Lines Matching defs:pwm
3 * drivers/pwm/pwm-pxa.c
26 #include <linux/pwm.h>
35 { "pxa25x-pwm", 0 },
36 { "pxa27x-pwm", HAS_SECONDARY_PWM },
37 { "pxa168-pwm", 0 },
38 { "pxa910-pwm", 0 },
68 static int pxa_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm,
76 offset = pwm->hwpwm ? 0x10 : 0;
103 static int pxa_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm,
119 err = pxa_pwm_config(chip, pwm, duty_cycle, state->period);
125 if (state->enabled && !pwm->state.enabled)
130 if (!state->enabled && pwm->state.enabled)
145 * code that this is a single channel pxa25x-pwm. Currently all devices are
149 { .compatible = "marvell,pxa250-pwm", .data = &pwm_id_table[0]},
150 { .compatible = "marvell,pxa270-pwm", .data = &pwm_id_table[0]},
151 { .compatible = "marvell,pxa168-pwm", .data = &pwm_id_table[0]},
152 { .compatible = "marvell,pxa910-pwm", .data = &pwm_id_table[0]},
204 .name = "pxa25x-pwm",