Lines Matching refs:tc3589x
106 struct tc3589x *tc3589x; member
118 struct tc3589x *tc3589x = keypad->tc3589x; in tc3589x_keypad_init_key_hardware() local
126 ret = tc3589x_reg_write(tc3589x, TC3589x_KBDSIZE, in tc3589x_keypad_init_key_hardware()
132 ret = tc3589x_reg_write(tc3589x, TC3589x_KBCFG_LSB, DEDICATED_KEY_VAL); in tc3589x_keypad_init_key_hardware()
136 ret = tc3589x_reg_write(tc3589x, TC3589x_KBCFG_MSB, DEDICATED_KEY_VAL); in tc3589x_keypad_init_key_hardware()
141 ret = tc3589x_reg_write(tc3589x, TC3589x_KBDSETTLE_REG, in tc3589x_keypad_init_key_hardware()
147 ret = tc3589x_reg_write(tc3589x, TC3589x_KBDBOUNCE, in tc3589x_keypad_init_key_hardware()
153 ret = tc3589x_set_bits(tc3589x, TC3589x_IOCFG, 0x0, IOCFG_IG); in tc3589x_keypad_init_key_hardware()
158 ret = tc3589x_reg_write(tc3589x, TC3589x_IOPULLCFG0_LSB, in tc3589x_keypad_init_key_hardware()
163 ret = tc3589x_reg_write(tc3589x, TC3589x_IOPULLCFG0_MSB, in tc3589x_keypad_init_key_hardware()
169 ret = tc3589x_reg_write(tc3589x, TC3589x_IOPULLCFG1_LSB, in tc3589x_keypad_init_key_hardware()
174 ret = tc3589x_reg_write(tc3589x, TC3589x_IOPULLCFG1_MSB, in tc3589x_keypad_init_key_hardware()
179 ret = tc3589x_reg_write(tc3589x, TC3589x_IOPULLCFG2_LSB, in tc3589x_keypad_init_key_hardware()
193 struct tc3589x *tc3589x = keypad->tc3589x; in tc3589x_keypad_irq() local
198 kbd_code = tc3589x_reg_read(tc3589x, TC3589x_EVTCODE_FIFO); in tc3589x_keypad_irq()
218 tc3589x_set_bits(tc3589x, TC3589x_KBDIC, in tc3589x_keypad_irq()
221 tc3589x_set_bits(tc3589x, TC3589x_KBDMSK, in tc3589x_keypad_irq()
229 struct tc3589x *tc3589x = keypad->tc3589x; in tc3589x_keypad_enable() local
233 ret = tc3589x_set_bits(tc3589x, TC3589x_RSTCTRL, TC3589x_KBDRST, 0x0); in tc3589x_keypad_enable()
238 ret = tc3589x_set_bits(tc3589x, TC3589x_KBDMFS, 0x0, TC3589x_KBDMFS_EN); in tc3589x_keypad_enable()
243 ret = tc3589x_set_bits(tc3589x, TC3589x_CLKEN, 0x0, KPD_CLK_EN); in tc3589x_keypad_enable()
248 ret = tc3589x_set_bits(tc3589x, TC3589x_RSTINTCLR, 0x0, 0x1); in tc3589x_keypad_enable()
253 ret = tc3589x_set_bits(tc3589x, TC3589x_KBDMSK, 0x0, in tc3589x_keypad_enable()
265 struct tc3589x *tc3589x = keypad->tc3589x; in tc3589x_keypad_disable() local
269 ret = tc3589x_set_bits(tc3589x, TC3589x_KBDIC, in tc3589x_keypad_disable()
275 ret = tc3589x_set_bits(tc3589x, TC3589x_KBDMSK, in tc3589x_keypad_disable()
281 ret = tc3589x_set_bits(tc3589x, TC3589x_CLKEN, 0x1, 0x0); in tc3589x_keypad_disable()
286 ret = tc3589x_set_bits(tc3589x, TC3589x_RSTCTRL, TC3589x_KBDRST, 0x1); in tc3589x_keypad_disable()
377 struct tc3589x *tc3589x = dev_get_drvdata(pdev->dev.parent); in tc3589x_keypad_probe() local
406 keypad->tc3589x = tc3589x; in tc3589x_keypad_probe()