summaryrefslogtreecommitdiff
path: root/src/console
diff options
context:
space:
mode:
authorHusni Faiz <ahamedhusni73@gmail.com>2022-09-09 17:46:56 +0530
committerMartin L Roth <gaumless@gmail.com>2022-09-16 17:03:49 +0000
commitf634aed758e2c4822ea1512a9d828572bdf4e459 (patch)
tree070a784d352d4817470baf33539f372527dd0feb /src/console
parentf571ce5c67170037bb864465d96972fb63116561 (diff)
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 <ahamedhusni73@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/67341 Reviewed-by: Raul Rangel <rrangel@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/console')
-rw-r--r--src/console/console.c4
1 files changed, 4 insertions, 0 deletions
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 <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 @@ 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)