summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/pm-t2.c
diff options
context:
space:
mode:
authorWen Yi <wyi@nvidia.com>2012-06-20 21:42:13 -0700
committerSimone Willett <swillett@nvidia.com>2012-07-16 17:20:28 -0700
commit5e07056dc8b922b8b43a01b60a949c1dda75d9a9 (patch)
treebd8a99dc9e78be49ec0613779535f4dfdd2c466e /arch/arm/mach-tegra/pm-t2.c
parent5a34d0584c5a45547c6733e177a0aa0c93dc1884 (diff)
arm: tegra: sd: enable sd dpd
This is a WAR solution that allows for the turning on SD DPD feature. The original issue is that enabling SD DPD immediately after device comes out of LP0 causes ULPI disconnect. The root cause of that is not known. The WAR is to delay the enabling of SD DPD for 100ms after device comes out of LP0. Bug 929628 Change-Id: I3c5e35ace422e5441535c2c0fe18545b53bbddc4 Signed-off-by: Wen Yi <wyi@nvidia.com> (cherry picked from commit bffb7b917d52a3523af80db21322ec7ba5fd33f9) Reviewed-on: http://git-master/r/113392 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/pm-t2.c')
-rw-r--r--arch/arm/mach-tegra/pm-t2.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/arch/arm/mach-tegra/pm-t2.c b/arch/arm/mach-tegra/pm-t2.c
index 7ddbb2125595..3ecd27167883 100644
--- a/arch/arm/mach-tegra/pm-t2.c
+++ b/arch/arm/mach-tegra/pm-t2.c
@@ -3,7 +3,7 @@
*
* Tegra 2 LP0 scratch register preservation
*
- * Copyright (c) 2009-2011, NVIDIA Corporation.
+ * Copyright (c) 2009-2012, NVIDIA CORPORATION. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -357,6 +357,8 @@ void __init tegra2_lp0_suspend_init(void)
wmb();
}
+#ifdef CONFIG_PM_SLEEP
+
struct tegra_io_dpd *tegra_io_dpd_get(struct device *dev)
{
return NULL;
@@ -374,3 +376,11 @@ void tegra_io_dpd_disable(struct tegra_io_dpd *hnd)
return;
}
EXPORT_SYMBOL(tegra_io_dpd_disable);
+
+#endif
+
+int tegra_io_dpd_init(void)
+{
+ return 0;
+}
+EXPORT_SYMBOL(tegra_io_dpd_init);