mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-01 19:06:16 +02:00
288fe38045
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18540 3c298f89-4303-0410-b956-a3cf2f4a3e73
33 lines
947 B
Diff
33 lines
947 B
Diff
Index: linux-2.6.30.9/arch/arm/kernel/setup.c
|
|
===================================================================
|
|
--- linux-2.6.30.9.orig/arch/arm/kernel/setup.c 2009-11-24 21:00:10.000000000 +0100
|
|
+++ linux-2.6.30.9/arch/arm/kernel/setup.c 2009-11-24 21:00:46.000000000 +0100
|
|
@@ -42,6 +42,10 @@
|
|
#include <asm/traps.h>
|
|
#include <asm/unwind.h>
|
|
|
|
+#if defined(CONFIG_ARCH_EP93XX)
|
|
+#include <mach/ep93xx-regs.h>
|
|
+#endif
|
|
+
|
|
#include "compat.h"
|
|
#include "atags.h"
|
|
|
|
@@ -844,9 +848,16 @@
|
|
seq_puts(m, "\n");
|
|
|
|
seq_printf(m, "Hardware\t: %s\n", machine_name);
|
|
+#if defined(CONFIG_ARCH_EP93XX)
|
|
+ seq_printf(m, "Revision\t: %04x\n",
|
|
+ *((unsigned int *)EP93XX_SYSCON_CHIP_ID) >> 28);
|
|
+ seq_printf(m, "Serial\t\t: %016x\n",
|
|
+ *((unsigned int *)EP93XX_SECURITY_UNIQID));
|
|
+#else
|
|
seq_printf(m, "Revision\t: %04x\n", system_rev);
|
|
seq_printf(m, "Serial\t\t: %08x%08x\n",
|
|
system_serial_high, system_serial_low);
|
|
+#endif
|
|
|
|
return 0;
|
|
}
|