diff options
author | Simon Glass <sjg@chromium.org> | 2013-05-08 08:06:01 +0000 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2013-05-14 15:37:25 -0400 |
commit | 13d06981a9829c9edcfd6f9f582d216fbaed95e5 (patch) | |
tree | 1e5df63856d117bc14acb5f669ac0dc405e91f06 /include/common.h | |
parent | 44d3a3066bc789b9a640e71322e593a9983023bb (diff) | |
download | u-boot-imx-13d06981a9829c9edcfd6f9f582d216fbaed95e5.zip u-boot-imx-13d06981a9829c9edcfd6f9f582d216fbaed95e5.tar.gz u-boot-imx-13d06981a9829c9edcfd6f9f582d216fbaed95e5.tar.bz2 |
image: Add device tree setup to image library
This seems to be a common function for several architectures, so create
a common function rather than duplicating the code in each arch.
Also make an attempt to avoid introducing #ifdefs in the new code, partly
by removing useless #ifdefs around function declarations in the image.h
header.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/common.h')
-rw-r--r-- | include/common.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/common.h b/include/common.h index 40e4b07..2d645c2 100644 --- a/include/common.h +++ b/include/common.h @@ -340,6 +340,16 @@ int update_flash_size(int flash_size); */ void board_show_dram(ulong size); +/** + * arch_fixup_memory_node() - Write arch-specific memory information to fdt + * + * Defined in arch/$(ARCH)/lib/bootm.c + * + * @blob: FDT blob to write to + * @return 0 if ok, or -ve FDT_ERR_... on failure + */ +int arch_fixup_memory_node(void *blob); + /* common/flash.c */ void flash_perror (int); |