aboutsummaryrefslogtreecommitdiffstats
path: root/package/mac80211/patches/541-ath9k_pllclock_fix.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-08-01 12:15:15 +0000
committerFelix Fietkau <nbd@openwrt.org>2011-08-01 12:15:15 +0000
commita1e19186fa70e8bc918d825e31a50259ea8082fd (patch)
tree7e08fcb20003dd62c1286426a50e8504e081e5db /package/mac80211/patches/541-ath9k_pllclock_fix.patch
parent478decc60bb34144cc60b61c27378d8b0a0dce9b (diff)
downloadupstream-a1e19186fa70e8bc918d825e31a50259ea8082fd.tar.gz
upstream-a1e19186fa70e8bc918d825e31a50259ea8082fd.tar.bz2
upstream-a1e19186fa70e8bc918d825e31a50259ea8082fd.zip
ath9k: fold patches that were merged upstream into 300-pending_work.patch
SVN-Revision: 27860
Diffstat (limited to 'package/mac80211/patches/541-ath9k_pllclock_fix.patch')
-rw-r--r--package/mac80211/patches/541-ath9k_pllclock_fix.patch42
1 files changed, 0 insertions, 42 deletions
diff --git a/package/mac80211/patches/541-ath9k_pllclock_fix.patch b/package/mac80211/patches/541-ath9k_pllclock_fix.patch
deleted file mode 100644
index 4738159fd9..0000000000
--- a/package/mac80211/patches/541-ath9k_pllclock_fix.patch
+++ /dev/null
@@ -1,42 +0,0 @@
---- a/drivers/net/wireless/ath/ath9k/ar9002_phy.c
-+++ b/drivers/net/wireless/ath/ath9k/ar9002_phy.c
-@@ -447,26 +447,27 @@ static void ar9002_olc_init(struct ath_h
- static u32 ar9002_hw_compute_pll_control(struct ath_hw *ah,
- struct ath9k_channel *chan)
- {
-+ int ref_div = 5;
-+ int pll_div = 0x2c;
- u32 pll;
-
-- pll = SM(0x5, AR_RTC_9160_PLL_REFDIV);
-+ if (chan && IS_CHAN_5GHZ(chan) && !IS_CHAN_A_FAST_CLOCK(ah, chan)) {
-+ if (AR_SREV_9280_20(ah)) {
-+ ref_div = 10;
-+ pll_div = 0x50;
-+ } else {
-+ pll_div = 0x28;
-+ }
-+ }
-+
-+ pll = SM(ref_div, AR_RTC_9160_PLL_REFDIV);
-+ pll |= SM(pll_div, AR_RTC_9160_PLL_DIV);
-
- if (chan && IS_CHAN_HALF_RATE(chan))
- pll |= SM(0x1, AR_RTC_9160_PLL_CLKSEL);
- else if (chan && IS_CHAN_QUARTER_RATE(chan))
- pll |= SM(0x2, AR_RTC_9160_PLL_CLKSEL);
-
-- if (chan && IS_CHAN_5GHZ(chan)) {
-- if (IS_CHAN_A_FAST_CLOCK(ah, chan))
-- pll = 0x142c;
-- else if (AR_SREV_9280_20(ah))
-- pll = 0x2850;
-- else
-- pll |= SM(0x28, AR_RTC_9160_PLL_DIV);
-- } else {
-- pll |= SM(0x2c, AR_RTC_9160_PLL_DIV);
-- }
--
- return pll;
- }
-