blob: 8ac305be68f489be533606cb8260dbfd4dc5cfda [file] [log] [blame]
Jay Sternberge1228372009-01-19 15:30:34 -08001/******************************************************************************
2 *
Johannes Berg128e63e2013-01-21 21:39:26 +01003 * Copyright(c) 2008 - 2013 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 */
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -070088};
89
Johannes Berg6794f3e2012-03-06 13:30:56 -080090static const struct iwl_base_params iwl6050_base_params = {
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -070091 .eeprom_size = OTP_LOW_IMAGE_SIZE,
92 .num_of_queues = IWLAGN_NUM_QUEUES,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -070093 .pll_cfg_val = 0,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -070094 .max_ll_items = OTP_MAX_LL_ITEMS_6x50,
95 .shadow_ram_support = true,
96 .led_compensation = 51,
Stanislaw Gruszka22de94d2010-12-03 15:41:48 +010097 .wd_timeout = IWL_DEF_WD_TIMEOUT,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -070098 .max_event_log_size = 1024,
Meenakshi Venkataraman66a77072012-05-16 22:35:59 +020099 .shadow_reg_enable = false, /* TODO: fix bugs using this feature */
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700100};
Johannes Berg6794f3e2012-03-06 13:30:56 -0800101
102static const struct iwl_base_params iwl6000_g2_base_params = {
Wey-Yi Guyde05ead2010-09-23 15:24:22 -0700103 .eeprom_size = OTP_LOW_IMAGE_SIZE,
104 .num_of_queues = IWLAGN_NUM_QUEUES,
Wey-Yi Guyde05ead2010-09-23 15:24:22 -0700105 .pll_cfg_val = 0,
Wey-Yi Guyde05ead2010-09-23 15:24:22 -0700106 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
107 .shadow_ram_support = true,
Wey-Yi Guy4fb33242010-11-29 10:45:16 -0800108 .led_compensation = 57,
Stanislaw Gruszka22de94d2010-12-03 15:41:48 +0100109 .wd_timeout = IWL_LONG_WD_TIMEOUT,
Wey-Yi Guyde05ead2010-09-23 15:24:22 -0700110 .max_event_log_size = 512,
Meenakshi Venkataraman66a77072012-05-16 22:35:59 +0200111 .shadow_reg_enable = false, /* TODO: fix bugs using this feature */
Wey-Yi Guyde05ead2010-09-23 15:24:22 -0700112};
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700113
Johannes Berg6794f3e2012-03-06 13:30:56 -0800114static const struct iwl_ht_params iwl6000_ht_params = {
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700115 .ht_greenfield_support = true,
116 .use_rts_for_aggregation = true, /* use rts/cts protection */
Johannes Bergd3704932012-05-21 20:03:01 +0200117 .ht40_bands = BIT(IEEE80211_BAND_2GHZ) | BIT(IEEE80211_BAND_5GHZ),
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700118};
119
Johannes Berg26a7ca92012-05-21 11:55:54 +0200120static const struct iwl_eeprom_params iwl6000_eeprom_params = {
121 .regulatory_bands = {
122 EEPROM_REG_BAND_1_CHANNELS,
123 EEPROM_REG_BAND_2_CHANNELS,
124 EEPROM_REG_BAND_3_CHANNELS,
125 EEPROM_REG_BAND_4_CHANNELS,
126 EEPROM_REG_BAND_5_CHANNELS,
127 EEPROM_6000_REG_BAND_24_HT40_CHANNELS,
128 EEPROM_REG_BAND_52_HT40_CHANNELS
129 },
130 .enhanced_txpower = true,
131};
132
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800133#define IWL_DEVICE_6005 \
Johannes Bergca9a4602011-07-23 10:24:45 -0700134 .fw_name_pre = IWL6005_FW_PRE, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800135 .ucode_api_max = IWL6000G2_UCODE_API_MAX, \
Johannes Bergca9a4602011-07-23 10:24:45 -0700136 .ucode_api_ok = IWL6000G2_UCODE_API_OK, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800137 .ucode_api_min = IWL6000G2_UCODE_API_MIN, \
Johannes Berg2d771cb2012-04-09 17:47:00 -0700138 .device_family = IWL_DEVICE_FAMILY_6005, \
Emmanuel Grumbachdae66d02012-02-07 12:56:26 +0200139 .max_inst_size = IWL60_RTC_INST_SIZE, \
140 .max_data_size = IWL60_RTC_DATA_SIZE, \
Eytan Lifshitzb7998c82012-12-01 20:59:49 +0200141 .nvm_ver = EEPROM_6005_EEPROM_VERSION, \
142 .nvm_calib_ver = EEPROM_6005_TX_POWER_VERSION, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800143 .base_params = &iwl6000_g2_base_params, \
Johannes Berg26a7ca92012-05-21 11:55:54 +0200144 .eeprom_params = &iwl6000_eeprom_params, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800145 .led_mode = IWL_LED_RF_STATE
146
Johannes Berg706c4ff2012-03-05 11:24:33 -0800147const struct iwl_cfg iwl6005_2agn_cfg = {
Wey-Yi Guy55017ab2010-11-17 12:13:53 -0800148 .name = "Intel(R) Centrino(R) Advanced-N 6205 AGN",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800149 IWL_DEVICE_6005,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700150 .ht_params = &iwl6000_ht_params,
Jay Sternberg0b5af202010-03-17 16:16:12 -0700151};
152
Johannes Berg706c4ff2012-03-05 11:24:33 -0800153const struct iwl_cfg iwl6005_2abg_cfg = {
Wey-Yi Guy55017ab2010-11-17 12:13:53 -0800154 .name = "Intel(R) Centrino(R) Advanced-N 6205 ABG",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800155 IWL_DEVICE_6005,
Shanyu Zhao18089722010-05-06 10:15:21 -0700156};
157
Johannes Berg706c4ff2012-03-05 11:24:33 -0800158const struct iwl_cfg iwl6005_2bg_cfg = {
Wey-Yi Guy55017ab2010-11-17 12:13:53 -0800159 .name = "Intel(R) Centrino(R) Advanced-N 6205 BG",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800160 IWL_DEVICE_6005,
Shanyu Zhao18089722010-05-06 10:15:21 -0700161};
162
Johannes Berg706c4ff2012-03-05 11:24:33 -0800163const struct iwl_cfg iwl6005_2agn_sff_cfg = {
Wey-Yi Guy6a9ae0d2011-08-25 23:10:56 -0700164 .name = "Intel(R) Centrino(R) Advanced-N 6205S AGN",
165 IWL_DEVICE_6005,
166 .ht_params = &iwl6000_ht_params,
167};
168
Johannes Berg706c4ff2012-03-05 11:24:33 -0800169const struct iwl_cfg iwl6005_2agn_d_cfg = {
Wey-Yi Guy5131a602011-10-10 07:27:00 -0700170 .name = "Intel(R) Centrino(R) Advanced-N 6205D AGN",
171 IWL_DEVICE_6005,
172 .ht_params = &iwl6000_ht_params,
173};
174
Johannes Berg706c4ff2012-03-05 11:24:33 -0800175const struct iwl_cfg iwl6005_2agn_mow1_cfg = {
Wey-Yi Guy37891122012-02-22 10:21:09 -0800176 .name = "Intel(R) Centrino(R) Advanced-N 6206 AGN",
177 IWL_DEVICE_6005,
178 .ht_params = &iwl6000_ht_params,
179};
Johannes Berg706c4ff2012-03-05 11:24:33 -0800180
181const struct iwl_cfg iwl6005_2agn_mow2_cfg = {
Wey-Yi Guy37891122012-02-22 10:21:09 -0800182 .name = "Intel(R) Centrino(R) Advanced-N 6207 AGN",
183 IWL_DEVICE_6005,
184 .ht_params = &iwl6000_ht_params,
185};
186
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800187#define IWL_DEVICE_6030 \
Johannes Bergca9a4602011-07-23 10:24:45 -0700188 .fw_name_pre = IWL6030_FW_PRE, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800189 .ucode_api_max = IWL6000G2_UCODE_API_MAX, \
Wey-Yi Guy1ed2ec32012-04-25 08:10:08 -0700190 .ucode_api_ok = IWL6000G2B_UCODE_API_OK, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800191 .ucode_api_min = IWL6000G2_UCODE_API_MIN, \
Johannes Berg2d771cb2012-04-09 17:47:00 -0700192 .device_family = IWL_DEVICE_FAMILY_6030, \
Emmanuel Grumbachdae66d02012-02-07 12:56:26 +0200193 .max_inst_size = IWL60_RTC_INST_SIZE, \
194 .max_data_size = IWL60_RTC_DATA_SIZE, \
Eytan Lifshitzb7998c82012-12-01 20:59:49 +0200195 .nvm_ver = EEPROM_6030_EEPROM_VERSION, \
196 .nvm_calib_ver = EEPROM_6030_TX_POWER_VERSION, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800197 .base_params = &iwl6000_g2_base_params, \
Johannes Berg26a7ca92012-05-21 11:55:54 +0200198 .eeprom_params = &iwl6000_eeprom_params, \
Johannes Berg0d8877a2013-05-17 10:36:29 +0200199 .led_mode = IWL_LED_RF_STATE
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800200
Johannes Berg706c4ff2012-03-05 11:24:33 -0800201const struct iwl_cfg iwl6030_2agn_cfg = {
Wey-Yi Guyd2eceef2010-11-17 12:13:54 -0800202 .name = "Intel(R) Centrino(R) Advanced-N 6230 AGN",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800203 IWL_DEVICE_6030,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700204 .ht_params = &iwl6000_ht_params,
Shanyu Zhao18089722010-05-06 10:15:21 -0700205};
206
Johannes Berg706c4ff2012-03-05 11:24:33 -0800207const struct iwl_cfg iwl6030_2abg_cfg = {
Wey-Yi Guyd2eceef2010-11-17 12:13:54 -0800208 .name = "Intel(R) Centrino(R) Advanced-N 6230 ABG",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800209 IWL_DEVICE_6030,
Shanyu Zhao18089722010-05-06 10:15:21 -0700210};
211
Johannes Berg706c4ff2012-03-05 11:24:33 -0800212const struct iwl_cfg iwl6030_2bgn_cfg = {
Wey-Yi Guyd2eceef2010-11-17 12:13:54 -0800213 .name = "Intel(R) Centrino(R) Advanced-N 6230 BGN",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800214 IWL_DEVICE_6030,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700215 .ht_params = &iwl6000_ht_params,
Shanyu Zhao9f6e1ba2010-05-11 15:21:54 -0700216};
217
Johannes Berg706c4ff2012-03-05 11:24:33 -0800218const struct iwl_cfg iwl6030_2bg_cfg = {
Wey-Yi Guyd2eceef2010-11-17 12:13:54 -0800219 .name = "Intel(R) Centrino(R) Advanced-N 6230 BG",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800220 IWL_DEVICE_6030,
Shanyu Zhao18089722010-05-06 10:15:21 -0700221};
222
Meenakshi Venkataramand2c8b152012-06-05 20:24:37 +0200223#define IWL_DEVICE_6035 \
224 .fw_name_pre = IWL6030_FW_PRE, \
225 .ucode_api_max = IWL6035_UCODE_API_MAX, \
226 .ucode_api_ok = IWL6035_UCODE_API_OK, \
227 .ucode_api_min = IWL6035_UCODE_API_MIN, \
228 .device_family = IWL_DEVICE_FAMILY_6030, \
229 .max_inst_size = IWL60_RTC_INST_SIZE, \
230 .max_data_size = IWL60_RTC_DATA_SIZE, \
Eytan Lifshitzb7998c82012-12-01 20:59:49 +0200231 .nvm_ver = EEPROM_6030_EEPROM_VERSION, \
232 .nvm_calib_ver = EEPROM_6030_TX_POWER_VERSION, \
Meenakshi Venkataramand2c8b152012-06-05 20:24:37 +0200233 .base_params = &iwl6000_g2_base_params, \
Johannes Berg3c70d082012-06-12 21:43:28 +0200234 .eeprom_params = &iwl6000_eeprom_params, \
Johannes Berg0d8877a2013-05-17 10:36:29 +0200235 .led_mode = IWL_LED_RF_STATE
Meenakshi Venkataramand2c8b152012-06-05 20:24:37 +0200236
Johannes Berg706c4ff2012-03-05 11:24:33 -0800237const struct iwl_cfg iwl6035_2agn_cfg = {
Don Fry6195d132011-12-06 10:42:41 -0800238 .name = "Intel(R) Centrino(R) Advanced-N 6235 AGN",
Meenakshi Venkataramand2c8b152012-06-05 20:24:37 +0200239 IWL_DEVICE_6035,
Wey-Yi Guyd103e342011-03-10 03:17:16 -0800240 .ht_params = &iwl6000_ht_params,
241};
242
Emmanuel Grumbach08a5dd32013-09-24 19:34:26 +0300243const struct iwl_cfg iwl6035_2agn_sff_cfg = {
244 .name = "Intel(R) Centrino(R) Ultimate-N 6235 AGN",
245 IWL_DEVICE_6035,
246 .ht_params = &iwl6000_ht_params,
247};
248
Johannes Berg706c4ff2012-03-05 11:24:33 -0800249const struct iwl_cfg iwl1030_bgn_cfg = {
Wey-Yi Guyd2eceef2010-11-17 12:13:54 -0800250 .name = "Intel(R) Centrino(R) Wireless-N 1030 BGN",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800251 IWL_DEVICE_6030,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700252 .ht_params = &iwl6000_ht_params,
Shanyu Zhao18089722010-05-06 10:15:21 -0700253};
254
Johannes Berg706c4ff2012-03-05 11:24:33 -0800255const struct iwl_cfg iwl1030_bg_cfg = {
Wey-Yi Guyd2eceef2010-11-17 12:13:54 -0800256 .name = "Intel(R) Centrino(R) Wireless-N 1030 BG",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800257 IWL_DEVICE_6030,
258};
259
Johannes Berg706c4ff2012-03-05 11:24:33 -0800260const struct iwl_cfg iwl130_bgn_cfg = {
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800261 .name = "Intel(R) Centrino(R) Wireless-N 130 BGN",
262 IWL_DEVICE_6030,
263 .ht_params = &iwl6000_ht_params,
264 .rx_with_siso_diversity = true,
265};
266
Johannes Berg706c4ff2012-03-05 11:24:33 -0800267const struct iwl_cfg iwl130_bg_cfg = {
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800268 .name = "Intel(R) Centrino(R) Wireless-N 130 BG",
269 IWL_DEVICE_6030,
270 .rx_with_siso_diversity = true,
Shanyu Zhao18089722010-05-06 10:15:21 -0700271};
272
Shanyu Zhao95b13012010-04-21 11:46:33 -0700273/*
274 * "i": Internal configuration, use internal Power Amplifier
275 */
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800276#define IWL_DEVICE_6000i \
277 .fw_name_pre = IWL6000_FW_PRE, \
278 .ucode_api_max = IWL6000_UCODE_API_MAX, \
Johannes Bergb9148112011-11-04 07:22:37 -0700279 .ucode_api_ok = IWL6000_UCODE_API_OK, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800280 .ucode_api_min = IWL6000_UCODE_API_MIN, \
Johannes Berg2d771cb2012-04-09 17:47:00 -0700281 .device_family = IWL_DEVICE_FAMILY_6000i, \
Emmanuel Grumbachdae66d02012-02-07 12:56:26 +0200282 .max_inst_size = IWL60_RTC_INST_SIZE, \
283 .max_data_size = IWL60_RTC_DATA_SIZE, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800284 .valid_tx_ant = ANT_BC, /* .cfg overwrite */ \
285 .valid_rx_ant = ANT_BC, /* .cfg overwrite */ \
Eytan Lifshitzb7998c82012-12-01 20:59:49 +0200286 .nvm_ver = EEPROM_6000_EEPROM_VERSION, \
287 .nvm_calib_ver = EEPROM_6000_TX_POWER_VERSION, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800288 .base_params = &iwl6000_base_params, \
Johannes Berg26a7ca92012-05-21 11:55:54 +0200289 .eeprom_params = &iwl6000_eeprom_params, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800290 .led_mode = IWL_LED_BLINK
291
Johannes Berg706c4ff2012-03-05 11:24:33 -0800292const struct iwl_cfg iwl6000i_2agn_cfg = {
Shanyu Zhaoc11362c2010-03-05 17:05:20 -0800293 .name = "Intel(R) Centrino(R) Advanced-N 6200 AGN",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800294 IWL_DEVICE_6000i,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700295 .ht_params = &iwl6000_ht_params,
Jay Sternberge1228372009-01-19 15:30:34 -0800296};
297
Johannes Berg706c4ff2012-03-05 11:24:33 -0800298const struct iwl_cfg iwl6000i_2abg_cfg = {
Shanyu Zhaoc11362c2010-03-05 17:05:20 -0800299 .name = "Intel(R) Centrino(R) Advanced-N 6200 ABG",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800300 IWL_DEVICE_6000i,
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700301};
302
Johannes Berg706c4ff2012-03-05 11:24:33 -0800303const struct iwl_cfg iwl6000i_2bg_cfg = {
Shanyu Zhaoc11362c2010-03-05 17:05:20 -0800304 .name = "Intel(R) Centrino(R) Advanced-N 6200 BG",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800305 IWL_DEVICE_6000i,
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700306};
307
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800308#define IWL_DEVICE_6050 \
309 .fw_name_pre = IWL6050_FW_PRE, \
310 .ucode_api_max = IWL6050_UCODE_API_MAX, \
311 .ucode_api_min = IWL6050_UCODE_API_MIN, \
Johannes Berg2d771cb2012-04-09 17:47:00 -0700312 .device_family = IWL_DEVICE_FAMILY_6050, \
Emmanuel Grumbachdae66d02012-02-07 12:56:26 +0200313 .max_inst_size = IWL60_RTC_INST_SIZE, \
314 .max_data_size = IWL60_RTC_DATA_SIZE, \
Wey-Yi Guyff458ed2011-01-31 13:56:03 -0800315 .valid_tx_ant = ANT_AB, /* .cfg overwrite */ \
316 .valid_rx_ant = ANT_AB, /* .cfg overwrite */ \
Eytan Lifshitzb7998c82012-12-01 20:59:49 +0200317 .nvm_ver = EEPROM_6050_EEPROM_VERSION, \
318 .nvm_calib_ver = EEPROM_6050_TX_POWER_VERSION, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800319 .base_params = &iwl6050_base_params, \
Johannes Berg26a7ca92012-05-21 11:55:54 +0200320 .eeprom_params = &iwl6000_eeprom_params, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800321 .led_mode = IWL_LED_BLINK, \
322 .internal_wimax_coex = true
323
Johannes Berg706c4ff2012-03-05 11:24:33 -0800324const struct iwl_cfg iwl6050_2agn_cfg = {
Shanyu Zhaoc11362c2010-03-05 17:05:20 -0800325 .name = "Intel(R) Centrino(R) Advanced-N + WiMAX 6250 AGN",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800326 IWL_DEVICE_6050,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700327 .ht_params = &iwl6000_ht_params,
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800328};
329
Johannes Berg706c4ff2012-03-05 11:24:33 -0800330const struct iwl_cfg iwl6050_2abg_cfg = {
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800331 .name = "Intel(R) Centrino(R) Advanced-N + WiMAX 6250 ABG",
332 IWL_DEVICE_6050,
Jay Sternberge1228372009-01-19 15:30:34 -0800333};
334
Wey-Yi Guy11441812011-05-30 09:32:52 -0700335#define IWL_DEVICE_6150 \
336 .fw_name_pre = IWL6050_FW_PRE, \
337 .ucode_api_max = IWL6050_UCODE_API_MAX, \
338 .ucode_api_min = IWL6050_UCODE_API_MIN, \
Johannes Berg2d771cb2012-04-09 17:47:00 -0700339 .device_family = IWL_DEVICE_FAMILY_6150, \
Emmanuel Grumbachdae66d02012-02-07 12:56:26 +0200340 .max_inst_size = IWL60_RTC_INST_SIZE, \
341 .max_data_size = IWL60_RTC_DATA_SIZE, \
Eytan Lifshitzb7998c82012-12-01 20:59:49 +0200342 .nvm_ver = EEPROM_6150_EEPROM_VERSION, \
343 .nvm_calib_ver = EEPROM_6150_TX_POWER_VERSION, \
Wey-Yi Guy11441812011-05-30 09:32:52 -0700344 .base_params = &iwl6050_base_params, \
Johannes Berg26a7ca92012-05-21 11:55:54 +0200345 .eeprom_params = &iwl6000_eeprom_params, \
Wey-Yi Guy11441812011-05-30 09:32:52 -0700346 .led_mode = IWL_LED_BLINK, \
347 .internal_wimax_coex = true
348
Johannes Berg706c4ff2012-03-05 11:24:33 -0800349const struct iwl_cfg iwl6150_bgn_cfg = {
Wey-Yi Guyf9dc6462010-11-17 12:13:52 -0800350 .name = "Intel(R) Centrino(R) Wireless-N + WiMAX 6150 BGN",
Wey-Yi Guy11441812011-05-30 09:32:52 -0700351 IWL_DEVICE_6150,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700352 .ht_params = &iwl6000_ht_params,
Wey-Yi Guy11441812011-05-30 09:32:52 -0700353};
354
Johannes Berg706c4ff2012-03-05 11:24:33 -0800355const struct iwl_cfg iwl6150_bg_cfg = {
Wey-Yi Guy11441812011-05-30 09:32:52 -0700356 .name = "Intel(R) Centrino(R) Wireless-N + WiMAX 6150 BG",
357 IWL_DEVICE_6150,
Shanyu Zhao03264332010-06-29 17:27:27 -0700358};
359
Johannes Berg706c4ff2012-03-05 11:24:33 -0800360const struct iwl_cfg iwl6000_3agn_cfg = {
Shanyu Zhaoc11362c2010-03-05 17:05:20 -0800361 .name = "Intel(R) Centrino(R) Ultimate-N 6300 AGN",
Jay Sternberge1228372009-01-19 15:30:34 -0800362 .fw_name_pre = IWL6000_FW_PRE,
363 .ucode_api_max = IWL6000_UCODE_API_MAX,
Johannes Bergb9148112011-11-04 07:22:37 -0700364 .ucode_api_ok = IWL6000_UCODE_API_OK,
Jay Sternberge1228372009-01-19 15:30:34 -0800365 .ucode_api_min = IWL6000_UCODE_API_MIN,
Johannes Berg2d771cb2012-04-09 17:47:00 -0700366 .device_family = IWL_DEVICE_FAMILY_6000,
Emmanuel Grumbachdae66d02012-02-07 12:56:26 +0200367 .max_inst_size = IWL60_RTC_INST_SIZE,
368 .max_data_size = IWL60_RTC_DATA_SIZE,
Eytan Lifshitzb7998c82012-12-01 20:59:49 +0200369 .nvm_ver = EEPROM_6000_EEPROM_VERSION,
370 .nvm_calib_ver = EEPROM_6000_TX_POWER_VERSION,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700371 .base_params = &iwl6000_base_params,
Johannes Berg26a7ca92012-05-21 11:55:54 +0200372 .eeprom_params = &iwl6000_eeprom_params,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700373 .ht_params = &iwl6000_ht_params,
Wey-Yi Guy564b3442010-11-09 09:21:34 -0800374 .led_mode = IWL_LED_BLINK,
Jay Sternberge1228372009-01-19 15:30:34 -0800375};
376
Johannes Bergb9148112011-11-04 07:22:37 -0700377MODULE_FIRMWARE(IWL6000_MODULE_FIRMWARE(IWL6000_UCODE_API_OK));
Meenakshi Venkataraman78cbcf22012-04-22 07:55:27 -0700378MODULE_FIRMWARE(IWL6050_MODULE_FIRMWARE(IWL6050_UCODE_API_OK));
379MODULE_FIRMWARE(IWL6005_MODULE_FIRMWARE(IWL6000G2_UCODE_API_OK));
380MODULE_FIRMWARE(IWL6030_MODULE_FIRMWARE(IWL6000G2B_UCODE_API_OK));