phydm_features_ap.h 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  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 __PHYDM_FEATURES_AP_H__
  16. #define __PHYDM_FEATURES_AP_H__
  17. #if (RTL8814A_SUPPORT || RTL8821C_SUPPORT || RTL8822B_SUPPORT ||\
  18. RTL8197F_SUPPORT || RTL8192F_SUPPORT || RTL8198F_SUPPORT ||\
  19. RTL8822C_SUPPORT)
  20. #define PHYDM_LA_MODE_SUPPORT 1
  21. #else
  22. #define PHYDM_LA_MODE_SUPPORT 0
  23. #endif
  24. #if (RTL8822B_SUPPORT || RTL8812A_SUPPORT || RTL8197F_SUPPORT ||\
  25. RTL8192F_SUPPORT)
  26. #define DYN_ANT_WEIGHTING_SUPPORT
  27. #endif
  28. #if (RTL8822B_SUPPORT || RTL8821C_SUPPORT)
  29. #define FAHM_SUPPORT
  30. #endif
  31. #define NHM_SUPPORT
  32. #define CLM_SUPPORT
  33. #if (RTL8822B_SUPPORT)
  34. /*#define PHYDM_PHYSTAUS_SMP_MODE*/
  35. #endif
  36. #if (RTL8197F_SUPPORT)
  37. /*#define PHYDM_TDMA_DIG_SUPPORT*/
  38. #endif
  39. #if (RTL8198F_SUPPORT || RTL8814B_SUPPORT)
  40. /*#define PHYDM_TDMA_DIG_SUPPORT 1*/
  41. #ifdef PHYDM_TDMA_DIG_SUPPORT
  42. /*#define IS_USE_NEW_TDMA*/ /*new tdma dig test*/
  43. #endif
  44. #endif
  45. #if (RTL8197F_SUPPORT || RTL8822B_SUPPORT ||\
  46. RTL8198F_SUPPORT || RTL8814B_SUPPORT)
  47. /*#define PHYDM_LNA_SAT_CHK_SUPPORT*/
  48. #ifdef PHYDM_LNA_SAT_CHK_SUPPORT
  49. #if (RTL8197F_SUPPORT)
  50. /*#define PHYDM_LNA_SAT_CHK_SUPPORT_TYPE1*/
  51. #endif
  52. #if (RTL8822B_SUPPORT)
  53. /*#define PHYDM_LNA_SAT_CHK_TYPE2*/
  54. #endif
  55. #if (RTL8198F_SUPPORT || RTL8814B_SUPPORT)
  56. /*#define PHYDM_LNA_SAT_CHK_TYPE1*/
  57. #endif
  58. #endif
  59. #endif
  60. #if (RTL8822B_SUPPORT)
  61. /*#define PHYDM_POWER_TRAINING_SUPPORT*/
  62. #endif
  63. #if (RTL8822C_SUPPORT)
  64. /* #define PHYDM_PMAC_TX_SETTING_SUPPORT */
  65. #endif
  66. #if (RTL8822C_SUPPORT)
  67. /* #define PHYDM_MP_SUPPORT */
  68. #endif
  69. #if (RTL8822B_SUPPORT)
  70. #define PHYDM_TXA_CALIBRATION
  71. #endif
  72. #if (RTL8188E_SUPPORT || RTL8197F_SUPPORT || RTL8192F_SUPPORT)
  73. #define PHYDM_PRIMARY_CCA
  74. #endif
  75. #if (RTL8188F_SUPPORT || RTL8710B_SUPPORT || RTL8821C_SUPPORT ||\
  76. RTL8822B_SUPPORT || RTL8192F_SUPPORT)
  77. #define PHYDM_DC_CANCELLATION
  78. #endif
  79. #if (RTL8822B_SUPPORT || RTL8197F_SUPPORT || RTL8192F_SUPPORT)
  80. #define CONFIG_ADAPTIVE_SOML
  81. #endif
  82. #if (RTL8812A_SUPPORT || RTL8821A_SUPPORT || RTL8881A_SUPPORT ||\
  83. RTL8192E_SUPPORT || RTL8723B_SUPPORT)
  84. /*#define CONFIG_RA_FW_DBG_CODE*/
  85. #endif
  86. #if (RTL8192F_SUPPORT == 1)
  87. /*#define CONFIG_8912F_SPUR_CALIBRATION*/
  88. #endif
  89. #if (RTL8822B_SUPPORT == 1)
  90. /* #define CONFIG_8822B_SPUR_CALIBRATION */
  91. #endif
  92. #ifdef CONFIG_SUPPORT_DYNAMIC_TXPWR
  93. #define CONFIG_DYNAMIC_TX_TWR
  94. #endif
  95. /*#define CONFIG_PSD_TOOL*/
  96. #define PHYDM_SUPPORT_CCKPD
  97. #define PHYDM_SUPPORT_ADAPTIVITY
  98. /*#define CONFIG_PATH_DIVERSITY*/
  99. /*#define CONFIG_RA_DYNAMIC_RTY_LIMIT*/
  100. /*#define CONFIG_RA_DYNAMIC_RATE_ID*/
  101. #define CONFIG_BB_TXBF_API
  102. /*#define ODM_CONFIG_BT_COEXIST*/
  103. #define PHYDM_SUPPORT_RSSI_MONITOR
  104. #if !defined(CONFIG_DISABLE_PHYDM_DEBUG_FUNCTION)
  105. #define CONFIG_PHYDM_DEBUG_FUNCTION
  106. #endif
  107. /* [ Configure Antenna Diversity ] */
  108. #if (RTL8188F_SUPPORT)
  109. #ifdef CONFIG_ANTENNA_DIVERSITY
  110. #define CONFIG_PHYDM_ANTENNA_DIVERSITY
  111. #define CONFIG_S0S1_SW_ANTENNA_DIVERSITY
  112. #endif
  113. #endif
  114. #if defined(CONFIG_RTL_8881A_ANT_SWITCH) || defined(CONFIG_SLOT_0_ANT_SWITCH) || defined(CONFIG_SLOT_1_ANT_SWITCH) || defined(CONFIG_RTL_8197F_ANT_SWITCH)
  115. #define CONFIG_PHYDM_ANTENNA_DIVERSITY
  116. #define ODM_EVM_ENHANCE_ANTDIV
  117. #define SKIP_EVM_ANTDIV_TRAINING_PATCH
  118. /*----------*/
  119. #ifdef CONFIG_NO_2G_DIVERSITY_8197F
  120. #define CONFIG_NO_2G_DIVERSITY
  121. #elif defined(CONFIG_2G_CGCS_RX_DIVERSITY_8197F)
  122. #define CONFIG_2G_CGCS_RX_DIVERSITY
  123. #elif defined(CONFIG_2G_CG_TRX_DIVERSITY_8197F)
  124. #define CONFIG_2G_CG_TRX_DIVERSITY
  125. #endif
  126. #if (!defined(CONFIG_NO_2G_DIVERSITY) && !defined(CONFIG_2G5G_CG_TRX_DIVERSITY_8881A) && !defined(CONFIG_2G_CGCS_RX_DIVERSITY) && !defined(CONFIG_2G_CG_TRX_DIVERSITY) && !defined(CONFIG_2G_CG_SMART_ANT_DIVERSITY))
  127. #define CONFIG_NO_2G_DIVERSITY
  128. #endif
  129. #ifdef CONFIG_NO_5G_DIVERSITY_8881A
  130. #define CONFIG_NO_5G_DIVERSITY
  131. #elif defined(CONFIG_5G_CGCS_RX_DIVERSITY_8881A)
  132. #define CONFIG_5G_CGCS_RX_DIVERSITY
  133. #elif defined(CONFIG_5G_CG_TRX_DIVERSITY_8881A)
  134. #define CONFIG_5G_CG_TRX_DIVERSITY
  135. #elif defined(CONFIG_2G5G_CG_TRX_DIVERSITY_8881A)
  136. #define CONFIG_2G5G_CG_TRX_DIVERSITY
  137. #endif
  138. #if (!defined(CONFIG_NO_5G_DIVERSITY) && !defined(CONFIG_5G_CGCS_RX_DIVERSITY) && !defined(CONFIG_5G_CG_TRX_DIVERSITY) && !defined(CONFIG_2G5G_CG_TRX_DIVERSITY) && !defined(CONFIG_5G_CG_SMART_ANT_DIVERSITY))
  139. #define CONFIG_NO_5G_DIVERSITY
  140. #endif
  141. /*----------*/
  142. #if (defined(CONFIG_NO_2G_DIVERSITY) && defined(CONFIG_NO_5G_DIVERSITY))
  143. #define CONFIG_NOT_SUPPORT_ANTDIV
  144. #elif (!defined(CONFIG_NO_2G_DIVERSITY) && defined(CONFIG_NO_5G_DIVERSITY))
  145. #define CONFIG_2G_SUPPORT_ANTDIV
  146. #elif (defined(CONFIG_NO_2G_DIVERSITY) && !defined(CONFIG_NO_5G_DIVERSITY))
  147. #define CONFIG_5G_SUPPORT_ANTDIV
  148. #elif ((!defined(CONFIG_NO_2G_DIVERSITY) && !defined(CONFIG_NO_5G_DIVERSITY)) || defined(CONFIG_2G5G_CG_TRX_DIVERSITY))
  149. #define CONFIG_2G5G_SUPPORT_ANTDIV
  150. #endif
  151. /*----------*/
  152. #endif /*Antenna Diveristy*/
  153. /*[SmartAntenna]*/
  154. /*#define CONFIG_SMART_ANTENNA*/
  155. #ifdef CONFIG_SMART_ANTENNA
  156. /*#define CONFIG_CUMITEK_SMART_ANTENNA*/
  157. #endif
  158. #define CFG_DIG_DAMPING_CHK
  159. /* --------------------------------------------------*/
  160. #ifdef BEAMFORMING_SUPPORT
  161. #if (RTL8192F_SUPPORT || RTL8195B_SUPPORT || RTL8821C_SUPPORT ||\
  162. RTL8822B_SUPPORT || RTL8197F_SUPPORT || RTL8198F_SUPPORT ||\
  163. RTL8822C_SUPPORT || RTL8814B_SUPPORT)
  164. #define DRIVER_BEAMFORMING_VERSION2
  165. #endif
  166. #endif
  167. #endif