Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c0577eee authored by Albert Herranz's avatar Albert Herranz Committed by Grant Likely
Browse files

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: default avatarAlbert Herranz <albert_herranz@yahoo.es>
Acked-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: default avatarGrant Likely <grant.likely@secretlab.ca>
parent c5df7f77
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -97,6 +97,9 @@ void __init wii_memory_fixups(void)


	/* reserve the hole */
	/* reserve the hole */
	lmb_reserve(wii_hole_start, wii_hole_size);
	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)
unsigned long __init wii_mmu_mapin_mem2(unsigned long top)