Skip to content

Commit

Permalink
Add support for the PUYA series chips
Browse files Browse the repository at this point in the history
  • Loading branch information
svchao committed Nov 10, 2023
1 parent e1411bb commit 174aa5b
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions sfud/inc/sfud_flash_def.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ typedef struct {
#define SFUD_MF_ID_GIGADEVICE 0xC8
#define SFUD_MF_ID_ISSI 0xD5
#define SFUD_MF_ID_WINBOND 0xEF
#define SFUD_MF_ID_PUYA 0x85

/* SFUD supported manufacturer information table */
#define SFUD_MF_TABLE \
Expand All @@ -112,7 +113,8 @@ typedef struct {
{"ISSI", SFUD_MF_ID_ISSI}, \
{"Winbond", SFUD_MF_ID_WINBOND}, \
{"Macronix", SFUD_MF_ID_MACRONIX}, \
{"NOR-MEM", SFUD_MF_ID_NOR_MEM}, \
{"NOR-MEM", SFUD_MF_ID_NOR_MEM}, \
{"PUYA", SFUD_MF_ID_PUYA}, \
}

#ifdef SFUD_USING_FLASH_INFO_TABLE
Expand Down Expand Up @@ -147,7 +149,12 @@ typedef struct {
{"A25L080", SFUD_MF_ID_AMIC, 0x30, 0x14, 1L*1024L*1024L, SFUD_WM_PAGE_256B, 4096, 0x20}, \
{"F25L004", SFUD_MF_ID_ESMT, 0x20, 0x13, 512L*1024L, SFUD_WM_BYTE|SFUD_WM_AAI, 4096, 0x20}, \
{"PCT25VF016B", SFUD_MF_ID_SST, 0x25, 0x41, 2L*1024L*1024L, SFUD_WM_BYTE|SFUD_WM_AAI, 4096, 0x20}, \
{"NM25Q128EVB", SFUD_MF_ID_NOR_MEM, 0x21, 0x18, 16L*1024L*1024L, SFUD_WM_PAGE_256B, 4096, 0x20}, \
{"NM25Q128EVB", SFUD_MF_ID_NOR_MEM, 0x21, 0x18, 16L*1024L*1024L, SFUD_WM_PAGE_256B, 4096, 0x20}, \
{"P25D05H", SFUD_MF_ID_PUYA, 0x60, 0x13, 5L*1024L, SFUD_WM_PAGE_256B, 4096, 0x20}, \
{"P25D10H", SFUD_MF_ID_PUYA, 0x60, 0x12, 1L*1024L*1024L, SFUD_WM_PAGE_256B, 4096, 0x20}, \
{"P25D20H", SFUD_MF_ID_PUYA, 0x60, 0x11, 2L*1024L*1024L, SFUD_WM_PAGE_256B, 4096, 0x20}, \
{"P25D40H", SFUD_MF_ID_PUYA, 0x60, 0x10, 4L*1024L*1024L, SFUD_WM_PAGE_256B, 4096, 0x20}, \
{"P25Q80H", SFUD_MF_ID_PUYA, 0x30, 0x14, 8L*1024L*1024L, SFUD_WM_PAGE_256B, 4096, 0x20}, \
}
#endif /* SFUD_USING_FLASH_INFO_TABLE */

Expand Down

0 comments on commit 174aa5b

Please sign in to comment.