summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/suspend-t3.c
diff options
context:
space:
mode:
authorScott Williams <scwilliams@nvidia.com>2011-03-18 13:38:02 -0700
committerDan Willemsen <dwillemsen@nvidia.com>2011-04-26 15:54:34 -0700
commitd7f78068ddaecbb15e6d75cdd902d64dadea6251 (patch)
treed02d5333d770250cba98ce8532093dffb6311f65 /arch/arm/mach-tegra/suspend-t3.c
parentd2c569be96204a3bcd843e5040b1b5c636728816 (diff)
arm: tegra: Enable MC early ACK and scoreboard
Bug 791803 Original-Change-Id: I25be461cccd6e14618d8b43fd0738e9abfbe4432 Reviewed-on: http://git-master/r/23584 Reviewed-by: Scott Williams <scwilliams@nvidia.com> Tested-by: Scott Williams <scwilliams@nvidia.com> Change-Id: I6bb5dcfbf48323919529c6271ea7696ecc413bb2
Diffstat (limited to 'arch/arm/mach-tegra/suspend-t3.c')
-rw-r--r--arch/arm/mach-tegra/suspend-t3.c19
1 files changed, 18 insertions, 1 deletions
diff --git a/arch/arm/mach-tegra/suspend-t3.c b/arch/arm/mach-tegra/suspend-t3.c
index 66ef21076c0b..90fb6455430a 100644
--- a/arch/arm/mach-tegra/suspend-t3.c
+++ b/arch/arm/mach-tegra/suspend-t3.c
@@ -36,7 +36,7 @@
#include "clock.h"
#include "gpio-names.h"
#include "power.h"
-
+#include "tegra3_emc.h"
#define CAR_CCLK_BURST_POLICY \
(IO_ADDRESS(TEGRA_CLK_RESET_BASE) + 0x20)
@@ -409,3 +409,20 @@ int tegra_wake_to_irq(int wake)
return tegra_wake_event_irq[wake];
}
+
+static u32 mc_reserved_rsv;
+static u32 mc_emem_arb_override;
+
+void tegra_lp0_suspend_mc(void)
+{
+ void __iomem *mc = IO_ADDRESS(TEGRA_MC_BASE);
+ mc_reserved_rsv = readl(mc + MC_RESERVED_RSV);
+ mc_emem_arb_override = readl(mc + MC_EMEM_ARB_OVERRIDE);
+}
+
+void tegra_lp0_resume_mc(void)
+{
+ void __iomem *mc = IO_ADDRESS(TEGRA_MC_BASE);
+ writel(mc_reserved_rsv, mc + MC_RESERVED_RSV);
+ writel(mc_emem_arb_override, mc + MC_EMEM_ARB_OVERRIDE);
+}