Searched refs:stmpe (Results 1 – 5 of 5) sorted by relevance
/linux-4.19.296/drivers/gpio/ |
D | gpio-stmpe.c | 32 struct stmpe *stmpe; member 44 struct stmpe *stmpe = stmpe_gpio->stmpe; in stmpe_gpio_get() local 45 u8 reg = stmpe->regs[STMPE_IDX_GPMR_LSB + (offset / 8)]; in stmpe_gpio_get() 49 ret = stmpe_reg_read(stmpe, reg); in stmpe_gpio_get() 59 struct stmpe *stmpe = stmpe_gpio->stmpe; in stmpe_gpio_set() local 61 u8 reg = stmpe->regs[which + (offset / 8)]; in stmpe_gpio_set() 68 if (stmpe->regs[STMPE_IDX_GPSR_LSB] == stmpe->regs[STMPE_IDX_GPCR_LSB]) in stmpe_gpio_set() 69 stmpe_set_bits(stmpe, reg, mask, val ? mask : 0); in stmpe_gpio_set() 71 stmpe_reg_write(stmpe, reg, mask); in stmpe_gpio_set() 78 struct stmpe *stmpe = stmpe_gpio->stmpe; in stmpe_gpio_get_direction() local [all …]
|
D | Makefile | 118 obj-$(CONFIG_GPIO_STMPE) += gpio-stmpe.o
|
/linux-4.19.296/include/linux/mfd/ |
D | stmpe.h | 108 struct stmpe { struct 128 extern int stmpe_reg_write(struct stmpe *stmpe, u8 reg, u8 data); argument 129 extern int stmpe_reg_read(struct stmpe *stmpe, u8 reg); 130 extern int stmpe_block_read(struct stmpe *stmpe, u8 reg, u8 length, 132 extern int stmpe_block_write(struct stmpe *stmpe, u8 reg, u8 length, 134 extern int stmpe_set_bits(struct stmpe *stmpe, u8 reg, u8 mask, u8 val); 135 extern int stmpe_set_altfunc(struct stmpe *stmpe, u32 pins, 137 extern int stmpe_enable(struct stmpe *stmpe, unsigned int blocks); 138 extern int stmpe_disable(struct stmpe *stmpe, unsigned int blocks);
|
/linux-4.19.296/drivers/pwm/ |
D | pwm-stmpe.c | 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() 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() [all …]
|
D | Makefile | 44 obj-$(CONFIG_PWM_STMPE) += pwm-stmpe.o
|