1 ## This file is part of the coreboot project.
3 ## Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
4 ## Copyright (C) 2018 Facebook Inc.
6 ## This program is free software; you can redistribute it and/or modify
7 ## it under the terms of the GNU General Public License as published by
8 ## the Free Software Foundation; version 2 of the License.
10 ## This program is distributed in the hope that it will be useful,
11 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
12 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 ## GNU General Public License for more details.
16 source "src/security/tpm/tss/vendor/cr50/Kconfig"
18 menu "Trusted Platform Module"
22 default y if MAINBOARD_HAS_TPM1 || USER_TPM1
23 depends on MAINBOARD_HAS_LPC_TPM || MAINBOARD_HAS_I2C_TPM_GENERIC \
24 || MAINBOARD_HAS_I2C_TPM_ATMEL
28 default y if MAINBOARD_HAS_TPM2 || USER_TPM2
29 depends on MAINBOARD_HAS_I2C_TPM_GENERIC || MAINBOARD_HAS_LPC_TPM \
30 || MAINBOARD_HAS_I2C_TPM_ATMEL || MAINBOARD_HAS_I2C_TPM_CR50 \
31 || MAINBOARD_HAS_SPI_TPM_CR50
33 config MAINBOARD_HAS_TPM1
36 config MAINBOARD_HAS_TPM2
39 if !MAINBOARD_HAS_TPM1 && !MAINBOARD_HAS_TPM2
42 prompt "Trusted Platform Module"
50 depends on MAINBOARD_HAS_LPC_TPM || MAINBOARD_HAS_I2C_TPM_GENERIC \
51 || MAINBOARD_HAS_I2C_TPM_ATMEL
53 Enable this option to enable TPM 1.0 - 1.2 support in coreboot.
59 depends on MAINBOARD_HAS_I2C_TPM_GENERIC || MAINBOARD_HAS_LPC_TPM \
60 || MAINBOARD_HAS_I2C_TPM_ATMEL || MAINBOARD_HAS_I2C_TPM_CR50 \
61 || MAINBOARD_HAS_SPI_TPM_CR50
63 Enable this option to enable TPM 2.0 support in coreboot.
77 Deactivate TPM by issuing deactivate command.
80 bool "Output verbose TPM debug messages"
82 select DRIVER_TPM_DISPLAY_TIS_BYTES if I2C_TPM
83 depends on TPM1 || TPM2
85 This option enables additional TPM related debug messages.
87 config TPM_RDRESP_NEED_DELAY
88 bool "Enable Delay Workaround for TPM"
92 Certain TPMs seem to need some delay when reading response
93 to work around a race-condition-related issue, possibly
94 caused by ill-programmed TPM firmware.
96 endmenu # Trusted Platform Module (tpm)