sh: fix sh7785lcr for fixed PMB
PATCH 2/3 sh: fix sh7785lcr for fixed PMB
Signed-off-by Yoshihiro Shimoda <[email protected]>
--- 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
@@ -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
@@ -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