From 55d5cba9fb3cccfff5f95fd204e3f88d22151fae Mon Sep 17 00:00:00 2001 From: Gwenhael Goavec-Merou Date: Wed, 22 Dec 2021 18:59:52 +0100 Subject: [PATCH] spiFlashdb: add spansion S25FL 064P/128P --- src/spiFlashdb.hpp | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/src/spiFlashdb.hpp b/src/spiFlashdb.hpp index 66a3240..a072da2 100644 --- a/src/spiFlashdb.hpp +++ b/src/spiFlashdb.hpp @@ -33,6 +33,32 @@ typedef struct { } flash_t; static std::map flash_list = { + {0x010216, { + .manufacturer = "spansion", + .model = "S25FL064P / EPCS64", + .nr_sector = 128, + .sector_erase = true, + .subsector_erase = true, + .has_extended = true, + .tb_otp = false, + .tb_offset = (1 << 5), + .tb_register = CONFR, + .bp_len = 3, + .bp_offset = {(1 << 2), (1 << 3), (1 << 4), 0}} + }, + {0x012018, { + .manufacturer = "spansion", + .model = "S25FL128S", + .nr_sector = 256, + .sector_erase = true, + .subsector_erase = false, + .has_extended = true, + .tb_otp = false, + .tb_offset = (1 << 5), + .tb_register = CONFR, + .bp_len = 3, + .bp_offset = {(1 << 2), (1 << 3), (1 << 4), 0}} + }, {0x0020ba16, { .manufacturer = "micron", .model = "N25Q32",