summaryrefslogtreecommitdiffstats
path: root/target/linux/ppc44x/patches/001-taishan_openwrt_flashmap.patch
blob: dc3abd72731e265064aa6ad1d5b8132fc5e6f825 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
Index: linux-2.6.24.7/arch/powerpc/boot/dts/taishan.dts
===================================================================
--- linux-2.6.24.7.orig/arch/powerpc/boot/dts/taishan.dts
+++ linux-2.6.24.7/arch/powerpc/boot/dts/taishan.dts
@@ -175,6 +175,34 @@
 				interrupt-parent = <&UIC1>;
 
 				/* TODO: Add other EBC devices */
+				nor_flash@0,0 {
+					compatible = "cfi-flash";
+					bank-width = <4>;
+					device-width = <2>;
+					reg = <0 000000 4000000>;
+					#address-cells = <1>;
+					#size-cells = <1>;
+					partition@0 {
+						label = "kernel";
+						reg = <0 200000>;
+					};
+					partition@200000 {
+						label = "rootfs";
+						reg = <200000 3c00000>;
+					};
+					partition@3e00000 {
+						label = "diagnostics";
+						reg = <3e00000 140000>;
+					};
+					partition@3f40000 {
+						label = "env";
+						reg = <3f40000 80000>;
+					};
+					partition@3fc0000 {
+						label = "u-boot";
+						reg = <3fc0000 40000>;
+					};
+				};
 			};