kernel: backport Motorcomm YT6801 PCIe ethernet driver support

Motorcomm YT6801 is a PCIe ethernet controller based on DWMAC4 IP. It
integrates an GbE phy, supporting WOL, VLAN tagging and various types
of offloading. It ships an on-chip eFuse for storing various vendor
configuration, including MAC address.

The PM and plat_data functions were slightly modified to build with
current kernel.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
Link: https://github.com/openwrt/openwrt/pull/22923
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
Tianling Shen
2026-03-26 14:05:35 +08:00
committed by Hauke Mehrtens
parent 3956287514
commit 5917c67af9
9 changed files with 1031 additions and 2 deletions
@@ -689,6 +689,22 @@ endef
$(eval $(call KernelPackage,phy-motorcomm))
define KernelPackage/dwmac-motorcomm
SUBMENU:=$(NETWORK_DEVICES_MENU)
TITLE:=Motorcomm PCI DWMAC support
DEPENDS:=@PCI_SUPPORT +kmod-phy-motorcomm +kmod-stmmac-core
KCONFIG:=CONFIG_DWMAC_MOTORCOMM
FILES:=$(LINUX_DIR)/drivers/net/ethernet/stmicro/stmmac/dwmac-motorcomm.ko
AUTOLOAD:=$(call AutoProbe,dwmac-motorcomm,1)
endef
define KernelPackage/dwmac-motorcomm/description
Supports the Motorcomm DWMAC-based PCI Ethernet controllers.
endef
$(eval $(call KernelPackage,dwmac-motorcomm))
define KernelPackage/dsa
SUBMENU:=$(NETWORK_DEVICES_MENU)
TITLE:=Distributed Switch Architecture support