mvebu: add SolidRun ClearFog GT 8K
authorLogan Blyth <mrbojangles3@gmail.com>
Wed, 8 Jun 2022 01:46:22 +0000 (21:46 -0400)
committerChristian Lamparter <chunkeey@gmail.com>
Sun, 19 Jun 2022 10:40:30 +0000 (12:40 +0200)
ClearFog GT 8K is device sold by SolidRun. It is marketed as a
development board, not a consumer product. The device tree file for this board
is upstream in kernel.org.

Signed-off-by: Logan Blyth <mrbojangles3@gmail.com>
target/linux/mvebu/cortexa72/base-files/etc/board.d/02_network
target/linux/mvebu/cortexa72/base-files/lib/upgrade/platform.sh
target/linux/mvebu/image/cortexa72.mk

index f3c59bf2adb3102b026b7903d1c6685cc7c77f06..6a5861084e536fe53699f19aa513292e74098076 100644 (file)
@@ -29,6 +29,9 @@ marvell,armada8040-db)
 marvell,armada7040-db)
        ucidef_set_interfaces_lan_wan "eth0 eth2" "eth1"
        ;;
+marvell,armada8040-clearfog-gt-8k)
+       ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4 eth2" "eth0 eth1"
+       ;;
 *)
        ucidef_set_interface_lan "eth0"
        ;;
index 18fdb01959cf13e21378f7afb16dc1622c96c726..dc964a31176b4cbf7c2068785eb8d1f29d5682e1 100755 (executable)
@@ -13,7 +13,8 @@ platform_check_image() {
        iei,puzzle-m901|\
        iei,puzzle-m902|\
        marvell,armada8040-mcbin-doubleshot|\
-       marvell,armada8040-mcbin-singleshot)
+       marvell,armada8040-mcbin-singleshot|\
+       marvell,armada8040-clearfog-gt-8k)
                legacy_sdcard_check_image "$1"
                ;;
        *)
@@ -30,7 +31,8 @@ platform_do_upgrade() {
                ;;
        globalscale,mochabin|\
        marvell,armada8040-mcbin-doubleshot|\
-       marvell,armada8040-mcbin-singleshot)
+       marvell,armada8040-mcbin-singleshot|\
+       marvell,armada8040-clearfog-gt-8k)
                legacy_sdcard_do_upgrade "$1"
                ;;
        *)
@@ -44,7 +46,8 @@ platform_copy_config() {
        iei,puzzle-m901|\
        iei,puzzle-m902|\
        marvell,armada8040-mcbin-doubleshot|\
-       marvell,armada8040-mcbin-singleshot)
+       marvell,armada8040-mcbin-singleshot|\
+       marvell,armada8040-clearfog-gt-8k)
                legacy_sdcard_copy_config
                ;;
        esac
index f95ce533ea89978a7db915cb497f15b80532e291..84ce0cda9ab6e4059f4adc11deb510e09578f72f 100644 (file)
@@ -52,6 +52,17 @@ define Device/marvell_macchiatobin-singleshot
 endef
 TARGET_DEVICES += marvell_macchiatobin-singleshot
 
+define Device/marvell_clearfog-gt-8k
+  $(call Device/Default-arm64)
+  DEVICE_VENDOR := SolidRun
+  DEVICE_MODEL := Clearfog
+  DEVICE_VARIANT := GT-8K
+  DEVICE_PACKAGES += kmod-i2c-mux-pca954x kmod-crypto-hw-safexcel
+  DEVICE_DTS := armada-8040-clearfog-gt-8k
+  SUPPORTED_DEVICES := marvell,armada8040-clearfog-gt-8k
+endef
+TARGET_DEVICES += marvell_clearfog-gt-8k
+
 define Device/iei_puzzle-m901
   $(call Device/Default-arm64)
   DEVICE_VENDOR := iEi