# SPDX-License-Identifier: GPL-2.0-only

config TPM_GOOGLE
	bool

config TPM_GOOGLE_CR50
	bool
	select TPM_GOOGLE

config TPM_GOOGLE_TI50
	bool
	select TPM_GOOGLE

if TPM_GOOGLE

config TPM_GOOGLE_IMMEDIATELY_COMMIT_FW_SECDATA
	bool
	default y

config POWER_OFF_ON_CR50_UPDATE
	bool
	default y if ARCH_X86
	help
	  Power off machine while waiting for CR50 update to take effect.

config CR50_USE_LONG_INTERRUPT_PULSES
	bool
	default n
	help
	  Whether to request longer interrupt pulses using Cr50 BOARD_CFG register.
	  If the Cr50 firmware is too old, it will not be able to honor the request.

config TI50_FIRMWARE_VERSION_NOT_SUPPORTED
	bool
	default n
	help
	  Ti50 FW versions below 0.15 don't support the firmware_version register,
	  and trying to access it causes I2C errors. This config will skip accesses
	  to the register, and should be selected for boards using Ti50 chips with
	  FW < 0.0.15. The config will be removed once all Ti50 stocks are updated to
	  0.0.15 or higher.

endif
