|
PebbleOS v4.47.0-160-g9e782207f
|
SPI memory controller driver for the SF32LB MPI, for a SPI NOR flash on it. More...
Data Structures | |
| struct | pbl_spi_mem_sf32lb_mpi |
| SF32LB MPI SPI memory controller. More... | |
Macros | |
| #define | PBL_SPI_MEM_SF32LB_MPI_DEFINE(sym, _name, _mpi, _mem_base, _mem_size) |
| Define an SF32LB MPI SPI memory controller. | |
SPI memory controller driver for the SF32LB MPI, for a SPI NOR flash on it.
Operations go through the command registers and the 64-byte FIFO: read data comes back through it, and write data is pushed to it byte by byte once the command is issued, so that it only ever holds the bytes the command takes. The memory-mapped window is the read window, programmed with the read operation the memory driver picks.
The controller is PBL_SPI_MEM_XIP when the firmware runs from its window, at CONFIG_FLASH_BASE: the boot code's clock, prescaler and sampling setup are kept, the clock is never gated, and everything that runs while the memory is unreadable (status polling, window changes, power down) runs from RAM with interrupts disabled.
| struct pbl_spi_mem_sf32lb_mpi |
SF32LB MPI SPI memory controller.
| Data Fields | ||
|---|---|---|
| struct pbl_spi_mem_sf32lb_mpi_data * | data | Runtime data. |
| struct pbl_spi_mem | mem | Controller. |
| const struct pbl_sf32lb_mpi * | mpi | Core of the MPI. |
| #define PBL_SPI_MEM_SF32LB_MPI_DEFINE | ( | sym, | |
| _name, | |||
| _mpi, | |||
| _mem_base, | |||
| _mem_size | |||
| ) |
Define an SF32LB MPI SPI memory controller.
| sym | Symbol of the controller. |
| _name | Name. |
| _mpi | Core of the MPI, from PBL_SF32LB_MPI_DEFINE(). |
| _mem_base | Memory-mapped window of the MPI. |
| _mem_size | Memory-mapped window size, in bytes. |