projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e4f78d7
)
sc520: Release CAR and enable caching
author
Graeme Russ
<graeme.russ@gmail.com>
Sat, 12 Feb 2011 04:12:12 +0000
(15:12 +1100)
committer
Graeme Russ
<graeme.russ@gmail.com>
Sat, 12 Feb 2011 04:12:12 +0000
(15:12 +1100)
arch/i386/cpu/sc520/sc520.c
patch
|
blob
|
history
diff --git
a/arch/i386/cpu/sc520/sc520.c
b/arch/i386/cpu/sc520/sc520.c
index e5dcac675beb1c68eacd628c8d5fbef1d2b953a2..d0c313b91a9aa7ce64aef0d8c759bfb61637a0e2 100644
(file)
--- 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)
{