From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-bw0-f49.google.com ([209.85.214.49]) by canuck.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1R9HEF-0002Qk-6Q for barebox@lists.infradead.org; Thu, 29 Sep 2011 14:04:48 +0000 Received: by bkat2 with SMTP id t2so845895bka.36 for ; Thu, 29 Sep 2011 07:04:45 -0700 (PDT) From: Antony Pavlov Date: Thu, 29 Sep 2011 18:04:35 +0400 Message-Id: <1317305076-3334-6-git-send-email-antonynpavlov@gmail.com> In-Reply-To: <1317305076-3334-1-git-send-email-antonynpavlov@gmail.com> References: <1317305076-3334-1-git-send-email-antonynpavlov@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [RFC PATCH 5/6] toshiba-ac100: add USB host support To: barebox@lists.infradead.org Signed-off-by: Antony Pavlov --- 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 #include #include +#include +#include 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 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox