diff mbox

[U-Boot,v2,03/17] thermal: Kconfig: Add IMX_THERMAL entry

Message ID 1474058929-17637-4-git-send-email-jagan@amarulasolutions.com
State Superseded
Delegated to: Stefano Babic
Headers show

Commit Message

Jagan Teki Sept. 16, 2016, 8:48 p.m. UTC
Added kconfig for IMX_THERMAL driver.

Cc: Simon Glass <sjg@chromium.org>
Cc: Fabio Estevam <fabio.estevam@nxp.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Peng Fan <peng.fan@nxp.com>
Cc: Matteo Lisi <matteo.lisi@engicam.com>
Cc: Michael Trimarchi <michael@amarulasolutions.com>
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
---
 drivers/thermal/Kconfig | 13 +++++++++++++
 1 file changed, 13 insertions(+)

Comments

Peng Fan Sept. 19, 2016, 5:55 a.m. UTC | #1
Hi Jagan,
On Sat, Sep 17, 2016 at 02:18:35AM +0530, Jagan Teki wrote:
>Added kconfig for IMX_THERMAL driver.
>
>Cc: Simon Glass <sjg@chromium.org>
>Cc: Fabio Estevam <fabio.estevam@nxp.com>
>Cc: Stefano Babic <sbabic@denx.de>
>Cc: Peng Fan <peng.fan@nxp.com>
>Cc: Matteo Lisi <matteo.lisi@engicam.com>
>Cc: Michael Trimarchi <michael@amarulasolutions.com>
>Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
>---
> drivers/thermal/Kconfig | 13 +++++++++++++
> 1 file changed, 13 insertions(+)
>
>diff --git a/drivers/thermal/Kconfig b/drivers/thermal/Kconfig
>index 8e22ea7..f0ffbb3 100644
>--- a/drivers/thermal/Kconfig
>+++ b/drivers/thermal/Kconfig
>@@ -5,3 +5,16 @@ config DM_THERMAL
> 	  temperature sensors to permit warnings, speed throttling or even
> 	  automatic power-off when the temperature gets too high or low. Other
> 	  devices may be discrete but connected on a suitable bus.
>+
>+if DM_THERMAL
>+
>+config IMX_THERMAL
>+	bool "Temperature sensor driver for Freescale i.MX SoCs"
>+	depends on MX6

MX6 and MX7.
Also I think this line could be dropped, add "selects IMX_THERMAL" in board Kconfig
entry.

Regards,
Peng.

>+	help
>+	  Support for Temperature Monitor (TEMPMON) found on Freescale i.MX SoCs.
>+          It supports one critical trip point and one passive trip point.  The
>+          cpufreq is used as the cooling device to throttle CPUs when the
>+          passive trip is crossed.
>+
>+endif # if DM_THERMAL
>-- 
>2.7.4
>
>_______________________________________________
>U-Boot mailing list
>U-Boot@lists.denx.de
>http://lists.denx.de/mailman/listinfo/u-boot
diff mbox

Patch

diff --git a/drivers/thermal/Kconfig b/drivers/thermal/Kconfig
index 8e22ea7..f0ffbb3 100644
--- a/drivers/thermal/Kconfig
+++ b/drivers/thermal/Kconfig
@@ -5,3 +5,16 @@  config DM_THERMAL
 	  temperature sensors to permit warnings, speed throttling or even
 	  automatic power-off when the temperature gets too high or low. Other
 	  devices may be discrete but connected on a suitable bus.
+
+if DM_THERMAL
+
+config IMX_THERMAL
+	bool "Temperature sensor driver for Freescale i.MX SoCs"
+	depends on MX6
+	help
+	  Support for Temperature Monitor (TEMPMON) found on Freescale i.MX SoCs.
+          It supports one critical trip point and one passive trip point.  The
+          cpufreq is used as the cooling device to throttle CPUs when the
+          passive trip is crossed.
+
+endif # if DM_THERMAL