From: Rodolfo Giometti <giometti@enneenne.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] USB device configuration
Date: Wed, 9 May 2007 11:19:31 +0200 [thread overview]
Message-ID: <20070509091930.GD11070@enneenne.com> (raw)
In-Reply-To: <20070509090311.GC11070@enneenne.com>
On Wed, May 09, 2007 at 11:03:11AM +0200, Rodolfo Giometti wrote:
> Hello,
>
> during my PXA27x USB device support developing adventure I notice that
> usbtty calls the functions:
>
> udc_init: PXA27x usbd start
> udc_setup_ep: setting up endpoint addr 0
> udc_enable: enable device a2077f74, status 0
> udc_connect:
> udc_setup_ep: setting up endpoint addr 1
> udc_setup_ep: setting up endpoint addr 82
> udc_setup_ep: setting up endpoint addr 83
>
> Looking at PXA27x manual I read that I have to setup the endpoints and
> __then__ enable UDC for normal operations! But looking above I see
> that u-boot calls before the udc_enable() and then the function
> udc_setup_ep()...
I think that the correct sequence into usbtty should be:
@@ -554,11 +554,11 @@ int drv_usbtty_init (void)
usbtty_init_strings ();
usbtty_init_instances ();
+ usbtty_init_endpoints ();
+
udc_startup_events (device_instance);/* Enable dev, init udc pointers */
udc_connect (); /* Enable pullup for host detection */
- usbtty_init_endpoints ();
-
/* Device initialization */
memset (&usbttydev, 0, sizeof (usbttydev));
Comments?
Rodolfo
--
GNU/Linux Solutions e-mail: giometti at enneenne.com
Linux Device Driver giometti at gnudd.com
Embedded Systems giometti at linux.it
UNIX programming phone: +39 349 2432127
next prev parent reply other threads:[~2007-05-09 9:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-09 9:03 [U-Boot-Users] USB device configuration Rodolfo Giometti
2007-05-09 9:19 ` Rodolfo Giometti [this message]
2007-05-09 21:43 ` Bryan O'Donoghue
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=20070509091930.GD11070@enneenne.com \
--to=giometti@enneenne.com \
--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