• Home
  • Raw
  • Download

Lines Matching full:stmpe

15 #include <linux/mfd/stmpe.h>
33 struct stmpe *stmpe; member
49 ret = stmpe_reg_read(stmpe_pwm->stmpe, STMPE24XX_PWMCS); in stmpe_24xx_pwm_enable()
58 ret = stmpe_reg_write(stmpe_pwm->stmpe, STMPE24XX_PWMCS, value); in stmpe_24xx_pwm_enable()
75 ret = stmpe_reg_read(stmpe_pwm->stmpe, STMPE24XX_PWMCS); in stmpe_24xx_pwm_disable()
84 ret = stmpe_reg_write(stmpe_pwm->stmpe, STMPE24XX_PWMCS, value); in stmpe_24xx_pwm_disable()
92 /* STMPE 24xx PWM instructions */
124 if (stmpe_pwm->stmpe->partnum == STMPE2401 || in stmpe_24xx_pwm_config()
125 stmpe_pwm->stmpe->partnum == STMPE2403) in stmpe_24xx_pwm_config()
128 ret = stmpe_set_altfunc(stmpe_pwm->stmpe, BIT(pin), in stmpe_24xx_pwm_config()
160 if (stmpe_pwm->stmpe->partnum == STMPE2401) in stmpe_24xx_pwm_config()
163 if (stmpe_pwm->stmpe->partnum == STMPE2403) in stmpe_24xx_pwm_config()
168 if (stmpe_pwm->stmpe->partnum == STMPE2401) in stmpe_24xx_pwm_config()
171 if (stmpe_pwm->stmpe->partnum == STMPE2403) in stmpe_24xx_pwm_config()
200 } else if (stmpe_pwm->stmpe->partnum == STMPE2403) { in stmpe_24xx_pwm_config()
204 } else if (stmpe_pwm->stmpe->partnum == STMPE2401) { in stmpe_24xx_pwm_config()
237 ret = stmpe_reg_write(stmpe_pwm->stmpe, offset, value); in stmpe_24xx_pwm_config()
246 ret = stmpe_reg_write(stmpe_pwm->stmpe, offset, value); in stmpe_24xx_pwm_config()
275 struct stmpe *stmpe = dev_get_drvdata(pdev->dev.parent); in stmpe_pwm_probe() local
283 pwm->stmpe = stmpe; in stmpe_pwm_probe()
287 if (stmpe->partnum == STMPE2401 || stmpe->partnum == STMPE2403) { in stmpe_pwm_probe()
291 if (stmpe->partnum == STMPE1601) in stmpe_pwm_probe()
294 dev_err(&pdev->dev, "Unknown STMPE PWM\n"); in stmpe_pwm_probe()
299 ret = stmpe_enable(stmpe, STMPE_BLOCK_PWM); in stmpe_pwm_probe()
305 stmpe_disable(stmpe, STMPE_BLOCK_PWM); in stmpe_pwm_probe()
316 .name = "stmpe-pwm",