Author: br
Date: Wed Dec 17 11:05:44 2014
New Revision: 275860
URL: https://svnweb.freebsd.org/changeset/base/275860

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

Modified:
  head/sys/boot/fdt/dts/mips/beri-netfpga.dts
  head/sys/boot/fdt/dts/mips/beri-sim.dts
  head/sys/boot/fdt/dts/mips/beripad-de4.dts

Modified: head/sys/boot/fdt/dts/mips/beri-netfpga.dts
==============================================================================
--- head/sys/boot/fdt/dts/mips/beri-netfpga.dts Wed Dec 17 10:48:53 2014        
(r275859)
+++ head/sys/boot/fdt/dts/mips/beri-netfpga.dts Wed Dec 17 11:05:44 2014        
(r275860)
@@ -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;

Modified: head/sys/boot/fdt/dts/mips/beri-sim.dts
==============================================================================
--- head/sys/boot/fdt/dts/mips/beri-sim.dts     Wed Dec 17 10:48:53 2014        
(r275859)
+++ head/sys/boot/fdt/dts/mips/beri-sim.dts     Wed Dec 17 11:05:44 2014        
(r275860)
@@ -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;

Modified: head/sys/boot/fdt/dts/mips/beripad-de4.dts
==============================================================================
--- head/sys/boot/fdt/dts/mips/beripad-de4.dts  Wed Dec 17 10:48:53 2014        
(r275859)
+++ head/sys/boot/fdt/dts/mips/beripad-de4.dts  Wed Dec 17 11:05:44 2014        
(r275860)
@@ -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;
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to