s5pc1xx: sleep: set correct sleep mode by CPU revision
authorMinkyu Kang <mk7.kang@samsung.com>
Tue, 5 Jan 2010 02:29:09 +0000 (11:29 +0900)
committerMinkyu Kang <mk7.kang@samsung.com>
Tue, 5 Jan 2010 02:29:09 +0000 (11:29 +0900)
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
board/samsung/universal/universal.c

index c0dd6da..28b100b 100644 (file)
@@ -995,7 +995,12 @@ static void into_charge_mode(void)
 #endif
 
        /* EVT0: sleep 1, EVT1: sleep */
-       run_command("sleep 1", 0);
+       if (s5pc1xx_get_cpu_rev() == 0) {
+               run_command("sleep 1", 0);
+               return;
+       }
+
+       run_command("sleep", 0);
 }
 
 static void check_micro_usb(int intr)