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