From patchwork Thu Dec 17 03:15:57 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nobuhiro Iwamatsu X-Patchwork-Id: 68497 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.2) with ESMTP id nBI4ixsE005715 for ; Fri, 18 Dec 2009 04:47:06 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758834AbZLQDQW (ORCPT ); Wed, 16 Dec 2009 22:16:22 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756912AbZLQDQV (ORCPT ); Wed, 16 Dec 2009 22:16:21 -0500 Received: from mail-pw0-f42.google.com ([209.85.160.42]:60874 "EHLO mail-pw0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758834AbZLQDQR (ORCPT ); Wed, 16 Dec 2009 22:16:17 -0500 Received: by pwj9 with SMTP id 9so1040409pwj.21 for ; Wed, 16 Dec 2009 19:16:17 -0800 (PST) MIME-Version: 1.0 Received: by 10.142.3.13 with SMTP id 13mr1268519wfc.273.1261019777098; Wed, 16 Dec 2009 19:16:17 -0800 (PST) From: Nobuhiro Iwamatsu Date: Thu, 17 Dec 2009 12:15:57 +0900 X-Google-Sender-Auth: fc7cd3eb28324431 Message-ID: <29ab51dc0912161915p55672faxd2790b69ed59ba7d@mail.gmail.com> Subject: [PATCH]: sh: dmaengine support for SH7785 To: Linux-sh Cc: Paul Mundt Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org diff --git a/arch/sh/kernel/cpu/sh4a/setup-sh7785.c b/arch/sh/kernel/cpu/sh4a/setup-sh7785.c index ef26ebd..f685b9b 100644 --- a/arch/sh/kernel/cpu/sh4a/setup-sh7785.c +++ b/arch/sh/kernel/cpu/sh4a/setup-sh7785.c @@ -14,6 +14,7 @@ #include #include #include +#include #include static struct plat_sci_port scif0_platform_data = { @@ -294,6 +295,18 @@ static struct platform_device tmu5_device = { .num_resources = ARRAY_SIZE(tmu5_resources), }; +static struct sh_dmae_pdata dma_platform_data = { + .mode = (SHDMA_MIX_IRQ | SHDMA_DMAOR1), +}; + +static struct platform_device dma_device = { + .name = "sh-dma-engine", + .id = -1, + .dev = { + .platform_data = &dma_platform_data, + }, +}; + static struct platform_device *sh7785_devices[] __initdata = { &scif0_device, &scif1_device, @@ -307,6 +320,7 @@ static struct platform_device *sh7785_devices[] __initdata = { &tmu3_device, &tmu4_device, &tmu5_device, + &dma_device, };