diff options
author | Peter Tyser <ptyser@xes-inc.com> | 2009-04-24 15:34:09 -0500 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2009-06-12 20:39:45 +0200 |
commit | f0722ee762e8dada9d7f74ac2745e043f83aae85 (patch) | |
tree | 80496c734fdf2e96cb1dc3a466ad26766dcd798f /drivers | |
parent | 8d907e79bc9babb27396e34be54cfdc36ff62fb9 (diff) | |
download | u-boot-f0722ee762e8dada9d7f74ac2745e043f83aae85.tar.gz u-boot-f0722ee762e8dada9d7f74ac2745e043f83aae85.tar.xz u-boot-f0722ee762e8dada9d7f74ac2745e043f83aae85.zip |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/i2c/tsi108_i2c.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/i2c/tsi108_i2c.c b/drivers/i2c/tsi108_i2c.c index fda822c52d..3829ef98f6 100644 --- a/drivers/i2c/tsi108_i2c.c +++ b/drivers/i2c/tsi108_i2c.c @@ -41,6 +41,15 @@ /* All functions assume that Tsi108 I2C block is the only master on the bus */ /* 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 ( uint i2c_chan, /* I2C channel number: 0 - main, 1 - SDC SPD */ uchar chip_addr,/* I2C device address on the bus */ |