Home
last modified time | relevance | path

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

12

/external/u-boot/drivers/mtd/spi/
Dsf_dataflash.c117 struct spi_flash *spi_flash; in spi_dataflash_erase() local
125 spi_flash = dev_get_uclass_priv(dev); in spi_dataflash_erase()
126 spi = spi_flash->spi; in spi_dataflash_erase()
128 blocksize = spi_flash->page_size << 3; in spi_dataflash_erase()
135 div_u64_rem(len, spi_flash->page_size, &rem); in spi_dataflash_erase()
138 dev->name, len, spi_flash->page_size); in spi_dataflash_erase()
141 div_u64_rem(offset, spi_flash->page_size, &rem); in spi_dataflash_erase()
144 dev->name, offset, spi_flash->page_size); in spi_dataflash_erase()
161 pageaddr = div_u64(offset, spi_flash->page_size); in spi_dataflash_erase()
191 offset += spi_flash->page_size; in spi_dataflash_erase()
[all …]
Dsf_internal.h105 int sst_write_wp(struct spi_flash *flash, u32 offset, size_t len,
107 int sst_write_bp(struct spi_flash *flash, u32 offset, size_t len,
170 int spi_flash_cmd_erase_ops(struct spi_flash *flash, u32 offset, size_t len);
173 int stm_lock(struct spi_flash *flash, u32 ofs, size_t len);
176 int stm_unlock(struct spi_flash *flash, u32 ofs, size_t len);
179 int stm_is_locked(struct spi_flash *flash, u32 ofs, size_t len);
182 static inline int spi_flash_cmd_write_enable(struct spi_flash *flash) in spi_flash_cmd_write_enable()
188 static inline int spi_flash_cmd_write_disable(struct spi_flash *flash) in spi_flash_cmd_write_disable()
201 int spi_flash_write_common(struct spi_flash *flash, const u8 *cmd,
209 int spi_flash_cmd_write_ops(struct spi_flash *flash, u32 offset,
[all …]
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()
106 struct spi_flash *flash = dev_get_uclass_priv(dev); in spi_flash_std_write()
122 struct spi_flash *flash = dev_get_uclass_priv(dev); in spi_flash_std_erase()
131 struct spi_flash *flash; in spi_flash_std_probe()
156 .priv_auto_alloc_size = sizeof(struct spi_flash),
Dspi_flash.c31 static int read_sr(struct spi_flash *flash, u8 *rs) in read_sr()
46 static int read_fsr(struct spi_flash *flash, u8 *fsr) in read_fsr()
60 static int write_sr(struct spi_flash *flash, u8 ws) in write_sr()
76 static int read_cr(struct spi_flash *flash, u8 *rc) in read_cr()
91 static int write_cr(struct spi_flash *flash, u8 wc) in write_cr()
124 static int clean_bar(struct spi_flash *flash) in clean_bar()
136 static int write_bar(struct spi_flash *flash, u32 offset) in write_bar()
157 static int read_bar(struct spi_flash *flash, const struct spi_flash_info *info) in read_bar()
189 static void spi_flash_dual(struct spi_flash *flash, u32 *addr) in spi_flash_dual()
210 static int spi_flash_sr_ready(struct spi_flash *flash) in spi_flash_sr_ready()
[all …]
Dsf-uclass.c35 struct spi_flash *spi_flash_probe(unsigned int bus, unsigned int cs, in spi_flash_probe()
46 void spi_flash_free(struct spi_flash *flash) in spi_flash_free()
97 UCLASS_DRIVER(spi_flash) = {
101 .per_device_auto_alloc_size = sizeof(struct spi_flash),
Dsf_mtd.c17 struct spi_flash *flash = mtd->priv; in spi_flash_mtd_erase()
38 struct spi_flash *flash = mtd->priv; in spi_flash_mtd_read()
51 struct spi_flash *flash = mtd->priv; in spi_flash_mtd_write()
74 int spi_flash_mtd_register(struct spi_flash *flash) in spi_flash_mtd_register()
Dfsl_espi_spl.c16 struct spi_flash *flash; in fsl_spi_spl_load_image()
40 struct spi_flash *flash; in fsl_spi_boot()
DMakefile12 obj-$(CONFIG_SPI_FLASH) += sf_probe.o spi_flash.o spi_flash_ids.o sf.o
/external/u-boot/include/
Dspi_flash.h62 struct spi_flash { struct
88 int (*flash_lock)(struct spi_flash *flash, u32 ofs, size_t len); argument
89 int (*flash_unlock)(struct spi_flash *flash, u32 ofs, size_t len); argument
90 int (*flash_is_locked)(struct spi_flash *flash, u32 ofs, size_t len); argument
103 int (*read)(struct spi_flash *flash, u32 offset, size_t len, void *buf); argument
104 int (*write)(struct spi_flash *flash, u32 offset, size_t len, argument
106 int (*erase)(struct spi_flash *flash, u32 offset, size_t len); argument
161 struct spi_flash *spi_flash_probe(unsigned int bus, unsigned int cs,
165 void spi_flash_free(struct spi_flash *flash);
167 static inline int spi_flash_read(struct spi_flash *flash, u32 offset, in spi_flash_read()
[all …]
Ddfu.h75 struct spi_flash *dev;
/external/u-boot/common/spl/
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()
/external/u-boot/arch/arm/dts/
Dbk4r1.dts32 qflash0: spi_flash@0 {
40 qflash1: spi_flash@1 {
Dat91sam9x5ek.dtsi123 spi_flash@0 {
/external/u-boot/cmd/
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()
/external/u-boot/doc/SPI/
Dstatus.txt24 - Runtime detection of spi_flash params, SFDP(if possible)
26 - Need proper cleanups on spi_flash and drivers.
/external/u-boot/board/renesas/sh7757lcr/
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()
/external/u-boot/drivers/dfu/
Ddfu_sf.c68 static struct spi_flash *parse_dev(char *devstr) in parse_dev()
75 struct spi_flash *dev; in parse_dev()
/external/u-boot/drivers/spi/
Dstm32_qspi.c267 struct spi_flash *flash) in _stm32_qspi_enable_mmap()
305 struct spi_flash *flash, unsigned int bitlen, in _stm32_qspi_xfer()
517 struct spi_flash *flash; in stm32_qspi_claim_bus()
555 struct spi_flash *flash; in stm32_qspi_xfer()
/external/u-boot/board/renesas/sh7752evb/
Dsh7752evb.c177 struct spi_flash *spi; in get_sh_eth_mac_raw()
246 struct spi_flash *spi; in do_write_mac()
/external/u-boot/board/renesas/sh7753evb/
Dsh7753evb.c193 struct spi_flash *spi; in get_sh_eth_mac_raw()
262 struct spi_flash *spi; in do_write_mac()
/external/u-boot/doc/device-tree-bindings/pinctrl/
Datmel,at91-pio4-pinctrl.txt44 spi_flash@0 {
/external/u-boot/board/buffalo/lsxl/
Dlsxl.c214 struct spi_flash *flash; in erase_environment()
/external/u-boot/board/Arcturus/ucp1020/
Dcmd_arc.c39 static struct spi_flash *flash;
/external/u-boot/board/Synology/ds414/
Dcmd_syno.c29 struct spi_flash *flash; in do_syno_populate()
/external/u-boot/arch/arc/dts/
Dhsdk.dts96 spi_flash@0 {

12