1 /* Copyright 2000 AG Electronics Ltd. */
2 /* This code is distributed without warranty under the GPL v2 (see COPYING) */
6 #include <console/console.h>
8 void display_cpuid(void)
10 unsigned type = __getpvr() >> 16;
11 unsigned version = __getpvr() & 0xffff;
12 const char *cpu_string = 0;
36 cpu_string = "604ev5 (MachV)";
52 printk_info("PowerPC %s", cpu_string);
54 printk_info("PowerPC unknown (0x%x)", type);
55 printk_info(" CPU, version %d.%d\n", version >> 8, version & 0xff);