From patchwork Tue May 26 03:17:09 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoshihiro Shimoda X-Patchwork-Id: 25910 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 n4Q3HFJ9006123 for ; Tue, 26 May 2009 03:17:15 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753621AbZEZDRM (ORCPT ); Mon, 25 May 2009 23:17:12 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753709AbZEZDRM (ORCPT ); Mon, 25 May 2009 23:17:12 -0400 Received: from mail.renesas.com ([202.234.163.13]:62545 "EHLO mail01.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753621AbZEZDRK (ORCPT ); Mon, 25 May 2009 23:17:10 -0400 X-AuditID: ac140384-00000008000004f6-35-4a1b5f3607cf Received: from guardian01.idc.renesas.com ([172.20.8.200]) by mail01.idc.renesas.com (sendmail) with ESMTP id n4Q3HAwg002238; Tue, 26 May 2009 12:17:10 +0900 (JST) Received: (from root@localhost) by guardian01.idc.renesas.com with id n4Q3HAoA004951; Tue, 26 May 2009 12:17:10 +0900 (JST) Received: from mta02.idc.renesas.com (localhost [127.0.0.1]) by mta02.idc.renesas.com with ESMTP id n4Q3HBK4028181; Tue, 26 May 2009 12:17:11 +0900 (JST) Received: from [172.30.8.157] by ims05.idc.renesas.com (Sendmail) with ESMTPA id <0KK800LTKEGLJZ@ims05.idc.renesas.com>; Tue, 26 May 2009 12:17:09 +0900 (JST) Date: Tue, 26 May 2009 12:17:09 +0900 From: Yoshihiro Shimoda Subject: [PATCH] sh: add platform data for r8a66597-hcd in setup-sh7723 To: Paul Mundt , SH-Linux Message-id: <4A1B5F35.3090706@renesas.com> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: 7bit User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) X-Brightmail-Tracker: AAAAAA== Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org and remove redundant parameter for r8a66597-hcd. Signed-off-by: Yoshihiro Shimoda --- This patch depends on the following patch. http://marc.info/?l=linux-usb&m=124330739812843&w=2 arch/sh/kernel/cpu/sh4a/setup-sh7723.c | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/arch/sh/kernel/cpu/sh4a/setup-sh7723.c b/arch/sh/kernel/cpu/sh4a/setup-sh7723.c index a800466..026d274 100644 --- a/arch/sh/kernel/cpu/sh4a/setup-sh7723.c +++ b/arch/sh/kernel/cpu/sh4a/setup-sh7723.c @@ -14,6 +14,7 @@ #include #include #include +#include #include #include @@ -207,9 +208,12 @@ static struct platform_device rtc_device = { .resource = rtc_resources, }; +static struct r8a66597_platdata r8a66597_data = { + .irq_sense = 1, +}; + static struct resource sh7723_usb_host_resources[] = { [0] = { - .name = "r8a66597_hcd", .start = 0xa4d80000, .end = 0xa4d800ff, .flags = IORESOURCE_MEM, @@ -217,7 +221,7 @@ static struct resource sh7723_usb_host_resources[] = { [1] = { .start = 65, .end = 65, - .flags = IORESOURCE_IRQ, + .flags = IORESOURCE_IRQ | IRQF_TRIGGER_LOW, }, }; @@ -227,6 +231,7 @@ static struct platform_device sh7723_usb_host_device = { .dev = { .dma_mask = NULL, /* not use dma */ .coherent_dma_mask = 0xffffffff, + .platform_data = &r8a66597_data, }, .num_resources = ARRAY_SIZE(sh7723_usb_host_resources), .resource = sh7723_usb_host_resources,