diff options
author | Diwakar Tundlam <dtundlam@nvidia.com> | 2013-01-17 15:23:09 -0800 |
---|---|---|
committer | Riham Haidar <rhaidar@nvidia.com> | 2013-01-28 13:28:53 -0800 |
commit | 69db11fde6c5478cedc95fa9d041b3337bade5e5 (patch) | |
tree | 717c09126e261a74220b9e7755ba2ae1fe2c8710 /arch/arm/mach-tegra/board-roth-power.c | |
parent | db904b7bf53028a20f38d9b0d3898c1b408db06b (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-roth-power.c')
-rw-r--r-- | arch/arm/mach-tegra/board-roth-power.c | 87 |
1 files changed, 25 insertions, 62 deletions
diff --git a/arch/arm/mach-tegra/board-roth-power.c b/arch/arm/mach-tegra/board-roth-power.c index ce5a82819284..c4f2f817c77b 100644 --- a/arch/arm/mach-tegra/board-roth-power.c +++ b/arch/arm/mach-tegra/board-roth-power.c @@ -759,78 +759,32 @@ int __init roth_edp_init(void) } static struct soctherm_platform_data roth_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, }, }, }, @@ -841,6 +795,15 @@ static struct soctherm_platform_data roth_soctherm_data = { .zone_enable = true, }, }, + .throttle = { + [THROTTLE_HEAVY] = { + .devs = { + [THROTTLE_DEV_CPU] = { + .enable = 1, + }, + }, + }, + }, }; int __init roth_soctherm_init(void) |