image: Introduce fit_image_load() to load images from FITs
authorSimon Glass <sjg@chromium.org>
Thu, 16 May 2013 13:53:21 +0000 (13:53 +0000)
committerTom Rini <trini@ti.com>
Tue, 4 Jun 2013 20:06:31 +0000 (16:06 -0400)
commit782cfbb25900797651be8876e834da1d12e0c68d
tree50209ee04cde4d0f9f016789cd4a638fb7037bbe
parent2434c66da041d3c79addde0077eeccb8fceee6e1
image: Introduce fit_image_load() to load images from FITs

At present code to load an image from a FIT is duplicated in the three
places where it is needed (kernel, fdt, ramdisk).

The differences between these different code copies is fairly minor.
Create a new function in the fit code which can handle any of the
requirements of those cases.

Signed-off-by: Simon Glass <sjg@chromium.org>
common/image-fit.c
include/image.h