blob: 8f2c3c8c6b843f78f346225d371ee3ad3df54f23 [file] [log] [blame]
Jay Sternberge1228372009-01-19 15:30:34 -08001/******************************************************************************
2 *
Emmanuel Grumbach51368bf2013-12-30 13:15:54 +02003 * Copyright(c) 2008 - 2014 Intel Corporation. All rights reserved.
Jay Sternberge1228372009-01-19 15:30:34 -08004 *
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 * The full GNU General Public License is included in this distribution in the
19 * file called LICENSE.
20 *
21 * Contact Information:
22 * Intel Linux Wireless <ilw@linux.intel.com>
23 * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
24 *
25 *****************************************************************************/
26
Jay Sternberge1228372009-01-19 15:30:34 -080027#include <linux/module.h>
Evgeni Golov8fcbd4dc2011-06-12 05:34:31 -070028#include <linux/stringify.h>
Johannes Berge9676692012-04-10 14:10:28 -070029#include "iwl-config.h"
Johannes Berg0db19cd2012-04-03 20:57:59 +020030#include "iwl-agn-hw.h"
Johannes Berg1023fdc2012-05-15 12:16:34 +020031#include "dvm/commands.h" /* needed for BT for now */
Jay Sternberge1228372009-01-19 15:30:34 -080032
33/* Highest firmware API version supported */
Johannes Bergb9148112011-11-04 07:22:37 -070034#define IWL6000_UCODE_API_MAX 6
Wey-Yi Guy62cb3c62010-09-28 17:43:10 -070035#define IWL6050_UCODE_API_MAX 5
Johannes Bergca9a4602011-07-23 10:24:45 -070036#define IWL6000G2_UCODE_API_MAX 6
Meenakshi Venkataramand2c8b152012-06-05 20:24:37 +020037#define IWL6035_UCODE_API_MAX 6
Johannes Bergca9a4602011-07-23 10:24:45 -070038
39/* Oldest version we won't warn about */
Johannes Bergb9148112011-11-04 07:22:37 -070040#define IWL6000_UCODE_API_OK 4
Johannes Bergca9a4602011-07-23 10:24:45 -070041#define IWL6000G2_UCODE_API_OK 5
Meenakshi Venkataraman78cbcf22012-04-22 07:55:27 -070042#define IWL6050_UCODE_API_OK 5
43#define IWL6000G2B_UCODE_API_OK 6
Meenakshi Venkataramand2c8b152012-06-05 20:24:37 +020044#define IWL6035_UCODE_API_OK 6
Jay Sternberge1228372009-01-19 15:30:34 -080045
46/* Lowest firmware API version supported */
Wey-Yi Guy44246422009-10-23 13:42:34 -070047#define IWL6000_UCODE_API_MIN 4
48#define IWL6050_UCODE_API_MIN 4
Meenakshi Venkataramand2c8b152012-06-05 20:24:37 +020049#define IWL6000G2_UCODE_API_MIN 5
50#define IWL6035_UCODE_API_MIN 6
Jay Sternberge1228372009-01-19 15:30:34 -080051
Johannes Berg586aed92012-04-03 20:41:07 +020052/* EEPROM versions */
53#define EEPROM_6000_TX_POWER_VERSION (4)
54#define EEPROM_6000_EEPROM_VERSION (0x423)
55#define EEPROM_6050_TX_POWER_VERSION (4)
56#define EEPROM_6050_EEPROM_VERSION (0x532)
57#define EEPROM_6150_TX_POWER_VERSION (6)
58#define EEPROM_6150_EEPROM_VERSION (0x553)
59#define EEPROM_6005_TX_POWER_VERSION (6)
60#define EEPROM_6005_EEPROM_VERSION (0x709)
61#define EEPROM_6030_TX_POWER_VERSION (6)
62#define EEPROM_6030_EEPROM_VERSION (0x709)
63#define EEPROM_6035_TX_POWER_VERSION (6)
64#define EEPROM_6035_EEPROM_VERSION (0x753)
65
Jay Sternberge1228372009-01-19 15:30:34 -080066#define IWL6000_FW_PRE "iwlwifi-6000-"
Evgeni Golov8fcbd4dc2011-06-12 05:34:31 -070067#define IWL6000_MODULE_FIRMWARE(api) IWL6000_FW_PRE __stringify(api) ".ucode"
Jay Sternberge1228372009-01-19 15:30:34 -080068
69#define IWL6050_FW_PRE "iwlwifi-6050-"
Evgeni Golov8fcbd4dc2011-06-12 05:34:31 -070070#define IWL6050_MODULE_FIRMWARE(api) IWL6050_FW_PRE __stringify(api) ".ucode"
Jay Sternberge1228372009-01-19 15:30:34 -080071
Wey-Yi Guy1956e1a2011-01-08 10:25:14 -080072#define IWL6005_FW_PRE "iwlwifi-6000g2a-"
Evgeni Golov8fcbd4dc2011-06-12 05:34:31 -070073#define IWL6005_MODULE_FIRMWARE(api) IWL6005_FW_PRE __stringify(api) ".ucode"
Shanyu Zhao95b13012010-04-21 11:46:33 -070074
Wey-Yi Guy1956e1a2011-01-08 10:25:14 -080075#define IWL6030_FW_PRE "iwlwifi-6000g2b-"
Evgeni Golov8fcbd4dc2011-06-12 05:34:31 -070076#define IWL6030_MODULE_FIRMWARE(api) IWL6030_FW_PRE __stringify(api) ".ucode"
Shanyu Zhao18089722010-05-06 10:15:21 -070077
Johannes Berg6794f3e2012-03-06 13:30:56 -080078static const struct iwl_base_params iwl6000_base_params = {
Jay Sternberg0b5af202010-03-17 16:16:12 -070079 .eeprom_size = OTP_LOW_IMAGE_SIZE,
Jay Sternberg0b5af202010-03-17 16:16:12 -070080 .num_of_queues = IWLAGN_NUM_QUEUES,
Jay Sternberg0b5af202010-03-17 16:16:12 -070081 .pll_cfg_val = 0,
Jay Sternberg0b5af202010-03-17 16:16:12 -070082 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
83 .shadow_ram_support = true,
Jay Sternberg0b5af202010-03-17 16:16:12 -070084 .led_compensation = 51,
Stanislaw Gruszka22de94d2010-12-03 15:41:48 +010085 .wd_timeout = IWL_DEF_WD_TIMEOUT,
Shanyu Zhao95b13012010-04-21 11:46:33 -070086 .max_event_log_size = 512,
Meenakshi Venkataraman66a77072012-05-16 22:35:59 +020087 .shadow_reg_enable = false, /* TODO: fix bugs using this feature */
Emmanuel Grumbache03bbb62014-04-13 10:49:16 +030088 .scd_chain_ext_wa = true,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -070089};
90
Johannes Berg6794f3e2012-03-06 13:30:56 -080091static const struct iwl_base_params iwl6050_base_params = {
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -070092 .eeprom_size = OTP_LOW_IMAGE_SIZE,
93 .num_of_queues = IWLAGN_NUM_QUEUES,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -070094 .pll_cfg_val = 0,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -070095 .max_ll_items = OTP_MAX_LL_ITEMS_6x50,
96 .shadow_ram_support = true,
97 .led_compensation = 51,
Stanislaw Gruszka22de94d2010-12-03 15:41:48 +010098 .wd_timeout = IWL_DEF_WD_TIMEOUT,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -070099 .max_event_log_size = 1024,
Meenakshi Venkataraman66a77072012-05-16 22:35:59 +0200100 .shadow_reg_enable = false, /* TODO: fix bugs using this feature */
Emmanuel Grumbache03bbb62014-04-13 10:49:16 +0300101 .scd_chain_ext_wa = true,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700102};
Johannes Berg6794f3e2012-03-06 13:30:56 -0800103
104static const struct iwl_base_params iwl6000_g2_base_params = {
Wey-Yi Guyde05ead2010-09-23 15:24:22 -0700105 .eeprom_size = OTP_LOW_IMAGE_SIZE,
106 .num_of_queues = IWLAGN_NUM_QUEUES,
Wey-Yi Guyde05ead2010-09-23 15:24:22 -0700107 .pll_cfg_val = 0,
Wey-Yi Guyde05ead2010-09-23 15:24:22 -0700108 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
109 .shadow_ram_support = true,
Wey-Yi Guy4fb33242010-11-29 10:45:16 -0800110 .led_compensation = 57,
Stanislaw Gruszka22de94d2010-12-03 15:41:48 +0100111 .wd_timeout = IWL_LONG_WD_TIMEOUT,
Wey-Yi Guyde05ead2010-09-23 15:24:22 -0700112 .max_event_log_size = 512,
Meenakshi Venkataraman66a77072012-05-16 22:35:59 +0200113 .shadow_reg_enable = false, /* TODO: fix bugs using this feature */
Emmanuel Grumbache03bbb62014-04-13 10:49:16 +0300114 .scd_chain_ext_wa = true,
Wey-Yi Guyde05ead2010-09-23 15:24:22 -0700115};
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700116
Johannes Berg6794f3e2012-03-06 13:30:56 -0800117static const struct iwl_ht_params iwl6000_ht_params = {
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700118 .ht_greenfield_support = true,
119 .use_rts_for_aggregation = true, /* use rts/cts protection */
Johannes Bergd3704932012-05-21 20:03:01 +0200120 .ht40_bands = BIT(IEEE80211_BAND_2GHZ) | BIT(IEEE80211_BAND_5GHZ),
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700121};
122
Johannes Berg26a7ca92012-05-21 11:55:54 +0200123static const struct iwl_eeprom_params iwl6000_eeprom_params = {
124 .regulatory_bands = {
125 EEPROM_REG_BAND_1_CHANNELS,
126 EEPROM_REG_BAND_2_CHANNELS,
127 EEPROM_REG_BAND_3_CHANNELS,
128 EEPROM_REG_BAND_4_CHANNELS,
129 EEPROM_REG_BAND_5_CHANNELS,
130 EEPROM_6000_REG_BAND_24_HT40_CHANNELS,
131 EEPROM_REG_BAND_52_HT40_CHANNELS
132 },
133 .enhanced_txpower = true,
134};
135
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800136#define IWL_DEVICE_6005 \
Johannes Bergca9a4602011-07-23 10:24:45 -0700137 .fw_name_pre = IWL6005_FW_PRE, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800138 .ucode_api_max = IWL6000G2_UCODE_API_MAX, \
Johannes Bergca9a4602011-07-23 10:24:45 -0700139 .ucode_api_ok = IWL6000G2_UCODE_API_OK, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800140 .ucode_api_min = IWL6000G2_UCODE_API_MIN, \
Johannes Berg2d771cb2012-04-09 17:47:00 -0700141 .device_family = IWL_DEVICE_FAMILY_6005, \
Emmanuel Grumbachdae66d02012-02-07 12:56:26 +0200142 .max_inst_size = IWL60_RTC_INST_SIZE, \
143 .max_data_size = IWL60_RTC_DATA_SIZE, \
Eytan Lifshitzb7998c82012-12-01 20:59:49 +0200144 .nvm_ver = EEPROM_6005_EEPROM_VERSION, \
145 .nvm_calib_ver = EEPROM_6005_TX_POWER_VERSION, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800146 .base_params = &iwl6000_g2_base_params, \
Johannes Berg26a7ca92012-05-21 11:55:54 +0200147 .eeprom_params = &iwl6000_eeprom_params, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800148 .led_mode = IWL_LED_RF_STATE
149
Johannes Berg706c4ff2012-03-05 11:24:33 -0800150const struct iwl_cfg iwl6005_2agn_cfg = {
Wey-Yi Guy55017ab2010-11-17 12:13:53 -0800151 .name = "Intel(R) Centrino(R) Advanced-N 6205 AGN",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800152 IWL_DEVICE_6005,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700153 .ht_params = &iwl6000_ht_params,
Jay Sternberg0b5af202010-03-17 16:16:12 -0700154};
155
Johannes Berg706c4ff2012-03-05 11:24:33 -0800156const struct iwl_cfg iwl6005_2abg_cfg = {
Wey-Yi Guy55017ab2010-11-17 12:13:53 -0800157 .name = "Intel(R) Centrino(R) Advanced-N 6205 ABG",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800158 IWL_DEVICE_6005,
Shanyu Zhao18089722010-05-06 10:15:21 -0700159};
160
Johannes Berg706c4ff2012-03-05 11:24:33 -0800161const struct iwl_cfg iwl6005_2bg_cfg = {
Wey-Yi Guy55017ab2010-11-17 12:13:53 -0800162 .name = "Intel(R) Centrino(R) Advanced-N 6205 BG",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800163 IWL_DEVICE_6005,
Shanyu Zhao18089722010-05-06 10:15:21 -0700164};
165
Johannes Berg706c4ff2012-03-05 11:24:33 -0800166const struct iwl_cfg iwl6005_2agn_sff_cfg = {
Wey-Yi Guy6a9ae0d2011-08-25 23:10:56 -0700167 .name = "Intel(R) Centrino(R) Advanced-N 6205S AGN",
168 IWL_DEVICE_6005,
169 .ht_params = &iwl6000_ht_params,
170};
171
Johannes Berg706c4ff2012-03-05 11:24:33 -0800172const struct iwl_cfg iwl6005_2agn_d_cfg = {
Wey-Yi Guy5131a602011-10-10 07:27:00 -0700173 .name = "Intel(R) Centrino(R) Advanced-N 6205D AGN",
174 IWL_DEVICE_6005,
175 .ht_params = &iwl6000_ht_params,
176};
177
Johannes Berg706c4ff2012-03-05 11:24:33 -0800178const struct iwl_cfg iwl6005_2agn_mow1_cfg = {
Wey-Yi Guy37891122012-02-22 10:21:09 -0800179 .name = "Intel(R) Centrino(R) Advanced-N 6206 AGN",
180 IWL_DEVICE_6005,
181 .ht_params = &iwl6000_ht_params,
182};
Johannes Berg706c4ff2012-03-05 11:24:33 -0800183
184const struct iwl_cfg iwl6005_2agn_mow2_cfg = {
Wey-Yi Guy37891122012-02-22 10:21:09 -0800185 .name = "Intel(R) Centrino(R) Advanced-N 6207 AGN",
186 IWL_DEVICE_6005,
187 .ht_params = &iwl6000_ht_params,
188};
189
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800190#define IWL_DEVICE_6030 \
Johannes Bergca9a4602011-07-23 10:24:45 -0700191 .fw_name_pre = IWL6030_FW_PRE, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800192 .ucode_api_max = IWL6000G2_UCODE_API_MAX, \
Wey-Yi Guy1ed2ec32012-04-25 08:10:08 -0700193 .ucode_api_ok = IWL6000G2B_UCODE_API_OK, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800194 .ucode_api_min = IWL6000G2_UCODE_API_MIN, \
Johannes Berg2d771cb2012-04-09 17:47:00 -0700195 .device_family = IWL_DEVICE_FAMILY_6030, \
Emmanuel Grumbachdae66d02012-02-07 12:56:26 +0200196 .max_inst_size = IWL60_RTC_INST_SIZE, \
197 .max_data_size = IWL60_RTC_DATA_SIZE, \
Eytan Lifshitzb7998c82012-12-01 20:59:49 +0200198 .nvm_ver = EEPROM_6030_EEPROM_VERSION, \
199 .nvm_calib_ver = EEPROM_6030_TX_POWER_VERSION, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800200 .base_params = &iwl6000_g2_base_params, \
Johannes Berg26a7ca92012-05-21 11:55:54 +0200201 .eeprom_params = &iwl6000_eeprom_params, \
Johannes Berg0d8877a2013-05-17 10:36:29 +0200202 .led_mode = IWL_LED_RF_STATE
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800203
Johannes Berg706c4ff2012-03-05 11:24:33 -0800204const struct iwl_cfg iwl6030_2agn_cfg = {
Wey-Yi Guyd2eceef2010-11-17 12:13:54 -0800205 .name = "Intel(R) Centrino(R) Advanced-N 6230 AGN",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800206 IWL_DEVICE_6030,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700207 .ht_params = &iwl6000_ht_params,
Shanyu Zhao18089722010-05-06 10:15:21 -0700208};
209
Johannes Berg706c4ff2012-03-05 11:24:33 -0800210const struct iwl_cfg iwl6030_2abg_cfg = {
Wey-Yi Guyd2eceef2010-11-17 12:13:54 -0800211 .name = "Intel(R) Centrino(R) Advanced-N 6230 ABG",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800212 IWL_DEVICE_6030,
Shanyu Zhao18089722010-05-06 10:15:21 -0700213};
214
Johannes Berg706c4ff2012-03-05 11:24:33 -0800215const struct iwl_cfg iwl6030_2bgn_cfg = {
Wey-Yi Guyd2eceef2010-11-17 12:13:54 -0800216 .name = "Intel(R) Centrino(R) Advanced-N 6230 BGN",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800217 IWL_DEVICE_6030,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700218 .ht_params = &iwl6000_ht_params,
Shanyu Zhao9f6e1ba2010-05-11 15:21:54 -0700219};
220
Johannes Berg706c4ff2012-03-05 11:24:33 -0800221const struct iwl_cfg iwl6030_2bg_cfg = {
Wey-Yi Guyd2eceef2010-11-17 12:13:54 -0800222 .name = "Intel(R) Centrino(R) Advanced-N 6230 BG",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800223 IWL_DEVICE_6030,
Shanyu Zhao18089722010-05-06 10:15:21 -0700224};
225
Meenakshi Venkataramand2c8b152012-06-05 20:24:37 +0200226#define IWL_DEVICE_6035 \
227 .fw_name_pre = IWL6030_FW_PRE, \
228 .ucode_api_max = IWL6035_UCODE_API_MAX, \
229 .ucode_api_ok = IWL6035_UCODE_API_OK, \
230 .ucode_api_min = IWL6035_UCODE_API_MIN, \
231 .device_family = IWL_DEVICE_FAMILY_6030, \
232 .max_inst_size = IWL60_RTC_INST_SIZE, \
233 .max_data_size = IWL60_RTC_DATA_SIZE, \
Eytan Lifshitzb7998c82012-12-01 20:59:49 +0200234 .nvm_ver = EEPROM_6030_EEPROM_VERSION, \
235 .nvm_calib_ver = EEPROM_6030_TX_POWER_VERSION, \
Meenakshi Venkataramand2c8b152012-06-05 20:24:37 +0200236 .base_params = &iwl6000_g2_base_params, \
Johannes Berg3c70d082012-06-12 21:43:28 +0200237 .eeprom_params = &iwl6000_eeprom_params, \
Johannes Berg0d8877a2013-05-17 10:36:29 +0200238 .led_mode = IWL_LED_RF_STATE
Meenakshi Venkataramand2c8b152012-06-05 20:24:37 +0200239
Johannes Berg706c4ff2012-03-05 11:24:33 -0800240const struct iwl_cfg iwl6035_2agn_cfg = {
Don Fry6195d132011-12-06 10:42:41 -0800241 .name = "Intel(R) Centrino(R) Advanced-N 6235 AGN",
Meenakshi Venkataramand2c8b152012-06-05 20:24:37 +0200242 IWL_DEVICE_6035,
Wey-Yi Guyd103e342011-03-10 03:17:16 -0800243 .ht_params = &iwl6000_ht_params,
244};
245
Emmanuel Grumbach08a5dd32013-09-24 19:34:26 +0300246const struct iwl_cfg iwl6035_2agn_sff_cfg = {
247 .name = "Intel(R) Centrino(R) Ultimate-N 6235 AGN",
248 IWL_DEVICE_6035,
249 .ht_params = &iwl6000_ht_params,
250};
251
Johannes Berg706c4ff2012-03-05 11:24:33 -0800252const struct iwl_cfg iwl1030_bgn_cfg = {
Wey-Yi Guyd2eceef2010-11-17 12:13:54 -0800253 .name = "Intel(R) Centrino(R) Wireless-N 1030 BGN",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800254 IWL_DEVICE_6030,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700255 .ht_params = &iwl6000_ht_params,
Shanyu Zhao18089722010-05-06 10:15:21 -0700256};
257
Johannes Berg706c4ff2012-03-05 11:24:33 -0800258const struct iwl_cfg iwl1030_bg_cfg = {
Wey-Yi Guyd2eceef2010-11-17 12:13:54 -0800259 .name = "Intel(R) Centrino(R) Wireless-N 1030 BG",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800260 IWL_DEVICE_6030,
261};
262
Johannes Berg706c4ff2012-03-05 11:24:33 -0800263const struct iwl_cfg iwl130_bgn_cfg = {
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800264 .name = "Intel(R) Centrino(R) Wireless-N 130 BGN",
265 IWL_DEVICE_6030,
266 .ht_params = &iwl6000_ht_params,
267 .rx_with_siso_diversity = true,
268};
269
Johannes Berg706c4ff2012-03-05 11:24:33 -0800270const struct iwl_cfg iwl130_bg_cfg = {
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800271 .name = "Intel(R) Centrino(R) Wireless-N 130 BG",
272 IWL_DEVICE_6030,
273 .rx_with_siso_diversity = true,
Shanyu Zhao18089722010-05-06 10:15:21 -0700274};
275
Shanyu Zhao95b13012010-04-21 11:46:33 -0700276/*
277 * "i": Internal configuration, use internal Power Amplifier
278 */
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800279#define IWL_DEVICE_6000i \
280 .fw_name_pre = IWL6000_FW_PRE, \
281 .ucode_api_max = IWL6000_UCODE_API_MAX, \
Johannes Bergb9148112011-11-04 07:22:37 -0700282 .ucode_api_ok = IWL6000_UCODE_API_OK, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800283 .ucode_api_min = IWL6000_UCODE_API_MIN, \
Johannes Berg2d771cb2012-04-09 17:47:00 -0700284 .device_family = IWL_DEVICE_FAMILY_6000i, \
Emmanuel Grumbachdae66d02012-02-07 12:56:26 +0200285 .max_inst_size = IWL60_RTC_INST_SIZE, \
286 .max_data_size = IWL60_RTC_DATA_SIZE, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800287 .valid_tx_ant = ANT_BC, /* .cfg overwrite */ \
288 .valid_rx_ant = ANT_BC, /* .cfg overwrite */ \
Eytan Lifshitzb7998c82012-12-01 20:59:49 +0200289 .nvm_ver = EEPROM_6000_EEPROM_VERSION, \
290 .nvm_calib_ver = EEPROM_6000_TX_POWER_VERSION, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800291 .base_params = &iwl6000_base_params, \
Johannes Berg26a7ca92012-05-21 11:55:54 +0200292 .eeprom_params = &iwl6000_eeprom_params, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800293 .led_mode = IWL_LED_BLINK
294
Johannes Berg706c4ff2012-03-05 11:24:33 -0800295const struct iwl_cfg iwl6000i_2agn_cfg = {
Shanyu Zhaoc11362c2010-03-05 17:05:20 -0800296 .name = "Intel(R) Centrino(R) Advanced-N 6200 AGN",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800297 IWL_DEVICE_6000i,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700298 .ht_params = &iwl6000_ht_params,
Jay Sternberge1228372009-01-19 15:30:34 -0800299};
300
Johannes Berg706c4ff2012-03-05 11:24:33 -0800301const struct iwl_cfg iwl6000i_2abg_cfg = {
Shanyu Zhaoc11362c2010-03-05 17:05:20 -0800302 .name = "Intel(R) Centrino(R) Advanced-N 6200 ABG",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800303 IWL_DEVICE_6000i,
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700304};
305
Johannes Berg706c4ff2012-03-05 11:24:33 -0800306const struct iwl_cfg iwl6000i_2bg_cfg = {
Shanyu Zhaoc11362c2010-03-05 17:05:20 -0800307 .name = "Intel(R) Centrino(R) Advanced-N 6200 BG",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800308 IWL_DEVICE_6000i,
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700309};
310
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800311#define IWL_DEVICE_6050 \
312 .fw_name_pre = IWL6050_FW_PRE, \
313 .ucode_api_max = IWL6050_UCODE_API_MAX, \
314 .ucode_api_min = IWL6050_UCODE_API_MIN, \
Johannes Berg2d771cb2012-04-09 17:47:00 -0700315 .device_family = IWL_DEVICE_FAMILY_6050, \
Emmanuel Grumbachdae66d02012-02-07 12:56:26 +0200316 .max_inst_size = IWL60_RTC_INST_SIZE, \
317 .max_data_size = IWL60_RTC_DATA_SIZE, \
Wey-Yi Guyff458ed2011-01-31 13:56:03 -0800318 .valid_tx_ant = ANT_AB, /* .cfg overwrite */ \
319 .valid_rx_ant = ANT_AB, /* .cfg overwrite */ \
Eytan Lifshitzb7998c82012-12-01 20:59:49 +0200320 .nvm_ver = EEPROM_6050_EEPROM_VERSION, \
321 .nvm_calib_ver = EEPROM_6050_TX_POWER_VERSION, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800322 .base_params = &iwl6050_base_params, \
Johannes Berg26a7ca92012-05-21 11:55:54 +0200323 .eeprom_params = &iwl6000_eeprom_params, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800324 .led_mode = IWL_LED_BLINK, \
325 .internal_wimax_coex = true
326
Johannes Berg706c4ff2012-03-05 11:24:33 -0800327const struct iwl_cfg iwl6050_2agn_cfg = {
Shanyu Zhaoc11362c2010-03-05 17:05:20 -0800328 .name = "Intel(R) Centrino(R) Advanced-N + WiMAX 6250 AGN",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800329 IWL_DEVICE_6050,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700330 .ht_params = &iwl6000_ht_params,
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800331};
332
Johannes Berg706c4ff2012-03-05 11:24:33 -0800333const struct iwl_cfg iwl6050_2abg_cfg = {
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800334 .name = "Intel(R) Centrino(R) Advanced-N + WiMAX 6250 ABG",
335 IWL_DEVICE_6050,
Jay Sternberge1228372009-01-19 15:30:34 -0800336};
337
Wey-Yi Guy11441812011-05-30 09:32:52 -0700338#define IWL_DEVICE_6150 \
339 .fw_name_pre = IWL6050_FW_PRE, \
340 .ucode_api_max = IWL6050_UCODE_API_MAX, \
341 .ucode_api_min = IWL6050_UCODE_API_MIN, \
Johannes Berg2d771cb2012-04-09 17:47:00 -0700342 .device_family = IWL_DEVICE_FAMILY_6150, \
Emmanuel Grumbachdae66d02012-02-07 12:56:26 +0200343 .max_inst_size = IWL60_RTC_INST_SIZE, \
344 .max_data_size = IWL60_RTC_DATA_SIZE, \
Eytan Lifshitzb7998c82012-12-01 20:59:49 +0200345 .nvm_ver = EEPROM_6150_EEPROM_VERSION, \
346 .nvm_calib_ver = EEPROM_6150_TX_POWER_VERSION, \
Wey-Yi Guy11441812011-05-30 09:32:52 -0700347 .base_params = &iwl6050_base_params, \
Johannes Berg26a7ca92012-05-21 11:55:54 +0200348 .eeprom_params = &iwl6000_eeprom_params, \
Wey-Yi Guy11441812011-05-30 09:32:52 -0700349 .led_mode = IWL_LED_BLINK, \
350 .internal_wimax_coex = true
351
Johannes Berg706c4ff2012-03-05 11:24:33 -0800352const struct iwl_cfg iwl6150_bgn_cfg = {
Wey-Yi Guyf9dc6462010-11-17 12:13:52 -0800353 .name = "Intel(R) Centrino(R) Wireless-N + WiMAX 6150 BGN",
Wey-Yi Guy11441812011-05-30 09:32:52 -0700354 IWL_DEVICE_6150,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700355 .ht_params = &iwl6000_ht_params,
Wey-Yi Guy11441812011-05-30 09:32:52 -0700356};
357
Johannes Berg706c4ff2012-03-05 11:24:33 -0800358const struct iwl_cfg iwl6150_bg_cfg = {
Wey-Yi Guy11441812011-05-30 09:32:52 -0700359 .name = "Intel(R) Centrino(R) Wireless-N + WiMAX 6150 BG",
360 IWL_DEVICE_6150,
Shanyu Zhao03264332010-06-29 17:27:27 -0700361};
362
Johannes Berg706c4ff2012-03-05 11:24:33 -0800363const struct iwl_cfg iwl6000_3agn_cfg = {
Shanyu Zhaoc11362c2010-03-05 17:05:20 -0800364 .name = "Intel(R) Centrino(R) Ultimate-N 6300 AGN",
Jay Sternberge1228372009-01-19 15:30:34 -0800365 .fw_name_pre = IWL6000_FW_PRE,
366 .ucode_api_max = IWL6000_UCODE_API_MAX,
Johannes Bergb9148112011-11-04 07:22:37 -0700367 .ucode_api_ok = IWL6000_UCODE_API_OK,
Jay Sternberge1228372009-01-19 15:30:34 -0800368 .ucode_api_min = IWL6000_UCODE_API_MIN,
Johannes Berg2d771cb2012-04-09 17:47:00 -0700369 .device_family = IWL_DEVICE_FAMILY_6000,
Emmanuel Grumbachdae66d02012-02-07 12:56:26 +0200370 .max_inst_size = IWL60_RTC_INST_SIZE,
371 .max_data_size = IWL60_RTC_DATA_SIZE,
Eytan Lifshitzb7998c82012-12-01 20:59:49 +0200372 .nvm_ver = EEPROM_6000_EEPROM_VERSION,
373 .nvm_calib_ver = EEPROM_6000_TX_POWER_VERSION,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700374 .base_params = &iwl6000_base_params,
Johannes Berg26a7ca92012-05-21 11:55:54 +0200375 .eeprom_params = &iwl6000_eeprom_params,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700376 .ht_params = &iwl6000_ht_params,
Wey-Yi Guy564b3442010-11-09 09:21:34 -0800377 .led_mode = IWL_LED_BLINK,
Jay Sternberge1228372009-01-19 15:30:34 -0800378};
379
Johannes Bergb9148112011-11-04 07:22:37 -0700380MODULE_FIRMWARE(IWL6000_MODULE_FIRMWARE(IWL6000_UCODE_API_OK));
Meenakshi Venkataraman78cbcf22012-04-22 07:55:27 -0700381MODULE_FIRMWARE(IWL6050_MODULE_FIRMWARE(IWL6050_UCODE_API_OK));
382MODULE_FIRMWARE(IWL6005_MODULE_FIRMWARE(IWL6000G2_UCODE_API_OK));
383MODULE_FIRMWARE(IWL6030_MODULE_FIRMWARE(IWL6000G2B_UCODE_API_OK));