summaryrefslogtreecommitdiffstats
path: root/src/console
diff options
context:
space:
mode:
authorFred Reitberger <reitbergerfred@gmail.com>2023-02-01 16:00:54 -0500
committerFelix Held <felix-coreboot@felixheld.de>2023-02-09 10:01:20 +0000
commita02176debb88a6e838c3b5f888010ae138b79127 (patch)
tree3b2df0135653dc16ca2a20e1d5d758d258159f60 /src/console
parentd7b7460d6e8a9fbd32c41e91a9d00dc536953310 (diff)
downloadcoreboot-a02176debb88a6e838c3b5f888010ae138b79127.tar.gz
coreboot-a02176debb88a6e838c3b5f888010ae138b79127.tar.bz2
coreboot-a02176debb88a6e838c3b5f888010ae138b79127.zip
console: Add SimNow console logging
The AMD SimNow tool supports fast logging through an IO port. Add a new console to support SimNow logging through port 80. TEST=observe significant speed improvements on SimNow console log Signed-off-by: Fred Reitberger <reitbergerfred@gmail.com> Change-Id: I42a431f48ea14ba4adacbd4a32e15abe7c5e4951 Reviewed-on: https://review.coreboot.org/c/coreboot/+/72751 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Diffstat (limited to 'src/console')
-rw-r--r--src/console/Kconfig8
-rw-r--r--src/console/console.c3
2 files changed, 11 insertions, 0 deletions
diff --git a/src/console/Kconfig b/src/console/Kconfig
index c6aec18b090e..721cc60e2bcc 100644
--- a/src/console/Kconfig
+++ b/src/console/Kconfig
@@ -367,6 +367,14 @@ config CONSOLE_SYSTEM76_EC
help
Send coreboot debug output to a System76 embedded controller.
+config CONSOLE_AMD_SIMNOW
+ bool "AMD SimNow console output"
+ default n
+ depends on SOC_AMD_COMMON && !POST_IO
+ select CONSOLE_POST
+ help
+ Send coreboot debug output to IO ports for SimNow
+
config CONSOLE_OVERRIDE_LOGLEVEL
bool
help
diff --git a/src/console/console.c b/src/console/console.c
index 499a336efbbb..9a079ed60aa2 100644
--- a/src/console/console.c
+++ b/src/console/console.c
@@ -5,6 +5,7 @@
#include <console/i2c_smbus.h>
#include <console/ne2k.h>
#include <console/qemu_debugcon.h>
+#include <console/simnow.h>
#include <console/spi.h>
#include <console/spkmodem.h>
#include <console/streams.h>
@@ -28,6 +29,7 @@ void console_hw_init(void)
__flashconsole_init();
__system76_ec_init();
__i2c_smbus_console_init();
+ __simnow_console_init();
}
void console_interactive_tx_byte(unsigned char byte, void *data_unused)
@@ -47,6 +49,7 @@ void console_interactive_tx_byte(unsigned char byte, void *data_unused)
__spiconsole_tx_byte(byte);
__system76_ec_tx_byte(byte);
__i2c_smbus_console_tx_byte(byte);
+ __simnow_console_tx_byte(byte);
}
void console_stored_tx_byte(unsigned char byte, void *data_unused)