soc/intel/ptl: Update ME specification version to 21
[coreboot.git] / src / drivers / smbus / i2c_smbus_console.c
blob00b53931e74d4c4133aac06e4afa129383a916e1
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))
11 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);
20 } else {
21 do_smbus_send_byte(CONFIG_FIXED_SMBUS_IO_BASE,
22 CONFIG_CONSOLE_I2C_SMBUS_SLAVE_ADDRESS, c);