Skip to content

Commit ab435d1

Browse files
Mihai Sainclaudiubeznea
authored andcommitted
ARM: dts: microchip: sama5d2: Update the cache configuration for CPU
Add the memory size properties for L1 and L2 according with block diagram from datasheet: - L1 cache configuration with 32 KB for both data and instruction cache. - L2 cache configuration with 128 KB unified cache. [root@sama5d2 ~]$ lscpu Architecture: armv7l Byte Order: Little Endian CPU(s): 1 On-line CPU(s) list: 0 Vendor ID: ARM Model name: Cortex-A5 Caches (sum of all): L1d: 32 KiB (1 instance) L1i: 32 KiB (1 instance) L2: 128 KiB (1 instance) Signed-off-by: Mihai Sain <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Claudiu Beznea <[email protected]>
1 parent 7360dab commit ab435d1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

arch/arm/boot/dts/microchip/sama5d2.dtsi

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232
device_type = "cpu";
3333
compatible = "arm,cortex-a5";
3434
reg = <0>;
35+
d-cache-size = <0x8000>; // L1, 32 KB
36+
i-cache-size = <0x8000>; // L1, 32 KB
3537
next-level-cache = <&L2>;
3638
};
3739
};
@@ -160,6 +162,7 @@
160162
interrupts = <63 IRQ_TYPE_LEVEL_HIGH 4>;
161163
cache-unified;
162164
cache-level = <2>;
165+
cache-size = <0x20000>; // L2, 128 KB
163166
};
164167

165168
ebi: ebi@10000000 {

0 commit comments

Comments
 (0)