Add EM100 'hyper term' spi console support in ramstage & smm
The EM100Pro allows the debug console to be sent over the SPI bus. This is not yet working in romstage due to the use of static variables in the SPI driver code. It is also not working on chipsets that have SPI write buffers of less than 10 characters due to the 9 byte command/header length specified by the EM100 protocol. While this currently works only with the EM100, it seems like it would be useful on any logic analyzer with SPI debug - just filter on command bytes of 0x11. Change-Id: Icd42ccd96cab0a10a4e70f4b02ecf9de8169564b Signed-off-by: Martin Roth <martinroth@google.com> Reviewed-on: http://review.coreboot.org/11743 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
parent
f35f5ff3cd
commit
3a54318856
12 changed files with 169 additions and 0 deletions
|
|
@ -24,6 +24,7 @@
|
|||
#include <console/streams.h>
|
||||
#include <console/uart.h>
|
||||
#include <console/usb.h>
|
||||
#include <console/spi.h>
|
||||
#include <rules.h>
|
||||
|
||||
void console_hw_init(void)
|
||||
|
|
@ -35,6 +36,7 @@ void console_hw_init(void)
|
|||
__uart_init();
|
||||
__ne2k_init();
|
||||
__usbdebug_init();
|
||||
__spiconsole_init();
|
||||
}
|
||||
|
||||
void console_tx_byte(unsigned char byte)
|
||||
|
|
@ -54,6 +56,7 @@ void console_tx_byte(unsigned char byte)
|
|||
__uart_tx_byte(byte);
|
||||
__ne2k_tx_byte(byte);
|
||||
__usb_tx_byte(byte);
|
||||
__spiconsole_tx_byte(byte);
|
||||
}
|
||||
|
||||
void console_tx_flush(void)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue