]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: mach-k3: common: Default to non fitImage boot on HS-FS
authorVignesh Raghavendra <vigneshr@ti.com>
Thu, 20 Apr 2023 16:12:21 +0000 (21:42 +0530)
committerTom Rini <trini@konsulko.com>
Tue, 2 May 2023 18:23:59 +0000 (14:23 -0400)
Allow non fitImage bootflow on Field Securable (HS-FS) devices in
addition to GP, force fitImage boot only on Security enforced (HS-SE)
devices where signed images are necessary to maintain chain of trust.

Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
Reviewed-by: Kamlesh Gurudasani <kamlesh@ti.com>
arch/arm/mach-k3/common.c

index 7baab7d1a5f3d45dbba3d324545d3a42264b8afd..b40e930b615d91742f15b27f8b5735f399de6601 100644 (file)
@@ -641,8 +641,8 @@ 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)
+       /* Default FIT boot on HS-SE devices */
+       if (get_device_type() == K3_DEVICE_TYPE_HS_SE)
                env_set("boot_fit", "1");
 
        return 0;