From f2af41568dfd412e16a2f1258363872a07e25a96 Mon Sep 17 00:00:00 2001 From: Max Krummenacher Date: Mon, 24 Jun 2013 14:34:51 +0200 Subject: =?UTF-8?q?colibri=5Ft30:=20set=20local=20critical=20temperatur=20?= =?UTF-8?q?to=2095=C2=B0C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If the local critical temperature is reached the power is unconditionally switched off. At 70°C ambient the default of 85°C can be reached. So increase the limit in the hwmon chip to 95°C. --- arch/arm/mach-tegra/board-colibri_t30.c | 4 ++++ arch/arm/mach-tegra/board-colibri_t30.h | 1 + 2 files changed, 5 insertions(+) diff --git a/arch/arm/mach-tegra/board-colibri_t30.c b/arch/arm/mach-tegra/board-colibri_t30.c index fcbae03f62b9..52c048d7ba98 100644 --- a/arch/arm/mach-tegra/board-colibri_t30.c +++ b/arch/arm/mach-tegra/board-colibri_t30.c @@ -1033,6 +1033,10 @@ static void lm95245_probe_callback(struct device *dev) IRQF_TRIGGER_LOW, "THERMD_ALERT", NULL)) pr_err("%s: unable to register THERMD_ALERT interrupt\n", __func__); + + //initalize the local temp limit + if(dev) + lm95245_set_local_shared_os__critical_limit(dev, TCRIT_LOCAL); } static void colibri_t30_thermd_alert_init(void) diff --git a/arch/arm/mach-tegra/board-colibri_t30.h b/arch/arm/mach-tegra/board-colibri_t30.h index babd6943add3..224549a897cd 100644 --- a/arch/arm/mach-tegra/board-colibri_t30.h +++ b/arch/arm/mach-tegra/board-colibri_t30.h @@ -85,6 +85,7 @@ #define STMPE811_IRQ_END (STMPE811_IRQ_BASE + 22) #define TDIODE_OFFSET (10000) /* in millicelsius */ +#define TCRIT_LOCAL 95000 /* board temperature which switches off PMIC in millicelsius*/ /* External peripheral act as gpio */ /* TPS6591x GPIOs */ -- cgit v1.2.3