162306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0
262306a36Sopenharmony_ci# CPUfreq core
362306a36Sopenharmony_ciobj-$(CONFIG_CPU_FREQ)			+= cpufreq.o freq_table.o
462306a36Sopenharmony_ci
562306a36Sopenharmony_ci# CPUfreq stats
662306a36Sopenharmony_ciobj-$(CONFIG_CPU_FREQ_STAT)             += cpufreq_stats.o
762306a36Sopenharmony_ci
862306a36Sopenharmony_ci# CPUfreq governors 
962306a36Sopenharmony_ciobj-$(CONFIG_CPU_FREQ_GOV_PERFORMANCE)	+= cpufreq_performance.o
1062306a36Sopenharmony_ciobj-$(CONFIG_CPU_FREQ_GOV_POWERSAVE)	+= cpufreq_powersave.o
1162306a36Sopenharmony_ciobj-$(CONFIG_CPU_FREQ_GOV_USERSPACE)	+= cpufreq_userspace.o
1262306a36Sopenharmony_ciobj-$(CONFIG_CPU_FREQ_GOV_ONDEMAND)	+= cpufreq_ondemand.o
1362306a36Sopenharmony_ciobj-$(CONFIG_CPU_FREQ_GOV_CONSERVATIVE)	+= cpufreq_conservative.o
1462306a36Sopenharmony_ciobj-$(CONFIG_CPU_FREQ_GOV_COMMON)		+= cpufreq_governor.o
1562306a36Sopenharmony_ciobj-$(CONFIG_CPU_FREQ_GOV_ATTR_SET)	+= cpufreq_governor_attr_set.o
1662306a36Sopenharmony_ci
1762306a36Sopenharmony_ciobj-$(CONFIG_CPUFREQ_DT)		+= cpufreq-dt.o
1862306a36Sopenharmony_ciobj-$(CONFIG_CPUFREQ_DT_PLATDEV)	+= cpufreq-dt-platdev.o
1962306a36Sopenharmony_ci
2062306a36Sopenharmony_ci# Traces
2162306a36Sopenharmony_ciCFLAGS_amd-pstate-trace.o               := -I$(src)
2262306a36Sopenharmony_ciamd_pstate-y				:= amd-pstate.o amd-pstate-trace.o
2362306a36Sopenharmony_ci
2462306a36Sopenharmony_ci##################################################################################
2562306a36Sopenharmony_ci# x86 drivers.
2662306a36Sopenharmony_ci# Link order matters. K8 is preferred to ACPI because of firmware bugs in early
2762306a36Sopenharmony_ci# K8 systems. This is still the case but acpi-cpufreq errors out so that
2862306a36Sopenharmony_ci# powernow-k8 can load then. ACPI is preferred to all other hardware-specific drivers.
2962306a36Sopenharmony_ci# speedstep-* is preferred over p4-clockmod.
3062306a36Sopenharmony_ci
3162306a36Sopenharmony_ciobj-$(CONFIG_X86_ACPI_CPUFREQ)		+= acpi-cpufreq.o
3262306a36Sopenharmony_ciobj-$(CONFIG_X86_AMD_PSTATE)		+= amd_pstate.o
3362306a36Sopenharmony_ciobj-$(CONFIG_X86_AMD_PSTATE_UT)		+= amd-pstate-ut.o
3462306a36Sopenharmony_ciobj-$(CONFIG_X86_POWERNOW_K8)		+= powernow-k8.o
3562306a36Sopenharmony_ciobj-$(CONFIG_X86_PCC_CPUFREQ)		+= pcc-cpufreq.o
3662306a36Sopenharmony_ciobj-$(CONFIG_X86_POWERNOW_K6)		+= powernow-k6.o
3762306a36Sopenharmony_ciobj-$(CONFIG_X86_POWERNOW_K7)		+= powernow-k7.o
3862306a36Sopenharmony_ciobj-$(CONFIG_X86_LONGHAUL)		+= longhaul.o
3962306a36Sopenharmony_ciobj-$(CONFIG_X86_E_POWERSAVER)		+= e_powersaver.o
4062306a36Sopenharmony_ciobj-$(CONFIG_ELAN_CPUFREQ)		+= elanfreq.o
4162306a36Sopenharmony_ciobj-$(CONFIG_SC520_CPUFREQ)		+= sc520_freq.o
4262306a36Sopenharmony_ciobj-$(CONFIG_X86_LONGRUN)		+= longrun.o
4362306a36Sopenharmony_ciobj-$(CONFIG_X86_GX_SUSPMOD)		+= gx-suspmod.o
4462306a36Sopenharmony_ciobj-$(CONFIG_X86_SPEEDSTEP_ICH)		+= speedstep-ich.o
4562306a36Sopenharmony_ciobj-$(CONFIG_X86_SPEEDSTEP_LIB)		+= speedstep-lib.o
4662306a36Sopenharmony_ciobj-$(CONFIG_X86_SPEEDSTEP_SMI)		+= speedstep-smi.o
4762306a36Sopenharmony_ciobj-$(CONFIG_X86_SPEEDSTEP_CENTRINO)	+= speedstep-centrino.o
4862306a36Sopenharmony_ciobj-$(CONFIG_X86_P4_CLOCKMOD)		+= p4-clockmod.o
4962306a36Sopenharmony_ciobj-$(CONFIG_X86_CPUFREQ_NFORCE2)	+= cpufreq-nforce2.o
5062306a36Sopenharmony_ciobj-$(CONFIG_X86_INTEL_PSTATE)		+= intel_pstate.o
5162306a36Sopenharmony_ciobj-$(CONFIG_X86_AMD_FREQ_SENSITIVITY)	+= amd_freq_sensitivity.o
5262306a36Sopenharmony_ci
5362306a36Sopenharmony_ci##################################################################################
5462306a36Sopenharmony_ci# ARM SoC drivers
5562306a36Sopenharmony_ciobj-$(CONFIG_ARM_APPLE_SOC_CPUFREQ)	+= apple-soc-cpufreq.o
5662306a36Sopenharmony_ciobj-$(CONFIG_ARM_ARMADA_37XX_CPUFREQ)	+= armada-37xx-cpufreq.o
5762306a36Sopenharmony_ciobj-$(CONFIG_ARM_ARMADA_8K_CPUFREQ)	+= armada-8k-cpufreq.o
5862306a36Sopenharmony_ciobj-$(CONFIG_ARM_BRCMSTB_AVS_CPUFREQ)	+= brcmstb-avs-cpufreq.o
5962306a36Sopenharmony_ciobj-$(CONFIG_ACPI_CPPC_CPUFREQ)		+= cppc_cpufreq.o
6062306a36Sopenharmony_ciobj-$(CONFIG_ARCH_DAVINCI)		+= davinci-cpufreq.o
6162306a36Sopenharmony_ciobj-$(CONFIG_ARM_HIGHBANK_CPUFREQ)	+= highbank-cpufreq.o
6262306a36Sopenharmony_ciobj-$(CONFIG_ARM_IMX6Q_CPUFREQ)		+= imx6q-cpufreq.o
6362306a36Sopenharmony_ciobj-$(CONFIG_ARM_IMX_CPUFREQ_DT)	+= imx-cpufreq-dt.o
6462306a36Sopenharmony_ciobj-$(CONFIG_ARM_KIRKWOOD_CPUFREQ)	+= kirkwood-cpufreq.o
6562306a36Sopenharmony_ciobj-$(CONFIG_ARM_MEDIATEK_CPUFREQ)	+= mediatek-cpufreq.o
6662306a36Sopenharmony_ciobj-$(CONFIG_ARM_MEDIATEK_CPUFREQ_HW)	+= mediatek-cpufreq-hw.o
6762306a36Sopenharmony_ciobj-$(CONFIG_MACH_MVEBU_V7)		+= mvebu-cpufreq.o
6862306a36Sopenharmony_ciobj-$(CONFIG_ARM_OMAP2PLUS_CPUFREQ)	+= omap-cpufreq.o
6962306a36Sopenharmony_ciobj-$(CONFIG_ARM_PXA2xx_CPUFREQ)	+= pxa2xx-cpufreq.o
7062306a36Sopenharmony_ciobj-$(CONFIG_PXA3xx)			+= pxa3xx-cpufreq.o
7162306a36Sopenharmony_ciobj-$(CONFIG_ARM_QCOM_CPUFREQ_HW)	+= qcom-cpufreq-hw.o
7262306a36Sopenharmony_ciobj-$(CONFIG_ARM_QCOM_CPUFREQ_NVMEM)	+= qcom-cpufreq-nvmem.o
7362306a36Sopenharmony_ciobj-$(CONFIG_ARM_RASPBERRYPI_CPUFREQ) 	+= raspberrypi-cpufreq.o
7462306a36Sopenharmony_ciobj-$(CONFIG_ARM_S3C64XX_CPUFREQ)	+= s3c64xx-cpufreq.o
7562306a36Sopenharmony_ciobj-$(CONFIG_ARM_S5PV210_CPUFREQ)	+= s5pv210-cpufreq.o
7662306a36Sopenharmony_ciobj-$(CONFIG_ARM_SA1110_CPUFREQ)	+= sa1110-cpufreq.o
7762306a36Sopenharmony_ciobj-$(CONFIG_ARM_SCMI_CPUFREQ)		+= scmi-cpufreq.o
7862306a36Sopenharmony_ciobj-$(CONFIG_ARM_SCPI_CPUFREQ)		+= scpi-cpufreq.o
7962306a36Sopenharmony_ciobj-$(CONFIG_ARM_SPEAR_CPUFREQ)		+= spear-cpufreq.o
8062306a36Sopenharmony_ciobj-$(CONFIG_ARM_STI_CPUFREQ)		+= sti-cpufreq.o
8162306a36Sopenharmony_ciobj-$(CONFIG_ARM_ALLWINNER_SUN50I_CPUFREQ_NVMEM) += sun50i-cpufreq-nvmem.o
8262306a36Sopenharmony_ciobj-$(CONFIG_ARM_TEGRA20_CPUFREQ)	+= tegra20-cpufreq.o
8362306a36Sopenharmony_ciobj-$(CONFIG_ARM_TEGRA124_CPUFREQ)	+= tegra124-cpufreq.o
8462306a36Sopenharmony_ciobj-$(CONFIG_ARM_TEGRA186_CPUFREQ)	+= tegra186-cpufreq.o
8562306a36Sopenharmony_ciobj-$(CONFIG_ARM_TEGRA194_CPUFREQ)	+= tegra194-cpufreq.o
8662306a36Sopenharmony_ciobj-$(CONFIG_ARM_TI_CPUFREQ)		+= ti-cpufreq.o
8762306a36Sopenharmony_ciobj-$(CONFIG_ARM_VEXPRESS_SPC_CPUFREQ)	+= vexpress-spc-cpufreq.o
8862306a36Sopenharmony_ci
8962306a36Sopenharmony_ci
9062306a36Sopenharmony_ci##################################################################################
9162306a36Sopenharmony_ci# PowerPC platform drivers
9262306a36Sopenharmony_ciobj-$(CONFIG_CPU_FREQ_CBE)		+= ppc-cbe-cpufreq.o
9362306a36Sopenharmony_cippc-cbe-cpufreq-y			+= ppc_cbe_cpufreq_pervasive.o ppc_cbe_cpufreq.o
9462306a36Sopenharmony_ciobj-$(CONFIG_CPU_FREQ_CBE_PMI)		+= ppc_cbe_cpufreq_pmi.o
9562306a36Sopenharmony_ciobj-$(CONFIG_CPU_FREQ_MAPLE)		+= maple-cpufreq.o
9662306a36Sopenharmony_ciobj-$(CONFIG_QORIQ_CPUFREQ)   		+= qoriq-cpufreq.o
9762306a36Sopenharmony_ciobj-$(CONFIG_CPU_FREQ_PMAC)		+= pmac32-cpufreq.o
9862306a36Sopenharmony_ciobj-$(CONFIG_CPU_FREQ_PMAC64)		+= pmac64-cpufreq.o
9962306a36Sopenharmony_ciobj-$(CONFIG_PPC_PASEMI_CPUFREQ)	+= pasemi-cpufreq.o
10062306a36Sopenharmony_ciobj-$(CONFIG_POWERNV_CPUFREQ)		+= powernv-cpufreq.o
10162306a36Sopenharmony_ci
10262306a36Sopenharmony_ci##################################################################################
10362306a36Sopenharmony_ci# Other platform drivers
10462306a36Sopenharmony_ciobj-$(CONFIG_BMIPS_CPUFREQ)		+= bmips-cpufreq.o
10562306a36Sopenharmony_ciobj-$(CONFIG_IA64_ACPI_CPUFREQ)		+= ia64-acpi-cpufreq.o
10662306a36Sopenharmony_ciobj-$(CONFIG_LOONGSON2_CPUFREQ)		+= loongson2_cpufreq.o
10762306a36Sopenharmony_ciobj-$(CONFIG_SH_CPU_FREQ)		+= sh-cpufreq.o
10862306a36Sopenharmony_ciobj-$(CONFIG_SPARC_US2E_CPUFREQ)	+= sparc-us2e-cpufreq.o
10962306a36Sopenharmony_ciobj-$(CONFIG_SPARC_US3_CPUFREQ)		+= sparc-us3-cpufreq.o
110