1. 03 3月, 2014 1 次提交
  2. 02 1月, 2014 2 次提交
  3. 04 12月, 2013 2 次提交
    • E
      thermal: cpu_cooling: introduce of_cpufreq_cooling_register · 39d99cff
      Eduardo Valentin 提交于
      This patch introduces an API to register cpufreq cooling device
      based on device tree node.
      
      The registration via device tree node differs from normal
      registration due to the fact that it is needed to fill
      the device_node structure in order to be able to match
      the cooling devices with trip points.
      
      Cc: Zhang Rui <rui.zhang@intel.com>
      Cc: linux-pm@vger.kernel.org
      Cc: linux-kernel@vger.kernel.org
      Signed-off-by: NEduardo Valentin <eduardo.valentin@ti.com>
      39d99cff
    • E
      thermal: introduce device tree parser · 4e5e4705
      Eduardo Valentin 提交于
      This patch introduces a device tree bindings for
      describing the hardware thermal behavior and limits.
      Also a parser to read and interpret the data and feed
      it in the thermal framework is presented.
      
      This patch introduces a thermal data parser for device
      tree. The parsed data is used to build thermal zones
      and thermal binding parameters. The output data
      can then be used to deploy thermal policies.
      
      This patch adds also documentation regarding this
      API and how to define tree nodes to use
      this infrastructure.
      
      Note that, in order to be able to have control
      on the sensor registration on the DT thermal zone,
      it was required to allow changing the thermal zone
      .get_temp callback. For this reason, this patch
      also removes the 'const' modifier from the .ops
      field of thermal zone devices.
      
      Cc: Zhang Rui <rui.zhang@intel.com>
      Cc: linux-pm@vger.kernel.org
      Cc: linux-kernel@vger.kernel.org
      Acked-by: NMark Rutland <mark.rutland@arm.com>
      Signed-off-by: NEduardo Valentin <eduardo.valentin@ti.com>
      4e5e4705
  4. 16 10月, 2013 1 次提交
  5. 09 10月, 2013 1 次提交
  6. 25 9月, 2013 1 次提交
  7. 03 9月, 2013 1 次提交
    • E
      thermal: hwmon: move hwmon support to single file · 0dd88793
      Eduardo Valentin 提交于
      In order to improve code organization, this patch
      moves the hwmon sysfs support to a file named
      thermal_hwmon. This helps to add extra support
      for hwmon without scrambling the code.
      
      In order to do this move, the hwmon list head is now
      using its own locking. Before, the list used
      the global thermal locking. Also, some minor changes
      in the code were required, as recommended by checkpatch.pl.
      
      Cc: Zhang Rui <rui.zhang@intel.com>
      Cc: linux-pm@vger.kernel.org
      Cc: linux-kernel@vger.kernel.org
      Acked-by: NDurgadoss R <durgadoss.r@intel.com>
      Signed-off-by: NEduardo Valentin <eduardo.valentin@ti.com>
      0dd88793
  8. 13 8月, 2013 2 次提交
  9. 18 6月, 2013 2 次提交
  10. 28 5月, 2013 1 次提交
    • E
      thermal: introduce TI SoC thermal driver · eb982001
      Eduardo Valentin 提交于
      This patch moves the ti-soc-thermal driver out of
      the staging tree to the thermal tree.
      
      Cc: Grant Likely <grant.likely@linaro.org>
      Cc: Rob Herring <rob.herring@calxeda.com>
      Cc: Rob Landley <rob@landley.net>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: Zhang Rui <rui.zhang@intel.com>
      Cc: Eduardo Valentin <eduardo.valentin@ti.com>
      Cc: J Keerthy <j-keerthy@ti.com>
      Cc: Radhesh Fadnis <radhesh.fadnis@ti.com>
      Cc: Cyril Roelandt <tipecaml@gmail.com>
      Cc: devicetree-discuss@lists.ozlabs.org
      Cc: linux-doc@vger.kernel.org
      Cc: linux-kernel@vger.kernel.org
      Cc: devel@driverdev.osuosl.org
      Cc: linux-pm@vger.kernel.org
      Signed-off-by: NEduardo Valentin <eduardo.valentin@ti.com>
      Signed-off-by: NZhang Rui <rui.zhang@intel.com>
      eb982001
  11. 25 4月, 2013 1 次提交
  12. 14 4月, 2013 1 次提交
  13. 02 4月, 2013 3 次提交
  14. 08 2月, 2013 3 次提交
  15. 06 2月, 2013 2 次提交
  16. 04 1月, 2013 1 次提交
  17. 03 12月, 2012 1 次提交
  18. 22 11月, 2012 1 次提交
  19. 15 11月, 2012 3 次提交
  20. 05 11月, 2012 4 次提交
  21. 16 10月, 2012 1 次提交
    • D
      thermal, cpufreq: Fix build when CPU_FREQ_TABLE isn't configured · dd8e8c4a
      David Rientjes 提交于
      Commit 02361418 ("thermal: add generic cpufreq cooling
      implementation") requires cpufreq_frequency_get_table(), but that
      function is only defined for CONFIG_CPU_FREQ_TABLE resulting in the
      following build error:
      
        drivers/built-in.o: In function `cpufreq_get_max_state':
        drivers/thermal/cpu_cooling.c:259: undefined reference to `cpufreq_frequency_get_table'
        drivers/built-in.o: In function `get_cpu_frequency':
        drivers/thermal/cpu_cooling.c:129: undefined reference to `cpufreq_frequency_get_table'
      
      Fix it by selecting CONFIG_CPU_FREQ_TABLE for such a configuration.
      
      It turns out CONFIG_EXYNOS_THERMAL also needs CONFIG_CPU_FREQ_TABLE, so
      select it there as well.
      Signed-off-by: NDavid Rientjes <rientjes@google.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      dd8e8c4a
  22. 24 9月, 2012 4 次提交
    • A
      thermal: exynos5: add exynos5250 thermal sensor driver support · f22d9c03
      Amit Daniel Kachhap 提交于
      Insert exynos5 TMU sensor changes into the thermal driver.  Some exynos4
      changes are made generic for exynos series.
      
      [akpm@linux-foundation.org: fix comment layout]
      Signed-off-by: NSangWook Ju <sw.ju@samsung.com>
      Signed-off-by: NAmit Daniel Kachhap <amit.kachhap@linaro.org>
      Acked-by: NGuenter Roeck <guenter.roeck@ericsson.com>
      Cc: Durgadoss <durgadoss.r@intel.com>
      Cc: Len Brown <lenb@kernel.org>
      Cc: Jean Delvare <khali@linux-fr.org>
      Cc: Kyungmin Park <kmpark@infradead.org>
      Cc: Kukjin Kim <kgene.kim@samsung.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NAmit Daniel Kachhap <amit.daniel@samsung.com>
      Signed-off-by: NZhang Rui <rui.zhang@intel.com>
      f22d9c03
    • A
      hwmon: exynos4: move thermal sensor driver to driver/thermal directory · c48cbba6
      Amit Daniel Kachhap 提交于
      This movement is needed because the hwmon entries and corresponding sysfs
      interface is a duplicate of utilities already provided by
      driver/thermal/thermal_sys.c.  The goal is to place it in thermal folder
      and add necessary functions to use the in-kernel thermal interfaces.
      Signed-off-by: NAmit Daniel Kachhap <amit.kachhap@linaro.org>
      Acked-by: NGuenter Roeck <guenter.roeck@ericsson.com>
      Cc: SangWook Ju <sw.ju@samsung.com>
      Cc: Durgadoss <durgadoss.r@intel.com>
      Cc: Len Brown <lenb@kernel.org>
      Cc: Jean Delvare <khali@linux-fr.org>
      Cc: Kyungmin Park <kmpark@infradead.org>
      Cc: Kukjin Kim <kgene.kim@samsung.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NAmit Daniel Kachhap <amit.daniel@samsung.com>
      Signed-off-by: NZhang Rui <rui.zhang@intel.com>
      c48cbba6
    • A
      thermal: add generic cpufreq cooling implementation · 02361418
      Amit Daniel Kachhap 提交于
      This patchset introduces a new generic cooling device based on cpufreq
      that can be used on non-ACPI platforms.  As a proof of concept, we have
      drivers for the following platforms using this mechanism now:
      
       * Samsung Exynos (Exynos4 and Exynos5) in the current patchset.
       * Freescale i.MX (git://git.linaro.org/people/amitdanielk/linux.git imx6q_thermal)
      
      There is a small change in cpufreq cooling registration APIs, so a minor
      change is needed for Freescale platforms.
      
      Brief Description:
      
      1) The generic cooling devices code is placed inside driver/thermal/*
         as placing inside acpi folder will need un-necessary enabling of acpi
         code.  This code is architecture independent.
      
      2) This patchset adds generic cpu cooling low level implementation
         through frequency clipping.  In future, other cpu related cooling
         devices may be added here.  An ACPI version of this already exists
         (drivers/acpi/processor_thermal.c) .But this will be useful for
         platforms like ARM using the generic thermal interface along with the
         generic cpu cooling devices.  The cooling device registration API's
         return cooling device pointers which can be easily binded with the
         thermal zone trip points.  The important APIs exposed are,
      
         a) struct thermal_cooling_device *cpufreq_cooling_register(
              struct cpumask *clip_cpus)
         b) void cpufreq_cooling_unregister(struct thermal_cooling_device *cdev)
      
      3) Samsung exynos platform thermal implementation is done using the
         generic cpu cooling APIs and the new trip type.  The temperature sensor
         driver present in the hwmon folder(registered as hwmon driver) is moved
         to thermal folder and registered as a thermal driver.
      
      A simple data/control flow diagrams is shown below,
      
      Core Linux thermal <----->  Exynos thermal interface <----- Temperature Sensor
                |                             |
               \|/                            |
        Cpufreq cooling device <---------------
      
      TODO:
      *Will send the DT enablement patches later after the driver is merged.
      
      This patch:
      
      Add support for generic cpu thermal cooling low level implementations
      using frequency scaling up/down based on the registration parameters.
      Different cpu related cooling devices can be registered by the user and
      the binding of these cooling devices to the corresponding trip points can
      be easily done as the registration APIs return the cooling device pointer.
      The user of these APIs are responsible for passing clipping frequency .
      The drivers can also register to recieve notification about any cooling
      action called.
      
      [akpm@linux-foundation.org: fix comment layout]
      Signed-off-by: NAmit Daniel Kachhap <amit.kachhap@linaro.org>
      Cc: Guenter Roeck <guenter.roeck@ericsson.com>
      Cc: SangWook Ju <sw.ju@samsung.com>
      Cc: Durgadoss <durgadoss.r@intel.com>
      Cc: Len Brown <lenb@kernel.org>
      Cc: Jean Delvare <khali@linux-fr.org>
      Cc: Kyungmin Park <kmpark@infradead.org>
      Cc: Kukjin Kim <kgene.kim@samsung.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NAmit Daniel Kachhap <amit.daniel@samsung.com>
      Signed-off-by: NZhang Rui <rui.zhang@intel.com>
      02361418
    • K
      thermal: add Renesas R-Car thermal sensor support · 1e426ffd
      Kuninori Morimoto 提交于
      This patch add basic Renesas R-Car thermal sensor support.
      It was tested on R-Car H1 Marzen board.
      Signed-off-by: NKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
      Cc: Len Brown <len.brown@intel.com>
      Cc: Joe Perches <joe@perches.com>
      Cc: Jean Delvare <khali@linux-fr.org>
      Cc: Guenter Roeck <guenter.roeck@ericsson.com>
      Cc: Magnus Damm <magnus.damm@gmail.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NZhang Rui <rui.zhang@intel.com>
      1e426ffd
  23. 02 6月, 2012 1 次提交