Lines Matching +full:spi +full:- +full:flash
9 * SPDX-License-Identifier: GPL-2.0+
13 #include <spi.h>
26 struct spi_flash *flash, in spi_load_image_os() argument
32 spi_flash_read(flash, CONFIG_SYS_SPI_KERNEL_OFFS, 0x40, in spi_load_image_os()
36 return -1; in spi_load_image_os()
42 spi_flash_read(flash, CONFIG_SYS_SPI_KERNEL_OFFS, in spi_load_image_os()
43 spl_image->size, (void *)spl_image->load_addr); in spi_load_image_os()
46 spi_flash_read(flash, CONFIG_SYS_SPI_ARGS_OFFS, in spi_load_image_os()
57 struct spi_flash *flash = load->dev; in spl_spi_fit_read() local
60 ret = spi_flash_read(flash, sector, count, buf); in spl_spi_fit_read()
67 * The main entry for SPI booting. It's necessary that SDRAM is already
68 * configured and available since this code loads the main U-Boot image
69 * from SPI into SDRAM and starts it from there.
76 struct spi_flash *flash; local
80 * Load U-Boot image from SPI flash into RAM
85 flash = spi_flash_probe(CONFIG_SF_DEFAULT_BUS,
89 if (!flash) {
90 puts("SPI probe failed.\n");
91 return -ENODEV;
98 payload_offs = fdtdec_get_config_int(gd->fdt_blob,
99 "u-boot,spl-payload-offset",
104 if (spl_start_uboot() || spi_load_image_os(spl_image, flash, header))
107 /* Load u-boot, mkimage header is 64 bytes. */
108 err = spi_flash_read(flash, payload_offs, 0x40,
111 debug("%s: Failed to read from SPI flash (err=%d)\n",
127 load.dev = flash;
139 err = spi_flash_read(flash, payload_offs,
140 spl_image->size,
141 (void *)spl_image->load_addr);
148 SPL_LOAD_IMAGE_METHOD("SPI", 1, BOOT_DEVICE_SPI, spl_spi_load_image);