summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/board-dalmore-power.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-tegra/board-dalmore-power.c')
-rw-r--r--arch/arm/mach-tegra/board-dalmore-power.c42
1 files changed, 35 insertions, 7 deletions
diff --git a/arch/arm/mach-tegra/board-dalmore-power.c b/arch/arm/mach-tegra/board-dalmore-power.c
index 0ecad495b7d3..d28f6001e1ad 100644
--- a/arch/arm/mach-tegra/board-dalmore-power.c
+++ b/arch/arm/mach-tegra/board-dalmore-power.c
@@ -41,6 +41,7 @@
#include <mach/edp.h>
#include <mach/gpio-tegra.h>
+#include "cpu-tegra.h"
#include "pm.h"
#include "tegra-board-id.h"
#include "board.h"
@@ -1108,13 +1109,6 @@ int __init dalmore_edp_init(void)
}
static struct soctherm_platform_data dalmore_soctherm_data = {
- .thermtrip = {
- [THERM_CPU] = 90,
- [THERM_GPU] = 0, /* Not enabled */
- [THERM_MEM] = 0, /* Not enabled */
- [THERM_PLL] = 0, /* Not enabled */
- },
-
.hw_backstop = 60,
.dividend = 1,
.divisor = 2,
@@ -1202,10 +1196,44 @@ static struct soctherm_platform_data dalmore_soctherm_data = {
.pdiv = 10,
},
},
+
+ .thermtrip = {
+ [THERM_CPU] = 90,
+ [THERM_GPU] = 0, /* Not enabled */
+ [THERM_MEM] = 0, /* Not enabled */
+ [THERM_PLL] = 0, /* Not enabled */
+ },
+ .passive = {
+ [THERM_CPU] = {
+ .trip_temp = 38000,
+ .tc1 = 0,
+ .tc2 = 1,
+ .passive_delay = 2000,
+ }
+ },
+};
+
+static struct balanced_throttle tj_throttle = {
+ .throt_tab_size = 10,
+ .throt_tab = {
+ { 0, 1000 },
+ { 640000, 1000 },
+ { 640000, 1000 },
+ { 640000, 1000 },
+ { 640000, 1000 },
+ { 640000, 1000 },
+ { 760000, 1000 },
+ { 760000, 1050 },
+ {1000000, 1050 },
+ {1000000, 1100 },
+ },
};
static int __init dalmore_soctherm_init(void)
{
+ dalmore_soctherm_data.passive[THERM_CPU].cdev =
+ balanced_throttle_register(&tj_throttle);
+
return tegra11_soctherm_init(&dalmore_soctherm_data);
}
module_init(dalmore_soctherm_init);