Commit | Line | Data |
---|---|---|
c5d05698 JS |
1 | /****************************************************************************** |
2 | * | |
4e318262 | 3 | * Copyright(c) 2008 - 2012 Intel Corporation. All rights reserved. |
c5d05698 JS |
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 | ||
c5d05698 | 27 | #include <linux/module.h> |
8fcbd4dc | 28 | #include <linux/stringify.h> |
e9676695 | 29 | #include "iwl-config.h" |
cebcbd75 | 30 | #include "iwl-cfg.h" |
e9676695 | 31 | #include "iwl-dev.h" /* still needed */ |
c5d05698 JS |
32 | |
33 | /* Highest firmware API version supported */ | |
ca9a4605 JB |
34 | #define IWL1000_UCODE_API_MAX 6 |
35 | #define IWL100_UCODE_API_MAX 6 | |
36 | ||
37 | /* Oldest version we won't warn about */ | |
38 | #define IWL1000_UCODE_API_OK 5 | |
39 | #define IWL100_UCODE_API_OK 5 | |
c5d05698 JS |
40 | |
41 | /* Lowest firmware API version supported */ | |
77dcb6a9 | 42 | #define IWL1000_UCODE_API_MIN 1 |
1de19ecc | 43 | #define IWL100_UCODE_API_MIN 5 |
c5d05698 | 44 | |
77dcb6a9 | 45 | #define IWL1000_FW_PRE "iwlwifi-1000-" |
8fcbd4dc | 46 | #define IWL1000_MODULE_FIRMWARE(api) IWL1000_FW_PRE __stringify(api) ".ucode" |
c5d05698 | 47 | |
1de19ecc | 48 | #define IWL100_FW_PRE "iwlwifi-100-" |
8fcbd4dc | 49 | #define IWL100_MODULE_FIRMWARE(api) IWL100_FW_PRE __stringify(api) ".ucode" |
1de19ecc | 50 | |
672639de | 51 | |
6794f3ee | 52 | static const struct iwl_base_params iwl1000_base_params = { |
19e6cda0 | 53 | .num_of_queues = IWLAGN_NUM_QUEUES, |
7cb1b088 | 54 | .eeprom_size = OTP_LOW_IMAGE_SIZE, |
fadb3582 | 55 | .pll_cfg_val = CSR50_ANA_PLL_CFG_VAL, |
415e4993 WYG |
56 | .max_ll_items = OTP_MAX_LL_ITEMS_1000, |
57 | .shadow_ram_support = false, | |
f2d0d0e2 | 58 | .led_compensation = 51, |
480e8407 | 59 | .support_ct_kill_exit = true, |
6c3872e1 | 60 | .plcp_delta_threshold = IWL_MAX_PLCP_ERR_EXT_LONG_THRESHOLD_DEF, |
d4fe5ac9 | 61 | .chain_noise_scale = 1000, |
7c5ba4a8 | 62 | .wd_timeout = IWL_WATCHHDOG_DISABLED, |
678b385d | 63 | .max_event_log_size = 128, |
c5d05698 | 64 | }; |
6794f3ee JB |
65 | |
66 | static const struct iwl_ht_params iwl1000_ht_params = { | |
7cb1b088 WYG |
67 | .ht_greenfield_support = true, |
68 | .use_rts_for_aggregation = true, /* use rts/cts protection */ | |
946572b2 | 69 | .smps_mode = IEEE80211_SMPS_DYNAMIC, |
7cb1b088 WYG |
70 | }; |
71 | ||
65af8dea WYG |
72 | #define IWL_DEVICE_1000 \ |
73 | .fw_name_pre = IWL1000_FW_PRE, \ | |
74 | .ucode_api_max = IWL1000_UCODE_API_MAX, \ | |
ca9a4605 | 75 | .ucode_api_ok = IWL1000_UCODE_API_OK, \ |
65af8dea | 76 | .ucode_api_min = IWL1000_UCODE_API_MIN, \ |
2d771cb6 | 77 | .device_family = IWL_DEVICE_FAMILY_1000, \ |
dae66d0d EG |
78 | .max_inst_size = IWLAGN_RTC_INST_SIZE, \ |
79 | .max_data_size = IWLAGN_RTC_DATA_SIZE, \ | |
65af8dea WYG |
80 | .eeprom_ver = EEPROM_1000_EEPROM_VERSION, \ |
81 | .eeprom_calib_ver = EEPROM_1000_TX_POWER_VERSION, \ | |
65af8dea WYG |
82 | .base_params = &iwl1000_base_params, \ |
83 | .led_mode = IWL_LED_BLINK | |
84 | ||
706c4ff6 | 85 | const struct iwl_cfg iwl1000_bgn_cfg = { |
7cb1b088 | 86 | .name = "Intel(R) Centrino(R) Wireless-N 1000 BGN", |
65af8dea | 87 | IWL_DEVICE_1000, |
7cb1b088 WYG |
88 | .ht_params = &iwl1000_ht_params, |
89 | }; | |
c5d05698 | 90 | |
706c4ff6 | 91 | const struct iwl_cfg iwl1000_bg_cfg = { |
c11362c0 | 92 | .name = "Intel(R) Centrino(R) Wireless-N 1000 BG", |
65af8dea | 93 | IWL_DEVICE_1000, |
4bd0914f WYG |
94 | }; |
95 | ||
65af8dea WYG |
96 | #define IWL_DEVICE_100 \ |
97 | .fw_name_pre = IWL100_FW_PRE, \ | |
98 | .ucode_api_max = IWL100_UCODE_API_MAX, \ | |
ca9a4605 | 99 | .ucode_api_ok = IWL100_UCODE_API_OK, \ |
65af8dea | 100 | .ucode_api_min = IWL100_UCODE_API_MIN, \ |
2d771cb6 | 101 | .device_family = IWL_DEVICE_FAMILY_100, \ |
dae66d0d EG |
102 | .max_inst_size = IWLAGN_RTC_INST_SIZE, \ |
103 | .max_data_size = IWLAGN_RTC_DATA_SIZE, \ | |
65af8dea WYG |
104 | .eeprom_ver = EEPROM_1000_EEPROM_VERSION, \ |
105 | .eeprom_calib_ver = EEPROM_1000_TX_POWER_VERSION, \ | |
65af8dea WYG |
106 | .base_params = &iwl1000_base_params, \ |
107 | .led_mode = IWL_LED_RF_STATE, \ | |
108 | .rx_with_siso_diversity = true | |
109 | ||
706c4ff6 | 110 | const struct iwl_cfg iwl100_bgn_cfg = { |
638514ff | 111 | .name = "Intel(R) Centrino(R) Wireless-N 100 BGN", |
65af8dea | 112 | IWL_DEVICE_100, |
7cb1b088 | 113 | .ht_params = &iwl1000_ht_params, |
1de19ecc JS |
114 | }; |
115 | ||
706c4ff6 | 116 | const struct iwl_cfg iwl100_bg_cfg = { |
638514ff | 117 | .name = "Intel(R) Centrino(R) Wireless-N 100 BG", |
65af8dea | 118 | IWL_DEVICE_100, |
1de19ecc JS |
119 | }; |
120 | ||
9554b34a | 121 | MODULE_FIRMWARE(IWL1000_MODULE_FIRMWARE(IWL1000_UCODE_API_MAX)); |
1de19ecc | 122 | MODULE_FIRMWARE(IWL100_MODULE_FIRMWARE(IWL100_UCODE_API_MAX)); |