gt1x_config.h 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. /* drivers/input/touchscreen/gt1x_generic.h
  2. *
  3. * 2010 - 2014 Goodix Technology.
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation; either version 2 of the License, or
  8. * (at your option) any later version.
  9. *
  10. * This program is distributed in the hope that it will be a reference
  11. * to you, when you are integrating the GOODiX's CTP IC into your system,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. * General Public License for more details.
  15. *
  16. * Version: 1.0
  17. * Revision Record:
  18. * V1.0: first release. 2014/09/28.
  19. *
  20. */
  21. #ifndef _GT1X_CONFIG_H_
  22. #define _GT1X_CONFIG_H_
  23. /***************************PART2:TODO define**********************************/
  24. /*TODO: puts the config info corresponded to your TP here, the following is just
  25. a sample config, send this config should cause the chip can not work normally*/
  26. /* TODO define your config for Sensor_ID == 0 here, if needed */
  27. #define GTP_CFG_GROUP0 {\
  28. 0x44, 0xD0, 0x02, 0x00, 0x05, 0x05, 0x3D, 0x10, 0x00, 0x08, \
  29. 0x00, 0x05, 0x3C, 0x28, 0x5E, 0x00, 0x11, 0x00, 0x00, 0x00, \
  30. 0x28, 0x82, 0x96, 0xFC, 0xC8, 0x00, 0x00, 0x00, 0x00, 0x00, \
  31. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, \
  32. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x87, 0x26, 0x17, 0x64, \
  33. 0x66, 0xDF, 0x07, 0x91, 0x31, 0x18, 0x0C, 0x43, 0x24, 0x00, \
  34. 0x06, 0x28, 0x6E, 0x80, 0x94, 0x02, 0x05, 0x08, 0x04, 0xDA, \
  35. 0x33, 0xAF, 0x3F, 0x92, 0x4A, 0x7F, 0x56, 0x71, 0x62, 0x66, \
  36. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \
  37. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x0F, 0x19, 0x04, \
  38. 0x0F, 0x10, 0x42, 0xD8, 0x0F, 0x00, 0x00, 0x00, 0x00, 0x00, \
  39. 0x00, 0x00, 0xFF, 0xFF, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, \
  40. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \
  41. 0x00, 0x00, 0x00, 0x05, 0x1E, 0x00, 0x70, 0x17, 0x50, 0x1E, \
  42. 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0F, 0x0E, 0x10, 0x0D, 0x12, \
  43. 0x13, 0x1F, 0x1E, 0x1D, 0x1C, 0x1B, 0x1A, 0x19, 0x18, 0x17, \
  44. 0x16, 0x15, 0x14, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, \
  45. 0xFF, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, \
  46. 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, \
  47. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \
  48. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, \
  49. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xC8, 0x00, 0x00, \
  50. 0x00, 0x00, 0x24, 0x1E, 0x6D, 0x00, 0x14, 0x28, 0x00, 0x00, \
  51. 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x23, 0x99, 0x01\
  52. }
  53. /* TODO define your config for Sensor_ID == 0 here, if needed */
  54. #define GTP_CFG_GROUP0_CHARGER {\
  55. }
  56. /* TODO define your config for Sensor_ID == 1 here, if needed */
  57. #define GTP_CFG_GROUP1 {\
  58. }
  59. /* TODO define your config for Sensor_ID == 1 here, if needed */
  60. #define GTP_CFG_GROUP1_CHARGER {\
  61. }
  62. /* TODO define your config for Sensor_ID == 2 here, if needed */
  63. #define GTP_CFG_GROUP2 {\
  64. }
  65. /* TODO define your config for Sensor_ID == 2 here, if needed */
  66. #define GTP_CFG_GROUP2_CHARGER {\
  67. }
  68. /* TODO define your config for Sensor_ID == 3 here, if needed */
  69. #define GTP_CFG_GROUP3 {\
  70. }
  71. /* TODO define your config for Sensor_ID == 3 here, if needed */
  72. #define GTP_CFG_GROUP3_CHARGER {\
  73. }
  74. /* TODO define your config for Sensor_ID == 4 here, if needed */
  75. #define GTP_CFG_GROUP4 {\
  76. }
  77. /* TODO define your config for Sensor_ID == 4 here, if needed */
  78. #define GTP_CFG_GROUP4_CHARGER {\
  79. }
  80. /* TODO define your config for Sensor_ID == 5 here, if needed */
  81. #define GTP_CFG_GROUP5 {\
  82. }
  83. /* TODO define your config for Sensor_ID == 5 here, if needed */
  84. #define GTP_CFG_GROUP5_CHARGER {\
  85. }
  86. #endif /* _GT1X_CONFIG_H_ */