mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-26 12:27:12 +00:00
board: ti: j721s2: Add support to update board_name for am68-sk
Update setup_board_eeprom_env() to choose the right board name for am68-sk. Signed-off-by: Sinthu Raja <sinthu.raja@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
parent
76361af76c
commit
24bbe09a91
1 changed files with 10 additions and 2 deletions
|
@ -26,8 +26,6 @@
|
||||||
|
|
||||||
#include "../common/board_detect.h"
|
#include "../common/board_detect.h"
|
||||||
|
|
||||||
#define board_is_j721s2_som() board_ti_k3_is("J721S2X-PM1-SOM")
|
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
|
|
||||||
int board_init(void)
|
int board_init(void)
|
||||||
|
@ -101,6 +99,14 @@ int ft_board_setup(void *blob, struct bd_info *bd)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_TI_I2C_BOARD_DETECT
|
#ifdef CONFIG_TI_I2C_BOARD_DETECT
|
||||||
|
/*
|
||||||
|
* Functions specific to EVM and SK designs of J721S2/AM68 family.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#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")
|
||||||
|
|
||||||
int do_board_detect(void)
|
int do_board_detect(void)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
@ -136,6 +142,8 @@ static void setup_board_eeprom_env(void)
|
||||||
|
|
||||||
if (board_is_j721s2_som())
|
if (board_is_j721s2_som())
|
||||||
name = "j721s2";
|
name = "j721s2";
|
||||||
|
else if (board_is_am68_sk_som())
|
||||||
|
name = "am68-sk";
|
||||||
else
|
else
|
||||||
printf("Unidentified board claims %s in eeprom header\n",
|
printf("Unidentified board claims %s in eeprom header\n",
|
||||||
board_ti_get_name());
|
board_ti_get_name());
|
||||||
|
|
Loading…
Add table
Reference in a new issue