summaryrefslogtreecommitdiff
path: root/include/linux/input
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/input')
-rwxr-xr-xinclude/linux/input/atmel_maxtouch_ts.h40
1 files changed, 36 insertions, 4 deletions
diff --git a/include/linux/input/atmel_maxtouch_ts.h b/include/linux/input/atmel_maxtouch_ts.h
index 3422bd0d847b..adc359008c42 100755
--- a/include/linux/input/atmel_maxtouch_ts.h
+++ b/include/linux/input/atmel_maxtouch_ts.h
@@ -1,6 +1,11 @@
/*
* Atmel maXTouch Touchscreen driver
*
+ * Copyright (c) 2014, The Linux Foundation. All rights reserved.
+ *
+ * Linux foundation chooses to take subject only to the GPLv2 license terms,
+ * and distributes only under these terms.
+ *
* Copyright (C) 2010 Samsung Electronics Co.Ltd
* Author: Joonyoung Shim <jy0922.shim@samsung.com>
*
@@ -10,20 +15,47 @@
* option) any later version.
*/
-#ifndef __LINUX_ATMEL_MXT_TS_H
-#define __LINUX_ATMEL_MXT_TS_H
+#ifndef __LINUX_ATMEL_MAXTOUCH_TS_H
+#define __LINUX_ATMEL_MAXTOUCH_TS_H
#include <linux/types.h>
/* The platform data for the Atmel maXTouch touchscreen driver */
struct mxt_platform_data {
unsigned long irqflags;
+ unsigned long resetflags;
+ int gpio_reset;
+ int gpio_irq;
+ int gpio_i2cmode;
u8 t19_num_keys;
const unsigned int *t19_keymap;
int t15_num_keys;
const unsigned int *t15_keymap;
- unsigned long gpio_reset;
const char *cfg_name;
+ const char *fw_name;
+ bool ignore_crc;
+
+ const struct mxt_config_info *config_array;
+ size_t config_array_size;
+
+ /* touch panel's minimum and maximum coordinates */
+ u32 panel_minx;
+ u32 panel_maxx;
+ u32 panel_miny;
+ u32 panel_maxy;
+
+ /* display's minimum and maximum coordinates */
+ u32 disp_minx;
+ u32 disp_maxx;
+ u32 disp_miny;
+ u32 disp_maxy;
+
+ int *key_codes;
+ u8 bl_addr;
+
+ u8(*read_chg) (void);
+ int (*init_hw) (bool);
+ int (*power_on) (bool);
};
-#endif /* __LINUX_ATMEL_MXT_TS_H */
+#endif /* __LINUX_ATMEL_MAXTOUCH_TS_H */