Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Jun 2020 20:27:36 +0000 (UTC)
From:      Andreas Tobler <andreast@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r361985 - head/sys/arm/freescale/imx
Message-ID:  <202006092027.059KRadA044966@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: andreast
Date: Tue Jun  9 20:27:35 2020
New Revision: 361985
URL: https://svnweb.freebsd.org/changeset/base/361985

Log:
  Fix boot of wandquad after DTS update
  
  In the recent dts sync the name of the aips-bus@ changed to bus@. Reflect
  this change and add an additional OF_finddevice in fix_fdt_interrupt_data()
  and in fix_fdt_iomuxc_data() with bus@ only. Iow, keep the old naming for
  compatibility.
  
  Discussed with:	ian@

Modified:
  head/sys/arm/freescale/imx/imx6_machdep.c

Modified: head/sys/arm/freescale/imx/imx6_machdep.c
==============================================================================
--- head/sys/arm/freescale/imx/imx6_machdep.c	Tue Jun  9 20:19:11 2020	(r361984)
+++ head/sys/arm/freescale/imx/imx6_machdep.c	Tue Jun  9 20:27:35 2020	(r361985)
@@ -134,6 +134,8 @@ fix_fdt_interrupt_data(void)
 	if (gpcnode == -1)
 		gpcnode = OF_finddevice("/soc/aips-bus@2000000/gpc@20dc000");
 	if (gpcnode == -1)
+		gpcnode = OF_finddevice("/soc/bus@2000000/gpc@20dc000");
+	if (gpcnode == -1)
 		return;
 	result = OF_getencprop(gpcnode, "interrupt-parent", &gpcipar,
 	    sizeof(gpcipar));
@@ -172,6 +174,8 @@ fix_fdt_iomuxc_data(void)
 	 * uses for register access.
 	 */
 	node = OF_finddevice("/soc/aips-bus@2000000/iomuxc-gpr@20e0000");
+	if (node == -1)
+	    node = OF_finddevice("/soc/bus@2000000/iomuxc-gpr@20e0000");
 	if (node != -1)
 		OF_setprop(node, "status", "disabled", sizeof("disabled"));
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202006092027.059KRadA044966>