From: Simon Horman <horms+renesas@verge.net.au> To: linux-arm-kernel@lists.infradead.org Subject: [PATCH] ARM: shmobile: r8a7779: Add L2 cache-controller node Date: Wed, 25 Nov 2015 01:58:03 +0000 [thread overview] Message-ID: <1448416683-1411-1-git-send-email-horms+renesas@verge.net.au> (raw) Add the missing L2 cache-controller node, and link the CPU nodes to it. The L2 cache is an ARM L2C-310 (r3p2), of size 1 MB (64 KiB x 16 ways). Based on work for the r8a7740 by Geert Uytterhoeven. Cc: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- * About the r8a7778 (M1A) My reading of the documentation is that although a pl310 L2 cache controller is present it is not available for use as there is no L2 cache memory present. For this reason I do not intend to follow up with a similar patch for the r8a7798. * Lightly tested against renesas-devel-20151124-v4.4-rc2 --- arch/arm/boot/dts/r8a7779.dtsi | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/arch/arm/boot/dts/r8a7779.dtsi b/arch/arm/boot/dts/r8a7779.dtsi index 6afa909865b5..f27fa2db16ee 100644 --- a/arch/arm/boot/dts/r8a7779.dtsi +++ b/arch/arm/boot/dts/r8a7779.dtsi @@ -28,24 +28,28 @@ compatible = "arm,cortex-a9"; reg = <0>; clock-frequency = <1000000000>; + next-level-cache = <&L2>; }; cpu@1 { device_type = "cpu"; compatible = "arm,cortex-a9"; reg = <1>; clock-frequency = <1000000000>; + next-level-cache = <&L2>; }; cpu@2 { device_type = "cpu"; compatible = "arm,cortex-a9"; reg = <2>; clock-frequency = <1000000000>; + next-level-cache = <&L2>; }; cpu@3 { device_type = "cpu"; compatible = "arm,cortex-a9"; reg = <3>; clock-frequency = <1000000000>; + next-level-cache = <&L2>; }; }; @@ -63,6 +67,17 @@ <0xf0000100 0x100>; }; + L2: cache-controller { + compatible = "arm,pl310-cache"; + reg = <0xf0100000 0x1000>; + interrupts = <0 122 IRQ_TYPE_LEVEL_HIGH>; + arm,data-latency = <3 3 3>; + arm,tag-latency = <2 2 2>; + arm,shared-override; + cache-unified; + cache-level = <2>; + }; + timer@f0000600 { compatible = "arm,cortex-a9-twd-timer"; reg = <0xf0000600 0x20>; -- 2.1.4
WARNING: multiple messages have this Message-ID (diff)
From: horms+renesas@verge.net.au (Simon Horman) To: linux-arm-kernel@lists.infradead.org Subject: [PATCH] ARM: shmobile: r8a7779: Add L2 cache-controller node Date: Wed, 25 Nov 2015 10:58:03 +0900 [thread overview] Message-ID: <1448416683-1411-1-git-send-email-horms+renesas@verge.net.au> (raw) Add the missing L2 cache-controller node, and link the CPU nodes to it. The L2 cache is an ARM L2C-310 (r3p2), of size 1 MB (64 KiB x 16 ways). Based on work for the r8a7740 by Geert Uytterhoeven. Cc: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Simon Horman <horms+renesas@verge.net.au> --- * About the r8a7778 (M1A) My reading of the documentation is that although a pl310 L2 cache controller is present it is not available for use as there is no L2 cache memory present. For this reason I do not intend to follow up with a similar patch for the r8a7798. * Lightly tested against renesas-devel-20151124-v4.4-rc2 --- arch/arm/boot/dts/r8a7779.dtsi | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/arch/arm/boot/dts/r8a7779.dtsi b/arch/arm/boot/dts/r8a7779.dtsi index 6afa909865b5..f27fa2db16ee 100644 --- a/arch/arm/boot/dts/r8a7779.dtsi +++ b/arch/arm/boot/dts/r8a7779.dtsi @@ -28,24 +28,28 @@ compatible = "arm,cortex-a9"; reg = <0>; clock-frequency = <1000000000>; + next-level-cache = <&L2>; }; cpu at 1 { device_type = "cpu"; compatible = "arm,cortex-a9"; reg = <1>; clock-frequency = <1000000000>; + next-level-cache = <&L2>; }; cpu at 2 { device_type = "cpu"; compatible = "arm,cortex-a9"; reg = <2>; clock-frequency = <1000000000>; + next-level-cache = <&L2>; }; cpu at 3 { device_type = "cpu"; compatible = "arm,cortex-a9"; reg = <3>; clock-frequency = <1000000000>; + next-level-cache = <&L2>; }; }; @@ -63,6 +67,17 @@ <0xf0000100 0x100>; }; + L2: cache-controller { + compatible = "arm,pl310-cache"; + reg = <0xf0100000 0x1000>; + interrupts = <0 122 IRQ_TYPE_LEVEL_HIGH>; + arm,data-latency = <3 3 3>; + arm,tag-latency = <2 2 2>; + arm,shared-override; + cache-unified; + cache-level = <2>; + }; + timer at f0000600 { compatible = "arm,cortex-a9-twd-timer"; reg = <0xf0000600 0x20>; -- 2.1.4
next reply other threads:[~2015-11-25 1:58 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2015-11-25 1:58 Simon Horman [this message] 2015-11-25 1:58 ` [PATCH] ARM: shmobile: r8a7779: Add L2 cache-controller node Simon Horman 2015-11-25 8:41 ` Geert Uytterhoeven 2015-11-25 8:41 ` Geert Uytterhoeven 2015-11-26 4:09 ` Simon Horman 2015-11-26 4:09 ` Simon Horman
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1448416683-1411-1-git-send-email-horms+renesas@verge.net.au \ --to=horms+renesas@verge.net.au \ --cc=linux-arm-kernel@lists.infradead.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.