mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-09-21 15:12:04 +00:00
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:
parent
02f50d8ebb
commit
fdb4a5fcd7
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue