aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorAlbert Herranz <albert_herranz@yahoo.es>2009-12-12 01:31:55 -0500
committerGrant Likely <grant.likely@secretlab.ca>2009-12-13 00:24:32 -0500
commitc0577eeee0101433a0d929699f4543a1ff3c3014 (patch)
treeba56bd9730b2441e3898f00fb974d6ff686f4163 /arch
parentc5df7f775148723de39274537a886e9502eef336 (diff)
powerpc: wii: allow ioremap within the memory hole
Enable the flag that allows a platform to ioremap memory marked as reserved. This is currently needed on the Nintendo Wii video game console due to the workaround introduced in "wii: use both mem1 and mem2 as ram". This will no longer be needed when proper discontig memory support for 32-bit PowerPC is added to the kernel. Signed-off-by: Albert Herranz <albert_herranz@yahoo.es> Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/platforms/embedded6xx/wii.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/embedded6xx/wii.c b/arch/powerpc/platforms/embedded6xx/wii.c
index de0c1e397c99..57e5b608fa1a 100644
--- a/arch/powerpc/platforms/embedded6xx/wii.c
+++ b/arch/powerpc/platforms/embedded6xx/wii.c
@@ -97,6 +97,9 @@ void __init wii_memory_fixups(void)
97 97
98 /* reserve the hole */ 98 /* reserve the hole */
99 lmb_reserve(wii_hole_start, wii_hole_size); 99 lmb_reserve(wii_hole_start, wii_hole_size);
100
101 /* allow ioremapping the address space in the hole */
102 __allow_ioremap_reserved = 1;
100} 103}
101 104
102unsigned long __init wii_mmu_mapin_mem2(unsigned long top) 105unsigned long __init wii_mmu_mapin_mem2(unsigned long top)