diff options
author | Dinh Nguyen <Dinh.Nguyen@freescale.com> | 2010-05-10 13:45:59 -0500 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2010-05-11 08:49:54 +0200 |
commit | 2ba5a2c0d8e0f62916a885170f28786141f08f76 (patch) | |
tree | e321c91bbb82a90aa39ebd026d62a7ada6cd36b3 /arch/arm/mach-mx5/devices.c | |
parent | c79504e73a0e84c4db7a2315dcdd6987b0c52566 (diff) | |
download | talos-obmc-linux-2ba5a2c0d8e0f62916a885170f28786141f08f76.tar.gz talos-obmc-linux-2ba5a2c0d8e0f62916a885170f28786141f08f76.zip |
mx5: enable usb gadget for freescale mx51 babbage board
This patch enables usb gadget for freescale mx51 babbage hw. By default,
the OTG port will be in device mode. To put the OTG port into Host mode,
pass "otg_mode=host" in the exec command.
This patch applies to 2.6.34-rc7.
Signed-off-by: Dinh Nguyen <Dinh.Nguyen@freescale.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mx5/devices.c')
-rw-r--r-- | arch/arm/mach-mx5/devices.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/arm/mach-mx5/devices.c b/arch/arm/mach-mx5/devices.c index e6262f31ed8f..23850e637dc3 100644 --- a/arch/arm/mach-mx5/devices.c +++ b/arch/arm/mach-mx5/devices.c @@ -107,6 +107,18 @@ static struct resource usbotg_resources[] = { }, }; +/* OTG gadget device */ +struct platform_device mxc_usbdr_udc_device = { + .name = "fsl-usb2-udc", + .id = -1, + .num_resources = ARRAY_SIZE(usbotg_resources), + .resource = usbotg_resources, + .dev = { + .dma_mask = &usb_dma_mask, + .coherent_dma_mask = DMA_BIT_MASK(32), + }, +}; + struct platform_device mxc_usbdr_host_device = { .name = "mxc-ehci", .id = 0, |