| /* |
| * Copyright (C) 2011-2014 MediaTek Inc. |
| * |
| * This program is free software: you can redistribute it and/or modify it under the terms of the |
| * GNU General Public License version 2 as published by the Free Software Foundation. |
| * |
| * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; |
| * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| * See the GNU General Public License for more details. |
| * |
| * You should have received a copy of the GNU General Public License along with this program. |
| * If not, see <http://www.gnu.org/licenses/>. |
| */ |
| |
| #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); |