diff options
author | Vadim Bendebury <vbendeb@chromium.org> | 2015-07-24 17:20:13 -0700 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-08-14 21:04:38 +0000 |
commit | 6386c37379284390ed53a7146116947b49576fac (patch) | |
tree | 46014a5345b8310b79f338737aa09628cadb4e02 /chip | |
parent | 73a8098d79d84292ff56674f843f73753520fcbd (diff) | |
download | chrome-ec-6386c37379284390ed53a7146116947b49576fac.tar.gz |
cr50: introduce tpm task skeleton
TPM command processing should not be happening on the interrupt
context.
This patch adds a skeleton of the task which handles TPM functions. It
initializes the TPM and then enters endless loop waiting for an event
trigger from interrupt, which happens when a valid FIFO message is
received.
BRANCH=none
BUG=chrome-os-partner:43025
TEST=none yet
Change-Id: I63dce2762cc07370a05bf00bdf144c5d9eb6019b
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/289332
Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Diffstat (limited to 'chip')
-rw-r--r-- | chip/g/sps_tpm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chip/g/sps_tpm.c b/chip/g/sps_tpm.c index 0dea0ce4ed..634dd33b97 100644 --- a/chip/g/sps_tpm.c +++ b/chip/g/sps_tpm.c @@ -248,7 +248,7 @@ static void tpm_rx_handler(uint8_t *data, size_t data_size, int cs_disabled) init_new_cycle(); } -static void sps_tpm_enable(void) +void sps_tpm_enable(void) { /* * Let's make sure we get an interrupt as soon as the header is |