2 * drivers/input/touchscreen/gt801_ts.h
4 * Copyright (C) 2010 ROCKCHIP, Inc.
6 * This software is licensed under the terms of the GNU General Public
7 * License version 2, as published by the Free Software Foundation, and
8 * may be copied, distributed, and modified under those terms.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
16 #ifndef __DRIVERS_TOUCHSCREEN_GT801_TS_H
17 #define __DRIVERS_TOUCHSCREEN_GT801_TS_H
19 #define IOMUX_NAME_SIZE 48
22 ptxh = 0, ptxl = 1, ptyh = 2, ptyl = 3, ptpressure = 4,
25 TOUCH_UP = 0, TOUCH_DOWN = 1,
28 struct gt801_platform_data {
31 bool swap_xy; /* swap x and y axes */
35 int gpio_reset_active_low;
36 int gpio_pendown; /* the GPIO used to decide the pendown */
38 char pendown_iomux_name[IOMUX_NAME_SIZE];
39 char resetpin_iomux_name[IOMUX_NAME_SIZE];
40 int pendown_iomux_mode;
41 int resetpin_iomux_mode;
43 int (*get_pendown_state)(void);