Home
last modified time | relevance | path

Searched refs:flash (Results 1 – 25 of 867) sorted by relevance

12345678910>>...35

/external/u-boot/drivers/mtd/spi/
Dsf_probe.c25 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_nor_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 …]
DKconfig4 bool "Enable Driver Model for SPI flash"
8 Enable driver model for SPI flash. This SPI flash interface
10 implemented by the SPI flash uclass. There is one standard
11 SPI flash driver which knows how to probe most chips
15 during the transition parent. SPI and SPI flash must be
20 bool "Support sandbox SPI flash device"
26 device. Typically the contents of the emulated SPI flash device is
33 Enable the SPI flash Core support. This will include basic
46 flash is present on the system.
55 flash is present on the system.
[all …]
Dfsl_espi_spl.c17 struct spi_flash *flash; in fsl_spi_spl_load_image() local
19 flash = spi_flash_probe(CONFIG_ENV_SPI_BUS, CONFIG_ENV_SPI_CS, in fsl_spi_spl_load_image()
21 if (flash == NULL) { in fsl_spi_spl_load_image()
26 spi_flash_read(flash, offs, size, vdst); in fsl_spi_spl_load_image()
41 struct spi_flash *flash; in fsl_spi_boot() local
43 flash = spi_flash_probe(CONFIG_ENV_SPI_BUS, CONFIG_ENV_SPI_CS, in fsl_spi_boot()
45 if (flash == NULL) { in fsl_spi_boot()
57 buf = malloc(flash->page_size); in fsl_spi_boot()
62 memset(buf, 0, flash->page_size); in fsl_spi_boot()
64 spi_flash_read(flash, CONFIG_CFG_DATA_SECTOR, in fsl_spi_boot()
[all …]
Dsf_mtd.c18 struct spi_flash *flash = mtd->priv; in spi_flash_mtd_erase() local
21 if (!flash) in spi_flash_mtd_erase()
26 err = spi_flash_erase(flash, instr->addr, instr->len); in spi_flash_mtd_erase()
42 struct spi_flash *flash = mtd->priv; in spi_flash_mtd_read() local
45 if (!flash) in spi_flash_mtd_read()
48 err = spi_flash_read(flash, from, len, buf); in spi_flash_mtd_read()
58 struct spi_flash *flash = mtd->priv; in spi_flash_mtd_write() local
61 if (!flash) in spi_flash_mtd_write()
64 err = spi_flash_write(flash, to, len, buf); in spi_flash_mtd_write()
84 int spi_flash_mtd_register(struct spi_flash *flash) in spi_flash_mtd_register() argument
[all …]
/external/u-boot/include/
Dspi_flash.h114 void spi_flash_free(struct spi_flash *flash);
116 static inline int spi_flash_read(struct spi_flash *flash, u32 offset, in spi_flash_read() argument
119 return spi_flash_read_dm(flash->dev, offset, len, buf); in spi_flash_read()
122 static inline int spi_flash_write(struct spi_flash *flash, u32 offset, in spi_flash_write() argument
125 return spi_flash_write_dm(flash->dev, offset, len, buf); in spi_flash_write()
128 static inline int spi_flash_erase(struct spi_flash *flash, u32 offset, in spi_flash_erase() argument
131 return spi_flash_erase_dm(flash->dev, offset, len); in spi_flash_erase()
145 void spi_flash_free(struct spi_flash *flash);
147 static inline int spi_flash_read(struct spi_flash *flash, u32 offset, in spi_flash_read() argument
150 struct mtd_info *mtd = &flash->mtd; in spi_flash_read()
[all …]
/external/u-boot/board/imgtec/malta/
Dflash-malta-boot.tcl14 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/cmd/
Dsf.c23 static struct spi_flash *flash; variable
57 if (round_up_len && flash->sector_size > 0) in sf_parse_len_arg()
58 *len = ROUND(len_arg, flash->sector_size); in sf_parse_len_arg()
129 flash = NULL; in do_spi_flash_probe()
137 flash = dev_get_uclass_priv(new); in do_spi_flash_probe()
139 if (flash) in do_spi_flash_probe()
140 spi_flash_free(flash); in do_spi_flash_probe()
143 flash = new; in do_spi_flash_probe()
150 flash = new; in do_spi_flash_probe()
170 static const char *spi_flash_update_block(struct spi_flash *flash, u32 offset, in spi_flash_update_block() argument
[all …]
Djffs2.c264 flash_info_t *flash; in get_part_sector_size_nor() local
266 flash = &flash_info[id->num]; in get_part_sector_size_nor()
268 start_phys = flash->start[0] + part->offset; in get_part_sector_size_nor()
271 for (i = 0; i < flash->sector_count; i++) { in get_part_sector_size_nor()
272 if (flash->start[i] >= end_phys) in get_part_sector_size_nor()
275 if (flash->start[i] >= start_phys) { in get_part_sector_size_nor()
276 if (i == flash->sector_count - 1) { in get_part_sector_size_nor()
277 size = flash->start[0] + flash->size - flash->start[i]; in get_part_sector_size_nor()
279 size = flash->start[i+1] - flash->start[i]; in get_part_sector_size_nor()
/external/u-boot/common/spl/
Dspl_spi.c25 struct spi_flash *flash, in spi_load_image_os() argument
31 spi_flash_read(flash, CONFIG_SYS_SPI_KERNEL_OFFS, sizeof(*header), 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()
66 unsigned int __weak spl_spi_get_uboot_offs(struct spi_flash *flash) in spl_spi_get_uboot_offs() argument
81 struct spi_flash *flash; in spl_spi_load_image() local
90 flash = spi_flash_probe(CONFIG_SF_DEFAULT_BUS, in spl_spi_load_image()
94 if (!flash) { in spl_spi_load_image()
[all …]
/external/u-boot/doc/board/atmel/
Dat91ek.rst24 - Nand flash
28 make at91sam9260ek_nandflash_config - use nand flash
29 make at91sam9260ek_dataflash_cs0_config - use data flash (spi cs0)
30 make at91sam9260ek_dataflash_cs1_config - use data flash (spi cs1)
48 - Nand flash
52 make at91sam9261ek_nandflash_config - use nand flash
53 make at91sam9261ek_dataflash_cs0_config - use data flash (spi cs0)
54 make at91sam9261ek_dataflash_cs3_config - use data flash (spi cs3)
70 - Nand flash
71 - Nor flash (not populate by default)
[all …]
/external/u-boot/drivers/mtd/
DKconfig17 flash, RAM and similar chips, often used for solid state file
21 bool "Enable parallel NOR flash support"
23 Enable support for parallel NOR flash.
29 AMD and other flash manufactures. It provides a universal method
30 for probing the capabilities of flash devices. If you wish to
40 AMD and other flash manufactures. It provides a universal method
41 for probing the capabilities of flash devices. If you wish to
47 bool "Enable buffered writes to flash"
50 Use buffered writes to flash.
57 in the drivers directory. The driver exports CFI flash
[all …]
Daltera_qspi.c143 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/doc/device-tree-bindings/mtd/
Dmtd-physmap.txt1 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/cmd/mvebu/
DKconfig8 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/board/freescale/c29xpcie/
DREADME13 - 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/doc/SPI/
Dstatus.txt8 - 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.
DREADME.ti_qspi_flash4 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/board/freescale/mpc8313erdb/
DREADME8 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/drivers/spi/
DKconfig11 eeprom and flash memory, codecs and various other controller
49 access the SPI NOR flash on platforms embedding this Altera
57 used to access the SPI flash on AE3XX and AE250 platforms embedding
65 to access SPI NOR flash and other SPI peripherals. This driver
90 access the SPI NOR flash on platforms embedding this Broadcom
98 access the SPI NOR flash on platforms embedding these Broadcom
105 be used to access the SPI flash on platforms embedding this
112 used to access the SPI NOR flash on platforms embedding this
125 access the SPI NOR flash on platforms embedding this Designware
132 access the SPI NOR flash on platforms embedding this Samsung
[all …]
/external/u-boot/doc/board/intel/
Dcougarcanyon2.rst18 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
/external/autotest/client/site_tests/desktopui_FlashSanityCheck/
Dcontrol.verify-system-flash6 NAME = 'desktopui_FlashSanityCheck.verify-system-flash'
8 CRITERIA = 'This test will fail if flash causes a segfault.'
17 locally-running webserver to validate that flash doesn't crash the browser.
21 CU_action='verify-system-flash',
22 tag='verify-system-flash')
Dcontrol.verify-component-flash6 NAME = 'desktopui_FlashSanityCheck.verify-component-flash'
8 CRITERIA = 'This test will fail if flash causes a segfault.'
17 locally-running webserver to validate that flash doesn't crash the browser.
21 CU_action='verify-component-flash',
22 tag='verify-component-flash')
/external/u-boot/board/freescale/mpc8349itx/
DREADME11 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/board/freescale/mpc8544ds/
DREADME10 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.
/external/tensorflow/tensorflow/lite/micro/tools/make/targets/bluepill/
Dbluepill.lds17 * increased the flash size to 128K from 64K. While the bluepill board has
18 64K of flash, our tests currently need more than that. Changing the flash
26 * 0x00000000 - 0x07ffffff - aliased to flash or sys memory depending on BOOT jumpers.
49 /* interrupt vector goes to top of flash */
57 /* read only .text and .rodata go to flash */
71 /* read mwrite data needs to be stored in flash but copied to ram */

12345678910>>...35