Jay Sternberg | e122837 | 2009-01-19 15:30:34 -0800 | [diff] [blame] | 1 | /****************************************************************************** |
| 2 | * |
Johannes Berg | 128e63e | 2013-01-21 21:39:26 +0100 | [diff] [blame] | 3 | * Copyright(c) 2008 - 2013 Intel Corporation. All rights reserved. |
Jay Sternberg | e122837 | 2009-01-19 15:30:34 -0800 | [diff] [blame] | 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 | |
Jay Sternberg | e122837 | 2009-01-19 15:30:34 -0800 | [diff] [blame] | 27 | #include <linux/module.h> |
Evgeni Golov | 8fcbd4dc | 2011-06-12 05:34:31 -0700 | [diff] [blame] | 28 | #include <linux/stringify.h> |
Johannes Berg | e967669 | 2012-04-10 14:10:28 -0700 | [diff] [blame] | 29 | #include "iwl-config.h" |
Johannes Berg | 0db19cd | 2012-04-03 20:57:59 +0200 | [diff] [blame] | 30 | #include "iwl-agn-hw.h" |
Johannes Berg | 1023fdc | 2012-05-15 12:16:34 +0200 | [diff] [blame] | 31 | #include "dvm/commands.h" /* needed for BT for now */ |
Jay Sternberg | e122837 | 2009-01-19 15:30:34 -0800 | [diff] [blame] | 32 | |
| 33 | /* Highest firmware API version supported */ |
Johannes Berg | b914811 | 2011-11-04 07:22:37 -0700 | [diff] [blame] | 34 | #define IWL6000_UCODE_API_MAX 6 |
Wey-Yi Guy | 62cb3c6 | 2010-09-28 17:43:10 -0700 | [diff] [blame] | 35 | #define IWL6050_UCODE_API_MAX 5 |
Johannes Berg | ca9a460 | 2011-07-23 10:24:45 -0700 | [diff] [blame] | 36 | #define IWL6000G2_UCODE_API_MAX 6 |
Meenakshi Venkataraman | d2c8b15 | 2012-06-05 20:24:37 +0200 | [diff] [blame] | 37 | #define IWL6035_UCODE_API_MAX 6 |
Johannes Berg | ca9a460 | 2011-07-23 10:24:45 -0700 | [diff] [blame] | 38 | |
| 39 | /* Oldest version we won't warn about */ |
Johannes Berg | b914811 | 2011-11-04 07:22:37 -0700 | [diff] [blame] | 40 | #define IWL6000_UCODE_API_OK 4 |
Johannes Berg | ca9a460 | 2011-07-23 10:24:45 -0700 | [diff] [blame] | 41 | #define IWL6000G2_UCODE_API_OK 5 |
Meenakshi Venkataraman | 78cbcf2 | 2012-04-22 07:55:27 -0700 | [diff] [blame] | 42 | #define IWL6050_UCODE_API_OK 5 |
| 43 | #define IWL6000G2B_UCODE_API_OK 6 |
Meenakshi Venkataraman | d2c8b15 | 2012-06-05 20:24:37 +0200 | [diff] [blame] | 44 | #define IWL6035_UCODE_API_OK 6 |
Jay Sternberg | e122837 | 2009-01-19 15:30:34 -0800 | [diff] [blame] | 45 | |
| 46 | /* Lowest firmware API version supported */ |
Wey-Yi Guy | 4424642 | 2009-10-23 13:42:34 -0700 | [diff] [blame] | 47 | #define IWL6000_UCODE_API_MIN 4 |
| 48 | #define IWL6050_UCODE_API_MIN 4 |
Meenakshi Venkataraman | d2c8b15 | 2012-06-05 20:24:37 +0200 | [diff] [blame] | 49 | #define IWL6000G2_UCODE_API_MIN 5 |
| 50 | #define IWL6035_UCODE_API_MIN 6 |
Jay Sternberg | e122837 | 2009-01-19 15:30:34 -0800 | [diff] [blame] | 51 | |
Johannes Berg | 586aed9 | 2012-04-03 20:41:07 +0200 | [diff] [blame] | 52 | /* 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 Sternberg | e122837 | 2009-01-19 15:30:34 -0800 | [diff] [blame] | 66 | #define IWL6000_FW_PRE "iwlwifi-6000-" |
Evgeni Golov | 8fcbd4dc | 2011-06-12 05:34:31 -0700 | [diff] [blame] | 67 | #define IWL6000_MODULE_FIRMWARE(api) IWL6000_FW_PRE __stringify(api) ".ucode" |
Jay Sternberg | e122837 | 2009-01-19 15:30:34 -0800 | [diff] [blame] | 68 | |
| 69 | #define IWL6050_FW_PRE "iwlwifi-6050-" |
Evgeni Golov | 8fcbd4dc | 2011-06-12 05:34:31 -0700 | [diff] [blame] | 70 | #define IWL6050_MODULE_FIRMWARE(api) IWL6050_FW_PRE __stringify(api) ".ucode" |
Jay Sternberg | e122837 | 2009-01-19 15:30:34 -0800 | [diff] [blame] | 71 | |
Wey-Yi Guy | 1956e1a | 2011-01-08 10:25:14 -0800 | [diff] [blame] | 72 | #define IWL6005_FW_PRE "iwlwifi-6000g2a-" |
Evgeni Golov | 8fcbd4dc | 2011-06-12 05:34:31 -0700 | [diff] [blame] | 73 | #define IWL6005_MODULE_FIRMWARE(api) IWL6005_FW_PRE __stringify(api) ".ucode" |
Shanyu Zhao | 95b1301 | 2010-04-21 11:46:33 -0700 | [diff] [blame] | 74 | |
Wey-Yi Guy | 1956e1a | 2011-01-08 10:25:14 -0800 | [diff] [blame] | 75 | #define IWL6030_FW_PRE "iwlwifi-6000g2b-" |
Evgeni Golov | 8fcbd4dc | 2011-06-12 05:34:31 -0700 | [diff] [blame] | 76 | #define IWL6030_MODULE_FIRMWARE(api) IWL6030_FW_PRE __stringify(api) ".ucode" |
Shanyu Zhao | 1808972 | 2010-05-06 10:15:21 -0700 | [diff] [blame] | 77 | |
Johannes Berg | 6794f3e | 2012-03-06 13:30:56 -0800 | [diff] [blame] | 78 | static const struct iwl_base_params iwl6000_base_params = { |
Jay Sternberg | 0b5af20 | 2010-03-17 16:16:12 -0700 | [diff] [blame] | 79 | .eeprom_size = OTP_LOW_IMAGE_SIZE, |
Jay Sternberg | 0b5af20 | 2010-03-17 16:16:12 -0700 | [diff] [blame] | 80 | .num_of_queues = IWLAGN_NUM_QUEUES, |
Jay Sternberg | 0b5af20 | 2010-03-17 16:16:12 -0700 | [diff] [blame] | 81 | .pll_cfg_val = 0, |
Jay Sternberg | 0b5af20 | 2010-03-17 16:16:12 -0700 | [diff] [blame] | 82 | .max_ll_items = OTP_MAX_LL_ITEMS_6x00, |
| 83 | .shadow_ram_support = true, |
Jay Sternberg | 0b5af20 | 2010-03-17 16:16:12 -0700 | [diff] [blame] | 84 | .led_compensation = 51, |
Stanislaw Gruszka | 22de94d | 2010-12-03 15:41:48 +0100 | [diff] [blame] | 85 | .wd_timeout = IWL_DEF_WD_TIMEOUT, |
Shanyu Zhao | 95b1301 | 2010-04-21 11:46:33 -0700 | [diff] [blame] | 86 | .max_event_log_size = 512, |
Meenakshi Venkataraman | 66a7707 | 2012-05-16 22:35:59 +0200 | [diff] [blame] | 87 | .shadow_reg_enable = false, /* TODO: fix bugs using this feature */ |
Wey-Yi Guy | 7cb1b08 | 2010-10-06 08:10:00 -0700 | [diff] [blame] | 88 | }; |
| 89 | |
Johannes Berg | 6794f3e | 2012-03-06 13:30:56 -0800 | [diff] [blame] | 90 | static const struct iwl_base_params iwl6050_base_params = { |
Wey-Yi Guy | 7cb1b08 | 2010-10-06 08:10:00 -0700 | [diff] [blame] | 91 | .eeprom_size = OTP_LOW_IMAGE_SIZE, |
| 92 | .num_of_queues = IWLAGN_NUM_QUEUES, |
Wey-Yi Guy | 7cb1b08 | 2010-10-06 08:10:00 -0700 | [diff] [blame] | 93 | .pll_cfg_val = 0, |
Wey-Yi Guy | 7cb1b08 | 2010-10-06 08:10:00 -0700 | [diff] [blame] | 94 | .max_ll_items = OTP_MAX_LL_ITEMS_6x50, |
| 95 | .shadow_ram_support = true, |
| 96 | .led_compensation = 51, |
Stanislaw Gruszka | 22de94d | 2010-12-03 15:41:48 +0100 | [diff] [blame] | 97 | .wd_timeout = IWL_DEF_WD_TIMEOUT, |
Wey-Yi Guy | 7cb1b08 | 2010-10-06 08:10:00 -0700 | [diff] [blame] | 98 | .max_event_log_size = 1024, |
Meenakshi Venkataraman | 66a7707 | 2012-05-16 22:35:59 +0200 | [diff] [blame] | 99 | .shadow_reg_enable = false, /* TODO: fix bugs using this feature */ |
Wey-Yi Guy | 7cb1b08 | 2010-10-06 08:10:00 -0700 | [diff] [blame] | 100 | }; |
Johannes Berg | 6794f3e | 2012-03-06 13:30:56 -0800 | [diff] [blame] | 101 | |
| 102 | static const struct iwl_base_params iwl6000_g2_base_params = { |
Wey-Yi Guy | de05ead | 2010-09-23 15:24:22 -0700 | [diff] [blame] | 103 | .eeprom_size = OTP_LOW_IMAGE_SIZE, |
| 104 | .num_of_queues = IWLAGN_NUM_QUEUES, |
Wey-Yi Guy | de05ead | 2010-09-23 15:24:22 -0700 | [diff] [blame] | 105 | .pll_cfg_val = 0, |
Wey-Yi Guy | de05ead | 2010-09-23 15:24:22 -0700 | [diff] [blame] | 106 | .max_ll_items = OTP_MAX_LL_ITEMS_6x00, |
| 107 | .shadow_ram_support = true, |
Wey-Yi Guy | 4fb3324 | 2010-11-29 10:45:16 -0800 | [diff] [blame] | 108 | .led_compensation = 57, |
Stanislaw Gruszka | 22de94d | 2010-12-03 15:41:48 +0100 | [diff] [blame] | 109 | .wd_timeout = IWL_LONG_WD_TIMEOUT, |
Wey-Yi Guy | de05ead | 2010-09-23 15:24:22 -0700 | [diff] [blame] | 110 | .max_event_log_size = 512, |
Meenakshi Venkataraman | 66a7707 | 2012-05-16 22:35:59 +0200 | [diff] [blame] | 111 | .shadow_reg_enable = false, /* TODO: fix bugs using this feature */ |
Wey-Yi Guy | de05ead | 2010-09-23 15:24:22 -0700 | [diff] [blame] | 112 | }; |
Wey-Yi Guy | 7cb1b08 | 2010-10-06 08:10:00 -0700 | [diff] [blame] | 113 | |
Johannes Berg | 6794f3e | 2012-03-06 13:30:56 -0800 | [diff] [blame] | 114 | static const struct iwl_ht_params iwl6000_ht_params = { |
Wey-Yi Guy | 7cb1b08 | 2010-10-06 08:10:00 -0700 | [diff] [blame] | 115 | .ht_greenfield_support = true, |
| 116 | .use_rts_for_aggregation = true, /* use rts/cts protection */ |
Johannes Berg | d370493 | 2012-05-21 20:03:01 +0200 | [diff] [blame] | 117 | .ht40_bands = BIT(IEEE80211_BAND_2GHZ) | BIT(IEEE80211_BAND_5GHZ), |
Wey-Yi Guy | 7cb1b08 | 2010-10-06 08:10:00 -0700 | [diff] [blame] | 118 | }; |
| 119 | |
Johannes Berg | 26a7ca9 | 2012-05-21 11:55:54 +0200 | [diff] [blame] | 120 | static const struct iwl_eeprom_params iwl6000_eeprom_params = { |
| 121 | .regulatory_bands = { |
| 122 | EEPROM_REG_BAND_1_CHANNELS, |
| 123 | EEPROM_REG_BAND_2_CHANNELS, |
| 124 | EEPROM_REG_BAND_3_CHANNELS, |
| 125 | EEPROM_REG_BAND_4_CHANNELS, |
| 126 | EEPROM_REG_BAND_5_CHANNELS, |
| 127 | EEPROM_6000_REG_BAND_24_HT40_CHANNELS, |
| 128 | EEPROM_REG_BAND_52_HT40_CHANNELS |
| 129 | }, |
| 130 | .enhanced_txpower = true, |
| 131 | }; |
| 132 | |
Wey-Yi Guy | 65af8de | 2010-12-08 07:51:50 -0800 | [diff] [blame] | 133 | #define IWL_DEVICE_6005 \ |
Johannes Berg | ca9a460 | 2011-07-23 10:24:45 -0700 | [diff] [blame] | 134 | .fw_name_pre = IWL6005_FW_PRE, \ |
Wey-Yi Guy | 65af8de | 2010-12-08 07:51:50 -0800 | [diff] [blame] | 135 | .ucode_api_max = IWL6000G2_UCODE_API_MAX, \ |
Johannes Berg | ca9a460 | 2011-07-23 10:24:45 -0700 | [diff] [blame] | 136 | .ucode_api_ok = IWL6000G2_UCODE_API_OK, \ |
Wey-Yi Guy | 65af8de | 2010-12-08 07:51:50 -0800 | [diff] [blame] | 137 | .ucode_api_min = IWL6000G2_UCODE_API_MIN, \ |
Johannes Berg | 2d771cb | 2012-04-09 17:47:00 -0700 | [diff] [blame] | 138 | .device_family = IWL_DEVICE_FAMILY_6005, \ |
Emmanuel Grumbach | dae66d0 | 2012-02-07 12:56:26 +0200 | [diff] [blame] | 139 | .max_inst_size = IWL60_RTC_INST_SIZE, \ |
| 140 | .max_data_size = IWL60_RTC_DATA_SIZE, \ |
Eytan Lifshitz | b7998c8 | 2012-12-01 20:59:49 +0200 | [diff] [blame] | 141 | .nvm_ver = EEPROM_6005_EEPROM_VERSION, \ |
| 142 | .nvm_calib_ver = EEPROM_6005_TX_POWER_VERSION, \ |
Wey-Yi Guy | 65af8de | 2010-12-08 07:51:50 -0800 | [diff] [blame] | 143 | .base_params = &iwl6000_g2_base_params, \ |
Johannes Berg | 26a7ca9 | 2012-05-21 11:55:54 +0200 | [diff] [blame] | 144 | .eeprom_params = &iwl6000_eeprom_params, \ |
Wey-Yi Guy | 65af8de | 2010-12-08 07:51:50 -0800 | [diff] [blame] | 145 | .led_mode = IWL_LED_RF_STATE |
| 146 | |
Johannes Berg | 706c4ff | 2012-03-05 11:24:33 -0800 | [diff] [blame] | 147 | const struct iwl_cfg iwl6005_2agn_cfg = { |
Wey-Yi Guy | 55017ab | 2010-11-17 12:13:53 -0800 | [diff] [blame] | 148 | .name = "Intel(R) Centrino(R) Advanced-N 6205 AGN", |
Wey-Yi Guy | 65af8de | 2010-12-08 07:51:50 -0800 | [diff] [blame] | 149 | IWL_DEVICE_6005, |
Wey-Yi Guy | 7cb1b08 | 2010-10-06 08:10:00 -0700 | [diff] [blame] | 150 | .ht_params = &iwl6000_ht_params, |
Jay Sternberg | 0b5af20 | 2010-03-17 16:16:12 -0700 | [diff] [blame] | 151 | }; |
| 152 | |
Johannes Berg | 706c4ff | 2012-03-05 11:24:33 -0800 | [diff] [blame] | 153 | const struct iwl_cfg iwl6005_2abg_cfg = { |
Wey-Yi Guy | 55017ab | 2010-11-17 12:13:53 -0800 | [diff] [blame] | 154 | .name = "Intel(R) Centrino(R) Advanced-N 6205 ABG", |
Wey-Yi Guy | 65af8de | 2010-12-08 07:51:50 -0800 | [diff] [blame] | 155 | IWL_DEVICE_6005, |
Shanyu Zhao | 1808972 | 2010-05-06 10:15:21 -0700 | [diff] [blame] | 156 | }; |
| 157 | |
Johannes Berg | 706c4ff | 2012-03-05 11:24:33 -0800 | [diff] [blame] | 158 | const struct iwl_cfg iwl6005_2bg_cfg = { |
Wey-Yi Guy | 55017ab | 2010-11-17 12:13:53 -0800 | [diff] [blame] | 159 | .name = "Intel(R) Centrino(R) Advanced-N 6205 BG", |
Wey-Yi Guy | 65af8de | 2010-12-08 07:51:50 -0800 | [diff] [blame] | 160 | IWL_DEVICE_6005, |
Shanyu Zhao | 1808972 | 2010-05-06 10:15:21 -0700 | [diff] [blame] | 161 | }; |
| 162 | |
Johannes Berg | 706c4ff | 2012-03-05 11:24:33 -0800 | [diff] [blame] | 163 | const struct iwl_cfg iwl6005_2agn_sff_cfg = { |
Wey-Yi Guy | 6a9ae0d | 2011-08-25 23:10:56 -0700 | [diff] [blame] | 164 | .name = "Intel(R) Centrino(R) Advanced-N 6205S AGN", |
| 165 | IWL_DEVICE_6005, |
| 166 | .ht_params = &iwl6000_ht_params, |
| 167 | }; |
| 168 | |
Johannes Berg | 706c4ff | 2012-03-05 11:24:33 -0800 | [diff] [blame] | 169 | const struct iwl_cfg iwl6005_2agn_d_cfg = { |
Wey-Yi Guy | 5131a60 | 2011-10-10 07:27:00 -0700 | [diff] [blame] | 170 | .name = "Intel(R) Centrino(R) Advanced-N 6205D AGN", |
| 171 | IWL_DEVICE_6005, |
| 172 | .ht_params = &iwl6000_ht_params, |
| 173 | }; |
| 174 | |
Johannes Berg | 706c4ff | 2012-03-05 11:24:33 -0800 | [diff] [blame] | 175 | const struct iwl_cfg iwl6005_2agn_mow1_cfg = { |
Wey-Yi Guy | 3789112 | 2012-02-22 10:21:09 -0800 | [diff] [blame] | 176 | .name = "Intel(R) Centrino(R) Advanced-N 6206 AGN", |
| 177 | IWL_DEVICE_6005, |
| 178 | .ht_params = &iwl6000_ht_params, |
| 179 | }; |
Johannes Berg | 706c4ff | 2012-03-05 11:24:33 -0800 | [diff] [blame] | 180 | |
| 181 | const struct iwl_cfg iwl6005_2agn_mow2_cfg = { |
Wey-Yi Guy | 3789112 | 2012-02-22 10:21:09 -0800 | [diff] [blame] | 182 | .name = "Intel(R) Centrino(R) Advanced-N 6207 AGN", |
| 183 | IWL_DEVICE_6005, |
| 184 | .ht_params = &iwl6000_ht_params, |
| 185 | }; |
| 186 | |
Wey-Yi Guy | 65af8de | 2010-12-08 07:51:50 -0800 | [diff] [blame] | 187 | #define IWL_DEVICE_6030 \ |
Johannes Berg | ca9a460 | 2011-07-23 10:24:45 -0700 | [diff] [blame] | 188 | .fw_name_pre = IWL6030_FW_PRE, \ |
Wey-Yi Guy | 65af8de | 2010-12-08 07:51:50 -0800 | [diff] [blame] | 189 | .ucode_api_max = IWL6000G2_UCODE_API_MAX, \ |
Wey-Yi Guy | 1ed2ec3 | 2012-04-25 08:10:08 -0700 | [diff] [blame] | 190 | .ucode_api_ok = IWL6000G2B_UCODE_API_OK, \ |
Wey-Yi Guy | 65af8de | 2010-12-08 07:51:50 -0800 | [diff] [blame] | 191 | .ucode_api_min = IWL6000G2_UCODE_API_MIN, \ |
Johannes Berg | 2d771cb | 2012-04-09 17:47:00 -0700 | [diff] [blame] | 192 | .device_family = IWL_DEVICE_FAMILY_6030, \ |
Emmanuel Grumbach | dae66d0 | 2012-02-07 12:56:26 +0200 | [diff] [blame] | 193 | .max_inst_size = IWL60_RTC_INST_SIZE, \ |
| 194 | .max_data_size = IWL60_RTC_DATA_SIZE, \ |
Eytan Lifshitz | b7998c8 | 2012-12-01 20:59:49 +0200 | [diff] [blame] | 195 | .nvm_ver = EEPROM_6030_EEPROM_VERSION, \ |
| 196 | .nvm_calib_ver = EEPROM_6030_TX_POWER_VERSION, \ |
Wey-Yi Guy | 65af8de | 2010-12-08 07:51:50 -0800 | [diff] [blame] | 197 | .base_params = &iwl6000_g2_base_params, \ |
Johannes Berg | 26a7ca9 | 2012-05-21 11:55:54 +0200 | [diff] [blame] | 198 | .eeprom_params = &iwl6000_eeprom_params, \ |
Johannes Berg | 0d8877a | 2013-05-17 10:36:29 +0200 | [diff] [blame] | 199 | .led_mode = IWL_LED_RF_STATE |
Wey-Yi Guy | 65af8de | 2010-12-08 07:51:50 -0800 | [diff] [blame] | 200 | |
Johannes Berg | 706c4ff | 2012-03-05 11:24:33 -0800 | [diff] [blame] | 201 | const struct iwl_cfg iwl6030_2agn_cfg = { |
Wey-Yi Guy | d2eceef | 2010-11-17 12:13:54 -0800 | [diff] [blame] | 202 | .name = "Intel(R) Centrino(R) Advanced-N 6230 AGN", |
Wey-Yi Guy | 65af8de | 2010-12-08 07:51:50 -0800 | [diff] [blame] | 203 | IWL_DEVICE_6030, |
Wey-Yi Guy | 7cb1b08 | 2010-10-06 08:10:00 -0700 | [diff] [blame] | 204 | .ht_params = &iwl6000_ht_params, |
Shanyu Zhao | 1808972 | 2010-05-06 10:15:21 -0700 | [diff] [blame] | 205 | }; |
| 206 | |
Johannes Berg | 706c4ff | 2012-03-05 11:24:33 -0800 | [diff] [blame] | 207 | const struct iwl_cfg iwl6030_2abg_cfg = { |
Wey-Yi Guy | d2eceef | 2010-11-17 12:13:54 -0800 | [diff] [blame] | 208 | .name = "Intel(R) Centrino(R) Advanced-N 6230 ABG", |
Wey-Yi Guy | 65af8de | 2010-12-08 07:51:50 -0800 | [diff] [blame] | 209 | IWL_DEVICE_6030, |
Shanyu Zhao | 1808972 | 2010-05-06 10:15:21 -0700 | [diff] [blame] | 210 | }; |
| 211 | |
Johannes Berg | 706c4ff | 2012-03-05 11:24:33 -0800 | [diff] [blame] | 212 | const struct iwl_cfg iwl6030_2bgn_cfg = { |
Wey-Yi Guy | d2eceef | 2010-11-17 12:13:54 -0800 | [diff] [blame] | 213 | .name = "Intel(R) Centrino(R) Advanced-N 6230 BGN", |
Wey-Yi Guy | 65af8de | 2010-12-08 07:51:50 -0800 | [diff] [blame] | 214 | IWL_DEVICE_6030, |
Wey-Yi Guy | 7cb1b08 | 2010-10-06 08:10:00 -0700 | [diff] [blame] | 215 | .ht_params = &iwl6000_ht_params, |
Shanyu Zhao | 9f6e1ba | 2010-05-11 15:21:54 -0700 | [diff] [blame] | 216 | }; |
| 217 | |
Johannes Berg | 706c4ff | 2012-03-05 11:24:33 -0800 | [diff] [blame] | 218 | const struct iwl_cfg iwl6030_2bg_cfg = { |
Wey-Yi Guy | d2eceef | 2010-11-17 12:13:54 -0800 | [diff] [blame] | 219 | .name = "Intel(R) Centrino(R) Advanced-N 6230 BG", |
Wey-Yi Guy | 65af8de | 2010-12-08 07:51:50 -0800 | [diff] [blame] | 220 | IWL_DEVICE_6030, |
Shanyu Zhao | 1808972 | 2010-05-06 10:15:21 -0700 | [diff] [blame] | 221 | }; |
| 222 | |
Meenakshi Venkataraman | d2c8b15 | 2012-06-05 20:24:37 +0200 | [diff] [blame] | 223 | #define IWL_DEVICE_6035 \ |
| 224 | .fw_name_pre = IWL6030_FW_PRE, \ |
| 225 | .ucode_api_max = IWL6035_UCODE_API_MAX, \ |
| 226 | .ucode_api_ok = IWL6035_UCODE_API_OK, \ |
| 227 | .ucode_api_min = IWL6035_UCODE_API_MIN, \ |
| 228 | .device_family = IWL_DEVICE_FAMILY_6030, \ |
| 229 | .max_inst_size = IWL60_RTC_INST_SIZE, \ |
| 230 | .max_data_size = IWL60_RTC_DATA_SIZE, \ |
Eytan Lifshitz | b7998c8 | 2012-12-01 20:59:49 +0200 | [diff] [blame] | 231 | .nvm_ver = EEPROM_6030_EEPROM_VERSION, \ |
| 232 | .nvm_calib_ver = EEPROM_6030_TX_POWER_VERSION, \ |
Meenakshi Venkataraman | d2c8b15 | 2012-06-05 20:24:37 +0200 | [diff] [blame] | 233 | .base_params = &iwl6000_g2_base_params, \ |
Johannes Berg | 3c70d08 | 2012-06-12 21:43:28 +0200 | [diff] [blame] | 234 | .eeprom_params = &iwl6000_eeprom_params, \ |
Johannes Berg | 0d8877a | 2013-05-17 10:36:29 +0200 | [diff] [blame] | 235 | .led_mode = IWL_LED_RF_STATE |
Meenakshi Venkataraman | d2c8b15 | 2012-06-05 20:24:37 +0200 | [diff] [blame] | 236 | |
Johannes Berg | 706c4ff | 2012-03-05 11:24:33 -0800 | [diff] [blame] | 237 | const struct iwl_cfg iwl6035_2agn_cfg = { |
Don Fry | 6195d13 | 2011-12-06 10:42:41 -0800 | [diff] [blame] | 238 | .name = "Intel(R) Centrino(R) Advanced-N 6235 AGN", |
Meenakshi Venkataraman | d2c8b15 | 2012-06-05 20:24:37 +0200 | [diff] [blame] | 239 | IWL_DEVICE_6035, |
Wey-Yi Guy | d103e34 | 2011-03-10 03:17:16 -0800 | [diff] [blame] | 240 | .ht_params = &iwl6000_ht_params, |
| 241 | }; |
| 242 | |
Emmanuel Grumbach | 08a5dd3 | 2013-09-24 19:34:26 +0300 | [diff] [blame] | 243 | const struct iwl_cfg iwl6035_2agn_sff_cfg = { |
| 244 | .name = "Intel(R) Centrino(R) Ultimate-N 6235 AGN", |
| 245 | IWL_DEVICE_6035, |
| 246 | .ht_params = &iwl6000_ht_params, |
| 247 | }; |
| 248 | |
Johannes Berg | 706c4ff | 2012-03-05 11:24:33 -0800 | [diff] [blame] | 249 | const struct iwl_cfg iwl1030_bgn_cfg = { |
Wey-Yi Guy | d2eceef | 2010-11-17 12:13:54 -0800 | [diff] [blame] | 250 | .name = "Intel(R) Centrino(R) Wireless-N 1030 BGN", |
Wey-Yi Guy | 65af8de | 2010-12-08 07:51:50 -0800 | [diff] [blame] | 251 | IWL_DEVICE_6030, |
Wey-Yi Guy | 7cb1b08 | 2010-10-06 08:10:00 -0700 | [diff] [blame] | 252 | .ht_params = &iwl6000_ht_params, |
Shanyu Zhao | 1808972 | 2010-05-06 10:15:21 -0700 | [diff] [blame] | 253 | }; |
| 254 | |
Johannes Berg | 706c4ff | 2012-03-05 11:24:33 -0800 | [diff] [blame] | 255 | const struct iwl_cfg iwl1030_bg_cfg = { |
Wey-Yi Guy | d2eceef | 2010-11-17 12:13:54 -0800 | [diff] [blame] | 256 | .name = "Intel(R) Centrino(R) Wireless-N 1030 BG", |
Wey-Yi Guy | 65af8de | 2010-12-08 07:51:50 -0800 | [diff] [blame] | 257 | IWL_DEVICE_6030, |
| 258 | }; |
| 259 | |
Johannes Berg | 706c4ff | 2012-03-05 11:24:33 -0800 | [diff] [blame] | 260 | const struct iwl_cfg iwl130_bgn_cfg = { |
Wey-Yi Guy | 65af8de | 2010-12-08 07:51:50 -0800 | [diff] [blame] | 261 | .name = "Intel(R) Centrino(R) Wireless-N 130 BGN", |
| 262 | IWL_DEVICE_6030, |
| 263 | .ht_params = &iwl6000_ht_params, |
| 264 | .rx_with_siso_diversity = true, |
| 265 | }; |
| 266 | |
Johannes Berg | 706c4ff | 2012-03-05 11:24:33 -0800 | [diff] [blame] | 267 | const struct iwl_cfg iwl130_bg_cfg = { |
Wey-Yi Guy | 65af8de | 2010-12-08 07:51:50 -0800 | [diff] [blame] | 268 | .name = "Intel(R) Centrino(R) Wireless-N 130 BG", |
| 269 | IWL_DEVICE_6030, |
| 270 | .rx_with_siso_diversity = true, |
Shanyu Zhao | 1808972 | 2010-05-06 10:15:21 -0700 | [diff] [blame] | 271 | }; |
| 272 | |
Shanyu Zhao | 95b1301 | 2010-04-21 11:46:33 -0700 | [diff] [blame] | 273 | /* |
| 274 | * "i": Internal configuration, use internal Power Amplifier |
| 275 | */ |
Wey-Yi Guy | 65af8de | 2010-12-08 07:51:50 -0800 | [diff] [blame] | 276 | #define IWL_DEVICE_6000i \ |
| 277 | .fw_name_pre = IWL6000_FW_PRE, \ |
| 278 | .ucode_api_max = IWL6000_UCODE_API_MAX, \ |
Johannes Berg | b914811 | 2011-11-04 07:22:37 -0700 | [diff] [blame] | 279 | .ucode_api_ok = IWL6000_UCODE_API_OK, \ |
Wey-Yi Guy | 65af8de | 2010-12-08 07:51:50 -0800 | [diff] [blame] | 280 | .ucode_api_min = IWL6000_UCODE_API_MIN, \ |
Johannes Berg | 2d771cb | 2012-04-09 17:47:00 -0700 | [diff] [blame] | 281 | .device_family = IWL_DEVICE_FAMILY_6000i, \ |
Emmanuel Grumbach | dae66d0 | 2012-02-07 12:56:26 +0200 | [diff] [blame] | 282 | .max_inst_size = IWL60_RTC_INST_SIZE, \ |
| 283 | .max_data_size = IWL60_RTC_DATA_SIZE, \ |
Wey-Yi Guy | 65af8de | 2010-12-08 07:51:50 -0800 | [diff] [blame] | 284 | .valid_tx_ant = ANT_BC, /* .cfg overwrite */ \ |
| 285 | .valid_rx_ant = ANT_BC, /* .cfg overwrite */ \ |
Eytan Lifshitz | b7998c8 | 2012-12-01 20:59:49 +0200 | [diff] [blame] | 286 | .nvm_ver = EEPROM_6000_EEPROM_VERSION, \ |
| 287 | .nvm_calib_ver = EEPROM_6000_TX_POWER_VERSION, \ |
Wey-Yi Guy | 65af8de | 2010-12-08 07:51:50 -0800 | [diff] [blame] | 288 | .base_params = &iwl6000_base_params, \ |
Johannes Berg | 26a7ca9 | 2012-05-21 11:55:54 +0200 | [diff] [blame] | 289 | .eeprom_params = &iwl6000_eeprom_params, \ |
Wey-Yi Guy | 65af8de | 2010-12-08 07:51:50 -0800 | [diff] [blame] | 290 | .led_mode = IWL_LED_BLINK |
| 291 | |
Johannes Berg | 706c4ff | 2012-03-05 11:24:33 -0800 | [diff] [blame] | 292 | const struct iwl_cfg iwl6000i_2agn_cfg = { |
Shanyu Zhao | c11362c | 2010-03-05 17:05:20 -0800 | [diff] [blame] | 293 | .name = "Intel(R) Centrino(R) Advanced-N 6200 AGN", |
Wey-Yi Guy | 65af8de | 2010-12-08 07:51:50 -0800 | [diff] [blame] | 294 | IWL_DEVICE_6000i, |
Wey-Yi Guy | 7cb1b08 | 2010-10-06 08:10:00 -0700 | [diff] [blame] | 295 | .ht_params = &iwl6000_ht_params, |
Jay Sternberg | e122837 | 2009-01-19 15:30:34 -0800 | [diff] [blame] | 296 | }; |
| 297 | |
Johannes Berg | 706c4ff | 2012-03-05 11:24:33 -0800 | [diff] [blame] | 298 | const struct iwl_cfg iwl6000i_2abg_cfg = { |
Shanyu Zhao | c11362c | 2010-03-05 17:05:20 -0800 | [diff] [blame] | 299 | .name = "Intel(R) Centrino(R) Advanced-N 6200 ABG", |
Wey-Yi Guy | 65af8de | 2010-12-08 07:51:50 -0800 | [diff] [blame] | 300 | IWL_DEVICE_6000i, |
Wey-Yi Guy | 5953a62 | 2009-09-17 10:43:53 -0700 | [diff] [blame] | 301 | }; |
| 302 | |
Johannes Berg | 706c4ff | 2012-03-05 11:24:33 -0800 | [diff] [blame] | 303 | const struct iwl_cfg iwl6000i_2bg_cfg = { |
Shanyu Zhao | c11362c | 2010-03-05 17:05:20 -0800 | [diff] [blame] | 304 | .name = "Intel(R) Centrino(R) Advanced-N 6200 BG", |
Wey-Yi Guy | 65af8de | 2010-12-08 07:51:50 -0800 | [diff] [blame] | 305 | IWL_DEVICE_6000i, |
Wey-Yi Guy | 5953a62 | 2009-09-17 10:43:53 -0700 | [diff] [blame] | 306 | }; |
| 307 | |
Wey-Yi Guy | 65af8de | 2010-12-08 07:51:50 -0800 | [diff] [blame] | 308 | #define IWL_DEVICE_6050 \ |
| 309 | .fw_name_pre = IWL6050_FW_PRE, \ |
| 310 | .ucode_api_max = IWL6050_UCODE_API_MAX, \ |
| 311 | .ucode_api_min = IWL6050_UCODE_API_MIN, \ |
Johannes Berg | 2d771cb | 2012-04-09 17:47:00 -0700 | [diff] [blame] | 312 | .device_family = IWL_DEVICE_FAMILY_6050, \ |
Emmanuel Grumbach | dae66d0 | 2012-02-07 12:56:26 +0200 | [diff] [blame] | 313 | .max_inst_size = IWL60_RTC_INST_SIZE, \ |
| 314 | .max_data_size = IWL60_RTC_DATA_SIZE, \ |
Wey-Yi Guy | ff458ed | 2011-01-31 13:56:03 -0800 | [diff] [blame] | 315 | .valid_tx_ant = ANT_AB, /* .cfg overwrite */ \ |
| 316 | .valid_rx_ant = ANT_AB, /* .cfg overwrite */ \ |
Eytan Lifshitz | b7998c8 | 2012-12-01 20:59:49 +0200 | [diff] [blame] | 317 | .nvm_ver = EEPROM_6050_EEPROM_VERSION, \ |
| 318 | .nvm_calib_ver = EEPROM_6050_TX_POWER_VERSION, \ |
Wey-Yi Guy | 65af8de | 2010-12-08 07:51:50 -0800 | [diff] [blame] | 319 | .base_params = &iwl6050_base_params, \ |
Johannes Berg | 26a7ca9 | 2012-05-21 11:55:54 +0200 | [diff] [blame] | 320 | .eeprom_params = &iwl6000_eeprom_params, \ |
Wey-Yi Guy | 65af8de | 2010-12-08 07:51:50 -0800 | [diff] [blame] | 321 | .led_mode = IWL_LED_BLINK, \ |
| 322 | .internal_wimax_coex = true |
| 323 | |
Johannes Berg | 706c4ff | 2012-03-05 11:24:33 -0800 | [diff] [blame] | 324 | const struct iwl_cfg iwl6050_2agn_cfg = { |
Shanyu Zhao | c11362c | 2010-03-05 17:05:20 -0800 | [diff] [blame] | 325 | .name = "Intel(R) Centrino(R) Advanced-N + WiMAX 6250 AGN", |
Wey-Yi Guy | 65af8de | 2010-12-08 07:51:50 -0800 | [diff] [blame] | 326 | IWL_DEVICE_6050, |
Wey-Yi Guy | 7cb1b08 | 2010-10-06 08:10:00 -0700 | [diff] [blame] | 327 | .ht_params = &iwl6000_ht_params, |
Wey-Yi Guy | 65af8de | 2010-12-08 07:51:50 -0800 | [diff] [blame] | 328 | }; |
| 329 | |
Johannes Berg | 706c4ff | 2012-03-05 11:24:33 -0800 | [diff] [blame] | 330 | const struct iwl_cfg iwl6050_2abg_cfg = { |
Wey-Yi Guy | 65af8de | 2010-12-08 07:51:50 -0800 | [diff] [blame] | 331 | .name = "Intel(R) Centrino(R) Advanced-N + WiMAX 6250 ABG", |
| 332 | IWL_DEVICE_6050, |
Jay Sternberg | e122837 | 2009-01-19 15:30:34 -0800 | [diff] [blame] | 333 | }; |
| 334 | |
Wey-Yi Guy | 1144181 | 2011-05-30 09:32:52 -0700 | [diff] [blame] | 335 | #define IWL_DEVICE_6150 \ |
| 336 | .fw_name_pre = IWL6050_FW_PRE, \ |
| 337 | .ucode_api_max = IWL6050_UCODE_API_MAX, \ |
| 338 | .ucode_api_min = IWL6050_UCODE_API_MIN, \ |
Johannes Berg | 2d771cb | 2012-04-09 17:47:00 -0700 | [diff] [blame] | 339 | .device_family = IWL_DEVICE_FAMILY_6150, \ |
Emmanuel Grumbach | dae66d0 | 2012-02-07 12:56:26 +0200 | [diff] [blame] | 340 | .max_inst_size = IWL60_RTC_INST_SIZE, \ |
| 341 | .max_data_size = IWL60_RTC_DATA_SIZE, \ |
Eytan Lifshitz | b7998c8 | 2012-12-01 20:59:49 +0200 | [diff] [blame] | 342 | .nvm_ver = EEPROM_6150_EEPROM_VERSION, \ |
| 343 | .nvm_calib_ver = EEPROM_6150_TX_POWER_VERSION, \ |
Wey-Yi Guy | 1144181 | 2011-05-30 09:32:52 -0700 | [diff] [blame] | 344 | .base_params = &iwl6050_base_params, \ |
Johannes Berg | 26a7ca9 | 2012-05-21 11:55:54 +0200 | [diff] [blame] | 345 | .eeprom_params = &iwl6000_eeprom_params, \ |
Wey-Yi Guy | 1144181 | 2011-05-30 09:32:52 -0700 | [diff] [blame] | 346 | .led_mode = IWL_LED_BLINK, \ |
| 347 | .internal_wimax_coex = true |
| 348 | |
Johannes Berg | 706c4ff | 2012-03-05 11:24:33 -0800 | [diff] [blame] | 349 | const struct iwl_cfg iwl6150_bgn_cfg = { |
Wey-Yi Guy | f9dc646 | 2010-11-17 12:13:52 -0800 | [diff] [blame] | 350 | .name = "Intel(R) Centrino(R) Wireless-N + WiMAX 6150 BGN", |
Wey-Yi Guy | 1144181 | 2011-05-30 09:32:52 -0700 | [diff] [blame] | 351 | IWL_DEVICE_6150, |
Wey-Yi Guy | 7cb1b08 | 2010-10-06 08:10:00 -0700 | [diff] [blame] | 352 | .ht_params = &iwl6000_ht_params, |
Wey-Yi Guy | 1144181 | 2011-05-30 09:32:52 -0700 | [diff] [blame] | 353 | }; |
| 354 | |
Johannes Berg | 706c4ff | 2012-03-05 11:24:33 -0800 | [diff] [blame] | 355 | const struct iwl_cfg iwl6150_bg_cfg = { |
Wey-Yi Guy | 1144181 | 2011-05-30 09:32:52 -0700 | [diff] [blame] | 356 | .name = "Intel(R) Centrino(R) Wireless-N + WiMAX 6150 BG", |
| 357 | IWL_DEVICE_6150, |
Shanyu Zhao | 0326433 | 2010-06-29 17:27:27 -0700 | [diff] [blame] | 358 | }; |
| 359 | |
Johannes Berg | 706c4ff | 2012-03-05 11:24:33 -0800 | [diff] [blame] | 360 | const struct iwl_cfg iwl6000_3agn_cfg = { |
Shanyu Zhao | c11362c | 2010-03-05 17:05:20 -0800 | [diff] [blame] | 361 | .name = "Intel(R) Centrino(R) Ultimate-N 6300 AGN", |
Jay Sternberg | e122837 | 2009-01-19 15:30:34 -0800 | [diff] [blame] | 362 | .fw_name_pre = IWL6000_FW_PRE, |
| 363 | .ucode_api_max = IWL6000_UCODE_API_MAX, |
Johannes Berg | b914811 | 2011-11-04 07:22:37 -0700 | [diff] [blame] | 364 | .ucode_api_ok = IWL6000_UCODE_API_OK, |
Jay Sternberg | e122837 | 2009-01-19 15:30:34 -0800 | [diff] [blame] | 365 | .ucode_api_min = IWL6000_UCODE_API_MIN, |
Johannes Berg | 2d771cb | 2012-04-09 17:47:00 -0700 | [diff] [blame] | 366 | .device_family = IWL_DEVICE_FAMILY_6000, |
Emmanuel Grumbach | dae66d0 | 2012-02-07 12:56:26 +0200 | [diff] [blame] | 367 | .max_inst_size = IWL60_RTC_INST_SIZE, |
| 368 | .max_data_size = IWL60_RTC_DATA_SIZE, |
Eytan Lifshitz | b7998c8 | 2012-12-01 20:59:49 +0200 | [diff] [blame] | 369 | .nvm_ver = EEPROM_6000_EEPROM_VERSION, |
| 370 | .nvm_calib_ver = EEPROM_6000_TX_POWER_VERSION, |
Wey-Yi Guy | 7cb1b08 | 2010-10-06 08:10:00 -0700 | [diff] [blame] | 371 | .base_params = &iwl6000_base_params, |
Johannes Berg | 26a7ca9 | 2012-05-21 11:55:54 +0200 | [diff] [blame] | 372 | .eeprom_params = &iwl6000_eeprom_params, |
Wey-Yi Guy | 7cb1b08 | 2010-10-06 08:10:00 -0700 | [diff] [blame] | 373 | .ht_params = &iwl6000_ht_params, |
Wey-Yi Guy | 564b344 | 2010-11-09 09:21:34 -0800 | [diff] [blame] | 374 | .led_mode = IWL_LED_BLINK, |
Jay Sternberg | e122837 | 2009-01-19 15:30:34 -0800 | [diff] [blame] | 375 | }; |
| 376 | |
Johannes Berg | b914811 | 2011-11-04 07:22:37 -0700 | [diff] [blame] | 377 | MODULE_FIRMWARE(IWL6000_MODULE_FIRMWARE(IWL6000_UCODE_API_OK)); |
Meenakshi Venkataraman | 78cbcf2 | 2012-04-22 07:55:27 -0700 | [diff] [blame] | 378 | MODULE_FIRMWARE(IWL6050_MODULE_FIRMWARE(IWL6050_UCODE_API_OK)); |
| 379 | MODULE_FIRMWARE(IWL6005_MODULE_FIRMWARE(IWL6000G2_UCODE_API_OK)); |
| 380 | MODULE_FIRMWARE(IWL6030_MODULE_FIRMWARE(IWL6000G2B_UCODE_API_OK)); |