Linux Audio

Check our new training course

Loading...
v6.8
  1// SPDX-License-Identifier: GPL-2.0-only
  2/******************************************************************************
  3 *
  4 * Copyright(c) 2008 - 2014 Intel Corporation. All rights reserved.
  5 * Copyright(c) 2018 - 2020, 2023 Intel Corporation
 
 
 
 
 
  6 *****************************************************************************/
  7
  8#include <linux/module.h>
  9#include <linux/stringify.h>
 10#include "iwl-config.h"
 11#include "iwl-agn-hw.h"
 12#include "dvm/commands.h" /* needed for BT for now */
 13
 14/* Highest firmware API version supported */
 15#define IWL6000_UCODE_API_MAX 6
 16#define IWL6050_UCODE_API_MAX 5
 17#define IWL6000G2_UCODE_API_MAX 6
 18#define IWL6035_UCODE_API_MAX 6
 19
 20/* Lowest firmware API version supported */
 21#define IWL6000_UCODE_API_MIN 4
 22#define IWL6050_UCODE_API_MIN 4
 23#define IWL6000G2_UCODE_API_MIN 5
 24#define IWL6035_UCODE_API_MIN 6
 25
 26/* EEPROM versions */
 27#define EEPROM_6000_TX_POWER_VERSION	(4)
 28#define EEPROM_6000_EEPROM_VERSION	(0x423)
 29#define EEPROM_6050_TX_POWER_VERSION	(4)
 30#define EEPROM_6050_EEPROM_VERSION	(0x532)
 31#define EEPROM_6150_TX_POWER_VERSION	(6)
 32#define EEPROM_6150_EEPROM_VERSION	(0x553)
 33#define EEPROM_6005_TX_POWER_VERSION	(6)
 34#define EEPROM_6005_EEPROM_VERSION	(0x709)
 35#define EEPROM_6030_TX_POWER_VERSION	(6)
 36#define EEPROM_6030_EEPROM_VERSION	(0x709)
 37#define EEPROM_6035_TX_POWER_VERSION	(6)
 38#define EEPROM_6035_EEPROM_VERSION	(0x753)
 39
 40#define IWL6000_FW_PRE "iwlwifi-6000"
 41#define IWL6000_MODULE_FIRMWARE(api) IWL6000_FW_PRE "-" __stringify(api) ".ucode"
 42
 43#define IWL6050_FW_PRE "iwlwifi-6050"
 44#define IWL6050_MODULE_FIRMWARE(api) IWL6050_FW_PRE "-" __stringify(api) ".ucode"
 45
 46#define IWL6005_FW_PRE "iwlwifi-6000g2a"
 47#define IWL6005_MODULE_FIRMWARE(api) IWL6005_FW_PRE "-" __stringify(api) ".ucode"
 48
 49#define IWL6030_FW_PRE "iwlwifi-6000g2b"
 50#define IWL6030_MODULE_FIRMWARE(api) IWL6030_FW_PRE "-" __stringify(api) ".ucode"
 51
 52static const struct iwl_base_params iwl6000_base_params = {
 53	.eeprom_size = OTP_LOW_IMAGE_SIZE_2K,
 54	.num_of_queues = IWLAGN_NUM_QUEUES,
 55	.max_tfd_queue_size = 256,
 56	.max_ll_items = OTP_MAX_LL_ITEMS_6x00,
 57	.shadow_ram_support = true,
 58	.led_compensation = 51,
 59	.wd_timeout = IWL_DEF_WD_TIMEOUT,
 60	.max_event_log_size = 512,
 61	.shadow_reg_enable = false, /* TODO: fix bugs using this feature */
 62	.scd_chain_ext_wa = true,
 63};
 64
 65static const struct iwl_base_params iwl6050_base_params = {
 66	.eeprom_size = OTP_LOW_IMAGE_SIZE_2K,
 67	.num_of_queues = IWLAGN_NUM_QUEUES,
 68	.max_tfd_queue_size = 256,
 69	.max_ll_items = OTP_MAX_LL_ITEMS_6x50,
 70	.shadow_ram_support = true,
 71	.led_compensation = 51,
 72	.wd_timeout = IWL_DEF_WD_TIMEOUT,
 73	.max_event_log_size = 1024,
 74	.shadow_reg_enable = false, /* TODO: fix bugs using this feature */
 75	.scd_chain_ext_wa = true,
 76};
 77
 78static const struct iwl_base_params iwl6000_g2_base_params = {
 79	.eeprom_size = OTP_LOW_IMAGE_SIZE_2K,
 80	.num_of_queues = IWLAGN_NUM_QUEUES,
 81	.max_tfd_queue_size = 256,
 82	.max_ll_items = OTP_MAX_LL_ITEMS_6x00,
 83	.shadow_ram_support = true,
 84	.led_compensation = 57,
 85	.wd_timeout = IWL_LONG_WD_TIMEOUT,
 86	.max_event_log_size = 512,
 87	.shadow_reg_enable = false, /* TODO: fix bugs using this feature */
 88	.scd_chain_ext_wa = true,
 89};
 90
 91static const struct iwl_ht_params iwl6000_ht_params = {
 92	.ht_greenfield_support = true,
 93	.use_rts_for_aggregation = true, /* use rts/cts protection */
 94	.ht40_bands = BIT(NL80211_BAND_2GHZ) | BIT(NL80211_BAND_5GHZ),
 95};
 96
 97static const struct iwl_eeprom_params iwl6000_eeprom_params = {
 98	.regulatory_bands = {
 99		EEPROM_REG_BAND_1_CHANNELS,
100		EEPROM_REG_BAND_2_CHANNELS,
101		EEPROM_REG_BAND_3_CHANNELS,
102		EEPROM_REG_BAND_4_CHANNELS,
103		EEPROM_REG_BAND_5_CHANNELS,
104		EEPROM_6000_REG_BAND_24_HT40_CHANNELS,
105		EEPROM_REG_BAND_52_HT40_CHANNELS
106	},
107	.enhanced_txpower = true,
108};
109
110#define IWL_DEVICE_6005						\
111	.fw_name_pre = IWL6005_FW_PRE,				\
112	.ucode_api_max = IWL6000G2_UCODE_API_MAX,		\
113	.ucode_api_min = IWL6000G2_UCODE_API_MIN,		\
114	.trans.device_family = IWL_DEVICE_FAMILY_6005,		\
115	.max_inst_size = IWL60_RTC_INST_SIZE,			\
116	.max_data_size = IWL60_RTC_DATA_SIZE,			\
117	.nvm_ver = EEPROM_6005_EEPROM_VERSION,		\
118	.nvm_calib_ver = EEPROM_6005_TX_POWER_VERSION,	\
119	.trans.base_params = &iwl6000_g2_base_params,		\
120	.eeprom_params = &iwl6000_eeprom_params,		\
121	.led_mode = IWL_LED_RF_STATE
 
 
122
123const struct iwl_cfg iwl6005_2agn_cfg = {
124	.name = "Intel(R) Centrino(R) Advanced-N 6205 AGN",
125	IWL_DEVICE_6005,
126	.ht_params = &iwl6000_ht_params,
127};
128
129const struct iwl_cfg iwl6005_2abg_cfg = {
130	.name = "Intel(R) Centrino(R) Advanced-N 6205 ABG",
131	IWL_DEVICE_6005,
132};
133
134const struct iwl_cfg iwl6005_2bg_cfg = {
135	.name = "Intel(R) Centrino(R) Advanced-N 6205 BG",
136	IWL_DEVICE_6005,
137};
138
139const struct iwl_cfg iwl6005_2agn_sff_cfg = {
140	.name = "Intel(R) Centrino(R) Advanced-N 6205S AGN",
141	IWL_DEVICE_6005,
142	.ht_params = &iwl6000_ht_params,
143};
144
145const struct iwl_cfg iwl6005_2agn_d_cfg = {
146	.name = "Intel(R) Centrino(R) Advanced-N 6205D AGN",
147	IWL_DEVICE_6005,
148	.ht_params = &iwl6000_ht_params,
149};
150
151const struct iwl_cfg iwl6005_2agn_mow1_cfg = {
152	.name = "Intel(R) Centrino(R) Advanced-N 6206 AGN",
153	IWL_DEVICE_6005,
154	.ht_params = &iwl6000_ht_params,
155};
156
157const struct iwl_cfg iwl6005_2agn_mow2_cfg = {
158	.name = "Intel(R) Centrino(R) Advanced-N 6207 AGN",
159	IWL_DEVICE_6005,
160	.ht_params = &iwl6000_ht_params,
161};
162
163#define IWL_DEVICE_6030						\
164	.fw_name_pre = IWL6030_FW_PRE,				\
165	.ucode_api_max = IWL6000G2_UCODE_API_MAX,		\
166	.ucode_api_min = IWL6000G2_UCODE_API_MIN,		\
167	.trans.device_family = IWL_DEVICE_FAMILY_6030,		\
168	.max_inst_size = IWL60_RTC_INST_SIZE,			\
169	.max_data_size = IWL60_RTC_DATA_SIZE,			\
170	.nvm_ver = EEPROM_6030_EEPROM_VERSION,		\
171	.nvm_calib_ver = EEPROM_6030_TX_POWER_VERSION,	\
172	.trans.base_params = &iwl6000_g2_base_params,		\
173	.eeprom_params = &iwl6000_eeprom_params,		\
174	.led_mode = IWL_LED_RF_STATE
 
 
175
176const struct iwl_cfg iwl6030_2agn_cfg = {
177	.name = "Intel(R) Centrino(R) Advanced-N 6230 AGN",
178	IWL_DEVICE_6030,
179	.ht_params = &iwl6000_ht_params,
180};
181
182const struct iwl_cfg iwl6030_2abg_cfg = {
183	.name = "Intel(R) Centrino(R) Advanced-N 6230 ABG",
184	IWL_DEVICE_6030,
185};
186
187const struct iwl_cfg iwl6030_2bgn_cfg = {
188	.name = "Intel(R) Centrino(R) Advanced-N 6230 BGN",
189	IWL_DEVICE_6030,
190	.ht_params = &iwl6000_ht_params,
191};
192
193const struct iwl_cfg iwl6030_2bg_cfg = {
194	.name = "Intel(R) Centrino(R) Advanced-N 6230 BG",
195	IWL_DEVICE_6030,
196};
197
198#define IWL_DEVICE_6035						\
199	.fw_name_pre = IWL6030_FW_PRE,				\
200	.ucode_api_max = IWL6035_UCODE_API_MAX,			\
201	.ucode_api_min = IWL6035_UCODE_API_MIN,			\
202	.trans.device_family = IWL_DEVICE_FAMILY_6030,		\
203	.max_inst_size = IWL60_RTC_INST_SIZE,			\
204	.max_data_size = IWL60_RTC_DATA_SIZE,			\
205	.nvm_ver = EEPROM_6030_EEPROM_VERSION,		\
206	.nvm_calib_ver = EEPROM_6030_TX_POWER_VERSION,	\
207	.trans.base_params = &iwl6000_g2_base_params,		\
208	.eeprom_params = &iwl6000_eeprom_params,		\
209	.led_mode = IWL_LED_RF_STATE
 
 
210
211const struct iwl_cfg iwl6035_2agn_cfg = {
212	.name = "Intel(R) Centrino(R) Advanced-N 6235 AGN",
213	IWL_DEVICE_6035,
214	.ht_params = &iwl6000_ht_params,
215};
216
217const struct iwl_cfg iwl6035_2agn_sff_cfg = {
218	.name = "Intel(R) Centrino(R) Ultimate-N 6235 AGN",
219	IWL_DEVICE_6035,
220	.ht_params = &iwl6000_ht_params,
221};
222
223const struct iwl_cfg iwl1030_bgn_cfg = {
224	.name = "Intel(R) Centrino(R) Wireless-N 1030 BGN",
225	IWL_DEVICE_6030,
226	.ht_params = &iwl6000_ht_params,
227};
228
229const struct iwl_cfg iwl1030_bg_cfg = {
230	.name = "Intel(R) Centrino(R) Wireless-N 1030 BG",
231	IWL_DEVICE_6030,
232};
233
234const struct iwl_cfg iwl130_bgn_cfg = {
235	.name = "Intel(R) Centrino(R) Wireless-N 130 BGN",
236	IWL_DEVICE_6030,
237	.ht_params = &iwl6000_ht_params,
238	.rx_with_siso_diversity = true,
239};
240
241const struct iwl_cfg iwl130_bg_cfg = {
242	.name = "Intel(R) Centrino(R) Wireless-N 130 BG",
243	IWL_DEVICE_6030,
244	.rx_with_siso_diversity = true,
245};
246
247/*
248 * "i": Internal configuration, use internal Power Amplifier
249 */
250#define IWL_DEVICE_6000i					\
251	.fw_name_pre = IWL6000_FW_PRE,				\
252	.ucode_api_max = IWL6000_UCODE_API_MAX,			\
253	.ucode_api_min = IWL6000_UCODE_API_MIN,			\
254	.trans.device_family = IWL_DEVICE_FAMILY_6000i,		\
255	.max_inst_size = IWL60_RTC_INST_SIZE,			\
256	.max_data_size = IWL60_RTC_DATA_SIZE,			\
257	.valid_tx_ant = ANT_BC,		/* .cfg overwrite */	\
258	.valid_rx_ant = ANT_BC,		/* .cfg overwrite */	\
259	.nvm_ver = EEPROM_6000_EEPROM_VERSION,		\
260	.nvm_calib_ver = EEPROM_6000_TX_POWER_VERSION,	\
261	.trans.base_params = &iwl6000_base_params,		\
262	.eeprom_params = &iwl6000_eeprom_params,		\
263	.led_mode = IWL_LED_BLINK
 
 
264
265const struct iwl_cfg iwl6000i_2agn_cfg = {
266	.name = "Intel(R) Centrino(R) Advanced-N 6200 AGN",
267	IWL_DEVICE_6000i,
268	.ht_params = &iwl6000_ht_params,
269};
270
271const struct iwl_cfg iwl6000i_2abg_cfg = {
272	.name = "Intel(R) Centrino(R) Advanced-N 6200 ABG",
273	IWL_DEVICE_6000i,
274};
275
276const struct iwl_cfg iwl6000i_2bg_cfg = {
277	.name = "Intel(R) Centrino(R) Advanced-N 6200 BG",
278	IWL_DEVICE_6000i,
279};
280
281#define IWL_DEVICE_6050						\
282	.fw_name_pre = IWL6050_FW_PRE,				\
283	.ucode_api_max = IWL6050_UCODE_API_MAX,			\
284	.ucode_api_min = IWL6050_UCODE_API_MIN,			\
285	.trans.device_family = IWL_DEVICE_FAMILY_6050,		\
286	.max_inst_size = IWL60_RTC_INST_SIZE,			\
287	.max_data_size = IWL60_RTC_DATA_SIZE,			\
288	.valid_tx_ant = ANT_AB,		/* .cfg overwrite */	\
289	.valid_rx_ant = ANT_AB,		/* .cfg overwrite */	\
290	.nvm_ver = EEPROM_6050_EEPROM_VERSION,		\
291	.nvm_calib_ver = EEPROM_6050_TX_POWER_VERSION,	\
292	.trans.base_params = &iwl6050_base_params,		\
293	.eeprom_params = &iwl6000_eeprom_params,		\
294	.led_mode = IWL_LED_BLINK,				\
295	.internal_wimax_coex = true
 
 
296
297const struct iwl_cfg iwl6050_2agn_cfg = {
298	.name = "Intel(R) Centrino(R) Advanced-N + WiMAX 6250 AGN",
299	IWL_DEVICE_6050,
300	.ht_params = &iwl6000_ht_params,
301};
302
303const struct iwl_cfg iwl6050_2abg_cfg = {
304	.name = "Intel(R) Centrino(R) Advanced-N + WiMAX 6250 ABG",
305	IWL_DEVICE_6050,
306};
307
308#define IWL_DEVICE_6150						\
309	.fw_name_pre = IWL6050_FW_PRE,				\
310	.ucode_api_max = IWL6050_UCODE_API_MAX,			\
311	.ucode_api_min = IWL6050_UCODE_API_MIN,			\
312	.trans.device_family = IWL_DEVICE_FAMILY_6150,		\
313	.max_inst_size = IWL60_RTC_INST_SIZE,			\
314	.max_data_size = IWL60_RTC_DATA_SIZE,			\
315	.nvm_ver = EEPROM_6150_EEPROM_VERSION,		\
316	.nvm_calib_ver = EEPROM_6150_TX_POWER_VERSION,	\
317	.trans.base_params = &iwl6050_base_params,		\
318	.eeprom_params = &iwl6000_eeprom_params,		\
319	.led_mode = IWL_LED_BLINK,				\
320	.internal_wimax_coex = true
 
 
321
322const struct iwl_cfg iwl6150_bgn_cfg = {
323	.name = "Intel(R) Centrino(R) Wireless-N + WiMAX 6150 BGN",
324	IWL_DEVICE_6150,
325	.ht_params = &iwl6000_ht_params,
326};
327
328const struct iwl_cfg iwl6150_bg_cfg = {
329	.name = "Intel(R) Centrino(R) Wireless-N + WiMAX 6150 BG",
330	IWL_DEVICE_6150,
331};
332
333const struct iwl_cfg iwl6000_3agn_cfg = {
334	.name = "Intel(R) Centrino(R) Ultimate-N 6300 AGN",
335	.fw_name_pre = IWL6000_FW_PRE,
336	.ucode_api_max = IWL6000_UCODE_API_MAX,
337	.ucode_api_min = IWL6000_UCODE_API_MIN,
338	.trans.device_family = IWL_DEVICE_FAMILY_6000,
339	.max_inst_size = IWL60_RTC_INST_SIZE,
340	.max_data_size = IWL60_RTC_DATA_SIZE,
341	.nvm_ver = EEPROM_6000_EEPROM_VERSION,
342	.nvm_calib_ver = EEPROM_6000_TX_POWER_VERSION,
343	.trans.base_params = &iwl6000_base_params,
344	.eeprom_params = &iwl6000_eeprom_params,
345	.ht_params = &iwl6000_ht_params,
346	.led_mode = IWL_LED_BLINK,
 
347};
348
349MODULE_FIRMWARE(IWL6000_MODULE_FIRMWARE(IWL6000_UCODE_API_MAX));
350MODULE_FIRMWARE(IWL6050_MODULE_FIRMWARE(IWL6050_UCODE_API_MAX));
351MODULE_FIRMWARE(IWL6005_MODULE_FIRMWARE(IWL6000G2_UCODE_API_MAX));
352MODULE_FIRMWARE(IWL6030_MODULE_FIRMWARE(IWL6000G2_UCODE_API_MAX));
v5.4
  1// SPDX-License-Identifier: GPL-2.0-only
  2/******************************************************************************
  3 *
  4 * Copyright(c) 2008 - 2014 Intel Corporation. All rights reserved.
  5 * Copyright(c) 2018 - 2019 Intel Corporation
  6 *
  7 * Contact Information:
  8 *  Intel Linux Wireless <linuxwifi@intel.com>
  9 * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
 10 *
 11 *****************************************************************************/
 12
 13#include <linux/module.h>
 14#include <linux/stringify.h>
 15#include "iwl-config.h"
 16#include "iwl-agn-hw.h"
 17#include "dvm/commands.h" /* needed for BT for now */
 18
 19/* Highest firmware API version supported */
 20#define IWL6000_UCODE_API_MAX 6
 21#define IWL6050_UCODE_API_MAX 5
 22#define IWL6000G2_UCODE_API_MAX 6
 23#define IWL6035_UCODE_API_MAX 6
 24
 25/* Lowest firmware API version supported */
 26#define IWL6000_UCODE_API_MIN 4
 27#define IWL6050_UCODE_API_MIN 4
 28#define IWL6000G2_UCODE_API_MIN 5
 29#define IWL6035_UCODE_API_MIN 6
 30
 31/* EEPROM versions */
 32#define EEPROM_6000_TX_POWER_VERSION	(4)
 33#define EEPROM_6000_EEPROM_VERSION	(0x423)
 34#define EEPROM_6050_TX_POWER_VERSION	(4)
 35#define EEPROM_6050_EEPROM_VERSION	(0x532)
 36#define EEPROM_6150_TX_POWER_VERSION	(6)
 37#define EEPROM_6150_EEPROM_VERSION	(0x553)
 38#define EEPROM_6005_TX_POWER_VERSION	(6)
 39#define EEPROM_6005_EEPROM_VERSION	(0x709)
 40#define EEPROM_6030_TX_POWER_VERSION	(6)
 41#define EEPROM_6030_EEPROM_VERSION	(0x709)
 42#define EEPROM_6035_TX_POWER_VERSION	(6)
 43#define EEPROM_6035_EEPROM_VERSION	(0x753)
 44
 45#define IWL6000_FW_PRE "iwlwifi-6000-"
 46#define IWL6000_MODULE_FIRMWARE(api) IWL6000_FW_PRE __stringify(api) ".ucode"
 47
 48#define IWL6050_FW_PRE "iwlwifi-6050-"
 49#define IWL6050_MODULE_FIRMWARE(api) IWL6050_FW_PRE __stringify(api) ".ucode"
 50
 51#define IWL6005_FW_PRE "iwlwifi-6000g2a-"
 52#define IWL6005_MODULE_FIRMWARE(api) IWL6005_FW_PRE __stringify(api) ".ucode"
 53
 54#define IWL6030_FW_PRE "iwlwifi-6000g2b-"
 55#define IWL6030_MODULE_FIRMWARE(api) IWL6030_FW_PRE __stringify(api) ".ucode"
 56
 57static const struct iwl_base_params iwl6000_base_params = {
 58	.eeprom_size = OTP_LOW_IMAGE_SIZE_2K,
 59	.num_of_queues = IWLAGN_NUM_QUEUES,
 60	.max_tfd_queue_size = 256,
 61	.max_ll_items = OTP_MAX_LL_ITEMS_6x00,
 62	.shadow_ram_support = true,
 63	.led_compensation = 51,
 64	.wd_timeout = IWL_DEF_WD_TIMEOUT,
 65	.max_event_log_size = 512,
 66	.shadow_reg_enable = false, /* TODO: fix bugs using this feature */
 67	.scd_chain_ext_wa = true,
 68};
 69
 70static const struct iwl_base_params iwl6050_base_params = {
 71	.eeprom_size = OTP_LOW_IMAGE_SIZE_2K,
 72	.num_of_queues = IWLAGN_NUM_QUEUES,
 73	.max_tfd_queue_size = 256,
 74	.max_ll_items = OTP_MAX_LL_ITEMS_6x50,
 75	.shadow_ram_support = true,
 76	.led_compensation = 51,
 77	.wd_timeout = IWL_DEF_WD_TIMEOUT,
 78	.max_event_log_size = 1024,
 79	.shadow_reg_enable = false, /* TODO: fix bugs using this feature */
 80	.scd_chain_ext_wa = true,
 81};
 82
 83static const struct iwl_base_params iwl6000_g2_base_params = {
 84	.eeprom_size = OTP_LOW_IMAGE_SIZE_2K,
 85	.num_of_queues = IWLAGN_NUM_QUEUES,
 86	.max_tfd_queue_size = 256,
 87	.max_ll_items = OTP_MAX_LL_ITEMS_6x00,
 88	.shadow_ram_support = true,
 89	.led_compensation = 57,
 90	.wd_timeout = IWL_LONG_WD_TIMEOUT,
 91	.max_event_log_size = 512,
 92	.shadow_reg_enable = false, /* TODO: fix bugs using this feature */
 93	.scd_chain_ext_wa = true,
 94};
 95
 96static const struct iwl_ht_params iwl6000_ht_params = {
 97	.ht_greenfield_support = true,
 98	.use_rts_for_aggregation = true, /* use rts/cts protection */
 99	.ht40_bands = BIT(NL80211_BAND_2GHZ) | BIT(NL80211_BAND_5GHZ),
100};
101
102static const struct iwl_eeprom_params iwl6000_eeprom_params = {
103	.regulatory_bands = {
104		EEPROM_REG_BAND_1_CHANNELS,
105		EEPROM_REG_BAND_2_CHANNELS,
106		EEPROM_REG_BAND_3_CHANNELS,
107		EEPROM_REG_BAND_4_CHANNELS,
108		EEPROM_REG_BAND_5_CHANNELS,
109		EEPROM_6000_REG_BAND_24_HT40_CHANNELS,
110		EEPROM_REG_BAND_52_HT40_CHANNELS
111	},
112	.enhanced_txpower = true,
113};
114
115#define IWL_DEVICE_6005						\
116	.fw_name_pre = IWL6005_FW_PRE,				\
117	.ucode_api_max = IWL6000G2_UCODE_API_MAX,		\
118	.ucode_api_min = IWL6000G2_UCODE_API_MIN,		\
119	.trans.device_family = IWL_DEVICE_FAMILY_6005,		\
120	.max_inst_size = IWL60_RTC_INST_SIZE,			\
121	.max_data_size = IWL60_RTC_DATA_SIZE,			\
122	.nvm_ver = EEPROM_6005_EEPROM_VERSION,		\
123	.nvm_calib_ver = EEPROM_6005_TX_POWER_VERSION,	\
124	.trans.base_params = &iwl6000_g2_base_params,		\
125	.eeprom_params = &iwl6000_eeprom_params,		\
126	.led_mode = IWL_LED_RF_STATE,				\
127	.max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K,	\
128	.trans.csr = &iwl_csr_v1
129
130const struct iwl_cfg iwl6005_2agn_cfg = {
131	.name = "Intel(R) Centrino(R) Advanced-N 6205 AGN",
132	IWL_DEVICE_6005,
133	.ht_params = &iwl6000_ht_params,
134};
135
136const struct iwl_cfg iwl6005_2abg_cfg = {
137	.name = "Intel(R) Centrino(R) Advanced-N 6205 ABG",
138	IWL_DEVICE_6005,
139};
140
141const struct iwl_cfg iwl6005_2bg_cfg = {
142	.name = "Intel(R) Centrino(R) Advanced-N 6205 BG",
143	IWL_DEVICE_6005,
144};
145
146const struct iwl_cfg iwl6005_2agn_sff_cfg = {
147	.name = "Intel(R) Centrino(R) Advanced-N 6205S AGN",
148	IWL_DEVICE_6005,
149	.ht_params = &iwl6000_ht_params,
150};
151
152const struct iwl_cfg iwl6005_2agn_d_cfg = {
153	.name = "Intel(R) Centrino(R) Advanced-N 6205D AGN",
154	IWL_DEVICE_6005,
155	.ht_params = &iwl6000_ht_params,
156};
157
158const struct iwl_cfg iwl6005_2agn_mow1_cfg = {
159	.name = "Intel(R) Centrino(R) Advanced-N 6206 AGN",
160	IWL_DEVICE_6005,
161	.ht_params = &iwl6000_ht_params,
162};
163
164const struct iwl_cfg iwl6005_2agn_mow2_cfg = {
165	.name = "Intel(R) Centrino(R) Advanced-N 6207 AGN",
166	IWL_DEVICE_6005,
167	.ht_params = &iwl6000_ht_params,
168};
169
170#define IWL_DEVICE_6030						\
171	.fw_name_pre = IWL6030_FW_PRE,				\
172	.ucode_api_max = IWL6000G2_UCODE_API_MAX,		\
173	.ucode_api_min = IWL6000G2_UCODE_API_MIN,		\
174	.trans.device_family = IWL_DEVICE_FAMILY_6030,		\
175	.max_inst_size = IWL60_RTC_INST_SIZE,			\
176	.max_data_size = IWL60_RTC_DATA_SIZE,			\
177	.nvm_ver = EEPROM_6030_EEPROM_VERSION,		\
178	.nvm_calib_ver = EEPROM_6030_TX_POWER_VERSION,	\
179	.trans.base_params = &iwl6000_g2_base_params,		\
180	.eeprom_params = &iwl6000_eeprom_params,		\
181	.led_mode = IWL_LED_RF_STATE,				\
182	.max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K,	\
183	.trans.csr = &iwl_csr_v1
184
185const struct iwl_cfg iwl6030_2agn_cfg = {
186	.name = "Intel(R) Centrino(R) Advanced-N 6230 AGN",
187	IWL_DEVICE_6030,
188	.ht_params = &iwl6000_ht_params,
189};
190
191const struct iwl_cfg iwl6030_2abg_cfg = {
192	.name = "Intel(R) Centrino(R) Advanced-N 6230 ABG",
193	IWL_DEVICE_6030,
194};
195
196const struct iwl_cfg iwl6030_2bgn_cfg = {
197	.name = "Intel(R) Centrino(R) Advanced-N 6230 BGN",
198	IWL_DEVICE_6030,
199	.ht_params = &iwl6000_ht_params,
200};
201
202const struct iwl_cfg iwl6030_2bg_cfg = {
203	.name = "Intel(R) Centrino(R) Advanced-N 6230 BG",
204	IWL_DEVICE_6030,
205};
206
207#define IWL_DEVICE_6035						\
208	.fw_name_pre = IWL6030_FW_PRE,				\
209	.ucode_api_max = IWL6035_UCODE_API_MAX,			\
210	.ucode_api_min = IWL6035_UCODE_API_MIN,			\
211	.trans.device_family = IWL_DEVICE_FAMILY_6030,		\
212	.max_inst_size = IWL60_RTC_INST_SIZE,			\
213	.max_data_size = IWL60_RTC_DATA_SIZE,			\
214	.nvm_ver = EEPROM_6030_EEPROM_VERSION,		\
215	.nvm_calib_ver = EEPROM_6030_TX_POWER_VERSION,	\
216	.trans.base_params = &iwl6000_g2_base_params,		\
217	.eeprom_params = &iwl6000_eeprom_params,		\
218	.led_mode = IWL_LED_RF_STATE,				\
219	.max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K,	\
220	.trans.csr = &iwl_csr_v1
221
222const struct iwl_cfg iwl6035_2agn_cfg = {
223	.name = "Intel(R) Centrino(R) Advanced-N 6235 AGN",
224	IWL_DEVICE_6035,
225	.ht_params = &iwl6000_ht_params,
226};
227
228const struct iwl_cfg iwl6035_2agn_sff_cfg = {
229	.name = "Intel(R) Centrino(R) Ultimate-N 6235 AGN",
230	IWL_DEVICE_6035,
231	.ht_params = &iwl6000_ht_params,
232};
233
234const struct iwl_cfg iwl1030_bgn_cfg = {
235	.name = "Intel(R) Centrino(R) Wireless-N 1030 BGN",
236	IWL_DEVICE_6030,
237	.ht_params = &iwl6000_ht_params,
238};
239
240const struct iwl_cfg iwl1030_bg_cfg = {
241	.name = "Intel(R) Centrino(R) Wireless-N 1030 BG",
242	IWL_DEVICE_6030,
243};
244
245const struct iwl_cfg iwl130_bgn_cfg = {
246	.name = "Intel(R) Centrino(R) Wireless-N 130 BGN",
247	IWL_DEVICE_6030,
248	.ht_params = &iwl6000_ht_params,
249	.rx_with_siso_diversity = true,
250};
251
252const struct iwl_cfg iwl130_bg_cfg = {
253	.name = "Intel(R) Centrino(R) Wireless-N 130 BG",
254	IWL_DEVICE_6030,
255	.rx_with_siso_diversity = true,
256};
257
258/*
259 * "i": Internal configuration, use internal Power Amplifier
260 */
261#define IWL_DEVICE_6000i					\
262	.fw_name_pre = IWL6000_FW_PRE,				\
263	.ucode_api_max = IWL6000_UCODE_API_MAX,			\
264	.ucode_api_min = IWL6000_UCODE_API_MIN,			\
265	.trans.device_family = IWL_DEVICE_FAMILY_6000i,		\
266	.max_inst_size = IWL60_RTC_INST_SIZE,			\
267	.max_data_size = IWL60_RTC_DATA_SIZE,			\
268	.valid_tx_ant = ANT_BC,		/* .cfg overwrite */	\
269	.valid_rx_ant = ANT_BC,		/* .cfg overwrite */	\
270	.nvm_ver = EEPROM_6000_EEPROM_VERSION,		\
271	.nvm_calib_ver = EEPROM_6000_TX_POWER_VERSION,	\
272	.trans.base_params = &iwl6000_base_params,		\
273	.eeprom_params = &iwl6000_eeprom_params,		\
274	.led_mode = IWL_LED_BLINK,				\
275	.max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K,	\
276	.trans.csr = &iwl_csr_v1
277
278const struct iwl_cfg iwl6000i_2agn_cfg = {
279	.name = "Intel(R) Centrino(R) Advanced-N 6200 AGN",
280	IWL_DEVICE_6000i,
281	.ht_params = &iwl6000_ht_params,
282};
283
284const struct iwl_cfg iwl6000i_2abg_cfg = {
285	.name = "Intel(R) Centrino(R) Advanced-N 6200 ABG",
286	IWL_DEVICE_6000i,
287};
288
289const struct iwl_cfg iwl6000i_2bg_cfg = {
290	.name = "Intel(R) Centrino(R) Advanced-N 6200 BG",
291	IWL_DEVICE_6000i,
292};
293
294#define IWL_DEVICE_6050						\
295	.fw_name_pre = IWL6050_FW_PRE,				\
296	.ucode_api_max = IWL6050_UCODE_API_MAX,			\
297	.ucode_api_min = IWL6050_UCODE_API_MIN,			\
298	.trans.device_family = IWL_DEVICE_FAMILY_6050,		\
299	.max_inst_size = IWL60_RTC_INST_SIZE,			\
300	.max_data_size = IWL60_RTC_DATA_SIZE,			\
301	.valid_tx_ant = ANT_AB,		/* .cfg overwrite */	\
302	.valid_rx_ant = ANT_AB,		/* .cfg overwrite */	\
303	.nvm_ver = EEPROM_6050_EEPROM_VERSION,		\
304	.nvm_calib_ver = EEPROM_6050_TX_POWER_VERSION,	\
305	.trans.base_params = &iwl6050_base_params,		\
306	.eeprom_params = &iwl6000_eeprom_params,		\
307	.led_mode = IWL_LED_BLINK,				\
308	.internal_wimax_coex = true,				\
309	.max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K,	\
310	.trans.csr = &iwl_csr_v1
311
312const struct iwl_cfg iwl6050_2agn_cfg = {
313	.name = "Intel(R) Centrino(R) Advanced-N + WiMAX 6250 AGN",
314	IWL_DEVICE_6050,
315	.ht_params = &iwl6000_ht_params,
316};
317
318const struct iwl_cfg iwl6050_2abg_cfg = {
319	.name = "Intel(R) Centrino(R) Advanced-N + WiMAX 6250 ABG",
320	IWL_DEVICE_6050,
321};
322
323#define IWL_DEVICE_6150						\
324	.fw_name_pre = IWL6050_FW_PRE,				\
325	.ucode_api_max = IWL6050_UCODE_API_MAX,			\
326	.ucode_api_min = IWL6050_UCODE_API_MIN,			\
327	.trans.device_family = IWL_DEVICE_FAMILY_6150,		\
328	.max_inst_size = IWL60_RTC_INST_SIZE,			\
329	.max_data_size = IWL60_RTC_DATA_SIZE,			\
330	.nvm_ver = EEPROM_6150_EEPROM_VERSION,		\
331	.nvm_calib_ver = EEPROM_6150_TX_POWER_VERSION,	\
332	.trans.base_params = &iwl6050_base_params,		\
333	.eeprom_params = &iwl6000_eeprom_params,		\
334	.led_mode = IWL_LED_BLINK,				\
335	.internal_wimax_coex = true,				\
336	.max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K,	\
337	.trans.csr = &iwl_csr_v1
338
339const struct iwl_cfg iwl6150_bgn_cfg = {
340	.name = "Intel(R) Centrino(R) Wireless-N + WiMAX 6150 BGN",
341	IWL_DEVICE_6150,
342	.ht_params = &iwl6000_ht_params,
343};
344
345const struct iwl_cfg iwl6150_bg_cfg = {
346	.name = "Intel(R) Centrino(R) Wireless-N + WiMAX 6150 BG",
347	IWL_DEVICE_6150,
348};
349
350const struct iwl_cfg iwl6000_3agn_cfg = {
351	.name = "Intel(R) Centrino(R) Ultimate-N 6300 AGN",
352	.fw_name_pre = IWL6000_FW_PRE,
353	.ucode_api_max = IWL6000_UCODE_API_MAX,
354	.ucode_api_min = IWL6000_UCODE_API_MIN,
355	.trans.device_family = IWL_DEVICE_FAMILY_6000,
356	.max_inst_size = IWL60_RTC_INST_SIZE,
357	.max_data_size = IWL60_RTC_DATA_SIZE,
358	.nvm_ver = EEPROM_6000_EEPROM_VERSION,
359	.nvm_calib_ver = EEPROM_6000_TX_POWER_VERSION,
360	.trans.base_params = &iwl6000_base_params,
361	.eeprom_params = &iwl6000_eeprom_params,
362	.ht_params = &iwl6000_ht_params,
363	.led_mode = IWL_LED_BLINK,
364	.trans.csr = &iwl_csr_v1,
365};
366
367MODULE_FIRMWARE(IWL6000_MODULE_FIRMWARE(IWL6000_UCODE_API_MAX));
368MODULE_FIRMWARE(IWL6050_MODULE_FIRMWARE(IWL6050_UCODE_API_MAX));
369MODULE_FIRMWARE(IWL6005_MODULE_FIRMWARE(IWL6000G2_UCODE_API_MAX));
370MODULE_FIRMWARE(IWL6030_MODULE_FIRMWARE(IWL6000G2_UCODE_API_MAX));