freebsd-dev/sys/dev/ath/ath_hal/ar9002
Adrian Chadd 48c1d36479 Implement open-loop TX power control (OLC) for Merlin (AR9280) and
generally tidy up the TX power programming code.

Enforce that the TX power offset for Merlin is -5 dBm, rather than
any other value programmable in the EEPROM. This requires some
further code to be ported over from ath9k, so until that is done
and tested, fail to attach NICs whose TX power offset isn't -5
dBm.

This improves both legacy and HT transmission on my merlin board.
It allows for stable MCS TX up to MCS15.

Specifics:

* Refactor out a bunch of the TX power calibration code -
  setting/obtaining the power detector / gain boundaries,
  programming the PDADC
* Take the -5 dBm TX power offset into account on Merlin -
  "0" in the per-rate TX power register means -5 dBm, not
  0 dBm
* When doing OLC
* Enforce min (0) and max (AR5416_MAX_RATE_POWER) when fiddling
  with the TX power, to avoid the TX power values from wrapping
  when low.
* Implement the 1 dBm cck power offset when doing OLC
* Implement temperature compensation for 2.4ghz mode when doing OLC
* Implement an AR9280 specific TX power calibration routine which
  includes the OLC twiddles, leaving the earlier chipset path
  (AR5416, AR9160) alone

Whilst here, use these refactored routines for the AR9285 TX power
calibration/programming code and enforce correct overflow/underflow
handling when fiddling with TX power values.

Obtained from:	linux ath9k
2011-03-08 06:59:59 +00:00
..
ar9002phy.h Implement open-loop TX power control (OLC) for Merlin (AR9280) and 2011-03-08 06:59:59 +00:00
ar9280_attach.c Implement open-loop TX power control (OLC) for Merlin (AR9280) and 2011-03-08 06:59:59 +00:00
ar9280_olc.c Implement open-loop TX power control (OLC) for Merlin (AR9280) and 2011-03-08 06:59:59 +00:00
ar9280_olc.h Implement open-loop TX power control (OLC) for Merlin (AR9280) and 2011-03-08 06:59:59 +00:00
ar9280.c Use analog delay macro for modifying an analog register. 2011-02-07 21:30:56 +00:00
ar9280.h Implement open-loop TX power control (OLC) for Merlin (AR9280) and 2011-03-08 06:59:59 +00:00
ar9280v1.ini
ar9280v2.ini Update the AR9280v2 inivals to match what is in Linux ath9k. 2011-01-23 14:30:35 +00:00
ar9285_attach.c Port over ar5416OverrideIni() from ath9k ar5008_hw_override_ini(). 2011-03-03 08:38:31 +00:00
ar9285_reset.c Implement open-loop TX power control (OLC) for Merlin (AR9280) and 2011-03-08 06:59:59 +00:00
ar9285.c
ar9285.h Bring over some NF calibration changes from ath9k. 2011-01-29 14:27:20 +00:00
ar9285.ini
ar9285v2.ini Commit updated AR9285 (Kite) v2 initvals from ath9k. 2011-01-25 05:36:29 +00:00