diff options
author | Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com> | 2008-06-05 08:21:04 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2008-06-09 03:04:13 -0400 |
commit | b8858eed87f1f19903ad9224f7228cbe7374ac7e (patch) | |
tree | 381be692c31de4cd03979e38cd66af1845a6a0f7 | |
parent | 77d11ba993bf1258f242b6a4ee0230aec8c6c8a4 (diff) |
sh: add resource of USB host for SH7723
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 | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/arch/sh/kernel/cpu/sh4a/setup-sh7723.c b/arch/sh/kernel/cpu/sh4a/setup-sh7723.c index 5559a110a5bd..a0470f2f5479 100644 --- a/arch/sh/kernel/cpu/sh4a/setup-sh7723.c +++ b/arch/sh/kernel/cpu/sh4a/setup-sh7723.c | |||
@@ -88,9 +88,35 @@ static struct platform_device rtc_device = { | |||
88 | .resource = rtc_resources, | 88 | .resource = rtc_resources, |
89 | }; | 89 | }; |
90 | 90 | ||
91 | static struct resource sh7723_usb_host_resources[] = { | ||
92 | [0] = { | ||
93 | .name = "r8a66597_hcd", | ||
94 | .start = 0xa4d80000, | ||
95 | .end = 0xa4d800ff, | ||
96 | .flags = IORESOURCE_MEM, | ||
97 | }, | ||
98 | [1] = { | ||
99 | .start = 65, | ||
100 | .end = 65, | ||
101 | .flags = IORESOURCE_IRQ, | ||
102 | }, | ||
103 | }; | ||
104 | |||
105 | static struct platform_device sh7723_usb_host_device = { | ||
106 | .name = "r8a66597_hcd", | ||
107 | .id = 0, | ||
108 | .dev = { | ||
109 | .dma_mask = NULL, /* not use dma */ | ||
110 | .coherent_dma_mask = 0xffffffff, | ||
111 | }, | ||
112 | .num_resources = ARRAY_SIZE(sh7723_usb_host_resources), | ||
113 | .resource = sh7723_usb_host_resources, | ||
114 | }; | ||
115 | |||
91 | static struct platform_device *sh7723_devices[] __initdata = { | 116 | static struct platform_device *sh7723_devices[] __initdata = { |
92 | &sci_device, | 117 | &sci_device, |
93 | &rtc_device, | 118 | &rtc_device, |
119 | &sh7723_usb_host_device, | ||
94 | }; | 120 | }; |
95 | 121 | ||
96 | static int __init sh7723_devices_setup(void) | 122 | static int __init sh7723_devices_setup(void) |