mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-07-06 14:32:03 +00:00
ARM: mvebu: clearfog: print TLV stored product name
Use the data from EEPROM TLV to display the board identity. Reviewed-by: Stefan Roese <sr@denx.de> Signed-off-by: Baruch Siach <baruch@tkos.co.il>
This commit is contained in:
parent
a2e41ad2a9
commit
7211fa6f5a
1 changed files with 10 additions and 1 deletions
|
@ -156,7 +156,16 @@ int board_init(void)
|
||||||
|
|
||||||
int checkboard(void)
|
int checkboard(void)
|
||||||
{
|
{
|
||||||
puts("Board: SolidRun ClearFog\n");
|
char *board = "ClearFog";
|
||||||
|
|
||||||
|
cf_read_tlv_data();
|
||||||
|
if (strlen(cf_tlv_data.tlv_product_name[0]) > 0)
|
||||||
|
board = cf_tlv_data.tlv_product_name[0];
|
||||||
|
|
||||||
|
printf("Board: SolidRun %s", board);
|
||||||
|
if (strlen(cf_tlv_data.tlv_product_name[1]) > 0)
|
||||||
|
printf(", %s", cf_tlv_data.tlv_product_name[1]);
|
||||||
|
puts("\n");
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue