From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Thu, 18 Jul 2013 06:30:55 +0200 Subject: [U-Boot] [PATCH v3 7/7] ARM: OMAP5-uevm: Add usb device reset API In-Reply-To: <1374092167-27645-8-git-send-email-dmurphy@ti.com> References: <1374092167-27645-1-git-send-email-dmurphy@ti.com> <1374092167-27645-8-git-send-email-dmurphy@ti.com> Message-ID: <201307180630.55940.marex@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Dan Murphy, > Add the call back to reset the LAN9730 after > the FEAT_POWER has been called. > > Signed-off-by: Dan Murphy > --- > v3 - Added this patch to separate the patch series - > http://patchwork.ozlabs.org/patch/258229/ > > board/ti/omap5_uevm/evm.c | 11 +++++++++++ > 1 file changed, 11 insertions(+) > > diff --git a/board/ti/omap5_uevm/evm.c b/board/ti/omap5_uevm/evm.c > index 9add0fd..42253fd 100644 > --- a/board/ti/omap5_uevm/evm.c > +++ b/board/ti/omap5_uevm/evm.c > @@ -31,6 +31,7 @@ > > #ifdef CONFIG_USB_EHCI > #include > +#include > #include > #include > > @@ -169,4 +170,14 @@ int ehci_hcd_stop(void) > ret = omap_ehci_hcd_stop(); > return ret; > } > + > +void usb_hub_reset_devices(int port) > +{ > + /* The LAN9730 needs to be reset after the port power has been set. */ > + if (port == 3) { > + gpio_direction_output(CONFIG_OMAP_EHCI_PHY1_RESET_GPIO, 0); > + udelay(10); > + gpio_direction_output(CONFIG_OMAP_EHCI_PHY1_RESET_GPIO, 1); > + } > +} Do you really need a config option for a board-specific GPIO used in a board file? > #endif Best regards, Marek Vasut