mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] ARM: Vincell: add usb device
@ 2015-02-19 20:45 Michael Grzeschik
  2015-03-02  6:48 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Grzeschik @ 2015-02-19 20:45 UTC (permalink / raw)
  To: barebox

Signed-off-by: Michael Grzeschik <m.grzeschik@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


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-03-02  6:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-19 20:45 [PATCH] ARM: Vincell: add usb device Michael Grzeschik
2015-03-02  6:48 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox