From: Marek Vasut <marex@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v3 7/7] ARM: OMAP5-uevm: Add usb device reset API
Date: Wed, 31 Jul 2013 22:18:04 +0200 [thread overview]
Message-ID: <201307312218.04862.marex@denx.de> (raw)
In-Reply-To: <51F968E6.6050603@ti.com>
Dear Dan Murphy,
> Marek
>
> On 07/17/2013 11:30 PM, Marek Vasut wrote:
> > Dear Dan Murphy,
> >
> >> Add the call back to reset the LAN9730 after
> >> the FEAT_POWER has been called.
> >>
> >> Signed-off-by: Dan Murphy <dmurphy@ti.com>
> >> ---
> >> 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 <usb.h>
> >>
> >> +#include <asm/gpio.h>
> >>
> >> #include <asm/arch/ehci.h>
> >> #include <asm/ehci-omap.h>
> >>
> >> @@ -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?
>
> Sorry I missed addressing this comment.
>
> I am not adding a config option but I am re-using the CONFIG option that
> already exists. I did not want to define the GPIO number twice.
>
> This CONFIG option is also used in the ehci-omap.c file.
OK. I can't say I'm happy about it being called CONFIG_ tho, maybe this can be
fixed (in later patch).
Best regards,
Marek Vasut
prev parent reply other threads:[~2013-07-31 20:18 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-17 20:16 [U-Boot] OMAP5 uEVM USB eHCI patch set Dan Murphy
2013-07-17 20:16 ` [U-Boot] [PATCH v3 1/7] omap5: uevm: Change the board name to correct name Dan Murphy
2013-07-18 4:20 ` Marek Vasut
2013-07-17 20:16 ` [U-Boot] [PATCH v3 2/7] ARM: OMAP5: USB: Add OMAP5 common USB EHCI information Dan Murphy
2013-07-18 7:10 ` Roger Quadros
2013-07-18 17:48 ` Dan Murphy
2013-07-19 9:30 ` Roger Quadros
2013-07-22 15:14 ` Tom Rini
2013-07-17 20:16 ` [U-Boot] [PATCH v3 3/7] ARM: OMAP: USB: Fix linker error when ULPI is not defined Dan Murphy
2013-07-18 4:23 ` Marek Vasut
2013-07-17 20:16 ` [U-Boot] [PATCH v3 4/7] ARM: OMAP5-uevm: Add USB ehci support for the uEVM Dan Murphy
2013-07-22 15:16 ` Tom Rini
2013-07-17 20:16 ` [U-Boot] [PATCH v3 5/7] ARM: OMAP5-uevm: Add USB MAC ethernet address Dan Murphy
2013-07-18 4:28 ` Marek Vasut
2013-07-18 15:40 ` Dan Murphy
2013-07-18 15:47 ` Marek Vasut
2013-07-17 20:16 ` [U-Boot] [PATCH v3 6/7] USB: usb-hub: Add a weak function for resetting devices Dan Murphy
2013-07-18 4:30 ` Marek Vasut
2013-07-24 19:55 ` Dan Murphy
2013-07-25 5:32 ` Marek Vasut
2013-07-25 9:22 ` Roger Quadros
2013-07-17 20:16 ` [U-Boot] [PATCH v3 7/7] ARM: OMAP5-uevm: Add usb device reset API Dan Murphy
2013-07-18 4:30 ` Marek Vasut
2013-07-31 19:43 ` Dan Murphy
2013-07-31 20:18 ` Marek Vasut [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201307312218.04862.marex@denx.de \
--to=marex@denx.de \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox