Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  * Driver for AUO in-cell touchscreens
0004  *
0005  * Copyright (c) 2011 Heiko Stuebner <heiko@sntech.de>
0006  *
0007  * based on auo_touch.h from Dell Streak kernel
0008  *
0009  * Copyright (c) 2008 QUALCOMM Incorporated.
0010  * Copyright (c) 2008 QUALCOMM USA, INC.
0011  */
0012 
0013 #ifndef __AUO_PIXCIR_TS_H__
0014 #define __AUO_PIXCIR_TS_H__
0015 
0016 /*
0017  * Interrupt modes:
0018  * periodical:      interrupt is asserted periodicaly
0019  * compare coordinates: interrupt is asserted when coordinates change
0020  * indicate touch:  interrupt is asserted during touch
0021  */
0022 #define AUO_PIXCIR_INT_PERIODICAL   0x00
0023 #define AUO_PIXCIR_INT_COMP_COORD   0x01
0024 #define AUO_PIXCIR_INT_TOUCH_IND    0x02
0025 
0026 /*
0027  * @gpio_int        interrupt gpio
0028  * @int_setting     one of AUO_PIXCIR_INT_*
0029  * @init_hw     hardwarespecific init
0030  * @exit_hw     hardwarespecific shutdown
0031  * @x_max       x-resolution
0032  * @y_max       y-resolution
0033  */
0034 struct auo_pixcir_ts_platdata {
0035     int gpio_int;
0036     int gpio_rst;
0037 
0038     int int_setting;
0039 
0040     unsigned int x_max;
0041     unsigned int y_max;
0042 };
0043 
0044 #endif