blob: 89e4621b77e3b34028e8076adbd363f6a9fac739 [file] [log] [blame]
Stefan Reinauer7cb01e02013-08-29 16:05:02 -07001config I2C_TPM
2 bool "I2C TPM"
Vadim Bendebury26588702016-06-02 20:43:19 -07003 depends on TPM || TPM2
Stefan Reinauer7cb01e02013-08-29 16:05:02 -07004
Duncan Laurie2ea13c82016-09-19 16:04:39 -07005config MAINBOARD_HAS_I2C_TPM_CR50
6 bool
7 default n
8
9choice
10 prompt "I2C TPM Driver"
11 default I2C_TPM_CR50 if MAINBOARD_HAS_I2C_TPM_CR50
12 default I2C_TPM_GENERIC if !MAINBOARD_HAS_I2C_TPM_CR50
13 depends on I2C_TPM
14
15config I2C_TPM_GENERIC
16 bool "Generic I2C TPM Driver"
17
18config I2C_TPM_CR50
19 bool "CR50 I2C TPM Driver"
20
21endchoice
22
Stefan Reinauerd518c7a2013-11-04 17:38:32 -080023config DRIVER_TPM_I2C_BUS
24 hex "I2C TPM chip bus"
Martin Roth3b878122016-09-30 14:43:01 -060025 default 0x9 # FIXME, workaround for Kconfig BS
Stefan Reinauerd518c7a2013-11-04 17:38:32 -080026 depends on I2C_TPM
27
Stefan Reinauer7cb01e02013-08-29 16:05:02 -070028config DRIVER_TPM_I2C_ADDR
29 hex "I2C TPM chip address"
Martin Roth3b878122016-09-30 14:43:01 -060030 default 0x2 # FIXME, workaround for Kconfig BS
Stefan Reinauer7cb01e02013-08-29 16:05:02 -070031 depends on I2C_TPM
Duncan Laurie6eb8e1d2016-09-01 15:56:44 -070032
Duncan Laurie94cc4852016-09-19 17:22:10 -070033config DRIVER_TPM_I2C_IRQ
34 int "IRQ or GPE to use for TPM interrupt"
35 default -1
36 depends on I2C_TPM
37
Duncan Laurie6eb8e1d2016-09-01 15:56:44 -070038config DRIVER_I2C_TPM_ACPI
39 bool "Generate I2C TPM ACPI device"
40 default y if ARCH_X86 && I2C_TPM
41 default n