aboutsummaryrefslogtreecommitdiff
path: root/src/soc/mediatek/common/devapc.c
diff options
context:
space:
mode:
authorYidi Lin <yidilin@chromium.org>2022-12-20 16:42:53 +0800
committerFelix Held <felix-coreboot@felixheld.de>2022-12-23 12:55:22 +0000
commit63d26b82a34d15eeb887a51620a8d5337a1052ca (patch)
tree892d2a43a048b63631f04731fb7f8422a0609372 /src/soc/mediatek/common/devapc.c
parentaa9bb445043e15b9da5ed1429cc14a2ae6941a9e (diff)
soc/mediatek: Add DEVAPC_DEBUG option
Add DEVAPC_DEBUG option and set this option to disabled by default. This option prevents DEVAPC log flooding during the boot process. Enable this option when we need to debug DEVAPC issues. TEST=DEVAPC log is disabled by default. Change-Id: I26bc0378b8a766c6a8cc4903d64a921c3e96b93f Signed-off-by: Yidi Lin <yidilin@chromium.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/71158 Reviewed-by: Rex-BC Chen <rex-bc.chen@mediatek.com> Reviewed-by: Yu-Ping Wu <yupingso@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/mediatek/common/devapc.c')
-rw-r--r--src/soc/mediatek/common/devapc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/soc/mediatek/common/devapc.c b/src/soc/mediatek/common/devapc.c
index 5859c9af85..7838d7d53b 100644
--- a/src/soc/mediatek/common/devapc.c
+++ b/src/soc/mediatek/common/devapc.c
@@ -45,8 +45,8 @@ void dapc_init(void)
if (devapc_init[i].init)
devapc_init[i].init(devapc_ao_base);
- /* Dump Setting */
- if (devapc_init[i].dump)
+ /* Dump setting */
+ if (CONFIG(DEVAPC_DEBUG) && devapc_init[i].dump)
devapc_init[i].dump(devapc_ao_base);
}
}