Merge tag 'v3.10.55' into update
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / arch / arm / mach-mt8127 / pixi3_10 / touchpanel / tpd_setting.c
1 #include "tpd.h"
2
3 int TPD_RES_X = 480;
4 int TPD_RES_Y = 800;
5
6 //#if (defined(TPD_HAVE_CALIBRATION) && !defined(TPD_CUSTOM_CALIBRATION))
7 int tpd_calmat[8] = {0};
8 int tpd_def_calmat[8] = {0};
9 int tpd_calmat_size = 8;
10 int tpd_def_calmat_size = 8;
11 module_param_array(tpd_calmat, int, &tpd_calmat_size, 00664);
12 module_param_array(tpd_def_calmat, int, &tpd_def_calmat_size, 00444);
13 //#endif
14 //#ifdef TPD_TYPE_CAPACITIVE
15 int tpd_type_cap = 0;
16
17 int tpd_v_magnify_x = 10;
18 int tpd_v_magnify_y = 10;
19 module_param(tpd_v_magnify_x, int, 00664);
20 module_param(tpd_v_magnify_y, int, 00664);
21
22 module_param(tpd_type_cap, int, 00444);
23 int tpd_firmware_version[2] = {0,0};
24 int tpd_firmware_version_size = 2;
25 module_param_array(tpd_firmware_version, int, &tpd_firmware_version_size, 00444);
26
27 int tpd_mode = TPD_MODE_NORMAL;
28 int tpd_mode_axis = 0;
29 int tpd_mode_min = 400; //TPD_RES_Y/2;
30 int tpd_mode_max = 800; //TPD_RES_Y;
31 int tpd_mode_keypad_tolerance = 480*480/1600; //TPD_RES_X*TPD_RES_X/1600;
32 module_param(tpd_mode, int, 00664);
33 module_param(tpd_mode_axis, int, 00664);
34 module_param(tpd_mode_min, int, 00664);
35 module_param(tpd_mode_max, int, 00664);
36 module_param(tpd_mode_keypad_tolerance, int, 00664);
37
38 /* ATTENTION! all the default values should sync with tpd_adc_init()@tpd_adc.c */
39 int tpd_em_debounce_time0 = 1;
40 int tpd_em_debounce_time = 0;
41 int tpd_em_debounce_time1 = 4;
42 module_param(tpd_em_debounce_time0, int, 00664);
43 module_param(tpd_em_debounce_time1, int, 00664);
44 module_param(tpd_em_debounce_time, int, 00664);
45
46 int tpd_em_spl_num = 1;
47 module_param(tpd_em_spl_num, int, 00664);
48
49 int tpd_em_pressure_threshold = 0;
50 module_param(tpd_em_pressure_threshold, int, 00664);
51
52 int tpd_em_auto_time_interval = 10;
53 module_param(tpd_em_auto_time_interval, int, 00664);
54
55 int tpd_em_sample_cnt = 16;
56 module_param(tpd_em_sample_cnt, int, 00664);
57
58 int tpd_load_status = 0;
59 module_param(tpd_load_status, int, 00664);
60
61 int tpd_em_asamp = 1;
62 module_param(tpd_em_asamp, int, 00664);