From d43d171f650e343c68dec0c094586aa3fab2daea Mon Sep 17 00:00:00 2001 From: Rex-BC Chen Date: Thu, 25 Nov 2021 09:50:13 +0800 Subject: soc/mediatek: log watchdog status Reveal watchdog status value on bootblock stage. BUG=b:207646327 TEST=build pass Signed-off-by: Rex-BC Chen Change-Id: I2c5ad222a41085616565dd5c10b0e967bb64ec63 Reviewed-on: https://review.coreboot.org/c/coreboot/+/59641 Tested-by: build bot (Jenkins) Reviewed-by: Yu-Ping Wu --- src/soc/mediatek/common/wdt.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/soc/mediatek/common/wdt.c') 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"); -- cgit v1.2.3