summaryrefslogtreecommitdiffstats
path: root/src/soc/intel/broadwell/me_status.c
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2019-11-06 06:32:27 +0200
committerPatrick Georgi <pgeorgi@google.com>2019-11-08 07:49:15 +0000
commitc86fc8e63d81251a5da80ed55e4fbc9900a900d9 (patch)
tree66cefc92a8cb97ac02693b4df42ec30fb77337a8 /src/soc/intel/broadwell/me_status.c
parent82c0e7e3d50cca20ed98d650d511071329e9f3a0 (diff)
downloadcoreboot-c86fc8e63d81251a5da80ed55e4fbc9900a900d9.tar.gz
coreboot-c86fc8e63d81251a5da80ed55e4fbc9900a900d9.tar.bz2
coreboot-c86fc8e63d81251a5da80ed55e4fbc9900a900d9.zip
sb,soc/intel: Reduce preprocessor use with ME debugging
Change-Id: Iedd54730f140b6a7a40834f00d558ed99a345077 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/36639 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src/soc/intel/broadwell/me_status.c')
-rw-r--r--src/soc/intel/broadwell/me_status.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/soc/intel/broadwell/me_status.c b/src/soc/intel/broadwell/me_status.c
index 08fd48f845cf..1880da158bda 100644
--- a/src/soc/intel/broadwell/me_status.c
+++ b/src/soc/intel/broadwell/me_status.c
@@ -34,8 +34,6 @@ static inline void me_read_dword_ptr(void *ptr, int offset)
memcpy(ptr, &dword, sizeof(dword));
}
-#if (CONFIG_DEFAULT_CONSOLE_LOGLEVEL >= BIOS_DEBUG)
-
/* HFS1[3:0] Current Working State Values */
static const char *me_cws_values[] = {
[ME_HFS_CWS_RESET] = "Reset",
@@ -210,6 +208,9 @@ static const char *me_progress_policy_values[] = {
void intel_me_status(void)
{
+ if (CONFIG_DEFAULT_CONSOLE_LOGLEVEL < BIOS_DEBUG)
+ return;
+
struct me_hfs _hfs, *hfs = &_hfs;
struct me_hfs2 _hfs2, *hfs2 = &_hfs2;
@@ -302,7 +303,6 @@ void intel_me_status(void)
}
printk(BIOS_DEBUG, "\n");
}
-#endif
void intel_me_hsio_version(uint16_t *version, uint16_t *checksum)
{