diff options
author | Mathew McBride <matt@traverse.com.au> | 2021-11-11 04:06:29 +0000 |
---|---|---|
committer | Ilias Apalodimas <ilias.apalodimas@linaro.org> | 2021-11-17 13:47:31 +0200 |
commit | fdb4a5fcd7458d6cf075d908a499f822a9787fac (patch) | |
tree | 6aa3029dfcf56a61c9c3ef55297ad5e8418df51f | |
parent | 02f50d8ebbcf318e068c30882b3638dd1cfbf03e (diff) | |
download | u-boot-fdb4a5fcd7458d6cf075d908a499f822a9787fac.zip u-boot-fdb4a5fcd7458d6cf075d908a499f822a9787fac.tar.gz u-boot-fdb4a5fcd7458d6cf075d908a499f822a9787fac.tar.bz2 |
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>
-rw-r--r-- | drivers/tpm/tpm_atmel_twi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/tpm/tpm_atmel_twi.c b/drivers/tpm/tpm_atmel_twi.c index 4ff4cf4..71b1014 100644 --- a/drivers/tpm/tpm_atmel_twi.c +++ b/drivers/tpm/tpm_atmel_twi.c @@ -131,6 +131,7 @@ static int tpm_atmel_twi_xfer(struct udevice *dev, static int tpm_atmel_twi_probe(struct udevice *dev) { + i2c_set_chip_offset_len(dev, 0); return 0; } |