blob: 39335b7b0c165c69a4d1aa004069c70184ed9675 [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:
Emmanuel Grumbachd01c5362015-11-17 15:39:56 +020022 * Intel Linux Wireless <linuxwifi@intel.com>
Jay Sternberge1228372009-01-19 15:30:34 -080023 * 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
Jay Sternberge1228372009-01-19 15:30:34 -080039/* Lowest firmware API version supported */
Wey-Yi Guy44246422009-10-23 13:42:34 -070040#define IWL6000_UCODE_API_MIN 4
41#define IWL6050_UCODE_API_MIN 4
Meenakshi Venkataramand2c8b152012-06-05 20:24:37 +020042#define IWL6000G2_UCODE_API_MIN 5
43#define IWL6035_UCODE_API_MIN 6
Jay Sternberge1228372009-01-19 15:30:34 -080044
Johannes Berg586aed92012-04-03 20:41:07 +020045/* EEPROM versions */
46#define EEPROM_6000_TX_POWER_VERSION (4)
47#define EEPROM_6000_EEPROM_VERSION (0x423)
48#define EEPROM_6050_TX_POWER_VERSION (4)
49#define EEPROM_6050_EEPROM_VERSION (0x532)
50#define EEPROM_6150_TX_POWER_VERSION (6)
51#define EEPROM_6150_EEPROM_VERSION (0x553)
52#define EEPROM_6005_TX_POWER_VERSION (6)
53#define EEPROM_6005_EEPROM_VERSION (0x709)
54#define EEPROM_6030_TX_POWER_VERSION (6)
55#define EEPROM_6030_EEPROM_VERSION (0x709)
56#define EEPROM_6035_TX_POWER_VERSION (6)
57#define EEPROM_6035_EEPROM_VERSION (0x753)
58
Jay Sternberge1228372009-01-19 15:30:34 -080059#define IWL6000_FW_PRE "iwlwifi-6000-"
Evgeni Golov8fcbd4dc2011-06-12 05:34:31 -070060#define IWL6000_MODULE_FIRMWARE(api) IWL6000_FW_PRE __stringify(api) ".ucode"
Jay Sternberge1228372009-01-19 15:30:34 -080061
62#define IWL6050_FW_PRE "iwlwifi-6050-"
Evgeni Golov8fcbd4dc2011-06-12 05:34:31 -070063#define IWL6050_MODULE_FIRMWARE(api) IWL6050_FW_PRE __stringify(api) ".ucode"
Jay Sternberge1228372009-01-19 15:30:34 -080064
Wey-Yi Guy1956e1a2011-01-08 10:25:14 -080065#define IWL6005_FW_PRE "iwlwifi-6000g2a-"
Evgeni Golov8fcbd4dc2011-06-12 05:34:31 -070066#define IWL6005_MODULE_FIRMWARE(api) IWL6005_FW_PRE __stringify(api) ".ucode"
Shanyu Zhao95b13012010-04-21 11:46:33 -070067
Wey-Yi Guy1956e1a2011-01-08 10:25:14 -080068#define IWL6030_FW_PRE "iwlwifi-6000g2b-"
Evgeni Golov8fcbd4dc2011-06-12 05:34:31 -070069#define IWL6030_MODULE_FIRMWARE(api) IWL6030_FW_PRE __stringify(api) ".ucode"
Shanyu Zhao18089722010-05-06 10:15:21 -070070
Johannes Berg6794f3e2012-03-06 13:30:56 -080071static const struct iwl_base_params iwl6000_base_params = {
Jay Sternberg0b5af202010-03-17 16:16:12 -070072 .eeprom_size = OTP_LOW_IMAGE_SIZE,
Jay Sternberg0b5af202010-03-17 16:16:12 -070073 .num_of_queues = IWLAGN_NUM_QUEUES,
Jay Sternberg0b5af202010-03-17 16:16:12 -070074 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
75 .shadow_ram_support = true,
Jay Sternberg0b5af202010-03-17 16:16:12 -070076 .led_compensation = 51,
Stanislaw Gruszka22de94d2010-12-03 15:41:48 +010077 .wd_timeout = IWL_DEF_WD_TIMEOUT,
Shanyu Zhao95b13012010-04-21 11:46:33 -070078 .max_event_log_size = 512,
Meenakshi Venkataraman66a77072012-05-16 22:35:59 +020079 .shadow_reg_enable = false, /* TODO: fix bugs using this feature */
Emmanuel Grumbache03bbb62014-04-13 10:49:16 +030080 .scd_chain_ext_wa = true,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -070081};
82
Johannes Berg6794f3e2012-03-06 13:30:56 -080083static const struct iwl_base_params iwl6050_base_params = {
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -070084 .eeprom_size = OTP_LOW_IMAGE_SIZE,
85 .num_of_queues = IWLAGN_NUM_QUEUES,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -070086 .max_ll_items = OTP_MAX_LL_ITEMS_6x50,
87 .shadow_ram_support = true,
88 .led_compensation = 51,
Stanislaw Gruszka22de94d2010-12-03 15:41:48 +010089 .wd_timeout = IWL_DEF_WD_TIMEOUT,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -070090 .max_event_log_size = 1024,
Meenakshi Venkataraman66a77072012-05-16 22:35:59 +020091 .shadow_reg_enable = false, /* TODO: fix bugs using this feature */
Emmanuel Grumbache03bbb62014-04-13 10:49:16 +030092 .scd_chain_ext_wa = true,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -070093};
Johannes Berg6794f3e2012-03-06 13:30:56 -080094
95static const struct iwl_base_params iwl6000_g2_base_params = {
Wey-Yi Guyde05ead2010-09-23 15:24:22 -070096 .eeprom_size = OTP_LOW_IMAGE_SIZE,
97 .num_of_queues = IWLAGN_NUM_QUEUES,
Wey-Yi Guyde05ead2010-09-23 15:24:22 -070098 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
99 .shadow_ram_support = true,
Wey-Yi Guy4fb33242010-11-29 10:45:16 -0800100 .led_compensation = 57,
Stanislaw Gruszka22de94d2010-12-03 15:41:48 +0100101 .wd_timeout = IWL_LONG_WD_TIMEOUT,
Wey-Yi Guyde05ead2010-09-23 15:24:22 -0700102 .max_event_log_size = 512,
Meenakshi Venkataraman66a77072012-05-16 22:35:59 +0200103 .shadow_reg_enable = false, /* TODO: fix bugs using this feature */
Emmanuel Grumbache03bbb62014-04-13 10:49:16 +0300104 .scd_chain_ext_wa = true,
Wey-Yi Guyde05ead2010-09-23 15:24:22 -0700105};
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700106
Johannes Berg6794f3e2012-03-06 13:30:56 -0800107static const struct iwl_ht_params iwl6000_ht_params = {
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700108 .ht_greenfield_support = true,
109 .use_rts_for_aggregation = true, /* use rts/cts protection */
Johannes Berg57fbcce2016-04-12 15:56:15 +0200110 .ht40_bands = BIT(NL80211_BAND_2GHZ) | BIT(NL80211_BAND_5GHZ),
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700111};
112
Johannes Berg26a7ca92012-05-21 11:55:54 +0200113static const struct iwl_eeprom_params iwl6000_eeprom_params = {
114 .regulatory_bands = {
115 EEPROM_REG_BAND_1_CHANNELS,
116 EEPROM_REG_BAND_2_CHANNELS,
117 EEPROM_REG_BAND_3_CHANNELS,
118 EEPROM_REG_BAND_4_CHANNELS,
119 EEPROM_REG_BAND_5_CHANNELS,
120 EEPROM_6000_REG_BAND_24_HT40_CHANNELS,
121 EEPROM_REG_BAND_52_HT40_CHANNELS
122 },
123 .enhanced_txpower = true,
124};
125
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800126#define IWL_DEVICE_6005 \
Johannes Bergca9a4602011-07-23 10:24:45 -0700127 .fw_name_pre = IWL6005_FW_PRE, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800128 .ucode_api_max = IWL6000G2_UCODE_API_MAX, \
129 .ucode_api_min = IWL6000G2_UCODE_API_MIN, \
Johannes Berg2d771cb2012-04-09 17:47:00 -0700130 .device_family = IWL_DEVICE_FAMILY_6005, \
Emmanuel Grumbachdae66d02012-02-07 12:56:26 +0200131 .max_inst_size = IWL60_RTC_INST_SIZE, \
132 .max_data_size = IWL60_RTC_DATA_SIZE, \
Eytan Lifshitzb7998c82012-12-01 20:59:49 +0200133 .nvm_ver = EEPROM_6005_EEPROM_VERSION, \
134 .nvm_calib_ver = EEPROM_6005_TX_POWER_VERSION, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800135 .base_params = &iwl6000_g2_base_params, \
Johannes Berg26a7ca92012-05-21 11:55:54 +0200136 .eeprom_params = &iwl6000_eeprom_params, \
Emmanuel Grumbach540623c2015-02-23 02:40:07 +0200137 .led_mode = IWL_LED_RF_STATE, \
138 .max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800139
Johannes Berg706c4ff2012-03-05 11:24:33 -0800140const struct iwl_cfg iwl6005_2agn_cfg = {
Wey-Yi Guy55017ab2010-11-17 12:13:53 -0800141 .name = "Intel(R) Centrino(R) Advanced-N 6205 AGN",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800142 IWL_DEVICE_6005,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700143 .ht_params = &iwl6000_ht_params,
Jay Sternberg0b5af202010-03-17 16:16:12 -0700144};
145
Johannes Berg706c4ff2012-03-05 11:24:33 -0800146const struct iwl_cfg iwl6005_2abg_cfg = {
Wey-Yi Guy55017ab2010-11-17 12:13:53 -0800147 .name = "Intel(R) Centrino(R) Advanced-N 6205 ABG",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800148 IWL_DEVICE_6005,
Shanyu Zhao18089722010-05-06 10:15:21 -0700149};
150
Johannes Berg706c4ff2012-03-05 11:24:33 -0800151const struct iwl_cfg iwl6005_2bg_cfg = {
Wey-Yi Guy55017ab2010-11-17 12:13:53 -0800152 .name = "Intel(R) Centrino(R) Advanced-N 6205 BG",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800153 IWL_DEVICE_6005,
Shanyu Zhao18089722010-05-06 10:15:21 -0700154};
155
Johannes Berg706c4ff2012-03-05 11:24:33 -0800156const struct iwl_cfg iwl6005_2agn_sff_cfg = {
Wey-Yi Guy6a9ae0d2011-08-25 23:10:56 -0700157 .name = "Intel(R) Centrino(R) Advanced-N 6205S AGN",
158 IWL_DEVICE_6005,
159 .ht_params = &iwl6000_ht_params,
160};
161
Johannes Berg706c4ff2012-03-05 11:24:33 -0800162const struct iwl_cfg iwl6005_2agn_d_cfg = {
Wey-Yi Guy5131a602011-10-10 07:27:00 -0700163 .name = "Intel(R) Centrino(R) Advanced-N 6205D AGN",
164 IWL_DEVICE_6005,
165 .ht_params = &iwl6000_ht_params,
166};
167
Johannes Berg706c4ff2012-03-05 11:24:33 -0800168const struct iwl_cfg iwl6005_2agn_mow1_cfg = {
Wey-Yi Guy37891122012-02-22 10:21:09 -0800169 .name = "Intel(R) Centrino(R) Advanced-N 6206 AGN",
170 IWL_DEVICE_6005,
171 .ht_params = &iwl6000_ht_params,
172};
Johannes Berg706c4ff2012-03-05 11:24:33 -0800173
174const struct iwl_cfg iwl6005_2agn_mow2_cfg = {
Wey-Yi Guy37891122012-02-22 10:21:09 -0800175 .name = "Intel(R) Centrino(R) Advanced-N 6207 AGN",
176 IWL_DEVICE_6005,
177 .ht_params = &iwl6000_ht_params,
178};
179
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800180#define IWL_DEVICE_6030 \
Johannes Bergca9a4602011-07-23 10:24:45 -0700181 .fw_name_pre = IWL6030_FW_PRE, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800182 .ucode_api_max = IWL6000G2_UCODE_API_MAX, \
183 .ucode_api_min = IWL6000G2_UCODE_API_MIN, \
Johannes Berg2d771cb2012-04-09 17:47:00 -0700184 .device_family = IWL_DEVICE_FAMILY_6030, \
Emmanuel Grumbachdae66d02012-02-07 12:56:26 +0200185 .max_inst_size = IWL60_RTC_INST_SIZE, \
186 .max_data_size = IWL60_RTC_DATA_SIZE, \
Eytan Lifshitzb7998c82012-12-01 20:59:49 +0200187 .nvm_ver = EEPROM_6030_EEPROM_VERSION, \
188 .nvm_calib_ver = EEPROM_6030_TX_POWER_VERSION, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800189 .base_params = &iwl6000_g2_base_params, \
Johannes Berg26a7ca92012-05-21 11:55:54 +0200190 .eeprom_params = &iwl6000_eeprom_params, \
Emmanuel Grumbach540623c2015-02-23 02:40:07 +0200191 .led_mode = IWL_LED_RF_STATE, \
192 .max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800193
Johannes Berg706c4ff2012-03-05 11:24:33 -0800194const struct iwl_cfg iwl6030_2agn_cfg = {
Wey-Yi Guyd2eceef2010-11-17 12:13:54 -0800195 .name = "Intel(R) Centrino(R) Advanced-N 6230 AGN",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800196 IWL_DEVICE_6030,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700197 .ht_params = &iwl6000_ht_params,
Shanyu Zhao18089722010-05-06 10:15:21 -0700198};
199
Johannes Berg706c4ff2012-03-05 11:24:33 -0800200const struct iwl_cfg iwl6030_2abg_cfg = {
Wey-Yi Guyd2eceef2010-11-17 12:13:54 -0800201 .name = "Intel(R) Centrino(R) Advanced-N 6230 ABG",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800202 IWL_DEVICE_6030,
Shanyu Zhao18089722010-05-06 10:15:21 -0700203};
204
Johannes Berg706c4ff2012-03-05 11:24:33 -0800205const struct iwl_cfg iwl6030_2bgn_cfg = {
Wey-Yi Guyd2eceef2010-11-17 12:13:54 -0800206 .name = "Intel(R) Centrino(R) Advanced-N 6230 BGN",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800207 IWL_DEVICE_6030,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700208 .ht_params = &iwl6000_ht_params,
Shanyu Zhao9f6e1ba2010-05-11 15:21:54 -0700209};
210
Johannes Berg706c4ff2012-03-05 11:24:33 -0800211const struct iwl_cfg iwl6030_2bg_cfg = {
Wey-Yi Guyd2eceef2010-11-17 12:13:54 -0800212 .name = "Intel(R) Centrino(R) Advanced-N 6230 BG",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800213 IWL_DEVICE_6030,
Shanyu Zhao18089722010-05-06 10:15:21 -0700214};
215
Meenakshi Venkataramand2c8b152012-06-05 20:24:37 +0200216#define IWL_DEVICE_6035 \
217 .fw_name_pre = IWL6030_FW_PRE, \
218 .ucode_api_max = IWL6035_UCODE_API_MAX, \
Meenakshi Venkataramand2c8b152012-06-05 20:24:37 +0200219 .ucode_api_min = IWL6035_UCODE_API_MIN, \
220 .device_family = IWL_DEVICE_FAMILY_6030, \
221 .max_inst_size = IWL60_RTC_INST_SIZE, \
222 .max_data_size = IWL60_RTC_DATA_SIZE, \
Eytan Lifshitzb7998c82012-12-01 20:59:49 +0200223 .nvm_ver = EEPROM_6030_EEPROM_VERSION, \
224 .nvm_calib_ver = EEPROM_6030_TX_POWER_VERSION, \
Meenakshi Venkataramand2c8b152012-06-05 20:24:37 +0200225 .base_params = &iwl6000_g2_base_params, \
Johannes Berg3c70d082012-06-12 21:43:28 +0200226 .eeprom_params = &iwl6000_eeprom_params, \
Emmanuel Grumbach540623c2015-02-23 02:40:07 +0200227 .led_mode = IWL_LED_RF_STATE, \
228 .max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K
Meenakshi Venkataramand2c8b152012-06-05 20:24:37 +0200229
Johannes Berg706c4ff2012-03-05 11:24:33 -0800230const struct iwl_cfg iwl6035_2agn_cfg = {
Don Fry6195d132011-12-06 10:42:41 -0800231 .name = "Intel(R) Centrino(R) Advanced-N 6235 AGN",
Meenakshi Venkataramand2c8b152012-06-05 20:24:37 +0200232 IWL_DEVICE_6035,
Wey-Yi Guyd103e342011-03-10 03:17:16 -0800233 .ht_params = &iwl6000_ht_params,
234};
235
Emmanuel Grumbach08a5dd32013-09-24 19:34:26 +0300236const struct iwl_cfg iwl6035_2agn_sff_cfg = {
237 .name = "Intel(R) Centrino(R) Ultimate-N 6235 AGN",
238 IWL_DEVICE_6035,
239 .ht_params = &iwl6000_ht_params,
240};
241
Johannes Berg706c4ff2012-03-05 11:24:33 -0800242const struct iwl_cfg iwl1030_bgn_cfg = {
Wey-Yi Guyd2eceef2010-11-17 12:13:54 -0800243 .name = "Intel(R) Centrino(R) Wireless-N 1030 BGN",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800244 IWL_DEVICE_6030,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700245 .ht_params = &iwl6000_ht_params,
Shanyu Zhao18089722010-05-06 10:15:21 -0700246};
247
Johannes Berg706c4ff2012-03-05 11:24:33 -0800248const struct iwl_cfg iwl1030_bg_cfg = {
Wey-Yi Guyd2eceef2010-11-17 12:13:54 -0800249 .name = "Intel(R) Centrino(R) Wireless-N 1030 BG",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800250 IWL_DEVICE_6030,
251};
252
Johannes Berg706c4ff2012-03-05 11:24:33 -0800253const struct iwl_cfg iwl130_bgn_cfg = {
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800254 .name = "Intel(R) Centrino(R) Wireless-N 130 BGN",
255 IWL_DEVICE_6030,
256 .ht_params = &iwl6000_ht_params,
257 .rx_with_siso_diversity = true,
258};
259
Johannes Berg706c4ff2012-03-05 11:24:33 -0800260const struct iwl_cfg iwl130_bg_cfg = {
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800261 .name = "Intel(R) Centrino(R) Wireless-N 130 BG",
262 IWL_DEVICE_6030,
263 .rx_with_siso_diversity = true,
Shanyu Zhao18089722010-05-06 10:15:21 -0700264};
265
Shanyu Zhao95b13012010-04-21 11:46:33 -0700266/*
267 * "i": Internal configuration, use internal Power Amplifier
268 */
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800269#define IWL_DEVICE_6000i \
270 .fw_name_pre = IWL6000_FW_PRE, \
271 .ucode_api_max = IWL6000_UCODE_API_MAX, \
272 .ucode_api_min = IWL6000_UCODE_API_MIN, \
Johannes Berg2d771cb2012-04-09 17:47:00 -0700273 .device_family = IWL_DEVICE_FAMILY_6000i, \
Emmanuel Grumbachdae66d02012-02-07 12:56:26 +0200274 .max_inst_size = IWL60_RTC_INST_SIZE, \
275 .max_data_size = IWL60_RTC_DATA_SIZE, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800276 .valid_tx_ant = ANT_BC, /* .cfg overwrite */ \
277 .valid_rx_ant = ANT_BC, /* .cfg overwrite */ \
Eytan Lifshitzb7998c82012-12-01 20:59:49 +0200278 .nvm_ver = EEPROM_6000_EEPROM_VERSION, \
279 .nvm_calib_ver = EEPROM_6000_TX_POWER_VERSION, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800280 .base_params = &iwl6000_base_params, \
Johannes Berg26a7ca92012-05-21 11:55:54 +0200281 .eeprom_params = &iwl6000_eeprom_params, \
Emmanuel Grumbach540623c2015-02-23 02:40:07 +0200282 .led_mode = IWL_LED_BLINK, \
283 .max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800284
Johannes Berg706c4ff2012-03-05 11:24:33 -0800285const struct iwl_cfg iwl6000i_2agn_cfg = {
Shanyu Zhaoc11362c2010-03-05 17:05:20 -0800286 .name = "Intel(R) Centrino(R) Advanced-N 6200 AGN",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800287 IWL_DEVICE_6000i,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700288 .ht_params = &iwl6000_ht_params,
Jay Sternberge1228372009-01-19 15:30:34 -0800289};
290
Johannes Berg706c4ff2012-03-05 11:24:33 -0800291const struct iwl_cfg iwl6000i_2abg_cfg = {
Shanyu Zhaoc11362c2010-03-05 17:05:20 -0800292 .name = "Intel(R) Centrino(R) Advanced-N 6200 ABG",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800293 IWL_DEVICE_6000i,
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700294};
295
Johannes Berg706c4ff2012-03-05 11:24:33 -0800296const struct iwl_cfg iwl6000i_2bg_cfg = {
Shanyu Zhaoc11362c2010-03-05 17:05:20 -0800297 .name = "Intel(R) Centrino(R) Advanced-N 6200 BG",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800298 IWL_DEVICE_6000i,
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700299};
300
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800301#define IWL_DEVICE_6050 \
302 .fw_name_pre = IWL6050_FW_PRE, \
303 .ucode_api_max = IWL6050_UCODE_API_MAX, \
304 .ucode_api_min = IWL6050_UCODE_API_MIN, \
Johannes Berg2d771cb2012-04-09 17:47:00 -0700305 .device_family = IWL_DEVICE_FAMILY_6050, \
Emmanuel Grumbachdae66d02012-02-07 12:56:26 +0200306 .max_inst_size = IWL60_RTC_INST_SIZE, \
307 .max_data_size = IWL60_RTC_DATA_SIZE, \
Wey-Yi Guyff458ed2011-01-31 13:56:03 -0800308 .valid_tx_ant = ANT_AB, /* .cfg overwrite */ \
309 .valid_rx_ant = ANT_AB, /* .cfg overwrite */ \
Eytan Lifshitzb7998c82012-12-01 20:59:49 +0200310 .nvm_ver = EEPROM_6050_EEPROM_VERSION, \
311 .nvm_calib_ver = EEPROM_6050_TX_POWER_VERSION, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800312 .base_params = &iwl6050_base_params, \
Johannes Berg26a7ca92012-05-21 11:55:54 +0200313 .eeprom_params = &iwl6000_eeprom_params, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800314 .led_mode = IWL_LED_BLINK, \
Emmanuel Grumbach540623c2015-02-23 02:40:07 +0200315 .internal_wimax_coex = true, \
316 .max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800317
Johannes Berg706c4ff2012-03-05 11:24:33 -0800318const struct iwl_cfg iwl6050_2agn_cfg = {
Shanyu Zhaoc11362c2010-03-05 17:05:20 -0800319 .name = "Intel(R) Centrino(R) Advanced-N + WiMAX 6250 AGN",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800320 IWL_DEVICE_6050,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700321 .ht_params = &iwl6000_ht_params,
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800322};
323
Johannes Berg706c4ff2012-03-05 11:24:33 -0800324const struct iwl_cfg iwl6050_2abg_cfg = {
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800325 .name = "Intel(R) Centrino(R) Advanced-N + WiMAX 6250 ABG",
326 IWL_DEVICE_6050,
Jay Sternberge1228372009-01-19 15:30:34 -0800327};
328
Wey-Yi Guy11441812011-05-30 09:32:52 -0700329#define IWL_DEVICE_6150 \
330 .fw_name_pre = IWL6050_FW_PRE, \
331 .ucode_api_max = IWL6050_UCODE_API_MAX, \
332 .ucode_api_min = IWL6050_UCODE_API_MIN, \
Johannes Berg2d771cb2012-04-09 17:47:00 -0700333 .device_family = IWL_DEVICE_FAMILY_6150, \
Emmanuel Grumbachdae66d02012-02-07 12:56:26 +0200334 .max_inst_size = IWL60_RTC_INST_SIZE, \
335 .max_data_size = IWL60_RTC_DATA_SIZE, \
Eytan Lifshitzb7998c82012-12-01 20:59:49 +0200336 .nvm_ver = EEPROM_6150_EEPROM_VERSION, \
337 .nvm_calib_ver = EEPROM_6150_TX_POWER_VERSION, \
Wey-Yi Guy11441812011-05-30 09:32:52 -0700338 .base_params = &iwl6050_base_params, \
Johannes Berg26a7ca92012-05-21 11:55:54 +0200339 .eeprom_params = &iwl6000_eeprom_params, \
Wey-Yi Guy11441812011-05-30 09:32:52 -0700340 .led_mode = IWL_LED_BLINK, \
Emmanuel Grumbach540623c2015-02-23 02:40:07 +0200341 .internal_wimax_coex = true, \
342 .max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K
Wey-Yi Guy11441812011-05-30 09:32:52 -0700343
Johannes Berg706c4ff2012-03-05 11:24:33 -0800344const struct iwl_cfg iwl6150_bgn_cfg = {
Wey-Yi Guyf9dc6462010-11-17 12:13:52 -0800345 .name = "Intel(R) Centrino(R) Wireless-N + WiMAX 6150 BGN",
Wey-Yi Guy11441812011-05-30 09:32:52 -0700346 IWL_DEVICE_6150,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700347 .ht_params = &iwl6000_ht_params,
Wey-Yi Guy11441812011-05-30 09:32:52 -0700348};
349
Johannes Berg706c4ff2012-03-05 11:24:33 -0800350const struct iwl_cfg iwl6150_bg_cfg = {
Wey-Yi Guy11441812011-05-30 09:32:52 -0700351 .name = "Intel(R) Centrino(R) Wireless-N + WiMAX 6150 BG",
352 IWL_DEVICE_6150,
Shanyu Zhao03264332010-06-29 17:27:27 -0700353};
354
Johannes Berg706c4ff2012-03-05 11:24:33 -0800355const struct iwl_cfg iwl6000_3agn_cfg = {
Shanyu Zhaoc11362c2010-03-05 17:05:20 -0800356 .name = "Intel(R) Centrino(R) Ultimate-N 6300 AGN",
Jay Sternberge1228372009-01-19 15:30:34 -0800357 .fw_name_pre = IWL6000_FW_PRE,
358 .ucode_api_max = IWL6000_UCODE_API_MAX,
359 .ucode_api_min = IWL6000_UCODE_API_MIN,
Johannes Berg2d771cb2012-04-09 17:47:00 -0700360 .device_family = IWL_DEVICE_FAMILY_6000,
Emmanuel Grumbachdae66d02012-02-07 12:56:26 +0200361 .max_inst_size = IWL60_RTC_INST_SIZE,
362 .max_data_size = IWL60_RTC_DATA_SIZE,
Eytan Lifshitzb7998c82012-12-01 20:59:49 +0200363 .nvm_ver = EEPROM_6000_EEPROM_VERSION,
364 .nvm_calib_ver = EEPROM_6000_TX_POWER_VERSION,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700365 .base_params = &iwl6000_base_params,
Johannes Berg26a7ca92012-05-21 11:55:54 +0200366 .eeprom_params = &iwl6000_eeprom_params,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700367 .ht_params = &iwl6000_ht_params,
Wey-Yi Guy564b3442010-11-09 09:21:34 -0800368 .led_mode = IWL_LED_BLINK,
Jay Sternberge1228372009-01-19 15:30:34 -0800369};
370
Emmanuel Grumbach9d9b21d2016-03-24 08:44:57 +0200371MODULE_FIRMWARE(IWL6000_MODULE_FIRMWARE(IWL6000_UCODE_API_MAX));
372MODULE_FIRMWARE(IWL6050_MODULE_FIRMWARE(IWL6050_UCODE_API_MAX));
373MODULE_FIRMWARE(IWL6005_MODULE_FIRMWARE(IWL6000G2_UCODE_API_MAX));
Jürg Billeterd8320d72016-10-10 18:30:00 +0200374MODULE_FIRMWARE(IWL6030_MODULE_FIRMWARE(IWL6000G2_UCODE_API_MAX));