mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-18 23:18:20 +00:00
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>
This commit is contained in:
parent
2f47f44790
commit
df4d4f1a47
@ -155,7 +155,7 @@ config SH_SH7785LCR
|
||||
|
||||
config SH_SH7785LCR_29BIT_PHYSMAPS
|
||||
bool "SH7785LCR 29bit physmaps"
|
||||
depends on SH_SH7785LCR
|
||||
depends on SH_SH7785LCR && 29BIT
|
||||
default y
|
||||
help
|
||||
This board has 2 physical memory maps. It can be changed with
|
||||
|
@ -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 */
|
||||
|
1553
arch/sh/configs/sh7785lcr_32bit_defconfig
Normal file
1553
arch/sh/configs/sh7785lcr_32bit_defconfig
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user