]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - cpu/mpc86xx/cpu.c
8xxx: Removed CONFIG_NUM_CPUS from 85xx/86xx
[people/ms/u-boot.git] / cpu / mpc86xx / cpu.c
index 32d06d20ebd00d0e0aeacd0d71625c690164e90b..04409cec68f446c528c58bf24e9ff132fbd8c054 100644 (file)
@@ -30,6 +30,8 @@
 #include <mpc86xx.h>
 #include <asm/fsl_law.h>
 
+DECLARE_GLOBAL_DATA_PTR;
+
 /*
  * Default board reset function
  */
@@ -61,12 +63,12 @@ checkcpu(void)
 
        puts("CPU:   ");
 
-       cpu = identify_cpu(ver);
-       if (cpu) {
+       cpu = gd->cpu;
+
+       if (cpu->name)
                puts(cpu->name);
-       } else {
+       else
                puts("Unknown");
-       }
 
        printf(", Version: %d.%d, (0x%08x)\n", major, minor, svr);
        puts("Core:  ");