diff --git a/target/linux/mvebu/cortexa9/base-files/etc/board.d/02_network b/target/linux/mvebu/cortexa9/base-files/etc/board.d/02_network index d936f829c6..b3dbce8542 100644 --- a/target/linux/mvebu/cortexa9/base-files/etc/board.d/02_network +++ b/target/linux/mvebu/cortexa9/base-files/etc/board.d/02_network @@ -29,7 +29,8 @@ mvebu_setup_interfaces() ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4" "wan" ;; fortinet,fg-50e|\ - fortinet,fg-51e) + fortinet,fg-51e|\ + fortinet,fg-52e) ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4 lan5" "eth1 eth2" ;; iij,sa-w2) diff --git a/target/linux/mvebu/cortexa9/base-files/lib/upgrade/platform.sh b/target/linux/mvebu/cortexa9/base-files/lib/upgrade/platform.sh index 9f645eeb48..bc39ddcf50 100755 --- a/target/linux/mvebu/cortexa9/base-files/lib/upgrade/platform.sh +++ b/target/linux/mvebu/cortexa9/base-files/lib/upgrade/platform.sh @@ -54,7 +54,8 @@ platform_do_upgrade() { ;; fortinet,fg-30e|\ fortinet,fg-50e|\ - fortinet,fg-51e) + fortinet,fg-51e|\ + fortinet,fg-52e) fortinet_do_upgrade "$1" ;; iij,sa-w2) diff --git a/target/linux/mvebu/files-6.6/arch/arm/boot/dts/marvell/armada-385-fortinet-fg-52e.dts b/target/linux/mvebu/files-6.6/arch/arm/boot/dts/marvell/armada-385-fortinet-fg-52e.dts new file mode 100644 index 0000000000..bcb0d05627 --- /dev/null +++ b/target/linux/mvebu/files-6.6/arch/arm/boot/dts/marvell/armada-385-fortinet-fg-52e.dts @@ -0,0 +1,12 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT + +#include "armada-385-fortinet-fg-5xe.dtsi" + +/ { + model = "Fortinet FortiGate 52E"; + compatible = "fortinet,fg-52e", "marvell,armada385", "marvell,armada380"; +}; + +&ahci0 { + status = "okay"; +}; diff --git a/target/linux/mvebu/image/cortexa9.mk b/target/linux/mvebu/image/cortexa9.mk index 5319e543e5..00f81dc4fc 100644 --- a/target/linux/mvebu/image/cortexa9.mk +++ b/target/linux/mvebu/image/cortexa9.mk @@ -151,6 +151,15 @@ define Device/fortinet_fg-51e endef TARGET_DEVICES += fortinet_fg-51e +define Device/fortinet_fg-52e + $(Device/fortinet) + DEVICE_MODEL := FortiGate 52E + DEVICE_DTS := armada-385-fortinet-fg-52e + KERNEL_INITRAMFS := kernel-bin | append-dtb | fortigate-header | \ + gzip-filename FGT52E +endef +TARGET_DEVICES += fortinet_fg-52e + define Device/globalscale_mirabox $(Device/NAND-512K) DEVICE_VENDOR := Globalscale