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
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of version 2 of the GNU General Public License as
12 * published by the Free Software Foundation.
14 * This program is distributed in the hope that it will be useful, but
15 * WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * General Public License for more details.
21 * Copyright(c) 2015-2017 Intel Deutschland GmbH
22 * All rights reserved.
24 * Redistribution and use in source and binary forms, with or without
25 * modification, are permitted provided that the following conditions
28 * * Redistributions of source code must retain the above copyright
29 * notice, this list of conditions and the following disclaimer.
30 * * Redistributions in binary form must reproduce the above copyright
31 * notice, this list of conditions and the following disclaimer in
32 * the documentation and/or other materials provided with the
34 * * Neither the name Intel Corporation nor the names of its
35 * contributors may be used to endorse or promote products derived
36 * from this software without specific prior written permission.
38 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
39 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
40 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
41 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
42 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
43 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
44 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
45 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
46 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
47 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
48 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
50 *****************************************************************************/
52 #include <linux/module.h>
53 #include <linux/stringify.h>
54 #include "iwl-config.h"
55 #include "iwl-agn-hw.h"
57 /* Highest firmware API version supported */
58 #define IWL9000_UCODE_API_MAX 34
60 /* Lowest firmware API version supported */
61 #define IWL9000_UCODE_API_MIN 30
64 #define IWL9000_NVM_VERSION 0x0a1d
65 #define IWL9000_TX_POWER_VERSION 0xffff /* meaningless */
67 /* Memory offsets and lengths */
68 #define IWL9000_DCCM_OFFSET 0x800000
69 #define IWL9000_DCCM_LEN 0x18000
70 #define IWL9000_DCCM2_OFFSET 0x880000
71 #define IWL9000_DCCM2_LEN 0x8000
72 #define IWL9000_SMEM_OFFSET 0x400000
73 #define IWL9000_SMEM_LEN 0x68000
75 #define IWL9000A_FW_PRE "iwlwifi-9000-pu-a0-jf-a0-"
76 #define IWL9000B_FW_PRE "iwlwifi-9000-pu-b0-jf-b0-"
77 #define IWL9000RFB_FW_PRE "iwlwifi-9000-pu-a0-jf-b0-"
78 #define IWL9260A_FW_PRE "iwlwifi-9260-th-a0-jf-a0-"
79 #define IWL9260B_FW_PRE "iwlwifi-9260-th-b0-jf-b0-"
80 #define IWL9000A_MODULE_FIRMWARE(api) \
81 IWL9000A_FW_PRE __stringify(api) ".ucode"
82 #define IWL9000B_MODULE_FIRMWARE(api) \
83 IWL9000B_FW_PRE __stringify(api) ".ucode"
84 #define IWL9000RFB_MODULE_FIRMWARE(api) \
85 IWL9000RFB_FW_PRE __stringify(api) ".ucode"
86 #define IWL9260A_MODULE_FIRMWARE(api) \
87 IWL9260A_FW_PRE __stringify(api) ".ucode"
88 #define IWL9260B_MODULE_FIRMWARE(api) \
89 IWL9260B_FW_PRE __stringify(api) ".ucode"
91 #define NVM_HW_SECTION_NUM_FAMILY_9000 10
93 static const struct iwl_base_params iwl9000_base_params = {
94 .eeprom_size = OTP_LOW_IMAGE_SIZE_FAMILY_9000,
96 .shadow_ram_support = true,
97 .led_compensation = 57,
98 .wd_timeout = IWL_LONG_WD_TIMEOUT,
99 .max_event_log_size = 512,
100 .shadow_reg_enable = true,
101 .pcie_l1_allowed = true,
104 static const struct iwl_ht_params iwl9000_ht_params = {
107 .ht40_bands = BIT(NL80211_BAND_2GHZ) | BIT(NL80211_BAND_5GHZ),
110 static const struct iwl_tt_params iwl9000_tt_params = {
111 .ct_kill_entry = 115,
113 .ct_kill_duration = 5,
114 .dynamic_smps_entry = 111,
115 .dynamic_smps_exit = 107,
116 .tx_protection_entry = 112,
117 .tx_protection_exit = 105,
119 {.temperature = 110, .backoff = 200},
120 {.temperature = 111, .backoff = 600},
121 {.temperature = 112, .backoff = 1200},
122 {.temperature = 113, .backoff = 2000},
123 {.temperature = 114, .backoff = 4000},
125 .support_ct_kill = true,
126 .support_dynamic_smps = true,
127 .support_tx_protection = true,
128 .support_tx_backoff = true,
131 #define IWL_DEVICE_9000 \
132 .ucode_api_max = IWL9000_UCODE_API_MAX, \
133 .ucode_api_min = IWL9000_UCODE_API_MIN, \
134 .device_family = IWL_DEVICE_FAMILY_9000, \
135 .max_inst_size = IWL60_RTC_INST_SIZE, \
136 .max_data_size = IWL60_RTC_DATA_SIZE, \
137 .base_params = &iwl9000_base_params, \
138 .led_mode = IWL_LED_RF_STATE, \
139 .nvm_hw_section_num = NVM_HW_SECTION_NUM_FAMILY_9000, \
140 .non_shared_ant = ANT_A, \
141 .dccm_offset = IWL9000_DCCM_OFFSET, \
142 .dccm_len = IWL9000_DCCM_LEN, \
143 .dccm2_offset = IWL9000_DCCM2_OFFSET, \
144 .dccm2_len = IWL9000_DCCM2_LEN, \
145 .smem_offset = IWL9000_SMEM_OFFSET, \
146 .smem_len = IWL9000_SMEM_LEN, \
147 .features = IWL_TX_CSUM_NETIF_FLAGS | NETIF_F_RXCSUM, \
148 .thermal_params = &iwl9000_tt_params, \
149 .apmg_not_supported = true, \
150 .mq_rx_supported = true, \
151 .vht_mu_mimo_supported = true, \
152 .mac_addr_from_csr = true, \
154 .nvm_type = IWL_NVM_EXT, \
155 .dbgc_supported = true, \
156 .min_umac_error_event_table = 0x800000
158 const struct iwl_cfg iwl9160_2ac_cfg = {
159 .name = "Intel(R) Dual Band Wireless AC 9160",
160 .fw_name_pre = IWL9260A_FW_PRE,
161 .fw_name_pre_b_or_c_step = IWL9260B_FW_PRE,
163 .ht_params = &iwl9000_ht_params,
164 .nvm_ver = IWL9000_NVM_VERSION,
165 .nvm_calib_ver = IWL9000_TX_POWER_VERSION,
166 .max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K,
169 const struct iwl_cfg iwl9260_2ac_cfg = {
170 .name = "Intel(R) Dual Band Wireless AC 9260",
171 .fw_name_pre = IWL9260A_FW_PRE,
172 .fw_name_pre_b_or_c_step = IWL9260B_FW_PRE,
174 .ht_params = &iwl9000_ht_params,
175 .nvm_ver = IWL9000_NVM_VERSION,
176 .nvm_calib_ver = IWL9000_TX_POWER_VERSION,
177 .max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K,
180 const struct iwl_cfg iwl9270_2ac_cfg = {
181 .name = "Intel(R) Dual Band Wireless AC 9270",
182 .fw_name_pre = IWL9260A_FW_PRE,
183 .fw_name_pre_b_or_c_step = IWL9260B_FW_PRE,
185 .ht_params = &iwl9000_ht_params,
186 .nvm_ver = IWL9000_NVM_VERSION,
187 .nvm_calib_ver = IWL9000_TX_POWER_VERSION,
188 .max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K,
191 const struct iwl_cfg iwl9460_2ac_cfg = {
192 .name = "Intel(R) Dual Band Wireless AC 9460",
193 .fw_name_pre = IWL9260A_FW_PRE,
194 .fw_name_pre_b_or_c_step = IWL9260B_FW_PRE,
196 .ht_params = &iwl9000_ht_params,
197 .nvm_ver = IWL9000_NVM_VERSION,
198 .nvm_calib_ver = IWL9000_TX_POWER_VERSION,
199 .max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K,
202 const struct iwl_cfg iwl9460_2ac_cfg_soc = {
203 .name = "Intel(R) Dual Band Wireless AC 9460",
204 .fw_name_pre = IWL9000A_FW_PRE,
205 .fw_name_pre_b_or_c_step = IWL9000B_FW_PRE,
206 .fw_name_pre_rf_next_step = IWL9000RFB_FW_PRE,
208 .ht_params = &iwl9000_ht_params,
209 .nvm_ver = IWL9000_NVM_VERSION,
210 .nvm_calib_ver = IWL9000_TX_POWER_VERSION,
211 .max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K,
216 const struct iwl_cfg iwl9461_2ac_cfg_soc = {
217 .name = "Intel(R) Dual Band Wireless AC 9461",
218 .fw_name_pre = IWL9000A_FW_PRE,
219 .fw_name_pre_b_or_c_step = IWL9000B_FW_PRE,
220 .fw_name_pre_rf_next_step = IWL9000RFB_FW_PRE,
222 .ht_params = &iwl9000_ht_params,
223 .nvm_ver = IWL9000_NVM_VERSION,
224 .nvm_calib_ver = IWL9000_TX_POWER_VERSION,
225 .max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K,
230 const struct iwl_cfg iwl9462_2ac_cfg_soc = {
231 .name = "Intel(R) Dual Band Wireless AC 9462",
232 .fw_name_pre = IWL9000A_FW_PRE,
233 .fw_name_pre_b_or_c_step = IWL9000B_FW_PRE,
234 .fw_name_pre_rf_next_step = IWL9000RFB_FW_PRE,
236 .ht_params = &iwl9000_ht_params,
237 .nvm_ver = IWL9000_NVM_VERSION,
238 .nvm_calib_ver = IWL9000_TX_POWER_VERSION,
239 .max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K,
244 const struct iwl_cfg iwl9560_2ac_cfg = {
245 .name = "Intel(R) Dual Band Wireless AC 9560",
246 .fw_name_pre = IWL9260A_FW_PRE,
247 .fw_name_pre_b_or_c_step = IWL9260B_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,
255 const struct iwl_cfg iwl9560_2ac_cfg_soc = {
256 .name = "Intel(R) Dual Band Wireless AC 9560",
257 .fw_name_pre = IWL9000A_FW_PRE,
258 .fw_name_pre_b_or_c_step = IWL9000B_FW_PRE,
259 .fw_name_pre_rf_next_step = IWL9000RFB_FW_PRE,
261 .ht_params = &iwl9000_ht_params,
262 .nvm_ver = IWL9000_NVM_VERSION,
263 .nvm_calib_ver = IWL9000_TX_POWER_VERSION,
264 .max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K,
268 MODULE_FIRMWARE(IWL9000A_MODULE_FIRMWARE(IWL9000_UCODE_API_MAX));
269 MODULE_FIRMWARE(IWL9000B_MODULE_FIRMWARE(IWL9000_UCODE_API_MAX));
270 MODULE_FIRMWARE(IWL9000RFB_MODULE_FIRMWARE(IWL9000_UCODE_API_MAX));
271 MODULE_FIRMWARE(IWL9260A_MODULE_FIRMWARE(IWL9000_UCODE_API_MAX));
272 MODULE_FIRMWARE(IWL9260B_MODULE_FIRMWARE(IWL9000_UCODE_API_MAX));