unsigned long hid1;
int cpu_speed;
- hid1 = mfspr(HID1) >> 28;
+ hid1 = mfspr(SPRN_HID1) >> 28;
- if ((mfspr(PVR) >> 16) == 8)
+ if ((mfspr(SPRN_PVR) >> 16) == 8)
hid1 = cpu_7xx[hid1];
else
hid1 = cpu_6xx[hid1];
"(source@mvista.com)\n");
/* Identify the CPU manufacturer */
- cpu = PVR_REV(mfspr(PVR));
+ cpu = PVR_REV(mfspr(SPRN_PVR));
printk(KERN_INFO "CPU manufacturer: %s [rev=%04x]\n",
(cpu & (1 << 15)) ? "IBM" : "Motorola", cpu);
}
/* SRR0 has system reset vector, SRR1 has default MSR value */
/* rfi restores MSR from SRR1 and sets the PC to the SRR0 value */
- mtspr(SRR0, 0xfff00100);
- mtspr(SRR1, 0);
+ mtspr(SPRN_SRR0, 0xfff00100);
+ mtspr(SPRN_SRR1, 0);
__asm__ __volatile__("rfi\n\t");
/* not reached */
mb();
/* setup DBATs */
- mtspr(DBAT2U, 0x80001ffe);
- mtspr(DBAT2L, 0x8000002a);
- mtspr(DBAT3U, 0xf0001ffe);
- mtspr(DBAT3L, 0xf000002a);
+ mtspr(SPRN_DBAT2U, 0x80001ffe);
+ mtspr(SPRN_DBAT2L, 0x8000002a);
+ mtspr(SPRN_DBAT3U, 0xf0001ffe);
+ mtspr(SPRN_DBAT3L, 0xf000002a);
/* wait for updates */
mb();