|
@@ -102,14 +102,14 @@ void wildfiremod_halt(void)
|
|
|
printk(KERN_INFO "WildFireMod hibernating...\n");
|
|
|
|
|
|
/* Set portE.5 to Digital IO */
|
|
|
- MCF5282_GPIO_PEPAR &= ~(1 << (5 * 2));
|
|
|
+ writew(readw(MCFGPIO_PEPAR) & ~(1 << (5 * 2)), MCFGPIO_PEPAR);
|
|
|
|
|
|
/* Make portE.5 an output */
|
|
|
- MCF5282_GPIO_DDRE |= (1 << 5);
|
|
|
+ writeb(readb(MCFGPIO_PDDR_E) | (1 << 5), MCFGPIO_PDDR_E);
|
|
|
|
|
|
/* Now toggle portE.5 from low to high */
|
|
|
- MCF5282_GPIO_PORTE &= ~(1 << 5);
|
|
|
- MCF5282_GPIO_PORTE |= (1 << 5);
|
|
|
+ writeb(readb(MCFGPIO_PODR_E) & ~(1 << 5), MCFGPIO_PODR_E);
|
|
|
+ writeb(readb(MCFGPIO_PODR_E) | (1 << 5), MCFGPIO_PODR_E);
|
|
|
|
|
|
printk(KERN_EMERG "Failed to hibernate. Halting!\n");
|
|
|
}
|