public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Dirk Behme <dirk.behme@googlemail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] Clock handling (wasRe: [PATCH 6/7 v2] OMAP3: Add OMAP3 core changes for MUSB)
Date: Tue, 24 Feb 2009 18:01:26 +0100	[thread overview]
Message-ID: <49A427E6.5040305@googlemail.com> (raw)
In-Reply-To: <49A32B54.3080606@gmail.com>

Nishanth Menon wrote:
> Wolfgang Denk said the following on 02/23/2009 11:36 PM:
>>> Comparing having all clock initialization at a central point (clock.c) -
>>> which seems simple vs having get-put kind of clock apis in U-boot : I
>>>     
>> But the explicit rule is only to enable interfaces (and this includes
>> clocks) when they are actually being used. Enabling all clocks even if
>> not needed may for example add significantly to the power consumption
>> and to EMC problems.
>>   
> I agree power consumption in u-boot is higher due to lack of power
> management support -> but just having clocks is just one factor of it..
> if power management is our concern, we probably need a unified strategy
> for it. But inherently is'nt it an overkill at u-boot level (normal boot
> time is less than few seconds)..
> 
> if we look at clock handling -> there are multiple levels of clock handling:
> a) enable all required clocks at a go -> current omap3 code does that
> b) proposed change -> clock enable/disable on need basis.
> c) clock tree architecture -> OMAP3 as an example has a complex clock
> tree, cascading clock dependencies etc. as an example: sys_clk OR clk32
> could be functional clock source of gptimer module. to access gptimer
> you need interface clock -> but once you program it, unless you need to
> access the regs, you can essentially shut the interface clock off.. till
> lets say interrupt occurs..  we could even think of cascading clock
> divisors here.. just to make things a little more complex..
> 
> How about voltage handling etc.. are we thinking of a complete power
> architecture here? what kind of gains do we expect by having just (b)?
> My feel is that it would make things a lot more complex than the need
> is.. For the modules one needs (they are not too many at u-boot level),
> enable the clocks at one place. if we go to (b) we might as well go to
> (c).. mebbe even pull in clocksource like u-boot-v2 has, while we are it..
> 
> But in anycase, do we have a generic clock architecture(clock register,
> unregister, get, put apis) we are to adhere to? or are we holding off
> each patch and rejecting unless they call thier own omap3_musb_clk_get,
> omap3_musb_clk_put? that does not sound to be a good idea :(.. maybe I
> am missing the conversation here..

As yesterday: Yes, I agree. Again ;)

Thanks

Dirk

  reply	other threads:[~2009-02-24 17:01 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-12 18:55 [U-Boot] [PATCH 0/7 v2] OMAP3: Add some additional improvements and fixes Dirk Behme
2009-02-12 18:55 ` [U-Boot] [PATCH 1/7 v2] OMAP3: Overo: Clean up pin mux and GPIO configuration Dirk Behme
2009-02-12 18:55   ` [U-Boot] [PATCH 2/7 v2] OMAP3: Beagle: Add board revision detection Dirk Behme
2009-02-12 18:55     ` [U-Boot] [PATCH 3/7 v2] OMAP3: Add OMAP3 auto detection Dirk Behme
2009-02-12 18:55       ` [U-Boot] [PATCH 4/7 v2] OMAP3: Pandora: Update pin mux Dirk Behme
2009-02-12 18:55         ` [U-Boot] [PATCH 5/7 v2] OMAP3: Add serial number based on die ID Dirk Behme
2009-02-12 18:55           ` [U-Boot] [PATCH 6/7 v2] OMAP3: Add OMAP3 core changes for MUSB Dirk Behme
2009-02-12 18:55             ` [U-Boot] [PATCH 7/7 v2] OMAP3: Clean up MMC code Dirk Behme
2009-02-22 15:59             ` [U-Boot] [PATCH 6/7 v2] OMAP3: Add OMAP3 core changes for MUSB Jean-Christophe PLAGNIOL-VILLARD
2009-02-22 16:22               ` Dirk Behme
2009-02-23 12:13                 ` Grazvydas Ignotas
2009-02-23 12:30                   ` Nishanth Menon
2009-02-23 19:31                     ` Dirk Behme
2009-02-23 21:36                     ` Wolfgang Denk
2009-02-23 23:03                       ` [U-Boot] Clock handling (wasRe: [PATCH 6/7 v2] OMAP3: Add OMAP3 core changes for MUSB) Nishanth Menon
2009-02-24 17:01                         ` Dirk Behme [this message]
2009-02-24 17:01                       ` [U-Boot] [PATCH 6/7 v2] OMAP3: Add OMAP3 core changes for MUSB Dirk Behme
2009-02-24 21:22                         ` Wolfgang Denk
2009-02-25 17:39                           ` Dirk Behme
2009-03-01 14:26                             ` Dirk Behme
2009-03-01 19:18                               ` Wolfgang Denk
2009-03-11 14:46             ` Jean-Christophe PLAGNIOL-VILLARD
2009-03-11 18:25               ` Dirk Behme
2009-03-11 18:44                 ` Wolfgang Denk
2009-02-22 16:01           ` [U-Boot] [PATCH 5/7 v2] OMAP3: Add serial number based on die ID Jean-Christophe PLAGNIOL-VILLARD
2009-02-22 16:40             ` Dirk Behme
2009-02-22 21:44             ` Wolfgang Denk
2009-03-01 14:20               ` Dirk Behme
2009-03-01 18:57                 ` Wolfgang Denk

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=49A427E6.5040305@googlemail.com \
    --to=dirk.behme@googlemail.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