Stefan Reinauer | 7cb01e0 | 2013-08-29 16:05:02 -0700 | [diff] [blame] | 1 | config I2C_TPM |
| 2 | bool "I2C TPM" |
Vadim Bendebury | 2658870 | 2016-06-02 20:43:19 -0700 | [diff] [blame] | 3 | depends on TPM || TPM2 |
Stefan Reinauer | 7cb01e0 | 2013-08-29 16:05:02 -0700 | [diff] [blame] | 4 | |
Duncan Laurie | 2ea13c8 | 2016-09-19 16:04:39 -0700 | [diff] [blame] | 5 | config MAINBOARD_HAS_I2C_TPM_CR50 |
| 6 | bool |
| 7 | default n |
| 8 | |
| 9 | choice |
| 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 | |
| 15 | config I2C_TPM_GENERIC |
| 16 | bool "Generic I2C TPM Driver" |
| 17 | |
| 18 | config I2C_TPM_CR50 |
| 19 | bool "CR50 I2C TPM Driver" |
| 20 | |
| 21 | endchoice |
| 22 | |
Stefan Reinauer | d518c7a | 2013-11-04 17:38:32 -0800 | [diff] [blame] | 23 | config DRIVER_TPM_I2C_BUS |
| 24 | hex "I2C TPM chip bus" |
Martin Roth | 3b87812 | 2016-09-30 14:43:01 -0600 | [diff] [blame] | 25 | default 0x9 # FIXME, workaround for Kconfig BS |
Stefan Reinauer | d518c7a | 2013-11-04 17:38:32 -0800 | [diff] [blame] | 26 | depends on I2C_TPM |
| 27 | |
Stefan Reinauer | 7cb01e0 | 2013-08-29 16:05:02 -0700 | [diff] [blame] | 28 | config DRIVER_TPM_I2C_ADDR |
| 29 | hex "I2C TPM chip address" |
Martin Roth | 3b87812 | 2016-09-30 14:43:01 -0600 | [diff] [blame] | 30 | default 0x2 # FIXME, workaround for Kconfig BS |
Stefan Reinauer | 7cb01e0 | 2013-08-29 16:05:02 -0700 | [diff] [blame] | 31 | depends on I2C_TPM |
Duncan Laurie | 6eb8e1d | 2016-09-01 15:56:44 -0700 | [diff] [blame] | 32 | |
Duncan Laurie | 94cc485 | 2016-09-19 17:22:10 -0700 | [diff] [blame] | 33 | config DRIVER_TPM_I2C_IRQ |
| 34 | int "IRQ or GPE to use for TPM interrupt" |
| 35 | default -1 |
| 36 | depends on I2C_TPM |
| 37 | |
Duncan Laurie | 6eb8e1d | 2016-09-01 15:56:44 -0700 | [diff] [blame] | 38 | config DRIVER_I2C_TPM_ACPI |
| 39 | bool "Generate I2C TPM ACPI device" |
| 40 | default y if ARCH_X86 && I2C_TPM |
| 41 | default n |