phydm_features_ce.h 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  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. * The full GNU General Public License is included in this distribution in the
  15. * file called LICENSE.
  16. *
  17. * Contact Information:
  18. * wlanfae <wlanfae@realtek.com>
  19. * Realtek Corporation, No. 2, Innovation Road II, Hsinchu Science Park,
  20. * Hsinchu 300, Taiwan.
  21. *
  22. * Larry Finger <Larry.Finger@lwfinger.net>
  23. *
  24. *****************************************************************************/
  25. #ifndef __PHYDM_FEATURES_CE_H__
  26. #define __PHYDM_FEATURES_CE_H__
  27. #if (RTL8814A_SUPPORT || RTL8821C_SUPPORT || RTL8822B_SUPPORT ||\
  28. RTL8197F_SUPPORT || RTL8192F_SUPPORT || RTL8198F_SUPPORT ||\
  29. RTL8822C_SUPPORT)
  30. #define PHYDM_LA_MODE_SUPPORT 1
  31. #else
  32. #define PHYDM_LA_MODE_SUPPORT 0
  33. #endif
  34. #if (RTL8822B_SUPPORT || RTL8812A_SUPPORT || RTL8197F_SUPPORT ||\
  35. RTL8192F_SUPPORT)
  36. #define DYN_ANT_WEIGHTING_SUPPORT
  37. #endif
  38. #if (RTL8822B_SUPPORT || RTL8821C_SUPPORT)
  39. #define FAHM_SUPPORT
  40. #endif
  41. #define NHM_SUPPORT
  42. #define CLM_SUPPORT
  43. #if (RTL8822B_SUPPORT)
  44. /*@#define PHYDM_PHYSTAUS_SMP_MODE*/
  45. #endif
  46. /*@#define PHYDM_TDMA_DIG_SUPPORT*/
  47. #if (RTL8814B_SUPPORT || RTL8822C_SUPPORT)
  48. /*@#define PHYDM_TDMA_DIG_SUPPORT*/
  49. #ifdef PHYDM_TDMA_DIG_SUPPORT
  50. /*@#define IS_USE_NEW_TDMA*/ /*new tdma dig test*/
  51. #endif
  52. #endif
  53. #if (RTL8197F_SUPPORT || RTL8822B_SUPPORT || RTL8814B_SUPPORT)
  54. /*@#define PHYDM_LNA_SAT_CHK_SUPPORT*/
  55. #ifdef PHYDM_LNA_SAT_CHK_SUPPORT
  56. #if (RTL8197F_SUPPORT)
  57. /*@#define PHYDM_LNA_SAT_CHK_SUPPORT_TYPE1*/
  58. #endif
  59. #if (RTL8822B_SUPPORT)
  60. /*@#define PHYDM_LNA_SAT_CHK_TYPE2*/
  61. #endif
  62. #if (RTL8814B_SUPPORT)
  63. /*@#define PHYDM_LNA_SAT_CHK_TYPE1*/
  64. #endif
  65. #endif
  66. #endif
  67. #if (RTL8822B_SUPPORT || RTL8192F_SUPPORT)
  68. #define PHYDM_POWER_TRAINING_SUPPORT
  69. #endif
  70. #if (RTL8822C_SUPPORT)
  71. /* #define PHYDM_PMAC_TX_SETTING_SUPPORT */
  72. #endif
  73. #if (RTL8822C_SUPPORT)
  74. /* #define PHYDM_MP_SUPPORT */
  75. #endif
  76. #if (RTL8822B_SUPPORT)
  77. #define PHYDM_TXA_CALIBRATION
  78. #endif
  79. #if (RTL8188E_SUPPORT)
  80. #define PHYDM_PRIMARY_CCA
  81. #endif
  82. #if (RTL8188F_SUPPORT || RTL8710B_SUPPORT || RTL8821C_SUPPORT ||\
  83. RTL8822B_SUPPORT || RTL8192F_SUPPORT)
  84. #define PHYDM_DC_CANCELLATION
  85. #endif
  86. #if (RTL8822B_SUPPORT || RTL8197F_SUPPORT || RTL8192F_SUPPORT)
  87. #define CONFIG_ADAPTIVE_SOML
  88. #endif
  89. #if (RTL8188E_SUPPORT || RTL8192E_SUPPORT)
  90. #define CONFIG_RECEIVER_BLOCKING
  91. #endif
  92. #if (RTL8192F_SUPPORT == 1)
  93. /*#define CONFIG_8912F_SPUR_CALIBRATION*/
  94. #endif
  95. #if (RTL8822B_SUPPORT == 1)
  96. #define CONFIG_8822B_SPUR_CALIBRATION
  97. #endif
  98. #ifdef CONFIG_SUPPORT_DYNAMIC_TXPWR
  99. #define CONFIG_DYNAMIC_TX_TWR
  100. #endif
  101. #define PHYDM_SUPPORT_CCKPD
  102. #define PHYDM_SUPPORT_ADAPTIVITY
  103. /*@Antenna Diversity*/
  104. #ifdef CONFIG_ANTENNA_DIVERSITY
  105. #define CONFIG_PHYDM_ANTENNA_DIVERSITY
  106. #ifdef CONFIG_PHYDM_ANTENNA_DIVERSITY
  107. #if (RTL8723B_SUPPORT || RTL8821A_SUPPORT ||\
  108. RTL8188F_SUPPORT || RTL8821C_SUPPORT ||\
  109. RTL8723D_SUPPORT)
  110. #define CONFIG_S0S1_SW_ANTENNA_DIVERSITY
  111. #endif
  112. #if (RTL8821A_SUPPORT)
  113. /*@#define CONFIG_HL_SMART_ANTENNA_TYPE1*/
  114. #endif
  115. #if (RTL8822B_SUPPORT)
  116. /*@#define CONFIG_HL_SMART_ANTENNA_TYPE2*/
  117. #endif
  118. #endif
  119. #endif
  120. /*@[SmartAntenna]*/
  121. /*@#define CONFIG_SMART_ANTENNA*/
  122. #ifdef CONFIG_SMART_ANTENNA
  123. /*@#define CONFIG_CUMITEK_SMART_ANTENNA*/
  124. #endif
  125. /* @--------------------------------------------------*/
  126. #ifdef CONFIG_DFS_MASTER
  127. #define CONFIG_PHYDM_DFS_MASTER
  128. #endif
  129. #if (RTL8812A_SUPPORT || RTL8821A_SUPPORT || RTL8881A_SUPPORT ||\
  130. RTL8192E_SUPPORT || RTL8723B_SUPPORT)
  131. /*@#define CONFIG_RA_FW_DBG_CODE*/
  132. #endif
  133. #define CONFIG_PSD_TOOL
  134. /*@#define CONFIG_ANT_DETECTION*/
  135. /*@#define CONFIG_PATH_DIVERSITY*/
  136. /*@#define CONFIG_RA_DYNAMIC_RTY_LIMIT*/
  137. #define CONFIG_BB_TXBF_API
  138. #define CONFIG_PHYDM_DEBUG_FUNCTION
  139. #ifdef CONFIG_BT_COEXIST
  140. #define ODM_CONFIG_BT_COEXIST
  141. #endif
  142. #define PHYDM_SUPPORT_RSSI_MONITOR
  143. /*@#define PHYDM_AUTO_DEGBUG*/
  144. #define CFG_DIG_DAMPING_CHK
  145. #ifdef BEAMFORMING_SUPPORT
  146. #if (RTL8812A_SUPPORT || RTL8821A_SUPPORT || RTL8192E_SUPPORT ||\
  147. RTL8814A_SUPPORT || RTL8881A_SUPPORT)
  148. #define PHYDM_BEAMFORMING_VERSION1
  149. #endif
  150. #if (RTL8192F_SUPPORT || RTL8195B_SUPPORT || RTL8821C_SUPPORT ||\
  151. RTL8822B_SUPPORT || RTL8197F_SUPPORT || RTL8198F_SUPPORT ||\
  152. RTL8822C_SUPPORT || RTL8814B_SUPPORT)
  153. #define DRIVER_BEAMFORMING_VERSION2
  154. #endif
  155. #endif
  156. #if (RTL8822B_SUPPORT)
  157. #ifdef CONFIG_MCC_MODE
  158. #define CONFIG_MCC_DM
  159. #endif
  160. #endif
  161. #if (RTL8822B_SUPPORT)
  162. #ifdef CONFIG_DYNAMIC_BYPASS_MODE
  163. #define CONFIG_DYNAMIC_BYPASS
  164. #endif
  165. #endif
  166. #endif