summaryrefslogtreecommitdiff
path: root/src/include/console
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2019-02-12 14:16:21 +0200
committerPatrick Georgi <pgeorgi@google.com>2019-02-27 11:10:00 +0000
commite613d704d12592dfc371d81957a3d83b0742fa7d (patch)
treeb21785796ec4446f1c18c74526e22a97b5cd7318 /src/include/console
parent7132f259bf83f1118893550c0bc914c11081ea84 (diff)
downloadcoreboot-e613d704d12592dfc371d81957a3d83b0742fa7d.tar.xz
console: Split loglevel for fast and slow
For fast CBMEM console use minimum BIOS_DEBUG level. For other consoles, Kconfig and/or nvram settings apply. Change-Id: Iff56a0a3182f258200cac80e013957d598cc2130 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/31370 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'src/include/console')
-rw-r--r--src/include/console/console.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/console/console.h b/src/include/console/console.h
index 33fe2dfd17..2b02334c8e 100644
--- a/src/include/console/console.h
+++ b/src/include/console/console.h
@@ -62,6 +62,8 @@ void do_putchar(unsigned char byte);
#define printk(LEVEL, fmt, args...) \
do { do_printk(LEVEL, fmt, ##args); } while (0)
+enum { CONSOLE_LOG_NONE = 0, CONSOLE_LOG_FAST, CONSOLE_LOG_ALL };
+
#if IS_ENABLED(CONFIG_CONSOLE_OVERRIDE_LOGLEVEL)
/*
* This function should be implemented at mainboard level.