* [PATCH 3/3] omap3: pm: removes hardcoded VDD1/2 OPP values and make threshold generic
@ 2009-11-19 11:26 G.N, Vijayakumar
2009-11-19 11:44 ` Menon, Nishanth
0 siblings, 1 reply; 3+ messages in thread
From: G.N, Vijayakumar @ 2009-11-19 11:26 UTC (permalink / raw)
To: khilman@deeprootsystems.com, linux-omap@vger.kernel.org
>From 202416dbdf3fce31bfd76f1e74dda89b382a78c3 Mon Sep 17 00:00:00 2001
From: Vijay Kumar <vijaykumar.gn@ti.com>
Date: Thu, 19 Nov 2009 15:07:38 +0530
Subject: [PATCH 3/3] OMAP 3630: Update VDD2 values
The OMAP3630 VDD2 minimum value is 1 and Maximum value is 2. The VDD2
API's are updated to return proper VDD2 values.
Signed-off-by: Charulatha V <charu@ti.com>
Signed-off-by: Manjunath GK <manjugk@ti.com>
Signed-off-by: Vijay Kumar <vijaykumar.gn@ti.com>
---
arch/arm/mach-omap2/pm34xx.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/arm/mach-omap2/pm34xx.c b/arch/arm/mach-omap2/pm34xx.c
index 1ed7f53..c240804 100644
--- a/arch/arm/mach-omap2/pm34xx.c
+++ b/arch/arm/mach-omap2/pm34xx.c
@@ -1080,7 +1080,7 @@ EXPORT_SYMBOL(omap3_get_min_vdd1_opp);
int omap3_get_max_vdd2_opp(void)
{
if (cpu_is_omap3630())
- return VDD2_OPP3;
+ return VDD2_OPP2;
else /* Place holder for other 34xx (3430/3440) */
return VDD2_OPP3;
@@ -1090,9 +1090,9 @@ EXPORT_SYMBOL(omap3_get_max_vdd2_opp);
int omap3_get_min_vdd2_opp(void)
{
if (cpu_is_omap3630())
- return VDD2_OPP2;
- else /* Place holder for other 34xx (3430/3440) */
return VDD2_OPP1;
+ else /* Place holder for other 34xx (3430/3440) */
+ return VDD2_OPP2;
}
EXPORT_SYMBOL(omap3_get_min_vdd2_opp);
--
1.5.4.3
========================
Thanks and Regards
Vijay
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 3/3] omap3: pm: removes hardcoded VDD1/2 OPP values and make threshold generic
2009-11-19 11:26 [PATCH 3/3] omap3: pm: removes hardcoded VDD1/2 OPP values and make threshold generic G.N, Vijayakumar
@ 2009-11-19 11:44 ` Menon, Nishanth
0 siblings, 0 replies; 3+ messages in thread
From: Menon, Nishanth @ 2009-11-19 11:44 UTC (permalink / raw)
To: G.N, Vijayakumar; +Cc: khilman@deeprootsystems.com, linux-omap@vger.kernel.org
G.N, Vijayakumar said the following on 11/19/2009 05:26 AM:
> >From 202416dbdf3fce31bfd76f1e74dda89b382a78c3 Mon Sep 17 00:00:00 2001
> From: Vijay Kumar <vijaykumar.gn@ti.com>
> Date: Thu, 19 Nov 2009 15:07:38 +0530
> Subject: [PATCH 3/3] OMAP 3630: Update VDD2 values
> The OMAP3630 VDD2 minimum value is 1 and Maximum value is 2. The VDD2
> API's are updated to return proper VDD2 values.
>
>
> Signed-off-by: Charulatha V <charu@ti.com>
> Signed-off-by: Manjunath GK <manjugk@ti.com>
> Signed-off-by: Vijay Kumar <vijaykumar.gn@ti.com>
> ---
> arch/arm/mach-omap2/pm34xx.c | 6 +++---
> 1 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/arch/arm/mach-omap2/pm34xx.c b/arch/arm/mach-omap2/pm34xx.c
> index 1ed7f53..c240804 100644
> --- a/arch/arm/mach-omap2/pm34xx.c
> +++ b/arch/arm/mach-omap2/pm34xx.c
> @@ -1080,7 +1080,7 @@ EXPORT_SYMBOL(omap3_get_min_vdd1_opp);
> int omap3_get_max_vdd2_opp(void)
> {
> if (cpu_is_omap3630())
> - return VDD2_OPP3;
> + return VDD2_OPP2;
> else /* Place holder for other 34xx (3430/3440) */
> return VDD2_OPP3;
>
> @@ -1090,9 +1090,9 @@ EXPORT_SYMBOL(omap3_get_max_vdd2_opp);
> int omap3_get_min_vdd2_opp(void)
> {
> if (cpu_is_omap3630())
> - return VDD2_OPP2;
> - else /* Place holder for other 34xx (3430/3440) */
> return VDD2_OPP1;
> + else /* Place holder for other 34xx (3430/3440) */
>
this is redundant.
> + return VDD2_OPP2;
>
> }
> EXPORT_SYMBOL(omap3_get_min_vdd2_opp);
>
I NAK this patch on the principle that these are redundant unashamedly
copies of each function without handling all scenarios:
e.g.
a) what if board x wants to disable vdd2 opp1? how can he get mainline
support with hacking on this?
b) if you have 3630-1000 device, how do you handle it cleanly?
c) you believe in OPP ID here, I DO NOT - I believe we should do things
based off frequencies.
Regards,
Nishanth Menon
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: [PATCH 3/3] omap3: pm: removes hardcoded VDD1/2 OPP values and make threshold generic
[not found] ` <8B823DEBFBDBFA468B80E3A09407512602CA1908BB@dbde02.ent.ti.com>
@ 2009-11-19 14:48 ` G.N, Vijayakumar
0 siblings, 0 replies; 3+ messages in thread
From: G.N, Vijayakumar @ 2009-11-19 14:48 UTC (permalink / raw)
To: khilman@deeprootsystems.com, linux-omap@vger.kernel.org
My apologies for the noise generated for the below patches submitted by me.
http://patchwork.kernel.org/patch/61277/
http://patchwork.kernel.org/patch/61276/
http://patchwork.kernel.org/patch/61275/
I was not aware of the discussions happening on dynamic OPP management for supporting multiple OMAP cpu types.
Please disregard the above patch series
====================
Best Regards
Vijay
-----Original Message-----
From: linux-omap-owner@vger.kernel.org [mailto:linux-omap-owner@vger.kernel.org] On Behalf Of G.N, Vijayakumar
Sent: Thursday, November 19, 2009 4:56 PM
To: khilman@deeprootsystems.com; linux-omap@vger.kernel.org
Subject: [PATCH 3/3] omap3: pm: removes hardcoded VDD1/2 OPP values and make threshold generic
>From 202416dbdf3fce31bfd76f1e74dda89b382a78c3 Mon Sep 17 00:00:00 2001
From: Vijay Kumar <vijaykumar.gn@ti.com>
Date: Thu, 19 Nov 2009 15:07:38 +0530
Subject: [PATCH 3/3] OMAP 3630: Update VDD2 values The OMAP3630 VDD2 minimum value is 1 and Maximum value is 2. The VDD2 API's are updated to return proper VDD2 values.
Signed-off-by: Charulatha V <charu@ti.com>
Signed-off-by: Manjunath GK <manjugk@ti.com>
Signed-off-by: Vijay Kumar <vijaykumar.gn@ti.com>
---
arch/arm/mach-omap2/pm34xx.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/arm/mach-omap2/pm34xx.c b/arch/arm/mach-omap2/pm34xx.c index 1ed7f53..c240804 100644
--- a/arch/arm/mach-omap2/pm34xx.c
+++ b/arch/arm/mach-omap2/pm34xx.c
@@ -1080,7 +1080,7 @@ EXPORT_SYMBOL(omap3_get_min_vdd1_opp);
int omap3_get_max_vdd2_opp(void)
{
if (cpu_is_omap3630())
- return VDD2_OPP3;
+ return VDD2_OPP2;
else /* Place holder for other 34xx (3430/3440) */
return VDD2_OPP3;
@@ -1090,9 +1090,9 @@ EXPORT_SYMBOL(omap3_get_max_vdd2_opp);
int omap3_get_min_vdd2_opp(void)
{
if (cpu_is_omap3630())
- return VDD2_OPP2;
- else /* Place holder for other 34xx (3430/3440) */
return VDD2_OPP1;
+ else /* Place holder for other 34xx (3430/3440) */
+ return VDD2_OPP2;
}
EXPORT_SYMBOL(omap3_get_min_vdd2_opp);
--
1.5.4.3
========================
Thanks and Regards
Vijay--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-11-19 14:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-19 11:26 [PATCH 3/3] omap3: pm: removes hardcoded VDD1/2 OPP values and make threshold generic G.N, Vijayakumar
2009-11-19 11:44 ` Menon, Nishanth
[not found] <FCCFB4CDC6E5564B9182F639FC35608702FA75152B@dbde02.ent.ti.com>
[not found] ` <8B823DEBFBDBFA468B80E3A09407512602CA1908BB@dbde02.ent.ti.com>
2009-11-19 14:48 ` G.N, Vijayakumar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).