Rex-BC Chen has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/59641 )
Change subject: soc/mediatek: add watchdog status dump ......................................................................
soc/mediatek: add watchdog status dump
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 --- M src/soc/mediatek/common/wdt.c 1 file changed, 2 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/41/59641/1
diff --git a/src/soc/mediatek/common/wdt.c b/src/soc/mediatek/common/wdt.c index b228e56..86ee782 100644 --- a/src/soc/mediatek/common/wdt.c +++ b/src/soc/mediatek/common/wdt.c @@ -16,6 +16,8 @@
mtk_wdt_clr_status(wdt_sta);
+ printk(BIOS_DEBUG, "watchdog 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");