mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-10-01 09:00:45 +09:00
tsi108_i2c: Add i2c_init() stub function
Add the i2c_init() function so that the tsi108_i2c.c driver fits U-Boot's standard I2C API which is utilized by cmd_i2c.c Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
This commit is contained in:
parent
8d907e79bc
commit
f0722ee762
@ -41,6 +41,15 @@
|
|||||||
/* All functions assume that Tsi108 I2C block is the only master on the bus */
|
/* All functions assume that Tsi108 I2C block is the only master on the bus */
|
||||||
/* I2C read helper function */
|
/* I2C read helper function */
|
||||||
|
|
||||||
|
void i2c_init(int speed, int slaveaddr)
|
||||||
|
{
|
||||||
|
/*
|
||||||
|
* The TSI108 has a fixed I2C clock rate and doesn't support slave
|
||||||
|
* operation. This function only exists as a stub to fit into the
|
||||||
|
* U-Boot I2C API.
|
||||||
|
*/
|
||||||
|
}
|
||||||
|
|
||||||
static int i2c_read_byte (
|
static int i2c_read_byte (
|
||||||
uint i2c_chan, /* I2C channel number: 0 - main, 1 - SDC SPD */
|
uint i2c_chan, /* I2C channel number: 0 - main, 1 - SDC SPD */
|
||||||
uchar chip_addr,/* I2C device address on the bus */
|
uchar chip_addr,/* I2C device address on the bus */
|
||||||
|
Loading…
Reference in New Issue
Block a user