aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mx3/devices.c
diff options
context:
space:
mode:
authorGuennadi Liakhovetski <lg@denx.de>2009-05-04 07:13:52 -0400
committerSascha Hauer <s.hauer@pengutronix.de>2009-05-07 10:19:50 -0400
commiteb05bbeb65cc1015bdd5c4cb72fd1694a3288e97 (patch)
tree7427033c21d9d7f0723ede4a3ce44e7ab79828bb /arch/arm/mach-mx3/devices.c
parentbff0b53bd77df7e44a1d6b1a13162e26def5d17a (diff)
ARM: add USB device support to pcm037
Add OTG device definition and resources to i.MX31 and a pure USB device mode support to the pcm037 board. Signed-off-by: Guennadi Liakhovetski <lg@denx.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mx3/devices.c')
-rw-r--r--arch/arm/mach-mx3/devices.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/arch/arm/mach-mx3/devices.c b/arch/arm/mach-mx3/devices.c
index 227a538bb941..f55c9863ea42 100644
--- a/arch/arm/mach-mx3/devices.c
+++ b/arch/arm/mach-mx3/devices.c
@@ -17,6 +17,7 @@
17 * Boston, MA 02110-1301, USA. 17 * Boston, MA 02110-1301, USA.
18 */ 18 */
19 19
20#include <linux/dma-mapping.h>
20#include <linux/module.h> 21#include <linux/module.h>
21#include <linux/platform_device.h> 22#include <linux/platform_device.h>
22#include <linux/serial.h> 23#include <linux/serial.h>
@@ -349,6 +350,32 @@ struct platform_device mx3_fb = {
349 }, 350 },
350}; 351};
351 352
353static struct resource otg_resources[] = {
354 {
355 .start = OTG_BASE_ADDR,
356 .end = OTG_BASE_ADDR + 0x1ff,
357 .flags = IORESOURCE_MEM,
358 }, {
359 .start = MXC_INT_USB3,
360 .end = MXC_INT_USB3,
361 .flags = IORESOURCE_IRQ,
362 },
363};
364
365static u64 otg_dmamask = DMA_BIT_MASK(32);
366
367/* OTG gadget device */
368struct platform_device mxc_otg_udc_device = {
369 .name = "fsl-usb2-udc",
370 .id = -1,
371 .dev = {
372 .dma_mask = &otg_dmamask,
373 .coherent_dma_mask = DMA_BIT_MASK(32),
374 },
375 .resource = otg_resources,
376 .num_resources = ARRAY_SIZE(otg_resources),
377};
378
352#ifdef CONFIG_ARCH_MX35 379#ifdef CONFIG_ARCH_MX35
353static struct resource mxc_fec_resources[] = { 380static struct resource mxc_fec_resources[] = {
354 { 381 {