1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
From 247ab0d5d63145121e94afaee1b221545d37eb20 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/56] 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 24ed0b6..a4e113c 100644
--- a/arch/arm/mach-omap2/board-am335xevm.c
+++ b/arch/arm/mach-omap2/board-am335xevm.c
@@ -2099,6 +2099,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 */
@@ -2121,8 +2122,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
|