From 8c7b110766e9fb875a84d1961e973542f310bfc8 Mon Sep 17 00:00:00 2001 From: Gwenhael Goavec-Merou Date: Sun, 5 Mar 2023 16:02:22 +0100 Subject: [PATCH] spiFlashdb: Macronix MX25L12833 --- src/spiFlashdb.hpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/spiFlashdb.hpp b/src/spiFlashdb.hpp index a7ecdfb..40775e1 100644 --- a/src/spiFlashdb.hpp +++ b/src/spiFlashdb.hpp @@ -269,6 +269,20 @@ static std::map flash_list = { .bp_len = 4, .bp_offset = {(1 << 2), (1 << 3), (1 << 4), (1 << 5)}} }, + {0xc22018, { + /* https://www.macronix.com/Lists/Datasheet/Attachments/8934/MX25L12833F,%203V,%20128Mb,%20v1.0.pdf */ + .manufacturer = "Macronix", + .model = "MX25L12833", + .nr_sector = 256, + .sector_erase = true, + .subsector_erase = true, + .has_extended = false, + .tb_otp = true, + .tb_offset = (1 << 3), + .tb_register = CONFR, + .bp_len = 5, + .bp_offset = {(1 << 2), (1 << 3), (1 << 4), (1 << 5)}} + }, {0xef4015, { .manufacturer = "Winbond", .model = "W25Q16",