summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/board-ventana-power.c
diff options
context:
space:
mode:
authorGary King <gking@nvidia.com>2010-08-03 17:48:42 -0700
committerDan Willemsen <dwillemsen@nvidia.com>2011-11-30 21:35:01 -0800
commite10e928737e3d53d69b2da23fa1e3f5bfe9b9394 (patch)
tree697a81bfd65754096bb3b7f4d639c37818b44585 /arch/arm/mach-tegra/board-ventana-power.c
parent2d933ed8bb314d6336a41b4517b135fe185f03ea (diff)
[ARM] tegra: ventana: add suspend support to ventana
add support for system suspend to ventana; currently LP1 (DRAM in self-refresh, CPU power-gated, core power active) is used. Change-Id: Idb223a7da94c3b87ea61e0eef1de77206c4171e4 Signed-off-by: Gary King <gking@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/board-ventana-power.c')
-rw-r--r--arch/arm/mach-tegra/board-ventana-power.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/board-ventana-power.c b/arch/arm/mach-tegra/board-ventana-power.c
index 5cbd63f48b96..1ecaace26813 100644
--- a/arch/arm/mach-tegra/board-ventana-power.c
+++ b/arch/arm/mach-tegra/board-ventana-power.c
@@ -19,6 +19,9 @@
#include <linux/regulator/machine.h>
#include <linux/mfd/tps6586x.h>
#include <linux/gpio.h>
+#include "power.h"
+#include "wakeups-t2.h"
+#include "board.h"
static struct regulator_consumer_supply tps658621_sm0_supply[] = {
REGULATOR_SUPPLY("vdd_core", NULL),
@@ -131,8 +134,25 @@ static struct i2c_board_info __initdata ventana_regulators[] = {
},
};
+static struct tegra_suspend_platform_data ventana_suspend_data = {
+ .cpu_timer = 2000,
+ .cpu_off_timer = 0,
+ .dram_suspend = true,
+ .core_off = false,
+ .core_timer = 0x7e7e,
+ .core_off_timer = 0,
+ .separate_req = true,
+ .corereq_high = false,
+ .sysclkreq_high = true,
+ .wake_enb = TEGRA_WAKE_GPIO_PV2,
+ .wake_high = 0,
+ .wake_low = TEGRA_WAKE_GPIO_PV2,
+ .wake_any = 0,
+};
+
int __init ventana_regulator_init(void)
{
i2c_register_board_info(4, ventana_regulators, 1);
+ tegra_init_suspend(&ventana_suspend_data);
return 0;
}