diff options
author | Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com> | 2008-06-05 12:21:04 (GMT) |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2008-06-09 07:04:13 (GMT) |
commit | b8858eed87f1f19903ad9224f7228cbe7374ac7e (patch) | |
tree | 381be692c31de4cd03979e38cd66af1845a6a0f7 /arch/sh/kernel | |
parent | 77d11ba993bf1258f242b6a4ee0230aec8c6c8a4 (diff) | |
download | linux-b8858eed87f1f19903ad9224f7228cbe7374ac7e.tar.xz |
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>
Diffstat (limited to 'arch/sh/kernel')
-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 5559a11..a0470f2 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 = { .resource = rtc_resources, }; +static struct resource sh7723_usb_host_resources[] = { + [0] = { + .name = "r8a66597_hcd", + .start = 0xa4d80000, + .end = 0xa4d800ff, + .flags = IORESOURCE_MEM, + }, + [1] = { + .start = 65, + .end = 65, + .flags = IORESOURCE_IRQ, + }, +}; + +static struct platform_device sh7723_usb_host_device = { + .name = "r8a66597_hcd", + .id = 0, + .dev = { + .dma_mask = NULL, /* not use dma */ + .coherent_dma_mask = 0xffffffff, + }, + .num_resources = ARRAY_SIZE(sh7723_usb_host_resources), + .resource = sh7723_usb_host_resources, +}; + static struct platform_device *sh7723_devices[] __initdata = { &sci_device, &rtc_device, + &sh7723_usb_host_device, }; static int __init sh7723_devices_setup(void) |