blob: ed0776997a7a50498b57ddaa6fc0e0a2d0334c3a [file] [log] [blame]
Thomas Gleixner9c92ab62019-05-29 07:17:56 -07001/* SPDX-License-Identifier: GPL-2.0-only */
Heiko Stübner5245db42011-12-27 21:21:17 -08002/*
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.
Heiko Stübner5245db42011-12-27 21:21:17 -080011 */
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 */
34struct auo_pixcir_ts_platdata {
35 int gpio_int;
Heiko Stübner27cef8b2013-02-23 12:06:44 -080036 int gpio_rst;
Heiko Stübner5245db42011-12-27 21:21:17 -080037
38 int int_setting;
39
Heiko Stübner5245db42011-12-27 21:21:17 -080040 unsigned int x_max;
41 unsigned int y_max;
42};
43
44#endif