linux/arch/powerpc
Albert Herranz de32400dd2 wii: use both mem1 and mem2 as ram
The Nintendo Wii video game console has two discontiguous RAM regions:
- MEM1: 24MB @ 0x00000000
- MEM2: 64MB @ 0x10000000

Unfortunately, the kernel currently does not support discontiguous RAM
memory regions on 32-bit PowerPC platforms.

This patch adds a series of workarounds to allow the use of the second
memory region (MEM2) as RAM by the kernel.
Basically, a single range of memory from the beginning of MEM1 to the
end of MEM2 is reported to the kernel, and a memory reservation is
created for the hole between MEM1 and MEM2.

With this patch the system is able to use all the available RAM and not
just ~27% of it.

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>
2009-12-12 22:24:31 -07:00
..
boot wii: bootwrapper: add fixup to calc useable mem2 2009-12-12 22:24:31 -07:00
configs powerpc: wii: default config 2009-12-12 22:24:30 -07:00
include/asm powerpc: gamecube/wii: early debugging using usbgecko 2009-12-12 22:24:31 -07:00
kernel powerpc: gamecube/wii: early debugging using usbgecko 2009-12-12 22:24:31 -07:00
kvm powerpc/kvm: Remove problematic BUILD_BUG_ON statement 2009-11-05 17:10:34 +11:00
lib powerpc: Add configurable -Werror for arch/powerpc 2009-06-16 14:15:45 +10:00
math-emu powerpc/math-emu: Fix efp dependence 2009-03-11 06:00:08 -05:00
mm wii: use both mem1 and mem2 as ram 2009-12-12 22:24:31 -07:00
oprofile powerpc: Remove unnecessary semicolons 2009-07-08 13:50:21 +10:00
platforms wii: use both mem1 and mem2 as ram 2009-12-12 22:24:31 -07:00
sysdev powerpc: Change archdata dma_data to a union 2009-09-24 15:31:43 +10:00
xmon powerpc/booke: Fix xmon single step on PowerPC Book-E 2009-10-27 16:42:40 +11:00
Kconfig powerpc: gamecube/wii: do not include PCI support 2009-12-12 22:24:27 -07:00
Kconfig.debug powerpc: gamecube/wii: early debugging using usbgecko 2009-12-12 22:24:31 -07:00
Makefile powerpc: Check for unsupported relocs when using CONFIG_RELOCATABLE 2009-09-24 15:31:40 +10:00
relocs_check.pl powerpc: Check for unsupported relocs when using CONFIG_RELOCATABLE 2009-09-24 15:31:40 +10:00