From patchwork Tue May 26 09:33:02 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoshihiro Shimoda X-Patchwork-Id: 25960 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 n4Q9X7gH032667 for ; Tue, 26 May 2009 09:33:07 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753423AbZEZJdE (ORCPT ); Tue, 26 May 2009 05:33:04 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754416AbZEZJdE (ORCPT ); Tue, 26 May 2009 05:33:04 -0400 Received: from mail.renesas.com ([202.234.163.13]:50883 "EHLO mail02.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753423AbZEZJdD (ORCPT ); Tue, 26 May 2009 05:33:03 -0400 X-AuditID: ac140385-00000007000002de-29-4a1bb74e1fd5 Received: from guardian03.idc.renesas.com ([172.20.8.202]) by mail02.idc.renesas.com (sendmail) with ESMTP id n4Q9X2DN013333; Tue, 26 May 2009 18:33:02 +0900 (JST) Received: (from root@localhost) by guardian03.idc.renesas.com with id n4Q9X3d3009113; Tue, 26 May 2009 18:33:03 +0900 (JST) Received: from mta01.idc.renesas.com (localhost [127.0.0.1]) by mta01.idc.renesas.com with ESMTP id n4Q9X2MW027650; Tue, 26 May 2009 18:33:02 +0900 (JST) Received: from [172.30.8.157] by ims05.idc.renesas.com (Sendmail) with ESMTPA id <0KK8003MXVV23E@ims05.idc.renesas.com>; Tue, 26 May 2009 18:33:02 +0900 (JST) Date: Tue, 26 May 2009 18:33:02 +0900 From: Yoshihiro Shimoda Subject: [PATCH v2] sh: sh7785lcr: add platform data for r8a66597-hcd To: Paul Mundt Cc: SH-Linux Message-id: <4A1BB74E.5070907@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=124332990308291&w=2 arch/sh/boards/board-sh7785lcr.c | 12 +++++++++--- 1 files changed, 9 insertions(+), 3 deletions(-) diff --git a/arch/sh/boards/board-sh7785lcr.c b/arch/sh/boards/board-sh7785lcr.c index 6f94f17..e2c2903 100644 --- a/arch/sh/boards/board-sh7785lcr.c +++ b/arch/sh/boards/board-sh7785lcr.c @@ -19,6 +19,8 @@ #include #include #include +#include +#include #include #include @@ -94,18 +96,21 @@ static struct platform_device nor_flash_device = { .resource = nor_flash_resources, }; +static struct r8a66597_platdata r8a66597_data = { + .xtal = R8A66597_PLATDATA_XTAL_12MHZ, + .vif = 1, +}; + static struct resource r8a66597_usb_host_resources[] = { [0] = { - .name = "r8a66597_hcd", .start = R8A66597_ADDR, .end = R8A66597_ADDR + R8A66597_SIZE - 1, .flags = IORESOURCE_MEM, }, [1] = { - .name = "r8a66597_hcd", .start = 2, .end = 2, - .flags = IORESOURCE_IRQ, + .flags = IORESOURCE_IRQ | IRQF_TRIGGER_LOW, }, }; @@ -115,6 +120,7 @@ static struct platform_device r8a66597_usb_host_device = { .dev = { .dma_mask = NULL, .coherent_dma_mask = 0xffffffff, + .platform_data = &r8a66597_data, }, .num_resources = ARRAY_SIZE(r8a66597_usb_host_resources), .resource = r8a66597_usb_host_resources,