Masami Hiramatsu | ea0ab68 | 2021-06-04 18:44:59 +0900 | [diff] [blame] | 1 | /** @file |
| 2 | * Copyright (c) 2018, Linaro Limited. All rights reserved. |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-2-Clause-Patent |
| 5 | */ |
| 6 | |
| 7 | #define __L1(cpuref, l2ref) \ |
| 8 | cpuref { \ |
| 9 | i-cache-size = <0x8000>; \ |
| 10 | i-cache-line-size = <64>; \ |
| 11 | i-cache-sets = <256>; \ |
| 12 | d-cache-size = <0x8000>; \ |
| 13 | d-cache-line-size = <64>; \ |
| 14 | d-cache-sets = <128>; \ |
| 15 | l2-cache = <l2ref>; \ |
| 16 | }; |
| 17 | |
| 18 | #define __L2(idx) \ |
| 19 | L2_##idx: l2-cache##idx { \ |
| 20 | cache-size = <0x40000>; \ |
| 21 | cache-line-size = <64>; \ |
| 22 | cache-sets = <256>; \ |
| 23 | cache-unified; \ |
| 24 | next-level-cache = <&L3>; \ |
| 25 | }; |
| 26 | |
| 27 | / { |
| 28 | __L2(0) |
| 29 | __L2(1) |
| 30 | __L2(2) |
| 31 | __L2(3) |
| 32 | __L2(4) |
| 33 | __L2(5) |
| 34 | __L2(6) |
| 35 | __L2(7) |
| 36 | __L2(8) |
| 37 | __L2(9) |
| 38 | __L2(10) |
| 39 | __L2(11) |
| 40 | |
| 41 | L3: l3-cache { |
| 42 | cache-level = <3>; |
| 43 | cache-size = <0x400000>; |
| 44 | cache-line-size = <64>; |
| 45 | cache-sets = <4096>; |
| 46 | cache-unified; |
| 47 | }; |
| 48 | }; |
| 49 | |
| 50 | __L1(&CPU0, &L2_0) |
| 51 | __L1(&CPU1, &L2_0) |
| 52 | __L1(&CPU2, &L2_1) |
| 53 | __L1(&CPU3, &L2_1) |
| 54 | __L1(&CPU4, &L2_2) |
| 55 | __L1(&CPU5, &L2_2) |
| 56 | __L1(&CPU6, &L2_3) |
| 57 | __L1(&CPU7, &L2_3) |
| 58 | __L1(&CPU8, &L2_4) |
| 59 | __L1(&CPU9, &L2_4) |
| 60 | __L1(&CPU10, &L2_5) |
| 61 | __L1(&CPU11, &L2_5) |
| 62 | __L1(&CPU12, &L2_6) |
| 63 | __L1(&CPU13, &L2_6) |
| 64 | __L1(&CPU14, &L2_7) |
| 65 | __L1(&CPU15, &L2_7) |
| 66 | __L1(&CPU16, &L2_8) |
| 67 | __L1(&CPU17, &L2_8) |
| 68 | __L1(&CPU18, &L2_9) |
| 69 | __L1(&CPU19, &L2_9) |
| 70 | __L1(&CPU20, &L2_10) |
| 71 | __L1(&CPU21, &L2_10) |
| 72 | __L1(&CPU22, &L2_11) |
| 73 | __L1(&CPU23, &L2_11) |