aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/mach-k3/common.c
diff options
context:
space:
mode:
authorAndrew Davis <afd@ti.com>2022-10-07 11:27:46 -0500
committerTom Rini <trini@konsulko.com>2022-10-18 13:40:40 -0400
commitfc95f83ec9543efb32774efda9e4352df49b1132 (patch)
tree2f76ea6030e08ee853dd1b8b4596c37b504282b4 /arch/arm/mach-k3/common.c
parent28ba10074bc9ede42bdc3f717d1c6b1f85a6790d (diff)
downloadu-boot-fc95f83ec9543efb32774efda9e4352df49b1132.zip
u-boot-fc95f83ec9543efb32774efda9e4352df49b1132.tar.gz
u-boot-fc95f83ec9543efb32774efda9e4352df49b1132.tar.bz2
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. Signed-off-by: Andrew Davis <afd@ti.com>
Diffstat (limited to 'arch/arm/mach-k3/common.c')
-rw-r--r--arch/arm/mach-k3/common.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-k3/common.c b/arch/arm/mach-k3/common.c
index 14c37ac..227706e 100644
--- a/arch/arm/mach-k3/common.c
+++ b/arch/arm/mach-k3/common.c
@@ -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;
}