2 * mms_ts.h - Platform data for Melfas MMS-series touch driver
\r
4 * Copyright (C) 2011 Google Inc.
\r
5 * Author: Dima Zavin <dima@android.com>
\r
8 * This program is free software; you can redistribute it and/or modify it
\r
9 * under the terms of the GNU General Public License as published by the
\r
10 * Free Software Foundation; either version 2 of the License, or (at your
\r
11 * option) any later version.
\r
15 #ifndef _LINUX_MMS_TOUCH_H
\r
16 #define _LINUX_MMS_TOUCH_H
\r
18 #ifndef CONFIG_TOUCHSCREEN_MMS134
\r
19 extern struct tsp_callbacks *charger_callbacks;
\r
20 struct tsp_callbacks {
\r
21 void (*inform_charger)(struct tsp_callbacks *tsp_cb, bool mode);
\r
25 struct mms_ts_platform_data {
\r
36 #ifndef CONFIG_TOUCHSCREEN_MMS134
\r
41 int (*mux_fw_flash)(bool to_gpios);
\r
42 void (*vdd_on)(bool);
\r
43 int (*is_vdd_on)(void);
\r
44 void (*register_cb)(struct tsp_callbacks *);
\r
45 const char *fw_name;
\r
47 bool use_surface_touch;
\r
48 const u8 *touchkey_keycode;
\r
49 int check_module_type;
\r
50 void (*tkey_led_vdd_on)(bool);
\r
51 const char *tsp_ic_name;
\r
53 #ifndef CONFIG_TOUCHSCREEN_MMS134
\r
54 extern struct class *sec_class;
\r
55 extern int touch_is_pressed;
\r
56 /* SPRD remove this declaration due to a compile error */
\r
57 //extern int system_rev;
\r
59 extern int poweroff_charging;
\r
61 extern unsigned char LCD_Get_Value(void);
\r
64 #endif /* _LINUX_MMS_TOUCH_H */
\r