[PATCH 04/11] board: ti: j721s2: Add support to update board_name for am68-sk

Sinthu Raja sinthu.raja at mistralsolutions.com
Thu Oct 27 12:48:39 CEST 2022


From: Sinthu Raja <sinthu.raja at ti.com>

Update setup_board_eeprom_env() to choose the right board name
for am68-sk.

Signed-off-by: Sinthu Raja <sinthu.raja at ti.com>
---
 board/ti/j721s2/evm.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/board/ti/j721s2/evm.c b/board/ti/j721s2/evm.c
index e09adc8ad3..e3c75b35b6 100644
--- a/board/ti/j721s2/evm.c
+++ b/board/ti/j721s2/evm.c
@@ -28,6 +28,8 @@
 
 #define board_is_j721s2_som()	board_ti_k3_is("J721S2X-PM1-SOM")
 
+#define board_is_am68_sk_som() board_ti_k3_is("AM68-SK-SOM")
+
 DECLARE_GLOBAL_DATA_PTR;
 
 int board_init(void)
@@ -136,6 +138,8 @@ static void setup_board_eeprom_env(void)
 
 	if (board_is_j721s2_som())
 		name = "j721s2";
+	else if (board_is_am68_sk_som())
+		name = "am68-sk";
 	else
 		printf("Unidentified board claims %s in eeprom header\n",
 		       board_ti_get_name());
-- 
2.36.1



More information about the U-Boot mailing list