mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
m68knommu: switch to using IO access methods in WildFire board code
Most ColdFire support code has switched to using IO memory access methods (readb/writeb/etc) when reading and writing internal peripheral device registers. The WildFire board specific halt code was missed. As it is now the WildFire code is broken, since all register definitions were changed to be register addresses only some time ago. Fix the WildFire board code to use the appropriate IO access functions. Signed-off-by: Greg Ungerer <gerg@linux-m68k.org>
This commit is contained in:
parent
bc065e4784
commit
41b39ea190
1 changed files with 4 additions and 4 deletions
|
@ -102,14 +102,14 @@ void wildfiremod_halt(void)
|
||||||
printk(KERN_INFO "WildFireMod hibernating...\n");
|
printk(KERN_INFO "WildFireMod hibernating...\n");
|
||||||
|
|
||||||
/* Set portE.5 to Digital IO */
|
/* 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 */
|
/* 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 */
|
/* Now toggle portE.5 from low to high */
|
||||||
MCF5282_GPIO_PORTE &= ~(1 << 5);
|
writeb(readb(MCFGPIO_PODR_E) & ~(1 << 5), MCFGPIO_PODR_E);
|
||||||
MCF5282_GPIO_PORTE |= (1 << 5);
|
writeb(readb(MCFGPIO_PODR_E) | (1 << 5), MCFGPIO_PODR_E);
|
||||||
|
|
||||||
printk(KERN_EMERG "Failed to hibernate. Halting!\n");
|
printk(KERN_EMERG "Failed to hibernate. Halting!\n");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue