Author: gonzo
Date: Tue Nov  3 04:50:58 2015
New Revision: 290321
URL: https://svnweb.freebsd.org/changeset/base/290321

Log:
  Raspberry Pi firmware passes cache line size as a DTB parameter
  
  - Add cache-line-size paramter to vchiq node
  - Add cache_line_size DTB parameter referencing to
      .../vchiq/cache-line-size property

Modified:
  head/sys/boot/fdt/dts/arm/bcm2835.dtsi
  head/sys/boot/fdt/dts/arm/bcm2836.dtsi
  head/sys/boot/fdt/dts/arm/rpi.dts
  head/sys/boot/fdt/dts/arm/rpi2.dts

Modified: head/sys/boot/fdt/dts/arm/bcm2835.dtsi
==============================================================================
--- head/sys/boot/fdt/dts/arm/bcm2835.dtsi      Tue Nov  3 03:29:35 2015        
(r290320)
+++ head/sys/boot/fdt/dts/arm/bcm2835.dtsi      Tue Nov  3 04:50:58 2015        
(r290321)
@@ -474,11 +474,12 @@
                        reg-shift = <2>;
                };
 
-               vchiq {
+               vchiq: vchiq {
                        compatible = "broadcom,bcm2835-vchiq";
                        reg = <0xB800 0x50>;
                        interrupts = <2>;
                        interrupt-parent = <&intc>;
+                       cache-line-size = <32>;
                };
 
                usb {

Modified: head/sys/boot/fdt/dts/arm/bcm2836.dtsi
==============================================================================
--- head/sys/boot/fdt/dts/arm/bcm2836.dtsi      Tue Nov  3 03:29:35 2015        
(r290320)
+++ head/sys/boot/fdt/dts/arm/bcm2836.dtsi      Tue Nov  3 04:50:58 2015        
(r290321)
@@ -456,11 +456,12 @@
                        reg-shift = <2>;
                };
 
-               vchiq {
+               vchiq: vchiq {
                        compatible = "broadcom,bcm2835-vchiq";
                        reg = <0xB800 0x50>;
                        interrupts = <2>;
                        interrupt-parent = <&intc>;
+                       cache-line-size = <32>;
                };
 
                usb {

Modified: head/sys/boot/fdt/dts/arm/rpi.dts
==============================================================================
--- head/sys/boot/fdt/dts/arm/rpi.dts   Tue Nov  3 03:29:35 2015        
(r290320)
+++ head/sys/boot/fdt/dts/arm/rpi.dts   Tue Nov  3 04:50:58 2015        
(r290321)
@@ -389,4 +389,7 @@
                stdout = "uart0";
        };
 
+       __overrides__ {
+               cache_line_size  = <&vchiq>, "cache-line-size:0";
+       };
 };

Modified: head/sys/boot/fdt/dts/arm/rpi2.dts
==============================================================================
--- head/sys/boot/fdt/dts/arm/rpi2.dts  Tue Nov  3 03:29:35 2015        
(r290320)
+++ head/sys/boot/fdt/dts/arm/rpi2.dts  Tue Nov  3 04:50:58 2015        
(r290321)
@@ -400,4 +400,7 @@
                stdout = "uart0";
        };
 
+       __overrides__ {
+               cache_line_size  = <&vchiq>, "cache-line-size:0";
+       };
 };
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to