summaryrefslogtreecommitdiff
path: root/board/mpc8360emds
diff options
context:
space:
mode:
authorGerald Van Baren <vanbaren@cideas.com>2007-04-06 14:19:43 -0400
committerGerald Van Baren <vanbaren@cideas.com>2007-04-06 14:19:43 -0400
commit64dbbd40c58349b64f43fd33dbb5ca0adb67d642 (patch)
treeeffa2f40e05d50b03d4dbb5422f060f3f8b217c4 /board/mpc8360emds
parent6679f9299534e488a171a9bb8f9bb891de247aab (diff)
downloadu-boot-imx-64dbbd40c58349b64f43fd33dbb5ca0adb67d642.zip
u-boot-imx-64dbbd40c58349b64f43fd33dbb5ca0adb67d642.tar.gz
u-boot-imx-64dbbd40c58349b64f43fd33dbb5ca0adb67d642.tar.bz2
Moved fdt command support code to fdt_support.c
...in preparation for improving the bootm command's handling of fdt blobs. Also cleaned up some coding sloppiness.
Diffstat (limited to 'board/mpc8360emds')
-rw-r--r--board/mpc8360emds/mpc8360emds.c16
1 files changed, 13 insertions, 3 deletions
diff --git a/board/mpc8360emds/mpc8360emds.c b/board/mpc8360emds/mpc8360emds.c
index deadb5f..5cabe47 100644
--- a/board/mpc8360emds/mpc8360emds.c
+++ b/board/mpc8360emds/mpc8360emds.c
@@ -664,19 +664,28 @@ U_BOOT_CMD(ecc, 4, 0, do_ecc,
#if (defined(CONFIG_OF_FLAT_TREE) || defined(CONFIG_OF_LIBFDT)) \
&& defined(CONFIG_OF_BOARD_SETUP)
+
+/*
+ * Prototypes of functions that we use.
+ */
+void ft_cpu_setup(void *blob, bd_t *bd);
+
+#ifdef CONFIG_PCI
+void ft_pci_setup(void *blob, bd_t *bd);
+#endif
+
void
ft_board_setup(void *blob, bd_t *bd)
{
#if defined(CONFIG_OF_LIBFDT)
int nodeoffset;
- int err;
int tmp[2];
nodeoffset = fdt_path_offset (fdt, "/memory");
if (nodeoffset >= 0) {
tmp[0] = cpu_to_be32(bd->bi_memstart);
tmp[1] = cpu_to_be32(bd->bi_memsize);
- err = fdt_setprop(fdt, nodeoffset, "reg", tmp, sizeof(tmp));
+ fdt_setprop(fdt, nodeoffset, "reg", tmp, sizeof(tmp));
}
#else
u32 *p;
@@ -694,4 +703,5 @@ ft_board_setup(void *blob, bd_t *bd)
#endif
ft_cpu_setup(blob, bd);
}
-#endif
+#endif /* CONFIG_OF_x */
+