aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mx3/mx31moboard-smartbot.c
diff options
context:
space:
mode:
authorPhilippe Rétornaz <philippe.retornaz@epfl.ch>2010-05-11 10:57:50 -0400
committerSascha Hauer <s.hauer@pengutronix.de>2010-05-17 04:05:50 -0400
commit66c202ad9a58905e0e6a0fa3976020a7ab0fa6df (patch)
treec8559ce3f8e34002228844a21172f499935f291f /arch/arm/mach-mx3/mx31moboard-smartbot.c
parent25783602050600b294086d6a0be9a0c2cfe8a3e3 (diff)
mx31moboard: Move usb OTG device registration
In preparation for a new robot which needs the OTG port as host. This moves the OTG device registration into board initialisation. Signed-off-by: Philippe Rétornaz <philippe.retornaz@epfl.ch> Acked-by: Valentin Longchamp <valentin.longchamp@epfl.ch> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mx3/mx31moboard-smartbot.c')
-rw-r--r--arch/arm/mach-mx3/mx31moboard-smartbot.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/mach-mx3/mx31moboard-smartbot.c b/arch/arm/mach-mx3/mx31moboard-smartbot.c
index 83d2b9f42cec..ac1a163a5b78 100644
--- a/arch/arm/mach-mx3/mx31moboard-smartbot.c
+++ b/arch/arm/mach-mx3/mx31moboard-smartbot.c
@@ -23,6 +23,7 @@
23#include <linux/i2c.h> 23#include <linux/i2c.h>
24#include <linux/platform_device.h> 24#include <linux/platform_device.h>
25#include <linux/types.h> 25#include <linux/types.h>
26#include <linux/fsl_devices.h>
26 27
27#include <mach/common.h> 28#include <mach/common.h>
28#include <mach/hardware.h> 29#include <mach/hardware.h>
@@ -116,6 +117,11 @@ static int __init smartbot_cam_init(void)
116 return 0; 117 return 0;
117} 118}
118 119
120static struct fsl_usb2_platform_data usb_pdata = {
121 .operating_mode = FSL_USB2_DR_DEVICE,
122 .phy_mode = FSL_USB2_PHY_ULPI,
123};
124
119#define POWER_EN IOMUX_TO_GPIO(MX31_PIN_DTR_DCE1) 125#define POWER_EN IOMUX_TO_GPIO(MX31_PIN_DTR_DCE1)
120#define DSPIC_RST_B IOMUX_TO_GPIO(MX31_PIN_DSR_DCE1) 126#define DSPIC_RST_B IOMUX_TO_GPIO(MX31_PIN_DSR_DCE1)
121#define TRSLAT_RST_B IOMUX_TO_GPIO(MX31_PIN_RI_DCE1) 127#define TRSLAT_RST_B IOMUX_TO_GPIO(MX31_PIN_RI_DCE1)
@@ -155,6 +161,8 @@ void __init mx31moboard_smartbot_init(void)
155 161
156 mxc_register_device(&mxc_uart_device1, &uart_pdata); 162 mxc_register_device(&mxc_uart_device1, &uart_pdata);
157 163
164 mxc_register_device(&mxc_otg_udc_device, &usb_pdata);
165
158 smartbot_resets_init(); 166 smartbot_resets_init();
159 167
160 smartbot_cam_init(); 168 smartbot_cam_init();