]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
USB: MXC: add platform resources for i.MX21 USB host controller.
authorMartin Fuzzey <mfuzzey@gmail.com>
Sat, 21 Nov 2009 11:14:58 +0000 (12:14 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 2 Mar 2010 22:52:57 +0000 (14:52 -0800)
Signed-off-by: Martin Fuzzey <mfuzzey@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/arm/mach-mx2/devices.c
arch/arm/mach-mx2/devices.h

index 4acab18bf1f30ec8322a35c9530458894cecd785..3956d82b7c4e8a993987dd7a2915ec7f32f8c2d8 100644 (file)
@@ -643,3 +643,30 @@ int __init mxc_register_gpios(void)
 {
        return mxc_gpio_init(imx_gpio_ports, ARRAY_SIZE(imx_gpio_ports));
 }
+
+#ifdef CONFIG_MACH_MX21
+static struct resource mx21_usbhc_resources[] = {
+       {
+               .start  = USBOTG_BASE_ADDR,
+               .end    = USBOTG_BASE_ADDR + 0x1FFF,
+               .flags  = IORESOURCE_MEM,
+       },
+       {
+               .start          = MXC_INT_USBHOST,
+               .end            = MXC_INT_USBHOST,
+               .flags          = IORESOURCE_IRQ,
+       },
+};
+
+struct platform_device mx21_usbhc_device = {
+       .name           = "imx21-hcd",
+       .id             = 0,
+       .dev            = {
+               .dma_mask = &mx21_usbhc_device.dev.coherent_dma_mask,
+               .coherent_dma_mask = DMA_BIT_MASK(32),
+       },
+       .num_resources  = ARRAY_SIZE(mx21_usbhc_resources),
+       .resource       = mx21_usbhc_resources,
+};
+#endif
+
index 97306aa18f1c5cde57f709e4a4dce9ee5003f0db..f12694b073692f63869e596f3cc2ccaa0d662811 100644 (file)
@@ -26,5 +26,6 @@ extern struct platform_device mxc_usbh2;
 extern struct platform_device mxc_spi_device0;
 extern struct platform_device mxc_spi_device1;
 extern struct platform_device mxc_spi_device2;
+extern struct platform_device mx21_usbhc_device;
 extern struct platform_device imx_ssi_device0;
 extern struct platform_device imx_ssi_device1;