mirror of
https://github.com/u-boot/u-boot.git
synced 2024-11-25 13:14:19 +08:00
am33xx: Enable D-CACHE on !CONFIG_SYS_DCACHE_OFF
Test on Beaglebone white over cpsw, usb ether and SD card (read and write), performance increased, crc32 of data matches. Signed-off-by: Tom Rini <trini@ti.com>
This commit is contained in:
parent
a5a42eec8e
commit
12115c6ad3
@ -241,3 +241,11 @@ void s_init(void)
|
||||
sdram_init();
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifndef CONFIG_SYS_DCACHE_OFF
|
||||
void enable_caches(void)
|
||||
{
|
||||
/* Enable D-cache. I-cache is already enabled in start.S */
|
||||
dcache_enable();
|
||||
}
|
||||
#endif /* !CONFIG_SYS_DCACHE_OFF */
|
||||
|
@ -159,13 +159,4 @@ U_BOOT_CMD(
|
||||
"Sends U-Boot into infinite loop",
|
||||
""
|
||||
);
|
||||
|
||||
#ifndef CONFIG_SYS_DCACHE_OFF
|
||||
void enable_caches(void)
|
||||
{
|
||||
printf("Enable d-cache\n");
|
||||
/* Enable D-cache. I-cache is already enabled in start.S */
|
||||
dcache_enable();
|
||||
}
|
||||
#endif /* CONFIG_SYS_DCACHE_OFF */
|
||||
#endif /* !CONFIG_SPL_BUILD */
|
||||
|
Loading…
Reference in New Issue
Block a user