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