diff options
author | Jean-Francois Dagenais <[email protected]> | 2019-03-06 15:56:06 -0500 |
---|---|---|
committer | Jonathan Cameron <[email protected]> | 2019-03-16 15:15:31 +0000 |
commit | 06003531502d06bc89d32528f6ec96bf978790f9 (patch) | |
tree | 44f2717ded5718c1d0bc7eacdd685c4d05d8e970 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | fe2d3df639a7940a125a33d6460529b9689c5406 (diff) |
iio: dac: mcp4725: add missing powerdown bits in store eeprom
When issuing the write DAC register and write eeprom command, the two
powerdown bits (PD0 and PD1) are assumed by the chip to be present in
the bytes sent. Leaving them at 0 implies "powerdown disabled" which is
a different state that the current one. By adding the current state of
the powerdown in the i2c write, the chip will correctly power-on exactly
like as it is at the moment of store_eeprom call.
This is documented in MCP4725's datasheet, FIGURE 6-2: "Write Commands
for DAC Input Register and EEPROM" and MCP4726's datasheet, FIGURE 6-3:
"Write All Memory Command".
Signed-off-by: Jean-Francois Dagenais <[email protected]>
Acked-by: Peter Meerwald-Stadler <[email protected]>
Cc: <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions