]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
sh: add resource of USB host for SH7723
authorYoshihiro Shimoda <shimoda.yoshihiro@renesas.com>
Thu, 5 Jun 2008 12:21:04 +0000 (21:21 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 9 Jun 2008 07:04:13 +0000 (16:04 +0900)
Signed-off-by: Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/kernel/cpu/sh4a/setup-sh7723.c

index 5559a110a5bdf8b86d595d8df7dbc8c4e2f3d694..a0470f2f54798af027a157112277c8974400803b 100644 (file)
@@ -88,9 +88,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)