From: "Alexander Shiyan" <shc_work@mail.ru>
To: "Sascha Hauer" <s.hauer@pengutronix.de>
Cc: barebox@lists.infradead.org
Subject: Re[2]: OTG Device mode on i.MX51
Date: Tue, 07 May 2013 13:57:13 +0400 [thread overview]
Message-ID: <1367920633.721879227@f276.mail.ru> (raw)
In-Reply-To: <20130506143152.GG32299@pengutronix.de>
> > > On Mon, May 06, 2013 at 01:52:11PM +0400, Alexander Shiyan wrote:
> > > > > Hello.
> > > > >
> > > > > Is anyone have successful works OTG in device mode on iMX51?
> > > > > Thanks!.
> > >
> > > I have the driver working in devicemode on several boards, but not on an
> > > i.MX51 I think. I have no indication though that the UDC core itself is
> > > in any way different to the ones on other i.MXs.
> >
> > I have tested usage device mode on i.MX27. It works (Patch for PCM-038
> > will be sent), but driver(?) does not work for me on i.MX51...
> > Executing is freeze at dr_controller_setup (drivers/usb/gadget/fsl_udc.c).
> > Now I trying to check for missing clocks, but not sure about this since we
> > enable all clocks at start...
> > So, if anyone can test this feature on i.MX51 it will be helpful.
>
> If there's a problem it's more likely that the usbmisc registers are not
> correctly initialized, so it probably won't help to test on another
> board
First sucessful work is done.
It is neccesary to set an additional bit in MX5_UTMI_PHY_CTRL_0.
#define MX5_OTG_PHYCTRL_OTG_XCVR_BIT (1 << 7)
...
v |= MX5_OTG_PHYCTRL_OTG_XCVR_BIT;
...
But now it still works only with "fsl-udc" driver, not with "chipidea".
I will continue work on it.
---
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
prev parent reply other threads:[~2013-05-07 9:57 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-26 8:55 Alexander Shiyan
2013-05-06 9:52 ` Alexander Shiyan
2013-05-06 10:03 ` Sascha Hauer
2013-05-06 13:23 ` Re[2]: " Alexander Shiyan
2013-05-06 14:31 ` Sascha Hauer
2013-05-07 9:57 ` Alexander Shiyan [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=1367920633.721879227@f276.mail.ru \
--to=shc_work@mail.ru \
--cc=barebox@lists.infradead.org \
--cc=s.hauer@pengutronix.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