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>
This commit is contained in:
committed by
Felix Held
parent
d7b7460d6e
commit
a02176debb
@@ -72,7 +72,7 @@ enum { CONSOLE_LOG_NONE = 0, CONSOLE_LOG_FAST, CONSOLE_LOG_ALL };
|
||||
#define HAS_ONLY_FAST_CONSOLES !(CONFIG(SPKMODEM) || CONFIG(CONSOLE_QEMU_DEBUGCON) || \
|
||||
CONFIG(CONSOLE_SERIAL) || CONFIG(CONSOLE_NE2K) || CONFIG(CONSOLE_USB) || \
|
||||
CONFIG(EM100PRO_SPI_CONSOLE) || CONFIG(CONSOLE_SPI_FLASH) || \
|
||||
CONFIG(CONSOLE_SYSTEM76_EC))
|
||||
CONFIG(CONSOLE_SYSTEM76_EC) || CONFIG(CONSOLE_AMD_SIMNOW))
|
||||
|
||||
#else
|
||||
static inline int get_log_level(void) { return -1; }
|
||||
|
28
src/include/console/simnow.h
Normal file
28
src/include/console/simnow.h
Normal file
@@ -0,0 +1,28 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
|
||||
#ifndef CONSOLE_SIMNOW_H
|
||||
#define CONSOLE_SIMNOW_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
void simnow_console_init(void);
|
||||
void simnow_console_tx_byte(unsigned char data);
|
||||
|
||||
#define __SIMNOW_CONSOLE_ENABLE__ CONFIG(CONSOLE_AMD_SIMNOW)
|
||||
|
||||
#if __SIMNOW_CONSOLE_ENABLE__
|
||||
static inline void __simnow_console_init(void)
|
||||
{
|
||||
simnow_console_init();
|
||||
}
|
||||
|
||||
static inline void __simnow_console_tx_byte(u8 data)
|
||||
{
|
||||
simnow_console_tx_byte(data);
|
||||
}
|
||||
#else
|
||||
static inline void __simnow_console_init(void) {}
|
||||
static inline void __simnow_console_tx_byte(u8 data) {}
|
||||
#endif
|
||||
|
||||
#endif /* CONSOLE_SIMNOW_H */
|
Reference in New Issue
Block a user