All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Cousson, Benoit" <b-cousson@ti.com>
To: Kevin Hilman <khilman@deeprootsystems.com>
Cc: "Gopinath, Thara" <thara@ti.com>,
	"linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>,
	"paul@pwsan.com" <paul@pwsan.com>,
	"Sripathy, Vishwanath" <vishwanath.bs@ti.com>,
	"Sawant, Anand" <sawant@ti.com>
Subject: Re: [PATCH v2 08/11] OMAP4: Adding dev atrributes to OMAP4 smartreflex hwmod data
Date: Tue, 26 Oct 2010 12:58:26 +0200	[thread overview]
Message-ID: <4CC6B452.50502@ti.com> (raw)
In-Reply-To: <1287082594.14514.120.camel@localhost>

Hi Kevin,

Sorry for that late reply, I missed that email a little bit.

On 10/14/2010 8:56 PM, Kevin Hilman wrote:
> On Sat, 2010-09-25 at 18:21 +0530, Thara Gopinath wrote:
>> diff --git a/arch/arm/plat-omap/include/plat/control.h
>> b/arch/arm/plat-omap/include/plat/control.h
>> index 042eb6e..1e8f6ec 100644
>> --- a/arch/arm/plat-omap/include/plat/control.h
>> +++ b/arch/arm/plat-omap/include/plat/control.h
>> @@ -181,6 +181,18 @@
>>   #define OMAP3630_CONTROL_FUSE_OPP50_VDD2
>> (OMAP2_CONTROL_GENERAL + 0x0128)
>>   #define OMAP3630_CONTROL_FUSE_OPP100_VDD2
>> (OMAP2_CONTROL_GENERAL + 0x012C)
>>
>> +/* 44xx control efuse offsets */
>> +#define OMAP44XX_CONTROL_FUSE_IVA_OPP50                0x22C
>> +#define OMAP44XX_CONTROL_FUSE_IVA_OPP100       0x22F
>> +#define OMAP44XX_CONTROL_FUSE_IVA_OPPTURBO     0x232
>> +#define OMAP44XX_CONTROL_FUSE_IVA_OPPNITRO     0x235
>> +#define OMAP44XX_CONTROL_FUSE_MPU_OPP50                0x240
>> +#define OMAP44XX_CONTROL_FUSE_MPU_OPP100       0x243
>> +#define OMAP44XX_CONTROL_FUSE_MPU_OPPTURBO     0x246
>> +#define OMAP44XX_CONTROL_FUSE_MPU_OPPNITRO     0x249
>> +#define OMAP44XX_CONTROL_FUSE_CORE_OPP50       0x254
>> +#define OMAP44XX_CONTROL_FUSE_CORE_OPP100      0x257
>> +
>
> These names are not consistent with the TRM (ES2.x NDA TRM vL).  e.g.
> rather than MPU_OPP50, OPP1, the TRM has MPU_0, MPU_1.  However, the
> TRM is confusing here too since the register names are MPU_0,
> MPU_1, etc. but the field names in the register descriptions use
> OPP50, OPP100, etc.  What a mess.  We need a consistent naming for these.
>
> Benoit?

It is indeed a mess... these names are the latest ones used in the HW 
spec. But we are still wondering how to name that in the future.
OPP_LOW, OPP_MID, OPP_HIGH, OPP_TURBO and OPP_NITRO are now considered 
but I'm not sure it is really better.

Honestly I do prefer the OPP50, OPP100, OPP130, OPP166 that are 
providing the percentage wrt nominal frequency and that can scale 
easily. If we do introduce a OPP between OPP_MID and OPP_HIGH, I'm not 
sure anybody will be able to find a proper name whereas OPP_80 is 
straightforward.

In anycase, that will never match the HW spec or the TRM :-(

Benoit

>
> Also, based on the TRM, the offsets here don't look quite right.
> e.g. there is no MPU OPP at 0x240, so the OMAP4 the code reading these is
> using reserved/undocumented bits for the first OPP.
>
> Also, the single byte offsets here could use a better explanation, not
> necessarily here but in the omap4 code that reads the nvalues.  I expected that these
> would be single byte aligned to compact the address space and remove some unused
> space, but no, they seem to be arbitrarily shifted around.
>
> Kevin
>
>


  reply	other threads:[~2010-10-26 10:58 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-25 12:51 [PATCH v2 00/11] OMAP4: Smartreflex and Voltage layer support Thara Gopinath
2010-09-25 12:51 ` [PATCH v2 01/11] OMAP4: PM debugfs support Thara Gopinath
2010-09-25 12:51 ` [PATCH v2 02/11] OMAP4: OPP framework support Thara Gopinath
2010-09-25 12:51 ` [PATCH v2 03/11] OMAP4: Add the new voltage to vsel calculation formula Thara Gopinath
2010-09-27  4:13   ` Lesly Arackal Manuel
2010-09-27  9:02     ` Gopinath, Thara
2010-09-25 12:51 ` [PATCH v2 04/11] OMAP4: Extend clock data Thara Gopinath
2010-09-28 23:09   ` Kevin Hilman
2010-09-29 14:41     ` Gopinath, Thara
2010-09-25 12:51 ` [PATCH v2 05/11] OMAP4: Adding voltage driver support Thara Gopinath
2010-09-25 12:51 ` [PATCH v2 06/11] OMAP4: PM: Program correct init voltages for scalable VDDs Thara Gopinath
2010-09-25 12:51 ` [PATCH v2 07/11] OMAP4: hwmod: Add inital data for smartreflex modules Thara Gopinath
2010-09-25 12:51 ` [PATCH v2 08/11] OMAP4: Adding dev atrributes to OMAP4 smartreflex hwmod data Thara Gopinath
2010-10-14 18:56   ` Kevin Hilman
2010-10-26 10:58     ` Cousson, Benoit [this message]
2010-10-26 11:17   ` Cousson, Benoit
2010-11-02 13:10     ` Kevin Hilman
2010-11-02 13:40       ` Cousson, Benoit
2010-09-25 12:51 ` [PATCH v2 09/11] OMAP4: Smartreflex framework extensions Thara Gopinath
2010-09-25 12:51 ` [PATCH v2 10/11] OMAP4: Enabling smartrefles class 3 driver Thara Gopinath
2010-09-25 12:51 ` [PATCH v2 11/11] OMAP4: Add opp tables Thara Gopinath

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=4CC6B452.50502@ti.com \
    --to=b-cousson@ti.com \
    --cc=khilman@deeprootsystems.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=paul@pwsan.com \
    --cc=sawant@ti.com \
    --cc=thara@ti.com \
    --cc=vishwanath.bs@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.