[PATCH v5 09/10] wii: enable swiotlb
Albert Herranz
albert_herranz at yahoo.es
Sat Mar 20 05:32:25 EST 2010
Enable the use of a software IO TLB on the Nintendo Wii video game console.
This is used by the platform DMA support code to overcome the limitations
found in some of the devices within the "Hollywood" chipset.
Signed-off-by: Albert Herranz <albert_herranz at yahoo.es>
---
arch/powerpc/boot/dts/wii.dts | 2 +-
arch/powerpc/platforms/embedded6xx/wii.c | 1 +
2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/arch/powerpc/boot/dts/wii.dts b/arch/powerpc/boot/dts/wii.dts
index 77528c9..92b8ca6 100644
--- a/arch/powerpc/boot/dts/wii.dts
+++ b/arch/powerpc/boot/dts/wii.dts
@@ -29,7 +29,7 @@
#size-cells = <1>;
chosen {
- bootargs = "root=/dev/mmcblk0p2 rootwait udbg-immortal";
+ bootargs = "root=/dev/mmcblk0p2 swiotlb=512 rootwait udbg-immortal";
};
memory {
diff --git a/arch/powerpc/platforms/embedded6xx/wii.c b/arch/powerpc/platforms/embedded6xx/wii.c
index 57e5b60..e63c5c8 100644
--- a/arch/powerpc/platforms/embedded6xx/wii.c
+++ b/arch/powerpc/platforms/embedded6xx/wii.c
@@ -164,6 +164,7 @@ static void __init wii_setup_arch(void)
clrbits32(hw_gpio + HW_GPIO_OUT(0),
HW_GPIO_SLOT_LED | HW_GPIO_SENSOR_BAR);
}
+ ppc_swiotlb_enable = 1;
}
static void wii_restart(char *cmd)
--
1.6.3.3
More information about the Linuxppc-dev
mailing list