From 23d7d05c8ca872fce132d0eb628f3b3f54f6788d Mon Sep 17 00:00:00 2001 From: Gary King Date: Tue, 3 Aug 2010 17:48:42 -0700 Subject: [PATCH] [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 --- arch/arm/mach-tegra/board-ventana-power.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) 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 #include #include +#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; } -- 2.34.1