Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=4bb70b84bffee0bf1f60f17113e5baa814c2ce79
Commit:     4bb70b84bffee0bf1f60f17113e5baa814c2ce79
Parent:     7f3edee81fbd49114c28057512906f169caa0bed
Author:     Yoshihiro Shimoda <[EMAIL PROTECTED]>
AuthorDate: Fri Jan 11 10:38:34 2008 +0900
Committer:  Paul Mundt <[EMAIL PROTECTED]>
CommitDate: Mon Jan 28 13:19:03 2008 +0900

    sh: Add OHCI and UDC platform devices for SH7720.
    
    Signed-off-by: Yoshihiro Shimoda <[EMAIL PROTECTED]>
    Signed-off-by: Paul Mundt <[EMAIL PROTECTED]>
---
 arch/sh/kernel/cpu/sh3/setup-sh7720.c |   53 +++++++++++++++++++++++++++++++++
 1 files changed, 53 insertions(+), 0 deletions(-)

diff --git a/arch/sh/kernel/cpu/sh3/setup-sh7720.c 
b/arch/sh/kernel/cpu/sh3/setup-sh7720.c
index c00471a..3855ea4 100644
--- a/arch/sh/kernel/cpu/sh3/setup-sh7720.c
+++ b/arch/sh/kernel/cpu/sh3/setup-sh7720.c
@@ -85,9 +85,62 @@ static struct platform_device sci_device = {
        },
 };
 
+static struct resource usb_ohci_resources[] = {
+       [0] = {
+               .start  = 0xA4428000,
+               .end    = 0xA44280FF,
+               .flags  = IORESOURCE_MEM,
+       },
+       [1] = {
+               .start  = 67,
+               .end    = 67,
+               .flags  = IORESOURCE_IRQ,
+       },
+};
+
+static u64 usb_ohci_dma_mask = 0xffffffffUL;
+static struct platform_device usb_ohci_device = {
+       .name           = "sh_ohci",
+       .id             = -1,
+       .dev = {
+               .dma_mask               = &usb_ohci_dma_mask,
+               .coherent_dma_mask      = 0xffffffff,
+       },
+       .num_resources  = ARRAY_SIZE(usb_ohci_resources),
+       .resource       = usb_ohci_resources,
+};
+
+static struct resource usbf_resources[] = {
+       [0] = {
+               .name   = "sh_udc",
+               .start  = 0xA4420000,
+               .end    = 0xA44200FF,
+               .flags  = IORESOURCE_MEM,
+       },
+       [1] = {
+               .name   = "sh_udc",
+               .start  = 65,
+               .end    = 65,
+               .flags  = IORESOURCE_IRQ,
+       },
+};
+
+static struct platform_device usbf_device = {
+       .name           = "sh_udc",
+       .id             = -1,
+       .dev = {
+               .dma_mask               = NULL,
+               .coherent_dma_mask      = 0xffffffff,
+       },
+       .num_resources  = ARRAY_SIZE(usbf_resources),
+       .resource       = usbf_resources,
+};
+
 static struct platform_device *sh7720_devices[] __initdata = {
        &rtc_device,
        &sci_device,
+       &usb_ohci_device,
+       &usbf_device,
 };
 
 static int __init sh7720_devices_setup(void)
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to