diff options
author | Vadim Bendebury <vbendeb@chromium.org> | 2015-07-21 13:54:00 -0700 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-07-25 08:47:37 +0000 |
commit | 15135076e20dc5168a7e61ffe90967cf162e5767 (patch) | |
tree | 78a34bf810f9e08c7adf386ad442c0b5ae054658 /include/config.h | |
parent | 3a77fd73327cf532eedbe92fafd3a61598d2dc53 (diff) | |
download | chrome-ec-15135076e20dc5168a7e61ffe90967cf162e5767.tar.gz |
Cr50: Enable TPM-protocol data over the SPI bus
This patch adds a module which runs on top of the SPS driver and
implements the TCG SPI TPM protocol.
Basic register read and write functions are implemented as well as
rudimentary TPM state machine (claiming/releasing locality).
An enhancement is made to the SPS driver to ensure that when the CS is
deasserted the transmit FIFO is reset too, on the off chance of the CS
going away mid transaction for whatever reason.
In this implementation the slave is guaranteed to stall the master for
a few bytes in both receive and transmit transactions, which is
further aggravated by the fact that RX FIFO threshold is set to 8
(this is the minimum number of bytes the master has to send to wake up
the slave). This could be fine tuned later, for instance made a
parameter of the receive callback registration function.
BRANCH=none
BUG=chrome-os-partner:43025
TEST=trunksd initialization (with minor changes to accommodate new
VID/DID and some status bits, to be published) succeeds with the
cr50 connected to the USB/SPI cable.
Change-Id: I28d37c3b57dde9adf59e81426efe4f58880cf0b0
Signed-off-by: Bill Richardson <wfrichar@chromium.org>
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/285252
Diffstat (limited to 'include/config.h')
-rw-r--r-- | include/config.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h index 17d0712b79..ad28fc8e71 100644 --- a/include/config.h +++ b/include/config.h @@ -1457,6 +1457,12 @@ #undef CONFIG_TEMP_SENSOR_POWER_GPIO /*****************************************************************************/ +/* TPM-like configuration */ + +/* Speak the TPM SPI Hardware Protocol on the SPI slave interface */ +#undef CONFIG_TPM_SPS + +/*****************************************************************************/ /* USART stream config */ #undef CONFIG_STREAM_USART |