Skip to contentSkip to conversation

powerpc/85xx: add nor flash partitions for mpc8569mds

PATCH Applied Kevin Hao 2 participants 4 messages May 27, 2009 – Jun 11, 2009

Subsystems (2)
lore
Share & tools
lore

Kevin Hao

author
#0 lore raw

PATCH 1/1 powerpc/85xx: add nor flash partitions for mpc8569mds

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

---
 arch/powerpc/boot/dts/mpc8569mds.dts |   24 +++++++++++++++++++++++-
 1 files changed, 23 insertions(+), 1 deletions(-)
arch/powerpc/boot/dts/mpc8569mds.dts +23 -1
index 39c2927..1f98990 100644
@@ -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 {
Signature · 1 line
1.6.0.4.771.gef3b3
#1 lore raw
Quoted 2 lines · Kevin Hao

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

Quoted 45 lines

---
arch/powerpc/boot/dts/mpc8569mds.dts | 24 +++++++++++++++++++++++-

1 files changed, 23 insertions(+), 1 deletions(-)
arch/powerpc/boot/dts/mpc8569mds.dts +23 -1
index 39c2927..1f98990 100644
@@ -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 {
Signature · 1 line
1.6.0.4.771.gef3b3
author
#2 lore raw
Quoted 7 lines · Kumar Gala
Quoted 2 lines · Kevin Hao

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

Quoted 50 lines

- k

Quoted 46 lines

---
arch/powerpc/boot/dts/mpc8569mds.dts | 24 +++++++++++++++++++++++-

1 files changed, 23 insertions(+), 1 deletions(-)
arch/powerpc/ renamed from arch/powerpc/boot/dts/mpc8569mds.dts +0 -0

boot/dts/mpc8569mds.dts
index 39c2927..1f98990 100644

arch/powerpc/boot/dts/mpc8569mds.dts +23 -1
@@ -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 {
Signature · 1 line
1.6.0.4.771.gef3b3