From: Marek Vasut <marek.vasut@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 1/4] ehci-omap: Clean up added ehci-omap.c
Date: Wed, 11 Jan 2012 14:28:34 +0100 [thread overview]
Message-ID: <201201111428.34635.marek.vasut@gmail.com> (raw)
In-Reply-To: <CAAL8m4xXgK9KhsAHjNczy6DcD2fPQ+XsGJWG5=0xvXFAk8zH1A@mail.gmail.com>
> On Wed, Jan 11, 2012 at 6:16 PM, Marek Vasut <marek.vasut@gmail.com> wrote:
> >> On Wed, Jan 11, 2012 at 4:22 PM, Marek Vasut <marek.vasut@gmail.com> wrote:
> >> >> Hi Marek,
> >> >>
> >> >> Thanks for you review.
> >> >>
> >> >> On Tue, Jan 10, 2012 at 9:37 PM, Marek Vasut <marek.vasut@gmail.com>
wrote:
> >> >> >> From: "Govindraj.R" <govindraj.raja@ti.com>
> >> >> >>
> >> >> >> Clean up added ehci-omap.c and make it generic for re-use across
> >> >> >> soc having same ehci ip block. Also pass the modes to be
> >> >> >> configured and configure the ports accordingly. All usb layers
> >> >> >> are not cache aligned till then keep cache off for usb ops as
> >> >> >> ehci will use internally dma for all usb ops.
> >> >> >>
> >> >> >> * Add a generic common header ehci-omap.h having common ip block
> >> >> >> data and reg shifts.
> >> >> >> * Rename and modify ehci-omap3 to ehci.h retain only conflicting
> >> >> >> sysc reg shifts remove others and move to common header file.
> >> >> >
> >> >> > Don't reimplement the ulpi stuff ... there's already some ulpi
> >> >> > stuff in uboot that needs fixing, so fix it and use it.
> >> >>
> >> >> I am not implementing any ulpi stuff I am just configuring OMAP on
> >> >> soc usb host controller (ehci). All the configuration stuff
> >> >> is OMAP specific things which are done in ehci-omap.c file
> >> >>
> >> >> stuffs done are like soft-reset, port mode to be used and putting
> >> >> port in no -idle mode(omap specific pm implementation) etc.
> >> >
> >> > This stuff:
> >> >
> >> > +/* ULPI */
> >> > +#define ULPI_SET(a) (a + 1)
> >> > +#define ULPI_CLR(a) (a + 2)
> >> > +#define ULPI_FUNC_CTRL 0x04
> >> > +#define ULPI_FUNC_CTRL_RESET (1 << 5)
> >> >
> >> > is just accidentally conforming to ULPI spec?
> >>
> >> These are for configuring INSNREG05_ULPI reg in EHCI reg map
> >> of omap while configuring in ulpi-phy mode.
> >>
> >> looking into struct ulpi_regs {..}
> >> then it doesn't map this configuration.
> >
> > Can you point me to some documentation about this please? It's not that I
> > don't trust you, I'd rather prefer to avoid unnecessary duplication.
>
> Yes that would be fine.
>
> You can download the omap4460 public trm from here:
>
> http://www.ti.com/pdfs/wtbu/OMAP4460_ES.1x_PUBLIC_TRM_vM.zip
>
> Go to chapter 23.11.6.6.1 EHCI Register Summary
> (page number 5171 and 5186/87)
Sure, but the macro above looks more like 23.11.6.3, doesn't it ? And for that
purpose, the struct ulpi_regs is fitting ok.
Actually ... can you check the ulpi_read and ulpi_write stuff that's already in
u-boot and explain why they can not be used with this port?
M
>
> click INSNREG05_ULPI
>
> this for configuring in ulpi mode for external ulpi phy.
> reference
> chapter 23.11.4.1 refer to Figure 23-252. HS USB Host Controller
> Architecture (page number 5096)
>
> >> btw,
> >> IIUC that ulpi_regs struct is for otg transceiver that uses a ulpi phy
> >> chip for communication.
> >>
> >> > M
> >>
> >> > btw. somewhere in the patch is one more asterisk at the end of line:
> >> Will check that
> >
> > It was on the line I pointed out
>
> okay, got it.
>
> --
> Thanks,
> Govindraj.R
next prev parent reply other threads:[~2012-01-11 13:28 UTC|newest]
Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-06 9:03 [U-Boot] [PATCH v2 0/4] Clean up ehci-omap and extend support for omap3/4 socs Govindraj.R
2012-01-06 9:03 ` [U-Boot] [PATCH v2 1/4] ehci-omap: Clean up added ehci-omap.c Govindraj.R
2012-01-10 16:07 ` Marek Vasut
2012-01-11 6:07 ` Govindraj
2012-01-11 10:52 ` Marek Vasut
2012-01-11 11:32 ` Govindraj
2012-01-11 12:46 ` Marek Vasut
2012-01-11 13:00 ` Govindraj
2012-01-11 13:28 ` Marek Vasut [this message]
2012-01-11 14:13 ` Govindraj
2012-01-11 14:34 ` Marek Vasut
2012-01-11 15:03 ` Igor Grinberg
2012-01-11 18:50 ` Marek Vasut
2012-01-12 5:45 ` Govindraj
2012-01-12 9:23 ` Igor Grinberg
2012-01-12 10:52 ` Govindraj
2012-01-17 6:10 ` Govindraj
2012-01-18 17:51 ` Igor Grinberg
2012-01-19 8:15 ` Govindraj
2012-01-22 12:20 ` Igor Grinberg
2012-01-25 9:04 ` Govindraj
2012-01-25 13:40 ` Igor Grinberg
2012-01-27 13:29 ` Govindraj
2012-01-29 9:42 ` Igor Grinberg
2012-01-29 11:42 ` Stefano Babic
2012-02-01 11:01 ` Igor Grinberg
2012-02-01 11:26 ` Stefano Babic
2012-02-01 13:22 ` Igor Grinberg
2012-02-03 12:52 ` Govindraj
2012-02-03 12:50 ` Govindraj
2012-02-03 13:18 ` Igor Grinberg
2012-01-17 18:17 ` Igor Grinberg
2012-01-06 9:03 ` [U-Boot] [PATCH v2 2/4] OMAP3+: Clock: Adding ehci clock enabling Govindraj.R
2012-01-06 9:04 ` [U-Boot] [PATCH v2 3/4] OMAP4: clock-common: Move the usb dppl configuration to new func Govindraj.R
2012-01-06 9:04 ` [U-Boot] [PATCH v2 4/4] OMAP3+: ehci-omap: enable usb host ports for beagle/panda Govindraj.R
2012-02-26 23:13 ` [U-Boot] [PATCH v2 0/4] Clean up ehci-omap and extend support for omap3/4 socs Marek Vasut
2012-02-27 6:27 ` Govindraj
2012-02-27 13:51 ` Marek Vasut
2012-02-27 14:31 ` Tom Rini
2012-02-27 16:29 ` Marek Vasut
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=201201111428.34635.marek.vasut@gmail.com \
--to=marek.vasut@gmail.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