Home
last modified time | relevance | path

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

12345678910>>...42

/openbmc/u-boot/drivers/mtd/spi/
H A 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 …]
H A Dfsl_espi_spl.c16 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 …]
H A 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 …]
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
33 Enable the legacy SPI flash support. This will include basic
46 flash is present on the system.
55 flash is present on the system.
[all …]
/openbmc/u-boot/drivers/spi/
H A Daspeed_spi.c278 struct aspeed_spi_flash *flash,
282 static u32 aspeed_spi_flash_to_addr(struct aspeed_spi_flash *flash,
360 struct aspeed_spi_flash *flash, in aspeed_spi_fmc_checksum() argument
363 u32 flash_addr = (u32)flash->ahb_base + 0x10000; in aspeed_spi_fmc_checksum()
394 struct aspeed_spi_flash *flash, in aspeed_g6_spi_fmc_checksum() argument
397 u32 flash_addr = (u32)flash->ahb_base; in aspeed_g6_spi_fmc_checksum()
432 struct aspeed_spi_flash *flash, in aspeed_spi_read_checksum() argument
436 return aspeed_g6_spi_fmc_checksum(priv, flash, div, delay); in aspeed_spi_read_checksum()
444 return aspeed_spi_fmc_checksum(priv, flash, div, delay); in aspeed_spi_read_checksum()
502 struct aspeed_spi_flash *flash) in aspeed_spi_timing_calibration() argument
[all …]
/openbmc/u-boot/board/imgtec/malta/
H A 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 …]
/openbmc/u-boot/include/
H A Dspi_flash.h118 void spi_flash_free(struct spi_flash *flash);
120 static inline int spi_flash_read(struct spi_flash *flash, u32 offset, in spi_flash_read() argument
123 return spi_flash_read_dm(flash->dev, offset, len, buf); in spi_flash_read()
126 static inline int spi_flash_write(struct spi_flash *flash, u32 offset, in spi_flash_write() argument
129 return spi_flash_write_dm(flash->dev, offset, len, buf); in spi_flash_write()
132 static inline int spi_flash_erase(struct spi_flash *flash, u32 offset, in spi_flash_erase() argument
135 return spi_flash_erase_dm(flash->dev, offset, len); in spi_flash_erase()
138 static inline int spi_flash_ctrl_wlock(struct spi_flash *flash, in spi_flash_ctrl_wlock() argument
141 return spi_flash_ctrl_wlock_dm(flash->dev, offset, len); in spi_flash_ctrl_wlock()
144 static inline int spi_flash_ctrl_wunlock(struct spi_flash *flash, in spi_flash_ctrl_wunlock() argument
[all …]
/openbmc/phosphor-ipmi-flash/
H A Dipmi_flash.md15 - `open(/flash/active/image)` returns false -- file cannot be opened.
16 - `open(/flash/active/hash)` returns false -- file cannot be opened.
42 - `open(/flash/image)`
43 - `open(/flash/tarball)`
44 - `open(/flash/hash)`
45 - `open(/flash/verify)`
46 - `open(/flash/update)`
52 - `open(/flash/*)` returns false because `fileOpen() == true`
54 - `close(/flash/*)` triggers `state -> verificationPending`
56 - `commit(/flash/*)` returns false
[all …]
/openbmc/skeleton/flashbios/
H A Dflash_bios_obj.c27 update(Flash* flash, const char* obj_path) in update() argument
34 const gchar* name = flash_get_flasher_name(flash); in update()
35 const gchar* inst = flash_get_flasher_instance(flash); in update()
36 const gchar* filename = flash_get_filename(flash); in update()
113 on_update_via_tftp(Flash *flash, in on_update_via_tftp() argument
121 flash_complete_update_via_tftp(flash,invocation); in on_update_via_tftp()
130 flash_set_filename(flash,write_file); in on_update_via_tftp()
131 flash_emit_download(flash,url,write_file); in on_update_via_tftp()
132 flash_set_status(flash,"Downloading"); in on_update_via_tftp()
138 on_error(Flash *flash, in on_error() argument
[all …]
/openbmc/openbmc/meta-phosphor/classes/
H A Dphosphor-software-manager-ubi-fs.bbclass16 obmc-flash-bmc-ubirw.service \
17 obmc-flash-bmc-ubiro@.service \
18 obmc-flash-bmc-ubirw-remove.service \
19 obmc-flash-bmc-ubiro-remove@.service \
20 obmc-flash-bmc-ubiremount.service \
21 obmc-flash-bmc-updateubootvars@.service \
22 obmc-flash-bmc-cleanup.service \
23 obmc-flash-bmc-mirroruboot.service \
30 DISTROOVERRIDES .= ":flash-${FLASH_SIZE}"
32 BMC_RW_SIZE:flash-131072 = "0x2000000"
[all …]
/openbmc/phosphor-ipmi-flash/bmc/firmware-handler/test/
H A Dfirmware_json_unittest.cpp24 "blob" : "/flash/image", in TEST()
32 "unit" : "phosphor-ipmi-flash-bmc-prepare.target" in TEST()
36 "unit" : "phosphor-ipmi-flash-bmc-verify.target", in TEST()
52 "blob" : "/flash/image", in TEST()
60 "unit" : "phosphor-ipmi-flash-bmc-prepare.target" in TEST()
64 "unit" : "phosphor-ipmi-flash-bmc-verify.target", in TEST()
81 "blob" : "/flash/image", in TEST()
89 "unit" : "phosphor-ipmi-flash-bmc-prepare.target" in TEST()
93 "unit" : "phosphor-ipmi-flash-bmc-verify.target", in TEST()
110 "blob" : "/flash/image", in TEST()
[all …]
/openbmc/u-boot/cmd/
H A Dsf.c21 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 …]
/openbmc/u-boot/common/spl/
H A 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()
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()
100 if (spl_start_uboot() || spi_load_image_os(spl_image, flash, header)) in spl_spi_load_image()
[all …]
/openbmc/openbmc/meta-fii/meta-kudo/recipes-kudo/kudo-fw-utility/
H A Dkudo-cpld-update.bb12 DEPENDS += "phosphor-ipmi-flash"
16 FILES:${PN} += "${datadir}/phosphor-ipmi-flash/config-bmccpld.json"
17 FILES:${PN} += "${datadir}/phosphor-ipmi-flash/config-mbcpld.json"
20 file://phosphor-ipmi-flash-bmccpld-update.service \
21 file://phosphor-ipmi-flash-mbcpld-update.service \
28 phosphor-ipmi-flash-bmccpld-update.service \
29 phosphor-ipmi-flash-mbcpld-update.service \
33 install -d ${D}${datadir}/phosphor-ipmi-flash
34 install -m 0644 ${UNPACKDIR}/config-bmccpld.json ${D}${datadir}/phosphor-ipmi-flash
35 install -m 0644 ${UNPACKDIR}/config-mbcpld.json ${D}${datadir}/phosphor-ipmi-flash
[all …]
H A Dkudo-scp-update.bb12 DEPENDS += "phosphor-ipmi-flash"
16 FILES:${PN} += "${datadir}/phosphor-ipmi-flash/config-scp.json"
17 FILES:${PN} += "${datadir}/phosphor-ipmi-flash/config-scpback.json"
20 file://phosphor-ipmi-flash-scp-update.service \
21 file://phosphor-ipmi-flash-scpback-update.service \
28 phosphor-ipmi-flash-scp-update.service \
29 phosphor-ipmi-flash-scpback-update.service \
33 install -d ${D}${datadir}/phosphor-ipmi-flash
34 install -m 0644 ${UNPACKDIR}/config-scp.json ${D}${datadir}/phosphor-ipmi-flash
35 install -m 0644 ${UNPACKDIR}/config-scpback.json ${D}${datadir}/phosphor-ipmi-flash
[all …]
/openbmc/u-boot/arch/arm/mach-aspeed/ast2600/
H A Du-boot-spl.lds9 flash : ORIGIN = CONFIG_SPL_TEXT_BASE,
27 } > flash
30 .data : { *(SORT_BY_ALIGNMENT(.data*)) } > flash
33 .rodata : { *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) } > flash
39 } > flash
52 } > flash
56 } > flash
61 } > flash
66 .end_align : { *(.end_align*) } > flash
/openbmc/u-boot/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 …]
/openbmc/openbmc/meta-openpower/classes/
H A Dopenpower-software-manager-ubi.bbclass4 obmc-flash-bios-ubiattach.service \
5 obmc-flash-bios-ubimount@.service \
6 obmc-flash-bios-ubiumount-ro@.service \
7 obmc-flash-bios-ubiumount-rw@.service \
8 obmc-flash-bios-ubipatch.service \
9 obmc-flash-bios-ubiremount.service \
10 obmc-flash-bios-cleanup.service \
/openbmc/u-boot/drivers/mtd/
H A DKconfig11 flash, RAM and similar chips, often used for solid state file
15 bool "Enable parallel NOR flash support"
17 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 …]
/openbmc/openbmc/meta-quanta/meta-gbs/recipes-gbs/gbs-bios-update/
H A Dgbs-bios-update.bb11 DEPENDS += "phosphor-ipmi-flash"
16 file://phosphor-ipmi-flash-bios-verify.service \
17 file://phosphor-ipmi-flash-bios-update.service \
21 FILES:${PN} += "${datadir}/phosphor-ipmi-flash/config-bios.json"
29 … install -m 0644 ${UNPACKDIR}/phosphor-ipmi-flash-bios-verify.service ${D}${systemd_system_unitdir}
30 … install -m 0644 ${UNPACKDIR}/phosphor-ipmi-flash-bios-update.service ${D}${systemd_system_unitdir}
32 install -d ${D}${datadir}/phosphor-ipmi-flash
33 install -m 0644 ${UNPACKDIR}/config-bios.json ${D}${datadir}/phosphor-ipmi-flash
38 SYSTEMD_SERVICE:${PN} = "phosphor-ipmi-flash-bios-verify.service phosphor-ipmi-flash-bios-update.se…
/openbmc/openbmc/meta-asrock/meta-e3c256d4i/recipes-asrock/packagegroups/
H A Dpackagegroup-asrock-apps.bb8 ${PN}-flash \
12 PROVIDES += "virtual/obmc-flash-mgmt"
15 RPROVIDES:${PN}-flash += "virtual-obmc-flash-mgmt"
18 SUMMARY:${PN}-flash = "ASRock Flash"
19 RDEPENDS:${PN}-flash = " \
20 phosphor-ipmi-flash \
/openbmc/openbmc/meta-asrock/meta-spc621d8hm3/recipes-asrock/packagegroups/
H A Dpackagegroup-asrock-apps.bb8 ${PN}-flash \
12 PROVIDES += "virtual/obmc-flash-mgmt"
15 RPROVIDES:${PN}-flash += "virtual-obmc-flash-mgmt"
18 SUMMARY:${PN}-flash = "ASRock Flash"
19 RDEPENDS:${PN}-flash = " \
20 phosphor-ipmi-flash \
/openbmc/openbmc/meta-asrock/meta-x570d4u/recipes-asrock/packagegroups/
H A Dpackagegroup-asrock-apps.bb8 ${PN}-flash \
12 PROVIDES += "virtual/obmc-flash-mgmt"
15 RPROVIDES:${PN}-flash += "virtual-obmc-flash-mgmt"
18 SUMMARY:${PN}-flash = "ASRock Flash"
19 RDEPENDS:${PN}-flash = " \
20 phosphor-ipmi-flash \
/openbmc/openbmc/meta-asrock/meta-e3c246d4i/recipes-asrock/packagegroups/
H A Dpackagegroup-asrock-apps.bb8 ${PN}-flash \
12 PROVIDES += "virtual/obmc-flash-mgmt"
15 RPROVIDES:${PN}-flash += "virtual-obmc-flash-mgmt"
18 SUMMARY:${PN}-flash = "ASRock Flash"
19 RDEPENDS:${PN}-flash = " \
20 phosphor-ipmi-flash \
/openbmc/openbmc/meta-asrock/meta-romed8hm3/recipes-asrock/packagegroups/
H A Dpackagegroup-asrock-apps.bb8 ${PN}-flash \
12 PROVIDES += "virtual/obmc-flash-mgmt"
15 RPROVIDES:${PN}-flash += "virtual-obmc-flash-mgmt"
18 SUMMARY:${PN}-flash = "ASRock Flash"
19 RDEPENDS:${PN}-flash = " \
20 phosphor-ipmi-flash \

12345678910>>...42