diff options
author | Max Krummenacher <max.krummenacher@toradex.com> | 2013-06-24 14:31:02 +0200 |
---|---|---|
committer | Max Krummenacher <max.krummenacher@toradex.com> | 2013-06-24 14:31:02 +0200 |
commit | 929a1f9d4fb33f6d08cf916943bf13ae7cf3732e (patch) | |
tree | 0e9fe5e99933b8ded7eba330a6abb653949383c9 /arch | |
parent | 6e56cccc6785b8e4cd05808a100122868b22f21a (diff) |
apalis_t30: set local critical temperatur to 95°C
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.
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-tegra/board-apalis_t30.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-tegra/board-apalis_t30.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/board-apalis_t30.c b/arch/arm/mach-tegra/board-apalis_t30.c index 493510bda657..5ed04bffba03 100644 --- a/arch/arm/mach-tegra/board-apalis_t30.c +++ b/arch/arm/mach-tegra/board-apalis_t30.c @@ -908,6 +908,10 @@ static void lm95245_probe_callback(struct device *dev) IRQF_TRIGGER_LOW, "THERMD_ALERT_N", NULL)) pr_err("%s: unable to register THERMD_ALERT_N interrupt\n", __func__); + + //initalize the local temp limit + if(dev) + lm95245_set_local_shared_os__critical_limit(dev, TCRIT_LOCAL); } static void apalis_t30_thermd_alert_init(void) diff --git a/arch/arm/mach-tegra/board-apalis_t30.h b/arch/arm/mach-tegra/board-apalis_t30.h index ad9d68c591d2..5ea5c0b31042 100644 --- a/arch/arm/mach-tegra/board-apalis_t30.h +++ b/arch/arm/mach-tegra/board-apalis_t30.h @@ -116,6 +116,7 @@ #define STMPE811_IRQ_END (STMPE811_IRQ_BASE + 22) #define TDIODE_OFFSET (10000) /* in millicelsius */ +#define TCRIT_LOCAL 95000 /* board temp to switch off PMIC in millicelsius*/ /* External peripheral act as gpio */ /* TPS6591x GPIOs */ |