From patchwork Fri Dec 5 06:08:52 2008 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Roese X-Patchwork-Id: 12345 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from ozlabs.org (localhost [127.0.0.1]) by ozlabs.org (Postfix) with ESMTP id D05B1DDE21 for ; Fri, 5 Dec 2008 17:10:22 +1100 (EST) X-Original-To: linuxppc-dev@ozlabs.org Delivered-To: linuxppc-dev@ozlabs.org Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.171]) by ozlabs.org (Postfix) with ESMTP id BC828DDDCA for ; Fri, 5 Dec 2008 17:09:10 +1100 (EST) Received: from localhost.localdomain (achn-4db4bde9.pool.einsundeins.de [77.180.189.233]) by mrelayeu.kundenserver.de (node=mrelayeu8) with ESMTP (Nemesis) id 0ML31I-1L8Trz3mzt-000162; Fri, 05 Dec 2008 07:09:04 +0100 From: Stefan Roese To: linuxppc-dev@ozlabs.org Subject: [PATCH] powerpc/4xx: Add L2 cache node to AMCC Canyonlands dts file Date: Fri, 5 Dec 2008 07:08:52 +0100 Message-Id: <1228457332-523-1-git-send-email-sr@denx.de> X-Mailer: git-send-email 1.6.0.4 X-Provags-ID: V01U2FsdGVkX1/Tu5Dg40bx3/A6nWbb7QH/c059J905taG+t+a FgEE3cIPy8wzENbAcKzfkCX7d7sNn71anvEAse/KZOv8qbWo4E Ni3q1Sv8+pWBzJlPoxXZ8uX3nxneNiy X-BeenThere: linuxppc-dev@ozlabs.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@ozlabs.org Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@ozlabs.org With this patch the L2 cache is enabled on Canyonlands to increase the overall performance. There is a known cache coherency issue with the L2 cache, but this is related to the high bandwidth (HB) PLB segment where the memory address is 0x8.xxxx.xxxx (low bandwidth PLB segment is mapped to 0x0.xxxx.xxxx). Since this HB address is currently unused it is safe to enable the L2 cache. Signed-off-by: Stefan Roese --- arch/powerpc/boot/dts/canyonlands.dts | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/boot/dts/canyonlands.dts b/arch/powerpc/boot/dts/canyonlands.dts index 79fe412..0d77482 100644 --- a/arch/powerpc/boot/dts/canyonlands.dts +++ b/arch/powerpc/boot/dts/canyonlands.dts @@ -104,6 +104,16 @@ dcr-reg = <0x00c 0x002>; }; + L2C0: l2c { + compatible = "ibm,l2-cache-460ex", "ibm,l2-cache"; + dcr-reg = <0x020 0x008 /* Internal SRAM DCR's */ + 0x030 0x008>; /* L2 cache DCR's */ + cache-line-size = <32>; /* 32 bytes */ + cache-size = <262144>; /* L2, 256K */ + interrupt-parent = <&UIC1>; + interrupts = <11 1>; + }; + plb { compatible = "ibm,plb-460ex", "ibm,plb4"; #address-cells = <2>;