From 84f1052800cda2312739f6671b00ec8365480f14 Mon Sep 17 00:00:00 2001 From: Aleksandar Gerasimovski Date: Fri, 10 Dec 2021 11:08:44 +0100 Subject: km/ls102xa: add support for field fail-safe u-boot update MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Priyanka Jain --- board/keymile/pg-wcom-ls102xa/pg-wcom-ls102xa.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'board/keymile') diff --git a/board/keymile/pg-wcom-ls102xa/pg-wcom-ls102xa.c b/board/keymile/pg-wcom-ls102xa/pg-wcom-ls102xa.c index cff18dcd63..3dae423e3e 100644 --- a/board/keymile/pg-wcom-ls102xa/pg-wcom-ls102xa.c +++ b/board/keymile/pg-wcom-ls102xa/pg-wcom-ls102xa.c @@ -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)) -- cgit v1.2.3