]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
dm: tpm: Add a uclass for Trusted Platform Modules
authorSimon Glass <sjg@chromium.org>
Sun, 23 Aug 2015 00:31:31 +0000 (18:31 -0600)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 10:19:17 +0000 (12:19 +0200)
commit1ad251a49060a067147d6b3a563aa6c4deac938c
tree3f11e499f664698612e62979146f0ede1593963c
parent63ba81546db330a4ed87a924c050740228120527
dm: tpm: Add a uclass for Trusted Platform Modules

Add a new uclass for TPMs which uses almost the same TIS (TPM Interface
Specification) as is currently implemented. Since init() is handled by the
normal driver model probe() method, we don't need to implement that. Also
rename the transfer method to xfer() which is a less clumbsy name.

Once all drivers and users are converted to driver model we can remove the
old code.

Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Christophe Ricard<christophe-h.ricard@st.com>
Reviewed-by: Heiko Schocher <hs@denx.de>
drivers/tpm/Kconfig
drivers/tpm/Makefile
drivers/tpm/tpm-uclass.c [new file with mode: 0644]
drivers/tpm/tpm_internal.h [new file with mode: 0644]
drivers/tpm/tpm_tis_i2c.c
drivers/tpm/tpm_tis_i2c.h
drivers/tpm/tpm_tis_lpc.c
include/dm/uclass-id.h
include/tis.h
include/tpm.h