cpufreq: cpufreq-cpu0: add dt node parsing for cooling device properties
authorEduardo Valentin <eduardo.valentin@ti.com>
Mon, 15 Jul 2013 13:09:14 +0000 (09:09 -0400)
committerEduardo Valentin <eduardo.valentin@ti.com>
Wed, 4 Dec 2013 13:34:24 +0000 (09:34 -0400)
commit77cff5926a14e80d4545be5841d5938b87b654a4
treece23d4d9d89e99b6a6d3b69e101f062d70d6a22f
parent39d99cff76bf2992fd6dd4b1fc62da139e62e90c
cpufreq: cpufreq-cpu0: add dt node parsing for cooling device properties

This patch changes the cpufreq-cpu0 driver to consider if
a cpu needs cooling (with cpufreq). In case the cooling is needed,
the cpu0 device tree node needs to be properly configured
with cooling device properties.

In case these properties are present,, the driver will
load a cpufreq cooling device in the system. The cpufreq-cpu0
driver is not interested in determining how the system should
be using the cooling device. The driver is responsible
only of loading the cooling device.

Describing how the cooling device will be used can be
accomplished by setting up a thermal zone that references
and is composed by the cpufreq cooling device.

Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
Cc: Grant Likely <grant.likely@linaro.org>
Cc: Rob Herring <rob.herring@calxeda.com>
Cc: cpufreq@vger.kernel.org
Cc: linux-pm@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Cc: devicetree-discuss@lists.ozlabs.org
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Eduardo Valentin <eduardo.valentin@ti.com>
Documentation/devicetree/bindings/cpufreq/cpufreq-cpu0.txt
drivers/cpufreq/Kconfig
drivers/cpufreq/cpufreq-cpu0.c