]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
arc: significant cache rework
authorAlexey Brodkin <Alexey.Brodkin@synopsys.com>
Mon, 18 May 2015 13:56:26 +0000 (16:56 +0300)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 22:47:21 +0000 (00:47 +0200)
commitb0f66a784ace7ceaaedbf76ebfda888fea33ef20
treef70666615df3c8e233d2cb0b8015258775971d88
parent23f42152d95005a2d12a97c507c1082e246170fd
arc: significant cache rework

[1] Align cache management functions to those in Linux kernel. I.e.:
    a) Use the same functions for all cache ops (D$ Inv/Flush)
    b) Split cache ops in 3 sub-functions: "before", "lineloop" and
"after". That way we may re-use "before" and "after" functions for
region and full cache ops.

 [2] Implement full-functional L2 (SLC) management. Before SLC was
simply disabled early on boot. It's also possible to enable or disable
L2 cache from config utility.

 [3] Disable/enable corresponding caches early on boot. So if U-Boot is
configured to use caches they will be used at all times (this is useful
in partucular for speed-up of relocation).

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/cpu.c
arch/arc/lib/init_helpers.c
arch/arc/lib/start.S