aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-3945.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-3945.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-3945.c42
1 files changed, 0 insertions, 42 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-3945.c b/drivers/net/wireless/iwlwifi/iwl-3945.c
index 89f82396a13a..f8ce96c94c6b 100644
--- a/drivers/net/wireless/iwlwifi/iwl-3945.c
+++ b/drivers/net/wireless/iwlwifi/iwl-3945.c
@@ -1198,47 +1198,6 @@ void iwl3945_hw_txq_ctx_stop(struct iwl_priv *priv)
1198 iwl3945_hw_txq_ctx_free(priv); 1198 iwl3945_hw_txq_ctx_free(priv);
1199} 1199}
1200 1200
1201static int iwl3945_apm_reset(struct iwl_priv *priv)
1202{
1203 iwl_apm_stop_master(priv);
1204
1205
1206 iwl_set_bit(priv, CSR_RESET, CSR_RESET_REG_FLAG_SW_RESET);
1207 udelay(10);
1208
1209 iwl_set_bit(priv, CSR_GP_CNTRL, CSR_GP_CNTRL_REG_FLAG_INIT_DONE);
1210
1211 iwl_poll_bit(priv, CSR_GP_CNTRL,
1212 CSR_GP_CNTRL_REG_FLAG_MAC_CLOCK_READY,
1213 CSR_GP_CNTRL_REG_FLAG_MAC_CLOCK_READY, 25000);
1214
1215 iwl_write_prph(priv, APMG_CLK_CTRL_REG,
1216 APMG_CLK_VAL_BSM_CLK_RQT);
1217
1218 iwl_write_prph(priv, APMG_RTC_INT_MSK_REG, 0x0);
1219 iwl_write_prph(priv, APMG_RTC_INT_STT_REG,
1220 0xFFFFFFFF);
1221
1222 /* enable DMA */
1223 iwl_write_prph(priv, APMG_CLK_EN_REG,
1224 APMG_CLK_VAL_DMA_CLK_RQT |
1225 APMG_CLK_VAL_BSM_CLK_RQT);
1226 udelay(10);
1227
1228 iwl_set_bits_prph(priv, APMG_PS_CTRL_REG,
1229 APMG_PS_CTRL_VAL_RESET_REQ);
1230 udelay(5);
1231 iwl_clear_bits_prph(priv, APMG_PS_CTRL_REG,
1232 APMG_PS_CTRL_VAL_RESET_REQ);
1233
1234 /* Clear the 'host command active' bit... */
1235 clear_bit(STATUS_HCMD_ACTIVE, &priv->status);
1236
1237 wake_up_interruptible(&priv->wait_command_queue);
1238
1239 return 0;
1240}
1241
1242/** 1201/**
1243 * iwl3945_hw_reg_adjust_power_by_temp 1202 * iwl3945_hw_reg_adjust_power_by_temp
1244 * return index delta into power gain settings table 1203 * return index delta into power gain settings table
@@ -2833,7 +2792,6 @@ static struct iwl_lib_ops iwl3945_lib = {
2833 .dump_nic_error_log = iwl3945_dump_nic_error_log, 2792 .dump_nic_error_log = iwl3945_dump_nic_error_log,
2834 .apm_ops = { 2793 .apm_ops = {
2835 .init = iwl3945_apm_init, 2794 .init = iwl3945_apm_init,
2836 .reset = iwl3945_apm_reset,
2837 .stop = iwl_apm_stop, 2795 .stop = iwl_apm_stop,
2838 .config = iwl3945_nic_config, 2796 .config = iwl3945_nic_config,
2839 .set_pwr_src = iwl3945_set_pwr_src, 2797 .set_pwr_src = iwl3945_set_pwr_src,