1
2 #ifndef _PIXCIR_I2C_TS_H
3 #define _PIXCIR_I2C_TS_H
4
5
6
7
8 #define PIXCIR_REG_POWER_MODE 51
9 #define PIXCIR_REG_INT_MODE 52
10
11
12
13
14
15
16
17
18
19 enum pixcir_power_mode {
20 PIXCIR_POWER_ACTIVE,
21 PIXCIR_POWER_IDLE,
22 PIXCIR_POWER_HALT,
23 };
24
25 #define PIXCIR_POWER_MODE_MASK 0x03
26 #define PIXCIR_POWER_ALLOW_IDLE (1UL << 2)
27
28
29
30
31
32
33
34
35
36 enum pixcir_int_mode {
37 PIXCIR_INT_PERIODICAL,
38 PIXCIR_INT_DIFF_COORD,
39 PIXCIR_INT_LEVEL_TOUCH,
40 PIXCIR_INT_PULSE_TOUCH,
41 };
42
43 #define PIXCIR_INT_MODE_MASK 0x03
44 #define PIXCIR_INT_ENABLE (1UL << 3)
45 #define PIXCIR_INT_POL_HIGH (1UL << 2)
46
47
48
49
50
51
52
53 struct pixcir_i2c_chip_data {
54 u8 max_fingers;
55 bool has_hw_ids;
56 };
57
58 struct pixcir_ts_platform_data {
59 int x_max;
60 int y_max;
61 struct pixcir_i2c_chip_data chip;
62 };
63
64 #endif