User: Password:
|
|
Subscribe / Log in / New account

ST-Ericsson dbx500 thermal driver

From:  "hongbo.zhang" <hongbo.zhang-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
To:  linaro-dev-cunTk1MwBs8s++Sfvej+rw@public.gmane.org
Subject:  [PATCH 0/2] ST-Ericsson dbx500 thermal driver
Date:  Fri, 10 Aug 2012 19:20:12 +0800
Message-ID:  <1344597614-13998-1-git-send-email-hongbo.zhang@linaro.com>
Cc:  STEricsson_nomadik_linux-nkJGhpqTU55BDgjK7y7TUQ@public.gmane.org, kernel-vMlcbD5RyM6HZuj8yyL1ah2eb7JE58TQ@public.gmane.org, linaro-kernel-cunTk1MwBs8s++Sfvej+rw@public.gmane.org, "hongbo.zhang" <hongbo.zhang-68IGFXMjmZ7QT0dZR+AlfA@public.gmane.org>, patches-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org
Archive-link:  Article

From: "hongbo.zhang" <hongbo.zhang-68IGFXMjmZ7QT0dZR+AlfA@public.gmane.org>

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


Copyright © 2012, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds