security/tpm: Unify the coreboot TPM software stack
* Remove 2nd software stack in pc80 drivers directory. * Create TSPI interface for common usage. * Refactor TSS / TIS code base. * Add vendor tss (Cr50) directory. * Change kconfig options for TPM to TPM1. * Add user / board configuration with: * MAINBOARD_HAS_*_TPM # * BUS driver * MAINBOARD_HAS_TPM1 or MAINBOARD_HAS_TPM2 * Add kconfig TPM user selection (e.g. pluggable TPMs) * Fix existing headers and function calls. * Fix vboot for interface usage and antirollback mode. Change-Id: I7ec277e82a3c20c62a0548a1a2b013e6ce8f5b3f Signed-off-by: Philipp Deppenwiese <zaolin@das-labor.org> Reviewed-on: https://review.coreboot.org/24903 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
committed by
Martin Roth
parent
961d31bdb3
commit
c07f8fbe6f
@@ -1,32 +1,28 @@
|
||||
config I2C_TPM
|
||||
bool "I2C TPM"
|
||||
depends on TPM || TPM2
|
||||
bool
|
||||
help
|
||||
I2C TPM driver is enabled!
|
||||
|
||||
config MAINBOARD_HAS_I2C_TPM_ATMEL
|
||||
bool
|
||||
default n
|
||||
select I2C_TPM
|
||||
help
|
||||
Board has an Atmel I2C TPM support
|
||||
|
||||
config MAINBOARD_HAS_I2C_TPM_CR50
|
||||
bool
|
||||
default n
|
||||
select I2C_TPM
|
||||
help
|
||||
Board has a Cr50 I2C TPM support
|
||||
|
||||
choice
|
||||
prompt "I2C TPM Driver"
|
||||
default I2C_TPM_ATMEL if MAINBOARD_HAS_I2C_TPM_ATMEL
|
||||
default I2C_TPM_CR50 if MAINBOARD_HAS_I2C_TPM_CR50
|
||||
default I2C_TPM_GENERIC if !MAINBOARD_HAS_I2C_TPM_CR50 && !MAINBOARD_HAS_I2C_TPM_ATMEL
|
||||
depends on I2C_TPM
|
||||
|
||||
config I2C_TPM_GENERIC
|
||||
bool "Generic I2C TPM Driver"
|
||||
|
||||
config I2C_TPM_ATMEL
|
||||
bool "ATMEL I2C TPM Driver"
|
||||
|
||||
config I2C_TPM_CR50
|
||||
bool "CR50 I2C TPM Driver"
|
||||
|
||||
endchoice
|
||||
config MAINBOARD_HAS_I2C_TPM_GENERIC
|
||||
bool
|
||||
default n
|
||||
select I2C_TPM
|
||||
help
|
||||
Board has a generic I2C TPM support
|
||||
|
||||
config DRIVER_TIS_DEFAULT
|
||||
bool
|
||||
|
@@ -1,4 +1,3 @@
|
||||
|
||||
ramstage-$(CONFIG_DRIVER_TIS_DEFAULT) += tis.c
|
||||
romstage-$(CONFIG_DRIVER_TIS_DEFAULT) += tis.c
|
||||
verstage-$(CONFIG_DRIVER_TIS_DEFAULT) += tis.c
|
||||
@@ -9,14 +8,14 @@ romstage-$(CONFIG_MAINBOARD_HAS_I2C_TPM_ATMEL) += tis_atmel.c
|
||||
verstage-$(CONFIG_MAINBOARD_HAS_I2C_TPM_ATMEL) += tis_atmel.c
|
||||
bootblock-$(CONFIG_MAINBOARD_HAS_I2C_TPM_ATMEL) += tis_atmel.c
|
||||
|
||||
ramstage-$(CONFIG_I2C_TPM_GENERIC) += tpm.c
|
||||
romstage-$(CONFIG_I2C_TPM_GENERIC) += tpm.c
|
||||
verstage-$(CONFIG_I2C_TPM_GENERIC) += tpm.c
|
||||
bootblock-$(CONFIG_I2C_TPM_GENERIC) += tpm.c
|
||||
ramstage-$(CONFIG_MAINBOARD_HAS_I2C_TPM_GENERIC) += tpm.c
|
||||
romstage-$(CONFIG_MAINBOARD_HAS_I2C_TPM_GENERIC) += tpm.c
|
||||
verstage-$(CONFIG_MAINBOARD_HAS_I2C_TPM_GENERIC) += tpm.c
|
||||
bootblock-$(CONFIG_MAINBOARD_HAS_I2C_TPM_GENERIC) += tpm.c
|
||||
|
||||
ramstage-$(CONFIG_I2C_TPM_CR50) += cr50.c
|
||||
romstage-$(CONFIG_I2C_TPM_CR50) += cr50.c
|
||||
verstage-$(CONFIG_I2C_TPM_CR50) += cr50.c
|
||||
bootblock-$(CONFIG_I2C_TPM_CR50) += cr50.c
|
||||
ramstage-$(CONFIG_MAINBOARD_HAS_I2C_TPM_CR50) += cr50.c
|
||||
romstage-$(CONFIG_MAINBOARD_HAS_I2C_TPM_CR50) += cr50.c
|
||||
verstage-$(CONFIG_MAINBOARD_HAS_I2C_TPM_CR50) += cr50.c
|
||||
bootblock-$(CONFIG_MAINBOARD_HAS_I2C_TPM_CR50) += cr50.c
|
||||
|
||||
ramstage-$(CONFIG_DRIVER_I2C_TPM_ACPI) += chip.c
|
||||
|
Reference in New Issue
Block a user