flashchips: Add XTX Tech. XT25F02E/04D/08B 3.3V parts
These are old chips with rather limited capabilities. Their
block-protection ranges are rather special, hence not added
at the moment.
Datasheets used:
https://en.xtxtech.com/download/?AId=118
https://en.xtxtech.com/download/?AId=136
https://en.xtxtech.com/download/?AId=51
Change-Id: I28ec5087be63b394b0f387ca01e2391823680272
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.sourcearcade.org/c/flashprog/+/283
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
diff --git a/include/flash.h b/include/flash.h
index 6bbc378..5d5efb7 100644
--- a/include/flash.h
+++ b/include/flash.h
@@ -164,8 +164,9 @@
#define FEATURE_SET_READ_PARAMS (1u << 31) /**< SRP instruction 0xc0 for dummy cycles and burst length */
/* Multi-I/O Shorthands */
-#define FEATURE_QIO (FEATURE_FAST_READ | \
- FEATURE_FAST_READ_DOUT | FEATURE_FAST_READ_DIO | \
+#define FEATURE_DIO (FEATURE_FAST_READ | \
+ FEATURE_FAST_READ_DOUT | FEATURE_FAST_READ_DIO)
+#define FEATURE_QIO (FEATURE_DIO | \
FEATURE_FAST_READ_QOUT | FEATURE_FAST_READ_QIO)
#define FEATURE_QPI_35 (FEATURE_QIO | FEATURE_QPI_35_F5)
#define FEATURE_QPI_38 (FEATURE_QIO | FEATURE_QPI_38_FF)
diff --git a/include/flashchips.h b/include/flashchips.h
index d755c1e..9f498cd 100644
--- a/include/flashchips.h
+++ b/include/flashchips.h
@@ -1031,6 +1031,11 @@
#define WINBOND_W49V002A 0xB0
#define WINBOND_W49V002FA 0x32
+#define XTX_ID 0x0B /* XTX Technology */
+#define XTX_XT25F02E 0x4012
+#define XTX_XT25F04D 0x4013
+#define XTX_XT25F08B 0x4014
+
#define ZETTADEVICE_ID 0xBA /* Zetta Device */
#define ZETTADEVICE_ZD25D20 0x2012
#define ZETTADEVICE_ZD25D40 0x2013