Skip to content

Commit

Permalink
Merge pull request #161 from lyt31/0120
Browse files Browse the repository at this point in the history
drivers/perf: phytium: Support for Phytium Soc DDR  controller PMU
  • Loading branch information
opsiff authored Jun 25, 2024
2 parents 9b58da7 + 661cb04 commit 8056dd5
Show file tree
Hide file tree
Showing 6 changed files with 1,633 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/perf/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -234,4 +234,6 @@ config CXL_PMU

If unsure say 'm'.

source "drivers/perf/phytium/Kconfig"

endmenu
1 change: 1 addition & 0 deletions drivers/perf/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@ obj-$(CONFIG_ALIBABA_UNCORE_DRW_PMU) += alibaba_uncore_drw_pmu.o
obj-$(CONFIG_ARM_CORESIGHT_PMU_ARCH_SYSTEM_PMU) += arm_cspmu/
obj-$(CONFIG_MESON_DDR_PMU) += amlogic/
obj-$(CONFIG_CXL_PMU) += cxl_pmu.o
obj-$(CONFIG_PHYTIUM_PMU) += phytium/
27 changes: 27 additions & 0 deletions drivers/perf/phytium/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# 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) || COMPILE_TEST
default m
help
Provides support for Phytium SoC DDR Controller performance
monitoring unit (PMU).

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

endif

4 changes: 4 additions & 0 deletions drivers/perf/phytium/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# SPDX-License-Identifier: GPL-2.0
#
obj-$(CONFIG_PHYT_DDR_PMU) += phytium_ddr_pmu.o
obj-$(CONFIG_PHYT_PCIE_PMU) += phytium_pcie_pmu.o
Loading

0 comments on commit 8056dd5

Please sign in to comment.