soc: qcom: watchdog_v2: Add support to trigger watchdog bite on panic

In certain cases during a kernel panic, interrupts on non-panicking
CPUs are disabled. Since CPU context cannot be collected by sending IPIs
to those CPUs, it impacts debugging the problem. Forcing a watchdog bite
during kernel panic will ensure us getting the proper CPU context. Hence
adding support for the same.

Change-Id: I53b4029bac23d723f4eb07e53534ea526bcd245f
Signed-off-by: Satyajit Desai <sadesai@codeaurora.org>
diff --git a/drivers/soc/qcom/Kconfig b/drivers/soc/qcom/Kconfig
index 69e3032..3311380 100644
--- a/drivers/soc/qcom/Kconfig
+++ b/drivers/soc/qcom/Kconfig
@@ -655,3 +655,11 @@
 	  memory location. These messages provide statistical information about
 	  the low power modes that RPM enters. The drivers outputs the message
 	  via a debugfs node.
+
+config QCOM_FORCE_WDOG_BITE_ON_PANIC
+	bool "QCOM force watchdog bite"
+	depends on QCOM_WATCHDOG_V2
+	help
+	  This forces a watchdog bite when the device restarts due to a
+	  kernel panic. On certain MSM SoCs, this provides us
+	  additional debugging information.