coreboot/src/drivers
Stefan Reinauer 7cb01e0bcf drivers: Add I2C TPM driver to coreboot
On ARM platforms the TPM is not attached through LPC but through I2C.
This patch adds an I2C TPM driver that supports the following chips:
 * Infineon SLB9635
 * Infineon SLB9645
In order to select the correct TPM implementation cleanly, CONFIG_TPM
is moved to src/Kconfig and does the correct choice.

Old-Change-Id: I2def0e0f86a869d6fcf56fc4ccab0bc935de2bf1
Signed-off-by: Stefan Reinauer <reinauer@google.com>
Reviewed-on: https://chromium-review.googlesource.com/167543
Reviewed-by: ron minnich <rminnich@chromium.org>
(cherry picked from commit b4049a0e96)

i2c tpm: Remove mostly useless delay code/tables.

I assume from the code in the TPM driver that the TPM spec defines
different types of delays and timeouts which each have a particular
duration, and that the TPM can tell you how long each type is if you ask
it. There was a large table, some members of a data structure, and a
function or two which managed the timeouts and figured their value for
different operations.  The timeout values for the various "ordinals"
were never set in the vendor specific data structure, however, and
always defaulted to 2 minutes.  Similarly the timeouts a, b, c, and d
were never overridden from their defaults.  This change gets rid of all
the timeout management code and makes the "ordinal" timeout 2 minutes
and the a, b, c, and d timeouts 2 seconds, the larger of the two default
values.

This is a port from depthcharge to coreboot, original change:
https://chromium-review.googlesource.com/#/c/168363/

Signed-off-by: Gabe Black <gabeblack@google.com>
Signed-off-by: Stefan Reinauer <reinauer@google.com>

Old-Change-Id: I79696d6329184ca07f6a1be4f6ca85e1655a7aaf
Reviewed-on: https://chromium-review.googlesource.com/168583
Reviewed-by: Gabe Black <gabeblack@chromium.org>
Tested-by: Stefan Reinauer <reinauer@google.com>
Commit-Queue: Stefan Reinauer <reinauer@google.com>
(cherry picked from commit b22395a73f)

TPM: Stop requesting/releasing the TPM locality.

The locality is requested when the TPM is initialized and released when
it's cleaned up. There's no reason to set it to the same thing again and
restore it back to the same value before and after every transaction.

forward ported from https://chromium-review.googlesource.com/#/c/168400

Old-Change-Id: I291d1f86f220ef0eff6809c6cb00459bf95aa5e0
Signed-off-by: Gabe Black <gabeblack@google.com>
Signed-off-by: Stefan Reinauer <reinauer@google.com>
Reviewed-on: https://chromium-review.googlesource.com/168584
Reviewed-by: Gabe Black <gabeblack@chromium.org>
(cherry picked from commit cc866c20c6)

Squashed three commits for the i2c tpm driver.

Change-Id: Ie7a50c50fda8ee986c02de7fe27551666998229d
Signed-off-by: Isaac Christensen <isaac.christensen@se-eng.com>
Reviewed-on: http://review.coreboot.org/6519
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
2014-08-10 22:25:48 +02:00
..
ati drivers: Trivial - drop trailing blank lines at EOF 2014-07-08 13:51:47 +02:00
dec drivers,Makefile.inc: Trivial - drop trailing blank lines at EOF 2014-07-17 02:19:46 +02:00
elog spi: Remove unused parameters from spi_flash_probe and setup_spi_slave. 2014-07-05 11:36:11 +02:00
emulation qemu: Support textmode gfx init. 2014-03-03 23:14:04 +01:00
generic Drop drivers/generic/debug 2014-04-22 13:42:48 +02:00
i2c drivers: Add I2C TPM driver to coreboot 2014-08-10 22:25:48 +02:00
ics Get rid of drivers class 2012-11-27 22:00:49 +01:00
intel x230: Deploy VBT 2014-07-29 01:34:09 +02:00
ipmi Get rid of drivers class 2012-11-27 22:00:49 +01:00
lenovo lenovo/x60: Support digitizer on X60t and X201t. 2014-07-19 14:24:29 +02:00
maxim max77802: update header 2013-12-21 13:29:42 +01:00
net drivers: Trivial - drop trailing blank lines at EOF 2014-07-08 13:51:47 +02:00
parade Pit: move parade writes to mainboard.c 2013-12-21 08:06:52 +01:00
pc80 drivers: Add I2C TPM driver to coreboot 2014-08-10 22:25:48 +02:00
sil Get rid of drivers class 2012-11-27 22:00:49 +01:00
spi drivers/spi: Sanitize headers from preprocessor abuse 2014-07-17 20:21:30 +02:00
ti [2/2] tps65090: re-factor for coreboot 2013-04-10 17:34:19 +02:00
trident drivers: Trivial - drop trailing blank lines at EOF 2014-07-08 13:51:47 +02:00
uart console: Drop EARLY_CONSOLE option 2014-04-30 07:00:20 +02:00
usb drivers: Trivial - drop trailing blank lines at EOF 2014-07-08 13:51:47 +02:00
xpowers xpowers/axp209: Add helper to set voltages from devicetree config 2014-01-13 06:24:54 +01:00
Kconfig lenovo/x60: Support digitizer on X60t and X201t. 2014-07-19 14:24:29 +02:00
Makefile.inc lenovo/x60: Support digitizer on X60t and X201t. 2014-07-19 14:24:29 +02:00