From 4b4c940fbc8f87b67c6b8c5cca035cfb88478af5 Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Sun, 26 Nov 2023 23:59:54 +0100 Subject: [PATCH] x86: Add kmod-dwmac-intel This adds the Intel Ethernet driver for the Intel Quark/EHL/TGL chips. Fixes: #13994 Signed-off-by: Hauke Mehrtens --- package/kernel/linux/modules/netdevices.mk | 2 +- target/linux/x86/image/64.mk | 2 +- target/linux/x86/modules.mk | 12 ++++++++++++ 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/package/kernel/linux/modules/netdevices.mk b/package/kernel/linux/modules/netdevices.mk index f44cbd24f7..d357b233f2 100644 --- a/package/kernel/linux/modules/netdevices.mk +++ b/package/kernel/linux/modules/netdevices.mk @@ -1546,7 +1546,7 @@ $(eval $(call KernelPackage,sfp)) define KernelPackage/stmmac-core SUBMENU:=$(NETWORK_DEVICES_MENU) TITLE:=Synopsis Ethernet Controller core (NXP,STMMicro,others) - DEPENDS:=@(TARGET_armsr_armv8) +kmod-pcs-xpcs +kmod-ptp \ + DEPENDS:=@TARGET_x86_64||TARGET_armsr_armv8 +kmod-pcs-xpcs +kmod-ptp \ +kmod-of-mdio KCONFIG:=CONFIG_STMMAC_ETH \ CONFIG_STMMAC_SELFTESTS=n \ diff --git a/target/linux/x86/image/64.mk b/target/linux/x86/image/64.mk index 718ff4f63d..f3d795ea22 100644 --- a/target/linux/x86/image/64.mk +++ b/target/linux/x86/image/64.mk @@ -2,7 +2,7 @@ define Device/generic DEVICE_VENDOR := Generic DEVICE_MODEL := x86/64 DEVICE_PACKAGES += \ - kmod-amazon-ena kmod-amd-xgbe kmod-bnx2 kmod-e1000e kmod-e1000 \ + kmod-amazon-ena kmod-amd-xgbe kmod-bnx2 kmod-dwmac-intel kmod-e1000e kmod-e1000 \ kmod-forcedeth kmod-fs-vfat kmod-igb kmod-igc kmod-ixgbe kmod-r8169 \ kmod-tg3 kmod-mlxsw-core kmod-mlxsw-pci kmod-mlxsw-i2c \ kmod-mlxsw-spectrum kmod-mlxsw-minimal kmod-mlxfw \ diff --git a/target/linux/x86/modules.mk b/target/linux/x86/modules.mk index 511410d614..cdae01bce6 100644 --- a/target/linux/x86/modules.mk +++ b/target/linux/x86/modules.mk @@ -18,6 +18,18 @@ endef $(eval $(call KernelPackage,amd-xgbe)) +define KernelPackage/dwmac-intel + SUBMENU:=$(NETWORK_DEVICES_MENU) + TITLE:=Intel GMAC support + DEPENDS:=@TARGET_x86_64 +kmod-stmmac-core + KCONFIG:=CONFIG_DWMAC_INTEL + FILES=$(LINUX_DIR)/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.ko + AUTOLOAD=$(call AutoLoad,45,dwmac-intel) +endef + +$(eval $(call KernelPackage,dwmac-intel)) + + define KernelPackage/f71808e-wdt SUBMENU:=$(OTHER_MENU) TITLE:=Fintek F718xx/F818xx Watchdog Timer -- 2.30.2