aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorYoshihiro Shimoda <shimoda.yoshihiro@renesas.com>2009-05-26 05:33:05 -0400
committerPaul Mundt <lethal@linux-sh.org>2009-06-17 03:19:34 -0400
commit6239b20d1ba60810c122390e79f968ccb69908a6 (patch)
treecdc48f1dc11b5216eb6b435f1fb6fb4f74ab9ea7 /arch
parent5a62a22514f97c04b434163195820cbe31ded888 (diff)
sh: highlander: add platform data for r8a66597-hcd
and remove redundant parameter for r8a66597-hcd. Signed-off-by: Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/sh/boards/mach-highlander/setup.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/arch/sh/boards/mach-highlander/setup.c b/arch/sh/boards/mach-highlander/setup.c
index 20fe72c515d5..920ea76abac8 100644
--- a/arch/sh/boards/mach-highlander/setup.c
+++ b/arch/sh/boards/mach-highlander/setup.c
@@ -19,6 +19,8 @@
19#include <linux/types.h> 19#include <linux/types.h>
20#include <linux/i2c.h> 20#include <linux/i2c.h>
21#include <linux/irq.h> 21#include <linux/irq.h>
22#include <linux/interrupt.h>
23#include <linux/usb/r8a66597.h>
22#include <net/ax88796.h> 24#include <net/ax88796.h>
23#include <asm/machvec.h> 25#include <asm/machvec.h>
24#include <mach/highlander.h> 26#include <mach/highlander.h>
@@ -27,18 +29,21 @@
27#include <asm/io.h> 29#include <asm/io.h>
28#include <asm/io_trapped.h> 30#include <asm/io_trapped.h>
29 31
32static struct r8a66597_platdata r8a66597_data = {
33 .xtal = R8A66597_PLATDATA_XTAL_12MHZ,
34 .vif = 1,
35};
36
30static struct resource r8a66597_usb_host_resources[] = { 37static struct resource r8a66597_usb_host_resources[] = {
31 [0] = { 38 [0] = {
32 .name = "r8a66597_hcd",
33 .start = 0xA4200000, 39 .start = 0xA4200000,
34 .end = 0xA42000FF, 40 .end = 0xA42000FF,
35 .flags = IORESOURCE_MEM, 41 .flags = IORESOURCE_MEM,
36 }, 42 },
37 [1] = { 43 [1] = {
38 .name = "r8a66597_hcd",
39 .start = IRQ_EXT1, /* irq number */ 44 .start = IRQ_EXT1, /* irq number */
40 .end = IRQ_EXT1, 45 .end = IRQ_EXT1,
41 .flags = IORESOURCE_IRQ, 46 .flags = IORESOURCE_IRQ | IRQF_TRIGGER_LOW,
42 }, 47 },
43}; 48};
44 49
@@ -48,6 +53,7 @@ static struct platform_device r8a66597_usb_host_device = {
48 .dev = { 53 .dev = {
49 .dma_mask = NULL, /* don't use dma */ 54 .dma_mask = NULL, /* don't use dma */
50 .coherent_dma_mask = 0xffffffff, 55 .coherent_dma_mask = 0xffffffff,
56 .platform_data = &r8a66597_data,
51 }, 57 },
52 .num_resources = ARRAY_SIZE(r8a66597_usb_host_resources), 58 .num_resources = ARRAY_SIZE(r8a66597_usb_host_resources),
53 .resource = r8a66597_usb_host_resources, 59 .resource = r8a66597_usb_host_resources,