summaryrefslogtreecommitdiff
path: root/arch/sh/boards/board-sh7785lcr.c
diff options
context:
space:
mode:
authorYoshihiro Shimoda <shimoda.yoshihiro@renesas.com>2009-03-10 09:50:44 +0300
committerPaul Mundt <lethal@linux-sh.org>2009-03-10 09:50:44 +0300
commitdf4d4f1a47ed6080c7b4010149126bd1013dc3f1 (patch)
tree4f7174e4b322ad81c0702b3aa2e34030b644e86f /arch/sh/boards/board-sh7785lcr.c
parent2f47f44790a9c8fc43e515df3c6be19a35ee5de5 (diff)
downloadlinux-df4d4f1a47ed6080c7b4010149126bd1013dc3f1.tar.xz
sh: sh7785lcr: Updates for fixed PMB.
Add a new defconfig for SH7785LCR in 32-bit mode, and update the power off code to avoid 29-bit assumptions. Signed-off-by: Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/boards/board-sh7785lcr.c')
-rw-r--r--arch/sh/boards/board-sh7785lcr.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/arch/sh/boards/board-sh7785lcr.c b/arch/sh/boards/board-sh7785lcr.c
index 38a64968d7bf..6746a5fba3a1 100644
--- a/arch/sh/boards/board-sh7785lcr.c
+++ b/arch/sh/boards/board-sh7785lcr.c
@@ -275,7 +275,15 @@ void __init init_sh7785lcr_IRQ(void)
static void sh7785lcr_power_off(void)
{
- ctrl_outb(0x01, P2SEGADDR(PLD_POFCR));
+ unsigned char *p;
+
+ p = ioremap(PLD_POFCR, PLD_POFCR + 1);
+ if (!p) {
+ printk(KERN_ERR "%s: ioremap error.\n", __func__);
+ return;
+ }
+ *p = 0x01;
+ iounmap(p);
}
/* Initialize the board */