diff options
author | Dasnavis Sabiya <sabiya.d@ti.com> | 2023-06-02 19:26:19 +0530 |
---|---|---|
committer | Praneeth Bajjuri <praneeth@ti.com> | 2023-06-07 16:56:46 -0500 |
commit | 2566fc68586a5dac6d9771c685da2ffe399ae6c0 (patch) | |
tree | e02f7f42f3b90055606e355a579769306bde5937 | |
parent | 2644410ab13700133c636817322c37646115c950 (diff) |
board: ti: j784s4: Add support to update board_name for am69-sk
Update setup_board_eeprom_env() to choose the right board name
for am69-sk.
Signed-off-by: Dasnavis Sabiya <sabiya.d@ti.com>
-rw-r--r-- | board/ti/j784s4/evm.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/board/ti/j784s4/evm.c b/board/ti/j784s4/evm.c index 18cc77aa51..958027b642 100644 --- a/board/ti/j784s4/evm.c +++ b/board/ti/j784s4/evm.c @@ -26,8 +26,6 @@ #include "../common/board_detect.h" -#define board_is_j784s4_evm() board_ti_k3_is("J784S4-EVM") - DECLARE_GLOBAL_DATA_PTR; int board_init(void) @@ -91,6 +89,14 @@ int ft_board_setup(void *blob, struct bd_info *bd) #endif #ifdef CONFIG_TI_I2C_BOARD_DETECT + +/* +* Functions specific to EVM and SK designs of J784S4/AM69 family. +*/ +#define board_is_j784s4_evm() board_ti_k3_is("J784S4-EVM") + +#define board_is_am69_sk() board_ti_k3_is("AM69-SK") + int do_board_detect(void) { int ret; @@ -133,8 +139,8 @@ static void setup_board_eeprom_env(void) if (do_board_detect()) goto invalid_eeprom; - if (board_is_j784s4_evm()) - name = "j784s4"; + if (board_is_am69_sk()) + name = "am69-sk"; else printf("Unidentified board claims %s in eeprom header\n", board_ti_get_name()); |