All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kevin Hilman <khilman@deeprootsystems.com>
To: Nishanth Menon <menon.nishanth@gmail.com>
Cc: "Premi, Sanjeev" <premi@ti.com>, "Menon, Nishanth" <nm@ti.com>,
	Koen Kooi <koen@dominion.thruhere.net>,
	"linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>,
	"eduardo.valentin@nokia.com" <eduardo.valentin@nokia.com>
Subject: Re: omap3 pm: dependency between opp layer and cpufreq
Date: Wed, 02 Jun 2010 17:00:58 -0700	[thread overview]
Message-ID: <87sk552ddx.fsf@deeprootsystems.com> (raw)
In-Reply-To: <4C0338B6.6070803@gmail.com> (Nishanth Menon's message of "Mon\, 31 May 2010 07\:19\:02 +0300")

Nishanth Menon <menon.nishanth@gmail.com> writes:

> On 05/30/2010 01:50 PM, Premi, Sanjeev wrote:
>>
[...]

>> [sp] There is no mention of cpufreq not working; but specifically the support of bootarg "mpurate" which is independent of cpufreq.
>>
>> The bootarg mpurate has been existing since quite sometime. I am neither creating a new layer / replacement
>> for cpufreq not trying to duplicate the code. The intent is simply
>> as 
> stated below:
>>
>> 1) Expose OPP layer - don't hinde it under CONFIG_CPU_FREQ.
> ok with this
>>
>> 2) Use OPP layer to:
>>      - Validate that the requested mpurate is defined in the OPP table for the device
>>      - And get the voltage corresponding to the OPP.
> sounds good too
>>
>> 3) Ensure that right freq and voltage is set - at init time - based on the mpurate.
> ok
>
>>
>> 4) And at some poit later break the linkage between op player amd PMIC.
>>
> aah you mean a simple patch as follows?
> diff --git a/arch/arm/plat-omap/Makefile b/arch/arm/plat-omap/Makefile
> index 2b9ebf0..bfb3d0e 100644
> --- a/arch/arm/plat-omap/Makefile
> +++ b/arch/arm/plat-omap/Makefile
> @@ -16,7 +16,8 @@ obj-$(CONFIG_ARCH_OMAP16XX) += ocpi.o
>  # XXX The OPP TWL/TPS code should only be included when a TWL/TPS
>  # PMIC is selected.
>  ifdef CONFIG_CPU_FREQ
> -obj-$(CONFIG_ARCH_OMAP3) += opp.o opp_twl_tps.o
> +obj-$(CONFIG_ARCH_OMAP3) += opp.o
> +obj-$(CONFIG_TWL4030_CORE) += opp_twl_tps.o
>  endif
>
>  # omap_device support (OMAP2+ only at the moment)
> --
> note - opp layer was never tied to pmic -> there is pmic voltage
> conversion apis in opp_twl_tps.c
>
> or is there more in your view?
>
>>>
>>>>
>>>> anyways for cpufreq to work at 720Mhz, you need to add that frequency
>>>> and corresponding voltage to the opptable, neither exists, further
>>>> mpurate should work with opp table as well, else
>>>> clockframework has no
>>>> direct mechanism to verify the valid OPPs on a runtime
>>>> system. that was
>>>> the intent of opp layer - to provide the rest of the users with a
>>>> mechanism to verify, query and use opps without functional
>>>> knowledge of
>>>> the silicon it works on..
>
> ofcourse, please feel free to post a patch for the missing frequencies.
>


OK, I must admit to not reading this whole thread since I've just
restructured OPP and CPUfreq support in the PM branch.

OPP support is now in the pm-opp branch (based on mainline) and
CPUfreq support is now in the pm-cpufreq branch (based on mainline.)

Please update this patch/series against one (or both) of those
branches for more discussion.

FWIW, I like the name change from cpufreq34xx --> opp34xx_data, and
the Makefile change above makes sense.  Both of these changes should
be re-submitted against my pm-opp branch.

Kevin

  reply	other threads:[~2010-06-03  0:01 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-27 11:25 omap3 pm: dependency between opp layer and cpufreq Premi, Sanjeev
2010-05-27 13:19 ` Premi, Sanjeev
2010-05-27 13:26   ` Premi, Sanjeev
2010-05-27 16:27 ` Nishanth Menon
2010-05-27 20:29   ` Premi, Sanjeev
2010-05-28  7:39     ` Menon, Nishanth
2010-05-28  8:56       ` Koen Kooi
2010-05-28 13:33         ` Nishanth Menon
2010-05-28 13:42           ` Premi, Sanjeev
2010-05-28 13:55             ` Nishanth Menon
2010-05-28 14:02               ` Premi, Sanjeev
     [not found]                 ` <1275065163.10319.5.camel@Nokia-N900-51-1>
2010-05-28 17:57                   ` Kevin Hilman
2010-05-30 10:58                     ` Premi, Sanjeev
2010-05-30 10:50                   ` Premi, Sanjeev
2010-05-31  4:19                     ` Nishanth Menon
2010-06-03  0:00                       ` Kevin Hilman [this message]
2010-06-04 12:34                         ` Gopinath, Thara
2010-06-08  4:15                           ` opp layer query apis (was RE: omap3 pm: dependency between opp layer and cpufreq) Menon, Nishanth
2010-06-08  4:29                             ` Gopinath, Thara
2010-06-08  4:35                               ` Menon, Nishanth

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=87sk552ddx.fsf@deeprootsystems.com \
    --to=khilman@deeprootsystems.com \
    --cc=eduardo.valentin@nokia.com \
    --cc=koen@dominion.thruhere.net \
    --cc=linux-omap@vger.kernel.org \
    --cc=menon.nishanth@gmail.com \
    --cc=nm@ti.com \
    --cc=premi@ti.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.