From 18c997f439038a08f24d066283ee1d871027fdef Mon Sep 17 00:00:00 2001 From: Kshitiz Godara Date: Wed, 29 Jun 2022 19:15:58 +0530 Subject: 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 Change-Id: I94971ab583f49c8a5ac232833215dbdad3a4d272 Reviewed-on: https://review.coreboot.org/c/coreboot/+/65528 Reviewed-by: Julius Werner Tested-by: build bot (Jenkins) --- src/mainboard/google/herobrine/romstage.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/mainboard/google') 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 -#include +#include #include -#include "board.h" #include -#include +#include +#include +#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 */ -- cgit v1.2.3