1 /******************************************************************************
3 * Copyright(c) 2008 - 2012 Intel Corporation. All rights reserved.
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.
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
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
18 * The full GNU General Public License is included in this distribution in the
19 * file called LICENSE.
21 * Contact Information:
22 * Intel Linux Wireless <ilw@linux.intel.com>
23 * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
25 *****************************************************************************/
27 #include <linux/module.h>
28 #include <linux/stringify.h>
29 #include "iwl-config.h"
31 #include "iwl-dev.h" /* still needed */
33 /* Highest firmware API version supported */
34 #define IWL6000_UCODE_API_MAX 6
35 #define IWL6050_UCODE_API_MAX 5
36 #define IWL6000G2_UCODE_API_MAX 6
38 /* Oldest version we won't warn about */
39 #define IWL6000_UCODE_API_OK 4
40 #define IWL6000G2_UCODE_API_OK 5
42 /* Lowest firmware API version supported */
43 #define IWL6000_UCODE_API_MIN 4
44 #define IWL6050_UCODE_API_MIN 4
45 #define IWL6000G2_UCODE_API_MIN 4
47 #define IWL6000_FW_PRE "iwlwifi-6000-"
48 #define IWL6000_MODULE_FIRMWARE(api) IWL6000_FW_PRE __stringify(api) ".ucode"
50 #define IWL6050_FW_PRE "iwlwifi-6050-"
51 #define IWL6050_MODULE_FIRMWARE(api) IWL6050_FW_PRE __stringify(api) ".ucode"
53 #define IWL6005_FW_PRE "iwlwifi-6000g2a-"
54 #define IWL6005_MODULE_FIRMWARE(api) IWL6005_FW_PRE __stringify(api) ".ucode"
56 #define IWL6030_FW_PRE "iwlwifi-6000g2b-"
57 #define IWL6030_MODULE_FIRMWARE(api) IWL6030_FW_PRE __stringify(api) ".ucode"
59 static const struct iwl_base_params iwl6000_base_params
= {
60 .eeprom_size
= OTP_LOW_IMAGE_SIZE
,
61 .num_of_queues
= IWLAGN_NUM_QUEUES
,
63 .max_ll_items
= OTP_MAX_LL_ITEMS_6x00
,
64 .shadow_ram_support
= true,
65 .led_compensation
= 51,
66 .adv_thermal_throttle
= true,
67 .support_ct_kill_exit
= true,
68 .plcp_delta_threshold
= IWL_MAX_PLCP_ERR_THRESHOLD_DEF
,
69 .chain_noise_scale
= 1000,
70 .wd_timeout
= IWL_DEF_WD_TIMEOUT
,
71 .max_event_log_size
= 512,
72 .shadow_reg_enable
= true,
75 static const struct iwl_base_params iwl6050_base_params
= {
76 .eeprom_size
= OTP_LOW_IMAGE_SIZE
,
77 .num_of_queues
= IWLAGN_NUM_QUEUES
,
79 .max_ll_items
= OTP_MAX_LL_ITEMS_6x50
,
80 .shadow_ram_support
= true,
81 .led_compensation
= 51,
82 .adv_thermal_throttle
= true,
83 .support_ct_kill_exit
= true,
84 .plcp_delta_threshold
= IWL_MAX_PLCP_ERR_THRESHOLD_DEF
,
85 .chain_noise_scale
= 1500,
86 .wd_timeout
= IWL_DEF_WD_TIMEOUT
,
87 .max_event_log_size
= 1024,
88 .shadow_reg_enable
= true,
91 static const struct iwl_base_params iwl6000_g2_base_params
= {
92 .eeprom_size
= OTP_LOW_IMAGE_SIZE
,
93 .num_of_queues
= IWLAGN_NUM_QUEUES
,
95 .max_ll_items
= OTP_MAX_LL_ITEMS_6x00
,
96 .shadow_ram_support
= true,
97 .led_compensation
= 57,
98 .adv_thermal_throttle
= true,
99 .support_ct_kill_exit
= true,
100 .plcp_delta_threshold
= IWL_MAX_PLCP_ERR_THRESHOLD_DEF
,
101 .chain_noise_scale
= 1000,
102 .wd_timeout
= IWL_LONG_WD_TIMEOUT
,
103 .max_event_log_size
= 512,
104 .shadow_reg_enable
= true,
107 static const struct iwl_ht_params iwl6000_ht_params
= {
108 .ht_greenfield_support
= true,
109 .use_rts_for_aggregation
= true, /* use rts/cts protection */
112 static const struct iwl_bt_params iwl6000_bt_params
= {
113 /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
114 .advanced_bt_coexist
= true,
115 .agg_time_limit
= BT_AGG_THRESHOLD_DEF
,
116 .bt_init_traffic_load
= IWL_BT_COEX_TRAFFIC_LOAD_NONE
,
117 .bt_prio_boost
= IWLAGN_BT_PRIO_BOOST_DEFAULT
,
118 .bt_sco_disable
= true,
121 #define IWL_DEVICE_6005 \
122 .fw_name_pre = IWL6005_FW_PRE, \
123 .ucode_api_max = IWL6000G2_UCODE_API_MAX, \
124 .ucode_api_ok = IWL6000G2_UCODE_API_OK, \
125 .ucode_api_min = IWL6000G2_UCODE_API_MIN, \
126 .device_family = IWL_DEVICE_FAMILY_6005, \
127 .max_inst_size = IWL60_RTC_INST_SIZE, \
128 .max_data_size = IWL60_RTC_DATA_SIZE, \
129 .eeprom_ver = EEPROM_6005_EEPROM_VERSION, \
130 .eeprom_calib_ver = EEPROM_6005_TX_POWER_VERSION, \
131 .base_params = &iwl6000_g2_base_params, \
132 .need_temp_offset_calib = true, \
133 .led_mode = IWL_LED_RF_STATE
135 const struct iwl_cfg iwl6005_2agn_cfg
= {
136 .name
= "Intel(R) Centrino(R) Advanced-N 6205 AGN",
138 .ht_params
= &iwl6000_ht_params
,
141 const struct iwl_cfg iwl6005_2abg_cfg
= {
142 .name
= "Intel(R) Centrino(R) Advanced-N 6205 ABG",
146 const struct iwl_cfg iwl6005_2bg_cfg
= {
147 .name
= "Intel(R) Centrino(R) Advanced-N 6205 BG",
151 const struct iwl_cfg iwl6005_2agn_sff_cfg
= {
152 .name
= "Intel(R) Centrino(R) Advanced-N 6205S AGN",
154 .ht_params
= &iwl6000_ht_params
,
157 const struct iwl_cfg iwl6005_2agn_d_cfg
= {
158 .name
= "Intel(R) Centrino(R) Advanced-N 6205D AGN",
160 .ht_params
= &iwl6000_ht_params
,
163 const struct iwl_cfg iwl6005_2agn_mow1_cfg
= {
164 .name
= "Intel(R) Centrino(R) Advanced-N 6206 AGN",
166 .ht_params
= &iwl6000_ht_params
,
169 const struct iwl_cfg iwl6005_2agn_mow2_cfg
= {
170 .name
= "Intel(R) Centrino(R) Advanced-N 6207 AGN",
172 .ht_params
= &iwl6000_ht_params
,
175 #define IWL_DEVICE_6030 \
176 .fw_name_pre = IWL6030_FW_PRE, \
177 .ucode_api_max = IWL6000G2_UCODE_API_MAX, \
178 .ucode_api_ok = IWL6000G2_UCODE_API_OK, \
179 .ucode_api_min = IWL6000G2_UCODE_API_MIN, \
180 .device_family = IWL_DEVICE_FAMILY_6030, \
181 .max_inst_size = IWL60_RTC_INST_SIZE, \
182 .max_data_size = IWL60_RTC_DATA_SIZE, \
183 .eeprom_ver = EEPROM_6030_EEPROM_VERSION, \
184 .eeprom_calib_ver = EEPROM_6030_TX_POWER_VERSION, \
185 .base_params = &iwl6000_g2_base_params, \
186 .bt_params = &iwl6000_bt_params, \
187 .need_temp_offset_calib = true, \
188 .led_mode = IWL_LED_RF_STATE, \
191 const struct iwl_cfg iwl6030_2agn_cfg = {
192 .name
= "Intel(R) Centrino(R) Advanced-N 6230 AGN",
194 .ht_params
= &iwl6000_ht_params
,
197 const struct iwl_cfg iwl6030_2abg_cfg
= {
198 .name
= "Intel(R) Centrino(R) Advanced-N 6230 ABG",
202 const struct iwl_cfg iwl6030_2bgn_cfg
= {
203 .name
= "Intel(R) Centrino(R) Advanced-N 6230 BGN",
205 .ht_params
= &iwl6000_ht_params
,
208 const struct iwl_cfg iwl6030_2bg_cfg
= {
209 .name
= "Intel(R) Centrino(R) Advanced-N 6230 BG",
213 const struct iwl_cfg iwl6035_2agn_cfg
= {
214 .name
= "Intel(R) Centrino(R) Advanced-N 6235 AGN",
216 .ht_params
= &iwl6000_ht_params
,
219 const struct iwl_cfg iwl1030_bgn_cfg
= {
220 .name
= "Intel(R) Centrino(R) Wireless-N 1030 BGN",
222 .ht_params
= &iwl6000_ht_params
,
225 const struct iwl_cfg iwl1030_bg_cfg
= {
226 .name
= "Intel(R) Centrino(R) Wireless-N 1030 BG",
230 const struct iwl_cfg iwl130_bgn_cfg
= {
231 .name
= "Intel(R) Centrino(R) Wireless-N 130 BGN",
233 .ht_params
= &iwl6000_ht_params
,
234 .rx_with_siso_diversity
= true,
237 const struct iwl_cfg iwl130_bg_cfg
= {
238 .name
= "Intel(R) Centrino(R) Wireless-N 130 BG",
240 .rx_with_siso_diversity
= true,
244 * "i": Internal configuration, use internal Power Amplifier
246 #define IWL_DEVICE_6000i \
247 .fw_name_pre = IWL6000_FW_PRE, \
248 .ucode_api_max = IWL6000_UCODE_API_MAX, \
249 .ucode_api_ok = IWL6000_UCODE_API_OK, \
250 .ucode_api_min = IWL6000_UCODE_API_MIN, \
251 .device_family = IWL_DEVICE_FAMILY_6000i, \
252 .max_inst_size = IWL60_RTC_INST_SIZE, \
253 .max_data_size = IWL60_RTC_DATA_SIZE, \
254 .valid_tx_ant = ANT_BC, /* .cfg overwrite */ \
255 .valid_rx_ant = ANT_BC, /* .cfg overwrite */ \
256 .eeprom_ver = EEPROM_6000_EEPROM_VERSION, \
257 .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION, \
258 .base_params = &iwl6000_base_params, \
259 .led_mode = IWL_LED_BLINK
261 const struct iwl_cfg iwl6000i_2agn_cfg
= {
262 .name
= "Intel(R) Centrino(R) Advanced-N 6200 AGN",
264 .ht_params
= &iwl6000_ht_params
,
267 const struct iwl_cfg iwl6000i_2abg_cfg
= {
268 .name
= "Intel(R) Centrino(R) Advanced-N 6200 ABG",
272 const struct iwl_cfg iwl6000i_2bg_cfg
= {
273 .name
= "Intel(R) Centrino(R) Advanced-N 6200 BG",
277 #define IWL_DEVICE_6050 \
278 .fw_name_pre = IWL6050_FW_PRE, \
279 .ucode_api_max = IWL6050_UCODE_API_MAX, \
280 .ucode_api_min = IWL6050_UCODE_API_MIN, \
281 .device_family = IWL_DEVICE_FAMILY_6050, \
282 .max_inst_size = IWL60_RTC_INST_SIZE, \
283 .max_data_size = IWL60_RTC_DATA_SIZE, \
284 .valid_tx_ant = ANT_AB, /* .cfg overwrite */ \
285 .valid_rx_ant = ANT_AB, /* .cfg overwrite */ \
286 .eeprom_ver = EEPROM_6050_EEPROM_VERSION, \
287 .eeprom_calib_ver = EEPROM_6050_TX_POWER_VERSION, \
288 .base_params = &iwl6050_base_params, \
289 .led_mode = IWL_LED_BLINK, \
290 .internal_wimax_coex = true
292 const struct iwl_cfg iwl6050_2agn_cfg
= {
293 .name
= "Intel(R) Centrino(R) Advanced-N + WiMAX 6250 AGN",
295 .ht_params
= &iwl6000_ht_params
,
298 const struct iwl_cfg iwl6050_2abg_cfg
= {
299 .name
= "Intel(R) Centrino(R) Advanced-N + WiMAX 6250 ABG",
303 #define IWL_DEVICE_6150 \
304 .fw_name_pre = IWL6050_FW_PRE, \
305 .ucode_api_max = IWL6050_UCODE_API_MAX, \
306 .ucode_api_min = IWL6050_UCODE_API_MIN, \
307 .device_family = IWL_DEVICE_FAMILY_6150, \
308 .max_inst_size = IWL60_RTC_INST_SIZE, \
309 .max_data_size = IWL60_RTC_DATA_SIZE, \
310 .eeprom_ver = EEPROM_6150_EEPROM_VERSION, \
311 .eeprom_calib_ver = EEPROM_6150_TX_POWER_VERSION, \
312 .base_params = &iwl6050_base_params, \
313 .led_mode = IWL_LED_BLINK, \
314 .internal_wimax_coex = true
316 const struct iwl_cfg iwl6150_bgn_cfg
= {
317 .name
= "Intel(R) Centrino(R) Wireless-N + WiMAX 6150 BGN",
319 .ht_params
= &iwl6000_ht_params
,
322 const struct iwl_cfg iwl6150_bg_cfg
= {
323 .name
= "Intel(R) Centrino(R) Wireless-N + WiMAX 6150 BG",
327 const struct iwl_cfg iwl6000_3agn_cfg
= {
328 .name
= "Intel(R) Centrino(R) Ultimate-N 6300 AGN",
329 .fw_name_pre
= IWL6000_FW_PRE
,
330 .ucode_api_max
= IWL6000_UCODE_API_MAX
,
331 .ucode_api_ok
= IWL6000_UCODE_API_OK
,
332 .ucode_api_min
= IWL6000_UCODE_API_MIN
,
333 .device_family
= IWL_DEVICE_FAMILY_6000
,
334 .max_inst_size
= IWL60_RTC_INST_SIZE
,
335 .max_data_size
= IWL60_RTC_DATA_SIZE
,
336 .eeprom_ver
= EEPROM_6000_EEPROM_VERSION
,
337 .eeprom_calib_ver
= EEPROM_6000_TX_POWER_VERSION
,
338 .base_params
= &iwl6000_base_params
,
339 .ht_params
= &iwl6000_ht_params
,
340 .led_mode
= IWL_LED_BLINK
,
343 MODULE_FIRMWARE(IWL6000_MODULE_FIRMWARE(IWL6000_UCODE_API_OK
));
344 MODULE_FIRMWARE(IWL6050_MODULE_FIRMWARE(IWL6050_UCODE_API_MAX
));
345 MODULE_FIRMWARE(IWL6005_MODULE_FIRMWARE(IWL6000G2_UCODE_API_MAX
));
346 MODULE_FIRMWARE(IWL6030_MODULE_FIRMWARE(IWL6000G2_UCODE_API_MAX
));