blob: 9938f5340ac03a23132ff898756a5ad938eaff8a [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 .pll_cfg_val = 0,
Jay Sternberg0b5af202010-03-17 16:16:12 -070075 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
76 .shadow_ram_support = true,
Jay Sternberg0b5af202010-03-17 16:16:12 -070077 .led_compensation = 51,
Stanislaw Gruszka22de94d2010-12-03 15:41:48 +010078 .wd_timeout = IWL_DEF_WD_TIMEOUT,
Shanyu Zhao95b13012010-04-21 11:46:33 -070079 .max_event_log_size = 512,
Meenakshi Venkataraman66a77072012-05-16 22:35:59 +020080 .shadow_reg_enable = false, /* TODO: fix bugs using this feature */
Emmanuel Grumbache03bbb62014-04-13 10:49:16 +030081 .scd_chain_ext_wa = true,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -070082};
83
Johannes Berg6794f3e2012-03-06 13:30:56 -080084static const struct iwl_base_params iwl6050_base_params = {
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -070085 .eeprom_size = OTP_LOW_IMAGE_SIZE,
86 .num_of_queues = IWLAGN_NUM_QUEUES,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -070087 .pll_cfg_val = 0,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -070088 .max_ll_items = OTP_MAX_LL_ITEMS_6x50,
89 .shadow_ram_support = true,
90 .led_compensation = 51,
Stanislaw Gruszka22de94d2010-12-03 15:41:48 +010091 .wd_timeout = IWL_DEF_WD_TIMEOUT,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -070092 .max_event_log_size = 1024,
Meenakshi Venkataraman66a77072012-05-16 22:35:59 +020093 .shadow_reg_enable = false, /* TODO: fix bugs using this feature */
Emmanuel Grumbache03bbb62014-04-13 10:49:16 +030094 .scd_chain_ext_wa = true,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -070095};
Johannes Berg6794f3e2012-03-06 13:30:56 -080096
97static const struct iwl_base_params iwl6000_g2_base_params = {
Wey-Yi Guyde05ead2010-09-23 15:24:22 -070098 .eeprom_size = OTP_LOW_IMAGE_SIZE,
99 .num_of_queues = IWLAGN_NUM_QUEUES,
Wey-Yi Guyde05ead2010-09-23 15:24:22 -0700100 .pll_cfg_val = 0,
Wey-Yi Guyde05ead2010-09-23 15:24:22 -0700101 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
102 .shadow_ram_support = true,
Wey-Yi Guy4fb33242010-11-29 10:45:16 -0800103 .led_compensation = 57,
Stanislaw Gruszka22de94d2010-12-03 15:41:48 +0100104 .wd_timeout = IWL_LONG_WD_TIMEOUT,
Wey-Yi Guyde05ead2010-09-23 15:24:22 -0700105 .max_event_log_size = 512,
Meenakshi Venkataraman66a77072012-05-16 22:35:59 +0200106 .shadow_reg_enable = false, /* TODO: fix bugs using this feature */
Emmanuel Grumbache03bbb62014-04-13 10:49:16 +0300107 .scd_chain_ext_wa = true,
Wey-Yi Guyde05ead2010-09-23 15:24:22 -0700108};
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700109
Johannes Berg6794f3e2012-03-06 13:30:56 -0800110static const struct iwl_ht_params iwl6000_ht_params = {
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700111 .ht_greenfield_support = true,
112 .use_rts_for_aggregation = true, /* use rts/cts protection */
Johannes Bergd3704932012-05-21 20:03:01 +0200113 .ht40_bands = BIT(IEEE80211_BAND_2GHZ) | BIT(IEEE80211_BAND_5GHZ),
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700114};
115
Johannes Berg26a7ca92012-05-21 11:55:54 +0200116static const struct iwl_eeprom_params iwl6000_eeprom_params = {
117 .regulatory_bands = {
118 EEPROM_REG_BAND_1_CHANNELS,
119 EEPROM_REG_BAND_2_CHANNELS,
120 EEPROM_REG_BAND_3_CHANNELS,
121 EEPROM_REG_BAND_4_CHANNELS,
122 EEPROM_REG_BAND_5_CHANNELS,
123 EEPROM_6000_REG_BAND_24_HT40_CHANNELS,
124 EEPROM_REG_BAND_52_HT40_CHANNELS
125 },
126 .enhanced_txpower = true,
127};
128
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800129#define IWL_DEVICE_6005 \
Johannes Bergca9a4602011-07-23 10:24:45 -0700130 .fw_name_pre = IWL6005_FW_PRE, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800131 .ucode_api_max = IWL6000G2_UCODE_API_MAX, \
132 .ucode_api_min = IWL6000G2_UCODE_API_MIN, \
Johannes Berg2d771cb2012-04-09 17:47:00 -0700133 .device_family = IWL_DEVICE_FAMILY_6005, \
Emmanuel Grumbachdae66d02012-02-07 12:56:26 +0200134 .max_inst_size = IWL60_RTC_INST_SIZE, \
135 .max_data_size = IWL60_RTC_DATA_SIZE, \
Eytan Lifshitzb7998c82012-12-01 20:59:49 +0200136 .nvm_ver = EEPROM_6005_EEPROM_VERSION, \
137 .nvm_calib_ver = EEPROM_6005_TX_POWER_VERSION, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800138 .base_params = &iwl6000_g2_base_params, \
Johannes Berg26a7ca92012-05-21 11:55:54 +0200139 .eeprom_params = &iwl6000_eeprom_params, \
Emmanuel Grumbach540623c2015-02-23 02:40:07 +0200140 .led_mode = IWL_LED_RF_STATE, \
141 .max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800142
Johannes Berg706c4ff2012-03-05 11:24:33 -0800143const struct iwl_cfg iwl6005_2agn_cfg = {
Wey-Yi Guy55017ab2010-11-17 12:13:53 -0800144 .name = "Intel(R) Centrino(R) Advanced-N 6205 AGN",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800145 IWL_DEVICE_6005,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700146 .ht_params = &iwl6000_ht_params,
Jay Sternberg0b5af202010-03-17 16:16:12 -0700147};
148
Johannes Berg706c4ff2012-03-05 11:24:33 -0800149const struct iwl_cfg iwl6005_2abg_cfg = {
Wey-Yi Guy55017ab2010-11-17 12:13:53 -0800150 .name = "Intel(R) Centrino(R) Advanced-N 6205 ABG",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800151 IWL_DEVICE_6005,
Shanyu Zhao18089722010-05-06 10:15:21 -0700152};
153
Johannes Berg706c4ff2012-03-05 11:24:33 -0800154const struct iwl_cfg iwl6005_2bg_cfg = {
Wey-Yi Guy55017ab2010-11-17 12:13:53 -0800155 .name = "Intel(R) Centrino(R) Advanced-N 6205 BG",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800156 IWL_DEVICE_6005,
Shanyu Zhao18089722010-05-06 10:15:21 -0700157};
158
Johannes Berg706c4ff2012-03-05 11:24:33 -0800159const struct iwl_cfg iwl6005_2agn_sff_cfg = {
Wey-Yi Guy6a9ae0d2011-08-25 23:10:56 -0700160 .name = "Intel(R) Centrino(R) Advanced-N 6205S AGN",
161 IWL_DEVICE_6005,
162 .ht_params = &iwl6000_ht_params,
163};
164
Johannes Berg706c4ff2012-03-05 11:24:33 -0800165const struct iwl_cfg iwl6005_2agn_d_cfg = {
Wey-Yi Guy5131a602011-10-10 07:27:00 -0700166 .name = "Intel(R) Centrino(R) Advanced-N 6205D AGN",
167 IWL_DEVICE_6005,
168 .ht_params = &iwl6000_ht_params,
169};
170
Johannes Berg706c4ff2012-03-05 11:24:33 -0800171const struct iwl_cfg iwl6005_2agn_mow1_cfg = {
Wey-Yi Guy37891122012-02-22 10:21:09 -0800172 .name = "Intel(R) Centrino(R) Advanced-N 6206 AGN",
173 IWL_DEVICE_6005,
174 .ht_params = &iwl6000_ht_params,
175};
Johannes Berg706c4ff2012-03-05 11:24:33 -0800176
177const struct iwl_cfg iwl6005_2agn_mow2_cfg = {
Wey-Yi Guy37891122012-02-22 10:21:09 -0800178 .name = "Intel(R) Centrino(R) Advanced-N 6207 AGN",
179 IWL_DEVICE_6005,
180 .ht_params = &iwl6000_ht_params,
181};
182
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800183#define IWL_DEVICE_6030 \
Johannes Bergca9a4602011-07-23 10:24:45 -0700184 .fw_name_pre = IWL6030_FW_PRE, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800185 .ucode_api_max = IWL6000G2_UCODE_API_MAX, \
186 .ucode_api_min = IWL6000G2_UCODE_API_MIN, \
Johannes Berg2d771cb2012-04-09 17:47:00 -0700187 .device_family = IWL_DEVICE_FAMILY_6030, \
Emmanuel Grumbachdae66d02012-02-07 12:56:26 +0200188 .max_inst_size = IWL60_RTC_INST_SIZE, \
189 .max_data_size = IWL60_RTC_DATA_SIZE, \
Eytan Lifshitzb7998c82012-12-01 20:59:49 +0200190 .nvm_ver = EEPROM_6030_EEPROM_VERSION, \
191 .nvm_calib_ver = EEPROM_6030_TX_POWER_VERSION, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800192 .base_params = &iwl6000_g2_base_params, \
Johannes Berg26a7ca92012-05-21 11:55:54 +0200193 .eeprom_params = &iwl6000_eeprom_params, \
Emmanuel Grumbach540623c2015-02-23 02:40:07 +0200194 .led_mode = IWL_LED_RF_STATE, \
195 .max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800196
Johannes Berg706c4ff2012-03-05 11:24:33 -0800197const struct iwl_cfg iwl6030_2agn_cfg = {
Wey-Yi Guyd2eceef2010-11-17 12:13:54 -0800198 .name = "Intel(R) Centrino(R) Advanced-N 6230 AGN",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800199 IWL_DEVICE_6030,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700200 .ht_params = &iwl6000_ht_params,
Shanyu Zhao18089722010-05-06 10:15:21 -0700201};
202
Johannes Berg706c4ff2012-03-05 11:24:33 -0800203const struct iwl_cfg iwl6030_2abg_cfg = {
Wey-Yi Guyd2eceef2010-11-17 12:13:54 -0800204 .name = "Intel(R) Centrino(R) Advanced-N 6230 ABG",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800205 IWL_DEVICE_6030,
Shanyu Zhao18089722010-05-06 10:15:21 -0700206};
207
Johannes Berg706c4ff2012-03-05 11:24:33 -0800208const struct iwl_cfg iwl6030_2bgn_cfg = {
Wey-Yi Guyd2eceef2010-11-17 12:13:54 -0800209 .name = "Intel(R) Centrino(R) Advanced-N 6230 BGN",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800210 IWL_DEVICE_6030,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700211 .ht_params = &iwl6000_ht_params,
Shanyu Zhao9f6e1ba2010-05-11 15:21:54 -0700212};
213
Johannes Berg706c4ff2012-03-05 11:24:33 -0800214const struct iwl_cfg iwl6030_2bg_cfg = {
Wey-Yi Guyd2eceef2010-11-17 12:13:54 -0800215 .name = "Intel(R) Centrino(R) Advanced-N 6230 BG",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800216 IWL_DEVICE_6030,
Shanyu Zhao18089722010-05-06 10:15:21 -0700217};
218
Meenakshi Venkataramand2c8b152012-06-05 20:24:37 +0200219#define IWL_DEVICE_6035 \
220 .fw_name_pre = IWL6030_FW_PRE, \
221 .ucode_api_max = IWL6035_UCODE_API_MAX, \
Meenakshi Venkataramand2c8b152012-06-05 20:24:37 +0200222 .ucode_api_min = IWL6035_UCODE_API_MIN, \
223 .device_family = IWL_DEVICE_FAMILY_6030, \
224 .max_inst_size = IWL60_RTC_INST_SIZE, \
225 .max_data_size = IWL60_RTC_DATA_SIZE, \
Eytan Lifshitzb7998c82012-12-01 20:59:49 +0200226 .nvm_ver = EEPROM_6030_EEPROM_VERSION, \
227 .nvm_calib_ver = EEPROM_6030_TX_POWER_VERSION, \
Meenakshi Venkataramand2c8b152012-06-05 20:24:37 +0200228 .base_params = &iwl6000_g2_base_params, \
Johannes Berg3c70d082012-06-12 21:43:28 +0200229 .eeprom_params = &iwl6000_eeprom_params, \
Emmanuel Grumbach540623c2015-02-23 02:40:07 +0200230 .led_mode = IWL_LED_RF_STATE, \
231 .max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K
Meenakshi Venkataramand2c8b152012-06-05 20:24:37 +0200232
Johannes Berg706c4ff2012-03-05 11:24:33 -0800233const struct iwl_cfg iwl6035_2agn_cfg = {
Don Fry6195d132011-12-06 10:42:41 -0800234 .name = "Intel(R) Centrino(R) Advanced-N 6235 AGN",
Meenakshi Venkataramand2c8b152012-06-05 20:24:37 +0200235 IWL_DEVICE_6035,
Wey-Yi Guyd103e342011-03-10 03:17:16 -0800236 .ht_params = &iwl6000_ht_params,
237};
238
Emmanuel Grumbach08a5dd32013-09-24 19:34:26 +0300239const struct iwl_cfg iwl6035_2agn_sff_cfg = {
240 .name = "Intel(R) Centrino(R) Ultimate-N 6235 AGN",
241 IWL_DEVICE_6035,
242 .ht_params = &iwl6000_ht_params,
243};
244
Johannes Berg706c4ff2012-03-05 11:24:33 -0800245const struct iwl_cfg iwl1030_bgn_cfg = {
Wey-Yi Guyd2eceef2010-11-17 12:13:54 -0800246 .name = "Intel(R) Centrino(R) Wireless-N 1030 BGN",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800247 IWL_DEVICE_6030,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700248 .ht_params = &iwl6000_ht_params,
Shanyu Zhao18089722010-05-06 10:15:21 -0700249};
250
Johannes Berg706c4ff2012-03-05 11:24:33 -0800251const struct iwl_cfg iwl1030_bg_cfg = {
Wey-Yi Guyd2eceef2010-11-17 12:13:54 -0800252 .name = "Intel(R) Centrino(R) Wireless-N 1030 BG",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800253 IWL_DEVICE_6030,
254};
255
Johannes Berg706c4ff2012-03-05 11:24:33 -0800256const struct iwl_cfg iwl130_bgn_cfg = {
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800257 .name = "Intel(R) Centrino(R) Wireless-N 130 BGN",
258 IWL_DEVICE_6030,
259 .ht_params = &iwl6000_ht_params,
260 .rx_with_siso_diversity = true,
261};
262
Johannes Berg706c4ff2012-03-05 11:24:33 -0800263const struct iwl_cfg iwl130_bg_cfg = {
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800264 .name = "Intel(R) Centrino(R) Wireless-N 130 BG",
265 IWL_DEVICE_6030,
266 .rx_with_siso_diversity = true,
Shanyu Zhao18089722010-05-06 10:15:21 -0700267};
268
Shanyu Zhao95b13012010-04-21 11:46:33 -0700269/*
270 * "i": Internal configuration, use internal Power Amplifier
271 */
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800272#define IWL_DEVICE_6000i \
273 .fw_name_pre = IWL6000_FW_PRE, \
274 .ucode_api_max = IWL6000_UCODE_API_MAX, \
275 .ucode_api_min = IWL6000_UCODE_API_MIN, \
Johannes Berg2d771cb2012-04-09 17:47:00 -0700276 .device_family = IWL_DEVICE_FAMILY_6000i, \
Emmanuel Grumbachdae66d02012-02-07 12:56:26 +0200277 .max_inst_size = IWL60_RTC_INST_SIZE, \
278 .max_data_size = IWL60_RTC_DATA_SIZE, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800279 .valid_tx_ant = ANT_BC, /* .cfg overwrite */ \
280 .valid_rx_ant = ANT_BC, /* .cfg overwrite */ \
Eytan Lifshitzb7998c82012-12-01 20:59:49 +0200281 .nvm_ver = EEPROM_6000_EEPROM_VERSION, \
282 .nvm_calib_ver = EEPROM_6000_TX_POWER_VERSION, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800283 .base_params = &iwl6000_base_params, \
Johannes Berg26a7ca92012-05-21 11:55:54 +0200284 .eeprom_params = &iwl6000_eeprom_params, \
Emmanuel Grumbach540623c2015-02-23 02:40:07 +0200285 .led_mode = IWL_LED_BLINK, \
286 .max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800287
Johannes Berg706c4ff2012-03-05 11:24:33 -0800288const struct iwl_cfg iwl6000i_2agn_cfg = {
Shanyu Zhaoc11362c2010-03-05 17:05:20 -0800289 .name = "Intel(R) Centrino(R) Advanced-N 6200 AGN",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800290 IWL_DEVICE_6000i,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700291 .ht_params = &iwl6000_ht_params,
Jay Sternberge1228372009-01-19 15:30:34 -0800292};
293
Johannes Berg706c4ff2012-03-05 11:24:33 -0800294const struct iwl_cfg iwl6000i_2abg_cfg = {
Shanyu Zhaoc11362c2010-03-05 17:05:20 -0800295 .name = "Intel(R) Centrino(R) Advanced-N 6200 ABG",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800296 IWL_DEVICE_6000i,
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700297};
298
Johannes Berg706c4ff2012-03-05 11:24:33 -0800299const struct iwl_cfg iwl6000i_2bg_cfg = {
Shanyu Zhaoc11362c2010-03-05 17:05:20 -0800300 .name = "Intel(R) Centrino(R) Advanced-N 6200 BG",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800301 IWL_DEVICE_6000i,
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700302};
303
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800304#define IWL_DEVICE_6050 \
305 .fw_name_pre = IWL6050_FW_PRE, \
306 .ucode_api_max = IWL6050_UCODE_API_MAX, \
307 .ucode_api_min = IWL6050_UCODE_API_MIN, \
Johannes Berg2d771cb2012-04-09 17:47:00 -0700308 .device_family = IWL_DEVICE_FAMILY_6050, \
Emmanuel Grumbachdae66d02012-02-07 12:56:26 +0200309 .max_inst_size = IWL60_RTC_INST_SIZE, \
310 .max_data_size = IWL60_RTC_DATA_SIZE, \
Wey-Yi Guyff458ed2011-01-31 13:56:03 -0800311 .valid_tx_ant = ANT_AB, /* .cfg overwrite */ \
312 .valid_rx_ant = ANT_AB, /* .cfg overwrite */ \
Eytan Lifshitzb7998c82012-12-01 20:59:49 +0200313 .nvm_ver = EEPROM_6050_EEPROM_VERSION, \
314 .nvm_calib_ver = EEPROM_6050_TX_POWER_VERSION, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800315 .base_params = &iwl6050_base_params, \
Johannes Berg26a7ca92012-05-21 11:55:54 +0200316 .eeprom_params = &iwl6000_eeprom_params, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800317 .led_mode = IWL_LED_BLINK, \
Emmanuel Grumbach540623c2015-02-23 02:40:07 +0200318 .internal_wimax_coex = true, \
319 .max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800320
Johannes Berg706c4ff2012-03-05 11:24:33 -0800321const struct iwl_cfg iwl6050_2agn_cfg = {
Shanyu Zhaoc11362c2010-03-05 17:05:20 -0800322 .name = "Intel(R) Centrino(R) Advanced-N + WiMAX 6250 AGN",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800323 IWL_DEVICE_6050,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700324 .ht_params = &iwl6000_ht_params,
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800325};
326
Johannes Berg706c4ff2012-03-05 11:24:33 -0800327const struct iwl_cfg iwl6050_2abg_cfg = {
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800328 .name = "Intel(R) Centrino(R) Advanced-N + WiMAX 6250 ABG",
329 IWL_DEVICE_6050,
Jay Sternberge1228372009-01-19 15:30:34 -0800330};
331
Wey-Yi Guy11441812011-05-30 09:32:52 -0700332#define IWL_DEVICE_6150 \
333 .fw_name_pre = IWL6050_FW_PRE, \
334 .ucode_api_max = IWL6050_UCODE_API_MAX, \
335 .ucode_api_min = IWL6050_UCODE_API_MIN, \
Johannes Berg2d771cb2012-04-09 17:47:00 -0700336 .device_family = IWL_DEVICE_FAMILY_6150, \
Emmanuel Grumbachdae66d02012-02-07 12:56:26 +0200337 .max_inst_size = IWL60_RTC_INST_SIZE, \
338 .max_data_size = IWL60_RTC_DATA_SIZE, \
Eytan Lifshitzb7998c82012-12-01 20:59:49 +0200339 .nvm_ver = EEPROM_6150_EEPROM_VERSION, \
340 .nvm_calib_ver = EEPROM_6150_TX_POWER_VERSION, \
Wey-Yi Guy11441812011-05-30 09:32:52 -0700341 .base_params = &iwl6050_base_params, \
Johannes Berg26a7ca92012-05-21 11:55:54 +0200342 .eeprom_params = &iwl6000_eeprom_params, \
Wey-Yi Guy11441812011-05-30 09:32:52 -0700343 .led_mode = IWL_LED_BLINK, \
Emmanuel Grumbach540623c2015-02-23 02:40:07 +0200344 .internal_wimax_coex = true, \
345 .max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K
Wey-Yi Guy11441812011-05-30 09:32:52 -0700346
Johannes Berg706c4ff2012-03-05 11:24:33 -0800347const struct iwl_cfg iwl6150_bgn_cfg = {
Wey-Yi Guyf9dc6462010-11-17 12:13:52 -0800348 .name = "Intel(R) Centrino(R) Wireless-N + WiMAX 6150 BGN",
Wey-Yi Guy11441812011-05-30 09:32:52 -0700349 IWL_DEVICE_6150,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700350 .ht_params = &iwl6000_ht_params,
Wey-Yi Guy11441812011-05-30 09:32:52 -0700351};
352
Johannes Berg706c4ff2012-03-05 11:24:33 -0800353const struct iwl_cfg iwl6150_bg_cfg = {
Wey-Yi Guy11441812011-05-30 09:32:52 -0700354 .name = "Intel(R) Centrino(R) Wireless-N + WiMAX 6150 BG",
355 IWL_DEVICE_6150,
Shanyu Zhao03264332010-06-29 17:27:27 -0700356};
357
Johannes Berg706c4ff2012-03-05 11:24:33 -0800358const struct iwl_cfg iwl6000_3agn_cfg = {
Shanyu Zhaoc11362c2010-03-05 17:05:20 -0800359 .name = "Intel(R) Centrino(R) Ultimate-N 6300 AGN",
Jay Sternberge1228372009-01-19 15:30:34 -0800360 .fw_name_pre = IWL6000_FW_PRE,
361 .ucode_api_max = IWL6000_UCODE_API_MAX,
362 .ucode_api_min = IWL6000_UCODE_API_MIN,
Johannes Berg2d771cb2012-04-09 17:47:00 -0700363 .device_family = IWL_DEVICE_FAMILY_6000,
Emmanuel Grumbachdae66d02012-02-07 12:56:26 +0200364 .max_inst_size = IWL60_RTC_INST_SIZE,
365 .max_data_size = IWL60_RTC_DATA_SIZE,
Eytan Lifshitzb7998c82012-12-01 20:59:49 +0200366 .nvm_ver = EEPROM_6000_EEPROM_VERSION,
367 .nvm_calib_ver = EEPROM_6000_TX_POWER_VERSION,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700368 .base_params = &iwl6000_base_params,
Johannes Berg26a7ca92012-05-21 11:55:54 +0200369 .eeprom_params = &iwl6000_eeprom_params,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700370 .ht_params = &iwl6000_ht_params,
Wey-Yi Guy564b3442010-11-09 09:21:34 -0800371 .led_mode = IWL_LED_BLINK,
Jay Sternberge1228372009-01-19 15:30:34 -0800372};
373
Emmanuel Grumbach9d9b21d2016-03-24 08:44:57 +0200374MODULE_FIRMWARE(IWL6000_MODULE_FIRMWARE(IWL6000_UCODE_API_MAX));
375MODULE_FIRMWARE(IWL6050_MODULE_FIRMWARE(IWL6050_UCODE_API_MAX));
376MODULE_FIRMWARE(IWL6005_MODULE_FIRMWARE(IWL6000G2_UCODE_API_MAX));
377MODULE_FIRMWARE(IWL6030_MODULE_FIRMWARE(IWL6000G2B_UCODE_API_MAX));