summaryrefslogtreecommitdiff
path: root/src/vendorcode/amd/opensil/Kconfig.debug
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2023-07-13 16:58:55 +0200
committerFelix Held <felix-coreboot@felixheld.de>2023-11-28 13:17:13 +0000
commit791ce58e6e1f0ff2b1f6df824ca08475e87cf03a (patch)
treec4a3ce1d4e9fa09979f1e6c28b799700996cfa8f /src/vendorcode/amd/opensil/Kconfig.debug
parent1d6eeff17137d86a09673b589ea5c1fba174a02b (diff)
vendorcode/amd: Hook up opensil
OpenSIL has a native buildsystem using meson and configuration mechanism using kconfiglib. To be able to use the coreboot toolchain with opensil, meson crossfiles are used, which get generated by coreboot makefiles. Configuration of opensil is done in a similar fashion with a template defconfig after which kconfiglib is called to generate headers. Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Signed-off-by: Martin Roth <gaumless@gmail.com> Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Change-Id: Ide2d181914116119dfd37b1511d89ea965729141 Reviewed-on: https://review.coreboot.org/c/coreboot/+/76511 Reviewed-by: Fred Reitberger <reitbergerfred@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Varshit Pandya <pandyavarshit@gmail.com> Reviewed-by: Matt DeVillier <matt.devillier@amd.corp-partner.google.com>
Diffstat (limited to 'src/vendorcode/amd/opensil/Kconfig.debug')
-rw-r--r--src/vendorcode/amd/opensil/Kconfig.debug71
1 files changed, 71 insertions, 0 deletions
diff --git a/src/vendorcode/amd/opensil/Kconfig.debug b/src/vendorcode/amd/opensil/Kconfig.debug
new file mode 100644
index 0000000000..d49b37dc16
--- /dev/null
+++ b/src/vendorcode/amd/opensil/Kconfig.debug
@@ -0,0 +1,71 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
+if SOC_AMD_OPENSIL
+
+config OPENSIL_DEBUG_OUTPUT
+ bool "OpenSIL console output"
+ default y
+ help
+ Select this if you want OpenSIL debug messages compiled
+ in the image.
+
+if OPENSIL_DEBUG_OUTPUT
+
+config OPENSIL_DEBUG_PREFIX
+ bool "Print the opensil prefix"
+ default n
+ help
+ This prints the function name and line level in front of the
+ actual message.
+
+config OPENSIL_DEBUG_APOB
+ bool "Enable APOB messages"
+ default n
+ help
+ Enable printing APOB related messages.
+
+config OPENSIL_DEBUG_NBIO
+ bool "Enable NBIO messages"
+ default y
+ help
+ Enable printing NBIO related messages.
+
+config OPENSIL_DEBUG_CCX
+ bool "Enable CCX messages"
+ default y
+ help
+ Enable printing CCX related messages.
+
+config OPENSIL_DEBUG_SMU
+ bool "Enable SMU messages"
+ default y
+ help
+ Enable printing SMU related messages.
+
+config OPENSIL_DEBUG_DF
+ bool "Enable DF messages"
+ default y
+ help
+ Enable printing DF related messages.
+
+config OPENSIL_DEBUG_MEM
+ bool "Enable MEM messages"
+ default y
+ help
+ Enable printing MEM related messages.
+
+config OPENSIL_DEBUG_FCH
+ bool "Enable FCH messages"
+ default y
+ help
+ Enable printing FCH related messages.
+
+config OPENSIL_DEBUG_RAS
+ bool "Enable RAS messages"
+ default y
+ help
+ Enable printing RAS related messages.
+
+endif # OPENSIL_DEBUG_OUTPUT
+
+endif # SOC_AMD_OPENSIL