net: wireless: rockchip_wlan: add rtl8723cs support
[firefly-linux-kernel-4.4.55.git] / drivers / net / wireless / rockchip_wlan / rtl8723cs / include / hal_ic_cfg.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 #ifndef __HAL_IC_CFG_H__
21 #define __HAL_IC_CFG_H__
22
23 #define RTL8188E_SUPPORT                                0
24 #define RTL8812A_SUPPORT                                0
25 #define RTL8821A_SUPPORT                                0
26 #define RTL8723B_SUPPORT                                0
27 #define RTL8723D_SUPPORT                                0
28 #define RTL8192E_SUPPORT                                0
29 #define RTL8814A_SUPPORT                                0
30 #define RTL8195A_SUPPORT                                0
31 #define RTL8197F_SUPPORT                                0
32 #define RTL8703B_SUPPORT                                0
33 #define RTL8188F_SUPPORT                                0
34 #define RTL8822B_SUPPORT                                0
35 #define RTL8821B_SUPPORT                                0
36 #define RTL8821C_SUPPORT                                0
37 #define RTL8710B_SUPPORT                                0
38
39 /*#if (RTL8188E_SUPPORT==1)*/
40 #define RATE_ADAPTIVE_SUPPORT                   0
41 #define POWER_TRAINING_ACTIVE                   0
42
43 #ifdef CONFIG_MULTIDRV
44 #endif
45
46 #ifdef CONFIG_RTL8188E
47         #undef RTL8188E_SUPPORT
48         #undef RATE_ADAPTIVE_SUPPORT
49         #undef POWER_TRAINING_ACTIVE
50
51         #define RTL8188E_SUPPORT                                1
52         #define RATE_ADAPTIVE_SUPPORT                   1
53         #define POWER_TRAINING_ACTIVE                   1
54         #define CONFIG_GET_RAID_BY_DRV
55 #endif
56
57 #ifdef CONFIG_RTL8812A
58         #undef RTL8812A_SUPPORT
59         #define RTL8812A_SUPPORT                                1
60         #ifndef CONFIG_FW_C2H_PKT
61                 #define CONFIG_FW_C2H_PKT
62         #endif
63 #endif
64
65 #ifdef CONFIG_RTL8821A
66         #undef RTL8821A_SUPPORT
67         #define RTL8821A_SUPPORT                                1
68         #ifndef CONFIG_FW_C2H_PKT
69                 #define CONFIG_FW_C2H_PKT
70         #endif
71 #endif
72
73 #ifdef CONFIG_RTL8192E
74         #undef RTL8192E_SUPPORT
75         #define RTL8192E_SUPPORT                                1
76         #ifndef CONFIG_FW_C2H_PKT
77                 #define CONFIG_FW_C2H_PKT
78         #endif
79 #endif
80
81 #ifdef CONFIG_RTL8723B
82         #undef RTL8723B_SUPPORT
83         #define RTL8723B_SUPPORT                                1
84         #ifndef CONFIG_FW_C2H_PKT
85                 #define CONFIG_FW_C2H_PKT
86         #endif
87 #endif
88
89 #ifdef CONFIG_RTL8723D
90         #undef RTL8723D_SUPPORT
91         #define RTL8723D_SUPPORT                                1
92         #ifndef CONFIG_FW_C2H_PKT
93                 #define CONFIG_FW_C2H_PKT
94         #endif
95         #ifndef CONFIG_RTW_MAC_HIDDEN_RPT
96                 #define CONFIG_RTW_MAC_HIDDEN_RPT
97         #endif
98         #ifndef CONFIG_RTW_CUSTOMER_STR
99                 #define CONFIG_RTW_CUSTOMER_STR
100         #endif
101 #endif
102
103 #ifdef CONFIG_RTL8814A
104         #undef RTL8814A_SUPPORT
105         #define RTL8814A_SUPPORT                                1
106         #ifndef CONFIG_FW_C2H_PKT
107                 #define CONFIG_FW_C2H_PKT
108         #endif
109 #endif
110
111 #ifdef CONFIG_RTL8703B
112         #undef RTL8703B_SUPPORT
113         #define RTL8703B_SUPPORT                                1
114         #ifndef CONFIG_FW_C2H_PKT
115                 #define CONFIG_FW_C2H_PKT
116         #endif
117         #ifndef CONFIG_RTW_MAC_HIDDEN_RPT
118                 #define CONFIG_RTW_MAC_HIDDEN_RPT
119         #endif
120 #endif
121
122 #ifdef CONFIG_RTL8188F
123         #undef RTL8188F_SUPPORT
124         #define RTL8188F_SUPPORT                                1
125         #ifndef CONFIG_FW_C2H_PKT
126                 #define CONFIG_FW_C2H_PKT
127         #endif
128         #ifndef CONFIG_RTW_MAC_HIDDEN_RPT
129                 #define CONFIG_RTW_MAC_HIDDEN_RPT
130         #endif
131         #ifndef CONFIG_RTW_CUSTOMER_STR
132                 #define CONFIG_RTW_CUSTOMER_STR
133         #endif
134 #endif
135
136 #ifdef CONFIG_RTL8822B
137         #undef RTL8822B_SUPPORT
138         #define RTL8822B_SUPPORT                                1
139         #ifndef CONFIG_FW_C2H_PKT
140                 #define CONFIG_FW_C2H_PKT
141         #endif /* CONFIG_FW_C2H_PKT */
142
143         #ifdef CONFIG_WOWLAN
144                 #define CONFIG_GTK_OL
145                 #define CONFIG_ARP_KEEP_ALIVE
146                 #ifndef CONFIG_DEFAULT_PATTERNS_EN
147                         #warning "Force to enable CONFIG_DEFAULT_PATTERNS_EN under WOW"
148                         #define CONFIG_DEFAULT_PATTERNS_EN
149                 #endif /* !CONFIG_DEFAULT_PATTERNS_EN */
150
151                 #ifdef CONFIG_GPIO_WAKEUP
152                         #ifndef WAKEUP_GPIO_IDX
153                                 #define WAKEUP_GPIO_IDX 6       /* WIFI Chip Side */
154                         #endif /* !WAKEUP_GPIO_IDX */
155                 #endif /* CONFIG_GPIO_WAKEUP */
156
157         #endif /* CONFIG_WOWLAN */
158         #ifdef CONFIG_CONCURRENT_MODE
159                 #define CONFIG_AP_PORT_SWAP
160         #endif /* CONFIG_CONCURRENT_MODE */
161
162         /*
163          * Beamforming related definition
164          */
165         #if defined(CONFIG_CONCURRENT_MODE) && defined(CONFIG_BEAMFORMING)
166                 #undef CONFIG_BEAMFORMING
167                 #warning "Not support Beamforming in concurrent mode yet!!"
168         #endif /* CONFIG_CONCURRENT_MODE && CONFIG_BEAMFORMING */
169         /* Beamforming mechanism is on driver not phydm, always disable it */
170         #define BEAMFORMING_SUPPORT                             0
171         /* Only support new beamforming mechanism */
172         #ifdef CONFIG_BEAMFORMING
173                 #define RTW_BEAMFORMING_VERSION_2
174         #endif /* CONFIG_BEAMFORMING */
175
176         #ifndef CONFIG_RTW_MAC_HIDDEN_RPT
177                 #define CONFIG_RTW_MAC_HIDDEN_RPT
178 #endif /* CONFIG_RTW_MAC_HIDDEN_RPT */
179
180 #endif /* CONFIG_RTL8822B */
181
182 #ifdef CONFIG_RTL8821C
183         #undef RTL8821C_SUPPORT
184         #define RTL8821C_SUPPORT                                1
185         #ifndef CONFIG_FW_C2H_PKT
186                 #define CONFIG_FW_C2H_PKT
187         #endif
188         #ifdef CONFIG_NO_FW
189                 #ifdef CONFIG_RTW_MAC_HIDDEN_RPT
190                         #undef CONFIG_RTW_MAC_HIDDEN_RPT
191                 #endif
192         #else
193                 #ifndef CONFIG_RTW_MAC_HIDDEN_RPT
194                         #define CONFIG_RTW_MAC_HIDDEN_RPT
195                 #endif
196         #endif
197         #define LOAD_FW_HEADER_FROM_DRIVER
198         #define CONFIG_PHY_CAPABILITY_QUERY
199         #ifdef CONFIG_CONCURRENT_MODE
200         #define CONFIG_AP_PORT_SWAP
201         /*#define CONFIG_FW_MULTI_PORT_SUPPORT*/
202         #endif
203         #define CONFIG_SUPPORT_FIFO_DUMP
204 #endif
205
206 #endif /*__HAL_IC_CFG_H__*/