1# SPDX-License-Identifier: GPL-2.0-only 2 3config TPM_GOOGLE 4 bool 5 6config TPM_GOOGLE_CR50 7 bool 8 select TPM_GOOGLE 9 10config TPM_GOOGLE_TI50 11 bool 12 select TPM_GOOGLE 13 14if TPM_GOOGLE 15 16config TPM_GOOGLE_IMMEDIATELY_COMMIT_FW_SECDATA 17 bool 18 default y 19 20config POWER_OFF_ON_CR50_UPDATE 21 bool 22 default y if ARCH_X86 23 help 24 Power off machine while waiting for CR50 update to take effect. 25 26config CR50_USE_LONG_INTERRUPT_PULSES 27 bool 28 default n 29 help 30 Whether to request longer interrupt pulses using Cr50 BOARD_CFG register. 31 If the Cr50 firmware is too old, it will not be able to honor the request. 32 33config GOOGLE_TPM_IRQ_TIMEOUT_MS 34 int 35 default 100 if TPM_GOOGLE_CR50 && I2C_TPM 36 default 10 if TPM_GOOGLE_CR50 37 default 750 38 help 39 Timeout in milliseconds for waiting for TPM IRQ. Default to 100ms/10ms on platforms 40 using Cr50 in order to support legacy pre-ready-IRQ cr50 factory images. Default to 41 750ms otherwise. 42 43config CR50_RESET_CLEAR_EC_AP_IDLE_FLAG 44 bool 45 default y if !SYSTEM_TYPE_LAPTOP 46 help 47 Select this if the variant is a Chromebox/base. This allows AP to direct EC 48 to clear AP_IDLE flag after AP shutdown before triggering CR50 reset and 49 shutting down AP so that AP can boot up after CR50 reset. 50 51endif 52