Lines Matching refs:spl_image

276 static int spl_fit_append_fdt(struct spl_image_info *spl_image,  in spl_fit_append_fdt()  argument
294 image_info.load_addr = spl_image->load_addr + spl_image->size; in spl_fit_append_fdt()
302 spl_image->fdt_addr = (void *)image_info.load_addr; in spl_fit_append_fdt()
305 ret = fdt_shrink_to_minimum(spl_image->fdt_addr, 8192); in spl_fit_append_fdt()
353 int spl_load_simple_fit(struct spl_image_info *spl_image, in spl_load_simple_fit() argument
419 spl_image); in spl_load_simple_fit()
426 (u32)spl_image->load_addr, spl_image->size); in spl_load_simple_fit()
428 ret = fpga_load(0, (const void *)spl_image->load_addr, in spl_load_simple_fit()
429 spl_image->size, BIT_FULL); in spl_load_simple_fit()
471 spl_image); in spl_load_simple_fit()
479 if (!spl_fit_image_get_os(fit, node, &spl_image->os)) in spl_load_simple_fit()
480 debug("Image OS is %s\n", genimg_get_os_name(spl_image->os)); in spl_load_simple_fit()
483 spl_image->os = IH_OS_U_BOOT; in spl_load_simple_fit()
490 if (spl_image->os == IH_OS_U_BOOT) in spl_load_simple_fit()
491 spl_fit_append_fdt(spl_image, info, sector, fit, in spl_load_simple_fit()
526 spl_image->fdt_addr = image_info.fdt_addr; in spl_load_simple_fit()
533 if (spl_image->entry_point == FDT_ERROR && in spl_load_simple_fit()
535 spl_image->entry_point = image_info.entry_point; in spl_load_simple_fit()
538 if (spl_image->fdt_addr) in spl_load_simple_fit()
540 spl_image->fdt_addr, in spl_load_simple_fit()
549 if (spl_image->entry_point == FDT_ERROR || spl_image->entry_point == 0) in spl_load_simple_fit()
550 spl_image->entry_point = spl_image->load_addr; in spl_load_simple_fit()
552 spl_image->flags |= SPL_FIT_FOUND; in spl_load_simple_fit()