From 9ed8a82d265fde1df1a01be7568d8f0979020108 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Tue, 3 Dec 2013 21:25:35 -0800 Subject: serial: Separate the serial hardware init and the serial console init. You might want to use the serial hardware for something other than a console, or you might want to intercede in the serial stream to wrap it in another protocol. This is what you'd do to send output to GDB while using it to debug the payload. Change-Id: I2218c0dbb988dacb64e5bdaf5d92138828eff8b6 Signed-off-by: Gabe Black Reviewed-on: https://chromium-review.googlesource.com/179559 Reviewed-by: Ronald Minnich Reviewed-by: David Hendricks Commit-Queue: Gabe Black Tested-by: Gabe Black (cherry picked from commit da9ab46d974745125fe7d8b29ce43336c3586cd5) Signed-off-by: Isaac Christensen Reviewed-on: http://review.coreboot.org/6547 Tested-by: build bot (Jenkins) --- payloads/libpayload/include/libpayload.h | 1 + 1 file changed, 1 insertion(+) (limited to 'payloads/libpayload/include') diff --git a/payloads/libpayload/include/libpayload.h b/payloads/libpayload/include/libpayload.h index 29b5629348..753449d37d 100644 --- a/payloads/libpayload/include/libpayload.h +++ b/payloads/libpayload/include/libpayload.h @@ -163,6 +163,7 @@ int keyboard_set_layout(char *country); * @{ */ void serial_init(void); +void serial_console_init(void); void serial_putchar(unsigned int c); int serial_havechar(void); int serial_getchar(void); -- cgit v1.2.3