Date: Mon, 18 Dec 2017 20:17:54 +0000 (UTC) From: Emmanuel Vadot <manu@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r326951 - in stable/11/sys: boot/fdt/dts/arm conf modules/dtb/rpi Message-ID: <201712182017.vBIKHsp9085998@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: manu Date: Mon Dec 18 20:17:54 2017 New Revision: 326951 URL: https://svnweb.freebsd.org/changeset/base/326951 Log: MFC r312914, r322694 r312914 by imp: Honor LINKS=x y in dtb modules. We need this for compatibility links for old, FreeBSD names. r322694: RPI DTS: Add value previously set by VideoCore and DTB links Using latest U-Boot for RPI 1 or 2 the DTB loaded by the firmware is discarded. The DTB was previously patched by the firmware to contain the DMA channel mask. DTB provided by the rpi firmware or DTS in the Linux tree contain the raw value directly. Do the same for our DTS as we cannot switch to the upstream ones yet. Not having the DMA channel mask setup properly cause mmc not to be detected (and probably other problems on driver using DMA). Also, add links for rpi dtb to the name used by u-boot. This way the dtb can be loaded by ubldr using the U-Boot env variable fdtfile. Tested On: RPI B Rev2, RPI Zero, RPI 2 v1.1 RPI 2 v1.2 Thanks to Sylvain Garrigues <sylvain@sylvaingarrigues.com> for the help. PR: 218344 Modified: stable/11/sys/boot/fdt/dts/arm/bcm2835.dtsi stable/11/sys/boot/fdt/dts/arm/bcm2836.dtsi stable/11/sys/conf/dtb.mk stable/11/sys/modules/dtb/rpi/Makefile Directory Properties: stable/11/ (props changed) Modified: stable/11/sys/boot/fdt/dts/arm/bcm2835.dtsi ============================================================================== --- stable/11/sys/boot/fdt/dts/arm/bcm2835.dtsi Mon Dec 18 20:12:43 2017 (r326950) +++ stable/11/sys/boot/fdt/dts/arm/bcm2835.dtsi Mon Dec 18 20:17:54 2017 (r326951) @@ -431,7 +431,7 @@ interrupts = <24 25 26 27 28 29 30 31 32 33 34 35 36>; interrupt-parent = <&intc>; - broadcom,channels = <0>; /* Set by VideoCore */ + broadcom,channels = <0x7f35>; }; vc_mbox: mbox { Modified: stable/11/sys/boot/fdt/dts/arm/bcm2836.dtsi ============================================================================== --- stable/11/sys/boot/fdt/dts/arm/bcm2836.dtsi Mon Dec 18 20:12:43 2017 (r326950) +++ stable/11/sys/boot/fdt/dts/arm/bcm2836.dtsi Mon Dec 18 20:17:54 2017 (r326951) @@ -424,7 +424,7 @@ interrupts = <24 25 26 27 28 29 30 31 32 33 34 35 36>; interrupt-parent = <&intc>; - broadcom,channels = <0>; /* Set by VideoCore */ + broadcom,channels = <0x7f35>; }; vc_mbox: mbox { Modified: stable/11/sys/conf/dtb.mk ============================================================================== --- stable/11/sys/conf/dtb.mk Mon Dec 18 20:12:43 2017 (r326950) +++ stable/11/sys/conf/dtb.mk Mon Dec 18 20:17:54 2017 (r326951) @@ -76,3 +76,4 @@ _dtbinstall: .include <bsd.dep.mk> .include <bsd.obj.mk> +.include <bsd.links.mk> Modified: stable/11/sys/modules/dtb/rpi/Makefile ============================================================================== --- stable/11/sys/modules/dtb/rpi/Makefile Mon Dec 18 20:12:43 2017 (r326950) +++ stable/11/sys/modules/dtb/rpi/Makefile Mon Dec 18 20:17:54 2017 (r326951) @@ -2,4 +2,11 @@ # DTS files for the Raspberry Pi-B DTS=rpi.dts rpi2.dts +LINKS= \ + ${DTBDIR}/rpi.dtb ${DTBDIR}/bcm2835-rpi-b.dtb \ + ${DTBDIR}/rpi.dtb ${DTBDIR}/bcm2835-rpi-b-rev2.dtb \ + ${DTBDIR}/rpi.dtb ${DTBDIR}/bcm2835-rpi-b-plus.dtb \ + ${DTBDIR}/rpi.dtb ${DTBDIR}/bcm2835-rpi-zero.dtb \ + ${DTBDIR}/rpi2.dtb ${DTBDIR}/bcm2836-rpi-2-b.dtb + .include <bsd.dtb.mk>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201712182017.vBIKHsp9085998>