[RFC PATCH 5/6] toshiba-ac100: add USB host support
Antony Pavlov
antonynpavlov at gmail.com
Thu Sep 29 10:04:35 EDT 2011
Signed-off-by: Antony Pavlov <antonynpavlov at gmail.com>
---
arch/arm/boards/toshiba-ac100/board.c | 18 ++++++++++++++++++
1 files changed, 18 insertions(+), 0 deletions(-)
diff --git a/arch/arm/boards/toshiba-ac100/board.c b/arch/arm/boards/toshiba-ac100/board.c
index e3a5eba..3fd720d 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,19 @@ static int ac100_mem_init(void)
return 0;
}
mem_initcall(ac100_mem_init);
+
+#ifdef CONFIG_USB_EHCI
+static struct ehci_platform_data ehci_pdata = {
+ .flags = EHCI_HAS_TT,
+};
+#endif
+
+static int ac100_devices_init(void)
+{
+#ifdef CONFIG_USB_EHCI
+ add_generic_usb_ehci_device(-1, TEGRA_USB3_BASE, &ehci_pdata);
+#endif
+
+ return 0;
+}
+device_initcall(ac100_devices_init);
--
1.7.6.3
More information about the barebox
mailing list