From patchwork Thu Mar 12 07:31:45 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nobuhiro Iwamatsu X-Patchwork-Id: 11281 X-Patchwork-Delegate: lethal@linux-sh.org Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n2C7Upni001630 for ; Thu, 12 Mar 2009 07:31:49 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751969AbZCLHbu (ORCPT ); Thu, 12 Mar 2009 03:31:50 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752177AbZCLHbu (ORCPT ); Thu, 12 Mar 2009 03:31:50 -0400 Received: from mail.renesas.com ([202.234.163.13]:33510 "EHLO mail02.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751969AbZCLHbt (ORCPT ); Thu, 12 Mar 2009 03:31:49 -0400 X-AuditID: ac140385-0000000a000002de-7e-49b8ba615a42 Received: from guardian03.idc.renesas.com ([172.20.8.202]) by mail02.idc.renesas.com (sendmail) with ESMTP id n2C7Vjw1018476; Thu, 12 Mar 2009 16:31:45 +0900 (JST) Received: (from root@localhost) by guardian03.idc.renesas.com with id n2C7VkJU029724; Thu, 12 Mar 2009 16:31:46 +0900 (JST) Received: from mta01.idc.renesas.com (localhost [127.0.0.1]) by mta01.idc.renesas.com with ESMTP id n2C7VkMT029953; Thu, 12 Mar 2009 16:31:46 +0900 (JST) Received: from [172.30.8.158] by ims05.idc.renesas.com (Sendmail) with ESMTPA id <0KGD00IX2U8Y9Q@ims05.idc.renesas.com>; Thu, 12 Mar 2009 16:31:46 +0900 (JST) Date: Thu, 12 Mar 2009 16:31:45 +0900 From: Nobuhiro Iwamatsu Subject: [PATCH] sh: Add support DMA Engine to SH7780 To: Linux-sh Cc: Paul Mundt Message-id: <49B8BA61.4000608@renesas.com> MIME-version: 1.0 Content-type: text/plain; charset=ISO-2022-JP Content-transfer-encoding: 7bit User-Agent: Thunderbird 1.5.0.14 (Windows/20071210) X-Brightmail-Tracker: AAAAAA== Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org Signed-off-by: Nobuhiro Iwamatsu --- arch/sh/kernel/cpu/sh4a/setup-sh7780.c | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/arch/sh/kernel/cpu/sh4a/setup-sh7780.c b/arch/sh/kernel/cpu/sh4a/setup-sh7780.c index 6f7227c..272c3c3 100644 --- a/arch/sh/kernel/cpu/sh4a/setup-sh7780.c +++ b/arch/sh/kernel/cpu/sh4a/setup-sh7780.c @@ -12,6 +12,7 @@ #include #include #include +#include static struct resource rtc_resources[] = { [0] = { @@ -57,9 +58,23 @@ static struct platform_device sci_device = { }, }; +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 *sh7780_devices[] __initdata = { &rtc_device, &sci_device, + &dma_device, }; static int __init sh7780_devices_setup(void)