USBDEBUG: buffer up to 8 bytes

EHCI debug allows to send message with 8 bytes length, but
we're only sending one byte in each transaction. Buffer up
to 8 bytes to speed up debug output.

Change-Id: I9dbb406833c4966c3afbd610e1b13a8fa3d62f39
Signed-off-by: Sven Schnelle <svens@stackframe.org>
Reviewed-on: http://review.coreboot.org/1357
Tested-by: build bot (Jenkins)
Reviewed-by: Nico Huber <nico.huber@secunet.com>
This commit is contained in:
Sven Schnelle
2012-07-26 14:31:40 +02:00
committed by Patrick Georgi
parent 0b7b7b6334
commit 82704c63b9
5 changed files with 45 additions and 14 deletions

View File

@@ -32,8 +32,9 @@ static u32 serial8250mem_base_address = 0;
void console_tx_flush(void)
{
// the tx_byte functions take care of the flush.
// if not, this should be implemented.
#if CONFIG_USBDEBUG
usbdebug_tx_flush(0);
#endif
}
void console_tx_byte(unsigned char byte)
@@ -49,7 +50,7 @@ void console_tx_byte(unsigned char byte)
uart8250_tx_byte(CONFIG_TTYS0_BASE, byte);
#endif
#if CONFIG_USBDEBUG
usbdebug_tx_byte(byte);
usbdebug_tx_byte(0, byte);
#endif
#if CONFIG_CONSOLE_NE2K
ne2k_append_data(&byte, 1, CONFIG_CONSOLE_NE2K_IO_PORT);