summaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-mxc/devices/platform-fsl-usb2-udc.c
diff options
context:
space:
mode:
authorUwe Kleine-König2010-11-12 16:40:06 +0100
committerUwe Kleine-König2010-11-19 21:54:35 +0100
commit9e1dde33876ba83ad586c336647fff133d0f5472 (patch)
tree52aa4efe87f2f52234f2f55e3a2b29e61de683c9 /arch/arm/plat-mxc/devices/platform-fsl-usb2-udc.c
parentARM: mx3: dynamically allocate mxc_rnga devices (diff)
downloadkernel-qcow2-linux-9e1dde33876ba83ad586c336647fff133d0f5472.tar.gz
kernel-qcow2-linux-9e1dde33876ba83ad586c336647fff133d0f5472.tar.xz
kernel-qcow2-linux-9e1dde33876ba83ad586c336647fff133d0f5472.zip
ARM: mx3: dynamically allocate fsl-usb2-udc devices
While adapting the #defines for this I noticed that the offset used for USB HS on i.MX35 differs from the documented offset. I kept the working offset and commented that the documentation differs. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Diffstat (limited to 'arch/arm/plat-mxc/devices/platform-fsl-usb2-udc.c')
-rw-r--r--arch/arm/plat-mxc/devices/platform-fsl-usb2-udc.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/plat-mxc/devices/platform-fsl-usb2-udc.c b/arch/arm/plat-mxc/devices/platform-fsl-usb2-udc.c
index 42c3923c4159..59c33f6e401c 100644
--- a/arch/arm/plat-mxc/devices/platform-fsl-usb2-udc.c
+++ b/arch/arm/plat-mxc/devices/platform-fsl-usb2-udc.c
@@ -25,6 +25,16 @@ const struct imx_fsl_usb2_udc_data imx27_fsl_usb2_udc_data __initconst =
imx_fsl_usb2_udc_data_entry_single(MX27);
#endif /* ifdef CONFIG_SOC_IMX27 */
+#ifdef CONFIG_SOC_IMX31
+const struct imx_fsl_usb2_udc_data imx31_fsl_usb2_udc_data __initconst =
+ imx_fsl_usb2_udc_data_entry_single(MX31);
+#endif /* ifdef CONFIG_SOC_IMX31 */
+
+#ifdef CONFIG_SOC_IMX35
+const struct imx_fsl_usb2_udc_data imx35_fsl_usb2_udc_data __initconst =
+ imx_fsl_usb2_udc_data_entry_single(MX35);
+#endif /* ifdef CONFIG_SOC_IMX35 */
+
struct platform_device *__init imx_add_fsl_usb2_udc(
const struct imx_fsl_usb2_udc_data *data,
const struct fsl_usb2_platform_data *pdata)