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