From: Choonghoon Park Date: Tue, 12 Jun 2018 09:17:40 +0000 (+0900) Subject: hafm/hafm-tb: make interface to choose on among P-state boost solutions. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=503d1200877dd4579f44141ecf7e30629d51ccf6;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git hafm/hafm-tb: make interface to choose on among P-state boost solutions. Change-Id: I3ac5dacf298892e3e75f60263124ff403c13706b --- diff --git a/drivers/cpufreq/Kconfig b/drivers/cpufreq/Kconfig index efe920aa0df9..ad9b6034b75a 100644 --- a/drivers/cpufreq/Kconfig +++ b/drivers/cpufreq/Kconfig @@ -352,5 +352,33 @@ config QORIQ_CPUFREQ This adds the CPUFreq driver support for Freescale QorIQ SoCs which are capable of changing the CPU's frequency dynamically. +comment "P-state Boost Solutions" + +choice PSTATE + prompt "P-state Boost Solution" + default PSTATE_DISABLE + help + Default status of P-state boost is disable. + +config PSTATE_DISABLE + bool "disable" + help + This option sets P-state boost solution as disable. + If in doubt, set this config. + +config PSTATE_EXYNOS_HAFM + bool "Exynos HAFM" + help + This option sets P-state boost solution as HAFM. + The config makes HIU just deliver frequency level and power budget + given from CPUFreq driver and register set. + +config PSTATE_EXYNOS_HAFM_TB + bool "Exynos HAFM-TB" + help + This option sets P-state boost solution as HAFM-TB. + +endchoice + endif endmenu diff --git a/drivers/cpufreq/Kconfig.arm b/drivers/cpufreq/Kconfig.arm index ded5f935fafe..3d7f645707eb 100644 --- a/drivers/cpufreq/Kconfig.arm +++ b/drivers/cpufreq/Kconfig.arm @@ -304,8 +304,8 @@ config ARM_EXYNOS_ACME config ARM_EXYNOS_FF bool "SAMSUNG EXYNOS FF(Frequency Filter) driver" - depends on ARCH_EXYNOS && EXYNOS_HIU - default n + depends on ARCH_EXYNOS && (PSTATE_EXYNOS_HAFM || PSTATE_EXYNOS_HAFM_TB) + default y help This adds the CPUFreq driver for exynos chipsets which needs frequency filtering due to unnecessary frequency change request diff --git a/drivers/soc/samsung/Makefile b/drivers/soc/samsung/Makefile index ab3835e51cd8..d679356531f3 100644 --- a/drivers/soc/samsung/Makefile +++ b/drivers/soc/samsung/Makefile @@ -66,3 +66,7 @@ obj-$(CONFIG_ARCH_EXYNOS) += secmem.o # HIU obj-$(CONFIG_EXYNOS_HIU) += exynos-hiu.o + +# HAFM & HAFM-TB +obj-$(CONFIG_PSTATE_EXYNOS_HAFM) += exynos-hafm.o +obj-$(CONFIG_PSTATE_EXYNOS_HAFM_TB) += exynos-hafm-tb.o