Debian Codegraph @

src/soc/qualcomm/common/watchdog.c

raw symbols SCIP
1 /* SPDX-License-Identifier: GPL-2.0-only */
2
3 #include <soc/clock.h>
4 #include <soc/watchdog.h>
5 #include <device/mmio.h>
6 #include <vendorcode/google/chromeos/chromeos.h>
7
8 #define WDOG_RESET_BIT_MASK 1
9
10 void check_wdog(void)
11 {
12 uint32_t wdog_sta = read32(&aoss->aoss_cc_reset_status);
13
14 if (wdog_sta & WDOG_RESET_BIT_MASK)
15 mark_watchdog_tombstone();
16 }