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