l2cc.txt 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. * ARM L2 Cache Controller
  2. ARM cores often have a separate level 2 cache controller. There are various
  3. implementations of the L2 cache controller with compatible programming models.
  4. The ARM L2 cache representation in the device tree should be done as follows:
  5. Required properties:
  6. - compatible : should be one of:
  7. "arm,pl310-cache"
  8. "arm,l220-cache"
  9. "arm,l210-cache"
  10. - cache-unified : Specifies the cache is a unified cache.
  11. - cache-level : Should be set to 2 for a level 2 cache.
  12. - reg : Physical base address and size of cache controller's memory mapped
  13. registers.
  14. Optional properties:
  15. - arm,data-latency : Cycles of latency for Data RAM accesses. Specifies 3 cells of
  16. read, write and setup latencies. Minimum valid values are 1. Controllers
  17. without setup latency control should use a value of 0.
  18. - arm,tag-latency : Cycles of latency for Tag RAM accesses. Specifies 3 cells of
  19. read, write and setup latencies. Controllers without setup latency control
  20. should use 0. Controllers without separate read and write Tag RAM latency
  21. values should only use the first cell.
  22. - arm,dirty-latency : Cycles of latency for Dirty RAMs. This is a single cell.
  23. - arm,filter-ranges : <start length> Starting address and length of window to
  24. filter. Addresses in the filter window are directed to the M1 port. Other
  25. addresses will go to the M0 port.
  26. - interrupts : 1 combined interrupt.
  27. Example:
  28. L2: cache-controller {
  29. compatible = "arm,pl310-cache";
  30. reg = <0xfff12000 0x1000>;
  31. arm,data-latency = <1 1 1>;
  32. arm,tag-latency = <2 2 2>;
  33. arm,filter-ranges = <0x80000000 0x8000000>;
  34. cache-unified;
  35. cache-level = <2>;
  36. interrupts = <45>;
  37. };