diff options
author | Stefano Babic <sbabic@denx.de> | 2012-02-07 23:28:58 +0000 |
---|---|---|
committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2012-02-12 10:11:31 +0100 |
commit | 8c589d6fef14924647e325450644cc72eed83579 (patch) | |
tree | ceef4372f6eb3052e7e758331ea9724941bb4225 /board/technexion/twister | |
parent | 49be71c475d519813015443dd391adf6e8ecba3a (diff) | |
download | u-boot-8c589d6fef14924647e325450644cc72eed83579.tar.gz |
OMAP3: TAM3517: update ehci interface
Changed the EHCI interface using the ulpi framework.
Signed-off-by: Stefano Babic <sbabic@denx.de>
CC: Tom Rini <tom.rini@gmail.com>
Acked-by: Igor Grinberg <grinberg@compulab.co.il>
Diffstat (limited to 'board/technexion/twister')
-rw-r--r-- | board/technexion/twister/twister.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/board/technexion/twister/twister.c b/board/technexion/twister/twister.c index 06fac7b583..50c70ab603 100644 --- a/board/technexion/twister/twister.c +++ b/board/technexion/twister/twister.c @@ -33,6 +33,10 @@ #include <asm/arch/mmc_host_def.h> #include <i2c.h> #include <asm/gpio.h> +#ifdef CONFIG_USB_EHCI +#include <usb.h> +#include <asm/ehci-omap.h> +#endif #include "twister.h" DECLARE_GLOBAL_DATA_PTR; @@ -56,6 +60,24 @@ static const u32 gpmc_XR16L2751[] = { XR16L2751_GPMC_CONFIG6, }; +#ifdef CONFIG_USB_EHCI +static struct omap_usbhs_board_data usbhs_bdata = { + .port_mode[0] = OMAP_EHCI_PORT_MODE_PHY, + .port_mode[1] = OMAP_EHCI_PORT_MODE_PHY, + .port_mode[2] = OMAP_USBHS_PORT_MODE_UNUSED, +}; + +int ehci_hcd_init(void) +{ + return omap_ehci_hcd_init(&usbhs_bdata); +} + +int ehci_hcd_stop(void) +{ + return omap_ehci_hcd_stop(); +} +#endif + int board_init(void) { gpmc_init(); /* in SRAM or SDRAM, finish GPMC */ |