From: Lokesh Vutla Date: Tue, 29 Nov 2016 06:28:02 +0000 (+0530) Subject: ARM: AM57xx: Make FIT boot as default boot on HS devices X-Git-Tag: v2017.01-rc1~99 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=82cca5a6be35ad74fa7ee4f954803c8d499e9406;p=u-boot 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 Reviewed-by: Tom Rini --- diff --git a/board/ti/am57xx/board.c b/board/ti/am57xx/board.c index f3e3f0bd3d..d162d34371 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; }