diff options
Diffstat (limited to 'arch/arm/mach-mx2/devices.c')
-rw-r--r-- | arch/arm/mach-mx2/devices.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/arch/arm/mach-mx2/devices.c b/arch/arm/mach-mx2/devices.c index 4acab18bf1f3..3956d82b7c4e 100644 --- a/arch/arm/mach-mx2/devices.c +++ b/arch/arm/mach-mx2/devices.c | |||
@@ -643,3 +643,30 @@ int __init mxc_register_gpios(void) | |||
643 | { | 643 | { |
644 | return mxc_gpio_init(imx_gpio_ports, ARRAY_SIZE(imx_gpio_ports)); | 644 | return mxc_gpio_init(imx_gpio_ports, ARRAY_SIZE(imx_gpio_ports)); |
645 | } | 645 | } |
646 | |||
647 | #ifdef CONFIG_MACH_MX21 | ||
648 | static struct resource mx21_usbhc_resources[] = { | ||
649 | { | ||
650 | .start = USBOTG_BASE_ADDR, | ||
651 | .end = USBOTG_BASE_ADDR + 0x1FFF, | ||
652 | .flags = IORESOURCE_MEM, | ||
653 | }, | ||
654 | { | ||
655 | .start = MXC_INT_USBHOST, | ||
656 | .end = MXC_INT_USBHOST, | ||
657 | .flags = IORESOURCE_IRQ, | ||
658 | }, | ||
659 | }; | ||
660 | |||
661 | struct platform_device mx21_usbhc_device = { | ||
662 | .name = "imx21-hcd", | ||
663 | .id = 0, | ||
664 | .dev = { | ||
665 | .dma_mask = &mx21_usbhc_device.dev.coherent_dma_mask, | ||
666 | .coherent_dma_mask = DMA_BIT_MASK(32), | ||
667 | }, | ||
668 | .num_resources = ARRAY_SIZE(mx21_usbhc_resources), | ||
669 | .resource = mx21_usbhc_resources, | ||
670 | }; | ||
671 | #endif | ||
672 | |||