# SPDX-License-Identifier: GPL-2.0
# CPUfreq core
obj-$([31mCONFIG_CPU_FREQ[0m) += cpufreq.o freq_table.o
# CPUfreq stats
obj-$([31mCONFIG_CPU_FREQ_STAT[0m) += cpufreq_stats.o
# CPUfreq governors
obj-$([31mCONFIG_CPU_FREQ_GOV_PERFORMANCE[0m) += cpufreq_performance.o
obj-$([31mCONFIG_CPU_FREQ_GOV_POWERSAVE[0m) += cpufreq_powersave.o
obj-$([31mCONFIG_CPU_FREQ_GOV_USERSPACE[0m) += cpufreq_userspace.o
obj-$([31mCONFIG_CPU_FREQ_GOV_ONDEMAND[0m) += cpufreq_ondemand.o
obj-$([31mCONFIG_CPU_FREQ_GOV_CONSERVATIVE[0m) += cpufreq_conservative.o
obj-$([31mCONFIG_CPU_FREQ_GOV_COMMON[0m) += cpufreq_governor.o
obj-$([31mCONFIG_CPU_FREQ_GOV_ATTR_SET[0m) += cpufreq_governor_attr_set.o
obj-$([31mCONFIG_CPUFREQ_DT[0m) += cpufreq-dt.o
obj-$([31mCONFIG_CPUFREQ_DT_PLATDEV[0m) += cpufreq-dt-platdev.o
##################################################################################
# x86 drivers.
# Link order matters. K8 is preferred to ACPI because of firmware bugs in early
# K8 systems. This is still the case but acpi-cpufreq errors out so that
# powernow-k8 can load then. ACPI is preferred to all other hardware-specific drivers.
# speedstep-* is preferred over p4-clockmod.
obj-$([31mCONFIG_X86_ACPI_CPUFREQ[0m) += acpi-cpufreq.o
obj-$([31mCONFIG_X86_POWERNOW_K8[0m) += powernow-k8.o
obj-$([31mCONFIG_X86_PCC_CPUFREQ[0m) += pcc-cpufreq.o
obj-$([31mCONFIG_X86_POWERNOW_K6[0m) += powernow-k6.o
obj-$([31mCONFIG_X86_POWERNOW_K7[0m) += powernow-k7.o
obj-$([31mCONFIG_X86_LONGHAUL[0m) += longhaul.o
obj-$([31mCONFIG_X86_E_POWERSAVER[0m) += e_powersaver.o
obj-$([31mCONFIG_ELAN_CPUFREQ[0m) += elanfreq.o
obj-$([31mCONFIG_SC520_CPUFREQ[0m) += sc520_freq.o
obj-$([31mCONFIG_X86_LONGRUN[0m) += longrun.o
obj-$([31mCONFIG_X86_GX_SUSPMOD[0m) += gx-suspmod.o
obj-$([31mCONFIG_X86_SPEEDSTEP_ICH[0m) += speedstep-ich.o
obj-$([31mCONFIG_X86_SPEEDSTEP_LIB[0m) += speedstep-lib.o
obj-$([31mCONFIG_X86_SPEEDSTEP_SMI[0m) += speedstep-smi.o
obj-$([31mCONFIG_X86_SPEEDSTEP_CENTRINO[0m) += speedstep-centrino.o
obj-$([31mCONFIG_X86_P4_CLOCKMOD[0m) += p4-clockmod.o
obj-$([31mCONFIG_X86_CPUFREQ_NFORCE2[0m) += cpufreq-nforce2.o
obj-$([31mCONFIG_X86_INTEL_PSTATE[0m) += intel_pstate.o
obj-$([31mCONFIG_X86_AMD_FREQ_SENSITIVITY[0m) += amd_freq_sensitivity.o
obj-$([31mCONFIG_X86_SFI_CPUFREQ[0m) += sfi-cpufreq.o
##################################################################################
# ARM SoC drivers
obj-$([31mCONFIG_ARM_BIG_LITTLE_CPUFREQ[0m) += arm_big_little.o
obj-$([31mCONFIG_ARM_ARMADA_37XX_CPUFREQ[0m) += armada-37xx-cpufreq.o
obj-$([31mCONFIG_ARM_ARMADA_8K_CPUFREQ[0m) += armada-8k-cpufreq.o
obj-$([31mCONFIG_ARM_BRCMSTB_AVS_CPUFREQ[0m) += brcmstb-avs-cpufreq.o
obj-$([31mCONFIG_ACPI_CPPC_CPUFREQ[0m) += cppc_cpufreq.o
obj-$([31mCONFIG_ARCH_DAVINCI[0m) += davinci-cpufreq.o
obj-$([31mCONFIG_ARM_HIGHBANK_CPUFREQ[0m) += highbank-cpufreq.o
obj-$([31mCONFIG_ARM_IMX6Q_CPUFREQ[0m) += imx6q-cpufreq.o
obj-$([31mCONFIG_ARM_IMX_CPUFREQ_DT[0m) += imx-cpufreq-dt.o
obj-$([31mCONFIG_ARM_KIRKWOOD_CPUFREQ[0m) += kirkwood-cpufreq.o
obj-$([31mCONFIG_ARM_MEDIATEK_CPUFREQ[0m) += mediatek-cpufreq.o
obj-$([31mCONFIG_MACH_MVEBU_V7[0m) += mvebu-cpufreq.o
obj-$([31mCONFIG_ARM_OMAP2PLUS_CPUFREQ[0m) += omap-cpufreq.o
obj-$([31mCONFIG_ARM_PXA2xx_CPUFREQ[0m) += pxa2xx-cpufreq.o
obj-$([31mCONFIG_PXA3xx[0m) += pxa3xx-cpufreq.o
obj-$([31mCONFIG_ARM_QCOM_CPUFREQ_HW[0m) += qcom-cpufreq-hw.o
obj-$([31mCONFIG_ARM_QCOM_CPUFREQ_NVMEM[0m) += qcom-cpufreq-nvmem.o
obj-$([31mCONFIG_ARM_RASPBERRYPI_CPUFREQ[0m) += raspberrypi-cpufreq.o
obj-$([31mCONFIG_ARM_S3C2410_CPUFREQ[0m) += s3c2410-cpufreq.o
obj-$([31mCONFIG_ARM_S3C2412_CPUFREQ[0m) += s3c2412-cpufreq.o
obj-$([31mCONFIG_ARM_S3C2416_CPUFREQ[0m) += s3c2416-cpufreq.o
obj-$([31mCONFIG_ARM_S3C2440_CPUFREQ[0m) += s3c2440-cpufreq.o
obj-$([31mCONFIG_ARM_S3C64XX_CPUFREQ[0m) += s3c64xx-cpufreq.o
obj-$([31mCONFIG_ARM_S3C24XX_CPUFREQ[0m) += s3c24xx-cpufreq.o
obj-$([31mCONFIG_ARM_S3C24XX_CPUFREQ_DEBUGFS[0m) += s3c24xx-cpufreq-debugfs.o
obj-$([31mCONFIG_ARM_S5PV210_CPUFREQ[0m) += s5pv210-cpufreq.o
obj-$([31mCONFIG_ARM_SA1100_CPUFREQ[0m) += sa1100-cpufreq.o
obj-$([31mCONFIG_ARM_SA1110_CPUFREQ[0m) += sa1110-cpufreq.o
obj-$([31mCONFIG_ARM_SCMI_CPUFREQ[0m) += scmi-cpufreq.o
obj-$([31mCONFIG_ARM_SCPI_CPUFREQ[0m) += scpi-cpufreq.o
obj-$([31mCONFIG_ARM_SPEAR_CPUFREQ[0m) += spear-cpufreq.o
obj-$([31mCONFIG_ARM_STI_CPUFREQ[0m) += sti-cpufreq.o
obj-$([31mCONFIG_ARM_ALLWINNER_SUN50I_CPUFREQ_NVMEM[0m) += sun50i-cpufreq-nvmem.o
obj-$([31mCONFIG_ARM_TANGO_CPUFREQ[0m) += tango-cpufreq.o
obj-$([31mCONFIG_ARM_TEGRA20_CPUFREQ[0m) += tegra20-cpufreq.o
obj-$([31mCONFIG_ARM_TEGRA124_CPUFREQ[0m) += tegra124-cpufreq.o
obj-$([31mCONFIG_ARM_TEGRA186_CPUFREQ[0m) += tegra186-cpufreq.o
obj-$([31mCONFIG_ARM_TI_CPUFREQ[0m) += ti-cpufreq.o
obj-$([31mCONFIG_ARM_VEXPRESS_SPC_CPUFREQ[0m) += vexpress-spc-cpufreq.o
##################################################################################
# PowerPC platform drivers
obj-$([31mCONFIG_CPU_FREQ_CBE[0m) += ppc-cbe-cpufreq.o
ppc-cbe-cpufreq-y += ppc_cbe_cpufreq_pervasive.o ppc_cbe_cpufreq.o
obj-$([31mCONFIG_CPU_FREQ_CBE_PMI[0m) += ppc_cbe_cpufreq_pmi.o
obj-$([31mCONFIG_CPU_FREQ_MAPLE[0m) += maple-cpufreq.o
obj-$([31mCONFIG_QORIQ_CPUFREQ[0m) += qoriq-cpufreq.o
obj-$([31mCONFIG_CPU_FREQ_PMAC[0m) += pmac32-cpufreq.o
obj-$([31mCONFIG_CPU_FREQ_PMAC64[0m) += pmac64-cpufreq.o
obj-$([31mCONFIG_PPC_PASEMI_CPUFREQ[0m) += pasemi-cpufreq.o
obj-$([31mCONFIG_POWERNV_CPUFREQ[0m) += powernv-cpufreq.o
##################################################################################
# Other platform drivers
obj-$([31mCONFIG_BMIPS_CPUFREQ[0m) += bmips-cpufreq.o
obj-$([31mCONFIG_IA64_ACPI_CPUFREQ[0m) += ia64-acpi-cpufreq.o
obj-$([31mCONFIG_LOONGSON2_CPUFREQ[0m) += loongson2_cpufreq.o
obj-$([31mCONFIG_LOONGSON1_CPUFREQ[0m) += loongson1-cpufreq.o
obj-$([31mCONFIG_SH_CPU_FREQ[0m) += sh-cpufreq.o
obj-$([31mCONFIG_SPARC_US2E_CPUFREQ[0m) += sparc-us2e-cpufreq.o
obj-$([31mCONFIG_SPARC_US3_CPUFREQ[0m) += sparc-us3-cpufreq.o
obj-$([31mCONFIG_UNICORE32[0m) += unicore2-cpufreq.o