Searched refs:tc3589x (Results 1 – 7 of 7) sorted by relevance
/drivers/mfd/ |
D | tc3589x.c | 25 int tc3589x_reg_read(struct tc3589x *tc3589x, u8 reg) in tc3589x_reg_read() argument 29 ret = i2c_smbus_read_byte_data(tc3589x->i2c, reg); in tc3589x_reg_read() 31 dev_err(tc3589x->dev, "failed to read reg %#x: %d\n", in tc3589x_reg_read() 44 int tc3589x_reg_write(struct tc3589x *tc3589x, u8 reg, u8 data) in tc3589x_reg_write() argument 48 ret = i2c_smbus_write_byte_data(tc3589x->i2c, reg, data); in tc3589x_reg_write() 50 dev_err(tc3589x->dev, "failed to write reg %#x: %d\n", in tc3589x_reg_write() 64 int tc3589x_block_read(struct tc3589x *tc3589x, u8 reg, u8 length, u8 *values) in tc3589x_block_read() argument 68 ret = i2c_smbus_read_i2c_block_data(tc3589x->i2c, reg, length, values); in tc3589x_block_read() 70 dev_err(tc3589x->dev, "failed to read regs %#x: %d\n", in tc3589x_block_read() 84 int tc3589x_block_write(struct tc3589x *tc3589x, u8 reg, u8 length, in tc3589x_block_write() argument [all …]
|
D | Makefile | 21 obj-$(CONFIG_MFD_TC3589X) += tc3589x.o
|
/drivers/input/keyboard/ |
D | tc3589x-keypad.c | 86 struct tc3589x *tc3589x; member 98 struct tc3589x *tc3589x = keypad->tc3589x; in tc3589x_keypad_init_key_hardware() local 112 ret = tc3589x_reg_write(tc3589x, TC3589x_KBDSIZE, in tc3589x_keypad_init_key_hardware() 118 ret = tc3589x_reg_write(tc3589x, TC3589x_KBCFG_LSB, DEDICATED_KEY_VAL); in tc3589x_keypad_init_key_hardware() 122 ret = tc3589x_reg_write(tc3589x, TC3589x_KBCFG_MSB, DEDICATED_KEY_VAL); in tc3589x_keypad_init_key_hardware() 127 ret = tc3589x_reg_write(tc3589x, TC3589x_KBDSETTLE_REG, settle_time); in tc3589x_keypad_init_key_hardware() 132 ret = tc3589x_reg_write(tc3589x, TC3589x_KBDBOUNCE, dbounce_period); in tc3589x_keypad_init_key_hardware() 137 ret = tc3589x_set_bits(tc3589x, TC3589x_IOCFG, 0x0, IOCFG_IG); in tc3589x_keypad_init_key_hardware() 142 ret = tc3589x_reg_write(tc3589x, TC3589x_IOPULLCFG0_LSB, in tc3589x_keypad_init_key_hardware() 147 ret = tc3589x_reg_write(tc3589x, TC3589x_IOPULLCFG0_MSB, in tc3589x_keypad_init_key_hardware() [all …]
|
D | Makefile | 50 obj-$(CONFIG_KEYBOARD_TC3589X) += tc3589x-keypad.o
|
D | Kconfig | 544 module will be called tc3589x-keypad.
|
/drivers/gpio/ |
D | gpio-tc3589x.c | 29 struct tc3589x *tc3589x; member 48 struct tc3589x *tc3589x = tc3589x_gpio->tc3589x; in tc3589x_gpio_get() local 53 ret = tc3589x_reg_read(tc3589x, reg); in tc3589x_gpio_get() 63 struct tc3589x *tc3589x = tc3589x_gpio->tc3589x; in tc3589x_gpio_set() local 68 tc3589x_block_write(tc3589x, reg, ARRAY_SIZE(data), data); in tc3589x_gpio_set() 75 struct tc3589x *tc3589x = tc3589x_gpio->tc3589x; in tc3589x_gpio_direction_output() local 81 return tc3589x_set_bits(tc3589x, reg, 1 << pos, 1 << pos); in tc3589x_gpio_direction_output() 88 struct tc3589x *tc3589x = tc3589x_gpio->tc3589x; in tc3589x_gpio_direction_input() local 92 return tc3589x_set_bits(tc3589x, reg, 1 << pos, 0); in tc3589x_gpio_direction_input() 150 struct tc3589x *tc3589x = tc3589x_gpio->tc3589x; in tc3589x_gpio_irq_sync_unlock() local [all …]
|
D | Makefile | 53 obj-$(CONFIG_GPIO_TC3589X) += gpio-tc3589x.o
|