mako: debug: porting lge crash handler
Change-Id: I913d372131a25bb9c0d90680f5e96cebb8883055
diff --git a/arch/arm/mach-msm/lpass-8960.c b/arch/arm/mach-msm/lpass-8960.c
index c58b0e1..a546ff3 100644
--- a/arch/arm/mach-msm/lpass-8960.c
+++ b/arch/arm/mach-msm/lpass-8960.c
@@ -25,6 +25,11 @@
#include <mach/subsystem_restart.h>
#include <mach/subsystem_notif.h>
+#if defined(CONFIG_LGE_CRASH_HANDLER)
+#include <mach/restart.h>
+#include <mach/board_lge.h>
+#endif
+
#include "smd_private.h"
#include "ramdump.h"
#include "sysmon.h"
@@ -120,6 +125,10 @@
pr_err("%s %s: Watchdog bite received from Q6!\n", MODULE_NAME,
__func__);
lpass_log_failure_reason();
+#if defined(CONFIG_LGE_CRASH_HANDLER)
+ set_ssr_magic_number("lpass");
+ msm_set_restart_mode(0x6d634130);
+#endif
panic(MODULE_NAME ": Resetting the SoC");
}
@@ -135,6 +144,10 @@
" new_state = 0x%x, old_state = 0x%x\n", __func__,
new_state, old_state);
lpass_log_failure_reason();
+#if defined(CONFIG_LGE_CRASH_HANDLER)
+ set_ssr_magic_number("lpass");
+ msm_set_restart_mode(0x6d634130);
+#endif
panic(MODULE_NAME ": Resetting the SoC");
}
}