summaryrefslogtreecommitdiff
path: root/src/soc/mediatek/mt8195/include
diff options
context:
space:
mode:
authorRex-BC Chen <rex-bc.chen@mediatek.corp-partner.google.com>2021-08-10 12:39:32 +0800
committerHung-Te Lin <hungte@chromium.org>2021-09-29 06:57:15 +0000
commit61be50dafb308f4b54a4ec329c324e2c89048f98 (patch)
tree93b7094e2d9e66f6153de154574bd697ec262ab3 /src/soc/mediatek/mt8195/include
parent98affb68f04d74eebd4ce98a64b21935caf63562 (diff)
soc/mediatek/mt8195: 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 could be showed for debugging. BUG=b:192429713 Signed-off-by: Rex-BC Chen <rex-bc.chen@mediatek.com> Change-Id: Ied63913db94b2e52ab394a66c70f7edfd507c99b Reviewed-on: https://review.coreboot.org/c/coreboot/+/57980 Reviewed-by: Rex-BC Chen <rex-bc.chen@mediatek.corp-partner.google.com> Reviewed-by: Hung-Te Lin <hungte@chromium.org> Reviewed-by: Yu-Ping Wu <yupingso@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/mediatek/mt8195/include')
-rw-r--r--src/soc/mediatek/mt8195/include/soc/dfd.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/soc/mediatek/mt8195/include/soc/dfd.h b/src/soc/mediatek/mt8195/include/soc/dfd.h
new file mode 100644
index 0000000000..123b568433
--- /dev/null
+++ b/src/soc/mediatek/mt8195/include/soc/dfd.h
@@ -0,0 +1,12 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#ifndef SOC_MEDIATEK_MT8195_DFD_H
+#define SOC_MEDIATEK_MT8195_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