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