coreboot-kgpe-d16/src/drivers/i2c
Duncan Laurie fbce31a2cc drivers/i2c/tpm: Clean up handling of command ready
The TPM driver was largely ignoring the meaning of the command
ready bit in the status register, instead just arbitrarily
sending it at the end of every receive transaction.

Instead of doing this have the command ready bit be set at the
start of a transaction, and only clear it at the end of a
transaction if it is still set, in case of failure.

Also the cr50 function to wait for status and burst count was
not waiting the full 2s that the existing driver does so that
value is increased.  Also, during the probe routine a delay is
inserted after each status register read to ensure the TPM has
time to actually start up.

Change-Id: I1c66ea9849e6be537c7be06d57258f27c563c1c2
Signed-off-by: Duncan Laurie <dlaurie@chromium.org>
Reviewed-on: https://review.coreboot.org/16591
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-by: Philipp Deppenwiese <zaolin.daisuki@googlemail.com>
2016-09-14 22:24:19 +02:00
..
adm1026 drivers: Use DEVICE_NOOP macro over dummy symbol 2014-11-01 21:14:07 +01:00
adm1027 drivers: Use DEVICE_NOOP macro over dummy symbol 2014-11-01 21:14:07 +01:00
adt7463 tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
at24rf08c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
da7219 drivers/i2c/da7219: Add driver for generating device in SSDT 2016-07-08 17:22:16 +02:00
generic drivers/i2c/generic: Fix compile failure 2016-06-22 20:25:14 +02:00
i2cmux devicetree: Discriminate device ops scan_bus() 2015-06-04 11:19:01 +02:00
i2cmux2 devicetree: Discriminate device ops scan_bus() 2015-06-04 11:19:01 +02:00
lm63 drivers: Use DEVICE_NOOP macro over dummy symbol 2014-11-01 21:14:07 +01:00
nau8825 acpi: Change device properties to work as a tree 2016-07-08 17:21:26 +02:00
pcf8523 drivers/i2c: Add new driver for RTC type PCF8523 2016-07-14 07:04:04 +02:00
rtd2132 tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
tpm drivers/i2c/tpm: Clean up handling of command ready 2016-09-14 22:24:19 +02:00
w83793 tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
w83795 i2c/w83795: Fix chip type message 2016-08-02 14:02:59 +02:00
ww_ring i2c/ww_ring: Add ww_ring files to ramstage 2016-07-28 00:38:09 +02:00