public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] OMAP3: PM: Update correct ONLP/RET values
@ 2009-03-02  7:31 Nayak, Rajendra
  2009-03-03 16:41 ` Kevin Hilman
  0 siblings, 1 reply; 2+ messages in thread
From: Nayak, Rajendra @ 2009-03-02  7:31 UTC (permalink / raw)
  To: linux-omap@vger.kernel.org

Populates the correct ONLP/RET cmd values for VDD1 and VDD2.
Also removes the unneccesary bitshift logic.
Applies on the latest pm branch, validated on a 3430SDP.

0x30 = 1.2V
0x1E = .975V
0x2C = 1.15V

Formula used to calulate the hex values
Value(in decimals)*12.5 + 600 mV.

Signed-off-by: Rajendra Nayak <rnayak@ti.com>
---
 arch/arm/mach-omap2/pm34xx.c |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

Index: linux-omap-2.6/arch/arm/mach-omap2/pm34xx.c
===================================================================
--- linux-omap-2.6.orig/arch/arm/mach-omap2/pm34xx.c	2009-03-02 11:42:13.000000000 +0530
+++ linux-omap-2.6/arch/arm/mach-omap2/pm34xx.c	2009-03-02 12:07:19.653034656 +0530
@@ -1036,16 +1036,16 @@ err2:
 }
 
 /* PRM_VC_CMD_VAL_0 specific bits */
-#define OMAP3430_VC_CMD_VAL0_ON				(0x3 << 4)
-#define OMAP3430_VC_CMD_VAL0_ONLP			(0xf << 3)
-#define OMAP3430_VC_CMD_VAL0_RET			(0xf << 3)
-#define OMAP3430_VC_CMD_VAL0_OFF			(0x3 << 4)
+#define OMAP3430_VC_CMD_VAL0_ON		0x30
+#define OMAP3430_VC_CMD_VAL0_ONLP	0x1E
+#define OMAP3430_VC_CMD_VAL0_RET	0x1E
+#define OMAP3430_VC_CMD_VAL0_OFF	0x30
 
 /* PRM_VC_CMD_VAL_1 specific bits */
-#define OMAP3430_VC_CMD_VAL1_ON				(0xB << 2)
-#define OMAP3430_VC_CMD_VAL1_ONLP			(0xf << 3)
-#define OMAP3430_VC_CMD_VAL1_RET			(0xf << 3)
-#define OMAP3430_VC_CMD_VAL1_OFF			(0xB << 2)
+#define OMAP3430_VC_CMD_VAL1_ON		0x2C
+#define OMAP3430_VC_CMD_VAL1_ONLP	0x1E
+#define OMAP3430_VC_CMD_VAL1_RET	0x1E
+#define OMAP3430_VC_CMD_VAL1_OFF	0x2C
 
 static void __init configure_vc(void)
 {

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] OMAP3: PM: Update correct ONLP/RET values
  2009-03-02  7:31 [PATCH] OMAP3: PM: Update correct ONLP/RET values Nayak, Rajendra
@ 2009-03-03 16:41 ` Kevin Hilman
  0 siblings, 0 replies; 2+ messages in thread
From: Kevin Hilman @ 2009-03-03 16:41 UTC (permalink / raw)
  To: Nayak, Rajendra; +Cc: linux-omap@vger.kernel.org

"Nayak, Rajendra" <rnayak@ti.com> writes:

> Populates the correct ONLP/RET cmd values for VDD1 and VDD2.
> Also removes the unneccesary bitshift logic.
> Applies on the latest pm branch, validated on a 3430SDP.
>
> 0x30 = 1.2V
> 0x1E = .975V
> 0x2C = 1.15V
>
> Formula used to calulate the hex values
> Value(in decimals)*12.5 + 600 mV.
>
> Signed-off-by: Rajendra Nayak <rnayak@ti.com>

Thanks, I will merge this with your previous patch and push a new pm branch.

Kevin

>  arch/arm/mach-omap2/pm34xx.c |   16 ++++++++--------
>  1 files changed, 8 insertions(+), 8 deletions(-)
>
> Index: linux-omap-2.6/arch/arm/mach-omap2/pm34xx.c
> ===================================================================
> --- linux-omap-2.6.orig/arch/arm/mach-omap2/pm34xx.c	2009-03-02 11:42:13.000000000 +0530
> +++ linux-omap-2.6/arch/arm/mach-omap2/pm34xx.c	2009-03-02 12:07:19.653034656 +0530
> @@ -1036,16 +1036,16 @@ err2:
>  }
>  
>  /* PRM_VC_CMD_VAL_0 specific bits */
> -#define OMAP3430_VC_CMD_VAL0_ON				(0x3 << 4)
> -#define OMAP3430_VC_CMD_VAL0_ONLP			(0xf << 3)
> -#define OMAP3430_VC_CMD_VAL0_RET			(0xf << 3)
> -#define OMAP3430_VC_CMD_VAL0_OFF			(0x3 << 4)
> +#define OMAP3430_VC_CMD_VAL0_ON		0x30
> +#define OMAP3430_VC_CMD_VAL0_ONLP	0x1E
> +#define OMAP3430_VC_CMD_VAL0_RET	0x1E
> +#define OMAP3430_VC_CMD_VAL0_OFF	0x30
>  
>  /* PRM_VC_CMD_VAL_1 specific bits */
> -#define OMAP3430_VC_CMD_VAL1_ON				(0xB << 2)
> -#define OMAP3430_VC_CMD_VAL1_ONLP			(0xf << 3)
> -#define OMAP3430_VC_CMD_VAL1_RET			(0xf << 3)
> -#define OMAP3430_VC_CMD_VAL1_OFF			(0xB << 2)
> +#define OMAP3430_VC_CMD_VAL1_ON		0x2C
> +#define OMAP3430_VC_CMD_VAL1_ONLP	0x1E
> +#define OMAP3430_VC_CMD_VAL1_RET	0x1E
> +#define OMAP3430_VC_CMD_VAL1_OFF	0x2C
>  
>  static void __init configure_vc(void)
>  {--
> 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] 2+ messages in thread

end of thread, other threads:[~2009-03-03 16:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-02  7:31 [PATCH] OMAP3: PM: Update correct ONLP/RET values Nayak, Rajendra
2009-03-03 16:41 ` Kevin Hilman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox