diff mbox series

[08/18] km/ls102xa: add support for field fail-safe u-boot

Message ID AM9PR06MB81009A6B9D00259D7A010CBEE9999@AM9PR06MB8100.eurprd06.prod.outlook.com
State Superseded
Delegated to: Priyanka Jain
Headers show
Series [01/18] arm: ls1021a: limit debug eth phy speed to 100Mbps | expand

Commit Message

Aleksandar Gerasimovski Nov. 16, 2021, 1:03 p.m. UTC
Field fail-safe u-boot update procedure for pg-wcom boards is defined and
implemented by 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>
---
 board/keymile/pg-wcom-ls102xa/pg-wcom-ls102xa.c | 7 +++++++
 include/configs/km/pg-wcom-ls102xa.h            | 2 ++
 2 files changed, 9 insertions(+)

Comments

Priyanka Jain (OSS) Dec. 6, 2021, 8:14 a.m. UTC | #1
>-----Original Message-----
>From: Aleksandar Gerasimovski <aleksandar.gerasimovski@hitachienergy.com>
>Sent: Tuesday, November 16, 2021 6:34 PM
>To: u-boot@lists.denx.de; Priyanka Jain (OSS) <priyanka.jain@oss.nxp.com>;
>Rainer Boschung <rainer.boschung@hitachienergy.com>; Holger Brunck
><holger.brunck@hitachienergy.com>
>Subject: [PATCH 08/18] km/ls102xa: add support for field fail-safe u-boot
>
>Field fail-safe u-boot update procedure for pg-wcom boards is defined and
>implemented by 59b3403.
What is 59b403?
>This patch invokes the update procedure for pg-wcom-ls102x designs during
>early misc_init_f execution.
Can you please add small write-up, may be small section in README explaining fail-safe 
Design, implementation, how to invoke, etc

<snip>

Regards
Priyanka
diff mbox series

Patch

diff --git a/board/keymile/pg-wcom-ls102xa/pg-wcom-ls102xa.c b/board/keymile/pg-wcom-ls102xa/pg-wcom-ls102xa.c
index cff18dc..3dae423 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))
diff --git a/include/configs/km/pg-wcom-ls102xa.h b/include/configs/km/pg-wcom-ls102xa.h
index 743d09e..249bcef 100644
--- a/include/configs/km/pg-wcom-ls102xa.h
+++ b/include/configs/km/pg-wcom-ls102xa.h
@@ -280,4 +280,6 @@ 
 #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