microblaze: Support for WB cache
Microblaze version 7.20.d is the first MB version which can be run on MMU linux. Please do not used previous version because they contain HW bug. Based on WB support was necessary to redesign whole cache design. Microblaze versions from 7.20.a don't need to disable IRQ and cache before working with them that's why there are special structures for it. Signed-off-by: Michal Simek <monstr@monstr.eu>
This commit is contained in:
@@ -52,11 +52,12 @@ void __init setup_arch(char **cmdline_p)
|
||||
/* irq_early_init(); */
|
||||
setup_cpuinfo();
|
||||
|
||||
__invalidate_icache_all();
|
||||
__enable_icache();
|
||||
microblaze_cache_init();
|
||||
|
||||
__invalidate_dcache_all();
|
||||
__enable_dcache();
|
||||
enable_dcache();
|
||||
|
||||
invalidate_icache();
|
||||
enable_icache();
|
||||
|
||||
setup_memory();
|
||||
|
||||
|
Reference in New Issue
Block a user