summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/common-t3.c
diff options
context:
space:
mode:
authorManoj Chourasia <mchourasia@nvidia.com>2012-03-21 14:28:58 +0530
committerVarun Wadekar <vwadekar@nvidia.com>2012-04-18 10:08:17 +0530
commite1c4fbe7a5d8ae7126c9ddd5207eb63ba0eab7c7 (patch)
treed43ac987c04927f85f31bc5ae9d56eb51036d8da /arch/arm/mach-tegra/common-t3.c
parent286c97c7cb3634035daeb340c770b413620add86 (diff)
ARM: tegra3: Make MC early ack feature configurable.
Add a config option to configure early acknowlegement from memory controller. Early acknowledgement is feature of memory controller where MC acknowledged immediately to any write requests from CPU. To maintain mermory coherency all the read requests are blocked till all the early-acked writes have reached to a point of coherency. bug 943638 Change-Id: I97f30261c4711fc338b007502b6eef7217ddb6cb Signed-off-by: Manoj Chourasia <mchourasia@nvidia.com> Reviewed-on: http://git-master/r/91477 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/common-t3.c')
-rw-r--r--arch/arm/mach-tegra/common-t3.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/arm/mach-tegra/common-t3.c b/arch/arm/mach-tegra/common-t3.c
index ccc351bf60d4..67122916f8fa 100644
--- a/arch/arm/mach-tegra/common-t3.c
+++ b/arch/arm/mach-tegra/common-t3.c
@@ -3,7 +3,7 @@
*
* Tegra 3 SoC-specific initialization (memory controller, etc.)
*
- * Copyright (c) 2010-2011, NVIDIA Corporation.
+ * Copyright (c) 2010-2012, NVIDIA Corporation.
*
* 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
@@ -248,10 +248,11 @@ static int __init tegra30_mc_init(void)
reg = 0x0F7F1010;
writel(reg, mc + MC_RESERVED_RSV);
+#if defined(CONFIG_TEGRA_MC_EARLY_ACK)
reg = readl(mc + MC_EMEM_ARB_OVERRIDE);
reg |= 3;
writel(reg, mc + MC_EMEM_ARB_OVERRIDE);
-
+#endif
if (request_irq(INT_MC_GENERAL, tegra_mc_error_isr, 0,
"mc_status", NULL)) {
pr_err("%s: unable to register MC error interrupt\n", __func__);