summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBaruch Siach <baruch@tkos.co.il>2020-01-20 14:20:12 +0200
committerStefan Roese <sr@denx.de>2020-01-21 15:56:15 +0100
commit7211fa6f5abede5f3f40ebdeaa9d9c14a0829033 (patch)
tree5c8adb37ad92faa37c26f836aff19347f116ae45
parenta2e41ad2a9158d733c3b4c8e941f107309e37371 (diff)
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>
-rw-r--r--board/solidrun/clearfog/clearfog.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/board/solidrun/clearfog/clearfog.c b/board/solidrun/clearfog/clearfog.c
index 39a24aa69a..8050cca55a 100644
--- a/board/solidrun/clearfog/clearfog.c
+++ b/board/solidrun/clearfog/clearfog.c
@@ -156,7 +156,16 @@ int board_init(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;
}