Skip to content

Commit 1e2e0ed

Browse files
Mihai Sainclaudiubeznea
authored andcommitted
ARM: dts: microchip: sama5d4: 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@sama5d4 ~]$ 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 31a8202 commit 1e2e0ed

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@
5050
device_type = "cpu";
5151
compatible = "arm,cortex-a5";
5252
reg = <0>;
53+
d-cache-size = <0x8000>; // L1, 32 KB
54+
i-cache-size = <0x8000>; // L1, 32 KB
5355
next-level-cache = <&L2>;
5456
};
5557
};
@@ -143,6 +145,7 @@
143145
interrupts = <67 IRQ_TYPE_LEVEL_HIGH 4>;
144146
cache-unified;
145147
cache-level = <2>;
148+
cache-size = <0x20000>; // L2, 128 KB
146149
};
147150

148151
ebi: ebi@10000000 {

0 commit comments

Comments
 (0)