summaryrefslogtreecommitdiffstats
path: root/include/fdt_support.h
diff options
context:
space:
mode:
authorJohn Rigby <john.rigby@linaro.org>2010-10-13 13:57:33 -0600
committerWolfgang Denk <wd@denx.de>2010-10-18 22:50:53 +0200
commita6bd9e83abc811d5cade88cb5e7caf93b4f7abe1 (patch)
treeefe471dd36fc288bd91d8e62bfe9623f111f30e7 /include/fdt_support.h
parentd1263fced226c2fbe2554b260ea51a7b2ce58b33 (diff)
downloadblackbird-obmc-uboot-a6bd9e83abc811d5cade88cb5e7caf93b4f7abe1.tar.gz
blackbird-obmc-uboot-a6bd9e83abc811d5cade88cb5e7caf93b4f7abe1.zip
FDT: Add fixup support for multiple banks of memory
Add fdt_fixup_memory_banks and reimplement fdt_fixup_memory using it. Tested on OMAP3 beagle board with two banks of memory. Signed-off-by: John Rigby <john.rigby@linaro.org> CC: Jerry Van Baren <vanbaren@cideas.com> Acked-by: Gerald Van Baren <vanbaren@cideas.com>
Diffstat (limited to 'include/fdt_support.h')
-rw-r--r--include/fdt_support.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/fdt_support.h b/include/fdt_support.h
index deb5dda5c7..ce6817b6d3 100644
--- a/include/fdt_support.h
+++ b/include/fdt_support.h
@@ -48,6 +48,7 @@ void do_fixup_by_compat(void *fdt, const char *compat,
void do_fixup_by_compat_u32(void *fdt, const char *compat,
const char *prop, u32 val, int create);
int fdt_fixup_memory(void *blob, u64 start, u64 size);
+int fdt_fixup_memory_banks(void *blob, u64 start[], u64 size[], int banks);
void fdt_fixup_ethernet(void *fdt);
int fdt_find_and_setprop(void *fdt, const char *node, const char *prop,
const void *val, int len, int create);
OpenPOWER on IntegriCloud