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

config SOC_INTEL_COMMON_BLOCK_USB4
	bool
	default n
	depends on SOC_INTEL_COMMON_BLOCK_TCSS
	help
	  Minimal PCI Driver for enabling SSDT generation for the DMA component
	  of Intel Thunderbolt/USB4 ports.

config SOC_INTEL_COMMON_BLOCK_USB4_PCIE
	bool
	default n
	help
	  Chip driver for adding PCI ops and SSDT generation for common Intel
	  USB4/Thunderbolt root ports.

config SOC_INTEL_COMMON_BLOCK_USB4_XHCI
	bool
	default n
	help
	  Minimal PCI driver for adding PCI ops and SSDT generation for common
	  Intel USB4/Thunderbolt North XHCI ports.

config SOC_INTEL_ENABLE_USB4_PCIE_RESOURCES
	bool
	default n
	depends on SOC_INTEL_COMMON_BLOCK_USB4
	select PCIEXP_HOTPLUG
	help
	  Enable USB4 PCIe resources for reserving hotplug buses and memory.

config DEFAULT_SOFTWARE_CONNECTION_MANAGER
	bool
	help
	  select to default to using the Software Connection Manager

choice
	prompt "Connection Manager"
	depends on SOC_INTEL_COMMON_BLOCK_USB4
	default SOFTWARE_CONNECTION_MANAGER if DEFAULT_SOFTWARE_CONNECTION_MANAGER
	default FIRMWARE_CONNECTION_MANAGER
	help
	  Software Connection Manager doesn't work with Linux 5.13 or later,
	  resulting in TBT ports timing out. Firmware Connection Manager works
	  correctly.
	  Linux patch:
	    torvalds/linux@c6da62a
	    c6da62a219d028de10f2e22e93a34c7ee2b88d03

config FIRMWARE_CONNECTION_MANAGER
	bool "Firmware Connection Manager"
	help
	  Disable SCM so that FCM can be used

config SOFTWARE_CONNECTION_MANAGER
	bool "Software Connection Manager"
	help
	  Enable SCM so it's used instead of FCM.
endchoice

config IOM_ACPI_DEVICE_VISIBLE
	bool
	depends on SOC_INTEL_COMMON_BLOCK_USB4
	default n
	help
	  Select this config if the mainboard needs the IOM ACPI device
	  visible to the OS. This is needed for ChromeOS devices for
	  which ChromeEC acts as the TCPC, otherwise should be left
	  unselected.
