mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-09 12:13:00 -04:00
sc520: Release CAR and enable caching
This commit is contained in:
parent
e4f78d78d7
commit
6002bf03b4
@ -51,14 +51,20 @@ int cpu_init_f(void)
|
|||||||
"popl %%ecx\n"
|
"popl %%ecx\n"
|
||||||
"loop 0b\n": : : "ecx");
|
"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();
|
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
|
#ifdef CONFIG_SYS_SC520_RESET
|
||||||
void reset_cpu(ulong addr)
|
void reset_cpu(ulong addr)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user