1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 2 /* 3 * Copyright (C) 2014, 2018-2020, 2023, 2025 Intel Corporation 4 * Copyright (C) 2014-2015 Intel Mobile Communications GmbH 5 * Copyright (C) 2016 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 IWL8000_UCODE_API_MAX 36 13 #define IWL8265_UCODE_API_MAX 36 14 15 /* Lowest firmware API version supported */ 16 #define IWL8000_UCODE_API_MIN 22 17 #define IWL8265_UCODE_API_MIN 22 18 19 /* NVM versions */ 20 #define IWL8000_NVM_VERSION 0x0a1d 21 22 /* Memory offsets and lengths */ 23 #define IWL8260_DCCM_OFFSET 0x800000 24 #define IWL8260_DCCM_LEN 0x18000 25 #define IWL8260_DCCM2_OFFSET 0x880000 26 #define IWL8260_DCCM2_LEN 0x8000 27 #define IWL8260_SMEM_OFFSET 0x400000 28 #define IWL8260_SMEM_LEN 0x68000 29 30 #define IWL8000_FW_PRE "iwlwifi-8000C" 31 #define IWL8000_MODULE_FIRMWARE(api) \ 32 IWL8000_FW_PRE "-" __stringify(api) ".ucode" 33 34 #define IWL8265_FW_PRE "iwlwifi-8265" 35 #define IWL8265_MODULE_FIRMWARE(api) \ 36 IWL8265_FW_PRE "-" __stringify(api) ".ucode" 37 38 static const struct iwl_family_base_params iwl8000_base = { 39 .eeprom_size = OTP_LOW_IMAGE_SIZE_32K, 40 .num_of_queues = 31, 41 .max_tfd_queue_size = 256, 42 .shadow_ram_support = true, 43 .led_compensation = 57, 44 .wd_timeout = IWL_LONG_WD_TIMEOUT, 45 .max_event_log_size = 512, 46 .shadow_reg_enable = true, 47 .pcie_l1_allowed = true, 48 .nvm_hw_section_num = 10, 49 .features = NETIF_F_RXCSUM, 50 .smem_offset = IWL8260_SMEM_OFFSET, 51 .smem_len = IWL8260_SMEM_LEN, 52 .apmg_not_supported = true, 53 }; 54 55 static const struct iwl_tt_params iwl8000_tt_params = { 56 .ct_kill_entry = 115, 57 .ct_kill_exit = 93, 58 .ct_kill_duration = 5, 59 .dynamic_smps_entry = 111, 60 .dynamic_smps_exit = 107, 61 .tx_protection_entry = 112, 62 .tx_protection_exit = 105, 63 .tx_backoff = { 64 {.temperature = 110, .backoff = 200}, 65 {.temperature = 111, .backoff = 600}, 66 {.temperature = 112, .backoff = 1200}, 67 {.temperature = 113, .backoff = 2000}, 68 {.temperature = 114, .backoff = 4000}, 69 }, 70 .support_ct_kill = true, 71 .support_dynamic_smps = true, 72 .support_tx_protection = true, 73 .support_tx_backoff = true, 74 }; 75 76 const struct iwl_mac_cfg iwl8000_mac_cfg = { 77 .device_family = IWL_DEVICE_FAMILY_8000, 78 .base = &iwl8000_base, 79 }; 80 81 #define IWL_DEVICE_8000_COMMON \ 82 .led_mode = IWL_LED_RF_STATE, \ 83 .non_shared_ant = ANT_A, \ 84 .dccm_offset = IWL8260_DCCM_OFFSET, \ 85 .dccm_len = IWL8260_DCCM_LEN, \ 86 .dccm2_offset = IWL8260_DCCM2_OFFSET, \ 87 .dccm2_len = IWL8260_DCCM2_LEN, \ 88 .thermal_params = &iwl8000_tt_params, \ 89 .nvm_type = IWL_NVM_EXT 90 91 #define IWL_DEVICE_8260 \ 92 IWL_DEVICE_8000_COMMON, \ 93 .ucode_api_max = IWL8000_UCODE_API_MAX, \ 94 .ucode_api_min = IWL8000_UCODE_API_MIN \ 95 96 #define IWL_DEVICE_8265 \ 97 IWL_DEVICE_8000_COMMON, \ 98 .ucode_api_max = IWL8265_UCODE_API_MAX, \ 99 .ucode_api_min = IWL8265_UCODE_API_MIN \ 100 101 const char iwl8260_2n_name[] = "Intel(R) Dual Band Wireless-N 8260"; 102 const char iwl8260_2ac_name[] = "Intel(R) Dual Band Wireless-AC 8260"; 103 const char iwl8265_2ac_name[] = "Intel(R) Dual Band Wireless-AC 8265"; 104 const char iwl8275_2ac_name[] = "Intel(R) Dual Band Wireless-AC 8275"; 105 const char iwl4165_2ac_name[] = "Intel(R) Dual Band Wireless-AC 4165"; 106 107 const char iwl_killer_1435i_name[] = 108 "Killer(R) Wireless-AC 1435i Wireless Network Adapter (8265D2W)"; 109 const char iwl_killer_1434_kix_name[] = 110 "Killer(R) Wireless-AC 1435-KIX Wireless Network Adapter (8265NGW)"; 111 112 const struct iwl_rf_cfg iwl8260_cfg = { 113 .fw_name_pre = IWL8000_FW_PRE, 114 IWL_DEVICE_8260, 115 .ht_params = { 116 .stbc = true, 117 .ldpc = true, 118 .ht40_bands = BIT(NL80211_BAND_2GHZ) | BIT(NL80211_BAND_5GHZ), 119 }, 120 .nvm_ver = IWL8000_NVM_VERSION, 121 }; 122 123 const struct iwl_rf_cfg iwl8265_cfg = { 124 .fw_name_pre = IWL8265_FW_PRE, 125 IWL_DEVICE_8265, 126 .ht_params = { 127 .stbc = true, 128 .ldpc = true, 129 .ht40_bands = BIT(NL80211_BAND_2GHZ) | BIT(NL80211_BAND_5GHZ), 130 }, 131 .nvm_ver = IWL8000_NVM_VERSION, 132 .vht_mu_mimo_supported = true, 133 }; 134 135 MODULE_FIRMWARE(IWL8000_MODULE_FIRMWARE(IWL8000_UCODE_API_MAX)); 136 MODULE_FIRMWARE(IWL8265_MODULE_FIRMWARE(IWL8265_UCODE_API_MAX)); 137