Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 40847993 authored by Grant Likely's avatar Grant Likely
Browse files

powerpc/52xx: Make cuImage more robust in locating immr node.



Current device trees do not have the device_type = soc property set
anymore.  Fix up the cuImage bootwrapper fragment to still find the IMMR
nodes.

Signed-off-by: default avatarGrant Likely <grant.likely@secretlab.ca>
parent 6dc64725
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -37,6 +37,10 @@ static void platform_fixups(void)
	 * this can do a simple path lookup.
	 */
	soc = find_node_by_devtype(NULL, "soc");
	if (!soc)
		soc = find_node_by_compatible(NULL, "fsl,mpc5200-immr");
	if (!soc)
		soc = find_node_by_compatible(NULL, "fsl,mpc5200b-immr");
	if (soc) {
		setprop(soc, "bus-frequency", &bd.bi_ipbfreq,
			sizeof(bd.bi_ipbfreq));