hw/misc: implement SPI data transfers for the PSRAM in both QPI and OPI.

This commit is contained in:
Omar Chebib
2025-08-15 09:40:09 +08:00
parent 8066b0c9d4
commit 30f83141bb
2 changed files with 221 additions and 41 deletions
+3
View File
@@ -14,7 +14,9 @@ typedef enum PsramState {
ST_CMD_ADDR0, /* Received the 1st byte of the 32-bit address */
ST_CMD_ADDR1, /* Received the 2nd byte of the 32-bit address */
ST_CMD_ADDR2, /* Received the 3rd byte of the 32-bit address */
ST_DUMMY_CYCLE, /* Dummy cycles between the address and the data */
ST_PROCESSING, /* 32-bit address received, sending/receiving data */
ST_READ_ID, /* Received ID command */
} PsramState;
@@ -25,6 +27,7 @@ typedef struct SsiPsramState {
int command;
int addr;
int byte_count;
int dummy_cycles;
bool is_octal;
uint8_t mr0;