blob: 954f68aa3d32f5c2493e8aa12a78f78fac50f67b [file] [log] [blame]
Ravi Kumar Bokka6fde4c52020-08-25 15:47:59 +05301/* 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
9void 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}