diff options
author | Florian Fainelli <florian@openwrt.org> | 2009-11-25 23:43:48 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2009-11-25 23:43:48 +0000 |
commit | 4bfa2947eeca220e3cff41dbad9fbaea25245ed0 (patch) | |
tree | bb7af150cb3f5cd5c354b5bcdeb00eb1f235b940 /target/linux/ep93xx/patches-2.6.30/012-ep93xx-cpuinfo.patch | |
parent | 850fe2320fc1056b45aab08bbac8e3a3da806203 (diff) | |
download | upstream-4bfa2947eeca220e3cff41dbad9fbaea25245ed0.tar.gz upstream-4bfa2947eeca220e3cff41dbad9fbaea25245ed0.tar.bz2 upstream-4bfa2947eeca220e3cff41dbad9fbaea25245ed0.zip |
add support for the Simplemachines Sim.One board
SVN-Revision: 18540
Diffstat (limited to 'target/linux/ep93xx/patches-2.6.30/012-ep93xx-cpuinfo.patch')
-rw-r--r-- | target/linux/ep93xx/patches-2.6.30/012-ep93xx-cpuinfo.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/target/linux/ep93xx/patches-2.6.30/012-ep93xx-cpuinfo.patch b/target/linux/ep93xx/patches-2.6.30/012-ep93xx-cpuinfo.patch new file mode 100644 index 0000000000..d2845c910a --- /dev/null +++ b/target/linux/ep93xx/patches-2.6.30/012-ep93xx-cpuinfo.patch @@ -0,0 +1,32 @@ +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; + } |