summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/board-dalmore-power.c
diff options
context:
space:
mode:
authorDiwakar Tundlam <dtundlam@nvidia.com>2013-01-17 15:23:09 -0800
committerRiham Haidar <rhaidar@nvidia.com>2013-01-28 13:28:53 -0800
commit69db11fde6c5478cedc95fa9d041b3337bade5e5 (patch)
tree717c09126e261a74220b9e7755ba2ae1fe2c8710 /arch/arm/mach-tegra/board-dalmore-power.c
parentdb904b7bf53028a20f38d9b0d3898c1b408db06b (diff)
arm: tegra: board changes to enable hw throttling in soctherm
Bug 1200075 Change-Id: I407de39f60a65b55cf45fda25469b56b4fd3fccf Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com> Reviewed-on: http://git-master/r/192262 Reviewed-by: Riham Haidar <rhaidar@nvidia.com> Tested-by: Riham Haidar <rhaidar@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/board-dalmore-power.c')
-rw-r--r--arch/arm/mach-tegra/board-dalmore-power.c87
1 files changed, 25 insertions, 62 deletions
diff --git a/arch/arm/mach-tegra/board-dalmore-power.c b/arch/arm/mach-tegra/board-dalmore-power.c
index 8fc9a1f6c045..eb30512fd544 100644
--- a/arch/arm/mach-tegra/board-dalmore-power.c
+++ b/arch/arm/mach-tegra/board-dalmore-power.c
@@ -1172,78 +1172,32 @@ int __init dalmore_edp_init(void)
}
static struct soctherm_platform_data dalmore_soctherm_data = {
- .soctherm_clk_rate = 136000000,
- .tsensor_clk_rate = 500000,
- .sensor_data = {
- [TSENSE_CPU0] = {
- .sensor_enable = true,
- .zone_enable = false,
- .tall = 16300,
- .tiddq = 1,
- .ten_count = 1,
- .tsample = 163,
- .pdiv = 10,
- },
- [TSENSE_CPU1] = {
- .sensor_enable = true,
- .zone_enable = false,
- .tall = 16300,
- .tiddq = 1,
- .ten_count = 1,
- .tsample = 163,
- .pdiv = 10,
- },
- [TSENSE_CPU2] = {
- .sensor_enable = true,
- .zone_enable = false,
- .tall = 16300,
- .tiddq = 1,
- .ten_count = 1,
- .tsample = 163,
- .pdiv = 10,
- },
- [TSENSE_CPU3] = {
- .sensor_enable = true,
- .zone_enable = false,
- .tall = 16300,
- .tiddq = 1,
- .ten_count = 1,
- .tsample = 163,
- .pdiv = 10,
- },
- [TSENSE_GPU] = {
- .sensor_enable = true,
- .zone_enable = false,
- .tall = 16300,
- .tiddq = 1,
- .ten_count = 1,
- .tsample = 163,
- .pdiv = 10,
- },
- [TSENSE_PLLX] = {
- .sensor_enable = true,
- .zone_enable = false,
- .tall = 16300,
- .tiddq = 1,
- .ten_count = 1,
- .tsample = 163,
- .pdiv = 10,
- },
- },
.therm = {
[THERM_CPU] = {
.zone_enable = true,
- .thermtrip = 115,
.passive_delay = 1000,
- .num_trips = 1,
+ .num_trips = 3,
.trips = {
- [0] = {
+ {
.cdev_type = "tegra-balanced",
.trip_temp = 85000,
.trip_type = THERMAL_TRIP_PASSIVE,
.upper = THERMAL_NO_LIMIT,
.lower = THERMAL_NO_LIMIT,
- .hysteresis = 3000,
+ },
+ {
+ .cdev_type = "tegra-heavy",
+ .trip_temp = 95000,
+ .trip_type = THERMAL_TRIP_HOT,
+ .upper = THERMAL_NO_LIMIT,
+ .lower = THERMAL_NO_LIMIT,
+ },
+ {
+ .cdev_type = "tegra-shutdown",
+ .trip_temp = 105000,
+ .trip_type = THERMAL_TRIP_CRITICAL,
+ .upper = THERMAL_NO_LIMIT,
+ .lower = THERMAL_NO_LIMIT,
},
},
},
@@ -1254,6 +1208,15 @@ static struct soctherm_platform_data dalmore_soctherm_data = {
.zone_enable = true,
},
},
+ .throttle = {
+ [THROTTLE_HEAVY] = {
+ .devs = {
+ [THROTTLE_DEV_CPU] = {
+ .enable = 1,
+ },
+ },
+ },
+ },
};
int __init dalmore_soctherm_init(void)