Home
last modified time | relevance | path

Searched refs:spl_image (Results 1 – 25 of 32) sorted by relevance

12

/external/u-boot/common/spl/
Dspl.c125 void spl_set_header_raw_uboot(struct spl_image_info *spl_image) in spl_set_header_raw_uboot() argument
129 spl_image->size = CONFIG_SYS_MONITOR_LEN; in spl_set_header_raw_uboot()
138 spl_image->entry_point = u_boot_pos; in spl_set_header_raw_uboot()
139 spl_image->load_addr = u_boot_pos; in spl_set_header_raw_uboot()
141 spl_image->entry_point = CONFIG_SYS_UBOOT_START; in spl_set_header_raw_uboot()
142 spl_image->load_addr = CONFIG_SYS_TEXT_BASE; in spl_set_header_raw_uboot()
144 spl_image->os = IH_OS_U_BOOT; in spl_set_header_raw_uboot()
145 spl_image->name = "U-Boot"; in spl_set_header_raw_uboot()
150 static int spl_load_fit_image(struct spl_image_info *spl_image, in spl_load_fit_image() argument
172 spl_image->size = fw_len; in spl_load_fit_image()
[all …]
Dspl_mmc.c18 static int mmc_load_legacy(struct spl_image_info *spl_image, struct mmc *mmc, in mmc_load_legacy() argument
25 ret = spl_parse_image_header(spl_image, header); in mmc_load_legacy()
30 image_size_sectors = (spl_image->size + mmc->read_bl_len - 1) / in mmc_load_legacy()
35 (void *)(ulong)spl_image->load_addr); in mmc_load_legacy()
37 spl_image->load_addr); in mmc_load_legacy()
53 int mmc_load_image_raw_sector(struct spl_image_info *spl_image, in mmc_load_image_raw_sector() argument
81 ret = spl_load_simple_fit(spl_image, &load, sector, header); in mmc_load_image_raw_sector()
83 ret = mmc_load_legacy(spl_image, mmc, sector, header); in mmc_load_image_raw_sector()
152 static int mmc_load_image_raw_partition(struct spl_image_info *spl_image, in mmc_load_image_raw_partition() argument
182 return mmc_load_image_raw_sector(spl_image, mmc, in mmc_load_image_raw_partition()
[all …]
Dspl_nand.c15 int spl_nand_load_image(struct spl_image_info *spl_image, in spl_nand_load_image() argument
23 spl_set_header_raw_uboot(spl_image); in spl_nand_load_image()
42 static int spl_nand_load_element(struct spl_image_info *spl_image, in spl_nand_load_element() argument
61 return spl_load_simple_fit(spl_image, &load, offset, header); in spl_nand_load_element()
63 err = spl_parse_image_header(spl_image, header); in spl_nand_load_element()
66 return nand_spl_load_image(offset, spl_image->size, in spl_nand_load_element()
67 (void *)(ulong)spl_image->load_addr); in spl_nand_load_element()
71 static int spl_nand_load_image(struct spl_image_info *spl_image, in spl_nand_load_image() argument
112 err = spl_parse_image_header(spl_image, header); in spl_nand_load_image()
119 spl_image->size, in spl_nand_load_image()
[all …]
Dspl_nor.c9 static int spl_nor_load_image(struct spl_image_info *spl_image, in spl_nor_load_image() argument
17 spl_image->flags |= SPL_COPY_PAYLOAD_ONLY; in spl_nor_load_image()
32 ret = spl_parse_image_header(spl_image, header); in spl_nor_load_image()
36 memcpy((void *)spl_image->load_addr, in spl_nor_load_image()
39 spl_image->size); in spl_nor_load_image()
41 spl_image->arg = (void *)CONFIG_SYS_FDT_BASE; in spl_nor_load_image()
56 ret = spl_parse_image_header(spl_image, in spl_nor_load_image()
61 memcpy((void *)(unsigned long)spl_image->load_addr, in spl_nor_load_image()
63 spl_image->size); in spl_nor_load_image()
Dspl_xip.c10 static int spl_xip(struct spl_image_info *spl_image, in spl_xip() argument
15 spl_image->arg = (void *)CONFIG_SYS_FDT_BASE; in spl_xip()
16 spl_image->name = "Linux"; in spl_xip()
17 spl_image->os = IH_OS_LINUX; in spl_xip()
18 spl_image->load_addr = CONFIG_SYS_LOAD_ADDR; in spl_xip()
19 spl_image->entry_point = CONFIG_SYS_LOAD_ADDR; in spl_xip()
21 spl_image->load_addr); in spl_xip()
25 return(spl_parse_image_header(spl_image, (const struct image_header *) in spl_xip()
Dspl_fit.c284 static int spl_fit_append_fdt(struct spl_image_info *spl_image, in spl_fit_append_fdt() argument
302 image_info.load_addr = spl_image->load_addr + spl_image->size; in spl_fit_append_fdt()
310 spl_image->fdt_addr = (void *)image_info.load_addr; in spl_fit_append_fdt()
313 ret = fdt_shrink_to_minimum(spl_image->fdt_addr, 8192); in spl_fit_append_fdt()
351 int spl_load_simple_fit(struct spl_image_info *spl_image, in spl_load_simple_fit() argument
410 spl_image); in spl_load_simple_fit()
449 spl_image); in spl_load_simple_fit()
457 if (!spl_fit_image_get_os(fit, node, &spl_image->os)) in spl_load_simple_fit()
458 debug("Image OS is %s\n", genimg_get_os_name(spl_image->os)); in spl_load_simple_fit()
461 spl_image->os = IH_OS_U_BOOT; in spl_load_simple_fit()
[all …]
Dspl_spi.c24 static int spi_load_image_os(struct spl_image_info *spl_image, in spi_load_image_os() argument
37 err = spl_parse_image_header(spl_image, header); in spi_load_image_os()
42 spl_image->size, (void *)spl_image->load_addr); in spi_load_image_os()
70 static int spl_spi_load_image(struct spl_image_info *spl_image, in spl_spi_load_image() argument
101 if (spl_start_uboot() || spi_load_image_os(spl_image, flash, header)) in spl_spi_load_image()
123 err = spl_load_simple_fit(spl_image, &load, in spl_spi_load_image()
127 err = spl_parse_image_header(spl_image, header); in spl_spi_load_image()
131 spl_image->size, in spl_spi_load_image()
132 (void *)spl_image->load_addr); in spl_spi_load_image()
Dspl_net.c25 static int spl_net_load_image(struct spl_image_info *spl_image, in spl_net_load_image() argument
54 rv = spl_load_simple_fit(spl_image, &load, 0, header); in spl_net_load_image()
58 rv = spl_parse_image_header(spl_image, header); in spl_net_load_image()
62 memcpy((void *)spl_image->load_addr, header, spl_image->size); in spl_net_load_image()
70 int spl_net_load_image_cpgmac(struct spl_image_info *spl_image, in spl_net_load_image_cpgmac() argument
77 return spl_net_load_image(spl_image, bootdev); in spl_net_load_image_cpgmac()
84 int spl_net_load_image_usb(struct spl_image_info *spl_image, in spl_net_load_image_usb() argument
89 return spl_net_load_image(spl_image, bootdev); in spl_net_load_image_usb()
Dspl_fat.c55 int spl_load_image_fat(struct spl_image_info *spl_image, in spl_load_image_fat() argument
83 return spl_load_simple_fit(spl_image, &load, 0, header); in spl_load_image_fat()
85 err = spl_parse_image_header(spl_image, header); in spl_load_image_fat()
90 (u8 *)(uintptr_t)spl_image->load_addr, 0); in spl_load_image_fat()
104 int spl_load_image_fat_os(struct spl_image_info *spl_image, in spl_load_image_fat_os() argument
125 err = spl_load_image_fat(spl_image, block_dev, in spl_load_image_fat_os()
151 return spl_load_image_fat(spl_image, block_dev, partition, in spl_load_image_fat_os()
155 int spl_load_image_fat_os(struct spl_image_info *spl_image, in spl_load_image_fat_os() argument
Dspl_ext.c10 int spl_load_image_ext(struct spl_image_info *spl_image, in spl_load_image_ext() argument
48 err = spl_parse_image_header(spl_image, header); in spl_load_image_ext()
54 err = ext4fs_read((char *)spl_image->load_addr, 0, filelen, &actlen); in spl_load_image_ext()
67 int spl_load_image_ext_os(struct spl_image_info *spl_image, in spl_load_image_ext_os() argument
105 err = spl_load_image_ext(spl_image, block_dev, in spl_load_image_ext_os()
136 return spl_load_image_ext(spl_image, block_dev, partition, in spl_load_image_ext_os()
140 int spl_load_image_ext_os(struct spl_image_info *spl_image, in spl_load_image_ext_os() argument
Dspl_onenand.c16 static int spl_onenand_load_image(struct spl_image_info *spl_image, in spl_onenand_load_image() argument
29 ret = spl_parse_image_header(spl_image, header); in spl_onenand_load_image()
33 spl_image->size, (void *)spl_image->load_addr); in spl_onenand_load_image()
Dspl_sata.c20 static int spl_sata_load_image(struct spl_image_info *spl_image, in spl_sata_load_image() argument
42 spl_load_image_fat_os(spl_image, stor_dev, in spl_sata_load_image()
46 err = spl_load_image_fat(spl_image, stor_dev, in spl_sata_load_image()
Dspl_usb.c22 static int spl_usb_load_image(struct spl_image_info *spl_image, in spl_usb_load_image() argument
49 spl_load_image_fat_os(spl_image, stor_dev, in spl_usb_load_image()
53 err = spl_load_image_fat(spl_image, stor_dev, in spl_usb_load_image()
Dspl_ymodem.c70 static int spl_ymodem_load_image(struct spl_image_info *spl_image, in spl_ymodem_load_image() argument
105 ret = spl_load_simple_fit(spl_image, &load, 0, (void *)buf); in spl_ymodem_load_image()
111 ret = spl_parse_image_header(spl_image, in spl_ymodem_load_image()
115 addr = spl_image->load_addr; in spl_ymodem_load_image()
Dspl_ram.c31 static int spl_ram_load_image(struct spl_image_info *spl_image, in spl_ram_load_image() argument
50 spl_load_simple_fit(spl_image, &load, 0, header); in spl_ram_load_image()
71 spl_parse_image_header(spl_image, header); in spl_ram_load_image()
Dspl_ubi.c14 int spl_ubi_load_image(struct spl_image_info *spl_image, in spl_ubi_load_image() argument
57 spl_parse_image_header(spl_image, header); in spl_ubi_load_image()
71 spl_parse_image_header(spl_image, header); in spl_ubi_load_image()
/external/u-boot/include/
Dspl.h75 int spl_load_simple_fit(struct spl_image_info *spl_image,
96 void spl_set_header_raw_uboot(struct spl_image_info *spl_image);
112 int spl_parse_image_header(struct spl_image_info *spl_image,
126 void __noreturn jump_to_image_linux(struct spl_image_info *spl_image);
184 int (*load_image)(struct spl_image_info *spl_image,
214 int spl_load_image_fat(struct spl_image_info *spl_image,
217 int spl_load_image_fat_os(struct spl_image_info *spl_image,
220 void __noreturn jump_to_image_no_args(struct spl_image_info *spl_image);
223 int spl_load_image_ext(struct spl_image_info *spl_image,
226 int spl_load_image_ext_os(struct spl_image_info *spl_image,
[all …]
/external/u-boot/arch/arm/lib/
Dspl.c51 void __noreturn jump_to_image_linux(struct spl_image_info *spl_image) in jump_to_image_linux() argument
53 debug("Entering kernel arg pointer: 0x%p\n", spl_image->arg); in jump_to_image_linux()
55 armv8_switch_to_el2((u64)spl_image->arg, 0, 0, 0, in jump_to_image_linux()
56 spl_image->entry_point, ES_TO_AARCH64); in jump_to_image_linux()
59 void __noreturn jump_to_image_linux(struct spl_image_info *spl_image) in jump_to_image_linux() argument
66 debug("Entering kernel arg pointer: 0x%p\n", spl_image->arg); in jump_to_image_linux()
70 (image_entry_arg_t)(uintptr_t) spl_image->entry_point; in jump_to_image_linux()
72 image_entry(0, machid, spl_image->arg); in jump_to_image_linux()
/external/u-boot/arch/x86/lib/
Dspl.c127 static int spl_board_load_image(struct spl_image_info *spl_image, in spl_board_load_image() argument
130 spl_image->size = CONFIG_SYS_MONITOR_LEN; in spl_board_load_image()
131 spl_image->entry_point = CONFIG_SYS_TEXT_BASE; in spl_board_load_image()
132 spl_image->load_addr = CONFIG_SYS_TEXT_BASE; in spl_board_load_image()
133 spl_image->os = IH_OS_U_BOOT; in spl_board_load_image()
134 spl_image->name = "U-Boot"; in spl_board_load_image()
136 debug("Loading to %lx\n", spl_image->load_addr); in spl_board_load_image()
147 void __noreturn jump_to_image_no_args(struct spl_image_info *spl_image) in jump_to_image_no_args() argument
152 ret = cpu_jump_to_64bit_uboot(spl_image->entry_point); in jump_to_image_no_args()
/external/u-boot/board/freescale/common/
Dfsl_chain_of_trust.c141 void __noreturn jump_to_image_no_args(struct spl_image_info *spl_image) in jump_to_image_no_args() argument
147 (image_entry_noargs_t)(unsigned long)spl_image->entry_point; in jump_to_image_no_args()
149 hdr_addr = (spl_image->entry_point + spl_image->size - in jump_to_image_no_args()
151 spl_validate_uboot(hdr_addr, (uintptr_t)spl_image->entry_point); in jump_to_image_no_args()
160 debug("image entry point: 0x%lX\n", spl_image->entry_point); in jump_to_image_no_args()
/external/u-boot/arch/microblaze/cpu/
Dspl.c29 void __noreturn jump_to_image_linux(struct spl_image_info *spl_image) in jump_to_image_linux() argument
31 debug("Entering kernel arg pointer: 0x%p\n", spl_image->arg); in jump_to_image_linux()
35 (image_entry_arg_t)spl_image->entry_point; in jump_to_image_linux()
37 image_entry(NULL, 0, (ulong)spl_image->arg); in jump_to_image_linux()
/external/u-boot/arch/powerpc/lib/
Dspl.c16 void __noreturn jump_to_image_linux(struct spl_image_info *spl_image) in jump_to_image_linux() argument
18 debug("Entering kernel arg pointer: 0x%p\n", spl_image->arg); in jump_to_image_linux()
23 (image_entry_arg_t)spl_image->entry_point; in jump_to_image_linux()
25 image_entry(spl_image->arg, 0, 0, EPAPR_MAGIC, CONFIG_SYS_BOOTMAPSZ, in jump_to_image_linux()
/external/u-boot/arch/arm/mach-imx/
Dspl.c213 __weak void __noreturn jump_to_image_no_args(struct spl_image_info *spl_image) in jump_to_image_no_args() argument
219 (image_entry_noargs_t)(unsigned long)spl_image->entry_point; in jump_to_image_no_args()
221 debug("image entry point: 0x%lX\n", spl_image->entry_point); in jump_to_image_no_args()
225 offset = spl_image->size - CONFIG_CSF_SIZE; in jump_to_image_no_args()
226 if (!imx_hab_authenticate_image(spl_image->load_addr, in jump_to_image_no_args()
/external/u-boot/arch/arm/mach-tegra/
Dspl.c46 void __noreturn jump_to_image_no_args(struct spl_image_info *spl_image) in jump_to_image_no_args() argument
48 debug("image entry point: 0x%lX\n", spl_image->entry_point); in jump_to_image_no_args()
50 start_cpu((u32)spl_image->entry_point); in jump_to_image_no_args()
/external/u-boot/arch/arm/mach-sunxi/
Dspl_spi_sunxi.c274 static int spl_spi_load_image(struct spl_image_info *spl_image, in spl_spi_load_image() argument
295 ret = spl_load_simple_fit(spl_image, &load, in spl_spi_load_image()
298 ret = spl_parse_image_header(spl_image, header); in spl_spi_load_image()
302 spi0_read_data((void *)spl_image->load_addr, in spl_spi_load_image()
303 CONFIG_SYS_SPI_U_BOOT_OFFS, spl_image->size); in spl_spi_load_image()

12