diff options
author | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2009-09-17 13:43:46 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-10-07 16:39:33 -0400 |
commit | 1f4b9665032c4a1d60efd9ceaad2781cae6c7e92 (patch) | |
tree | 0917f77d689f268760917755073ef609843df27e | |
parent | 01abfbb282482d01e2ac2e6b00e75b248bf517c8 (diff) |
iwlwifi: EEPROM version for 1000 and 6000 series
Update EEPROM version requirement for 1000 and 6000 series of NIC
for EEPROM version verification.
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-1000.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-6000.c | 10 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-eeprom.h | 6 |
3 files changed, 12 insertions, 6 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-1000.c b/drivers/net/wireless/iwlwifi/iwl-1000.c index 1dd8db2f6f2..879b3753a3b 100644 --- a/drivers/net/wireless/iwlwifi/iwl-1000.c +++ b/drivers/net/wireless/iwlwifi/iwl-1000.c | |||
@@ -155,7 +155,7 @@ struct iwl_cfg iwl1000_bgn_cfg = { | |||
155 | .sku = IWL_SKU_G|IWL_SKU_N, | 155 | .sku = IWL_SKU_G|IWL_SKU_N, |
156 | .ops = &iwl1000_ops, | 156 | .ops = &iwl1000_ops, |
157 | .eeprom_size = OTP_LOW_IMAGE_SIZE, | 157 | .eeprom_size = OTP_LOW_IMAGE_SIZE, |
158 | .eeprom_ver = EEPROM_5000_EEPROM_VERSION, | 158 | .eeprom_ver = EEPROM_1000_EEPROM_VERSION, |
159 | .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION, | 159 | .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION, |
160 | .mod_params = &iwl50_mod_params, | 160 | .mod_params = &iwl50_mod_params, |
161 | .valid_tx_ant = ANT_A, | 161 | .valid_tx_ant = ANT_A, |
diff --git a/drivers/net/wireless/iwlwifi/iwl-6000.c b/drivers/net/wireless/iwlwifi/iwl-6000.c index a9665ce1d65..0d2cbab1f7d 100644 --- a/drivers/net/wireless/iwlwifi/iwl-6000.c +++ b/drivers/net/wireless/iwlwifi/iwl-6000.c | |||
@@ -248,7 +248,7 @@ struct iwl_cfg iwl6000h_2agn_cfg = { | |||
248 | .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N, | 248 | .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N, |
249 | .ops = &iwl6000_ops, | 249 | .ops = &iwl6000_ops, |
250 | .eeprom_size = OTP_LOW_IMAGE_SIZE, | 250 | .eeprom_size = OTP_LOW_IMAGE_SIZE, |
251 | .eeprom_ver = EEPROM_5000_EEPROM_VERSION, | 251 | .eeprom_ver = EEPROM_6000_EEPROM_VERSION, |
252 | .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION, | 252 | .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION, |
253 | .mod_params = &iwl50_mod_params, | 253 | .mod_params = &iwl50_mod_params, |
254 | .valid_tx_ant = ANT_AB, | 254 | .valid_tx_ant = ANT_AB, |
@@ -273,7 +273,7 @@ struct iwl_cfg iwl6000i_2agn_cfg = { | |||
273 | .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N, | 273 | .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N, |
274 | .ops = &iwl6000_ops, | 274 | .ops = &iwl6000_ops, |
275 | .eeprom_size = OTP_LOW_IMAGE_SIZE, | 275 | .eeprom_size = OTP_LOW_IMAGE_SIZE, |
276 | .eeprom_ver = EEPROM_5000_EEPROM_VERSION, | 276 | .eeprom_ver = EEPROM_6000_EEPROM_VERSION, |
277 | .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION, | 277 | .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION, |
278 | .mod_params = &iwl50_mod_params, | 278 | .mod_params = &iwl50_mod_params, |
279 | .valid_tx_ant = ANT_BC, | 279 | .valid_tx_ant = ANT_BC, |
@@ -295,7 +295,7 @@ struct iwl_cfg iwl6050_2agn_cfg = { | |||
295 | .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N, | 295 | .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N, |
296 | .ops = &iwl6000_ops, | 296 | .ops = &iwl6000_ops, |
297 | .eeprom_size = OTP_LOW_IMAGE_SIZE, | 297 | .eeprom_size = OTP_LOW_IMAGE_SIZE, |
298 | .eeprom_ver = EEPROM_5000_EEPROM_VERSION, | 298 | .eeprom_ver = EEPROM_6000_EEPROM_VERSION, |
299 | .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION, | 299 | .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION, |
300 | .mod_params = &iwl50_mod_params, | 300 | .mod_params = &iwl50_mod_params, |
301 | .valid_tx_ant = ANT_AB, | 301 | .valid_tx_ant = ANT_AB, |
@@ -317,7 +317,7 @@ struct iwl_cfg iwl6000_3agn_cfg = { | |||
317 | .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N, | 317 | .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N, |
318 | .ops = &iwl6000_ops, | 318 | .ops = &iwl6000_ops, |
319 | .eeprom_size = OTP_LOW_IMAGE_SIZE, | 319 | .eeprom_size = OTP_LOW_IMAGE_SIZE, |
320 | .eeprom_ver = EEPROM_5000_EEPROM_VERSION, | 320 | .eeprom_ver = EEPROM_6000_EEPROM_VERSION, |
321 | .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION, | 321 | .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION, |
322 | .mod_params = &iwl50_mod_params, | 322 | .mod_params = &iwl50_mod_params, |
323 | .valid_tx_ant = ANT_ABC, | 323 | .valid_tx_ant = ANT_ABC, |
@@ -339,7 +339,7 @@ struct iwl_cfg iwl6050_3agn_cfg = { | |||
339 | .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N, | 339 | .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N, |
340 | .ops = &iwl6000_ops, | 340 | .ops = &iwl6000_ops, |
341 | .eeprom_size = OTP_LOW_IMAGE_SIZE, | 341 | .eeprom_size = OTP_LOW_IMAGE_SIZE, |
342 | .eeprom_ver = EEPROM_5000_EEPROM_VERSION, | 342 | .eeprom_ver = EEPROM_6000_EEPROM_VERSION, |
343 | .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION, | 343 | .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION, |
344 | .mod_params = &iwl50_mod_params, | 344 | .mod_params = &iwl50_mod_params, |
345 | .valid_tx_ant = ANT_ABC, | 345 | .valid_tx_ant = ANT_ABC, |
diff --git a/drivers/net/wireless/iwlwifi/iwl-eeprom.h b/drivers/net/wireless/iwlwifi/iwl-eeprom.h index 61794eb3d68..75fe0228299 100644 --- a/drivers/net/wireless/iwlwifi/iwl-eeprom.h +++ b/drivers/net/wireless/iwlwifi/iwl-eeprom.h | |||
@@ -256,6 +256,12 @@ struct iwl_eeprom_enhanced_txpwr { | |||
256 | #define EEPROM_5050_TX_POWER_VERSION (4) | 256 | #define EEPROM_5050_TX_POWER_VERSION (4) |
257 | #define EEPROM_5050_EEPROM_VERSION (0x21E) | 257 | #define EEPROM_5050_EEPROM_VERSION (0x21E) |
258 | 258 | ||
259 | /* 1000 Specific */ | ||
260 | #define EEPROM_1000_EEPROM_VERSION (0x15D) | ||
261 | |||
262 | /* 60x0 Specific */ | ||
263 | #define EEPROM_6000_EEPROM_VERSION (0x434) | ||
264 | |||
259 | /* OTP */ | 265 | /* OTP */ |
260 | /* lower blocks contain EEPROM image and calibration data */ | 266 | /* lower blocks contain EEPROM image and calibration data */ |
261 | #define OTP_LOW_IMAGE_SIZE (2 * 512 * sizeof(u16)) /* 2 KB */ | 267 | #define OTP_LOW_IMAGE_SIZE (2 * 512 * sizeof(u16)) /* 2 KB */ |