forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-02-19 1c055e55a242a33e574e48be530e06770a210dcd
kernel/drivers/net/wireless/intel/iwlwifi/cfg/8000.c
....@@ -8,7 +8,7 @@
88 * Copyright(c) 2014 Intel Corporation. All rights reserved.
99 * Copyright(c) 2014 - 2015 Intel Mobile Communications GmbH
1010 * Copyright(c) 2016 Intel Deutschland GmbH
11
- * Copyright(c) 2018 Intel Corporation
11
+ * Copyright(c) 2018 - 2019 Intel Corporation
1212 *
1313 * This program is free software; you can redistribute it and/or modify
1414 * it under the terms of version 2 of the GNU General Public License as
....@@ -18,11 +18,6 @@
1818 * WITHOUT ANY WARRANTY; without even the implied warranty of
1919 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
2020 * General Public License for more details.
21
- *
22
- * You should have received a copy of the GNU General Public License
23
- * along with this program; if not, write to the Free Software
24
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110,
25
- * USA
2621 *
2722 * The full GNU General Public License is included in this distribution
2823 * in the file called COPYING.
....@@ -35,7 +30,7 @@
3530 *
3631 * Copyright(c) 2014 Intel Corporation. All rights reserved.
3732 * Copyright(c) 2014 - 2015 Intel Mobile Communications GmbH
38
- * Copyright(c) 2018 Intel Corporation
33
+ * Copyright(c) 2018 - 2019 Intel Corporation
3934 * All rights reserved.
4035 *
4136 * Redistribution and use in source and binary forms, with or without
....@@ -80,7 +75,6 @@
8075
8176 /* NVM versions */
8277 #define IWL8000_NVM_VERSION 0x0a1d
83
-#define IWL8000_TX_POWER_VERSION 0xffff /* meaningless */
8478
8579 /* Memory offsets and lengths */
8680 #define IWL8260_DCCM_OFFSET 0x800000
....@@ -98,11 +92,10 @@
9892 #define IWL8265_MODULE_FIRMWARE(api) \
9993 IWL8265_FW_PRE __stringify(api) ".ucode"
10094
101
-#define NVM_HW_SECTION_NUM_FAMILY_8000 10
10295 #define DEFAULT_NVM_FILE_FAMILY_8000C "nvmData-8000C"
10396
10497 static const struct iwl_base_params iwl8000_base_params = {
105
- .eeprom_size = OTP_LOW_IMAGE_SIZE_FAMILY_8000,
98
+ .eeprom_size = OTP_LOW_IMAGE_SIZE_32K,
10699 .num_of_queues = 31,
107100 .max_tfd_queue_size = 256,
108101 .shadow_ram_support = true,
....@@ -141,10 +134,10 @@
141134 };
142135
143136 #define IWL_DEVICE_8000_COMMON \
144
- .device_family = IWL_DEVICE_FAMILY_8000, \
145
- .base_params = &iwl8000_base_params, \
137
+ .trans.device_family = IWL_DEVICE_FAMILY_8000, \
138
+ .trans.base_params = &iwl8000_base_params, \
146139 .led_mode = IWL_LED_RF_STATE, \
147
- .nvm_hw_section_num = NVM_HW_SECTION_NUM_FAMILY_8000, \
140
+ .nvm_hw_section_num = 10, \
148141 .features = NETIF_F_RXCSUM, \
149142 .non_shared_ant = ANT_A, \
150143 .dccm_offset = IWL8260_DCCM_OFFSET, \
....@@ -158,8 +151,7 @@
158151 .apmg_not_supported = true, \
159152 .nvm_type = IWL_NVM_EXT, \
160153 .dbgc_supported = true, \
161
- .min_umac_error_event_table = 0x800000, \
162
- .csr = &iwl_csr_v1
154
+ .min_umac_error_event_table = 0x800000
163155
164156 #define IWL_DEVICE_8000 \
165157 IWL_DEVICE_8000_COMMON, \
....@@ -182,7 +174,6 @@
182174 IWL_DEVICE_8260,
183175 .ht_params = &iwl8000_ht_params,
184176 .nvm_ver = IWL8000_NVM_VERSION,
185
- .nvm_calib_ver = IWL8000_TX_POWER_VERSION,
186177 };
187178
188179 const struct iwl_cfg iwl8260_2ac_cfg = {
....@@ -191,7 +182,6 @@
191182 IWL_DEVICE_8260,
192183 .ht_params = &iwl8000_ht_params,
193184 .nvm_ver = IWL8000_NVM_VERSION,
194
- .nvm_calib_ver = IWL8000_TX_POWER_VERSION,
195185 .max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K,
196186 };
197187
....@@ -201,7 +191,6 @@
201191 IWL_DEVICE_8265,
202192 .ht_params = &iwl8000_ht_params,
203193 .nvm_ver = IWL8000_NVM_VERSION,
204
- .nvm_calib_ver = IWL8000_TX_POWER_VERSION,
205194 .max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K,
206195 .vht_mu_mimo_supported = true,
207196 };
....@@ -212,7 +201,6 @@
212201 IWL_DEVICE_8265,
213202 .ht_params = &iwl8000_ht_params,
214203 .nvm_ver = IWL8000_NVM_VERSION,
215
- .nvm_calib_ver = IWL8000_TX_POWER_VERSION,
216204 .max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K,
217205 .vht_mu_mimo_supported = true,
218206 };
....@@ -223,7 +211,6 @@
223211 IWL_DEVICE_8000,
224212 .ht_params = &iwl8000_ht_params,
225213 .nvm_ver = IWL8000_NVM_VERSION,
226
- .nvm_calib_ver = IWL8000_TX_POWER_VERSION,
227214 .max_ht_ampdu_exponent = IEEE80211_HT_MAX_AMPDU_64K,
228215 };
229216