aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/char/tpm/tpm_i2c_stm_st33.c17
-rw-r--r--drivers/char/tpm/tpm_i2c_stm_st33.h17
2 files changed, 17 insertions, 17 deletions
diff --git a/drivers/char/tpm/tpm_i2c_stm_st33.c b/drivers/char/tpm/tpm_i2c_stm_st33.c
index c4925a03d7ab..44a02103ad49 100644
--- a/drivers/char/tpm/tpm_i2c_stm_st33.c
+++ b/drivers/char/tpm/tpm_i2c_stm_st33.c
@@ -49,6 +49,23 @@
49#include <linux/slab.h> 49#include <linux/slab.h>
50 50
51#include "tpm.h" 51#include "tpm.h"
52
53#define TPM_ACCESS 0x0
54#define TPM_STS 0x18
55#define TPM_HASH_END 0x20
56#define TPM_DATA_FIFO 0x24
57#define TPM_HASH_DATA 0x24
58#define TPM_HASH_START 0x28
59#define TPM_INTF_CAPABILITY 0x14
60#define TPM_INT_STATUS 0x10
61#define TPM_INT_ENABLE 0x08
62
63#define TPM_DUMMY_BYTE 0xAA
64#define TPM_WRITE_DIRECTION 0x80
65#define TPM_HEADER_SIZE 10
66#define TPM_BUFSIZE 2048
67
68#define LOCALITY0 0
52#include "tpm_i2c_stm_st33.h" 69#include "tpm_i2c_stm_st33.h"
53 70
54enum stm33zp24_access { 71enum stm33zp24_access {
diff --git a/drivers/char/tpm/tpm_i2c_stm_st33.h b/drivers/char/tpm/tpm_i2c_stm_st33.h
index 439a43249aa6..3041271342eb 100644
--- a/drivers/char/tpm/tpm_i2c_stm_st33.h
+++ b/drivers/char/tpm/tpm_i2c_stm_st33.h
@@ -30,23 +30,6 @@
30#ifndef __STM_ST33_TPM_I2C_MAIN_H__ 30#ifndef __STM_ST33_TPM_I2C_MAIN_H__
31#define __STM_ST33_TPM_I2C_MAIN_H__ 31#define __STM_ST33_TPM_I2C_MAIN_H__
32 32
33#define TPM_ACCESS (0x0)
34#define TPM_STS (0x18)
35#define TPM_HASH_END (0x20)
36#define TPM_DATA_FIFO (0x24)
37#define TPM_HASH_DATA (0x24)
38#define TPM_HASH_START (0x28)
39#define TPM_INTF_CAPABILITY (0x14)
40#define TPM_INT_STATUS (0x10)
41#define TPM_INT_ENABLE (0x08)
42
43#define TPM_DUMMY_BYTE 0xAA
44#define TPM_WRITE_DIRECTION 0x80
45#define TPM_HEADER_SIZE 10
46#define TPM_BUFSIZE 2048
47
48#define LOCALITY0 0
49
50#define TPM_ST33_I2C "st33zp24_i2c" 33#define TPM_ST33_I2C "st33zp24_i2c"
51 34
52struct st33zp24_platform_data { 35struct st33zp24_platform_data {