]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
kernel: add Microchip ENC28J60 SPI Ethernet controller module 19048/head
authorAlbrecht Lohofener <albrechtloh@gmx.de>
Mon, 9 Jun 2025 05:48:32 +0000 (07:48 +0200)
committerÁlvaro Fernández Rojas <noltari@gmail.com>
Tue, 10 Jun 2025 11:20:35 +0000 (13:20 +0200)
The ENC28J60 is a 10 Mbps half-duplex Ethernet controller interfaced via SPI.
It achieves real-world bandwidth up to 5Mbit/s on devices like the RPi Zero due
to SPI limits.
Commonly used with Raspberry Pi Zero boards for wired network connectivity.

Signed-off-by: Albrecht Lohofener <albrechtloh@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/19048
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
package/kernel/linux/modules/netdevices.mk

index ca0d33be78842aaa71fad975fe8e3c8a89c5db92..b40345d213183c49f5a309b278eaa06011a077be 100644 (file)
@@ -2125,3 +2125,19 @@ define KernelPackage/amazon-ena/description
 endef
 
 $(eval $(call KernelPackage,amazon-ena))
+
+define KernelPackage/enc28j60
+  SUBMENU:=$(NETWORK_DEVICES_MENU)
+  TITLE:=Microchip ENC28J60 SPI Ethernet driver
+  KCONFIG:=\
+    CONFIG_ENC28J60 \
+    CONFIG_ENC28J60_WRITEVERIFY=n
+  FILES:=$(LINUX_DIR)/drivers/net/ethernet/microchip/enc28j60.ko
+  AUTOLOAD:=$(call AutoProbe,enc28j60)
+endef
+
+define KernelPackage/enc28j60/description
+  Kernel module for Microchip ENC28J60 SPI Ethernet controller
+endef
+
+$(eval $(call KernelPackage,enc28j60))