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>
Showing
- common/image-fdt.c 62 additions, 0 deletionscommon/image-fdt.c
- common/image.c 50 additions, 0 deletionscommon/image.c
- include/common.h 10 additions, 0 deletionsinclude/common.h
- include/fdt_support.h 0 additions, 2 deletionsinclude/fdt_support.h
- include/image.h 52 additions, 9 deletionsinclude/image.h
- include/lmb.h 0 additions, 2 deletionsinclude/lmb.h
Loading
Please register or sign in to comment