public inbox for linux-sh@vger.kernel.org
 help / color / mirror / Atom feed
From: Francesco VIRLINZI <francesco.virlinzi@st.com>
To: linux-sh@vger.kernel.org
Subject: Re: [Proposal][PATCH] sh: clkfwk: Add resume from standby support.
Date: Mon, 27 Apr 2009 04:53:38 +0000	[thread overview]
Message-ID: <49F53A52.4060307@st.com> (raw)
In-Reply-To: <49EC706C.4000302@st.com>

Hi Paul, Magnus
Any feedback on that?
Regards
 Francesco
Francesco VIRLINZI ha scritto:
> Hi all
>
> As already done to resume from hibernation I would add a standard way to
> manage the resume from standby in the clock framework.
>
> To do that each clock has to declare to the clock framework what it 
> has to do with the clock it-self.
>
> As general rule during a standby a clock can be:
> - reduced or
> - disabled
>
> therefore in the flags field the clock has to specify what it wants.
>
> The ratio in standby is a specified with the highest 16 bits in the 
> flags fields with a rule:
>
> #define CLK_PM_EXP_SHIFT       (24)
> #define CLK_PM_RATIO_SHIFT     (16)
>
> ratio = ((clk->flags >> CLK_PM_RATIO_SHIFT) & 0xff) << ((clk->flags >> 
> CLK_PM_EXP_SHIFT) & 0xff);
>
> While to enable/disable I'm using the convention that if the
>
> (clk->flags & CLK_PM_TURNOFF) = CLK_PM_TURNOFF)
>
> than the clock has to be disabled.
>
>
> In this manned in a single place (where the clock topology is 
> designed) the developers
> can design also the configuration during the standby.
>
> What do you think?
> Regards
> Francesco


      reply	other threads:[~2009-04-27  4:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-20 12:54 [Proposal][PATCH] sh: clkfwk: Add resume from standby support Francesco VIRLINZI
2009-04-27  4:53 ` Francesco VIRLINZI [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=49F53A52.4060307@st.com \
    --to=francesco.virlinzi@st.com \
    --cc=linux-sh@vger.kernel.org \
    /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