Fill in a successful response when no hardware TPM.

Caller functions also check the response value. Since the original value is
declared in the stack and uninitialized. If we don't change it, the result is
unpredictable.

BUG=none
TEST=build and run bootstub firmware:
U-Boot 2010.09-00080-g4eccccb-dirty (Apr 01 2011 - 15:47:42)

Board:   Tegra2 chromeos/tegra2/seaboard/stub
DRAM:  1 GiB
Using default environment

In:    tegra-kbc
Out:   lcd
Err:   lcd
Hit any key to stop autoboot:  0
SF: Detected W25Q16B with page size 256, total 2 MiB
DEBUG: LoadFirmware started...
DEBUG: VbSharedDataInit, 16384 bytes, header 1072 bytes
DEBUG: TPM: Startup
DEBUG: TPM: command: 0c1 000c 00099
DEBUG: TPM: response: 00 000a 0000
DEBUG: TPM: command 0x99 returned 0x0
DEBUG: TPM: Continue self test
DEBUG: TPM: command: 0c1 000a 00053
DEBUG: TPM: response: 00 000a 0000
DEBUG: TPM: command 0x53 returned 0x0
DEBUG: Checking key block signature...
DEBUG: Firmware 0 is valid.
DEBUG: VbSharedDataReserve 1032 bytes at 1072
DEBUG: Checking key block signature...
DEBUG: TPM: command: 0c1 00022 00014
DEBUG: TPM: response: 00 000a 0000
DEBUG: TPM: command 0x14 returned 0x0
DEBUG: TPM: SetTPMBootModeState boot mode PCR out_digest 281f6b4 281f6b5 281f6b6 281f6b7
DEBUG: Will boot firmware index 0
load_firmware_wrapper: will jump to rewritable firmware 0
...

Change-Id: Ibb785d720c45b37f62395fef446339f7e77ee1d5

R=rongchang@chromium.org
BUG=

Review URL: http://codereview.chromium.org/6771044
1 file changed