From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Roese Date: Mon, 13 Jan 2020 08:23:08 +0100 Subject: [PATCH 07/10] ARM: mvebu: clearfog: print TLV stored product name In-Reply-To: <3986d623f3127c4270cd3eab2c771ce5aa990189.1574676560.git.baruch@tkos.co.il> References: <3986d623f3127c4270cd3eab2c771ce5aa990189.1574676560.git.baruch@tkos.co.il> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 25.11.19 11:30, Baruch Siach wrote: > Use the data from EEPROM TLV to display the board identity. > > Signed-off-by: Baruch Siach > --- > board/solidrun/clearfog/clearfog.c | 11 ++++++++++- > 1 file changed, 10 insertions(+), 1 deletion(-) > > diff --git a/board/solidrun/clearfog/clearfog.c b/board/solidrun/clearfog/clearfog.c > index 707afabb11a7..852b1ad71bb2 100644 > --- a/board/solidrun/clearfog/clearfog.c > +++ b/board/solidrun/clearfog/clearfog.c > @@ -246,7 +246,16 @@ int board_init(void) > > int checkboard(void) > { > - puts("Board: SolidRun ClearFog\n"); > + char *board = "ClearFog"; > + > + read_tlv_data(); > + if (strlen(tlv_product_name[0]) > 0) > + board = tlv_product_name[0]; > + > + printf("Board: SolidRun %s", board); > + if (strlen(tlv_product_name[1]) > 0) > + printf(", %s", tlv_product_name[1]); > + puts("\n"); > > return 0; > } > Reviewed-by: Stefan Roese Thanks, Stefan