• Home
  • Raw
  • Download

Lines Matching refs:tc3589x

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()
147 ret = tc3589x_reg_write(tc3589x, TC3589x_IOPULLCFG1_LSB, in tc3589x_keypad_init_key_hardware()
152 ret = tc3589x_reg_write(tc3589x, TC3589x_IOPULLCFG1_MSB, in tc3589x_keypad_init_key_hardware()
157 ret = tc3589x_reg_write(tc3589x, TC3589x_IOPULLCFG2_LSB, in tc3589x_keypad_init_key_hardware()
171 struct tc3589x *tc3589x = keypad->tc3589x; in tc3589x_keypad_irq() local
176 kbd_code = tc3589x_reg_read(tc3589x, TC3589x_EVTCODE_FIFO); in tc3589x_keypad_irq()
196 tc3589x_set_bits(tc3589x, TC3589x_KBDIC, in tc3589x_keypad_irq()
199 tc3589x_set_bits(tc3589x, TC3589x_KBDMSK, in tc3589x_keypad_irq()
207 struct tc3589x *tc3589x = keypad->tc3589x; in tc3589x_keypad_enable() local
211 ret = tc3589x_set_bits(tc3589x, TC3589x_RSTCTRL, TC3589x_KBDRST, 0x0); in tc3589x_keypad_enable()
216 ret = tc3589x_set_bits(tc3589x, TC3589x_KBDMFS, 0x0, TC3589x_KBDMFS_EN); in tc3589x_keypad_enable()
221 ret = tc3589x_set_bits(tc3589x, TC3589x_CLKEN, 0x0, KPD_CLK_EN); in tc3589x_keypad_enable()
226 ret = tc3589x_set_bits(tc3589x, TC3589x_RSTINTCLR, 0x0, 0x1); in tc3589x_keypad_enable()
231 ret = tc3589x_set_bits(tc3589x, TC3589x_KBDMSK, 0x0, in tc3589x_keypad_enable()
243 struct tc3589x *tc3589x = keypad->tc3589x; in tc3589x_keypad_disable() local
247 ret = tc3589x_set_bits(tc3589x, TC3589x_KBDIC, in tc3589x_keypad_disable()
253 ret = tc3589x_set_bits(tc3589x, TC3589x_KBDMSK, in tc3589x_keypad_disable()
259 ret = tc3589x_set_bits(tc3589x, TC3589x_CLKEN, 0x1, 0x0); in tc3589x_keypad_disable()
264 ret = tc3589x_set_bits(tc3589x, TC3589x_RSTCTRL, TC3589x_KBDRST, 0x1); in tc3589x_keypad_disable()
302 struct tc3589x *tc3589x = dev_get_drvdata(pdev->dev.parent); in tc3589x_keypad_probe() local
308 plat = tc3589x->pdata->keypad; in tc3589x_keypad_probe()
328 keypad->tc3589x = tc3589x; in tc3589x_keypad_probe()