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