xref: /rk3399_rockchip-uboot/drivers/tpm/Kconfig (revision 0766ad2f7fdae6d7482b8e1e3f5a49b3d9a3810b)
1a7d660bcSSimon Glass#
2a7d660bcSSimon Glass# TPM subsystem configuration
3a7d660bcSSimon Glass#
4a7d660bcSSimon Glass
5a7d660bcSSimon Glassmenu "TPM support"
6a7d660bcSSimon Glass
7f255d31fSSimon Glassconfig DM_TPM
8f255d31fSSimon Glass	bool "Enable driver model for Trusted Platform Module drivers"
9f255d31fSSimon Glass	depends on DM && TPM
10f255d31fSSimon Glass	help
11f255d31fSSimon Glass          Enable driver model for TPMs. The TIS interface (tis_open(),
12f255d31fSSimon Glass	  tis_sendrecv(), etc.) is then implemented by the TPM uclass. Note
13f255d31fSSimon Glass	  that even with driver model only a single TPM is currently
14f255d31fSSimon Glass	  supported, since the tpm library assumes this.
15f255d31fSSimon Glass
16527a0727SSimon Glassconfig TPM_TIS_SANDBOX
17527a0727SSimon Glass	bool "Enable sandbox TPM driver"
18a7d660bcSSimon Glass	depends on SANDBOX
19527a0727SSimon Glass	help
20527a0727SSimon Glass	  This driver emulates a TPM, providing access to base functions
21527a0727SSimon Glass	  such as reading and writing TPM private data. This is enough to
22527a0727SSimon Glass	  support Chrome OS verified boot. Extend functionality is not
23527a0727SSimon Glass	  implemented.
24a7d660bcSSimon Glass
25a7d660bcSSimon Glassconfig TPM_ATMEL_TWI
26a7d660bcSSimon Glass	bool "Enable Atmel TWI TPM device driver"
27a7d660bcSSimon Glass	depends on TPM
28a7d660bcSSimon Glass	help
29a7d660bcSSimon Glass	  This driver supports an Atmel TPM device connected on the I2C bus.
30a7d660bcSSimon Glass	  The usual tpm operations and the 'tpm' command can be used to talk
31a7d660bcSSimon Glass	  to the device using the standard TPM Interface Specification (TIS)
32a7d660bcSSimon Glass	  protocol
33a7d660bcSSimon Glass
34*0766ad2fSChristophe Ricardconfig TPM_TIS_INFINEON
35a7d660bcSSimon Glass	bool "Enable support for Infineon SLB9635/45 TPMs on I2C"
36a7d660bcSSimon Glass	depends on TPM && DM_I2C
37a7d660bcSSimon Glass	help
38a7d660bcSSimon Glass	  This driver supports Infineon TPM devices connected on the I2C bus.
39a7d660bcSSimon Glass	  The usual tpm operations and the 'tpm' command can be used to talk
40a7d660bcSSimon Glass	  to the device using the standard TPM Interface Specification (TIS)
41a7d660bcSSimon Glass	  protocol
42a7d660bcSSimon Glass
43a7d660bcSSimon Glassconfig TPM_TIS_I2C_BURST_LIMITATION
44a7d660bcSSimon Glass	bool "Enable I2C burst length limitation"
45*0766ad2fSChristophe Ricard	depends on TPM_TIS_INFINEON
46a7d660bcSSimon Glass	help
47a7d660bcSSimon Glass	  Some broken TPMs have a limitation on the number of bytes they can
48a7d660bcSSimon Glass	  receive in one message. Enable this option to allow you to set this
49a7d660bcSSimon Glass	  option. The can allow a broken TPM to be used by splitting messages
50a7d660bcSSimon Glass	  into separate pieces.
51a7d660bcSSimon Glass
52a7d660bcSSimon Glassconfig TPM_TIS_I2C_BURST_LIMITATION_LEN
53a7d660bcSSimon Glass	int "Length"
54a7d660bcSSimon Glass	depends on TPM_TIS_I2C_BURST_LIMITATION
55a7d660bcSSimon Glass	help
56a7d660bcSSimon Glass	  Use this to set the burst limitation length
57a7d660bcSSimon Glass
58a7d660bcSSimon Glassconfig TPM_TIS_LPC
59a7d660bcSSimon Glass	bool "Enable support for Infineon SLB9635/45 TPMs on LPC"
60a7d660bcSSimon Glass	depends on TPM && X86
61a7d660bcSSimon Glass	help
62a7d660bcSSimon Glass	  This driver supports Infineon TPM devices connected on the I2C bus.
63a7d660bcSSimon Glass	  The usual tpm operations and the 'tpm' command can be used to talk
64a7d660bcSSimon Glass	  to the device using the standard TPM Interface Specification (TIS)
65a7d660bcSSimon Glass	  protocol
66a7d660bcSSimon Glass
67a7d660bcSSimon Glassconfig TPM_AUTH_SESSIONS
68a7d660bcSSimon Glass	bool "Enable TPM authentication session support"
69a7d660bcSSimon Glass	depends on TPM
70a7d660bcSSimon Glass	help
71a7d660bcSSimon Glass	  Enable support for authorised (AUTH1) commands as specified in the
72a7d660bcSSimon Glass	  TCG Main Specification 1.2. OIAP-authorised versions of the commands
73a7d660bcSSimon Glass	  TPM_LoadKey2 and TPM_GetPubKey are provided. Both features are
74a7d660bcSSimon Glass	  available using the 'tpm' command, too.
75a7d660bcSSimon Glass
76a7d660bcSSimon Glassendmenu
77