From: Stefan Lippers-Hollmann Date: Sun, 26 May 2019 03:28:53 +0000 (+0200) Subject: kernel: alx driver for AR816x/AR817x Ethernet X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=cba6832622cc952f5e1e91e6a2a406122c744dc5;p=openwrt%2Fstaging%2Faparcar.git kernel: alx driver for AR816x/AR817x Ethernet These ethernet cards can be found onboard various x86 and x86_64 Gigabyte mainboards since the sandy-bridge/ ivy-bridge era. This driver supports the following QCA/"Killer" ethernet cards: 1969:1091 - AR8161 Gigabit Ethernet 1969:1090 - AR8162 Fast Ethernet 1969:10A1 - AR8171 Gigabit Ethernet 1969:10A0 - AR8172 Fast Ethernet 1969:E091 - Killer E2200 Gigabit Ethernet 1969:E0A1 - Killer E2400 Gigabit Ethernet 1969:E0B1 - Killer E2500 Gigabit Ethernet Successfully runtime tested with the onboard ethernet card of a Gigabyte GA-H77M-D3H ivy-bridge mainboard (x86_64/EFI image): 02:00.0 Ethernet controller [0200]: Qualcomm Atheros AR8161 [...] Subsystem: Gigabyte Technology Co., Ltd AR8161 [...] Kernel driver in use: alx Kernel modules: alx alx 0000:02:00.0 eth0: Qualcomm Atheros AR816x/AR817x Ethernet [...] alx 0000:02:00.0 eth0: NIC Up: 1 Gbps Full Signed-off-by: Stefan Lippers-Hollmann Signed-off-by: Christian Lamparter [fix typo, shorten subject to <50 characters, shorten lines to <76 chars.] --- diff --git a/package/kernel/linux/modules/netdevices.mk b/package/kernel/linux/modules/netdevices.mk index 3f36332ba2..4ed5736bb2 100644 --- a/package/kernel/linux/modules/netdevices.mk +++ b/package/kernel/linux/modules/netdevices.mk @@ -33,6 +33,18 @@ endef $(eval $(call KernelPackage,skge)) +define KernelPackage/alx + SUBMENU:=$(NETWORK_DEVICES_MENU) + TITLE:=Qualcomm Atheros AR816x/AR817x PCI-E Ethernet Network Driver + DEPENDS:=@PCI_SUPPORT +kmod-mdio + KCONFIG:=CONFIG_ALX + FILES:=$(LINUX_DIR)/drivers/net/ethernet/atheros/alx/alx.ko + AUTOLOAD:=$(call AutoProbe,alx) +endef + +$(eval $(call KernelPackage,alx)) + + define KernelPackage/atl2 SUBMENU:=$(NETWORK_DEVICES_MENU) TITLE:=Atheros L2 Fast Ethernet support