drv_config.h.in 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331
  1. /* Copyright (C) 2018 RDA Technologies Limited and/or its affiliates("RDA").
  2. * All rights reserved.
  3. *
  4. * This software is supplied "AS IS" without any warranties.
  5. * RDA assumes no responsibility or liability for the use of the software,
  6. * conveys no license or title under any patent, copyright, or mask work
  7. * right to the product. RDA reserves the right to make changes in the
  8. * software without notification. RDA also make no representation or
  9. * warranty that such application will be suitable for the specified use
  10. * without further testing or modification.
  11. */
  12. #ifndef _DRV_CONFIG_H_
  13. #define _DRV_CONFIG_H_
  14. // @AUTO_GENERATION_NOTICE@
  15. /**
  16. * debughost rx buffer size in bytes
  17. *
  18. * This is the buffer before parsing host packet format.
  19. */
  20. #cmakedefine CONFIG_DEBUGHOST_RX_BUF_SIZE @CONFIG_DEBUGHOST_RX_BUF_SIZE@
  21. /**
  22. * whether to support charger
  23. */
  24. #cmakedefine CONFIG_SUPPORT_BATTERY_CHARGER
  25. /**
  26. * whether to support general spi
  27. */
  28. #cmakedefine CONFIG_SUPPORT_GENERAL_SPI
  29. /**
  30. * host command engine packet size
  31. */
  32. #cmakedefine CONFIG_HOST_CMD_ENGINE_MAX_PACKET_SIZE @CONFIG_HOST_CMD_ENGINE_MAX_PACKET_SIZE@
  33. /**
  34. * uart TX baud rate at adaptive mode, before baud rate is detected
  35. */
  36. #cmakedefine CONFIG_UART_AUTOMODE_DEFAULT_BAUD @CONFIG_UART_AUTOMODE_DEFAULT_BAUD@
  37. /**
  38. * enable wcn wifi scan or not
  39. */
  40. #cmakedefine CONFIG_WCN_WIFI_SCAN_SUPPORT
  41. /**
  42. * whether USB is supported
  43. */
  44. #cmakedefine CONFIG_USB_SUPPORT
  45. #ifdef CONFIG_USB_SUPPORT
  46. /**
  47. * usb connect timeout
  48. */
  49. #cmakedefine CONFIG_USB_CONNECT_TIMEOUT @CONFIG_USB_CONNECT_TIMEOUT@
  50. /**
  51. * usb debounce time in milliseconds before enumarating
  52. */
  53. #cmakedefine CONFIG_USB_DETECT_DEBOUNCE_TIME @CONFIG_USB_DETECT_DEBOUNCE_TIME@
  54. /**
  55. * udc features, lower 8 bits for config->bmAttributes, higher are software defined
  56. */
  57. #cmakedefine CONFIG_USB_DEVICE_CONTROLLER_FEATURE @CONFIG_USB_DEVICE_CONTROLLER_FEATURE@
  58. /**
  59. * usb ether host mac address
  60. */
  61. #cmakedefine CONFIG_USB_ETHER_HOST_MAC "@CONFIG_USB_ETHER_HOST_MAC@"
  62. /**
  63. * usb ether dev mac address
  64. */
  65. #cmakedefine CONFIG_USB_ETHER_DEV_MAC "@CONFIG_USB_ETHER_DEV_MAC@"
  66. /**
  67. * usb ether support dynamic change host mac address
  68. */
  69. #cmakedefine CONFIG_USB_ETHER_DYNAMIC_HOST_MAC_SUPPORT @CONFIG_USB_ETHER_DYNAMIC_HOST_MAC_SUPPORT@
  70. #endif
  71. /**
  72. * support 8850 fpga board driver
  73. */
  74. #cmakedefine CONFIG_8850_FPGA_BOARD
  75. /**
  76. * support 8850 bm board driver
  77. */
  78. #cmakedefine CONFIG_8850_BM
  79. /**
  80. * support CAMERA driver
  81. */
  82. #cmakedefine CONFIG_CAMERA_SUPPORT
  83. /**
  84. * support CAMERA GC032A
  85. */
  86. #cmakedefine CONFIG_CAMERA_GC032A_SUPPORT
  87. /**
  88. * support CAMERA GC0310
  89. */
  90. #cmakedefine CONFIG_CAMERA_GC0310_SUPPORT
  91. /**
  92. * support CAMERA BF30A2
  93. */
  94. #cmakedefine CONFIG_CAMERA_BF30A2_SUPPORT
  95. /**
  96. * support CAMERA GC2145
  97. */
  98. #cmakedefine CONFIG_CAMERA_GC2145_SUPPORT
  99. /**
  100. * support CAMERA GC0406
  101. */
  102. #cmakedefine CONFIG_CAMERA_GC0406_SUPPORT
  103. /**
  104. * whether to support camera single buffer
  105. */
  106. #cmakedefine CONFIG_CAMERA_SINGLE_BUFFER
  107. /**
  108. * whether to support camera mipi
  109. */
  110. #cmakedefine CONFIG_MIPI_SUPPORT
  111. /**
  112. * 8850 spi camera Mclk
  113. */
  114. #cmakedefine CONFIG_DEFAULT_CAM_MCLK_FREQ @CONFIG_DEFAULT_CAM_MCLK_FREQ@
  115. /**
  116. * 8850 camera Mclk src freq
  117. */
  118. #cmakedefine CONFIG_DEFAULT_CAM_MCLK_SRC_FREQ @CONFIG_DEFAULT_CAM_MCLK_SRC_FREQ@
  119. /**
  120. * 8850 camera Mclk src num
  121. */
  122. #cmakedefine CONFIG_CAM_MCLK_SRC_NUM @CONFIG_CAM_MCLK_SRC_NUM@
  123. /**
  124. * 8850 camera pix clk src freq
  125. */
  126. #cmakedefine CONFIG_DEFAULT_CAM_PCLK_SRC_FREQ @CONFIG_DEFAULT_CAM_PCLK_SRC_FREQ@
  127. /**
  128. * 8850 camera pix clk src num
  129. */
  130. #cmakedefine CONFIG_CAM_PCLK_SRC_NUM @CONFIG_CAM_PCLK_SRC_NUM@
  131. /**
  132. * 8850 camera csi clk src freq
  133. */
  134. #cmakedefine CONFIG_DEFAULT_CAM_CCLK_SRC_FREQ @CONFIG_DEFAULT_CAM_CCLK_SRC_FREQ@
  135. /**
  136. * 8850 camera csi clk src num
  137. */
  138. #cmakedefine CONFIG_CAM_CCLK_SRC_NUM @CONFIG_CAM_CCLK_SRC_NUM@
  139. /**
  140. * 8850 camera pix clk freq
  141. */
  142. #cmakedefine CONFIG_DEFAULT_CAM_PCLK_FREQ @CONFIG_DEFAULT_CAM_PCLK_FREQ@
  143. /**
  144. * 8850 camera csi clk freq
  145. */
  146. #cmakedefine CONFIG_DEFAULT_CAM_CCLK_FREQ @CONFIG_DEFAULT_CAM_CCLK_FREQ@
  147. /**
  148. * 8850 camera csi Mclk freq
  149. */
  150. #cmakedefine CONFIG_DEFAULT_CAM_MIPI_MCLK_FREQ @CONFIG_DEFAULT_CAM_MIPI_MCLK_FREQ@
  151. /**
  152. * support LCD driver
  153. */
  154. #cmakedefine CONFIG_LCD_SUPPORT
  155. /**
  156. * support GC9305 panel
  157. */
  158. #cmakedefine CONFIG_SUPPORT_LCD_GC9305
  159. /**
  160. * support GC9306 panel
  161. */
  162. #cmakedefine CONFIG_SUPPORT_LCD_GC9306
  163. /**
  164. * support ST7735S panel
  165. */
  166. #cmakedefine CONFIG_SUPPORT_LCD_ST7735S
  167. /**
  168. * support ST7789h2 panel
  169. */
  170. #cmakedefine CONFIG_SUPPORT_LCD_ST7789h2
  171. /**
  172. * support support MIPI LCD driver
  173. */
  174. #cmakedefine CONFIG_MIPI_LCD_SUPPORT
  175. /**
  176. * whether headset detect is supported
  177. */
  178. #cmakedefine CONFIG_HEADSET_DETECT_SUPPORT
  179. /**
  180. * whether sdcard1 detect is supported
  181. */
  182. #cmakedefine CONFIG_BOARD_SUPPORT_SDCARD1_DETECT
  183. /**
  184. * id for SDCARD1 hot plug detect
  185. */
  186. #cmakedefine CONFIG_BOARD_SDCARD1_ID @CONFIG_BOARD_SDCARD1_ID@
  187. /**
  188. * gpio for SDCARD1 hot plug detect
  189. */
  190. #cmakedefine CONFIG_BOARD_SDCARD1_DETECT_GPIO @CONFIG_BOARD_SDCARD1_DETECT_GPIO@
  191. /**
  192. * whether sdcard2 detect is supported
  193. */
  194. #cmakedefine CONFIG_BOARD_SUPPORT_SDCARD2_DETECT
  195. /**
  196. * id for SDCARD2 hot plug detect
  197. */
  198. #cmakedefine CONFIG_BOARD_SDCARD2_ID @CONFIG_BOARD_SDCARD2_ID@
  199. /**
  200. * gpio for SDCARD2 hot plug detect
  201. */
  202. #cmakedefine CONFIG_BOARD_SDCARD2_DETECT_GPIO @CONFIG_BOARD_SDCARD2_DETECT_GPIO@
  203. /**
  204. * headset thread stack size in bytes
  205. */
  206. #cmakedefine CONFIG_HEADSET_STACK_SIZE @CONFIG_HEADSET_STACK_SIZE@
  207. /**
  208. * support SDMMC driver
  209. */
  210. #cmakedefine CONFIG_SDMMC_SUPPORT
  211. /**
  212. * support EMMC driver
  213. */
  214. #cmakedefine CONFIG_EMMC_SUPPORT
  215. /**
  216. * SDMMC clock frequency for SD
  217. */
  218. #cmakedefine CONFIG_SDMMC_CLK_FREQ_SD @CONFIG_SDMMC_CLK_FREQ_SD@
  219. /**
  220. * SDMMC clock frequency for SDHC
  221. */
  222. #cmakedefine CONFIG_SDMMC_CLK_FREQ_SDHC @CONFIG_SDMMC_CLK_FREQ_SDHC@
  223. /**
  224. * support usb host function
  225. */
  226. #cmakedefine CONFIG_USB_HOST_SUPPORT
  227. /**
  228. * support usb device function
  229. */
  230. #cmakedefine CONFIG_USB_DEVICE_SUPPORT
  231. /**
  232. * support SDMMC/EMMC DRIVER
  233. */
  234. #cmakedefine CONFIG_SDIO_SUPPORT
  235. /**
  236. * support SDMMC/EMMC DRIVER
  237. */
  238. #cmakedefine CONFIG_SDIO2_SDMMC_SUPPORT
  239. /**
  240. * support TEE
  241. */
  242. #cmakedefine CONFIG_TEE_SUPPORT
  243. /**
  244. * spport emmc
  245. */
  246. #cmakedefine CONFIG_SUPPORT_EMMC
  247. /**
  248. * 8910 EMMC
  249. */
  250. #cmakedefine CONFIG_8910_EMMC_SUPPORT
  251. /**
  252. * spport SD2
  253. */
  254. #cmakedefine CONFIG_SUPPORT_SD2
  255. /**
  256. * Support large capacity flash
  257. */
  258. #cmakedefine CONFIG_SUPPORT_LC_FLASH
  259. /**
  260. * Support larger than 16MB General spi flash
  261. */
  262. #cmakedefine CONFIG_GENERAL_SPI_LC_FLASH
  263. #endif