]>
git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blob - include/linux/input/pixcir_ts.h
160cf353aa3968a5fdec476890f1c34214007f4e
1 #ifndef _PIXCIR_I2C_TS_H
2 #define _PIXCIR_I2C_TS_H
7 #define PIXCIR_REG_POWER_MODE 51
8 #define PIXCIR_REG_INT_MODE 52
12 * active: max scan speed
13 * idle: lower scan speed with automatic transition to active on touch
14 * halt: datasheet says sleep but this is more like halt as the chip
15 * clocks are cut and it can only be brought out of this mode
16 * using the RESET pin.
18 enum pixcir_power_mode
{
24 #define PIXCIR_POWER_MODE_MASK 0x03
25 #define PIXCIR_POWER_ALLOW_IDLE (1UL << 2)
29 * periodical: interrupt is asserted periodicaly
30 * diff coordinates: interrupt is asserted when coordinates change
31 * level on touch: interrupt level asserted during touch
32 * pulse on touch: interrupt pulse asserted druing touch
35 enum pixcir_int_mode
{
36 PIXCIR_INT_PERIODICAL
,
37 PIXCIR_INT_DIFF_COORD
,
38 PIXCIR_INT_LEVEL_TOUCH
,
39 PIXCIR_INT_PULSE_TOUCH
,
42 #define PIXCIR_INT_MODE_MASK 0x03
43 #define PIXCIR_INT_ENABLE (1UL << 3)
44 #define PIXCIR_INT_POL_HIGH (1UL << 2)
46 struct pixcir_ts_platform_data
{
49 int gpio_attb
; /* GPIO connected to ATTB line */