tpm test: use proper locality zero SPI bus addresses

The fix for SPI bus base address missed the tpm test driver, this patch
fixes the issue.

BRANCH=none
BUG=chrome-os-partner:54720
TEST=tpmtest.py connects over ftdi & tests pass

Change-Id: I5a59a6e089aee5a7c25466e0d183f3647c67343a
Signed-off-by: nagendra modadugu <ngm@google.com>
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/356556
This commit is contained in:
nagendra modadugu
2016-06-28 03:44:59 -07:00
committed by chrome-bot
parent b4671da542
commit 1457ea2155

View File

@@ -18,11 +18,13 @@ static unsigned locality_; /* Set at initialization. */
static int ftdi_trace_enabled;
/* Assorted TPM2 registers for interface type FIFO. */
#define TPM_ACCESS_REG 0
#define TPM_STS_REG 0x18
#define TPM_DATA_FIFO_REG 0x24
#define TPM_DID_VID_REG 0xf00
#define TPM_RID_REG 0xf04
#define TPM_LOCALITY_0_SPI_BASE 0x00d40000
#define TPM_ACCESS_REG (TPM_LOCALITY_0_SPI_BASE + 0)
#define TPM_STS_REG (TPM_LOCALITY_0_SPI_BASE + 0x18)
#define TPM_DATA_FIFO_REG (TPM_LOCALITY_0_SPI_BASE + 0x24)
#define TPM_DID_VID_REG (TPM_LOCALITY_0_SPI_BASE + 0xf00)
#define TPM_RID_REG (TPM_LOCALITY_0_SPI_BASE + 0xf04)
static struct swig_string_data empty_string_data = (struct swig_string_data){
.size = 0, .data = NULL