2011-08-04 01:12:05 +08:00
|
|
|
* ARM L2 Cache Controller
|
|
|
|
|
|
|
|
ARM cores often have a separate level 2 cache controller. There are various
|
|
|
|
implementations of the L2 cache controller with compatible programming models.
|
|
|
|
The ARM L2 cache representation in the device tree should be done as follows:
|
|
|
|
|
|
|
|
Required properties:
|
|
|
|
|
|
|
|
- compatible : should be one of:
|
2013-12-13 23:42:19 +08:00
|
|
|
"arm,pl310-cache"
|
|
|
|
"arm,l220-cache"
|
|
|
|
"arm,l210-cache"
|
|
|
|
"bcm,bcm11351-a2-pl310-cache": DEPRECATED by "brcm,bcm11351-a2-pl310-cache"
|
|
|
|
"brcm,bcm11351-a2-pl310-cache": For Broadcom bcm11351 chipset where an
|
|
|
|
offset needs to be added to the address before passing down to the L2
|
|
|
|
cache controller
|
|
|
|
"marvell,aurora-system-cache": Marvell Controller designed to be
|
2012-09-27 00:02:50 +08:00
|
|
|
compatible with the ARM one, with system cache mode (meaning
|
|
|
|
maintenance operations on L1 are broadcasted to the L2 and L2
|
|
|
|
performs the same operation).
|
2013-12-13 23:42:19 +08:00
|
|
|
"marvell,aurora-outer-cache": Marvell Controller designed to be
|
|
|
|
compatible with the ARM one with outer cache mode.
|
|
|
|
"marvell,tauros3-cache": Marvell Tauros3 cache controller, compatible
|
|
|
|
with arm,pl310-cache controller.
|
2011-08-04 01:12:05 +08:00
|
|
|
- cache-unified : Specifies the cache is a unified cache.
|
|
|
|
- cache-level : Should be set to 2 for a level 2 cache.
|
|
|
|
- reg : Physical base address and size of cache controller's memory mapped
|
|
|
|
registers.
|
|
|
|
|
|
|
|
Optional properties:
|
|
|
|
|
|
|
|
- arm,data-latency : Cycles of latency for Data RAM accesses. Specifies 3 cells of
|
|
|
|
read, write and setup latencies. Minimum valid values are 1. Controllers
|
|
|
|
without setup latency control should use a value of 0.
|
|
|
|
- arm,tag-latency : Cycles of latency for Tag RAM accesses. Specifies 3 cells of
|
|
|
|
read, write and setup latencies. Controllers without setup latency control
|
|
|
|
should use 0. Controllers without separate read and write Tag RAM latency
|
|
|
|
values should only use the first cell.
|
|
|
|
- arm,dirty-latency : Cycles of latency for Dirty RAMs. This is a single cell.
|
|
|
|
- arm,filter-ranges : <start length> Starting address and length of window to
|
|
|
|
filter. Addresses in the filter window are directed to the M1 port. Other
|
|
|
|
addresses will go to the M0 port.
|
2011-08-18 01:03:17 +08:00
|
|
|
- interrupts : 1 combined interrupt.
|
2012-09-27 00:02:50 +08:00
|
|
|
- cache-id-part: cache id part number to be used if it is not present
|
|
|
|
on hardware
|
|
|
|
- wt-override: If present then L2 is forced to Write through mode
|
2011-08-04 01:12:05 +08:00
|
|
|
|
|
|
|
Example:
|
|
|
|
|
|
|
|
L2: cache-controller {
|
|
|
|
compatible = "arm,pl310-cache";
|
|
|
|
reg = <0xfff12000 0x1000>;
|
|
|
|
arm,data-latency = <1 1 1>;
|
|
|
|
arm,tag-latency = <2 2 2>;
|
2012-10-24 08:53:06 +08:00
|
|
|
arm,filter-ranges = <0x80000000 0x8000000>;
|
2011-08-04 01:12:05 +08:00
|
|
|
cache-unified;
|
|
|
|
cache-level = <2>;
|
2011-08-18 01:03:17 +08:00
|
|
|
interrupts = <45>;
|
2011-08-04 01:12:05 +08:00
|
|
|
};
|