drivers: Add I2C TPM driver to coreboot

Hardware / Coreboot - Stefan Reinauer [chromium.org] - 10 August 2014 15:25 UTC

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

7cb01e0 drivers: Add I2C TPM driver to coreboot
src/Kconfig | 10 +
src/drivers/i2c/Kconfig | 1 +
src/drivers/i2c/Makefile.inc | 1 +
src/drivers/i2c/tpm/Kconfig | 9 +
src/drivers/i2c/tpm/Makefile.inc | 2 +
src/drivers/i2c/tpm/tis.h | 74 +++++
src/drivers/i2c/tpm/tis_i2c.c | 103 +++++++
src/drivers/i2c/tpm/tpm.c | 146 ++++++++++
src/drivers/i2c/tpm/tpm.h | 156 ++++++++++
src/drivers/i2c/tpm/tpm_tis_i2c.c | 578 +++++++++++++++++++++++++++++++++++++
src/drivers/pc80/Kconfig | 2 +-
src/drivers/pc80/Makefile.inc | 2 +-
12 files changed, 1082 insertions(+), 2 deletions(-)

Upstream: review.coreboot.org


  • Share