From patchwork Sun Mar 7 12:11:51 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Albert Herranz X-Patchwork-Id: 47085 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from bilbo.ozlabs.org (localhost [127.0.0.1]) by ozlabs.org (Postfix) with ESMTP id 04622101764 for ; Sun, 7 Mar 2010 23:13:36 +1100 (EST) Received: from smtp134.mail.ukl.yahoo.com (smtp134.mail.ukl.yahoo.com [77.238.184.65]) by ozlabs.org (Postfix) with SMTP id 161E0B7F46 for ; Sun, 7 Mar 2010 23:12:07 +1100 (EST) Received: (qmail 92250 invoked from network); 7 Mar 2010 12:12:06 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.es; h=Received:X-Yahoo-SMTP:X-YMail-OSG:X-Yahoo-Newman-Property:From:To:Cc:Subject:Date:Message-Id:X-Mailer:In-Reply-To:References; b=GDnBP8/ij8FDhcp/6qv8blWg0F1j3poi0tds/lefH2MPl3KTeXJ9abLntQJH/+LO/MsrfmX7SX4GizNkgnM8FwMmGk4vI4BajgUPMakLYXJmwXcSiKzh2kjcmnrrn5OpazBzy74OXvK4hmSRYG/mvksSDXEG/zPB8uxap6aQCr0= ; Received: from 41.Red-83-55-221.dynamicIP.rima-tde.net (albert_herranz@83.55.221.41 with login) by smtp134.mail.ukl.yahoo.com with SMTP; 07 Mar 2010 12:12:05 +0000 GMT X-Yahoo-SMTP: czee06uswBAtfIYshc.kP27UlfEXaxwWNSjJ X-YMail-OSG: 5EJqclUVM1kV2.p3e_3LTQYdbNZTd_6jiMMoM31SKZVrj1HDDJ9vl6xQB3Kew8RuwIDAdJIU5Hu0q7qNMl3vQxbPJQKDlX1YztbaMg6e.VTnkgagybeTP1jrqcGEIry70ir1OfxqqTko.hNP_7C2nGRgw8MlrQVxwtkDivDZsnhf5XCMVNLCDORfhKrZKtsWXlhYKLOVEUwscqAKfBpI9ITgJLsroVJY4yj7bVGhexCpp8weOkMJTpejolE7QGOEn9t6wmQoACR1pHBlhp_PiHLzoErRTzQk X-Yahoo-Newman-Property: ymail-3 From: Albert Herranz To: linux-usb@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: [RFC PATCH v3 10/11] wii: enable swiotlb Date: Sun, 7 Mar 2010 13:11:51 +0100 Message-Id: <1267963912-984-11-git-send-email-albert_herranz@yahoo.es> X-Mailer: git-send-email 1.6.3.3 In-Reply-To: <1267963912-984-1-git-send-email-albert_herranz@yahoo.es> References: <1267963912-984-1-git-send-email-albert_herranz@yahoo.es> Cc: Albert Herranz X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org 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 --- arch/powerpc/platforms/embedded6xx/wii.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/platforms/embedded6xx/wii.c b/arch/powerpc/platforms/embedded6xx/wii.c index 57e5b60..6ad5c0a 100644 --- a/arch/powerpc/platforms/embedded6xx/wii.c +++ b/arch/powerpc/platforms/embedded6xx/wii.c @@ -164,6 +164,8 @@ static void __init wii_setup_arch(void) clrbits32(hw_gpio + HW_GPIO_OUT(0), HW_GPIO_SLOT_LED | HW_GPIO_SENSOR_BAR); } + swiotlb_set_default_size(1<<20); /* 1 MB */ + ppc_swiotlb_enable = 1; } static void wii_restart(char *cmd)