Home
last modified time | relevance | path

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

12345678910>>...18

/rk3399_rockchip-uboot/drivers/mtd/spi/
H A Dspi_flash.c34 static int read_sr(struct spi_flash *flash, u8 *rs) in read_sr() argument
40 ret = spi_flash_read_common(flash, &cmd, 1, rs, 1); in read_sr()
49 static int read_fsr(struct spi_flash *flash, u8 *fsr) in read_fsr() argument
54 ret = spi_flash_read_common(flash, &cmd, 1, fsr, 1); in read_fsr()
63 static int write_sr(struct spi_flash *flash, u8 ws) in write_sr() argument
69 ret = spi_flash_write_common(flash, &cmd, 1, &ws, 1); in write_sr()
79 static int read_cr(struct spi_flash *flash, u8 *rc) in read_cr() argument
85 ret = spi_flash_read_common(flash, &cmd, 1, rc, 1); in read_cr()
94 static int write_cr(struct spi_flash *flash, u8 wc) in write_cr() argument
100 ret = read_sr(flash, &data[0]); in write_cr()
[all …]
H A Dsf_probe.c27 static int spi_flash_probe_slave(struct spi_flash *flash) in spi_flash_probe_slave() argument
29 struct spi_slave *spi = flash->spi; in spi_flash_probe_slave()
46 flash->mtd.name = (char *)ofnode_read_string(spi->dev->node, "label"); in spi_flash_probe_slave()
49 ret = spi_nor_scan(flash); in spi_flash_probe_slave()
54 ret = spi_flash_mtd_register(flash); in spi_flash_probe_slave()
67 struct spi_flash *flash; in spi_flash_probe() local
74 flash = calloc(1, sizeof(*flash)); in spi_flash_probe()
75 if (!flash) { in spi_flash_probe()
80 flash->spi = bus; in spi_flash_probe()
81 if (spi_flash_probe_slave(flash)) { in spi_flash_probe()
[all …]
H A 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 …]
H A DKconfig4 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
32 Enable the SPI flash Core support. This will include basic
45 flash is present on the system.
54 flash is present on the system.
[all …]
H A Dsf_mtd.c19 struct spi_flash *flash = mtd->priv; in spi_flash_mtd_erase() local
22 if (!flash) in spi_flash_mtd_erase()
27 err = spi_flash_erase(flash, instr->addr, instr->len); 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()
85 int spi_flash_mtd_register(struct spi_flash *flash) in spi_flash_mtd_register() argument
[all …]
/rk3399_rockchip-uboot/drivers/mtd/nand/spi/
H A DKconfig13 bool "GIGADEVICE SPI flash support"
16 Add support for various GIGADEVICE SPI Nand flash chips
19 bool "MACRONIX SPI flash support"
22 Add support for various MACRONIX SPI Nand flash chips
25 bool "MICRON SPI flash support"
28 Add support for various MICRON SPI Nand flash chips
31 bool "TOSHIBA SPI flash support"
34 Add support for various TOSHIBA SPI Nand flash chips
37 bool "WINBOND SPI flash support"
40 Add support for various WINBOND SPI Nand flash chips
[all …]
/rk3399_rockchip-uboot/board/imgtec/malta/
H A Dflash-malta-boot.tcl16 flash device sharp_16x32_be;
19 flash device sharp_16x32;
22 flash clear all;
23 flash set 0xBE000000..0xBE0FFFFF
24 flash erase sector 0xbe000000;
25 flash erase sector 0xbe020000;
26 flash erase sector 0xbe040000;
27 flash erase sector 0xbe060000;
28 flash erase sector 0xbe080000;
29 flash erase sector 0xbe0a0000;
[all …]
/rk3399_rockchip-uboot/include/
H A 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 …]
/rk3399_rockchip-uboot/cmd/
H A Dsf.c22 static struct spi_flash *flash; variable
56 if (round_up_len && flash->sector_size > 0) in sf_parse_len_arg()
57 *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 …]
H A Djffs2.c270 flash_info_t *flash; in get_part_sector_size_nor() local
272 flash = &flash_info[id->num]; in get_part_sector_size_nor()
274 start_phys = flash->start[0] + part->offset; in get_part_sector_size_nor()
277 for (i = 0; i < flash->sector_count; i++) { in get_part_sector_size_nor()
278 if (flash->start[i] >= end_phys) in get_part_sector_size_nor()
281 if (flash->start[i] >= start_phys) { in get_part_sector_size_nor()
282 if (i == flash->sector_count - 1) { in get_part_sector_size_nor()
283 size = flash->start[0] + flash->size - flash->start[i]; in get_part_sector_size_nor()
285 size = flash->start[i+1] - flash->start[i]; in get_part_sector_size_nor()
/rk3399_rockchip-uboot/common/spl/
H A Dspl_spi.c26 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()
42 spi_flash_read(flash, CONFIG_SYS_SPI_KERNEL_OFFS, 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()
76 struct spi_flash *flash; local
85 flash = spi_flash_probe(CONFIG_SF_DEFAULT_BUS,
89 if (!flash) {
104 if (spl_start_uboot() || spi_load_image_os(spl_image, flash, header))
[all …]
/rk3399_rockchip-uboot/doc/
H A DREADME.at9123 - 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 …]
H A DREADME.malta3 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
/rk3399_rockchip-uboot/board/Arcturus/ucp1020/
H A Dcmd_arc.c40 static struct spi_flash *flash; variable
76 flash = spi_flash_probe(CONFIG_ENV_SPI_BUS, CONFIG_ENV_SPI_CS, in set_arc_product()
83 if (spi_flash_write(flash, FIRM_ADDR1, sizeof(smac), smac)) { in set_arc_product()
87 if (spi_flash_write(flash, FIRM_ADDR2, sizeof(smac), smac)) { in set_arc_product()
92 if (spi_flash_write(flash, FIRM_ADDR3, sizeof(smac), smac)) { in set_arc_product()
97 if (spi_flash_write(flash, FIRM_ADDR4, sizeof(smac), smac)) { in set_arc_product()
115 flash = spi_flash_probe(CONFIG_ENV_SPI_BUS, CONFIG_ENV_SPI_CS, in get_arc_info()
118 if (spi_flash_read(flash, FIRM_ADDR1, sizeof(smac), smac)) { in get_arc_info()
120 if (spi_flash_read(flash, FIRM_ADDR2, sizeof(smac), smac)) { in get_arc_info()
122 if (spi_flash_read(flash, FIRM_ADDR3, sizeof(smac), in get_arc_info()
[all …]
/rk3399_rockchip-uboot/cmd/mvebu/
H A 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"
/rk3399_rockchip-uboot/doc/SPI/
H A 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.
H A 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.
/rk3399_rockchip-uboot/doc/device-tree-bindings/mtd/
H A 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 …]
/rk3399_rockchip-uboot/board/freescale/c29xpcie/
H A 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 …]
/rk3399_rockchip-uboot/board/lego/ev3/
H A DREADME5 on the davinci da850 evm. The EV3 has a 16MB spi flash and a SDHC microSD card
12 of the spi flash memory. Using the default configuration, u-boot will check to
15 the FAT partition. Otherwise, it will load a kernel and rootfs from the flash.
16 The kernel must be stored at address 0x50000 on the flash and have a maximum
18 flash and have a maximum size of 9.3MiB. The flash starting at 0xCB0000 is
21 Writing image to flash
24 The EEPROM contains a program for uploading an image file to the flash memory.
31 to the flash. If you are not using a microSD card, you will need to create an
/rk3399_rockchip-uboot/board/freescale/mpc8313erdb/
H A 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:
/rk3399_rockchip-uboot/drivers/mtd/
H A DKconfig11 flash, RAM and similar chips, often used for solid state file
28 bool "Enable parallel NOR flash support"
30 Enable support for parallel NOR flash.
42 AMD and other flash manufactures. It provides a universal method
43 for probing the capabilities of flash devices. If you wish to
53 AMD and other flash manufactures. It provides a universal method
54 for probing the capabilities of flash devices. If you wish to
63 This enables access to Altera EPCQ/EPCS flash chips using the
65 NOR flash to parallel flash interface. Please find details on the
72 This enables access to Microchip PIC32 internal non-CFI flash
H A Daltera_qspi.c144 u32 *flash, *last; in altera_qspi_erase() local
157 flash = pdata->base + addr; in altera_qspi_erase()
160 while (flash < last) { in altera_qspi_erase()
161 if (readl(flash) != 0xffffffff) in altera_qspi_erase()
163 flash++; in altera_qspi_erase()
165 if (flash < last) { in altera_qspi_erase()
310 flash_info_t *flash = &flash_info[0]; in altera_qspi_probe() local
336 flash->mtd = mtd; in altera_qspi_probe()
337 flash->size = mtd->size; in altera_qspi_probe()
338 flash->sector_count = mtd->size / mtd->erasesize; in altera_qspi_probe()
[all …]
/rk3399_rockchip-uboot/drivers/spi/
H A DKconfig32 access the SPI NOR flash on platforms embedding this Altera
40 used to access the SPI flash on AE3XX and AE250 platforms embedding
48 to access SPI NOR flash and other SPI peripherals. This driver
65 access the SPI NOR flash on platforms embedding this Broadcom
73 access the SPI NOR flash on platforms embedding these Broadcom
80 be used to access the SPI flash on platforms embedding this
87 used to access the SPI NOR flash on platforms embedding this
94 access the SPI NOR flash on platforms embedding this Designware
101 access the SPI NOR flash on platforms embedding this Samsung
108 access the SPI NOR flash and SPI Data flash on platforms embedding
[all …]
/rk3399_rockchip-uboot/drivers/mtd/nand/
H A DKconfig5 bool "Mtd Nand BBT using flash management strategy"
8 This is a simple flash BBT management strategy for Nand devices.
10 Say Y when you want to use BBT in flash.

12345678910>>...18