phydm_features_iot.h 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  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_IOT_H__
  26. #define __PHYDM_FEATURES_IOT_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 (RTL8197F_SUPPORT || RTL8822B_SUPPORT)
  48. /*#define PHYDM_LNA_SAT_CHK_SUPPORT*/
  49. #ifdef PHYDM_LNA_SAT_CHK_SUPPORT
  50. #if (RTL8197F_SUPPORT)
  51. /*#define PHYDM_LNA_SAT_CHK_SUPPORT_TYPE1*/
  52. #endif
  53. #if (RTL8822B_SUPPORT)
  54. /*#define PHYDM_LNA_SAT_CHK_TYPE2*/
  55. #endif
  56. #endif
  57. #endif
  58. #if (RTL8822B_SUPPORT)
  59. #define PHYDM_POWER_TRAINING_SUPPORT
  60. #endif
  61. #if (RTL8822C_SUPPORT)
  62. /* #define PHYDM_PMAC_TX_SETTING_SUPPORT */
  63. #endif
  64. #if (RTL8822C_SUPPORT)
  65. /* #define PHYDM_MP_SUPPORT */
  66. #endif
  67. #if (RTL8822B_SUPPORT)
  68. #define PHYDM_TXA_CALIBRATION
  69. #endif
  70. #if (RTL8188E_SUPPORT)
  71. #define PHYDM_PRIMARY_CCA
  72. #endif
  73. #if (RTL8188F_SUPPORT || RTL8710B_SUPPORT || RTL8821C_SUPPORT ||\
  74. RTL8822B_SUPPORT)
  75. #define PHYDM_DC_CANCELLATION
  76. #endif
  77. #if (RTL8822B_SUPPORT || RTL8197F_SUPPORT || RTL8192F_SUPPORT)
  78. #define CONFIG_ADAPTIVE_SOML
  79. #endif
  80. #if (RTL8822B_SUPPORT)
  81. /*#define CONFIG_DYNAMIC_RX_PATH*/
  82. #endif
  83. #if (RTL8822B_SUPPORT == 1)
  84. /* #define CONFIG_8822B_SPUR_CALIBRATION */
  85. #endif
  86. #if (RTL8188E_SUPPORT || RTL8192E_SUPPORT)
  87. #define CONFIG_RECEIVER_BLOCKING
  88. #endif
  89. #ifdef CONFIG_SUPPORT_DYNAMIC_TXPWR
  90. #define CONFIG_DYNAMIC_TX_TWR
  91. #endif
  92. #define PHYDM_SUPPORT_CCKPD
  93. #define PHYDM_SUPPORT_ADAPTIVITY
  94. /*Antenna Diversity*/
  95. #ifdef CONFIG_ANTENNA_DIVERSITY
  96. #define CONFIG_PHYDM_ANTENNA_DIVERSITY
  97. #ifdef CONFIG_PHYDM_ANTENNA_DIVERSITY
  98. #if (RTL8723B_SUPPORT || RTL8821A_SUPPORT ||\
  99. RTL8188F_SUPPORT || RTL8821C_SUPPORT)
  100. #define CONFIG_S0S1_SW_ANTENNA_DIVERSITY
  101. #endif
  102. #if (RTL8821A_SUPPORT)
  103. /*#define CONFIG_HL_SMART_ANTENNA_TYPE1*/
  104. #endif
  105. #if (RTL8822B_SUPPORT)
  106. /*#define CONFIG_HL_SMART_ANTENNA_TYPE2*/
  107. #endif
  108. #endif
  109. #endif
  110. /*[SmartAntenna]*/
  111. /*#define CONFIG_SMART_ANTENNA*/
  112. #ifdef CONFIG_SMART_ANTENNA
  113. /*#define CONFIG_CUMITEK_SMART_ANTENNA*/
  114. #endif
  115. /* --------------------------------------------------*/
  116. #ifdef CONFIG_DFS_MASTER
  117. #define CONFIG_PHYDM_DFS_MASTER
  118. #endif
  119. #if (RTL8812A_SUPPORT || RTL8821A_SUPPORT || RTL8881A_SUPPORT ||\
  120. RTL8192E_SUPPORT || RTL8723B_SUPPORT)
  121. /*#define CONFIG_RA_FW_DBG_CODE*/
  122. #endif
  123. #define CONFIG_PSD_TOOL
  124. /*#define CONFIG_RA_DBG_CMD*/
  125. /*#define CONFIG_ANT_DETECTION*/
  126. /*#define CONFIG_PATH_DIVERSITY*/
  127. /*#define CONFIG_RA_DYNAMIC_RTY_LIMIT*/
  128. #define CONFIG_BB_TXBF_API
  129. #define CONFIG_PHYDM_DEBUG_FUNCTION
  130. #ifdef CONFIG_BT_COEXIST
  131. #define ODM_CONFIG_BT_COEXIST
  132. #endif
  133. #define PHYDM_SUPPORT_RSSI_MONITOR
  134. /*#define PHYDM_AUTO_DEGBUG*/
  135. #define CFG_DIG_DAMPING_CHK
  136. #ifdef BEAMFORMING_SUPPORT
  137. #if (RTL8192F_SUPPORT || RTL8195B_SUPPORT || RTL8821C_SUPPORT ||\
  138. RTL8822B_SUPPORT || RTL8197F_SUPPORT || RTL8198F_SUPPORT ||\
  139. RTL8822C_SUPPORT || RTL8814B_SUPPORT)
  140. #define DRIVER_BEAMFORMING_VERSION2
  141. #endif
  142. #endif
  143. #endif