summaryrefslogtreecommitdiff
path: root/chip/g/sps.h
diff options
context:
space:
mode:
authorPhilip Chen <philipchen@google.com>2017-05-12 15:17:32 -0700
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2018-03-13 23:56:30 +0000
commitb3af8a7125cef37701af5466fd30064b1bf4ee02 (patch)
tree29ee61791f7d65efdf699803ace5109962617a6f /chip/g/sps.h
parent0e8e382e22bcd7e35a25a25b9ef83df36e8615be (diff)
downloadchrome-ec-b3af8a7125cef37701af5466fd30064b1bf4ee02.tar.gz
cr50: Add console and TPM vendor commands to get/set board ID
This patch adds vendor and console commands to read and write the board ID space in the INFO1 block. Current image's board ID settings are saved in the image header by the latest codesigner. Board ID write attempts are rejected if the board ID space is already initialized, or if the currently running image will not be allowed to run with the new board ID space settings. Error codes are returned to the caller as a single byte value. Successful read command returns 12 bytes of the board ID space contents. The console command always allows to read the board ID value, and allows to write it if the image was built with debug enabled. BUG=b:35586335 BRANCH=cr50 TEST=as follows: - verified that board ID can be read by any image and set by debug images. - with the upcoming patches verified the ability to set and read board ID values using vendor commands. Original Change-Id: I35a3e2db92175a29de8011172b80091065b27414 Original Signed-off-by: Philip Chen <philipchen@google.com> Original Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Original Reviewed-on: https://chromium-review.googlesource.com/522234 Original Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Original Reviewed-by: Mary Ruthven <mruthven@chromium.org> Change-Id: I45da7abfc4209a7a6be423635c0975bd9c858bd0 Reviewed-on: https://chromium-review.googlesource.com/958884 Reviewed-by: Vadim Bendebury <vbendeb@chromium.org> Tested-by: Vadim Bendebury <vbendeb@chromium.org> Tested-by: Marco Chen <marcochen@chromium.org> Commit-Queue: Marco Chen <marcochen@chromium.org>
Diffstat (limited to 'chip/g/sps.h')
0 files changed, 0 insertions, 0 deletions