blob: 801ff49796dd03bd0e38037641a64d607b10927c [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 Berg6468a012012-05-16 19:13:54 +020031#include "cfg.h"
Johannes Berg1023fdc2012-05-15 12:16:34 +020032#include "dvm/commands.h" /* needed for BT for now */
Jay Sternberge1228372009-01-19 15:30:34 -080033
34/* Highest firmware API version supported */
Johannes Bergb9148112011-11-04 07:22:37 -070035#define IWL6000_UCODE_API_MAX 6
Wey-Yi Guy62cb3c62010-09-28 17:43:10 -070036#define IWL6050_UCODE_API_MAX 5
Johannes Bergca9a4602011-07-23 10:24:45 -070037#define IWL6000G2_UCODE_API_MAX 6
Meenakshi Venkataramand2c8b152012-06-05 20:24:37 +020038#define IWL6035_UCODE_API_MAX 6
Johannes Bergca9a4602011-07-23 10:24:45 -070039
40/* Oldest version we won't warn about */
Johannes Bergb9148112011-11-04 07:22:37 -070041#define IWL6000_UCODE_API_OK 4
Johannes Bergca9a4602011-07-23 10:24:45 -070042#define IWL6000G2_UCODE_API_OK 5
Meenakshi Venkataraman78cbcf22012-04-22 07:55:27 -070043#define IWL6050_UCODE_API_OK 5
44#define IWL6000G2B_UCODE_API_OK 6
Meenakshi Venkataramand2c8b152012-06-05 20:24:37 +020045#define IWL6035_UCODE_API_OK 6
Jay Sternberge1228372009-01-19 15:30:34 -080046
47/* Lowest firmware API version supported */
Wey-Yi Guy44246422009-10-23 13:42:34 -070048#define IWL6000_UCODE_API_MIN 4
49#define IWL6050_UCODE_API_MIN 4
Meenakshi Venkataramand2c8b152012-06-05 20:24:37 +020050#define IWL6000G2_UCODE_API_MIN 5
51#define IWL6035_UCODE_API_MIN 6
Jay Sternberge1228372009-01-19 15:30:34 -080052
Johannes Berg586aed92012-04-03 20:41:07 +020053/* EEPROM versions */
54#define EEPROM_6000_TX_POWER_VERSION (4)
55#define EEPROM_6000_EEPROM_VERSION (0x423)
56#define EEPROM_6050_TX_POWER_VERSION (4)
57#define EEPROM_6050_EEPROM_VERSION (0x532)
58#define EEPROM_6150_TX_POWER_VERSION (6)
59#define EEPROM_6150_EEPROM_VERSION (0x553)
60#define EEPROM_6005_TX_POWER_VERSION (6)
61#define EEPROM_6005_EEPROM_VERSION (0x709)
62#define EEPROM_6030_TX_POWER_VERSION (6)
63#define EEPROM_6030_EEPROM_VERSION (0x709)
64#define EEPROM_6035_TX_POWER_VERSION (6)
65#define EEPROM_6035_EEPROM_VERSION (0x753)
66
Jay Sternberge1228372009-01-19 15:30:34 -080067#define IWL6000_FW_PRE "iwlwifi-6000-"
Evgeni Golov8fcbd4dc2011-06-12 05:34:31 -070068#define IWL6000_MODULE_FIRMWARE(api) IWL6000_FW_PRE __stringify(api) ".ucode"
Jay Sternberge1228372009-01-19 15:30:34 -080069
70#define IWL6050_FW_PRE "iwlwifi-6050-"
Evgeni Golov8fcbd4dc2011-06-12 05:34:31 -070071#define IWL6050_MODULE_FIRMWARE(api) IWL6050_FW_PRE __stringify(api) ".ucode"
Jay Sternberge1228372009-01-19 15:30:34 -080072
Wey-Yi Guy1956e1a2011-01-08 10:25:14 -080073#define IWL6005_FW_PRE "iwlwifi-6000g2a-"
Evgeni Golov8fcbd4dc2011-06-12 05:34:31 -070074#define IWL6005_MODULE_FIRMWARE(api) IWL6005_FW_PRE __stringify(api) ".ucode"
Shanyu Zhao95b13012010-04-21 11:46:33 -070075
Wey-Yi Guy1956e1a2011-01-08 10:25:14 -080076#define IWL6030_FW_PRE "iwlwifi-6000g2b-"
Evgeni Golov8fcbd4dc2011-06-12 05:34:31 -070077#define IWL6030_MODULE_FIRMWARE(api) IWL6030_FW_PRE __stringify(api) ".ucode"
Shanyu Zhao18089722010-05-06 10:15:21 -070078
Johannes Berg6794f3e2012-03-06 13:30:56 -080079static const struct iwl_base_params iwl6000_base_params = {
Jay Sternberg0b5af202010-03-17 16:16:12 -070080 .eeprom_size = OTP_LOW_IMAGE_SIZE,
Jay Sternberg0b5af202010-03-17 16:16:12 -070081 .num_of_queues = IWLAGN_NUM_QUEUES,
Jay Sternberg0b5af202010-03-17 16:16:12 -070082 .pll_cfg_val = 0,
Jay Sternberg0b5af202010-03-17 16:16:12 -070083 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
84 .shadow_ram_support = true,
Jay Sternberg0b5af202010-03-17 16:16:12 -070085 .led_compensation = 51,
Jay Sternberg0b5af202010-03-17 16:16:12 -070086 .adv_thermal_throttle = true,
87 .support_ct_kill_exit = true,
88 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
89 .chain_noise_scale = 1000,
Stanislaw Gruszka22de94d2010-12-03 15:41:48 +010090 .wd_timeout = IWL_DEF_WD_TIMEOUT,
Shanyu Zhao95b13012010-04-21 11:46:33 -070091 .max_event_log_size = 512,
Meenakshi Venkataraman66a77072012-05-16 22:35:59 +020092 .shadow_reg_enable = false, /* TODO: fix bugs using this feature */
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -070093};
94
Johannes Berg6794f3e2012-03-06 13:30:56 -080095static const struct iwl_base_params iwl6050_base_params = {
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -070096 .eeprom_size = OTP_LOW_IMAGE_SIZE,
97 .num_of_queues = IWLAGN_NUM_QUEUES,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -070098 .pll_cfg_val = 0,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -070099 .max_ll_items = OTP_MAX_LL_ITEMS_6x50,
100 .shadow_ram_support = true,
101 .led_compensation = 51,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700102 .adv_thermal_throttle = true,
103 .support_ct_kill_exit = true,
104 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
105 .chain_noise_scale = 1500,
Stanislaw Gruszka22de94d2010-12-03 15:41:48 +0100106 .wd_timeout = IWL_DEF_WD_TIMEOUT,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700107 .max_event_log_size = 1024,
Meenakshi Venkataraman66a77072012-05-16 22:35:59 +0200108 .shadow_reg_enable = false, /* TODO: fix bugs using this feature */
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700109};
Johannes Berg6794f3e2012-03-06 13:30:56 -0800110
111static const struct iwl_base_params iwl6000_g2_base_params = {
Wey-Yi Guyde05ead2010-09-23 15:24:22 -0700112 .eeprom_size = OTP_LOW_IMAGE_SIZE,
113 .num_of_queues = IWLAGN_NUM_QUEUES,
Wey-Yi Guyde05ead2010-09-23 15:24:22 -0700114 .pll_cfg_val = 0,
Wey-Yi Guyde05ead2010-09-23 15:24:22 -0700115 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
116 .shadow_ram_support = true,
Wey-Yi Guy4fb33242010-11-29 10:45:16 -0800117 .led_compensation = 57,
Wey-Yi Guyde05ead2010-09-23 15:24:22 -0700118 .adv_thermal_throttle = true,
119 .support_ct_kill_exit = true,
120 .plcp_delta_threshold = IWL_MAX_PLCP_ERR_THRESHOLD_DEF,
121 .chain_noise_scale = 1000,
Stanislaw Gruszka22de94d2010-12-03 15:41:48 +0100122 .wd_timeout = IWL_LONG_WD_TIMEOUT,
Wey-Yi Guyde05ead2010-09-23 15:24:22 -0700123 .max_event_log_size = 512,
Meenakshi Venkataraman66a77072012-05-16 22:35:59 +0200124 .shadow_reg_enable = false, /* TODO: fix bugs using this feature */
Wey-Yi Guyde05ead2010-09-23 15:24:22 -0700125};
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700126
Johannes Berg6794f3e2012-03-06 13:30:56 -0800127static const struct iwl_ht_params iwl6000_ht_params = {
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700128 .ht_greenfield_support = true,
129 .use_rts_for_aggregation = true, /* use rts/cts protection */
Johannes Bergd3704932012-05-21 20:03:01 +0200130 .ht40_bands = BIT(IEEE80211_BAND_2GHZ) | BIT(IEEE80211_BAND_5GHZ),
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700131};
132
Johannes Berg6794f3e2012-03-06 13:30:56 -0800133static const struct iwl_bt_params iwl6000_bt_params = {
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700134 /* Due to bluetooth, we transmit 2.4 GHz probes only on antenna A */
135 .advanced_bt_coexist = true,
Wey-Yi Guy66e863a52010-11-08 14:54:37 -0800136 .agg_time_limit = BT_AGG_THRESHOLD_DEF,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700137 .bt_init_traffic_load = IWL_BT_COEX_TRAFFIC_LOAD_NONE,
138 .bt_prio_boost = IWLAGN_BT_PRIO_BOOST_DEFAULT,
Wey-Yi Guye3661762010-11-23 10:58:54 -0800139 .bt_sco_disable = true,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700140};
141
Johannes Berg26a7ca92012-05-21 11:55:54 +0200142static const struct iwl_eeprom_params iwl6000_eeprom_params = {
143 .regulatory_bands = {
144 EEPROM_REG_BAND_1_CHANNELS,
145 EEPROM_REG_BAND_2_CHANNELS,
146 EEPROM_REG_BAND_3_CHANNELS,
147 EEPROM_REG_BAND_4_CHANNELS,
148 EEPROM_REG_BAND_5_CHANNELS,
149 EEPROM_6000_REG_BAND_24_HT40_CHANNELS,
150 EEPROM_REG_BAND_52_HT40_CHANNELS
151 },
152 .enhanced_txpower = true,
153};
154
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800155#define IWL_DEVICE_6005 \
Johannes Bergca9a4602011-07-23 10:24:45 -0700156 .fw_name_pre = IWL6005_FW_PRE, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800157 .ucode_api_max = IWL6000G2_UCODE_API_MAX, \
Johannes Bergca9a4602011-07-23 10:24:45 -0700158 .ucode_api_ok = IWL6000G2_UCODE_API_OK, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800159 .ucode_api_min = IWL6000G2_UCODE_API_MIN, \
Johannes Berg2d771cb2012-04-09 17:47:00 -0700160 .device_family = IWL_DEVICE_FAMILY_6005, \
Emmanuel Grumbachdae66d02012-02-07 12:56:26 +0200161 .max_inst_size = IWL60_RTC_INST_SIZE, \
162 .max_data_size = IWL60_RTC_DATA_SIZE, \
Eytan Lifshitzb7998c82012-12-01 20:59:49 +0200163 .nvm_ver = EEPROM_6005_EEPROM_VERSION, \
164 .nvm_calib_ver = EEPROM_6005_TX_POWER_VERSION, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800165 .base_params = &iwl6000_g2_base_params, \
Johannes Berg26a7ca92012-05-21 11:55:54 +0200166 .eeprom_params = &iwl6000_eeprom_params, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800167 .need_temp_offset_calib = true, \
168 .led_mode = IWL_LED_RF_STATE
169
Johannes Berg706c4ff2012-03-05 11:24:33 -0800170const struct iwl_cfg iwl6005_2agn_cfg = {
Wey-Yi Guy55017ab2010-11-17 12:13:53 -0800171 .name = "Intel(R) Centrino(R) Advanced-N 6205 AGN",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800172 IWL_DEVICE_6005,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700173 .ht_params = &iwl6000_ht_params,
Jay Sternberg0b5af202010-03-17 16:16:12 -0700174};
175
Johannes Berg706c4ff2012-03-05 11:24:33 -0800176const struct iwl_cfg iwl6005_2abg_cfg = {
Wey-Yi Guy55017ab2010-11-17 12:13:53 -0800177 .name = "Intel(R) Centrino(R) Advanced-N 6205 ABG",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800178 IWL_DEVICE_6005,
Shanyu Zhao18089722010-05-06 10:15:21 -0700179};
180
Johannes Berg706c4ff2012-03-05 11:24:33 -0800181const struct iwl_cfg iwl6005_2bg_cfg = {
Wey-Yi Guy55017ab2010-11-17 12:13:53 -0800182 .name = "Intel(R) Centrino(R) Advanced-N 6205 BG",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800183 IWL_DEVICE_6005,
Shanyu Zhao18089722010-05-06 10:15:21 -0700184};
185
Johannes Berg706c4ff2012-03-05 11:24:33 -0800186const struct iwl_cfg iwl6005_2agn_sff_cfg = {
Wey-Yi Guy6a9ae0d2011-08-25 23:10:56 -0700187 .name = "Intel(R) Centrino(R) Advanced-N 6205S AGN",
188 IWL_DEVICE_6005,
189 .ht_params = &iwl6000_ht_params,
190};
191
Johannes Berg706c4ff2012-03-05 11:24:33 -0800192const struct iwl_cfg iwl6005_2agn_d_cfg = {
Wey-Yi Guy5131a602011-10-10 07:27:00 -0700193 .name = "Intel(R) Centrino(R) Advanced-N 6205D AGN",
194 IWL_DEVICE_6005,
195 .ht_params = &iwl6000_ht_params,
196};
197
Johannes Berg706c4ff2012-03-05 11:24:33 -0800198const struct iwl_cfg iwl6005_2agn_mow1_cfg = {
Wey-Yi Guy37891122012-02-22 10:21:09 -0800199 .name = "Intel(R) Centrino(R) Advanced-N 6206 AGN",
200 IWL_DEVICE_6005,
201 .ht_params = &iwl6000_ht_params,
202};
Johannes Berg706c4ff2012-03-05 11:24:33 -0800203
204const struct iwl_cfg iwl6005_2agn_mow2_cfg = {
Wey-Yi Guy37891122012-02-22 10:21:09 -0800205 .name = "Intel(R) Centrino(R) Advanced-N 6207 AGN",
206 IWL_DEVICE_6005,
207 .ht_params = &iwl6000_ht_params,
208};
209
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800210#define IWL_DEVICE_6030 \
Johannes Bergca9a4602011-07-23 10:24:45 -0700211 .fw_name_pre = IWL6030_FW_PRE, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800212 .ucode_api_max = IWL6000G2_UCODE_API_MAX, \
Wey-Yi Guy1ed2ec32012-04-25 08:10:08 -0700213 .ucode_api_ok = IWL6000G2B_UCODE_API_OK, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800214 .ucode_api_min = IWL6000G2_UCODE_API_MIN, \
Johannes Berg2d771cb2012-04-09 17:47:00 -0700215 .device_family = IWL_DEVICE_FAMILY_6030, \
Emmanuel Grumbachdae66d02012-02-07 12:56:26 +0200216 .max_inst_size = IWL60_RTC_INST_SIZE, \
217 .max_data_size = IWL60_RTC_DATA_SIZE, \
Eytan Lifshitzb7998c82012-12-01 20:59:49 +0200218 .nvm_ver = EEPROM_6030_EEPROM_VERSION, \
219 .nvm_calib_ver = EEPROM_6030_TX_POWER_VERSION, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800220 .base_params = &iwl6000_g2_base_params, \
221 .bt_params = &iwl6000_bt_params, \
Johannes Berg26a7ca92012-05-21 11:55:54 +0200222 .eeprom_params = &iwl6000_eeprom_params, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800223 .need_temp_offset_calib = true, \
224 .led_mode = IWL_LED_RF_STATE, \
Stanislaw Gruszkacd017f22010-12-23 15:12:30 +0100225 .adv_pm = true \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800226
Johannes Berg706c4ff2012-03-05 11:24:33 -0800227const struct iwl_cfg iwl6030_2agn_cfg = {
Wey-Yi Guyd2eceef2010-11-17 12:13:54 -0800228 .name = "Intel(R) Centrino(R) Advanced-N 6230 AGN",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800229 IWL_DEVICE_6030,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700230 .ht_params = &iwl6000_ht_params,
Shanyu Zhao18089722010-05-06 10:15:21 -0700231};
232
Johannes Berg706c4ff2012-03-05 11:24:33 -0800233const struct iwl_cfg iwl6030_2abg_cfg = {
Wey-Yi Guyd2eceef2010-11-17 12:13:54 -0800234 .name = "Intel(R) Centrino(R) Advanced-N 6230 ABG",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800235 IWL_DEVICE_6030,
Shanyu Zhao18089722010-05-06 10:15:21 -0700236};
237
Johannes Berg706c4ff2012-03-05 11:24:33 -0800238const struct iwl_cfg iwl6030_2bgn_cfg = {
Wey-Yi Guyd2eceef2010-11-17 12:13:54 -0800239 .name = "Intel(R) Centrino(R) Advanced-N 6230 BGN",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800240 IWL_DEVICE_6030,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700241 .ht_params = &iwl6000_ht_params,
Shanyu Zhao9f6e1ba2010-05-11 15:21:54 -0700242};
243
Johannes Berg706c4ff2012-03-05 11:24:33 -0800244const struct iwl_cfg iwl6030_2bg_cfg = {
Wey-Yi Guyd2eceef2010-11-17 12:13:54 -0800245 .name = "Intel(R) Centrino(R) Advanced-N 6230 BG",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800246 IWL_DEVICE_6030,
Shanyu Zhao18089722010-05-06 10:15:21 -0700247};
248
Meenakshi Venkataramand2c8b152012-06-05 20:24:37 +0200249#define IWL_DEVICE_6035 \
250 .fw_name_pre = IWL6030_FW_PRE, \
251 .ucode_api_max = IWL6035_UCODE_API_MAX, \
252 .ucode_api_ok = IWL6035_UCODE_API_OK, \
253 .ucode_api_min = IWL6035_UCODE_API_MIN, \
254 .device_family = IWL_DEVICE_FAMILY_6030, \
255 .max_inst_size = IWL60_RTC_INST_SIZE, \
256 .max_data_size = IWL60_RTC_DATA_SIZE, \
Eytan Lifshitzb7998c82012-12-01 20:59:49 +0200257 .nvm_ver = EEPROM_6030_EEPROM_VERSION, \
258 .nvm_calib_ver = EEPROM_6030_TX_POWER_VERSION, \
Meenakshi Venkataramand2c8b152012-06-05 20:24:37 +0200259 .base_params = &iwl6000_g2_base_params, \
260 .bt_params = &iwl6000_bt_params, \
Johannes Berg3c70d082012-06-12 21:43:28 +0200261 .eeprom_params = &iwl6000_eeprom_params, \
Meenakshi Venkataramand2c8b152012-06-05 20:24:37 +0200262 .need_temp_offset_calib = true, \
263 .led_mode = IWL_LED_RF_STATE, \
264 .adv_pm = true
265
Johannes Berg706c4ff2012-03-05 11:24:33 -0800266const struct iwl_cfg iwl6035_2agn_cfg = {
Don Fry6195d132011-12-06 10:42:41 -0800267 .name = "Intel(R) Centrino(R) Advanced-N 6235 AGN",
Meenakshi Venkataramand2c8b152012-06-05 20:24:37 +0200268 IWL_DEVICE_6035,
Wey-Yi Guyd103e342011-03-10 03:17:16 -0800269 .ht_params = &iwl6000_ht_params,
270};
271
Johannes Berg706c4ff2012-03-05 11:24:33 -0800272const struct iwl_cfg iwl1030_bgn_cfg = {
Wey-Yi Guyd2eceef2010-11-17 12:13:54 -0800273 .name = "Intel(R) Centrino(R) Wireless-N 1030 BGN",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800274 IWL_DEVICE_6030,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700275 .ht_params = &iwl6000_ht_params,
Shanyu Zhao18089722010-05-06 10:15:21 -0700276};
277
Johannes Berg706c4ff2012-03-05 11:24:33 -0800278const struct iwl_cfg iwl1030_bg_cfg = {
Wey-Yi Guyd2eceef2010-11-17 12:13:54 -0800279 .name = "Intel(R) Centrino(R) Wireless-N 1030 BG",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800280 IWL_DEVICE_6030,
281};
282
Johannes Berg706c4ff2012-03-05 11:24:33 -0800283const struct iwl_cfg iwl130_bgn_cfg = {
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800284 .name = "Intel(R) Centrino(R) Wireless-N 130 BGN",
285 IWL_DEVICE_6030,
286 .ht_params = &iwl6000_ht_params,
287 .rx_with_siso_diversity = true,
288};
289
Johannes Berg706c4ff2012-03-05 11:24:33 -0800290const struct iwl_cfg iwl130_bg_cfg = {
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800291 .name = "Intel(R) Centrino(R) Wireless-N 130 BG",
292 IWL_DEVICE_6030,
293 .rx_with_siso_diversity = true,
Shanyu Zhao18089722010-05-06 10:15:21 -0700294};
295
Shanyu Zhao95b13012010-04-21 11:46:33 -0700296/*
297 * "i": Internal configuration, use internal Power Amplifier
298 */
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800299#define IWL_DEVICE_6000i \
300 .fw_name_pre = IWL6000_FW_PRE, \
301 .ucode_api_max = IWL6000_UCODE_API_MAX, \
Johannes Bergb9148112011-11-04 07:22:37 -0700302 .ucode_api_ok = IWL6000_UCODE_API_OK, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800303 .ucode_api_min = IWL6000_UCODE_API_MIN, \
Johannes Berg2d771cb2012-04-09 17:47:00 -0700304 .device_family = IWL_DEVICE_FAMILY_6000i, \
Emmanuel Grumbachdae66d02012-02-07 12:56:26 +0200305 .max_inst_size = IWL60_RTC_INST_SIZE, \
306 .max_data_size = IWL60_RTC_DATA_SIZE, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800307 .valid_tx_ant = ANT_BC, /* .cfg overwrite */ \
308 .valid_rx_ant = ANT_BC, /* .cfg overwrite */ \
Eytan Lifshitzb7998c82012-12-01 20:59:49 +0200309 .nvm_ver = EEPROM_6000_EEPROM_VERSION, \
310 .nvm_calib_ver = EEPROM_6000_TX_POWER_VERSION, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800311 .base_params = &iwl6000_base_params, \
Johannes Berg26a7ca92012-05-21 11:55:54 +0200312 .eeprom_params = &iwl6000_eeprom_params, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800313 .led_mode = IWL_LED_BLINK
314
Johannes Berg706c4ff2012-03-05 11:24:33 -0800315const struct iwl_cfg iwl6000i_2agn_cfg = {
Shanyu Zhaoc11362c2010-03-05 17:05:20 -0800316 .name = "Intel(R) Centrino(R) Advanced-N 6200 AGN",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800317 IWL_DEVICE_6000i,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700318 .ht_params = &iwl6000_ht_params,
Jay Sternberge1228372009-01-19 15:30:34 -0800319};
320
Johannes Berg706c4ff2012-03-05 11:24:33 -0800321const struct iwl_cfg iwl6000i_2abg_cfg = {
Shanyu Zhaoc11362c2010-03-05 17:05:20 -0800322 .name = "Intel(R) Centrino(R) Advanced-N 6200 ABG",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800323 IWL_DEVICE_6000i,
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700324};
325
Johannes Berg706c4ff2012-03-05 11:24:33 -0800326const struct iwl_cfg iwl6000i_2bg_cfg = {
Shanyu Zhaoc11362c2010-03-05 17:05:20 -0800327 .name = "Intel(R) Centrino(R) Advanced-N 6200 BG",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800328 IWL_DEVICE_6000i,
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700329};
330
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800331#define IWL_DEVICE_6050 \
332 .fw_name_pre = IWL6050_FW_PRE, \
333 .ucode_api_max = IWL6050_UCODE_API_MAX, \
334 .ucode_api_min = IWL6050_UCODE_API_MIN, \
Johannes Berg2d771cb2012-04-09 17:47:00 -0700335 .device_family = IWL_DEVICE_FAMILY_6050, \
Emmanuel Grumbachdae66d02012-02-07 12:56:26 +0200336 .max_inst_size = IWL60_RTC_INST_SIZE, \
337 .max_data_size = IWL60_RTC_DATA_SIZE, \
Wey-Yi Guyff458ed2011-01-31 13:56:03 -0800338 .valid_tx_ant = ANT_AB, /* .cfg overwrite */ \
339 .valid_rx_ant = ANT_AB, /* .cfg overwrite */ \
Eytan Lifshitzb7998c82012-12-01 20:59:49 +0200340 .nvm_ver = EEPROM_6050_EEPROM_VERSION, \
341 .nvm_calib_ver = EEPROM_6050_TX_POWER_VERSION, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800342 .base_params = &iwl6050_base_params, \
Johannes Berg26a7ca92012-05-21 11:55:54 +0200343 .eeprom_params = &iwl6000_eeprom_params, \
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800344 .led_mode = IWL_LED_BLINK, \
345 .internal_wimax_coex = true
346
Johannes Berg706c4ff2012-03-05 11:24:33 -0800347const struct iwl_cfg iwl6050_2agn_cfg = {
Shanyu Zhaoc11362c2010-03-05 17:05:20 -0800348 .name = "Intel(R) Centrino(R) Advanced-N + WiMAX 6250 AGN",
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800349 IWL_DEVICE_6050,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700350 .ht_params = &iwl6000_ht_params,
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800351};
352
Johannes Berg706c4ff2012-03-05 11:24:33 -0800353const struct iwl_cfg iwl6050_2abg_cfg = {
Wey-Yi Guy65af8de2010-12-08 07:51:50 -0800354 .name = "Intel(R) Centrino(R) Advanced-N + WiMAX 6250 ABG",
355 IWL_DEVICE_6050,
Jay Sternberge1228372009-01-19 15:30:34 -0800356};
357
Wey-Yi Guy11441812011-05-30 09:32:52 -0700358#define IWL_DEVICE_6150 \
359 .fw_name_pre = IWL6050_FW_PRE, \
360 .ucode_api_max = IWL6050_UCODE_API_MAX, \
361 .ucode_api_min = IWL6050_UCODE_API_MIN, \
Johannes Berg2d771cb2012-04-09 17:47:00 -0700362 .device_family = IWL_DEVICE_FAMILY_6150, \
Emmanuel Grumbachdae66d02012-02-07 12:56:26 +0200363 .max_inst_size = IWL60_RTC_INST_SIZE, \
364 .max_data_size = IWL60_RTC_DATA_SIZE, \
Eytan Lifshitzb7998c82012-12-01 20:59:49 +0200365 .nvm_ver = EEPROM_6150_EEPROM_VERSION, \
366 .nvm_calib_ver = EEPROM_6150_TX_POWER_VERSION, \
Wey-Yi Guy11441812011-05-30 09:32:52 -0700367 .base_params = &iwl6050_base_params, \
Johannes Berg26a7ca92012-05-21 11:55:54 +0200368 .eeprom_params = &iwl6000_eeprom_params, \
Wey-Yi Guy11441812011-05-30 09:32:52 -0700369 .led_mode = IWL_LED_BLINK, \
370 .internal_wimax_coex = true
371
Johannes Berg706c4ff2012-03-05 11:24:33 -0800372const struct iwl_cfg iwl6150_bgn_cfg = {
Wey-Yi Guyf9dc6462010-11-17 12:13:52 -0800373 .name = "Intel(R) Centrino(R) Wireless-N + WiMAX 6150 BGN",
Wey-Yi Guy11441812011-05-30 09:32:52 -0700374 IWL_DEVICE_6150,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700375 .ht_params = &iwl6000_ht_params,
Wey-Yi Guy11441812011-05-30 09:32:52 -0700376};
377
Johannes Berg706c4ff2012-03-05 11:24:33 -0800378const struct iwl_cfg iwl6150_bg_cfg = {
Wey-Yi Guy11441812011-05-30 09:32:52 -0700379 .name = "Intel(R) Centrino(R) Wireless-N + WiMAX 6150 BG",
380 IWL_DEVICE_6150,
Shanyu Zhao03264332010-06-29 17:27:27 -0700381};
382
Johannes Berg706c4ff2012-03-05 11:24:33 -0800383const struct iwl_cfg iwl6000_3agn_cfg = {
Shanyu Zhaoc11362c2010-03-05 17:05:20 -0800384 .name = "Intel(R) Centrino(R) Ultimate-N 6300 AGN",
Jay Sternberge1228372009-01-19 15:30:34 -0800385 .fw_name_pre = IWL6000_FW_PRE,
386 .ucode_api_max = IWL6000_UCODE_API_MAX,
Johannes Bergb9148112011-11-04 07:22:37 -0700387 .ucode_api_ok = IWL6000_UCODE_API_OK,
Jay Sternberge1228372009-01-19 15:30:34 -0800388 .ucode_api_min = IWL6000_UCODE_API_MIN,
Johannes Berg2d771cb2012-04-09 17:47:00 -0700389 .device_family = IWL_DEVICE_FAMILY_6000,
Emmanuel Grumbachdae66d02012-02-07 12:56:26 +0200390 .max_inst_size = IWL60_RTC_INST_SIZE,
391 .max_data_size = IWL60_RTC_DATA_SIZE,
Eytan Lifshitzb7998c82012-12-01 20:59:49 +0200392 .nvm_ver = EEPROM_6000_EEPROM_VERSION,
393 .nvm_calib_ver = EEPROM_6000_TX_POWER_VERSION,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700394 .base_params = &iwl6000_base_params,
Johannes Berg26a7ca92012-05-21 11:55:54 +0200395 .eeprom_params = &iwl6000_eeprom_params,
Wey-Yi Guy7cb1b082010-10-06 08:10:00 -0700396 .ht_params = &iwl6000_ht_params,
Wey-Yi Guy564b3442010-11-09 09:21:34 -0800397 .led_mode = IWL_LED_BLINK,
Jay Sternberge1228372009-01-19 15:30:34 -0800398};
399
Johannes Bergb9148112011-11-04 07:22:37 -0700400MODULE_FIRMWARE(IWL6000_MODULE_FIRMWARE(IWL6000_UCODE_API_OK));
Meenakshi Venkataraman78cbcf22012-04-22 07:55:27 -0700401MODULE_FIRMWARE(IWL6050_MODULE_FIRMWARE(IWL6050_UCODE_API_OK));
402MODULE_FIRMWARE(IWL6005_MODULE_FIRMWARE(IWL6000G2_UCODE_API_OK));
403MODULE_FIRMWARE(IWL6030_MODULE_FIRMWARE(IWL6000G2B_UCODE_API_OK));