summaryrefslogtreecommitdiff
path: root/src/soc/qualcomm/sc7180/watchdog.c
blob: 0b7dd6dff85e8103131cb484c9f42e23e088fccf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* SPDX-License-Identifier: GPL-2.0-only */

#include <soc/watchdog.h>
#include <soc/clock.h>
#include <device/mmio.h>
#include <vendorcode/google/chromeos/chromeos.h>

void check_wdog(void)
{
	uint32_t wdog_sta = read32(&aoss->aoss_cc_reset_status);

	if (wdog_sta & WDOG_RESET_BIT_MASK)
		mark_watchdog_tombstone();
}