| /OK3568_Linux_fs/u-boot/drivers/mtd/spi/ |
| H A D | sf_dataflash.c | 121 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 D | sf_probe.c | 27 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 D | spi_flash.c | 34 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 D | sf-uclass.c | 45 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 D | sf_mtd.c | 19 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 D | sf_internal.h | 80 int spi_flash_cmd_get_sw_write_prot(struct spi_flash *flash); 84 int spi_flash_mtd_register(struct spi_flash *flash);
|
| H A D | fsl_espi_spl.c | 17 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 D | spi_flash.h | 110 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 D | spl_spi.c | 26 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 D | bk4r1.dts | 33 qflash0: spi_flash@0 { 41 qflash1: spi_flash@1 {
|
| /OK3568_Linux_fs/u-boot/cmd/ |
| H A D | sf.c | 22 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 D | status.txt | 24 - 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 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…
|
| /OK3568_Linux_fs/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()
|
| /OK3568_Linux_fs/u-boot/drivers/dfu/ |
| H A D | dfu_sf.c | 69 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 D | stm32_qspi.c | 260 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 D | sh7752evb.c | 177 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 D | sh7753evb.c | 193 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 D | atmel,at91-pio4-pinctrl.txt | 44 spi_flash@0 {
|
| /OK3568_Linux_fs/u-boot/board/buffalo/lsxl/ |
| H A D | lsxl.c | 214 struct spi_flash *flash; in erase_environment()
|
| /OK3568_Linux_fs/u-boot/board/Arcturus/ucp1020/ |
| H A D | cmd_arc.c | 40 static struct spi_flash *flash;
|