Felix Singer has uploaded this change for review.
flashchips.c: Add support for XTX XT25F128B
Change-Id: I5e57bec2980d67871429eafec6eb937e71831ded
Signed-off-by: f0rw4rd <f0rw4rd@protonmail.com>
Signed-off-by: Felix Singer <felixsinger@posteo.net>
---
M flashchips.c
M flashchips.h
2 files changed, 37 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/01/63901/1
diff --git a/flashchips.c b/flashchips.c
index 0a1d21d..051a80a 100644
--- a/flashchips.c
+++ b/flashchips.c
@@ -19661,6 +19661,40 @@
.read = spi_chip_read,
.voltage = {2700, 3600},
},
+ {
+ .vendor = "XTX",
+ .name = "XT25F128B",
+ .bustype = BUS_SPI,
+ .manufacture_id = XTX_ID,
+ .model_id = XTX_XT25F128B,
+ .total_size = 16384,
+ .page_size = 256,
+ .feature_bits = FEATURE_WRSR_WREN,
+ .tested = TEST_UNTESTED,
+ .probe = probe_spi_rdid,
+ .probe_timing = TIMING_ZERO,
+ .block_erasers =
+ {
+ {
+ .eraseblocks = { {4 * 1024, 4096} },
+ .block_erase = spi_block_erase_20,
+ }, {
+ .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_bp2_srwd,
+ .unlock = spi_disable_blockprotect,
+ .write = spi_chip_write_256,
+ .read = spi_chip_read,
+ .voltage = {2700, 3600},
+ },
{
.vendor = "Unknown",
diff --git a/flashchips.h b/flashchips.h
index ba97719..1167739 100644
--- a/flashchips.h
+++ b/flashchips.h
@@ -1030,4 +1030,7 @@
#define ZETTADEVICE_ZD25D20 0x2012
#define ZETTADEVICE_ZD25D40 0x2013
+#define XTX_ID 0x0B /* XTX Device */
+#define XTX_XT25F128B 0x4018
+
#endif /* !FLASHCHIPS_H */
To view, visit change 63901. To unsubscribe, or for help writing mail filters, visit settings.