ath9k_hw: add support for reading EEPROM data from the internal OTP ROM
authorFelix Fietkau <nbd@openwrt.org>
Tue, 16 Nov 2010 18:20:28 +0000 (19:20 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 17 Nov 2010 21:19:30 +0000 (16:19 -0500)
commit488f6ba75b5deaa7e89d6cdac07e0f2120899b6f
tree6b1bd30c51735d4646cbeecbd81ebca028a5baa2
parent2d42efc44e38d3a8b2bf30e34559036bb6541672
ath9k_hw: add support for reading EEPROM data from the internal OTP ROM

Some of the new AR9003 cards do not come with an external EEPROM chip
anymore. Calibration data on these cards is stored in the OTP ROM on
the chip.
This patch adds support for reading this data, and also adds support
for different EEPROM chip sizes (512 bytes instead of 1K).

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/ar9003_eeprom.c
drivers/net/wireless/ath/ath9k/ar9003_eeprom.h