U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Tom Rini <trini@konsulko.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v5 4/9] board: ti: dra7xx-evm: turn on USB clocks in late init stage
Date: Wed, 16 May 2018 11:21:32 -0400	[thread overview]
Message-ID: <20180516152132.GG3424@bill-the-cat.ec.rr.com> (raw)
In-Reply-To: <b57d8cbf-4781-40a9-9be9-a7090354768b@denx.de>

On Wed, May 16, 2018 at 11:04:18AM +0200, Marek Vasut wrote:
> On 05/16/2018 11:00 AM, Jean-Jacques Hiblot wrote:
> > 
> > 
> > On 16/05/2018 00:13, Marek Vasut wrote:
> >> On 05/15/2018 06:10 PM, Jean-Jacques Hiblot wrote:
> >>> Hi Marek,
> >>>
> >>>
> >>> On 04/05/2018 21:06, Marek Vasut wrote:
> >>>>>>>> Shouldnt the driver turn this on?
> >>>>>>> AFAIK there is no clock driver for the OMAP. So we have to do it
> >>>>>>> before
> >>>>>>> the driver is probed.
> >>>>>> Maybe it's time to implement it instead of piling up those hacks ?
> >>>>> I was thinking along the same lines at some point but then I realized
> >>>>> that it will make the SPL really big. And we are already tight on some
> >>>>> platforms like am335x.
> >>>> But this is not only SPL , right ? And yes, for SPL you might need to
> >>>> poke registers or something.
> >>> IMHO having 2 different ways to enable the clocks in SPL and in u-boot
> >>> is an not improvement over the current situation.
> >>> In any case, This is a subject that can be discussed.
> >> Do you have a better idea ?
> > I would keep it as it is today.
> > 
> > After studying the clock management in Linux, I believe that
> > implementing the clock drivers in u-boot won't be an easy task and
> > moreover won't make things much cleaner.
> > The way clocks are handled in Linux for the omap platforms is not
> > completely standard. There are a lot of clocks that are handled by the
> > clock framework (pll, mux, some gates, ...) but most of the clock gating
> > for peripherals is handled the HWMOD subsystem which automatically
> > enables/disables the clocks of the peripherals. Parameters for this
> > subsystem are hard-coded in platform code (in
> > arch/arm/mach-omap2/omap-hwmod_xxx_data.c) not in the DTS. It also
> > handle clock and power domains.
> > HWMOD is probably going to go away some day, I'm not sure that we want
> > to implement it in u-boot. Until hwmod has completely replaced by more
> > generic frameworks, I would stick to platform code to enable clocks in
> > u-boot.
> 
> But if this keeps going on, eventually we will regress to where we were
> years ago -- having huge platform specific list of registers to poke to
> set a platform up and that'd be it ?

We should certainly re-evaluate the situation once hwmod finally gets
replaced in the kernel.  That's a long-standing and slowly-but-surely
happening thing.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180516/1bb5801e/attachment.sig>

  parent reply	other threads:[~2018-05-16 15:21 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-04 14:34 [U-Boot] [PATCH v5 0/9] Add support for DM_USB for TI's DRA7 EVMs and AM57 EVMs platforms Jean-Jacques Hiblot
2018-05-04 14:34 ` [U-Boot] [PATCH v5 1/9] syscon: dm: Add a new method to get a regmap from DTS Jean-Jacques Hiblot
2018-05-04 21:38   ` Simon Glass
2018-05-04 14:34 ` [U-Boot] [PATCH v5 2/9] phy: ti-pip3-phy: Add support for USB3 PHY Jean-Jacques Hiblot
2018-05-04 14:34 ` [U-Boot] [PATCH v5 3/9] phy: Add a new driver for OMAP's USB2 PHYs Jean-Jacques Hiblot
2018-05-04 14:38   ` Marek Vasut
2018-05-04 14:34 ` [U-Boot] [PATCH v5 4/9] board: ti: dra7xx-evm: turn on USB clocks in late init stage Jean-Jacques Hiblot
2018-05-04 14:38   ` Marek Vasut
2018-05-04 14:42     ` Jean-Jacques Hiblot
2018-05-04 15:43       ` Marek Vasut
2018-05-04 17:58         ` Jean-Jacques Hiblot
2018-05-04 19:06           ` Marek Vasut
2018-05-15 16:10             ` Jean-Jacques Hiblot
2018-05-15 18:05               ` Jean-Jacques Hiblot
2018-05-15 22:13               ` Marek Vasut
2018-05-16  9:00                 ` Jean-Jacques Hiblot
2018-05-16  9:04                   ` Marek Vasut
2018-05-16 13:53                     ` Jean-Jacques Hiblot
2018-05-16 15:21                     ` Tom Rini [this message]
2018-05-17  9:27                       ` Jean-Jacques Hiblot
2018-05-16 12:46                   ` Tom Rini
2018-05-04 14:34 ` [U-Boot] [PATCH v5 5/9] board; ti: am57xx: turn on USB clocks Jean-Jacques Hiblot
2018-05-04 14:34 ` [U-Boot] [PATCH v5 6/9] dts: dra7x: make ocp2scp@4a080000 compatible with simple-bus Jean-Jacques Hiblot
2018-05-04 14:34 ` [U-Boot] [PATCH v5 7/9] dts: dra7x: Disable USB1 on all evms Jean-Jacques Hiblot
2018-05-04 14:34 ` [U-Boot] [PATCH v5 8/9] configs: enable OMAP_USB2_PHY for all DRA7 platforms Jean-Jacques Hiblot
2018-05-04 14:34 ` [U-Boot] [PATCH v5 9/9] configs: am57xx_evm: Enable DM_USB and dependencies Jean-Jacques Hiblot

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=20180516152132.GG3424@bill-the-cat.ec.rr.com \
    --to=trini@konsulko.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