ARM: AM57xx: Make FIT boot as default boot on HS devices
authorLokesh Vutla <lokeshvutla@ti.com>
Tue, 29 Nov 2016 06:28:02 +0000 (11:58 +0530)
committerTom Rini <trini@konsulko.com>
Sat, 3 Dec 2016 18:21:09 +0000 (13:21 -0500)
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>
board/ti/am57xx/board.c

index f3e3f0bd3d608547336da8f6a567e266bed1ccf5..d162d343714b5323a0b112fc5eb158d9aff642b9 100644 (file)
@@ -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;
 }