blob: ad5d77c9649410e826aa0465287fb9875def7915 [file] [log] [blame]
Jay Sternberge1228372009-01-19 15:30:34 -08001/******************************************************************************
2 *
3 * Copyright(c) 2008-2009 Intel Corporation. All rights reserved.
4 *
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
27#include <linux/kernel.h>
28#include <linux/module.h>
29#include <linux/init.h>
30#include <linux/pci.h>
31#include <linux/dma-mapping.h>
32#include <linux/delay.h>
33#include <linux/skbuff.h>
34#include <linux/netdevice.h>
35#include <linux/wireless.h>
36#include <net/mac80211.h>
37#include <linux/etherdevice.h>
38#include <asm/unaligned.h>
39
40#include "iwl-eeprom.h"
41#include "iwl-dev.h"
42#include "iwl-core.h"
43#include "iwl-io.h"
44#include "iwl-sta.h"
45#include "iwl-helpers.h"
46#include "iwl-5000-hw.h"
Wey-Yi Guyf3a2a422009-09-11 10:38:11 -070047#include "iwl-6000-hw.h"
Jay Sternberge1228372009-01-19 15:30:34 -080048
49/* Highest firmware API version supported */
Wey-Yi Guyfcbaf8b2009-08-21 13:34:18 -070050#define IWL6000_UCODE_API_MAX 4
51#define IWL6050_UCODE_API_MAX 4
Jay Sternberge1228372009-01-19 15:30:34 -080052
53/* Lowest firmware API version supported */
54#define IWL6000_UCODE_API_MIN 1
55#define IWL6050_UCODE_API_MIN 1
56
57#define IWL6000_FW_PRE "iwlwifi-6000-"
58#define _IWL6000_MODULE_FIRMWARE(api) IWL6000_FW_PRE #api ".ucode"
59#define IWL6000_MODULE_FIRMWARE(api) _IWL6000_MODULE_FIRMWARE(api)
60
61#define IWL6050_FW_PRE "iwlwifi-6050-"
62#define _IWL6050_MODULE_FIRMWARE(api) IWL6050_FW_PRE #api ".ucode"
63#define IWL6050_MODULE_FIRMWARE(api) _IWL6050_MODULE_FIRMWARE(api)
64
Wey-Yi Guy672639d2009-07-24 11:13:01 -070065static void iwl6000_set_ct_threshold(struct iwl_priv *priv)
66{
67 /* want Celsius */
68 priv->hw_params.ct_kill_threshold = CT_KILL_THRESHOLD;
69 priv->hw_params.ct_kill_exit_threshold = CT_KILL_EXIT_THRESHOLD;
70}
71
Wey-Yi Guy65b79982009-07-31 14:28:07 -070072/* NIC configuration for 6000 series */
73static void iwl6000_nic_config(struct iwl_priv *priv)
74{
Wey-Yi Guy9371d4e2009-09-11 10:38:10 -070075 u16 radio_cfg;
76
77 radio_cfg = iwl_eeprom_query16(priv, EEPROM_RADIO_CONFIG);
78
79 /* write radio config values to register */
80 if (EEPROM_RF_CFG_TYPE_MSK(radio_cfg) <= EEPROM_RF_CONFIG_TYPE_MAX)
81 iwl_set_bit(priv, CSR_HW_IF_CONFIG_REG,
82 EEPROM_RF_CFG_TYPE_MSK(radio_cfg) |
83 EEPROM_RF_CFG_STEP_MSK(radio_cfg) |
84 EEPROM_RF_CFG_DASH_MSK(radio_cfg));
85
86 /* set CSR_HW_CONFIG_REG for uCode use */
87 iwl_set_bit(priv, CSR_HW_IF_CONFIG_REG,
88 CSR_HW_IF_CONFIG_REG_BIT_RADIO_SI |
89 CSR_HW_IF_CONFIG_REG_BIT_MAC_SI);
Wey-Yi Guy65b79982009-07-31 14:28:07 -070090
91 /* no locking required for register write */
92 if (priv->cfg->pa_type == IWL_PA_HYBRID) {
93 /* 2x2 hybrid phy type */
94 iwl_write32(priv, CSR_GP_DRIVER_REG,
95 CSR_GP_DRIVER_REG_BIT_RADIO_SKU_2x2_HYB);
96 } else if (priv->cfg->pa_type == IWL_PA_INTERNAL) {
97 /* 2x2 IPA phy type */
98 iwl_write32(priv, CSR_GP_DRIVER_REG,
99 CSR_GP_DRIVER_REG_BIT_RADIO_SKU_2x2_IPA);
100 }
101 /* else do nothing, uCode configured */
102}
103
Wey-Yi Guyf3a2a422009-09-11 10:38:11 -0700104static struct iwl_sensitivity_ranges iwl6000_sensitivity = {
105 .min_nrg_cck = 97,
106 .max_nrg_cck = 0, /* not used, set to 0 */
107 .auto_corr_min_ofdm = 80,
108 .auto_corr_min_ofdm_mrc = 128,
109 .auto_corr_min_ofdm_x1 = 105,
110 .auto_corr_min_ofdm_mrc_x1 = 192,
111
112 .auto_corr_max_ofdm = 145,
113 .auto_corr_max_ofdm_mrc = 232,
114 .auto_corr_max_ofdm_x1 = 145,
115 .auto_corr_max_ofdm_mrc_x1 = 232,
116
117 .auto_corr_min_cck = 125,
118 .auto_corr_max_cck = 175,
119 .auto_corr_min_cck_mrc = 160,
120 .auto_corr_max_cck_mrc = 310,
121 .nrg_th_cck = 97,
122 .nrg_th_ofdm = 100,
123};
124
125static int iwl6000_hw_set_hw_params(struct iwl_priv *priv)
126{
127 if ((priv->cfg->mod_params->num_of_queues > IWL50_NUM_QUEUES) ||
128 (priv->cfg->mod_params->num_of_queues < IWL_MIN_NUM_QUEUES)) {
129 IWL_ERR(priv,
130 "invalid queues_num, should be between %d and %d\n",
131 IWL_MIN_NUM_QUEUES, IWL50_NUM_QUEUES);
132 return -EINVAL;
133 }
134
135 priv->hw_params.max_txq_num = priv->cfg->mod_params->num_of_queues;
136 priv->hw_params.dma_chnl_num = FH50_TCSR_CHNL_NUM;
137 priv->hw_params.scd_bc_tbls_size =
138 IWL50_NUM_QUEUES * sizeof(struct iwl5000_scd_bc_tbl);
139 priv->hw_params.tfd_size = sizeof(struct iwl_tfd);
140 priv->hw_params.max_stations = IWL5000_STATION_COUNT;
141 priv->hw_params.bcast_sta_id = IWL5000_BROADCAST_ID;
142
143 priv->hw_params.max_data_size = IWL60_RTC_DATA_SIZE;
144 priv->hw_params.max_inst_size = IWL60_RTC_INST_SIZE;
145
146 priv->hw_params.max_bsm_size = 0;
147 priv->hw_params.ht40_channel = BIT(IEEE80211_BAND_2GHZ) |
148 BIT(IEEE80211_BAND_5GHZ);
149 priv->hw_params.rx_wrt_ptr_reg = FH_RSCSR_CHNL0_WPTR;
150
151 priv->hw_params.tx_chains_num = num_of_ant(priv->cfg->valid_tx_ant);
152 priv->hw_params.rx_chains_num = num_of_ant(priv->cfg->valid_rx_ant);
153 priv->hw_params.valid_tx_ant = priv->cfg->valid_tx_ant;
154 priv->hw_params.valid_rx_ant = priv->cfg->valid_rx_ant;
155
156 if (priv->cfg->ops->lib->temp_ops.set_ct_kill)
157 priv->cfg->ops->lib->temp_ops.set_ct_kill(priv);
158
159 /* Set initial sensitivity parameters */
160 /* Set initial calibration set */
161 priv->hw_params.sens = &iwl6000_sensitivity;
162 priv->hw_params.calib_init_cfg =
163 BIT(IWL_CALIB_XTAL) |
164 BIT(IWL_CALIB_LO) |
165 BIT(IWL_CALIB_TX_IQ) |
166 BIT(IWL_CALIB_TX_IQ_PERD) |
167 BIT(IWL_CALIB_BASE_BAND);
168
169 return 0;
170}
171
Wey-Yi Guy672639d2009-07-24 11:13:01 -0700172static struct iwl_lib_ops iwl6000_lib = {
Wey-Yi Guyf3a2a422009-09-11 10:38:11 -0700173 .set_hw_params = iwl6000_hw_set_hw_params,
Wey-Yi Guy672639d2009-07-24 11:13:01 -0700174 .txq_update_byte_cnt_tbl = iwl5000_txq_update_byte_cnt_tbl,
175 .txq_inval_byte_cnt_tbl = iwl5000_txq_inval_byte_cnt_tbl,
176 .txq_set_sched = iwl5000_txq_set_sched,
177 .txq_agg_enable = iwl5000_txq_agg_enable,
178 .txq_agg_disable = iwl5000_txq_agg_disable,
179 .txq_attach_buf_to_tfd = iwl_hw_txq_attach_buf_to_tfd,
180 .txq_free_tfd = iwl_hw_txq_free_tfd,
181 .txq_init = iwl_hw_tx_queue_init,
182 .rx_handler_setup = iwl5000_rx_handler_setup,
183 .setup_deferred_work = iwl5000_setup_deferred_work,
184 .is_valid_rtc_data_addr = iwl5000_hw_valid_rtc_data_addr,
185 .load_ucode = iwl5000_load_ucode,
Reinette Chatreb7a79402009-09-25 14:24:23 -0700186 .dump_nic_event_log = iwl_dump_nic_event_log,
187 .dump_nic_error_log = iwl_dump_nic_error_log,
Wey-Yi Guy672639d2009-07-24 11:13:01 -0700188 .init_alive_start = iwl5000_init_alive_start,
189 .alive_notify = iwl5000_alive_notify,
190 .send_tx_power = iwl5000_send_tx_power,
191 .update_chain_flags = iwl_update_chain_flags,
192 .apm_ops = {
193 .init = iwl5000_apm_init,
194 .reset = iwl5000_apm_reset,
195 .stop = iwl5000_apm_stop,
Wey-Yi Guy65b79982009-07-31 14:28:07 -0700196 .config = iwl6000_nic_config,
Wey-Yi Guy672639d2009-07-24 11:13:01 -0700197 .set_pwr_src = iwl_set_pwr_src,
198 },
199 .eeprom_ops = {
200 .regulatory_bands = {
201 EEPROM_5000_REG_BAND_1_CHANNELS,
202 EEPROM_5000_REG_BAND_2_CHANNELS,
203 EEPROM_5000_REG_BAND_3_CHANNELS,
204 EEPROM_5000_REG_BAND_4_CHANNELS,
205 EEPROM_5000_REG_BAND_5_CHANNELS,
Wey-Yi Guy7aafef12009-08-07 15:41:38 -0700206 EEPROM_5000_REG_BAND_24_HT40_CHANNELS,
207 EEPROM_5000_REG_BAND_52_HT40_CHANNELS
Wey-Yi Guy672639d2009-07-24 11:13:01 -0700208 },
209 .verify_signature = iwlcore_eeprom_verify_signature,
210 .acquire_semaphore = iwlcore_eeprom_acquire_semaphore,
211 .release_semaphore = iwlcore_eeprom_release_semaphore,
212 .calib_version = iwl5000_eeprom_calib_version,
213 .query_addr = iwl5000_eeprom_query_addr,
Wey-Yi Guyab9fd1b2009-08-21 13:34:23 -0700214 .update_enhanced_txpower = iwlcore_eeprom_enhanced_txpower,
Wey-Yi Guy672639d2009-07-24 11:13:01 -0700215 },
216 .post_associate = iwl_post_associate,
217 .isr = iwl_isr_ict,
218 .config_ap = iwl_config_ap,
219 .temp_ops = {
220 .temperature = iwl5000_temperature,
221 .set_ct_kill = iwl6000_set_ct_threshold,
222 },
223};
224
Jay Sternberg29f35c12009-01-29 11:09:16 -0800225static struct iwl_ops iwl6000_ops = {
Jay Sternbergcc0f5552009-07-17 09:30:16 -0700226 .ucode = &iwl5000_ucode,
Wey-Yi Guy672639d2009-07-24 11:13:01 -0700227 .lib = &iwl6000_lib,
Jay Sternberg29f35c12009-01-29 11:09:16 -0800228 .hcmd = &iwl5000_hcmd,
Wey-Yi Guyd8c07e72009-09-25 14:24:26 -0700229 .utils = &iwl5000_hcmd_utils,
Jay Sternberg29f35c12009-01-29 11:09:16 -0800230};
231
Jay Sternberge1228372009-01-19 15:30:34 -0800232
Wey-Yi Guy65b79982009-07-31 14:28:07 -0700233/*
234 * "h": Hybrid configuration, use both internal and external Power Amplifier
235 */
236struct iwl_cfg iwl6000h_2agn_cfg = {
Jay Sternberge1228372009-01-19 15:30:34 -0800237 .name = "6000 Series 2x2 AGN",
238 .fw_name_pre = IWL6000_FW_PRE,
239 .ucode_api_max = IWL6000_UCODE_API_MAX,
240 .ucode_api_min = IWL6000_UCODE_API_MIN,
241 .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
Jay Sternberg29f35c12009-01-29 11:09:16 -0800242 .ops = &iwl6000_ops,
Wey-Yi Guy415e4992009-08-13 13:30:54 -0700243 .eeprom_size = OTP_LOW_IMAGE_SIZE,
Wey-Yi Guy1f4b9662009-09-17 10:43:46 -0700244 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
Jay Sternberge1228372009-01-19 15:30:34 -0800245 .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
246 .mod_params = &iwl50_mod_params,
Jay Sternberg542cc792009-05-08 13:44:46 -0700247 .valid_tx_ant = ANT_AB,
248 .valid_rx_ant = ANT_AB,
Jay Sternberg050681b2009-01-29 11:09:13 -0800249 .need_pll_cfg = false,
Wey-Yi Guy65b79982009-07-31 14:28:07 -0700250 .pa_type = IWL_PA_HYBRID,
Wey-Yi Guy415e4992009-08-13 13:30:54 -0700251 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
252 .shadow_ram_support = true,
Daniel C Halperinb2617932009-08-13 13:30:59 -0700253 .ht_greenfield_support = true,
Wey-Yi Guyf2d0d0e2009-09-11 10:38:14 -0700254 .led_compensation = 51,
Wey-Yi Guy47eef9b2009-09-17 10:43:44 -0700255 .use_rts_for_ht = true, /* use rts/cts protection */
Wey-Yi Guyd8c07e72009-09-25 14:24:26 -0700256 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
Wey-Yi Guy65b79982009-07-31 14:28:07 -0700257};
258
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700259struct iwl_cfg iwl6000h_2abg_cfg = {
260 .name = "6000 Series 2x2 ABG",
261 .fw_name_pre = IWL6000_FW_PRE,
262 .ucode_api_max = IWL6000_UCODE_API_MAX,
263 .ucode_api_min = IWL6000_UCODE_API_MIN,
264 .sku = IWL_SKU_A|IWL_SKU_G,
265 .ops = &iwl6000_ops,
266 .eeprom_size = OTP_LOW_IMAGE_SIZE,
267 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
268 .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
269 .mod_params = &iwl50_mod_params,
270 .valid_tx_ant = ANT_AB,
271 .valid_rx_ant = ANT_AB,
272 .need_pll_cfg = false,
273 .pa_type = IWL_PA_HYBRID,
274 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
275 .shadow_ram_support = true,
276 .ht_greenfield_support = true,
277 .led_compensation = 51,
Wey-Yi Guyd8c07e72009-09-25 14:24:26 -0700278 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700279};
280
281struct iwl_cfg iwl6000h_2bg_cfg = {
282 .name = "6000 Series 2x2 BG",
283 .fw_name_pre = IWL6000_FW_PRE,
284 .ucode_api_max = IWL6000_UCODE_API_MAX,
285 .ucode_api_min = IWL6000_UCODE_API_MIN,
286 .sku = IWL_SKU_G,
287 .ops = &iwl6000_ops,
288 .eeprom_size = OTP_LOW_IMAGE_SIZE,
289 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
290 .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
291 .mod_params = &iwl50_mod_params,
292 .valid_tx_ant = ANT_AB,
293 .valid_rx_ant = ANT_AB,
294 .need_pll_cfg = false,
295 .pa_type = IWL_PA_HYBRID,
296 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
297 .shadow_ram_support = true,
298 .ht_greenfield_support = true,
299 .led_compensation = 51,
Wey-Yi Guyd8c07e72009-09-25 14:24:26 -0700300 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700301};
302
Wey-Yi Guy65b79982009-07-31 14:28:07 -0700303/*
304 * "i": Internal configuration, use internal Power Amplifier
305 */
306struct iwl_cfg iwl6000i_2agn_cfg = {
307 .name = "6000 Series 2x2 AGN",
308 .fw_name_pre = IWL6000_FW_PRE,
309 .ucode_api_max = IWL6000_UCODE_API_MAX,
310 .ucode_api_min = IWL6000_UCODE_API_MIN,
311 .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
312 .ops = &iwl6000_ops,
Wey-Yi Guy415e4992009-08-13 13:30:54 -0700313 .eeprom_size = OTP_LOW_IMAGE_SIZE,
Wey-Yi Guy1f4b9662009-09-17 10:43:46 -0700314 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
Wey-Yi Guy65b79982009-07-31 14:28:07 -0700315 .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
316 .mod_params = &iwl50_mod_params,
317 .valid_tx_ant = ANT_BC,
318 .valid_rx_ant = ANT_BC,
319 .need_pll_cfg = false,
320 .pa_type = IWL_PA_INTERNAL,
Wey-Yi Guy415e4992009-08-13 13:30:54 -0700321 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
322 .shadow_ram_support = true,
Daniel C Halperinb2617932009-08-13 13:30:59 -0700323 .ht_greenfield_support = true,
Wey-Yi Guyf2d0d0e2009-09-11 10:38:14 -0700324 .led_compensation = 51,
Wey-Yi Guy47eef9b2009-09-17 10:43:44 -0700325 .use_rts_for_ht = true, /* use rts/cts protection */
Wey-Yi Guyd8c07e72009-09-25 14:24:26 -0700326 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
Jay Sternberge1228372009-01-19 15:30:34 -0800327};
328
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700329struct iwl_cfg iwl6000i_2abg_cfg = {
330 .name = "6000 Series 2x2 ABG",
331 .fw_name_pre = IWL6000_FW_PRE,
332 .ucode_api_max = IWL6000_UCODE_API_MAX,
333 .ucode_api_min = IWL6000_UCODE_API_MIN,
334 .sku = IWL_SKU_A|IWL_SKU_G,
335 .ops = &iwl6000_ops,
336 .eeprom_size = OTP_LOW_IMAGE_SIZE,
337 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
338 .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
339 .mod_params = &iwl50_mod_params,
340 .valid_tx_ant = ANT_BC,
341 .valid_rx_ant = ANT_BC,
342 .need_pll_cfg = false,
343 .pa_type = IWL_PA_INTERNAL,
344 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
345 .shadow_ram_support = true,
346 .ht_greenfield_support = true,
347 .led_compensation = 51,
Wey-Yi Guyd8c07e72009-09-25 14:24:26 -0700348 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700349};
350
351struct iwl_cfg iwl6000i_2bg_cfg = {
352 .name = "6000 Series 2x2 BG",
353 .fw_name_pre = IWL6000_FW_PRE,
354 .ucode_api_max = IWL6000_UCODE_API_MAX,
355 .ucode_api_min = IWL6000_UCODE_API_MIN,
356 .sku = IWL_SKU_G,
357 .ops = &iwl6000_ops,
358 .eeprom_size = OTP_LOW_IMAGE_SIZE,
359 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
360 .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
361 .mod_params = &iwl50_mod_params,
362 .valid_tx_ant = ANT_BC,
363 .valid_rx_ant = ANT_BC,
364 .need_pll_cfg = false,
365 .pa_type = IWL_PA_INTERNAL,
366 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
367 .shadow_ram_support = true,
368 .ht_greenfield_support = true,
369 .led_compensation = 51,
Wey-Yi Guyd8c07e72009-09-25 14:24:26 -0700370 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700371};
372
Jay Sternberge1228372009-01-19 15:30:34 -0800373struct iwl_cfg iwl6050_2agn_cfg = {
374 .name = "6050 Series 2x2 AGN",
375 .fw_name_pre = IWL6050_FW_PRE,
376 .ucode_api_max = IWL6050_UCODE_API_MAX,
377 .ucode_api_min = IWL6050_UCODE_API_MIN,
378 .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
Jay Sternberg29f35c12009-01-29 11:09:16 -0800379 .ops = &iwl6000_ops,
Wey-Yi Guy415e4992009-08-13 13:30:54 -0700380 .eeprom_size = OTP_LOW_IMAGE_SIZE,
Wey-Yi Guy1f4b9662009-09-17 10:43:46 -0700381 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
Jay Sternberge1228372009-01-19 15:30:34 -0800382 .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
383 .mod_params = &iwl50_mod_params,
Jay Sternberg542cc792009-05-08 13:44:46 -0700384 .valid_tx_ant = ANT_AB,
385 .valid_rx_ant = ANT_AB,
Jay Sternberg050681b2009-01-29 11:09:13 -0800386 .need_pll_cfg = false,
Wey-Yi Guy65b79982009-07-31 14:28:07 -0700387 .pa_type = IWL_PA_SYSTEM,
Wey-Yi Guy415e4992009-08-13 13:30:54 -0700388 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
389 .shadow_ram_support = true,
Daniel C Halperinb2617932009-08-13 13:30:59 -0700390 .ht_greenfield_support = true,
Wey-Yi Guyf2d0d0e2009-09-11 10:38:14 -0700391 .led_compensation = 51,
Wey-Yi Guy47eef9b2009-09-17 10:43:44 -0700392 .use_rts_for_ht = true, /* use rts/cts protection */
Wey-Yi Guyd8c07e72009-09-25 14:24:26 -0700393 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
Jay Sternberge1228372009-01-19 15:30:34 -0800394};
395
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700396struct iwl_cfg iwl6050_2abg_cfg = {
397 .name = "6050 Series 2x2 ABG",
398 .fw_name_pre = IWL6050_FW_PRE,
399 .ucode_api_max = IWL6050_UCODE_API_MAX,
400 .ucode_api_min = IWL6050_UCODE_API_MIN,
401 .sku = IWL_SKU_A|IWL_SKU_G,
402 .ops = &iwl6000_ops,
403 .eeprom_size = OTP_LOW_IMAGE_SIZE,
404 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
405 .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
406 .mod_params = &iwl50_mod_params,
407 .valid_tx_ant = ANT_AB,
408 .valid_rx_ant = ANT_AB,
409 .need_pll_cfg = false,
410 .pa_type = IWL_PA_SYSTEM,
411 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
412 .shadow_ram_support = true,
413 .ht_greenfield_support = true,
414 .led_compensation = 51,
Wey-Yi Guyd8c07e72009-09-25 14:24:26 -0700415 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
Wey-Yi Guy5953a622009-09-17 10:43:53 -0700416};
417
Jay Sternberge1228372009-01-19 15:30:34 -0800418struct iwl_cfg iwl6000_3agn_cfg = {
419 .name = "6000 Series 3x3 AGN",
420 .fw_name_pre = IWL6000_FW_PRE,
421 .ucode_api_max = IWL6000_UCODE_API_MAX,
422 .ucode_api_min = IWL6000_UCODE_API_MIN,
423 .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
Jay Sternberg29f35c12009-01-29 11:09:16 -0800424 .ops = &iwl6000_ops,
Wey-Yi Guy415e4992009-08-13 13:30:54 -0700425 .eeprom_size = OTP_LOW_IMAGE_SIZE,
Wey-Yi Guy1f4b9662009-09-17 10:43:46 -0700426 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
Jay Sternberge1228372009-01-19 15:30:34 -0800427 .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
428 .mod_params = &iwl50_mod_params,
Jay Sternbergc0bac762009-02-02 16:21:14 -0800429 .valid_tx_ant = ANT_ABC,
430 .valid_rx_ant = ANT_ABC,
Jay Sternberg050681b2009-01-29 11:09:13 -0800431 .need_pll_cfg = false,
Wey-Yi Guy65b79982009-07-31 14:28:07 -0700432 .pa_type = IWL_PA_SYSTEM,
Wey-Yi Guy415e4992009-08-13 13:30:54 -0700433 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
434 .shadow_ram_support = true,
Daniel C Halperinb2617932009-08-13 13:30:59 -0700435 .ht_greenfield_support = true,
Wey-Yi Guyf2d0d0e2009-09-11 10:38:14 -0700436 .led_compensation = 51,
Wey-Yi Guy47eef9b2009-09-17 10:43:44 -0700437 .use_rts_for_ht = true, /* use rts/cts protection */
Wey-Yi Guyd8c07e72009-09-25 14:24:26 -0700438 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
Jay Sternberge1228372009-01-19 15:30:34 -0800439};
440
441struct iwl_cfg iwl6050_3agn_cfg = {
442 .name = "6050 Series 3x3 AGN",
443 .fw_name_pre = IWL6050_FW_PRE,
444 .ucode_api_max = IWL6050_UCODE_API_MAX,
445 .ucode_api_min = IWL6050_UCODE_API_MIN,
446 .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
Jay Sternberg29f35c12009-01-29 11:09:16 -0800447 .ops = &iwl6000_ops,
Wey-Yi Guy415e4992009-08-13 13:30:54 -0700448 .eeprom_size = OTP_LOW_IMAGE_SIZE,
Wey-Yi Guy1f4b9662009-09-17 10:43:46 -0700449 .eeprom_ver = EEPROM_6000_EEPROM_VERSION,
Jay Sternberge1228372009-01-19 15:30:34 -0800450 .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
451 .mod_params = &iwl50_mod_params,
Jay Sternbergc0bac762009-02-02 16:21:14 -0800452 .valid_tx_ant = ANT_ABC,
453 .valid_rx_ant = ANT_ABC,
Jay Sternberg050681b2009-01-29 11:09:13 -0800454 .need_pll_cfg = false,
Wey-Yi Guy65b79982009-07-31 14:28:07 -0700455 .pa_type = IWL_PA_SYSTEM,
Wey-Yi Guy415e4992009-08-13 13:30:54 -0700456 .max_ll_items = OTP_MAX_LL_ITEMS_6x00,
457 .shadow_ram_support = true,
Daniel C Halperinb2617932009-08-13 13:30:59 -0700458 .ht_greenfield_support = true,
Wey-Yi Guyf2d0d0e2009-09-11 10:38:14 -0700459 .led_compensation = 51,
Wey-Yi Guy47eef9b2009-09-17 10:43:44 -0700460 .use_rts_for_ht = true, /* use rts/cts protection */
Wey-Yi Guyd8c07e72009-09-25 14:24:26 -0700461 .chain_noise_num_beacons = IWL_CAL_NUM_BEACONS,
Jay Sternberge1228372009-01-19 15:30:34 -0800462};
463
464MODULE_FIRMWARE(IWL6000_MODULE_FIRMWARE(IWL6000_UCODE_API_MAX));
465MODULE_FIRMWARE(IWL6050_MODULE_FIRMWARE(IWL6050_UCODE_API_MAX));