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>
This commit is contained in:
Kshitiz Godara
2022-06-29 19:15:58 +05:30
committed by Shelley Chen
parent ba5df6dad7
commit 18c997f439

View File

@@ -1,11 +1,12 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <arch/stages.h>
#include <soc/usb/usb_common.h>
#include <soc/qclib_common.h>
#include "board.h"
#include <soc/shrm.h>
#include <soc/cpucp.h>
#include <soc/qclib_common.h>
#include <soc/shrm.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 */