1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3 * Driver for AUO in-cell touchscreens
4 *
5 * Copyright (c) 2011 Heiko Stuebner <heiko@sntech.de>
6 *
7 * based on auo_touch.h from Dell Streak kernel
8 *
9 * Copyright (c) 2008 QUALCOMM Incorporated.
10 * Copyright (c) 2008 QUALCOMM USA, INC.
11 */
12
13 #ifndef __AUO_PIXCIR_TS_H__
14 #define __AUO_PIXCIR_TS_H__
15
16 /*
17 * Interrupt modes:
18 * periodical: interrupt is asserted periodicaly
19 * compare coordinates: interrupt is asserted when coordinates change
20 * indicate touch: interrupt is asserted during touch
21 */
22 #define AUO_PIXCIR_INT_PERIODICAL 0x00
23 #define AUO_PIXCIR_INT_COMP_COORD 0x01
24 #define AUO_PIXCIR_INT_TOUCH_IND 0x02
25
26 /*
27 * @gpio_int interrupt gpio
28 * @int_setting one of AUO_PIXCIR_INT_*
29 * @init_hw hardwarespecific init
30 * @exit_hw hardwarespecific shutdown
31 * @x_max x-resolution
32 * @y_max y-resolution
33 */
34 struct auo_pixcir_ts_platdata {
35 int gpio_int;
36 int gpio_rst;
37
38 int int_setting;
39
40 unsigned int x_max;
41 unsigned int y_max;
42 };
43
44 #endif