]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
dm: i2c: Add a command to adjust the offset length
authorSimon Glass <sjg@chromium.org>
Sun, 23 Aug 2015 00:31:33 +0000 (18:31 -0600)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 10:19:17 +0000 (12:19 +0200)
commitdd96f05f6f02676eff9b4d0d3eed5db7c228e14a
treeb4ef2e815b50743586b5327d2a7a21cf0da79888
parentd62d50c84a2791a2c8f7a60a32aa981df1130605
dm: i2c: Add a command to adjust the offset length

I2C chips can support a register offset, with registers accessible by
sending this offset as the first part of any read or write transaction.
Most I2C chips have a single byte offset, thus the offset length is 1.
This provides access for up 256 registers.

However other offset lengths are supported, including 0.

Add a command to provide access to the offset length from the command
line. This allows the offset length to be read or written.

Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Christophe Ricard<christophe-h.ricard@st.com>
Reviewed-by: Heiko Schocher <hs@denx.de>
common/cmd_i2c.c