Lines Matching +full:zynqmp +full:- +full:nand +full:- +full:controller

4  * (C) Copyright 2000-2006
7 * SPDX-License-Identifier: GPL-2.0+
31 #include <u-boot/md5.h>
32 #include <u-boot/sha1.h>
48 #include <u-boot/md5.h>
57 #include <u-boot/crc.h>
89 { IH_ARCH_RISCV, "riscv", "RISC-V", },
90 { -1, "", "", },
95 { IH_OS_OP_TEE, "op-tee", "OP-TEE" },
96 { IH_OS_ARM_TRUSTED_FIRMWARE, "arm-trusted-firmware", "ARM Trusted Firmware" },
105 { IH_OS_U_BOOT, "u-boot", "U-Boot", },
130 { -1, "", "", },
144 { IH_TYPE_MULTI, "multi", "Multi-File Image", },
153 { IH_TYPE_ATMELIMAGE, "atmelimage", "ATMEL ROM-Boot Image",},
161 { IH_TYPE_ZYNQMPIMAGE, "zynqmpimage", "Xilinx ZynqMP Boot Image" },
165 { IH_TYPE_PMMC, "pmmc", "TI Power Management Micro-Controller Firmware",},
166 { IH_TYPE_RKNAND, "rknand", "Rockchip NAND Boot Image" },
167 { -1, "", "", },
177 { -1, "", "", },
200 uint32_t load = uimage_to_cpu(hdr->ih_load); in image_get_load()
208 uint32_t ep = uimage_to_cpu(hdr->ih_ep); in image_get_ep()
222 /* Copy header so we can blank CRC field for re-calculation */ in image_check_hcrc()
241 * image_multi_count - get component (sub-image) count
270 * image_multi_getimg - get component data address and size
310 /* add up i-th component size, rounding up to 4 bytes */ in image_multi_getimg()
314 /* calculate idx-th component data address */ in image_multi_getimg()
335 * image_print_contents - prints out the contents of the legacy format image
388 image_get_load(hdr) - image_get_header_size(), in image_print_contents()
390 - 0x1FE0); in image_print_contents()
398 * image_get_ramdisk - get and verify ramdisk image
459 /* Shared dual-format routines */
493 return gd->bd->bi_dram[0].start; in env_get_bootm_low()
510 start = gd->bd->bi_dram[0].start; in env_get_bootm_size()
511 size = gd->bd->bi_dram[0].size; in env_get_bootm_size()
513 start = gd->bd->bi_memstart; in env_get_bootm_size()
514 size = gd->bd->bi_memsize; in env_get_bootm_size()
523 return size - (tmp - start); in env_get_bootm_size()
556 to -= tail; in memmove_wd()
557 from -= tail; in memmove_wd()
564 len -= tail; in memmove_wd()
591 printf("%4d-%02d-%02d %2d:%02d:%02d UTC\n", in genimg_print_time()
602 for (; table->id >= 0; ++table) { in get_table_entry()
603 if (table->id == id) in get_table_entry()
616 sizeof(msg) - sizeof(unknown_str)); in unknown_msg()
622 * get_cat_table_entry_name - translate entry id to long name
639 return entry->lname; in genimg_get_cat_name()
641 return entry->lname + gd->reloc_off; in genimg_get_cat_name()
646 * get_cat_table_entry_short_name - translate entry id to short name
663 return entry->sname; in genimg_get_cat_short_name()
665 return entry->sname + gd->reloc_off; in genimg_get_cat_short_name()
680 * get_table_entry_name - translate entry id to long name
699 return table->lname; in get_table_entry_name()
701 return table->lname + gd->reloc_off; in get_table_entry_name()
727 return table->sname; in genimg_get_short_name()
729 return table->sname + gd->reloc_off; in genimg_get_short_name()
760 * get_table_entry_id - translate short entry name to id
771 * -1 otherwise
778 for (t = table; t->id >= 0; ++t) { in get_table_entry_id()
780 if (t->sname && strcasecmp(t->sname + gd->reloc_off, name) == 0) in get_table_entry_id()
782 if (t->sname && strcasecmp(t->sname, name) == 0) in get_table_entry_id()
784 return (t->id); in get_table_entry_id()
788 return -1; in get_table_entry_id()
813 * genimg_get_kernel_addr_fit - get the real kernel address and return 2
871 * genimg_get_format - get image format type
906 * fit_has_config - check if there is a valid FIT configuration
919 if (images->fit_uname_cfg) in genimg_has_config()
926 * boot_get_ramdisk - main ramdisk handling routine
936 * - multicomponent kernel/ramdisk image,
937 * - commandline provided address of decicated ramdisk image.
960 const char *fit_uname_config = images->fit_uname_cfg; in boot_get_ramdisk()
974 buf = map_sysmem(images->os.start, 0); in boot_get_ramdisk()
983 * Look for a '-' which indicates to ignore the in boot_get_ramdisk()
986 if (select && strcmp(select, "-") == 0) { in boot_get_ramdisk()
998 if (images->fit_uname_os) in boot_get_ramdisk()
999 default_addr = (ulong)images->fit_hdr_os; in boot_get_ramdisk()
1027 rd_addr = map_to_sysmem(images->fit_hdr_os); in boot_get_ramdisk()
1030 if (rd_noffset == -ENOENT) in boot_get_ramdisk()
1051 images->verify); in boot_get_ramdisk()
1073 images->fit_hdr_rd = map_sysmem(rd_addr, 0); in boot_get_ramdisk()
1074 images->fit_uname_rd = fit_uname_ramdisk; in boot_get_ramdisk()
1075 images->fit_noffset_rd = rd_noffset; in boot_get_ramdisk()
1080 android_image_get_ramdisk((void *)images->os.start, in boot_get_ramdisk()
1100 } else if (images->legacy_hdr_valid && in boot_get_ramdisk()
1101 image_check_type(&images->legacy_hdr_os_copy, in boot_get_ramdisk()
1105 * Now check if we have a legacy mult-component image, in boot_get_ramdisk()
1111 (ulong)images->legacy_hdr_os); in boot_get_ramdisk()
1113 image_multi_getimg(images->legacy_hdr_os, 1, &rd_data, &rd_len); in boot_get_ramdisk()
1136 * boot_ramdisk_high - relocate init ramdisk
1153 * 0 - success
1154 * -1 - failure
1180 if (!initrd_copy_to_ram) { /* zero-copy ramdisk support */ in boot_ramdisk_high()
1181 debug(" in-place initrd\n"); in boot_ramdisk_high()
1186 if (initrd_high && env_get_yesno("bootm-reloc-at")) in boot_ramdisk_high()
1197 puts("ramdisk - allocation error\n"); in boot_ramdisk_high()
1229 return -1; in boot_ramdisk_high()
1239 return -ENOENT; in boot_get_setup()
1256 xilinx_desc *desc_xilinx = desc->devdesc; in boot_get_fpga()
1267 tmp_img_addr = map_to_sysmem(images->fit_hdr_os); in boot_get_fpga()
1275 conf_noffset = fit_conf_get_node(buf, images->fit_uname_cfg); in boot_get_fpga()
1286 &(images->fit_uname_cfg), in boot_get_fpga()
1301 if (img_len >= desc_xilinx->size) { in boot_get_fpga()
1343 if (fit_loadable_handler->type == img_type) in fit_loadable_process()
1345 fit_loadable_handler->handler(img_data, img_len); in fit_loadable_process()
1377 tmp_img_addr = map_to_sysmem(images->fit_hdr_os); in boot_get_loadable()
1385 conf_noffset = fit_conf_get_node(buf, images->fit_uname_cfg); in boot_get_loadable()
1396 &(images->fit_uname_cfg), arch, in boot_get_loadable()
1433 * boot_get_cmdline - allocate and initialize kernel cmdline
1439 * BOOTMAPSZ + env_get_bootm_low() address. If "bootargs" U-Boot environemnt
1444 * 0 - success
1445 * -1 - failure
1456 return -1; in boot_get_cmdline()
1475 * boot_get_kbd - allocate and initialize kernel copy of board info
1481 * with the current u-boot board info data.
1484 * 0 - success
1485 * -1 - failure
1492 return -1; in boot_get_kbd()
1494 **kbd = *(gd->bd); in boot_get_kbd()
1509 ulong of_size = images->ft_len; in image_setup_linux()
1510 char **of_flat_tree = &images->ft_addr; in image_setup_linux()
1511 struct lmb *lmb = &images->lmb; in image_setup_linux()
1518 ret = boot_get_cmdline(lmb, &images->cmdline_start, in image_setup_linux()
1519 &images->cmdline_end); in image_setup_linux()