5 #include <asm/cacheflush.h>
48 tmp &= ~(0x3 << (pin * 2));
49 tmp |= (!level + 1) << (pin * 2);
62 { .compatible =
"fsl,mpc5200b-immr", },
63 { .type =
"soc", .compatible =
"mpc5200", },
64 { .type =
"builtin", .compatible =
"mpc5200", },
73 pr_err(
"mpc52xx_pm_prepare(): could not get IMMR address\n");
82 pr_err(
"mpc52xx_pm_prepare(): could not map registers\n");
117 void __iomem * irq_0x500 = (
void __iomem *)CONFIG_KERNEL_START + 0x500;
126 mtspr(SPRN_DEC, 0x7fffffff);
129 memcpy(saved_sram, sram, sram_size);
144 mtmsr(msr & ~MSR_POW);
147 hid0 =
mfspr(SPRN_HID0);
148 mtspr(SPRN_HID0, (hid0 & ~(HID0_DOZE | HID0_NAP | HID0_DPM)) | HID0_SLEEP);
163 mtmsr(msr & ~MSR_POW);
164 mtspr(SPRN_HID0, hid0);
172 memcpy(sram, saved_sram, sram_size);
190 .valid = mpc52xx_pm_valid,