mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH v20120529.1 1/2] toshiba_ac100: add USB host support
@ 2012-05-29 13:09 Antony Pavlov
  2012-05-29 13:09 ` [PATCH v20120529.1 2/2] toshiba_ac100: add defconfig Antony Pavlov
  0 siblings, 1 reply; 2+ messages in thread
From: Antony Pavlov @ 2012-05-29 13:09 UTC (permalink / raw)
  To: barebox

Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
---
 arch/arm/boards/toshiba-ac100/board.c |   15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/arch/arm/boards/toshiba-ac100/board.c b/arch/arm/boards/toshiba-ac100/board.c
index e3a5eba..d933146 100644
--- a/arch/arm/boards/toshiba-ac100/board.c
+++ b/arch/arm/boards/toshiba-ac100/board.c
@@ -24,6 +24,8 @@
 #include <init.h>
 #include <asm/armlinux.h>
 #include <sizes.h>
+#include <usb/ehci.h>
+#include <mach/iomap.h>
 
 static int ac100_mem_init(void)
 {
@@ -32,3 +34,16 @@ static int ac100_mem_init(void)
 	return 0;
 }
 mem_initcall(ac100_mem_init);
+
+static struct ehci_platform_data ehci_pdata = {
+	.flags = EHCI_HAS_TT,
+};
+
+static int ac100_devices_init(void)
+{
+	add_generic_usb_ehci_device(DEVICE_ID_DYNAMIC,
+		TEGRA_USB3_BASE, &ehci_pdata);
+
+	return 0;
+}
+device_initcall(ac100_devices_init);
-- 
1.7.10


_______________________________________________
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:[~2012-05-29 13:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-29 13:09 [PATCH v20120529.1 1/2] toshiba_ac100: add USB host support Antony Pavlov
2012-05-29 13:09 ` [PATCH v20120529.1 2/2] toshiba_ac100: add defconfig Antony Pavlov

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