mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +00:00
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>
This commit is contained in:
parent
44d3a3066b
commit
13d06981a9
6 changed files with 174 additions and 13 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue