diff options
author | Simon Glass <sjg@chromium.org> | 2015-01-25 08:26:55 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2015-01-29 17:09:53 -0700 |
commit | 25ab4b0303f2df5e6b94ed92e37875a7c98f4de3 (patch) | |
tree | f8fecc4b22da4c7fe5c4e6d6a6623459e255af47 /board/nvidia/cardhu | |
parent | 73845350b6281a7afeeb279475e6eb613d7a89f9 (diff) | |
download | u-boot-imx-25ab4b0303f2df5e6b94ed92e37875a7c98f4de3.zip u-boot-imx-25ab4b0303f2df5e6b94ed92e37875a7c98f4de3.tar.gz u-boot-imx-25ab4b0303f2df5e6b94ed92e37875a7c98f4de3.tar.bz2 |
dm: i2c: Provide an offset length parameter where needed
Rather than assuming that the chip offset length is 1, allow it to be
provided. This allows chips that don't use the default offset length to
be used (at present they are only supported by the command line 'i2c'
command which sets the offset length explicitly).
Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'board/nvidia/cardhu')
-rw-r--r-- | board/nvidia/cardhu/cardhu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/board/nvidia/cardhu/cardhu.c b/board/nvidia/cardhu/cardhu.c index fc31d29..1540526 100644 --- a/board/nvidia/cardhu/cardhu.c +++ b/board/nvidia/cardhu/cardhu.c @@ -46,7 +46,7 @@ void board_sdmmc_voltage_init(void) int ret; int i; - ret = i2c_get_chip_for_busnum(0, PMU_I2C_ADDRESS, &dev); + ret = i2c_get_chip_for_busnum(0, PMU_I2C_ADDRESS, 1, &dev); if (ret) { debug("%s: Cannot find PMIC I2C chip\n", __func__); return; @@ -94,7 +94,7 @@ int tegra_pcie_board_init(void) u8 addr, data[1]; int err; - err = i2c_get_chip_for_busnum(0, PMU_I2C_ADDRESS, &dev); + err = i2c_get_chip_for_busnum(0, PMU_I2C_ADDRESS, 1, &dev); if (err) { debug("failed to find PMU bus\n"); return err; |