diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2012-12-10 18:30:28 +0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-12-11 00:49:57 +0400 |
commit | ab5c4f71d8c7add173a2d32e5beefdaaf1b7cbbc (patch) | |
tree | 6eadeb30e44afd144f270c2cbfe04c70bbbd6ffd /drivers/net/wireless/ath/ath9k/hw.h | |
parent | 0e4b9f2f12e94686855605eda64ea534a95d77f2 (diff) | |
download | linux-ab5c4f71d8c7add173a2d32e5beefdaaf1b7cbbc.tar.xz |
ath9k: allow to load EEPROM content via firmware API
The calibration data for devices w/o a separate
EEPROM chip can be specified via the 'eeprom_data'
field of 'ath9k_platform_data'. The 'eeprom_data'
is usually filled from board specific setup
functions. It is easy if the EEPROM data is mapped
to the memory, but it can be complicated if it is
stored elsewhere.
The patch adds support for loading of the EEPROM
data via the firmware API to avoid this limitation.
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/hw.h')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/hw.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/hw.h b/drivers/net/wireless/ath/ath9k/hw.h index eff67592db18..7f1a8e91c908 100644 --- a/drivers/net/wireless/ath/ath9k/hw.h +++ b/drivers/net/wireless/ath/ath9k/hw.h @@ -20,6 +20,7 @@ #include <linux/if_ether.h> #include <linux/delay.h> #include <linux/io.h> +#include <linux/firmware.h> #include "mac.h" #include "ani.h" @@ -921,6 +922,8 @@ struct ath_hw { bool is_clk_25mhz; int (*get_mac_revision)(void); int (*external_reset)(void); + + const struct firmware *eeprom_blob; }; struct ath_bus_ops { |