summaryrefslogtreecommitdiff
path: root/board/mpc8360emds/mpc8360emds.c
diff options
context:
space:
mode:
authorKim Phillips <kim.phillips@freescale.com>2007-08-16 03:30:19 (GMT)
committerKim Phillips <kim.phillips@freescale.com>2007-08-16 03:36:33 (GMT)
commit8f9e0e9f339aee4ce31a338d5f27356eb5457f85 (patch)
treea89aae79ac44f23ca179aa71f3304d6b5130e7da /board/mpc8360emds/mpc8360emds.c
parentf4b2ac5ed9aaff9920d487bff8a59696c083a524 (diff)
downloadu-boot-fsl-qoriq-8f9e0e9f339aee4ce31a338d5f27356eb5457f85.tar.xz
mpc83xx: remaining 8360 libfdt fixes
PCI clocks and QE frequencies weren't being updated, and the core clock was being updated incorrectly. This patch also adds a /memory node if it doesn't already exist prior to update. plus some cosmetic trimming to single line comments. Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Diffstat (limited to 'board/mpc8360emds/mpc8360emds.c')
-rw-r--r--board/mpc8360emds/mpc8360emds.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/board/mpc8360emds/mpc8360emds.c b/board/mpc8360emds/mpc8360emds.c
index 3fa093d..e37d2dc 100644
--- a/board/mpc8360emds/mpc8360emds.c
+++ b/board/mpc8360emds/mpc8360emds.c
@@ -305,7 +305,15 @@ ft_board_setup(void *blob, bd_t *bd)
int tmp[2];
nodeoffset = fdt_find_node_by_path(blob, "/memory");
+ if (nodeoffset < 0) {
+ nodeoffset = fdt_add_subnode(blob, 0, "memory");
+ if (nodeoffset < 0)
+ printf("WARNING: failed to add /memory node: %s\n",
+ fdt_strerror(nodeoffset));
+ }
if (nodeoffset >= 0) {
+ fdt_setprop(blob, nodeoffset, "device_type",
+ "memory", sizeof("memory"));
tmp[0] = cpu_to_be32(bd->bi_memstart);
tmp[1] = cpu_to_be32(bd->bi_memsize);
fdt_setprop(blob, nodeoffset, "reg", tmp, sizeof(tmp));