diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-09-15 08:25:38 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-09-19 15:58:25 -0400 |
commit | 491b209d06192a8b93d226b4e5d7399747bf01ef (patch) | |
tree | 799a93be3a720536ff1c36439cf2aecc196d02a8 | |
parent | bf3f204b92c48c4afa3e827dfe98353560d9aa7f (diff) |
ath9k_hw: remove ar9100_hw_compute_pll_control
AR913x uses the same PLL register layout as AR9160 and later.
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/ath/ath9k/ar5008_phy.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ar5008_phy.c b/drivers/net/wireless/ath/ath9k/ar5008_phy.c index 794a2d96a8e..0a749c8fa63 100644 --- a/drivers/net/wireless/ath/ath9k/ar5008_phy.c +++ b/drivers/net/wireless/ath/ath9k/ar5008_phy.c | |||
@@ -1010,14 +1010,6 @@ static void ar5008_restore_chainmask(struct ath_hw *ah) | |||
1010 | } | 1010 | } |
1011 | } | 1011 | } |
1012 | 1012 | ||
1013 | static u32 ar9100_hw_compute_pll_control(struct ath_hw *ah, | ||
1014 | struct ath9k_channel *chan) | ||
1015 | { | ||
1016 | if (chan && IS_CHAN_5GHZ(chan)) | ||
1017 | return 0x1450; | ||
1018 | return 0x1458; | ||
1019 | } | ||
1020 | |||
1021 | static u32 ar9160_hw_compute_pll_control(struct ath_hw *ah, | 1013 | static u32 ar9160_hw_compute_pll_control(struct ath_hw *ah, |
1022 | struct ath9k_channel *chan) | 1014 | struct ath9k_channel *chan) |
1023 | { | 1015 | { |
@@ -1656,9 +1648,7 @@ void ar5008_hw_attach_phy_ops(struct ath_hw *ah) | |||
1656 | } else | 1648 | } else |
1657 | priv_ops->ani_control = ar5008_hw_ani_control_old; | 1649 | priv_ops->ani_control = ar5008_hw_ani_control_old; |
1658 | 1650 | ||
1659 | if (AR_SREV_9100(ah)) | 1651 | if (AR_SREV_9100(ah) || AR_SREV_9160_10_OR_LATER(ah)) |
1660 | priv_ops->compute_pll_control = ar9100_hw_compute_pll_control; | ||
1661 | else if (AR_SREV_9160_10_OR_LATER(ah)) | ||
1662 | priv_ops->compute_pll_control = ar9160_hw_compute_pll_control; | 1652 | priv_ops->compute_pll_control = ar9160_hw_compute_pll_control; |
1663 | else | 1653 | else |
1664 | priv_ops->compute_pll_control = ar5008_hw_compute_pll_control; | 1654 | priv_ops->compute_pll_control = ar5008_hw_compute_pll_control; |