0001
0002
0003
0004
0005
0006
0007 #include <linux/module.h>
0008 #include <linux/stringify.h>
0009 #include "iwl-config.h"
0010
0011
0012 #define IWL7260_UCODE_API_MAX 17
0013 #define IWL7265_UCODE_API_MAX 17
0014 #define IWL7265D_UCODE_API_MAX 29
0015 #define IWL3168_UCODE_API_MAX 29
0016
0017
0018 #define IWL7260_UCODE_API_MIN 17
0019 #define IWL7265_UCODE_API_MIN 17
0020 #define IWL7265D_UCODE_API_MIN 22
0021 #define IWL3168_UCODE_API_MIN 22
0022
0023
0024 #define IWL7260_NVM_VERSION 0x0a1d
0025 #define IWL3160_NVM_VERSION 0x709
0026 #define IWL3165_NVM_VERSION 0x709
0027 #define IWL3168_NVM_VERSION 0xd01
0028 #define IWL7265_NVM_VERSION 0x0a1d
0029 #define IWL7265D_NVM_VERSION 0x0c11
0030
0031
0032 #define IWL7000_DCCM_OFFSET 0x800000
0033 #define IWL7260_DCCM_LEN 0x14000
0034 #define IWL3160_DCCM_LEN 0x10000
0035 #define IWL7265_DCCM_LEN 0x17A00
0036
0037 #define IWL7260_FW_PRE "iwlwifi-7260-"
0038 #define IWL7260_MODULE_FIRMWARE(api) IWL7260_FW_PRE __stringify(api) ".ucode"
0039
0040 #define IWL3160_FW_PRE "iwlwifi-3160-"
0041 #define IWL3160_MODULE_FIRMWARE(api) IWL3160_FW_PRE __stringify(api) ".ucode"
0042
0043 #define IWL3168_FW_PRE "iwlwifi-3168-"
0044 #define IWL3168_MODULE_FIRMWARE(api) IWL3168_FW_PRE __stringify(api) ".ucode"
0045
0046 #define IWL7265_FW_PRE "iwlwifi-7265-"
0047 #define IWL7265_MODULE_FIRMWARE(api) IWL7265_FW_PRE __stringify(api) ".ucode"
0048
0049 #define IWL7265D_FW_PRE "iwlwifi-7265D-"
0050 #define IWL7265D_MODULE_FIRMWARE(api) IWL7265D_FW_PRE __stringify(api) ".ucode"
0051
0052 static const struct iwl_base_params iwl7000_base_params = {
0053 .eeprom_size = OTP_LOW_IMAGE_SIZE_16K,
0054 .num_of_queues = 31,
0055 .max_tfd_queue_size = 256,
0056 .shadow_ram_support = true,
0057 .led_compensation = 57,
0058 .wd_timeout = IWL_LONG_WD_TIMEOUT,
0059 .max_event_log_size = 512,
0060 .shadow_reg_enable = true,
0061 .pcie_l1_allowed = true,
0062 .apmg_wake_up_wa = true,
0063 };
0064
0065 static const struct iwl_tt_params iwl7000_high_temp_tt_params = {
0066 .ct_kill_entry = 118,
0067 .ct_kill_exit = 96,
0068 .ct_kill_duration = 5,
0069 .dynamic_smps_entry = 114,
0070 .dynamic_smps_exit = 110,
0071 .tx_protection_entry = 114,
0072 .tx_protection_exit = 108,
0073 .tx_backoff = {
0074 {.temperature = 112, .backoff = 300},
0075 {.temperature = 113, .backoff = 800},
0076 {.temperature = 114, .backoff = 1500},
0077 {.temperature = 115, .backoff = 3000},
0078 {.temperature = 116, .backoff = 5000},
0079 {.temperature = 117, .backoff = 10000},
0080 },
0081 .support_ct_kill = true,
0082 .support_dynamic_smps = true,
0083 .support_tx_protection = true,
0084 .support_tx_backoff = true,
0085 };
0086
0087 static const struct iwl_ht_params iwl7000_ht_params = {
0088 .stbc = true,
0089 .ht40_bands = BIT(NL80211_BAND_2GHZ) | BIT(NL80211_BAND_5GHZ),
0090 };
0091
0092 #define IWL_DEVICE_7000_COMMON \
0093 .trans.device_family = IWL_DEVICE_FAMILY_7000, \
0094 .trans.base_params = &iwl7000_base_params, \
0095 .led_mode = IWL_LED_RF_STATE, \
0096 .nvm_hw_section_num = 0, \
0097 .non_shared_ant = ANT_A, \
0098 .dccm_offset = IWL7000_DCCM_OFFSET
0099
0100 #define IWL_DEVICE_7000 \
0101 IWL_DEVICE_7000_COMMON, \
0102 .ucode_api_max = IWL7260_UCODE_API_MAX, \
0103 .ucode_api_min = IWL7260_UCODE_API_MIN
0104
0105 #define IWL_DEVICE_7005 \
0106 IWL_DEVICE_7000_COMMON, \
0107 .ucode_api_max = IWL7265_UCODE_API_MAX, \
0108 .ucode_api_min = IWL7265_UCODE_API_MIN
0109
0110 #define IWL_DEVICE_3008 \
0111 IWL_DEVICE_7000_COMMON, \
0112 .ucode_api_max = IWL3168_UCODE_API_MAX, \
0113 .ucode_api_min = IWL3168_UCODE_API_MIN
0114
0115 #define IWL_DEVICE_7005D \
0116 IWL_DEVICE_7000_COMMON, \
0117 .ucode_api_max = IWL7265D_UCODE_API_MAX, \
0118 .ucode_api_min = IWL7265D_UCODE_API_MIN
0119
0120 const struct iwl_cfg iwl7260_2ac_cfg = {
0121 .name = "Intel(R) Dual Band Wireless AC 7260",
0122 .fw_name_pre = IWL7260_FW_PRE,
0123 IWL_DEVICE_7000,
0124 .ht_params = &iwl7000_ht_params,
0125 .nvm_ver = IWL7260_NVM_VERSION,
0126 .host_interrupt_operation_mode = true,
0127 .lp_xtal_workaround = true,
0128 .dccm_len = IWL7260_DCCM_LEN,
0129 };
0130
0131 const struct iwl_cfg iwl7260_2ac_cfg_high_temp = {
0132 .name = "Intel(R) Dual Band Wireless AC 7260",
0133 .fw_name_pre = IWL7260_FW_PRE,
0134 IWL_DEVICE_7000,
0135 .ht_params = &iwl7000_ht_params,
0136 .nvm_ver = IWL7260_NVM_VERSION,
0137 .high_temp = true,
0138 .host_interrupt_operation_mode = true,
0139 .lp_xtal_workaround = true,
0140 .dccm_len = IWL7260_DCCM_LEN,
0141 .thermal_params = &iwl7000_high_temp_tt_params,
0142 };
0143
0144 const struct iwl_cfg iwl7260_2n_cfg = {
0145 .name = "Intel(R) Dual Band Wireless N 7260",
0146 .fw_name_pre = IWL7260_FW_PRE,
0147 IWL_DEVICE_7000,
0148 .ht_params = &iwl7000_ht_params,
0149 .nvm_ver = IWL7260_NVM_VERSION,
0150 .host_interrupt_operation_mode = true,
0151 .lp_xtal_workaround = true,
0152 .dccm_len = IWL7260_DCCM_LEN,
0153 };
0154
0155 const struct iwl_cfg iwl7260_n_cfg = {
0156 .name = "Intel(R) Wireless N 7260",
0157 .fw_name_pre = IWL7260_FW_PRE,
0158 IWL_DEVICE_7000,
0159 .ht_params = &iwl7000_ht_params,
0160 .nvm_ver = IWL7260_NVM_VERSION,
0161 .host_interrupt_operation_mode = true,
0162 .lp_xtal_workaround = true,
0163 .dccm_len = IWL7260_DCCM_LEN,
0164 };
0165
0166 const struct iwl_cfg iwl3160_2ac_cfg = {
0167 .name = "Intel(R) Dual Band Wireless AC 3160",
0168 .fw_name_pre = IWL3160_FW_PRE,
0169 IWL_DEVICE_7000,
0170 .ht_params = &iwl7000_ht_params,
0171 .nvm_ver = IWL3160_NVM_VERSION,
0172 .host_interrupt_operation_mode = true,
0173 .dccm_len = IWL3160_DCCM_LEN,
0174 };
0175
0176 const struct iwl_cfg iwl3160_2n_cfg = {
0177 .name = "Intel(R) Dual Band Wireless N 3160",
0178 .fw_name_pre = IWL3160_FW_PRE,
0179 IWL_DEVICE_7000,
0180 .ht_params = &iwl7000_ht_params,
0181 .nvm_ver = IWL3160_NVM_VERSION,
0182 .host_interrupt_operation_mode = true,
0183 .dccm_len = IWL3160_DCCM_LEN,
0184 };
0185
0186 const struct iwl_cfg iwl3160_n_cfg = {
0187 .name = "Intel(R) Wireless N 3160",
0188 .fw_name_pre = IWL3160_FW_PRE,
0189 IWL_DEVICE_7000,
0190 .ht_params = &iwl7000_ht_params,
0191 .nvm_ver = IWL3160_NVM_VERSION,
0192 .host_interrupt_operation_mode = true,
0193 .dccm_len = IWL3160_DCCM_LEN,
0194 };
0195
0196 static const struct iwl_pwr_tx_backoff iwl7265_pwr_tx_backoffs[] = {
0197 {.pwr = 1600, .backoff = 0},
0198 {.pwr = 1300, .backoff = 467},
0199 {.pwr = 900, .backoff = 1900},
0200 {.pwr = 800, .backoff = 2630},
0201 {.pwr = 700, .backoff = 3720},
0202 {.pwr = 600, .backoff = 5550},
0203 {.pwr = 500, .backoff = 9350},
0204 {0},
0205 };
0206
0207 static const struct iwl_ht_params iwl7265_ht_params = {
0208 .stbc = true,
0209 .ldpc = true,
0210 .ht40_bands = BIT(NL80211_BAND_2GHZ) | BIT(NL80211_BAND_5GHZ),
0211 };
0212
0213 const struct iwl_cfg iwl3165_2ac_cfg = {
0214 .name = "Intel(R) Dual Band Wireless AC 3165",
0215 .fw_name_pre = IWL7265D_FW_PRE,
0216 IWL_DEVICE_7005D,
0217 .ht_params = &iwl7000_ht_params,
0218 .nvm_ver = IWL3165_NVM_VERSION,
0219 .pwr_tx_backoffs = iwl7265_pwr_tx_backoffs,
0220 .dccm_len = IWL7265_DCCM_LEN,
0221 };
0222
0223 const struct iwl_cfg iwl3168_2ac_cfg = {
0224 .name = "Intel(R) Dual Band Wireless AC 3168",
0225 .fw_name_pre = IWL3168_FW_PRE,
0226 IWL_DEVICE_3008,
0227 .ht_params = &iwl7000_ht_params,
0228 .nvm_ver = IWL3168_NVM_VERSION,
0229 .pwr_tx_backoffs = iwl7265_pwr_tx_backoffs,
0230 .dccm_len = IWL7265_DCCM_LEN,
0231 .nvm_type = IWL_NVM_SDP,
0232 };
0233
0234 const struct iwl_cfg iwl7265_2ac_cfg = {
0235 .name = "Intel(R) Dual Band Wireless AC 7265",
0236 .fw_name_pre = IWL7265_FW_PRE,
0237 IWL_DEVICE_7005,
0238 .ht_params = &iwl7265_ht_params,
0239 .nvm_ver = IWL7265_NVM_VERSION,
0240 .pwr_tx_backoffs = iwl7265_pwr_tx_backoffs,
0241 .dccm_len = IWL7265_DCCM_LEN,
0242 };
0243
0244 const struct iwl_cfg iwl7265_2n_cfg = {
0245 .name = "Intel(R) Dual Band Wireless N 7265",
0246 .fw_name_pre = IWL7265_FW_PRE,
0247 IWL_DEVICE_7005,
0248 .ht_params = &iwl7265_ht_params,
0249 .nvm_ver = IWL7265_NVM_VERSION,
0250 .pwr_tx_backoffs = iwl7265_pwr_tx_backoffs,
0251 .dccm_len = IWL7265_DCCM_LEN,
0252 };
0253
0254 const struct iwl_cfg iwl7265_n_cfg = {
0255 .name = "Intel(R) Wireless N 7265",
0256 .fw_name_pre = IWL7265_FW_PRE,
0257 IWL_DEVICE_7005,
0258 .ht_params = &iwl7265_ht_params,
0259 .nvm_ver = IWL7265_NVM_VERSION,
0260 .pwr_tx_backoffs = iwl7265_pwr_tx_backoffs,
0261 .dccm_len = IWL7265_DCCM_LEN,
0262 };
0263
0264 const struct iwl_cfg iwl7265d_2ac_cfg = {
0265 .name = "Intel(R) Dual Band Wireless AC 7265",
0266 .fw_name_pre = IWL7265D_FW_PRE,
0267 IWL_DEVICE_7005D,
0268 .ht_params = &iwl7265_ht_params,
0269 .nvm_ver = IWL7265D_NVM_VERSION,
0270 .pwr_tx_backoffs = iwl7265_pwr_tx_backoffs,
0271 .dccm_len = IWL7265_DCCM_LEN,
0272 };
0273
0274 const struct iwl_cfg iwl7265d_2n_cfg = {
0275 .name = "Intel(R) Dual Band Wireless N 7265",
0276 .fw_name_pre = IWL7265D_FW_PRE,
0277 IWL_DEVICE_7005D,
0278 .ht_params = &iwl7265_ht_params,
0279 .nvm_ver = IWL7265D_NVM_VERSION,
0280 .pwr_tx_backoffs = iwl7265_pwr_tx_backoffs,
0281 .dccm_len = IWL7265_DCCM_LEN,
0282 };
0283
0284 const struct iwl_cfg iwl7265d_n_cfg = {
0285 .name = "Intel(R) Wireless N 7265",
0286 .fw_name_pre = IWL7265D_FW_PRE,
0287 IWL_DEVICE_7005D,
0288 .ht_params = &iwl7265_ht_params,
0289 .nvm_ver = IWL7265D_NVM_VERSION,
0290 .pwr_tx_backoffs = iwl7265_pwr_tx_backoffs,
0291 .dccm_len = IWL7265_DCCM_LEN,
0292 };
0293
0294 MODULE_FIRMWARE(IWL7260_MODULE_FIRMWARE(IWL7260_UCODE_API_MAX));
0295 MODULE_FIRMWARE(IWL3160_MODULE_FIRMWARE(IWL7260_UCODE_API_MAX));
0296 MODULE_FIRMWARE(IWL3168_MODULE_FIRMWARE(IWL3168_UCODE_API_MAX));
0297 MODULE_FIRMWARE(IWL7265_MODULE_FIRMWARE(IWL7265_UCODE_API_MAX));
0298 MODULE_FIRMWARE(IWL7265D_MODULE_FIRMWARE(IWL7265D_UCODE_API_MAX));