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>
Showing
- arch/arc/include/asm/arcregs.h 4 additions, 0 deletionsarch/arc/include/asm/arcregs.h
- arch/arc/include/asm/cache.h 11 additions, 0 deletionsarch/arc/include/asm/cache.h
- arch/arc/lib/cache.c 46 additions, 0 deletionsarch/arc/lib/cache.c
- arch/arc/lib/start.S 4 additions, 0 deletionsarch/arc/lib/start.S
Please register or sign in to comment