[U-Boot] [PATCH 0/3] Introduce TPM driver model and STMicroelectronics ST33ZP24 TPMs

Christophe Ricard christophe.ricard at gmail.com
Sun Aug 9 15:19:14 CEST 2015


Hi,

This patch serie introduce TPM driver model allowing to instantiate a TPM
using U_BOOT_DEVICE macro for platform_data or device tree.

As an information, there is no TCG transport protocol official specification
for i2c for TPM1.2. The TPM uclass allows to support different kind of bus
(LPC, I2C, SPI) keeping the TPM command duration in common.

Also, this serie introduce TPM1.2 from STMicroelectronics ST33ZP24 with
I2C and SPI support. It has been ported from existing Linux drivers.

This has been tested on Beagleboard xM.

Best Regards
Christophe


Christophe Ricard (3):
  tpm: Move tpm_tis_i2c to tpm_i2c_infineon
  tpm: Initial work to introduce TPM driver model
  tpm: Add st33zp24 tpm with i2c and spi phy

 README                                            |  23 +-
 drivers/tpm/Makefile                              |   5 +-
 drivers/tpm/st33zp24/Makefile                     |   7 +
 drivers/tpm/st33zp24/i2c.c                        | 226 +++++++++++
 drivers/tpm/st33zp24/spi.c                        | 286 ++++++++++++++
 drivers/tpm/st33zp24/st33zp24.c                   | 454 ++++++++++++++++++++++
 drivers/tpm/st33zp24/st33zp24.h                   |  29 ++
 drivers/tpm/tpm.c                                 | 275 +++----------
 drivers/tpm/{tpm_tis_i2c.c => tpm_i2c_infineon.c} | 271 ++++++++-----
 drivers/tpm/tpm_private.h                         |  23 +-
 include/dm/platform_data/st33zp24_i2c.h           |  28 ++
 include/dm/platform_data/st33zp24_spi.h           |  30 ++
 include/dm/platform_data/tpm_i2c_infineon.h       |  23 ++
 include/dm/uclass-id.h                            |   1 +
 include/fdtdec.h                                  |   5 +-
 lib/fdtdec.c                                      |   2 +
 16 files changed, 1351 insertions(+), 337 deletions(-)
 create mode 100644 drivers/tpm/st33zp24/Makefile
 create mode 100644 drivers/tpm/st33zp24/i2c.c
 create mode 100644 drivers/tpm/st33zp24/spi.c
 create mode 100644 drivers/tpm/st33zp24/st33zp24.c
 create mode 100644 drivers/tpm/st33zp24/st33zp24.h
 rename drivers/tpm/{tpm_tis_i2c.c => tpm_i2c_infineon.c} (70%)
 create mode 100644 include/dm/platform_data/st33zp24_i2c.h
 create mode 100644 include/dm/platform_data/st33zp24_spi.h
 create mode 100644 include/dm/platform_data/tpm_i2c_infineon.h

-- 
2.1.4



More information about the U-Boot mailing list