summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLokesh Vutla <lokeshvutla@ti.com>2016-11-29 06:28:02 (GMT)
committerTom Rini <trini@konsulko.com>2016-12-03 18:21:09 (GMT)
commit82cca5a6be35ad74fa7ee4f954803c8d499e9406 (patch)
tree7003e530e6c78f1759da51309741a58137c89014
parent71c1b58e89d8c2025917d46a4b3bc57979f85070 (diff)
downloadu-boot-fsl-qoriq-82cca5a6be35ad74fa7ee4f954803c8d499e9406.tar.xz
ARM: AM57xx: Make FIT boot as default boot on HS devices
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@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com>
-rw-r--r--board/ti/am57xx/board.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/board/ti/am57xx/board.c b/board/ti/am57xx/board.c
index f3e3f0b..d162d34 100644
--- a/board/ti/am57xx/board.c
+++ b/board/ti/am57xx/board.c
@@ -386,6 +386,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;
}