From e6865fbe71c47846a528986effd6b21e4fe3f84b Mon Sep 17 00:00:00 2001
From: Koen Kooi <koen@dominion.thruhere.net>
Date: Tue, 17 Apr 2012 12:57:38 +0200
Subject: [PATCH 29/29] beaglebone: also report cape revision

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
---
 arch/arm/mach-omap2/board-am335xevm.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/arch/arm/mach-omap2/board-am335xevm.c b/arch/arm/mach-omap2/board-am335xevm.c
index 0d20bb1..bfcccd9 100644
--- a/arch/arm/mach-omap2/board-am335xevm.c
+++ b/arch/arm/mach-omap2/board-am335xevm.c
@@ -2097,6 +2097,7 @@ static void beaglebone_cape_setup(struct memory_accessor *mem_acc, void *context
 	int ret;
 	char tmp[32];
 	char name[32];
+	char version[4];
 	char manufacturer[32];
 
 	/* get cape specific data */
@@ -2119,8 +2120,9 @@ static void beaglebone_cape_setup(struct memory_accessor *mem_acc, void *context
 
 	pr_info("BeagleBone cape EEPROM: found eeprom at address 0x%x\n", capecount + 0x53);
 	snprintf(name, sizeof(cape_config.name) + 1, "%s", cape_config.name);
+	snprintf(version, sizeof(cape_config.version) + 1, "%s", cape_config.version);
 	snprintf(manufacturer, sizeof(cape_config.manufacturer) + 1, "%s", cape_config.manufacturer);
-	pr_info("BeagleBone cape: %s %s\n", manufacturer, name);
+	pr_info("BeagleBone cape: %s %s, revision %s\n", manufacturer, name, version);
 	snprintf(tmp, sizeof(cape_config.partnumber) + 1, "%s", cape_config.partnumber);
 	pr_info("BeagleBone cape partnumber: %s\n", tmp);   
 
-- 
1.7.7.6

