From: Stefan Roese Date: Tue, 12 Nov 2013 13:15:02 +0100 Subject: [U-Boot] [PATCH 4/5] arm: omap3: Add board revision output to tao3530 In-Reply-To: <1384258503-28932-1-git-send-email-sr@denx.de> References: <1384258503-28932-1-git-send-email-sr@denx.de> Message-ID: <1384258503-28932-4-git-send-email-sr@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Signed-off-by: Stefan Roese Cc: Tapani Utriainen Cc: Thorsten Eisbein Cc: Tom Rini --- board/technexion/tao3530/tao3530.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/board/technexion/tao3530/tao3530.c b/board/technexion/tao3530/tao3530.c index f9ea131..2f3f929 100644 --- a/board/technexion/tao3530/tao3530.c +++ b/board/technexion/tao3530/tao3530.c @@ -131,6 +131,23 @@ int misc_init_r(void) writel(GPIO31 | GPIO30 | GPIO29 | GPIO28 | GPIO22 | GPIO21 | GPIO15 | GPIO14 | GPIO13 | GPIO12, &gpio5_base->setdataout); + switch (tao3530_revision()) { + case 0: + printf("TAO-3530 REV Reserve 1\n"); + break; + case 1: + printf("TAO-3530 REV Reserve 2\n"); + break; + case 2: + printf("TAO-3530 REV Cx\n"); + break; + case 3: + printf("TAO-3530 REV Ax/Bx\n"); + break; + default: + printf("Unknown board revision\n"); + } + dieid_num_r(); return 0; -- 1.8.4.3