summaryrefslogtreecommitdiff
path: root/power
diff options
context:
space:
mode:
authorVadim Bendebury <vbendeb@chromium.org>2018-01-10 19:05:17 -0800
committerchrome-bot <chrome-bot@chromium.org>2018-01-12 03:27:10 -0800
commita41c59598de1d335af76e6bc4b1178720154d48c (patch)
tree87529c5a36c37e3afbe633aaa71475ec5318850b /power
parentd99e680b3ce01db9561739862d4e584820060db7 (diff)
downloadchrome-ec-a41c59598de1d335af76e6bc4b1178720154d48c.tar.gz
gsctool: add options to control ccd
The user needs to be able to unlock/open/lock CCD in addition to setting the CCD password. This patch adds command line options for these three CCD subcommands. They all are communicated to the TPM using the same vendor command. 'open' and 'unlock' subcommands could require the user to enter the password. This is indicated by the appropriate vendor command return code. If return code of 'open' or 'unlock' subcommand indicates the need for physical presence, the utility starts polling the Cr50 prompting the user to press the power button when the chip expects it. Some input parameters sanity checks are added to make sure that the user does not request mutually exclusive actions. BRANCH=none BUG=b:62537474 TEST=verified that CCD can be unlocked and opend with and without password, with and without PP required. Change-Id: Iea229a220e9f3d2f5d07cebdaebcb9b297939310 Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/861209 Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'power')
0 files changed, 0 insertions, 0 deletions