From 2fc7f6654f2e3d7ce216c8bcb774aba565294ce2 Mon Sep 17 00:00:00 2001 From: Yoshihiro Shimoda Date: Fri, 11 Jan 2008 10:38:34 +0900 Subject: [PATCH] --- yaml --- r: 77845 b: refs/heads/master c: 4bb70b84bffee0bf1f60f17113e5baa814c2ce79 h: refs/heads/master i: 77843: a579cb92ec6d1a8958a121477c0e93b8b4e91a12 v: v3 --- [refs] | 2 +- trunk/arch/sh/kernel/cpu/sh3/setup-sh7720.c | 53 +++++++++++++++++++++ 2 files changed, 54 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index c497eb637267..983a5e10e0e7 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 7f3edee81fbd49114c28057512906f169caa0bed +refs/heads/master: 4bb70b84bffee0bf1f60f17113e5baa814c2ce79 diff --git a/trunk/arch/sh/kernel/cpu/sh3/setup-sh7720.c b/trunk/arch/sh/kernel/cpu/sh3/setup-sh7720.c index c00471a89212..3855ea4c21c8 100644 --- a/trunk/arch/sh/kernel/cpu/sh3/setup-sh7720.c +++ b/trunk/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)