2022-09-05 11:53:15 +02:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
|
|
|
|
|
|
#include <console/i2c_smbus.h>
|
|
|
|
#include <device/smbus_host.h>
|
|
|
|
#include <southbridge/intel/bd82x6x/pch.h>
|
2022-09-09 14:19:53 +02:00
|
|
|
#include "sc16is7xx_init.h"
|
2022-09-05 11:53:15 +02:00
|
|
|
|
2022-09-09 14:19:53 +02:00
|
|
|
void i2c_smbus_console_init(void)
|
|
|
|
{
|
|
|
|
if (CONFIG(SC16IS7XX_INIT))
|
|
|
|
sc16is7xx_init();
|
|
|
|
}
|
2022-09-05 11:53:15 +02:00
|
|
|
|
|
|
|
void i2c_smbus_console_tx_byte(unsigned char c)
|
|
|
|
{
|
|
|
|
do_smbus_write_byte(CONFIG_FIXED_SMBUS_IO_BASE,
|
|
|
|
CONFIG_CONSOLE_I2C_SMBUS_SLAVE_ADDRESS,
|
|
|
|
CONFIG_CONSOLE_I2C_SMBUS_SLAVE_DATA_REGISTER, c);
|
|
|
|
}
|