Skip to contentSkip to conversation

sh: x3proto: add platform data for r8a66597-hcd

PATCH Superseded Yoshihiro Shimoda 1 participant 1 message May 26, 2009 SuperH

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 sh: x3proto: add platform data for r8a66597-hcd

and remove redundant parameter for r8a66597-hcd.

---
This patch depends on the following patch.
http://marc.info/?l=linux-usb&m4332990308291&w=2

 arch/sh/boards/mach-x3proto/setup.c |   12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)
arch/sh/boards/mach-x3proto/setup.c +9 -3
index a340492..8913ae3 100644
@@ -15,6 +15,8 @@
 #include <linux/io.h>
 #include <linux/smc91x.h>
 #include <linux/irq.h>
+#include <linux/interrupt.h>
+#include <linux/usb/r8a66597.h>
 #include <asm/ilsel.h>
 
 static struct resource heartbeat_resources[] = {
@@ -58,17 +60,20 @@ static struct platform_device smc91x_device = {
 	},
 };
 
+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	= 0x18040000,
 		.end	= 0x18080000 - 1,
 		.flags	= IORESOURCE_MEM,
 	},
 	[1] = {
-		.name	= "r8a66597_hcd",
 		/* Filled in by ilsel */
-		.flags	= IORESOURCE_IRQ,
+		.flags	= IORESOURCE_IRQ | IRQF_TRIGGER_LOW,
 	},
 };
 
@@ -78,6 +83,7 @@ static struct platform_device r8a66597_usb_host_device = {
 	.dev = {
 		.dma_mask		= NULL,		/* don't use dma */
 		.coherent_dma_mask	= 0xffffffff,
+		.platform_data		= &r8a66597_data,
 	},
 	.num_resources	= ARRAY_SIZE(r8a66597_usb_host_resources),
 	.resource	= r8a66597_usb_host_resources,
Signature · 1 line
1.5.5