Skip to content
Snippets Groups Projects
Commit c7d8db66 authored by Alexey Brodkin's avatar Alexey Brodkin
Browse files

board: axs10x: Flush entire cache after programming reset vector


Now when we have support of IOC (IO-Coherency block) cahce operations
on regions are tuned to not be dummy stubs if IOC was found and enabled
in the core. That makes flush_dcache_range() useless for our purposes
here. And since we do need to flush modified reset vector to at least L2
cache (AKA SLC) so other cores will see it via its L1 instruction cache
we're using always functional flush_dcache_all() here.

Signed-off-by: default avatarAlexey Brodkin <abrodkin@synopsys.com>
Cc: Marek Vasut <marex@denx.de>
parent a4a43fcf
No related branches found
No related tags found
No related merge requests found
......@@ -54,7 +54,7 @@ void smp_set_core_boot_addr(unsigned long addr, int corenr)
writel(addr, (void __iomem *)RESET_VECTOR_ADDR);
/* Make sure other cores see written value in memory */
flush_dcache_range(RESET_VECTOR_ADDR, RESET_VECTOR_ADDR + sizeof(int));
flush_dcache_all();
}
void smp_kick_all_cpus(void)
......
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