public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Stefan Roese <sr@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 4/5] arm: omap3: Add board revision output to tao3530
Date: Tue, 12 Nov 2013 13:15:02 +0100	[thread overview]
Message-ID: <1384258503-28932-4-git-send-email-sr@denx.de> (raw)
In-Reply-To: <1384258503-28932-1-git-send-email-sr@denx.de>

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Tapani Utriainen <tapani@technexion.com>
Cc: Thorsten Eisbein <thorsten.eisbein@head-acoustics.de>
Cc: Tom Rini <trini@ti.com>
---
 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

  parent reply	other threads:[~2013-11-12 12:15 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-12 12:14 [U-Boot] [PATCH 1/5] arm, omap3: Add support for TechNexion modules Stefan Roese
2013-11-12 12:15 ` [U-Boot] [PATCH 2/5] arm: omap3: Add SPL support to tao3530 Stefan Roese
2013-11-14  8:55   ` Tapani Utriainen
2013-11-14 17:18   ` Tom Rini
2013-11-14 17:47     ` Stefan Roese
2013-11-14 18:16       ` Tom Rini
2013-11-14 18:23         ` Stefan Roese
2013-11-12 12:15 ` [U-Boot] [PATCH 3/5] arm: omap3: Remove bootargs mem_size handling Stefan Roese
2013-11-12 12:15 ` Stefan Roese [this message]
2013-11-12 12:15 ` [U-Boot] [PATCH 5/5] arm: omap3: Add HEAD acoustics (HA) board variant omap3_ha to tao3530 Stefan Roese
2013-12-03 19:22 ` [U-Boot] [PATCH 1/5] arm, omap3: Add support for TechNexion modules Tom Rini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1384258503-28932-4-git-send-email-sr@denx.de \
    --to=sr@denx.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox