Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Jul 2013 11:45:04 +0200
From:      Aleksander <aleek@FreeBSD.org>
To:        "freebsd-ppc@FreeBSD.org" <freebsd-ppc@freebsd.org>
Subject:   patch for p1020rdb.dts
Message-ID:  <CABkKHSZsRNZWRBZwh63nkascYBZeJ%2BFNsYA=phv2zuZaJvGipQ@mail.gmail.com>

index | next in thread | raw e-mail

[-- Attachment #1 --]
Hello!

Current p1020rdb.dts file doesn't make FreeBSD to run. I had to make couple
of changes:
- add bus-frequency property for both cores
- add map for memory
- add 'chosen' property for console


See the attachment.

-- 
regards
aleek

[-- Attachment #2 --]
diff --git a/sys/boot/fdt/dts/p1020rdb.dts b/sys/boot/fdt/dts/p1020rdb.dts
index ec5118c..c95ab27 100644
--- a/sys/boot/fdt/dts/p1020rdb.dts
+++ b/sys/boot/fdt/dts/p1020rdb.dts
@@ -59,17 +59,20 @@
 			device_type = "cpu";
 			reg = <0x0>;
 			next-level-cache = <&L2>;
+			bus-frequency = <400000000>;		// Filled out by uboot.
 		};
 
 		PowerPC,P1020@1 {
 			device_type = "cpu";
 			reg = <0x1>;
 			next-level-cache = <&L2>;
+			bus-frequency = <400000000>;		// Filled out by uboot.
 		};
 	};
 
 	memory {
 		device_type = "memory";
+		reg = < 0x0 0x0 0x0 0x20000000 >;
 	};
 
 	localbus@ffe05000 {
@@ -193,7 +196,7 @@
 		#address-cells = <1>;
 		#size-cells = <1>;
 		device_type = "soc";
-		compatible = "fsl,p1020-immr", "simple-bus";
+		compatible = "simple-bus";
 		ranges = <0x0  0x0 0xffe00000 0x100000>;
 		bus-frequency = <0>;		// Filled out by uboot.
 
@@ -624,4 +627,9 @@
 				  0x0 0x100000>;
 		};
 	};
+
+	chosen {
+		stdin = "serial0";
+		stdout= "serial0";
+	};
 };
home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CABkKHSZsRNZWRBZwh63nkascYBZeJ%2BFNsYA=phv2zuZaJvGipQ>