summaryrefslogtreecommitdiff
path: root/drivers/tpm
diff options
context:
space:
mode:
authormario.six@gdsys.cc <mario.six@gdsys.cc>2017-03-20 09:28:30 (GMT)
committerSimon Glass <sjg@chromium.org>2017-03-26 19:22:58 (GMT)
commit3d1df0e363ff13b7aed17f9bb576d045f26c3f74 (patch)
treea0c33be9295408f3645f171a873e48c31ecebffb /drivers/tpm
parent1c08b210a8a7b20edc6620b62a5b9f886fff9eb7 (diff)
downloadu-boot-fsl-qoriq-3d1df0e363ff13b7aed17f9bb576d045f26c3f74.tar.xz
lib: tpm: Add command to list resources
It is sometimes convenient to know how many and/or which resources are currently loaded into a TPG, e.g. to test is a flush operation succeeded. Hence, we add a command that lists the resources of a given type currently loaded into the TPM. Signed-off-by: Mario Six <mario.six@gdsys.cc> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/tpm')
-rw-r--r--drivers/tpm/Kconfig7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/tpm/Kconfig b/drivers/tpm/Kconfig
index a54b6a9..2a64bc4 100644
--- a/drivers/tpm/Kconfig
+++ b/drivers/tpm/Kconfig
@@ -96,4 +96,11 @@ config TPM_LOAD_KEY_BY_SHA1
Enable support to load keys into the TPM by identifying
their parent via the public key's SHA1 hash.
The functionality is available via the 'tpm' command as well.
+
+config TPM_LIST_RESOURCES
+ bool "Enable TPM resource listing support"
+ depends on TPM
+ help
+ Enable support to list specific resources (e.g. keys) within the TPM.
+ The functionality is available via the 'tpm' command as well.
endmenu