summaryrefslogtreecommitdiff
path: root/common/Makefile
diff options
context:
space:
mode:
authorVadim Bendebury <vbendeb@chromium.org>2011-08-05 09:17:51 -0700
committerSimon Glass <sjg@chromium.org>2011-08-29 10:59:24 -0700
commit354afc513dc44fc27e4fffd6d34d931a9f5eb45c (patch)
treeb5e7de0707f8837ff86cc473251c6d7538d00583 /common/Makefile
parentbbf2c9245c08709d2eaf028bb5ea0025702aeaee (diff)
Introduce generic TPM support in u-boot.
This code is used on x86 platforms to control a standard LPC based TPM device. The actual driver implementation is based on the article "Writing a TPM Device Driver" published on http://ptgmedia.pearsoncmg.com and the submission by Stefan Berger on Qemu-devel mailing list. One substantial difference is that in the simplest configuration (the case of the Alex device under coreboot/u-boot control) the other than 0 TPM localities do not get mapped by some devices (for instance, by Infineon slb9635), so this driver provides access to locality 0 only. BUG=chrome-os-partner:4547 TEST=manual Booted an Alex with this code, tried accessing TPM. Access routines do not fail, even though it is not yet possible to write data into a TPM location and read it back. This could be related to the fact that the CLI command does not intialize the TPM properly. boot > tpm generic_lpc_tpm.c:155 found TPM SLB9635 TT 1.2 by Infineon boot > tpm r 0x1008 10 boot > tpm w 0x1008 1 2 3 4 boot > tpm r 0x1008 4 Change-Id: Id8d23e9bb24ba2bcd999135c99e7612f9010f384 Reviewed-on: http://gerrit.chromium.org/gerrit/5492 Reviewed-by: Stefan Reinauer <reinauer@google.com> Tested-by: Vadim Bendebury <vbendeb@chromium.org>
Diffstat (limited to 'common/Makefile')
-rw-r--r--common/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/Makefile b/common/Makefile
index 4c5eef031d..7104a8b57f 100644
--- a/common/Makefile
+++ b/common/Makefile
@@ -185,7 +185,8 @@ COBJS-$(CONFIG_BOOTSTAGE) += bootstage.o
COBJS-$(CONFIG_CMD_GETTIME) += cmd_gettime.o
COBJS-$(CONFIG_CMD_RAMCONFIG) += cmd_ramconfig.o
COBJS-$(CONFIG_OF_CONTROL) += fdt_decode.o
-
+COBJS-$(CONFIG_GENERIC_LPC_TPM) += cmd_tpm.o
+COBJS-$(CONFIG_INFINEON_TPM_I2C) += cmd_tpm.o
COBJS := $(sort $(COBJS-y))
XCOBJS := $(sort $(XCOBJS-y))