linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] powerpc/85xx: add nor flash partitions for mpc8569mds
@ 2009-05-27  2:05 Kevin Hao
  2009-06-11  2:20 ` Kumar Gala
  2009-06-11 14:06 ` Kumar Gala
  0 siblings, 2 replies; 4+ messages in thread
From: Kevin Hao @ 2009-05-27  2:05 UTC (permalink / raw)
  To: linuxppc-dev; +Cc: Haiying Wang

Add 4 partitions in nor flash. Also fix nor flash
bank width bug.

Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
---
 arch/powerpc/boot/dts/mpc8569mds.dts |   24 +++++++++++++++++++++++-
 1 files changed, 23 insertions(+), 1 deletions(-)

diff --git a/arch/powerpc/boot/dts/mpc8569mds.dts b/arch/powerpc/boot/dts/mpc8569mds.dts
index 39c2927..1f98990 100644
--- a/arch/powerpc/boot/dts/mpc8569mds.dts
+++ b/arch/powerpc/boot/dts/mpc8569mds.dts
@@ -70,8 +70,30 @@
 			#size-cells = <1>;
 			compatible = "cfi-flash";
 			reg = <0x0 0x0 0x02000000>;
-			bank-width = <2>;
+			bank-width = <1>;
 			device-width = <1>;
+			partition@0 {
+				label = "ramdisk";
+				reg = <0x00000000 0x01c00000>;
+			};
+			partition@1c00000 {
+				label = "kernel";
+				reg = <0x01c00000 0x002e0000>;
+			};
+			partiton@1ee0000 {
+				label = "dtb";
+				reg = <0x01ee0000 0x00020000>;
+			};
+			partition@1f00000 {
+				label = "firmware";
+				reg = <0x01f00000 0x00080000>;
+				read-only;
+			};
+			partition@1f80000 {
+				label = "u-boot";
+				reg = <0x01f80000 0x00080000>;
+				read-only;
+			};
 		};
 
 		bcsr@1,0 {
-- 
1.6.0.4.771.gef3b3

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] powerpc/85xx: add nor flash partitions for mpc8569mds
  2009-05-27  2:05 [PATCH] powerpc/85xx: add nor flash partitions for mpc8569mds Kevin Hao
@ 2009-06-11  2:20 ` Kumar Gala
  2009-06-11 10:27   ` Kevin Hao
  2009-06-11 14:06 ` Kumar Gala
  1 sibling, 1 reply; 4+ messages in thread
From: Kumar Gala @ 2009-06-11  2:20 UTC (permalink / raw)
  To: Kevin Hao; +Cc: linuxppc-dev, Haiying Wang


On May 26, 2009, at 9:05 PM, Kevin Hao wrote:

> Add 4 partitions in nor flash. Also fix nor flash
> bank width bug.

Can you explain this.. I'm trying to understand why you set the bank- 
width to 1

- k

>
>
> Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
> ---
> arch/powerpc/boot/dts/mpc8569mds.dts |   24 +++++++++++++++++++++++-
> 1 files changed, 23 insertions(+), 1 deletions(-)
>
> diff --git a/arch/powerpc/boot/dts/mpc8569mds.dts b/arch/powerpc/ 
> boot/dts/mpc8569mds.dts
> index 39c2927..1f98990 100644
> --- a/arch/powerpc/boot/dts/mpc8569mds.dts
> +++ b/arch/powerpc/boot/dts/mpc8569mds.dts
> @@ -70,8 +70,30 @@
> 			#size-cells = <1>;
> 			compatible = "cfi-flash";
> 			reg = <0x0 0x0 0x02000000>;
> -			bank-width = <2>;
> +			bank-width = <1>;
> 			device-width = <1>;
> +			partition@0 {
> +				label = "ramdisk";
> +				reg = <0x00000000 0x01c00000>;
> +			};
> +			partition@1c00000 {
> +				label = "kernel";
> +				reg = <0x01c00000 0x002e0000>;
> +			};
> +			partiton@1ee0000 {
> +				label = "dtb";
> +				reg = <0x01ee0000 0x00020000>;
> +			};
> +			partition@1f00000 {
> +				label = "firmware";
> +				reg = <0x01f00000 0x00080000>;
> +				read-only;
> +			};
> +			partition@1f80000 {
> +				label = "u-boot";
> +				reg = <0x01f80000 0x00080000>;
> +				read-only;
> +			};
> 		};
>
> 		bcsr@1,0 {
> -- 
> 1.6.0.4.771.gef3b3

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] powerpc/85xx: add nor flash partitions for mpc8569mds
  2009-06-11  2:20 ` Kumar Gala
@ 2009-06-11 10:27   ` Kevin Hao
  0 siblings, 0 replies; 4+ messages in thread
From: Kevin Hao @ 2009-06-11 10:27 UTC (permalink / raw)
  To: Kumar Gala; +Cc: linuxppc-dev, Haiying Wang

On Wed, 2009-06-10 at 21:20 -0500, Kumar Gala wrote:
> On May 26, 2009, at 9:05 PM, Kevin Hao wrote:
> 
> > Add 4 partitions in nor flash. Also fix nor flash
> > bank width bug.
> 
> Can you explain this.. I'm trying to understand why you set the bank- 
> width to 1

The NOR flash (S29GL256N) works in 8-bit mode. And it's also not
interleaved. So the bank-width should be equal to device-width. If we
set bank-width to 2 the flash can not work correctly.

Thanks,
Kevin

> 
> - k
> 
> >
> >
> > Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
> > ---
> > arch/powerpc/boot/dts/mpc8569mds.dts |   24 +++++++++++++++++++++++-
> > 1 files changed, 23 insertions(+), 1 deletions(-)
> >
> > diff --git a/arch/powerpc/boot/dts/mpc8569mds.dts b/arch/powerpc/ 
> > boot/dts/mpc8569mds.dts
> > index 39c2927..1f98990 100644
> > --- a/arch/powerpc/boot/dts/mpc8569mds.dts
> > +++ b/arch/powerpc/boot/dts/mpc8569mds.dts
> > @@ -70,8 +70,30 @@
> > 			#size-cells = <1>;
> > 			compatible = "cfi-flash";
> > 			reg = <0x0 0x0 0x02000000>;
> > -			bank-width = <2>;
> > +			bank-width = <1>;
> > 			device-width = <1>;
> > +			partition@0 {
> > +				label = "ramdisk";
> > +				reg = <0x00000000 0x01c00000>;
> > +			};
> > +			partition@1c00000 {
> > +				label = "kernel";
> > +				reg = <0x01c00000 0x002e0000>;
> > +			};
> > +			partiton@1ee0000 {
> > +				label = "dtb";
> > +				reg = <0x01ee0000 0x00020000>;
> > +			};
> > +			partition@1f00000 {
> > +				label = "firmware";
> > +				reg = <0x01f00000 0x00080000>;
> > +				read-only;
> > +			};
> > +			partition@1f80000 {
> > +				label = "u-boot";
> > +				reg = <0x01f80000 0x00080000>;
> > +				read-only;
> > +			};
> > 		};
> >
> > 		bcsr@1,0 {
> > -- 
> > 1.6.0.4.771.gef3b3
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] powerpc/85xx: add nor flash partitions for mpc8569mds
  2009-05-27  2:05 [PATCH] powerpc/85xx: add nor flash partitions for mpc8569mds Kevin Hao
  2009-06-11  2:20 ` Kumar Gala
@ 2009-06-11 14:06 ` Kumar Gala
  1 sibling, 0 replies; 4+ messages in thread
From: Kumar Gala @ 2009-06-11 14:06 UTC (permalink / raw)
  To: Kevin Hao; +Cc: linuxppc-dev, Haiying Wang


On May 26, 2009, at 9:05 PM, Kevin Hao wrote:

> Add 4 partitions in nor flash. Also fix nor flash
> bank width bug.
>
> Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
> ---
> arch/powerpc/boot/dts/mpc8569mds.dts |   24 +++++++++++++++++++++++-
> 1 files changed, 23 insertions(+), 1 deletions(-)

applied to next

- k

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-06-11 14:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-27  2:05 [PATCH] powerpc/85xx: add nor flash partitions for mpc8569mds Kevin Hao
2009-06-11  2:20 ` Kumar Gala
2009-06-11 10:27   ` Kevin Hao
2009-06-11 14:06 ` Kumar Gala

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).