diff options
author | Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com> | 2007-10-30 00:05:31 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2007-10-30 00:05:31 -0400 |
commit | 262feaa08eeb744853868b9aa1a8bdb18fe2257c (patch) | |
tree | d8095732612091921bb056afa9a65badd647150e /arch/sh | |
parent | 656e608747df697fdb7c990499f15bc2406ea2c2 (diff) |
sh: Add resource of USBF for SH7722.
Signed-off-by: Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh')
-rw-r--r-- | arch/sh/kernel/cpu/sh4a/setup-sh7722.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/arch/sh/kernel/cpu/sh4a/setup-sh7722.c b/arch/sh/kernel/cpu/sh4a/setup-sh7722.c index 55f66104431d..b9c6547c4a90 100644 --- a/arch/sh/kernel/cpu/sh4a/setup-sh7722.c +++ b/arch/sh/kernel/cpu/sh4a/setup-sh7722.c | |||
@@ -14,6 +14,32 @@ | |||
14 | #include <asm/mmzone.h> | 14 | #include <asm/mmzone.h> |
15 | #include <asm/sci.h> | 15 | #include <asm/sci.h> |
16 | 16 | ||
17 | static struct resource usbf_resources[] = { | ||
18 | [0] = { | ||
19 | .name = "m66592_udc", | ||
20 | .start = 0xA4480000, | ||
21 | .end = 0xA44800FF, | ||
22 | .flags = IORESOURCE_MEM, | ||
23 | }, | ||
24 | [1] = { | ||
25 | .name = "m66592_udc", | ||
26 | .start = 65, | ||
27 | .end = 65, | ||
28 | .flags = IORESOURCE_IRQ, | ||
29 | }, | ||
30 | }; | ||
31 | |||
32 | static struct platform_device usbf_device = { | ||
33 | .name = "m66592_udc", | ||
34 | .id = -1, | ||
35 | .dev = { | ||
36 | .dma_mask = NULL, | ||
37 | .coherent_dma_mask = 0xffffffff, | ||
38 | }, | ||
39 | .num_resources = ARRAY_SIZE(usbf_resources), | ||
40 | .resource = usbf_resources, | ||
41 | }; | ||
42 | |||
17 | static struct plat_sci_port sci_platform_data[] = { | 43 | static struct plat_sci_port sci_platform_data[] = { |
18 | { | 44 | { |
19 | .mapbase = 0xffe00000, | 45 | .mapbase = 0xffe00000, |
@@ -47,6 +73,7 @@ static struct platform_device sci_device = { | |||
47 | }; | 73 | }; |
48 | 74 | ||
49 | static struct platform_device *sh7722_devices[] __initdata = { | 75 | static struct platform_device *sh7722_devices[] __initdata = { |
76 | &usbf_device, | ||
50 | &sci_device, | 77 | &sci_device, |
51 | }; | 78 | }; |
52 | 79 | ||