summaryrefslogtreecommitdiff
path: root/src/soc/mediatek/mt8186/bootblock.c
diff options
context:
space:
mode:
authorot_zhenguo.li <ot_zhenguo.li@mediatek.corp-partner.google.com>2022-08-11 19:32:09 +0800
committerFelix Held <felix-coreboot@felixheld.de>2022-09-09 10:45:08 +0000
commite125bea5a06a84b8906b9bda1a3d2d7ab4c18a8e (patch)
treeccbd8f331dcb5705a15346aab37ae9ec5ed2b119 /src/soc/mediatek/mt8186/bootblock.c
parent2b1fdb034a895811283383c7fda1ecc3016f5a42 (diff)
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 <ot_zhenguo.li@mediatek.corp-partner.google.com> Change-Id: Iff39486dfad556a3104b2f2b6811c34c2ded6954 Reviewed-on: https://review.coreboot.org/c/coreboot/+/67437 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Yidi Lin <yidilin@google.com> Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Diffstat (limited to 'src/soc/mediatek/mt8186/bootblock.c')
-rw-r--r--src/soc/mediatek/mt8186/bootblock.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/soc/mediatek/mt8186/bootblock.c b/src/soc/mediatek/mt8186/bootblock.c
index e5d1e73047..9b12e562a1 100644
--- a/src/soc/mediatek/mt8186/bootblock.c
+++ b/src/soc/mediatek/mt8186/bootblock.c
@@ -3,6 +3,7 @@
#include <bootblock_common.h>
#include <soc/eint_event.h>
#include <soc/gic.h>
+#include <soc/lastbus.h>
#include <soc/mmu_operations.h>
#include <soc/pll.h>
#include <soc/tracker_common.h>
@@ -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();