ARM: meson: DTS: enable L2 cache
authorBeniamino Galvani <b.galvani@gmail.com>
Tue, 18 Nov 2014 14:30:35 +0000 (15:30 +0100)
committerCarlo Caione <carlo@caione.org>
Tue, 18 Nov 2014 15:36:14 +0000 (16:36 +0100)
This enables the L2 cache controller available in Amlogic SoCs.

Signed-off-by: Beniamino Galvani <b.galvani@gmail.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Carlo Caione <carlo@caione.org>
arch/arm/boot/dts/meson.dtsi
arch/arm/boot/dts/meson6.dtsi
arch/arm/boot/dts/meson8.dtsi

index e6539ea..862aae4 100644 (file)
 / {
        interrupt-parent = <&gic>;
 
+       L2: l2-cache-controller@c4200000 {
+               compatible = "arm,pl310-cache";
+               reg = <0xc4200000 0x1000>;
+               cache-unified;
+               cache-level = <2>;
+       };
+
        gic: interrupt-controller@c4301000 {
                compatible = "arm,cortex-a9-gic";
                reg = <0xc4301000 0x1000>,
index 4ba4912..8b33be1 100644 (file)
                cpu@200 {
                        device_type = "cpu";
                        compatible = "arm,cortex-a9";
+                       next-level-cache = <&L2>;
                        reg = <0x200>;
                };
 
                cpu@201 {
                        device_type = "cpu";
                        compatible = "arm,cortex-a9";
+                       next-level-cache = <&L2>;
                        reg = <0x201>;
                };
        };
index 42e4026..1f442a7 100644 (file)
                cpu@200 {
                        device_type = "cpu";
                        compatible = "arm,cortex-a9";
+                       next-level-cache = <&L2>;
                        reg = <0x200>;
                };
 
                cpu@201 {
                        device_type = "cpu";
                        compatible = "arm,cortex-a9";
+                       next-level-cache = <&L2>;
                        reg = <0x201>;
                };
 
                cpu@202 {
                        device_type = "cpu";
                        compatible = "arm,cortex-a9";
+                       next-level-cache = <&L2>;
                        reg = <0x202>;
                };
 
                cpu@203 {
                        device_type = "cpu";
                        compatible = "arm,cortex-a9";
+                       next-level-cache = <&L2>;
                        reg = <0x203>;
                };
        };