Searched refs:tc3589x (Results 1 – 7 of 7) sorted by relevance
/drivers/mfd/ |
D | tc3589x.c | 27 int tc3589x_reg_read(struct tc3589x *tc3589x, u8 reg) in tc3589x_reg_read() argument 31 ret = i2c_smbus_read_byte_data(tc3589x->i2c, reg); in tc3589x_reg_read() 33 dev_err(tc3589x->dev, "failed to read reg %#x: %d\n", in tc3589x_reg_read() 46 int tc3589x_reg_write(struct tc3589x *tc3589x, u8 reg, u8 data) in tc3589x_reg_write() argument 50 ret = i2c_smbus_write_byte_data(tc3589x->i2c, reg, data); in tc3589x_reg_write() 52 dev_err(tc3589x->dev, "failed to write reg %#x: %d\n", in tc3589x_reg_write() 66 int tc3589x_block_read(struct tc3589x *tc3589x, u8 reg, u8 length, u8 *values) in tc3589x_block_read() argument 70 ret = i2c_smbus_read_i2c_block_data(tc3589x->i2c, reg, length, values); in tc3589x_block_read() 72 dev_err(tc3589x->dev, "failed to read regs %#x: %d\n", in tc3589x_block_read() 86 int tc3589x_block_write(struct tc3589x *tc3589x, u8 reg, u8 length, in tc3589x_block_write() argument [all …]
|
D | Makefile | 31 obj-$(CONFIG_MFD_TC3589X) += tc3589x.o
|
/drivers/input/keyboard/ |
D | tc3589x-keypad.c | 84 struct tc3589x *tc3589x; member 96 struct tc3589x *tc3589x = keypad->tc3589x; in tc3589x_keypad_init_key_hardware() local 104 ret = tc3589x_reg_write(tc3589x, TC3589x_KBDSIZE, in tc3589x_keypad_init_key_hardware() 110 ret = tc3589x_reg_write(tc3589x, TC3589x_KBCFG_LSB, DEDICATED_KEY_VAL); in tc3589x_keypad_init_key_hardware() 114 ret = tc3589x_reg_write(tc3589x, TC3589x_KBCFG_MSB, DEDICATED_KEY_VAL); in tc3589x_keypad_init_key_hardware() 119 ret = tc3589x_reg_write(tc3589x, TC3589x_KBDSETTLE_REG, in tc3589x_keypad_init_key_hardware() 125 ret = tc3589x_reg_write(tc3589x, TC3589x_KBDBOUNCE, in tc3589x_keypad_init_key_hardware() 131 ret = tc3589x_set_bits(tc3589x, TC3589x_IOCFG, 0x0, IOCFG_IG); in tc3589x_keypad_init_key_hardware() 136 ret = tc3589x_reg_write(tc3589x, TC3589x_IOPULLCFG0_LSB, in tc3589x_keypad_init_key_hardware() 141 ret = tc3589x_reg_write(tc3589x, TC3589x_IOPULLCFG0_MSB, in tc3589x_keypad_init_key_hardware() [all …]
|
D | Makefile | 54 obj-$(CONFIG_KEYBOARD_TC3589X) += tc3589x-keypad.o
|
D | Kconfig | 595 module will be called tc3589x-keypad.
|
/drivers/gpio/ |
D | gpio-tc3589x.c | 31 struct tc3589x *tc3589x; member 51 struct tc3589x *tc3589x = tc3589x_gpio->tc3589x; in tc3589x_gpio_get() local 56 ret = tc3589x_reg_read(tc3589x, reg); in tc3589x_gpio_get() 66 struct tc3589x *tc3589x = tc3589x_gpio->tc3589x; in tc3589x_gpio_set() local 71 tc3589x_block_write(tc3589x, reg, ARRAY_SIZE(data), data); in tc3589x_gpio_set() 78 struct tc3589x *tc3589x = tc3589x_gpio->tc3589x; in tc3589x_gpio_direction_output() local 84 return tc3589x_set_bits(tc3589x, reg, 1 << pos, 1 << pos); in tc3589x_gpio_direction_output() 91 struct tc3589x *tc3589x = tc3589x_gpio->tc3589x; in tc3589x_gpio_direction_input() local 95 return tc3589x_set_bits(tc3589x, reg, 1 << pos, 0); in tc3589x_gpio_direction_input() 170 struct tc3589x *tc3589x = tc3589x_gpio->tc3589x; in tc3589x_gpio_irq_sync_unlock() local [all …]
|
D | Makefile | 71 obj-$(CONFIG_GPIO_TC3589X) += gpio-tc3589x.o
|