Move memory node to the root, so fdt_get_mem_regions() can find it.

This commit is contained in:
Ruslan Bukin 2014-12-17 11:05:44 +00:00
parent 28dcb50c72
commit 628920c43b
3 changed files with 15 additions and 15 deletions

View File

@ -82,6 +82,11 @@
*/
};
memory {
device_type = "memory";
reg = <0x0 0x0FFFFFFF>; // ~256M at 0x0
};
soc {
#address-cells = <1>;
#size-cells = <1>;
@ -94,11 +99,6 @@
compatible = "simple-bus", "mips,mips4k";
ranges = <>;
memory {
device_type = "memory";
reg = <0x0 0x0FFFFFFF>; // ~256M at 0x0
};
beripic: beripic@7f804000 {
compatible = "sri-cambridge,beri-pic";
interrupt-controller;

View File

@ -80,6 +80,11 @@
*/
};
memory {
device_type = "memory";
reg = <0x0 0x4000000>; // 64M at 0x0
};
soc {
#address-cells = <1>;
#size-cells = <1>;
@ -92,11 +97,6 @@
compatible = "simple-bus", "mips,mips4k";
ranges = <>;
memory {
device_type = "memory";
reg = <0x0 0x4000000>; // 64M at 0x0
};
beripic0: beripic@7f804000 {
compatible = "sri-cambridge,beri-pic";
interrupt-controller;

View File

@ -80,6 +80,11 @@
*/
};
memory {
device_type = "memory";
reg = <0x0 0x40000000>; // 1G at 0x0
};
soc {
#address-cells = <1>;
#size-cells = <1>;
@ -92,11 +97,6 @@
compatible = "simple-bus", "mips,mips4k";
ranges = <>;
memory {
device_type = "memory";
reg = <0x0 0x40000000>; // 1G at 0x0
};
beripic0: beripic@7f804000 {
compatible = "sri-cambridge,beri-pic";
interrupt-controller;