FILE
7000.c
File preview with syntax highlighting.
linux-6.19.14/drivers/net/wireless/intel/iwlwifi/cfg/7000.c
1// SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 2/* 3 * Copyright (C) 2012-2014, 2018-2020, 2023, 2025 Intel Corporation 4 * Copyright (C) 2013-2014 Intel Mobile Communications GmbH 5 * Copyright (C) 2015 Intel Deutschland GmbH 6 */ 7#include <linux/module.h> 8#include <linux/stringify.h> 9#include "iwl-config.h" 10 11/* Highest firmware API version supported */ 12#define IWL7260_UCODE_API_MAX 17 13#define IWL7265_UCODE_API_MAX 17 14#define IWL7265D_UCODE_API_MAX 29 15#define IWL3168_UCODE_API_MAX 29 16 17/* Lowest firmware API version supported */ 18#define IWL7260_UCODE_API_MIN 17 19#define IWL7265_UCODE_API_MIN 17 20#define IWL7265D_UCODE_API_MIN 22 21#define IWL3168_UCODE_API_MIN 22 22 23/* NVM versions */ 24#define IWL7260_NVM_VERSION 0x0a1d 25#define IWL3160_NVM_VERSION 0x709 26#define IWL3165_NVM_VERSION 0x709 27#define IWL3168_NVM_VERSION 0xd01 28#define IWL7265_NVM_VERSION 0x0a1d 29#define IWL7265D_NVM_VERSION 0x0c11 30 31/* DCCM offsets and lengths */ 32#define IWL7000_DCCM_OFFSET 0x800000 33#define IWL7260_DCCM_LEN 0x14000 34#define IWL3160_DCCM_LEN 0x10000 35#define IWL7265_DCCM_LEN 0x17A00 36 37#define IWL7260_FW_PRE "iwlwifi-7260" 38#define IWL7260_MODULE_FIRMWARE(api) IWL7260_FW_PRE "-" __stringify(api) ".ucode" 39 40#define IWL3160_FW_PRE "iwlwifi-3160" 41#define IWL3160_MODULE_FIRMWARE(api) IWL3160_FW_PRE "-" __stringify(api) ".ucode" 42 43#define IWL3168_FW_PRE "iwlwifi-3168" 44#define IWL3168_MODULE_FIRMWARE(api) IWL3168_FW_PRE "-" __stringify(api) ".ucode" 45 46#define IWL7265_FW_PRE "iwlwifi-7265" 47#define IWL7265_MODULE_FIRMWARE(api) IWL7265_FW_PRE "-" __stringify(api) ".ucode" 48 49#define IWL7265D_FW_PRE "iwlwifi-7265D" 50#define IWL7265D_MODULE_FIRMWARE(api) IWL7265D_FW_PRE "-" __stringify(api) ".ucode" 51 52static const struct iwl_family_base_params iwl7000_base = { 53 .eeprom_size = OTP_LOW_IMAGE_SIZE_16K, 54 .num_of_queues = 31, 55 .max_tfd_queue_size = 256, 56 .shadow_ram_support = true, 57 .led_compensation = 57, 58 .wd_timeout = IWL_LONG_WD_TIMEOUT, 59 .max_event_log_size = 512, 60 .shadow_reg_enable = true, 61 .pcie_l1_allowed = true, 62 .apmg_wake_up_wa = true, 63 .nvm_hw_section_num = 0, 64}; 65 66static const struct iwl_tt_params iwl7000_high_temp_tt_params = { 67 .ct_kill_entry = 118, 68 .ct_kill_exit = 96, 69 .ct_kill_duration = 5, 70 .dynamic_smps_entry = 114, 71 .dynamic_smps_exit = 110, 72 .tx_protection_entry = 114, 73 .tx_protection_exit = 108, 74 .tx_backoff = { 75 {.temperature = 112, .backoff = 300}, 76 {.temperature = 113, .backoff = 800}, 77 {.temperature = 114, .backoff = 1500}, 78 {.temperature = 115, .backoff = 3000}, 79 {.temperature = 116, .backoff = 5000}, 80 {.temperature = 117, .backoff = 10000}, 81 }, 82 .support_ct_kill = true, 83 .support_dynamic_smps = true, 84 .support_tx_protection = true, 85 .support_tx_backoff = true, 86}; 87 88const struct iwl_mac_cfg iwl7000_mac_cfg = { 89 .device_family = IWL_DEVICE_FAMILY_7000, 90 .base = &iwl7000_base, 91}; 92 93#define IWL_DEVICE_7000_COMMON \ 94 .led_mode = IWL_LED_RF_STATE, \ 95 .non_shared_ant = ANT_A, \ 96 .dccm_offset = IWL7000_DCCM_OFFSET 97 98#define IWL_DEVICE_7000 \ 99 IWL_DEVICE_7000_COMMON, \ 100 .ucode_api_max = IWL7260_UCODE_API_MAX, \ 101 .ucode_api_min = IWL7260_UCODE_API_MIN 102 103#define IWL_DEVICE_7005 \ 104 IWL_DEVICE_7000_COMMON, \ 105 .ucode_api_max = IWL7265_UCODE_API_MAX, \ 106 .ucode_api_min = IWL7265_UCODE_API_MIN 107 108#define IWL_DEVICE_3008 \ 109 IWL_DEVICE_7000_COMMON, \ 110 .ucode_api_max = IWL3168_UCODE_API_MAX, \ 111 .ucode_api_min = IWL3168_UCODE_API_MIN 112 113#define IWL_DEVICE_7005D \ 114 IWL_DEVICE_7000_COMMON, \ 115 .ucode_api_max = IWL7265D_UCODE_API_MAX, \ 116 .ucode_api_min = IWL7265D_UCODE_API_MIN 117 118const char iwl7260_2ac_name[] = "Intel(R) Dual Band Wireless AC 7260"; 119const char iwl7260_2n_name[] = "Intel(R) Dual Band Wireless N 7260"; 120const char iwl7260_n_name[] = "Intel(R) Wireless N 7260"; 121const char iwl3160_2ac_name[] = "Intel(R) Dual Band Wireless AC 3160"; 122const char iwl3160_2n_name[] = "Intel(R) Dual Band Wireless N 3160"; 123const char iwl3160_n_name[] = "Intel(R) Wireless N 3160"; 124const char iwl3165_2ac_name[] = "Intel(R) Dual Band Wireless-AC 3165"; 125const char iwl3168_2ac_name[] = "Intel(R) Dual Band Wireless-AC 3168"; 126const char iwl7265_2ac_name[] = "Intel(R) Dual Band Wireless-AC 7265"; 127const char iwl7265_2n_name[] = "Intel(R) Dual Band Wireless-N 7265"; 128const char iwl7265_n_name[] = "Intel(R) Wireless-N 7265"; 129 130const struct iwl_rf_cfg iwl7260_cfg = { 131 .fw_name_pre = IWL7260_FW_PRE, 132 IWL_DEVICE_7000, 133 .ht_params = { 134 .stbc = true, 135 .ht40_bands = BIT(NL80211_BAND_2GHZ) | BIT(NL80211_BAND_5GHZ), 136 }, 137 .nvm_ver = IWL7260_NVM_VERSION, 138 .host_interrupt_operation_mode = true, 139 .lp_xtal_workaround = true, 140 .dccm_len = IWL7260_DCCM_LEN, 141}; 142 143const struct iwl_rf_cfg iwl7260_high_temp_cfg = { 144 .fw_name_pre = IWL7260_FW_PRE, 145 IWL_DEVICE_7000, 146 .ht_params = { 147 .stbc = true, 148 .ht40_bands = BIT(NL80211_BAND_2GHZ) | BIT(NL80211_BAND_5GHZ), 149 }, 150 .nvm_ver = IWL7260_NVM_VERSION, 151 .host_interrupt_operation_mode = true, 152 .lp_xtal_workaround = true, 153 .dccm_len = IWL7260_DCCM_LEN, 154 .thermal_params = &iwl7000_high_temp_tt_params, 155}; 156 157const struct iwl_rf_cfg iwl3160_cfg = { 158 .fw_name_pre = IWL3160_FW_PRE, 159 IWL_DEVICE_7000, 160 .ht_params = { 161 .stbc = true, 162 .ht40_bands = BIT(NL80211_BAND_2GHZ) | BIT(NL80211_BAND_5GHZ), 163 }, 164 .nvm_ver = IWL3160_NVM_VERSION, 165 .host_interrupt_operation_mode = true, 166 .dccm_len = IWL3160_DCCM_LEN, 167}; 168 169static const struct iwl_pwr_tx_backoff iwl7265_pwr_tx_backoffs[] = { 170 {.pwr = 1600, .backoff = 0}, 171 {.pwr = 1300, .backoff = 467}, 172 {.pwr = 900, .backoff = 1900}, 173 {.pwr = 800, .backoff = 2630}, 174 {.pwr = 700, .backoff = 3720}, 175 {.pwr = 600, .backoff = 5550}, 176 {.pwr = 500, .backoff = 9350}, 177 {0}, 178}; 179 180const struct iwl_rf_cfg iwl3165_2ac_cfg = { 181 .fw_name_pre = IWL7265D_FW_PRE, 182 IWL_DEVICE_7005D, 183 .ht_params = { 184 .stbc = true, 185 .ht40_bands = BIT(NL80211_BAND_2GHZ) | BIT(NL80211_BAND_5GHZ), 186 }, 187 .nvm_ver = IWL3165_NVM_VERSION, 188 .pwr_tx_backoffs = iwl7265_pwr_tx_backoffs, 189 .dccm_len = IWL7265_DCCM_LEN, 190}; 191 192const struct iwl_rf_cfg iwl3168_2ac_cfg = { 193 .fw_name_pre = IWL3168_FW_PRE, 194 IWL_DEVICE_3008, 195 .ht_params = { 196 .stbc = true, 197 .ht40_bands = BIT(NL80211_BAND_2GHZ) | BIT(NL80211_BAND_5GHZ), 198 }, 199 .nvm_ver = IWL3168_NVM_VERSION, 200 .pwr_tx_backoffs = iwl7265_pwr_tx_backoffs, 201 .dccm_len = IWL7265_DCCM_LEN, 202 .nvm_type = IWL_NVM_SDP, 203}; 204 205const struct iwl_rf_cfg iwl7265_cfg = { 206 .fw_name_pre = IWL7265_FW_PRE, 207 IWL_DEVICE_7005, 208 .ht_params = { 209 .stbc = true, 210 .ldpc = true, 211 .ht40_bands = BIT(NL80211_BAND_2GHZ) | BIT(NL80211_BAND_5GHZ), 212 }, 213 .nvm_ver = IWL7265_NVM_VERSION, 214 .pwr_tx_backoffs = iwl7265_pwr_tx_backoffs, 215 .dccm_len = IWL7265_DCCM_LEN, 216}; 217 218const struct iwl_rf_cfg iwl7265d_cfg = { 219 .fw_name_pre = IWL7265D_FW_PRE, 220 IWL_DEVICE_7005D, 221 .ht_params = { 222 .stbc = true, 223 .ldpc = true, 224 .ht40_bands = BIT(NL80211_BAND_2GHZ) | BIT(NL80211_BAND_5GHZ), 225 }, 226 .nvm_ver = IWL7265D_NVM_VERSION, 227 .pwr_tx_backoffs = iwl7265_pwr_tx_backoffs, 228 .dccm_len = IWL7265_DCCM_LEN, 229}; 230 231MODULE_FIRMWARE(IWL7260_MODULE_FIRMWARE(IWL7260_UCODE_API_MAX)); 232MODULE_FIRMWARE(IWL3160_MODULE_FIRMWARE(IWL7260_UCODE_API_MAX)); 233MODULE_FIRMWARE(IWL3168_MODULE_FIRMWARE(IWL3168_UCODE_API_MAX)); 234MODULE_FIRMWARE(IWL7265_MODULE_FIRMWARE(IWL7265_UCODE_API_MAX)); 235MODULE_FIRMWARE(IWL7265D_MODULE_FIRMWARE(IWL7265D_UCODE_API_MAX));
~/
Read-only file preview.