From patchwork Thu Mar 12 07:31:41 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nobuhiro Iwamatsu X-Patchwork-Id: 11280 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 n2C7Upnh001630 for ; Thu, 12 Mar 2009 07:31:46 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752251AbZCLHbr (ORCPT ); Thu, 12 Mar 2009 03:31:47 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752238AbZCLHbr (ORCPT ); Thu, 12 Mar 2009 03:31:47 -0400 Received: from mail.renesas.com ([202.234.163.13]:34378 "EHLO mail03.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751738AbZCLHbq (ORCPT ); Thu, 12 Mar 2009 03:31:46 -0400 X-AuditID: ac140386-0000000b00001aa8-7d-49b8ba5e6d62 Received: from guardian01.idc.renesas.com ([172.20.8.200]) by mail03.idc.renesas.com (sendmail) with ESMTP id n2C7VgnK015795; Thu, 12 Mar 2009 16:31:42 +0900 (JST) Received: (from root@localhost) by guardian01.idc.renesas.com with id n2C7Vh2t019434; Thu, 12 Mar 2009 16:31:43 +0900 (JST) Received: from mta01.idc.renesas.com (localhost [127.0.0.1]) by mta01.idc.renesas.com with ESMTP id n2C7Vgqs029888; Thu, 12 Mar 2009 16:31:42 +0900 (JST) Received: from [172.30.8.158] by ims05.idc.renesas.com (Sendmail) with ESMTPA id <0KGD00IVYU8U9Q@ims05.idc.renesas.com>; Thu, 12 Mar 2009 16:31:42 +0900 (JST) Date: Thu, 12 Mar 2009 16:31:41 +0900 From: Nobuhiro Iwamatsu Subject: [PATCH] sh: Add support DMA Engine to SH7722 To: Linux-sh Cc: Paul Mundt Message-id: <49B8BA5D.1000300@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-sh7722.c | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/arch/sh/kernel/cpu/sh4a/setup-sh7722.c b/arch/sh/kernel/cpu/sh4a/setup-sh7722.c index 0e5d204..c0949ae 100644 --- a/arch/sh/kernel/cpu/sh4a/setup-sh7722.c +++ b/arch/sh/kernel/cpu/sh4a/setup-sh7722.c @@ -16,6 +16,7 @@ #include #include #include +#include static struct resource rtc_resources[] = { [0] = { @@ -241,6 +242,18 @@ static struct platform_device sci_device = { }, }; +static struct sh_dmae_pdata dma_platform_data = { + .mode = 0, +}; + +static struct platform_device dma_device = { + .name = "sh-dma-engine", + .id = -1, + .dev = { + .platform_data = &dma_platform_data, + }, +}; + static struct platform_device *sh7722_devices[] __initdata = { &cmt_device, &rtc_device, @@ -250,6 +263,7 @@ static struct platform_device *sh7722_devices[] __initdata = { &vpu_device, &veu_device, &jpu_device, + &dma_device, }; static int __init sh7722_devices_setup(void)