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@
This commit is contained in:
Andreas Tobler 2020-06-09 20:27:35 +00:00
parent 36ba4b393f
commit c76b8bda0b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=361985

View File

@ -133,6 +133,8 @@ fix_fdt_interrupt_data(void)
gpcnode = OF_finddevice("/soc/aips-bus@02000000/gpc@020dc000");
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,
@ -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"));
}