diff options
Diffstat (limited to 'include/linux/input')
| -rw-r--r-- | include/linux/input/auo-pixcir-ts.h | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/include/linux/input/auo-pixcir-ts.h b/include/linux/input/auo-pixcir-ts.h new file mode 100644 index 000000000000..75d4be717714 --- /dev/null +++ b/include/linux/input/auo-pixcir-ts.h | |||
| @@ -0,0 +1,56 @@ | |||
| 1 | /* | ||
| 2 | * Driver for AUO in-cell touchscreens | ||
| 3 | * | ||
| 4 | * Copyright (c) 2011 Heiko Stuebner <heiko@sntech.de> | ||
| 5 | * | ||
| 6 | * based on auo_touch.h from Dell Streak kernel | ||
| 7 | * | ||
| 8 | * Copyright (c) 2008 QUALCOMM Incorporated. | ||
| 9 | * Copyright (c) 2008 QUALCOMM USA, INC. | ||
| 10 | * | ||
| 11 | * | ||
| 12 | * This software is licensed under the terms of the GNU General Public | ||
| 13 | * License version 2, as published by the Free Software Foundation, and | ||
| 14 | * may be copied, distributed, and modified under those terms. | ||
| 15 | * | ||
| 16 | * This program is distributed in the hope that it will be useful, | ||
| 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 19 | * GNU General Public License for more details. | ||
| 20 | * | ||
| 21 | */ | ||
| 22 | |||
| 23 | #ifndef __AUO_PIXCIR_TS_H__ | ||
| 24 | #define __AUO_PIXCIR_TS_H__ | ||
| 25 | |||
| 26 | /* | ||
| 27 | * Interrupt modes: | ||
| 28 | * periodical: interrupt is asserted periodicaly | ||
| 29 | * compare coordinates: interrupt is asserted when coordinates change | ||
| 30 | * indicate touch: interrupt is asserted during touch | ||
| 31 | */ | ||
| 32 | #define AUO_PIXCIR_INT_PERIODICAL 0x00 | ||
| 33 | #define AUO_PIXCIR_INT_COMP_COORD 0x01 | ||
| 34 | #define AUO_PIXCIR_INT_TOUCH_IND 0x02 | ||
| 35 | |||
| 36 | /* | ||
| 37 | * @gpio_int interrupt gpio | ||
| 38 | * @int_setting one of AUO_PIXCIR_INT_* | ||
| 39 | * @init_hw hardwarespecific init | ||
| 40 | * @exit_hw hardwarespecific shutdown | ||
| 41 | * @x_max x-resolution | ||
| 42 | * @y_max y-resolution | ||
| 43 | */ | ||
| 44 | struct auo_pixcir_ts_platdata { | ||
| 45 | int gpio_int; | ||
| 46 | |||
| 47 | int int_setting; | ||
| 48 | |||
| 49 | void (*init_hw)(struct i2c_client *); | ||
| 50 | void (*exit_hw)(struct i2c_client *); | ||
| 51 | |||
| 52 | unsigned int x_max; | ||
| 53 | unsigned int y_max; | ||
| 54 | }; | ||
| 55 | |||
| 56 | #endif | ||
