touch_modules.bzl 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. # Importing to touch module entry api from touch_modules_build.bzl to define module entried for touch drivers
  2. load(":touch_modules_build.bzl", "touch_module_entry")
  3. # Importing the touch driver headers defined in BUILD.bazel
  4. touch_driver_modules = touch_module_entry([":touch_drivers_headers"])
  5. #Including the headers in the modules to be declared
  6. module_entry = touch_driver_modules.register
  7. #--------------- TOUCH-DRIVERS MODULES ------------------
  8. #define ddk_module() for goodix_ts
  9. module_entry(
  10. name = "goodix_ts",
  11. config_option = "CONFIG_TOUCHSCREEN_GOODIX_BRL",
  12. srcs = [
  13. "goodix_berlin_driver/goodix_brl_fwupdate.c",
  14. "goodix_berlin_driver/goodix_brl_hw.c",
  15. "goodix_berlin_driver/goodix_brl_i2c.c",
  16. "goodix_berlin_driver/goodix_brl_spi.c",
  17. "goodix_berlin_driver/goodix_cfg_bin.c",
  18. "goodix_berlin_driver/goodix_ts_core.c",
  19. "goodix_berlin_driver/goodix_ts_gesture.c",
  20. "goodix_berlin_driver/goodix_ts_inspect.c",
  21. "goodix_berlin_driver/goodix_ts_tools.c",
  22. "goodix_berlin_driver/goodix_ts_utils.c",
  23. "qts/qts_core.c"
  24. ]
  25. )
  26. #define ddk_module() for nt36xxx
  27. module_entry(
  28. name = "nt36xxx-i2c",
  29. config_option = "CONFIG_TOUCHSCREEN_NT36XXX_I2C",
  30. srcs = [
  31. "nt36xxx/nt36xxx_ext_proc.c",
  32. "nt36xxx/nt36xxx_fw_update.c",
  33. "nt36xxx/nt36xxx_mp_ctrlram.c",
  34. "nt36xxx/nt36xxx.c"
  35. ]
  36. )
  37. #define ddk_module() for focaltech_fts
  38. module_entry(
  39. name = "focaltech_fts",
  40. config_option = "CONFIG_TOUCH_FOCALTECH",
  41. srcs = [
  42. "focaltech_touch/focaltech_core.c",
  43. "focaltech_touch/focaltech_esdcheck.c",
  44. "focaltech_touch/focaltech_ex_fun.c",
  45. "focaltech_touch/focaltech_ex_mode.c",
  46. "focaltech_touch/focaltech_flash/focaltech_upgrade_ft3518.c",
  47. "focaltech_touch/focaltech_flash.c",
  48. "focaltech_touch/focaltech_gesture.c",
  49. "focaltech_touch/focaltech_i2c.c",
  50. "focaltech_touch/focaltech_point_report_check.c"
  51. ]
  52. )
  53. #define ddk_module() for synaptics_tcm_ts
  54. module_entry(
  55. name = "synaptics_tcm_ts",
  56. config_option = "CONFIG_TOUCHSCREEN_SYNAPTICS_TCM",
  57. srcs = [
  58. "synaptics_tcm/synaptics_tcm_core.c",
  59. "synaptics_tcm/synaptics_tcm_i2c.c",
  60. "synaptics_tcm/synaptics_tcm_touch.c"
  61. ]
  62. )
  63. #define ddk_module() for atmel_mxt_ts
  64. module_entry(
  65. name = "atmel_mxt_ts",
  66. config_option = "CONFIG_TOUCHSCREEN_ATMEL_MXT",
  67. srcs = [
  68. "atmel_mxt/atmel_mxt_ts.c",
  69. ]
  70. )
  71. #define ddk_module() for dummy_ts
  72. module_entry(
  73. name = "dummy_ts",
  74. config_option = "CONFIG_TOUCHSCREEN_DUMMY",
  75. srcs = [
  76. "dummy_touch/dummy_touch.c"
  77. ]
  78. )
  79. #define ddk_module() for glink_interface_ts
  80. module_entry(
  81. name = "glink_comm",
  82. config_option = "CONFIG_TOUCHSCREEN_MSM_GLINK",
  83. srcs = [
  84. "glink_interface_ts/glink_interface.c"
  85. ]
  86. )
  87. #define ddk_module() for pt_ts
  88. module_entry(
  89. name = "pt_ts",
  90. config_option = "CONFIG_TOUCHSCREEN_PARADE",
  91. srcs = [
  92. "pt/pt_core.c",
  93. "pt/pt_devtree.c",
  94. "pt/pt_mt_common.c",
  95. "pt/pt_platform.c",
  96. "pt/pt_btn.c",
  97. "pt/pt_mtb.c",
  98. "pt/pt_proximity.c"
  99. ]
  100. )
  101. #define ddk_module() for pt_i2c
  102. module_entry(
  103. name = "pt_i2c",
  104. config_option = "CONFIG_TOUCHSCREEN_PARADE_I2C",
  105. srcs = [
  106. "pt/pt_i2c.c"
  107. ]
  108. )
  109. #define ddk_module() for pt_device_access
  110. module_entry(
  111. name = "pt_device_access",
  112. config_option = "CONFIG_TOUCHSCREEN_PARADE_DEVICE_ACCESS",
  113. srcs = [
  114. "pt/pt_device_access.c"
  115. ]
  116. )
  117. #define ddk_module() for pt_debug
  118. module_entry(
  119. name = "pt_debug",
  120. config_option = "CONFIG_TOUCHSCREEN_PARADE_DEBUG_MDL",
  121. srcs = [
  122. "pt/pt_debug.c"
  123. ]
  124. )
  125. #define ddk_module() for raydium_ts
  126. module_entry(
  127. name = "raydium_ts",
  128. config_option = "CONFIG_TOUCHSCREEN_RM_TS",
  129. srcs = [
  130. "raydium/drv_interface.c",
  131. "raydium/raydium_driver.c",
  132. "raydium/raydium_fw_update.c",
  133. "raydium/raydium_selftest.c",
  134. "raydium/raydium_sysfs.c",
  135. "raydium/chip_raydium/f303_ic_control.c",
  136. "raydium/chip_raydium/f303_ic_test.c",
  137. "raydium/chip_raydium/ic_drv_global.c",
  138. "raydium/chip_raydium/ic_drv_interface.c"
  139. ]
  140. )