Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drivers/perf: phytium: Support for Phytium Soc DDR controller PMU #161

Merged
merged 2 commits into from
Jun 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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