Skip to contentSkip to conversation

sh: fix sh7785lcr for fixed PMB

PATCH Superseded Yoshihiro Shimoda 1 participant 1 message Feb 20, 2009 SuperH

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 2/3 sh: fix sh7785lcr for fixed PMB

---
 arch/sh/boards/Kconfig                    |    2 +-
 arch/sh/boards/board-sh7785lcr.c          |   10 +-
 arch/sh/configs/sh7785lcr_32bit_defconfig | 1553 +++++++++++++++++++++++++++++
 3 files changed, 1563 insertions(+), 2 deletions(-)
 create mode 100644 arch/sh/configs/sh7785lcr_32bit_defconfig
arch/sh/boards/Kconfig +1 -1
index c9da370..9927fc3 100644
@@ -155,7 +155,7 @@ config SH_SH7785LCR
 
 config SH_SH7785LCR_29BIT_PHYSMAPS
 	bool "SH7785LCR 29bit physmaps"
-	depends on SH_SH7785LCR
+	depends on SH_SH7785LCR && !32BIT
 	default y
 	help
 	  This board has 2 physical memory maps. It can be changed with
arch/sh/boards/board-sh7785lcr.c +9 -1
index 38a6496..6746a5f 100644
@@ -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 */
arch/sh/configs/sh7785lcr_32bit_defconfig new file +1553 -0

1,553 lines not on this page · raw message

Signature · 1 line
1.5.5