]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
powerpc/52xx: Make cuImage more robust in locating immr node.
authorGrant Likely <grant.likely@secretlab.ca>
Wed, 15 Oct 2008 17:09:59 +0000 (11:09 -0600)
committerGrant Likely <grant.likely@secretlab.ca>
Wed, 15 Oct 2008 17:09:59 +0000 (11:09 -0600)
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>
arch/powerpc/boot/cuboot-52xx.c

index a8611546a656338820ffb2d83448c03954f331cb..4c42ec8687be100c879242f6a3846640f1bc8b12 100644 (file)
@@ -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));