ar71xx: add wmac callback for reading soc revision on ar934x
authorFelix Fietkau <nbd@openwrt.org>
Sat, 27 Sep 2014 20:52:05 +0000 (20:52 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 27 Sep 2014 20:52:05 +0000 (20:52 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 42685

target/linux/ar71xx/patches-3.10/727-MIPS-ath79-ar934x-wmac-revision.patch [new file with mode: 0644]
target/linux/ar71xx/patches-3.14/727-MIPS-ath79-ar934x-wmac-revision.patch [new file with mode: 0644]

diff --git a/target/linux/ar71xx/patches-3.10/727-MIPS-ath79-ar934x-wmac-revision.patch b/target/linux/ar71xx/patches-3.10/727-MIPS-ath79-ar934x-wmac-revision.patch
new file mode 100644 (file)
index 0000000..b1b4946
--- /dev/null
@@ -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)
diff --git a/target/linux/ar71xx/patches-3.14/727-MIPS-ath79-ar934x-wmac-revision.patch b/target/linux/ar71xx/patches-3.14/727-MIPS-ath79-ar934x-wmac-revision.patch
new file mode 100644 (file)
index 0000000..b1b4946
--- /dev/null
@@ -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)