From patchwork Wed Dec 4 08:27:36 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Roese X-Patchwork-Id: 296446 X-Patchwork-Delegate: trini@ti.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 031EC2C00A9 for ; Wed, 4 Dec 2013 19:29:03 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 1654C4B232; Wed, 4 Dec 2013 09:28:50 +0100 (CET) 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 Qy0xYBsQ+O3N; Wed, 4 Dec 2013 09:28:49 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C413B4B233; Wed, 4 Dec 2013 09:28:31 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 177724B224 for ; Wed, 4 Dec 2013 09:28:25 +0100 (CET) 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 YNZW6ohIyfdQ for ; Wed, 4 Dec 2013 09:28:20 +0100 (CET) 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 mo-p05-ob.rzone.de (mo-p05-ob.rzone.de [81.169.146.180]) by theia.denx.de (Postfix) with ESMTPS id 0AF1A4B21F for ; Wed, 4 Dec 2013 09:28:04 +0100 (CET) X-RZG-AUTH: :IW0NeWC7b/q2i6W/qstXb1SBUuFnrGohdvpEkce+Ub40Q/uAFj+9EbzbWD+L2+8= X-RZG-CLASS-ID: mo05 Received: from ubuntu-2012.fritz.box (pD9FF825C.dip0.t-ipconnect.de [217.255.130.92]) by smtp.strato.de (RZmta 32.17 DYNA|AUTH) with ESMTPA id N055ebpB48RmCz6 ; Wed, 4 Dec 2013 09:27:48 +0100 (CET) From: Stefan Roese To: u-boot@lists.denx.de Date: Wed, 4 Dec 2013 09:27:36 +0100 Message-Id: <1386145657-27146-4-git-send-email-sr@denx.de> X-Mailer: git-send-email 1.8.4.4 In-Reply-To: <1386145657-27146-1-git-send-email-sr@denx.de> References: <1386145657-27146-1-git-send-email-sr@denx.de> Cc: Tom Rini , Thorsten Eisbein Subject: [U-Boot] [PATCH v2 4/5] arm: omap3: Add board revision output to tao3530 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 Signed-off-by: Stefan Roese Cc: Tapani Utriainen Cc: Thorsten Eisbein Cc: Tom Rini --- v2: - Use puts instead of printf when possible 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 814537b..5041eaf 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: + puts("TAO-3530 REV Reserve 1\n"); + break; + case 1: + puts("TAO-3530 REV Reserve 2\n"); + break; + case 2: + puts("TAO-3530 REV Cx\n"); + break; + case 3: + puts("TAO-3530 REV Ax/Bx\n"); + break; + default: + puts("Unknown board revision\n"); + } + dieid_num_r(); return 0;