|
|
|
@ -123,7 +123,8 @@ static int get_aligned_image_size(struct spl_load_info *info, int data_size, |
|
|
|
|
return (data_size + info->bl_len - 1) / info->bl_len; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
int spl_load_simple_fit(struct spl_load_info *info, ulong sector, void *fit) |
|
|
|
|
int spl_load_simple_fit(struct spl_image_info *spl_image, |
|
|
|
|
struct spl_load_info *info, ulong sector, void *fit) |
|
|
|
|
{ |
|
|
|
|
int sectors; |
|
|
|
|
ulong size, load; |
|
|
|
@ -184,9 +185,9 @@ int spl_load_simple_fit(struct spl_load_info *info, ulong sector, void *fit) |
|
|
|
|
data_size = fdt_getprop_u32(fit, node, "data-size"); |
|
|
|
|
load = fdt_getprop_u32(fit, node, "load"); |
|
|
|
|
debug("data_offset=%x, data_size=%x\n", data_offset, data_size); |
|
|
|
|
spl_image.load_addr = load; |
|
|
|
|
spl_image.entry_point = load; |
|
|
|
|
spl_image.os = IH_OS_U_BOOT; |
|
|
|
|
spl_image->load_addr = load; |
|
|
|
|
spl_image->entry_point = load; |
|
|
|
|
spl_image->os = IH_OS_U_BOOT; |
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* Work out where to place the image. We read it so that the first |
|
|
|
|