summaryrefslogtreecommitdiff
path: root/include/asm-ppc
diff options
context:
space:
mode:
authorKumar Gala <galak@kernel.crashing.org>2008-06-10 16:53:46 -0500
committerAndrew Fleming-AFLEMING <afleming@freescale.com>2008-06-10 18:22:25 -0500
commit4dbdb7681e243431530df0725627192a0c4aefda (patch)
tree5ceb394528797079fe563f78f3de3da9bf20f582 /include/asm-ppc
parentee1e35bede91debc8bff9b02f75574486033b652 (diff)
downloadu-boot-imx-4dbdb7681e243431530df0725627192a0c4aefda.zip
u-boot-imx-4dbdb7681e243431530df0725627192a0c4aefda.tar.gz
u-boot-imx-4dbdb7681e243431530df0725627192a0c4aefda.tar.bz2
85xx: expose cpu identification
The current cpu identification code is used just to return the name of the processor at boot. There are some other locations that the name is useful (device tree setup). Expose the functionality to other bits of code. Also, drop the 'E' suffix and add it on by looking at the SVR version when we print this out. This is mainly to allow the most flexible use of the name. The device tree code tends to not care about the 'E' suffix. Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'include/asm-ppc')
-rw-r--r--include/asm-ppc/processor.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/asm-ppc/processor.h b/include/asm-ppc/processor.h
index 8bdfb9d..61a0d05 100644
--- a/include/asm-ppc/processor.h
+++ b/include/asm-ppc/processor.h
@@ -960,6 +960,17 @@ n:
#define SR15 15
#ifndef __ASSEMBLY__
+
+struct cpu_type {
+ char name[15];
+ u32 soc_ver;
+};
+
+struct cpu_type *identify_cpu(uint ver);
+
+#define CPU_TYPE_ENTRY(n, v) \
+ { .name = #n, .soc_ver = SVR_##v, }
+
#ifndef CONFIG_MACH_SPECIFIC
extern int _machine;
extern int have_of;