Hi Christophe, On 9 August 2015 at 07:19, Christophe Ricard <christophe.ric...@gmail.com> wrote: > > 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.
As it happens I have just been trying to clean up the TPM drivers for Kconfig and driver model. Please see u-boot-dm branch tpm-working. I'll hurry up and try to send out some patches and update the wiki. I wonder if we can join our work somehow? Regards, Simon > > 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 > _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot