]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00170520: MX6-Enable WAIT mode by default.
authorRanjani Vaidyanathan <ra5478@freescale.com>
Fri, 16 Dec 2011 22:13:45 +0000 (16:13 -0600)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:33:40 +0000 (08:33 +0200)
WAIT mode is enabled by default with this commit.
Adding "enable_wait_mode=off" to the command line will
prevent the system from entering WAIT mode.

Signed-off-by: Ranjani Vaidyanathan <ra5478@freescale.com>
arch/arm/mach-mx6/cpu.c

index 46e22f1138e4c6845edea7e81940fd4a6b5362e9..81f691cb35b5fdf5b3c70bf28a5ff6ff0b49d638 100644 (file)
@@ -38,7 +38,7 @@ extern void mx6_wait(void);
 
 
 struct cpu_op *(*get_cpu_op)(int *op);
-bool enable_wait_mode;
+bool enable_wait_mode = true;
 u32 arm_max_freq = CPU_AT_1GHz;
 
 void __iomem *gpc_base;
@@ -154,7 +154,13 @@ postcore_initcall(post_cpu_init);
 
 static int __init enable_wait(char *p)
 {
-       enable_wait_mode = true;
+       if (memcmp(p, "on", 2) == 0) {
+               enable_wait_mode = true;
+               p += 2;
+       } else if (memcmp(p, "off", 3) == 0) {
+               enable_wait_mode = false;
+               p += 3;
+       }
        return 0;
 }
 early_param("enable_wait_mode", enable_wait);