]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
OMAP3: Remove CONFIG_OMAP_SYSOFFMODE flag
authorKalle Jokiniemi <ext-kalle.jokiniemi@nokia.com>
Fri, 17 Oct 2008 06:46:08 +0000 (09:46 +0300)
committerTony Lindgren <tony@atomide.com>
Fri, 24 Oct 2008 19:36:00 +0000 (12:36 -0700)
Remove CONFIG_OMAP_SYSOFFMODE flag and do the full initialization of voltage
controller . Enabling automatic sending of OFF command and selecting wether
SYS_OFF_MODE signal is used should be determined dynamically. Hence they are
now not set in the initialization.

The sleep voltage for OFF mode is changed to default 1,2V for VDD1 and
1,15V for VDD2. Using the 0,9V setting causes hangup.

Signed-off-by: Kalle Jokiniemi <ext-kalle.jokiniemi@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/pm34xx.c
arch/arm/mach-omap2/prm-regbits-34xx.h

index a828db63747d94a0f3801c4467bf074161c5f24e..457639f233aa9f2bf40c5c6844ff8cd959a1dac4 100644 (file)
@@ -622,10 +622,7 @@ static void __init configure_vc(void)
                                OMAP3_PRM_VC_I2C_CFG_OFFSET);
 
        /* Setup voltctrl and other setup times */
-
-#ifdef CONFIG_OMAP_SYSOFFMODE
-       prm_write_mod_reg(OMAP3430_AUTO_OFF | OMAP3430_AUTO_RET |
-                       OMAP3430_SEL_OFF, OMAP3430_GR_MOD,
+       prm_write_mod_reg(OMAP3430_AUTO_RET, OMAP3430_GR_MOD,
                        OMAP3_PRM_VOLTCTRL_OFFSET);
 
        prm_write_mod_reg(OMAP3430_CLKSETUP_DURATION, OMAP3430_GR_MOD,
@@ -640,11 +637,6 @@ static void __init configure_vc(void)
                        OMAP3_PRM_VOLTOFFSET_OFFSET);
        prm_write_mod_reg(OMAP3430_VOLTSETUP2_DURATION, OMAP3430_GR_MOD,
                        OMAP3_PRM_VOLTSETUP2_OFFSET);
-#else
-       prm_set_mod_reg_bits(OMAP3430_AUTO_RET, OMAP3430_GR_MOD,
-                       OMAP3_PRM_VOLTCTRL_OFFSET);
-#endif
-
 }
 
 static int __init omap3_pm_early_init(void)
index f82b5a71b01041e67ec09dbea6da556513df0836..d73eee8d3ac4e64e174032fc22176c4a8e1bf318 100644 (file)
 #define OMAP3430_VC_CMD_VAL0_ON                                (0x3 << 4)
 #define OMAP3430_VC_CMD_VAL0_ONLP                      (0x3 << 3)
 #define OMAP3430_VC_CMD_VAL0_RET                       (0x3 << 3)
-#define OMAP3430_VC_CMD_VAL0_OFF                       (0x3 << 3)
+#define OMAP3430_VC_CMD_VAL0_OFF                       (0x3 << 4)
 
 /* PRM_VC_CMD_VAL_1 specific bits */
 #define OMAP3430_VC_CMD_VAL1_ON                                (0xB << 2)
 #define OMAP3430_VC_CMD_VAL1_ONLP                      (0x3 << 3)
 #define OMAP3430_VC_CMD_VAL1_RET                       (0x3 << 3)
-#define OMAP3430_VC_CMD_VAL1_OFF                       (0x3 << 3)
+#define OMAP3430_VC_CMD_VAL1_OFF                       (0xB << 2)
 
 /* PRM_VC_CH_CONF */
 #define OMAP3430_CMD1                                  (1 << 20)