Browse Source

ixp4xx: Add back Actiontec MI424WR A/C/D

Prior to the deletion of the old IXP4xx codebase we supported
Actiontec MI424WR A, C and D.

This brings back the support using the upstream device trees
from Linux.

Link: https://github.com/openwrt/openwrt/pull/20066
Signed-off-by: Linus Walleij <[email protected]>
Linus Walleij 3 months ago
parent
commit
f4cc539f0c

+ 10 - 0
target/linux/ixp4xx/base-files/etc/board.d/02_network

@@ -4,6 +4,16 @@
 board_config_update
 
 case "$(board_name)" in
+actiontec,mi424wr-ac)
+	# LAN ports connected to eth1 thru the KS8995 DSA switch
+	ucidef_set_interface "eth" device "eth1" protocol "none"
+	ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4" "eth0"
+	;;
+actiontec,mi424wr-d)
+	# LAN ports connected to eth0 thru the KS8995 DSA switch
+	ucidef_set_interface "eth" device "eth0" protocol "none"
+	ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4" "eth1"
+	;;
 freecom,fsg-3|\
 gateworks,gw2348|\
 gateworks,gw2358)

+ 28 - 0
target/linux/ixp4xx/image/Makefile

@@ -46,6 +46,34 @@ define Device/Default
 	BLOCKSIZE := 128k
 endef
 
+define Device/actiontec_mi424wr_ac
+	DEVICE_VENDOR := Actiontec
+	DEVICE_MODEL := MI424WR rev A/C
+	# Only 8 MB of Flash so not building by default
+	DEFAULT := n
+	DEVICE_PACKAGES := ixp4xx-microcode-ethernet kmod-dsa-ks8995
+	DEVICE_DTS := intel-ixp42x-actiontec-mi424wr-ac
+	KERNEL := kernel-bin | append-dtb
+	IMAGES := kernel.bin rootfs.bin
+	IMAGE/kernel.bin := append-kernel
+	IMAGE/rootfs.bin := append-rootfs | pad-rootfs | pad-to 128k
+endef
+TARGET_DEVICES += actiontec_mi424wr_ac
+
+define Device/actiontec_mi424wr_d
+	DEVICE_VENDOR := Actiontec
+	DEVICE_MODEL := MI424WR rev D
+	# Only 8 MB of Flash so not building by default
+	DEFAULT := n
+	DEVICE_PACKAGES := ixp4xx-microcode-ethernet kmod-dsa-ks8995
+	DEVICE_DTS := intel-ixp42x-actiontec-mi424wr-d
+	KERNEL := kernel-bin | append-dtb
+	IMAGES := kernel.bin rootfs.bin
+	IMAGE/kernel.bin := append-kernel
+	IMAGE/rootfs.bin := append-rootfs | pad-rootfs | pad-to 128k
+endef
+TARGET_DEVICES += actiontec_mi424wr_d
+
 define Device/dlink_dsm_g600_a
 	DEVICE_VENDOR := D-Link
 	DEVICE_MODEL := DSM G600 A