From 9031c37be6939e792da14051857829fbd78eedca Mon Sep 17 00:00:00 2001 From: tytung Date: Sat, 17 Nov 2012 15:28:02 +0800 Subject: [PATCH] htcleo: pm: add HD2 off-mode Alarm Clock for cLK (Credit goes to kokotas and Rick_1995) Visit http://forum.xda-developers.com/showthread.php?t=1990111 for more info. --- arch/arm/mach-msm/pm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/mach-msm/pm.c b/arch/arm/mach-msm/pm.c index ed19e679..3155ec3f 100644 --- a/arch/arm/mach-msm/pm.c +++ b/arch/arm/mach-msm/pm.c @@ -777,6 +777,9 @@ static int msm_reboot_call(struct notifier_block *this, unsigned long code, void } else if (!strncmp(cmd, "oem-", 4)) { unsigned code = simple_strtoul(cmd + 4, 0, 16) & 0xff; restart_reason = 0x6f656d00 | code; + } else if (!strncmp(cmd, "S", 1)) { + unsigned code = simple_strtoul(cmd + 1, 0, 16) & 0x00ffffff; + restart_reason = 0x53000000 | code; } else if (!strcmp(cmd, "force-hard")) { restart_reason = 0x776655AA; } else {