summaryrefslogtreecommitdiffstats
path: root/src/soc/mediatek/mt8186/include/soc
diff options
context:
space:
mode:
authorRex-BC Chen <rex-bc.chen@mediatek.corp-partner.google.com>2021-12-02 19:17:06 +0800
committerFelix Held <felix-coreboot@felixheld.de>2022-01-07 15:29:31 +0000
commit362a4819b3f00f581d272f010d3a42c49a6b9d93 (patch)
treed0a0a5f5339d0eb71bbf3bb19255656f829c7081 /src/soc/mediatek/mt8186/include/soc
parent1e9dfd9d8c8c432b885ed10f25b2101f9aa2d2b1 (diff)
downloadcoreboot-362a4819b3f00f581d272f010d3a42c49a6b9d93.tar.gz
coreboot-362a4819b3f00f581d272f010d3a42c49a6b9d93.tar.bz2
coreboot-362a4819b3f00f581d272f010d3a42c49a6b9d93.zip
soc/mediatek/mt8186: initialize DFD
DFD (Design for Debug) is a debugging tool, which scans flip-flops and dumps to internal RAM on the WDT reset. After system reboots, those values can be shown for debugging using MTK internal parsing tools. BUG=b:202871018 TEST=build pass Signed-off-by: Rex-BC Chen <rex-bc.chen@mediatek.com> Change-Id: I7b711755022b5d9767019611151fea65e71edc66 Reviewed-on: https://review.coreboot.org/c/coreboot/+/60828 Reviewed-by: Hung-Te Lin <hungte@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/mediatek/mt8186/include/soc')
-rw-r--r--src/soc/mediatek/mt8186/include/soc/dfd.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/soc/mediatek/mt8186/include/soc/dfd.h b/src/soc/mediatek/mt8186/include/soc/dfd.h
new file mode 100644
index 000000000000..b2f1388693a4
--- /dev/null
+++ b/src/soc/mediatek/mt8186/include/soc/dfd.h
@@ -0,0 +1,12 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#ifndef SOC_MEDIATEK_MT8186_DFD_H
+#define SOC_MEDIATEK_MT8186_DFD_H
+
+#include <soc/dfd_common.h>
+
+/* DFD dump address and size need to be the same as defined in Kernel DTS. */
+#define DFD_DUMP_ADDRESS 0x6A000000
+#define DFD_DUMP_SIZE (1 * MiB)
+
+#endif