diff options
author | Sven Schnelle <svens@stackframe.org> | 2012-07-26 14:31:40 +0200 |
---|---|---|
committer | Patrick Georgi <patrick@georgi-clan.de> | 2012-07-26 15:52:00 +0200 |
commit | 82704c63b98202fe2a24032697369cd190202d3f (patch) | |
tree | e1893f92423bd4e4c111fb57fe54429327dbf9cb /src/arch/x86 | |
parent | 0b7b7b6334de592b82d36ee47bc25b1b72043681 (diff) |
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>
Diffstat (limited to 'src/arch/x86')
-rw-r--r-- | src/arch/x86/lib/romstage_console.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/arch/x86/lib/romstage_console.c b/src/arch/x86/lib/romstage_console.c index 25eda9b22e..af2944d52c 100644 --- a/src/arch/x86/lib/romstage_console.c +++ b/src/arch/x86/lib/romstage_console.c @@ -44,7 +44,7 @@ static 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); @@ -65,6 +65,9 @@ static void console_tx_flush(void) #if CONFIG_CONSOLE_NE2K ne2k_transmit(CONFIG_CONSOLE_NE2K_IO_PORT); #endif +#if CONFIG_USBDEBUG + usbdebug_tx_flush(0); +#endif } int do_printk(int msg_level, const char *fmt, ...) |