arm: tegra: enterprise: suspend support added
Bitan Biswas [Fri, 20 May 2011 16:19:49 +0000 (21:19 +0530)]
Suspend support for enterprise board added with following changes -
1. suspend initialization for enterprise added
2. tegra suspend platform data - corereq_high polarity for
   enterprise board corrected. timer parameters matched with
   cardhu settings.

Bug 826737

Change-Id: Ie4ee0d436ccb1ec83cf60b116fa66b015366d134
Reviewed-on: http://git-master/r/32413
Reviewed-by: Niket Sirsi <nsirsi@nvidia.com>
Tested-by: Niket Sirsi <nsirsi@nvidia.com>

Rebase-Id: R9c00530272bf5bba50a960802c5b89519c08c70e

arch/arm/mach-tegra/board-enterprise-power.c
arch/arm/mach-tegra/board-enterprise.c
arch/arm/mach-tegra/board-enterprise.h

index 501a500..20ef7f0 100644 (file)
@@ -347,12 +347,12 @@ int __init enterprise_regulator_init(void)
 
 static struct tegra_suspend_platform_data enterprise_suspend_data = {
        .cpu_timer      = 2000,
-       .cpu_off_timer  = 0,
-       .suspend_mode   = TEGRA_SUSPEND_NONE,
+       .cpu_off_timer  = 200,
+       .suspend_mode   = TEGRA_SUSPEND_LP1,
        .core_timer     = 0x7e7e,
        .core_off_timer = 0,
        .separate_req   = true,
-       .corereq_high   = false,
+       .corereq_high   = true,
        .sysclkreq_high = true,
        .wake_enb       = 0,
        .wake_high      = 0,
index 68e8873..e4bff9f 100644 (file)
@@ -368,6 +368,7 @@ static void __init tegra_enterprise_init(void)
        enterprise_bt_rfkill();
        enterprise_emc_init();
        enterprise_sensors_init();
+       enterprise_suspend_init();
 }
 
 static void __init tegra_enterprise_reserve(void)
index 93c3d15..0b9cd8d 100644 (file)
@@ -34,6 +34,7 @@ int enterprise_kbc_init(void);
 int enterprise_emc_init(void);
 int enterprise_regulator_init(void);
 int enterprise_baseband_init(void);
+int enterprise_suspend_init(void);
 
 /* Touchscreen GPIO addresses   */
 #ifdef CONFIG_TOUCHSCREEN_ATMEL_MT_T9