From patchwork Tue May 4 14:06:47 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guennadi Liakhovetski X-Patchwork-Id: 96799 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o44E73FZ018024 for ; Tue, 4 May 2010 14:07:04 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932420Ab0EDOGk (ORCPT ); Tue, 4 May 2010 10:06:40 -0400 Received: from mail.gmx.net ([213.165.64.20]:42142 "HELO mail.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S932416Ab0EDOGj (ORCPT ); Tue, 4 May 2010 10:06:39 -0400 Received: (qmail invoked by alias); 04 May 2010 14:06:36 -0000 Received: from p57BD25F8.dip0.t-ipconnect.de (EHLO axis700.grange) [87.189.37.248] by mail.gmx.net (mp061) with SMTP; 04 May 2010 16:06:36 +0200 X-Authenticated: #20450766 X-Provags-ID: V01U2FsdGVkX1+Hd/07uxuHY1J3XnWwV9XXUlE6zB6lTIiM72+NaR UI8nYenRTxMHsp Received: from lyakh (helo=localhost) by axis700.grange with local-esmtp (Exim 4.63) (envelope-from ) id 1O9Ilr-00023J-7B; Tue, 04 May 2010 16:06:47 +0200 Date: Tue, 4 May 2010 16:06:47 +0200 (CEST) From: Guennadi Liakhovetski To: "linux-sh@vger.kernel.org" cc: linux-mmc@vger.kernel.org, Dan Williams , Ian Molton , Magnus Damm Subject: [PATCH 8/9 v2] SH: Add SDHI DMA support to migor In-Reply-To: Message-ID: References: MIME-Version: 1.0 X-Y-GMX-Trusted: 0 X-FuHaFi: 0.5 Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Tue, 04 May 2010 14:07:05 +0000 (UTC) diff --git a/arch/sh/boards/mach-migor/setup.c b/arch/sh/boards/mach-migor/setup.c index 7da0fc9..87185de 100644 --- a/arch/sh/boards/mach-migor/setup.c +++ b/arch/sh/boards/mach-migor/setup.c @@ -12,6 +12,7 @@ #include #include #include +#include #include #include #include @@ -402,10 +403,18 @@ static struct resource sdhi_cn9_resources[] = { }, }; +static struct sh_mobile_sdhi_info sh7724_sdhi_data = { + .dma_slave_tx = SHDMA_SLAVE_SDHI0_TX, + .dma_slave_rx = SHDMA_SLAVE_SDHI0_RX, +}; + static struct platform_device sdhi_cn9_device = { .name = "sh_mobile_sdhi", .num_resources = ARRAY_SIZE(sdhi_cn9_resources), .resource = sdhi_cn9_resources, + .dev = { + .platform_data = &sh7724_sdhi_data, + }, .archdata = { .hwblk_id = HWBLK_SDHI, },