Skip to content

Commit

Permalink
powerpc/52xx: Make cuImage more robust in locating immr node.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Grant Likely committed Oct 15, 2008
1 parent 6dc6472 commit 4084799
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/powerpc/boot/cuboot-52xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 4084799

Please sign in to comment.