diff options
author | Simon Glass <sjg@chromium.org> | 2014-12-10 08:55:57 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2014-12-11 13:18:44 -0700 |
commit | b0e6ef46405353270595ffa35c21f4334c541189 (patch) | |
tree | 919f435acfe6b7276e465deecdc777631155f158 /include/tps6586x.h | |
parent | a6c7b461814028870697182d19383ef5b370c257 (diff) | |
download | u-boot-imx-b0e6ef46405353270595ffa35c21f4334c541189.zip u-boot-imx-b0e6ef46405353270595ffa35c21f4334c541189.tar.gz u-boot-imx-b0e6ef46405353270595ffa35c21f4334c541189.tar.bz2 |
dm: i2c: tegra: Convert to driver model
This converts all Tegra boards over to use driver model for I2C. The driver
is adjusted to use driver model and the following obsolete CONFIGs are
removed:
- CONFIG_SYS_I2C_INIT_BOARD
- CONFIG_I2C_MULTI_BUS
- CONFIG_SYS_MAX_I2C_BUS
- CONFIG_SYS_I2C_SPEED
- CONFIG_SYS_I2C
This has been tested on:
- trimslice (no I2C)
- beaver
- Jetson-TK1
It has not been tested on Tegra 114 as I don't have that board.
Acked-by: Heiko Schocher <hs@denx.de>
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/tps6586x.h')
-rw-r--r-- | include/tps6586x.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/tps6586x.h b/include/tps6586x.h index 78ce428..eefc95f 100644 --- a/include/tps6586x.h +++ b/include/tps6586x.h @@ -44,9 +44,9 @@ int tps6586x_adjust_sm0_sm1(int sm0_target, int sm1_target, int step, int rate, * Set up the TPS6586X I2C bus number. This will be used for all operations * on the device. This function must be called before using other functions. * - * @param bus I2C bus number containing the TPS6586X chip + * @param bus I2C bus containing the TPS6586X chip * @return 0 (always succeeds) */ -int tps6586x_init(int bus); +int tps6586x_init(struct udevice *bus); #endif /* _TPS6586X_H_ */ |