diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2014-02-27 19:30:18 +0200 |
---|---|---|
committer | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2014-04-18 16:39:19 +0200 |
commit | 4076072b6c76debae0e328486d9bab71fe391db7 (patch) | |
tree | 9c0ac4e1c9e65b15d6923cf3c41e4aaccf209b8b /src/console/init.c | |
parent | fd95624dae22b00e00417dbfa1c0a4a4a40193c0 (diff) |
console: Use romstage code for ramstage and SMM
Console is arch-agnostic and there is no need for separate
implementations for romstage and ramstage.
For SMM there is console only if DEBUG_SMI is selected.
Change-Id: I7028eeeff8bfbb9c8552972436b29a7508834d87
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: http://review.coreboot.org/5338
Tested-by: build bot (Jenkins)
Reviewed-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
Diffstat (limited to 'src/console/init.c')
-rw-r--r-- | src/console/init.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/console/init.c b/src/console/init.c index d7c8cc36b0..8bdb2cc054 100644 --- a/src/console/init.c +++ b/src/console/init.c @@ -22,6 +22,7 @@ #include <build.h> #include <console/console.h> #include <console/uart.h> +#include <console/streams.h> #include <option.h> #if CONFIG_EARLY_PCI_BRIDGE @@ -46,7 +47,7 @@ void console_init(void) console_loglevel=CONFIG_DEFAULT_CONSOLE_LOGLEVEL; #endif -#if CONFIG_EARLY_PCI_BRIDGE +#if CONFIG_EARLY_PCI_BRIDGE && !defined(__SMM__) pci_early_bridge_init(); #endif |