commit | 9b606d6a2fe0f91cc201a67ee2003a1dd639353d | [log] [tgz] |
---|---|---|
author | Moritz Fischer <moritz.fischer@ettus.com> | Thu Jan 12 09:47:30 2017 -0800 |
committer | Simon Glass <sjg@chromium.org> | Wed Feb 08 06:07:13 2017 -0700 |
tree | 74fc5cc863b33283478d19f2299a223c5bfa365c | |
parent | 229993846e887e1d0c4c7f1a4462292028bda333 [diff] |
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: Moritz Fischer <moritz.fischer@ettus.com> Cc: Simon Glass <sjg@chromium.org> Cc: u-boot@lists.denx.de Acked-by: Simon Glass <sjg@chromium.org> Tested on snow: Tested-by: Simon Glass <sjg@chromium.org>