summaryrefslogtreecommitdiff
path: root/src/console
diff options
context:
space:
mode:
authorLee Leahy <leroy.p.leahy@intel.com>2016-07-31 11:53:28 -0700
committerPatrick Georgi <pgeorgi@google.com>2016-08-01 21:40:23 +0200
commit049b46270d63c47db75b27246555c904e42fe9e2 (patch)
tree4b960b65f2309d8f979682d00e3b40ca1da1cc87 /src/console
parentf67e2cf9cf7a20e645ab2452c4b40e512bd21f50 (diff)
downloadcoreboot-049b46270d63c47db75b27246555c904e42fe9e2.tar.xz
arch/x86: Enable postcar console
Add a Kconfig value to enable the console during postcar. Add a call to console_init at the beginning of the postcar stage in exit_car.S. TEST=Build and run on Galileo Gen2 Change-Id: I66e2ec83344129ede2c7d6e5627c8062e28f50ad Signed-off-by: Lee Leahy <leroy.p.leahy@intel.com> Reviewed-on: https://review.coreboot.org/16001 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src/console')
-rw-r--r--src/console/Kconfig7
-rw-r--r--src/console/init.c2
2 files changed, 8 insertions, 1 deletions
diff --git a/src/console/Kconfig b/src/console/Kconfig
index 90fb426cee..e945c259d7 100644
--- a/src/console/Kconfig
+++ b/src/console/Kconfig
@@ -7,6 +7,13 @@ config BOOTBLOCK_CONSOLE
help
Use console during the bootblock if supported
+config POSTCAR_CONSOLE
+ bool "Enable console output during postcar."
+ depends on POSTCAR_STAGE
+ default n
+ help
+ Use console during the postcar if supported
+
config SQUELCH_EARLY_SMP
bool "Squelch AP CPUs from early console."
default y
diff --git a/src/console/init.c b/src/console/init.c
index 8f40abbe37..189079b98f 100644
--- a/src/console/init.c
+++ b/src/console/init.c
@@ -30,7 +30,7 @@ int console_log_level(int msg_level)
return (console_loglevel >= msg_level);
}
-void console_init(void)
+asmlinkage void console_init(void)
{
#if !defined(__PRE_RAM__)
console_loglevel = CONFIG_DEFAULT_CONSOLE_LOGLEVEL;