Fix test failure caused by bad handling of ramdisk
authorSimon Glass <sjg@chromium.org>
Fri, 22 Aug 2014 20:26:43 +0000 (14:26 -0600)
committerTom Rini <trini@ti.com>
Thu, 28 Aug 2014 21:18:48 +0000 (17:18 -0400)
commitfe20a81a6802bb871f4c3c46534310519c7d86d3
treeb56afb4cd56111af9dbdbf8c6bdb2029420fbeac
parent4a8ed8e24886adf47086125f81307eaa8c358437
Fix test failure caused by bad handling of ramdisk

Commit e3a5bbce broke the FIT image tests by not loading a ramdisk even if
a load address is provided in the FIT. The rationale was that a load address
of 0 should be considered to mean 'do not load'.

Add a new load operation which supports this feature, so that the ramdisk
will be loaded if a non-zero load address is provided.

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