cros: x86: bring TPM into a consistent state before entering SeaBIOS

Sending a resume command to the TPM in coreboot without sending a
savestate command first will make coreboot reboot (and thus fail
to resume). Since vboot never sends savestate and Windows apparently
never touches the TPM, resuming Windows will fail. Hence save the state
by the time we enter SeaBIOS.

BUG=chrome-os-partner:6108
TEST=Boot Windows from CTRL-L, suspend, resume successfully
BRANCH=link

Signed-off-by: Stefan Reinauer <reinauer@chromium.org>
Change-Id: I345b28f834dbb656eb94e4efaad16cc7273732d3
Reviewed-on: https://gerrit.chromium.org/gerrit/36006
Reviewed-by: Randall Spangler <rspangler@chromium.org>
1 file changed