ARM: 7547/4: cache-l2x0: add support for Aurora L2 cache ctrl
authorGregory CLEMENT <gregory.clement@free-electrons.com>
Tue, 6 Nov 2012 00:58:07 +0000 (01:58 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 6 Nov 2012 19:47:35 +0000 (19:47 +0000)
commitb8db6b886a1fecd6a5b1d13b190f3149247305ef
tree382e1fc446b99ee32e3f64d399f27e3af32d5782
parentc3545236e8740ab556022f87685d18503c86e187
ARM: 7547/4: cache-l2x0: add support for Aurora L2 cache ctrl

Aurora Cache Controller was designed to be compatible with the ARM L2
Cache Controller. It comes with some difference or improvement such
as:
- no cache id part number available through hardware (need to get it
  by the DT).
- always write through mode available.
- two flavors of the controller outer cache and system cache (meaning
  maintenance operations on L1 are broadcasted to the L2 and L2
  performs the same operation).
- in outer cache mode, the cache maintenance operations are improved and
  can be done on a range inside a page and are not limited to a cache
  line.

Tested-and-Reviewed-by: Lior Amsalem <alior@marvell.com>
Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Signed-off-by: Yehuda Yitschak <yehuday@marvell.com>
Reviewed-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/include/asm/hardware/cache-l2x0.h
arch/arm/mm/cache-aurora-l2.h [new file with mode: 0644]
arch/arm/mm/cache-l2x0.c