[PATCH] ARM: Vincell: add usb device
Michael Grzeschik
m.grzeschik at pengutronix.de
Thu Feb 19 12:45:28 PST 2015
Signed-off-by: Michael Grzeschik <m.grzeschik at pengutronix.de>
---
arch/arm/boards/guf-vincell/board.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/arch/arm/boards/guf-vincell/board.c b/arch/arm/boards/guf-vincell/board.c
index 0b4065a..ec78b3d 100644
--- a/arch/arm/boards/guf-vincell/board.c
+++ b/arch/arm/boards/guf-vincell/board.c
@@ -30,6 +30,7 @@
#include <io.h>
#include <i2c/i2c.h>
#include <linux/clk.h>
+#include <usb/fsl_usb2.h>
#include <generated/mach-types.h>
@@ -43,6 +44,7 @@
#include <mach/bbu.h>
#include <mach/imx-flash-header.h>
#include <mach/imx5.h>
+#include <mach/usb.h>
#include <asm/setup.h>
#include <asm/barebox-arm.h>
@@ -329,6 +331,11 @@ static int detectomat_test_bootstrap(void)
static int detectomat_bootstrap;
+static struct fsl_usb2_platform_data usb_pdata = {
+ .operating_mode = FSL_USB2_DR_DEVICE,
+ .phy_mode = FSL_USB2_PHY_UTMI,
+};
+
static int vincell_devices_init(void)
{
writel(0, MX53_M4IF_BASE_ADDR + 0xc);
@@ -349,6 +356,9 @@ static int vincell_devices_init(void)
i2c_register_board_info(0, i2c_devices, ARRAY_SIZE(i2c_devices));
imx53_add_i2c0(NULL);
+ add_generic_device("fsl-udc", DEVICE_ID_DYNAMIC, NULL, MX53_OTG_BASE_ADDR, 0x200,
+ IORESOURCE_MEM, &usb_pdata);
+
vincell_fec_reset();
armlinux_set_architecture(3297);
--
2.1.4
More information about the barebox
mailing list