]> git.kernelconcepts.de Git - karo-tx-uboot.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)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 1 Sep 2015 12:38:14 +0000 (14:38 +0200)
commit1abf94c59663174f4dd67c16169c6aae45648d41
tree7ad060afe2a1a789c1527fdc2023737382a1ad8f
parent915500e2e14d2a30f8109cf840046e286c53282a
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