Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Grant Likely <grant.likely@secretlab.ca>

+4
+4
arch/powerpc/boot/cuboot-52xx.c
··· 37 37 * this can do a simple path lookup. 38 38 */ 39 39 soc = find_node_by_devtype(NULL, "soc"); 40 + if (!soc) 41 + soc = find_node_by_compatible(NULL, "fsl,mpc5200-immr"); 42 + if (!soc) 43 + soc = find_node_by_compatible(NULL, "fsl,mpc5200b-immr"); 40 44 if (soc) { 41 45 setprop(soc, "bus-frequency", &bd.bi_ipbfreq, 42 46 sizeof(bd.bi_ipbfreq));