]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
[PATCH] Use PVR to distinguish MPC5200B from MPC5200 in boot message
authorGrzegorz Wianecki <grzegorz.wianecki@gmail.com>
Sun, 29 Apr 2007 12:01:54 +0000 (14:01 +0200)
committerStefan Roese <sr@denx.de>
Sun, 29 Apr 2007 12:01:54 +0000 (14:01 +0200)
MPC5200B systems are incorrectly reported as MPC5200 in U-Boot start-up
message. Use PVR to distinguish between the two variants, and print proper CPU
information.

Signed-off-by: Grzegorz Wianecki <grzegorz.wianecki@gmail.com>
Signed-off-by: Bartlomiej Sieka <tur@semihalf.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
cpu/mpc5xxx/cpu.c
include/asm-ppc/processor.h

index 813aa7935d168f78203bf0a01fe670e9df4e47c1..73b166d999e51e894ff64c373ba9d03ef683ff08 100644 (file)
@@ -53,12 +53,16 @@ int checkcpu (void)
 #else
        svr = get_svr();
        pvr = get_pvr();
-       switch (SVR_VER (svr)) {
-       case SVR_MPC5200:
-               printf ("MPC5200");
+
+       switch (pvr) {
+       case PVR_5200:
+               printf("MPC5200");
+               break;
+       case PVR_5200B:
+               printf("MPC5200B");
                break;
        default:
-               printf ("MPC52??  (SVR %08x)", svr);
+               printf("Unknown MPC5xxx");
                break;
        }
 
index 058596275f48d63711a263db92a438247be4ac0c..7c11c9e0231235710fb90a327533a0f45ffef95d 100644 (file)
 #define SVR_MJREV(svr) (((svr) >>  4) & 0x0F)   /* Major SOC design revision indicator */
 #define SVR_MNREV(svr) (((svr) >>  0) & 0x0F)   /* Minor SOC design revision indicator */
 
-/* System-On-Chip Version Numbers (version field only) */
-#define SVR_MPC5200    0x8011
 
 /* Processor Version Register */
 
 #define PVR_8260_HIP7R1 0x80822013
 #define PVR_8260_HIP7RA        0x80822014
 
+/*
+ * MPC 52xx
+ */
+#define PVR_5200       0x80822011
+#define PVR_5200B      0x80822014
+
 
 /*
  * System Version Register