]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: mach-k3: common: Set boot_fit on non-GP devices
authorAndrew Davis <afd@ti.com>
Fri, 7 Oct 2022 16:27:46 +0000 (11:27 -0500)
committerTom Rini <trini@konsulko.com>
Tue, 18 Oct 2022 17:40:40 +0000 (13:40 -0400)
This matches what we did for pre-K3 devices. This allows us to build
boot commands that can check for our device type at runtime.

Signed-off-by: Andrew Davis <afd@ti.com>
arch/arm/mach-k3/common.c

index 14c37acbce70a4c17d28e0fabca49fd46c0cd6a7..227706e8dca0f657ed500447edb37f74827b71a4 100644 (file)
@@ -606,5 +606,9 @@ int misc_init_r(void)
                        printf("Failed to probe am65_cpsw_nuss driver\n");
        }
 
+       /* Default FIT boot on non-GP devices */
+       if (get_device_type() != K3_DEVICE_TYPE_GP)
+               env_set("boot_fit", "1");
+
        return 0;
 }