From f634aed758e2c4822ea1512a9d828572bdf4e459 Mon Sep 17 00:00:00 2001 From: Husni Faiz Date: Fri, 9 Sep 2022 17:46:56 +0530 Subject: [PATCH] console: attach smbus console driver This patch attaches the smbus console functions to the high level console interface. Change-Id: I3a9bf64e59d529253bfdcdfa565bb2bb92975728 Signed-off-by: Husni Faiz Reviewed-on: https://review.coreboot.org/c/coreboot/+/67341 Reviewed-by: Raul Rangel Tested-by: build bot (Jenkins) --- src/console/console.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/console/console.c b/src/console/console.c index f37f120f82..1724f9d1bb 100644 --- a/src/console/console.c +++ b/src/console/console.c @@ -10,6 +10,7 @@ #include #include #include +#include /* Note: when adding a new console, make sure you update the definition of HAS_ONLY_FAST_CONSOLES in ! */ @@ -25,6 +26,7 @@ void console_hw_init(void) __spiconsole_init(); __flashconsole_init(); __system76_ec_init(); + __i2c_smbus_console_init(); } void console_interactive_tx_byte(unsigned char byte, void *data_unused) @@ -33,6 +35,7 @@ void console_interactive_tx_byte(unsigned char byte, void *data_unused) /* Some consoles want newline conversion to keep terminals happy. */ __uart_tx_byte('\r'); __usb_tx_byte('\r'); + __i2c_smbus_console_tx_byte('\r'); } __spkmodem_tx_byte(byte); @@ -42,6 +45,7 @@ void console_interactive_tx_byte(unsigned char byte, void *data_unused) __usb_tx_byte(byte); __spiconsole_tx_byte(byte); __system76_ec_tx_byte(byte); + __i2c_smbus_console_tx_byte(byte); } void console_stored_tx_byte(unsigned char byte, void *data_unused)