hal_ic_cfg.h 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282
  1. /******************************************************************************
  2. *
  3. * Copyright(c) 2007 - 2017 Realtek Corporation.
  4. *
  5. * This program is free software; you can redistribute it and/or modify it
  6. * under the terms of version 2 of the GNU General Public License as
  7. * published by the Free Software Foundation.
  8. *
  9. * This program is distributed in the hope that it will be useful, but WITHOUT
  10. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  12. * more details.
  13. *
  14. *****************************************************************************/
  15. #ifndef __HAL_IC_CFG_H__
  16. #define __HAL_IC_CFG_H__
  17. #define RTL8188E_SUPPORT 0
  18. #define RTL8812A_SUPPORT 0
  19. #define RTL8821A_SUPPORT 0
  20. #define RTL8723B_SUPPORT 0
  21. #define RTL8723D_SUPPORT 0
  22. #define RTL8192E_SUPPORT 0
  23. #define RTL8192F_SUPPORT 0
  24. #define RTL8814A_SUPPORT 0
  25. #define RTL8195A_SUPPORT 0
  26. #define RTL8197F_SUPPORT 0
  27. #define RTL8703B_SUPPORT 0
  28. #define RTL8188F_SUPPORT 0
  29. #define RTL8822B_SUPPORT 0
  30. #define RTL8821B_SUPPORT 0
  31. #define RTL8821C_SUPPORT 0
  32. #define RTL8710B_SUPPORT 0
  33. #define RTL8814B_SUPPORT 0
  34. #define RTL8824B_SUPPORT 0
  35. #define RTL8198F_SUPPORT 0
  36. #define RTL8195B_SUPPORT 0
  37. #define RTL8822C_SUPPORT 0
  38. /*#if (RTL8188E_SUPPORT==1)*/
  39. #define RATE_ADAPTIVE_SUPPORT 0
  40. #define POWER_TRAINING_ACTIVE 0
  41. #ifdef CONFIG_MULTIDRV
  42. #endif
  43. #ifdef CONFIG_RTL8188E
  44. #undef RTL8188E_SUPPORT
  45. #undef RATE_ADAPTIVE_SUPPORT
  46. #undef POWER_TRAINING_ACTIVE
  47. #define RTL8188E_SUPPORT 1
  48. #define RATE_ADAPTIVE_SUPPORT 1
  49. #define POWER_TRAINING_ACTIVE 1
  50. #endif
  51. #ifdef CONFIG_RTL8812A
  52. #undef RTL8812A_SUPPORT
  53. #define RTL8812A_SUPPORT 1
  54. #ifndef CONFIG_FW_C2H_PKT
  55. #define CONFIG_FW_C2H_PKT
  56. #endif
  57. #endif
  58. #ifdef CONFIG_RTL8821A
  59. #undef RTL8821A_SUPPORT
  60. #define RTL8821A_SUPPORT 1
  61. #ifndef CONFIG_FW_C2H_PKT
  62. #define CONFIG_FW_C2H_PKT
  63. #endif
  64. #endif
  65. #ifdef CONFIG_RTL8192E
  66. #undef RTL8192E_SUPPORT
  67. #define RTL8192E_SUPPORT 1
  68. #ifndef CONFIG_FW_C2H_PKT
  69. #define CONFIG_FW_C2H_PKT
  70. #endif
  71. #endif
  72. #ifdef CONFIG_RTL8192F
  73. #undef RTL8192F_SUPPORT
  74. #define RTL8192F_SUPPORT 1
  75. #ifndef CONFIG_FW_C2H_PKT
  76. #define CONFIG_FW_C2H_PKT
  77. #endif
  78. #ifndef CONFIG_RTW_MAC_HIDDEN_RPT
  79. #define CONFIG_RTW_MAC_HIDDEN_RPT
  80. #endif
  81. /*#define CONFIG_AMPDU_PRETX_CD*/
  82. /*#define DBG_LA_MODE*/
  83. #endif
  84. #ifdef CONFIG_RTL8723B
  85. #undef RTL8723B_SUPPORT
  86. #define RTL8723B_SUPPORT 1
  87. #ifndef CONFIG_FW_C2H_PKT
  88. #define CONFIG_FW_C2H_PKT
  89. #endif
  90. #endif
  91. #ifdef CONFIG_RTL8723D
  92. #undef RTL8723D_SUPPORT
  93. #define RTL8723D_SUPPORT 1
  94. #ifndef CONFIG_FW_C2H_PKT
  95. #define CONFIG_FW_C2H_PKT
  96. #endif
  97. #ifndef CONFIG_RTW_MAC_HIDDEN_RPT
  98. #define CONFIG_RTW_MAC_HIDDEN_RPT
  99. #endif
  100. #ifndef CONFIG_RTW_CUSTOMER_STR
  101. #define CONFIG_RTW_CUSTOMER_STR
  102. #endif
  103. #endif
  104. #ifdef CONFIG_RTL8814A
  105. #undef RTL8814A_SUPPORT
  106. #define RTL8814A_SUPPORT 1
  107. #ifndef CONFIG_FW_C2H_PKT
  108. #define CONFIG_FW_C2H_PKT
  109. #endif
  110. #define CONFIG_FW_CORRECT_BCN
  111. #endif
  112. #ifdef CONFIG_RTL8703B
  113. #undef RTL8703B_SUPPORT
  114. #define RTL8703B_SUPPORT 1
  115. #ifndef CONFIG_FW_C2H_PKT
  116. #define CONFIG_FW_C2H_PKT
  117. #endif
  118. #ifndef CONFIG_RTW_MAC_HIDDEN_RPT
  119. #define CONFIG_RTW_MAC_HIDDEN_RPT
  120. #endif
  121. #endif
  122. #ifdef CONFIG_RTL8188F
  123. #undef RTL8188F_SUPPORT
  124. #define RTL8188F_SUPPORT 1
  125. #ifndef CONFIG_FW_C2H_PKT
  126. #define CONFIG_FW_C2H_PKT
  127. #endif
  128. #ifndef CONFIG_RTW_MAC_HIDDEN_RPT
  129. #define CONFIG_RTW_MAC_HIDDEN_RPT
  130. #endif
  131. #ifndef CONFIG_RTW_CUSTOMER_STR
  132. #define CONFIG_RTW_CUSTOMER_STR
  133. #endif
  134. #endif
  135. #ifdef CONFIG_RTL8188GTV
  136. #undef RTL8188F_SUPPORT
  137. #define RTL8188F_SUPPORT 1
  138. #ifndef CONFIG_FW_C2H_PKT
  139. #define CONFIG_FW_C2H_PKT
  140. #endif
  141. #ifndef CONFIG_RTW_MAC_HIDDEN_RPT
  142. #define CONFIG_RTW_MAC_HIDDEN_RPT
  143. #endif
  144. #ifndef CONFIG_RTW_CUSTOMER_STR
  145. #define CONFIG_RTW_CUSTOMER_STR
  146. #endif
  147. #endif
  148. #ifdef CONFIG_RTL8822B
  149. #undef RTL8822B_SUPPORT
  150. #define RTL8822B_SUPPORT 1
  151. #ifndef CONFIG_FW_C2H_PKT
  152. #define CONFIG_FW_C2H_PKT
  153. #endif /* CONFIG_FW_C2H_PKT */
  154. #define RTW_TX_PA_BIAS /* Adjust TX PA Bias from eFuse */
  155. #define CONFIG_DFS /* Enable 5G band 2&3 channel */
  156. #ifdef CONFIG_WOWLAN
  157. #define CONFIG_GTK_OL
  158. /*#define CONFIG_ARP_KEEP_ALIVE*/
  159. #ifdef CONFIG_GPIO_WAKEUP
  160. #ifndef WAKEUP_GPIO_IDX
  161. #define WAKEUP_GPIO_IDX 6 /* WIFI Chip Side */
  162. #endif /* !WAKEUP_GPIO_IDX */
  163. #endif /* CONFIG_GPIO_WAKEUP */
  164. #endif /* CONFIG_WOWLAN */
  165. #ifdef CONFIG_CONCURRENT_MODE
  166. #define CONFIG_AP_PORT_SWAP
  167. #define CONFIG_FW_MULTI_PORT_SUPPORT
  168. #endif /* CONFIG_CONCURRENT_MODE */
  169. /*
  170. * Beamforming related definition
  171. */
  172. /* Beamforming mechanism is on driver not phydm, always disable it */
  173. #define BEAMFORMING_SUPPORT 0
  174. /* Only support new beamforming mechanism */
  175. #ifdef CONFIG_BEAMFORMING
  176. #define RTW_BEAMFORMING_VERSION_2
  177. #endif /* CONFIG_BEAMFORMING */
  178. #ifndef CONFIG_RTW_MAC_HIDDEN_RPT
  179. #define CONFIG_RTW_MAC_HIDDEN_RPT
  180. #endif /* CONFIG_RTW_MAC_HIDDEN_RPT */
  181. #ifndef DBG_RX_DFRAME_RAW_DATA
  182. #define DBG_RX_DFRAME_RAW_DATA
  183. #endif /* DBG_RX_DFRAME_RAW_DATA */
  184. #ifndef RTW_IQK_FW_OFFLOAD
  185. #define RTW_IQK_FW_OFFLOAD
  186. #endif /* RTW_IQK_FW_OFFLOAD */
  187. #define CONFIG_ADVANCE_OTA
  188. #ifdef CONFIG_MCC_MODE
  189. #define CONFIG_MCC_MODE_V2
  190. #endif /* CONFIG_MCC_MODE */
  191. #if defined(CONFIG_TDLS) && defined(CONFIG_TDLS_CH_SW)
  192. #define CONFIG_TDLS_CH_SW_V2
  193. #endif
  194. #ifndef RTW_CHANNEL_SWITCH_OFFLOAD
  195. #ifdef CONFIG_TDLS_CH_SW_V2
  196. #define RTW_CHANNEL_SWITCH_OFFLOAD
  197. #endif
  198. #endif /* RTW_CHANNEL_SWITCH_OFFLOAD */
  199. #if defined(CONFIG_RTW_MESH) && !defined(RTW_PER_CMD_SUPPORT_FW)
  200. /* Supported since fw v22.1 */
  201. #define RTW_PER_CMD_SUPPORT_FW
  202. #endif /* RTW_PER_CMD_SUPPORT_FW */
  203. #define CONFIG_SUPPORT_FIFO_DUMP
  204. #define CONFIG_HW_P0_TSF_SYNC
  205. #define CONFIG_BCN_RECV_TIME
  206. #endif /* CONFIG_RTL8822B */
  207. #ifdef CONFIG_RTL8821C
  208. #undef RTL8821C_SUPPORT
  209. #define RTL8821C_SUPPORT 1
  210. #define CONFIG_DFS /* Enable 5G band 2&3 channel */
  211. #ifndef CONFIG_FW_C2H_PKT
  212. #define CONFIG_FW_C2H_PKT
  213. #endif
  214. #ifdef CONFIG_NO_FW
  215. #ifdef CONFIG_RTW_MAC_HIDDEN_RPT
  216. #undef CONFIG_RTW_MAC_HIDDEN_RPT
  217. #endif
  218. #else
  219. #ifndef CONFIG_RTW_MAC_HIDDEN_RPT
  220. #define CONFIG_RTW_MAC_HIDDEN_RPT
  221. #endif
  222. #endif
  223. #define LOAD_FW_HEADER_FROM_DRIVER
  224. #define CONFIG_PHY_CAPABILITY_QUERY
  225. #ifdef CONFIG_CONCURRENT_MODE
  226. #define CONFIG_AP_PORT_SWAP
  227. #define CONFIG_FW_MULTI_PORT_SUPPORT
  228. #endif
  229. #define CONFIG_SUPPORT_FIFO_DUMP
  230. #ifndef RTW_IQK_FW_OFFLOAD
  231. #define RTW_IQK_FW_OFFLOAD
  232. #endif /* RTW_IQK_FW_OFFLOAD */
  233. /*#define CONFIG_AMPDU_PRETX_CD*/
  234. /*#define DBG_PRE_TX_HANG*/
  235. /* Beamforming related definition */
  236. /* Beamforming mechanism is on driver not phydm, always disable it */
  237. #define BEAMFORMING_SUPPORT 0
  238. /* Only support new beamforming mechanism */
  239. #ifdef CONFIG_BEAMFORMING
  240. #define RTW_BEAMFORMING_VERSION_2
  241. #endif /* CONFIG_BEAMFORMING */
  242. #define CONFIG_HW_P0_TSF_SYNC
  243. #define CONFIG_BCN_RECV_TIME
  244. #endif /*CONFIG_RTL8821C*/
  245. #ifdef CONFIG_RTL8710B
  246. #undef RTL8710B_SUPPORT
  247. #define RTL8710B_SUPPORT 1
  248. #ifndef CONFIG_FW_C2H_PKT
  249. #define CONFIG_FW_C2H_PKT
  250. #endif
  251. #endif
  252. #endif /*__HAL_IC_CFG_H__*/