Signed-off-by: Kumar Gala <ga...@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

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to