Skip to content

Commit 4101c82

Browse files
Mihai Sainclaudiubeznea
authored andcommitted
ARM: dts: microchip: sama7d65: Add cache configuration for cpu node
Describe the cache memories according with datasheet chapter 15.2: - L1 cache configuration with 32KB for both data and instruction cache. - L2 cache configuration with 256KB unified cache. Before this patch the kernel reported the warning: [ 0.161955] cacheinfo: Unable to detect cache hierarchy for CPU 0 Signed-off-by: Mihai Sain <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Claudiu Beznea <[email protected]>
1 parent 1e2e0ed commit 4101c82

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,16 @@
3232
device_type = "cpu";
3333
clocks = <&pmc PMC_TYPE_CORE PMC_CPUPLL>;
3434
clock-names = "cpu";
35+
d-cache-size = <0x8000>; // L1, 32 KB
36+
i-cache-size = <0x8000>; // L1, 32 KB
37+
next-level-cache = <&L2>;
38+
39+
L2: l2-cache {
40+
compatible = "cache";
41+
cache-level = <2>;
42+
cache-size = <0x40000>; // L2, 256 KB
43+
cache-unified;
44+
};
3545
};
3646
};
3747

0 commit comments

Comments
 (0)