Skip to content

Commit 0efaa1f

Browse files
authored
Merge pull request #85 from svchao/master
Add NOR-Flash support for PUYA
2 parents e1411bb + bc71f92 commit 0efaa1f

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@
6161
|[PCT25VF016B](http://pctgroup.com.tw/attachments/files/files/248_25VF016B-P.pdf)|PCT|16Mb|80Mhz|不支持|不支持|SST 授权许可,会被识别为 SST25VF016B|
6262
|[AT45DB161E](http://www.adestotech.com/wp-content/uploads/doc8782.pdf)|ADESTO|16Mb|85MHz|不支持|不支持|ADESTO 收购 Atmel 串行闪存产品线|
6363
|[NM25Q128EV](http://www.normem.com/product/278082170)|Nor_Mem|128Mb|未测试|不支持|未测试|SFDP可能会读取到信息后识别为超过32Gb|
64+
|[P25D40H](https://item.szlcsc.com/583103.html)|PUYA|4Mb|未测试|支持|未测试|by Shan|
65+
|[P25Q80H](https://item.szlcsc.com/8512446.html)|PUYA|8Mb|未测试|支持|未测试|by Shan|
6466

6567
> 注:QSPI 模式中,双线表示支持双线快读,四线表示支持四线快读。
6668
>

sfud/inc/sfud_flash_def.h

+9-2
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ typedef struct {
9292
#define SFUD_MF_ID_GIGADEVICE 0xC8
9393
#define SFUD_MF_ID_ISSI 0xD5
9494
#define SFUD_MF_ID_WINBOND 0xEF
95+
#define SFUD_MF_ID_PUYA 0x85
9596

9697
/* SFUD supported manufacturer information table */
9798
#define SFUD_MF_TABLE \
@@ -112,7 +113,8 @@ typedef struct {
112113
{"ISSI", SFUD_MF_ID_ISSI}, \
113114
{"Winbond", SFUD_MF_ID_WINBOND}, \
114115
{"Macronix", SFUD_MF_ID_MACRONIX}, \
115-
{"NOR-MEM", SFUD_MF_ID_NOR_MEM}, \
116+
{"NOR-MEM", SFUD_MF_ID_NOR_MEM}, \
117+
{"PUYA", SFUD_MF_ID_PUYA}, \
116118
}
117119

118120
#ifdef SFUD_USING_FLASH_INFO_TABLE
@@ -147,7 +149,12 @@ typedef struct {
147149
{"A25L080", SFUD_MF_ID_AMIC, 0x30, 0x14, 1L*1024L*1024L, SFUD_WM_PAGE_256B, 4096, 0x20}, \
148150
{"F25L004", SFUD_MF_ID_ESMT, 0x20, 0x13, 512L*1024L, SFUD_WM_BYTE|SFUD_WM_AAI, 4096, 0x20}, \
149151
{"PCT25VF016B", SFUD_MF_ID_SST, 0x25, 0x41, 2L*1024L*1024L, SFUD_WM_BYTE|SFUD_WM_AAI, 4096, 0x20}, \
150-
{"NM25Q128EVB", SFUD_MF_ID_NOR_MEM, 0x21, 0x18, 16L*1024L*1024L, SFUD_WM_PAGE_256B, 4096, 0x20}, \
152+
{"NM25Q128EVB", SFUD_MF_ID_NOR_MEM, 0x21, 0x18, 16L*1024L*1024L, SFUD_WM_PAGE_256B, 4096, 0x20}, \
153+
{"P25D05H", SFUD_MF_ID_PUYA, 0x60, 0x13, 5L*1024L, SFUD_WM_PAGE_256B, 4096, 0x20}, \
154+
{"P25D10H", SFUD_MF_ID_PUYA, 0x60, 0x12, 1L*1024L*1024L, SFUD_WM_PAGE_256B, 4096, 0x20}, \
155+
{"P25D20H", SFUD_MF_ID_PUYA, 0x60, 0x11, 2L*1024L*1024L, SFUD_WM_PAGE_256B, 4096, 0x20}, \
156+
{"P25D40H", SFUD_MF_ID_PUYA, 0x60, 0x10, 4L*1024L*1024L, SFUD_WM_PAGE_256B, 4096, 0x20}, \
157+
{"P25Q80H", SFUD_MF_ID_PUYA, 0x30, 0x14, 8L*1024L*1024L, SFUD_WM_PAGE_256B, 4096, 0x20}, \
151158
}
152159
#endif /* SFUD_USING_FLASH_INFO_TABLE */
153160

0 commit comments

Comments
 (0)