tizen 2.4 release
[profile/mobile/platform/kernel/linux-3.10-sc7730.git] / include / linux / i2c / mms_ts.h
1 /*\r
2  * mms_ts.h - Platform data for Melfas MMS-series touch driver\r
3  *\r
4  * Copyright (C) 2011 Google Inc.\r
5  * Author: Dima Zavin <dima@android.com>\r
6  *\r
7  *\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
12  *\r
13  */\r
14 \r
15 #ifndef _LINUX_MMS_TOUCH_H\r
16 #define _LINUX_MMS_TOUCH_H\r
17 \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
22 };\r
23 #endif\r
24 \r
25 struct mms_ts_platform_data {\r
26         int     max_x;\r
27         int     max_y;\r
28 \r
29         bool    invert_x;\r
30         bool    invert_y;\r
31 \r
32         int     gpio_sda;\r
33         int     gpio_scl;\r
34         int    gpio_int;\r
35         int     gpio_resetb;\r
36 #ifndef CONFIG_TOUCHSCREEN_MMS134\r
37         int     gpio_vdd_en;\r
38 #else\r
39         int     gpio_lcd_type;\r
40 #endif\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
46         bool    use_touchkey;\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
52 };\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
58 \r
59 extern int poweroff_charging;\r
60 /*\r
61 extern unsigned char LCD_Get_Value(void);\r
62 */\r
63 #endif\r
64 #endif /* _LINUX_MMS_TOUCH_H */\r