blob: 0b4ba781b6312f6dc017c938d61f1dffa40216a1 [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
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, \
Emmanuel Grumbach540623c2015-02-23 02:40:07 +0200148 .led_mode = IWL_LED_RF_STATE, \
149 .max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800150
Johannes Berg706c4ff2012-03-05 11:24:33 -0800151const struct iwl_cfg iwl6005_2agn_cfg = {
Wey-Yi Guy55017ab2010-11-17 12:13:53 -0800152 .name = "Intel(R) Centrino(R) Advanced-N 6205 AGN",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800153 IWL_DEVICE_6005,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700154 .ht_params = &iwl6000_ht_params,
Jay Sternberg0b5af202010-03-17 16:16:12 -0700155};
156
Johannes Berg706c4ff2012-03-05 11:24:33 -0800157const struct iwl_cfg iwl6005_2abg_cfg = {
Wey-Yi Guy55017ab2010-11-17 12:13:53 -0800158 .name = "Intel(R) Centrino(R) Advanced-N 6205 ABG",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800159 IWL_DEVICE_6005,
Shanyu Zhao18089722010-05-06 10:15:21 -0700160};
161
Johannes Berg706c4ff2012-03-05 11:24:33 -0800162const struct iwl_cfg iwl6005_2bg_cfg = {
Wey-Yi Guy55017ab2010-11-17 12:13:53 -0800163 .name = "Intel(R) Centrino(R) Advanced-N 6205 BG",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800164 IWL_DEVICE_6005,
Shanyu Zhao18089722010-05-06 10:15:21 -0700165};
166
Johannes Berg706c4ff2012-03-05 11:24:33 -0800167const struct iwl_cfg iwl6005_2agn_sff_cfg = {
Wey-Yi Guy6a9ae0d2011-08-25 23:10:56 -0700168 .name = "Intel(R) Centrino(R) Advanced-N 6205S AGN",
169 IWL_DEVICE_6005,
170 .ht_params = &iwl6000_ht_params,
171};
172
Johannes Berg706c4ff2012-03-05 11:24:33 -0800173const struct iwl_cfg iwl6005_2agn_d_cfg = {
Wey-Yi Guy5131a602011-10-10 07:27:00 -0700174 .name = "Intel(R) Centrino(R) Advanced-N 6205D AGN",
175 IWL_DEVICE_6005,
176 .ht_params = &iwl6000_ht_params,
177};
178
Johannes Berg706c4ff2012-03-05 11:24:33 -0800179const struct iwl_cfg iwl6005_2agn_mow1_cfg = {
Wey-Yi Guy37891122012-02-22 10:21:09 -0800180 .name = "Intel(R) Centrino(R) Advanced-N 6206 AGN",
181 IWL_DEVICE_6005,
182 .ht_params = &iwl6000_ht_params,
183};
Johannes Berg706c4ff2012-03-05 11:24:33 -0800184
185const struct iwl_cfg iwl6005_2agn_mow2_cfg = {
Wey-Yi Guy37891122012-02-22 10:21:09 -0800186 .name = "Intel(R) Centrino(R) Advanced-N 6207 AGN",
187 IWL_DEVICE_6005,
188 .ht_params = &iwl6000_ht_params,
189};
190
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800191#define IWL_DEVICE_6030 \
Johannes Bergca9a4602011-07-23 10:24:45 -0700192 .fw_name_pre = IWL6030_FW_PRE, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800193 .ucode_api_max = IWL6000G2_UCODE_API_MAX, \
Wey-Yi Guy1ed2ec32012-04-25 08:10:08 -0700194 .ucode_api_ok = IWL6000G2B_UCODE_API_OK, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800195 .ucode_api_min = IWL6000G2_UCODE_API_MIN, \
Johannes Berg2d771cb2012-04-09 17:47:00 -0700196 .device_family = IWL_DEVICE_FAMILY_6030, \
Emmanuel Grumbachdae66d02012-02-07 12:56:26 +0200197 .max_inst_size = IWL60_RTC_INST_SIZE, \
198 .max_data_size = IWL60_RTC_DATA_SIZE, \
Eytan Lifshitzb7998c82012-12-01 20:59:49 +0200199 .nvm_ver = EEPROM_6030_EEPROM_VERSION, \
200 .nvm_calib_ver = EEPROM_6030_TX_POWER_VERSION, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800201 .base_params = &iwl6000_g2_base_params, \
Johannes Berg26a7ca92012-05-21 11:55:54 +0200202 .eeprom_params = &iwl6000_eeprom_params, \
Emmanuel Grumbach540623c2015-02-23 02:40:07 +0200203 .led_mode = IWL_LED_RF_STATE, \
204 .max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800205
Johannes Berg706c4ff2012-03-05 11:24:33 -0800206const struct iwl_cfg iwl6030_2agn_cfg = {
Wey-Yi Guyd2eceef2010-11-17 12:13:54 -0800207 .name = "Intel(R) Centrino(R) Advanced-N 6230 AGN",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800208 IWL_DEVICE_6030,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700209 .ht_params = &iwl6000_ht_params,
Shanyu Zhao18089722010-05-06 10:15:21 -0700210};
211
Johannes Berg706c4ff2012-03-05 11:24:33 -0800212const struct iwl_cfg iwl6030_2abg_cfg = {
Wey-Yi Guyd2eceef2010-11-17 12:13:54 -0800213 .name = "Intel(R) Centrino(R) Advanced-N 6230 ABG",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800214 IWL_DEVICE_6030,
Shanyu Zhao18089722010-05-06 10:15:21 -0700215};
216
Johannes Berg706c4ff2012-03-05 11:24:33 -0800217const struct iwl_cfg iwl6030_2bgn_cfg = {
Wey-Yi Guyd2eceef2010-11-17 12:13:54 -0800218 .name = "Intel(R) Centrino(R) Advanced-N 6230 BGN",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800219 IWL_DEVICE_6030,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700220 .ht_params = &iwl6000_ht_params,
Shanyu Zhao9f6e1ba2010-05-11 15:21:54 -0700221};
222
Johannes Berg706c4ff2012-03-05 11:24:33 -0800223const struct iwl_cfg iwl6030_2bg_cfg = {
Wey-Yi Guyd2eceef2010-11-17 12:13:54 -0800224 .name = "Intel(R) Centrino(R) Advanced-N 6230 BG",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800225 IWL_DEVICE_6030,
Shanyu Zhao18089722010-05-06 10:15:21 -0700226};
227
Meenakshi Venkataramand2c8b152012-06-05 20:24:37 +0200228#define IWL_DEVICE_6035 \
229 .fw_name_pre = IWL6030_FW_PRE, \
230 .ucode_api_max = IWL6035_UCODE_API_MAX, \
231 .ucode_api_ok = IWL6035_UCODE_API_OK, \
232 .ucode_api_min = IWL6035_UCODE_API_MIN, \
233 .device_family = IWL_DEVICE_FAMILY_6030, \
234 .max_inst_size = IWL60_RTC_INST_SIZE, \
235 .max_data_size = IWL60_RTC_DATA_SIZE, \
Eytan Lifshitzb7998c82012-12-01 20:59:49 +0200236 .nvm_ver = EEPROM_6030_EEPROM_VERSION, \
237 .nvm_calib_ver = EEPROM_6030_TX_POWER_VERSION, \
Meenakshi Venkataramand2c8b152012-06-05 20:24:37 +0200238 .base_params = &iwl6000_g2_base_params, \
Johannes Berg3c70d082012-06-12 21:43:28 +0200239 .eeprom_params = &iwl6000_eeprom_params, \
Emmanuel Grumbach540623c2015-02-23 02:40:07 +0200240 .led_mode = IWL_LED_RF_STATE, \
241 .max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K
Meenakshi Venkataramand2c8b152012-06-05 20:24:37 +0200242
Johannes Berg706c4ff2012-03-05 11:24:33 -0800243const struct iwl_cfg iwl6035_2agn_cfg = {
Don Fry6195d132011-12-06 10:42:41 -0800244 .name = "Intel(R) Centrino(R) Advanced-N 6235 AGN",
Meenakshi Venkataramand2c8b152012-06-05 20:24:37 +0200245 IWL_DEVICE_6035,
Wey-Yi Guyd103e342011-03-10 03:17:16 -0800246 .ht_params = &iwl6000_ht_params,
247};
248
Emmanuel Grumbach08a5dd32013-09-24 19:34:26 +0300249const struct iwl_cfg iwl6035_2agn_sff_cfg = {
250 .name = "Intel(R) Centrino(R) Ultimate-N 6235 AGN",
251 IWL_DEVICE_6035,
252 .ht_params = &iwl6000_ht_params,
253};
254
Johannes Berg706c4ff2012-03-05 11:24:33 -0800255const struct iwl_cfg iwl1030_bgn_cfg = {
Wey-Yi Guyd2eceef2010-11-17 12:13:54 -0800256 .name = "Intel(R) Centrino(R) Wireless-N 1030 BGN",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800257 IWL_DEVICE_6030,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700258 .ht_params = &iwl6000_ht_params,
Shanyu Zhao18089722010-05-06 10:15:21 -0700259};
260
Johannes Berg706c4ff2012-03-05 11:24:33 -0800261const struct iwl_cfg iwl1030_bg_cfg = {
Wey-Yi Guyd2eceef2010-11-17 12:13:54 -0800262 .name = "Intel(R) Centrino(R) Wireless-N 1030 BG",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800263 IWL_DEVICE_6030,
264};
265
Johannes Berg706c4ff2012-03-05 11:24:33 -0800266const struct iwl_cfg iwl130_bgn_cfg = {
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800267 .name = "Intel(R) Centrino(R) Wireless-N 130 BGN",
268 IWL_DEVICE_6030,
269 .ht_params = &iwl6000_ht_params,
270 .rx_with_siso_diversity = true,
271};
272
Johannes Berg706c4ff2012-03-05 11:24:33 -0800273const struct iwl_cfg iwl130_bg_cfg = {
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800274 .name = "Intel(R) Centrino(R) Wireless-N 130 BG",
275 IWL_DEVICE_6030,
276 .rx_with_siso_diversity = true,
Shanyu Zhao18089722010-05-06 10:15:21 -0700277};
278
Shanyu Zhao95b13012010-04-21 11:46:33 -0700279/*
280 * "i": Internal configuration, use internal Power Amplifier
281 */
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800282#define IWL_DEVICE_6000i \
283 .fw_name_pre = IWL6000_FW_PRE, \
284 .ucode_api_max = IWL6000_UCODE_API_MAX, \
Johannes Bergb9148112011-11-04 07:22:37 -0700285 .ucode_api_ok = IWL6000_UCODE_API_OK, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800286 .ucode_api_min = IWL6000_UCODE_API_MIN, \
Johannes Berg2d771cb2012-04-09 17:47:00 -0700287 .device_family = IWL_DEVICE_FAMILY_6000i, \
Emmanuel Grumbachdae66d02012-02-07 12:56:26 +0200288 .max_inst_size = IWL60_RTC_INST_SIZE, \
289 .max_data_size = IWL60_RTC_DATA_SIZE, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800290 .valid_tx_ant = ANT_BC, /* .cfg overwrite */ \
291 .valid_rx_ant = ANT_BC, /* .cfg overwrite */ \
Eytan Lifshitzb7998c82012-12-01 20:59:49 +0200292 .nvm_ver = EEPROM_6000_EEPROM_VERSION, \
293 .nvm_calib_ver = EEPROM_6000_TX_POWER_VERSION, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800294 .base_params = &iwl6000_base_params, \
Johannes Berg26a7ca92012-05-21 11:55:54 +0200295 .eeprom_params = &iwl6000_eeprom_params, \
Emmanuel Grumbach540623c2015-02-23 02:40:07 +0200296 .led_mode = IWL_LED_BLINK, \
297 .max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800298
Johannes Berg706c4ff2012-03-05 11:24:33 -0800299const struct iwl_cfg iwl6000i_2agn_cfg = {
Shanyu Zhaoc11362c2010-03-05 17:05:20 -0800300 .name = "Intel(R) Centrino(R) Advanced-N 6200 AGN",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800301 IWL_DEVICE_6000i,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700302 .ht_params = &iwl6000_ht_params,
Jay Sternberge1228372009-01-19 15:30:34 -0800303};
304
Johannes Berg706c4ff2012-03-05 11:24:33 -0800305const struct iwl_cfg iwl6000i_2abg_cfg = {
Shanyu Zhaoc11362c2010-03-05 17:05:20 -0800306 .name = "Intel(R) Centrino(R) Advanced-N 6200 ABG",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800307 IWL_DEVICE_6000i,
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700308};
309
Johannes Berg706c4ff2012-03-05 11:24:33 -0800310const struct iwl_cfg iwl6000i_2bg_cfg = {
Shanyu Zhaoc11362c2010-03-05 17:05:20 -0800311 .name = "Intel(R) Centrino(R) Advanced-N 6200 BG",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800312 IWL_DEVICE_6000i,
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700313};
314
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800315#define IWL_DEVICE_6050 \
316 .fw_name_pre = IWL6050_FW_PRE, \
317 .ucode_api_max = IWL6050_UCODE_API_MAX, \
318 .ucode_api_min = IWL6050_UCODE_API_MIN, \
Johannes Berg2d771cb2012-04-09 17:47:00 -0700319 .device_family = IWL_DEVICE_FAMILY_6050, \
Emmanuel Grumbachdae66d02012-02-07 12:56:26 +0200320 .max_inst_size = IWL60_RTC_INST_SIZE, \
321 .max_data_size = IWL60_RTC_DATA_SIZE, \
Wey-Yi Guyff458ed2011-01-31 13:56:03 -0800322 .valid_tx_ant = ANT_AB, /* .cfg overwrite */ \
323 .valid_rx_ant = ANT_AB, /* .cfg overwrite */ \
Eytan Lifshitzb7998c82012-12-01 20:59:49 +0200324 .nvm_ver = EEPROM_6050_EEPROM_VERSION, \
325 .nvm_calib_ver = EEPROM_6050_TX_POWER_VERSION, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800326 .base_params = &iwl6050_base_params, \
Johannes Berg26a7ca92012-05-21 11:55:54 +0200327 .eeprom_params = &iwl6000_eeprom_params, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800328 .led_mode = IWL_LED_BLINK, \
Emmanuel Grumbach540623c2015-02-23 02:40:07 +0200329 .internal_wimax_coex = true, \
330 .max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800331
Johannes Berg706c4ff2012-03-05 11:24:33 -0800332const struct iwl_cfg iwl6050_2agn_cfg = {
Shanyu Zhaoc11362c2010-03-05 17:05:20 -0800333 .name = "Intel(R) Centrino(R) Advanced-N + WiMAX 6250 AGN",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800334 IWL_DEVICE_6050,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700335 .ht_params = &iwl6000_ht_params,
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800336};
337
Johannes Berg706c4ff2012-03-05 11:24:33 -0800338const struct iwl_cfg iwl6050_2abg_cfg = {
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800339 .name = "Intel(R) Centrino(R) Advanced-N + WiMAX 6250 ABG",
340 IWL_DEVICE_6050,
Jay Sternberge1228372009-01-19 15:30:34 -0800341};
342
Wey-Yi Guy11441812011-05-30 09:32:52 -0700343#define IWL_DEVICE_6150 \
344 .fw_name_pre = IWL6050_FW_PRE, \
345 .ucode_api_max = IWL6050_UCODE_API_MAX, \
346 .ucode_api_min = IWL6050_UCODE_API_MIN, \
Johannes Berg2d771cb2012-04-09 17:47:00 -0700347 .device_family = IWL_DEVICE_FAMILY_6150, \
Emmanuel Grumbachdae66d02012-02-07 12:56:26 +0200348 .max_inst_size = IWL60_RTC_INST_SIZE, \
349 .max_data_size = IWL60_RTC_DATA_SIZE, \
Eytan Lifshitzb7998c82012-12-01 20:59:49 +0200350 .nvm_ver = EEPROM_6150_EEPROM_VERSION, \
351 .nvm_calib_ver = EEPROM_6150_TX_POWER_VERSION, \
Wey-Yi Guy11441812011-05-30 09:32:52 -0700352 .base_params = &iwl6050_base_params, \
Johannes Berg26a7ca92012-05-21 11:55:54 +0200353 .eeprom_params = &iwl6000_eeprom_params, \
Wey-Yi Guy11441812011-05-30 09:32:52 -0700354 .led_mode = IWL_LED_BLINK, \
Emmanuel Grumbach540623c2015-02-23 02:40:07 +0200355 .internal_wimax_coex = true, \
356 .max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K
Wey-Yi Guy11441812011-05-30 09:32:52 -0700357
Johannes Berg706c4ff2012-03-05 11:24:33 -0800358const struct iwl_cfg iwl6150_bgn_cfg = {
Wey-Yi Guyf9dc6462010-11-17 12:13:52 -0800359 .name = "Intel(R) Centrino(R) Wireless-N + WiMAX 6150 BGN",
Wey-Yi Guy11441812011-05-30 09:32:52 -0700360 IWL_DEVICE_6150,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700361 .ht_params = &iwl6000_ht_params,
Wey-Yi Guy11441812011-05-30 09:32:52 -0700362};
363
Johannes Berg706c4ff2012-03-05 11:24:33 -0800364const struct iwl_cfg iwl6150_bg_cfg = {
Wey-Yi Guy11441812011-05-30 09:32:52 -0700365 .name = "Intel(R) Centrino(R) Wireless-N + WiMAX 6150 BG",
366 IWL_DEVICE_6150,
Shanyu Zhao03264332010-06-29 17:27:27 -0700367};
368
Johannes Berg706c4ff2012-03-05 11:24:33 -0800369const struct iwl_cfg iwl6000_3agn_cfg = {
Shanyu Zhaoc11362c2010-03-05 17:05:20 -0800370 .name = "Intel(R) Centrino(R) Ultimate-N 6300 AGN",
Jay Sternberge1228372009-01-19 15:30:34 -0800371 .fw_name_pre = IWL6000_FW_PRE,
372 .ucode_api_max = IWL6000_UCODE_API_MAX,
Johannes Bergb9148112011-11-04 07:22:37 -0700373 .ucode_api_ok = IWL6000_UCODE_API_OK,
Jay Sternberge1228372009-01-19 15:30:34 -0800374 .ucode_api_min = IWL6000_UCODE_API_MIN,
Johannes Berg2d771cb2012-04-09 17:47:00 -0700375 .device_family = IWL_DEVICE_FAMILY_6000,
Emmanuel Grumbachdae66d02012-02-07 12:56:26 +0200376 .max_inst_size = IWL60_RTC_INST_SIZE,
377 .max_data_size = IWL60_RTC_DATA_SIZE,
Eytan Lifshitzb7998c82012-12-01 20:59:49 +0200378 .nvm_ver = EEPROM_6000_EEPROM_VERSION,
379 .nvm_calib_ver = EEPROM_6000_TX_POWER_VERSION,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700380 .base_params = &iwl6000_base_params,
Johannes Berg26a7ca92012-05-21 11:55:54 +0200381 .eeprom_params = &iwl6000_eeprom_params,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700382 .ht_params = &iwl6000_ht_params,
Wey-Yi Guy564b3442010-11-09 09:21:34 -0800383 .led_mode = IWL_LED_BLINK,
Jay Sternberge1228372009-01-19 15:30:34 -0800384};
385
Johannes Bergb9148112011-11-04 07:22:37 -0700386MODULE_FIRMWARE(IWL6000_MODULE_FIRMWARE(IWL6000_UCODE_API_OK));
Meenakshi Venkataraman78cbcf22012-04-22 07:55:27 -0700387MODULE_FIRMWARE(IWL6050_MODULE_FIRMWARE(IWL6050_UCODE_API_OK));
388MODULE_FIRMWARE(IWL6005_MODULE_FIRMWARE(IWL6000G2_UCODE_API_OK));
389MODULE_FIRMWARE(IWL6030_MODULE_FIRMWARE(IWL6000G2B_UCODE_API_OK));