| /openbmc/u-boot/drivers/mtd/spi/ |
| H A D | sf_probe.c | 15 #include <spi_flash.h> 25 static int spi_flash_probe_slave(struct spi_flash *flash) in spi_flash_probe_slave() 57 struct spi_flash *spi_flash_probe(unsigned int busnum, unsigned int cs, in spi_flash_probe() 61 struct spi_flash *flash; in spi_flash_probe() 70 debug("SF: Failed to allocate spi_flash\n"); in spi_flash_probe() 84 void spi_flash_free(struct spi_flash *flash) in spi_flash_free() 98 struct spi_flash *flash = dev_get_uclass_priv(dev); in spi_flash_std_read() 108 struct spi_flash *flash = dev_get_uclass_priv(dev); in spi_flash_std_write() 117 struct spi_flash *flash = dev_get_uclass_priv(dev); in spi_flash_std_erase() 135 struct spi_flash *flash = dev_get_uclass_priv(dev); in spi_flash_std_get_sw_write_prot() [all …]
|
| H A D | sf_dataflash.c | 14 #include <spi_flash.h> 118 struct spi_flash *spi_flash; in spi_dataflash_erase() local 126 spi_flash = dev_get_uclass_priv(dev); in spi_dataflash_erase() 127 spi = spi_flash->spi; in spi_dataflash_erase() 129 blocksize = spi_flash->page_size << 3; in spi_dataflash_erase() 136 div_u64_rem(len, spi_flash->page_size, &rem); in spi_dataflash_erase() 139 dev->name, len, spi_flash->page_size); in spi_dataflash_erase() 142 div_u64_rem(offset, spi_flash->page_size, &rem); in spi_dataflash_erase() 145 dev->name, offset, spi_flash->page_size); in spi_dataflash_erase() 162 pageaddr = div_u64(offset, spi_flash->page_size); in spi_dataflash_erase() [all …]
|
| H A D | sf-uclass.c | 9 #include <spi_flash.h> 54 struct spi_flash *spi_flash_probe(unsigned int bus, unsigned int cs, in spi_flash_probe() 65 void spi_flash_free(struct spi_flash *flash) in spi_flash_free() 80 str = "spi_flash"; in spi_flash_probe_bus_cs() 84 snprintf(name, sizeof(name), "spi_flash@%d:%d", busnum, cs); in spi_flash_probe_bus_cs() 116 UCLASS_DRIVER(spi_flash) = { 118 .name = "spi_flash", 120 .per_device_auto_alloc_size = sizeof(struct spi_flash),
|
| H A D | Kconfig | 12 include/spi_flash.h, but is currently fully compatible 28 config SPI_FLASH config 41 depends on SPI_FLASH || DM_SPI_FLASH 50 depends on SPI_FLASH || DM_SPI_FLASH 59 depends on SPI_FLASH || DM_SPI_FLASH 68 depends on SPI_FLASH || DM_SPI_FLASH 75 if SPI_FLASH 153 depends on SPI_FLASH 168 depends on SPI_FLASH && DM_SPI_FLASH 183 depends on SPI_FLASH
|
| H A D | sf_mtd.c | 10 #include <spi_flash.h> 18 struct spi_flash *flash = mtd->priv; in spi_flash_mtd_erase() 42 struct spi_flash *flash = mtd->priv; in spi_flash_mtd_read() 58 struct spi_flash *flash = mtd->priv; in spi_flash_mtd_write() 84 int spi_flash_mtd_register(struct spi_flash *flash) in spi_flash_mtd_register() 142 * spi_flash object from being destroyed when del_mtd_device() fails. in spi_flash_mtd_unregister() 145 …printf("Failed to unregister MTD %s and the spi_flash object is going away: you're in deep trouble… in spi_flash_mtd_unregister()
|
| H A D | sf_internal.h | 94 int spi_flash_cmd_get_sw_write_prot(struct spi_flash *flash); 96 int spi_flash_wlock_by_host_ctrl(struct spi_flash *flash, 98 int spi_flash_wunlock_by_host_ctrl(struct spi_flash *flash, 104 int spi_flash_mtd_register(struct spi_flash *flash);
|
| H A D | fsl_espi_spl.c | 7 #include <spi_flash.h> 16 struct spi_flash *flash; in fsl_spi_spl_load_image() 40 struct spi_flash *flash; in fsl_spi_boot()
|
| /openbmc/u-boot/include/ |
| H A D | spi_flash.h | 114 struct spi_flash *spi_flash_probe(unsigned int bus, unsigned int cs, 118 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() 126 static inline int spi_flash_write(struct spi_flash *flash, u32 offset, in spi_flash_write() 132 static inline int spi_flash_erase(struct spi_flash *flash, u32 offset, in spi_flash_erase() 138 static inline int spi_flash_ctrl_wlock(struct spi_flash *flash, in spi_flash_ctrl_wlock() 144 static inline int spi_flash_ctrl_wunlock(struct spi_flash *flash, in spi_flash_ctrl_wunlock() 158 struct spi_flash *spi_flash_probe(unsigned int bus, unsigned int cs, 161 void spi_flash_free(struct spi_flash *flash); 163 static inline int spi_flash_read(struct spi_flash *flash, u32 offset, in spi_flash_read() [all …]
|
| /openbmc/qemu/hw/arm/ |
| H A D | msf2-som.c | 48 DeviceState *spi_flash; in emcraft_sf2_s2s010_init() local 85 spi_flash = qdev_new("s25sl12801"); /* Spansion S25FL128SDPBHICO */ in emcraft_sf2_s2s010_init() 86 qdev_prop_set_uint8(spi_flash, "spansion-cr2nv", 1); in emcraft_sf2_s2s010_init() 88 qdev_prop_set_drive_err(spi_flash, "drive", in emcraft_sf2_s2s010_init() 91 qdev_realize_and_unref(spi_flash, spi_bus, &error_fatal); in emcraft_sf2_s2s010_init() 92 cs_line = qdev_get_gpio_in_named(spi_flash, SSI_GPIO_CS, 0); in emcraft_sf2_s2s010_init()
|
| /openbmc/u-boot/board/renesas/sh7757lcr/ |
| H A D | sh7757lcr.c | 13 #include <spi_flash.h> 33 struct spi_flash *spi; in init_pcie_bridge_from_spi() 39 printf("%s: spi_flash probe error.\n", __func__); in init_pcie_bridge_from_spi() 50 printf("%s: spi_flash read error.\n", __func__); in init_pcie_bridge_from_spi() 234 struct spi_flash *spi; in get_sh_eth_mac_raw() 239 printf("%s: spi_flash probe error.\n", __func__); in get_sh_eth_mac_raw() 245 printf("%s: spi_flash read error.\n", __func__); in get_sh_eth_mac_raw() 359 struct spi_flash *spi; in do_write_mac() 391 printf("%s: spi_flash probe error.\n", __func__); in do_write_mac() 398 printf("%s: spi_flash erase error.\n", __func__); in do_write_mac() [all …]
|
| /openbmc/u-boot/board/renesas/sh7752evb/ |
| H A D | sh7752evb.c | 13 #include <spi_flash.h> 177 struct spi_flash *spi; in get_sh_eth_mac_raw() 182 printf("%s: spi_flash probe failed.\n", __func__); in get_sh_eth_mac_raw() 188 printf("%s: spi_flash read failed.\n", __func__); in get_sh_eth_mac_raw() 246 struct spi_flash *spi; in do_write_mac() 275 printf("%s: spi_flash probe failed.\n", __func__); in do_write_mac() 282 printf("%s: spi_flash erase failed.\n", __func__); in do_write_mac() 289 printf("%s: spi_flash write failed.\n", __func__); in do_write_mac()
|
| /openbmc/u-boot/common/spl/ |
| H A D | spl_spi.c | 13 #include <spi_flash.h> 25 struct spi_flash *flash, in spi_load_image_os() 56 struct spi_flash *flash = load->dev; in spl_spi_fit_read() 75 struct spi_flash *flash; in spl_spi_load_image()
|
| /openbmc/u-boot/board/renesas/sh7753evb/ |
| H A D | sh7753evb.c | 13 #include <spi_flash.h> 193 struct spi_flash *spi; in get_sh_eth_mac_raw() 198 printf("%s: spi_flash probe failed.\n", __func__); in get_sh_eth_mac_raw() 204 printf("%s: spi_flash read failed.\n", __func__); in get_sh_eth_mac_raw() 262 struct spi_flash *spi; in do_write_mac() 291 printf("%s: spi_flash probe failed.\n", __func__); in do_write_mac() 298 printf("%s: spi_flash erase failed.\n", __func__); in do_write_mac() 305 printf("%s: spi_flash write failed.\n", __func__); in do_write_mac()
|
| /openbmc/u-boot/arch/arm/dts/ |
| H A D | bk4r1.dts | 32 qflash0: spi_flash@0 { 40 qflash1: spi_flash@1 {
|
| /openbmc/u-boot/configs/ |
| H A D | mscc_servalt_defconfig | 29 CONFIG_MTDIDS_DEFAULT="nor0=spi_flash" 30 CONFIG_MTDPARTS_DEFAULT="mtdparts=spi_flash:1m(UBoot),256k(Env),256k(Env.bk)"
|
| H A D | mscc_serval_defconfig | 30 CONFIG_MTDIDS_DEFAULT="nor0=spi_flash" 31 CONFIG_MTDPARTS_DEFAULT="mtdparts=spi_flash:1m(UBoot),256k(Env),256k(Env.bk)"
|
| H A D | mscc_jr2_defconfig | 33 CONFIG_MTDIDS_DEFAULT="nor0=spi_flash" 34 CONFIG_MTDPARTS_DEFAULT="mtdparts=spi_flash:1m(UBoot),256k(Env),256k(Env.bk)"
|
| H A D | mscc_luton_defconfig | 39 CONFIG_MTDIDS_DEFAULT="nor0=spi_flash" 40 CONFIG_MTDPARTS_DEFAULT="mtdparts=spi_flash:512k(UBoot),256k(Env),256k(conf),6m@1m(linux)"
|
| H A D | mscc_ocelot_defconfig | 36 CONFIG_MTDIDS_DEFAULT="nor0=spi_flash" 37 CONFIG_MTDPARTS_DEFAULT="mtdparts=spi_flash:512k(UBoot),256k(Env),256k(conf),15m(linux),15m(linux.b…
|
| /openbmc/u-boot/doc/SPI/ |
| H A D | status.txt | 24 - Runtime detection of spi_flash params, SFDP(if possible) 26 - Need proper cleanups on spi_flash and drivers.
|
| /openbmc/u-boot/drivers/dfu/ |
| H A D | dfu_sf.c | 12 #include <spi_flash.h> 68 static struct spi_flash *parse_dev(char *devstr) in parse_dev() 75 struct spi_flash *dev; in parse_dev()
|
| /openbmc/u-boot/drivers/spi/ |
| H A D | spi-emul-uclass.c | 9 #include <spi_flash.h>
|
| /openbmc/u-boot/arch/x86/cpu/broadwell/ |
| H A D | Kconfig | 17 imply SPI_FLASH
|
| /openbmc/u-boot/arch/x86/cpu/braswell/ |
| H A D | Kconfig | 21 imply SPI_FLASH
|
| /openbmc/u-boot/arch/x86/cpu/baytrail/ |
| H A D | Kconfig | 22 imply SPI_FLASH
|