summaryrefslogtreecommitdiff
path: root/src/soc/nvidia/tegra132/ccplex.c
diff options
context:
space:
mode:
authorYen Lin <yelin@nvidia.com>2015-01-07 17:04:15 -0800
committerPatrick Georgi <pgeorgi@google.com>2015-04-13 12:19:33 +0200
commit9b99d7b435f24a2e3a70c6b29a4dba13efc3ef47 (patch)
tree927ed1d5faf130a68353735290cb54c90bb49fc1 /src/soc/nvidia/tegra132/ccplex.c
parentafe9c8a03bdd682dc160d7c33102159c5aef5247 (diff)
t132: add RAM repair to cluster 1
RAM repair has to be performed to cluster 1 also. BRANCH=none BUG=none TEST=Test on Rush and make sure RAM repair completes Change-Id: I0daf969a995a2be152270bc06501eaf086a13a97 Signed-off-by: Stefan Reinauer <reinauer@chromium.org> Original-Commit-Id: 6b07894cc737cb192f68e254d522b55d8ca3b2f3 Original-Change-Id: I458e0a66d76318c6a4aa82547c9037c7b969f1e1 Original-Signed-off-by: Yen Lin <yelin@nvidia.com> Original-Reviewed-on: https://chromium-review.googlesource.com/239360 Original-Reviewed-by: Tom Warren <twarren@nvidia.com> Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: http://review.coreboot.org/9592 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src/soc/nvidia/tegra132/ccplex.c')
-rw-r--r--src/soc/nvidia/tegra132/ccplex.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/soc/nvidia/tegra132/ccplex.c b/src/soc/nvidia/tegra132/ccplex.c
index ea92b31324..520c244fbf 100644
--- a/src/soc/nvidia/tegra132/ccplex.c
+++ b/src/soc/nvidia/tegra132/ccplex.c
@@ -135,14 +135,22 @@ static void request_ram_repair(void)
printk(BIOS_DEBUG, "Requesting RAM repair.\n");
+ stopwatch_init(&sw);
+
+ /* Perform cluster 0 ram repair */
reg = read32(&flow->ram_repair);
reg |= req;
write32(reg, &flow->ram_repair);
-
- stopwatch_init(&sw);
while ((read32(&flow->ram_repair) & sts) != sts)
;
+ /* Perform cluster 1 ram repair */
+ reg = read32(&flow->ram_repair_cluster1);
+ reg |= req;
+ write32(reg, &flow->ram_repair_cluster1);
+ while ((read32(&flow->ram_repair_cluster1) & sts) != sts)
+ ;
+
printk(BIOS_DEBUG, "RAM repair complete in %ld usecs.\n",
stopwatch_duration_usecs(&sw));
}