focaltech_config.h 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278
  1. /*
  2. *
  3. * FocalTech TouchScreen driver.
  4. *
  5. * Copyright (c) 2012-2019, 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. /****** G: A, I: B, S: C, U: D ******************/
  34. /****** chip type defines, do not modify *********/
  35. #define _FT8716 0x87160805
  36. #define _FT8736 0x87360806
  37. #define _FT8006M 0x80060807
  38. #define _FT8607 0x86070809
  39. #define _FT8006U 0x8006D80B
  40. #define _FT8006S 0x8006A80B
  41. #define _FT8613 0x8613080C
  42. #define _FT8719 0x8719080D
  43. #define _FT8739 0x8739080E
  44. #define _FT8615 0x8615080F
  45. #define _FT8201 0x82010810
  46. #define _FT8006P 0x86220811
  47. #define _FT7251 0x72510812
  48. #define _FT7252 0x72520813
  49. #define _FT8613S 0x8613C814
  50. #define _FT8756 0x87560815
  51. #define _FT8302 0x83020816
  52. #define _FT8009 0x80090817
  53. #define _FT8656 0x86560818
  54. #define _FT8006S_AA 0x86320819
  55. #define _FT7250 0x7250081A
  56. #define _FT7120 0x7120081B
  57. #define _FT8720 0x8720081C
  58. #define _FT8726 0x8726081C
  59. #define _FT8016 0x8016081D
  60. #define _FT5416 0x54160402
  61. #define _FT5426 0x54260402
  62. #define _FT5435 0x54350402
  63. #define _FT5436 0x54360402
  64. #define _FT5526 0x55260402
  65. #define _FT5526I 0x5526B402
  66. #define _FT5446 0x54460402
  67. #define _FT5346 0x53460402
  68. #define _FT5446I 0x5446B402
  69. #define _FT5346I 0x5346B402
  70. #define _FT7661 0x76610402
  71. #define _FT7511 0x75110402
  72. #define _FT7421 0x74210402
  73. #define _FT7681 0x76810402
  74. #define _FT3C47U 0x3C47D402
  75. #define _FT3417 0x34170402
  76. #define _FT3517 0x35170402
  77. #define _FT3327 0x33270402
  78. #define _FT3427 0x34270402
  79. #define _FT7311 0x73110402
  80. #define _FT5526_V00 0x5526C402
  81. #define _FT5626 0x56260401
  82. #define _FT5726 0x57260401
  83. #define _FT5826B 0x5826B401
  84. #define _FT5826S 0x5826C401
  85. #define _FT7811 0x78110401
  86. #define _FT3D47 0x3D470401
  87. #define _FT3617 0x36170401
  88. #define _FT3717 0x37170401
  89. #define _FT3817B 0x3817B401
  90. #define _FT3517U 0x3517D401
  91. #define _FT6236U 0x6236D003
  92. #define _FT6336G 0x6336A003
  93. #define _FT6336U 0x6336D003
  94. #define _FT6436U 0x6436D003
  95. #define _FT6436T 0x6436E003
  96. #define _FT3267 0x32670004
  97. #define _FT3367 0x33670004
  98. #define _FT3327DQQ_XXX 0x3327D482
  99. #define _FT5446DQS_XXX 0x5446D482
  100. #define _FT3427_003 0x3427D482
  101. #define _FT3427G_003 0x3427A482
  102. #define _FT5446_003 0x5446D482
  103. #define _FT5446_Q03 0x5446C482
  104. #define _FT5446_P03 0x5446A481
  105. #define _FT5426_003 0x5426D482
  106. #define _FT5526_003 0x5526D482
  107. #define _FT3518 0x35180481
  108. #define _FT3518U 0x3518D481
  109. #define _FT3558 0x35580481
  110. #define _FT3528 0x35280481
  111. #define _FT5536 0x55360481
  112. #define _FT5536L 0x5536E481
  113. #define _FT3418 0x34180481
  114. #define _FT5446U 0x5446D083
  115. #define _FT5456U 0x5456D083
  116. #define _FT3417U 0x3417D083
  117. #define _FT5426U 0x5426D083
  118. #define _FT3428 0x34280083
  119. #define _FT3437U 0x3437D083
  120. #define _FT7302 0x73020084
  121. #define _FT7202 0x72020084
  122. #define _FT3308 0x33080084
  123. #define _FT6446 0x64460084
  124. #define _FT6346U 0x6346D085
  125. #define _FT6346G 0x6346A085
  126. #define _FT3067 0x30670085
  127. #define _FT3068 0x30680085
  128. #define _FT3168 0x31680085
  129. #define _FT3268 0x32680085
  130. #define _FT6146 0x61460085
  131. #define _FT5726_003 0x5726D486
  132. #define _FT5726_V03 0x5726C486
  133. #define _FT3618 0x36180487
  134. #define _FT5646 0x56460487
  135. #define _FT3A58 0x3A580487
  136. #define _FT3B58 0x3B580487
  137. #define _FT3D58 0x3D580487
  138. #define _FT5936 0x59360487
  139. #define _FT5A36 0x5A360487
  140. #define _FT5B36 0x5B360487
  141. #define _FT5D36 0x5D360487
  142. #define _FT5946 0x59460487
  143. #define _FT5A46 0x5A460487
  144. #define _FT5B46 0x5B460487
  145. #define _FT5D46 0x5D460487
  146. #define _FT3658U 0x3658D488
  147. /******************* Enables *********************/
  148. /*********** 1 to enable, 0 to disable ***********/
  149. /*
  150. * show debug log info
  151. * enable it for debug, disable it for release
  152. */
  153. #define FTS_DEBUG_EN 0
  154. /*
  155. * Linux MultiTouch Protocol
  156. * 1: Protocol B(default), 0: Protocol A
  157. */
  158. #define FTS_MT_PROTOCOL_B_EN 1
  159. /*
  160. * Report Pressure in multitouch
  161. * 1:enable(default),0:disable
  162. */
  163. #define FTS_REPORT_PRESSURE_EN 1
  164. /*
  165. * Gesture function enable
  166. * default: disable
  167. */
  168. #define FTS_GESTURE_EN 0
  169. /*
  170. * ESD check & protection
  171. * default: disable
  172. */
  173. #define FTS_ESDCHECK_EN 0
  174. /*
  175. * Production test enable
  176. * 1: enable, 0:disable(default)
  177. */
  178. #define FTS_TEST_EN 0
  179. /*
  180. * Pinctrl enable
  181. * default: disable
  182. */
  183. #define FTS_PINCTRL_EN 1
  184. /*
  185. * Customer power enable
  186. * enable it when customer need control TP power
  187. * default: disable
  188. */
  189. #define FTS_POWER_SOURCE_CUST_EN 1
  190. /****************************************************/
  191. /********************** Upgrade ****************************/
  192. /*
  193. * auto upgrade
  194. */
  195. #define FTS_AUTO_UPGRADE_EN 1
  196. /*
  197. * auto upgrade for lcd cfg
  198. */
  199. #define FTS_AUTO_LIC_UPGRADE_EN 0
  200. /*
  201. * Numbers of modules support
  202. */
  203. #define FTS_GET_MODULE_NUM 2
  204. /*
  205. * module_id: mean vendor_id generally, also maybe gpio or lcm_id...
  206. * If means vendor_id, the FTS_MODULE_ID = PANEL_ID << 8 + VENDOR_ID
  207. * FTS_GET_MODULE_NUM == 0/1, no check module id, you may ignore them
  208. * FTS_GET_MODULE_NUM >= 2, compatible with FTS_MODULE2_ID
  209. * FTS_GET_MODULE_NUM >= 3, compatible with FTS_MODULE3_ID
  210. */
  211. #define FTS_MODULE_ID 0x0000
  212. #define FTS_MODULE2_ID 0xd566
  213. #define FTS_MODULE3_ID 0x0000
  214. /*
  215. * Need set the following when get firmware via firmware_request()
  216. * For example: if module'vendor is tianma,
  217. * #define FTS_MODULE_NAME "tianma"
  218. * then file_name will be "focaltech_ts_fw_tianma"
  219. * You should rename fw to "focaltech_ts_fw_tianma", and push it into
  220. * etc/firmware or by customers
  221. */
  222. #define FTS_MODULE_NAME "gvo"
  223. #define FTS_MODULE2_NAME "jdi"
  224. #define FTS_MODULE3_NAME ""
  225. /*
  226. * FW.i file for auto upgrade, you must replace it with your own
  227. * define your own fw_file, the sample one to be replaced is invalid
  228. * NOTE: if FTS_GET_MODULE_NUM > 1, it's the fw corresponding with FTS_VENDOR_ID
  229. */
  230. #define FTS_UPGRADE_FW_FILE "include/firmware/fw_sample.i"
  231. /*
  232. * if FTS_GET_MODULE_NUM >= 2, fw corrsponding with FTS_VENDOR_ID2
  233. * define your own fw_file, the sample one is invalid
  234. */
  235. #define FTS_UPGRADE_FW2_FILE "include/firmware/fw_sample.i"
  236. /*
  237. * if FTS_GET_MODULE_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.i"
  241. /*********************************************************/
  242. #endif /* _LINUX_FOCLATECH_CONFIG_H_ */