Go to the source code of this file.
|
int | spi_flash_cmd (const struct spi_slave *spi, u8 cmd, void *response, size_t len) |
|
int | spi_flash_cmd_write (const struct spi_slave *spi, const u8 *cmd, size_t cmd_len, const void *data, size_t data_len) |
|
int | spi_flash_cmd_poll_bit (const struct spi_flash *flash, unsigned long timeout, u8 cmd, u8 poll_bit) |
|
int | spi_flash_cmd_wait_ready (const struct spi_flash *flash, unsigned long timeout) |
|
int | spi_flash_cmd_erase (const struct spi_flash *flash, u32 offset, size_t len) |
|
int | spi_flash_cmd_status (const struct spi_flash *flash, u8 *reg) |
|
int | spi_flash_cmd_write_page_program (const struct spi_flash *flash, u32 offset, size_t len, const void *buf) |
|
int | spi_flash_cmd_read (const struct spi_flash *flash, u32 offset, size_t len, void *buf) |
|
int | stmicro_release_deep_sleep_identify (const struct spi_slave *spi, u8 *idcode) |
|
◆ CMD_BLOCK_ERASE
#define CMD_BLOCK_ERASE 0xD8 |
◆ CMD_EXIT_4BYTE_ADDR_MODE
#define CMD_EXIT_4BYTE_ADDR_MODE 0xe9 |
◆ CMD_READ_ARRAY_FAST
#define CMD_READ_ARRAY_FAST 0x0b |
◆ CMD_READ_ARRAY_LEGACY
#define CMD_READ_ARRAY_LEGACY 0xe8 |
◆ CMD_READ_ARRAY_SLOW
#define CMD_READ_ARRAY_SLOW 0x03 |
◆ CMD_READ_FAST_DUAL_IO
#define CMD_READ_FAST_DUAL_IO 0xbb |
◆ CMD_READ_FAST_DUAL_OUTPUT
#define CMD_READ_FAST_DUAL_OUTPUT 0x3b |
◆ CMD_READ_ID
◆ CMD_READ_STATUS
#define CMD_READ_STATUS 0x05 |
◆ CMD_WRITE_ENABLE
#define CMD_WRITE_ENABLE 0x06 |
◆ STATUS_WIP
◆ spi_flash_cmd()
Definition at line 107 of file spi_flash.c.
References BIOS_WARNING, do_spi_flash_cmd(), and printk.
Referenced by spi_flash_cmd_erase(), spi_flash_cmd_status(), spi_flash_cmd_write_page_program(), spi_flash_generic_probe(), spi_flash_probe(), sst_disable_writing(), sst_enable_writing(), sst_enable_writing_status(), winbond_flash_cmd_status(), and winbond_get_write_protection().
◆ spi_flash_cmd_erase()
Definition at line 228 of file spi_flash.c.
References BIOS_DEBUG, BIOS_SPEW, BIOS_WARNING, CMD_WRITE_ENABLE, spi_flash::erase_cmd, NULL, offset, printk, spi_flash::sector_size, spi_flash::spi, spi_flash_addr(), spi_flash_cmd(), spi_flash_cmd_wait_ready(), spi_flash_cmd_write(), SPI_FLASH_PAGE_ERASE_TIMEOUT_MS, and stopwatch::start.
◆ spi_flash_cmd_poll_bit()
int spi_flash_cmd_poll_bit |
( |
const struct spi_flash * |
flash, |
|
|
unsigned long |
timeout, |
|
|
u8 |
cmd, |
|
|
u8 |
poll_bit |
|
) |
| |
◆ spi_flash_cmd_read()
Definition at line 142 of file spi_flash.c.
References BIOS_WARNING, buf, CMD_READ_ARRAY_FAST, CMD_READ_ARRAY_SLOW, CMD_READ_FAST_DUAL_IO, CMD_READ_FAST_DUAL_OUTPUT, CONFIG, spi_slave::ctrlr, do_dual_io_cmd(), do_dual_output_cmd(), do_spi_flash_cmd(), spi_flash::dual_io, spi_flash::dual_output, spi_flash::flags, offset, printk, spi_flash::spi, spi_crop_chunk(), spi_flash_addr(), and spi_ctrlr::xfer_dual.
◆ spi_flash_cmd_status()
int spi_flash_cmd_status |
( |
const struct spi_flash * |
flash, |
|
|
u8 * |
reg |
|
) |
| |
◆ spi_flash_cmd_wait_ready()
int spi_flash_cmd_wait_ready |
( |
const struct spi_flash * |
flash, |
|
|
unsigned long |
timeout |
|
) |
| |
◆ spi_flash_cmd_write()
◆ spi_flash_cmd_write_page_program()
int spi_flash_cmd_write_page_program |
( |
const struct spi_flash * |
flash, |
|
|
u32 |
offset, |
|
|
size_t |
len, |
|
|
const void * |
buf |
|
) |
| |
Definition at line 281 of file spi_flash.c.
References BIOS_SPEW, BIOS_WARNING, buf, CONFIG, MIN, NULL, offset, spi_flash::page_size, spi_flash::pp_cmd, printk, spi_flash::spi, spi_crop_chunk(), spi_flash_addr(), spi_flash_cmd(), spi_flash_cmd_wait_ready(), spi_flash_cmd_write(), SPI_FLASH_PROG_TIMEOUT_MS, and spi_flash::wren_cmd.
◆ stmicro_release_deep_sleep_identify()
int stmicro_release_deep_sleep_identify |
( |
const struct spi_slave * |
spi, |
|
|
u8 * |
idcode |
|
) |
| |
◆ spi_flash_adesto_vi
◆ spi_flash_amic_vi
Definition at line 1 of file amic.c.
◆ spi_flash_atmel_vi
◆ spi_flash_eon_vi
Definition at line 1 of file eon.c.
◆ spi_flash_gigadevice_vi
◆ spi_flash_macronix_vi
◆ spi_flash_pp_0x20_sector_desc
◆ spi_flash_pp_0xd8_sector_desc
◆ spi_flash_spansion_ext1_vi
◆ spi_flash_spansion_ext2_vi
◆ spi_flash_spansion_vi
◆ spi_flash_sst_ai_vi
◆ spi_flash_sst_vi
◆ spi_flash_stmicro1_vi
◆ spi_flash_stmicro2_vi
◆ spi_flash_stmicro3_vi
◆ spi_flash_stmicro4_vi
◆ spi_flash_winbond_vi