From: Grant Likely Date: Wed, 15 Oct 2008 17:09:59 +0000 (-0600) Subject: powerpc/52xx: Make cuImage more robust in locating immr node. X-Git-Tag: v2.6.28-rc1~58^2~28^2~2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=40847993d881050cbfa7184db33603165ba84fa1;p=linux-2.6-omap-h63xx.git 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 --- diff --git a/arch/powerpc/boot/cuboot-52xx.c b/arch/powerpc/boot/cuboot-52xx.c index a8611546a65..4c42ec8687b 100644 --- a/arch/powerpc/boot/cuboot-52xx.c +++ b/arch/powerpc/boot/cuboot-52xx.c @@ -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));