1 /******************************************************************************
3 * This file is provided under a dual BSD/GPLv2 license. When using or
4 * redistributing this file, you may do so under either license.
8 * Copyright(c) 2015-2017 Intel Deutschland GmbH
9 * Copyright (C) 2018 Intel Corporation
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of version 2 of the GNU General Public License as
13 * published by the Free Software Foundation.
15 * This program is distributed in the hope that it will be useful, but
16 * WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 * General Public License for more details.
22 * Copyright(c) 2015-2017 Intel Deutschland GmbH
23 * Copyright (C) 2018 Intel Corporation
24 * All rights reserved.
26 * Redistribution and use in source and binary forms, with or without
27 * modification, are permitted provided that the following conditions
30 * * Redistributions of source code must retain the above copyright
31 * notice, this list of conditions and the following disclaimer.
32 * * Redistributions in binary form must reproduce the above copyright
33 * notice, this list of conditions and the following disclaimer in
34 * the documentation and/or other materials provided with the
36 * * Neither the name Intel Corporation nor the names of its
37 * contributors may be used to endorse or promote products derived
38 * from this software without specific prior written permission.
40 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
41 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
42 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
43 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
44 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
45 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
46 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
47 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
48 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
49 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
50 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
52 *****************************************************************************/
54 #include <linux/module.h>
55 #include <linux/stringify.h>
56 #include "iwl-config.h"
59 /* Highest firmware API version supported */
60 #define IWL9000_UCODE_API_MAX 38
62 /* Lowest firmware API version supported */
63 #define IWL9000_UCODE_API_MIN 30
66 #define IWL9000_NVM_VERSION 0x0a1d
67 #define IWL9000_TX_POWER_VERSION 0xffff /* meaningless */
69 /* Memory offsets and lengths */
70 #define IWL9000_DCCM_OFFSET 0x800000
71 #define IWL9000_DCCM_LEN 0x18000
72 #define IWL9000_DCCM2_OFFSET 0x880000
73 #define IWL9000_DCCM2_LEN 0x8000
74 #define IWL9000_SMEM_OFFSET 0x400000
75 #define IWL9000_SMEM_LEN 0x68000
77 #define IWL9000A_FW_PRE "/*(DEBLOBBED)*/"
78 #define IWL9000B_FW_PRE "/*(DEBLOBBED)*/"
79 #define IWL9000RFB_FW_PRE "/*(DEBLOBBED)*/"
80 #define IWL9260A_FW_PRE "/*(DEBLOBBED)*/"
81 #define IWL9260B_FW_PRE "/*(DEBLOBBED)*/"
82 #define IWL9000A_MODULE_FIRMWARE(api) \
83 IWL9000A_FW_PRE /*(DEBLOBBED)*/
84 #define IWL9000B_MODULE_FIRMWARE(api) \
85 IWL9000B_FW_PRE /*(DEBLOBBED)*/
86 #define IWL9000RFB_MODULE_FIRMWARE(api) \
87 IWL9000RFB_FW_PRE /*(DEBLOBBED)*/
88 #define IWL9260A_MODULE_FIRMWARE(api) \
89 IWL9260A_FW_PRE /*(DEBLOBBED)*/
90 #define IWL9260B_MODULE_FIRMWARE(api) \
91 IWL9260B_FW_PRE /*(DEBLOBBED)*/
93 #define NVM_HW_SECTION_NUM_FAMILY_9000 10
95 static const struct iwl_base_params iwl9000_base_params = {
96 .eeprom_size = OTP_LOW_IMAGE_SIZE_FAMILY_9000,
98 .max_tfd_queue_size = 256,
99 .shadow_ram_support = true,
100 .led_compensation = 57,
101 .wd_timeout = IWL_LONG_WD_TIMEOUT,
102 .max_event_log_size = 512,
103 .shadow_reg_enable = true,
104 .pcie_l1_allowed = true,
107 static const struct iwl_ht_params iwl9000_ht_params = {
110 .ht40_bands = BIT(NL80211_BAND_2GHZ) | BIT(NL80211_BAND_5GHZ),
113 static const struct iwl_tt_params iwl9000_tt_params = {
114 .ct_kill_entry = 115,
116 .ct_kill_duration = 5,
117 .dynamic_smps_entry = 111,
118 .dynamic_smps_exit = 107,
119 .tx_protection_entry = 112,
120 .tx_protection_exit = 105,
122 {.temperature = 110, .backoff = 200},
123 {.temperature = 111, .backoff = 600},
124 {.temperature = 112, .backoff = 1200},
125 {.temperature = 113, .backoff = 2000},
126 {.temperature = 114, .backoff = 4000},
128 .support_ct_kill = true,
129 .support_dynamic_smps = true,
130 .support_tx_protection = true,
131 .support_tx_backoff = true,
134 #define IWL_DEVICE_9000 \
135 .ucode_api_max = IWL9000_UCODE_API_MAX, \
136 .ucode_api_min = IWL9000_UCODE_API_MIN, \
137 .device_family = IWL_DEVICE_FAMILY_9000, \
138 .base_params = &iwl9000_base_params, \
139 .led_mode = IWL_LED_RF_STATE, \
140 .nvm_hw_section_num = NVM_HW_SECTION_NUM_FAMILY_9000, \
141 .non_shared_ant = ANT_B, \
142 .dccm_offset = IWL9000_DCCM_OFFSET, \
143 .dccm_len = IWL9000_DCCM_LEN, \
144 .dccm2_offset = IWL9000_DCCM2_OFFSET, \
145 .dccm2_len = IWL9000_DCCM2_LEN, \
146 .smem_offset = IWL9000_SMEM_OFFSET, \
147 .smem_len = IWL9000_SMEM_LEN, \
148 .features = IWL_TX_CSUM_NETIF_FLAGS | NETIF_F_RXCSUM, \
149 .thermal_params = &iwl9000_tt_params, \
150 .apmg_not_supported = true, \
151 .mq_rx_supported = true, \
152 .vht_mu_mimo_supported = true, \
153 .mac_addr_from_csr = true, \
155 .nvm_type = IWL_NVM_EXT, \
156 .dbgc_supported = true, \
157 .min_umac_error_event_table = 0x800000, \
160 const struct iwl_cfg iwl9160_2ac_cfg = {
161 .name = "Intel(R) Dual Band Wireless AC 9160",
162 .fw_name_pre = IWL9260A_FW_PRE,
163 .fw_name_pre_b_or_c_step = IWL9260B_FW_PRE,
165 .ht_params = &iwl9000_ht_params,
166 .nvm_ver = IWL9000_NVM_VERSION,
167 .nvm_calib_ver = IWL9000_TX_POWER_VERSION,
168 .max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K,
171 const struct iwl_cfg iwl9260_2ac_cfg = {
172 .name = "Intel(R) Dual Band Wireless AC 9260",
173 .fw_name_pre = IWL9260A_FW_PRE,
174 .fw_name_pre_b_or_c_step = IWL9260B_FW_PRE,
176 .ht_params = &iwl9000_ht_params,
177 .nvm_ver = IWL9000_NVM_VERSION,
178 .nvm_calib_ver = IWL9000_TX_POWER_VERSION,
179 .max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K,
182 const struct iwl_cfg iwl9260_killer_2ac_cfg = {
183 .name = "Killer (R) Wireless-AC 1550 Wireless Network Adapter (9260NGW)",
184 .fw_name_pre = IWL9260A_FW_PRE,
185 .fw_name_pre_b_or_c_step = IWL9260B_FW_PRE,
187 .ht_params = &iwl9000_ht_params,
188 .nvm_ver = IWL9000_NVM_VERSION,
189 .nvm_calib_ver = IWL9000_TX_POWER_VERSION,
190 .max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K,
193 const struct iwl_cfg iwl9270_2ac_cfg = {
194 .name = "Intel(R) Dual Band Wireless AC 9270",
195 .fw_name_pre = IWL9260A_FW_PRE,
196 .fw_name_pre_b_or_c_step = IWL9260B_FW_PRE,
198 .ht_params = &iwl9000_ht_params,
199 .nvm_ver = IWL9000_NVM_VERSION,
200 .nvm_calib_ver = IWL9000_TX_POWER_VERSION,
201 .max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K,
204 const struct iwl_cfg iwl9460_2ac_cfg = {
205 .name = "Intel(R) Dual Band Wireless AC 9460",
206 .fw_name_pre = IWL9260A_FW_PRE,
207 .fw_name_pre_b_or_c_step = IWL9260B_FW_PRE,
209 .ht_params = &iwl9000_ht_params,
210 .nvm_ver = IWL9000_NVM_VERSION,
211 .nvm_calib_ver = IWL9000_TX_POWER_VERSION,
212 .max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K,
215 const struct iwl_cfg iwl9460_2ac_cfg_soc = {
216 .name = "Intel(R) Dual Band Wireless AC 9460",
217 .fw_name_pre = IWL9000A_FW_PRE,
218 .fw_name_pre_b_or_c_step = IWL9000B_FW_PRE,
219 .fw_name_pre_rf_next_step = IWL9000RFB_FW_PRE,
221 .ht_params = &iwl9000_ht_params,
222 .nvm_ver = IWL9000_NVM_VERSION,
223 .nvm_calib_ver = IWL9000_TX_POWER_VERSION,
224 .max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K,
229 const struct iwl_cfg iwl9461_2ac_cfg_soc = {
230 .name = "Intel(R) Dual Band Wireless AC 9461",
231 .fw_name_pre = IWL9000A_FW_PRE,
232 .fw_name_pre_b_or_c_step = IWL9000B_FW_PRE,
233 .fw_name_pre_rf_next_step = IWL9000RFB_FW_PRE,
235 .ht_params = &iwl9000_ht_params,
236 .nvm_ver = IWL9000_NVM_VERSION,
237 .nvm_calib_ver = IWL9000_TX_POWER_VERSION,
238 .max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K,
243 const struct iwl_cfg iwl9462_2ac_cfg_soc = {
244 .name = "Intel(R) Dual Band Wireless AC 9462",
245 .fw_name_pre = IWL9000A_FW_PRE,
246 .fw_name_pre_b_or_c_step = IWL9000B_FW_PRE,
247 .fw_name_pre_rf_next_step = IWL9000RFB_FW_PRE,
249 .ht_params = &iwl9000_ht_params,
250 .nvm_ver = IWL9000_NVM_VERSION,
251 .nvm_calib_ver = IWL9000_TX_POWER_VERSION,
252 .max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K,
257 const struct iwl_cfg iwl9560_2ac_cfg = {
258 .name = "Intel(R) Dual Band Wireless AC 9560",
259 .fw_name_pre = IWL9260A_FW_PRE,
260 .fw_name_pre_b_or_c_step = IWL9260B_FW_PRE,
262 .ht_params = &iwl9000_ht_params,
263 .nvm_ver = IWL9000_NVM_VERSION,
264 .nvm_calib_ver = IWL9000_TX_POWER_VERSION,
265 .max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K,
268 const struct iwl_cfg iwl9560_2ac_cfg_soc = {
269 .name = "Intel(R) Dual Band Wireless AC 9560",
270 .fw_name_pre = IWL9000A_FW_PRE,
271 .fw_name_pre_b_or_c_step = IWL9000B_FW_PRE,
272 .fw_name_pre_rf_next_step = IWL9000RFB_FW_PRE,
274 .ht_params = &iwl9000_ht_params,
275 .nvm_ver = IWL9000_NVM_VERSION,
276 .nvm_calib_ver = IWL9000_TX_POWER_VERSION,
277 .max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K,
282 const struct iwl_cfg iwl9560_killer_2ac_cfg_soc = {
283 .name = "Killer (R) Wireless-AC 1550i Wireless Network Adapter (9560NGW)",
284 .fw_name_pre = IWL9000A_FW_PRE,
285 .fw_name_pre_b_or_c_step = IWL9000B_FW_PRE,
286 .fw_name_pre_rf_next_step = IWL9000RFB_FW_PRE,
288 .ht_params = &iwl9000_ht_params,
289 .nvm_ver = IWL9000_NVM_VERSION,
290 .nvm_calib_ver = IWL9000_TX_POWER_VERSION,
291 .max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K,
296 const struct iwl_cfg iwl9560_killer_s_2ac_cfg_soc = {
297 .name = "Killer (R) Wireless-AC 1550s Wireless Network Adapter (9560NGW)",
298 .fw_name_pre = IWL9000A_FW_PRE,
299 .fw_name_pre_b_or_c_step = IWL9000B_FW_PRE,
300 .fw_name_pre_rf_next_step = IWL9000RFB_FW_PRE,
302 .ht_params = &iwl9000_ht_params,
303 .nvm_ver = IWL9000_NVM_VERSION,
304 .nvm_calib_ver = IWL9000_TX_POWER_VERSION,
305 .max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K,
310 const struct iwl_cfg iwl9460_2ac_cfg_shared_clk = {
311 .name = "Intel(R) Dual Band Wireless AC 9460",
312 .fw_name_pre = IWL9000A_FW_PRE,
313 .fw_name_pre_b_or_c_step = IWL9000B_FW_PRE,
314 .fw_name_pre_rf_next_step = IWL9000RFB_FW_PRE,
316 .ht_params = &iwl9000_ht_params,
317 .nvm_ver = IWL9000_NVM_VERSION,
318 .nvm_calib_ver = IWL9000_TX_POWER_VERSION,
319 .max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K,
322 .extra_phy_cfg_flags = FW_PHY_CFG_SHARED_CLK
325 const struct iwl_cfg iwl9461_2ac_cfg_shared_clk = {
326 .name = "Intel(R) Dual Band Wireless AC 9461",
327 .fw_name_pre = IWL9000A_FW_PRE,
328 .fw_name_pre_b_or_c_step = IWL9000B_FW_PRE,
329 .fw_name_pre_rf_next_step = IWL9000RFB_FW_PRE,
331 .ht_params = &iwl9000_ht_params,
332 .nvm_ver = IWL9000_NVM_VERSION,
333 .nvm_calib_ver = IWL9000_TX_POWER_VERSION,
334 .max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K,
337 .extra_phy_cfg_flags = FW_PHY_CFG_SHARED_CLK
340 const struct iwl_cfg iwl9462_2ac_cfg_shared_clk = {
341 .name = "Intel(R) Dual Band Wireless AC 9462",
342 .fw_name_pre = IWL9000A_FW_PRE,
343 .fw_name_pre_b_or_c_step = IWL9000B_FW_PRE,
344 .fw_name_pre_rf_next_step = IWL9000RFB_FW_PRE,
346 .ht_params = &iwl9000_ht_params,
347 .nvm_ver = IWL9000_NVM_VERSION,
348 .nvm_calib_ver = IWL9000_TX_POWER_VERSION,
349 .max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K,
352 .extra_phy_cfg_flags = FW_PHY_CFG_SHARED_CLK
355 const struct iwl_cfg iwl9560_2ac_cfg_shared_clk = {
356 .name = "Intel(R) Dual Band Wireless AC 9560",
357 .fw_name_pre = IWL9000A_FW_PRE,
358 .fw_name_pre_b_or_c_step = IWL9000B_FW_PRE,
359 .fw_name_pre_rf_next_step = IWL9000RFB_FW_PRE,
361 .ht_params = &iwl9000_ht_params,
362 .nvm_ver = IWL9000_NVM_VERSION,
363 .nvm_calib_ver = IWL9000_TX_POWER_VERSION,
364 .max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K,
367 .extra_phy_cfg_flags = FW_PHY_CFG_SHARED_CLK
370 const struct iwl_cfg iwl9560_killer_2ac_cfg_shared_clk = {
371 .name = "Killer (R) Wireless-AC 1550i Wireless Network Adapter (9560NGW)",
372 .fw_name_pre = IWL9000A_FW_PRE,
373 .fw_name_pre_b_or_c_step = IWL9000B_FW_PRE,
374 .fw_name_pre_rf_next_step = IWL9000RFB_FW_PRE,
376 .ht_params = &iwl9000_ht_params,
377 .nvm_ver = IWL9000_NVM_VERSION,
378 .nvm_calib_ver = IWL9000_TX_POWER_VERSION,
379 .max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K,
382 .extra_phy_cfg_flags = FW_PHY_CFG_SHARED_CLK
385 const struct iwl_cfg iwl9560_killer_s_2ac_cfg_shared_clk = {
386 .name = "Killer (R) Wireless-AC 1550s Wireless Network Adapter (9560NGW)",
387 .fw_name_pre = IWL9000A_FW_PRE,
388 .fw_name_pre_b_or_c_step = IWL9000B_FW_PRE,
389 .fw_name_pre_rf_next_step = IWL9000RFB_FW_PRE,
391 .ht_params = &iwl9000_ht_params,
392 .nvm_ver = IWL9000_NVM_VERSION,
393 .nvm_calib_ver = IWL9000_TX_POWER_VERSION,
394 .max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K,
397 .extra_phy_cfg_flags = FW_PHY_CFG_SHARED_CLK