Lines Matching refs:fit
29 static int spl_fit_get_image_name(const void *fit, int images, in spl_fit_get_image_name() argument
38 conf_node = fit_find_config_node(fit); in spl_fit_get_image_name()
42 for (node = fdt_first_subnode(fit, conf_node); in spl_fit_get_image_name()
44 node = fdt_next_subnode(fit, node)) { in spl_fit_get_image_name()
45 name = fdt_getprop(fit, node, "description", &len); in spl_fit_get_image_name()
52 name = fdt_getprop(fit, conf_node, type, &len); in spl_fit_get_image_name()
83 static int spl_fit_get_image_node(const void *fit, int images, in spl_fit_get_image_node() argument
90 err = spl_fit_get_image_name(fit, images, type, index, &str); in spl_fit_get_image_node()
96 node = fdt_subnode_offset(fit, images, str); in spl_fit_get_image_node()
169 void *fit, ulong base_offset, int node, in spl_load_fit_image() argument
189 if (fit_image_get_comp(fit, node, &image_comp)) in spl_load_fit_image()
194 if (fit_image_get_type(fit, node, &type)) in spl_load_fit_image()
200 if (fit_image_get_load(fit, node, &load_addr)) in spl_load_fit_image()
203 if (!fit_image_get_data_position(fit, node, &offset)) { in spl_load_fit_image()
205 } else if (!fit_image_get_data_offset(fit, node, &offset)) { in spl_load_fit_image()
212 if (fit_image_get_data_size(fit, node, &len)) in spl_load_fit_image()
238 if (fit_image_get_data(fit, node, &data, &length)) { in spl_load_fit_image()
269 image_info->entry_point = fdt_getprop_u32(fit, node, "entry"); in spl_load_fit_image()
274 fit_get_name(fit, node, NULL)); in spl_load_fit_image()
275 ret = fit_image_verify_with_data(fit, node, in spl_load_fit_image()
286 void *fit, int images, ulong base_offset) in spl_fit_append_fdt() argument
292 node = spl_fit_get_image_node(fit, images, FIT_FDT_PROP, 0); in spl_fit_append_fdt()
303 ret = spl_load_fit_image(info, sector, fit, base_offset, node, in spl_fit_append_fdt()
319 static int spl_fit_record_loadable(const void *fit, int images, int index, in spl_fit_record_loadable() argument
327 ret = spl_fit_get_image_name(fit, images, "loadables", in spl_fit_record_loadable()
332 node = spl_fit_get_image_node(fit, images, "loadables", index); in spl_fit_record_loadable()
336 fdt_getprop(fit, node, "type", NULL), in spl_fit_record_loadable()
337 fdt_getprop(fit, node, "os", NULL)); in spl_fit_record_loadable()
342 static int spl_fit_image_get_os(const void *fit, int noffset, uint8_t *os) in spl_fit_image_get_os() argument
347 return fit_image_get_os(fit, noffset, os); in spl_fit_image_get_os()
352 struct spl_load_info *info, ulong sector, void *fit) in spl_load_simple_fit() argument
368 size = fdt_totalsize(fit); in spl_load_simple_fit()
389 fit = (void *)((CONFIG_SYS_TEXT_BASE - size - info->bl_len - in spl_load_simple_fit()
392 count = info->read(info, sector, sectors, fit); in spl_load_simple_fit()
394 sector, sectors, fit, count); in spl_load_simple_fit()
399 images = fdt_path_offset(fit, FIT_IMAGES_PATH); in spl_load_simple_fit()
406 node = spl_fit_get_image_node(fit, images, "fpga", 0); in spl_load_simple_fit()
409 ret = spl_load_fit_image(info, sector, fit, base_offset, node, in spl_load_simple_fit()
426 node = spl_fit_get_image_node(fit, images, FIT_FIRMWARE_PROP, in spl_load_simple_fit()
430 node = spl_fit_get_image_node(fit, images, FIT_KERNEL_PROP, 0); in spl_load_simple_fit()
434 node = spl_fit_get_image_node(fit, images, "loadables", 0); in spl_load_simple_fit()
448 ret = spl_load_fit_image(info, sector, fit, base_offset, node, in spl_load_simple_fit()
457 if (!spl_fit_image_get_os(fit, node, &spl_image->os)) in spl_load_simple_fit()
469 spl_fit_append_fdt(spl_image, info, sector, fit, in spl_load_simple_fit()
476 node = spl_fit_get_image_node(fit, images, "loadables", index); in spl_load_simple_fit()
480 ret = spl_load_fit_image(info, sector, fit, base_offset, node, in spl_load_simple_fit()
485 if (!spl_fit_image_get_os(fit, node, &os_type)) in spl_load_simple_fit()
490 fit, images, base_offset); in spl_load_simple_fit()
504 spl_fit_record_loadable(fit, images, index, in spl_load_simple_fit()