From: marek.vasut@gmail.com (Marek Vasut)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] Voipac PXA270: UDC and UHC support
Date: Fri, 12 Mar 2010 22:42:39 +0100 [thread overview]
Message-ID: <201003122242.39957.marek.vasut@gmail.com> (raw)
In-Reply-To: <87hbol77lp.fsf@free.fr>
Dne P? 12. b?ezna 2010 18:49:54 Robert Jarzmik napsal(a):
> Marek Vasut <marek.vasut@gmail.com> writes:
> > Dne St 10. b?ezna 2010 05:43:00 Marek Vasut napsal(a):
> >> Hi,
> >> this patch adds UDC and UHC support (and formating fix, I hope you dont
> >> mind Eric).
> >>
> >> Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
> >
> > revised patch
>
> snip
>
> > +/***********************************************************************
> >******* + * USB Gadget
> > +
> > *************************************************************************
> >*****/ +#if
> > defined(CONFIG_USB_GADGET_PXA27X)||defined(CONFIG_USB_GADGET_PXA27X_MODUL
> >E) +static struct pxa2xx_udc_mach_info vpac270_udc_info __initdata = {
> > + .gpio_vbus = GPIO41_VPAC270_UDC_DETECT,
> > +};
>
> That won't work I think. gpio_vbus is not dealt with by pxa27x_udc.
> The way to go would rather be something like :
>
> #include <linux/usb/gpio_vbus.h>
> static struct pxa2xx_udc_mach_info vpac270_udc_info __initdata = {
> .gpio_pullup = <to be filled in>,
> };
>
> struct gpio_vbus_mach_info gpio_vbus_data = {
> .gpio_vbus = GPIO41_VPAC270_UDC_DETECT,
> .gpio_vbus_inverted = 0,
> .gpio_pullup = -1,
> };
>
> Add add a "gpio_vbus" device, with platform_data set to gpio_vbus_data.
>
> As a matter of fact, there are not a lot of cases where an UDC can work
> without : - a GPIO for pullup
> - or the udc_command() callback implemented
> The only working case I see is a hardwired D+ pin to the Vdd, but that
> seems an exterme in board design I've never met before. This lets me think
> you should find and the add the correct GPIO for pullup.
Could you tell me which one pullup gpio is ? Here's the schematic:
http://www.voipac.com/downloads/pxa/270/baseboard/doc/bb270v22sch.pdf
Thanks
>
> Cheers.
>
> --
> Robert
>
next prev parent reply other threads:[~2010-03-12 21:42 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-10 4:43 [PATCH] Voipac PXA270: UDC and UHC support Marek Vasut
2010-03-10 11:43 ` Marek Vasut
2010-03-12 17:49 ` Robert Jarzmik
2010-03-12 21:42 ` Marek Vasut [this message]
2010-03-13 22:00 ` Marek Vasut
2010-03-15 19:21 ` Robert Jarzmik
2010-03-22 1:57 ` Eric Miao
2010-03-22 3:28 ` Marek Vasut
2010-03-22 4:04 ` Eric Miao
2010-03-22 13:06 ` Marek Vasut
2010-03-22 13:56 ` Eric Miao
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=201003122242.39957.marek.vasut@gmail.com \
--to=marek.vasut@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.