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 16 #ifndef __PHYDM_FEATURES_WIN_H__ 17 #define __PHYDM_FEATURES_WIN_H__ 18 19 #if (RTL8814A_SUPPORT || RTL8821C_SUPPORT || RTL8822B_SUPPORT ||\ 20 RTL8197F_SUPPORT || RTL8192F_SUPPORT || RTL8198F_SUPPORT ||\ 21 RTL8822C_SUPPORT || RTL8814B_SUPPORT || RTL8723F_SUPPORT) 22 #define PHYDM_LA_MODE_SUPPORT 1 23 #else 24 #define PHYDM_LA_MODE_SUPPORT 0 25 #endif 26 27 #if (RTL8822B_SUPPORT || RTL8812A_SUPPORT || RTL8197F_SUPPORT ||\ 28 RTL8192F_SUPPORT) 29 #define DYN_ANT_WEIGHTING_SUPPORT 30 #endif 31 32 #if (RTL8822B_SUPPORT || RTL8821C_SUPPORT || RTL8822C_SUPPORT ||\ 33 RTL8814B_SUPPORT || RTL8723F_SUPPORT) 34 #define FAHM_SUPPORT 35 #endif 36 37 #if (RTL8822C_SUPPORT || RTL8723F_SUPPORT) 38 #define IFS_CLM_SUPPORT 39 #endif 40 #define NHM_SUPPORT 41 #define CLM_SUPPORT 42 43 #if (RTL8822C_SUPPORT) 44 #define NHM_DYM_PW_TH_SUPPORT 45 #endif 46 47 #if (RTL8822C_SUPPORT) 48 #define PHYDM_PHYSTAUS_AUTO_SWITCH 49 #endif 50 51 /*#define PHYDM_TDMA_DIG_SUPPORT*/ 52 53 #if (RTL8814B_SUPPORT) 54 /*#define PHYDM_TDMA_DIG_SUPPORT*/ 55 #ifdef PHYDM_TDMA_DIG_SUPPORT 56 /*#define IS_USE_NEW_TDMA*/ /*new tdma dig test*/ 57 #endif 58 #endif 59 60 #if (RTL8197F_SUPPORT || RTL8822B_SUPPORT || RTL8814B_SUPPORT) 61 /*#define PHYDM_LNA_SAT_CHK_SUPPORT*/ 62 #ifdef PHYDM_LNA_SAT_CHK_SUPPORT 63 64 #if (RTL8197F_SUPPORT) 65 /*#define PHYDM_LNA_SAT_CHK_SUPPORT_TYPE1*/ 66 #endif 67 68 #if (RTL8822B_SUPPORT) 69 /*#define PHYDM_LNA_SAT_CHK_TYPE2*/ 70 #endif 71 72 #if (RTL8814B_SUPPORT) 73 /*#define PHYDM_LNA_SAT_CHK_TYPE1*/ 74 #endif 75 #endif 76 #endif 77 78 #if (RTL8822B_SUPPORT || RTL8710B_SUPPORT || RTL8723D_SUPPORT ||\ 79 RTL8192F_SUPPORT) 80 #define PHYDM_POWER_TRAINING_SUPPORT 81 #endif 82 83 #if (RTL8822C_SUPPORT || RTL8814B_SUPPORT || RTL8723F_SUPPORT) 84 #define PHYDM_PMAC_TX_SETTING_SUPPORT 85 #endif 86 87 #if (RTL8822C_SUPPORT || RTL8814B_SUPPORT || RTL8723F_SUPPORT) 88 #define PHYDM_MP_SUPPORT 89 #endif 90 91 #if (RTL8822C_SUPPORT) 92 #define PHYDM_CCK_RX_PATHDIV_SUPPORT 93 #endif 94 95 #if (RTL8822B_SUPPORT) 96 #define PHYDM_TXA_CALIBRATION 97 #endif 98 99 #if (RTL8188E_SUPPORT || RTL8192E_SUPPORT) 100 #define PHYDM_PRIMARY_CCA 101 #endif 102 103 #if (RTL8188F_SUPPORT || RTL8710B_SUPPORT || RTL8821C_SUPPORT ||\ 104 RTL8822B_SUPPORT || RTL8192F_SUPPORT) 105 #define PHYDM_DC_CANCELLATION 106 #endif 107 108 #if (RTL8822B_SUPPORT || RTL8197F_SUPPORT || RTL8192F_SUPPORT) 109 #define CONFIG_ADAPTIVE_SOML 110 #endif 111 112 #if (RTL8192F_SUPPORT) 113 #define CONFIG_8912F_SPUR_CALIBRATION 114 #endif 115 116 /*Antenna Diversity*/ 117 #define CONFIG_PHYDM_ANTENNA_DIVERSITY 118 #ifdef CONFIG_PHYDM_ANTENNA_DIVERSITY 119 120 #if (RTL8723B_SUPPORT || RTL8821A_SUPPORT || RTL8188F_SUPPORT ||\ 121 RTL8821C_SUPPORT || RTL8723D_SUPPORT) 122 #define CONFIG_S0S1_SW_ANTENNA_DIVERSITY 123 #endif 124 125 #if (RTL8822B_SUPPORT) 126 /*#define ODM_EVM_ENHANCE_ANTDIV*/ 127 /*#define CONFIG_2T3R_ANTENNA*/ 128 /*#define CONFIG_2T4R_ANTENNA*/ 129 #endif 130 131 /* --[SmtAnt]-----------------------------------------*/ 132 #if (RTL8821A_SUPPORT) 133 /*#define CONFIG_HL_SMART_ANTENNA_TYPE1*/ 134 #define CONFIG_FAT_PATCH 135 #endif 136 137 #if (RTL8822B_SUPPORT) 138 /*#define CONFIG_HL_SMART_ANTENNA_TYPE2*/ 139 #endif 140 141 #if (defined(CONFIG_HL_SMART_ANTENNA_TYPE1) || defined(CONFIG_HL_SMART_ANTENNA_TYPE2)) 142 #define CONFIG_HL_SMART_ANTENNA 143 #endif 144 145 /* --------------------------------------------------*/ 146 147 #endif 148 149 #if (RTL8822B_SUPPORT || RTL8822C_SUPPORT || RTL8192F_SUPPORT) 150 #define CONFIG_PATH_DIVERSITY 151 #endif 152 153 /*[SmartAntenna]*/ 154 #define CONFIG_SMART_ANTENNA 155 #ifdef CONFIG_SMART_ANTENNA 156 /*#define CONFIG_CUMITEK_SMART_ANTENNA*/ 157 #endif 158 /* --------------------------------------------------*/ 159 160 #if (RTL8188E_SUPPORT || RTL8192E_SUPPORT) 161 #define CONFIG_RECEIVER_BLOCKING 162 #endif 163 164 #if (RTL8821C_SUPPORT || RTL8822C_SUPPORT || RTL8822B_SUPPORT) 165 #define CONFIG_BW_INDICATION 166 #endif 167 168 #if (RTL8812A_SUPPORT || RTL8821A_SUPPORT || RTL8881A_SUPPORT ||\ 169 RTL8192E_SUPPORT || RTL8723B_SUPPORT) 170 #define CONFIG_RA_FW_DBG_CODE 171 #endif 172 173 /* #ifdef CONFIG_SUPPORT_DYNAMIC_TXPWR */ 174 #define CONFIG_DYNAMIC_TX_TWR 175 /* #endif */ 176 #if (RTL8822C_SUPPORT) 177 #define PHYDM_HW_IGI 178 #endif 179 #define CONFIG_PSD_TOOL 180 #define PHYDM_SUPPORT_ADAPTIVITY 181 #define PHYDM_SUPPORT_CCKPD 182 #if (defined(PHYDM_SUPPORT_CCKPD) && RTL8822C_SUPPORT) 183 #define PHYDM_DCC_ENHANCE 184 #endif 185 /*#define CONFIG_RA_DYNAMIC_RTY_LIMIT*/ 186 #define CONFIG_ANT_DETECTION 187 #define CONFIG_BB_TXBF_API 188 #define ODM_CONFIG_BT_COEXIST 189 #define CONFIG_PHYDM_DFS_MASTER 190 #define PHYDM_SUPPORT_RSSI_MONITOR 191 #define PHYDM_AUTO_DEGBUG 192 #define CONFIG_PHYDM_DEBUG_FUNCTION 193 #define CFG_DIG_DAMPING_CHK 194 195 #ifdef PHYDM_BEAMFORMING_SUPPORT 196 #if (RTL8812A_SUPPORT || RTL8821A_SUPPORT || RTL8192E_SUPPORT ||\ 197 RTL8814A_SUPPORT || RTL8881A_SUPPORT) 198 #define PHYDM_BEAMFORMING_VERSION1 199 #endif 200 #if (RTL8192F_SUPPORT || RTL8195B_SUPPORT || RTL8821C_SUPPORT ||\ 201 RTL8822B_SUPPORT || RTL8197F_SUPPORT || RTL8198F_SUPPORT ||\ 202 RTL8822C_SUPPORT || RTL8814B_SUPPORT) 203 #define DRIVER_BEAMFORMING_VERSION2 204 #endif 205 #endif 206 207 #if (RTL8822B_SUPPORT || RTL8192F_SUPPORT) 208 /*#define CONFIG_DIRECTIONAL_BF*/ 209 #endif 210 211 #if (RTL8822C_SUPPORT) 212 #define CONFIG_MU_RSOML 213 #endif 214 215 #endif 216