commit | b09136b0971913cf7f984355c1005f65575aba44 | [log] [tgz] |
---|---|---|
author | Nico Huber <nico.h@gmx.de> | Fri Oct 25 22:52:30 2024 +0200 |
committer | Nico Huber <nico.h@gmx.de> | Sun Feb 23 12:05:52 2025 +0000 |
tree | c11416105bf9ff3bb8a8a8b2a1ade79f9e63278c | |
parent | ed8b82c17e285de43437325fe7c402186719da8c [diff] |
flashchips: Add Puya P25Q05..16H 3.3V parts All quad-i/o chips with block-protection similar to Winbond. One specialty is a page-erase operation. At the upper end (P25Q08H, P25Q16H), they have a configuration register that is read like a third status register however written like a second (31h, accor- ding to the datasheets). Datasheets used: https://www.puyasemi.com/download_path/%E6%95%B0%E6%8D%AE%E6%89%8B%E5%86%8C/Flash/P25Q40H_20H_10H_05H_Datasheet_V2.0.pdf https://www.puyasemi.com/download_path/%E6%95%B0%E6%8D%AE%E6%89%8B%E5%86%8C/Flash/P25Q80H_Datasheet_V1.7.pdf https://www.puyasemi.com/download_path/%E6%95%B0%E6%8D%AE%E6%89%8B%E5%86%8C/Flash/P25Q16H_Datasheet_V2.1.pdf Change-Id: I8ca43d19603cd11fd9cf06d2afc930b1096548d3 Signed-off-by: Nico Huber <nico.h@gmx.de> Reviewed-on: https://review.sourcearcade.org/c/flashprog/+/291 Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
diff --git a/include/flashchips.h b/include/flashchips.h index 03798bf..d80404e 100644 --- a/include/flashchips.h +++ b/include/flashchips.h
@@ -633,6 +633,14 @@ #define PMC_PM49FL002 0x6D #define PMC_PM49FL004 0x6E +#define PUYA_ID 0x85 +#define PUYA_P25Q05H 0x6010 +#define PUYA_P25Q10H 0x6011 +#define PUYA_P25Q20H 0x6012 +#define PUYA_P25Q40H 0x6013 /* Same as P25Q40SH */ +#define PUYA_P25Q80H 0x6014 /* Same as P25Q80SH */ +#define PUYA_P25Q16H 0x6015 /* Same as P25Q16SH */ + /* * The Sanyo chip found so far uses SPI, first byte is manufacturer code, * second byte is the device code,