Quantcast
Channel: Processors
Viewing all articles
Browse latest Browse all 149722

Forum Post: RE: How to enable cache in U-boot

$
0
0

What I did is to add following code:

#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 */

enable_caches() will be called at beginning of board_init_r in u-boot-2013.10, which speed splash indeed. 


Viewing all articles
Browse latest Browse all 149722

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>