This is the preliminary v05 TPM driver from Infineon. With a wrapper layer added to auto detect v03 and v05 chips. This is a version that just work. Cleanup will start after the initial push.

BUG=chromium-os:10497
TEST=Manual

Build
1. build a compatible lib first
   emerge-tegra2_seaboard vboot_reference-firmware
2. use MAKEALL script to check all cfg
   CROSS_COMPILE=armv7a-cros-linux-gnueabi- VBOOT=/build/tegra2_seaboard/usr ./MAKEALL chromeos
3. check result. 25 passed, no warning, no error

u-boot command
1. build a compatible version
   USE-debug VBOOT_DEBUG=1 emerge-tegra2_seaboard -av vboot_reference-firmware chromeos-u-boot-next
2. flash it using proper tools
   [board specific]
3. reset system and boot into command prompt
4. test with cros_tpm_test command sets:
   cros_tpm_test enable
   cros_tpm_test fast_enable
   cros_tpm_test startup
   cros_tpm_test timing

Review URL: http://codereview.chromium.org/6683023

Change-Id: I37b73dc90399533594c841b016a194ff21ab889a
7 files changed