xref: /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8723bs/hal/phydm/phydm_features_ap.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  *****************************************************************************/
15 
16 #ifndef	__PHYDM_FEATURES_AP_H__
17 #define __PHYDM_FEATURES_AP
18 
19 #if (RTL8822B_SUPPORT == 1)
20 	/*#define PHYDM_PHYSTAUS_SMP_MODE*/
21 #endif
22 
23 #if (RTL8197F_SUPPORT == 1)
24 	/*#define PHYDM_TDMA_DIG_SUPPORT*/
25 #endif
26 
27 #if (RTL8197F_SUPPORT == 1)
28 	#define PHYDM_LNA_SAT_CHK_SUPPORT
29 #endif
30 
31 #if (RTL8822B_SUPPORT == 1)
32 	/*#define PHYDM_POWER_TRAINING_SUPPORT*/
33 #endif
34 
35 #if (RTL8822B_SUPPORT == 1)
36 	#define PHYDM_TXA_CALIBRATION
37 #endif
38 
39 #if (RTL8188E_SUPPORT == 1) || (RTL8197F_SUPPORT == 1)
40 	#define	PHYDM_PRIMARY_CCA
41 #endif
42 
43 #if (RTL8188F_SUPPORT == 1 || RTL8710B_SUPPORT == 1 || RTL8821C_SUPPORT == 1 || RTL8822B_SUPPORT == 1)
44 	#define	PHYDM_DC_CANCELLATION
45 #endif
46 
47 #if (RTL8822B_SUPPORT == 1)
48 	/*#define	CONFIG_DYNAMIC_RX_PATH*/
49 #endif
50 
51 #if (RTL8822B_SUPPORT == 1 || RTL8197F_SUPPORT == 1)
52 	/*#define	CONFIG_ADAPTIVE_SOML*/
53 #endif
54 
55 #define PHYDM_DIG_MODE_DECISION_SUPPORT
56 /*#define	CONFIG_PSD_TOOL*/
57 #define PHYDM_SUPPORT_CCKPD
58 #define RA_MASK_PHYDMLIZE_AP
59 /* #define	CONFIG_RA_DBG_CMD*/
60 /*#define	CONFIG_RA_FW_DBG_CODE*/
61 
62 /*#define	CONFIG_PATH_DIVERSITY*/
63 /*#define	CONFIG_RA_DYNAMIC_RTY_LIMIT*/
64 #define	CONFIG_RA_DYNAMIC_RATE_ID
65 #define	CONFIG_BB_TXBF_API
66 /*#define	ODM_CONFIG_BT_COEXIST*/
67 /*#define	PHYDM_3RD_REFORM_RA_MASK*/
68 #define	PHYDM_3RD_REFORM_RSSI_MONOTOR
69 #define	PHYDM_SUPPORT_RSSI_MONITOR
70 #if !defined(CONFIG_DISABLE_PHYDM_DEBUG_FUNCTION)
71 	#define CONFIG_PHYDM_DEBUG_FUNCTION
72 #endif
73 
74 /* [ Configure Antenna Diversity ] */
75 #if defined(CONFIG_RTL_8881A_ANT_SWITCH) || defined(CONFIG_SLOT_0_ANT_SWITCH) || defined(CONFIG_SLOT_1_ANT_SWITCH)
76 	#define CONFIG_PHYDM_ANTENNA_DIVERSITY
77 	#define ODM_EVM_ENHANCE_ANTDIV
78 	#define SKIP_EVM_ANTDIV_TRAINING_PATCH
79 
80 	/*----------*/
81 
82 	#if (!defined(CONFIG_NO_2G_DIVERSITY) && !defined(CONFIG_2G5G_CG_TRX_DIVERSITY_8881A) && !defined(CONFIG_2G_CGCS_RX_DIVERSITY) && !defined(CONFIG_2G_CG_TRX_DIVERSITY) && !defined(CONFIG_2G_CG_SMART_ANT_DIVERSITY))
83 		#define CONFIG_NO_2G_DIVERSITY
84 	#endif
85 
86 	#ifdef CONFIG_NO_5G_DIVERSITY_8881A
87 		#define CONFIG_NO_5G_DIVERSITY
88 	#elif defined(CONFIG_5G_CGCS_RX_DIVERSITY_8881A)
89 		#define CONFIG_5G_CGCS_RX_DIVERSITY
90 	#elif defined(CONFIG_5G_CG_TRX_DIVERSITY_8881A)
91 		#define CONFIG_5G_CG_TRX_DIVERSITY
92 	#elif defined(CONFIG_2G5G_CG_TRX_DIVERSITY_8881A)
93 		#define CONFIG_2G5G_CG_TRX_DIVERSITY
94 	#endif
95 	#if (!defined(CONFIG_NO_5G_DIVERSITY) && !defined(CONFIG_5G_CGCS_RX_DIVERSITY) && !defined(CONFIG_5G_CG_TRX_DIVERSITY) && !defined(CONFIG_2G5G_CG_TRX_DIVERSITY) && !defined(CONFIG_5G_CG_SMART_ANT_DIVERSITY))
96 		#define CONFIG_NO_5G_DIVERSITY
97 	#endif
98 	/*----------*/
99 	#if (defined(CONFIG_NO_2G_DIVERSITY) && defined(CONFIG_NO_5G_DIVERSITY))
100 		#define CONFIG_NOT_SUPPORT_ANTDIV
101 	#elif (!defined(CONFIG_NO_2G_DIVERSITY) && defined(CONFIG_NO_5G_DIVERSITY))
102 		#define CONFIG_2G_SUPPORT_ANTDIV
103 	#elif (defined(CONFIG_NO_2G_DIVERSITY) && !defined(CONFIG_NO_5G_DIVERSITY))
104 		#define CONFIG_5G_SUPPORT_ANTDIV
105 	#elif ((!defined(CONFIG_NO_2G_DIVERSITY) && !defined(CONFIG_NO_5G_DIVERSITY)) || defined(CONFIG_2G5G_CG_TRX_DIVERSITY))
106 			#define CONFIG_2G5G_SUPPORT_ANTDIV
107 	#endif
108 		/*----------*/
109 #endif /*Antenna Diveristy*/
110 
111 /*[SmartAntenna]*/
112 /*#define	CONFIG_SMART_ANTENNA*/
113 #ifdef CONFIG_SMART_ANTENNA
114 	/*#define	CONFIG_CUMITEK_SMART_ANTENNA*/
115 #endif
116 /* --------------------------------------------------*/
117 
118 #endif
119