import PULS_20160108
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / arch / arm / mach-mt8127 / kr076_nand / touchpanel / tpd_misc.c
1 #include "tpd.h"
2
3 int tpd_calibrate_en = 0;
4 module_param(tpd_calibrate_en, int, 00664);
5
6 int tpd_show_version = 0;
7 module_param(tpd_show_version, int, 00664);
8
9 /* switch touch panel into single scan mode for decreasing interference */
10 void tpd_switch_single_mode(void) {
11 #ifdef HAVE_SINGLE_MULTIPLE_SCAN_MODE
12 _tpd_switch_single_mode();
13 #endif
14 }
15 EXPORT_SYMBOL(tpd_switch_single_mode);
16
17 /* switch touch panel into multiple scan mode for better performance */
18 void tpd_switch_multiple_mode(void) {
19 #ifdef HAVE_SINGLE_MULTIPLE_SCAN_MODE
20 _tpd_switch_multiple_mode();
21 #endif
22 }
23 EXPORT_SYMBOL(tpd_switch_multiple_mode);
24
25 /* switch touch panel into deep sleep mode */
26 void tpd_switch_sleep_mode(void) {
27 #ifdef HAVE_SLEEP_NORMAL_MODE
28 _tpd_switch_sleep_mode();
29 #endif
30 }
31 EXPORT_SYMBOL(tpd_switch_sleep_mode);
32
33 /* switch touch panel back to normal mode */
34 void tpd_switch_normal_mode(void) {
35 #ifdef HAVE_SLEEP_NORMAL_MODE
36 _tpd_switch_normal_mode();
37 #endif
38 }
39 EXPORT_SYMBOL(tpd_switch_normal_mode);