2 * Driver for AUO in-cell touchscreens
4 * Copyright (c) 2011 Heiko Stuebner <heiko@sntech.de>
6 * based on auo_touch.h from Dell Streak kernel
8 * Copyright (c) 2008 QUALCOMM Incorporated.
9 * Copyright (c) 2008 QUALCOMM USA, INC.
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.
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.
23 #ifndef __AUO_PIXCIR_TS_H__
24 #define __AUO_PIXCIR_TS_H__
28 * periodical: interrupt is asserted periodicaly
29 * compare coordinates: interrupt is asserted when coordinates change
30 * indicate touch: interrupt is asserted during touch
32 #define AUO_PIXCIR_INT_PERIODICAL 0x00
33 #define AUO_PIXCIR_INT_COMP_COORD 0x01
34 #define AUO_PIXCIR_INT_TOUCH_IND 0x02
37 * @gpio_int interrupt gpio
38 * @int_setting one of AUO_PIXCIR_INT_*
39 * @init_hw hardwarespecific init
40 * @exit_hw hardwarespecific shutdown
44 struct auo_pixcir_ts_platdata
{
49 void (*init_hw
)(struct i2c_client
*);
50 void (*exit_hw
)(struct i2c_client
*);