summaryrefslogtreecommitdiff
path: root/drivers/cpufreq
diff options
context:
space:
mode:
authorLukasz Majewski <l.majewski@samsung.com>2013-07-18 16:49:53 +0200
committerChanho Park <chanho61.park@samsung.com>2014-03-20 17:41:21 +0900
commit7ef9b2dee4a31ffa81a246f4fc3efee605bc9a62 (patch)
tree7c2c2d854c81fe8f67e887846b3fd1fd3bec3b1a /drivers/cpufreq
parent1d27633c91e54b70407f13547223e9fb27ef7fef (diff)
downloadlinux-3.10-7ef9b2dee4a31ffa81a246f4fc3efee605bc9a62.tar.gz
linux-3.10-7ef9b2dee4a31ffa81a246f4fc3efee605bc9a62.tar.bz2
linux-3.10-7ef9b2dee4a31ffa81a246f4fc3efee605bc9a62.zip
cpufreq:exynos:Extend Exynos cpufreq driver to support boost framework
The struct cpufreq_driver has been extended to embrace the information related to boost support. When "boost_mode" device tree attribute is defined for a platform, the boost_supported flag is set. Moreover boost related attributes were exported. Signed-off-by: Lukasz Majewski <l.majewski@samsung.com> Signed-off-by: Myungjoo Ham <myungjoo.ham@samsung.com> Changes for v6: - replace exynos_driver.boost_supported = 1 to = true Changes for v5: - None Changes for v4: - None Changes for v3: - Remove low level boost code - Move boost management code to cpufreq core code - Use boost_supported flag to indicate if driver supports over clocking Changes for v2: - Removal of struct cpufreq_boost - Removal of the CONFIG_CPU_FREQ_BOOST flag - low_level_boost with valid address when boost is supported
Diffstat (limited to 'drivers/cpufreq')
-rw-r--r--drivers/cpufreq/exynos-cpufreq.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/cpufreq/exynos-cpufreq.c b/drivers/cpufreq/exynos-cpufreq.c
index aa869debe8e..3704b516fce 100644
--- a/drivers/cpufreq/exynos-cpufreq.c
+++ b/drivers/cpufreq/exynos-cpufreq.c
@@ -264,6 +264,7 @@ static int exynos_cpufreq_cpu_exit(struct cpufreq_policy *policy)
static struct freq_attr *exynos_cpufreq_attr[] = {
&cpufreq_freq_attr_scaling_available_freqs,
+ &cpufreq_freq_attr_scaling_boost_freqs,
NULL,
};
@@ -404,6 +405,7 @@ static struct of_device_id exynos_cpufreq_of_match[] = {
static int exynos_cpufreq_probe(struct platform_device *pdev)
{
+ struct device_node *node = pdev->dev.of_node;
int ret = -EINVAL;
exynos_info = kzalloc(sizeof(struct exynos_dvfs_info), GFP_KERNEL);
@@ -436,6 +438,8 @@ static int exynos_cpufreq_probe(struct platform_device *pdev)
}
locking_frequency = exynos_getspeed(0);
+ if (of_property_read_bool(node, "boost_mode"))
+ exynos_driver.boost_supported = true;
register_pm_notifier(&exynos_cpufreq_nb);