diff options
author | Martin Fuzzey <mfuzzey@gmail.com> | 2009-11-21 06:14:58 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-03-02 17:52:57 -0500 |
commit | 4e0fa90d1de10d68429afa9353e10bb9436455db (patch) | |
tree | 1d7cde0908cb81120e2deace84db2a57e9742cf5 /arch/arm/mach-mx2/devices.c | |
parent | 3eb352c73c99602fd379782284ea2de1476c4f9d (diff) |
USB: MXC: add platform resources for i.MX21 USB host controller.
Signed-off-by: Martin Fuzzey <mfuzzey@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
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 | |||