drivers: tpm: atmel_twi: do not use an offset byte

This driver was broken due to an empty offset byte being prepended
at the start of every transmission.

The hardware does not mimic an EEPROM device with registers so
an offset byte is not required.

Signed-off-by: Mathew McBride <matt@traverse.com.au>
Acked-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
This commit is contained in:
Mathew McBride 2021-11-11 04:06:29 +00:00 committed by Ilias Apalodimas
parent 02f50d8ebb
commit fdb4a5fcd7

View file

@ -131,6 +131,7 @@ static int tpm_atmel_twi_xfer(struct udevice *dev,
static int tpm_atmel_twi_probe(struct udevice *dev) static int tpm_atmel_twi_probe(struct udevice *dev)
{ {
i2c_set_chip_offset_len(dev, 0);
return 0; return 0;
} }