diff mbox

[2/3] powerpc/fsl: 85xx: p2020rdb: add cache sram node

Message ID 1260257477-21942-2-git-send-email-vivek.mahajan@freescale.com (mailing list archive)
State Superseded
Delegated to: Kumar Gala
Headers show

Commit Message

Vivek Mahajan Dec. 8, 2009, 7:31 a.m. UTC
Signed-off-by: Vivek Mahajan <vivek.mahajan@freescale.com>
---
 arch/powerpc/boot/dts/p2020rdb.dts |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

Comments

Kumar Gala May 17, 2010, 6:49 p.m. UTC | #1
On Dec 8, 2009, at 1:31 AM, Vivek Mahajan wrote:

> Signed-off-by: Vivek Mahajan <vivek.mahajan@freescale.com>
> ---
> arch/powerpc/boot/dts/p2020rdb.dts |    6 ++++++
> 1 files changed, 6 insertions(+), 0 deletions(-)
> 
> diff --git a/arch/powerpc/boot/dts/p2020rdb.dts b/arch/powerpc/boot/dts/p2020rdb.dts
> index da4cb0d..8a26050 100644
> --- a/arch/powerpc/boot/dts/p2020rdb.dts
> +++ b/arch/powerpc/boot/dts/p2020rdb.dts
> @@ -583,4 +583,10 @@
> 				  0x0 0x100000>;
> 		};
> 	};
> +
> +	cache-sram@fff00000 {
> +		fsl,cache-sram-ctlr-handle = <&L2>;
> +		reg = <0 0xfff00000 0 0x10000>;
> +		compatible = "fsl,p2020-cache-sram";
> +	};
> };
> -- 
> 1.5.6.5

Sorry, we've let this sit too long:

This should be created by u-boot instead of static in the .dts.  The assumption should be the cache/SRAM is already setup this way via u-boot and its just conveying the HW config to the kernel.

In the future we should have the kernel dynamically allocate a physical address region for the SRAM (if its not already setup by u-boot).

- k
diff mbox

Patch

diff --git a/arch/powerpc/boot/dts/p2020rdb.dts b/arch/powerpc/boot/dts/p2020rdb.dts
index da4cb0d..8a26050 100644
--- a/arch/powerpc/boot/dts/p2020rdb.dts
+++ b/arch/powerpc/boot/dts/p2020rdb.dts
@@ -583,4 +583,10 @@ 
 				  0x0 0x100000>;
 		};
 	};
+
+	cache-sram@fff00000 {
+		fsl,cache-sram-ctlr-handle = <&L2>;
+		reg = <0 0xfff00000 0 0x10000>;
+		compatible = "fsl,p2020-cache-sram";
+	};
 };