Skip to contentSkip to conversation

arm: mach-k3: common: Set boot_fit on non-GP devices

PATCH In review Andrew Davis 2 participants 2 messages Oct 7, 2022 – Oct 18, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm: mach-k3: common: Set boot_fit on non-GP devices

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.

---
 arch/arm/mach-k3/common.c | 4 ++++
 1 file changed, 4 insertions(+)
arch/arm/mach-k3/common.c +4 -0
index 14c37acbce..227706e8dc 100644
@@ -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;
 }
Signature · 1 line
2.37.3
#1 lore raw
Quoted 4 lines · Andrew Davis

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.

Applied to u-boot/master, thanks!

Signature · 1 line
Tom