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 */
44struct auo_pixcir_ts_platdata {
45	int gpio_int;
46	int gpio_rst;
47
48	int int_setting;
49
50	unsigned int x_max;
51	unsigned int y_max;
52};
53
54#endif
55