1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <console/i2c_smbus.h>
4 #include <device/smbus_host.h>
5 #include <southbridge/intel/bd82x6x/pch.h>
6 #include "sc16is7xx_init.h"
8 void i2c_smbus_console_init(void)
10 if (CONFIG(SC16IS7XX_INIT
))
14 void i2c_smbus_console_tx_byte(unsigned char c
)
16 if (CONFIG(CONSOLE_I2C_SMBUS_HAVE_DATA_REGISTER
)) {
17 do_smbus_write_byte(CONFIG_FIXED_SMBUS_IO_BASE
,
18 CONFIG_CONSOLE_I2C_SMBUS_SLAVE_ADDRESS
,
19 CONFIG_CONSOLE_I2C_SMBUS_SLAVE_DATA_REGISTER
, c
);
21 do_smbus_send_byte(CONFIG_FIXED_SMBUS_IO_BASE
,
22 CONFIG_CONSOLE_I2C_SMBUS_SLAVE_ADDRESS
, c
);