TPM: STMicroelectronics st33 driver SPI
Subsystems (3)
PATCH 1/1 TPM: STMicroelectronics st33 driver SPI
From: admin01 <admin01@admin01-desktop.(none)>
* STMicroelectronics version 1.2.0, Copyright (C) 2010
* STMicroelectronics comes with ABSOLUTELY NO WARRANTY.
* This is free software, and you are welcome to redistribute it
* under certain conditions.
This is the driver for TPM chip from ST Microelectronics.
If you have a TPM security chip from STMicroelectronics working with an I2C/SPI, in menuconfig or .config choose the tpm driver on device --> tpm and activate the protocol of your choice before compiling the kernel.
The driver will be accessible from within Linux.
Tested on linux x86/x64 and beagleboard REV B & XM REV C
--- drivers/char/tpm/Kconfig | 10 + drivers/char/tpm/Makefile | 1 + drivers/char/tpm/tpm_stm_st33_spi.c | 1282 ++++++++++++++++++++++++++++++++++ drivers/char/tpm/tpm_stm_st33_spi.h | 79 +++ include/linux/spi/tpm_stm_st33_spi.h | 46 ++ 5 files changed, 1418 insertions(+), 0 deletions(-) create mode 100644 drivers/char/tpm/tpm_stm_st33_spi.c create mode 100644 drivers/char/tpm/tpm_stm_st33_spi.h create mode 100644 include/linux/spi/tpm_stm_st33_spi.h
drivers/char/tpm/Kconfig +10 -0
@@ -81,4 +81,14 @@ config TCG_IBMVTPM will be accessible from within Linux. To compile this driver as a module, choose M here; the module will be called tpm_ibmvtpm. +config TCG_ST33_SPI + tristate "STMicroelectronics ST33 SPI" + depends on SPI + depends on GPIOLIB + ---help--- + If you have a TPM security chip from STMicroelectronics working with + an SPI bus say Yes and it will be accessible from within Linux. + To compile this driver as a module, choose M here; the module will be + called tpm_stm_st33_spi. + endif # TCG_TPM
drivers/char/tpm/Makefile +1 -0
@@ -17,3 +17,4 @@ obj-$(CONFIG_TCG_NSC) += tpm_nsc.o obj-$(CONFIG_TCG_ATMEL) += tpm_atmel.o obj-$(CONFIG_TCG_INFINEON) += tpm_infineon.o obj-$(CONFIG_TCG_IBMVTPM) += tpm_ibmvtpm.o ++obj-$(CONFIG_TCG_ST33_SPI) += tpm_stm_st33_spi.o
drivers/char/tpm/tpm_stm_st33_spi.c new file +1282 -0
1,282 lines not on this page · raw message
drivers/char/tpm/tpm_stm_st33_spi.h new file +79 -0
79 lines not on this page · raw message
include/linux/spi/tpm_stm_st33_spi.h new file +46 -0
46 lines not on this page · raw message
Signature · 1 line
1.7.1