Lines Matching full:flash
16 struct spi_flash *flash; in fsl_spi_spl_load_image() local
18 flash = spi_flash_probe(CONFIG_ENV_SPI_BUS, CONFIG_ENV_SPI_CS, in fsl_spi_spl_load_image()
20 if (flash == NULL) { in fsl_spi_spl_load_image()
25 spi_flash_read(flash, offs, size, vdst); in fsl_spi_spl_load_image()
40 struct spi_flash *flash; in fsl_spi_boot() local
42 flash = spi_flash_probe(CONFIG_ENV_SPI_BUS, CONFIG_ENV_SPI_CS, in fsl_spi_boot()
44 if (flash == NULL) { in fsl_spi_boot()
54 * Load U-Boot image from SPI flash into RAM in fsl_spi_boot()
56 buf = malloc(flash->page_size); in fsl_spi_boot()
61 memset(buf, 0, flash->page_size); in fsl_spi_boot()
63 spi_flash_read(flash, CONFIG_CFG_DATA_SECTOR, in fsl_spi_boot()
64 flash->page_size, (void *)buf); in fsl_spi_boot()
76 spi_flash_read(flash, offset + copy_len, 0x2000, in fsl_spi_boot()