aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-5000.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-5000.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-5000.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-5000.c b/drivers/net/wireless/iwlwifi/iwl-5000.c
index 539fc0e234f7..f8158edf6ebf 100644
--- a/drivers/net/wireless/iwlwifi/iwl-5000.c
+++ b/drivers/net/wireless/iwlwifi/iwl-5000.c
@@ -109,7 +109,8 @@ static int iwl5000_apm_init(struct iwl_priv *priv)
109 iwl_set_bit(priv, CSR_HW_IF_CONFIG_REG, 109 iwl_set_bit(priv, CSR_HW_IF_CONFIG_REG,
110 CSR_HW_IF_CONFIG_REG_BIT_HAP_WAKE_L1A); 110 CSR_HW_IF_CONFIG_REG_BIT_HAP_WAKE_L1A);
111 111
112 iwl_set_bit(priv, CSR_ANA_PLL_CFG, CSR50_ANA_PLL_CFG_VAL); 112 if (priv->cfg->need_pll_cfg)
113 iwl_set_bit(priv, CSR_ANA_PLL_CFG, CSR50_ANA_PLL_CFG_VAL);
113 114
114 /* set "initialization complete" bit to move adapter 115 /* set "initialization complete" bit to move adapter
115 * D0U* --> D0A* state */ 116 * D0U* --> D0A* state */
@@ -177,7 +178,8 @@ static int iwl5000_apm_reset(struct iwl_priv *priv)
177 178
178 /* FIXME: put here L1A -L0S w/a */ 179 /* FIXME: put here L1A -L0S w/a */
179 180
180 iwl_set_bit(priv, CSR_ANA_PLL_CFG, CSR50_ANA_PLL_CFG_VAL); 181 if (priv->cfg->need_pll_cfg)
182 iwl_set_bit(priv, CSR_ANA_PLL_CFG, CSR50_ANA_PLL_CFG_VAL);
181 183
182 /* set "initialization complete" bit to move adapter 184 /* set "initialization complete" bit to move adapter
183 * D0U* --> D0A* state */ 185 * D0U* --> D0A* state */
@@ -1548,6 +1550,7 @@ struct iwl_cfg iwl5300_agn_cfg = {
1548 .mod_params = &iwl50_mod_params, 1550 .mod_params = &iwl50_mod_params,
1549 .valid_tx_ant = ANT_ABC, 1551 .valid_tx_ant = ANT_ABC,
1550 .valid_rx_ant = ANT_ABC, 1552 .valid_rx_ant = ANT_ABC,
1553 .need_pll_cfg = true,
1551}; 1554};
1552 1555
1553struct iwl_cfg iwl5100_bg_cfg = { 1556struct iwl_cfg iwl5100_bg_cfg = {
@@ -1563,6 +1566,7 @@ struct iwl_cfg iwl5100_bg_cfg = {
1563 .mod_params = &iwl50_mod_params, 1566 .mod_params = &iwl50_mod_params,
1564 .valid_tx_ant = ANT_B, 1567 .valid_tx_ant = ANT_B,
1565 .valid_rx_ant = ANT_AB, 1568 .valid_rx_ant = ANT_AB,
1569 .need_pll_cfg = true,
1566}; 1570};
1567 1571
1568struct iwl_cfg iwl5100_abg_cfg = { 1572struct iwl_cfg iwl5100_abg_cfg = {
@@ -1578,6 +1582,7 @@ struct iwl_cfg iwl5100_abg_cfg = {
1578 .mod_params = &iwl50_mod_params, 1582 .mod_params = &iwl50_mod_params,
1579 .valid_tx_ant = ANT_B, 1583 .valid_tx_ant = ANT_B,
1580 .valid_rx_ant = ANT_AB, 1584 .valid_rx_ant = ANT_AB,
1585 .need_pll_cfg = true,
1581}; 1586};
1582 1587
1583struct iwl_cfg iwl5100_agn_cfg = { 1588struct iwl_cfg iwl5100_agn_cfg = {
@@ -1593,6 +1598,7 @@ struct iwl_cfg iwl5100_agn_cfg = {
1593 .mod_params = &iwl50_mod_params, 1598 .mod_params = &iwl50_mod_params,
1594 .valid_tx_ant = ANT_B, 1599 .valid_tx_ant = ANT_B,
1595 .valid_rx_ant = ANT_AB, 1600 .valid_rx_ant = ANT_AB,
1601 .need_pll_cfg = true,
1596}; 1602};
1597 1603
1598struct iwl_cfg iwl5350_agn_cfg = { 1604struct iwl_cfg iwl5350_agn_cfg = {
@@ -1608,6 +1614,7 @@ struct iwl_cfg iwl5350_agn_cfg = {
1608 .mod_params = &iwl50_mod_params, 1614 .mod_params = &iwl50_mod_params,
1609 .valid_tx_ant = ANT_ABC, 1615 .valid_tx_ant = ANT_ABC,
1610 .valid_rx_ant = ANT_ABC, 1616 .valid_rx_ant = ANT_ABC,
1617 .need_pll_cfg = true,
1611}; 1618};
1612 1619
1613struct iwl_cfg iwl5150_agn_cfg = { 1620struct iwl_cfg iwl5150_agn_cfg = {
@@ -1623,6 +1630,7 @@ struct iwl_cfg iwl5150_agn_cfg = {
1623 .mod_params = &iwl50_mod_params, 1630 .mod_params = &iwl50_mod_params,
1624 .valid_tx_ant = ANT_A, 1631 .valid_tx_ant = ANT_A,
1625 .valid_rx_ant = ANT_AB, 1632 .valid_rx_ant = ANT_AB,
1633 .need_pll_cfg = true,
1626}; 1634};
1627 1635
1628MODULE_FIRMWARE(IWL5000_MODULE_FIRMWARE(IWL5000_UCODE_API_MAX)); 1636MODULE_FIRMWARE(IWL5000_MODULE_FIRMWARE(IWL5000_UCODE_API_MAX));