/u-boot/drivers/mtd/spi/ |
A D | sf_probe.c | 44 ret = spi_nor_scan(flash); in spi_flash_probe_slave() 61 struct spi_flash *flash; in spi_flash_probe() local 68 flash = calloc(1, sizeof(*flash)); in spi_flash_probe() 69 if (!flash) { in spi_flash_probe() 74 flash->spi = bus; in spi_flash_probe() 77 free(flash); in spi_flash_probe() 81 return flash; in spi_flash_probe() 90 free(flash); in spi_flash_free() 136 struct spi_flash *flash; in spi_flash_std_probe() local 139 flash->dev = dev; in spi_flash_std_probe() [all …]
|
A D | fsl_espi_spl.c | 18 struct spi_flash *flash; in fsl_spi_spl_load_image() local 20 flash = spi_flash_probe(CONFIG_ENV_SPI_BUS, CONFIG_ENV_SPI_CS, in fsl_spi_spl_load_image() 22 if (flash == NULL) { in fsl_spi_spl_load_image() 27 spi_flash_read(flash, offs, size, vdst); in fsl_spi_spl_load_image() 42 struct spi_flash *flash; in fsl_spi_boot() local 46 if (flash == NULL) { in fsl_spi_boot() 58 buf = malloc(flash->page_size); in fsl_spi_boot() 63 memset(buf, 0, flash->page_size); in fsl_spi_boot() 65 spi_flash_read(flash, CONFIG_CFG_DATA_SECTOR, in fsl_spi_boot() 66 flash->page_size, (void *)buf); in fsl_spi_boot() [all …]
|
A D | sf_mtd.c | 19 struct spi_flash *flash = mtd->priv; in spi_flash_mtd_erase() local 22 if (!flash) in spi_flash_mtd_erase() 43 struct spi_flash *flash = mtd->priv; in spi_flash_mtd_read() local 46 if (!flash) in spi_flash_mtd_read() 49 err = spi_flash_read(flash, from, len, buf); in spi_flash_mtd_read() 59 struct spi_flash *flash = mtd->priv; in spi_flash_mtd_write() local 62 if (!flash) in spi_flash_mtd_write() 65 err = spi_flash_write(flash, to, len, buf); in spi_flash_mtd_write() 112 sf_mtd_info.size = flash->size; in spi_flash_mtd_register() 113 sf_mtd_info.priv = flash; in spi_flash_mtd_register() [all …]
|
A D | Kconfig | 4 bool "Enable Driver Model for SPI flash" 8 Enable driver model for SPI flash. This SPI flash interface 46 flash is present on the system. 55 flash is present on the system. 64 flash is present on the system. 76 flash is present on the system. 115 bool "Atmel SPI flash support" 120 bool "EON SPI flash support" 130 bool "ISSI SPI flash support" 150 bool "SST SPI flash support" [all …]
|
/u-boot/board/imgtec/malta/ |
A D | flash-malta-boot.tcl | 14 flash device sharp_16x32_be; 17 flash device sharp_16x32; 20 flash clear all; 22 flash erase sector 0xbe000000; 23 flash erase sector 0xbe020000; 24 flash erase sector 0xbe040000; 25 flash erase sector 0xbe060000; 26 flash erase sector 0xbe080000; 27 flash erase sector 0xbe0a0000; 28 flash erase sector 0xbe0c0000; [all …]
|
/u-boot/include/ |
A D | spi_flash.h | 100 void spi_flash_free(struct spi_flash *flash); 105 return spi_flash_read_dm(flash->dev, offset, len, buf); in spi_flash_read() 111 return spi_flash_write_dm(flash->dev, offset, len, buf); in spi_flash_write() 117 return spi_flash_erase_dm(flash->dev, offset, len); in spi_flash_erase() 131 void spi_flash_free(struct spi_flash *flash); 136 struct mtd_info *mtd = &flash->mtd; in spi_flash_read() 145 struct mtd_info *mtd = &flash->mtd; in spi_flash_write() 154 struct mtd_info *mtd = &flash->mtd; in spi_flash_erase() 173 if (!flash->flash_lock || !flash->flash_unlock) in spi_flash_protect() 177 return flash->flash_lock(flash, ofs, len); in spi_flash_protect() [all …]
|
/u-boot/common/spl/ |
A D | spl_spi.c | 28 struct spi_flash *flash, in spi_load_image_os() argument 48 spi_flash_read(flash, CONFIG_SYS_SPI_ARGS_OFFS, in spi_load_image_os() 59 struct spi_flash *flash = load->dev; in spl_spi_fit_read() local 84 struct spi_flash *flash; in spl_spi_load_image() local 93 flash = spi_flash_probe(CONFIG_SF_DEFAULT_BUS, in spl_spi_load_image() 97 if (!flash) { in spl_spi_load_image() 102 payload_offs = spl_spi_get_uboot_offs(flash); in spl_spi_load_image() 127 err = spi_flash_read(flash, payload_offs, in spl_spi_load_image() 139 load.dev = flash; in spl_spi_load_image() 150 load.dev = flash; in spl_spi_load_image() [all …]
|
/u-boot/cmd/ |
A D | sf.c | 27 static struct spi_flash *flash; variable 133 flash = NULL; in do_spi_flash_probe() 143 if (flash) in do_spi_flash_probe() 144 spi_flash_free(flash); in do_spi_flash_probe() 147 flash = new; in do_spi_flash_probe() 179 if (spi_flash_read(flash, offset, flash->sector_size, cmp_buf)) in spi_flash_update_block() 189 if (spi_flash_erase(flash, offset, flash->sector_size)) in spi_flash_update_block() 197 if (spi_flash_write(flash, offset, flash->sector_size, ptr)) in spi_flash_update_block() 286 argv[0], flash->size); in do_spi_flash_read_write() 342 argv[0], flash->size); in do_spi_flash_erase() [all …]
|
A D | jffs2.c | 267 flash_info_t *flash; in get_part_sector_size_nor() local 269 flash = &flash_info[id->num]; in get_part_sector_size_nor() 271 start_phys = flash->start[0] + part->offset; in get_part_sector_size_nor() 274 for (i = 0; i < flash->sector_count; i++) { in get_part_sector_size_nor() 275 if (flash->start[i] >= end_phys) in get_part_sector_size_nor() 278 if (flash->start[i] >= start_phys) { in get_part_sector_size_nor() 279 if (i == flash->sector_count - 1) { in get_part_sector_size_nor() 280 size = flash->start[0] + flash->size - flash->start[i]; in get_part_sector_size_nor() 282 size = flash->start[i+1] - flash->start[i]; in get_part_sector_size_nor()
|
/u-boot/doc/board/atmel/ |
A D | at91ek.rst | 24 - Nand flash 28 make at91sam9260ek_nandflash_config - use nand flash 48 - Nand flash 70 - Nand flash 71 - Nor flash (not populate by default) 77 make at91sam9263ek_norflash_config - use nor flash 95 - Nand flash 115 - Nand flash. 133 - Nand flash 156 - Nand flash [all …]
|
/u-boot/drivers/mtd/ |
A D | Kconfig | 21 bool "Enable parallel NOR flash support" 23 Enable support for parallel NOR flash. 54 bool "Enable buffered writes to flash" 57 Use buffered writes to flash. 64 in the drivers directory. The driver exports CFI flash 68 bool "Use hardware flash protection" 71 If defined, hardware flash sectors protection is used 75 bool "Define extra elements in CFI for flash geometry" 78 Define if the flash driver uses extra elements in the 79 common flash structure for storing flash geometry. [all …]
|
A D | altera_qspi.c | 146 u32 *flash, *last; in altera_qspi_erase() local 159 flash = pdata->base + addr; in altera_qspi_erase() 162 while (flash < last) { in altera_qspi_erase() 163 if (readl(flash) != 0xffffffff) in altera_qspi_erase() 165 flash++; in altera_qspi_erase() 167 if (flash < last) { in altera_qspi_erase() 338 flash->mtd = mtd; in altera_qspi_probe() 339 flash->size = mtd->size; in altera_qspi_probe() 341 flash->flash_id = rdid; in altera_qspi_probe() 342 flash->start[0] = base; in altera_qspi_probe() [all …]
|
/u-boot/doc/SPI/ |
A D | status.txt | 8 - sf_probe.c: SPI flash probing code. 9 - sf_ops.c: SPI flash operations code. 10 - sf.c: SPI flash interface, which interacts controller driver. 13 - Common probe support for all supported flash vendors except, ramtron. 17 - Dual flash connection topology support(accessing two spi flash memories with single cs) 18 - Banking support on dual flash connection topology.
|
A D | README.ti_qspi_flash | 4 Host processor is connected to serial flash device via qpsi 11 from Quad SPI flash devices. 16 MLO/u-boot.img will be flashed from SD/MMC to the flash device 17 using serial flash erase and write commands. Then, switch settings 19 from the predefined location in the flash, where it was flashed and 21 u-boot.img from flash and execute it from SDRAM. 42 to flash device and vice versa.
|
/u-boot/cmd/mvebu/ |
A D | Kconfig | 8 bubt - Burn a u-boot image to flash 17 bool "NAND flash boot" 20 Enable boot from NAND flash. 21 Allow usage of NAND flash as a target for "bubt" command 26 bool "SPI flash boot" 29 Enable boot from SPI flash. 30 Allow usage of SPI flash as a target for "bubt" command 35 bool "eMMC flash boot" 47 default "flash-image.bin"
|
/u-boot/arch/arm/dts/ |
A D | fsl-lx2162a-qds.dts | 47 compatible = "spi-flash"; 56 compatible = "spi-flash"; 65 compatible = "spi-flash"; 80 compatible = "spi-flash"; 89 compatible = "spi-flash"; 98 compatible = "spi-flash"; 113 compatible = "spi-flash"; 122 compatible = "spi-flash"; 131 compatible = "spi-flash";
|
A D | ast2600-evb.dts | 59 flash@0 { 60 compatible = "spi-flash", "sst,w25q256"; 67 flash@1 { 68 compatible = "spi-flash", "sst,w25q256"; 75 flash@2 { 76 compatible = "spi-flash", "sst,w25q256"; 92 flash@0 { 93 compatible = "spi-flash", "sst,w25q256"; 108 flash@0 { 109 compatible = "spi-flash", "sst,w25q256";
|
/u-boot/doc/device-tree-bindings/mtd/ |
A D | mtd-physmap.txt | 1 CFI or JEDEC memory-mapped NOR flash, MTD-RAM (NVRAM...) 7 used, if known, followed by either "cfi-flash", "jedec-flash", 20 mapping of the flash. 24 By defining "no-unaligned-direct-access", the flash will not be 28 device name physmap-flash. 36 - vendor-id : Contains the flash chip's vendor id (1 byte). 37 - device-id : Contains the flash chip's device id (1 byte). 49 flash@ff000000 { 50 compatible = "amd,am29lv128ml", "cfi-flash"; 69 flash@f0000000,0 { [all …]
|
/u-boot/board/freescale/mpc8313erdb/ |
A D | README | 8 To boot the image at 0xFE000000 in NOR flash, use these DIP 18 To boot the image at the beginning of NAND flash, use these 44 When booting from NAND, NAND flash is CS0 and NOR flash 65 33 - 33 MHz oscillator, boot from NOR flash 66 66 - 66 MHz oscillator, boot from NOR flash 67 NAND_33 - 33 MHz oscillator, boot from NAND flash 68 NAND_66 - 66 MHz oscillator, boot from NAND flash) 75 NOR flash: 83 have an alternate means of programming the flash available 86 NAND flash:
|
/u-boot/doc/ |
A D | README.malta | 3 How to flash using a MIPS Navigator Probe: 6 be unable to flash your Malta using a Navigator Probe. 12 source /path/to/u-boot/board/imgtec/malta/flash-malta-boot.tcl 14 flash-boot /path/to/u-boot/u-boot.bin
|
/u-boot/doc/board/intel/ |
A D | cougarcanyon2.rst | 18 the board manual. The SPI-0 flash should have flash descriptor plus ME firmware 19 and SPI-1 flash is used to store U-Boot. For convenience, the complete 8MB SPI-0 20 flash image is included in the FSP package (named Rom00_8M_MB_PPT.bin). Program 21 this image to the SPI-0 flash according to the board manual just once and we are 22 all set. For programming U-Boot we just need to program SPI-1 flash. Since the
|
/u-boot/arch/xtensa/dts/ |
A D | xtfpga-flash-128m.dtsi | 3 flash: flash@00000000 { label 6 compatible = "cfi-flash";
|
A D | xtfpga-flash-16m.dtsi | 3 flash: flash@08000000 { label 6 compatible = "cfi-flash";
|
/u-boot/board/ti/am335x/ |
A D | Kconfig | 16 bool "Support for NOR flash" 18 The AM335x SoC supports having a NOR flash connected to the GPMC. 19 In practice this is seen as a NOR flash module connected to the
|
/u-boot/drivers/fastboot/ |
A D | Kconfig | 71 The fastboot protocol includes a "flash" command for writing 73 this to enable the "fastboot flash" command. 105 The fastboot "flash" command requires additional information 117 bool "Enable EMMC_BOOT flash/erase" 122 flash/erase eMMC boot partition. 131 The fastboot "flash" and "erase" commands support operations on 149 bool "Enable eMMC userdata partition flash/erase" 153 eMMC userdata. The "flash" command only update the MBR and GPT 164 The fastboot "flash" and "erase" command supports EMMC_USER. 175 The fastboot "flash" command supports writing the downloaded [all …]
|