diff options
author | Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com> | 2009-05-26 05:33:11 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-06-17 03:21:00 -0400 |
commit | 6b64929c1e696090f32c31782e44d3b51754126f (patch) | |
tree | 13078a084879b7a072365ca1e6151d00f2eb5d9a /arch/sh/kernel | |
parent | fcaf99d20d86995cfa1a4f01b1273f9f7d74717e (diff) |
sh: add platform data for r8a66597-hcd in setup-sh7366
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/sh/kernel')
-rw-r--r-- | arch/sh/kernel/cpu/sh4a/setup-sh7366.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/arch/sh/kernel/cpu/sh4a/setup-sh7366.c b/arch/sh/kernel/cpu/sh4a/setup-sh7366.c index 318516f6bfad..c18f7d09281b 100644 --- a/arch/sh/kernel/cpu/sh4a/setup-sh7366.c +++ b/arch/sh/kernel/cpu/sh4a/setup-sh7366.c | |||
@@ -15,6 +15,7 @@ | |||
15 | #include <linux/serial_sci.h> | 15 | #include <linux/serial_sci.h> |
16 | #include <linux/uio_driver.h> | 16 | #include <linux/uio_driver.h> |
17 | #include <linux/sh_timer.h> | 17 | #include <linux/sh_timer.h> |
18 | #include <linux/usb/r8a66597.h> | ||
18 | #include <asm/clock.h> | 19 | #include <asm/clock.h> |
19 | 20 | ||
20 | static struct resource iic_resources[] = { | 21 | static struct resource iic_resources[] = { |
@@ -38,18 +39,20 @@ static struct platform_device iic_device = { | |||
38 | .resource = iic_resources, | 39 | .resource = iic_resources, |
39 | }; | 40 | }; |
40 | 41 | ||
42 | static struct r8a66597_platdata r8a66597_data = { | ||
43 | /* This set zero to all members */ | ||
44 | }; | ||
45 | |||
41 | static struct resource usb_host_resources[] = { | 46 | static struct resource usb_host_resources[] = { |
42 | [0] = { | 47 | [0] = { |
43 | .name = "r8a66597_hcd", | ||
44 | .start = 0xa4d80000, | 48 | .start = 0xa4d80000, |
45 | .end = 0xa4d800ff, | 49 | .end = 0xa4d800ff, |
46 | .flags = IORESOURCE_MEM, | 50 | .flags = IORESOURCE_MEM, |
47 | }, | 51 | }, |
48 | [1] = { | 52 | [1] = { |
49 | .name = "r8a66597_hcd", | ||
50 | .start = 65, | 53 | .start = 65, |
51 | .end = 65, | 54 | .end = 65, |
52 | .flags = IORESOURCE_IRQ, | 55 | .flags = IORESOURCE_IRQ | IRQF_TRIGGER_LOW, |
53 | }, | 56 | }, |
54 | }; | 57 | }; |
55 | 58 | ||
@@ -59,6 +62,7 @@ static struct platform_device usb_host_device = { | |||
59 | .dev = { | 62 | .dev = { |
60 | .dma_mask = NULL, | 63 | .dma_mask = NULL, |
61 | .coherent_dma_mask = 0xffffffff, | 64 | .coherent_dma_mask = 0xffffffff, |
65 | .platform_data = &r8a66597_data, | ||
62 | }, | 66 | }, |
63 | .num_resources = ARRAY_SIZE(usb_host_resources), | 67 | .num_resources = ARRAY_SIZE(usb_host_resources), |
64 | .resource = usb_host_resources, | 68 | .resource = usb_host_resources, |