]> git.sur5r.net Git - u-boot/commitdiff
ARM: AMx3xx: Make FIT boot as default boot on HS devices
authorLokesh Vutla <lokeshvutla@ti.com>
Tue, 29 Nov 2016 06:28:03 +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/am335x/board.c
board/ti/am43xx/board.c

index da9eab47bce2489113ea3ee18748e8322d9ad891..111ed3556cc3c603107e796209c23ea7399b3873 100644 (file)
@@ -639,6 +639,13 @@ int board_late_init(void)
        if (board_is_bbg1())
                name = "BBG1";
        set_board_info_env(name);
+
+       /*
+        * 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");
 #endif
 
 #if !defined(CONFIG_SPL_BUILD)
index ba6f88ffa85081642eaf3568339868fd99b2776e..390cc168cda2a3759a9a0f7e26b9740bdf4b7377 100644 (file)
@@ -632,6 +632,13 @@ int board_late_init(void)
 {
 #ifdef CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
        set_board_info_env(NULL);
+
+       /*
+        * 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");
 #endif
        return 0;
 }