summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-config.h
diff options
context:
space:
mode:
authorEran Harary <eran.harary@intel.com>2014-04-22 10:47:48 +0300
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>2014-05-06 20:40:01 +0300
commit300855443ee722e49ebd0d9ca086d68886cf4a83 (patch)
tree033e8dca7ed395b53a42503fce0d31dd172ab00b /drivers/net/wireless/iwlwifi/iwl-config.h
parent7a531741468b7079fcebc0f132ff50f78e168e34 (diff)
downloadtalos-obmc-linux-300855443ee722e49ebd0d9ca086d68886cf4a83.tar.gz
talos-obmc-linux-300855443ee722e49ebd0d9ca086d68886cf4a83.zip
iwlwifi: mvm: fix bug with OTP memory size
OTP size changed in family 7000 and in family 8000. Signed-off-by: Eran Harary <eran.harary@intel.com> Reviewed-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-config.h')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-config.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-config.h b/drivers/net/wireless/iwlwifi/iwl-config.h
index 7ce82d9c7222..b73eac9428a7 100644
--- a/drivers/net/wireless/iwlwifi/iwl-config.h
+++ b/drivers/net/wireless/iwlwifi/iwl-config.h
@@ -193,6 +193,11 @@ struct iwl_ht_params {
#define EEPROM_6000_REG_BAND_24_HT40_CHANNELS 0x80
#define EEPROM_REGULATORY_BAND_NO_HT40 0
+/* lower blocks contain EEPROM image and calibration data */
+#define OTP_LOW_IMAGE_SIZE (2 * 512 * sizeof(u16)) /* 2 KB */
+#define OTP_LOW_IMAGE_SIZE_FAMILY_7000 (4 * 512 * sizeof(u16)) /* 4 KB */
+#define OTP_LOW_IMAGE_SIZE_FAMILY_8000 (32 * 512 * sizeof(u16)) /* 32 KB */
+
struct iwl_eeprom_params {
const u8 regulatory_bands[7];
bool enhanced_txpower;
OpenPOWER on IntegriCloud