diff options
author | Rex-BC Chen <rex-bc.chen@mediatek.corp-partner.google.com> | 2021-12-02 19:57:46 +0800 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2021-12-14 17:06:12 +0000 |
commit | ac6070a79fb531975d83a32932f2ad66b5af7825 (patch) | |
tree | e459ac5d8e1e580fd385d8eea93bbd40c4d7ea69 /src/soc/mediatek/common/tracker.c | |
parent | da83d2c97fe414a3b2fbf6f55b61da5f1533f819 (diff) |
soc/mediatek/mt8186: add tracker dump
Tracker is a debugging tool, and MT8186 only supports AP tracker.
When bus timeout occurs, the system reboots and latches some values
which could be used for debugging.
This function will be triggered only when it encounters the bug
hanging issue.
BUG=b:202871018
TEST=range of registers are dumped as expected.
Signed-off-by: Rex-BC Chen <rex-bc.chen@mediatek.com>
Change-Id: Ie023de2a6f7421a16b2516baa0bf0bf6fff589e2
Reviewed-on: https://review.coreboot.org/c/coreboot/+/59990
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Diffstat (limited to 'src/soc/mediatek/common/tracker.c')
-rw-r--r-- | src/soc/mediatek/common/tracker.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/soc/mediatek/common/tracker.c b/src/soc/mediatek/common/tracker.c index f3b2e9bfd8..3485449b6b 100644 --- a/src/soc/mediatek/common/tracker.c +++ b/src/soc/mediatek/common/tracker.c @@ -6,6 +6,11 @@ #include <soc/tracker.h> #include <soc/tracker_common.h> +__weak void tracker_setup(void) +{ + /* do nothing. */ +} + static void tracker_dump_data(void) { int i, j, k; |