From patchwork Wed Nov 24 10:05:26 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guennadi Liakhovetski X-Patchwork-Id: 352391 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oAOA5MDd030030 for ; Wed, 24 Nov 2010 10:05:33 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753055Ab0KXKFc (ORCPT ); Wed, 24 Nov 2010 05:05:32 -0500 Received: from mailout-de.gmx.net ([213.165.64.23]:45869 "HELO mail.gmx.net" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with SMTP id S1753114Ab0KXKFb (ORCPT ); Wed, 24 Nov 2010 05:05:31 -0500 Received: (qmail invoked by alias); 24 Nov 2010 10:05:29 -0000 Received: from p50898A8D.dip0.t-ipconnect.de (EHLO axis700.grange) [80.137.138.141] by mail.gmx.net (mp015) with SMTP; 24 Nov 2010 11:05:29 +0100 X-Authenticated: #20450766 X-Provags-ID: V01U2FsdGVkX1/HE9ElHA3Hi6RKjP8Max1jotHf2mOHP53wccWYD+ 6g0rwJTmF6VCjA Received: from lyakh (helo=localhost) by axis700.grange with local-esmtp (Exim 4.63) (envelope-from ) id 1PLCEA-0005B9-30; Wed, 24 Nov 2010 11:05:26 +0100 Date: Wed, 24 Nov 2010 11:05:26 +0100 (CET) From: Guennadi Liakhovetski To: linux-sh@vger.kernel.org cc: linux-mmc@vger.kernel.org, Yusuke Goda Subject: [PATCH 5/5 v2] ARM: mach-shmobile: enable MMCIF DMA on ap4evb In-Reply-To: Message-ID: References: MIME-Version: 1.0 X-Y-GMX-Trusted: 0 Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Wed, 24 Nov 2010 10:05:33 +0000 (UTC) diff --git a/arch/arm/mach-shmobile/board-ap4evb.c b/arch/arm/mach-shmobile/board-ap4evb.c index 1443d2e..67a2f34 100644 --- a/arch/arm/mach-shmobile/board-ap4evb.c +++ b/arch/arm/mach-shmobile/board-ap4evb.c @@ -271,6 +271,15 @@ static struct resource sh_mmcif_resources[] = { }, }; +static struct sh_mmcif_dma sh_mmcif_dma = { + .chan_priv_rx = { + .slave_id = SHDMA_SLAVE_MMCIF_RX, + }, + .chan_priv_tx = { + .slave_id = SHDMA_SLAVE_MMCIF_TX, + }, +}; + static struct sh_mmcif_plat_data sh_mmcif_plat = { .sup_pclk = 0, .ocr = MMC_VDD_165_195 | MMC_VDD_32_33 | MMC_VDD_33_34, @@ -278,6 +287,7 @@ static struct sh_mmcif_plat_data sh_mmcif_plat = { MMC_CAP_8_BIT_DATA | MMC_CAP_NEEDS_POLL, .get_cd = slot_cn7_get_cd, + .dma = &sh_mmcif_dma, }; static struct platform_device sh_mmcif_device = {