board: starfive: spl: support DeepComputing FML13V01
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Thu, 24 Apr 2025 12:13:11 +0000 (14:13 +0200)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Fri, 25 Apr 2025 08:39:34 +0000 (16:39 +0800)
On the DeepComputing Framework motherboard (FML13V01) choose the matching
FIT configuration.

Reviewed-by: Hal Feng <hal.feng@starfivetech.com>
Reviewed-by: Matthias Brugger <mbrugger@suse.com>
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: E Shattow <e@freeshell.de>
board/starfive/visionfive2/spl.c

index 3e4d3e2..9a3081e 100644 (file)
@@ -125,7 +125,10 @@ int board_fit_config_name_match(const char *name)
        if (strncmp(name, "starfive/", 9))
                return -EINVAL;
        name += 9;
-       if (!strncmp(product_id, "VF7110", 6)) {
+       if (!strncmp(product_id, "FML13V01", 8) &&
+           !strcmp(name, "jh7110-deepcomputing-fml13v01")) {
+               return 0;
+       } else if (!strncmp(product_id, "VF7110", 6)) {
                version = get_pcb_revision_from_eeprom();
                if ((version == 'b' || version == 'B') &&
                    !strcmp(name, "jh7110-starfive-visionfive-2-v1.3b"))