Home
last modified time | relevance | path

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

123

/OK3568_Linux_fs/u-boot/drivers/mtd/spi/
H A Dsf_dataflash.c121 struct spi_flash *spi_flash; in spi_dataflash_erase() local
129 spi_flash = dev_get_uclass_priv(dev); in spi_dataflash_erase()
130 spi = spi_flash->spi; in spi_dataflash_erase()
132 blocksize = spi_flash->page_size << 3; in spi_dataflash_erase()
139 div_u64_rem(len, spi_flash->page_size, &rem); in spi_dataflash_erase()
142 dev->name, len, spi_flash->page_size); in spi_dataflash_erase()
145 div_u64_rem(offset, spi_flash->page_size, &rem); in spi_dataflash_erase()
148 dev->name, offset, spi_flash->page_size); in spi_dataflash_erase()
165 pageaddr = div_u64(offset, spi_flash->page_size); in spi_dataflash_erase()
195 offset += spi_flash->page_size; in spi_dataflash_erase()
[all …]
H A Dsf_probe.c27 static int spi_flash_probe_slave(struct spi_flash *flash) in spi_flash_probe_slave()
63 struct spi_flash *spi_flash_probe(unsigned int busnum, unsigned int cs, in spi_flash_probe()
67 struct spi_flash *flash; in spi_flash_probe()
90 void spi_flash_free(struct spi_flash *flash) in spi_flash_free()
104 struct spi_flash *flash = dev_get_uclass_priv(dev); in spi_flash_std_read()
114 struct spi_flash *flash = dev_get_uclass_priv(dev); in spi_flash_std_write()
123 struct spi_flash *flash = dev_get_uclass_priv(dev); in spi_flash_std_erase()
141 struct spi_flash *flash = dev_get_uclass_priv(dev); in spi_flash_std_get_sw_write_prot()
165 struct spi_flash *flash; in spi_flash_std_probe()
201 .priv_auto_alloc_size = sizeof(struct spi_flash),
H A Dspi_flash.c34 static int read_sr(struct spi_flash *flash, u8 *rs) in read_sr()
49 static int read_fsr(struct spi_flash *flash, u8 *fsr) in read_fsr()
63 static int write_sr(struct spi_flash *flash, u8 ws) in write_sr()
79 static int read_cr(struct spi_flash *flash, u8 *rc) in read_cr()
94 static int write_cr(struct spi_flash *flash, u8 wc) in write_cr()
116 int spi_flash_cmd_get_sw_write_prot(struct spi_flash *flash) in spi_flash_cmd_get_sw_write_prot()
139 static int clean_bar(struct spi_flash *flash) in clean_bar()
151 static int write_bar(struct spi_flash *flash, u32 offset) in write_bar()
172 static int read_bar(struct spi_flash *flash, const struct spi_flash_info *info) in read_bar()
204 static void spi_flash_dual(struct spi_flash *flash, u32 *addr) in spi_flash_dual()
[all …]
H A Dsf-uclass.c45 struct spi_flash *spi_flash_probe(unsigned int bus, unsigned int cs, in spi_flash_probe()
56 void spi_flash_free(struct spi_flash *flash) in spi_flash_free()
107 UCLASS_DRIVER(spi_flash) = {
111 .per_device_auto_alloc_size = sizeof(struct spi_flash),
H A Dsf_mtd.c19 struct spi_flash *flash = mtd->priv; in spi_flash_mtd_erase()
43 struct spi_flash *flash = mtd->priv; in spi_flash_mtd_read()
59 struct spi_flash *flash = mtd->priv; in spi_flash_mtd_write()
85 int spi_flash_mtd_register(struct spi_flash *flash) in spi_flash_mtd_register()
H A Dsf_internal.h80 int spi_flash_cmd_get_sw_write_prot(struct spi_flash *flash);
84 int spi_flash_mtd_register(struct spi_flash *flash);
H A Dfsl_espi_spl.c17 struct spi_flash *flash; in fsl_spi_spl_load_image()
41 struct spi_flash *flash; in fsl_spi_boot()
/OK3568_Linux_fs/u-boot/include/
H A Dspi_flash.h110 struct spi_flash *spi_flash_probe(unsigned int bus, unsigned int cs,
114 void spi_flash_free(struct spi_flash *flash);
116 static inline int spi_flash_read(struct spi_flash *flash, u32 offset, in spi_flash_read()
122 static inline int spi_flash_write(struct spi_flash *flash, u32 offset, in spi_flash_write()
128 static inline int spi_flash_erase(struct spi_flash *flash, u32 offset, in spi_flash_erase()
142 struct spi_flash *spi_flash_probe(unsigned int bus, unsigned int cs,
145 void spi_flash_free(struct spi_flash *flash);
147 static inline int spi_flash_read(struct spi_flash *flash, u32 offset, in spi_flash_read()
156 static inline int spi_flash_write(struct spi_flash *flash, u32 offset, in spi_flash_write()
165 static inline int spi_flash_erase(struct spi_flash *flash, u32 offset, in spi_flash_erase()
[all …]
/OK3568_Linux_fs/u-boot/common/spl/
H A Dspl_spi.c26 struct spi_flash *flash, in spi_load_image_os()
57 struct spi_flash *flash = load->dev; in spl_spi_fit_read()
76 struct spi_flash *flash;
/OK3568_Linux_fs/u-boot/arch/arm/dts/
H A Dbk4r1.dts33 qflash0: spi_flash@0 {
41 qflash1: spi_flash@1 {
/OK3568_Linux_fs/u-boot/cmd/
H A Dsf.c22 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()
/OK3568_Linux_fs/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.
/OK3568_Linux_fs/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_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_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_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…
/OK3568_Linux_fs/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()
/OK3568_Linux_fs/u-boot/drivers/dfu/
H A Ddfu_sf.c69 static struct spi_flash *parse_dev(char *devstr) in parse_dev()
76 struct spi_flash *dev; in parse_dev()
/OK3568_Linux_fs/u-boot/drivers/spi/
H A Dstm32_qspi.c260 struct spi_flash *flash) in _stm32_qspi_enable_mmap()
298 struct spi_flash *flash, unsigned int bitlen, in _stm32_qspi_xfer()
500 struct spi_flash *flash; in stm32_qspi_claim_bus()
531 struct spi_flash *flash; in stm32_qspi_xfer()
/OK3568_Linux_fs/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()
/OK3568_Linux_fs/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()
/OK3568_Linux_fs/u-boot/doc/device-tree-bindings/pinctrl/
H A Datmel,at91-pio4-pinctrl.txt44 spi_flash@0 {
/OK3568_Linux_fs/u-boot/board/buffalo/lsxl/
H A Dlsxl.c214 struct spi_flash *flash; in erase_environment()
/OK3568_Linux_fs/u-boot/board/Arcturus/ucp1020/
H A Dcmd_arc.c40 static struct spi_flash *flash;

123