blob: 111f91a5c10854df59c2de4047eafd0874af9041 [file] [log] [blame]
Philipp Deppenwiese64e2d192017-10-18 17:13:07 +02001## This file is part of the coreboot project.
2##
3## Copyright (C) 2017 Philipp Deppenwiese, Facebook, Inc.
4##
5## This program is free software; you can redistribute it and/or modify
6## it under the terms of the GNU General Public License as published by
7## the Free Software Foundation; version 2 of the License.
8##
9## This program is distributed in the hope that it will be useful,
10## but WITHOUT ANY WARRANTY; without even the implied warranty of
11## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12## GNU General Public License for more details.
13##
14
15menu "Trusted Platform Module"
16
17config TPM
18 bool
19 default n
20 select LPC_TPM if MAINBOARD_HAS_LPC_TPM
21 select I2C_TPM if !MAINBOARD_HAS_LPC_TPM && !SPI_TPM
22 help
23 Enable this option to enable TPM support in coreboot.
24
25 If unsure, say N.
26
27config TPM2
28 bool
29 select LPC_TPM if MAINBOARD_HAS_LPC_TPM
30 select I2C_TPM if !MAINBOARD_HAS_LPC_TPM && !SPI_TPM
31 help
32 Enable this option to enable TPM2 support in coreboot.
33
34 If unsure, say N.
35
36config DEBUG_TPM
37 bool "Output verbose TPM debug messages"
38 default n
39 depends on TPM || TPM2
40 help
41 This option enables additional TPM related debug messages.
42
43config MAINBOARD_HAS_TPM_CR50
44 bool
45 default y if MAINBOARD_HAS_SPI_TPM_CR50 || MAINBOARD_HAS_I2C_TPM_CR50
46 default n
47 select MAINBOARD_HAS_TPM2
48 select POWER_OFF_ON_CR50_UPDATE if ARCH_X86
49
50config POWER_OFF_ON_CR50_UPDATE
51 bool
52 help
53 Power off machine while waiting for CR50 update to take effect.
54
55config MAINBOARD_HAS_LPC_TPM
56 bool
57 default n
58 help
59 Board has TPM support
60
61config MAINBOARD_HAS_TPM2
62 bool
63 default n
64 help
65 There is a TPM device installed on the mainboard, and it is
66 compliant with version 2 TCG TPM specification. Could be connected
67 over LPC, SPI or I2C.
68
69endmenu # Trusted Platform Module (tpm)