1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64 #include <linux/module.h>
65 #include <linux/stringify.h>
66 #include "iwl-config.h"
67
68
69 #define IWL8000_UCODE_API_MAX 36
70 #define IWL8265_UCODE_API_MAX 36
71
72
73 #define IWL8000_UCODE_API_MIN 22
74 #define IWL8265_UCODE_API_MIN 22
75
76
77 #define IWL8000_NVM_VERSION 0x0a1d
78
79
80 #define IWL8260_DCCM_OFFSET 0x800000
81 #define IWL8260_DCCM_LEN 0x18000
82 #define IWL8260_DCCM2_OFFSET 0x880000
83 #define IWL8260_DCCM2_LEN 0x8000
84 #define IWL8260_SMEM_OFFSET 0x400000
85 #define IWL8260_SMEM_LEN 0x68000
86
87 #define IWL8000_FW_PRE "iwlwifi-8000C-"
88 #define IWL8000_MODULE_FIRMWARE(api) \
89 IWL8000_FW_PRE __stringify(api) ".ucode"
90
91 #define IWL8265_FW_PRE "iwlwifi-8265-"
92 #define IWL8265_MODULE_FIRMWARE(api) \
93 IWL8265_FW_PRE __stringify(api) ".ucode"
94
95 #define DEFAULT_NVM_FILE_FAMILY_8000C "nvmData-8000C"
96
97 static const struct iwl_base_params iwl8000_base_params = {
98 .eeprom_size = OTP_LOW_IMAGE_SIZE_32K,
99 .num_of_queues = 31,
100 .max_tfd_queue_size = 256,
101 .shadow_ram_support = true,
102 .led_compensation = 57,
103 .wd_timeout = IWL_LONG_WD_TIMEOUT,
104 .max_event_log_size = 512,
105 .shadow_reg_enable = true,
106 .pcie_l1_allowed = true,
107 };
108
109 static const struct iwl_ht_params iwl8000_ht_params = {
110 .stbc = true,
111 .ldpc = true,
112 .ht40_bands = BIT(NL80211_BAND_2GHZ) | BIT(NL80211_BAND_5GHZ),
113 };
114
115 static const struct iwl_tt_params iwl8000_tt_params = {
116 .ct_kill_entry = 115,
117 .ct_kill_exit = 93,
118 .ct_kill_duration = 5,
119 .dynamic_smps_entry = 111,
120 .dynamic_smps_exit = 107,
121 .tx_protection_entry = 112,
122 .tx_protection_exit = 105,
123 .tx_backoff = {
124 {.temperature = 110, .backoff = 200},
125 {.temperature = 111, .backoff = 600},
126 {.temperature = 112, .backoff = 1200},
127 {.temperature = 113, .backoff = 2000},
128 {.temperature = 114, .backoff = 4000},
129 },
130 .support_ct_kill = true,
131 .support_dynamic_smps = true,
132 .support_tx_protection = true,
133 .support_tx_backoff = true,
134 };
135
136 #define IWL_DEVICE_8000_COMMON \
137 .trans.device_family = IWL_DEVICE_FAMILY_8000, \
138 .trans.base_params = &iwl8000_base_params, \
139 .led_mode = IWL_LED_RF_STATE, \
140 .nvm_hw_section_num = 10, \
141 .features = NETIF_F_RXCSUM, \
142 .non_shared_ant = ANT_A, \
143 .dccm_offset = IWL8260_DCCM_OFFSET, \
144 .dccm_len = IWL8260_DCCM_LEN, \
145 .dccm2_offset = IWL8260_DCCM2_OFFSET, \
146 .dccm2_len = IWL8260_DCCM2_LEN, \
147 .smem_offset = IWL8260_SMEM_OFFSET, \
148 .smem_len = IWL8260_SMEM_LEN, \
149 .default_nvm_file_C_step = DEFAULT_NVM_FILE_FAMILY_8000C, \
150 .thermal_params = &iwl8000_tt_params, \
151 .apmg_not_supported = true, \
152 .nvm_type = IWL_NVM_EXT, \
153 .dbgc_supported = true, \
154 .min_umac_error_event_table = 0x800000, \
155 .trans.csr = &iwl_csr_v1
156
157 #define IWL_DEVICE_8000 \
158 IWL_DEVICE_8000_COMMON, \
159 .ucode_api_max = IWL8000_UCODE_API_MAX, \
160 .ucode_api_min = IWL8000_UCODE_API_MIN \
161
162 #define IWL_DEVICE_8260 \
163 IWL_DEVICE_8000_COMMON, \
164 .ucode_api_max = IWL8000_UCODE_API_MAX, \
165 .ucode_api_min = IWL8000_UCODE_API_MIN \
166
167 #define IWL_DEVICE_8265 \
168 IWL_DEVICE_8000_COMMON, \
169 .ucode_api_max = IWL8265_UCODE_API_MAX, \
170 .ucode_api_min = IWL8265_UCODE_API_MIN \
171
172 const struct iwl_cfg iwl8260_2n_cfg = {
173 .name = "Intel(R) Dual Band Wireless N 8260",
174 .fw_name_pre = IWL8000_FW_PRE,
175 IWL_DEVICE_8260,
176 .ht_params = &iwl8000_ht_params,
177 .nvm_ver = IWL8000_NVM_VERSION,
178 };
179
180 const struct iwl_cfg iwl8260_2ac_cfg = {
181 .name = "Intel(R) Dual Band Wireless AC 8260",
182 .fw_name_pre = IWL8000_FW_PRE,
183 IWL_DEVICE_8260,
184 .ht_params = &iwl8000_ht_params,
185 .nvm_ver = IWL8000_NVM_VERSION,
186 .max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K,
187 };
188
189 const struct iwl_cfg iwl8265_2ac_cfg = {
190 .name = "Intel(R) Dual Band Wireless AC 8265",
191 .fw_name_pre = IWL8265_FW_PRE,
192 IWL_DEVICE_8265,
193 .ht_params = &iwl8000_ht_params,
194 .nvm_ver = IWL8000_NVM_VERSION,
195 .max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K,
196 .vht_mu_mimo_supported = true,
197 };
198
199 const struct iwl_cfg iwl8275_2ac_cfg = {
200 .name = "Intel(R) Dual Band Wireless AC 8275",
201 .fw_name_pre = IWL8265_FW_PRE,
202 IWL_DEVICE_8265,
203 .ht_params = &iwl8000_ht_params,
204 .nvm_ver = IWL8000_NVM_VERSION,
205 .max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K,
206 .vht_mu_mimo_supported = true,
207 };
208
209 const struct iwl_cfg iwl4165_2ac_cfg = {
210 .name = "Intel(R) Dual Band Wireless AC 4165",
211 .fw_name_pre = IWL8000_FW_PRE,
212 IWL_DEVICE_8000,
213 .ht_params = &iwl8000_ht_params,
214 .nvm_ver = IWL8000_NVM_VERSION,
215 .max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K,
216 };
217
218 MODULE_FIRMWARE(IWL8000_MODULE_FIRMWARE(IWL8000_UCODE_API_MAX));
219 MODULE_FIRMWARE(IWL8265_MODULE_FIRMWARE(IWL8265_UCODE_API_MAX));