]> git.sur5r.net Git - u-boot/commitdiff
powerpc/85xx: Add recognition of e5500 core
authorKumar Gala <galak@kernel.crashing.org>
Wed, 21 Oct 2009 18:23:54 +0000 (13:23 -0500)
committerKumar Gala <galak@kernel.crashing.org>
Fri, 16 Jul 2010 15:55:09 +0000 (10:55 -0500)
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/cpu/mpc85xx/cpu.c

index fb8fa5ec5135697d85b534f8e5effd1e91dd53d2..fe2b52d8607601b1d6add4a0b9d0881511551ca5 100644 (file)
@@ -95,18 +95,26 @@ 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)) {
+               switch(PVR_MEM(pvr)) {
+               case 0x1:
+               case 0x2:
+                       puts("E500");
+                       break;
+               case 0x3:
+                       puts("E500MC");
+                       break;
+               case 0x4:
+                       puts("E5500");
+                       break;
+               default:
+                       puts("Unknown");
+                       break;
+               }
+       } else {
+               puts("Unknown");
        }
 
-       if (PVR_MEM(pvr) == 0x03)
-               puts("MC");
-
        printf(", Version: %d.%d, (0x%08x)\n", major, minor, pvr);
 
        get_sys_info(&sysinfo);