From e125bea5a06a84b8906b9bda1a3d2d7ab4c18a8e Mon Sep 17 00:00:00 2001 From: "ot_zhenguo.li" Date: Thu, 11 Aug 2022 19:32:09 +0800 Subject: soc/mediatek/mt8186: Enable lastbus debug hardware Lastbus is a bus debug tool. When the bus hangs, the bus transmission information before resetting will be recorded. The watchdog cannot clear it and it will be printed out for bus hanging analysis. TEST=build pass. BUG=none Signed-off-by: ot_zhenguo.li Change-Id: Iff39486dfad556a3104b2f2b6811c34c2ded6954 Reviewed-on: https://review.coreboot.org/c/coreboot/+/67437 Tested-by: build bot (Jenkins) Reviewed-by: Yidi Lin Reviewed-by: Yu-Ping Wu --- src/soc/mediatek/mt8186/Makefile.inc | 1 + src/soc/mediatek/mt8186/bootblock.c | 2 ++ 2 files changed, 3 insertions(+) (limited to 'src/soc/mediatek/mt8186') diff --git a/src/soc/mediatek/mt8186/Makefile.inc b/src/soc/mediatek/mt8186/Makefile.inc index bd1e560c0d69..724f80fb115f 100644 --- a/src/soc/mediatek/mt8186/Makefile.inc +++ b/src/soc/mediatek/mt8186/Makefile.inc @@ -12,6 +12,7 @@ all-y += ../common/uart.c bootblock-y += bootblock.c bootblock-y += ../common/eint_event.c bootblock-y += gic.c +bootblock-y += ../common/lastbus.c bootblock-y += ../common/mmu_operations.c bootblock-y += ../common/tracker.c ../common/tracker_v1.c bootblock-y += ../common/wdt.c ../common/wdt_req.c wdt.c diff --git a/src/soc/mediatek/mt8186/bootblock.c b/src/soc/mediatek/mt8186/bootblock.c index e5d1e7304795..9b12e562a11b 100644 --- a/src/soc/mediatek/mt8186/bootblock.c +++ b/src/soc/mediatek/mt8186/bootblock.c @@ -3,6 +3,7 @@ #include #include #include +#include #include #include #include @@ -12,6 +13,7 @@ void bootblock_soc_init(void) { mtk_mmu_init(); bustracker_init(); + lastbus_init(); mtk_wdt_init(); mt_pll_init(); unmask_eint_event_mask(); -- cgit v1.2.3