camera_main.h 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
  4. */
  5. #ifndef CAMERA_MAIN_H
  6. #define CAMERA_MAIN_H
  7. #include <linux/platform_device.h>
  8. #include <linux/component.h>
  9. extern struct platform_driver cam_sync_driver;
  10. extern struct platform_driver cam_smmu_driver;
  11. extern struct platform_driver cam_cpas_driver;
  12. extern struct platform_driver cam_cdm_intf_driver;
  13. extern struct platform_driver cam_hw_cdm_driver;
  14. #ifdef CONFIG_SPECTRA_ISP
  15. extern struct platform_driver cam_top_tpg_driver;
  16. extern struct platform_driver cam_ife_csid_driver;
  17. extern struct platform_driver cam_ife_csid_lite_driver;
  18. extern struct platform_driver cam_vfe_driver;
  19. #ifdef CONFIG_SPECTRA_SFE
  20. extern struct platform_driver cam_sfe_driver;
  21. #endif
  22. extern struct platform_driver isp_driver;
  23. #endif
  24. #ifdef CONFIG_SPECTRA_TFE
  25. extern struct platform_driver cam_csid_ppi100_driver;
  26. extern struct platform_driver cam_tfe_driver;
  27. extern struct platform_driver cam_tfe_csid530_driver;
  28. #endif
  29. #ifdef CONFIG_SPECTRA_SENSOR
  30. extern struct platform_driver cam_res_mgr_driver;
  31. extern struct platform_driver cci_driver;
  32. extern struct platform_driver csiphy_driver;
  33. extern struct platform_driver cam_actuator_platform_driver;
  34. extern struct platform_driver cam_sensor_platform_driver;
  35. extern struct platform_driver cam_eeprom_platform_driver;
  36. extern struct platform_driver cam_ois_platform_driver;
  37. #if IS_REACHABLE(CONFIG_LEDS_QPNP_FLASH_V2) || \
  38. IS_REACHABLE(CONFIG_LEDS_QTI_FLASH)
  39. extern struct platform_driver cam_flash_platform_driver;
  40. #endif
  41. #endif
  42. #ifdef CONFIG_SPECTRA_ICP
  43. extern struct platform_driver cam_a5_driver;
  44. extern struct platform_driver cam_lx7_driver;
  45. extern struct platform_driver cam_ipe_driver;
  46. extern struct platform_driver cam_bps_driver;
  47. extern struct platform_driver cam_icp_driver;
  48. #endif
  49. #ifdef CONFIG_SPECTRA_OPE
  50. extern struct platform_driver cam_ope_driver;
  51. extern struct platform_driver cam_ope_subdev_driver;
  52. #endif
  53. #ifdef CONFIG_SPECTRA_JPEG
  54. extern struct platform_driver cam_jpeg_enc_driver;
  55. extern struct platform_driver cam_jpeg_dma_driver;
  56. extern struct platform_driver jpeg_driver;
  57. #endif
  58. #ifdef CONFIG_SPECTRA_FD
  59. extern struct platform_driver cam_fd_hw_driver;
  60. extern struct platform_driver cam_fd_driver;
  61. #endif
  62. #ifdef CONFIG_SPECTRA_LRME
  63. extern struct platform_driver cam_lrme_hw_driver;
  64. extern struct platform_driver cam_lrme_driver;
  65. #endif
  66. #ifdef CONFIG_SPECTRA_CUSTOM
  67. extern struct platform_driver cam_custom_hw_sub_mod_driver;
  68. extern struct platform_driver cam_custom_csid_driver;
  69. extern struct platform_driver custom_driver;
  70. #endif
  71. /*
  72. * Drivers to be bound by component framework in this order with
  73. * CRM as master
  74. */
  75. static struct platform_driver *const cam_component_drivers[] = {
  76. /* BASE */
  77. &cam_sync_driver,
  78. &cam_smmu_driver,
  79. &cam_cpas_driver,
  80. &cam_cdm_intf_driver,
  81. &cam_hw_cdm_driver,
  82. #ifdef CONFIG_SPECTRA_TFE
  83. &cam_csid_ppi100_driver,
  84. &cam_tfe_driver,
  85. &cam_tfe_csid530_driver,
  86. #endif
  87. #ifdef CONFIG_SPECTRA_ISP
  88. &cam_top_tpg_driver,
  89. &cam_ife_csid_driver,
  90. &cam_ife_csid_lite_driver,
  91. &cam_vfe_driver,
  92. #ifdef CONFIG_SPECTRA_SFE
  93. &cam_sfe_driver,
  94. #endif
  95. &isp_driver,
  96. #endif
  97. #ifdef CONFIG_SPECTRA_SENSOR
  98. &cam_res_mgr_driver,
  99. &cci_driver,
  100. &csiphy_driver,
  101. &cam_actuator_platform_driver,
  102. &cam_sensor_platform_driver,
  103. &cam_eeprom_platform_driver,
  104. &cam_ois_platform_driver,
  105. #if IS_REACHABLE(CONFIG_LEDS_QPNP_FLASH_V2) || \
  106. IS_REACHABLE(CONFIG_LEDS_QTI_FLASH)
  107. &cam_flash_platform_driver,
  108. #endif
  109. #endif
  110. #ifdef CONFIG_SPECTRA_ICP
  111. &cam_a5_driver,
  112. &cam_lx7_driver,
  113. &cam_ipe_driver,
  114. &cam_bps_driver,
  115. &cam_icp_driver,
  116. #endif
  117. #ifdef CONFIG_SPECTRA_OPE
  118. &cam_ope_driver,
  119. &cam_ope_subdev_driver,
  120. #endif
  121. #ifdef CONFIG_SPECTRA_JPEG
  122. &cam_jpeg_enc_driver,
  123. &cam_jpeg_dma_driver,
  124. &jpeg_driver,
  125. #endif
  126. #ifdef CONFIG_SPECTRA_FD
  127. &cam_fd_hw_driver,
  128. &cam_fd_driver,
  129. #endif
  130. #ifdef CONFIG_SPECTRA_LRME
  131. &cam_lrme_hw_driver,
  132. &cam_lrme_driver,
  133. #endif
  134. #ifdef CONFIG_SPECTRA_CUSTOM
  135. &cam_custom_hw_sub_mod_driver,
  136. &cam_custom_csid_driver,
  137. &custom_driver,
  138. #endif
  139. };
  140. #endif /* CAMERA_MAIN_H */