diff options
author | Lubomir Popov <lpopov@mm-sol.com> | 2015-01-30 19:56:04 +0200 |
---|---|---|
committer | Heiko Schocher <hs@denx.de> | 2015-02-19 09:03:40 +0100 |
commit | ed16f14689b98c1ec98c9f30b92b8edea9d2d60c (patch) | |
tree | 13633060b0a9abb3bff2635ddda6f199e9efb781 /configs/pm9263_defconfig | |
parent | 9e533cb0462a7d28ec14a816ea627d38ce48dbf3 (diff) | |
download | u-boot-imx-ed16f14689b98c1ec98c9f30b92b8edea9d2d60c.zip u-boot-imx-ed16f14689b98c1ec98c9f30b92b8edea9d2d60c.tar.gz u-boot-imx-ed16f14689b98c1ec98c9f30b92b8edea9d2d60c.tar.bz2 |
cmd_i2c: Provide option for bulk 'i2c write' in one transaction
I2C chips do exist that require a write of some multi-byte data to occur in
a single bus transaction (aka atomic transfer), otherwise either the write
does not come into effect at all, or normal operation of internal circuitry
cannot be guaranteed. The current implementation of the 'i2c write' command
(transfer of multiple bytes from a memory buffer) in fact performs a separate
transaction for each byte to be written and thus cannot support such types of
I2C slave devices.
This patch provides an alternative by allowing 'i2c write' to execute the
write transfer of the given number of bytes in a single bus transaction if
the '-s' option is specified as a final command argument. Else the current
re-addressing method is used.
Signed-off-by: Lubomir Popov <l-popov@ti.com>
hs: adapt to CONFIG_DM_I2C
Diffstat (limited to 'configs/pm9263_defconfig')
0 files changed, 0 insertions, 0 deletions