diff options
author | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2009-10-16 17:25:56 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-10-27 16:48:33 -0400 |
commit | 32004ee42fced8b2372dd2f93e65cc9d71e8c4bf (patch) | |
tree | 6bd1ad99945783704316b9a789292e635bee4877 /drivers/net/wireless/iwlwifi/iwl-eeprom.c | |
parent | 8d9698b3e6ce3c50f9ec5a0aaea4da82d5af7779 (diff) |
iwlwifi: set auto clock gate disable bit for 6x00/6x50 series
For 6x00 and 6x50 series NIC with OTP shadow RAM, set auto clock gate
disable bit when initializing OTP access.
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>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-eeprom.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-eeprom.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-eeprom.c b/drivers/net/wireless/iwlwifi/iwl-eeprom.c index 2e8c40576d22..9429cb1c69bd 100644 --- a/drivers/net/wireless/iwlwifi/iwl-eeprom.c +++ b/drivers/net/wireless/iwlwifi/iwl-eeprom.c | |||
@@ -358,6 +358,14 @@ static int iwl_init_otp_access(struct iwl_priv *priv) | |||
358 | udelay(5); | 358 | udelay(5); |
359 | iwl_clear_bits_prph(priv, APMG_PS_CTRL_REG, | 359 | iwl_clear_bits_prph(priv, APMG_PS_CTRL_REG, |
360 | APMG_PS_CTRL_VAL_RESET_REQ); | 360 | APMG_PS_CTRL_VAL_RESET_REQ); |
361 | |||
362 | /* | ||
363 | * CSR auto clock gate disable bit - | ||
364 | * this is only applicable for HW with OTP shadow RAM | ||
365 | */ | ||
366 | if (priv->cfg->shadow_ram_support) | ||
367 | iwl_set_bit(priv, CSR_DBG_LINK_PWR_MGMT_REG, | ||
368 | CSR_RESET_LINK_PWR_MGMT_DISABLED); | ||
361 | } | 369 | } |
362 | return ret; | 370 | return ret; |
363 | } | 371 | } |