diff mbox series

arm: mach-k3: common: Default to non fitImage boot on HS-FS

Message ID 20230420161221.1303716-1-vigneshr@ti.com
State Accepted
Commit fdb051ba3f791cd0cdc035b715509dd9dd17cb8e
Delegated to: Tom Rini
Headers show
Series arm: mach-k3: common: Default to non fitImage boot on HS-FS | expand

Commit Message

Raghavendra, Vignesh April 20, 2023, 4:12 p.m. UTC
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>
---
 arch/arm/mach-k3/common.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Kamlesh Gurudasani April 21, 2023, 1:24 p.m. UTC | #1
Vignesh Raghavendra <vigneshr@ti.com> writes:

> 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>
Tom Rini May 3, 2023, 1:27 p.m. UTC | #2
On Thu, Apr 20, 2023 at 09:42:21PM +0530, Vignesh Raghavendra wrote:

> 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>

Applied to u-boot/master, thanks!
diff mbox series

Patch

diff --git a/arch/arm/mach-k3/common.c b/arch/arm/mach-k3/common.c
index a2adb791f6c0..1efeae4bc677 100644
--- a/arch/arm/mach-k3/common.c
+++ b/arch/arm/mach-k3/common.c
@@ -606,8 +606,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;