/openbmc/u-boot/drivers/mtd/spi/ |
H A D | sf_dataflash.c | 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() 192 offset += spi_flash->page_size; in spi_dataflash_erase() [all …]
|
H A D | sf_probe.c | 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() 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() 142 struct spi_flash *flash = dev_get_uclass_priv(dev); in spi_flash_std_ctrl_wlock() 149 struct spi_flash *flash = dev_get_uclass_priv(dev); in spi_flash_std_ctrl_wunlock() [all …]
|
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 | sf_mtd.c | 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()
|
H A D | sf-uclass.c | 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() 116 UCLASS_DRIVER(spi_flash) = { 120 .per_device_auto_alloc_size = sizeof(struct spi_flash),
|
H A D | fsl_espi_spl.c | 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/common/spl/ |
H A D | spl_spi.c | 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/arch/arm/dts/ |
H A D | bk4r1.dts | 32 qflash0: spi_flash@0 { 40 qflash1: spi_flash@1 {
|
/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/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_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_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_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/cmd/ |
H A D | sf.c | 21 static struct spi_flash *flash; 93 struct spi_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() 211 static int spi_flash_update(struct spi_flash *flash, u32 offset, in spi_flash_update() 439 static int spi_flash_test(struct spi_flash *flash, uint8_t *buf, ulong len, in spi_flash_test()
|
/openbmc/u-boot/drivers/spi/ |
H A D | aspeed_spi.c | 183 struct spi_flash *spi; /* Associated SPI Flash device */ 1641 struct spi_flash *spi_flash = dev_get_uclass_priv(dev); in aspeed_spi_flash_init() local 1646 flash->spi = spi_flash; in aspeed_spi_flash_init() 1653 if (!spi_flash->name) in aspeed_spi_flash_init() 1665 spi_flash->name, spi_flash->flags, spi_flash->size, in aspeed_spi_flash_init() 1666 spi_flash->page_size, spi_flash->sector_size, in aspeed_spi_flash_init() 1667 spi_flash->erase_size); in aspeed_spi_flash_init() 1669 spi_flash->erase_opcode, in aspeed_spi_flash_init() 1670 spi_flash->read_opcode, spi_flash->program_opcode, in aspeed_spi_flash_init() 1671 spi_flash->read_dummy, slave->speed); in aspeed_spi_flash_init()
|
H A D | stm32_qspi.c | 270 struct spi_flash *flash) in _stm32_qspi_enable_mmap() 307 struct spi_flash *flash, unsigned int bitlen, in _stm32_qspi_xfer() 516 struct spi_flash *flash; in stm32_qspi_claim_bus() 554 struct spi_flash *flash; in stm32_qspi_xfer()
|
/openbmc/u-boot/board/renesas/sh7757lcr/ |
H A D | sh7757lcr.c | 33 struct spi_flash *spi; in init_pcie_bridge_from_spi() 234 struct spi_flash *spi; in get_sh_eth_mac_raw() 359 struct spi_flash *spi; in do_write_mac()
|
/openbmc/u-boot/drivers/dfu/ |
H A D | dfu_sf.c | 68 static struct spi_flash *parse_dev(char *devstr) in parse_dev() 75 struct spi_flash *dev; in parse_dev()
|
/openbmc/u-boot/board/gardena/smart-gateway-mt7688/ |
H A D | board.c | 84 struct spi_flash *sf; in factory_data_env_config() 207 struct spi_flash *sf; in do_fd_write()
|
/openbmc/u-boot/board/renesas/sh7752evb/ |
H A D | sh7752evb.c | 177 struct spi_flash *spi; in get_sh_eth_mac_raw() 246 struct spi_flash *spi; in do_write_mac()
|
/openbmc/u-boot/board/renesas/sh7753evb/ |
H A D | sh7753evb.c | 193 struct spi_flash *spi; in get_sh_eth_mac_raw() 262 struct spi_flash *spi; in do_write_mac()
|
/openbmc/u-boot/doc/device-tree-bindings/pinctrl/ |
H A D | atmel,at91-pio4-pinctrl.txt | 44 spi_flash@0 {
|