From 265dfdd6bc796041b3cead31aee5c902c177e741 Mon Sep 17 00:00:00 2001 From: "J. Aaron Gamble" Date: Tue, 23 Aug 2011 19:05:38 -0700 Subject: arm: tegra: enterprise: secureos LP2 suspend mode For secureos builds, disables LP0 on enterprise, enables LP2 Change-Id: Iffea0ed8a229604f76f33cc58ea287e7f01dea26 Reviewed-on: http://git-master/r/48843 Reviewed-by: Ryan Wong Tested-by: Ryan Wong --- arch/arm/mach-tegra/board-enterprise-power.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'arch') diff --git a/arch/arm/mach-tegra/board-enterprise-power.c b/arch/arm/mach-tegra/board-enterprise-power.c index e06744ef2d61..ebc97c8d0d05 100644 --- a/arch/arm/mach-tegra/board-enterprise-power.c +++ b/arch/arm/mach-tegra/board-enterprise-power.c @@ -440,7 +440,11 @@ static void enterprise_board_resume(int lp_state, enum resume_stage stg) static struct tegra_suspend_platform_data enterprise_suspend_data = { .cpu_timer = 2000, .cpu_off_timer = 200, +#ifdef CONFIG_TRUSTED_FOUNDATIONS + .suspend_mode = TEGRA_SUSPEND_LP2, +#else .suspend_mode = TEGRA_SUSPEND_LP0, +#endif /* CONFIG_TRUSTED_FOUNDATIONS */ .core_timer = 0x7e7e, .core_off_timer = 0, .separate_req = true, @@ -460,7 +464,11 @@ static void enterprise_init_deep_sleep_mode(void) struct board_info bi; tegra_get_board_info(&bi); if (bi.board_id == BOARD_1205 && bi.fab == ENTERPRISE_FAB_A01) +#ifdef CONFIG_TRUSTED_FOUNDATIONS + enterprise_suspend_data.suspend_mode = TEGRA_SUSPEND_LP2; +#else enterprise_suspend_data.suspend_mode = TEGRA_SUSPEND_LP1; +#endif /* CONFIG_TRUSTED_FOUNDATIONS */ } int __init enterprise_suspend_init(void) -- cgit v1.2.3