[U-Boot] [PATCH 4/5] ARM: AM57xx: Make FIT boot as default boot on HS devices

Lokesh Vutla lokeshvutla at ti.com
Tue Nov 29 07:28:02 CET 2016


Verification has to be done before booting any images on HS devices. So
default the boot to FIT on HS devices.

Signed-off-by: Lokesh Vutla <lokeshvutla at ti.com>
---
 board/ti/am57xx/board.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/board/ti/am57xx/board.c b/board/ti/am57xx/board.c
index 226752e..c63c693 100644
--- a/board/ti/am57xx/board.c
+++ b/board/ti/am57xx/board.c
@@ -463,6 +463,14 @@ int board_late_init(void)
 	 * This is the POWERHOLD-in-Low behavior.
 	 */
 	palmas_i2c_write_u8(TPS65903X_CHIP_P1, 0xA0, 0x1);
+
+	/*
+	 * Default FIT boot on HS devices. Non FIT images are not allowed
+	 * on HS devices.
+	 */
+	if (get_device_type() == HS_DEVICE)
+		setenv("boot_fit", "1");
+
 	return 0;
 }
 
-- 
2.10.1



More information about the U-Boot mailing list