From 60ab834032b50ad88ede8d50cfc7375cd0d705a0 Mon Sep 17 00:00:00 2001 From: Matthieu Crapet Date: Sun, 17 Jan 2010 17:07:14 +0100 Subject: [PATCH 03/16] ep93xx_cpuinfo MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Signed-off-by: Petr Štetiar --- 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 621acad..55914ad 100644 --- a/arch/arm/kernel/setup.c +++ b/arch/arm/kernel/setup.c @@ -861,6 +861,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 + #include + 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.3.3