soc: qcom: Create framework for qcom watchdogs

Separate core watchdog functionality from the qcom watchdog
driver to create a framework for other qcom watchdogs. This
will reduce the duplication of code for future watchdog
drivers and allow them to take advantage of this framework.

Change-Id: I1234af9d92de6841bd09157042a4fbba1745f11b
Signed-off-by: Branden Bonaby <bbonaby@codeaurora.org>
This commit is contained in:
Branden Bonaby
2020-08-12 00:34:33 -07:00
parent d71acda6dc
commit 065a08cb14
4 changed files with 343 additions and 315 deletions

View File

@@ -68,7 +68,7 @@ static void spin_dump(raw_spinlock_t *lock, const char *msg)
READ_ONCE(lock->owner_cpu));
#ifdef CONFIG_DEBUG_SPINLOCK_BITE_ON_BUG
msm_trigger_wdog_bite();
qcom_wdt_trigger_bite();
#elif defined(CONFIG_DEBUG_SPINLOCK_PANIC_ON_BUG)
BUG();
#endif