From patchwork Tue Jun 10 11:33:01 2014
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Patchwork-Submitter: Przemyslaw Marczak
X-Patchwork-Id: 357886
X-Patchwork-Delegate: promsoft@gmail.com
Return-Path:
X-Original-To: incoming@patchwork.ozlabs.org
Delivered-To: patchwork-incoming@bilbo.ozlabs.org
Received: from theia.denx.de (theia.denx.de [85.214.87.163])
by ozlabs.org (Postfix) with ESMTP id 678AC1400B2
for ;
Tue, 10 Jun 2014 21:34:00 +1000 (EST)
Received: from localhost (localhost [127.0.0.1])
by theia.denx.de (Postfix) with ESMTP id 679C74A047;
Tue, 10 Jun 2014 13:33:57 +0200 (CEST)
X-Virus-Scanned: Debian amavisd-new at theia.denx.de
Received: from theia.denx.de ([127.0.0.1])
by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id 7nelSdsIfywh; Tue, 10 Jun 2014 13:33:55 +0200 (CEST)
Received: from theia.denx.de (localhost [127.0.0.1])
by theia.denx.de (Postfix) with ESMTP id 25BE74A02E;
Tue, 10 Jun 2014 13:33:44 +0200 (CEST)
Received: from localhost (localhost [127.0.0.1])
by theia.denx.de (Postfix) with ESMTP id D6E7F4A032
for ; Tue, 10 Jun 2014 13:33:32 +0200 (CEST)
X-Virus-Scanned: Debian amavisd-new at theia.denx.de
Received: from theia.denx.de ([127.0.0.1])
by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id eyUDPj7MIA6b for ;
Tue, 10 Jun 2014 13:33:26 +0200 (CEST)
X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5
NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested)
Received: from mailout3.w1.samsung.com (mailout3.w1.samsung.com
[210.118.77.13]) by theia.denx.de (Postfix) with ESMTPS id 5BA964A02A
for ; Tue, 10 Jun 2014 13:33:22 +0200 (CEST)
Received: from eucpsbgm2.samsung.com (unknown [203.254.199.245])
by mailout3.w1.samsung.com
(Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit
(built Nov
17 2011)) with ESMTP id <0N6Y00CMLARKA8A0@mailout3.w1.samsung.com>
for u-boot@lists.denx.de; Tue, 10 Jun 2014 12:33:20 +0100 (BST)
X-AuditID: cbfec7f5-b7f626d000004b39-b1-5396ed00419d
Received: from eusync3.samsung.com ( [203.254.199.213])
by eucpsbgm2.samsung.com (EUCPMTA) with SMTP id 12.17.19257.00DE6935;
Tue, 10 Jun 2014 12:33:20 +0100 (BST)
Received: from AMDC1186.digital.local ([106.116.147.185])
by eusync3.samsung.com
(Oracle Communications Messaging Server 7u4-23.01(7.0.4.23.0) 64bit
(built Aug
10 2011)) with ESMTPA id <0N6Y00FZEAREZV40@eusync3.samsung.com>; Tue,
10 Jun 2014 12:33:20 +0100 (BST)
From: Przemyslaw Marczak
To: u-boot@lists.denx.de
Date: Tue, 10 Jun 2014 13:33:01 +0200
Message-id: <1402399984-9343-5-git-send-email-p.marczak@samsung.com>
X-Mailer: git-send-email 1.9.1
In-reply-to: <1402399510-8965-1-git-send-email-p.marczak@samsung.com>
References: <1402399510-8965-1-git-send-email-p.marczak@samsung.com>
X-Brightmail-Tracker:
H4sIAAAAAAAAA+NgFnrOJMWRmVeSWpSXmKPExsVy+t/xq7oMb6cFG2z9wWux6+99Rosbv9pY
Ld483Mxo0XGkhdFix+UbLBbrnqxltXi7t5Pdgd3j7J0djB59W1YxBjBFcdmkpOZklqUW6dsl
cGUsX1hVsJar4s2SpywNjLc4uhg5OSQETCTe7n/GBmGLSVy4tx7I5uIQEljKKPF981omCKeP
SaL/+gWwKjYBA4k9l84wg9giAhISv/qvMoIUMQt8ZZR4sOEpWEJYIFFi+/VXLCA2i4CqRMvp
z2DNvAIuEqf+HmOCWCcncfLYZFYQm1PAVeLS35dANgfQNheJWeuzJzDyLmBkWMUomlqaXFCc
lJ5rpFecmFtcmpeul5yfu4kREjhfdzAuPWZ1iFGAg1GJh9fAf1qwEGtiWXFl7iFGCQ5mJRHe
LyeBQrwpiZVVqUX58UWlOanFhxiZODilGhhjBS8sv2wsPm+6jlD4vX2d/34v7NSIUbjPaeYZ
XP1EZE3Fj9S9z35WvX4ivHHKqUuxcVI7JHaGP+Rd+KNMZn1Gt7161GlNZvGNYsUqdfFFpp9n
yiXJajQJGEYfjPa8/7f97P40n+uMvwp9FGU3nA/oMUxIX3/5Krf6g/nJqxxVJ8asqNn2wEOJ
pTgj0VCLuag4EQAFJOpo+gEAAA==
Cc: Piotr Wilczek ,
Jaehoon Chung ,
Przemyslaw Marczak
Subject: [U-Boot] [PATCH 07/10] samsung: board: checkboard: call
get_board_type() for CONFIG_BOARD_TYPES
X-BeenThere: u-boot@lists.denx.de
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: U-Boot discussion
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
MIME-Version: 1.0
Sender: u-boot-bounces@lists.denx.de
Errors-To: u-boot-bounces@lists.denx.de
For support of multiple board types in a one config - it is welcome
to display the current board model. This is what get_board_type()
should return.
Signed-off-by: Przemyslaw Marczak
Cc: Piotr Wilczek
Cc: Minkyu Kang
---
board/samsung/common/board.c | 5 ++++-
include/samsung/misc.h | 1 +
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/board/samsung/common/board.c b/board/samsung/common/board.c
index 9a745d9..c1f3742 100644
--- a/board/samsung/common/board.c
+++ b/board/samsung/common/board.c
@@ -283,7 +283,10 @@ int checkboard(void)
board_name = fdt_getprop(gd->fdt_blob, 0, "model", NULL);
printf("Board: %s\n", board_name ? board_name : "unknown");
-
+#ifdef CONFIG_BOARD_TYPES
+ const char *board_type = get_board_type();
+ printf("Model: %s\n", board_type ? board_type : "unknown");
+#endif
return 0;
}
#endif
diff --git a/include/samsung/misc.h b/include/samsung/misc.h
index bad591f..cbd5456 100644
--- a/include/samsung/misc.h
+++ b/include/samsung/misc.h
@@ -37,6 +37,7 @@ void draw_logo(void);
void set_dfu_boot_alt(int bootmode);
#endif
#ifdef CONFIG_BOARD_TYPES
+const char *get_board_type(void);
const char *get_board_type_fdt(void);
#endif