xref: /linux/drivers/cpufreq/Makefile (revision 46ff24efe04ac96a129dd01138640c3447a525e1)
1# SPDX-License-Identifier: GPL-2.0
2# CPUfreq core
3obj-$(CONFIG_CPU_FREQ)			+= cpufreq.o freq_table.o
4
5# CPUfreq stats
6obj-$(CONFIG_CPU_FREQ_STAT)             += cpufreq_stats.o
7
8# CPUfreq governors
9obj-$(CONFIG_CPU_FREQ_GOV_PERFORMANCE)	+= cpufreq_performance.o
10obj-$(CONFIG_CPU_FREQ_GOV_POWERSAVE)	+= cpufreq_powersave.o
11obj-$(CONFIG_CPU_FREQ_GOV_USERSPACE)	+= cpufreq_userspace.o
12obj-$(CONFIG_CPU_FREQ_GOV_ONDEMAND)	+= cpufreq_ondemand.o
13obj-$(CONFIG_CPU_FREQ_GOV_CONSERVATIVE)	+= cpufreq_conservative.o
14obj-$(CONFIG_CPU_FREQ_GOV_COMMON)		+= cpufreq_governor.o
15obj-$(CONFIG_CPU_FREQ_GOV_ATTR_SET)	+= cpufreq_governor_attr_set.o
16
17obj-$(CONFIG_CPUFREQ_DT)		+= cpufreq-dt.o
18obj-$(CONFIG_CPUFREQ_DT_PLATDEV)	+= cpufreq-dt-platdev.o
19
20# Traces
21CFLAGS_amd-pstate-trace.o               := -I$(src)
22amd_pstate-y				:= amd-pstate.o amd-pstate-trace.o
23
24##################################################################################
25# x86 drivers.
26# Link order matters. K8 is preferred to ACPI because of firmware bugs in early
27# K8 systems. This is still the case but acpi-cpufreq errors out so that
28# powernow-k8 can load then. ACPI is preferred to all other hardware-specific drivers.
29# speedstep-* is preferred over p4-clockmod.
30
31obj-$(CONFIG_X86_ACPI_CPUFREQ)		+= acpi-cpufreq.o
32obj-$(CONFIG_X86_AMD_PSTATE)		+= amd_pstate.o
33obj-$(CONFIG_X86_AMD_PSTATE_UT)		+= amd-pstate-ut.o
34obj-$(CONFIG_X86_POWERNOW_K8)		+= powernow-k8.o
35obj-$(CONFIG_X86_PCC_CPUFREQ)		+= pcc-cpufreq.o
36obj-$(CONFIG_X86_POWERNOW_K6)		+= powernow-k6.o
37obj-$(CONFIG_X86_POWERNOW_K7)		+= powernow-k7.o
38obj-$(CONFIG_X86_LONGHAUL)		+= longhaul.o
39obj-$(CONFIG_X86_E_POWERSAVER)		+= e_powersaver.o
40obj-$(CONFIG_ELAN_CPUFREQ)		+= elanfreq.o
41obj-$(CONFIG_SC520_CPUFREQ)		+= sc520_freq.o
42obj-$(CONFIG_X86_LONGRUN)		+= longrun.o
43obj-$(CONFIG_X86_GX_SUSPMOD)		+= gx-suspmod.o
44obj-$(CONFIG_X86_SPEEDSTEP_ICH)		+= speedstep-ich.o
45obj-$(CONFIG_X86_SPEEDSTEP_LIB)		+= speedstep-lib.o
46obj-$(CONFIG_X86_SPEEDSTEP_SMI)		+= speedstep-smi.o
47obj-$(CONFIG_X86_SPEEDSTEP_CENTRINO)	+= speedstep-centrino.o
48obj-$(CONFIG_X86_P4_CLOCKMOD)		+= p4-clockmod.o
49obj-$(CONFIG_X86_CPUFREQ_NFORCE2)	+= cpufreq-nforce2.o
50obj-$(CONFIG_X86_INTEL_PSTATE)		+= intel_pstate.o
51obj-$(CONFIG_X86_AMD_FREQ_SENSITIVITY)	+= amd_freq_sensitivity.o
52
53##################################################################################
54# ARM SoC drivers
55obj-$(CONFIG_ARM_APPLE_SOC_CPUFREQ)	+= apple-soc-cpufreq.o
56obj-$(CONFIG_ARM_ARMADA_37XX_CPUFREQ)	+= armada-37xx-cpufreq.o
57obj-$(CONFIG_ARM_ARMADA_8K_CPUFREQ)	+= armada-8k-cpufreq.o
58obj-$(CONFIG_ARM_BRCMSTB_AVS_CPUFREQ)	+= brcmstb-avs-cpufreq.o
59obj-$(CONFIG_ACPI_CPPC_CPUFREQ)		+= cppc_cpufreq.o
60obj-$(CONFIG_ARCH_DAVINCI)		+= davinci-cpufreq.o
61obj-$(CONFIG_ARM_HIGHBANK_CPUFREQ)	+= highbank-cpufreq.o
62obj-$(CONFIG_ARM_IMX6Q_CPUFREQ)		+= imx6q-cpufreq.o
63obj-$(CONFIG_ARM_IMX_CPUFREQ_DT)	+= imx-cpufreq-dt.o
64obj-$(CONFIG_ARM_KIRKWOOD_CPUFREQ)	+= kirkwood-cpufreq.o
65obj-$(CONFIG_ARM_MEDIATEK_CPUFREQ)	+= mediatek-cpufreq.o
66obj-$(CONFIG_ARM_MEDIATEK_CPUFREQ_HW)	+= mediatek-cpufreq-hw.o
67obj-$(CONFIG_MACH_MVEBU_V7)		+= mvebu-cpufreq.o
68obj-$(CONFIG_ARM_OMAP2PLUS_CPUFREQ)	+= omap-cpufreq.o
69obj-$(CONFIG_ARM_PXA2xx_CPUFREQ)	+= pxa2xx-cpufreq.o
70obj-$(CONFIG_PXA3xx)			+= pxa3xx-cpufreq.o
71obj-$(CONFIG_ARM_QCOM_CPUFREQ_HW)	+= qcom-cpufreq-hw.o
72obj-$(CONFIG_ARM_QCOM_CPUFREQ_NVMEM)	+= qcom-cpufreq-nvmem.o
73obj-$(CONFIG_ARM_RASPBERRYPI_CPUFREQ) 	+= raspberrypi-cpufreq.o
74obj-$(CONFIG_ARM_S3C64XX_CPUFREQ)	+= s3c64xx-cpufreq.o
75obj-$(CONFIG_ARM_S5PV210_CPUFREQ)	+= s5pv210-cpufreq.o
76obj-$(CONFIG_ARM_SA1110_CPUFREQ)	+= sa1110-cpufreq.o
77obj-$(CONFIG_ARM_SCMI_CPUFREQ)		+= scmi-cpufreq.o
78obj-$(CONFIG_ARM_SCPI_CPUFREQ)		+= scpi-cpufreq.o
79obj-$(CONFIG_ARM_SPEAR_CPUFREQ)		+= spear-cpufreq.o
80obj-$(CONFIG_ARM_STI_CPUFREQ)		+= sti-cpufreq.o
81obj-$(CONFIG_ARM_ALLWINNER_SUN50I_CPUFREQ_NVMEM) += sun50i-cpufreq-nvmem.o
82obj-$(CONFIG_ARM_TEGRA20_CPUFREQ)	+= tegra20-cpufreq.o
83obj-$(CONFIG_ARM_TEGRA124_CPUFREQ)	+= tegra124-cpufreq.o
84obj-$(CONFIG_ARM_TEGRA186_CPUFREQ)	+= tegra186-cpufreq.o
85obj-$(CONFIG_ARM_TEGRA194_CPUFREQ)	+= tegra194-cpufreq.o
86obj-$(CONFIG_ARM_TI_CPUFREQ)		+= ti-cpufreq.o
87obj-$(CONFIG_ARM_VEXPRESS_SPC_CPUFREQ)	+= vexpress-spc-cpufreq.o
88
89
90##################################################################################
91# PowerPC platform drivers
92obj-$(CONFIG_CPU_FREQ_CBE)		+= ppc-cbe-cpufreq.o
93ppc-cbe-cpufreq-y			+= ppc_cbe_cpufreq_pervasive.o ppc_cbe_cpufreq.o
94obj-$(CONFIG_CPU_FREQ_CBE_PMI)		+= ppc_cbe_cpufreq_pmi.o
95obj-$(CONFIG_CPU_FREQ_MAPLE)		+= maple-cpufreq.o
96obj-$(CONFIG_QORIQ_CPUFREQ)   		+= qoriq-cpufreq.o
97obj-$(CONFIG_CPU_FREQ_PMAC)		+= pmac32-cpufreq.o
98obj-$(CONFIG_CPU_FREQ_PMAC64)		+= pmac64-cpufreq.o
99obj-$(CONFIG_PPC_PASEMI_CPUFREQ)	+= pasemi-cpufreq.o
100obj-$(CONFIG_POWERNV_CPUFREQ)		+= powernv-cpufreq.o
101
102##################################################################################
103# Other platform drivers
104obj-$(CONFIG_BMIPS_CPUFREQ)		+= bmips-cpufreq.o
105obj-$(CONFIG_IA64_ACPI_CPUFREQ)		+= ia64-acpi-cpufreq.o
106obj-$(CONFIG_LOONGSON2_CPUFREQ)		+= loongson2_cpufreq.o
107obj-$(CONFIG_SH_CPU_FREQ)		+= sh-cpufreq.o
108obj-$(CONFIG_SPARC_US2E_CPUFREQ)	+= sparc-us2e-cpufreq.o
109obj-$(CONFIG_SPARC_US3_CPUFREQ)		+= sparc-us3-cpufreq.o
110