diff options
author | Vadim Bendebury <vbendeb@chromium.org> | 2011-08-05 09:17:51 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2011-08-29 10:59:24 -0700 |
commit | 354afc513dc44fc27e4fffd6d34d931a9f5eb45c (patch) | |
tree | b5e7de0707f8837ff86cc473251c6d7538d00583 /lib/chromeos | |
parent | bbf2c9245c08709d2eaf028bb5ea0025702aeaee (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 'lib/chromeos')
-rw-r--r-- | lib/chromeos/fmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chromeos/fmap.c b/lib/chromeos/fmap.c index d9b32b679af..e6b01452fe6 100644 --- a/lib/chromeos/fmap.c +++ b/lib/chromeos/fmap.c @@ -12,7 +12,7 @@ #include <chromeos/common.h> #include <chromeos/fmap.h> -#define PREFIX "chromeos/fdt_decode: " +#define PREFIX "chromeos/fmap: " static void dump_fmap_entry(const char *path, struct fmap_entry *entry) |