aboutsummaryrefslogtreecommitdiff
path: root/drivers/input/touchscreen/mediatek/tpd_setting.c
blob: fd9c9f4dfa2488191f08ad1083b60247442f818f (plain) (blame)
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
#include "tpd.h"

int TPD_RES_X = 480;
int TPD_RES_Y = 800;

/* #if (defined(TPD_HAVE_CALIBRATION) && !defined(TPD_CUSTOM_CALIBRATION)) */
int tpd_calmat[8] = { 0 };
int tpd_def_calmat[8] = { 0 };

int tpd_calmat_size = 8;
int tpd_def_calmat_size = 8;
module_param_array(tpd_calmat, int, &tpd_calmat_size, 00664);
module_param_array(tpd_def_calmat, int, &tpd_def_calmat_size, 00444);
/* #endif */
/* #ifdef TPD_TYPE_CAPACITIVE */
int tpd_type_cap = 0;

int tpd_v_magnify_x = 10;
int tpd_v_magnify_y = 10;
module_param(tpd_v_magnify_x, int, 00664);
module_param(tpd_v_magnify_y, int, 00664);

module_param(tpd_type_cap, int, 00444);
int tpd_firmware_version[2] = { 0, 0 };

int tpd_firmware_version_size = 2;
module_param_array(tpd_firmware_version, int, &tpd_firmware_version_size, 00444);

int tpd_mode = TPD_MODE_NORMAL;
int tpd_mode_axis = 0;
int tpd_mode_min = 400;		/* TPD_RES_Y/2; */
int tpd_mode_max = 800;		/* TPD_RES_Y; */
int tpd_mode_keypad_tolerance = 480 * 480 / 1600;	/* TPD_RES_X*TPD_RES_X/1600; */
module_param(tpd_mode, int, 00664);
module_param(tpd_mode_axis, int, 00664);
module_param(tpd_mode_min, int, 00664);
module_param(tpd_mode_max, int, 00664);
module_param(tpd_mode_keypad_tolerance, int, 00664);

/* ATTENTION! all the default values should sync with tpd_adc_init()@tpd_adc.c */
int tpd_em_debounce_time0 = 1;
int tpd_em_debounce_time = 0;
int tpd_em_debounce_time1 = 4;
module_param(tpd_em_debounce_time0, int, 00664);
module_param(tpd_em_debounce_time1, int, 00664);
module_param(tpd_em_debounce_time, int, 00664);

int tpd_em_spl_num = 1;
module_param(tpd_em_spl_num, int, 00664);

int tpd_em_pressure_threshold = 0;
module_param(tpd_em_pressure_threshold, int, 00664);

int tpd_em_auto_time_interval = 10;
module_param(tpd_em_auto_time_interval, int, 00664);

int tpd_em_sample_cnt = 16;
module_param(tpd_em_sample_cnt, int, 00664);

int tpd_load_status = 0;
module_param(tpd_load_status, int, 00664);

int tpd_em_asamp = 1;
module_param(tpd_em_asamp, int, 00664);