Home
last modified time | relevance | path

Searched refs:spi_flash (Results 1 – 25 of 63) sorted by relevance

123

/openbmc/u-boot/drivers/mtd/spi/
H A Dsf_dataflash.c118 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 Dsf_probe.c25 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 Dsf_internal.h94 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 Dsf_mtd.c18 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 Dsf-uclass.c54 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 Dfsl_espi_spl.c16 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 Dspi_flash.h114 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 Dmsf2-som.c48 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 Dspl_spi.c25 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 Dbk4r1.dts32 qflash0: spi_flash@0 {
40 qflash1: spi_flash@1 {
/openbmc/u-boot/doc/SPI/
H A Dstatus.txt24 - Runtime detection of spi_flash params, SFDP(if possible)
26 - Need proper cleanups on spi_flash and drivers.
/openbmc/u-boot/configs/
H A Dmscc_servalt_defconfig29 CONFIG_MTDIDS_DEFAULT="nor0=spi_flash"
30 CONFIG_MTDPARTS_DEFAULT="mtdparts=spi_flash:1m(UBoot),256k(Env),256k(Env.bk)"
H A Dmscc_jr2_defconfig33 CONFIG_MTDIDS_DEFAULT="nor0=spi_flash"
34 CONFIG_MTDPARTS_DEFAULT="mtdparts=spi_flash:1m(UBoot),256k(Env),256k(Env.bk)"
H A Dmscc_serval_defconfig30 CONFIG_MTDIDS_DEFAULT="nor0=spi_flash"
31 CONFIG_MTDPARTS_DEFAULT="mtdparts=spi_flash:1m(UBoot),256k(Env),256k(Env.bk)"
H A Dmscc_luton_defconfig39 CONFIG_MTDIDS_DEFAULT="nor0=spi_flash"
40 CONFIG_MTDPARTS_DEFAULT="mtdparts=spi_flash:512k(UBoot),256k(Env),256k(conf),6m@1m(linux)"
H A Dmscc_ocelot_defconfig36 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 Dsf.c21 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 Daspeed_spi.c183 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 Dstm32_qspi.c270 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 Dsh7757lcr.c33 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 Ddfu_sf.c68 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 Dboard.c84 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 Dsh7752evb.c177 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 Dsh7753evb.c193 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 Datmel,at91-pio4-pinctrl.txt44 spi_flash@0 {

123