1 /* 2 * 3 * FocalTech TouchScreen driver. 4 * 5 * Copyright (c) 2012-2018, FocalTech Systems, Ltd., all rights reserved. 6 * 7 * This software is licensed under the terms of the GNU General Public 8 * License version 2, as published by the Free Software Foundation, and 9 * may be copied, distributed, and modified under those terms. 10 * 11 * This program is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU General Public License for more details. 15 * 16 */ 17 /************************************************************************ 18 * 19 * File Name: focaltech_config.h 20 * 21 * Author: Focaltech Driver Team 22 * 23 * Created: 2016-08-08 24 * 25 * Abstract: global configurations 26 * 27 * Version: v1.0 28 * 29 ************************************************************************/ 30 #ifndef _LINUX_FOCLATECH_CONFIG_H_ 31 #define _LINUX_FOCLATECH_CONFIG_H_ 32 33 /**************************************************/ 34 /****** G: A, I: B, S: C, U: D ******************/ 35 /****** chip type defines, do not modify *********/ 36 #define _FT8716 0x87160805 37 #define _FT8736 0x87360806 38 #define _FT8006M 0x80060807 39 #define _FT7250 0x72500807 40 #define _FT8607 0x86070809 41 #define _FT8006U 0x8006D80B 42 #define _FT8006S 0x8006A80B 43 #define _FT8613 0x8613080C 44 #define _FT8719 0x8719080D 45 #define _FT8739 0x8739080E 46 #define _FT8615 0x8615080F 47 #define _FT8201 0x82010810 48 #define _FT8006P 0x86220811 49 50 #define _FT5416 0x54160402 51 #define _FT5426 0x54260402 52 #define _FT5435 0x54350402 53 #define _FT5436 0x54360402 54 #define _FT5526 0x55260402 55 #define _FT5526I 0x5526B402 56 #define _FT5446 0x54460402 57 #define _FT5346 0x53460402 58 #define _FT5446I 0x5446B402 59 #define _FT5346I 0x5346B402 60 #define _FT7661 0x76610402 61 #define _FT7511 0x75110402 62 #define _FT7421 0x74210402 63 #define _FT7681 0x76810402 64 #define _FT3C47U 0x3C47D402 65 #define _FT3417 0x34170402 66 #define _FT3517 0x35170402 67 #define _FT3327 0x33270402 68 #define _FT3427 0x34270402 69 #define _FT7311 0x73110402 70 71 #define _FT5626 0x56260401 72 #define _FT5726 0x57260401 73 #define _FT5826B 0x5826B401 74 #define _FT5826S 0x5826C401 75 #define _FT7811 0x78110401 76 #define _FT3D47 0x3D470401 77 #define _FT3617 0x36170401 78 #define _FT3717 0x37170401 79 #define _FT3817B 0x3817B401 80 #define _FT3517U 0x3517D401 81 82 #define _FT6236U 0x6236D003 83 #define _FT6336G 0x6336A003 84 #define _FT6336U 0x6336D003 85 #define _FT6436U 0x6436D003 86 87 #define _FT3267 0x32670004 88 #define _FT3367 0x33670004 89 90 #define _FT3327DQQ_XXX 0x3327D482 91 #define _FT5446DQS_XXX 0x5446D482 92 93 #define _FT3518 0x35180481 94 #define _FT3558 0x35580481 95 #define _FT3528 0x35280481 96 #define _FT5536 0x55360481 97 98 #define _FT5446U 0x5446D083 99 #define _FT5456U 0x5456D083 100 #define _FT3417U 0x3417D083 101 #define _FT5426U 0x5426D083 102 #define _FT3428 0x34280083 103 #define _FT3437U 0x3437D083 104 105 #define _FT7302 0x73020084 106 #define _FT7202 0x72020084 107 #define _FT3308 0x33080084 108 109 /*************************************************/ 110 111 /* 112 * choose your ic chip type of focaltech 113 */ 114 #define FTS_CHIP_TYPE _FT8201 115 116 /******************* Enables *********************/ 117 /*********** 1 to enable, 0 to disable ***********/ 118 119 /* 120 * show debug log info 121 * enable it for debug, disable it for release 122 */ 123 #define FTS_DEBUG_EN 0 124 125 /* 126 * Linux MultiTouch Protocol 127 * 1: Protocol B(default), 0: Protocol A 128 */ 129 #define FTS_MT_PROTOCOL_B_EN 1 130 131 /* 132 * Report Pressure in multitouch 133 * 1:enable(default),0:disable 134 */ 135 #define FTS_REPORT_PRESSURE_EN 1 136 137 /* 138 * Gesture function enable 139 * default: disable 140 */ 141 #define FTS_GESTURE_EN 0 142 143 /* 144 * ESD check & protection 145 * default: disable 146 */ 147 #define FTS_ESDCHECK_EN 0 148 149 /* 150 * Production test enable 151 * 1: enable, 0:disable(default) 152 */ 153 #define FTS_TEST_EN 0 154 155 /* 156 * Glove mode enable 157 * 1: enable, 0:disable(default) 158 */ 159 #define FTS_GLOVE_EN 0 160 /* 161 * cover enable 162 * 1: enable, 0:disable(default) 163 */ 164 #define FTS_COVER_EN 0 165 /* 166 * Charger enable 167 * 1: enable, 0:disable(default) 168 */ 169 #define FTS_CHARGER_EN 0 170 171 /* 172 * Nodes for tools, please keep enable 173 */ 174 #define FTS_SYSFS_NODE_EN 0 175 #define FTS_APK_NODE_EN 0 176 177 /* 178 * Pinctrl enable 179 * default: disable 180 */ 181 #define FTS_PINCTRL_EN 0 182 183 /* 184 * Customer power enable 185 * enable it when customer need control TP power 186 * default: disable 187 */ 188 #define FTS_POWER_SOURCE_CUST_EN 1 189 190 /****************************************************/ 191 192 /********************** Upgrade ****************************/ 193 /* 194 * auto upgrade, please keep enable 195 */ 196 #define FTS_AUTO_UPGRADE_EN 0 197 198 /* 199 * auto upgrade for lcd cfg 200 */ 201 #define FTS_AUTO_LIC_UPGRADE_EN 1 202 203 /* 204 * Check vendor_id number 205 * 0:No check vendor_id (default) 206 * 1/2/3: Check vendor_id for vendor compatibility 207 */ 208 #define FTS_GET_VENDOR_ID_NUM 0 209 210 /* 211 * vendor_id(s) for vendor(s) to be compatible with. 212 * a confirmation of vendor_id(s) is recommended. 213 * FTS_VENDOR_ID = PANEL_ID << 8 + VENDOR_ID 214 * FTS_GET_VENDOR_ID_NUM == 0/1, no check vendor id, you may ignore them 215 * FTS_GET_VENDOR_ID_NUM > 1, compatible with FTS_VENDOR_ID 216 * FTS_GET_VENDOR_ID_NUM >= 2, compatible with FTS_VENDOR_ID2 217 * FTS_GET_VENDOR_ID_NUM >= 3, compatible with FTS_VENDOR_ID3 218 */ 219 #define FTS_VENDOR_ID 0x0000 220 #define FTS_VENDOR_ID2 0x0000 221 #define FTS_VENDOR_ID3 0x0000 222 223 /* 224 * FW.i file for auto upgrade, you must replace it with your own 225 * define your own fw_file, the sample one to be replaced is invalid 226 * NOTE: if FTS_GET_VENDOR_ID_NUM > 1, it's the fw corresponding with FTS_VENDOR_ID 227 */ 228 #define FTS_UPGRADE_FW_FILE "include/firmware/fw_sample.h" 229 230 /* 231 * if FTS_GET_VENDOR_ID_NUM >= 2, fw corrsponding with FTS_VENDOR_ID2 232 * define your own fw_file, the sample one is invalid 233 */ 234 #define FTS_UPGRADE_FW2_FILE "include/firmware/fw_sample.h" 235 236 /* 237 * if FTS_GET_VENDOR_ID_NUM >= 3, fw corrsponding with FTS_VENDOR_ID3 238 * define your own fw_file, the sample one is invalid 239 */ 240 #define FTS_UPGRADE_FW3_FILE "include/firmware/fw_sample.h" 241 242 /*********************************************************/ 243 244 #endif /* _LINUX_FOCLATECH_CONFIG_H_ */ 245