mirror of
https://github.com/smaeul/u-boot.git
synced 2025-10-17 22:28:17 +01:00
tpm: add #ifndef to fix redeclaration build errors
tpm_tis_spi.c directly includes tpm_tis.h and tpm-v2.h which both define the same enums (see e.g. TPM_ACCESS_VALID). Add an #ifndef to prevent redeclaration errors. Signed-off-by: Johannes Holland <johannes.holland@infineon.com>
This commit is contained in:
parent
06bea49809
commit
bedbb383e1
@ -104,6 +104,7 @@ struct tpm_cmd_t {
|
|||||||
/* Max number of iterations after i2c NAK */
|
/* Max number of iterations after i2c NAK */
|
||||||
#define MAX_COUNT 3
|
#define MAX_COUNT 3
|
||||||
|
|
||||||
|
#ifndef __TPM_V2_H
|
||||||
/*
|
/*
|
||||||
* Max number of iterations after i2c NAK for 'long' commands
|
* Max number of iterations after i2c NAK for 'long' commands
|
||||||
*
|
*
|
||||||
@ -127,5 +128,6 @@ enum tis_status {
|
|||||||
TPM_STS_DATA_AVAIL = 0x10,
|
TPM_STS_DATA_AVAIL = 0x10,
|
||||||
TPM_STS_DATA_EXPECT = 0x08,
|
TPM_STS_DATA_EXPECT = 0x08,
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user