# SPDX-License-Identifier: GPL-2.0
menuconfig PHYTIUM_PMU
	bool "Phytium PMU support"
	help
	  Say Y here if you want to support Phytium performance monitoring
	  unit (PMU) drivers.

if PHYTIUM_PMU

config PHYT_DDR_PMU
	tristate "Phytium SoC DDR PMU driver"
	depends on ARCH_PHYTIUM && ACPI
	default m
	help
	  Provides support and unified interface for Phytium SoC DDR Controller performance
	  monitoring unit (PMU).

if PHYT_DDR_PMU

config PHYT_DMU_PMU_PD2408
	tristate "Provide support for phytium PD2408 SoC DDR PMU driver"
	depends on (ARCH_PHYTIUM && ACPI && ARM_PHYTIUM_DMU_DEVFREQ) || (ARCH_PHYTIUM && ACPI && !ARM_PHYTIUM_DMU_DEVFREQ)
	default m
	help
	  Provides support for Phytium PD2408 SoC DDR Controller performance
	  monitoring unit (PMU).
	  When PHYT_DDR_PMU or ARM_PHYTIUM_DMU_DEVFREQ is built as a modules (=m),
	  this option can only be built as a module (=m) or disabled (=n).

endif

config PHYT_PCIE_PMU
	tristate "Phytium SoC PCIE PMU driver"
	depends on ARCH_PHYTIUM && ACPI
	default m
	help
	  Provides support for Phytium SoC PCIe Controller performance
	  monitoring unit (PMU).

config PHYT_PCIE_LINK_PMU
	tristate "Phytium SoC PCIE LINK PMU driver"
	depends on ARCH_PHYTIUM && ACPI
	default m
	help
	  Provides support for Phytium SoC PCIe LINK performance
	  monitoring unit (PMU).

config PHYT_MSI_PMU
	tristate "Phytium SoC MSI PMU driver"
	depends on ARCH_PHYTIUM && ACPI
	default m
	help
	  Provides support for Phytium SoC MSI performance
	  monitoring unit (PMU).

endif

