diff options
author | Mark Langsdorf <mark.langsdorf@calxeda.com> | 2013-01-28 11:13:15 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-02-01 18:01:15 -0500 |
commit | 6754f556103be5bd172263b1075ddbb7157afbad (patch) | |
tree | cd913973afd0247175e3adeecaf19d484753580a /drivers/cpufreq/cpufreq-cpu0.c | |
parent | 300586778d405f0a4d1f6dc51fcfb4fed567d020 (diff) |
cpufreq / highbank: add support for highbank cpufreq
Highbank processors depend on the external ECME to perform voltage
management based on a requested frequency. Communication between the
A9 cores and the ECME happens over the pl320 IPC channel.
Signed-off-by: Mark Langsdorf <mark.langsdorf@calxeda.com>
Reviewed-by: Shawn Guo <shawn.guo@linaro.org>
Reviewed-by: Mike Turquette <mturquette@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpufreq/cpufreq-cpu0.c')
-rw-r--r-- | drivers/cpufreq/cpufreq-cpu0.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/cpufreq/cpufreq-cpu0.c b/drivers/cpufreq/cpufreq-cpu0.c index debc5a7c8db6..38ae178ce4ef 100644 --- a/drivers/cpufreq/cpufreq-cpu0.c +++ b/drivers/cpufreq/cpufreq-cpu0.c | |||
@@ -182,7 +182,11 @@ static int cpu0_cpufreq_driver_init(void) | |||
182 | struct device_node *np; | 182 | struct device_node *np; |
183 | int ret; | 183 | int ret; |
184 | 184 | ||
185 | np = of_find_node_by_path("/cpus/cpu@0"); | 185 | for_each_child_of_node(of_find_node_by_path("/cpus"), np) { |
186 | if (of_get_property(np, "operating-points", NULL)) | ||
187 | break; | ||
188 | } | ||
189 | |||
186 | if (!np) { | 190 | if (!np) { |
187 | pr_err("failed to find cpu0 node\n"); | 191 | pr_err("failed to find cpu0 node\n"); |
188 | return -ENOENT; | 192 | return -ENOENT; |