summaryrefslogtreecommitdiff
path: root/recipes/linux/linux-2.6.32/ts72xx/0003-ep93xx_cpuinfo.patch
blob: 9f894f44584051fd1db626d98b0c0faf060a955e (plain)
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
37
From 3ce6628293a97c7fcbec52d6889338d3dbdbd595 Mon Sep 17 00:00:00 2001
From: Matthieu Crapet <mcrapet@gmail.com>
Date: Sun, 17 Jan 2010 17:07:14 +0100
Subject: [PATCH] ep93xx_cpuinfo
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit


Signed-off-by: Petr Štetiar <ynezz@true.cz>
---
 arch/arm/kernel/setup.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c
index c6c57b6..29d5f4f 100644
--- a/arch/arm/kernel/setup.c
+++ b/arch/arm/kernel/setup.c
@@ -860,6 +860,15 @@ static int c_show(struct seq_file *m, void *v)
 	seq_puts(m, "\n");
 
 	seq_printf(m, "Hardware\t: %s\n", machine_name);
+
+	#if defined(CONFIG_ARCH_EP93XX)
+	#include <mach/io.h>
+	#include <mach/ep93xx-regs.h>
+	system_rev = *((unsigned int *)EP93XX_SYSCON_CHIPID) >> 28;
+	system_serial_low = *((unsigned int *)EP93XX_SECURITY_UNIQID);
+	system_serial_high = 0;
+	#endif
+
 	seq_printf(m, "Revision\t: %04x\n", system_rev);
 	seq_printf(m, "Serial\t\t: %08x%08x\n",
 		   system_serial_high, system_serial_low);
-- 
1.6.0.4