summaryrefslogtreecommitdiff
path: root/include/linux/ath9k_platform.h
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2011-06-21 13:23:23 +0400
committerJohn W. Linville <linville@tuxdriver.com>2011-06-23 00:09:49 +0400
commit3762561aa8afb0bd9fb60d3d847961f9945f8143 (patch)
tree0968f5136282712d6ace7b952619282ccdf1c88a /include/linux/ath9k_platform.h
parent03689301da71fa80957a166e211431bb6e2904e3 (diff)
downloadlinux-3762561aa8afb0bd9fb60d3d847961f9945f8143.tar.xz
ath9k: add MAC revision detection for AR9330
The AR9330 1.0 and 1.1 are using the same revision, thus it is not possible to distinguish the two chips. The platform setup code can distinguish the chips based on the SoC revision. Add a callback function to ath9k_platform_data in order to allow getting the revision number from the platform code. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include/linux/ath9k_platform.h')
-rw-r--r--include/linux/ath9k_platform.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/ath9k_platform.h b/include/linux/ath9k_platform.h
index 60a7c49dcb49..c207607acada 100644
--- a/include/linux/ath9k_platform.h
+++ b/include/linux/ath9k_platform.h
@@ -30,6 +30,7 @@ struct ath9k_platform_data {
u32 gpio_val;
bool is_clk_25mhz;
+ int (*get_mac_revision)(void);
};
#endif /* _LINUX_ATH9K_PLATFORM_H */