]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
Fix 440GR to print correct cpu revision
authorStefan Roese <sr@denx.de>
Tue, 4 Oct 2005 13:00:30 +0000 (15:00 +0200)
committerStefan Roese <sr@denx.de>
Tue, 4 Oct 2005 13:00:30 +0000 (15:00 +0200)
Patch by Stefan Roese, 4 Oct 2005

CHANGELOG
cpu/ppc4xx/cpu.c
include/asm-ppc/processor.h

index 6b6465e5964004006f7ce6772b7881f6e14f1a2b..4498d8a481ba9526aa2fa98a082087540581d52d 100644 (file)
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -2,6 +2,9 @@
 Changes for U-Boot 1.1.4:
 ======================================================================
 
+* Fix 440GR to print correct cpu revision
+  Patch by Stefan Roese, 4 Oct 2005
+
 * Change board message on AMCC Yosemite & Yellowstone to common style
   Patch by Stefan Roese, 3 Oct 2005
 
index a9bb89ad0a7021fdfa7013035578b787ab37d697..5ec9adb7422666eb26ab342b78549c3a6a2f6ca1 100644 (file)
@@ -178,22 +178,19 @@ int checkcpu (void)
        case PVR_440GX_RC:
                puts("GX Rev. C");
                break;
-#if defined(CONFIG_440GR)
-       case PVR_440EP_RA:
-               puts("GR Rev. A");
-               break;
-       case PVR_440EP_RB:
-               puts("GR Rev. B");
-               break;
-#else
        case PVR_440EP_RA:
                puts("EP Rev. A");
                break;
-       case PVR_440EP_RB:
+#ifdef CONFIG_440EP
+       case PVR_440EP_RB: /* 440EP rev B and 440GR rev A have same PVR */
                puts("EP Rev. B");
                break;
-#endif
-
+#endif /*  CONFIG_440EP */
+#ifdef CONFIG_440GR
+       case PVR_440GR_RA: /* 440EP rev B and 440GR rev A have same PVR */
+               puts("GR Rev. A");
+               break;
+#endif /* CONFIG_440GR */
        default:
                printf (" UNKNOWN (PVR=%08x)", pvr);
                break;
index a85e2b0055ebb203c3b76f6b7bc522326b62d94f..68917c592895bbd609658ecf7c37614b9d2d0015 100644 (file)
 #define PVR_440GP_RB   0x40120440
 #define PVR_440GP_RC   0x40120481
 #define PVR_440EP_RA   0x42221850
-#define PVR_440EP_RB   0x422218D3
+#define PVR_440EP_RB   0x422218D3 /* 440EP rev B and 440GR rev A have same PVR */
+#define PVR_440GR_RA   0x422218D3 /* 440EP rev B and 440GR rev A have same PVR */
 #define PVR_440GX_RA   0x51B21850
 #define PVR_440GX_RB   0x51B21851
 #define PVR_440GX_RC   0x51B21892