#include <string.h>
#include <soc/spi.h>
Go to the source code of this file.
◆ SPI_OPMENU_0
#define SPI_OPMENU_0 0x01 /* WRSR: Write Status Register */ |
◆ SPI_OPMENU_1
#define SPI_OPMENU_1 0x02 /* BYPR: Byte Program */ |
◆ SPI_OPMENU_2
#define SPI_OPMENU_2 0x03 /* READ: Read Data */ |
◆ SPI_OPMENU_3
#define SPI_OPMENU_3 0x05 /* RDSR: Read Status Register */ |
◆ SPI_OPMENU_4
#define SPI_OPMENU_4 0x20 /* SE20: Sector Erase 0x20 */ |
◆ SPI_OPMENU_5
#define SPI_OPMENU_5 0x9f /* RDID: Read ID */ |
◆ SPI_OPMENU_6
#define SPI_OPMENU_6 0xd8 /* BED8: Block Erase 0xd8 */ |
◆ SPI_OPMENU_7
#define SPI_OPMENU_7 0x0b /* FAST: Fast Read */ |
◆ SPI_OPMENU_LOWER
◆ SPI_OPMENU_UPPER
◆ SPI_OPPREFIX
#define SPI_OPPREFIX ((0x50 << 8) | 0x06) /* EWSR and WREN */ |
◆ SPI_OPTYPE
◆ SPI_OPTYPE_0
#define SPI_OPTYPE_0 0x01 /* Write, no address */ |
◆ SPI_OPTYPE_1
#define SPI_OPTYPE_1 0x03 /* Write, address required */ |
◆ SPI_OPTYPE_2
#define SPI_OPTYPE_2 0x02 /* Read, address required */ |
◆ SPI_OPTYPE_3
#define SPI_OPTYPE_3 0x00 /* Read, no address */ |
◆ SPI_OPTYPE_4
#define SPI_OPTYPE_4 0x03 /* Write, address required */ |
◆ SPI_OPTYPE_5
#define SPI_OPTYPE_5 0x00 /* Read, no address */ |
◆ SPI_OPTYPE_6
#define SPI_OPTYPE_6 0x03 /* Write, address required */ |
◆ SPI_OPTYPE_7
#define SPI_OPTYPE_7 0x02 /* Read, address required */ |
◆ SPI_VSCC
◆ mainboard_get_spi_config()
int mainboard_get_spi_config |
( |
struct spi_config * |
cfg | ) |
|
◆ spi_config
Initial value:
Definition at line 1 of file w25q64.c.