summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMayuresh Kulkarni <mkulkarni@nvidia.com>2010-02-18 13:48:02 +0530
committerGary King <gking@nvidia.com>2010-02-22 11:41:29 -0800
commitbdbfc7a9b82eb6c26524f46523b7728dd645a3ef (patch)
tree8049758db81c985e707d9dd219b30e21f2a1b712
parent8fba90b4d4f400af56cf9f2e998d0562f087fcd9 (diff)
tegra pm: enable registration of suspend_ops with kerneltegra-9.12.6
Enable registration of suspend_ops with kernel. This will enable platform specific low power states based on odm query. Change-Id: Ie38fc67fe76124d21f0f6ca107a89efd9e4ec8b1
-rwxr-xr-xarch/arm/mach-tegra/init_common.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/arch/arm/mach-tegra/init_common.c b/arch/arm/mach-tegra/init_common.c
index 19bb822acb23..cd6c2e50c175 100755
--- a/arch/arm/mach-tegra/init_common.c
+++ b/arch/arm/mach-tegra/init_common.c
@@ -48,8 +48,10 @@ char *tegra_boot_device = NULL;
NvRmGpioHandle s_hGpioGlobal = NULL;
#ifdef CONFIG_PM
-/* FIXME : Uncomment this for actual suspend/resume
-extern void tegra_set_suspend_ops(void); */
+#ifdef MACH_TEGRA_GENERIC_DEBUG
+extern int console_suspend_enabled;
+#endif
+extern void tegra_set_suspend_ops(void);
#endif
/*
@@ -911,8 +913,12 @@ void __init tegra_common_init(void)
tegra_register_usb();
tegra_register_w1();
#ifdef CONFIG_PM
- /* FIXME : Uncomment this for actual suspend/resume
- tegra_set_suspend_ops(); */
+#ifdef MACH_TEGRA_GENERIC_DEBUG
+ /* This is needed to get prints on UART
+ * during suspend/resume */
+ console_suspend_enabled = 0;
+#endif
+ tegra_set_suspend_ops();
#endif
}