summaryrefslogtreecommitdiff
path: root/src/soc
diff options
context:
space:
mode:
authorRex-BC Chen <rex-bc.chen@mediatek.corp-partner.google.com>2021-11-25 09:50:13 +0800
committerHung-Te Lin <hungte@chromium.org>2021-11-26 08:20:55 +0000
commitd43d171f650e343c68dec0c094586aa3fab2daea (patch)
tree754a24d3d2d46746ec8d3a13c69c6dff8321822f /src/soc
parent655fa5c39b34caa5fade7a3d69a2ef074ed01247 (diff)
soc/mediatek: log watchdog status
Reveal watchdog status value on bootblock stage. BUG=b:207646327 TEST=build pass Signed-off-by: Rex-BC Chen <rex-bc.chen@mediatek.com> Change-Id: I2c5ad222a41085616565dd5c10b0e967bb64ec63 Reviewed-on: https://review.coreboot.org/c/coreboot/+/59641 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Diffstat (limited to 'src/soc')
-rw-r--r--src/soc/mediatek/common/wdt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/soc/mediatek/common/wdt.c b/src/soc/mediatek/common/wdt.c
index b228e56a05..f06fbf066f 100644
--- a/src/soc/mediatek/common/wdt.c
+++ b/src/soc/mediatek/common/wdt.c
@@ -16,6 +16,8 @@ int mtk_wdt_init(void)
mtk_wdt_clr_status(wdt_sta);
+ printk(BIOS_INFO, "WDT: Status = %#x\n", wdt_sta);
+
printk(BIOS_INFO, "WDT: Last reset was ");
if (wdt_sta & MTK_WDT_STA_HW_RST) {
printk(BIOS_INFO, "hardware watchdog\n");