[PATCH 07/10] ARM: mvebu: clearfog: print TLV stored product name

Stefan Roese sr at denx.de
Mon Jan 13 08:23:08 CET 2020


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 <baruch at tkos.co.il>
> ---
>   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 <sr at denx.de>

Thanks,
Stefan


More information about the U-Boot mailing list