aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/oxnas
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2015-11-21 21:24:03 +0000
committerJohn Crispin <blogic@openwrt.org>2015-11-21 21:24:03 +0000
commit96df90b796c4eda163223c53e4358559350e6522 (patch)
tree0f071771f3e033de8d97e5480fdc441752ee665e /target/linux/oxnas
parent6d0e0fd51ecfcc6788aa7e8254df08c4b97a171a (diff)
downloadmaster-187ad058-96df90b796c4eda163223c53e4358559350e6522.tar.gz
master-187ad058-96df90b796c4eda163223c53e4358559350e6522.tar.bz2
master-187ad058-96df90b796c4eda163223c53e4358559350e6522.zip
oxnas: add missing platform bindings for stmmac glue
r47218 was missing needed changes which were accidentally ommitted from the patch. This should fix #20878 Signed-off-by: Daniel Golle <daniel@makrotopia.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47552 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/oxnas')
-rw-r--r--target/linux/oxnas/patches-4.1/700-oxnas-dwmac.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/target/linux/oxnas/patches-4.1/700-oxnas-dwmac.patch b/target/linux/oxnas/patches-4.1/700-oxnas-dwmac.patch
index dde3140a1f..92d279e551 100644
--- a/target/linux/oxnas/patches-4.1/700-oxnas-dwmac.patch
+++ b/target/linux/oxnas/patches-4.1/700-oxnas-dwmac.patch
@@ -23,3 +23,22 @@
obj-$(CONFIG_STMMAC_PCI) += stmmac-pci.o
stmmac-pci-objs:= stmmac_pci.o
+--- a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
++++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
+@@ -34,6 +34,7 @@
+
+ static const struct of_device_id stmmac_dt_ids[] = {
+ /* SoC specific glue layers should come before generic bindings */
++ { .compatible = "plxtech,nas782x-gmac", .data = &oxnas_gmac_data},
+ { .compatible = "rockchip,rk3288-gmac", .data = &rk3288_gmac_data},
+ { .compatible = "amlogic,meson6-dwmac", .data = &meson6_dwmac_data},
+ { .compatible = "allwinner,sun7i-a20-gmac", .data = &sun7i_gmac_data},
+--- a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.h
++++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.h
+@@ -25,5 +25,6 @@ extern const struct stmmac_of_data stih4
+ extern const struct stmmac_of_data stid127_dwmac_data;
+ extern const struct stmmac_of_data socfpga_gmac_data;
+ extern const struct stmmac_of_data rk3288_gmac_data;
++extern const struct stmmac_of_data oxnas_gmac_data;
+
+ #endif /* __STMMAC_PLATFORM_H__ */