Thomas Gleixner | 9c92ab6 | 2019-05-29 07:17:56 -0700 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Heiko Stübner | 5245db4 | 2011-12-27 21:21:17 -0800 | [diff] [blame] | 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. |
Heiko Stübner | 5245db4 | 2011-12-27 21:21:17 -0800 | [diff] [blame] | 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; |
Heiko Stübner | 27cef8b | 2013-02-23 12:06:44 -0800 | [diff] [blame] | 36 | int gpio_rst; |
Heiko Stübner | 5245db4 | 2011-12-27 21:21:17 -0800 | [diff] [blame] | 37 | |
| 38 | int int_setting; |
| 39 | |
Heiko Stübner | 5245db4 | 2011-12-27 21:21:17 -0800 | [diff] [blame] | 40 | unsigned int x_max; |
| 41 | unsigned int y_max; |
| 42 | }; |
| 43 | |
| 44 | #endif |