aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorMathew McBride <matt@traverse.com.au>2023-03-20 02:53:31 +0000
committerPetr Štetiar <ynezz@true.cz>2023-06-02 11:36:32 +0200
commit847467a5729995a98aa34329f6fa0ed4cb79d210 (patch)
tree46066eb60619c2c976681a4f042ed54b18ef62c3 /target/linux
parent2dbeb607251b75b506dcc8f1294cd9ed0bac9694 (diff)
downloadupstream-847467a5729995a98aa34329f6fa0ed4cb79d210.tar.gz
upstream-847467a5729995a98aa34329f6fa0ed4cb79d210.tar.bz2
upstream-847467a5729995a98aa34329f6fa0ed4cb79d210.zip
armvirt: 64: add Allwinner A3/A83T/A64 (sun8i family) Ethernet
Add support for the dwmac (stmmac) variant used by Allwinner Arm64 boards. Signed-off-by: Mathew McBride <matt@traverse.com.au>
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/armvirt/image/Makefile4
-rw-r--r--target/linux/armvirt/modules.mk11
2 files changed, 13 insertions, 2 deletions
diff --git a/target/linux/armvirt/image/Makefile b/target/linux/armvirt/image/Makefile
index f1d0acd0138..533a17b5229 100644
--- a/target/linux/armvirt/image/Makefile
+++ b/target/linux/armvirt/image/Makefile
@@ -109,8 +109,8 @@ define Device/generic
kmod-i2c-mux-pca954x kmod-gpio-pca953x partx-utils kmod-wdt-sp805 \
kmod-mvneta kmod-mvpp2 kmod-fsl-dpaa1-net kmod-fsl-dpaa2-net \
kmod-fsl-enetc-net kmod-dwmac-imx kmod-fsl-fec kmod-thunderx-net \
- kmod-phy-aquantia kmod-phy-broadcom kmod-phy-marvell kmod-sfp \
- kmod-phy-marvell-10g kmod-atlantic
+ kmod-dwmac-sun8i kmod-phy-aquantia kmod-phy-broadcom kmod-phy-marvell \
+ kmod-sfp kmod-phy-marvell-10g kmod-atlantic
endef
TARGET_DEVICES += generic
diff --git a/target/linux/armvirt/modules.mk b/target/linux/armvirt/modules.mk
index 1531e91bde0..5c863824d37 100644
--- a/target/linux/armvirt/modules.mk
+++ b/target/linux/armvirt/modules.mk
@@ -234,6 +234,17 @@ endef
$(eval $(call KernelPackage,dwmac-imx))
+define KernelPackage/dwmac-sun8i
+ SUBMENU=$(NETWORK_DEVICES_MENU)
+ TITLE:=Allwinner H3/A83T/A64 (sun8i) Ethernet
+ DEPENDS:=+kmod-stmmac-core +kmod-mdio-bus-mux
+ KCONFIG:=CONFIG_DWMAC_SUN8I
+ FILES=$(LINUX_DIR)/drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.ko
+ AUTOLOAD=$(call AutoLoad,45,dwmac-sun8i)
+endef
+
+$(eval $(call KernelPackage,dwmac-sun8i))
+
define KernelPackage/thunderx-net
SUBMENU:=$(NETWORK_DEVICES_MENU)
TITLE:=Marvell (Cavium) ThunderX/2 network drivers