]> git.ipfire.org Git - people/ms/u-boot.git/commit
arc: add support for SLC (System Level Cache, AKA L2-cache)
authorAlexey Brodkin <abrodkin@synopsys.com>
Mon, 30 Mar 2015 10:36:04 +0000 (13:36 +0300)
committerAlexey Brodkin <abrodkin@synopsys.com>
Fri, 3 Apr 2015 06:47:50 +0000 (09:47 +0300)
commit6eb15e50f48927c65a67371555b5afc24b3c7d21
tree0e6f7a560fece41ed04cfdd3fad6591433c56e19
parent09424d11192cffd4793b7bc922c5b47d4fe88a4d
arc: add support for SLC (System Level Cache, AKA L2-cache)

ARCv2 cores may have built-in SLC (System Level Cache, AKA L2-cache).
This change adds functions required for controlling SLC:
 * slc_enable/disable
 * slc_flush/invalidate

For now we just disable SLC to escape DMA coherency issues until either:
 * SLC flush/invalidate is supported in DMA APIin U-Boot
 * hardware DMA coherency is implemented (that might be board specific
   so probably we'll need to have a separate Kconfig option for
   controlling SLC explicitly)

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
arch/arc/include/asm/arcregs.h
arch/arc/include/asm/cache.h
arch/arc/lib/cache.c
arch/arc/lib/start.S