Ravi Kumar Bokka | 6fde4c5 | 2020-08-25 15:47:59 +0530 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
2 | |||||
3 | #include <soc/watchdog.h> | ||||
4 | #include <soc/clock.h> | ||||
5 | #include <console/console.h> | ||||
6 | #include <device/mmio.h> | ||||
7 | #include <vendorcode/google/chromeos/chromeos.h> | ||||
8 | |||||
9 | void check_wdog(void) | ||||
10 | { | ||||
11 | uint32_t wdog_sta = read32(&aoss->aoss_cc_reset_status); | ||||
12 | |||||
13 | if (wdog_sta & WDOG_RESET_BIT_MASK) | ||||
14 | mark_watchdog_tombstone(); | ||||
15 | } |