diff options
author | Joshua Primero <jprimero@nvidia.com> | 2011-10-13 17:49:20 -0700 |
---|---|---|
committer | Varun Wadekar <vwadekar@nvidia.com> | 2011-12-08 17:03:38 +0530 |
commit | 0a892e234ce77f94973afbf2d00ea4239ee6b677 (patch) | |
tree | 60a1d541af0d8e03c93376f778caa1d9b71abf2d /arch/arm/mach-tegra/board-enterprise.c | |
parent | 99cd63f81e09e6dafcba8cb5e61a5b56b258fad5 (diff) |
arm: tegra: power: Tegra Thermal refactoring
Refactored Thermal module so that thermal device
drivers themselves are agnostic of the thermal
framework. Also separated throttle limit constraints
from EDP table.
Reviewed-on: http://git-master/r/57990
Reviewed-on: http://git-master/r/63338
Cherry-picked from 8d0610bdd03c3490b718f11bc2108f45cd868533.
Change-Id: I4f87889c9cdc88daac1e6173043bab1f2e7cebfd
Signed-off-by: Joshua Primero <jprimero@nvidia.com>
Reviewed-on: http://git-master/r/66551
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/board-enterprise.c')
-rw-r--r-- | arch/arm/mach-tegra/board-enterprise.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/board-enterprise.c b/arch/arm/mach-tegra/board-enterprise.c index f3b10467f8e7..952ffc2f4c97 100644 --- a/arch/arm/mach-tegra/board-enterprise.c +++ b/arch/arm/mach-tegra/board-enterprise.c @@ -52,6 +52,7 @@ #include <mach/usb_phy.h> #include <mach/i2s.h> #include <mach/tegra_max98088_pdata.h> +#include <mach/thermal.h> #include "board.h" #include "clock.h" @@ -62,6 +63,18 @@ #include "fuse.h" #include "pm.h" +/* All units are in millicelsius */ +static struct tegra_thermal_data thermal_data = { + .temp_throttle = 85000, + .temp_shutdown = 90000, + .temp_offset = TDIODE_OFFSET, /* temps based on tdiode */ + .edp_offset = TDIODE_OFFSET, /* edp based on tdiode */ +#ifndef CONFIG_TEGRA_THERMAL_SYSFS + .hysteresis_throttle = 1000, +#endif + .hysteresis_edp = 3000, +}; + /* !!!TODO: Change for enterprise (Taken from Cardhu) */ static struct tegra_utmip_config utmi_phy_config[] = { [0] = { @@ -805,6 +818,7 @@ static void enterprise_nfc_init(void) static void __init tegra_enterprise_init(void) { + tegra_thermal_init(&thermal_data); tegra_clk_init_from_table(enterprise_clk_init_table); enterprise_pinmux_init(); enterprise_i2c_init(); |