From mboxrd@z Thu Jan 1 00:00:00 1970 From: Igor Grinberg Date: Wed, 08 Feb 2012 12:08:32 +0200 Subject: [U-Boot] [PATCH V2] OMAP3: TAM3517: update ehci interface In-Reply-To: <1328693338-4389-1-git-send-email-sbabic@denx.de> References: <1328342869-13347-1-git-send-email-sbabic@denx.de> <1328693338-4389-1-git-send-email-sbabic@denx.de> Message-ID: <4F3249A0.4060603@compulab.co.il> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 02/08/12 11:28, Stefano Babic wrote: > Changed the EHCI interface using the ulpi framework. > > Signed-off-by: Stefano Babic > CC: Tom Rini Acked-by: Igor Grinberg > --- > This patch is based and tested on top of Govindraj's patches for EHCI omap: > http://patchwork.ozlabs.org/patch/139377/ > > Changes since V1: > - do not use temporary variable to return values (Igor Grinberg) > - port 2 is TTL, cannot be PHY (Igor Grinberg) > > board/technexion/twister/twister.c | 22 ++++++++++++++++++++++ > include/configs/tam3517-common.h | 2 ++ > 2 files changed, 24 insertions(+), 0 deletions(-) > > diff --git a/board/technexion/twister/twister.c b/board/technexion/twister/twister.c > index 4d34d24..b927586 100644 > --- a/board/technexion/twister/twister.c > +++ b/board/technexion/twister/twister.c > @@ -33,6 +33,10 @@ > #include > #include > #include > +#ifdef CONFIG_USB_EHCI > +#include > +#include > +#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 */ > diff --git a/include/configs/tam3517-common.h b/include/configs/tam3517-common.h > index 817d468..13eeadb 100644 > --- a/include/configs/tam3517-common.h > +++ b/include/configs/tam3517-common.h > @@ -100,6 +100,8 @@ > #define CONFIG_OMAP3_GPIO_5 > #define CONFIG_USB_EHCI > #define CONFIG_USB_EHCI_OMAP > +#define CONFIG_USB_ULPI > +#define CONFIG_USB_ULPI_VIEWPORT_OMAP > #define CONFIG_OMAP_EHCI_PHY1_RESET_GPIO 25 > #define CONFIG_SYS_USB_EHCI_MAX_ROOT_PORTS 3 > #define CONFIG_USB_STORAGE -- Regards, Igor.