summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorGraeme Russ <graeme.russ@gmail.com>2011-02-12 15:12:12 +1100
committerGraeme Russ <graeme.russ@gmail.com>2011-02-12 15:12:12 +1100
commit6002bf03b4965053d7112c4ea2125d0b6548b0e9 (patch)
treeff1d9230aa99437f62ab0c32febcbb92fb774fbd /arch
parente4f78d78d7b710243c9953cc86fd75055d59ebf9 (diff)
downloadblackbird-obmc-uboot-6002bf03b4965053d7112c4ea2125d0b6548b0e9.tar.gz
blackbird-obmc-uboot-6002bf03b4965053d7112c4ea2125d0b6548b0e9.zip
sc520: Release CAR and enable caching
Diffstat (limited to 'arch')
-rw-r--r--arch/i386/cpu/sc520/sc520.c16
1 files changed, 11 insertions, 5 deletions
diff --git a/arch/i386/cpu/sc520/sc520.c b/arch/i386/cpu/sc520/sc520.c
index e5dcac675b..d0c313b91a 100644
--- a/arch/i386/cpu/sc520/sc520.c
+++ b/arch/i386/cpu/sc520/sc520.c
@@ -51,14 +51,20 @@ int cpu_init_f(void)
"popl %%ecx\n"
"loop 0b\n": : : "ecx");
- if (gd->flags & GD_FLG_COLD_BOOT) {
- /* turn on the SDRAM write buffer */
- writeb(0x11, &sc520_mmcr->dbctl);
- }
-
return x86_cpu_init_f();
}
+int cpu_init_r(void)
+{
+ /* Disable the PAR used for CAR */
+ writel(0x0000000, &sc520_mmcr->par[2]);
+
+ /* turn on the SDRAM write buffer */
+ writeb(0x11, &sc520_mmcr->dbctl);
+
+ return x86_cpu_init_r();
+}
+
#ifdef CONFIG_SYS_SC520_RESET
void reset_cpu(ulong addr)
{
OpenPOWER on IntegriCloud