Ahamed Husni has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/67341 )
Change subject: src/console: attach smbus console driver ......................................................................
src/console: attach smbus console driver
Change-Id: I3a9bf64e59d529253bfdcdfa565bb2bb92975728 Signed-off-by: Husni Faiz ahamedhusni73@gmail.com --- M src/console/console.c A src/drivers/smbus/Makefile.inc 2 files changed, 19 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/41/67341/1
diff --git a/src/console/console.c b/src/console/console.c index f37f120..1724f9d 100644 --- a/src/console/console.c +++ b/src/console/console.c @@ -10,6 +10,7 @@ #include <console/spi.h> #include <console/flash.h> #include <console/system76_ec.h> +#include <console/i2c_smbus.h>
/* Note: when adding a new console, make sure you update the definition of HAS_ONLY_FAST_CONSOLES in <console.h>! */ @@ -25,6 +26,7 @@ __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 @@ /* 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 @@ __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) diff --git a/src/drivers/smbus/Makefile.inc b/src/drivers/smbus/Makefile.inc new file mode 100644 index 0000000..271b6b7 --- /dev/null +++ b/src/drivers/smbus/Makefile.inc @@ -0,0 +1,5 @@ +ifeq ($(CONFIG_CONSOLE_I2C_SMBUS),y) +bootblock-y += i2c_smbus_console.c +romstage-y += i2c_smbus_console.c +ramstage-y += i2c_smbus_console.c +endif \ No newline at end of file