From a3e2413f589b0c167014f1013e5b2d9b05e30f04 Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Thu, 29 Aug 2013 15:59:33 -0700 Subject: [PATCH] ARMv7: Expose console_tx_flush in early console This is needed by some drivers and use cases (mostly around ChromeOS functionality on ARM) Signed-off-by: Stefan Reinauer BRANCH=none TEST=compile tested, no functional change BUG=none Change-Id: I38dfdcb4c2e3dde1e94315828a195b077660b4ff Reviewed-on: https://chromium-review.googlesource.com/167541 Reviewed-by: Stefan Reinauer Tested-by: Stefan Reinauer Commit-Queue: Stefan Reinauer --- src/arch/armv7/early_console.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/arch/armv7/early_console.c b/src/arch/armv7/early_console.c index 84f97ba749..26f3df2d30 100644 --- a/src/arch/armv7/early_console.c +++ b/src/arch/armv7/early_console.c @@ -46,7 +46,7 @@ void console_tx_byte(unsigned char byte) #endif } -static void _console_tx_flush(void) +void console_tx_flush(void) { #if CONFIG_CONSOLE_SERIAL8250MEM uart8250_mem_tx_flush(CONFIG_OXFORD_OXPCIE_BASE_ADDRESS + 0x1000); @@ -75,7 +75,7 @@ int do_printk(int msg_level, const char *fmt, ...) i = vtxprintf(console_tx_byte, fmt, args); va_end(args); - _console_tx_flush(); + console_tx_flush(); return i; }