blob: cff03d23f84c4fc2b883d087c2fe494987d70f89 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
/*
* mms_ts.h - Platform data for Melfas MMS-series touch driver
*
* Copyright (C) 2011 Google Inc.
* Author: Dima Zavin <dima@android.com>
*
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later version.
*
*/
#ifndef _LINUX_MMS_TOUCH_H
#define _LINUX_MMS_TOUCH_H
#ifndef CONFIG_TOUCHSCREEN_MMS134
extern struct tsp_callbacks *charger_callbacks;
struct tsp_callbacks {
void (*inform_charger)(struct tsp_callbacks *tsp_cb, bool mode);
};
#endif
struct mms_ts_platform_data {
int max_x;
int max_y;
bool invert_x;
bool invert_y;
int gpio_sda;
int gpio_scl;
int gpio_int;
int gpio_resetb;
#ifndef CONFIG_TOUCHSCREEN_MMS134
int gpio_vdd_en;
#else
int gpio_lcd_type;
#endif
int (*mux_fw_flash)(bool to_gpios);
void (*vdd_on)(bool);
int (*is_vdd_on)(void);
void (*register_cb)(struct tsp_callbacks *);
const char *fw_name;
bool use_touchkey;
bool use_surface_touch;
const u8 *touchkey_keycode;
int check_module_type;
void (*tkey_led_vdd_on)(bool);
const char *tsp_ic_name;
};
#ifndef CONFIG_TOUCHSCREEN_MMS134
extern struct class *sec_class;
extern int touch_is_pressed;
/* SPRD remove this declaration due to a compile error */
//extern int system_rev;
extern int poweroff_charging;
/*
extern unsigned char LCD_Get_Value(void);
*/
#endif
#endif /* _LINUX_MMS_TOUCH_H */
|