Skip to contentSkip to conversation

powerpc/83xx: mpc836x_mds: add support for the nor flash

PATCH Applied Anton Vorontsov 2 participants 2 messages Aug 14, 2008 – Aug 21, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc/83xx: mpc836x_mds: add support for the nor flash

This patch adds the localbus node, moves the bcsr node into the localbus node, and adds the flash node.

Also enable MTD support in the defconfig.

---
 arch/powerpc/boot/dts/mpc836x_mds.dts           |   23 ++++++-
 arch/powerpc/configs/83xx/mpc836x_mds_defconfig |   79 ++++++++++++++++++++++-
 2 files changed, 98 insertions(+), 4 deletions(-)
arch/powerpc/boot/dts/mpc836x_mds.dts +20 -3
index a3b76a7..ada8446 100644
@@ -52,9 +52,26 @@
 		reg = <0x00000000 0x10000000>;
 	};
 
-	bcsr@f8000000 {
-		device_type = "board-control";
-		reg = <0xf8000000 0x8000>;
+	localbus@e0005000 {
+		#address-cells = <2>;
+		#size-cells = <1>;
+		compatible = "fsl,mpc8360-localbus", "fsl,pq2pro-localbus",
+			     "simple-bus";
+		reg = <0xe0005000 0xd8>;
+		ranges = <0 0 0xfe000000 0x02000000
+		          1 0 0xf8000000 0x00008000>;
+
+		flash@0,0 {
+			compatible = "cfi-flash";
+			reg = <0 0 0x2000000>;
+			bank-width = <2>;
+			device-width = <1>;
+		};
+
+		bcsr@1,0 {
+			device_type = "board-control";
+			reg = <1 0 0x8000>;
+		};
 	};
 
 	soc8360@e0000000 {
arch/powerpc/configs/83xx/mpc836x_mds_defconfig +78 -1

85 lines not on this page · raw message

Signature · 1 line
1.5.6.3
Applied
#1 lore raw
Quoted 11 lines · Anton Vorontsov

This patch adds the localbus node, moves the bcsr node into the localbus node, and adds the flash node.

Also enable MTD support in the defconfig.

---

arch/powerpc/boot/dts/mpc836x_mds.dts           |   23 ++++++-
arch/powerpc/configs/83xx/mpc836x_mds_defconfig |   79 ++++++++++++++ 
++++++++-
2 files changed, 98 insertions(+), 4 deletions(-)

applied to powerpc-next.

- k