diff options
author | Duncan Laurie <dlaurie@chromium.org> | 2016-09-19 16:04:39 -0700 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2016-09-21 10:02:43 +0200 |
commit | 2ea13c8699dc27a7a0ed2874c20508a6a59a201f (patch) | |
tree | aebc24192723686fe92aaba572152078ff8b22bf /src/drivers/i2c/tpm/Kconfig | |
parent | dca223cb38ab73744f490eb5b4cc6c7c2598f2c3 (diff) | |
download | coreboot-2ea13c8699dc27a7a0ed2874c20508a6a59a201f.tar.xz |
drivers/i2c/tpm: Split cr50 driver from main driver
Originally I thought it would be cleaner to keep this code in one
place, but as things continue to diverge it ends up being easier
to split this into its own driver. This way the different drivers
in coreboot, depthcharge, and the kernel, can all be standalone
and if one is changed it is easier to modify the others.
This change splits out the cr50 driver and brings along the basic
elements from the existing driver with no real change in
functionality. The following commits will modify the code to make
it consistent so it can all be shared with depthcharge and the
linux kernel drivers.
BUG=chrome-os-partner:53336
Change-Id: I3b62b680773d23cc5a7d2217b9754c6c28bccfa7
Signed-off-by: Duncan Laurie <dlaurie@chromium.org>
Reviewed-on: https://review.coreboot.org/16663
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/drivers/i2c/tpm/Kconfig')
-rw-r--r-- | src/drivers/i2c/tpm/Kconfig | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/drivers/i2c/tpm/Kconfig b/src/drivers/i2c/tpm/Kconfig index 903fc3bbe5..1725eaf0ff 100644 --- a/src/drivers/i2c/tpm/Kconfig +++ b/src/drivers/i2c/tpm/Kconfig @@ -2,6 +2,24 @@ config I2C_TPM bool "I2C TPM" depends on TPM || TPM2 +config MAINBOARD_HAS_I2C_TPM_CR50 + bool + default n + +choice + prompt "I2C TPM Driver" + default I2C_TPM_CR50 if MAINBOARD_HAS_I2C_TPM_CR50 + default I2C_TPM_GENERIC if !MAINBOARD_HAS_I2C_TPM_CR50 + depends on I2C_TPM + +config I2C_TPM_GENERIC + bool "Generic I2C TPM Driver" + +config I2C_TPM_CR50 + bool "CR50 I2C TPM Driver" + +endchoice + config DRIVER_TPM_I2C_BUS hex "I2C TPM chip bus" default 9 # FIXME, workaround for Kconfig BS |