From patchwork Mon Nov 25 10:30:47 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baruch Siach X-Patchwork-Id: 1200329 X-Patchwork-Delegate: sr@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=tkos.co.il Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 47M3L65zV6z9sPf for ; Mon, 25 Nov 2019 21:34:06 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 6EB6CC21E18; Mon, 25 Nov 2019 10:33:36 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 9D1EBC21CB6; Mon, 25 Nov 2019 10:31:15 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id B66ADC21E1B; Mon, 25 Nov 2019 10:31:08 +0000 (UTC) Received: from mx.tkos.co.il (guitar.tcltek.co.il [192.115.133.116]) by lists.denx.de (Postfix) with ESMTPS id 5F330C21CB6 for ; Mon, 25 Nov 2019 10:31:04 +0000 (UTC) Received: from tarshish.tkos.co.il (unknown [10.0.8.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx.tkos.co.il (Postfix) with ESMTPS id 21A3E4409BD; Mon, 25 Nov 2019 12:31:02 +0200 (IST) From: Baruch Siach To: u-boot@lists.denx.de, Stefan Roese Date: Mon, 25 Nov 2019 12:30:47 +0200 Message-Id: <3986d623f3127c4270cd3eab2c771ce5aa990189.1574676560.git.baruch@tkos.co.il> X-Mailer: git-send-email 2.24.0 In-Reply-To: References: MIME-Version: 1.0 Cc: Chris Packham , Baruch Siach , Dennis Gilmore Subject: [U-Boot] [PATCH 07/10] ARM: mvebu: clearfog: print TLV stored product name X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Use the data from EEPROM TLV to display the board identity. Signed-off-by: Baruch Siach Reviewed-by: Stefan Roese --- 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; }