I tested with an "ch341a" usb adapter.
I was able to read, erase and write successfully.

Change-Id: I89bcad8dee520bcab0df18fa094faba1b0ff3a1d
Signed-off-by: Andranux <andreas_cod...@gmx.de>
---
 flashchips/eon.c     | 41 +++++++++++++++++++++++++++++++++++++++++
 include/flashchips.h |  1 +
 2 files changed, 42 insertions(+)

diff --git a/flashchips/eon.c b/flashchips/eon.c
index 921eb564..a167328a 100644
--- a/flashchips/eon.c
+++ b/flashchips/eon.c
@@ -1578,6 +1578,47 @@
                .voltage        = {2700, 3600},
        },
 
+       {
+               .vendor         = "Eon",
+               .name           = "EN25QX128A",
+               .bustype        = BUS_SPI,
+               .manufacture_id = EON_ID_NOPREFIX,
+               .model_id       = EON_EN25QX128A,
+               .total_size     = 16384,
+               .page_size      = 256,
+               /* supports SFDP */
+               /* OTP: 512B total; enter 0x?? */
+               /* QPI enable 0x38, disable 0xFF */
+               .feature_bits   = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
+               .tested         = TEST_OK_PREW,
+               .probe          = PROBE_SPI_RDID,
+               .probe_timing   = TIMING_ZERO,
+               .block_erasers  =
+               {
+                       {
+                               .eraseblocks = { {4 * 1024, 4096} },
+                               .block_erase = SPI_BLOCK_ERASE_20,
+                       }, {
+                               .eraseblocks = { {32 * 1024, 512} },
+                               .block_erase = SPI_BLOCK_ERASE_52,
+                       }, {
+                               .eraseblocks = { {64 * 1024, 256} },
+                               .block_erase = SPI_BLOCK_ERASE_D8,
+                       }, {
+                               .eraseblocks = { {16 * 1024 * 1024, 1} },
+                               .block_erase = SPI_BLOCK_ERASE_60,
+                       }, {
+                               .eraseblocks = { {16 * 1024 * 1024, 1} },
+                               .block_erase = SPI_BLOCK_ERASE_C7,
+                       }
+               },
+               .printlock      = SPI_PRETTYPRINT_STATUS_REGISTER_BP3_SRWD, /* 
bit6 is quad enable */
+               .unlock         = SPI_DISABLE_BLOCKPROTECT_BP3_SRWD,
+               .write          = SPI_CHIP_WRITE256,
+               .read           = SPI_CHIP_READ,
+               .voltage        = {2700, 3600},
+       },
+
        {
                .vendor         = "Eon",
                .name           = "EN25S10",
diff --git a/include/flashchips.h b/include/flashchips.h
index 49ef8c7f..fb1be827 100644
--- a/include/flashchips.h
+++ b/include/flashchips.h
@@ -298,6 +298,7 @@
 #define EON_EN25QH64           0x7017
 #define EON_EN25QH128          0x7018
 #define EON_EN25QH256          0x7019
+#define EON_EN25QX128A         0x7118
 #define EON_EN25S10            0x3811
 #define EON_EN25S20            0x3812
 #define EON_EN25S40            0x3813
-- 
2.49.0

_______________________________________________
flashrom mailing list -- flashrom@flashrom.org
To unsubscribe send an email to flashrom-le...@flashrom.org

Reply via email to