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>
This commit is contained in:
parent
03689301da
commit
3762561aa8
4 changed files with 12 additions and 0 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue