summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKshitiz Godara <quic_kgodara@quicinc.com>2022-06-29 19:15:58 +0530
committerShelley Chen <shchen@google.com>2022-07-18 17:34:28 +0000
commit18c997f439038a08f24d066283ee1d871027fdef (patch)
treecbd20077fbbaf01144caf8aeb552ae910f55f7df
parentba5df6dad708e9d2618bd3d68b80832f5d4cb42e (diff)
google/herobrine: Support hardware watchdog logging
Add support for hardware watchdog event logging BUG=b:221393157 TEST=Validated on qualcomm sc7280 development board by manually triggering watchdog event and event was logged at next bootup. Signed-off-by: Kshitiz Godara <quic_kgodara@quicinc.com> Change-Id: I94971ab583f49c8a5ac232833215dbdad3a4d272 Reviewed-on: https://review.coreboot.org/c/coreboot/+/65528 Reviewed-by: Julius Werner <jwerner@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
-rw-r--r--src/mainboard/google/herobrine/romstage.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mainboard/google/herobrine/romstage.c b/src/mainboard/google/herobrine/romstage.c
index 97ce5a7c77..24d0e28c67 100644
--- a/src/mainboard/google/herobrine/romstage.c
+++ b/src/mainboard/google/herobrine/romstage.c
@@ -1,11 +1,12 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <arch/stages.h>
-#include <soc/usb/usb_common.h>
+#include <soc/cpucp.h>
#include <soc/qclib_common.h>
-#include "board.h"
#include <soc/shrm.h>
-#include <soc/cpucp.h>
+#include <soc/usb/usb_common.h>
+#include <soc/watchdog.h>
+#include "board.h"
static void prepare_usb(void)
{
@@ -18,6 +19,8 @@ static void prepare_usb(void)
void platform_romstage_main(void)
{
+ /* Watchdog must be checked first to avoid erasing watchdog info later. */
+ check_wdog();
shrm_fw_load_reset();
cpucp_prepare();
/* QCLib: DDR init & train */