Skip to content
Snippets Groups Projects
Commit c10c8e31 authored by Simon Glass's avatar Simon Glass
Browse files

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: default avatarSimon Glass <sjg@chromium.org>
Acked-by: default avatarChristophe <Ricard&lt;christophe-h.ricard@st.com>
Reviewed-by: default avatarHeiko Schocher <hs@denx.de>
parent c8a8c510
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment