Skip to content

Commit c057575

Browse files
committed
[ot] hw/block: m25p80: add support for 4xI/O Page Program (4PP) command
This command is supported on Macronix flash devices, among other. It is similar to the existing QPP command, with a different opcode. Signed-off-by: Emmanuel Blot <eblot@rivosinc.com>
1 parent 043e96e commit c057575

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

hw/block/m25p80.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,7 @@ typedef enum {
397397
DPP = 0xa2,
398398
QPP = 0x32,
399399
QPP_4 = 0x34,
400+
PP_4 = 0x38,
400401
RDID_90 = 0x90,
401402
RDID_AB = 0xab,
402403
AAI_WP = 0xad,
@@ -751,6 +752,7 @@ static void complete_collecting_data(Flash *s)
751752
case PP:
752753
case PP4:
753754
case PP4_4:
755+
case PP_4:
754756
s->state = STATE_PAGE_PROGRAM;
755757
break;
756758
case AAI_WP:
@@ -1150,6 +1152,7 @@ static void decode_new_cmd(Flash *s, uint32_t value)
11501152
case ERASE4_SECTOR:
11511153
case PP:
11521154
case PP4:
1155+
case PP_4:
11531156
case DIE_ERASE:
11541157
case RDID_90:
11551158
case RDID_AB:

0 commit comments

Comments
 (0)