diff options
author | J. Aaron Gamble <jgamble@nvidia.com> | 2011-08-23 19:05:38 -0700 |
---|---|---|
committer | Ryan Wong <ryanw@nvidia.com> | 2011-08-24 18:53:58 -0700 |
commit | 265dfdd6bc796041b3cead31aee5c902c177e741 (patch) | |
tree | 18cfc344cace24887c6640308fc3f7c4bebf43a8 | |
parent | 188c38488f7252c48bc144822afec3089cf8783c (diff) |
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 <ryanw@nvidia.com>
Tested-by: Ryan Wong <ryanw@nvidia.com>
-rw-r--r-- | arch/arm/mach-tegra/board-enterprise-power.c | 8 |
1 files changed, 8 insertions, 0 deletions
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) |