* TPM: remove duplicate definitions
@ 2020-05-06 22:58 Patrick Wildt
2020-05-10 23:31 ` Simon Glass
0 siblings, 1 reply; 2+ messages in thread
From: Patrick Wildt @ 2020-05-06 22:58 UTC (permalink / raw)
To: u-boot
With the recent change to tpm-v2.h, some enums are now defined twice
and tpm2_tis_spi.c fails to build. Unfortunately I fear removing
the defines from tpm_tis.h, like in this diff, will break the TPMv1
drivers tpm_tis_infineon.c and pm_tis_st33zp24_i2c.c, which depend
on those defines. Maybe they should be added to tpm-v1.h as well?
Or maybe they should be moved from tpm-v2.h to tpm_tis.h? I have
no solution.
Signed-off-by: Patrick Wildt <patrick@blueri.se>
diff --git a/drivers/tpm/tpm_tis.h b/drivers/tpm/tpm_tis.h
index 947585f8e3..4043f1aeaf 100644
--- a/drivers/tpm/tpm_tis.h
+++ b/drivers/tpm/tpm_tis.h
@@ -113,19 +113,4 @@ struct tpm_cmd_t {
*/
#define MAX_COUNT_LONG 50
-enum tis_access {
- TPM_ACCESS_VALID = 0x80,
- TPM_ACCESS_ACTIVE_LOCALITY = 0x20,
- TPM_ACCESS_REQUEST_PENDING = 0x04,
- TPM_ACCESS_REQUEST_USE = 0x02,
-};
-
-enum tis_status {
- TPM_STS_VALID = 0x80,
- TPM_STS_COMMAND_READY = 0x40,
- TPM_STS_GO = 0x20,
- TPM_STS_DATA_AVAIL = 0x10,
- TPM_STS_DATA_EXPECT = 0x08,
-};
-
#endif
^ permalink raw reply related [flat|nested] 2+ messages in thread
* TPM: remove duplicate definitions
2020-05-06 22:58 TPM: remove duplicate definitions Patrick Wildt
@ 2020-05-10 23:31 ` Simon Glass
0 siblings, 0 replies; 2+ messages in thread
From: Simon Glass @ 2020-05-10 23:31 UTC (permalink / raw)
To: u-boot
Hi Patrick,
On Wed, 6 May 2020 at 16:58, Patrick Wildt <patrick@blueri.se> wrote:
>
> With the recent change to tpm-v2.h, some enums are now defined twice
> and tpm2_tis_spi.c fails to build. Unfortunately I fear removing
> the defines from tpm_tis.h, like in this diff, will break the TPMv1
> drivers tpm_tis_infineon.c and pm_tis_st33zp24_i2c.c, which depend
> on those defines. Maybe they should be added to tpm-v1.h as well?
> Or maybe they should be moved from tpm-v2.h to tpm_tis.h? I have
> no solution.
>
> Signed-off-by: Patrick Wildt <patrick@blueri.se>
There is a tpm_common.h so they could go in there perhaps.
Regards,
Simon
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-05-10 23:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-06 22:58 TPM: remove duplicate definitions Patrick Wildt
2020-05-10 23:31 ` Simon Glass
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.