dm: tpm: Move tpm_tis_i2c to tpm_i2c_infineon
As there is no TCG specification or recommendation for i2c TPM 1.2, move tpm_tis_i2c driver to tpm_i2c_infineon. Other tpm vendors like Atmel or STMicroelectronics may have a different transport protocol for i2c. Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com> Reviewed-by: Tom Rini <trini@konsulko.com> Acked-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
8d1f3a9daf
commit
0766ad2f7f
4
README
4
README
|
@ -1472,8 +1472,8 @@ The following options need to be configured:
|
|||
CONFIG_TPM
|
||||
Support TPM devices.
|
||||
|
||||
CONFIG_TPM_TIS_I2C
|
||||
Support for i2c bus TPM devices. Only one device
|
||||
CONFIG_TPM_TIS_INFINEON
|
||||
Support for Infineon i2c bus TPM devices. Only one device
|
||||
per system is supported at this time.
|
||||
|
||||
CONFIG_TPM_TIS_I2C_BURST_LIMITATION
|
||||
|
|
|
@ -20,7 +20,7 @@ CONFIG_CROS_EC_SPI=y
|
|||
CONFIG_SPI_FLASH=y
|
||||
CONFIG_TEGRA114_SPI=y
|
||||
CONFIG_DM_TPM=y
|
||||
CONFIG_TPM_TIS_I2C=y
|
||||
CONFIG_TPM_TIS_INFINEON=y
|
||||
CONFIG_USB=y
|
||||
CONFIG_DM_USB=y
|
||||
CONFIG_DISPLAY_PORT=y
|
||||
|
|
|
@ -30,7 +30,7 @@ CONFIG_I2S_SAMSUNG=y
|
|||
CONFIG_SOUND_MAX98095=y
|
||||
CONFIG_SOUND_WM8994=y
|
||||
CONFIG_DM_TPM=y
|
||||
CONFIG_TPM_TIS_I2C=y
|
||||
CONFIG_TPM_TIS_INFINEON=y
|
||||
CONFIG_USB=y
|
||||
CONFIG_DM_USB=y
|
||||
CONFIG_VIDEO_BRIDGE=y
|
||||
|
|
|
@ -30,7 +30,7 @@ CONFIG_I2S_SAMSUNG=y
|
|||
CONFIG_SOUND_MAX98095=y
|
||||
CONFIG_SOUND_WM8994=y
|
||||
CONFIG_DM_TPM=y
|
||||
CONFIG_TPM_TIS_I2C=y
|
||||
CONFIG_TPM_TIS_INFINEON=y
|
||||
CONFIG_USB=y
|
||||
CONFIG_DM_USB=y
|
||||
CONFIG_VIDEO_BRIDGE=y
|
||||
|
|
|
@ -39,7 +39,7 @@ CONFIG_I2S_SAMSUNG=y
|
|||
CONFIG_SOUND_MAX98095=y
|
||||
CONFIG_SOUND_WM8994=y
|
||||
CONFIG_DM_TPM=y
|
||||
CONFIG_TPM_TIS_I2C=y
|
||||
CONFIG_TPM_TIS_INFINEON=y
|
||||
CONFIG_USB=y
|
||||
CONFIG_DM_USB=y
|
||||
CONFIG_VIDEO_BRIDGE=y
|
||||
|
|
|
@ -39,7 +39,7 @@ CONFIG_I2S_SAMSUNG=y
|
|||
CONFIG_SOUND_MAX98095=y
|
||||
CONFIG_SOUND_WM8994=y
|
||||
CONFIG_DM_TPM=y
|
||||
CONFIG_TPM_TIS_I2C=y
|
||||
CONFIG_TPM_TIS_INFINEON=y
|
||||
CONFIG_USB=y
|
||||
CONFIG_DM_USB=y
|
||||
CONFIG_VIDEO_BRIDGE=y
|
||||
|
|
|
@ -31,7 +31,7 @@ config TPM_ATMEL_TWI
|
|||
to the device using the standard TPM Interface Specification (TIS)
|
||||
protocol
|
||||
|
||||
config TPM_TIS_I2C
|
||||
config TPM_TIS_INFINEON
|
||||
bool "Enable support for Infineon SLB9635/45 TPMs on I2C"
|
||||
depends on TPM && DM_I2C
|
||||
help
|
||||
|
@ -42,7 +42,7 @@ config TPM_TIS_I2C
|
|||
|
||||
config TPM_TIS_I2C_BURST_LIMITATION
|
||||
bool "Enable I2C burst length limitation"
|
||||
depends on TPM_TIS_I2C
|
||||
depends on TPM_TIS_INFINEON
|
||||
help
|
||||
Some broken TPMs have a limitation on the number of bytes they can
|
||||
receive in one message. Enable this option to allow you to set this
|
||||
|
|
|
@ -6,6 +6,6 @@
|
|||
obj-$(CONFIG_DM_TPM) += tpm-uclass.o
|
||||
|
||||
obj-$(CONFIG_TPM_ATMEL_TWI) += tpm_atmel_twi.o
|
||||
obj-$(CONFIG_TPM_TIS_I2C) += tpm_tis_i2c.o
|
||||
obj-$(CONFIG_TPM_TIS_INFINEON) += tpm_tis_infineon.o
|
||||
obj-$(CONFIG_TPM_TIS_LPC) += tpm_tis_lpc.o
|
||||
obj-$(CONFIG_TPM_TIS_SANDBOX) += tpm_tis_sandbox.o
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
#include <linux/types.h>
|
||||
#include <linux/unaligned/be_byteshift.h>
|
||||
|
||||
#include "tpm_tis_i2c.h"
|
||||
#include "tpm_tis_infineon.h"
|
||||
#include "tpm_internal.h"
|
||||
|
||||
DECLARE_GLOBAL_DATA_PTR;
|
||||
|
@ -614,7 +614,7 @@ static const struct udevice_id tpm_tis_i2c_ids[] = {
|
|||
};
|
||||
|
||||
U_BOOT_DRIVER(tpm_tis_i2c) = {
|
||||
.name = "tpm_tis_i2c",
|
||||
.name = "tpm_tis_infineon",
|
||||
.id = UCLASS_TPM,
|
||||
.of_match = tpm_tis_i2c_ids,
|
||||
.ops = &tpm_tis_i2c_ops,
|
Loading…
Reference in New Issue