Hi all,
Add more people into list, and add more information:
1. This driver also depends on the Amit Daniel Kachhap's generic cpu cooling driver besides the two dependencies mentioned.
2. Has been internally reviewed by Linux Walleij, Vincent, Rajagopal, Lee Jones.
3. This driver works on ST-Ericsson U8500 SOC, the Snowball is a typical board using this SOC.
From: "hongbo.zhang" <hongbo.zhang@linaro.com>
This patch sets contains two patches:
[PATCH 1/2] Thermal: Move struct thermal_cooling_device_instance to thermal.h
Note:
Declaration of struct thermal_cooling_device_instance should be moved to public
header file thermal.h, because a thermal zone driver need to operate the cooling
devices binded to itself sometimes, for example when the thermal mode is set to
"disabled", all the cooling devices should be disabled too. This can be done in
thermal_sys.c, but it is better to let the user to do it because different kinds
of cooling devices may have different behavors.
There is no need to maintain a cooling device list by the thermal driver, because
the framework has already done so in the list thermal_zone_device->cooling_devices.
Thus the thermal_cooling_device_instance is needed when a thermal driver walks
throuth the list thermal_zone_device->cooling_devices.
[PATCH 2/2] Thermal: Add ST-Ericsson db8500 thermal dirver.
Updated:
1. Device tree is supported.
2. thermal_zone_device_register() updated because of framework update in
kernel v3.6-rc1
3. Force cooling deveces to be disabled when thermal mode is disabled.
Dependences:
1. Lee Jones PRCMU device tree bindings.
2. Acception of the above thermal framewrok modification.
hongbo.zhang (2):
Thermal: Move struct thermal_cooling_device_instance to thermal.h
Thermal: Add ST-Ericsson db8500 thermal dirver.
arch/arm/boot/dts/db8500.dtsi | 11 +
arch/arm/configs/u8500_defconfig | 4 +
arch/arm/mach-ux500/board-mop500.c | 73 ++++
drivers/thermal/Kconfig | 20 +
drivers/thermal/Makefile | 4 +-
drivers/thermal/db8500_cpufreq_cooling.c | 175 +++++++++
drivers/thermal/db8500_thermal.c | 511 ++++++++++++++++++++++++++
drivers/thermal/thermal_sys.c | 11 -
include/linux/platform_data/db8500_thermal.h | 39 ++
include/linux/thermal.h | 12 +
10 files changed, 848 insertions(+), 12 deletions(-)
create mode 100644 drivers/thermal/db8500_cpufreq_cooling.c
create mode 100644 drivers/thermal/db8500_thermal.c
create mode 100644 include/linux/platform_data/db8500_thermal.h
--
1.7.10