[U-Boot] [PATCH] powerpc/85xx: Add recognition of e5500 core
Kumar Gala
galak at kernel.crashing.org
Wed Jun 30 11:48:46 CEST 2010
Signed-off-by: Kumar Gala <galak at kernel.crashing.org>
---
arch/powerpc/cpu/mpc85xx/cpu.c | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/arch/powerpc/cpu/mpc85xx/cpu.c b/arch/powerpc/cpu/mpc85xx/cpu.c
index fddeb2f..25fb25c 100644
--- a/arch/powerpc/cpu/mpc85xx/cpu.c
+++ b/arch/powerpc/cpu/mpc85xx/cpu.c
@@ -93,18 +93,18 @@ int checkcpu (void)
minor = PVR_MIN(pvr);
printf("Core: ");
- switch (fam) {
- case PVR_FAM(PVR_85xx):
- puts("E500");
- break;
- default:
- puts("Unknown");
- break;
+ if (PVR_FAM(PVR_85xx)) {
+ if(PVR_MEM(pvr) <= 0x3) {
+ puts("E500");
+ if (PVR_MEM(pvr) == 0x03)
+ puts("MC");
+ } else {
+ puts("E5500");
+ }
+ } else {
+ puts("Unknown");
}
- if (PVR_MEM(pvr) == 0x03)
- puts("MC");
-
printf(", Version: %d.%d, (0x%08x)\n", major, minor, pvr);
get_sys_info(&sysinfo);
--
1.6.0.6
More information about the U-Boot
mailing list