From bdbfc7a9b82eb6c26524f46523b7728dd645a3ef Mon Sep 17 00:00:00 2001 From: Mayuresh Kulkarni Date: Thu, 18 Feb 2010 13:48:02 +0530 Subject: tegra pm: enable registration of suspend_ops with kernel Enable registration of suspend_ops with kernel. This will enable platform specific low power states based on odm query. Change-Id: Ie38fc67fe76124d21f0f6ca107a89efd9e4ec8b1 --- arch/arm/mach-tegra/init_common.c | 14 ++++++++++---- 1 file 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 } -- cgit v1.2.3