/external/u-boot/drivers/mtd/spi/ |
D | spi_flash.c | 31 static int read_sr(struct spi_flash *flash, u8 *rs) in read_sr() argument 37 ret = spi_flash_read_common(flash, &cmd, 1, rs, 1); in read_sr() 46 static int read_fsr(struct spi_flash *flash, u8 *fsr) in read_fsr() argument 51 ret = spi_flash_read_common(flash, &cmd, 1, fsr, 1); in read_fsr() 60 static int write_sr(struct spi_flash *flash, u8 ws) in write_sr() argument 66 ret = spi_flash_write_common(flash, &cmd, 1, &ws, 1); in write_sr() 76 static int read_cr(struct spi_flash *flash, u8 *rc) in read_cr() argument 82 ret = spi_flash_read_common(flash, &cmd, 1, rc, 1); in read_cr() 91 static int write_cr(struct spi_flash *flash, u8 wc) in write_cr() argument 97 ret = read_sr(flash, &data[0]); in write_cr() [all …]
|
D | sf_probe.c | 25 static int spi_flash_probe_slave(struct spi_flash *flash) in spi_flash_probe_slave() argument 27 struct spi_slave *spi = flash->spi; in spi_flash_probe_slave() 43 ret = spi_flash_scan(flash); in spi_flash_probe_slave() 48 ret = spi_flash_mtd_register(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() 75 if (spi_flash_probe_slave(flash)) { in spi_flash_probe() 77 free(flash); in spi_flash_probe() [all …]
|
D | Kconfig | 4 bool "Enable Driver Model for SPI flash" 7 Enable driver model for SPI flash. This SPI flash interface 9 implemented by the SPI flash uclass. There is one standard 10 SPI flash driver which knows how to probe most chips 14 during the transition parent. SPI and SPI flash must be 19 bool "Support sandbox SPI flash device" 25 device. Typically the contents of the emulated SPI flash device is 31 Enable the legacy SPI flash support. This will include basic 38 bool "SPI flash Bank/Extended address register support" 41 Enable the SPI flash Bank/Extended address register support. [all …]
|
D | fsl_espi_spl.c | 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() 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() [all …]
|
D | sf_internal.h | 105 int sst_write_wp(struct spi_flash *flash, u32 offset, size_t len, 107 int sst_write_bp(struct spi_flash *flash, u32 offset, size_t len, 170 int spi_flash_cmd_erase_ops(struct spi_flash *flash, u32 offset, size_t len); 173 int stm_lock(struct spi_flash *flash, u32 ofs, size_t len); 176 int stm_unlock(struct spi_flash *flash, u32 ofs, size_t len); 179 int stm_is_locked(struct spi_flash *flash, u32 ofs, size_t len); 182 static inline int spi_flash_cmd_write_enable(struct spi_flash *flash) in spi_flash_cmd_write_enable() argument 184 return spi_flash_cmd(flash->spi, CMD_WRITE_ENABLE, NULL, 0); in spi_flash_cmd_write_enable() 188 static inline int spi_flash_cmd_write_disable(struct spi_flash *flash) in spi_flash_cmd_write_disable() argument 190 return spi_flash_cmd(flash->spi, CMD_WRITE_DISABLE, NULL, 0); in spi_flash_cmd_write_disable() [all …]
|
D | sf_mtd.c | 17 struct spi_flash *flash = mtd->priv; in spi_flash_mtd_erase() local 22 err = spi_flash_erase(flash, instr->addr, instr->len); in spi_flash_mtd_erase() 38 struct spi_flash *flash = mtd->priv; in spi_flash_mtd_read() local 41 err = spi_flash_read(flash, from, len, buf); in spi_flash_mtd_read() 51 struct spi_flash *flash = mtd->priv; in spi_flash_mtd_write() local 54 err = spi_flash_write(flash, to, len, buf); in spi_flash_mtd_write() 74 int spi_flash_mtd_register(struct spi_flash *flash) in spi_flash_mtd_register() argument 83 sf_mtd_info.writebufsize = flash->page_size; in spi_flash_mtd_register() 90 sf_mtd_info.size = flash->size; in spi_flash_mtd_register() 91 sf_mtd_info.priv = flash; in spi_flash_mtd_register() [all …]
|
/external/u-boot/include/ |
D | spi_flash.h | 88 int (*flash_lock)(struct spi_flash *flash, u32 ofs, size_t len); 89 int (*flash_unlock)(struct spi_flash *flash, u32 ofs, size_t len); 90 int (*flash_is_locked)(struct spi_flash *flash, u32 ofs, size_t len); 103 int (*read)(struct spi_flash *flash, u32 offset, size_t len, void *buf); 104 int (*write)(struct spi_flash *flash, u32 offset, size_t len, 106 int (*erase)(struct spi_flash *flash, u32 offset, size_t len); 165 void spi_flash_free(struct spi_flash *flash); 167 static inline int spi_flash_read(struct spi_flash *flash, u32 offset, in spi_flash_read() argument 170 return spi_flash_read_dm(flash->dev, offset, len, buf); in spi_flash_read() 173 static inline int spi_flash_write(struct spi_flash *flash, u32 offset, in spi_flash_write() argument [all …]
|
/external/u-boot/cmd/ |
D | sf.c | 21 static struct spi_flash *flash; variable 55 if (round_up_len && flash->sector_size > 0) in sf_parse_len_arg() 56 *len = ROUND(len_arg, flash->sector_size); in sf_parse_len_arg() 128 flash = NULL; in do_spi_flash_probe() 136 flash = dev_get_uclass_priv(new); in do_spi_flash_probe() 138 if (flash) in do_spi_flash_probe() 139 spi_flash_free(flash); in do_spi_flash_probe() 142 flash = new; in do_spi_flash_probe() 149 flash = new; in do_spi_flash_probe() 169 static const char *spi_flash_update_block(struct spi_flash *flash, u32 offset, in spi_flash_update_block() argument [all …]
|
D | jffs2.c | 263 flash_info_t *flash; in get_part_sector_size_nor() local 265 flash = &flash_info[id->num]; in get_part_sector_size_nor() 267 start_phys = flash->start[0] + part->offset; in get_part_sector_size_nor() 270 for (i = 0; i < flash->sector_count; i++) { in get_part_sector_size_nor() 271 if (flash->start[i] >= end_phys) in get_part_sector_size_nor() 274 if (flash->start[i] >= start_phys) { in get_part_sector_size_nor() 275 if (i == flash->sector_count - 1) { in get_part_sector_size_nor() 276 size = flash->start[0] + flash->size - flash->start[i]; in get_part_sector_size_nor() 278 size = flash->start[i+1] - flash->start[i]; in get_part_sector_size_nor()
|
/external/u-boot/board/imgtec/malta/ |
D | flash-malta-boot.tcl | 14 flash device sharp_16x32_be; 17 flash device sharp_16x32; 20 flash clear all; 21 flash set 0xBE000000..0xBE0FFFFF 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; [all …]
|
/external/u-boot/doc/ |
D | README.at91 | 23 - Nand flash. 26 make at91sam9260ek_nandflash_config - use nand flash 27 make at91sam9260ek_dataflash_cs0_config - use data flash (spi cs0) 28 make at91sam9260ek_dataflash_cs1_config - use data flash (spi cs1) 45 - Nand flash. 48 make at91sam9261ek_nandflash_config - use nand flash 49 make at91sam9261ek_dataflash_cs0_config - use data flash (spi cs0) 50 make at91sam9261ek_dataflash_cs3_config - use data flash (spi cs3) 65 - Nand flash. 66 - Nor flash (not populate by default) [all …]
|
/external/u-boot/common/spl/ |
D | spl_spi.c | 25 struct spi_flash *flash, in spi_load_image_os() argument 31 spi_flash_read(flash, CONFIG_SYS_SPI_KERNEL_OFFS, 0x40, in spi_load_image_os() 41 spi_flash_read(flash, CONFIG_SYS_SPI_KERNEL_OFFS, in spi_load_image_os() 45 spi_flash_read(flash, CONFIG_SYS_SPI_ARGS_OFFS, in spi_load_image_os() 56 struct spi_flash *flash = load->dev; in spl_spi_fit_read() local 59 ret = spi_flash_read(flash, sector, count, buf); in spl_spi_fit_read() 75 struct spi_flash *flash; in spl_spi_load_image() local 82 flash = spi_flash_probe(CONFIG_SF_DEFAULT_BUS, in spl_spi_load_image() 86 if (!flash) { in spl_spi_load_image() 101 if (spl_start_uboot() || spi_load_image_os(spl_image, flash, header)) in spl_spi_load_image() [all …]
|
/external/u-boot/board/Arcturus/ucp1020/ |
D | cmd_arc.c | 39 static struct spi_flash *flash; variable 75 flash = spi_flash_probe(CONFIG_ENV_SPI_BUS, CONFIG_ENV_SPI_CS, in set_arc_product() 82 if (spi_flash_write(flash, FIRM_ADDR1, sizeof(smac), smac)) { in set_arc_product() 86 if (spi_flash_write(flash, FIRM_ADDR2, sizeof(smac), smac)) { in set_arc_product() 91 if (spi_flash_write(flash, FIRM_ADDR3, sizeof(smac), smac)) { in set_arc_product() 96 if (spi_flash_write(flash, FIRM_ADDR4, sizeof(smac), smac)) { in set_arc_product() 114 flash = spi_flash_probe(CONFIG_ENV_SPI_BUS, CONFIG_ENV_SPI_CS, in get_arc_info() 117 if (spi_flash_read(flash, FIRM_ADDR1, sizeof(smac), smac)) { in get_arc_info() 119 if (spi_flash_read(flash, FIRM_ADDR2, sizeof(smac), smac)) { in get_arc_info() 121 if (spi_flash_read(flash, FIRM_ADDR3, sizeof(smac), in get_arc_info() [all …]
|
/external/u-boot/doc/device-tree-bindings/mtd/ |
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 27 physmap-flash drivers as boot loader pass the mtd partition via the old 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). 39 For ROM compatible devices (and ROM fallback from cfi-flash), the following 49 flash@ff000000 { [all …]
|
/external/u-boot/board/freescale/c29xpcie/ |
D | README | 13 - 64 Mbyte NOR flash single-chip memory 14 - 4 Gbyte NAND flash memory 35 0xf_ec00_0000 - 0xf_efff_ffff 64MB NOR flash 52 SW5[1:4]= 1111 and SW5[6]=0 for boot from 16bit NOR flash 53 SW5[1:4]= 0110 and SW5[6]=0 for boot from SPI flash 56 Build and program U-Boot to NOR flash 63 2. Program u-boot.bin into NOR flash 83 - bank 1 on the flash 0x0000000~0x0ffffff 84 - bank 2 on the flash 0x1000000~0x1ffffff 85 - bank 3 on the flash 0x2000000~0x2ffffff [all …]
|
/external/u-boot/cmd/mvebu/ |
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"
|
/external/u-boot/doc/SPI/ |
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.
|
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.
|
/external/u-boot/drivers/mtd/ |
D | Kconfig | 8 flash, RAM and similar chips, often used for solid state file 12 bool "Enable parallel NOR flash support" 14 Enable support for parallel NOR flash. 21 AMD and other flash manufactures. It provides a universal method 22 for probing the capabilities of flash devices. If you wish to 31 This enables access to Altera EPCQ/EPCS flash chips using the 33 NOR flash to parallel flash interface. Please find details on the 40 This enables access to Microchip PIC32 internal non-CFI flash
|
D | altera_qspi.c | 143 u32 *flash, *last; in altera_qspi_erase() local 156 flash = pdata->base + addr; in altera_qspi_erase() 159 while (flash < last) { in altera_qspi_erase() 160 if (readl(flash) != 0xffffffff) in altera_qspi_erase() 162 flash++; in altera_qspi_erase() 164 if (flash < last) { in altera_qspi_erase() 309 flash_info_t *flash = &flash_info[0]; in altera_qspi_probe() local 335 flash->mtd = mtd; in altera_qspi_probe() 336 flash->size = mtd->size; in altera_qspi_probe() 337 flash->sector_count = mtd->size / mtd->erasesize; in altera_qspi_probe() [all …]
|
/external/u-boot/drivers/spi/ |
D | Kconfig | 25 access the SPI NOR flash on platforms embedding this Altera 33 used to access the SPI flash on AE3XX and AE250 platforms embedding 41 to access SPI NOR flash and other SPI peripherals. This driver 58 access the SPI NOR flash on platforms embedding this Broadcom 66 access the SPI NOR flash on platforms embedding these Broadcom 73 used to access the SPI NOR flash on platforms embedding this 80 access the SPI NOR flash on platforms embedding this Designware 87 access the SPI NOR flash on platforms embedding this Samsung 94 access the SPI NOR flash and SPI Data flash on platforms embedding 102 access the SPI NOR flash on platforms embedding this Intel [all …]
|
/external/u-boot/board/freescale/mpc8313erdb/ |
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:
|
/external/u-boot/board/freescale/mpc8349itx/ |
D | README | 11 A) One 8MB on-board flash EEPROM chip, instead of two. 35 of the flash chips. If J22.E is ON (i.e. jumpered), then flash chip 36 U4 is located at address FE000000 and flash chip U7 is at FE800000. 60 On the ITX, jumper J22.E is used to determine which flash chips are 70 FEFF_FFFF End of flash 77 FEFF_FFFF End of flash 83 F7FF_FFFF End of flash 130 Because the ITX has 16MB of flash, it is possible to keep two U-Boot 131 images in flash, and use the HRCW to specify which one is to be used 150 2) Take the u-boot.bin image and flash it at FEF00000. [all …]
|
/external/u-boot/arch/arm/dts/ |
D | fsl-ls1088a-qds.dts | 33 compatible = "cfi-flash"; 65 compatible = "spi-flash"; 73 compatible = "spi-flash"; 81 compatible = "spi-flash"; 94 compatible = "spi-flash"; 102 compatible = "spi-flash";
|
/external/u-boot/board/freescale/mpc8544ds/ |
D | README | 10 Like the 85xx CDS systems, the 8544 DS board has two flash banks. 16 on the flash bank mappings for the next reset cycle. 35 For example, to place a new image in the alternate flash bank 44 To overwrite the image in the boot flash bank: 51 Other example U-Boot image and flash manipulations examples 59 of using either the current or alternate flash bank as the boot 76 /* reset board but use the to alternate flash bank */ 79 /* reset board, use alternate flash bank with watchdog timer enabled*/ 106 Burn it to flash if you want.
|