diff options
| author | Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com> | 2009-05-26 05:33:14 -0400 |
|---|---|---|
| committer | Paul Mundt <lethal@linux-sh.org> | 2009-06-17 03:21:48 -0400 |
| commit | f73c8f53ccc13ae13c6dbfa002083448a5ad0c81 (patch) | |
| tree | 29c819121ba80b2e7a7f8680c3aff4b122da2bce | |
| parent | 6b64929c1e696090f32c31782e44d3b51754126f (diff) | |
sh: add platform data for r8a66597-hcd in setup-sh7723
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>
| -rw-r--r-- | arch/sh/kernel/cpu/sh4a/setup-sh7723.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/arch/sh/kernel/cpu/sh4a/setup-sh7723.c b/arch/sh/kernel/cpu/sh4a/setup-sh7723.c index d8f4a13aeff9..e1bb80b2a27b 100644 --- a/arch/sh/kernel/cpu/sh4a/setup-sh7723.c +++ b/arch/sh/kernel/cpu/sh4a/setup-sh7723.c | |||
| @@ -13,6 +13,7 @@ | |||
| 13 | #include <linux/mm.h> | 13 | #include <linux/mm.h> |
| 14 | #include <linux/serial_sci.h> | 14 | #include <linux/serial_sci.h> |
| 15 | #include <linux/uio_driver.h> | 15 | #include <linux/uio_driver.h> |
| 16 | #include <linux/usb/r8a66597.h> | ||
| 16 | #include <linux/sh_timer.h> | 17 | #include <linux/sh_timer.h> |
| 17 | #include <linux/io.h> | 18 | #include <linux/io.h> |
| 18 | #include <asm/clock.h> | 19 | #include <asm/clock.h> |
| @@ -396,9 +397,12 @@ static struct platform_device rtc_device = { | |||
| 396 | .resource = rtc_resources, | 397 | .resource = rtc_resources, |
| 397 | }; | 398 | }; |
| 398 | 399 | ||
| 400 | static struct r8a66597_platdata r8a66597_data = { | ||
| 401 | /* This set zero to all members */ | ||
| 402 | }; | ||
| 403 | |||
| 399 | static struct resource sh7723_usb_host_resources[] = { | 404 | static struct resource sh7723_usb_host_resources[] = { |
| 400 | [0] = { | 405 | [0] = { |
| 401 | .name = "r8a66597_hcd", | ||
| 402 | .start = 0xa4d80000, | 406 | .start = 0xa4d80000, |
| 403 | .end = 0xa4d800ff, | 407 | .end = 0xa4d800ff, |
| 404 | .flags = IORESOURCE_MEM, | 408 | .flags = IORESOURCE_MEM, |
| @@ -406,7 +410,7 @@ static struct resource sh7723_usb_host_resources[] = { | |||
| 406 | [1] = { | 410 | [1] = { |
| 407 | .start = 65, | 411 | .start = 65, |
| 408 | .end = 65, | 412 | .end = 65, |
| 409 | .flags = IORESOURCE_IRQ, | 413 | .flags = IORESOURCE_IRQ | IRQF_TRIGGER_LOW, |
| 410 | }, | 414 | }, |
| 411 | }; | 415 | }; |
| 412 | 416 | ||
| @@ -416,6 +420,7 @@ static struct platform_device sh7723_usb_host_device = { | |||
| 416 | .dev = { | 420 | .dev = { |
| 417 | .dma_mask = NULL, /* not use dma */ | 421 | .dma_mask = NULL, /* not use dma */ |
| 418 | .coherent_dma_mask = 0xffffffff, | 422 | .coherent_dma_mask = 0xffffffff, |
| 423 | .platform_data = &r8a66597_data, | ||
| 419 | }, | 424 | }, |
| 420 | .num_resources = ARRAY_SIZE(sh7723_usb_host_resources), | 425 | .num_resources = ARRAY_SIZE(sh7723_usb_host_resources), |
| 421 | .resource = sh7723_usb_host_resources, | 426 | .resource = sh7723_usb_host_resources, |
