summaryrefslogtreecommitdiff
path: root/board/toradex/apalis_t30
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-01-25 15:26:55 (GMT)
committerSimon Glass <sjg@chromium.org>2015-01-30 00:09:53 (GMT)
commit25ab4b0303f2df5e6b94ed92e37875a7c98f4de3 (patch)
treef8fecc4b22da4c7fe5c4e6d6a6623459e255af47 /board/toradex/apalis_t30
parent73845350b6281a7afeeb279475e6eb613d7a89f9 (diff)
downloadu-boot-fsl-qoriq-25ab4b0303f2df5e6b94ed92e37875a7c98f4de3.tar.xz
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/toradex/apalis_t30')
-rw-r--r--board/toradex/apalis_t30/apalis_t30.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/toradex/apalis_t30/apalis_t30.c b/board/toradex/apalis_t30/apalis_t30.c
index 1c4b4c1..6244214 100644
--- a/board/toradex/apalis_t30/apalis_t30.c
+++ b/board/toradex/apalis_t30/apalis_t30.c
@@ -42,7 +42,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("%s: Cannot find PMIC I2C chip\n", __func__);
return err;