diff options
author | Antony Pavlov <antonynpavlov@gmail.com> | 2012-05-29 14:11:34 +0400 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-05-29 15:46:37 +0200 |
commit | f0d4c2981dd0490bfd9a3f71cc75b53803531e6e (patch) | |
tree | c810ad55dbc26de07a8cb57aa77ee0d2c89acd18 | |
parent | c837b8e19e1284581b270509c157c8d3d3a0492e (diff) | |
download | barebox-f0d4c2981dd0490bfd9a3f71cc75b53803531e6e.tar.gz barebox-f0d4c2981dd0490bfd9a3f71cc75b53803531e6e.tar.xz |
toshiba_ac100: add USB host support
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | arch/arm/boards/toshiba-ac100/board.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/arm/boards/toshiba-ac100/board.c b/arch/arm/boards/toshiba-ac100/board.c index e3a5ebabed..b54f99fd57 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); |