mirror of https://github.com/hak5/openwrt.git
ar71xx: add wmac callback for reading soc revision on ar934x
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 42685lede-17.01
parent
84d81d5844
commit
3e833dcf90
|
@ -0,0 +1,11 @@
|
||||||
|
--- a/arch/mips/ath79/dev-wmac.c
|
||||||
|
+++ b/arch/mips/ath79/dev-wmac.c
|
||||||
|
@@ -147,6 +147,8 @@ static void ar934x_wmac_setup(void)
|
||||||
|
ath79_wmac_data.is_clk_25mhz = false;
|
||||||
|
else
|
||||||
|
ath79_wmac_data.is_clk_25mhz = true;
|
||||||
|
+
|
||||||
|
+ ath79_wmac_data.get_mac_revision = ar93xx_get_soc_revision;
|
||||||
|
}
|
||||||
|
|
||||||
|
static void qca953x_wmac_setup(void)
|
|
@ -0,0 +1,11 @@
|
||||||
|
--- a/arch/mips/ath79/dev-wmac.c
|
||||||
|
+++ b/arch/mips/ath79/dev-wmac.c
|
||||||
|
@@ -147,6 +147,8 @@ static void ar934x_wmac_setup(void)
|
||||||
|
ath79_wmac_data.is_clk_25mhz = false;
|
||||||
|
else
|
||||||
|
ath79_wmac_data.is_clk_25mhz = true;
|
||||||
|
+
|
||||||
|
+ ath79_wmac_data.get_mac_revision = ar93xx_get_soc_revision;
|
||||||
|
}
|
||||||
|
|
||||||
|
static void qca953x_wmac_setup(void)
|
Loading…
Reference in New Issue