Skip to content
Snippets Groups Projects
Commit 6002bf03 authored by Graeme Russ's avatar Graeme Russ
Browse files

sc520: Release CAR and enable caching

parent e4f78d78
No related branches found
No related tags found
No related merge requests found
......@@ -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)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment