[ARM] pxa/em-x270, cm-x270: use DEEPSLEEP for PM_SUSPEND_MEM
authorMike Rapoport <mike@compulab.co.il>
Tue, 26 May 2009 06:41:46 +0000 (09:41 +0300)
committerEric Miao <eric.y.miao@gmail.com>
Fri, 5 Jun 2009 02:50:25 +0000 (10:50 +0800)
Signed-off-by: Mike Rapoport <mike@compulab.co.il>
Signed-off-by: Eric Miao <eric.miao@marvell.com>
arch/arm/mach-pxa/cm-x270.c
arch/arm/mach-pxa/em-x270.c

index 34576ba5f5fd0a8d9e059fed35534f139a463335..1d2cec25391de4320819a0bc04a988072f085aaa 100644 (file)
@@ -335,6 +335,10 @@ void __init cmx270_init(void)
 {
        pxa2xx_mfp_config(ARRAY_AND_SIZE(cmx270_pin_config));
 
+#ifdef CONFIG_PM
+       pxa27x_set_pwrmode(PWRMODE_DEEPSLEEP);
+#endif
+
        cmx270_init_rtc();
        cmx270_init_mmc();
        cmx270_init_ohci();
index 3ff1fec017fdd7cc95dac779be9cf2d0a4cd8f38..243e0802b5f4259aa48f429a185c1b3412dfc28e 100644 (file)
@@ -1215,6 +1215,10 @@ static void __init em_x270_init(void)
 {
        pxa2xx_mfp_config(ARRAY_AND_SIZE(common_pin_config));
 
+#ifdef CONFIG_PM
+       pxa27x_set_pwrmode(PWRMODE_DEEPSLEEP);
+#endif
+
        if (machine_is_em_x270())
                em_x270_module_init();
        else if (machine_is_exeda())