From: "hongbo.zhang" hongbo.zhang@linaro.com
Hi all, This is the ST-Ericsson db8500 thermal dirver, here are some notes of this patch set:
1. 0001-Remove-un-necessary-variable-checking.patch is a trivial update of the thermal framework. 0002-ST-Ericsson-db8500-thermal-dirver.patch is the ST-Ericsson db8500 thermal dirver.
2. Since there is no PRCMU interface to read temperature directly, the PRCMU interrupts are used instead, and a pseudo current temperature is returned, but this works for the thermal management framework. This can be updated when the corresponding PRCMU interface is available.
3. As suggested by Vincent Guittot, the cooling device codes are seperated from thermal zone, this makes it easy to add/remove other cooling devices. CPU frequency limiting is the current cooling device.
4. The driver isn't added into device tree currently, this can be done soon if needed.
hongbo.zhang (2): Remove un-necessary variable checking ST-Ericsson db8500 thermal dirver
arch/arm/configs/u8500_defconfig | 4 + arch/arm/mach-ux500/board-mop500.c | 69 ++++ drivers/thermal/Kconfig | 20 ++ drivers/thermal/Makefile | 4 +- drivers/thermal/cpu_cooling.c | 3 +- drivers/thermal/db8500_cpufreq_cooling.c | 167 +++++++++ drivers/thermal/db8500_thermal.c | 476 ++++++++++++++++++++++++++ include/linux/platform_data/db8500_thermal.h | 39 +++ 8 files changed, 779 insertions(+), 3 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