public inbox for linux-sh@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sh: add resource of USB host for SH7723
@ 2008-06-05 12:21 Yoshihiro Shimoda
  2008-06-06  5:45 ` Paul Mundt
  0 siblings, 1 reply; 2+ messages in thread
From: Yoshihiro Shimoda @ 2008-06-05 12:21 UTC (permalink / raw)
  To: linux-sh

Signed-off-by: Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com>
---
 arch/sh/kernel/cpu/sh4a/setup-sh7723.c |   26 +++++++++++++++++++++++
 1 file changed, 26 insertions(+)

--- a/arch/sh/kernel/cpu/sh4a/setup-sh7723.c	2008-06-05 20:26:09.000000000 +0900
+++ b/arch/sh/kernel/cpu/sh4a/setup-sh7723.c	2008-06-05 20:48:08.000000000 +0900
@@ -73,9 +73,35 @@ static struct platform_device rtc_device
 	.resource	= rtc_resources,
 };

+static struct resource sh7723_usb_host_resources[] = {
+	[0] = {
+		.name	= "r8a66597_hcd",
+		.start	= 0xa4d80000,
+		.end	= 0xa4d800ff,
+		.flags	= IORESOURCE_MEM,
+	},
+	[1] = {
+		.start	= 65,
+		.end	= 65,
+		.flags	= IORESOURCE_IRQ,
+	},
+};
+
+static struct platform_device sh7723_usb_host_device = {
+	.name		= "r8a66597_hcd",
+	.id		= 0,
+	.dev = {
+		.dma_mask		= NULL,         /*  not use dma */
+		.coherent_dma_mask	= 0xffffffff,
+	},
+	.num_resources	= ARRAY_SIZE(sh7723_usb_host_resources),
+	.resource	= sh7723_usb_host_resources,
+};
+
 static struct platform_device *sh7723_devices[] __initdata = {
 	&sci_device,
 	&rtc_device,
+	&sh7723_usb_host_device,
 };

 static int __init sh7723_devices_setup(void)

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] sh: add resource of USB host for SH7723
  2008-06-05 12:21 [PATCH] sh: add resource of USB host for SH7723 Yoshihiro Shimoda
@ 2008-06-06  5:45 ` Paul Mundt
  0 siblings, 0 replies; 2+ messages in thread
From: Paul Mundt @ 2008-06-06  5:45 UTC (permalink / raw)
  To: linux-sh

On Thu, Jun 05, 2008 at 09:21:04PM +0900, Yoshihiro Shimoda wrote:
> Signed-off-by: Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com>
> ---
>  arch/sh/kernel/cpu/sh4a/setup-sh7723.c |   26 +++++++++++++++++++++++
>  1 file changed, 26 insertions(+)

Applied, thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-06-06  5:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-05 12:21 [PATCH] sh: add resource of USB host for SH7723 Yoshihiro Shimoda
2008-06-06  5:45 ` Paul Mundt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox