Skip to content
Snippets Groups Projects
Commit e9b25f2e authored by Moritz Fischer's avatar Moritz Fischer Committed by Simon Glass
Browse files

cros_ec: i2c: Group i2c write / read into single transaction


Replace dm_i2c_write() / dm_i2c_read() with transaction using
struct i2c_msg[2] in order to allow for i2c controller to detect
write/read cycle to emit a repeated start condition.

Signed-off-by: default avatarMoritz Fischer <moritz.fischer@ettus.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: u-boot@lists.denx.de
Acked-by: default avatarSimon Glass <sjg@chromium.org>
Tested on snow:
Tested-by: default avatarSimon Glass <sjg@chromium.org>
parent 136026f1
No related branches found
No related tags found
Loading
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