From 6386c37379284390ed53a7146116947b49576fac Mon Sep 17 00:00:00 2001 From: Vadim Bendebury Date: Fri, 24 Jul 2015 17:20:13 -0700 Subject: 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 Reviewed-on: https://chromium-review.googlesource.com/289332 Reviewed-by: Bill Richardson --- chip/g/sps_tpm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'chip') 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 -- cgit v1.2.1