powerpc: wii: allow ioremap within the memory hole
authorAlbert Herranz <albert_herranz@yahoo.es>
Sat, 12 Dec 2009 06:31:55 +0000 (06:31 +0000)
committerGrant Likely <grant.likely@secretlab.ca>
Sun, 13 Dec 2009 05:24:32 +0000 (22:24 -0700)
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>
arch/powerpc/platforms/embedded6xx/wii.c

index de0c1e397c992651028fdc9d77fb4ef840529691..57e5b608fa1a9bed17d07c1d5967ad2278500bb2 100644 (file)
@@ -97,6 +97,9 @@ void __init wii_memory_fixups(void)
 
        /* reserve the hole */
        lmb_reserve(wii_hole_start, wii_hole_size);
+
+       /* allow ioremapping the address space in the hole */
+       __allow_ioremap_reserved = 1;
 }
 
 unsigned long __init wii_mmu_mapin_mem2(unsigned long top)