]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
km/ls102xa: add support for field fail-safe u-boot update
authorAleksandar Gerasimovski <aleksandar.gerasimovski@hitachienergy.com>
Fri, 10 Dec 2021 10:08:44 +0000 (11:08 +0100)
committerPriyanka Jain <priyanka.jain@nxp.com>
Tue, 1 Feb 2022 09:38:07 +0000 (15:08 +0530)
Field fail-safe u-boot update procedure for pg-wcom boards is defined and
implemented by patch: 59b3403.
This patch invokes the update procedure for pg-wcom-ls102x designs during
early misc_init_f execution.

Signed-off-by: Aleksandar Gerasimovski <aleksandar.gerasimovski@hitachienergy.com>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
board/keymile/pg-wcom-ls102xa/pg-wcom-ls102xa.c
include/configs/km/pg-wcom-ls102xa.h

index cff18dcd63e91641c794492a8fdc239a81dae366..3dae423e3e0a97c1e94ce1530c8cc8e6b237fcb5 100644 (file)
@@ -109,6 +109,13 @@ int board_early_init_f(void)
        return 0;
 }
 
+int misc_init_f(void)
+{
+       if (IS_ENABLED(CONFIG_PG_WCOM_UBOOT_UPDATE_SUPPORTED))
+               check_for_uboot_update();
+       return 0;
+}
+
 int board_init(void)
 {
        if (IS_ENABLED(CONFIG_SYS_FSL_ERRATUM_A010315))
index 9d7a9e18d592a100de95f466fac60da92069566b..8453be849594a495f08fddc72d391cfdaab4d201 100644 (file)
 #define CONFIG_SYS_BOOTM_LEN   (64 << 20) /* Increase max gunzip size */
 #define CONFIG_SYS_BOOTMAPSZ   (256 << 20) /* Increase map for Linux */
 
+#define CONFIG_MISC_INIT_F
+
 #endif