net: wireless: rockchip_wlan: add rtl8188eu support
[firefly-linux-kernel-4.4.55.git] / drivers / net / wireless / rockchip_wlan / rtl8188eu / hal / phydm / phydm_features.h
1 /******************************************************************************
2  *
3  * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
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  * You should have received a copy of the GNU General Public License along with
15  * this program; if not, write to the Free Software Foundation, Inc.,
16  * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
17  *
18  *
19  ******************************************************************************/
20
21 #ifndef __PHYDM_FEATURES_H__
22 #define __PHYDM_FEATURES
23
24
25 #if (DM_ODM_SUPPORT_TYPE == ODM_WIN)
26         /*Antenna Diversity*/
27         #define CONFIG_PHYDM_ANTENNA_DIVERSITY
28         #ifdef CONFIG_PHYDM_ANTENNA_DIVERSITY
29         
30                 #if (RTL8723B_SUPPORT == 1) || (RTL8821A_SUPPORT == 1) || (RTL8188F_SUPPORT == 1)
31                 #define CONFIG_S0S1_SW_ANTENNA_DIVERSITY
32                 #endif
33                 
34                 #if (RTL8821A_SUPPORT == 1)
35                 /*#define CONFIG_HL_SMART_ANTENNA_TYPE1*/
36                 #endif
37         #endif
38
39         /*#define CONFIG_PATH_DIVERSITY*/
40         /*#define CONFIG_RA_DYNAMIC_RTY_LIMIT*/
41         #define CONFIG_ANT_DETECTION
42         #define CONFIG_RA_DBG_CMD
43
44 #elif (DM_ODM_SUPPORT_TYPE == ODM_AP)
45
46         /*  [ Configure RA Debug H2C CMD ]*/
47         #define CONFIG_RA_DBG_CMD
48         
49         /*#define CONFIG_PATH_DIVERSITY*/
50         /*#define CONFIG_RA_DYNAMIC_RTY_LIMIT*/
51         #define CONFIG_RA_DYNAMIC_RATE_ID
52         
53         /* [ Configure Antenna Diversity ] */
54         #if defined(CONFIG_RTL_8881A_ANT_SWITCH) || defined(CONFIG_SLOT_0_ANT_SWITCH) || defined(CONFIG_SLOT_1_ANT_SWITCH)
55                 #define CONFIG_PHYDM_ANTENNA_DIVERSITY 
56                 #define ODM_EVM_ENHANCE_ANTDIV
57
58                 /*----------*/
59                 
60                 #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))
61                         #define CONFIG_NO_2G_DIVERSITY
62                 #endif
63
64                 #ifdef CONFIG_NO_5G_DIVERSITY_8881A
65                         #define CONFIG_NO_5G_DIVERSITY
66                 #elif defined(CONFIG_5G_CGCS_RX_DIVERSITY_8881A)
67                         #define CONFIG_5G_CGCS_RX_DIVERSITY
68                 #elif defined(CONFIG_5G_CG_TRX_DIVERSITY_8881A)
69                         #define CONFIG_5G_CG_TRX_DIVERSITY
70                 #elif defined(CONFIG_2G5G_CG_TRX_DIVERSITY_8881A)
71                         #define CONFIG_2G5G_CG_TRX_DIVERSITY
72                 #endif
73                 #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))
74                         #define CONFIG_NO_5G_DIVERSITY
75                 #endif  
76                  /*----------*/
77                 #if (defined(CONFIG_NO_2G_DIVERSITY) && defined(CONFIG_NO_5G_DIVERSITY))
78                         #define CONFIG_NOT_SUPPORT_ANTDIV 
79                 #elif (!defined(CONFIG_NO_2G_DIVERSITY) && defined(CONFIG_NO_5G_DIVERSITY))
80                         #define CONFIG_2G_SUPPORT_ANTDIV
81                 #elif (defined(CONFIG_NO_2G_DIVERSITY) && !defined(CONFIG_NO_5G_DIVERSITY))
82                         #define CONFIG_5G_SUPPORT_ANTDIV
83                 #elif ((!defined(CONFIG_NO_2G_DIVERSITY) && !defined(CONFIG_NO_5G_DIVERSITY)) || defined(CONFIG_2G5G_CG_TRX_DIVERSITY))
84                         #define CONFIG_2G5G_SUPPORT_ANTDIV 
85                 #endif
86                  /*----------*/
87         #endif
88
89 #elif (DM_ODM_SUPPORT_TYPE == ODM_CE)
90
91         /*Antenna Diversity*/
92         #ifdef CONFIG_ANTENNA_DIVERSITY
93                 #define CONFIG_PHYDM_ANTENNA_DIVERSITY
94                 
95                 #ifdef CONFIG_PHYDM_ANTENNA_DIVERSITY
96                 
97                         #if (RTL8723B_SUPPORT == 1) || (RTL8821A_SUPPORT == 1) || (RTL8188F_SUPPORT == 1)
98                         #define CONFIG_S0S1_SW_ANTENNA_DIVERSITY
99                         #endif
100                         
101                         #if (RTL8821A_SUPPORT == 1)
102                         /*#define CONFIG_HL_SMART_ANTENNA_TYPE1*/
103                         #endif
104                 #endif
105         #endif
106         
107         /*#define CONFIG_RA_DBG_CMD*/
108         /*#define CONFIG_ANT_DETECTION*/
109         /*#define CONFIG_PATH_DIVERSITY*/
110         /*#define CONFIG_RA_DYNAMIC_RTY_LIMIT*/
111
112 #endif
113
114
115 #endif