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>
This commit is contained in:
Kumar Gala
2008-06-10 16:53:46 -05:00
committed by Andrew Fleming-AFLEMING
parent ee1e35bede
commit 4dbdb7681e
2 changed files with 52 additions and 37 deletions

View File

@@ -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;