blob: bce9435c9e51e3fe59f1554eebfdc1c14f173b23 [file] [log] [blame]
Ollie Lho184a4042005-11-26 21:55:36 +00001/*
Uwe Hermannd1107642007-08-29 17:52:32 +00002 * This file is part of the flashrom project.
Ollie Lho184a4042005-11-26 21:55:36 +00003 *
Uwe Hermannd22a1d42007-09-09 20:21:05 +00004 * Copyright (C) 2000 Silicon Integrated System Corporation
5 * Copyright (C) 2004 Tyan Corp
Stefan Reinauer4c390c82008-07-02 13:33:09 +00006 * Copyright (C) 2005-2008 coresystems GmbH <stepan@openbios.org>
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00007 * Copyright (C) 2006-2009 Carl-Daniel Hailfinger
Sean Nelsonc57a9202010-01-04 17:15:23 +00008 * Copyright (C) 2009 Sean Nelson <audiohacked@gmail.com>
Uwe Hermannd1107642007-08-29 17:52:32 +00009 *
Stefan Reinauerce532972007-05-23 17:20:56 +000010 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
Ollie Lho184a4042005-11-26 21:55:36 +000014 *
Stefan Reinauerce532972007-05-23 17:20:56 +000015 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
Ollie Lho184a4042005-11-26 21:55:36 +000019 */
20
21#include "flash.h"
Carl-Daniel Hailfinger08454642009-06-15 14:14:48 +000022#include "flashchips.h"
Sean Nelson14ba6682010-02-26 05:48:29 +000023#include "chipdrivers.h"
Ollie Lho184a4042005-11-26 21:55:36 +000024
Uwe Hermannfc425e82008-03-16 02:06:25 +000025/**
Uwe Hermanna9720402009-05-21 15:55:46 +000026 * List of supported flash chips.
Uwe Hermannfc425e82008-03-16 02:06:25 +000027 *
Alan Green1f9cc7d2019-07-01 11:10:45 +100028 * Temporarily, this file is sorted alphabetically by vendor and name to
Nico Huberc3b02dc2023-08-12 01:13:45 +020029 * assist with merging the Chromium fork of flashprog.
Alan Green1f9cc7d2019-07-01 11:10:45 +100030 *
31 * The usual intention is that that this list is sorted by vendor, then chip
Nico Huberc3b02dc2023-08-12 01:13:45 +020032 * family and chip density, which is useful for the output of 'flashprog -L'.
Uwe Hermannfc425e82008-03-16 02:06:25 +000033 */
Carl-Daniel Hailfinger4c823182011-05-04 00:39:50 +000034const struct flashchip flashchips[] = {
Uwe Hermannfc425e82008-03-16 02:06:25 +000035
Carl-Daniel Hailfinger21eedec2009-07-23 12:42:01 +000036 /*
37 * .vendor = Vendor name
38 * .name = Chip name
39 * .bustype = Supported flash bus types (Parallel, LPC...)
40 * .manufacture_id = Manufacturer chip ID
41 * .model_id = Model chip ID
42 * .total_size = Total size in (binary) kbytes
43 * .page_size = Page or eraseblock(?) size in bytes
44 * .tested = Test status
45 * .probe = Probe function
46 * .probe_timing = Probe function delay
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +000047 * .block_erasers[] = Array of erase layouts and erase functions
48 * {
49 * .eraseblocks[] = Array of { blocksize, blockcount }
50 * .block_erase = Block erase function
51 * }
Sean Nelson6e0b9122010-02-19 00:52:10 +000052 * .printlock = Chip lock status function
53 * .unlock = Chip unlock function
Carl-Daniel Hailfinger21eedec2009-07-23 12:42:01 +000054 * .write = Chip write function
55 * .read = Chip read function
Steven Zakuleccbe370e2011-06-03 07:26:31 +000056 * .voltage = Voltage range in millivolt
FENG yu ningff692fb2008-12-08 18:15:10 +000057 */
58
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000059 {
60 .vendor = "AMD",
61 .name = "Am29F002(N)BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000062 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000063 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000064 .model_id = AMD_AM29F002BB,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000065 .total_size = 256,
66 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000067 .feature_bits = FEATURE_SHORT_RESET | FEATURE_ADDR_2AA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000068 .tested = TEST_UNTESTED,
69 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000070 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +000071 .block_erasers =
72 {
73 {
74 .eraseblocks = {
75 {16 * 1024, 1},
76 {8 * 1024, 2},
77 {32 * 1024, 1},
78 {64 * 1024, 3},
79 },
80 .block_erase = erase_sector_jedec,
81 }, {
82 .eraseblocks = { {256 * 1024, 1} },
83 .block_erase = erase_chip_block_jedec,
84 },
85 },
Michael Karcher1c296ca2009-11-27 17:49:42 +000086 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000087 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000088 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
Nico Huber9eec4072023-01-12 01:17:30 +010089 .prepare_access = prepare_memory_access,
90 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000091 },
92
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000093 {
94 .vendor = "AMD",
95 .name = "Am29F002(N)BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000096 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000097 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000098 .model_id = AMD_AM29F002BT,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000099 .total_size = 256,
100 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +0000101 .feature_bits = FEATURE_EITHER_RESET | FEATURE_ADDR_2AA,
102 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000103 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +0000104 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000105 .block_erasers =
106 {
107 {
108 .eraseblocks = {
109 {64 * 1024, 3},
110 {32 * 1024, 1},
111 {8 * 1024, 2},
112 {16 * 1024, 1},
113 },
114 .block_erase = erase_sector_jedec,
115 }, {
116 .eraseblocks = { {256 * 1024, 1} },
117 .block_erase = erase_chip_block_jedec,
118 },
119 },
Michael Karcher1c296ca2009-11-27 17:49:42 +0000120 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000121 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000122 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
Nico Huber9eec4072023-01-12 01:17:30 +0100123 .prepare_access = prepare_memory_access,
124 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +0000125 },
126
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000127 {
128 .vendor = "AMD",
Alan Green1f9cc7d2019-07-01 11:10:45 +1000129 .name = "Am29F010",
130 .bustype = BUS_PARALLEL,
131 .manufacture_id = AMD_ID,
132 .model_id = AMD_AM29F010,
133 .total_size = 128,
134 .page_size = 16 * 1024,
135 .feature_bits = FEATURE_SHORT_RESET,
136 .tested = TEST_UNTESTED,
137 .probe = probe_jedec,
138 .probe_timing = TIMING_ZERO,
139 .block_erasers =
140 {
141 {
142 .eraseblocks = { {16 * 1024, 8} },
143 .block_erase = erase_sector_jedec,
144 }, {
145 .eraseblocks = { {128 * 1024, 1} },
146 .block_erase = erase_chip_block_jedec,
147 },
148 },
149 .write = write_jedec_1,
150 .read = read_memmapped,
151 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +0100152 .prepare_access = prepare_memory_access,
153 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +1000154 },
155
156 {
157 .vendor = "AMD",
158 .name = "Am29F010A/B",
159 .bustype = BUS_PARALLEL,
160 .manufacture_id = AMD_ID,
161 .model_id = AMD_AM29F010,
162 .total_size = 128,
163 .page_size = 16 * 1024,
164 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Alan Greena4e579f2019-07-24 14:18:39 +1000165 .tested = TEST_OK_PRE,
Alan Green1f9cc7d2019-07-01 11:10:45 +1000166 .probe = probe_jedec,
167 .probe_timing = TIMING_ZERO,
168 .block_erasers =
169 {
170 {
171 .eraseblocks = { {16 * 1024, 8} },
172 .block_erase = erase_sector_jedec,
173 }, {
174 .eraseblocks = { {128 * 1024, 1} },
175 .block_erase = erase_chip_block_jedec,
176 },
177 },
178 .write = write_jedec_1,
179 .read = read_memmapped,
180 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +0100181 .prepare_access = prepare_memory_access,
182 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +1000183 },
184
185 {
186 .vendor = "AMD",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000187 .name = "Am29F016D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000188 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000189 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000190 .model_id = AMD_AM29F016D,
Sean Nelson72a9a022009-12-22 22:15:33 +0000191 .total_size = 2 * 1024,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000192 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000193 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000194 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +0000195 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000196 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000197 .block_erasers =
198 {
199 {
200 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson35727f72010-01-28 23:55:12 +0000201 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000202 }, {
203 .eraseblocks = { {2048 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000204 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000205 },
206 },
Sean Nelson35727f72010-01-28 23:55:12 +0000207 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000208 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000209 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +0100210 .prepare_access = prepare_memory_access,
211 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +0000212 },
213
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000214 {
215 .vendor = "AMD",
Stefan Taunerd1ca1e82016-01-31 23:17:35 +0000216 .name = "Am29F040",
217 .bustype = BUS_PARALLEL,
218 .manufacture_id = AMD_ID,
219 .model_id = AMD_AM29F040,
220 .total_size = 512,
221 .page_size = 64 * 1024,
222 .feature_bits = FEATURE_EITHER_RESET,
223 .tested = TEST_UNTESTED,
224 .probe = probe_jedec,
225 .probe_timing = TIMING_ZERO,
226 .block_erasers =
227 {
228 {
229 .eraseblocks = { {64 * 1024, 8} },
230 .block_erase = erase_sector_jedec,
231 }, {
232 .eraseblocks = { {512 * 1024, 1} },
233 .block_erase = erase_chip_block_jedec,
234 },
235 },
236 .write = write_jedec_1,
237 .read = read_memmapped,
238 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +0100239 .prepare_access = prepare_memory_access,
240 .finish_access = finish_memory_access,
Stefan Taunerd1ca1e82016-01-31 23:17:35 +0000241 },
242
243 {
244 .vendor = "AMD",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000245 .name = "Am29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000246 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000247 .manufacture_id = AMD_ID,
Stefan Taunerd1ca1e82016-01-31 23:17:35 +0000248 .model_id = AMD_AM29F040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000249 .total_size = 512,
250 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000251 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
252 .tested = TEST_UNTESTED,
253 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000254 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000255 .block_erasers =
256 {
257 {
258 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +0000259 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000260 }, {
261 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000262 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000263 },
264 },
Sean Nelson35727f72010-01-28 23:55:12 +0000265 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000266 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000267 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +0100268 .prepare_access = prepare_memory_access,
269 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +0000270 },
271
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000272 {
273 .vendor = "AMD",
Stefan Taunerd1ca1e82016-01-31 23:17:35 +0000274 .name = "Am29F080",
275 .bustype = BUS_PARALLEL,
276 .manufacture_id = AMD_ID,
277 .model_id = AMD_AM29F080,
278 .total_size = 1024,
279 .page_size = 64 * 1024,
280 .feature_bits = FEATURE_EITHER_RESET,
281 .tested = TEST_UNTESTED,
282 .probe = probe_jedec,
283 .probe_timing = TIMING_ZERO,
284 .block_erasers =
285 {
286 {
287 .eraseblocks = { {64 * 1024, 16} },
288 .block_erase = erase_sector_jedec,
289 }, {
290 .eraseblocks = { {1024 * 1024, 1} },
291 .block_erase = erase_chip_block_jedec,
292 },
293 },
294 .write = write_jedec_1,
295 .read = read_memmapped,
296 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +0100297 .prepare_access = prepare_memory_access,
298 .finish_access = finish_memory_access,
Stefan Taunerd1ca1e82016-01-31 23:17:35 +0000299 },
300
301 {
302 .vendor = "AMD",
Peter Stuge8440cc02009-01-25 23:55:12 +0000303 .name = "Am29F080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000304 .bustype = BUS_PARALLEL,
Mateusz Murawski5bae4382009-06-02 00:38:14 +0000305 .manufacture_id = AMD_ID,
Stefan Taunerd1ca1e82016-01-31 23:17:35 +0000306 .model_id = AMD_AM29F080,
Peter Stuge8440cc02009-01-25 23:55:12 +0000307 .total_size = 1024,
308 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000309 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +0000310 .tested = TEST_UNTESTED,
311 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +0000312 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000313 .block_erasers =
314 {
315 {
316 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson35727f72010-01-28 23:55:12 +0000317 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000318 }, {
319 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000320 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000321 },
322 },
Sean Nelson35727f72010-01-28 23:55:12 +0000323 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000324 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000325 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +0100326 .prepare_access = prepare_memory_access,
327 .finish_access = finish_memory_access,
Peter Stuge8440cc02009-01-25 23:55:12 +0000328 },
329
330 {
331 .vendor = "AMD",
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000332 .name = "Am29LV001BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000333 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000334 .manufacture_id = AMD_ID,
335 .model_id = AMD_AM29LV001BB,
336 .total_size = 128,
337 .page_size = 64 * 1024, /* unused */
338 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
339 .tested = TEST_OK_PREW,
340 .probe = probe_jedec,
341 .probe_timing = TIMING_ZERO,
342 .block_erasers =
343 {
344 {
345 .eraseblocks = {
346 {8 * 1024, 1},
347 {4 * 1024, 2},
348 {16 * 1024, 7},
349 },
350 .block_erase = erase_sector_jedec,
351 }, {
352 .eraseblocks = { {128 * 1024, 1} },
353 .block_erase = erase_chip_block_jedec,
354 },
355 },
356 .write = write_jedec_1,
357 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000358 .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R, others 2.7-3.6V */
Nico Huber9eec4072023-01-12 01:17:30 +0100359 .prepare_access = prepare_memory_access,
360 .finish_access = finish_memory_access,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000361 },
362
363 {
364 .vendor = "AMD",
365 .name = "Am29LV001BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000366 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000367 .manufacture_id = AMD_ID,
368 .model_id = AMD_AM29LV001BT,
369 .total_size = 128,
370 .page_size = 64 * 1024, /* unused */
371 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
372 .tested = TEST_UNTESTED,
373 .probe = probe_jedec,
374 .probe_timing = TIMING_ZERO,
375 .block_erasers =
376 {
377 {
378 .eraseblocks = {
379 {16 * 1024, 7},
380 {4 * 1024, 2},
381 {8 * 1024, 1},
382 },
383 .block_erase = erase_sector_jedec,
384 }, {
385 .eraseblocks = { {128 * 1024, 1} },
386 .block_erase = erase_chip_block_jedec,
387 },
388 },
389 .write = write_jedec_1,
390 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000391 .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R, others 2.7-3.6V */
Nico Huber9eec4072023-01-12 01:17:30 +0100392 .prepare_access = prepare_memory_access,
393 .finish_access = finish_memory_access,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000394 },
395
396 {
397 .vendor = "AMD",
398 .name = "Am29LV002BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000399 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000400 .manufacture_id = AMD_ID,
401 .model_id = AMD_AM29LV002BB,
402 .total_size = 256,
403 .page_size = 64 * 1024, /* unused */
404 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
405 .tested = TEST_UNTESTED,
406 .probe = probe_jedec,
407 .probe_timing = TIMING_ZERO,
408 .block_erasers =
409 {
410 {
411 .eraseblocks = {
412 {16 * 1024, 1},
413 {8 * 1024, 2},
414 {32 * 1024, 1},
415 {64 * 1024, 3},
416 },
417 .block_erase = erase_sector_jedec,
418 }, {
419 .eraseblocks = { {256 * 1024, 1} },
420 .block_erase = erase_chip_block_jedec,
421 },
422 },
423 .write = write_jedec_1,
424 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000425 .voltage = {3000, 3600}, /* 3.0-3.6V for type -55, others 2.7-3.6V */
Nico Huber9eec4072023-01-12 01:17:30 +0100426 .prepare_access = prepare_memory_access,
427 .finish_access = finish_memory_access,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000428 },
429
430 {
431 .vendor = "AMD",
432 .name = "Am29LV002BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000433 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000434 .manufacture_id = AMD_ID,
435 .model_id = AMD_AM29LV002BT,
436 .total_size = 256,
437 .page_size = 64 * 1024, /* unused */
438 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
439 .tested = TEST_UNTESTED,
440 .probe = probe_jedec,
441 .probe_timing = TIMING_ZERO,
442 .block_erasers =
443 {
444 {
445 .eraseblocks = {
446 {64 * 1024, 3},
447 {32 * 1024, 1},
448 {8 * 1024, 2},
449 {16 * 1024, 1},
450 },
451 .block_erase = erase_sector_jedec,
452 }, {
453 .eraseblocks = { {256 * 1024, 1} },
454 .block_erase = erase_chip_block_jedec,
455 },
456 },
457 .write = write_jedec_1,
458 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000459 .voltage = {3000, 3600}, /* 3.0-3.6V for type -55, others 2.7-3.6V */
Nico Huber9eec4072023-01-12 01:17:30 +0100460 .prepare_access = prepare_memory_access,
461 .finish_access = finish_memory_access,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000462 },
463
464 {
465 .vendor = "AMD",
466 .name = "Am29LV004BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000467 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000468 .manufacture_id = AMD_ID,
469 .model_id = AMD_AM29LV004BB,
470 .total_size = 512,
471 .page_size = 64 * 1024, /* unused */
472 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
473 .tested = TEST_UNTESTED,
474 .probe = probe_jedec,
475 .probe_timing = TIMING_ZERO,
476 .block_erasers =
477 {
478 {
479 .eraseblocks = {
480 {16 * 1024, 1},
481 {8 * 1024, 2},
482 {32 * 1024, 1},
483 {64 * 1024, 7},
484 },
485 .block_erase = erase_sector_jedec,
486 }, {
487 .eraseblocks = { {512 * 1024, 1} },
488 .block_erase = erase_chip_block_jedec,
489 },
490 },
491 .write = write_jedec_1,
492 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000493 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +0100494 .prepare_access = prepare_memory_access,
495 .finish_access = finish_memory_access,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000496 },
497
498 {
499 .vendor = "AMD",
500 .name = "Am29LV004BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000501 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000502 .manufacture_id = AMD_ID,
503 .model_id = AMD_AM29LV004BT,
504 .total_size = 512,
505 .page_size = 64 * 1024, /* unused */
506 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
507 .tested = TEST_UNTESTED,
508 .probe = probe_jedec,
509 .probe_timing = TIMING_ZERO,
510 .block_erasers =
511 {
512 {
513 .eraseblocks = {
514 {64 * 1024, 7},
515 {32 * 1024, 1},
516 {8 * 1024, 2},
517 {16 * 1024, 1},
518 },
519 .block_erase = erase_sector_jedec,
520 }, {
521 .eraseblocks = { {512 * 1024, 1} },
522 .block_erase = erase_chip_block_jedec,
523 },
524 },
525 .write = write_jedec_1,
526 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000527 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +0100528 .prepare_access = prepare_memory_access,
529 .finish_access = finish_memory_access,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000530 },
531
532 {
533 .vendor = "AMD",
534 .name = "Am29LV008BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000535 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000536 .manufacture_id = AMD_ID,
537 .model_id = AMD_AM29LV008BB,
538 .total_size = 1024,
539 .page_size = 64 * 1024, /* unused */
540 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Uwe Hermann09ebd522011-08-25 22:54:23 +0000541 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000542 .probe = probe_jedec,
543 .probe_timing = TIMING_ZERO,
544 .block_erasers =
545 {
546 {
547 .eraseblocks = {
548 {16 * 1024, 1},
549 {8 * 1024, 2},
550 {32 * 1024, 1},
551 {64 * 1024, 15},
552 },
553 .block_erase = erase_sector_jedec,
554 }, {
555 .eraseblocks = { {1024 * 1024, 1} },
556 .block_erase = erase_chip_block_jedec,
557 },
558 },
559 .write = write_jedec_1,
560 .read = read_memmapped,
Alan Greenf5ad6882019-06-27 12:09:13 +1000561 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70R, others 2.7-3.6V */
Nico Huber9eec4072023-01-12 01:17:30 +0100562 .prepare_access = prepare_memory_access,
563 .finish_access = finish_memory_access,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000564 },
565
566 {
567 .vendor = "AMD",
568 .name = "Am29LV008BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000569 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000570 .manufacture_id = AMD_ID,
571 .model_id = AMD_AM29LV008BT,
572 .total_size = 1024,
573 .page_size = 64 * 1024, /* unused */
574 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
575 .tested = TEST_UNTESTED,
576 .probe = probe_jedec,
577 .probe_timing = TIMING_ZERO,
578 .block_erasers =
579 {
580 {
581 .eraseblocks = {
582 {64 * 1024, 15},
583 {32 * 1024, 1},
584 {8 * 1024, 2},
585 {16 * 1024, 1},
586 },
587 .block_erase = erase_sector_jedec,
588 }, {
589 .eraseblocks = { {1024 * 1024, 1} },
590 .block_erase = erase_chip_block_jedec,
591 },
592 },
593 .write = write_jedec_1,
594 .read = read_memmapped,
Alan Greenf5ad6882019-06-27 12:09:13 +1000595 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70R, others 2.7-3.6V */
Nico Huber9eec4072023-01-12 01:17:30 +0100596 .prepare_access = prepare_memory_access,
597 .finish_access = finish_memory_access,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000598 },
599
600 {
601 .vendor = "AMD",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000602 .name = "Am29LV040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000603 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000604 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000605 .model_id = AMD_AM29LV040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000606 .total_size = 512,
607 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000608 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000609 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +0000610 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000611 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000612 .block_erasers =
613 {
614 {
615 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +0000616 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000617 }, {
618 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000619 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000620 },
621 },
Sean Nelson35727f72010-01-28 23:55:12 +0000622 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000623 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000624 .voltage = {3000, 3600}, /* 3.0-3.6V for type -60R, others 2.7-3.6V*/
Nico Huber9eec4072023-01-12 01:17:30 +0100625 .prepare_access = prepare_memory_access,
626 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +0000627 },
628
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000629 {
Peter Stuge8440cc02009-01-25 23:55:12 +0000630 .vendor = "AMD",
631 .name = "Am29LV081B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000632 .bustype = BUS_PARALLEL,
Mateusz Murawski5bae4382009-06-02 00:38:14 +0000633 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000634 .model_id = AMD_AM29LV080B,
Peter Stuge8440cc02009-01-25 23:55:12 +0000635 .total_size = 1024,
636 .page_size = 64 * 1024,
David Borg204f4652010-12-04 03:26:40 +0000637 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, /* datasheet specifies address as don't care */
Peter Stuge8440cc02009-01-25 23:55:12 +0000638 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +0000639 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000640 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000641 .block_erasers =
642 {
643 {
644 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson35727f72010-01-28 23:55:12 +0000645 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000646 }, {
647 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000648 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000649 },
650 },
Sean Nelson35727f72010-01-28 23:55:12 +0000651 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000652 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000653 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70R, others 2.7-3.6V */
Nico Huber9eec4072023-01-12 01:17:30 +0100654 .prepare_access = prepare_memory_access,
655 .finish_access = finish_memory_access,
Peter Stuge8440cc02009-01-25 23:55:12 +0000656 },
657
658 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000659 .vendor = "AMIC",
Alan Green1f9cc7d2019-07-01 11:10:45 +1000660 .name = "A25L010",
661 .bustype = BUS_SPI,
662 .manufacture_id = AMIC_ID_NOPREFIX,
663 .model_id = AMIC_A25L010,
664 .total_size = 128,
665 .page_size = 256,
666 .feature_bits = FEATURE_WRSR_WREN,
667 .tested = TEST_UNTESTED,
668 .probe = probe_spi_rdid,
669 .probe_timing = TIMING_ZERO,
670 .block_erasers =
671 {
672 {
673 .eraseblocks = { { 4 * 1024, 32 } },
674 .block_erase = spi_block_erase_20,
675 }, {
676 .eraseblocks = { { 64 * 1024, 2 } },
677 .block_erase = spi_block_erase_d8,
678 }, {
679 .eraseblocks = { { 128 * 1024, 1 } },
680 .block_erase = spi_block_erase_c7,
681 }
682 },
683 .printlock = spi_prettyprint_status_register_bp2_srwd,
684 .unlock = spi_disable_blockprotect,
685 .write = spi_chip_write_256,
686 .read = spi_chip_read,
687 .voltage = {2700, 3600},
688 },
689
690 {
691 .vendor = "AMIC",
692 .name = "A25L016",
693 .bustype = BUS_SPI,
694 .manufacture_id = AMIC_ID_NOPREFIX,
695 .model_id = AMIC_A25L016,
696 .total_size = 2048,
697 .page_size = 256,
698 .feature_bits = FEATURE_WRSR_WREN,
699 .tested = TEST_UNTESTED,
700 .probe = probe_spi_rdid,
701 .probe_timing = TIMING_ZERO,
702 .block_erasers =
703 {
704 {
705 .eraseblocks = { { 4 * 1024, 512 } },
706 .block_erase = spi_block_erase_20,
707 }, {
708 .eraseblocks = { { 64 * 1024, 32 } },
709 .block_erase = spi_block_erase_d8,
710 }, {
711 .eraseblocks = { { 2048 * 1024, 1 } },
712 .block_erase = spi_block_erase_c7,
713 }
714 },
715 .printlock = spi_prettyprint_status_register_bp2_srwd,
716 .unlock = spi_disable_blockprotect,
717 .write = spi_chip_write_256,
718 .read = spi_chip_read,
719 .voltage = {2700, 3600},
720 },
721
722 {
723 .vendor = "AMIC",
724 .name = "A25L020",
725 .bustype = BUS_SPI,
726 .manufacture_id = AMIC_ID_NOPREFIX,
727 .model_id = AMIC_A25L020,
728 .total_size = 256,
729 .page_size = 256,
730 .feature_bits = FEATURE_WRSR_WREN,
731 .tested = TEST_UNTESTED,
732 .probe = probe_spi_rdid,
733 .probe_timing = TIMING_ZERO,
734 .block_erasers =
735 {
736 {
737 .eraseblocks = { { 4 * 1024, 64 } },
738 .block_erase = spi_block_erase_20,
739 }, {
740 .eraseblocks = { { 64 * 1024, 4 } },
741 .block_erase = spi_block_erase_d8,
742 }, {
743 .eraseblocks = { { 256 * 1024, 1 } },
744 .block_erase = spi_block_erase_c7,
745 }
746 },
747 .printlock = spi_prettyprint_status_register_bp2_srwd,
748 .unlock = spi_disable_blockprotect,
749 .write = spi_chip_write_256,
750 .read = spi_chip_read,
751 .voltage = {2700, 3600},
752 },
753
754 {
755 .vendor = "AMIC",
756 .name = "A25L032",
757 .bustype = BUS_SPI,
758 .manufacture_id = AMIC_ID_NOPREFIX,
759 .model_id = AMIC_A25L032,
760 .total_size = 4096,
761 .page_size = 256,
762 /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */
763 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
764 .tested = TEST_OK_PREW,
765 .probe = probe_spi_rdid,
766 .probe_timing = TIMING_ZERO,
767 .block_erasers =
768 {
769 {
770 .eraseblocks = { { 4 * 1024, 1024 } },
771 .block_erase = spi_block_erase_20,
772 }, {
773 .eraseblocks = { { 64 * 1024, 64 } },
774 .block_erase = spi_block_erase_52,
775 }, {
776 .eraseblocks = { { 64 * 1024, 64 } },
777 .block_erase = spi_block_erase_d8,
778 }, {
779 .eraseblocks = { { 4096 * 1024, 1 } },
780 .block_erase = spi_block_erase_60,
781 }, {
782 .eraseblocks = { { 4096 * 1024, 1 } },
783 .block_erase = spi_block_erase_c7,
784 }
785 },
786 .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */
787 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */
788 .write = spi_chip_write_256,
789 .read = spi_chip_read,
790 .voltage = {2700, 3600},
791 },
792
793 {
794 .vendor = "AMIC",
795 .name = "A25L040",
796 .bustype = BUS_SPI,
797 .manufacture_id = AMIC_ID_NOPREFIX,
798 .model_id = AMIC_A25L040,
799 .total_size = 512,
800 .page_size = 256,
801 .feature_bits = FEATURE_WRSR_WREN,
802 .tested = TEST_UNTESTED,
803 .probe = probe_spi_rdid,
804 .probe_timing = TIMING_ZERO,
805 .block_erasers =
806 {
807 {
808 .eraseblocks = { { 4 * 1024, 128 } },
809 .block_erase = spi_block_erase_20,
810 }, {
811 .eraseblocks = { { 64 * 1024, 8 } },
812 .block_erase = spi_block_erase_d8,
813 }, {
814 .eraseblocks = { { 512 * 1024, 1 } },
815 .block_erase = spi_block_erase_c7,
816 }
817 },
818 .printlock = spi_prettyprint_status_register_bp2_srwd,
819 .unlock = spi_disable_blockprotect,
820 .write = spi_chip_write_256,
821 .read = spi_chip_read,
822 .voltage = {2700, 3600},
823 },
824
825 {
826 .vendor = "AMIC",
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000827 .name = "A25L05PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000828 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000829 .manufacture_id = AMIC_ID,
830 .model_id = AMIC_A25L05PT,
831 .total_size = 64,
832 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000833 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000834 .tested = TEST_UNTESTED,
835 .probe = probe_spi_rdid4,
836 .probe_timing = TIMING_ZERO,
837 .block_erasers =
838 {
839 {
840 .eraseblocks = {
841 {32 * 1024, 1},
842 {16 * 1024, 1},
843 {8 * 1024, 1},
844 {4 * 1024, 2},
845 },
846 .block_erase = spi_block_erase_d8,
847 }, {
848 .eraseblocks = { {64 * 1024, 1} },
849 .block_erase = spi_block_erase_c7,
850 }
851 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000852 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000853 .unlock = spi_disable_blockprotect,
854 .write = spi_chip_write_256,
855 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000856 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000857 },
858
859 {
860 .vendor = "AMIC",
861 .name = "A25L05PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000862 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000863 .manufacture_id = AMIC_ID,
864 .model_id = AMIC_A25L05PU,
865 .total_size = 64,
866 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000867 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000868 .tested = TEST_UNTESTED,
869 .probe = probe_spi_rdid4,
870 .probe_timing = TIMING_ZERO,
871 .block_erasers =
872 {
873 {
874 .eraseblocks = {
875 {4 * 1024, 2},
876 {8 * 1024, 1},
877 {16 * 1024, 1},
878 {32 * 1024, 1},
879 },
880 .block_erase = spi_block_erase_d8,
881 }, {
882 .eraseblocks = { {64 * 1024, 1} },
883 .block_erase = spi_block_erase_c7,
884 }
885 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000886 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000887 .unlock = spi_disable_blockprotect,
888 .write = spi_chip_write_256,
889 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000890 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000891 },
892
893 {
894 .vendor = "AMIC",
Alan Green1f9cc7d2019-07-01 11:10:45 +1000895 .name = "A25L080",
896 .bustype = BUS_SPI,
897 .manufacture_id = AMIC_ID_NOPREFIX,
898 .model_id = AMIC_A25L080,
899 .total_size = 1024,
900 .page_size = 256,
901 .feature_bits = FEATURE_WRSR_WREN,
902 .tested = TEST_UNTESTED,
903 .probe = probe_spi_rdid,
904 .probe_timing = TIMING_ZERO,
905 .block_erasers =
906 {
907 {
908 .eraseblocks = { { 4 * 1024, 256 } },
909 .block_erase = spi_block_erase_20,
910 }, {
911 .eraseblocks = { { 64 * 1024, 16 } },
912 .block_erase = spi_block_erase_d8,
913 }, {
914 .eraseblocks = { { 1024 * 1024, 1 } },
915 .block_erase = spi_block_erase_c7,
916 }
917 },
918 .printlock = spi_prettyprint_status_register_bp2_srwd,
919 .unlock = spi_disable_blockprotect,
920 .write = spi_chip_write_256,
921 .read = spi_chip_read,
922 .voltage = {2700, 3600},
923 },
924
925 {
926 .vendor = "AMIC",
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000927 .name = "A25L10PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000928 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000929 .manufacture_id = AMIC_ID,
930 .model_id = AMIC_A25L10PT,
931 .total_size = 128,
932 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000933 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000934 .tested = TEST_UNTESTED,
935 .probe = probe_spi_rdid4,
936 .probe_timing = TIMING_ZERO,
937 .block_erasers =
938 {
939 {
940 .eraseblocks = {
941 {64 * 1024, 1},
942 {32 * 1024, 1},
943 {16 * 1024, 1},
944 {8 * 1024, 1},
945 {4 * 1024, 2},
946 },
947 .block_erase = spi_block_erase_d8,
948 }, {
949 .eraseblocks = { {128 * 1024, 1} },
950 .block_erase = spi_block_erase_c7,
951 }
952 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000953 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000954 .unlock = spi_disable_blockprotect,
955 .write = spi_chip_write_256,
956 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000957 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000958 },
959
960 {
961 .vendor = "AMIC",
962 .name = "A25L10PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000963 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000964 .manufacture_id = AMIC_ID,
965 .model_id = AMIC_A25L10PU,
966 .total_size = 128,
967 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000968 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000969 .tested = TEST_UNTESTED,
970 .probe = probe_spi_rdid4,
971 .probe_timing = TIMING_ZERO,
972 .block_erasers =
973 {
974 {
975 .eraseblocks = {
976 {4 * 1024, 2},
977 {8 * 1024, 1},
978 {16 * 1024, 1},
979 {32 * 1024, 1},
980 {64 * 1024, 1},
981 },
982 .block_erase = spi_block_erase_d8,
983 }, {
984 .eraseblocks = { {128 * 1024, 1} },
985 .block_erase = spi_block_erase_c7,
986 }
987 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000988 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000989 .unlock = spi_disable_blockprotect,
990 .write = spi_chip_write_256,
991 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000992 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000993 },
994
995 {
996 .vendor = "AMIC",
Alan Green1f9cc7d2019-07-01 11:10:45 +1000997 .name = "A25L16PT",
998 .bustype = BUS_SPI,
999 .manufacture_id = AMIC_ID,
1000 .model_id = AMIC_A25L16PT,
1001 .total_size = 2048,
1002 .page_size = 256,
1003 .feature_bits = FEATURE_WRSR_WREN,
1004 .tested = TEST_UNTESTED,
1005 .probe = probe_spi_rdid4,
1006 .probe_timing = TIMING_ZERO,
1007 .block_erasers =
1008 {
1009 {
1010 .eraseblocks = {
1011 {64 * 1024, 31},
1012 {32 * 1024, 1},
1013 {16 * 1024, 1},
1014 {8 * 1024, 1},
1015 {4 * 1024, 2},
1016 },
1017 .block_erase = spi_block_erase_d8,
1018 }, {
1019 .eraseblocks = { {2048 * 1024, 1} },
1020 .block_erase = spi_block_erase_60,
1021 }, {
1022 .eraseblocks = { {2048 * 1024, 1} },
1023 .block_erase = spi_block_erase_c7,
1024 }
1025 },
1026 .printlock = spi_prettyprint_status_register_bp2_srwd,
1027 .unlock = spi_disable_blockprotect,
1028 .write = spi_chip_write_256,
1029 .read = spi_chip_read,
1030 .voltage = {2700, 3600},
1031 },
1032
1033 {
1034 .vendor = "AMIC",
1035 .name = "A25L16PU",
1036 .bustype = BUS_SPI,
1037 .manufacture_id = AMIC_ID,
1038 .model_id = AMIC_A25L16PU,
1039 .total_size = 2048,
1040 .page_size = 256,
1041 .feature_bits = FEATURE_WRSR_WREN,
1042 .tested = TEST_OK_PR,
1043 .probe = probe_spi_rdid4,
1044 .probe_timing = TIMING_ZERO,
1045 .block_erasers =
1046 {
1047 {
1048 .eraseblocks = {
1049 {4 * 1024, 2},
1050 {8 * 1024, 1},
1051 {16 * 1024, 1},
1052 {32 * 1024, 1},
1053 {64 * 1024, 31},
1054 },
1055 .block_erase = spi_block_erase_d8,
1056 }, {
1057 .eraseblocks = { {2048 * 1024, 1} },
1058 .block_erase = spi_block_erase_60,
1059 }, {
1060 .eraseblocks = { {2048 * 1024, 1} },
1061 .block_erase = spi_block_erase_c7,
1062 }
1063 },
1064 .printlock = spi_prettyprint_status_register_bp2_srwd,
1065 .unlock = spi_disable_blockprotect,
1066 .write = spi_chip_write_256,
1067 .read = spi_chip_read,
1068 .voltage = {2700, 3600},
1069 },
1070
1071 {
1072 .vendor = "AMIC",
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001073 .name = "A25L20PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001074 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001075 .manufacture_id = AMIC_ID,
1076 .model_id = AMIC_A25L20PT,
1077 .total_size = 256,
1078 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001079 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001080 .tested = TEST_UNTESTED,
1081 .probe = probe_spi_rdid4,
1082 .probe_timing = TIMING_ZERO,
1083 .block_erasers =
1084 {
1085 {
1086 .eraseblocks = {
1087 {64 * 1024, 3},
1088 {32 * 1024, 1},
1089 {16 * 1024, 1},
1090 {8 * 1024, 1},
1091 {4 * 1024, 2},
1092 },
1093 .block_erase = spi_block_erase_d8,
1094 }, {
1095 .eraseblocks = { {256 * 1024, 1} },
1096 .block_erase = spi_block_erase_c7,
1097 }
1098 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001099 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001100 .unlock = spi_disable_blockprotect,
1101 .write = spi_chip_write_256,
1102 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001103 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001104 },
1105
1106 {
1107 .vendor = "AMIC",
1108 .name = "A25L20PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001109 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001110 .manufacture_id = AMIC_ID,
1111 .model_id = AMIC_A25L20PU,
1112 .total_size = 256,
1113 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001114 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001115 .tested = TEST_UNTESTED,
1116 .probe = probe_spi_rdid4,
1117 .probe_timing = TIMING_ZERO,
1118 .block_erasers =
1119 {
1120 {
1121 .eraseblocks = {
1122 {4 * 1024, 2},
1123 {8 * 1024, 1},
1124 {16 * 1024, 1},
1125 {32 * 1024, 1},
1126 {64 * 1024, 3},
1127 },
1128 .block_erase = spi_block_erase_d8,
1129 }, {
1130 .eraseblocks = { {256 * 1024, 1} },
1131 .block_erase = spi_block_erase_c7,
1132 }
1133 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001134 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001135 .unlock = spi_disable_blockprotect,
1136 .write = spi_chip_write_256,
1137 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001138 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001139 },
1140
1141 /* The A25L40P{T,U} chips are distinguished by their
1142 * erase block layouts, but without any distinction in RDID.
1143 * This inexplicable quirk was verified by Rudolf Marek
Nico Huberc3b02dc2023-08-12 01:13:45 +02001144 * and discussed on the flashprog mailing list on 2010-07-12.
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001145 */
1146 {
1147 .vendor = "AMIC",
1148 .name = "A25L40PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001149 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001150 .manufacture_id = AMIC_ID,
1151 .model_id = AMIC_A25L40PT,
1152 .total_size = 512,
1153 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001154 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00001155 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001156 .probe = probe_spi_rdid4,
1157 .probe_timing = TIMING_ZERO,
1158 .block_erasers =
1159 {
1160 {
1161 .eraseblocks = {
1162 {64 * 1024, 7},
1163 {32 * 1024, 1},
1164 {16 * 1024, 1},
1165 {8 * 1024, 1},
1166 {4 * 1024, 2},
1167 },
1168 .block_erase = spi_block_erase_d8,
1169 }, {
1170 .eraseblocks = { {512 * 1024, 1} },
1171 .block_erase = spi_block_erase_c7,
1172 }
1173 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001174 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001175 .unlock = spi_disable_blockprotect,
1176 .write = spi_chip_write_256,
1177 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001178 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001179 },
1180
1181 {
1182 .vendor = "AMIC",
1183 .name = "A25L40PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001184 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001185 .manufacture_id = AMIC_ID,
1186 .model_id = AMIC_A25L40PU,
1187 .total_size = 512,
1188 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001189 .feature_bits = FEATURE_WRSR_WREN,
Angel Pons6f088352018-09-30 19:59:42 +02001190 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001191 .probe = probe_spi_rdid4,
1192 .probe_timing = TIMING_ZERO,
1193 .block_erasers =
1194 {
1195 {
1196 .eraseblocks = {
1197 {4 * 1024, 2},
1198 {8 * 1024, 1},
1199 {16 * 1024, 1},
1200 {32 * 1024, 1},
1201 {64 * 1024, 7},
1202 },
1203 .block_erase = spi_block_erase_d8,
1204 }, {
1205 .eraseblocks = { {512 * 1024, 1} },
1206 .block_erase = spi_block_erase_c7,
1207 }
1208 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001209 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001210 .unlock = spi_disable_blockprotect,
1211 .write = spi_chip_write_256,
1212 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001213 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001214 },
1215
1216 {
1217 .vendor = "AMIC",
Alan Green1f9cc7d2019-07-01 11:10:45 +10001218 .name = "A25L512",
1219 .bustype = BUS_SPI,
1220 .manufacture_id = AMIC_ID_NOPREFIX,
1221 .model_id = AMIC_A25L512,
1222 .total_size = 64,
1223 .page_size = 256,
1224 .feature_bits = FEATURE_WRSR_WREN,
1225 .tested = TEST_UNTESTED,
1226 .probe = probe_spi_rdid,
1227 .probe_timing = TIMING_ZERO,
1228 .block_erasers =
1229 {
1230 {
1231 .eraseblocks = { { 4 * 1024, 16 } },
1232 .block_erase = spi_block_erase_20,
1233 }, {
1234 .eraseblocks = { { 64 * 1024, 1 } },
1235 .block_erase = spi_block_erase_d8,
1236 }, {
1237 .eraseblocks = { { 64 * 1024, 1 } },
1238 .block_erase = spi_block_erase_c7,
1239 }
1240 },
1241 .printlock = spi_prettyprint_status_register_bp2_srwd,
1242 .unlock = spi_disable_blockprotect,
1243 .write = spi_chip_write_256,
1244 .read = spi_chip_read,
1245 .voltage = {2700, 3600},
1246 },
1247
1248 {
1249 .vendor = "AMIC",
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001250 .name = "A25L80P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001251 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001252 .manufacture_id = AMIC_ID,
1253 .model_id = AMIC_A25L80P,
1254 .total_size = 1024,
1255 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001256 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00001257 .tested = TEST_OK_PRE,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001258 .probe = probe_spi_rdid4,
1259 .probe_timing = TIMING_ZERO,
1260 .block_erasers =
1261 {
1262 {
1263 .eraseblocks = {
1264 {4 * 1024, 2},
1265 {8 * 1024, 1},
1266 {16 * 1024, 1},
1267 {32 * 1024, 1},
1268 {64 * 1024, 15},
1269 },
1270 .block_erase = spi_block_erase_d8,
1271 }, {
1272 .eraseblocks = { {1024 * 1024, 1} },
1273 .block_erase = spi_block_erase_c7,
1274 }
1275 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001276 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001277 .unlock = spi_disable_blockprotect,
1278 .write = spi_chip_write_256,
1279 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001280 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001281 },
1282
1283 {
1284 .vendor = "AMIC",
Alan Green1f9cc7d2019-07-01 11:10:45 +10001285 .name = "A25LQ032/A25LQ32A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001286 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001287 .manufacture_id = AMIC_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10001288 .model_id = AMIC_A25LQ032,
Dan Lenski11617122010-07-29 15:00:40 +00001289 .total_size = 4096,
1290 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10001291 /* A25LQ32A supports SFDP */
Daniel Lenski65922a32012-02-15 23:40:23 +00001292 /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */
1293 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Alan Green1f9cc7d2019-07-01 11:10:45 +10001294 .tested = TEST_UNTESTED,
Dan Lenski11617122010-07-29 15:00:40 +00001295 .probe = probe_spi_rdid,
1296 .probe_timing = TIMING_ZERO,
1297 .block_erasers =
1298 {
1299 {
1300 .eraseblocks = { { 4 * 1024, 1024 } },
1301 .block_erase = spi_block_erase_20,
1302 }, {
1303 .eraseblocks = { { 64 * 1024, 64 } },
1304 .block_erase = spi_block_erase_52,
1305 }, {
1306 .eraseblocks = { { 64 * 1024, 64 } },
1307 .block_erase = spi_block_erase_d8,
1308 }, {
1309 .eraseblocks = { { 4096 * 1024, 1 } },
1310 .block_erase = spi_block_erase_60,
1311 }, {
1312 .eraseblocks = { { 4096 * 1024, 1 } },
1313 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001314 }
Dan Lenski11617122010-07-29 15:00:40 +00001315 },
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001316 .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */
1317 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */
Dan Lenski11617122010-07-29 15:00:40 +00001318 .write = spi_chip_write_256,
1319 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001320 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001321 },
1322
1323 {
1324 .vendor = "AMIC",
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001325 .name = "A25LQ16",
1326 .bustype = BUS_SPI,
1327 .manufacture_id = AMIC_ID_NOPREFIX,
1328 .model_id = AMIC_A25LQ16,
1329 .total_size = 2048,
1330 .page_size = 256,
1331 /* supports SFDP */
1332 /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */
1333 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
1334 .tested = TEST_UNTESTED,
1335 .probe = probe_spi_rdid,
1336 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10001337 .block_erasers =
1338 {
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001339 {
1340 .eraseblocks = { { 4 * 1024, 512 } },
1341 .block_erase = spi_block_erase_20,
1342 }, {
1343 .eraseblocks = { { 64 * 1024, 32 } },
1344 .block_erase = spi_block_erase_52,
1345 }, {
1346 .eraseblocks = { { 64 * 1024, 32 } },
1347 .block_erase = spi_block_erase_d8,
1348 }, {
1349 .eraseblocks = { { 2048 * 1024, 1 } },
1350 .block_erase = spi_block_erase_60,
1351 }, {
1352 .eraseblocks = { { 2048 * 1024, 1 } },
1353 .block_erase = spi_block_erase_c7,
1354 }
1355 },
1356 .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */
1357 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */
1358 .write = spi_chip_write_256,
1359 .read = spi_chip_read,
1360 .voltage = {2700, 3600},
1361 },
1362
1363 {
1364 .vendor = "AMIC",
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001365 .name = "A25LQ64",
1366 .bustype = BUS_SPI,
1367 .manufacture_id = AMIC_ID_NOPREFIX,
Stefan Tauner23e10b82016-01-23 16:16:49 +00001368 .model_id = AMIC_A25LQ64,
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001369 .total_size = 8192,
1370 .page_size = 256,
1371 /* supports SFDP */
1372 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
1373 /* QPI enable 0x35, disable 0xF5 */
1374 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
1375 .tested = TEST_UNTESTED,
1376 .probe = probe_spi_rdid,
1377 .probe_timing = TIMING_ZERO,
1378 .block_erasers =
1379 {
1380 {
1381 .eraseblocks = { { 4 * 1024, 2048 } },
1382 .block_erase = spi_block_erase_20,
1383 }, {
1384 .eraseblocks = { { 32 * 1024, 256 } },
1385 .block_erase = spi_block_erase_52,
1386 }, {
1387 .eraseblocks = { { 64 * 1024, 128 } },
1388 .block_erase = spi_block_erase_d8,
1389 }, {
1390 .eraseblocks = { { 8192 * 1024, 1 } },
1391 .block_erase = spi_block_erase_60,
1392 }, {
1393 .eraseblocks = { { 8192 * 1024, 1 } },
1394 .block_erase = spi_block_erase_c7,
1395 }
1396 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001397 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enhance (sic!) */
Stefan Tauner5c316f92015-02-08 21:57:52 +00001398 .unlock = spi_disable_blockprotect_bp3_srwd,
Dan Lenski11617122010-07-29 15:00:40 +00001399 .write = spi_chip_write_256,
1400 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001401 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001402 },
1403
1404 {
1405 .vendor = "AMIC",
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001406 .name = "A29002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001407 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001408 .manufacture_id = AMIC_ID_NOPREFIX,
1409 .model_id = AMIC_A29002B,
1410 .total_size = 256,
1411 .page_size = 64 * 1024,
1412 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
1413 .tested = TEST_UNTESTED,
1414 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001415 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001416 .block_erasers =
1417 {
1418 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00001419 .eraseblocks = {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001420 {16 * 1024, 1},
1421 {8 * 1024, 2},
1422 {32 * 1024, 1},
1423 {64 * 1024, 3},
1424 },
1425 .block_erase = erase_sector_jedec,
1426 }, {
1427 .eraseblocks = { {256 * 1024, 1} },
1428 .block_erase = erase_chip_block_jedec,
1429 },
1430 },
1431 .write = write_jedec_1,
1432 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001433 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +01001434 .prepare_access = prepare_memory_access,
1435 .finish_access = finish_memory_access,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001436 },
1437
1438 {
1439 .vendor = "AMIC",
1440 .name = "A29002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001441 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001442 .manufacture_id = AMIC_ID_NOPREFIX,
1443 .model_id = AMIC_A29002T,
1444 .total_size = 256,
1445 .page_size = 64 * 1024,
1446 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00001447 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001448 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001449 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001450 .block_erasers =
1451 {
1452 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00001453 .eraseblocks = {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001454 {64 * 1024, 3},
1455 {32 * 1024, 1},
1456 {8 * 1024, 2},
1457 {16 * 1024, 1},
1458 },
1459 .block_erase = erase_sector_jedec,
1460 }, {
1461 .eraseblocks = { {256 * 1024, 1} },
1462 .block_erase = erase_chip_block_jedec,
1463 },
1464 },
1465 .write = write_jedec_1,
1466 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001467 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +01001468 .prepare_access = prepare_memory_access,
1469 .finish_access = finish_memory_access,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001470 },
1471
1472 {
1473 .vendor = "AMIC",
1474 .name = "A29040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001475 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001476 .manufacture_id = AMIC_ID_NOPREFIX,
1477 .model_id = AMIC_A29040B,
1478 .total_size = 512,
1479 .page_size = 64 * 1024,
1480 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Corey Osgoodcbd56652013-09-10 10:42:48 +00001481 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001482 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001483 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001484 .block_erasers =
1485 {
1486 {
1487 .eraseblocks = { {64 * 1024, 8} },
1488 .block_erase = erase_sector_jedec,
1489 }, {
1490 .eraseblocks = { {512 * 1024, 1} },
1491 .block_erase = erase_chip_block_jedec,
1492 },
1493 },
1494 .write = write_jedec_1,
1495 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001496 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +01001497 .prepare_access = prepare_memory_access,
1498 .finish_access = finish_memory_access,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001499 },
1500
1501 {
1502 .vendor = "AMIC",
1503 .name = "A49LF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001504 .bustype = BUS_LPC,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001505 .manufacture_id = AMIC_ID_NOPREFIX,
1506 .model_id = AMIC_A49LF040A,
1507 .total_size = 512,
1508 .page_size = 64 * 1024,
Nico Huberb1974022023-01-12 13:13:12 +01001509 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00001510 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001511 .probe = probe_jedec,
1512 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
1513 .block_erasers =
1514 {
1515 {
1516 .eraseblocks = { {64 * 1024, 8} },
1517 .block_erase = erase_block_jedec,
1518 }, {
1519 .eraseblocks = { {512 * 1024, 1} },
1520 .block_erase = erase_chip_block_jedec,
1521 }
1522 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00001523 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001524 .write = write_jedec_1,
1525 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001526 .voltage = {3000, 3600},
Nico Huberb1974022023-01-12 13:13:12 +01001527 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +01001528 .finish_access = finish_memory_access,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001529 },
1530
1531 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001532 .vendor = "Atmel",
1533 .name = "AT25DF021",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001534 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001535 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001536 .model_id = ATMEL_AT25DF021,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001537 .total_size = 256,
1538 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001539 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1540 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001541 .tested = TEST_UNTESTED,
1542 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001543 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001544 .block_erasers =
1545 {
1546 {
1547 .eraseblocks = { {4 * 1024, 64} },
1548 .block_erase = spi_block_erase_20,
1549 }, {
1550 .eraseblocks = { {32 * 1024, 8} },
1551 .block_erase = spi_block_erase_52,
1552 }, {
1553 .eraseblocks = { {64 * 1024, 4} },
1554 .block_erase = spi_block_erase_d8,
1555 }, {
1556 .eraseblocks = { {256 * 1024, 1} },
1557 .block_erase = spi_block_erase_60,
1558 }, {
1559 .eraseblocks = { {256 * 1024, 1} },
1560 .block_erase = spi_block_erase_c7,
1561 }
1562 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001563 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001564 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001565 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001566 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001567 .voltage = {2700, 3600}, /* 2.3-3.6V & 2.7-3.6V models available */
FENG yu ningff692fb2008-12-08 18:15:10 +00001568 },
1569
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001570 {
1571 .vendor = "Atmel",
Steffen Mauch0b59b0d2018-06-02 23:46:03 +02001572 .name = "AT25DF021A",
1573 .bustype = BUS_SPI,
1574 .manufacture_id = ATMEL_ID,
1575 .model_id = ATMEL_AT25DF021A,
1576 .total_size = 256,
1577 .page_size = 256,
1578 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1579 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
1580 .tested = TEST_OK_PREW,
1581 .probe = probe_spi_rdid,
1582 .probe_timing = TIMING_ZERO,
1583 .block_erasers =
1584 {
1585 {
1586 .eraseblocks = { {4 * 1024, 64} },
1587 .block_erase = spi_block_erase_20,
1588 }, {
1589 .eraseblocks = { {32 * 1024, 8} },
1590 .block_erase = spi_block_erase_52,
1591 }, {
1592 .eraseblocks = { {64 * 1024, 4} },
1593 .block_erase = spi_block_erase_d8,
1594 }, {
1595 .eraseblocks = { {256 * 1024, 1} },
1596 .block_erase = spi_block_erase_60,
1597 }, {
1598 .eraseblocks = { {256 * 1024, 1} },
1599 .block_erase = spi_block_erase_c7,
1600 }
1601 },
1602 .printlock = spi_prettyprint_status_register_at25df,
1603 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
1604 .write = spi_chip_write_256,
1605 .read = spi_chip_read,
1606 .voltage = {1650, 3600},
1607 },
1608
1609 {
1610 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001611 .name = "AT25DF041A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001612 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001613 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001614 .model_id = ATMEL_AT25DF041A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001615 .total_size = 512,
1616 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001617 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +00001618 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001619 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001620 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001621 .block_erasers =
1622 {
1623 {
1624 .eraseblocks = { {4 * 1024, 128} },
1625 .block_erase = spi_block_erase_20,
1626 }, {
1627 .eraseblocks = { {32 * 1024, 16} },
1628 .block_erase = spi_block_erase_52,
1629 }, {
1630 .eraseblocks = { {64 * 1024, 8} },
1631 .block_erase = spi_block_erase_d8,
1632 }, {
1633 .eraseblocks = { {512 * 1024, 1} },
1634 .block_erase = spi_block_erase_60,
1635 }, {
1636 .eraseblocks = { {512 * 1024, 1} },
1637 .block_erase = spi_block_erase_c7,
1638 }
1639 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001640 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001641 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001642 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001643 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001644 .voltage = {2700, 3600}, /* 2.3-3.6V & 2.7-3.6V models available */
FENG yu ningff692fb2008-12-08 18:15:10 +00001645 },
1646
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001647 {
1648 .vendor = "Atmel",
1649 .name = "AT25DF081",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001650 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001651 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001652 .model_id = ATMEL_AT25DF081,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001653 .total_size = 1024,
1654 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001655 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001656 .tested = TEST_UNTESTED,
1657 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001658 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001659 .block_erasers =
1660 {
1661 {
1662 .eraseblocks = { {4 * 1024, 256} },
1663 .block_erase = spi_block_erase_20,
1664 }, {
1665 .eraseblocks = { {32 * 1024, 32} },
1666 .block_erase = spi_block_erase_52,
1667 }, {
1668 .eraseblocks = { {64 * 1024, 16} },
1669 .block_erase = spi_block_erase_d8,
1670 }, {
1671 .eraseblocks = { {1024 * 1024, 1} },
1672 .block_erase = spi_block_erase_60,
1673 }, {
1674 .eraseblocks = { {1024 * 1024, 1} },
1675 .block_erase = spi_block_erase_c7,
1676 }
1677 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001678 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001679 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001680 .write = spi_chip_write_256,
1681 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001682 .voltage = {1600, 2000}, /* Datasheet says range is 1.65-1.95 V */
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001683 },
1684
1685 {
1686 .vendor = "Atmel",
1687 .name = "AT25DF081A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001688 .bustype = BUS_SPI,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001689 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001690 .model_id = ATMEL_AT25DF081A,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001691 .total_size = 1024,
1692 .page_size = 256,
1693 .feature_bits = FEATURE_WRSR_WREN,
1694 .tested = TEST_UNTESTED,
1695 .probe = probe_spi_rdid,
1696 .probe_timing = TIMING_ZERO,
1697 .block_erasers =
1698 {
1699 {
1700 .eraseblocks = { {4 * 1024, 256} },
1701 .block_erase = spi_block_erase_20,
1702 }, {
1703 .eraseblocks = { {32 * 1024, 32} },
1704 .block_erase = spi_block_erase_52,
1705 }, {
1706 .eraseblocks = { {64 * 1024, 16} },
1707 .block_erase = spi_block_erase_d8,
1708 }, {
1709 .eraseblocks = { {1024 * 1024, 1} },
1710 .block_erase = spi_block_erase_60,
1711 }, {
1712 .eraseblocks = { {1024 * 1024, 1} },
1713 .block_erase = spi_block_erase_c7,
1714 }
1715 },
1716 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001717 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001718 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001719 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001720 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001721 },
1722
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001723 {
1724 .vendor = "Atmel",
1725 .name = "AT25DF161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001726 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001727 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001728 .model_id = ATMEL_AT25DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001729 .total_size = 2048,
1730 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001731 .feature_bits = FEATURE_WRSR_WREN,
Angel Pons8b5b9622018-09-30 19:13:15 +02001732 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001733 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001734 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001735 .block_erasers =
1736 {
1737 {
1738 .eraseblocks = { {4 * 1024, 512} },
1739 .block_erase = spi_block_erase_20,
1740 }, {
1741 .eraseblocks = { {32 * 1024, 64} },
1742 .block_erase = spi_block_erase_52,
1743 }, {
1744 .eraseblocks = { {64 * 1024, 32} },
1745 .block_erase = spi_block_erase_d8,
1746 }, {
1747 .eraseblocks = { {2 * 1024 * 1024, 1} },
1748 .block_erase = spi_block_erase_60,
1749 }, {
1750 .eraseblocks = { {2 * 1024 * 1024, 1} },
1751 .block_erase = spi_block_erase_c7,
1752 }
1753 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001754 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001755 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001756 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001757 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001758 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001759 },
1760
Alan Green86bf6ab2019-06-27 16:58:20 +10001761 /*The AT26DF321 has the same ID as the AT25DF321. */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001762 {
1763 .vendor = "Atmel",
1764 .name = "AT25DF321",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001765 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001766 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001767 .model_id = ATMEL_AT25DF321,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001768 .total_size = 4096,
1769 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001770 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd06d9412011-06-12 19:47:55 +00001771 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001772 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001773 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001774 .block_erasers =
1775 {
1776 {
1777 .eraseblocks = { {4 * 1024, 1024} },
1778 .block_erase = spi_block_erase_20,
1779 }, {
1780 .eraseblocks = { {32 * 1024, 128} },
1781 .block_erase = spi_block_erase_52,
1782 }, {
1783 .eraseblocks = { {64 * 1024, 64} },
1784 .block_erase = spi_block_erase_d8,
1785 }, {
1786 .eraseblocks = { {4 * 1024 * 1024, 1} },
1787 .block_erase = spi_block_erase_60,
1788 }, {
1789 .eraseblocks = { {4 * 1024 * 1024, 1} },
1790 .block_erase = spi_block_erase_c7,
1791 }
1792 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001793 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001794 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001795 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001796 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001797 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001798 },
1799
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001800 {
1801 .vendor = "Atmel",
1802 .name = "AT25DF321A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001803 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001804 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001805 .model_id = ATMEL_AT25DF321A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001806 .total_size = 4096,
1807 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001808 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1809 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00001810 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001811 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001812 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001813 .block_erasers =
1814 {
1815 {
1816 .eraseblocks = { {4 * 1024, 1024} },
1817 .block_erase = spi_block_erase_20,
1818 }, {
1819 .eraseblocks = { {32 * 1024, 128} },
1820 .block_erase = spi_block_erase_52,
1821 }, {
1822 .eraseblocks = { {64 * 1024, 64} },
1823 .block_erase = spi_block_erase_d8,
1824 }, {
1825 .eraseblocks = { {4 * 1024 * 1024, 1} },
1826 .block_erase = spi_block_erase_60,
1827 }, {
1828 .eraseblocks = { {4 * 1024 * 1024, 1} },
1829 .block_erase = spi_block_erase_c7,
1830 }
1831 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001832 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001833 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001834 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001835 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001836 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001837 },
1838
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001839 {
1840 .vendor = "Atmel",
Paul Menzelac427b22012-02-16 21:07:07 +00001841 .name = "AT25DF641(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001842 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001843 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001844 .model_id = ATMEL_AT25DF641,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001845 .total_size = 8192,
1846 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001847 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00001848 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001849 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001850 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001851 .block_erasers =
1852 {
1853 {
1854 .eraseblocks = { {4 * 1024, 2048} },
1855 .block_erase = spi_block_erase_20,
1856 }, {
1857 .eraseblocks = { {32 * 1024, 256} },
1858 .block_erase = spi_block_erase_52,
1859 }, {
1860 .eraseblocks = { {64 * 1024, 128} },
1861 .block_erase = spi_block_erase_d8,
1862 }, {
1863 .eraseblocks = { {8 * 1024 * 1024, 1} },
1864 .block_erase = spi_block_erase_60,
1865 }, {
1866 .eraseblocks = { {8 * 1024 * 1024, 1} },
1867 .block_erase = spi_block_erase_c7,
1868 }
1869 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001870 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001871 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001872 .write = spi_chip_write_256,
1873 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001874 .voltage = {2700, 3600},
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001875 },
1876
1877 {
1878 .vendor = "Atmel",
Stefan Taunerc9d8b272014-06-01 13:22:35 +00001879 .name = "AT25DL081",
1880 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +10001881 .manufacture_id = ATMEL_ID,
Stefan Taunerc9d8b272014-06-01 13:22:35 +00001882 .model_id = ATMEL_AT25DF081,
1883 .total_size = 1024,
1884 .page_size = 256,
1885 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1886 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
1887 .tested = TEST_UNTESTED,
1888 .probe = probe_spi_rdid,
1889 .probe_timing = TIMING_ZERO,
1890 .block_erasers =
1891 {
1892 {
1893 .eraseblocks = { {4 * 1024, 256} },
1894 .block_erase = spi_block_erase_20,
1895 }, {
1896 .eraseblocks = { {32 * 1024, 32} },
1897 .block_erase = spi_block_erase_52,
1898 }, {
1899 .eraseblocks = { {64 * 1024, 16} },
1900 .block_erase = spi_block_erase_d8,
1901 }, {
1902 .eraseblocks = { {1 * 1024 * 1024, 1} },
1903 .block_erase = spi_block_erase_60,
1904 }, {
1905 .eraseblocks = { {1 * 1024 * 1024, 1} },
1906 .block_erase = spi_block_erase_c7,
1907 }
1908 },
1909 .printlock = spi_prettyprint_status_register_at25df_sec,
1910 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
1911 .write = spi_chip_write_256, /* Dual I/O (0xA2) supported */
1912 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
1913 .voltage = {1650, 1950},
1914 },
1915
1916 {
1917 .vendor = "Atmel",
1918 .name = "AT25DL161",
1919 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +10001920 .manufacture_id = ATMEL_ID,
Stefan Taunerc9d8b272014-06-01 13:22:35 +00001921 .model_id = ATMEL_AT25DL161,
1922 .total_size = 2048,
1923 .page_size = 256,
1924 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1925 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
1926 .tested = TEST_UNTESTED,
1927 .probe = probe_spi_rdid,
1928 .probe_timing = TIMING_ZERO,
1929 .block_erasers =
1930 {
1931 {
1932 .eraseblocks = { {4 * 1024, 512} },
1933 .block_erase = spi_block_erase_20,
1934 }, {
1935 .eraseblocks = { {32 * 1024, 64} },
1936 .block_erase = spi_block_erase_52,
1937 }, {
1938 .eraseblocks = { {64 * 1024, 32} },
1939 .block_erase = spi_block_erase_d8,
1940 }, {
1941 .eraseblocks = { {2 * 1024 * 1024, 1} },
1942 .block_erase = spi_block_erase_60,
1943 }, {
1944 .eraseblocks = { {2 * 1024 * 1024, 1} },
1945 .block_erase = spi_block_erase_c7,
1946 }
1947 },
1948 .printlock = spi_prettyprint_status_register_at25df_sec,
1949 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
1950 .write = spi_chip_write_256, /* Dual I/O (0xA2) supported */
1951 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
1952 .voltage = {1650, 1950},
1953 },
1954
1955 {
1956 .vendor = "Atmel",
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001957 .name = "AT25DQ161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001958 .bustype = BUS_SPI,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001959 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001960 .model_id = ATMEL_AT25DQ161,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001961 .total_size = 2048,
1962 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001963 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1964 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001965 .tested = TEST_UNTESTED,
1966 .probe = probe_spi_rdid,
1967 .probe_timing = TIMING_ZERO,
1968 .block_erasers =
1969 {
1970 {
1971 .eraseblocks = { {4 * 1024, 512} },
1972 .block_erase = spi_block_erase_20,
1973 }, {
1974 .eraseblocks = { {32 * 1024, 64} },
1975 .block_erase = spi_block_erase_52,
1976 }, {
1977 .eraseblocks = { {64 * 1024, 32} },
1978 .block_erase = spi_block_erase_d8,
1979 }, {
1980 .eraseblocks = { {2 * 1024 * 1024, 1} },
1981 .block_erase = spi_block_erase_60,
1982 }, {
1983 .eraseblocks = { {2 * 1024 * 1024, 1} },
1984 .block_erase = spi_block_erase_c7,
1985 }
1986 },
1987 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001988 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001989 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001990 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001991 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001992 },
1993
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001994 {
1995 .vendor = "Atmel",
Alan Green1f9cc7d2019-07-01 11:10:45 +10001996 /* The A suffix indicates 33MHz instead of 20MHz clock rate.
1997 * All other properties seem to be the same.*/
1998 .name = "AT25F1024(A)",
1999 .bustype = BUS_SPI,
2000 .manufacture_id = ATMEL_ID,
2001 .model_id = ATMEL_AT25F1024,
2002 .total_size = 128,
2003 .page_size = 256,
2004 .feature_bits = FEATURE_WRSR_WREN,
2005 .tested = TEST_OK_PREW,
2006 .probe = probe_spi_at25f,
2007 .probe_timing = TIMING_ZERO,
2008 .block_erasers =
2009 {
2010 {
2011 .eraseblocks = { {32 * 1024, 4} },
2012 .block_erase = spi_block_erase_52,
2013 }, {
2014 .eraseblocks = { {128 * 1024, 1} },
2015 .block_erase = spi_block_erase_62,
2016 }
2017 },
2018 .printlock = spi_prettyprint_status_register_at25f,
2019 .unlock = spi_disable_blockprotect_at25f,
2020 .write = spi_chip_write_256,
2021 .read = spi_chip_read,
2022 .voltage = {2700, 3600},
2023 },
2024
2025 {
2026 .vendor = "Atmel",
2027 .name = "AT25F2048",
2028 .bustype = BUS_SPI,
2029 .manufacture_id = ATMEL_ID,
2030 .model_id = ATMEL_AT25F2048,
2031 .total_size = 256,
2032 .page_size = 256,
2033 .feature_bits = FEATURE_WRSR_WREN,
2034 .tested = TEST_UNTESTED,
2035 .probe = probe_spi_at25f,
2036 .probe_timing = TIMING_ZERO,
2037 .block_erasers =
2038 {
2039 {
2040 .eraseblocks = { {64 * 1024, 4} },
2041 .block_erase = spi_block_erase_52,
2042 }, {
2043 .eraseblocks = { {256 * 1024, 1} },
2044 .block_erase = spi_block_erase_62,
2045 }
2046 },
2047 .printlock = spi_prettyprint_status_register_at25f,
2048 .unlock = spi_disable_blockprotect_at25f,
2049 .write = spi_chip_write_256,
2050 .read = spi_chip_read,
2051 .voltage = {2700, 3600},
2052 },
2053
2054 {
2055 .vendor = "Atmel",
2056 .name = "AT25F4096",
2057 .bustype = BUS_SPI,
2058 .manufacture_id = ATMEL_ID,
2059 .model_id = ATMEL_AT25F4096,
2060 .total_size = 512,
2061 .page_size = 256,
2062 .feature_bits = FEATURE_WRSR_WREN,
2063 .tested = TEST_OK_PREW,
2064 .probe = probe_spi_at25f,
2065 .probe_timing = TIMING_ZERO,
2066 .block_erasers =
2067 {
2068 {
2069 .eraseblocks = { {64 * 1024, 8} },
2070 .block_erase = spi_block_erase_52,
2071 }, {
2072 .eraseblocks = { {512 * 1024, 1} },
2073 .block_erase = spi_block_erase_62,
2074 }
2075 },
2076 .printlock = spi_prettyprint_status_register_at25f4096,
2077 /* "Bits 5-6 are 0s when device is not in an internal write cycle." Better leave them alone: */
2078 .unlock = spi_disable_blockprotect_bp2_srwd,
2079 .write = spi_chip_write_256,
2080 .read = spi_chip_read,
2081 .voltage = {2700, 3600},
2082 },
2083
2084 {
2085 .vendor = "Atmel",
Stefan Tauner57794ac2012-12-29 15:04:20 +00002086 .name = "AT25F512",
2087 .bustype = BUS_SPI,
2088 .manufacture_id = ATMEL_ID,
2089 .model_id = ATMEL_AT25F512,
2090 .total_size = 64,
2091 .page_size = 256,
2092 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00002093 .tested = TEST_OK_PREW,
Stefan Tauner57794ac2012-12-29 15:04:20 +00002094 .probe = probe_spi_at25f,
2095 .probe_timing = TIMING_ZERO,
2096 .block_erasers =
2097 {
2098 {
2099 .eraseblocks = { {32 * 1024, 2} },
2100 .block_erase = spi_block_erase_52,
2101 }, {
2102 .eraseblocks = { {64 * 1024, 1} },
2103 .block_erase = spi_block_erase_62,
2104 }
2105 },
2106 .printlock = spi_prettyprint_status_register_at25f,
2107 .unlock = spi_disable_blockprotect_at25f,
2108 .write = spi_chip_write_256,
2109 .read = spi_chip_read,
2110 .voltage = {2700, 3600},
2111 },
2112
2113 {
2114 .vendor = "Atmel",
2115 .name = "AT25F512A",
2116 .bustype = BUS_SPI,
2117 .manufacture_id = ATMEL_ID,
2118 .model_id = ATMEL_AT25F512A,
2119 .total_size = 64,
2120 .page_size = 128,
2121 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00002122 .tested = TEST_OK_PREW,
Stefan Tauner57794ac2012-12-29 15:04:20 +00002123 .probe = probe_spi_at25f,
2124 .probe_timing = TIMING_ZERO,
2125 .block_erasers =
2126 {
2127 {
2128 .eraseblocks = { {32 * 1024, 2} },
2129 .block_erase = spi_block_erase_52,
2130 }, {
2131 .eraseblocks = { {64 * 1024, 1} },
2132 .block_erase = spi_block_erase_62,
2133 }
2134 },
2135 .printlock = spi_prettyprint_status_register_at25f512a,
2136 /* FIXME: It is not correct to use this one, because the BP1 bit is N/A. */
2137 .unlock = spi_disable_blockprotect_at25f512a,
2138 .write = spi_chip_write_256,
2139 .read = spi_chip_read,
2140 .voltage = {2700, 3600},
2141 },
2142
2143 {
2144 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002145 .name = "AT25F512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002146 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002147 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002148 .model_id = ATMEL_AT25F512B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002149 .total_size = 64,
2150 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00002151 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2152 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002153 .tested = TEST_UNTESTED,
2154 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002155 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002156 .block_erasers =
2157 {
2158 {
2159 .eraseblocks = { {4 * 1024, 16} },
2160 .block_erase = spi_block_erase_20,
2161 }, {
2162 .eraseblocks = { {32 * 1024, 2} },
2163 .block_erase = spi_block_erase_52,
2164 }, {
2165 .eraseblocks = { {32 * 1024, 2} },
2166 .block_erase = spi_block_erase_d8,
2167 }, {
2168 .eraseblocks = { {64 * 1024, 1} },
2169 .block_erase = spi_block_erase_60,
2170 }, {
2171 .eraseblocks = { {64 * 1024, 1} },
2172 .block_erase = spi_block_erase_c7,
Stefan Tauner3c0fcd02012-09-21 12:46:56 +00002173 }, {
2174 .eraseblocks = { {64 * 1024, 1} },
2175 .block_erase = spi_block_erase_62,
Sean Nelson89187292009-12-23 12:02:55 +00002176 }
2177 },
Stefan Tauner7bf4ed92012-08-26 21:04:27 +00002178 .printlock = spi_prettyprint_status_register_at25f512b,
2179 .unlock = spi_disable_blockprotect_at25f512b,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002180 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002181 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002182 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002183 },
2184
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002185 {
2186 .vendor = "Atmel",
2187 .name = "AT25FS010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002188 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002189 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002190 .model_id = ATMEL_AT25FS010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002191 .total_size = 128,
2192 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002193 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00002194 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002195 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002196 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002197 .block_erasers =
2198 {
2199 {
2200 .eraseblocks = { {4 * 1024, 32} },
2201 .block_erase = spi_block_erase_20,
2202 }, {
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00002203 .eraseblocks = { {4 * 1024, 32} },
2204 .block_erase = spi_block_erase_d7,
2205 }, {
Sean Nelson89187292009-12-23 12:02:55 +00002206 .eraseblocks = { {32 * 1024, 4} },
2207 .block_erase = spi_block_erase_52,
2208 }, {
2209 .eraseblocks = { {32 * 1024, 4} },
2210 .block_erase = spi_block_erase_d8,
2211 }, {
2212 .eraseblocks = { {128 * 1024, 1} },
2213 .block_erase = spi_block_erase_60,
2214 }, {
2215 .eraseblocks = { {128 * 1024, 1} },
2216 .block_erase = spi_block_erase_c7,
2217 }
2218 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00002219 .printlock = spi_prettyprint_status_register_at25fs010,
2220 .unlock = spi_disable_blockprotect_at25fs010,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002221 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002222 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002223 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002224 },
2225
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002226 {
2227 .vendor = "Atmel",
2228 .name = "AT25FS040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002229 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002230 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002231 .model_id = ATMEL_AT25FS040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002232 .total_size = 512,
2233 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002234 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002235 .tested = TEST_UNTESTED,
2236 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002237 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002238 .block_erasers =
2239 {
2240 {
2241 .eraseblocks = { {4 * 1024, 128} },
2242 .block_erase = spi_block_erase_20,
2243 }, {
2244 .eraseblocks = { {64 * 1024, 8} },
2245 .block_erase = spi_block_erase_52,
2246 }, {
2247 .eraseblocks = { {64 * 1024, 8} },
2248 .block_erase = spi_block_erase_d8,
2249 }, {
2250 .eraseblocks = { {512 * 1024, 1} },
2251 .block_erase = spi_block_erase_60,
2252 }, {
2253 .eraseblocks = { {512 * 1024, 1} },
2254 .block_erase = spi_block_erase_c7,
2255 }
2256 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00002257 .printlock = spi_prettyprint_status_register_at25fs040,
2258 .unlock = spi_disable_blockprotect_at25fs040,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002259 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002260 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002261 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002262 },
2263
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002264 {
2265 .vendor = "Atmel",
jvma3ab6c62018-03-08 15:43:20 +01002266 .name = "AT25SF041",
2267 .bustype = BUS_SPI,
2268 .manufacture_id = ATMEL_ID,
2269 .model_id = ATMEL_AT25SF041,
2270 .total_size = 512,
2271 .page_size = 256,
2272 .feature_bits = FEATURE_WRSR_WREN,
2273 .tested = TEST_OK_PREW,
2274 .probe = probe_spi_rdid,
2275 .probe_timing = TIMING_ZERO,
2276 .block_erasers =
2277 {
2278 {
2279 .eraseblocks = { {4 * 1024, 128} },
2280 .block_erase = spi_block_erase_20,
2281 }, {
2282 .eraseblocks = { {32 * 1024, 16} },
2283 .block_erase = spi_block_erase_52,
2284 }, {
2285 .eraseblocks = { {64 * 1024, 8} },
2286 .block_erase = spi_block_erase_d8,
2287 }, {
2288 .eraseblocks = { {512 * 1024, 1} },
2289 .block_erase = spi_block_erase_60,
2290 }, {
2291 .eraseblocks = { {512 * 1024, 1} },
2292 .block_erase = spi_block_erase_c7,
2293 }
2294 },
2295 .printlock = spi_prettyprint_status_register_plain,
2296 .unlock = spi_disable_blockprotect,
2297 .write = spi_chip_write_256,
2298 .read = spi_chip_read,
2299 .voltage = {2500, 3600},
2300 },
2301
2302 {
2303 .vendor = "Atmel",
Evan Jensen291c1012018-05-17 14:30:19 -07002304 .name = "AT25SF081",
2305 .bustype = BUS_SPI,
2306 .manufacture_id = ATMEL_ID,
2307 .model_id = ATMEL_AT25SF081,
2308 .total_size = 1024,
2309 .page_size = 256,
2310 .feature_bits = FEATURE_WRSR_WREN,
2311 .tested = TEST_OK_PREW,
2312 .probe = probe_spi_rdid,
2313 .probe_timing = TIMING_ZERO,
2314 .block_erasers =
2315 {
2316 {
2317 .eraseblocks = { {4 * 1024, 256} },
2318 .block_erase = spi_block_erase_20,
2319 }, {
2320 .eraseblocks = { {32 * 1024, 32} },
2321 .block_erase = spi_block_erase_52,
2322 }, {
2323 .eraseblocks = { {64 * 1024, 16} },
2324 .block_erase = spi_block_erase_d8,
2325 }, {
2326 .eraseblocks = { {1024 * 1024, 1} },
2327 .block_erase = spi_block_erase_60,
2328 }, {
2329 .eraseblocks = { {1024 * 1024, 1} },
2330 .block_erase = spi_block_erase_c7,
2331 }
2332 },
2333 .printlock = spi_prettyprint_status_register_plain,
2334 .unlock = spi_disable_blockprotect,
2335 .write = spi_chip_write_256,
2336 .read = spi_chip_read,
2337 .voltage = {2300, 3600},
2338 },
2339
2340 {
2341 .vendor = "Atmel",
Stanislav Sedovf5775442018-03-07 14:16:51 -08002342 .name = "AT25SF161",
2343 .bustype = BUS_SPI,
2344 .manufacture_id = ATMEL_ID,
2345 .model_id = ATMEL_AT25SF161,
2346 .total_size = 2048,
2347 .page_size = 256,
2348 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
2349 .tested = TEST_OK_PREW,
2350 .probe = probe_spi_rdid,
2351 .probe_timing = TIMING_ZERO,
2352 .block_erasers =
2353 {
2354 {
2355 .eraseblocks = { {4 * 1024, 512} },
2356 .block_erase = spi_block_erase_20,
2357 }, {
2358 .eraseblocks = { {32 * 1024, 64} },
2359 .block_erase = spi_block_erase_52,
2360 }, {
2361 .eraseblocks = { {64 * 1024, 32} },
2362 .block_erase = spi_block_erase_d8,
2363 }, {
2364 .eraseblocks = { {2048 * 1024, 1} },
2365 .block_erase = spi_block_erase_60,
2366 }, {
2367 .eraseblocks = { {2048 * 1024, 1} },
2368 .block_erase = spi_block_erase_c7,
2369 }
2370 },
2371 .printlock = spi_prettyprint_status_register_plain,
2372 .unlock = spi_disable_blockprotect,
2373 .write = spi_chip_write_256,
2374 .read = spi_chip_read,
2375 .voltage = {2500, 3600},
2376 },
2377
2378 {
Alan Green57938f82019-06-27 15:06:43 +10002379 .vendor = "Atmel",
darkarnium41394382019-11-04 20:06:48 +00002380 .name = "AT25SF321",
2381 .bustype = BUS_SPI,
2382 .manufacture_id = ATMEL_ID,
2383 .model_id = ATMEL_AT25SF321,
2384 .total_size = 4096,
2385 .page_size = 256,
2386 .feature_bits = FEATURE_WRSR_WREN,
2387 .tested = TEST_OK_PR,
2388 .probe = probe_spi_rdid,
2389 .probe_timing = TIMING_ZERO,
2390 .block_erasers =
2391 {
2392 {
2393 .eraseblocks = { {4 * 1024, 1024} },
2394 .block_erase = spi_block_erase_20,
2395 }, {
2396 .eraseblocks = { {32 * 1024, 128} },
2397 .block_erase = spi_block_erase_52,
2398 }, {
2399 .eraseblocks = { {64 * 1024, 64} },
2400 .block_erase = spi_block_erase_d8,
2401 }, {
2402 .eraseblocks = { {4096 * 1024, 1} },
2403 .block_erase = spi_block_erase_60,
2404 }, {
2405 .eraseblocks = { {4096 * 1024, 1} },
2406 .block_erase = spi_block_erase_c7,
2407 }
2408 },
2409 .printlock = spi_prettyprint_status_register_plain,
2410 .unlock = spi_disable_blockprotect,
2411 .write = spi_chip_write_256,
2412 .read = spi_chip_read,
2413 .voltage = {2500, 3600},
2414 },
2415
2416 {
2417 .vendor = "Atmel",
Hal Martin49e23d22018-05-27 14:18:43 +02002418 .name = "AT25SL128A",
2419 .bustype = BUS_SPI,
2420 .manufacture_id = ATMEL_ID,
2421 .model_id = ATMEL_AT25SL128A,
2422 .total_size = 16384,
2423 .page_size = 256,
2424 /* supports SFDP */
Nikolai Artemievd32e18b2022-02-15 18:06:55 +11002425 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_WRSR2,
Hal Martin49e23d22018-05-27 14:18:43 +02002426 .tested = TEST_OK_PREW,
2427 .probe = probe_spi_rdid,
2428 .probe_timing = TIMING_ZERO,
2429 .block_erasers =
2430 {
2431 {
2432 .eraseblocks = { {4 * 1024, 4096} },
2433 .block_erase = spi_block_erase_20,
2434 }, {
2435 .eraseblocks = { {32 * 1024, 512} },
2436 .block_erase = spi_block_erase_52,
2437 }, {
2438 .eraseblocks = { {64 * 1024, 256} },
2439 .block_erase = spi_block_erase_d8,
2440 }, {
2441 .eraseblocks = { {16 * 1024 * 1024, 1} },
2442 .block_erase = spi_block_erase_60,
2443 }, {
2444 .eraseblocks = { {16 * 1024 * 1024, 1} },
2445 .block_erase = spi_block_erase_c7,
2446 }
2447 },
2448 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
2449 .unlock = spi_disable_blockprotect,
2450 .write = spi_chip_write_256,
2451 .read = spi_chip_read,
2452 .voltage = {1700, 2000},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +11002453 .reg_bits =
2454 {
2455 .srp = {STATUS1, 7, RW},
2456 .srl = {STATUS2, 0, RW},
2457 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
2458 .tb = {STATUS1, 5, RW},
2459 .sec = {STATUS1, 6, RW},
2460 .cmp = {STATUS2, 6, RW},
2461 },
2462 .decode_range = decode_range_spi25,
Hal Martin49e23d22018-05-27 14:18:43 +02002463 },
2464
2465 {
Stanislav Sedovf5775442018-03-07 14:16:51 -08002466 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002467 .name = "AT26DF041",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002468 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002469 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002470 .model_id = ATMEL_AT26DF041,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002471 .total_size = 512,
2472 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002473 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner94b39b42012-10-27 00:06:02 +00002474 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002475 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002476 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002477 .block_erasers =
2478 {
2479 {
Stefan Tauner94b39b42012-10-27 00:06:02 +00002480 .eraseblocks = { {256, 2048} },
2481 .block_erase = spi_block_erase_81,
2482 }, {
2483 .eraseblocks = { {2 * 1024, 256} },
2484 .block_erase = spi_block_erase_50,
2485 }, {
Sean Nelson89187292009-12-23 12:02:55 +00002486 .eraseblocks = { {4 * 1024, 128} },
2487 .block_erase = spi_block_erase_20,
2488 }
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002489 },
Stefan Taunercecb2c52013-06-20 22:55:41 +00002490 .printlock = spi_prettyprint_status_register_plain,
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002491 /* Supports also an incompatible page write (of exactly 256 B) and an auto-erasing write. */
Stefan Tauner94b39b42012-10-27 00:06:02 +00002492 .write = spi_chip_write_1,
2493 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002494 .voltage = {2700, 3600}, /* 3.0-3.6V for higher speed, 2.7-3.6V normal */
FENG yu ningff692fb2008-12-08 18:15:10 +00002495 },
2496
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002497 {
2498 .vendor = "Atmel",
2499 .name = "AT26DF081A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002500 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002501 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002502 .model_id = ATMEL_AT26DF081A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002503 .total_size = 1024,
2504 .page_size = 256,
Mathias Krause2c3afa32011-01-17 07:45:54 +00002505 .feature_bits = FEATURE_WRSR_WREN,
2506 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002507 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002508 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002509 .block_erasers =
2510 {
2511 {
2512 .eraseblocks = { {4 * 1024, 256} },
2513 .block_erase = spi_block_erase_20,
2514 }, {
2515 .eraseblocks = { {32 * 1024, 32} },
2516 .block_erase = spi_block_erase_52,
2517 }, {
2518 .eraseblocks = { {64 * 1024, 16} },
2519 .block_erase = spi_block_erase_d8,
2520 }, {
2521 .eraseblocks = { {1024 * 1024, 1} },
2522 .block_erase = spi_block_erase_60,
2523 }, {
2524 .eraseblocks = { {1024 * 1024, 1} },
2525 .block_erase = spi_block_erase_c7,
2526 }
2527 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002528 .printlock = spi_prettyprint_status_register_at26df081a,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002529 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002530 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002531 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002532 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002533 },
2534
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002535 {
2536 .vendor = "Atmel",
2537 .name = "AT26DF161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002538 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002539 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002540 .model_id = ATMEL_AT26DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002541 .total_size = 2048,
2542 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002543 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +00002544 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002545 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002546 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002547 .block_erasers =
2548 {
2549 {
2550 .eraseblocks = { {4 * 1024, 512} },
2551 .block_erase = spi_block_erase_20,
2552 }, {
2553 .eraseblocks = { {32 * 1024, 64} },
2554 .block_erase = spi_block_erase_52,
2555 }, {
2556 .eraseblocks = { {64 * 1024, 32} },
2557 .block_erase = spi_block_erase_d8,
2558 }, {
2559 .eraseblocks = { {2 * 1024 * 1024, 1} },
2560 .block_erase = spi_block_erase_60,
2561 }, {
2562 .eraseblocks = { {2 * 1024 * 1024, 1} },
2563 .block_erase = spi_block_erase_c7,
2564 }
2565 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00002566 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002567 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002568 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002569 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002570 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002571 },
2572
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002573 {
2574 .vendor = "Atmel",
2575 .name = "AT26DF161A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002576 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002577 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002578 .model_id = ATMEL_AT26DF161A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002579 .total_size = 2048,
2580 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002581 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002582 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002583 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002584 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002585 .block_erasers =
2586 {
2587 {
2588 .eraseblocks = { {4 * 1024, 512} },
2589 .block_erase = spi_block_erase_20,
2590 }, {
2591 .eraseblocks = { {32 * 1024, 64} },
2592 .block_erase = spi_block_erase_52,
2593 }, {
2594 .eraseblocks = { {64 * 1024, 32} },
2595 .block_erase = spi_block_erase_d8,
2596 }, {
2597 .eraseblocks = { {2 * 1024 * 1024, 1} },
2598 .block_erase = spi_block_erase_60,
2599 }, {
2600 .eraseblocks = { {2 * 1024 * 1024, 1} },
2601 .block_erase = spi_block_erase_c7,
2602 }
2603 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002604 .printlock = spi_prettyprint_status_register_at26df081a,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002605 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002606 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002607 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002608 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002609 },
2610
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002611 {
2612 .vendor = "Atmel",
2613 .name = "AT26F004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002614 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002615 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002616 .model_id = ATMEL_AT26F004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002617 .total_size = 512,
2618 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002619 .feature_bits = FEATURE_WRSR_WREN,
Alan Green908adf42019-07-03 15:34:06 +10002620 .tested = {.probe = NT, .read = NT, .erase = NT, .write = BAD},
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002621 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002622 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002623 .block_erasers =
2624 {
2625 {
2626 .eraseblocks = { {4 * 1024, 128} },
2627 .block_erase = spi_block_erase_20,
2628 }, {
2629 .eraseblocks = { {32 * 1024, 16} },
2630 .block_erase = spi_block_erase_52,
2631 }, {
2632 .eraseblocks = { {64 * 1024, 8} },
2633 .block_erase = spi_block_erase_d8,
2634 }, {
2635 .eraseblocks = { {512 * 1024, 1} },
2636 .block_erase = spi_block_erase_60,
2637 }, {
2638 .eraseblocks = { {512 * 1024, 1} },
2639 .block_erase = spi_block_erase_c7,
2640 }
2641 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002642 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Alan Greencbb85c02019-06-25 13:42:34 +10002643 .write = NULL, /* Incompatible Page write */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002644 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002645 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002646 },
2647
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002648 {
2649 .vendor = "Atmel",
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002650 .name = "AT29C010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002651 .bustype = BUS_PARALLEL,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002652 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002653 .model_id = ATMEL_AT29C010A,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002654 .total_size = 128,
2655 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00002656 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002657 .tested = TEST_OK_PRE,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002658 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00002659 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00002660 .block_erasers =
2661 {
2662 {
2663 .eraseblocks = { {128 * 1024, 1} },
2664 .block_erase = erase_chip_block_jedec,
2665 }
2666 },
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002667 .write = write_jedec, /* FIXME */
2668 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002669 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +01002670 .prepare_access = prepare_memory_access,
2671 .finish_access = finish_memory_access,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002672 },
2673
2674 {
2675 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002676 .name = "AT29C020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002677 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002678 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002679 .model_id = ATMEL_AT29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002680 .total_size = 256,
2681 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002682 .feature_bits = FEATURE_LONG_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00002683 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002684 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00002685 .probe_timing = 10000, /* 10ms */
Sean Nelson89187292009-12-23 12:02:55 +00002686 .block_erasers =
2687 {
2688 {
2689 .eraseblocks = { {256 * 1024, 1} },
2690 .block_erase = erase_chip_block_jedec,
2691 }
2692 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002693 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002694 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002695 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +01002696 .prepare_access = prepare_memory_access,
2697 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +00002698 },
2699
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002700 {
2701 .vendor = "Atmel",
2702 .name = "AT29C040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002703 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002704 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002705 .model_id = ATMEL_AT29C040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002706 .total_size = 512,
2707 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002708 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002709 .tested = TEST_UNTESTED,
2710 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00002711 .probe_timing = 10000, /* 10 ms */
Sean Nelson89187292009-12-23 12:02:55 +00002712 .block_erasers =
2713 {
2714 {
2715 .eraseblocks = { {512 * 1024, 1} },
2716 .block_erase = erase_chip_block_jedec,
2717 }
2718 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002719 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002720 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002721 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +01002722 .prepare_access = prepare_memory_access,
2723 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +00002724 },
2725
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002726 {
2727 .vendor = "Atmel",
Alan Green1f9cc7d2019-07-01 11:10:45 +10002728 .name = "AT29C512",
2729 .bustype = BUS_PARALLEL,
2730 .manufacture_id = ATMEL_ID,
2731 .model_id = ATMEL_AT29C512,
2732 .total_size = 64,
2733 .page_size = 128,
2734 .feature_bits = FEATURE_LONG_RESET,
2735 .tested = TEST_OK_PREW,
2736 .probe = probe_jedec,
2737 .probe_timing = 10000, /* 10mS, Enter=Exec */
2738 .block_erasers =
2739 {
2740 {
2741 .eraseblocks = { {64 * 1024, 1} },
2742 .block_erase = erase_chip_block_jedec,
2743 }
2744 },
2745 .write = write_jedec,
2746 .read = read_memmapped,
2747 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +01002748 .prepare_access = prepare_memory_access,
2749 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +10002750 },
2751
2752 {
2753 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002754 .name = "AT45CS1282",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002755 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002756 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002757 .model_id = ATMEL_AT45CS1282,
Alan Greencbb85c02019-06-25 13:42:34 +10002758 .total_size = 16896, /* No power of two sizes */
2759 .page_size = 1056, /* No power of two sizes */
Steven Zakulec3603a282012-05-02 20:07:57 +00002760 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner1dd5d3a2013-08-27 18:02:19 +00002761 /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */
2762 .feature_bits = FEATURE_OTP,
2763 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002764 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002765 .probe_timing = TIMING_ZERO,
Stefan Tauner1dd5d3a2013-08-27 18:02:19 +00002766 .block_erasers =
2767 {
2768 {
2769 .eraseblocks = {
2770 {8 * 1056, 1}, /* sector 0a: opcode 50h */
2771 {248 * 1056, 1}, /* sector 0b: opcode 7Ch */
2772 {256 * 1056, 63}, /* sectors 1 - 63: opcode 7Ch */
2773 },
2774 .block_erase = spi_erase_at45cs_sector,
2775 }
2776 },
2777 .printlock = spi_prettyprint_status_register_plain,
Stefan Tauner1dd5d3a2013-08-27 18:02:19 +00002778 .write = spi_write_at45db,
2779 .read = spi_read_at45db,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002780 .voltage = {2700, 3600},
Alan Greenc1863ca2019-06-27 15:08:03 +10002781 .gran = write_gran_1056bytes,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002782 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002783
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002784 {
2785 .vendor = "Atmel",
2786 .name = "AT45DB011D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002787 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002788 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002789 .model_id = ATMEL_AT45DB011D,
Alan Greencbb85c02019-06-25 13:42:34 +10002790 .total_size = 128, /* or 132, determined from status register */
2791 .page_size = 256, /* or 264, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00002792 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002793 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2794 .feature_bits = FEATURE_OTP,
Stefan Tauner5c316f92015-02-08 21:57:52 +00002795 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002796 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002797 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002798 .block_erasers =
2799 {
2800 {
2801 .eraseblocks = { {256, 512} },
2802 .block_erase = spi_erase_at45db_page,
2803 }, {
2804 .eraseblocks = { {8 * 256, 512/8} },
2805 .block_erase = spi_erase_at45db_block,
2806 }, {
2807 .eraseblocks = {
2808 {8 * 256, 1},
2809 {120 * 256, 1},
2810 {128 * 256, 3},
2811 },
2812 .block_erase = spi_erase_at45db_sector
2813 }, {
2814 .eraseblocks = { {128 * 1024, 1} },
2815 .block_erase = spi_erase_at45db_chip,
2816 }
2817 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002818 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10002819 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002820 /* granularity will be set by the probing function. */
2821 .write = spi_write_at45db,
2822 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002823 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002824 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002825
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002826 {
2827 .vendor = "Atmel",
2828 .name = "AT45DB021D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002829 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002830 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002831 .model_id = ATMEL_AT45DB021D,
Alan Greencbb85c02019-06-25 13:42:34 +10002832 .total_size = 256, /* or 264, determined from status register */
2833 .page_size = 256, /* or 264, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00002834 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002835 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2836 .feature_bits = FEATURE_OTP,
Stefan Tauner6697f712014-08-06 15:09:15 +00002837 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002838 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002839 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002840 .block_erasers =
2841 {
2842 {
2843 .eraseblocks = { {256, 1024} },
2844 .block_erase = spi_erase_at45db_page,
2845 }, {
2846 .eraseblocks = { {8 * 256, 1024/8} },
2847 .block_erase = spi_erase_at45db_block,
2848 }, {
2849 .eraseblocks = {
2850 {8 * 256, 1},
2851 {120 * 256, 1},
2852 {128 * 256, 7},
2853 },
2854 .block_erase = spi_erase_at45db_sector
2855 }, {
2856 .eraseblocks = { {256 * 1024, 1} },
2857 .block_erase = spi_erase_at45db_chip,
2858 }
2859 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002860 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10002861 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002862 /* granularity will be set by the probing function. */
2863 .write = spi_write_at45db,
2864 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002865 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002866 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002867
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002868 {
2869 .vendor = "Atmel",
2870 .name = "AT45DB041D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002871 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002872 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002873 .model_id = ATMEL_AT45DB041D,
Alan Greencbb85c02019-06-25 13:42:34 +10002874 .total_size = 512, /* or 528, determined from status register */
2875 .page_size = 256, /* or 264, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00002876 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002877 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2878 .feature_bits = FEATURE_OTP,
2879 .tested = TEST_OK_PREW,
2880 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002881 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002882 .block_erasers =
2883 {
2884 {
2885 .eraseblocks = { {256, 2048} },
2886 .block_erase = spi_erase_at45db_page,
2887 }, {
2888 .eraseblocks = { {8 * 256, 2048/8} },
2889 .block_erase = spi_erase_at45db_block,
2890 }, {
2891 .eraseblocks = {
2892 {8 * 256, 1},
2893 {248 * 256, 1},
2894 {256 * 256, 7},
2895 },
2896 .block_erase = spi_erase_at45db_sector
2897 }, {
2898 .eraseblocks = { {512 * 1024, 1} },
2899 .block_erase = spi_erase_at45db_chip,
2900 }
2901 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002902 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10002903 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002904 /* granularity will be set by the probing function. */
2905 .write = spi_write_at45db,
2906 .read = spi_read_at45db, /* Fast read (0x0B) supported */
2907 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002908 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002909
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002910 {
2911 .vendor = "Atmel",
2912 .name = "AT45DB081D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002913 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002914 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002915 .model_id = ATMEL_AT45DB081D,
Alan Greencbb85c02019-06-25 13:42:34 +10002916 .total_size = 1024, /* or 1056, determined from status register */
2917 .page_size = 256, /* or 264, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00002918 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002919 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2920 .feature_bits = FEATURE_OTP,
Angel Pons250aeba2018-09-30 20:28:22 +02002921 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002922 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002923 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002924 .block_erasers =
2925 {
2926 {
2927 .eraseblocks = { {256, 4096} },
2928 .block_erase = spi_erase_at45db_page,
2929 }, {
2930 .eraseblocks = { {8 * 256, 4096/8} },
2931 .block_erase = spi_erase_at45db_block,
2932 }, {
2933 .eraseblocks = {
2934 {8 * 256, 1},
2935 {248 * 256, 1},
2936 {256 * 256, 15},
2937 },
2938 .block_erase = spi_erase_at45db_sector
2939 }, {
2940 .eraseblocks = { {1024 * 1024, 1} },
2941 .block_erase = spi_erase_at45db_chip,
2942 }
2943 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002944 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10002945 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002946 /* granularity will be set by the probing function. */
2947 .write = spi_write_at45db,
2948 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002949 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002950 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002951
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002952 {
2953 .vendor = "Atmel",
2954 .name = "AT45DB161D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002955 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002956 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002957 .model_id = ATMEL_AT45DB161D,
Alan Greencbb85c02019-06-25 13:42:34 +10002958 .total_size = 2048, /* or 2112, determined from status register */
2959 .page_size = 512, /* or 528, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00002960 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002961 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2962 .feature_bits = FEATURE_OTP,
2963 .tested = TEST_OK_PREW,
2964 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002965 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002966 .block_erasers =
2967 {
2968 {
2969 .eraseblocks = { {512, 4096} },
2970 .block_erase = spi_erase_at45db_page,
2971 }, {
2972 .eraseblocks = { {8 * 512, 4096/8} },
2973 .block_erase = spi_erase_at45db_block,
2974 }, {
2975 .eraseblocks = {
2976 {8 * 512, 1},
2977 {248 * 512, 1},
2978 {256 * 512, 15},
2979 },
2980 .block_erase = spi_erase_at45db_sector
2981 }, {
2982 .eraseblocks = { {2048 * 1024, 1} },
2983 .block_erase = spi_erase_at45db_chip,
2984 }
2985 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002986 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10002987 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002988 /* granularity will be set by the probing function. */
2989 .write = spi_write_at45db,
2990 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002991 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002992 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002993
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002994 {
2995 .vendor = "Atmel",
2996 .name = "AT45DB321C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002997 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002998 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002999 .model_id = ATMEL_AT45DB321C,
Alan Greencbb85c02019-06-25 13:42:34 +10003000 .total_size = 4224, /* No power of two sizes */
3001 .page_size = 528, /* No power of two sizes */
Steven Zakulec3603a282012-05-02 20:07:57 +00003002 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00003003 /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */
3004 .feature_bits = FEATURE_OTP,
3005 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003006 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003007 .probe_timing = TIMING_ZERO,
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00003008 .block_erasers =
3009 {
3010 {
3011 .eraseblocks = { {528, 8192} },
3012 .block_erase = spi_erase_at45db_page,
3013 }, {
3014 .eraseblocks = { {8 * 528, 8192/8} },
3015 .block_erase = spi_erase_at45db_block,
3016 }, /* Although the datasheets describes sectors (which can be write protected)
3017 * there seems to be no erase functions for them.
Stefan Tauner23e10b82016-01-23 16:16:49 +00003018 {
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00003019 .eraseblocks = {
3020 {8 * 528, 1},
3021 {120 * 528, 1},
3022 {128 * 528, 63},
3023 },
3024 .block_erase = spi_erase_at45db_sector
3025 }, */ {
3026 .eraseblocks = { {4224 * 1024, 1} },
3027 .block_erase = spi_erase_at45db_chip,
3028 }
3029 },
3030 .printlock = spi_prettyprint_status_register_at45db, /* Bit 0 is undefined, no lockdown */
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00003031 .write = spi_write_at45db,
3032 .read = spi_read_at45db_e8, /* 3 address and 4 dummy bytes */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003033 .voltage = {2700, 3600},
Alan Greenc1863ca2019-06-27 15:08:03 +10003034 .gran = write_gran_528bytes,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00003035 },
FENG yu ningff692fb2008-12-08 18:15:10 +00003036
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003037 {
3038 .vendor = "Atmel",
3039 .name = "AT45DB321D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003040 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003041 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003042 .model_id = ATMEL_AT45DB321D,
Alan Greencbb85c02019-06-25 13:42:34 +10003043 .total_size = 4096, /* or 4224, determined from status register */
3044 .page_size = 512, /* or 528, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00003045 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003046 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
Daniel Lenski65922a32012-02-15 23:40:23 +00003047 .feature_bits = FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +00003048 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003049 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003050 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003051 .block_erasers =
3052 {
3053 {
3054 .eraseblocks = { {512, 8192} },
3055 .block_erase = spi_erase_at45db_page,
3056 }, {
3057 .eraseblocks = { {8 * 512, 8192/8} },
3058 .block_erase = spi_erase_at45db_block,
3059 }, {
3060 .eraseblocks = {
3061 {8 * 512, 1},
3062 {120 * 512, 1},
3063 {128 * 512, 63},
3064 },
3065 .block_erase = spi_erase_at45db_sector
3066 }, {
3067 .eraseblocks = { {4096 * 1024, 1} },
3068 .block_erase = spi_erase_at45db_chip,
3069 }
3070 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003071 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10003072 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003073 /* granularity will be set by the probing function. */
3074 .write = spi_write_at45db,
3075 .read = spi_read_at45db, /* Fast read (0x0B) supported */
3076 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
3077 },
3078
3079 {
3080 .vendor = "Atmel",
3081 .name = "AT45DB321E",
3082 .bustype = BUS_SPI,
3083 .manufacture_id = ATMEL_ID,
3084 .model_id = ATMEL_AT45DB321C,
Alan Greencbb85c02019-06-25 13:42:34 +10003085 .total_size = 4096, /* or 4224, determined from status register */
3086 .page_size = 512, /* or 528, determined from status register */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003087 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
3088 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
3089 .feature_bits = FEATURE_OTP,
3090 .tested = TEST_UNTESTED,
3091 .probe = probe_spi_at45db,
3092 .probe_timing = TIMING_ZERO,
3093 .block_erasers =
3094 {
3095 {
3096 .eraseblocks = { {512, 8192} },
3097 .block_erase = spi_erase_at45db_page,
3098 }, {
3099 .eraseblocks = { {8 * 512, 8192/8} },
3100 .block_erase = spi_erase_at45db_block,
3101 }, {
3102 .eraseblocks = {
3103 {8 * 512, 1},
3104 {120 * 512, 1},
3105 {128 * 512, 63},
3106 },
3107 .block_erase = spi_erase_at45db_sector
3108 }, {
3109 .eraseblocks = { {4096 * 1024, 1} },
3110 .block_erase = spi_erase_at45db_chip,
3111 }
3112 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003113 .printlock = spi_prettyprint_status_register_at45db, /* has a 2nd status register */
Alan Greenc1863ca2019-06-27 15:08:03 +10003114 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003115 /* granularity will be set by the probing function. */
3116 .write = spi_write_at45db,
3117 .read = spi_read_at45db, /* Fast read (0x0B) supported */
3118 .voltage = {2500, 3600}, /* 2.3-3.6V & 2.5-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00003119 },
FENG yu ningff692fb2008-12-08 18:15:10 +00003120
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003121 {
3122 .vendor = "Atmel",
3123 .name = "AT45DB642D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003124 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003125 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003126 .model_id = ATMEL_AT45DB642D,
Alan Greencbb85c02019-06-25 13:42:34 +10003127 .total_size = 8192, /* or 8448, determined from status register */
3128 .page_size = 1024, /* or 1056, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00003129 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003130 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
3131 .feature_bits = FEATURE_OTP,
Stefan Tauner5c316f92015-02-08 21:57:52 +00003132 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003133 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003134 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003135 .block_erasers =
3136 {
3137 {
3138 .eraseblocks = { {1024, 8192} },
3139 .block_erase = spi_erase_at45db_page,
3140 }, {
3141 .eraseblocks = { {8 * 1024, 8192/8} },
3142 .block_erase = spi_erase_at45db_block,
3143 }, {
3144 .eraseblocks = {
3145 {8 * 1024, 1},
3146 {248 * 1024, 1},
3147 {256 * 1024, 31},
3148 },
3149 .block_erase = spi_erase_at45db_sector
3150 }, {
3151 .eraseblocks = { {8192 * 1024, 1} },
3152 .block_erase = spi_erase_at45db_chip,
3153 }
3154 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003155 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10003156 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003157 /* granularity will be set by the probing function. */
3158 .write = spi_write_at45db,
3159 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003160 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00003161 },
FENG yu ningff692fb2008-12-08 18:15:10 +00003162
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003163 {
3164 .vendor = "Atmel",
Alan Green1f9cc7d2019-07-01 11:10:45 +10003165 .name = "AT49(H)F010",
3166 .bustype = BUS_PARALLEL,
3167 .manufacture_id = ATMEL_ID,
3168 .model_id = ATMEL_AT49F010,
3169 .total_size = 128,
3170 .page_size = 0, /* unused */
3171 .feature_bits = FEATURE_EITHER_RESET,
3172 .tested = TEST_OK_PREW,
3173 .probe = probe_jedec,
3174 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3175 .block_erasers =
3176 {
3177 {
3178 .eraseblocks = { {128 * 1024, 1} },
3179 .block_erase = erase_chip_block_jedec,
3180 }
3181 },
3182 .printlock = printlock_at49f,
3183 .write = write_jedec_1,
3184 .read = read_memmapped,
3185 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +01003186 .prepare_access = prepare_memory_access,
3187 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +10003188 },
3189
3190 {
3191 .vendor = "Atmel",
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003192 .name = "AT49BV512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003193 .bustype = BUS_PARALLEL,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003194 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003195 .model_id = ATMEL_AT49BV512,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003196 .total_size = 64,
3197 .page_size = 64,
Sean Nelson35727f72010-01-28 23:55:12 +00003198 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +00003199 .tested = TEST_OK_PREW,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003200 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003201 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00003202 .block_erasers =
3203 {
3204 {
3205 .eraseblocks = { {64 * 1024, 1} },
3206 .block_erase = erase_chip_block_jedec,
3207 }
3208 },
Sean Nelson35727f72010-01-28 23:55:12 +00003209 .write = write_jedec_1,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003210 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003211 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +01003212 .prepare_access = prepare_memory_access,
3213 .finish_access = finish_memory_access,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003214 },
3215
3216 {
3217 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003218 .name = "AT49F002(N)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003219 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003220 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003221 .model_id = ATMEL_AT49F002N,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003222 .total_size = 256,
3223 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00003224 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003225 .tested = TEST_UNTESTED,
3226 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003227 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00003228 .block_erasers =
3229 {
3230 {
3231 .eraseblocks = {
3232 {16 * 1024, 1},
3233 {8 * 1024, 2},
3234 {96 * 1024, 1},
3235 {128 * 1024, 1},
3236 },
3237 .block_erase = erase_sector_jedec,
3238 }, {
3239 .eraseblocks = { {256 * 1024, 1} },
3240 .block_erase = erase_chip_block_jedec,
3241 }
3242 },
Sean Nelson35727f72010-01-28 23:55:12 +00003243 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003244 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003245 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +01003246 .prepare_access = prepare_memory_access,
3247 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +00003248 },
3249
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003250 {
3251 .vendor = "Atmel",
3252 .name = "AT49F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003253 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003254 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003255 .model_id = ATMEL_AT49F002NT,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003256 .total_size = 256,
3257 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00003258 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003259 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003260 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003261 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00003262 .block_erasers =
3263 {
3264 {
3265 .eraseblocks = {
3266 {128 * 1024, 1},
3267 {96 * 1024, 1},
3268 {8 * 1024, 2},
3269 {16 * 1024, 1},
3270 },
3271 .block_erase = erase_sector_jedec,
3272 }, {
3273 .eraseblocks = { {256 * 1024, 1} },
3274 .block_erase = erase_chip_block_jedec,
3275 }
3276 },
Sean Nelson35727f72010-01-28 23:55:12 +00003277 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003278 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003279 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +01003280 .prepare_access = prepare_memory_access,
3281 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +00003282 },
3283
Daniel Lenskidf90d3a2010-07-22 11:44:38 +00003284 {
Uwe Hermannc74e9772011-09-08 19:55:18 +00003285 .vendor = "Atmel",
David Borgf5a30f62012-04-15 13:16:32 +00003286 .name = "AT49F020",
3287 .bustype = BUS_PARALLEL,
3288 .manufacture_id = ATMEL_ID,
3289 .model_id = ATMEL_AT49F020,
3290 .total_size = 256,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00003291 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00003292 .feature_bits = FEATURE_EITHER_RESET,
3293 .tested = TEST_OK_PRE,
3294 .probe = probe_jedec,
3295 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3296 .block_erasers =
3297 {
3298 {
3299 .eraseblocks = { {256 * 1024, 1} },
3300 .block_erase = erase_chip_block_jedec,
3301 }
3302 /* Chip features an optional permanent write protection
3303 * of the first 8 kB. The erase function is the same as
3304 * above, but 00000H to 01FFFH will not be erased.
3305 * FIXME: add another eraser when partial erasers are
3306 * supported.
3307 */
3308 },
3309 .printlock = printlock_at49f,
3310 .write = write_jedec_1,
3311 .read = read_memmapped,
3312 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +01003313 .prepare_access = prepare_memory_access,
3314 .finish_access = finish_memory_access,
David Borgf5a30f62012-04-15 13:16:32 +00003315 },
3316
3317 {
3318 .vendor = "Atmel",
3319 .name = "AT49F040",
3320 .bustype = BUS_PARALLEL,
3321 .manufacture_id = ATMEL_ID,
3322 .model_id = ATMEL_AT49F040,
3323 .total_size = 512,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00003324 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00003325 .feature_bits = FEATURE_EITHER_RESET,
3326 .tested = TEST_UNTESTED,
3327 .probe = probe_jedec,
3328 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3329 .block_erasers =
3330 {
3331 {
3332 .eraseblocks = { {512 * 1024, 1} },
3333 .block_erase = erase_chip_block_jedec,
3334 }
3335 /* Chip features an optional permanent write protection
3336 * of the first 16 kB. The erase function is the same as
3337 * above, but 00000H to 03FFFH will not be erased.
3338 * FIXME: add another eraser when partial erasers are
3339 * supported.
3340 */
3341 },
3342 .printlock = printlock_at49f,
3343 .write = write_jedec_1,
3344 .read = read_memmapped,
3345 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +01003346 .prepare_access = prepare_memory_access,
3347 .finish_access = finish_memory_access,
David Borgf5a30f62012-04-15 13:16:32 +00003348 },
3349
3350 {
3351 .vendor = "Atmel",
Andrew Morgan8dd97f92012-08-13 23:43:46 +00003352 .name = "AT49F080",
3353 .bustype = BUS_PARALLEL,
3354 .manufacture_id = ATMEL_ID,
3355 .model_id = ATMEL_AT49F080,
3356 .total_size = 1024,
3357 .page_size = 0, /* unused */
3358 .feature_bits = FEATURE_EITHER_RESET,
3359 .tested = TEST_UNTESTED,
3360 .probe = probe_jedec,
3361 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3362 .block_erasers =
3363 {
3364 {
3365 .eraseblocks = { {1024 * 1024, 1} },
3366 .block_erase = erase_chip_block_jedec,
3367 }
3368 /* Chip features an optional permanent write protection
3369 * of the first 16 kB. The erase function is the same as
3370 * above, but 00000H to 03FFFH will not be erased.
3371 * FIXME: add another eraser when partial erasers are
3372 * supported.
3373 */
3374 },
3375 .printlock = printlock_at49f,
3376 .write = write_jedec_1,
3377 .read = read_memmapped,
3378 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +01003379 .prepare_access = prepare_memory_access,
3380 .finish_access = finish_memory_access,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00003381 },
3382
3383 {
3384 /* 'top' version of AT49F080. equal in all aspects but the boot block address */
3385 .vendor = "Atmel",
3386 .name = "AT49F080T",
3387 .bustype = BUS_PARALLEL,
3388 .manufacture_id = ATMEL_ID,
3389 .model_id = ATMEL_AT49F080T,
3390 .total_size = 1024,
3391 .page_size = 0, /* unused */
3392 .feature_bits = FEATURE_EITHER_RESET,
3393 .tested = TEST_UNTESTED,
3394 .probe = probe_jedec,
3395 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3396 .block_erasers =
3397 {
3398 {
3399 .eraseblocks = { {1024 * 1024, 1} },
3400 .block_erase = erase_chip_block_jedec,
3401 }
3402 /* Chip features an optional permanent write protection
3403 * of the first 16 kB. The erase function is the same as
3404 * above, but FC000H to FFFFFH will not be erased.
3405 * FIXME: add another eraser when partial erasers are
3406 * supported.
3407 */
3408 },
3409 .printlock = printlock_at49f,
3410 .write = write_jedec_1,
3411 .read = read_memmapped,
3412 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +01003413 .prepare_access = prepare_memory_access,
3414 .finish_access = finish_memory_access,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00003415 },
3416
3417 {
3418 .vendor = "Atmel",
Uwe Hermannc74e9772011-09-08 19:55:18 +00003419 .name = "AT49LH002",
3420 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
3421 .manufacture_id = ATMEL_ID,
3422 .model_id = ATMEL_AT49LH002,
3423 .total_size = 256,
3424 .page_size = 0, /* unused */
Uwe Hermannc74e9772011-09-08 19:55:18 +00003425 .tested = TEST_UNTESTED,
Stefan Tauner7de93932014-08-03 13:05:45 +00003426 .probe = probe_82802ab,
3427 .probe_timing = TIMING_ZERO,
Uwe Hermannc74e9772011-09-08 19:55:18 +00003428 .block_erasers =
3429 {
3430 {
3431 .eraseblocks = {
3432 {64 * 1024, 3},
3433 {32 * 1024, 1},
3434 {8 * 1024, 2},
3435 {16 * 1024, 1},
3436 },
Stefan Tauner7de93932014-08-03 13:05:45 +00003437 .block_erase = NULL, /* TODO: Implement. */
Uwe Hermannc74e9772011-09-08 19:55:18 +00003438 }, {
3439 .eraseblocks = {
3440 {64 * 1024, 4},
3441 },
Stefan Tauner7de93932014-08-03 13:05:45 +00003442 .block_erase = erase_block_82802ab,
3443 },
3444 },
3445 .printlock = printlock_regspace2_block_eraser_0,
3446 .unlock = unlock_regspace2_block_eraser_0,
3447 .write = write_82802ab,
3448 .read = read_memmapped,
3449 .voltage = {3000, 3600},
Nico Huberb1974022023-01-12 13:13:12 +01003450 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +01003451 .finish_access = finish_memory_access,
Stefan Tauner7de93932014-08-03 13:05:45 +00003452 },
3453
3454 {
3455 .vendor = "Atmel",
Stefan Tauner7de93932014-08-03 13:05:45 +00003456 .name = "AT49LH004",
3457 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
3458 .manufacture_id = ATMEL_ID,
3459 .model_id = ATMEL_AT49LH004,
3460 .total_size = 512,
3461 .page_size = 0, /* unused */
Stefan Tauner7de93932014-08-03 13:05:45 +00003462 .tested = TEST_UNTESTED,
3463 .probe = probe_82802ab,
3464 .probe_timing = TIMING_ZERO,
3465 .block_erasers =
3466 {
3467 {
3468 .eraseblocks = {
3469 {64 * 1024, 7},
3470 {32 * 1024, 1},
3471 {8 * 1024, 2},
3472 {16 * 1024, 1},
3473 },
3474 .block_erase = erase_block_82802ab,
3475 }, {
3476 .eraseblocks = {
3477 {64 * 1024, 8},
3478 },
Uwe Hermannc74e9772011-09-08 19:55:18 +00003479 .block_erase = NULL, /* TODO: Implement. */
3480 },
3481 },
Stefan Tauner7de93932014-08-03 13:05:45 +00003482 .printlock = printlock_regspace2_block_eraser_0,
3483 .unlock = unlock_regspace2_block_eraser_0,
Uwe Hermannc74e9772011-09-08 19:55:18 +00003484 .write = write_82802ab,
3485 .read = read_memmapped,
3486 .voltage = {3000, 3600},
Nico Huberb1974022023-01-12 13:13:12 +01003487 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +01003488 .finish_access = finish_memory_access,
Uwe Hermannc74e9772011-09-08 19:55:18 +00003489 },
3490
3491 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003492 .vendor = "Atmel",
3493 .name = "AT49LH00B4",
3494 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
3495 .manufacture_id = ATMEL_ID,
3496 .model_id = ATMEL_AT49LH00B4,
3497 .total_size = 512,
Andrew Morganca081462011-09-13 22:05:44 +00003498 .page_size = 0, /* unused */
Alan Green1f9cc7d2019-07-01 11:10:45 +10003499 .tested = TEST_UNTESTED,
3500 .probe = probe_82802ab,
Andrew Morganca081462011-09-13 22:05:44 +00003501 .probe_timing = TIMING_ZERO,
3502 .block_erasers =
3503 {
3504 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003505 .eraseblocks = {
3506 {8 * 1024, 2},
3507 {16 * 1024, 1},
3508 {32 * 1024, 1},
3509 {64 * 1024, 7},
3510 },
3511 .block_erase = NULL, /* TODO: Implement. */
3512 }, {
3513 .eraseblocks = {
3514 {64 * 1024, 8},
3515 },
3516 .block_erase = erase_block_82802ab,
Andrew Morganca081462011-09-13 22:05:44 +00003517 },
3518 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10003519 .printlock = printlock_regspace2_block_eraser_0,
3520 .unlock = unlock_regspace2_block_eraser_0,
3521 .write = write_82802ab,
Andrew Morganca081462011-09-13 22:05:44 +00003522 .read = read_memmapped,
Alan Green1f9cc7d2019-07-01 11:10:45 +10003523 .voltage = {3000, 3600},
Nico Huberb1974022023-01-12 13:13:12 +01003524 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +01003525 .finish_access = finish_memory_access,
Andrew Morganca081462011-09-13 22:05:44 +00003526 },
3527
3528 {
Angel Pons1ebda782021-04-20 21:39:11 +02003529 .vendor = "Boya/BoHong Microelectronics",
Christian Kudera475a7ee2021-04-20 22:50:01 +02003530 .name = "B.25D16A",
3531 .bustype = BUS_SPI,
3532 .manufacture_id = BOYA_BOHONG_ID,
3533 .model_id = BOYA_BOHONG_B_25D16A,
3534 .total_size = 2048,
3535 .page_size = 256,
3536 .feature_bits = FEATURE_WRSR_WREN,
3537 .tested = TEST_OK_PR,
3538 .probe = probe_spi_rdid,
3539 .probe_timing = TIMING_ZERO,
3540 .block_erasers =
3541 {
3542 {
3543 .eraseblocks = { {4 * 1024, 512} },
3544 .block_erase = spi_block_erase_20,
3545 }, {
3546 .eraseblocks = { {32 * 1024, 64} },
3547 .block_erase = spi_block_erase_52,
3548 }, {
3549 .eraseblocks = { {64 * 1024, 32} },
3550 .block_erase = spi_block_erase_d8,
3551 }, {
3552 .eraseblocks = { {2 * 1024 * 1024, 1} },
3553 .block_erase = spi_block_erase_60,
3554 }, {
3555 .eraseblocks = { {2 * 1024 * 1024, 1} },
3556 .block_erase = spi_block_erase_c7,
3557 }
3558 },
3559 .printlock = spi_prettyprint_status_register_bp2_srwd,
3560 .unlock = spi_disable_blockprotect_bp2_srwd,
3561 .write = spi_chip_write_256,
3562 .read = spi_chip_read,
3563 .voltage = {2700, 3600},
3564 },
3565
3566 {
3567 .vendor = "Boya/BoHong Microelectronics",
Angel Pons1ebda782021-04-20 21:39:11 +02003568 .name = "B.25Q128AS",
Jack Olsen73ae5ef2020-08-08 21:12:13 -05003569 .bustype = BUS_SPI,
Angel Pons1ebda782021-04-20 21:39:11 +02003570 .manufacture_id = BOYA_BOHONG_ID,
3571 .model_id = BOYA_BOHONG_B_25Q128AS,
Jack Olsen73ae5ef2020-08-08 21:12:13 -05003572 .total_size = 16384,
3573 .page_size = 256,
3574 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
3575 .tested = TEST_OK_PREW,
3576 .probe = probe_spi_rdid,
3577 .probe_timing = TIMING_ZERO,
3578 .block_erasers =
3579 {
3580 {
3581 .eraseblocks = { {4 * 1024, 4096} },
3582 .block_erase = spi_block_erase_20,
3583 }, {
3584 .eraseblocks = { {32 * 1024, 512} },
3585 .block_erase = spi_block_erase_52,
3586 }, {
3587 .eraseblocks = { {64 * 1024, 256} },
3588 .block_erase = spi_block_erase_d8,
3589 }, {
3590 .eraseblocks = { {16 * 1024 * 1024, 1} },
3591 .block_erase = spi_block_erase_60,
3592 }, {
3593 .eraseblocks = { {16 * 1024 * 1024, 1} },
3594 .block_erase = spi_block_erase_c7,
3595 }
3596 },
3597 .printlock = spi_prettyprint_status_register_plain,
3598 .unlock = spi_disable_blockprotect_at25fs040,
3599 .write = spi_chip_write_256,
3600 .read = spi_chip_read,
3601 .voltage = {2700, 3600},
3602 },
3603
3604 {
Joshua Roysf1324e02010-09-16 00:51:51 +00003605 .vendor = "Bright",
3606 .name = "BM29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003607 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00003608 .manufacture_id = BRIGHT_ID,
3609 .model_id = BRIGHT_BM29F040,
3610 .total_size = 512,
3611 .page_size = 64 * 1024,
3612 .feature_bits = FEATURE_EITHER_RESET,
3613 .tested = TEST_OK_PR,
3614 .probe = probe_jedec,
3615 .probe_timing = TIMING_ZERO,
3616 .block_erasers =
3617 {
3618 {
3619 .eraseblocks = { {64 * 1024, 8} },
3620 .block_erase = erase_sector_jedec,
3621 }, {
3622 .eraseblocks = { {512 * 1024, 1} },
3623 .block_erase = erase_chip_block_jedec,
3624 },
3625 },
3626 .write = write_jedec_1,
3627 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003628 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +01003629 .prepare_access = prepare_memory_access,
3630 .finish_access = finish_memory_access,
Joshua Roysf1324e02010-09-16 00:51:51 +00003631 },
3632
3633 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003634 .vendor = "Catalyst",
3635 .name = "CAT28F512",
3636 .bustype = BUS_PARALLEL,
3637 .manufacture_id = CATALYST_ID,
3638 .model_id = CATALYST_CAT28F512,
3639 .total_size = 64,
3640 .page_size = 0, /* unused */
3641 .feature_bits = 0,
Alan Green908adf42019-07-03 15:34:06 +10003642 .tested = {.probe = OK, .read = OK, .erase = BAD, .write = BAD},
Alan Green1f9cc7d2019-07-01 11:10:45 +10003643 .probe = probe_jedec, /* FIXME! */
3644 .probe_timing = TIMING_ZERO,
3645 .block_erasers =
3646 {
3647 {
3648 .eraseblocks = { {64 * 1024, 1} },
3649 .block_erase = NULL, /* TODO */
3650 },
3651 },
3652 .write = NULL, /* TODO */
3653 .read = read_memmapped,
3654 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +01003655 .prepare_access = prepare_memory_access,
3656 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +10003657 },
3658
3659 {
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003660 .vendor = "ENE",
3661 .name = "KB9012 (EDI)",
3662 .bustype = BUS_SPI,
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003663 .total_size = 128,
3664 .page_size = 128,
3665 .feature_bits = FEATURE_ERASED_ZERO,
3666 .tested = TEST_OK_PREW,
Alan Greenc1863ca2019-06-27 15:08:03 +10003667 .spi_cmd_set = SPI_EDI,
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003668 .probe = edi_probe_kb9012,
3669 .probe_timing = TIMING_ZERO,
3670 .block_erasers =
3671 {
3672 {
3673 .eraseblocks = { {128, 1024} },
3674 .block_erase = edi_chip_block_erase,
3675 },
3676 },
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003677 .write = edi_chip_write,
3678 .read = edi_chip_read,
3679 .voltage = {2700, 3600},
Alan Greenc1863ca2019-06-27 15:08:03 +10003680 .gran = write_gran_128bytes,
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003681 },
3682
3683 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003684 .vendor = "ESI",
3685 .name = "ES25P16",
3686 .bustype = BUS_SPI,
3687 .manufacture_id = EXCEL_ID_NOPREFIX,
3688 .model_id = EXCEL_ES25P16,
3689 .total_size = 2 * 1024,
3690 .page_size = 256,
3691 /* 256-byte parameter page separate from memory array:
3692 * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
3693 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003694 .tested = TEST_UNTESTED,
Alan Green1f9cc7d2019-07-01 11:10:45 +10003695 .probe = probe_spi_rdid,
3696 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003697 .block_erasers =
3698 {
3699 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003700 .eraseblocks = { {64 * 1024, 32} },
3701 .block_erase = spi_block_erase_d8,
Sean Nelson54596372010-01-09 05:30:14 +00003702 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003703 .eraseblocks = { {2 * 1024 * 1024, 1} },
3704 .block_erase = spi_block_erase_c7,
Sean Nelson54596372010-01-09 05:30:14 +00003705 }
3706 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10003707 .printlock = spi_prettyprint_status_register_bp2_srwd,
3708 .unlock = spi_disable_blockprotect_bp2_srwd,
3709 .write = spi_chip_write_256,
3710 .read = spi_chip_read, /* Fast Read (0x0B) supported */
3711 .voltage = {2700, 3600},
3712 },
3713
3714 {
3715 .vendor = "ESI",
3716 .name = "ES25P40",
3717 .bustype = BUS_SPI,
3718 .manufacture_id = EXCEL_ID_NOPREFIX,
3719 .model_id = EXCEL_ES25P40,
3720 .total_size = 512,
3721 .page_size = 256,
3722 /* 256-byte parameter page separate from memory array:
3723 * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
3724 .feature_bits = FEATURE_WRSR_WREN,
3725 .tested = TEST_UNTESTED,
3726 .probe = probe_spi_rdid,
3727 .probe_timing = TIMING_ZERO,
3728 .block_erasers =
3729 {
3730 {
3731 .eraseblocks = { {64 * 1024, 8} },
3732 .block_erase = spi_block_erase_d8,
3733 }, {
3734 .eraseblocks = { {512 * 1024, 1} },
3735 .block_erase = spi_block_erase_c7,
3736 }
3737 },
3738 .printlock = spi_prettyprint_status_register_bp2_srwd,
3739 .unlock = spi_disable_blockprotect_bp2_srwd,
3740 .write = spi_chip_write_256,
3741 .read = spi_chip_read, /* Fast Read (0x0B) supported */
3742 .voltage = {2700, 3600},
3743 },
3744
3745 {
3746 .vendor = "ESI",
3747 .name = "ES25P80",
3748 .bustype = BUS_SPI,
3749 .manufacture_id = EXCEL_ID_NOPREFIX,
3750 .model_id = EXCEL_ES25P80,
3751 .total_size = 1024,
3752 .page_size = 256,
3753 /* 256-byte parameter page separate from memory array:
3754 * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
3755 .feature_bits = FEATURE_WRSR_WREN,
3756 .tested = TEST_UNTESTED,
3757 .probe = probe_spi_rdid,
3758 .probe_timing = TIMING_ZERO,
3759 .block_erasers =
3760 {
3761 {
3762 .eraseblocks = { {64 * 1024, 16} },
3763 .block_erase = spi_block_erase_d8,
3764 }, {
3765 .eraseblocks = { {1024 * 1024, 1} },
3766 .block_erase = spi_block_erase_c7,
3767 }
3768 },
3769 .printlock = spi_prettyprint_status_register_bp2_srwd,
3770 .unlock = spi_disable_blockprotect_bp2_srwd,
3771 .write = spi_chip_write_256,
3772 .read = spi_chip_read, /* Fast Read (0x0B) supported */
3773 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00003774 },
3775
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003776 {
Stefan Tauner352e50b2013-02-22 15:58:45 +00003777 .vendor = "ESMT",
Michael Karcher80a59ea2010-06-19 22:06:35 +00003778 .name = "F25L008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003779 .bustype = BUS_SPI,
Stefan Tauner352e50b2013-02-22 15:58:45 +00003780 .manufacture_id = ESMT_ID,
3781 .model_id = ESMT_F25L008A,
Michael Karcher80a59ea2010-06-19 22:06:35 +00003782 .total_size = 1024,
3783 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003784 .feature_bits = FEATURE_WRSR_EITHER,
Stefan Taunereb582572012-09-21 12:52:50 +00003785 .tested = TEST_OK_PREW,
Michael Karcher80a59ea2010-06-19 22:06:35 +00003786 .probe = probe_spi_rdid,
3787 .probe_timing = TIMING_ZERO,
3788 .block_erasers =
3789 {
3790 {
3791 .eraseblocks = { {4 * 1024, 256} },
3792 .block_erase = spi_block_erase_20,
3793 }, {
3794 .eraseblocks = { {64 * 1024, 16} },
3795 .block_erase = spi_block_erase_d8,
3796 }, {
3797 .eraseblocks = { {1024 * 1024, 1} },
3798 .block_erase = spi_block_erase_60,
3799 }, {
3800 .eraseblocks = { {1024 * 1024, 1} },
3801 .block_erase = spi_block_erase_c7,
3802 }
3803 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003804 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003805 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger9a795d82010-07-14 16:19:05 +00003806 .write = spi_chip_write_1,
Michael Karcher4497e862010-07-10 19:34:15 +00003807 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003808 .voltage = {2700, 3600},
Michael Karcher80a59ea2010-06-19 22:06:35 +00003809 },
3810
3811 {
Stefan Tauner85f09f72014-05-27 21:27:14 +00003812 .vendor = "ESMT",
3813 .name = "F25L32PA",
3814 .bustype = BUS_SPI,
3815 .manufacture_id = ESMT_ID,
3816 .model_id = ESMT_F25L32PA,
3817 .total_size = 4096,
3818 .page_size = 256,
3819 .feature_bits = FEATURE_WRSR_EITHER | FEATURE_OTP,
3820 .tested = TEST_UNTESTED,
3821 .probe = probe_spi_rdid,
3822 .probe_timing = TIMING_ZERO,
3823 .block_erasers =
3824 {
3825 {
3826 .eraseblocks = { {4 * 1024, 1024} },
3827 .block_erase = spi_block_erase_20,
3828 }, {
3829 .eraseblocks = { {64 * 1024, 64} },
3830 .block_erase = spi_block_erase_d8,
3831 }, {
3832 .eraseblocks = { {4 * 1024 * 1024, 1} },
3833 .block_erase = spi_block_erase_60,
3834 }, {
3835 .eraseblocks = { {4 * 1024 * 1024, 1} },
3836 .block_erase = spi_block_erase_c7,
3837 }
3838 },
3839 .printlock = spi_prettyprint_status_register_bp2_bpl,
3840 .unlock = spi_disable_blockprotect,
3841 .write = spi_chip_write_256,
3842 .read = spi_chip_read,
3843 .voltage = {2700, 3600},
3844 },
3845
3846 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003847 .vendor = "ESMT",
3848 .name = "F49B002UA",
3849 .bustype = BUS_PARALLEL,
3850 .manufacture_id = ESMT_ID,
3851 .model_id = ESMT_F49B002UA,
3852 .total_size = 256,
3853 .page_size = 4096,
3854 .feature_bits = FEATURE_EITHER_RESET,
3855 .tested = TEST_UNTESTED,
3856 .probe = probe_jedec,
3857 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3858 .block_erasers =
3859 {
3860 {
3861 .eraseblocks = {
3862 {128 * 1024, 1},
3863 {96 * 1024, 1},
3864 {8 * 1024, 2},
3865 {16 * 1024, 1},
3866 },
3867 .block_erase = erase_sector_jedec,
3868 }, {
3869 .eraseblocks = { {256 * 1024, 1} },
3870 .block_erase = erase_chip_block_jedec,
3871 }
3872 },
3873 .write = write_jedec_1,
3874 .read = read_memmapped,
3875 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +01003876 .prepare_access = prepare_memory_access,
3877 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +10003878 },
3879
3880 {
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003881 .vendor = "Eon",
3882 .name = "EN25B05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003883 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003884 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003885 .model_id = EON_EN25B05,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003886 .total_size = 64,
3887 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003888 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003889 .tested = TEST_UNTESTED,
3890 .probe = probe_spi_rdid,
3891 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003892 .block_erasers =
3893 {
3894 {
3895 .eraseblocks = {
3896 {4 * 1024, 2},
3897 {8 * 1024, 1},
3898 {16 * 1024, 1},
3899 {32 * 1024, 1},
3900 },
3901 .block_erase = spi_block_erase_d8,
3902 }, {
3903 .eraseblocks = { {64 * 1024, 1} },
3904 .block_erase = spi_block_erase_c7,
3905 }
3906 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003907 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003908 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003909 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003910 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003911 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003912 },
3913
3914 {
3915 .vendor = "Eon",
3916 .name = "EN25B05T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003917 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003918 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003919 .model_id = EON_EN25B05,
Sean Nelson54596372010-01-09 05:30:14 +00003920 .total_size = 64,
3921 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003922 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003923 .tested = TEST_UNTESTED,
3924 .probe = probe_spi_rdid,
3925 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003926 .block_erasers =
3927 {
3928 {
3929 .eraseblocks = {
3930 {32 * 1024, 1},
3931 {16 * 1024, 1},
3932 {8 * 1024, 1},
3933 {4 * 1024, 2},
3934 },
3935 .block_erase = spi_block_erase_d8,
3936 }, {
3937 .eraseblocks = { {64 * 1024, 1} },
3938 .block_erase = spi_block_erase_c7,
3939 }
3940 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003941 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003942 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003943 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003944 .read = spi_chip_read, /* Fast read (0x0B) supported */
3945 .voltage = {2700, 3600},
3946 },
3947
3948 {
3949 .vendor = "Eon",
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003950 .name = "EN25B10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003951 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003952 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003953 .model_id = EON_EN25B10,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003954 .total_size = 128,
3955 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003956 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003957 .tested = TEST_UNTESTED,
3958 .probe = probe_spi_rdid,
3959 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003960 .block_erasers =
3961 {
3962 {
3963 .eraseblocks = {
3964 {4 * 1024, 2},
3965 {8 * 1024, 1},
3966 {16 * 1024, 1},
3967 {32 * 1024, 3},
3968 },
3969 .block_erase = spi_block_erase_d8,
3970 }, {
3971 .eraseblocks = { {128 * 1024, 1} },
3972 .block_erase = spi_block_erase_c7,
3973 }
3974 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003975 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003976 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003977 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003978 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003979 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003980 },
3981
3982 {
3983 .vendor = "Eon",
3984 .name = "EN25B10T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003985 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003986 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003987 .model_id = EON_EN25B10,
Sean Nelson54596372010-01-09 05:30:14 +00003988 .total_size = 128,
3989 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003990 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00003991 .tested = TEST_OK_PREW,
Sean Nelson54596372010-01-09 05:30:14 +00003992 .probe = probe_spi_rdid,
3993 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003994 .block_erasers =
3995 {
3996 {
3997 .eraseblocks = {
3998 {32 * 1024, 3},
3999 {16 * 1024, 1},
4000 {8 * 1024, 1},
4001 {4 * 1024, 2},
4002 },
4003 .block_erase = spi_block_erase_d8,
4004 }, {
4005 .eraseblocks = { {128 * 1024, 1} },
4006 .block_erase = spi_block_erase_c7,
4007 }
4008 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004009 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004010 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004011 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004012 .read = spi_chip_read, /* Fast read (0x0B) supported */
4013 .voltage = {2700, 3600},
4014 },
4015
4016 {
4017 .vendor = "Eon",
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004018 .name = "EN25B16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004019 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004020 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004021 .model_id = EON_EN25B16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004022 .total_size = 2048,
4023 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00004024 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004025 .tested = TEST_UNTESTED,
4026 .probe = probe_spi_rdid,
4027 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004028 .block_erasers =
4029 {
4030 {
4031 .eraseblocks = {
4032 {4 * 1024, 2},
4033 {8 * 1024, 1},
4034 {16 * 1024, 1},
4035 {32 * 1024, 1},
4036 {64 * 1024, 31},
4037 },
4038 .block_erase = spi_block_erase_d8,
4039 }, {
4040 .eraseblocks = { {2 * 1024 * 1024, 1} },
4041 .block_erase = spi_block_erase_c7,
4042 }
4043 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004044 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004045 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00004046 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004047 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004048 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00004049 },
4050
4051 {
4052 .vendor = "Eon",
4053 .name = "EN25B16T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004054 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00004055 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004056 .model_id = EON_EN25B16,
Sean Nelson54596372010-01-09 05:30:14 +00004057 .total_size = 2048,
4058 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00004059 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00004060 .tested = TEST_UNTESTED,
4061 .probe = probe_spi_rdid,
4062 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004063 .block_erasers =
4064 {
4065 {
4066 .eraseblocks = {
4067 {64 * 1024, 31},
4068 {32 * 1024, 1},
4069 {16 * 1024, 1},
4070 {8 * 1024, 1},
4071 {4 * 1024, 2},
4072 },
4073 .block_erase = spi_block_erase_d8,
4074 }, {
4075 .eraseblocks = { {2 * 1024 * 1024, 1} },
4076 .block_erase = spi_block_erase_c7,
4077 }
4078 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004079 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004080 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004081 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004082 .read = spi_chip_read, /* Fast read (0x0B) supported */
4083 .voltage = {2700, 3600},
4084 },
4085
4086 {
4087 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004088 .name = "EN25B20",
Stefan Taunerb175af52015-01-24 15:06:27 +00004089 .bustype = BUS_SPI,
4090 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004091 .model_id = EON_EN25B20,
4092 .total_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004093 .page_size = 256,
4094 .feature_bits = FEATURE_WRSR_WREN,
4095 .tested = TEST_UNTESTED,
4096 .probe = probe_spi_rdid,
4097 .probe_timing = TIMING_ZERO,
4098 .block_erasers =
4099 {
4100 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004101 .eraseblocks = {
4102 {4 * 1024, 2},
4103 {8 * 1024, 1},
4104 {16 * 1024, 1},
4105 {32 * 1024, 1},
4106 {64 * 1024, 3}
4107 },
Stefan Taunerb175af52015-01-24 15:06:27 +00004108 .block_erase = spi_block_erase_d8,
4109 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004110 .eraseblocks = { {256 * 1024, 1} },
4111 .block_erase = spi_block_erase_c7,
4112 }
4113 },
4114 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4115 .unlock = spi_disable_blockprotect,
4116 .write = spi_chip_write_256,
4117 .read = spi_chip_read, /* Fast read (0x0B) supported */
4118 .voltage = {2700, 3600},
4119 },
4120
4121 {
4122 .vendor = "Eon",
4123 .name = "EN25B20T",
4124 .bustype = BUS_SPI,
4125 .manufacture_id = EON_ID_NOPREFIX,
4126 .model_id = EON_EN25B20,
4127 .total_size = 256,
4128 .page_size = 256,
4129 .feature_bits = FEATURE_WRSR_WREN,
4130 .tested = TEST_UNTESTED,
4131 .probe = probe_spi_rdid,
4132 .probe_timing = TIMING_ZERO,
4133 .block_erasers =
4134 {
4135 {
4136 .eraseblocks = {
4137 {64 * 1024, 3},
4138 {32 * 1024, 1},
4139 {16 * 1024, 1},
4140 {8 * 1024, 1},
4141 {4 * 1024, 2},
4142 },
4143 .block_erase = spi_block_erase_d8,
4144 }, {
4145 .eraseblocks = { {256 * 1024, 1} },
Stefan Taunerb175af52015-01-24 15:06:27 +00004146 .block_erase = spi_block_erase_c7,
4147 }
4148 },
4149 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4150 .unlock = spi_disable_blockprotect,
4151 .write = spi_chip_write_256,
4152 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004153 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004154 },
4155
4156 {
4157 .vendor = "Eon",
4158 .name = "EN25B32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004159 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004160 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004161 .model_id = EON_EN25B32,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004162 .total_size = 4096,
4163 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004164 /* OTP: 512B total; enter 0x3A */
4165 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004166 .tested = TEST_UNTESTED,
4167 .probe = probe_spi_rdid,
4168 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004169 .block_erasers =
4170 {
4171 {
4172 .eraseblocks = {
4173 {4 * 1024, 2},
4174 {8 * 1024, 1},
4175 {16 * 1024, 1},
4176 {32 * 1024, 1},
4177 {64 * 1024, 63},
4178 },
4179 .block_erase = spi_block_erase_d8,
4180 }, {
4181 .eraseblocks = { {4 * 1024 * 1024, 1} },
4182 .block_erase = spi_block_erase_c7,
4183 }
4184 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004185 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004186 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00004187 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004188 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004189 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00004190 },
4191
4192 {
4193 .vendor = "Eon",
4194 .name = "EN25B32T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004195 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00004196 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004197 .model_id = EON_EN25B32,
Sean Nelson54596372010-01-09 05:30:14 +00004198 .total_size = 4096,
4199 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004200 /* OTP: 512B total; enter 0x3A */
4201 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Sean Nelson54596372010-01-09 05:30:14 +00004202 .tested = TEST_UNTESTED,
4203 .probe = probe_spi_rdid,
4204 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004205 .block_erasers =
4206 {
4207 {
4208 .eraseblocks = {
4209 {64 * 1024, 63},
4210 {32 * 1024, 1},
4211 {16 * 1024, 1},
4212 {8 * 1024, 1},
4213 {4 * 1024, 2},
4214 },
4215 .block_erase = spi_block_erase_d8,
4216 }, {
4217 .eraseblocks = { {4 * 1024 * 1024, 1} },
4218 .block_erase = spi_block_erase_c7,
4219 }
4220 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004221 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004222 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004223 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004224 .read = spi_chip_read, /* Fast read (0x0B) supported */
4225 .voltage = {2700, 3600},
4226 },
4227
4228 {
4229 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004230 .name = "EN25B40",
Stefan Taunerb175af52015-01-24 15:06:27 +00004231 .bustype = BUS_SPI,
4232 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004233 .model_id = EON_EN25B40,
4234 .total_size = 512,
Stefan Taunerb175af52015-01-24 15:06:27 +00004235 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004236 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerb175af52015-01-24 15:06:27 +00004237 .tested = TEST_UNTESTED,
4238 .probe = probe_spi_rdid,
4239 .probe_timing = TIMING_ZERO,
4240 .block_erasers =
4241 {
4242 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004243 .eraseblocks = {
4244 {4 * 1024, 2},
4245 {8 * 1024, 1},
4246 {16 * 1024, 1},
4247 {32 * 1024, 1},
4248 {64 * 1024, 7}
4249 },
Stefan Taunerb175af52015-01-24 15:06:27 +00004250 .block_erase = spi_block_erase_d8,
4251 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004252 .eraseblocks = { {512 * 1024, 1} },
4253 .block_erase = spi_block_erase_c7,
4254 }
4255 },
4256 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4257 .unlock = spi_disable_blockprotect,
4258 .write = spi_chip_write_256,
4259 .read = spi_chip_read, /* Fast read (0x0B) supported */
4260 .voltage = {2700, 3600},
4261 },
4262
4263 {
4264 .vendor = "Eon",
4265 .name = "EN25B40T",
4266 .bustype = BUS_SPI,
4267 .manufacture_id = EON_ID_NOPREFIX,
4268 .model_id = EON_EN25B40,
4269 .total_size = 512,
4270 .page_size = 256,
4271 .feature_bits = FEATURE_WRSR_WREN,
4272 .tested = TEST_UNTESTED,
4273 .probe = probe_spi_rdid,
4274 .probe_timing = TIMING_ZERO,
4275 .block_erasers =
4276 {
4277 {
4278 .eraseblocks = {
4279 {64 * 1024, 7},
4280 {32 * 1024, 1},
4281 {16 * 1024, 1},
4282 {8 * 1024, 1},
4283 {4 * 1024, 2},
4284 },
4285 .block_erase = spi_block_erase_d8,
4286 }, {
4287 .eraseblocks = { {512 * 1024, 1} },
Stefan Taunerb175af52015-01-24 15:06:27 +00004288 .block_erase = spi_block_erase_c7,
4289 }
4290 },
4291 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4292 .unlock = spi_disable_blockprotect,
4293 .write = spi_chip_write_256,
4294 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004295 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004296 },
4297
4298 {
4299 .vendor = "Eon",
4300 .name = "EN25B64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004301 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004302 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004303 .model_id = EON_EN25B64,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004304 .total_size = 8192,
4305 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004306 /* OTP: 512B total; enter 0x3A */
4307 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004308 .tested = TEST_UNTESTED,
4309 .probe = probe_spi_rdid,
4310 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004311 .block_erasers =
4312 {
4313 {
4314 .eraseblocks = {
4315 {4 * 1024, 2},
4316 {8 * 1024, 1},
4317 {16 * 1024, 1},
4318 {32 * 1024, 1},
4319 {64 * 1024, 127},
4320 },
4321 .block_erase = spi_block_erase_d8,
4322 }, {
4323 .eraseblocks = { {8 * 1024 * 1024, 1} },
4324 .block_erase = spi_block_erase_c7,
4325 }
4326 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004327 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004328 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00004329 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004330 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004331 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00004332 },
4333
4334 {
4335 .vendor = "Eon",
4336 .name = "EN25B64T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004337 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00004338 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004339 .model_id = EON_EN25B64,
Sean Nelson54596372010-01-09 05:30:14 +00004340 .total_size = 8192,
4341 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004342 /* OTP: 512B total; enter 0x3A */
4343 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Sean Nelson54596372010-01-09 05:30:14 +00004344 .tested = TEST_UNTESTED,
4345 .probe = probe_spi_rdid,
4346 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004347 .block_erasers =
4348 {
4349 {
4350 .eraseblocks = {
4351 {64 * 1024, 127},
4352 {32 * 1024, 1},
4353 {16 * 1024, 1},
4354 {8 * 1024, 1},
4355 {4 * 1024, 2},
4356 },
4357 .block_erase = spi_block_erase_d8,
4358 }, {
4359 .eraseblocks = { {8 * 1024 * 1024, 1} },
4360 .block_erase = spi_block_erase_c7,
4361 }
4362 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004363 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004364 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004365 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004366 .read = spi_chip_read, /* Fast read (0x0B) supported */
4367 .voltage = {2700, 3600},
4368 },
4369
4370 {
4371 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004372 .name = "EN25B80",
Stefan Taunerb175af52015-01-24 15:06:27 +00004373 .bustype = BUS_SPI,
4374 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004375 .model_id = EON_EN25B80,
4376 .total_size = 1024,
Stefan Taunerb175af52015-01-24 15:06:27 +00004377 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004378 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerb175af52015-01-24 15:06:27 +00004379 .tested = TEST_UNTESTED,
4380 .probe = probe_spi_rdid,
4381 .probe_timing = TIMING_ZERO,
4382 .block_erasers =
4383 {
4384 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004385 .eraseblocks = {
4386 {4 * 1024, 2},
4387 {8 * 1024, 1},
4388 {16 * 1024, 1},
4389 {32 * 1024, 1},
4390 {64 * 1024, 15}
4391 },
Stefan Taunerb175af52015-01-24 15:06:27 +00004392 .block_erase = spi_block_erase_d8,
4393 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004394 .eraseblocks = { {1024 * 1024, 1} },
4395 .block_erase = spi_block_erase_c7,
4396 }
4397 },
4398 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4399 .unlock = spi_disable_blockprotect,
4400 .write = spi_chip_write_256,
4401 .read = spi_chip_read, /* Fast read (0x0B) supported */
4402 .voltage = {2700, 3600},
4403 },
4404
4405 {
4406 .vendor = "Eon",
4407 .name = "EN25B80T",
4408 .bustype = BUS_SPI,
4409 .manufacture_id = EON_ID_NOPREFIX,
4410 .model_id = EON_EN25B80,
4411 .total_size = 1024,
4412 .page_size = 256,
4413 .feature_bits = FEATURE_WRSR_WREN,
4414 .tested = TEST_UNTESTED,
4415 .probe = probe_spi_rdid,
4416 .probe_timing = TIMING_ZERO,
4417 .block_erasers =
4418 {
4419 {
4420 .eraseblocks = {
4421 {64 * 1024, 15},
4422 {32 * 1024, 1},
4423 {16 * 1024, 1},
4424 {8 * 1024, 1},
4425 {4 * 1024, 2},
4426 },
4427 .block_erase = spi_block_erase_d8,
4428 }, {
4429 .eraseblocks = { {1024 * 1024, 1} },
Stefan Taunerb175af52015-01-24 15:06:27 +00004430 .block_erase = spi_block_erase_c7,
4431 }
4432 },
4433 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4434 .unlock = spi_disable_blockprotect,
4435 .write = spi_chip_write_256,
4436 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004437 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004438 },
4439
4440 {
4441 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004442 .name = "EN25F05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004443 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004444 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004445 .model_id = EON_EN25F05,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004446 .total_size = 64,
4447 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004448 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00004449 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004450 .probe = probe_spi_rdid,
4451 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004452 .block_erasers =
4453 {
4454 {
4455 .eraseblocks = { {4 * 1024, 16} },
4456 .block_erase = spi_block_erase_20,
4457 }, {
4458 .eraseblocks = { {32 * 1024, 2} },
4459 .block_erase = spi_block_erase_d8,
4460 }, {
4461 .eraseblocks = { {32 * 1024, 2} },
4462 .block_erase = spi_block_erase_52,
4463 }, {
4464 .eraseblocks = { {64 * 1024, 1} },
4465 .block_erase = spi_block_erase_60,
4466 }, {
4467 .eraseblocks = { {64 * 1024, 1} },
4468 .block_erase = spi_block_erase_c7,
4469 }
4470 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004471 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004472 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004473 .write = spi_chip_write_256,
4474 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004475 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004476 },
4477
4478 {
4479 .vendor = "Eon",
4480 .name = "EN25F10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004481 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004482 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004483 .model_id = EON_EN25F10,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004484 .total_size = 128,
4485 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004486 .feature_bits = FEATURE_WRSR_WREN,
Simon Buhrowd173ed42021-09-29 09:28:07 +02004487 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004488 .probe = probe_spi_rdid,
4489 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004490 .block_erasers =
4491 {
4492 {
4493 .eraseblocks = { {4 * 1024, 32} },
4494 .block_erase = spi_block_erase_20,
4495 }, {
4496 .eraseblocks = { {32 * 1024, 4} },
4497 .block_erase = spi_block_erase_d8,
4498 }, {
4499 .eraseblocks = { {32 * 1024, 4} },
4500 .block_erase = spi_block_erase_52,
4501 }, {
4502 .eraseblocks = { {128 * 1024, 1} },
4503 .block_erase = spi_block_erase_60,
4504 }, {
4505 .eraseblocks = { {128 * 1024, 1} },
4506 .block_erase = spi_block_erase_c7,
4507 }
4508 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004509 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004510 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004511 .write = spi_chip_write_256,
4512 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004513 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004514 },
4515
4516 {
4517 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004518 .name = "EN25F16",
4519 .bustype = BUS_SPI,
4520 .manufacture_id = EON_ID_NOPREFIX,
4521 .model_id = EON_EN25F16,
4522 .total_size = 2048,
4523 .page_size = 256,
4524 .feature_bits = FEATURE_WRSR_WREN,
4525 .tested = TEST_OK_PREW,
4526 .probe = probe_spi_rdid,
4527 .probe_timing = TIMING_ZERO,
4528 .block_erasers =
4529 {
4530 {
4531 .eraseblocks = { {4 * 1024, 512} },
4532 .block_erase = spi_block_erase_20,
4533 }, {
4534 .eraseblocks = { {64 * 1024, 32} },
4535 .block_erase = spi_block_erase_d8,
4536 }, {
4537 .eraseblocks = { {2 * 1024 * 1024, 1} },
4538 .block_erase = spi_block_erase_60,
4539 }, {
4540 .eraseblocks = { {2 * 1024 * 1024, 1} },
4541 .block_erase = spi_block_erase_c7,
4542 }
4543 },
4544 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4545 .unlock = spi_disable_blockprotect,
4546 .write = spi_chip_write_256,
4547 .read = spi_chip_read,
4548 .voltage = {2700, 3600},
4549 },
4550
4551 {
4552 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004553 .name = "EN25F20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004554 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004555 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004556 .model_id = EON_EN25F20,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004557 .total_size = 256,
4558 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004559 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004560 .tested = TEST_UNTESTED,
4561 .probe = probe_spi_rdid,
4562 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004563 .block_erasers =
4564 {
4565 {
4566 .eraseblocks = { {4 * 1024, 64} },
4567 .block_erase = spi_block_erase_20,
4568 }, {
4569 .eraseblocks = { {64 * 1024, 4} },
4570 .block_erase = spi_block_erase_d8,
4571 }, {
4572 .eraseblocks = { {64 * 1024, 4} },
4573 .block_erase = spi_block_erase_52,
4574 }, {
4575 .eraseblocks = { {256 * 1024, 1} },
4576 .block_erase = spi_block_erase_60,
4577 }, {
4578 .eraseblocks = { {256 * 1024, 1} },
4579 .block_erase = spi_block_erase_c7,
4580 }
4581 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004582 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004583 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004584 .write = spi_chip_write_256,
4585 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004586 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004587 },
4588
4589 {
4590 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004591 .name = "EN25F32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004592 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004593 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004594 .model_id = EON_EN25F32,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004595 .total_size = 4096,
4596 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004597 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +00004598 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004599 .probe = probe_spi_rdid,
4600 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004601 .block_erasers =
4602 {
4603 {
4604 .eraseblocks = { {4 * 1024, 1024} },
4605 .block_erase = spi_block_erase_20,
4606 }, {
4607 .eraseblocks = { {64 * 1024, 64} },
4608 .block_erase = spi_block_erase_d8,
4609 }, {
4610 .eraseblocks = { {4 * 1024 * 1024, 1} },
4611 .block_erase = spi_block_erase_60,
4612 }, {
4613 .eraseblocks = { {4 * 1024 * 1024, 1} },
4614 .block_erase = spi_block_erase_c7,
4615 }
4616 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004617 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004618 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004619 .write = spi_chip_write_256,
4620 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004621 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004622 },
4623
4624 {
Russ Dill3cd5a122010-03-05 08:44:11 +00004625 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004626 .name = "EN25F40",
4627 .bustype = BUS_SPI,
4628 .manufacture_id = EON_ID_NOPREFIX,
4629 .model_id = EON_EN25F40,
4630 .total_size = 512,
4631 .page_size = 256,
4632 .feature_bits = FEATURE_WRSR_WREN,
4633 .tested = TEST_OK_PREW,
4634 .probe = probe_spi_rdid,
4635 .probe_timing = TIMING_ZERO,
4636 .block_erasers =
4637 {
4638 {
4639 .eraseblocks = { {4 * 1024, 128} },
4640 .block_erase = spi_block_erase_20,
4641 }, {
4642 .eraseblocks = { {64 * 1024, 8} },
4643 .block_erase = spi_block_erase_d8,
4644 }, {
4645 .eraseblocks = { {512 * 1024, 1} },
4646 .block_erase = spi_block_erase_60,
4647 }, {
4648 .eraseblocks = { {512 * 1024, 1} },
4649 .block_erase = spi_block_erase_c7,
4650 },
4651 },
4652 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4653 .unlock = spi_disable_blockprotect,
4654 .write = spi_chip_write_256,
4655 .read = spi_chip_read,
4656 .voltage = {2700, 3600},
4657 },
4658
4659 {
4660 .vendor = "Eon",
Stefan Taunerd932fd02012-09-06 17:37:16 +00004661 .name = "EN25F64",
4662 .bustype = BUS_SPI,
4663 .manufacture_id = EON_ID_NOPREFIX,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00004664 .model_id = EON_EN25F64,
Stefan Taunerd932fd02012-09-06 17:37:16 +00004665 .total_size = 8192,
4666 .page_size = 256,
4667 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00004668 .tested = TEST_OK_PREW,
Stefan Taunerd932fd02012-09-06 17:37:16 +00004669 .probe = probe_spi_rdid,
4670 .probe_timing = TIMING_ZERO,
4671 .block_erasers =
4672 {
4673 {
4674 .eraseblocks = { {4 * 1024, 2048} },
4675 .block_erase = spi_block_erase_20,
4676 }, {
4677 .eraseblocks = { {64 * 1024, 128} },
4678 .block_erase = spi_block_erase_d8,
4679 }, {
4680 .eraseblocks = { {8 * 1024 * 1024, 1} },
4681 .block_erase = spi_block_erase_60,
4682 }, {
4683 .eraseblocks = { {8 * 1024 * 1024, 1} },
4684 .block_erase = spi_block_erase_c7,
4685 }
4686 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004687 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Stefan Taunerd932fd02012-09-06 17:37:16 +00004688 .unlock = spi_disable_blockprotect,
4689 .write = spi_chip_write_256,
4690 .read = spi_chip_read,
4691 .voltage = {2700, 3600},
4692 },
4693
4694 {
4695 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004696 .name = "EN25F80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004697 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004698 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004699 .model_id = EON_EN25F80,
David Hendricks6d715302011-07-24 22:21:57 +00004700 .total_size = 1024,
4701 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004702 .feature_bits = FEATURE_WRSR_WREN,
4703 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004704 .probe = probe_spi_rdid,
4705 .probe_timing = TIMING_ZERO,
4706 .block_erasers =
4707 {
4708 {
4709 .eraseblocks = { {4 * 1024, 256} },
4710 .block_erase = spi_block_erase_20,
4711 }, {
4712 .eraseblocks = { {64 * 1024, 16} },
4713 .block_erase = spi_block_erase_d8,
4714 }, {
4715 .eraseblocks = { {1024 * 1024, 1} },
4716 .block_erase = spi_block_erase_60,
4717 }, {
4718 .eraseblocks = { {1024 * 1024, 1} },
4719 .block_erase = spi_block_erase_c7,
4720 }
4721 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004722 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004723 .unlock = spi_disable_blockprotect,
4724 .write = spi_chip_write_256,
4725 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004726 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004727 },
4728
4729 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004730 .vendor = "Eon",
4731 .name = "EN25P05",
4732 .bustype = BUS_SPI,
4733 .manufacture_id = EON_ID_NOPREFIX,
4734 .model_id = EON_EN25B05,
4735 .total_size = 64,
4736 .page_size = 256,
4737 .feature_bits = FEATURE_WRSR_WREN,
4738 .tested = TEST_UNTESTED,
4739 .probe = probe_spi_rdid,
4740 .probe_timing = TIMING_ZERO,
4741 .block_erasers =
4742 {
4743 {
4744 .eraseblocks = {
4745 {32 * 1024, 2} },
4746 .block_erase = spi_block_erase_d8,
4747 }, {
4748 .eraseblocks = { {64 * 1024, 1} },
4749 .block_erase = spi_block_erase_c7,
4750 }
4751 },
4752 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4753 .unlock = spi_disable_blockprotect,
4754 .write = spi_chip_write_256,
4755 .read = spi_chip_read, /* Fast read (0x0B) supported */
4756 .voltage = {2700, 3600},
4757 },
4758
4759 {
4760 .vendor = "Eon",
4761 .name = "EN25P10",
4762 .bustype = BUS_SPI,
4763 .manufacture_id = EON_ID_NOPREFIX,
4764 .model_id = EON_EN25B10,
4765 .total_size = 128,
4766 .page_size = 256,
4767 .feature_bits = FEATURE_WRSR_WREN,
4768 .tested = TEST_UNTESTED,
4769 .probe = probe_spi_rdid,
4770 .probe_timing = TIMING_ZERO,
4771 .block_erasers =
4772 {
4773 {
4774 .eraseblocks = { {32 * 1024, 4} },
4775 .block_erase = spi_block_erase_d8,
4776 }, {
4777 .eraseblocks = { {128 * 1024, 1} },
4778 .block_erase = spi_block_erase_c7,
4779 }
4780 },
4781 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4782 .unlock = spi_disable_blockprotect,
4783 .write = spi_chip_write_256,
4784 .read = spi_chip_read, /* Fast read (0x0B) supported */
4785 .voltage = {2700, 3600},
4786 },
4787
4788 {
4789 .vendor = "Eon",
4790 .name = "EN25P16",
4791 .bustype = BUS_SPI,
4792 .manufacture_id = EON_ID_NOPREFIX,
4793 .model_id = EON_EN25B16,
4794 .total_size = 2048,
4795 .page_size = 256,
4796 .feature_bits = FEATURE_WRSR_WREN,
4797 .tested = TEST_UNTESTED,
4798 .probe = probe_spi_rdid,
4799 .probe_timing = TIMING_ZERO,
4800 .block_erasers =
4801 {
4802 {
4803 .eraseblocks = { {64 * 1024, 32} },
4804 .block_erase = spi_block_erase_d8,
4805 }, {
4806 .eraseblocks = { {2 * 1024 * 1024, 1} },
4807 .block_erase = spi_block_erase_c7,
4808 }
4809 },
4810 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4811 .unlock = spi_disable_blockprotect,
4812 .write = spi_chip_write_256,
4813 .read = spi_chip_read, /* Fast read (0x0B) supported */
4814 .voltage = {2700, 3600},
4815 },
4816
4817 {
4818 .vendor = "Eon",
4819 .name = "EN25P20",
4820 .bustype = BUS_SPI,
4821 .manufacture_id = EON_ID_NOPREFIX,
4822 .model_id = EON_EN25B20,
4823 .total_size = 256,
4824 .page_size = 256,
4825 .feature_bits = FEATURE_WRSR_WREN,
4826 .tested = TEST_UNTESTED,
4827 .probe = probe_spi_rdid,
4828 .probe_timing = TIMING_ZERO,
4829 .block_erasers =
4830 {
4831 {
4832 .eraseblocks = { {64 * 1024, 4} },
4833 .block_erase = spi_block_erase_d8,
4834 }, {
4835 .eraseblocks = { {256 * 1024, 1} },
4836 .block_erase = spi_block_erase_c7,
4837 }
4838 },
4839 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4840 .unlock = spi_disable_blockprotect,
4841 .write = spi_chip_write_256,
4842 .read = spi_chip_read, /* Fast read (0x0B) supported */
4843 .voltage = {2700, 3600},
4844 },
4845
4846 {
4847 .vendor = "Eon",
4848 .name = "EN25P32", /* Uniform version of EN25B32 */
4849 .bustype = BUS_SPI,
4850 .manufacture_id = EON_ID_NOPREFIX,
4851 .model_id = EON_EN25B32,
4852 .total_size = 4096,
4853 .page_size = 256,
4854 /* OTP: 512B total; enter 0x3A */
4855 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4856 .tested = TEST_UNTESTED,
4857 .probe = probe_spi_rdid,
4858 .probe_timing = TIMING_ZERO,
4859 .block_erasers =
4860 {
4861 {
4862 .eraseblocks = { {64 * 1024, 64} },
4863 .block_erase = spi_block_erase_d8,
4864 }, {
4865 .eraseblocks = { {4 * 1024 * 1024, 1} },
4866 .block_erase = spi_block_erase_c7,
4867 }
4868 },
4869 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4870 .unlock = spi_disable_blockprotect,
4871 .write = spi_chip_write_256,
4872 .read = spi_chip_read, /* Fast read (0x0B) supported */
4873 .voltage = {2700, 3600},
4874 },
4875
4876 {
4877 .vendor = "Eon",
4878 .name = "EN25P40",
4879 .bustype = BUS_SPI,
4880 .manufacture_id = EON_ID_NOPREFIX,
4881 .model_id = EON_EN25B40,
4882 .total_size = 512,
4883 .page_size = 256,
4884 .feature_bits = FEATURE_WRSR_WREN,
4885 .tested = TEST_UNTESTED,
4886 .probe = probe_spi_rdid,
4887 .probe_timing = TIMING_ZERO,
4888 .block_erasers =
4889 {
4890 {
4891 .eraseblocks = { {64 * 1024, 8} },
4892 .block_erase = spi_block_erase_d8,
4893 }, {
4894 .eraseblocks = { {512 * 1024, 1} },
4895 .block_erase = spi_block_erase_c7,
4896 }
4897 },
4898 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4899 .unlock = spi_disable_blockprotect,
4900 .write = spi_chip_write_256,
4901 .read = spi_chip_read, /* Fast read (0x0B) supported */
4902 .voltage = {2700, 3600},
4903 },
4904
4905 {
4906 .vendor = "Eon",
4907 .name = "EN25P64",
4908 .bustype = BUS_SPI,
4909 .manufacture_id = EON_ID_NOPREFIX,
4910 .model_id = EON_EN25B64,
4911 .total_size = 8192,
4912 .page_size = 256,
4913 /* OTP: 512B total; enter 0x3A */
4914 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4915 .tested = TEST_UNTESTED,
4916 .probe = probe_spi_rdid,
4917 .probe_timing = TIMING_ZERO,
4918 .block_erasers =
4919 {
4920 {
4921 .eraseblocks = { {64 * 1024, 128} },
4922 .block_erase = spi_block_erase_d8,
4923 }, {
4924 .eraseblocks = { {8 * 1024 * 1024, 1} },
4925 .block_erase = spi_block_erase_c7,
4926 }
4927 },
4928 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4929 .unlock = spi_disable_blockprotect,
4930 .write = spi_chip_write_256,
4931 .read = spi_chip_read, /* Fast read (0x0B) supported */
4932 .voltage = {2700, 3600},
4933 },
4934
4935 {
4936 .vendor = "Eon",
4937 .name = "EN25P80",
4938 .bustype = BUS_SPI,
4939 .manufacture_id = EON_ID_NOPREFIX,
4940 .model_id = EON_EN25B80,
4941 .total_size = 1024,
4942 .page_size = 256,
4943 .feature_bits = FEATURE_WRSR_WREN,
4944 .tested = TEST_UNTESTED,
4945 .probe = probe_spi_rdid,
4946 .probe_timing = TIMING_ZERO,
4947 .block_erasers =
4948 {
4949 {
4950 .eraseblocks = { {64 * 1024, 16} },
4951 .block_erase = spi_block_erase_d8,
4952 }, {
4953 .eraseblocks = { {1024 * 1024, 1} },
4954 .block_erase = spi_block_erase_c7,
4955 }
4956 },
4957 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4958 .unlock = spi_disable_blockprotect,
4959 .write = spi_chip_write_256,
4960 .read = spi_chip_read, /* Fast read (0x0B) supported */
4961 .voltage = {2700, 3600},
4962 },
4963
4964 {
4965 .vendor = "Eon",
4966 .name = "EN25Q128",
4967 .bustype = BUS_SPI,
4968 .manufacture_id = EON_ID_NOPREFIX,
4969 .model_id = EON_EN25Q128,
4970 .total_size = 16384,
4971 .page_size = 256,
4972 /* OTP: 512B total; enter 0x3A */
4973 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4974 .tested = TEST_OK_PREW,
4975 .probe = probe_spi_rdid,
4976 .probe_timing = TIMING_ZERO,
4977 .block_erasers =
4978 {
4979 {
4980 .eraseblocks = { {4 * 1024, 4096} },
4981 .block_erase = spi_block_erase_20,
4982 }, {
4983 .eraseblocks = { {64 * 1024, 256} },
4984 .block_erase = spi_block_erase_d8,
4985 }, {
4986 .eraseblocks = { {16 * 1024 * 1024, 1} },
4987 .block_erase = spi_block_erase_60,
4988 }, {
4989 .eraseblocks = { {16 * 1024 * 1024, 1} },
4990 .block_erase = spi_block_erase_c7,
4991 }
4992 },
4993 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4994 .unlock = spi_disable_blockprotect,
4995 .write = spi_chip_write_256,
4996 .read = spi_chip_read,
4997 },
4998
4999 {
David Hendricks6d715302011-07-24 22:21:57 +00005000 /* Note: EN25D16 is an evil twin which shares the model ID
5001 but has different write protection capabilities */
5002 .vendor = "Eon",
5003 .name = "EN25Q16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005004 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00005005 .manufacture_id = EON_ID_NOPREFIX,
5006 .model_id = EON_EN25Q16,
5007 .total_size = 2048,
5008 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00005009 /* OTP: D16 512B/Q16 128B total; enter 0x3A */
5010 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00005011 .tested = TEST_UNTESTED,
5012 .probe = probe_spi_rdid,
5013 .probe_timing = TIMING_ZERO,
5014 .block_erasers =
5015 {
5016 {
5017 .eraseblocks = { {4 * 1024, 512} },
5018 .block_erase = spi_block_erase_20,
5019 }, {
5020 .eraseblocks = { {64 * 1024, 32} },
5021 .block_erase = spi_block_erase_d8,
5022 }, {
5023 /* not supported by Q16 version */
5024 .eraseblocks = { {64 * 1024, 32} },
5025 .block_erase = spi_block_erase_52,
5026 }, {
5027 .eraseblocks = { {2 * 1024 * 1024, 1} },
5028 .block_erase = spi_block_erase_60,
5029 }, {
5030 .eraseblocks = { {2 * 1024 * 1024, 1} },
5031 .block_erase = spi_block_erase_c7,
5032 }
5033 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00005034 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00005035 .unlock = spi_disable_blockprotect,
5036 .write = spi_chip_write_256,
5037 .read = spi_chip_read,
5038 .voltage = {2700, 3600},
5039 },
5040
5041 {
5042 .vendor = "Eon",
5043 .name = "EN25Q32(A/B)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005044 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00005045 .manufacture_id = EON_ID_NOPREFIX,
5046 .model_id = EON_EN25Q32,
5047 .total_size = 4096,
5048 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00005049 /* OTP: 512B total; enter 0x3A */
5050 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005051 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00005052 .probe = probe_spi_rdid,
5053 .probe_timing = TIMING_ZERO,
5054 .block_erasers =
5055 {
5056 {
5057 .eraseblocks = { {4 * 1024, 1024} },
5058 .block_erase = spi_block_erase_20,
5059 }, {
5060 .eraseblocks = { {64 * 1024, 64} },
5061 .block_erase = spi_block_erase_d8,
5062 }, {
5063 .eraseblocks = { {4 * 1024 * 1024, 1} },
5064 .block_erase = spi_block_erase_60,
5065 }, {
5066 .eraseblocks = { {4 * 1024 * 1024, 1} },
5067 .block_erase = spi_block_erase_c7,
5068 }
5069 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00005070 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00005071 .unlock = spi_disable_blockprotect,
5072 .write = spi_chip_write_256,
5073 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00005074 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00005075 },
5076
5077 {
5078 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005079 .name = "EN25Q40",
5080 .bustype = BUS_SPI,
5081 .manufacture_id = EON_ID_NOPREFIX,
5082 .model_id = EON_EN25Q40,
5083 .total_size = 512,
5084 .page_size = 256,
5085 /* OTP: 256B total; enter 0x3A */
5086 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5087 .tested = TEST_UNTESTED,
5088 .probe = probe_spi_rdid,
5089 .probe_timing = TIMING_ZERO,
5090 .block_erasers =
5091 {
5092 {
5093 .eraseblocks = { {4 * 1024, 128} },
5094 .block_erase = spi_block_erase_20,
5095 }, {
5096 .eraseblocks = { {64 * 1024, 8} },
5097 .block_erase = spi_block_erase_d8,
5098 }, {
5099 .eraseblocks = { {512 * 1024, 1} },
5100 .block_erase = spi_block_erase_60,
5101 }, {
5102 .eraseblocks = { {512 * 1024, 1} },
5103 .block_erase = spi_block_erase_c7,
5104 }
5105 },
5106 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
5107 .unlock = spi_disable_blockprotect,
5108 .write = spi_chip_write_256,
5109 .read = spi_chip_read,
5110 .voltage = {2700, 3600},
5111 },
5112
5113 {
5114 .vendor = "Eon",
David Hendricks6d715302011-07-24 22:21:57 +00005115 .name = "EN25Q64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005116 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00005117 .manufacture_id = EON_ID_NOPREFIX,
5118 .model_id = EON_EN25Q64,
5119 .total_size = 8192,
5120 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00005121 /* OTP: 512B total; enter 0x3A */
5122 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005123 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00005124 .probe = probe_spi_rdid,
5125 .probe_timing = TIMING_ZERO,
5126 .block_erasers =
5127 {
5128 {
5129 .eraseblocks = { {4 * 1024, 2048} },
5130 .block_erase = spi_block_erase_20,
5131 }, {
5132 .eraseblocks = { {64 * 1024, 128} },
5133 .block_erase = spi_block_erase_d8,
5134 }, {
5135 .eraseblocks = { {8 * 1024 * 1024, 1} },
5136 .block_erase = spi_block_erase_60,
5137 }, {
5138 .eraseblocks = { {8 * 1024 * 1024, 1} },
5139 .block_erase = spi_block_erase_c7,
5140 }
5141 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00005142 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00005143 .unlock = spi_disable_blockprotect,
5144 .write = spi_chip_write_256,
5145 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00005146 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00005147 },
5148
5149 {
5150 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005151 .name = "EN25Q80(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005152 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00005153 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005154 .model_id = EON_EN25Q80,
5155 .total_size = 1024,
5156 .page_size = 256,
5157 /* OTP: 256B total; enter 0x3A */
5158 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5159 .tested = TEST_UNTESTED,
5160 .probe = probe_spi_rdid,
5161 .probe_timing = TIMING_ZERO,
5162 .block_erasers =
5163 {
5164 {
5165 .eraseblocks = { {4 * 1024, 256} },
5166 .block_erase = spi_block_erase_20,
5167 }, {
5168 .eraseblocks = { {64 * 1024, 16} },
5169 .block_erase = spi_block_erase_d8,
5170 }, {
5171 .eraseblocks = { {1024 * 1024, 1} },
5172 .block_erase = spi_block_erase_60,
5173 }, {
5174 .eraseblocks = { {1024 * 1024, 1} },
5175 .block_erase = spi_block_erase_c7,
5176 }
5177 },
5178 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
5179 .unlock = spi_disable_blockprotect,
5180 .write = spi_chip_write_256,
5181 .read = spi_chip_read,
5182 .voltage = {2700, 3600},
5183 },
5184
5185 {
5186 .vendor = "Eon",
5187 .name = "EN25QH128",
5188 .bustype = BUS_SPI,
5189 .manufacture_id = EON_ID_NOPREFIX,
5190 .model_id = EON_EN25QH128,
David Hendricks6d715302011-07-24 22:21:57 +00005191 .total_size = 16384,
5192 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005193 /* supports SFDP */
Daniel Lenski65922a32012-02-15 23:40:23 +00005194 /* OTP: 512B total; enter 0x3A */
Alan Green1f9cc7d2019-07-01 11:10:45 +10005195 /* QPI enable 0x38, disable 0xFF */
5196 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Tim Chenbfe149a2020-07-06 14:59:21 +08005197 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00005198 .probe = probe_spi_rdid,
5199 .probe_timing = TIMING_ZERO,
5200 .block_erasers =
5201 {
5202 {
5203 .eraseblocks = { {4 * 1024, 4096} },
5204 .block_erase = spi_block_erase_20,
5205 }, {
5206 .eraseblocks = { {64 * 1024, 256} },
5207 .block_erase = spi_block_erase_d8,
5208 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005209 .eraseblocks = { { 16384 * 1024, 1} },
David Hendricks6d715302011-07-24 22:21:57 +00005210 .block_erase = spi_block_erase_60,
5211 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005212 .eraseblocks = { { 16384 * 1024, 1} },
David Hendricks6d715302011-07-24 22:21:57 +00005213 .block_erase = spi_block_erase_c7,
5214 }
5215 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005216 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
5217 .unlock = spi_disable_blockprotect_bp3_srwd,
David Hendricks6d715302011-07-24 22:21:57 +00005218 .write = spi_chip_write_256,
5219 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005220 .voltage = {2700, 3600},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +11005221 .reg_bits =
5222 {
5223 .srp = {STATUS1, 7, RW},
5224 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
5225 .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */
5226 },
5227 .decode_range = decode_range_spi25,
David Hendricks6d715302011-07-24 22:21:57 +00005228 },
5229
5230 {
5231 .vendor = "Eon",
5232 .name = "EN25QH16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005233 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00005234 .manufacture_id = EON_ID_NOPREFIX,
5235 .model_id = EON_EN25QH16,
5236 .total_size = 2048,
5237 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00005238 /* supports SFDP */
5239 /* OTP: 512B total; enter 0x3A */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005240 /* QPI enable 0x38, disable 0xFF */
5241 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner5c316f92015-02-08 21:57:52 +00005242 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00005243 .probe = probe_spi_rdid,
5244 .probe_timing = TIMING_ZERO,
5245 .block_erasers =
5246 {
5247 {
5248 .eraseblocks = { {4 * 1024, 512} },
5249 .block_erase = spi_block_erase_20,
5250 }, {
5251 .eraseblocks = { {64 * 1024, 32} },
5252 .block_erase = spi_block_erase_d8,
5253 }, {
5254 .eraseblocks = { {1024 * 2048, 1} },
5255 .block_erase = spi_block_erase_60,
5256 }, {
5257 .eraseblocks = { {1024 * 2048, 1} },
5258 .block_erase = spi_block_erase_c7,
5259 }
5260 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005261 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005262 .unlock = spi_disable_blockprotect_bp3_srwd,
David Hendricks6d715302011-07-24 22:21:57 +00005263 .write = spi_chip_write_256,
5264 .read = spi_chip_read,
Stefan Tauner2cef9162012-05-14 01:51:46 +00005265 .voltage = {2700, 3600},
5266 },
5267
5268 {
5269 .vendor = "Eon",
5270 .name = "EN25QH32",
5271 .bustype = BUS_SPI,
5272 .manufacture_id = EON_ID_NOPREFIX,
5273 .model_id = EON_EN25QH32,
5274 .total_size = 4096,
5275 .page_size = 256,
5276 /* supports SFDP */
5277 /* OTP: 512B total; enter 0x3A */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005278 /* QPI enable 0x38, disable 0xFF */
5279 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner23e10b82016-01-23 16:16:49 +00005280 .tested = TEST_OK_PREW,
Stefan Tauner2cef9162012-05-14 01:51:46 +00005281 .probe = probe_spi_rdid,
5282 .probe_timing = TIMING_ZERO,
5283 .block_erasers =
5284 {
5285 {
5286 .eraseblocks = { {4 * 1024, 1024} },
5287 .block_erase = spi_block_erase_20,
5288 }, {
5289 .eraseblocks = { {64 * 1024, 64} },
5290 .block_erase = spi_block_erase_d8,
5291 }, {
5292 .eraseblocks = { {1024 * 4096, 1} },
5293 .block_erase = spi_block_erase_60,
5294 }, {
5295 .eraseblocks = { {1024 * 4096, 1} },
5296 .block_erase = spi_block_erase_c7,
5297 }
5298 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005299 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005300 .unlock = spi_disable_blockprotect_bp3_srwd,
5301 .write = spi_chip_write_256,
5302 .read = spi_chip_read,
5303 .voltage = {2700, 3600},
Sergii Dmytrukc6e8b1a2022-08-14 20:57:48 +03005304 .reg_bits =
5305 {
5306 .srp = {STATUS1, 7, RW},
5307 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
5308 .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */
5309 },
5310 .decode_range = decode_range_spi25,
5311 },
5312
5313 {
5314 .vendor = "Eon",
5315 .name = "EN25QH32B",
5316 .bustype = BUS_SPI,
5317 .manufacture_id = EON_ID_NOPREFIX,
5318 .model_id = EON_EN25QH32,
5319 .total_size = 4096,
5320 .page_size = 256,
5321 /* supports SFDP */
5322 /* OTP: 1536B total; enter 0x3A */
5323 /* QPI enable 0x38, disable 0xFF */
5324 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5325 .tested = TEST_OK_PREW,
5326 .probe = probe_spi_rdid,
5327 .probe_timing = TIMING_ZERO,
5328 .block_erasers =
5329 {
5330 {
5331 .eraseblocks = { {4 * 1024, 1024} },
5332 .block_erase = spi_block_erase_20,
5333 }, {
5334 .eraseblocks = { {32 * 1024, 128} },
5335 .block_erase = spi_block_erase_52,
5336 }, {
5337 .eraseblocks = { {64 * 1024, 64} },
5338 .block_erase = spi_block_erase_d8,
5339 }, {
5340 .eraseblocks = { {1024 * 4096, 1} },
5341 .block_erase = spi_block_erase_60,
5342 }, {
5343 .eraseblocks = { {1024 * 4096, 1} },
5344 .block_erase = spi_block_erase_c7,
5345 }
5346 },
5347 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
5348 .unlock = spi_disable_blockprotect_bp3_srwd,
5349 .write = spi_chip_write_256,
5350 .read = spi_chip_read,
5351 .voltage = {2700, 3600},
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005352 },
5353
5354 {
5355 .vendor = "Eon",
5356 .name = "EN25QH64",
5357 .bustype = BUS_SPI,
5358 .manufacture_id = EON_ID_NOPREFIX,
5359 .model_id = EON_EN25QH64,
5360 .total_size = 8192,
5361 .page_size = 256,
5362 /* supports SFDP */
5363 /* OTP: 512B total; enter 0x3A */
5364 /* QPI enable 0x38, disable 0xFF */
5365 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner23e10b82016-01-23 16:16:49 +00005366 .tested = TEST_OK_PREW,
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005367 .probe = probe_spi_rdid,
5368 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005369 .block_erasers =
5370 {
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005371 {
5372 .eraseblocks = { {4 * 1024, 2048} },
5373 .block_erase = spi_block_erase_20,
5374 }, {
5375 .eraseblocks = { {64 * 1024, 128} },
5376 .block_erase = spi_block_erase_d8,
5377 }, {
5378 .eraseblocks = { { 8192 * 1024, 1} },
5379 .block_erase = spi_block_erase_60,
5380 }, {
5381 .eraseblocks = { { 8192 * 1024, 1} },
5382 .block_erase = spi_block_erase_c7,
5383 }
5384 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005385 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005386 .unlock = spi_disable_blockprotect_bp3_srwd,
5387 .write = spi_chip_write_256,
5388 .read = spi_chip_read,
5389 .voltage = {2700, 3600},
Sergii Dmytrukc6e8b1a2022-08-14 20:57:48 +03005390 .reg_bits =
5391 {
5392 .srp = {STATUS1, 7, RW},
5393 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
5394 .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */
5395 },
5396 .decode_range = decode_range_spi25_64k_block,
5397 },
5398
5399 {
5400 .vendor = "Eon",
5401 .name = "EN25QH64A",
5402 .bustype = BUS_SPI,
5403 .manufacture_id = EON_ID_NOPREFIX,
5404 .model_id = EON_EN25QH64,
5405 .total_size = 8192,
5406 .page_size = 256,
5407 /* supports SFDP */
5408 /* OTP: 512B total; enter 0x3A */
5409 /* QPI enable 0x38, disable 0xFF */
5410 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5411 .tested = TEST_OK_PREW,
5412 .probe = probe_spi_rdid,
5413 .probe_timing = TIMING_ZERO,
5414 .block_erasers =
5415 {
5416 {
5417 .eraseblocks = { {4 * 1024, 2048} },
5418 .block_erase = spi_block_erase_20,
5419 }, {
5420 .eraseblocks = { {32 * 1024, 256} },
5421 .block_erase = spi_block_erase_52,
5422 }, {
5423 .eraseblocks = { {64 * 1024, 128} },
5424 .block_erase = spi_block_erase_d8,
5425 }, {
5426 .eraseblocks = { { 8192 * 1024, 1} },
5427 .block_erase = spi_block_erase_60,
5428 }, {
5429 .eraseblocks = { { 8192 * 1024, 1} },
5430 .block_erase = spi_block_erase_c7,
5431 }
5432 },
5433 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
5434 .unlock = spi_disable_blockprotect_bp3_srwd,
5435 .write = spi_chip_write_256,
5436 .read = spi_chip_read,
5437 .voltage = {2700, 3600},
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005438 },
5439
5440 {
5441 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005442 .name = "EN25S10",
5443 .bustype = BUS_SPI,
5444 .manufacture_id = EON_ID_NOPREFIX,
5445 .model_id = EON_EN25S10,
5446 .total_size = 128,
5447 .page_size = 256,
5448 /* OTP: 256B total; enter 0x3A */
5449 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5450 .tested = TEST_UNTESTED,
5451 .probe = probe_spi_rdid,
5452 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005453 .block_erasers =
5454 {
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005455 {
5456 .eraseblocks = { {4 * 1024, 32} },
5457 .block_erase = spi_block_erase_20,
5458 }, {
5459 .eraseblocks = { {32 * 1024, 4} },
5460 .block_erase = spi_block_erase_52,
5461 }, {
5462 .eraseblocks = { {128 * 1024, 1} },
5463 .block_erase = spi_block_erase_60,
5464 }, {
5465 .eraseblocks = { {128 * 1024, 1} },
5466 .block_erase = spi_block_erase_c7,
5467 }
5468 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005469 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005470 .unlock = spi_disable_blockprotect,
5471 .write = spi_chip_write_256,
5472 .read = spi_chip_read,
5473 .voltage = {1650, 1950},
5474 },
5475
5476 {
5477 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005478 .name = "EN25S16",
5479 .bustype = BUS_SPI,
5480 .manufacture_id = EON_ID_NOPREFIX,
5481 .model_id = EON_EN25S16,
5482 .total_size = 2048,
5483 .page_size = 256,
5484 /* OTP: 512B total; enter 0x3A */
5485 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5486 .tested = TEST_UNTESTED,
5487 .probe = probe_spi_rdid,
5488 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005489 .block_erasers =
5490 {
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005491 {
5492 .eraseblocks = { {4 * 1024, 512} },
5493 .block_erase = spi_block_erase_20,
5494 }, {
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005495 .eraseblocks = { {32 * 1024, 64} },
5496 .block_erase = spi_block_erase_d8,
5497 }, {
Aarya Chaumal478e1792022-06-04 01:34:44 +05305498 .eraseblocks = { {64 * 1024, 32} },
5499 .block_erase = spi_block_erase_52,
5500 }, {
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005501 .eraseblocks = { {2048 * 1024, 1} },
5502 .block_erase = spi_block_erase_60,
5503 }, {
5504 .eraseblocks = { {2048 * 1024, 1} },
5505 .block_erase = spi_block_erase_c7,
5506 }
5507 },
5508 .printlock = spi_prettyprint_status_register_en25s_wp,
5509 .unlock = spi_disable_blockprotect_bp3_srwd,
5510 .write = spi_chip_write_256,
5511 .read = spi_chip_read,
5512 .voltage = {1650, 1950},
5513 },
5514
5515 {
5516 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005517 .name = "EN25S20",
5518 .bustype = BUS_SPI,
5519 .manufacture_id = EON_ID_NOPREFIX,
5520 .model_id = EON_EN25S20,
5521 .total_size = 256,
5522 .page_size = 256,
5523 /* OTP: 256B total; enter 0x3A */
5524 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5525 .tested = TEST_UNTESTED,
5526 .probe = probe_spi_rdid,
5527 .probe_timing = TIMING_ZERO,
5528 .block_erasers =
5529 {
5530 {
5531 .eraseblocks = { {4 * 1024, 64} },
5532 .block_erase = spi_block_erase_20,
5533 }, {
5534 .eraseblocks = { {64 * 1024, 4} },
5535 .block_erase = spi_block_erase_d8,
5536 }, {
5537 .eraseblocks = { {256 * 1024, 1} },
5538 .block_erase = spi_block_erase_60,
5539 }, {
5540 .eraseblocks = { {256 * 1024, 1} },
5541 .block_erase = spi_block_erase_c7,
5542 }
5543 },
5544 .printlock = spi_prettyprint_status_register_bp2_srwd,
5545 .unlock = spi_disable_blockprotect,
5546 .write = spi_chip_write_256,
5547 .read = spi_chip_read,
5548 .voltage = {1650, 1950},
5549 },
5550
5551 {
5552 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005553 .name = "EN25S32",
5554 .bustype = BUS_SPI,
5555 .manufacture_id = EON_ID_NOPREFIX,
5556 .model_id = EON_EN25S32,
5557 .total_size = 4096,
5558 .page_size = 256,
5559 /* OTP: 512B total; enter 0x3A */
5560 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5561 .tested = TEST_UNTESTED,
5562 .probe = probe_spi_rdid,
5563 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005564 .block_erasers =
5565 {
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005566 {
5567 .eraseblocks = { {4 * 1024, 1024} },
5568 .block_erase = spi_block_erase_20,
5569 }, {
5570 .eraseblocks = { {32 * 1024, 128} },
5571 .block_erase = spi_block_erase_52,
5572 }, {
5573 .eraseblocks = { {64 * 1024, 64} },
5574 .block_erase = spi_block_erase_d8,
5575 }, {
5576 .eraseblocks = { {4096 * 1024, 1} },
5577 .block_erase = spi_block_erase_60,
5578 }, {
5579 .eraseblocks = { {4096 * 1024, 1} },
5580 .block_erase = spi_block_erase_c7,
5581 }
5582 },
5583 .printlock = spi_prettyprint_status_register_en25s_wp,
5584 .unlock = spi_disable_blockprotect_bp3_srwd,
5585 .write = spi_chip_write_256,
5586 .read = spi_chip_read,
5587 .voltage = {1650, 1950},
5588 },
5589
5590 {
5591 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005592 .name = "EN25S40",
5593 .bustype = BUS_SPI,
5594 .manufacture_id = EON_ID_NOPREFIX,
5595 .model_id = EON_EN25S40,
5596 .total_size = 512,
5597 .page_size = 256,
5598 /* OTP: 256B total; enter 0x3A */
5599 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5600 .tested = TEST_OK_PREW,
5601 .probe = probe_spi_rdid,
5602 .probe_timing = TIMING_ZERO,
5603 .block_erasers =
5604 {
5605 {
5606 .eraseblocks = { {4 * 1024, 128} },
5607 .block_erase = spi_block_erase_20,
5608 }, {
5609 .eraseblocks = { {64 * 1024, 8} },
5610 .block_erase = spi_block_erase_d8,
5611 }, {
5612 .eraseblocks = { {512 * 1024, 1} },
5613 .block_erase = spi_block_erase_60,
5614 }, {
5615 .eraseblocks = { {512 * 1024, 1} },
5616 .block_erase = spi_block_erase_c7,
5617 }
5618 },
5619 .printlock = spi_prettyprint_status_register_bp2_srwd,
5620 .unlock = spi_disable_blockprotect,
5621 .write = spi_chip_write_256,
5622 .read = spi_chip_read,
5623 .voltage = {1650, 1950},
5624 },
5625
5626 {
5627 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005628 .name = "EN25S64",
5629 .bustype = BUS_SPI,
5630 .manufacture_id = EON_ID_NOPREFIX,
5631 .model_id = EON_EN25S64,
5632 .total_size = 8192,
5633 .page_size = 256,
5634 /* OTP: 512B total; enter 0x3A */
5635 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Nikolai Artemievdf889fa2021-03-23 17:10:45 +11005636 .tested = TEST_OK_PREW,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005637 .probe = probe_spi_rdid,
5638 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005639 .block_erasers =
5640 {
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005641 {
5642 .eraseblocks = { {4 * 1024, 2048} },
5643 .block_erase = spi_block_erase_20,
5644 }, {
5645 .eraseblocks = { {64 * 1024, 128} },
5646 .block_erase = spi_block_erase_d8,
5647 }, {
5648 .eraseblocks = { {8192 * 1024, 1} },
5649 .block_erase = spi_block_erase_60,
5650 }, {
5651 .eraseblocks = { {8192 * 1024, 1} },
5652 .block_erase = spi_block_erase_c7,
5653 }
5654 },
5655 .printlock = spi_prettyprint_status_register_en25s_wp,
5656 .unlock = spi_disable_blockprotect_bp3_srwd,
5657 .write = spi_chip_write_256,
5658 .read = spi_chip_read,
5659 .voltage = {1650, 1950},
5660 },
5661
5662 {
5663 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005664 .name = "EN25S80",
5665 .bustype = BUS_SPI,
5666 .manufacture_id = EON_ID_NOPREFIX,
5667 .model_id = EON_EN25S80,
5668 .total_size = 1024,
5669 .page_size = 256,
5670 /* OTP: 256B total; enter 0x3A */
5671 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5672 .tested = TEST_UNTESTED,
5673 .probe = probe_spi_rdid,
5674 .probe_timing = TIMING_ZERO,
Russ Dill3cd5a122010-03-05 08:44:11 +00005675 .block_erasers =
5676 {
5677 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005678 .eraseblocks = { {4 * 1024, 256} },
5679 .block_erase = spi_block_erase_20,
5680 }, {
5681 .eraseblocks = { {64 * 1024, 16} },
5682 .block_erase = spi_block_erase_d8,
5683 }, {
5684 .eraseblocks = { {1024 * 1024, 1} },
5685 .block_erase = spi_block_erase_60,
5686 }, {
5687 .eraseblocks = { {1024 * 1024, 1} },
5688 .block_erase = spi_block_erase_c7,
5689 }
Russ Dill3cd5a122010-03-05 08:44:11 +00005690 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005691 .printlock = spi_prettyprint_status_register_bp2_srwd,
5692 .unlock = spi_disable_blockprotect,
5693 .write = spi_chip_write_256,
5694 .read = spi_chip_read,
5695 .voltage = {1650, 1950},
Russ Dill3cd5a122010-03-05 08:44:11 +00005696 },
5697
5698 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00005699 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005700 .name = "EN29F002(A)(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005701 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005702 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005703 .model_id = EON_EN29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005704 .total_size = 256,
5705 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00005706 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Alan Green4362e622019-08-26 15:02:12 +10005707 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005708 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005709 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005710 .block_erasers =
5711 {
5712 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005713 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005714 {16 * 1024, 1},
Michael Karchere3cb0a12010-03-13 23:47:09 +00005715 {8 * 1024, 2},
5716 {32 * 1024, 1},
5717 {64 * 1024, 3},
Sean Nelson6b11ad22009-12-23 17:05:59 +00005718 },
5719 .block_erase = erase_sector_jedec,
5720 }, {
5721 .eraseblocks = { {256 * 1024, 1} },
5722 .block_erase = erase_chip_block_jedec,
5723 },
5724 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005725 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005726 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005727 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +01005728 .prepare_access = prepare_memory_access,
5729 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +00005730 },
5731
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005732 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00005733 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005734 .name = "EN29F002(A)(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005735 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005736 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005737 .model_id = EON_EN29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005738 .total_size = 256,
5739 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00005740 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00005741 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005742 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005743 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005744 .block_erasers =
5745 {
5746 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005747 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005748 {64 * 1024, 3},
Michael Karchere3cb0a12010-03-13 23:47:09 +00005749 {32 * 1024, 1},
5750 {8 * 1024, 2},
5751 {16 * 1024, 1},
Sean Nelson6b11ad22009-12-23 17:05:59 +00005752 },
5753 .block_erase = erase_sector_jedec,
5754 }, {
5755 .eraseblocks = { {256 * 1024, 1} },
5756 .block_erase = erase_chip_block_jedec,
5757 },
5758 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005759 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005760 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005761 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +01005762 .prepare_access = prepare_memory_access,
5763 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +00005764 },
5765
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005766 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005767 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005768 .name = "EN29F010",
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005769 .bustype = BUS_PARALLEL,
5770 .manufacture_id = EON_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005771 .model_id = EON_EN29F010,
5772 .total_size = 128,
5773 .page_size = 128,
5774 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
5775 .tested = TEST_OK_PRE,
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005776 .probe = probe_jedec,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005777 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005778 .block_erasers =
5779 {
5780 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005781 .eraseblocks = { {16 * 1024, 8} },
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005782 .block_erase = erase_sector_jedec,
5783 },
5784 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005785 .eraseblocks = { {128 * 1024, 1} },
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005786 .block_erase = erase_chip_block_jedec,
5787 },
5788 },
5789 .write = write_jedec_1,
5790 .read = read_memmapped,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005791 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +01005792 .prepare_access = prepare_memory_access,
5793 .finish_access = finish_memory_access,
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005794 },
5795
5796 {
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00005797 .vendor = "Eon",
5798 .name = "EN29GL064(A)B",
5799 .bustype = BUS_PARALLEL,
5800 .manufacture_id = EON_ID,
5801 .model_id = EON_EN29GL064B,
5802 .total_size = 8192,
5803 .page_size = 128 * 1024, /* actual page size is 16 */
5804 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5805 .tested = TEST_UNTESTED,
5806 .probe = probe_jedec_29gl,
5807 .probe_timing = TIMING_ZERO,
5808 .block_erasers =
5809 {
5810 {
5811 .eraseblocks = {
5812 {8 * 1024, 8},
5813 {64 * 1024, 127},
5814 },
5815 .block_erase = erase_sector_jedec,
5816 }, {
5817 .eraseblocks = { {8 * 1024 * 1024, 1} },
5818 .block_erase = erase_chip_block_jedec,
5819 },
5820 },
5821 .write = write_jedec_1,
5822 .read = read_memmapped,
5823 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +01005824 .prepare_access = prepare_memory_access,
5825 .finish_access = finish_memory_access,
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00005826 },
5827
5828 {
5829 .vendor = "Eon",
5830 .name = "EN29GL064(A)T",
5831 .bustype = BUS_PARALLEL,
5832 .manufacture_id = EON_ID,
5833 .model_id = EON_EN29GL064T,
5834 .total_size = 8192,
5835 .page_size = 128 * 1024, /* actual page size is 16 */
5836 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5837 .tested = TEST_UNTESTED,
5838 .probe = probe_jedec_29gl,
5839 .probe_timing = TIMING_ZERO,
5840 .block_erasers =
5841 {
5842 {
5843 .eraseblocks = {
5844 {64 * 1024, 127},
5845 {8 * 1024, 8},
5846 },
5847 .block_erase = erase_sector_jedec,
5848 }, {
5849 .eraseblocks = { {8 * 1024 * 1024, 1} },
5850 .block_erase = erase_chip_block_jedec,
5851 },
5852 },
5853 .write = write_jedec_1,
5854 .read = read_memmapped,
5855 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +01005856 .prepare_access = prepare_memory_access,
5857 .finish_access = finish_memory_access,
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00005858 },
5859
5860 {
5861 .vendor = "Eon",
5862 .name = "EN29GL064H/L",
5863 .bustype = BUS_PARALLEL,
5864 .manufacture_id = EON_ID,
5865 .model_id = EON_EN29GL064HL,
5866 .total_size = 8192,
5867 .page_size = 128 * 1024, /* actual page size is 16 */
5868 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5869 .tested = TEST_UNTESTED,
5870 .probe = probe_jedec_29gl,
5871 .probe_timing = TIMING_ZERO,
5872 .block_erasers =
5873 {
5874 {
5875 .eraseblocks = { {64 * 1024, 128} },
5876 .block_erase = erase_sector_jedec,
5877 }, {
5878 .eraseblocks = { {8 * 1024 * 1024, 1} },
5879 .block_erase = erase_chip_block_jedec,
5880 },
5881 },
5882 .write = write_jedec_1,
5883 .read = read_memmapped,
5884 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +01005885 .prepare_access = prepare_memory_access,
5886 .finish_access = finish_memory_access,
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00005887 },
5888
5889 {
5890 .vendor = "Eon",
5891 .name = "EN29GL128",
5892 .bustype = BUS_PARALLEL,
5893 .manufacture_id = EON_ID,
5894 .model_id = EON_EN29GL128HL,
5895 .total_size = 16384,
5896 .page_size = 128 * 1024, /* actual page size is 16 */
5897 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5898 .tested = TEST_UNTESTED,
5899 .probe = probe_jedec_29gl,
5900 .probe_timing = TIMING_ZERO,
5901 .block_erasers =
5902 {
5903 {
5904 .eraseblocks = { {128 * 1024, 128} },
5905 .block_erase = erase_sector_jedec,
5906 }, {
5907 .eraseblocks = { {16 * 1024 * 1024, 1} },
5908 .block_erase = erase_chip_block_jedec,
5909 },
5910 },
5911 .write = write_jedec_1,
5912 .read = read_memmapped,
5913 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +01005914 .prepare_access = prepare_memory_access,
5915 .finish_access = finish_memory_access,
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00005916 },
5917
5918 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005919 .vendor = "Eon",
5920 .name = "EN29LV040(A)",
5921 .bustype = BUS_PARALLEL,
5922 .manufacture_id = EON_ID,
5923 .model_id = EON_EN29LV040,
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005924 .total_size = 512,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005925 .page_size = 4 * 1024,
5926 .tested = TEST_OK_PREW,
5927 .probe = probe_jedec,
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005928 .probe_timing = TIMING_ZERO,
5929 .block_erasers =
5930 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00005931 {
5932 .eraseblocks = { {64 * 1024, 8} },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005933 .block_erase = erase_sector_jedec,
5934 },
5935 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00005936 .eraseblocks = { {512 * 1024, 1} },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005937 .block_erase = erase_chip_block_jedec,
5938 },
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005939 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005940 .write = write_jedec_1,
5941 .read = read_memmapped,
5942 .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R and 55R, others 2.7-3.6V */
Nico Huber9eec4072023-01-12 01:17:30 +01005943 .prepare_access = prepare_memory_access,
5944 .finish_access = finish_memory_access,
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005945 },
5946
5947 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005948 .vendor = "Eon",
5949 .name = "EN29LV640B",
5950 .bustype = BUS_PARALLEL,
5951 .manufacture_id = EON_ID,
5952 .model_id = EON_EN29LV640B,
5953 .total_size = 8192,
5954 .page_size = 8192,
5955 .feature_bits = FEATURE_ADDR_SHIFTED,
5956 .tested = TEST_OK_PREW,
5957 .probe = probe_en29lv640b,
5958 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005959 .block_erasers =
5960 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00005961 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005962 .eraseblocks = {
5963 {8 * 1024, 8},
5964 {64 * 1024, 127},
5965 },
5966 .block_erase = erase_block_jedec,
Stefan Tauner0be072c2016-03-13 15:16:30 +00005967 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005968 .eraseblocks = { {8 * 1024 * 1024, 1} },
5969 .block_erase = erase_chip_block_jedec,
5970 },
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005971 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005972 .write = write_en29lv640b,
5973 .read = read_memmapped,
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005974 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +01005975 .prepare_access = prepare_memory_access,
5976 .finish_access = finish_memory_access,
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005977 },
5978
5979 {
Jakob Petersson0cf3e122019-02-18 01:55:43 +01005980 .vendor = "Fudan",
5981 .name = "FM25F005",
5982 .bustype = BUS_SPI,
5983 .manufacture_id = FUDAN_ID_NOPREFIX,
5984 .model_id = FUDAN_FM25F005,
5985 .total_size = 64,
5986 .page_size = 256,
5987 /* OTP: 256B total; enter 0x3A */
5988 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5989 .tested = TEST_UNTESTED,
5990 .probe = probe_spi_rdid,
5991 .probe_timing = TIMING_ZERO,
5992 .block_erasers = {
5993 {
5994 .eraseblocks = { {4 * 1024, 16} },
5995 .block_erase = spi_block_erase_20,
5996 }, {
5997 .eraseblocks = { {32 * 1024, 2} },
5998 .block_erase = spi_block_erase_52,
5999 }, {
6000 .eraseblocks = { {64 * 1024, 1} },
6001 .block_erase = spi_block_erase_d8,
6002 }, {
6003 .eraseblocks = { {64 * 1024, 1} },
6004 .block_erase = spi_block_erase_60,
6005 }, {
6006 .eraseblocks = { {64 * 1024, 1} },
6007 .block_erase = spi_block_erase_c7,
6008 }
6009 },
6010 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
6011 .unlock = spi_disable_blockprotect_bp2_srwd,
6012 .write = spi_chip_write_256,
6013 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
6014 .voltage = {2700, 3600}, /* 2.3-2.7V acceptable results in lower performance */
6015 },
6016
6017 {
6018 .vendor = "Fudan",
6019 .name = "FM25F01",
6020 .bustype = BUS_SPI,
6021 .manufacture_id = FUDAN_ID_NOPREFIX,
6022 .model_id = FUDAN_FM25F01,
6023 .total_size = 128,
6024 .page_size = 256,
6025 /* OTP: 256B total; enter 0x3A */
6026 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6027 .tested = TEST_UNTESTED,
6028 .probe = probe_spi_rdid,
6029 .probe_timing = TIMING_ZERO,
6030 .block_erasers = {
6031 {
6032 .eraseblocks = { {4 * 1024, 32} },
6033 .block_erase = spi_block_erase_20,
6034 }, {
6035 .eraseblocks = { {32 * 1024, 4} },
6036 .block_erase = spi_block_erase_52,
6037 }, {
6038 .eraseblocks = { {64 * 1024, 2} },
6039 .block_erase = spi_block_erase_d8,
6040 }, {
6041 .eraseblocks = { {128 * 1024, 1} },
6042 .block_erase = spi_block_erase_60,
6043 }, {
6044 .eraseblocks = { {128 * 1024, 1} },
6045 .block_erase = spi_block_erase_c7,
6046 }
6047 },
6048 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
6049 .unlock = spi_disable_blockprotect_bp2_srwd,
6050 .write = spi_chip_write_256,
6051 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
6052 .voltage = {2700, 3600}, /* 2.3-2.7V acceptable results in lower performance */
6053 },
6054
6055 {
6056 .vendor = "Fudan",
6057 .name = "FM25F02(A)",
6058 .bustype = BUS_SPI,
6059 .manufacture_id = FUDAN_ID_NOPREFIX,
6060 .model_id = FUDAN_FM25F02,
6061 .total_size = 256,
6062 .page_size = 256,
6063 /* OTP: 256B total; enter 0x3A, (A version only:) read ID 0x4B */
6064 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6065 .tested = TEST_UNTESTED,
6066 .probe = probe_spi_rdid,
6067 .probe_timing = TIMING_ZERO,
6068 .block_erasers = {
6069 {
6070 .eraseblocks = { {4 * 1024, 64} },
6071 .block_erase = spi_block_erase_20,
6072 }, {
6073 .eraseblocks = { {32 * 1024, 8} },
6074 .block_erase = spi_block_erase_52,
6075 }, {
6076 .eraseblocks = { {64 * 1024, 4} },
6077 .block_erase = spi_block_erase_d8,
6078 }, {
6079 .eraseblocks = { {1024 * 256, 1} },
6080 .block_erase = spi_block_erase_60,
6081 }, {
6082 .eraseblocks = { {1024 * 256, 1} },
6083 .block_erase = spi_block_erase_c7,
6084 },
6085 },
6086 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
6087 .unlock = spi_disable_blockprotect_bp2_srwd,
6088 .write = spi_chip_write_256,
6089 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
6090 .voltage = {2700, 3600}, /* 2.3-2.7V acceptable results in lower performance */
6091 },
6092
6093 {
6094 .vendor = "Fudan",
6095 .name = "FM25F04(A)",
6096 .bustype = BUS_SPI,
6097 .manufacture_id = FUDAN_ID_NOPREFIX,
6098 .model_id = FUDAN_FM25F04,
6099 .total_size = 512,
6100 .page_size = 256,
6101 /* OTP: 256B total; enter 0x3A, (A version only:) read ID 0x4B */
6102 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6103 .tested = TEST_UNTESTED,
6104 .probe = probe_spi_rdid,
6105 .probe_timing = TIMING_ZERO,
6106 .block_erasers = {
6107 {
6108 .eraseblocks = { {4 * 1024, 128} },
6109 .block_erase = spi_block_erase_20,
6110 }, {
6111 .eraseblocks = { {32 * 1024, 16} },
6112 .block_erase = spi_block_erase_52,
6113 }, {
6114 .eraseblocks = { {64 * 1024, 8} },
6115 .block_erase = spi_block_erase_d8,
6116 }, {
6117 .eraseblocks = { {1024 * 512, 1} },
6118 .block_erase = spi_block_erase_60,
6119 }, {
6120 .eraseblocks = { {1024 * 512, 1} },
6121 .block_erase = spi_block_erase_c7,
6122 },
6123 },
6124 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
6125 .unlock = spi_disable_blockprotect_bp2_srwd,
6126 .write = spi_chip_write_256,
6127 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
6128 .voltage = {2700, 3600},
6129 },
6130
6131 {
6132 .vendor = "Fudan",
6133 .name = "FM25Q08",
6134 .bustype = BUS_SPI,
6135 .manufacture_id = FUDAN_ID_NOPREFIX,
6136 .model_id = FUDAN_FM25Q08,
6137 .total_size = 1024,
6138 .page_size = 256,
6139 /* supports SFDP */
6140 /* OTP: 1024B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
6141 /* QPI enable 0x38, disable 0xFF */
6142 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6143 .tested = TEST_UNTESTED,
6144 .probe = probe_spi_rdid,
6145 .probe_timing = TIMING_ZERO,
6146 .block_erasers = {
6147 {
6148 .eraseblocks = { {4 * 1024, 256} },
6149 .block_erase = spi_block_erase_20,
6150 }, {
6151 .eraseblocks = { {32 * 1024, 32} },
6152 .block_erase = spi_block_erase_52,
6153 }, {
6154 .eraseblocks = { {64 * 1024, 16} },
6155 .block_erase = spi_block_erase_d8,
6156 }, {
6157 .eraseblocks = { {1024 * 1024, 1} },
6158 .block_erase = spi_block_erase_60,
6159 }, {
6160 .eraseblocks = { {1024 * 1024, 1} },
6161 .block_erase = spi_block_erase_c7,
6162 },
6163 },
6164 .printlock = spi_prettyprint_status_register_bp2_tb_bpl, /* bit6 selects size of protected blocks; TODO: SR2 */
6165 .unlock = spi_disable_blockprotect_bp2_srwd,
6166 .write = spi_chip_write_256,
6167 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6168 .voltage = {2700, 3600},
6169 },
6170
6171 {
6172 .vendor = "Fudan",
6173 .name = "FM25Q16",
6174 .bustype = BUS_SPI,
6175 .manufacture_id = FUDAN_ID_NOPREFIX,
6176 .model_id = FUDAN_FM25Q16,
6177 .total_size = 2048,
6178 .page_size = 256,
6179 /* supports SFDP */
6180 /* OTP: 1024B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
6181 /* QPI enable 0x38, disable 0xFF */
6182 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6183 .tested = TEST_UNTESTED,
6184 .probe = probe_spi_rdid,
6185 .probe_timing = TIMING_ZERO,
6186 .block_erasers = {
6187 {
6188 .eraseblocks = { {4 * 1024, 512} },
6189 .block_erase = spi_block_erase_20,
6190 }, {
6191 .eraseblocks = { {32 * 1024, 64} },
6192 .block_erase = spi_block_erase_52,
6193 }, {
6194 .eraseblocks = { {64 * 1024, 32} },
6195 .block_erase = spi_block_erase_d8,
6196 }, {
6197 .eraseblocks = { {2 * 1024 * 1024, 1} },
6198 .block_erase = spi_block_erase_60,
6199 }, {
6200 .eraseblocks = { {2 * 1024 * 1024, 1} },
6201 .block_erase = spi_block_erase_c7,
6202 }
6203 },
6204 .printlock = spi_prettyprint_status_register_bp2_tb_bpl, /* bit6 selects size of protected blocks; TODO: SR2 */
6205 .unlock = spi_disable_blockprotect_bp2_srwd,
6206 .write = spi_chip_write_256,
6207 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6208 .voltage = {2700, 3600},
6209 },
6210
6211 {
6212 .vendor = "Fudan",
6213 .name = "FM25Q32",
6214 .bustype = BUS_SPI,
6215 .manufacture_id = FUDAN_ID_NOPREFIX,
6216 .model_id = FUDAN_FM25Q32,
6217 .total_size = 4096,
6218 .page_size = 256,
6219 /* supports SFDP */
6220 /* OTP: 1024B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
6221 /* QPI enable 0x38, disable 0xFF */
6222 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6223 .tested = TEST_UNTESTED,
6224 .probe = probe_spi_rdid,
6225 .probe_timing = TIMING_ZERO,
6226 .block_erasers = {
6227 {
6228 .eraseblocks = { {4 * 1024, 1024} },
6229 .block_erase = spi_block_erase_20,
6230 }, {
6231 .eraseblocks = { {32 * 1024, 128} },
6232 .block_erase = spi_block_erase_52,
6233 }, {
6234 .eraseblocks = { {64 * 1024, 64} },
6235 .block_erase = spi_block_erase_d8,
6236 }, {
6237 .eraseblocks = { {4 * 1024 * 1024, 1} },
6238 .block_erase = spi_block_erase_60,
6239 }, {
6240 .eraseblocks = { {4 * 1024 * 1024, 1} },
6241 .block_erase = spi_block_erase_c7,
6242 },
6243 },
6244 .printlock = spi_prettyprint_status_register_bp2_tb_bpl, /* bit6 selects size of protected blocks; TODO: SR2 */
6245 .unlock = spi_disable_blockprotect_bp2_srwd,
6246 .write = spi_chip_write_256,
6247 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6248 .voltage = {2700, 3600},
6249 },
6250
6251 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006252 .vendor = "Fujitsu",
6253 .name = "MBM29F004BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006254 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006255 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006256 .model_id = FUJITSU_MBM29F004BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006257 .total_size = 512,
6258 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006259 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006260 .tested = TEST_UNTESTED,
6261 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006262 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00006263 .block_erasers =
6264 {
6265 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006266 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00006267 {16 * 1024, 1},
6268 {8 * 1024, 2},
6269 {32 * 1024, 1},
6270 {64 * 1024, 7},
6271 },
Sean Nelson35727f72010-01-28 23:55:12 +00006272 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006273 }, {
6274 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006275 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006276 },
6277 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006278 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006279 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006280 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +01006281 .prepare_access = prepare_memory_access,
6282 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +00006283 },
6284
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006285 {
6286 .vendor = "Fujitsu",
6287 .name = "MBM29F004TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006288 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006289 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006290 .model_id = FUJITSU_MBM29F004TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006291 .total_size = 512,
6292 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006293 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006294 .tested = TEST_UNTESTED,
6295 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006296 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00006297 .block_erasers =
6298 {
6299 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006300 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00006301 {64 * 1024, 7},
6302 {32 * 1024, 1},
6303 {8 * 1024, 2},
6304 {16 * 1024, 1},
6305 },
Sean Nelson35727f72010-01-28 23:55:12 +00006306 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006307 }, {
6308 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006309 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006310 },
6311 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006312 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006313 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006314 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +01006315 .prepare_access = prepare_memory_access,
6316 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +00006317 },
6318
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006319 {
Sean Nelson35727f72010-01-28 23:55:12 +00006320 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006321 .vendor = "Fujitsu",
6322 .name = "MBM29F400BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006323 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006324 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006325 .model_id = FUJITSU_MBM29F400BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006326 .total_size = 512,
6327 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006328 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00006329 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006330 .probe = probe_jedec,
6331 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson6b11ad22009-12-23 17:05:59 +00006332 .block_erasers =
6333 {
6334 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006335 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00006336 {16 * 1024, 1},
6337 {8 * 1024, 2},
6338 {32 * 1024, 1},
6339 {64 * 1024, 7},
6340 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006341 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006342 }, {
6343 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006344 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006345 },
6346 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006347 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006348 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006349 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
Nico Huber9eec4072023-01-12 01:17:30 +01006350 .prepare_access = prepare_memory_access,
6351 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +00006352 },
6353
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006354 {
6355 .vendor = "Fujitsu",
6356 .name = "MBM29F400TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006357 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006358 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006359 .model_id = FUJITSU_MBM29F400TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006360 .total_size = 512,
6361 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006362 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006363 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006364 .probe = probe_jedec,
6365 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson6b11ad22009-12-23 17:05:59 +00006366 .block_erasers =
6367 {
6368 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006369 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00006370 {64 * 1024, 7},
6371 {32 * 1024, 1},
6372 {8 * 1024, 2},
6373 {16 * 1024, 1},
6374 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006375 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006376 }, {
6377 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006378 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006379 },
6380 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006381 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006382 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006383 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
Nico Huber9eec4072023-01-12 01:17:30 +01006384 .prepare_access = prepare_memory_access,
6385 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +00006386 },
6387
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006388 {
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006389 .vendor = "Fujitsu",
6390 .name = "MBM29LV160BE",
6391 .bustype = BUS_PARALLEL,
6392 .manufacture_id = FUJITSU_ID,
6393 .model_id = FUJITSU_MBM29LV160BE,
6394 .total_size = 2 * 1024,
6395 .page_size = 0,
6396 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET,
6397 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006398 .probe = probe_jedec,
6399 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006400 .block_erasers =
6401 {
6402 {
6403 .eraseblocks = {
6404 {16 * 1024, 1},
6405 {8 * 1024, 2},
6406 {32 * 1024, 1},
6407 {64 * 1024, 31},
6408 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006409 .block_erase = erase_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006410 }, {
6411 .eraseblocks = { {2048 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006412 .block_erase = erase_chip_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006413 },
6414 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006415 .write = write_jedec_1, /* Supports a fast mode too */
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006416 .read = read_memmapped,
6417 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */
Nico Huber9eec4072023-01-12 01:17:30 +01006418 .prepare_access = prepare_memory_access,
6419 .finish_access = finish_memory_access,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006420 },
6421
6422 {
6423 .vendor = "Fujitsu",
6424 .name = "MBM29LV160TE",
6425 .bustype = BUS_PARALLEL,
6426 .manufacture_id = FUJITSU_ID,
6427 .model_id = FUJITSU_MBM29LV160TE,
6428 .total_size = 2 * 1024,
6429 .page_size = 0,
6430 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET,
6431 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006432 .probe = probe_jedec,
6433 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006434 .block_erasers =
6435 {
6436 {
6437 .eraseblocks = {
6438 {64 * 1024, 31},
6439 {32 * 1024, 1},
6440 {8 * 1024, 2},
6441 {16 * 1024, 1},
6442 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006443 .block_erase = erase_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006444 }, {
6445 .eraseblocks = { {2048 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006446 .block_erase = erase_chip_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006447 },
6448 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006449 .write = write_jedec_1, /* Supports a fast mode too */
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006450 .read = read_memmapped,
6451 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */
Nico Huber9eec4072023-01-12 01:17:30 +01006452 .prepare_access = prepare_memory_access,
6453 .finish_access = finish_memory_access,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006454 },
6455
6456 {
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006457 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006458 .name = "GD25B128B/GD25Q128B",
Roman Titov95edc892015-04-03 21:29:04 +00006459 .bustype = BUS_SPI,
6460 .manufacture_id = GIGADEVICE_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006461 .model_id = GIGADEVICE_GD25Q128,
6462 .total_size = 16384,
Roman Titov95edc892015-04-03 21:29:04 +00006463 .page_size = 256,
6464 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6465 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006466 .tested = TEST_OK_PREW,
Roman Titov95edc892015-04-03 21:29:04 +00006467 .probe = probe_spi_rdid,
6468 .probe_timing = TIMING_ZERO,
6469 .block_erasers =
6470 {
6471 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006472 .eraseblocks = { {4 * 1024, 4096} },
Roman Titov95edc892015-04-03 21:29:04 +00006473 .block_erase = spi_block_erase_20,
6474 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006475 .eraseblocks = { {32 * 1024, 512} },
Roman Titov95edc892015-04-03 21:29:04 +00006476 .block_erase = spi_block_erase_52,
6477 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006478 .eraseblocks = { {64 * 1024, 256} },
Roman Titov95edc892015-04-03 21:29:04 +00006479 .block_erase = spi_block_erase_d8,
6480 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006481 .eraseblocks = { {16 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00006482 .block_erase = spi_block_erase_60,
6483 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006484 .eraseblocks = { {16 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00006485 .block_erase = spi_block_erase_c7,
6486 }
6487 },
6488 .printlock = spi_prettyprint_status_register_bp4_srwd,
6489 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6490 .write = spi_chip_write_256,
6491 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Alan Green1f9cc7d2019-07-01 11:10:45 +10006492 .voltage = {2700, 3600},
Roman Titov95edc892015-04-03 21:29:04 +00006493 },
6494
6495 {
6496 .vendor = "GigaDevice",
Edward O'Callaghan981a3442021-06-22 11:16:55 +10006497 .name = "GD25LQ128C/GD25LQ128D/GD25LQ128E",
Roman Titov95edc892015-04-03 21:29:04 +00006498 .bustype = BUS_SPI,
6499 .manufacture_id = GIGADEVICE_ID,
Alan Green188127e2019-08-06 16:10:34 +10006500 .model_id = GIGADEVICE_GD25LQ128CD,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006501 .total_size = 16384,
Roman Titov95edc892015-04-03 21:29:04 +00006502 .page_size = 256,
6503 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Nico Huber3f3c1f32022-05-28 16:48:26 +02006504 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_WRSR_EXT2,
Sergii Dmytrukc74eac22022-10-06 18:17:58 +03006505 .tested = TEST_OK_PREWB,
Roman Titov95edc892015-04-03 21:29:04 +00006506 .probe = probe_spi_rdid,
6507 .probe_timing = TIMING_ZERO,
6508 .block_erasers =
6509 {
6510 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006511 .eraseblocks = { {4 * 1024, 4096} },
Roman Titov95edc892015-04-03 21:29:04 +00006512 .block_erase = spi_block_erase_20,
6513 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006514 .eraseblocks = { {32 * 1024, 512} },
Roman Titov95edc892015-04-03 21:29:04 +00006515 .block_erase = spi_block_erase_52,
6516 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006517 .eraseblocks = { {64 * 1024, 256} },
Roman Titov95edc892015-04-03 21:29:04 +00006518 .block_erase = spi_block_erase_d8,
6519 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006520 .eraseblocks = { {16 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00006521 .block_erase = spi_block_erase_60,
6522 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006523 .eraseblocks = { {16 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00006524 .block_erase = spi_block_erase_c7,
6525 }
6526 },
6527 .printlock = spi_prettyprint_status_register_bp4_srwd,
6528 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6529 .write = spi_chip_write_256,
6530 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6531 .voltage = {1695, 1950},
Nikolai Artemievc6c3f282021-10-20 23:34:15 +11006532 .reg_bits =
6533 {
6534 .srp = {STATUS1, 7, RW},
6535 .srl = {STATUS2, 0, RW},
6536 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
6537 .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */
6538 .sec = {STATUS1, 6, RW}, /* Called BP4 in datasheet, acts like SEC */
6539 .cmp = {STATUS2, 6, RW},
6540 },
Nikolai Artemievc9feb1b2021-10-21 01:35:13 +11006541 .decode_range = decode_range_spi25,
Roman Titov95edc892015-04-03 21:29:04 +00006542 },
6543
6544 {
6545 .vendor = "GigaDevice",
6546 .name = "GD25LQ16",
6547 .bustype = BUS_SPI,
6548 .manufacture_id = GIGADEVICE_ID,
6549 .model_id = GIGADEVICE_GD25LQ16,
6550 .total_size = 2048,
6551 .page_size = 256,
6552 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6553 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6554 .tested = TEST_UNTESTED,
6555 .probe = probe_spi_rdid,
6556 .probe_timing = TIMING_ZERO,
6557 .block_erasers =
6558 {
6559 {
6560 .eraseblocks = { {4 * 1024, 512} },
6561 .block_erase = spi_block_erase_20,
6562 }, {
6563 .eraseblocks = { {32 * 1024, 64} },
6564 .block_erase = spi_block_erase_52,
6565 }, {
6566 .eraseblocks = { {64 * 1024, 32} },
6567 .block_erase = spi_block_erase_d8,
6568 }, {
6569 .eraseblocks = { {2 * 1024 * 1024, 1} },
6570 .block_erase = spi_block_erase_60,
6571 }, {
6572 .eraseblocks = { {2 * 1024 * 1024, 1} },
6573 .block_erase = spi_block_erase_c7,
6574 }
6575 },
6576 .printlock = spi_prettyprint_status_register_bp4_srwd,
6577 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6578 .write = spi_chip_write_256,
6579 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6580 .voltage = {1695, 1950},
6581 },
6582
6583 {
6584 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006585 .name = "GD25LQ32",
6586 .bustype = BUS_SPI,
6587 .manufacture_id = GIGADEVICE_ID,
6588 .model_id = GIGADEVICE_GD25LQ32,
6589 .total_size = 4096,
6590 .page_size = 256,
6591 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6592 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6593 .tested = TEST_OK_PREW,
6594 .probe = probe_spi_rdid,
6595 .probe_timing = TIMING_ZERO,
6596 .block_erasers =
6597 {
6598 {
6599 .eraseblocks = { {4 * 1024, 1024} },
6600 .block_erase = spi_block_erase_20,
6601 }, {
6602 .eraseblocks = { {32 * 1024, 128} },
6603 .block_erase = spi_block_erase_52,
6604 }, {
6605 .eraseblocks = { {64 * 1024, 64} },
6606 .block_erase = spi_block_erase_d8,
6607 }, {
6608 .eraseblocks = { {4 * 1024 * 1024, 1} },
6609 .block_erase = spi_block_erase_60,
6610 }, {
6611 .eraseblocks = { {4 * 1024 * 1024, 1} },
6612 .block_erase = spi_block_erase_c7,
6613 }
6614 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006615 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006616 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6617 .write = spi_chip_write_256,
Roman Titov95edc892015-04-03 21:29:04 +00006618 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6619 .voltage = {1695, 1950},
6620 },
6621
6622 {
6623 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006624 .name = "GD25LQ40",
6625 .bustype = BUS_SPI,
6626 .manufacture_id = GIGADEVICE_ID,
6627 .model_id = GIGADEVICE_GD25LQ40,
6628 .total_size = 512,
6629 .page_size = 256,
6630 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6631 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6632 .tested = TEST_UNTESTED,
6633 .probe = probe_spi_rdid,
6634 .probe_timing = TIMING_ZERO,
6635 .block_erasers =
6636 {
6637 {
6638 .eraseblocks = { {4 * 1024, 128} },
6639 .block_erase = spi_block_erase_20,
6640 }, {
6641 .eraseblocks = { {32 * 1024, 16} },
6642 .block_erase = spi_block_erase_52,
6643 }, {
6644 .eraseblocks = { {64 * 1024, 8} },
6645 .block_erase = spi_block_erase_d8,
6646 }, {
6647 .eraseblocks = { {512 * 1024, 1} },
6648 .block_erase = spi_block_erase_60,
6649 }, {
6650 .eraseblocks = { {512 * 1024, 1} },
6651 .block_erase = spi_block_erase_c7,
6652 }
6653 },
6654 .printlock = spi_prettyprint_status_register_bp4_srwd,
6655 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6656 .write = spi_chip_write_256,
6657 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6658 .voltage = {1695, 1950},
6659 },
6660
6661 {
6662 .vendor = "GigaDevice",
Roman Titov95edc892015-04-03 21:29:04 +00006663 .name = "GD25LQ64(B)",
6664 .bustype = BUS_SPI,
6665 .manufacture_id = GIGADEVICE_ID,
6666 .model_id = GIGADEVICE_GD25LQ64,
6667 .total_size = 8192,
6668 .page_size = 256,
6669 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Nico Huber3f3c1f32022-05-28 16:48:26 +02006670 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_WRSR_EXT2,
Sergii Dmytrukc74eac22022-10-06 18:17:58 +03006671 .tested = TEST_OK_PREWB,
Roman Titov95edc892015-04-03 21:29:04 +00006672 .probe = probe_spi_rdid,
6673 .probe_timing = TIMING_ZERO,
6674 .block_erasers =
6675 {
6676 {
6677 .eraseblocks = { {4 * 1024, 2048} },
6678 .block_erase = spi_block_erase_20,
6679 }, {
6680 .eraseblocks = { {32 * 1024, 256} },
6681 .block_erase = spi_block_erase_52,
6682 }, {
6683 .eraseblocks = { {64 * 1024, 128} },
6684 .block_erase = spi_block_erase_d8,
6685 }, {
6686 .eraseblocks = { {8 * 1024 * 1024, 1} },
6687 .block_erase = spi_block_erase_60,
6688 }, {
6689 .eraseblocks = { {8 * 1024 * 1024, 1} },
6690 .block_erase = spi_block_erase_c7,
6691 }
6692 },
6693 .printlock = spi_prettyprint_status_register_bp4_srwd,
6694 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6695 .write = spi_chip_write_256,
6696 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6697 .voltage = {1695, 1950},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +11006698 .reg_bits =
6699 {
6700 .srp = {STATUS1, 7, RW},
6701 .srl = {STATUS2, 0, RW},
6702 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
6703 .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */
6704 .sec = {STATUS1, 6, RW}, /* Called BP4 in datasheet, acts like SEC */
6705 .cmp = {STATUS2, 6, RW},
6706 },
6707 .decode_range = decode_range_spi25,
Roman Titov95edc892015-04-03 21:29:04 +00006708 },
6709
6710 {
6711 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006712 .name = "GD25LQ80",
Roman Titov95edc892015-04-03 21:29:04 +00006713 .bustype = BUS_SPI,
6714 .manufacture_id = GIGADEVICE_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006715 .model_id = GIGADEVICE_GD25LQ80,
6716 .total_size = 1024,
Roman Titov95edc892015-04-03 21:29:04 +00006717 .page_size = 256,
6718 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6719 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6720 .tested = TEST_UNTESTED,
6721 .probe = probe_spi_rdid,
6722 .probe_timing = TIMING_ZERO,
6723 .block_erasers =
6724 {
6725 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006726 .eraseblocks = { {4 * 1024, 256} },
Roman Titov95edc892015-04-03 21:29:04 +00006727 .block_erase = spi_block_erase_20,
6728 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006729 .eraseblocks = { {32 * 1024, 32} },
Roman Titov95edc892015-04-03 21:29:04 +00006730 .block_erase = spi_block_erase_52,
6731 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006732 .eraseblocks = { {64 * 1024, 16} },
Roman Titov95edc892015-04-03 21:29:04 +00006733 .block_erase = spi_block_erase_d8,
6734 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006735 .eraseblocks = { {1 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00006736 .block_erase = spi_block_erase_60,
6737 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006738 .eraseblocks = { {1 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00006739 .block_erase = spi_block_erase_c7,
6740 }
6741 },
6742 .printlock = spi_prettyprint_status_register_bp4_srwd,
6743 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6744 .write = spi_chip_write_256,
6745 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6746 .voltage = {1695, 1950},
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006747 },
6748
6749 {
6750 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006751 .name = "GD25Q10",
6752 .bustype = BUS_SPI,
6753 .manufacture_id = GIGADEVICE_ID,
6754 .model_id = GIGADEVICE_GD25Q10,
6755 .total_size = 128,
6756 .page_size = 256,
6757 .feature_bits = FEATURE_WRSR_WREN,
6758 .tested = TEST_UNTESTED,
6759 .probe = probe_spi_rdid,
6760 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10006761 .block_erasers =
6762 {
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006763 {
6764 .eraseblocks = { {4 * 1024, 32} },
6765 .block_erase = spi_block_erase_20,
6766 }, {
6767 .eraseblocks = { {32 * 1024, 4} },
6768 .block_erase = spi_block_erase_52,
6769 }, {
6770 .eraseblocks = { {64 * 1024, 2} },
6771 .block_erase = spi_block_erase_d8,
6772 }, {
6773 .eraseblocks = { {128 * 1024, 1} },
6774 .block_erase = spi_block_erase_60,
6775 }, {
6776 .eraseblocks = { {128 * 1024, 1} },
6777 .block_erase = spi_block_erase_c7,
6778 }
6779 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006780 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006781 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6782 .write = spi_chip_write_256,
6783 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6784 .voltage = {2700, 3600},
6785 },
6786
6787 {
6788 .vendor = "GigaDevice",
Alan Green4f009122019-08-26 10:45:18 +10006789 .name = "GD25Q127C/GD25Q128C",
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006790 .bustype = BUS_SPI,
6791 .manufacture_id = GIGADEVICE_ID,
6792 .model_id = GIGADEVICE_GD25Q128,
6793 .total_size = 16384,
6794 .page_size = 256,
6795 /* OTP: 1536B total; read 0x48; write 0x42, erase 0x44 */
6796 /* QPI: enable 0x38, disable 0xFF */
Nikolai Artemievd32e18b2022-02-15 18:06:55 +11006797 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_WRSR2,
Sergii Dmytrukc74eac22022-10-06 18:17:58 +03006798 .tested = TEST_OK_PREWB,
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006799 .probe = probe_spi_rdid,
6800 .probe_timing = TIMING_ZERO,
6801 .block_erasers =
6802 {
6803 {
6804 .eraseblocks = { {4 * 1024, 4096} },
6805 .block_erase = spi_block_erase_20,
6806 }, {
6807 .eraseblocks = { {32 * 1024, 512} },
6808 .block_erase = spi_block_erase_52,
6809 }, {
6810 .eraseblocks = { {64 * 1024, 256} },
6811 .block_erase = spi_block_erase_d8,
6812 }, {
6813 .eraseblocks = { {16 * 1024 * 1024, 1} },
6814 .block_erase = spi_block_erase_60,
6815 }, {
6816 .eraseblocks = { {16 * 1024 * 1024, 1} },
6817 .block_erase = spi_block_erase_c7,
6818 }
6819 },
6820 /* TODO: 2nd status reg (read 0x35, write 0x31) and 3rd status reg (read 0x15, write 0x11) */
6821 .printlock = spi_prettyprint_status_register_bp4_srwd,
6822 .unlock = spi_disable_blockprotect_bp4_srwd,
6823 .write = spi_chip_write_256,
6824 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6825 .voltage = {2700, 3600},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +11006826 .reg_bits =
6827 {
6828 .srp = {STATUS1, 7, RW},
6829 .srl = {STATUS2, 0, RW},
6830 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
6831 .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */
6832 .sec = {STATUS1, 6, RW}, /* Called BP4 in datasheet, acts like SEC */
6833 .cmp = {STATUS2, 6, RW},
6834 },
6835 .decode_range = decode_range_spi25,
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006836 },
6837
6838 {
6839 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006840 .name = "GD25Q16(B)",
6841 .bustype = BUS_SPI,
6842 .manufacture_id = GIGADEVICE_ID,
6843 .model_id = GIGADEVICE_GD25Q16,
6844 .total_size = 2048,
6845 .page_size = 256,
6846 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
6847 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6848 .tested = TEST_OK_PREW,
6849 .probe = probe_spi_rdid,
6850 .probe_timing = TIMING_ZERO,
6851 .block_erasers =
6852 {
6853 {
6854 .eraseblocks = { {4 * 1024, 512} },
6855 .block_erase = spi_block_erase_20,
6856 }, {
6857 .eraseblocks = { {32 * 1024, 64} },
6858 .block_erase = spi_block_erase_52,
6859 }, {
6860 .eraseblocks = { {64 * 1024, 32} },
6861 .block_erase = spi_block_erase_d8,
6862 }, {
6863 .eraseblocks = { {2 * 1024 * 1024, 1} },
6864 .block_erase = spi_block_erase_60,
6865 }, {
6866 .eraseblocks = { {2 * 1024 * 1024, 1} },
6867 .block_erase = spi_block_erase_c7,
6868 }
6869 },
6870 .printlock = spi_prettyprint_status_register_bp4_srwd,
6871 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6872 .write = spi_chip_write_256,
6873 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6874 .voltage = {2700, 3600},
6875 },
6876
6877 {
6878 .vendor = "GigaDevice",
6879 .name = "GD25Q20(B)",
6880 .bustype = BUS_SPI,
6881 .manufacture_id = GIGADEVICE_ID,
6882 .model_id = GIGADEVICE_GD25Q20,
6883 .total_size = 256,
6884 .page_size = 256,
6885 .feature_bits = FEATURE_WRSR_WREN,
6886 .tested = TEST_OK_PREW,
6887 .probe = probe_spi_rdid,
6888 .probe_timing = TIMING_ZERO,
6889 .block_erasers =
6890 {
6891 {
6892 .eraseblocks = { {4 * 1024, 64} },
6893 .block_erase = spi_block_erase_20,
6894 }, {
6895 .eraseblocks = { {32 * 1024, 8} },
6896 .block_erase = spi_block_erase_52,
6897 }, {
6898 .eraseblocks = { {64 * 1024, 4} },
6899 .block_erase = spi_block_erase_d8,
6900 }, {
6901 .eraseblocks = { {256 * 1024, 1} },
6902 .block_erase = spi_block_erase_60,
6903 }, {
6904 .eraseblocks = { {256 * 1024, 1} },
6905 .block_erase = spi_block_erase_c7,
6906 }
6907 },
6908 .printlock = spi_prettyprint_status_register_bp4_srwd,
6909 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6910 .write = spi_chip_write_256,
6911 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6912 .voltage = {2700, 3600},
6913 },
6914
6915 {
6916 .vendor = "GigaDevice",
Nikolai Artemiev3ca0af02022-06-17 15:10:18 +10006917 .name = "GD25Q256D/GD25Q256E",
Alan Green86fc9cf2019-08-26 15:02:12 +10006918 .bustype = BUS_SPI,
6919 .manufacture_id = GIGADEVICE_ID,
6920 .model_id = GIGADEVICE_GD25Q256D,
6921 .total_size = 32768,
6922 .page_size = 256,
Nikolai Artemievb931e7a2022-12-05 13:06:14 +11006923 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA |
Nico Huber3f3c1f32022-05-28 16:48:26 +02006924 FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3,
Sergii Dmytrukc74eac22022-10-06 18:17:58 +03006925 .tested = TEST_OK_PREWB,
Alan Green86fc9cf2019-08-26 15:02:12 +10006926 .probe = probe_spi_rdid,
6927 .probe_timing = TIMING_ZERO,
6928 .block_erasers =
6929 {
6930 {
6931 .eraseblocks = { {4 * 1024, 8192} },
Nico Huber5374dc32019-10-04 16:16:15 +02006932 .block_erase = spi_block_erase_21,
6933 }, {
6934 .eraseblocks = { {4 * 1024, 8192} },
Alan Green86fc9cf2019-08-26 15:02:12 +10006935 .block_erase = spi_block_erase_20,
6936 }, {
6937 .eraseblocks = { {32 * 1024, 1024} },
Nico Huber5374dc32019-10-04 16:16:15 +02006938 .block_erase = spi_block_erase_5c,
6939 }, {
6940 .eraseblocks = { {32 * 1024, 1024} },
Alan Green86fc9cf2019-08-26 15:02:12 +10006941 .block_erase = spi_block_erase_52,
6942 }, {
6943 .eraseblocks = { {64 * 1024, 512} },
Nico Huber5374dc32019-10-04 16:16:15 +02006944 .block_erase = spi_block_erase_dc,
6945 }, {
6946 .eraseblocks = { {64 * 1024, 512} },
Alan Green86fc9cf2019-08-26 15:02:12 +10006947 .block_erase = spi_block_erase_d8,
6948 }, {
6949 .eraseblocks = { {32 * 1024 * 1024, 1} },
6950 .block_erase = spi_block_erase_60,
6951 }, {
6952 .eraseblocks = { {32 * 1024 * 1024, 1} },
6953 .block_erase = spi_block_erase_c7,
6954 }
6955 },
6956 .printlock = spi_prettyprint_status_register_bp3_srwd,
6957 .unlock = spi_disable_blockprotect,
6958 .write = spi_chip_write_256,
6959 .read = spi_chip_read,
6960 .voltage = {2700, 3600},
Nikolai Artemievc6c3f282021-10-20 23:34:15 +11006961 .reg_bits =
6962 {
6963 .srp = {STATUS1, 7, RW},
6964 .srl = {STATUS2, 6, RW},
6965 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}},
6966 .tb = {STATUS1, 6, RW},
6967 },
Nikolai Artemievc9feb1b2021-10-21 01:35:13 +11006968 .decode_range = decode_range_spi25,
Nico Huberab6b18f2023-01-11 23:38:20 +01006969 .prepare_access = spi_prepare_4ba,
Alan Green86fc9cf2019-08-26 15:02:12 +10006970 },
6971
6972 {
6973 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006974 .name = "GD25Q32(B)",
6975 .bustype = BUS_SPI,
6976 .manufacture_id = GIGADEVICE_ID,
6977 .model_id = GIGADEVICE_GD25Q32,
6978 .total_size = 4096,
6979 .page_size = 256,
6980 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Nikolai Artemiev9de3f872021-10-20 22:32:25 +11006981 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_WRSR2,
Sergii Dmytrukc74eac22022-10-06 18:17:58 +03006982 .tested = TEST_OK_PREWB,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006983 .probe = probe_spi_rdid,
6984 .probe_timing = TIMING_ZERO,
6985 .block_erasers =
6986 {
6987 {
6988 .eraseblocks = { {4 * 1024, 1024} },
6989 .block_erase = spi_block_erase_20,
6990 }, {
6991 .eraseblocks = { {32 * 1024, 128} },
6992 .block_erase = spi_block_erase_52,
6993 }, {
6994 .eraseblocks = { {64 * 1024, 64} },
6995 .block_erase = spi_block_erase_d8,
6996 }, {
6997 .eraseblocks = { {4 * 1024 * 1024, 1} },
6998 .block_erase = spi_block_erase_60,
6999 }, {
7000 .eraseblocks = { {4 * 1024 * 1024, 1} },
7001 .block_erase = spi_block_erase_c7,
7002 }
7003 },
7004 .printlock = spi_prettyprint_status_register_bp4_srwd,
7005 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7006 .write = spi_chip_write_256,
7007 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7008 .voltage = {2700, 3600},
Nikolai Artemievc6c3f282021-10-20 23:34:15 +11007009 .reg_bits =
7010 {
7011 .srp = {STATUS1, 7, RW},
7012 .srl = {STATUS2, 0, RW},
7013 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
7014 .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */
7015 .sec = {STATUS1, 6, RW}, /* Called BP4 in datasheet, acts like SEC */
7016 .cmp = {STATUS2, 6, RW},
7017 },
Nikolai Artemievc9feb1b2021-10-21 01:35:13 +11007018 .decode_range = decode_range_spi25,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007019 },
7020
7021 {
7022 .vendor = "GigaDevice",
7023 .name = "GD25Q40(B)",
7024 .bustype = BUS_SPI,
7025 .manufacture_id = GIGADEVICE_ID,
7026 .model_id = GIGADEVICE_GD25Q40,
7027 .total_size = 512,
7028 .page_size = 256,
7029 .feature_bits = FEATURE_WRSR_WREN,
Simon Buhrow551664c2022-03-09 16:09:08 +01007030 .tested = TEST_OK_PREW,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007031 .probe = probe_spi_rdid,
7032 .probe_timing = TIMING_ZERO,
7033 .block_erasers =
7034 {
7035 {
7036 .eraseblocks = { {4 * 1024, 128} },
7037 .block_erase = spi_block_erase_20,
7038 }, {
7039 .eraseblocks = { {32 * 1024, 16} },
7040 .block_erase = spi_block_erase_52,
7041 }, {
7042 .eraseblocks = { {64 * 1024, 8} },
7043 .block_erase = spi_block_erase_d8,
7044 }, {
7045 .eraseblocks = { {512 * 1024, 1} },
7046 .block_erase = spi_block_erase_60,
7047 }, {
7048 .eraseblocks = { {512 * 1024, 1} },
7049 .block_erase = spi_block_erase_c7,
7050 }
7051 },
7052 .printlock = spi_prettyprint_status_register_bp4_srwd,
7053 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7054 .write = spi_chip_write_256,
7055 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7056 .voltage = {2700, 3600},
7057 },
7058
7059 {
7060 .vendor = "GigaDevice",
7061 .name = "GD25Q512",
7062 .bustype = BUS_SPI,
7063 .manufacture_id = GIGADEVICE_ID,
7064 .model_id = GIGADEVICE_GD25Q512,
7065 .total_size = 64,
7066 .page_size = 256,
7067 .feature_bits = FEATURE_WRSR_WREN,
7068 .tested = TEST_OK_PREW,
7069 .probe = probe_spi_rdid,
7070 .probe_timing = TIMING_ZERO,
7071 .block_erasers =
7072 {
7073 {
7074 .eraseblocks = { {4 * 1024, 16} },
7075 .block_erase = spi_block_erase_20,
7076 }, {
7077 .eraseblocks = { {32 * 1024, 2} },
7078 .block_erase = spi_block_erase_52,
7079 }, {
7080 .eraseblocks = { {64 * 1024, 1} },
7081 .block_erase = spi_block_erase_60,
7082 }, {
7083 .eraseblocks = { {64 * 1024, 1} },
7084 .block_erase = spi_block_erase_c7,
7085 }
7086 },
7087 .printlock = spi_prettyprint_status_register_bp4_srwd,
7088 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7089 .write = spi_chip_write_256,
7090 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7091 .voltage = {2700, 3600},
7092 },
7093
7094 {
7095 .vendor = "GigaDevice",
7096 .name = "GD25Q64(B)",
7097 .bustype = BUS_SPI,
7098 .manufacture_id = GIGADEVICE_ID,
7099 .model_id = GIGADEVICE_GD25Q64,
7100 .total_size = 8192,
7101 .page_size = 256,
7102 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Nikolai Artemievd32e18b2022-02-15 18:06:55 +11007103 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_WRSR2,
Sergii Dmytrukc74eac22022-10-06 18:17:58 +03007104 .tested = TEST_OK_PREWB,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007105 .probe = probe_spi_rdid,
7106 .probe_timing = TIMING_ZERO,
7107 .block_erasers =
7108 {
7109 {
7110 .eraseblocks = { {4 * 1024, 2048} },
7111 .block_erase = spi_block_erase_20,
7112 }, {
7113 .eraseblocks = { {32 * 1024, 256} },
7114 .block_erase = spi_block_erase_52,
7115 }, {
7116 .eraseblocks = { {64 * 1024, 128} },
7117 .block_erase = spi_block_erase_d8,
7118 }, {
7119 .eraseblocks = { {8 * 1024 * 1024, 1} },
7120 .block_erase = spi_block_erase_60,
7121 }, {
7122 .eraseblocks = { {8 * 1024 * 1024, 1} },
7123 .block_erase = spi_block_erase_c7,
7124 }
7125 },
7126 .printlock = spi_prettyprint_status_register_bp4_srwd,
7127 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7128 .write = spi_chip_write_256,
7129 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7130 .voltage = {2700, 3600},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +11007131 .reg_bits =
7132 {
7133 .srp = {STATUS1, 7, RW},
7134 .srl = {STATUS2, 0, RW},
7135 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
7136 .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */
7137 .sec = {STATUS1, 6, RW}, /* Called BP4 in datasheet, acts like SEC */
7138 .cmp = {STATUS2, 6, RW},
7139 },
7140 .decode_range = decode_range_spi25,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007141 },
7142
7143 {
7144 .vendor = "GigaDevice",
7145 .name = "GD25Q80(B)",
7146 .bustype = BUS_SPI,
7147 .manufacture_id = GIGADEVICE_ID,
7148 .model_id = GIGADEVICE_GD25Q80,
7149 .total_size = 1024,
7150 .page_size = 256,
7151 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
7152 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7153 .tested = TEST_OK_PREW,
7154 .probe = probe_spi_rdid,
7155 .probe_timing = TIMING_ZERO,
7156 .block_erasers =
7157 {
7158 {
7159 .eraseblocks = { {4 * 1024, 256} },
7160 .block_erase = spi_block_erase_20,
7161 }, {
7162 .eraseblocks = { {32 * 1024, 32} },
7163 .block_erase = spi_block_erase_52,
7164 }, {
7165 .eraseblocks = { {64 * 1024, 16} },
7166 .block_erase = spi_block_erase_d8,
7167 }, {
7168 .eraseblocks = { {1024 * 1024, 1} },
7169 .block_erase = spi_block_erase_60,
7170 }, {
7171 .eraseblocks = { {1024 * 1024, 1} },
7172 .block_erase = spi_block_erase_c7,
7173 }
7174 },
7175 .printlock = spi_prettyprint_status_register_bp4_srwd,
7176 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7177 .write = spi_chip_write_256,
7178 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7179 .voltage = {2700, 3600},
7180 },
7181
7182 {
7183 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00007184 .name = "GD25T80",
7185 .bustype = BUS_SPI,
7186 .manufacture_id = GIGADEVICE_ID,
7187 .model_id = GIGADEVICE_GD25T80,
7188 .total_size = 1024,
7189 .page_size = 256,
7190 /* OTP: 256B total; enter 0x3A */
7191 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7192 .tested = TEST_UNTESTED,
7193 .probe = probe_spi_rdid,
7194 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10007195 .block_erasers =
7196 {
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00007197 {
7198 .eraseblocks = { {4 * 1024, 256} },
7199 .block_erase = spi_block_erase_20,
7200 }, {
7201 .eraseblocks = { {64 * 1024, 16} },
7202 .block_erase = spi_block_erase_52,
7203 }, {
7204 .eraseblocks = { {64 * 1024, 16} },
7205 .block_erase = spi_block_erase_d8,
7206 }, {
7207 .eraseblocks = { {1024 * 1024, 1} },
7208 .block_erase = spi_block_erase_60,
7209 }, {
7210 .eraseblocks = { {1024 * 1024, 1} },
7211 .block_erase = spi_block_erase_c7,
7212 }
7213 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00007214 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00007215 .unlock = spi_disable_blockprotect,
7216 .write = spi_chip_write_256,
7217 .read = spi_chip_read,
Stefan Tauner352e50b2013-02-22 15:58:45 +00007218 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00007219 },
7220
7221 {
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007222 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10007223 .name = "GD25VQ16C",
7224 .bustype = BUS_SPI,
7225 .manufacture_id = GIGADEVICE_ID,
7226 .model_id = GIGADEVICE_GD25VQ16C,
7227 .total_size = 2 * 1024,
7228 .page_size = 256,
7229 /* Supports SFDP */
7230 /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */
7231 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7232 .tested = TEST_UNTESTED,
7233 .probe = probe_spi_rdid,
7234 .probe_timing = TIMING_ZERO,
7235 .block_erasers =
7236 {
7237 {
7238 .eraseblocks = { { 4 * 1024, 512} },
7239 .block_erase = spi_block_erase_20,
7240 }, {
7241 .eraseblocks = { { 32 * 1024, 64} },
7242 .block_erase = spi_block_erase_52,
7243 }, {
7244 .eraseblocks = { { 64 * 1024, 32} },
7245 .block_erase = spi_block_erase_d8,
7246 }, {
7247 .eraseblocks = { {2 * 1024 * 1024, 1} },
7248 .block_erase = spi_block_erase_60,
7249 }, {
7250 .eraseblocks = { {2 * 1024 * 1024, 1} },
7251 .block_erase = spi_block_erase_c7,
7252 }
7253 },
7254 .printlock = spi_prettyprint_status_register_bp4_srwd,
7255 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7256 .write = spi_chip_write_256,
7257 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7258 .voltage = {2300, 3600},
7259 },
7260
7261 {
7262 .vendor = "GigaDevice",
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007263 .name = "GD25VQ21B",
7264 .bustype = BUS_SPI,
7265 .manufacture_id = GIGADEVICE_ID,
7266 .model_id = GIGADEVICE_GD25VQ21B,
7267 .total_size = 256,
7268 .page_size = 256,
7269 /* OTP: 1536B total; read 0x48, write 0x42, erase 0x44 */
7270 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7271 .tested = TEST_UNTESTED,
7272 .probe = probe_spi_rdid,
7273 .probe_timing = TIMING_ZERO,
7274 .block_erasers =
7275 {
7276 {
7277 .eraseblocks = { { 4 * 1024, 64} },
7278 .block_erase = spi_block_erase_20,
7279 }, {
7280 .eraseblocks = { { 32 * 1024, 8} },
7281 .block_erase = spi_block_erase_52,
7282 }, {
7283 .eraseblocks = { { 64 * 1024, 4} },
7284 .block_erase = spi_block_erase_d8,
7285 }, {
7286 .eraseblocks = { {256 * 1024, 1} },
7287 .block_erase = spi_block_erase_60,
7288 }, {
7289 .eraseblocks = { {256 * 1024, 1} },
7290 .block_erase = spi_block_erase_c7,
7291 }
7292 },
7293 .printlock = spi_prettyprint_status_register_bp4_srwd,
7294 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7295 .write = spi_chip_write_256,
7296 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7297 .voltage = {2300, 3600},
7298 },
7299
7300 {
7301 .vendor = "GigaDevice",
7302 .name = "GD25VQ40C",
7303 .bustype = BUS_SPI,
7304 .manufacture_id = GIGADEVICE_ID,
7305 .model_id = GIGADEVICE_GD25VQ41B,
7306 .total_size = 512,
7307 .page_size = 256,
7308 /* Supports SFDP */
7309 /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */
7310 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7311 .tested = TEST_UNTESTED,
7312 .probe = probe_spi_rdid,
7313 .probe_timing = TIMING_ZERO,
7314 .block_erasers =
7315 {
7316 {
7317 .eraseblocks = { { 4 * 1024, 128} },
7318 .block_erase = spi_block_erase_20,
7319 }, {
7320 .eraseblocks = { { 32 * 1024, 16} },
7321 .block_erase = spi_block_erase_52,
7322 }, {
7323 .eraseblocks = { { 64 * 1024, 8} },
7324 .block_erase = spi_block_erase_d8,
7325 }, {
7326 .eraseblocks = { {512 * 1024, 1} },
7327 .block_erase = spi_block_erase_60,
7328 }, {
7329 .eraseblocks = { {512 * 1024, 1} },
7330 .block_erase = spi_block_erase_c7,
7331 }
7332 },
7333 .printlock = spi_prettyprint_status_register_bp4_srwd,
7334 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7335 .write = spi_chip_write_256,
7336 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7337 .voltage = {2300, 3600},
7338 },
7339
7340 {
7341 .vendor = "GigaDevice",
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007342 .name = "GD25VQ41B",
7343 .bustype = BUS_SPI,
7344 .manufacture_id = GIGADEVICE_ID,
7345 .model_id = GIGADEVICE_GD25VQ41B,
7346 .total_size = 512,
7347 .page_size = 256,
7348 /* OTP: 1536B total; read 0x48, write 0x42, erase 0x44 */
7349 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner0be072c2016-03-13 15:16:30 +00007350 .tested = TEST_OK_PREW,
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007351 .probe = probe_spi_rdid,
7352 .probe_timing = TIMING_ZERO,
Stefan Tauner0be072c2016-03-13 15:16:30 +00007353 .block_erasers =
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007354 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00007355 {
7356 .eraseblocks = { { 4 * 1024, 128} },
7357 .block_erase = spi_block_erase_20,
7358 }, {
7359 .eraseblocks = { { 32 * 1024, 16} },
7360 .block_erase = spi_block_erase_52,
7361 }, {
7362 .eraseblocks = { { 64 * 1024, 8} },
7363 .block_erase = spi_block_erase_d8,
7364 }, {
7365 .eraseblocks = { {512 * 1024, 1} },
7366 .block_erase = spi_block_erase_60,
7367 }, {
7368 .eraseblocks = { {512 * 1024, 1} },
7369 .block_erase = spi_block_erase_c7,
7370 }
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007371 },
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007372 .printlock = spi_prettyprint_status_register_bp4_srwd,
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007373 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7374 .write = spi_chip_write_256,
7375 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7376 .voltage = {2300, 3600},
7377 },
7378
7379 {
7380 .vendor = "GigaDevice",
7381 .name = "GD25VQ80C",
7382 .bustype = BUS_SPI,
7383 .manufacture_id = GIGADEVICE_ID,
7384 .model_id = GIGADEVICE_GD25VQ80C,
7385 .total_size = 1024,
7386 .page_size = 256,
7387 /* Supports SFDP */
7388 /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */
7389 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7390 .tested = TEST_UNTESTED,
7391 .probe = probe_spi_rdid,
7392 .probe_timing = TIMING_ZERO,
7393 .block_erasers =
7394 {
7395 {
7396 .eraseblocks = { { 4 * 1024, 256} },
7397 .block_erase = spi_block_erase_20,
7398 }, {
7399 .eraseblocks = { { 32 * 1024, 32} },
7400 .block_erase = spi_block_erase_52,
7401 }, {
7402 .eraseblocks = { { 64 * 1024, 16} },
7403 .block_erase = spi_block_erase_d8,
7404 }, {
7405 .eraseblocks = { {1024 * 1024, 1} },
7406 .block_erase = spi_block_erase_60,
7407 }, {
7408 .eraseblocks = { {1024 * 1024, 1} },
7409 .block_erase = spi_block_erase_c7,
7410 }
7411 },
7412 .printlock = spi_prettyprint_status_register_bp4_srwd,
7413 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7414 .write = spi_chip_write_256,
7415 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7416 .voltage = {2300, 3600},
7417 },
7418
7419 {
Dino Li3214f582020-03-25 17:39:53 +08007420 .vendor = "GigaDevice",
7421 .name = "GD25WQ80E",
7422 .bustype = BUS_SPI,
7423 .manufacture_id = GIGADEVICE_ID,
7424 .model_id = GIGADEVICE_GD25WQ80E,
7425 .total_size = 1024,
7426 .page_size = 256,
7427 .feature_bits = FEATURE_WRSR_WREN,
7428 .tested = TEST_OK_PREW,
7429 .probe = probe_spi_rdid,
7430 .probe_timing = TIMING_ZERO,
7431 .block_erasers =
7432 {
7433 {
7434 .eraseblocks = { {4 * 1024, 256} },
7435 .block_erase = spi_block_erase_20,
7436 }, {
7437 .eraseblocks = { {32 * 1024, 32} },
7438 .block_erase = spi_block_erase_52,
7439 }, {
7440 .eraseblocks = { {64 * 1024, 16} },
7441 .block_erase = spi_block_erase_d8,
7442 }, {
7443 .eraseblocks = { {1 * 1024 * 1024, 1} },
7444 .block_erase = spi_block_erase_60,
7445 }, {
7446 .eraseblocks = { {1 * 1024 * 1024, 1} },
7447 .block_erase = spi_block_erase_c7,
7448 }
7449 },
7450 .printlock = spi_prettyprint_status_register_bp4_srwd,
7451 .unlock = spi_disable_blockprotect_bp4_srwd,
7452 .write = spi_chip_write_256,
7453 .read = spi_chip_read,
7454 .voltage = {1650, 3600},
7455 },
7456
7457 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007458 .vendor = "Hyundai",
7459 .name = "HY29F002B",
7460 .bustype = BUS_PARALLEL,
7461 .manufacture_id = HYUNDAI_ID,
7462 .model_id = HYUNDAI_HY29F002B,
7463 .total_size = 256,
7464 .page_size = 256 * 1024,
7465 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007466 .tested = TEST_UNTESTED,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007467 .probe = probe_jedec,
7468 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007469 .block_erasers =
7470 {
7471 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007472 .eraseblocks = {
7473 {16 * 1024, 1},
7474 {8 * 1024, 2},
7475 {32 * 1024, 1},
7476 {64 * 1024, 3},
7477 },
7478 .block_erase = erase_sector_jedec,
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007479 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007480 .eraseblocks = { {256 * 1024, 1} },
7481 .block_erase = erase_chip_block_jedec,
7482 },
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007483 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10007484 .write = write_jedec_1,
7485 .read = read_memmapped,
7486 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
Nico Huber9eec4072023-01-12 01:17:30 +01007487 .prepare_access = prepare_memory_access,
7488 .finish_access = finish_memory_access,
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007489 },
7490
7491 {
David Borgc96a8bd2010-06-21 16:12:22 +00007492 .vendor = "Hyundai",
7493 .name = "HY29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007494 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00007495 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007496 .model_id = HYUNDAI_HY29F002T,
David Borgc96a8bd2010-06-21 16:12:22 +00007497 .total_size = 256,
7498 .page_size = 256 * 1024,
7499 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007500 .tested = TEST_OK_PRE,
David Borgc96a8bd2010-06-21 16:12:22 +00007501 .probe = probe_jedec,
7502 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7503 .block_erasers =
7504 {
7505 {
7506 .eraseblocks = {
7507 {64 * 1024, 3},
7508 {32 * 1024, 1},
7509 {8 * 1024, 2},
7510 {16 * 1024, 1},
7511 },
7512 .block_erase = erase_sector_jedec,
7513 }, {
7514 .eraseblocks = { {256 * 1024, 1} },
7515 .block_erase = erase_chip_block_jedec,
7516 },
7517 },
7518 .write = write_jedec_1,
7519 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007520 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
Nico Huber9eec4072023-01-12 01:17:30 +01007521 .prepare_access = prepare_memory_access,
7522 .finish_access = finish_memory_access,
David Borgc96a8bd2010-06-21 16:12:22 +00007523 },
7524
7525 {
7526 .vendor = "Hyundai",
Joshua Roysf1324e02010-09-16 00:51:51 +00007527 .name = "HY29F040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007528 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00007529 .manufacture_id = HYUNDAI_ID,
7530 .model_id = HYUNDAI_HY29F040A,
7531 .total_size = 512,
7532 .page_size = 64 * 1024,
7533 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
7534 .tested = TEST_UNTESTED,
7535 .probe = probe_jedec,
7536 .probe_timing = TIMING_ZERO,
7537 .block_erasers =
7538 {
7539 {
7540 .eraseblocks = { {64 * 1024, 8} },
7541 .block_erase = erase_sector_jedec,
7542 }, {
7543 .eraseblocks = { {512 * 1024, 1} },
7544 .block_erase = erase_chip_block_jedec,
7545 },
7546 },
7547 .write = write_jedec_1,
7548 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007549 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +01007550 .prepare_access = prepare_memory_access,
7551 .finish_access = finish_memory_access,
Joshua Roysf1324e02010-09-16 00:51:51 +00007552 },
7553
7554 {
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007555 .vendor = "ISSI",
Angel Pons2ef47f32018-09-30 16:47:30 +02007556 .name = "IS25LP064",
7557 .bustype = BUS_SPI,
7558 .manufacture_id = ISSI_ID_SPI,
7559 .model_id = ISSI_IS25LP064,
7560 .total_size = 8192,
7561 .page_size = 256,
7562 /* OTP: 1024B total; read 0x48; write 0x42 */
7563 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Simon Buhrow9bf829d2021-10-20 17:09:09 +02007564 .tested = TEST_OK_PREW,
Angel Pons2ef47f32018-09-30 16:47:30 +02007565 .probe = probe_spi_rdid,
7566 .probe_timing = TIMING_ZERO,
7567 .block_erasers =
7568 {
7569 {
7570 .eraseblocks = { {4 * 1024, 2048} },
7571 .block_erase = spi_block_erase_20,
7572 }, {
7573 .eraseblocks = { {4 * 1024, 2048} },
7574 .block_erase = spi_block_erase_d7,
7575 }, {
7576 .eraseblocks = { {32 * 1024, 256} },
7577 .block_erase = spi_block_erase_52,
7578 }, {
7579 .eraseblocks = { {64 * 1024, 128} },
7580 .block_erase = spi_block_erase_d8,
7581 }, {
7582 .eraseblocks = { {8 * 1024 * 1024, 1} },
7583 .block_erase = spi_block_erase_60,
7584 }, {
7585 .eraseblocks = { {8 * 1024 * 1024, 1} },
7586 .block_erase = spi_block_erase_c7,
7587 }
7588 },
7589 .unlock = spi_disable_blockprotect,
7590 .write = spi_chip_write_256,
7591 .read = spi_chip_read,
7592 .voltage = {2300, 3600},
7593 },
7594
7595 {
7596 .vendor = "ISSI",
David Hendricks3083ed92017-05-02 13:25:56 -07007597 .name = "IS25LP128",
7598 .bustype = BUS_SPI,
7599 .manufacture_id = ISSI_ID_SPI,
7600 .model_id = ISSI_IS25LP128,
7601 .total_size = 16384,
7602 .page_size = 256,
7603 /* OTP: 1024B total; read 0x48; write 0x42 */
7604 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7605 .tested = TEST_OK_PREW,
7606 .probe = probe_spi_rdid,
7607 .probe_timing = TIMING_ZERO,
7608 .block_erasers =
7609 {
7610 {
7611 .eraseblocks = { {4 * 1024, 4096} },
7612 .block_erase = spi_block_erase_20,
7613 }, {
7614 .eraseblocks = { {4 * 1024, 4096} },
7615 .block_erase = spi_block_erase_d7,
7616 }, {
7617 .eraseblocks = { {32 * 1024, 512} },
7618 .block_erase = spi_block_erase_52,
7619 }, {
7620 .eraseblocks = { {64 * 1024, 256} },
7621 .block_erase = spi_block_erase_d8,
7622 }, {
7623 .eraseblocks = { {16 * 1024 * 1024, 1} },
7624 .block_erase = spi_block_erase_60,
7625 }, {
7626 .eraseblocks = { {16 * 1024 * 1024, 1} },
7627 .block_erase = spi_block_erase_c7,
7628 }
7629 },
7630 .unlock = spi_disable_blockprotect,
7631 .write = spi_chip_write_256,
7632 .read = spi_chip_read,
7633 .voltage = {2300, 3600},
7634 },
7635
7636 {
7637 .vendor = "ISSI",
David Hendricks61818dc2018-10-28 01:02:21 +00007638 .name = "IS25LP256",
7639 .bustype = BUS_SPI,
7640 .manufacture_id = ISSI_ID_SPI,
7641 .model_id = ISSI_IS25LP256,
7642 .total_size = 32768,
7643 .page_size = 256,
7644 /* supports SFDP */
7645 /* OTP: 1024B total; read 0x68; write 0x62, erase 0x64, read ID 0x4B */
Nico Huberad55d5a2022-06-20 19:32:16 +02007646 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP |
7647 FEATURE_4BA | FEATURE_4BA_ENTER_EAR7 | FEATURE_4BA_EAR_1716,
David Hendricks61818dc2018-10-28 01:02:21 +00007648 .tested = TEST_OK_PREW,
7649 .probe = probe_spi_rdid,
7650 .probe_timing = TIMING_ZERO,
7651 .block_erasers =
7652 {
7653 {
7654 .eraseblocks = { {4 * 1024, 8192} },
7655 .block_erase = spi_block_erase_21,
7656 }, {
7657 .eraseblocks = { {4 * 1024, 8192} },
7658 .block_erase = spi_block_erase_20,
7659 /* could also use spi_block_erase_d7 */
7660 }, {
7661 .eraseblocks = { {32 * 1024, 1024} },
7662 .block_erase = spi_block_erase_5c,
7663 }, {
7664 .eraseblocks = { {32 * 1024, 1024} },
7665 .block_erase = spi_block_erase_52,
7666 }, {
7667 .eraseblocks = { {64 * 1024, 512} },
7668 .block_erase = spi_block_erase_dc,
7669 }, {
7670 .eraseblocks = { {64 * 1024, 512} },
7671 .block_erase = spi_block_erase_d8,
7672 }, {
7673 .eraseblocks = { {32 * 1024 * 1024, 1} },
7674 .block_erase = spi_block_erase_60,
7675 }, {
7676 .eraseblocks = { {32 * 1024 * 1024, 1} },
7677 .block_erase = spi_block_erase_c7,
7678 }
7679 },
7680 .unlock = spi_disable_blockprotect,
7681 .write = spi_chip_write_256,
7682 .read = spi_chip_read,
7683 .voltage = {2300, 3600},
Nico Huberab6b18f2023-01-11 23:38:20 +01007684 .prepare_access = spi_prepare_4ba,
David Hendricks61818dc2018-10-28 01:02:21 +00007685 },
7686
7687 {
7688 .vendor = "ISSI",
Nico Huberb27b8d12018-10-02 20:46:21 +02007689 .name = "IS25WP032",
7690 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +10007691 .manufacture_id = ISSI_ID_SPI,
Nico Huberb27b8d12018-10-02 20:46:21 +02007692 .model_id = ISSI_IS25WP032,
7693 .total_size = 4096,
7694 .page_size = 256,
7695 /* OTP: 1024B total; read 0x48; write 0x42 */
7696 /* QPI enable 0x35, disable 0xF5 */
7697 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7698 .tested = TEST_UNTESTED,
7699 .probe = probe_spi_rdid,
7700 .probe_timing = TIMING_ZERO,
7701 .block_erasers =
7702 {
7703 {
7704 .eraseblocks = { {4 * 1024, 1024} },
7705 .block_erase = spi_block_erase_20,
7706 }, {
7707 .eraseblocks = { {4 * 1024, 1024} },
7708 .block_erase = spi_block_erase_d7,
7709 }, {
7710 .eraseblocks = { {32 * 1024, 128} },
7711 .block_erase = spi_block_erase_52,
7712 }, {
7713 .eraseblocks = { {64 * 1024, 64} },
7714 .block_erase = spi_block_erase_d8,
7715 }, {
7716 .eraseblocks = { {4 * 1024 * 1024, 1} },
7717 .block_erase = spi_block_erase_60,
7718 }, {
7719 .eraseblocks = { {4 * 1024 * 1024, 1} },
7720 .block_erase = spi_block_erase_c7,
7721 }
7722 },
7723 .unlock = spi_disable_blockprotect,
7724 .write = spi_chip_write_256,
7725 .read = spi_chip_read,
7726 .voltage = {1650, 1950},
7727 },
7728
7729 {
7730 .vendor = "ISSI",
7731 .name = "IS25WP064",
7732 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +10007733 .manufacture_id = ISSI_ID_SPI,
Nico Huberb27b8d12018-10-02 20:46:21 +02007734 .model_id = ISSI_IS25WP064,
7735 .total_size = 8192,
7736 .page_size = 256,
7737 /* OTP: 1024B total; read 0x48; write 0x42 */
7738 /* QPI enable 0x35, disable 0xF5 */
7739 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7740 .tested = TEST_OK_PREW,
7741 .probe = probe_spi_rdid,
7742 .probe_timing = TIMING_ZERO,
7743 .block_erasers =
7744 {
7745 {
7746 .eraseblocks = { {4 * 1024, 2048} },
7747 .block_erase = spi_block_erase_20,
7748 }, {
7749 .eraseblocks = { {4 * 1024, 2048} },
7750 .block_erase = spi_block_erase_d7,
7751 }, {
7752 .eraseblocks = { {32 * 1024, 256} },
7753 .block_erase = spi_block_erase_52,
7754 }, {
7755 .eraseblocks = { {64 * 1024, 128} },
7756 .block_erase = spi_block_erase_d8,
7757 }, {
7758 .eraseblocks = { {8 * 1024 * 1024, 1} },
7759 .block_erase = spi_block_erase_60,
7760 }, {
7761 .eraseblocks = { {8 * 1024 * 1024, 1} },
7762 .block_erase = spi_block_erase_c7,
7763 }
7764 },
7765 .unlock = spi_disable_blockprotect,
7766 .write = spi_chip_write_256,
7767 .read = spi_chip_read,
7768 .voltage = {1650, 1950},
7769 },
7770
7771 {
7772 .vendor = "ISSI",
David Hendricks3083ed92017-05-02 13:25:56 -07007773 .name = "IS25WP128",
7774 .bustype = BUS_SPI,
7775 .manufacture_id = ISSI_ID_SPI,
7776 .model_id = ISSI_IS25WP128,
7777 .total_size = 16384,
7778 .page_size = 256,
7779 /* OTP: 1024B total; read 0x48; write 0x42 */
Nico Huberb27b8d12018-10-02 20:46:21 +02007780 /* QPI enable 0x35, disable 0xF5 */
7781 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
David Hendricks3083ed92017-05-02 13:25:56 -07007782 .tested = TEST_OK_PREW,
7783 .probe = probe_spi_rdid,
7784 .probe_timing = TIMING_ZERO,
7785 .block_erasers =
7786 {
7787 {
7788 .eraseblocks = { {4 * 1024, 4096} },
7789 .block_erase = spi_block_erase_20,
7790 }, {
7791 .eraseblocks = { {4 * 1024, 4096} },
7792 .block_erase = spi_block_erase_d7,
7793 }, {
7794 .eraseblocks = { {32 * 1024, 512} },
7795 .block_erase = spi_block_erase_52,
7796 }, {
7797 .eraseblocks = { {64 * 1024, 256} },
7798 .block_erase = spi_block_erase_d8,
7799 }, {
7800 .eraseblocks = { {16 * 1024 * 1024, 1} },
7801 .block_erase = spi_block_erase_60,
7802 }, {
7803 .eraseblocks = { {16 * 1024 * 1024, 1} },
7804 .block_erase = spi_block_erase_c7,
7805 }
7806 },
7807 .unlock = spi_disable_blockprotect,
7808 .write = spi_chip_write_256,
7809 .read = spi_chip_read,
7810 .voltage = {1650, 1950},
7811 },
7812
7813 {
7814 .vendor = "ISSI",
David Hendricks61818dc2018-10-28 01:02:21 +00007815 .name = "IS25WP256",
7816 .bustype = BUS_SPI,
7817 .manufacture_id = ISSI_ID_SPI,
7818 .model_id = ISSI_IS25WP256,
7819 .total_size = 32768,
7820 .page_size = 256,
7821 /* supports SFDP */
7822 /* OTP: 1024B total; read 0x68; write 0x62, erase 0x64, read ID 0x4B */
Nico Huberad55d5a2022-06-20 19:32:16 +02007823 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP |
7824 FEATURE_4BA | FEATURE_4BA_ENTER_EAR7 | FEATURE_4BA_EAR_1716,
David Hendricks61818dc2018-10-28 01:02:21 +00007825 .tested = TEST_OK_PREW,
7826 .probe = probe_spi_rdid,
7827 .probe_timing = TIMING_ZERO,
7828 .block_erasers =
7829 {
7830 {
7831 .eraseblocks = { {4 * 1024, 8192} },
7832 .block_erase = spi_block_erase_21,
7833 }, {
7834 .eraseblocks = { {4 * 1024, 8192} },
7835 .block_erase = spi_block_erase_20,
7836 /* could also use spi_block_erase_d7 */
7837 }, {
7838 .eraseblocks = { {32 * 1024, 1024} },
7839 .block_erase = spi_block_erase_5c,
7840 }, {
7841 .eraseblocks = { {32 * 1024, 1024} },
7842 .block_erase = spi_block_erase_52,
7843 }, {
7844 .eraseblocks = { {64 * 1024, 512} },
7845 .block_erase = spi_block_erase_dc,
7846 }, {
7847 .eraseblocks = { {64 * 1024, 512} },
7848 .block_erase = spi_block_erase_d8,
7849 }, {
7850 .eraseblocks = { {32 * 1024 * 1024, 1} },
7851 .block_erase = spi_block_erase_60,
7852 }, {
7853 .eraseblocks = { {32 * 1024 * 1024, 1} },
7854 .block_erase = spi_block_erase_c7,
7855 }
7856 },
7857 .unlock = spi_disable_blockprotect,
7858 .write = spi_chip_write_256,
7859 .read = spi_chip_read,
7860 .voltage = {1650, 1950},
Nico Huberab6b18f2023-01-11 23:38:20 +01007861 .prepare_access = spi_prepare_4ba,
David Hendricks61818dc2018-10-28 01:02:21 +00007862 },
7863
7864 {
7865 .vendor = "ISSI",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007866 .name = "IS29GL064B",
7867 .bustype = BUS_PARALLEL,
7868 .manufacture_id = ISSI_ID,
7869 .model_id = ISSI_PMC_IS29GL064B,
7870 .total_size = 8192,
7871 .page_size = 128 * 1024, /* actual page size is 16 */
7872 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7873 .tested = TEST_UNTESTED,
7874 .probe = probe_jedec_29gl,
7875 .probe_timing = TIMING_ZERO,
7876 .block_erasers =
7877 {
7878 {
7879 .eraseblocks = {
7880 {8 * 1024, 8},
7881 {64 * 1024, 127},
7882 },
7883 .block_erase = erase_sector_jedec,
7884 }, {
7885 .eraseblocks = { {8 * 1024 * 1024, 1} },
7886 .block_erase = erase_chip_block_jedec,
7887 },
7888 },
7889 .write = write_jedec_1,
7890 .read = read_memmapped,
7891 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +01007892 .prepare_access = prepare_memory_access,
7893 .finish_access = finish_memory_access,
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007894 },
7895
7896 {
7897 .vendor = "ISSI",
Alan Green1f9cc7d2019-07-01 11:10:45 +10007898 .name = "IS29GL064H/L",
7899 .bustype = BUS_PARALLEL,
7900 .manufacture_id = ISSI_ID,
7901 .model_id = ISSI_PMC_IS29GL064HL,
7902 .total_size = 8192,
7903 .page_size = 128 * 1024, /* actual page size is 16 */
7904 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7905 .tested = TEST_UNTESTED,
7906 .probe = probe_jedec_29gl,
7907 .probe_timing = TIMING_ZERO,
7908 .block_erasers =
7909 {
7910 {
7911 .eraseblocks = { {64 * 1024, 128} },
7912 .block_erase = erase_sector_jedec,
7913 }, {
7914 .eraseblocks = { {8 * 1024 * 1024, 1} },
7915 .block_erase = erase_chip_block_jedec,
7916 },
7917 },
7918 .write = write_jedec_1,
7919 .read = read_memmapped,
7920 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +01007921 .prepare_access = prepare_memory_access,
7922 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007923 },
7924
7925 {
7926 .vendor = "ISSI",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007927 .name = "IS29GL064T",
7928 .bustype = BUS_PARALLEL,
7929 .manufacture_id = ISSI_ID,
7930 .model_id = ISSI_PMC_IS29GL064T,
7931 .total_size = 8192,
7932 .page_size = 128 * 1024, /* actual page size is 16 */
7933 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7934 .tested = TEST_UNTESTED,
7935 .probe = probe_jedec_29gl,
7936 .probe_timing = TIMING_ZERO,
7937 .block_erasers =
7938 {
7939 {
7940 .eraseblocks = {
7941 {64 * 1024, 127},
7942 {8 * 1024, 8},
7943 },
7944 .block_erase = erase_sector_jedec,
7945 }, {
7946 .eraseblocks = { {8 * 1024 * 1024, 1} },
7947 .block_erase = erase_chip_block_jedec,
7948 },
7949 },
7950 .write = write_jedec_1,
7951 .read = read_memmapped,
7952 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +01007953 .prepare_access = prepare_memory_access,
7954 .finish_access = finish_memory_access,
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007955 },
7956
7957 {
7958 .vendor = "ISSI",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007959 .name = "IS29GL128H/L",
7960 .bustype = BUS_PARALLEL,
7961 .manufacture_id = ISSI_ID,
7962 .model_id = ISSI_PMC_IS29GL128HL,
7963 .total_size = 16384,
7964 .page_size = 128 * 1024, /* actual page size is 16 */
7965 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7966 .tested = TEST_UNTESTED,
7967 .probe = probe_jedec_29gl,
7968 .probe_timing = TIMING_ZERO,
7969 .block_erasers =
7970 {
7971 {
7972 .eraseblocks = { {128 * 1024, 128} },
7973 .block_erase = erase_sector_jedec,
7974 }, {
7975 .eraseblocks = { {16 * 1024 * 1024, 1} },
7976 .block_erase = erase_chip_block_jedec,
7977 },
7978 },
7979 .write = write_jedec_1,
7980 .read = read_memmapped,
7981 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +01007982 .prepare_access = prepare_memory_access,
7983 .finish_access = finish_memory_access,
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007984 },
7985
7986 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007987 .vendor = "Intel",
7988 .name = "25F160S33B8",
7989 .bustype = BUS_SPI,
7990 .manufacture_id = INTEL_ID,
7991 .model_id = INTEL_25F160S33B8,
7992 .total_size = 2048,
7993 .page_size = 256,
7994 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
7995 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7996 .tested = TEST_UNTESTED,
7997 .probe = probe_spi_rdid,
7998 .probe_timing = TIMING_ZERO,
7999 .block_erasers =
8000 {
8001 {
8002 /* This chip supports erasing of the 8 so-called "parameter blocks" with
8003 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
8004 * have no effect on the memory contents, but sets a flag in the SR.
8005 .eraseblocks = {
8006 {8 * 1024, 8},
8007 {64 * 1024, 31} // inaccessible
8008 },
8009 .block_erase = spi_block_erase_40,
8010 }, { */
8011 .eraseblocks = { {64 * 1024, 32} },
8012 .block_erase = spi_block_erase_d8,
8013 }, {
8014 .eraseblocks = { {2 * 1024 * 1024, 1} },
8015 .block_erase = spi_block_erase_c7,
8016 }
8017 },
8018 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
8019 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
8020 .write = spi_chip_write_256,
8021 .read = spi_chip_read, /* also fast read 0x0B */
8022 .voltage = {2700, 3600},
8023 },
8024
8025 {
8026 .vendor = "Intel",
8027 .name = "25F160S33T8",
8028 .bustype = BUS_SPI,
8029 .manufacture_id = INTEL_ID,
8030 .model_id = INTEL_25F160S33T8,
8031 .total_size = 2048,
8032 .page_size = 256,
8033 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
8034 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8035 .tested = TEST_UNTESTED,
8036 .probe = probe_spi_rdid,
8037 .probe_timing = TIMING_ZERO,
8038 .block_erasers =
8039 {
8040 {
8041 /* This chip supports erasing of the 8 so-called "parameter blocks" with
8042 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
8043 * have no effect on the memory contents, but sets a flag in the SR.
8044 .eraseblocks = {
8045 {64 * 1024, 31}, // inaccessible
8046 {8 * 1024, 8}
8047 },
8048 .block_erase = spi_block_erase_40,
8049 }, { */
8050 .eraseblocks = { {64 * 1024, 32} },
8051 .block_erase = spi_block_erase_d8,
8052 }, {
8053 .eraseblocks = { {2 * 1024 * 1024, 1} },
8054 .block_erase = spi_block_erase_c7,
8055 }
8056 },
8057 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
8058 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
8059 .write = spi_chip_write_256,
8060 .read = spi_chip_read, /* also fast read 0x0B */
8061 .voltage = {2700, 3600},
8062 },
8063
8064 {
8065 .vendor = "Intel",
8066 .name = "25F320S33B8",
8067 .bustype = BUS_SPI,
8068 .manufacture_id = INTEL_ID,
8069 .model_id = INTEL_25F320S33B8,
8070 .total_size = 4096,
8071 .page_size = 256,
8072 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
8073 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8074 .tested = TEST_UNTESTED,
8075 .probe = probe_spi_rdid,
8076 .probe_timing = TIMING_ZERO,
8077 .block_erasers =
8078 {
8079 {
8080 /* This chip supports erasing of the 8 so-called "parameter blocks" with
8081 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
8082 * have no effect on the memory contents, but sets a flag in the SR.
8083 .eraseblocks = {
8084 {8 * 1024, 8},
8085 {64 * 1024, 63} // inaccessible
8086 },
8087 .block_erase = spi_block_erase_40,
8088 }, { */
8089 .eraseblocks = { {64 * 1024, 64} },
8090 .block_erase = spi_block_erase_d8,
8091 }, {
8092 .eraseblocks = { {4 * 1024 * 1024, 1} },
8093 .block_erase = spi_block_erase_c7,
8094 }
8095 },
8096 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
8097 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
8098 .write = spi_chip_write_256,
8099 .read = spi_chip_read, /* also fast read 0x0B */
8100 .voltage = {2700, 3600},
8101 },
8102
8103 {
8104 .vendor = "Intel",
8105 .name = "25F320S33T8",
8106 .bustype = BUS_SPI,
8107 .manufacture_id = INTEL_ID,
8108 .model_id = INTEL_25F320S33T8,
8109 .total_size = 4096,
8110 .page_size = 256,
8111 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
8112 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8113 .tested = TEST_UNTESTED,
8114 .probe = probe_spi_rdid,
8115 .probe_timing = TIMING_ZERO,
8116 .block_erasers =
8117 {
8118 {
8119 /* This chip supports erasing of the 8 so-called "parameter blocks" with
8120 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
8121 * have no effect on the memory contents, but sets a flag in the SR.
8122 .eraseblocks = {
8123 {64 * 1024, 63}, // inaccessible
8124 {8 * 1024, 8}
8125 },
8126 .block_erase = spi_block_erase_40,
8127 }, { */
8128 .eraseblocks = { {64 * 1024, 64} },
8129 .block_erase = spi_block_erase_d8,
8130 }, {
8131 .eraseblocks = { {4 * 1024 * 1024, 1} },
8132 .block_erase = spi_block_erase_c7,
8133 }
8134 },
8135 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
8136 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
8137 .write = spi_chip_write_256,
8138 .read = spi_chip_read, /* also fast read 0x0B */
8139 .voltage = {2700, 3600},
8140 },
8141
8142 {
8143 .vendor = "Intel",
8144 .name = "25F640S33B8",
8145 .bustype = BUS_SPI,
8146 .manufacture_id = INTEL_ID,
8147 .model_id = INTEL_25F640S33B8,
8148 .total_size = 8192,
8149 .page_size = 256,
8150 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
8151 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Zoltan HERPAIe0e8b2b2020-08-08 16:04:34 +02008152 .tested = TEST_OK_PREW,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008153 .probe = probe_spi_rdid,
8154 .probe_timing = TIMING_ZERO,
8155 .block_erasers =
8156 {
8157 {
8158 /* This chip supports erasing of the 8 so-called "parameter blocks" with
8159 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
8160 * have no effect on the memory contents, but sets a flag in the SR.
8161 .eraseblocks = {
8162 {8 * 1024, 8},
8163 {64 * 1024, 127} // inaccessible
8164 },
8165 .block_erase = spi_block_erase_40,
8166 }, { */
8167 .eraseblocks = { {64 * 1024, 128} },
8168 .block_erase = spi_block_erase_d8,
8169 }, {
8170 .eraseblocks = { {8 * 1024 * 1024, 1} },
8171 .block_erase = spi_block_erase_c7,
8172 }
8173 },
8174 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
8175 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
8176 .write = spi_chip_write_256,
8177 .read = spi_chip_read, /* also fast read 0x0B */
8178 .voltage = {2700, 3600},
8179 },
8180
8181 {
8182 .vendor = "Intel",
8183 .name = "25F640S33T8",
8184 .bustype = BUS_SPI,
8185 .manufacture_id = INTEL_ID,
8186 .model_id = INTEL_25F640S33T8,
8187 .total_size = 8192,
8188 .page_size = 256,
8189 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
8190 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8191 .tested = TEST_UNTESTED,
8192 .probe = probe_spi_rdid,
8193 .probe_timing = TIMING_ZERO,
8194 .block_erasers =
8195 {
8196 {
8197 /* This chip supports erasing of the 8 so-called "parameter blocks" with
8198 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
8199 * have no effect on the memory contents, but sets a flag in the SR.
8200 .eraseblocks = {
8201 {64 * 1024, 127}, // inaccessible
8202 {8 * 1024, 8}
8203 },
8204 .block_erase = spi_block_erase_40,
8205 }, { */
8206 .eraseblocks = { {64 * 1024, 128} },
8207 .block_erase = spi_block_erase_d8,
8208 }, {
8209 .eraseblocks = { {8 * 1024 * 1024, 1} },
8210 .block_erase = spi_block_erase_c7,
8211 }
8212 },
8213 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
8214 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
8215 .write = spi_chip_write_256,
8216 .read = spi_chip_read, /* also fast read 0x0B */
8217 .voltage = {2700, 3600},
8218 },
8219
8220 {
8221 .vendor = "Intel",
8222 .name = "28F001BN/BX-B",
8223 .bustype = BUS_PARALLEL,
8224 .manufacture_id = INTEL_ID,
8225 .model_id = INTEL_28F001B,
8226 .total_size = 128,
8227 .page_size = 128 * 1024, /* 8k + 2x4k + 112k */
8228 .tested = TEST_UNTESTED,
8229 .probe = probe_jedec,
8230 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8231 .block_erasers =
8232 {
8233 {
8234 .eraseblocks = {
8235 {8 * 1024, 1},
8236 {4 * 1024, 2},
8237 {112 * 1024, 1},
8238 },
8239 .block_erase = erase_block_82802ab,
8240 },
8241 },
8242 .write = write_82802ab,
8243 .read = read_memmapped,
8244 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +01008245 .prepare_access = prepare_memory_access,
8246 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008247 },
8248
8249 {
8250 .vendor = "Intel",
8251 .name = "28F001BN/BX-T",
8252 .bustype = BUS_PARALLEL,
8253 .manufacture_id = INTEL_ID,
8254 .model_id = INTEL_28F001T,
8255 .total_size = 128,
8256 .page_size = 128 * 1024, /* 112k + 2x4k + 8k */
8257 .tested = TEST_OK_PREW,
8258 .probe = probe_jedec,
8259 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8260 .block_erasers =
8261 {
8262 {
8263 .eraseblocks = {
8264 {112 * 1024, 1},
8265 {4 * 1024, 2},
8266 {8 * 1024, 1},
8267 },
8268 .block_erase = erase_block_82802ab,
8269 },
8270 },
8271 .write = write_82802ab,
8272 .read = read_memmapped,
8273 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +01008274 .prepare_access = prepare_memory_access,
8275 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008276 },
8277
8278 {
8279 .vendor = "Intel",
8280 .name = "28F002BC/BL/BV/BX-T",
8281 .bustype = BUS_PARALLEL,
8282 .manufacture_id = INTEL_ID,
8283 .model_id = INTEL_28F002T,
8284 .total_size = 256,
8285 .page_size = 256 * 1024,
8286 .tested = TEST_OK_PRE,
8287 .probe = probe_82802ab,
8288 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8289 .block_erasers =
8290 {
8291 {
8292 .eraseblocks = {
8293 {128 * 1024, 1},
8294 {96 * 1024, 1},
8295 {8 * 1024, 2},
8296 {16 * 1024, 1},
8297 },
8298 .block_erase = erase_block_82802ab,
8299 },
8300 },
8301 .write = write_82802ab,
8302 .read = read_memmapped,
Nico Huber9eec4072023-01-12 01:17:30 +01008303 .prepare_access = prepare_memory_access,
8304 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008305 },
8306
8307 {
8308 .vendor = "Intel",
8309 .name = "28F004B5/BE/BV/BX-B",
8310 .bustype = BUS_PARALLEL,
8311 .manufacture_id = INTEL_ID,
8312 .model_id = INTEL_28F004B,
8313 .total_size = 512,
8314 .page_size = 128 * 1024, /* maximal block size */
8315 .tested = TEST_UNTESTED,
8316 .probe = probe_82802ab,
8317 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8318 .block_erasers =
8319 {
8320 {
8321 .eraseblocks = {
8322 {16 * 1024, 1},
8323 {8 * 1024, 2},
8324 {96 * 1024, 1},
8325 {128 * 1024, 3},
8326 },
8327 .block_erase = erase_block_82802ab,
8328 },
8329 },
8330 .write = write_82802ab,
8331 .read = read_memmapped,
Nico Huber9eec4072023-01-12 01:17:30 +01008332 .prepare_access = prepare_memory_access,
8333 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008334 },
8335
8336 {
8337 .vendor = "Intel",
8338 .name = "28F004B5/BE/BV/BX-T",
8339 .bustype = BUS_PARALLEL,
8340 .manufacture_id = INTEL_ID,
8341 .model_id = INTEL_28F004T,
8342 .total_size = 512,
8343 .page_size = 128 * 1024, /* maximal block size */
8344 .tested = TEST_UNTESTED,
8345 .probe = probe_82802ab,
8346 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8347 .block_erasers =
8348 {
8349 {
8350 .eraseblocks = {
8351 {128 * 1024, 3},
8352 {96 * 1024, 1},
8353 {8 * 1024, 2},
8354 {16 * 1024, 1},
8355 },
8356 .block_erase = erase_block_82802ab,
8357 },
8358 },
8359 .write = write_82802ab,
8360 .read = read_memmapped,
Nico Huber9eec4072023-01-12 01:17:30 +01008361 .prepare_access = prepare_memory_access,
8362 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008363 },
8364
8365 {
8366 .vendor = "Intel",
8367 .name = "28F008S3/S5/SC",
8368 .bustype = BUS_PARALLEL,
8369 .manufacture_id = INTEL_ID,
8370 .model_id = INTEL_28F004S3,
8371 .total_size = 512,
8372 .page_size = 256,
8373 .tested = TEST_UNTESTED,
8374 .probe = probe_82802ab,
8375 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8376 .block_erasers =
8377 {
8378 {
8379 .eraseblocks = { {64 * 1024, 8} },
8380 .block_erase = erase_block_82802ab,
8381 },
8382 },
8383 .unlock = unlock_28f004s5,
8384 .write = write_82802ab,
8385 .read = read_memmapped,
Nico Huber9eec4072023-01-12 01:17:30 +01008386 .prepare_access = prepare_memory_access,
8387 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008388 },
8389
8390 {
8391 .vendor = "Intel",
8392 .name = "28F400BV/BX/CE/CV-B",
8393 .bustype = BUS_PARALLEL,
8394 .manufacture_id = INTEL_ID,
8395 .model_id = INTEL_28F400B,
8396 .total_size = 512,
8397 .page_size = 128 * 1024, /* maximal block size */
8398 .feature_bits = FEATURE_ADDR_SHIFTED,
8399 .tested = TEST_UNTESTED,
8400 .probe = probe_82802ab,
8401 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8402 .block_erasers =
8403 {
8404 {
8405 .eraseblocks = {
8406 {16 * 1024, 1},
8407 {8 * 1024, 2},
8408 {96 * 1024, 1},
8409 {128 * 1024, 3},
8410 },
8411 .block_erase = erase_block_82802ab,
8412 },
8413 },
8414 .write = write_82802ab,
8415 .read = read_memmapped,
Nico Huber9eec4072023-01-12 01:17:30 +01008416 .prepare_access = prepare_memory_access,
8417 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008418 },
8419
8420 {
8421 .vendor = "Intel",
8422 .name = "28F400BV/BX/CE/CV-T",
8423 .bustype = BUS_PARALLEL,
8424 .manufacture_id = INTEL_ID,
8425 .model_id = INTEL_28F400T,
8426 .total_size = 512,
8427 .page_size = 128 * 1024, /* maximal block size */
8428 .feature_bits = FEATURE_ADDR_SHIFTED,
8429 .tested = TEST_UNTESTED,
8430 .probe = probe_82802ab,
8431 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8432 .block_erasers =
8433 {
8434 {
8435 .eraseblocks = {
8436 {128 * 1024, 3},
8437 {96 * 1024, 1},
8438 {8 * 1024, 2},
8439 {16 * 1024, 1},
8440 },
8441 .block_erase = erase_block_82802ab,
8442 },
8443 },
8444 .write = write_82802ab,
8445 .read = read_memmapped,
Nico Huber9eec4072023-01-12 01:17:30 +01008446 .prepare_access = prepare_memory_access,
8447 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008448 },
8449
8450 {
8451 .vendor = "Intel",
8452 .name = "82802AB",
8453 .bustype = BUS_FWH,
8454 .manufacture_id = INTEL_ID,
8455 .model_id = INTEL_82802AB,
8456 .total_size = 512,
8457 .page_size = 64 * 1024,
Alan Green88552572019-07-24 13:56:06 +10008458 .tested = TEST_OK_PREW,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008459 .probe = probe_82802ab,
8460 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
8461 .block_erasers =
8462 {
8463 {
8464 .eraseblocks = { {64 * 1024, 8} },
8465 .block_erase = erase_block_82802ab,
8466 },
8467 },
8468 .unlock = unlock_regspace2_uniform_64k,
8469 .write = write_82802ab,
8470 .read = read_memmapped,
8471 .voltage = {3000, 3600},
Nico Huberb1974022023-01-12 13:13:12 +01008472 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +01008473 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008474 },
8475
8476 {
8477 .vendor = "Intel",
8478 .name = "82802AC",
8479 .bustype = BUS_FWH,
8480 .manufacture_id = INTEL_ID,
8481 .model_id = INTEL_82802AC,
8482 .total_size = 1024,
8483 .page_size = 64 * 1024,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008484 .tested = TEST_OK_PR,
8485 .probe = probe_82802ab,
8486 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
8487 .block_erasers =
8488 {
8489 {
8490 .eraseblocks = { {64 * 1024, 16} },
8491 .block_erase = erase_block_82802ab,
8492 },
8493 },
8494 .unlock = unlock_regspace2_uniform_64k,
8495 .write = write_82802ab,
8496 .read = read_memmapped,
8497 .voltage = {3000, 3600},
Nico Huberb1974022023-01-12 13:13:12 +01008498 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +01008499 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008500 },
8501
8502 {
8503 .vendor = "Macronix",
8504 .name = "MX23L12854",
8505 .bustype = BUS_SPI,
8506 .manufacture_id = MACRONIX_ID,
8507 .model_id = MACRONIX_MX23L12854,
8508 .total_size = 16384,
8509 .page_size = 256,
8510 .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA},
8511 .probe = probe_spi_rdid,
8512 .probe_timing = TIMING_ZERO,
8513 .write = NULL, /* MX23L12854 is a mask ROM, so it is read-only */
8514 .read = spi_chip_read, /* Fast read (0x0B) supported */
8515 .voltage = {3000, 3600},
8516 },
8517
8518 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008519 .vendor = "Macronix",
Michael Coppola583ea322014-08-20 18:56:35 +00008520 .name = "MX23L1654",
8521 .bustype = BUS_SPI,
8522 .manufacture_id = MACRONIX_ID,
8523 .model_id = MACRONIX_MX23L1654,
8524 .total_size = 2048,
8525 .page_size = 256,
8526 .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA},
8527 .probe = probe_spi_rdid,
8528 .probe_timing = TIMING_ZERO,
8529 .write = NULL, /* MX23L1654 is a mask ROM, so it is read-only */
8530 .read = spi_chip_read, /* Fast read (0x0B) supported */
8531 .voltage = {3000, 3600},
8532 },
8533
8534 {
8535 .vendor = "Macronix",
Michael Coppola4e7f36e2014-05-03 23:01:18 +00008536 .name = "MX23L3254",
8537 .bustype = BUS_SPI,
8538 .manufacture_id = MACRONIX_ID,
8539 .model_id = MACRONIX_MX23L3254,
8540 .total_size = 4096,
8541 .page_size = 256,
Stefan Tauner6455dff2014-05-26 00:36:24 +00008542 .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA},
Michael Coppola4e7f36e2014-05-03 23:01:18 +00008543 .probe = probe_spi_rdid,
8544 .probe_timing = TIMING_ZERO,
8545 .write = NULL, /* MX23L3254 is a mask ROM, so it is read-only */
8546 .read = spi_chip_read, /* Fast read (0x0B) supported */
8547 .voltage = {3000, 3600},
8548 },
8549
8550 {
8551 .vendor = "Macronix",
Michael Coppola583ea322014-08-20 18:56:35 +00008552 .name = "MX23L6454",
8553 .bustype = BUS_SPI,
8554 .manufacture_id = MACRONIX_ID,
8555 .model_id = MACRONIX_MX23L6454,
8556 .total_size = 8192,
8557 .page_size = 256,
Stefan Tauner23e10b82016-01-23 16:16:49 +00008558 .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA},
Michael Coppola583ea322014-08-20 18:56:35 +00008559 .probe = probe_spi_rdid,
8560 .probe_timing = TIMING_ZERO,
8561 .write = NULL, /* MX23L6454 is a mask ROM, so it is read-only */
8562 .read = spi_chip_read, /* Fast read (0x0B) supported */
8563 .voltage = {3000, 3600},
8564 },
8565
8566 {
8567 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00008568 .name = "MX25L1005(C)/MX25L1006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008569 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008570 .manufacture_id = MACRONIX_ID,
8571 .model_id = MACRONIX_MX25L1005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008572 .total_size = 128,
8573 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00008574 /* MX25L1006E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00008575 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00008576 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008577 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008578 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00008579 .block_erasers =
8580 {
8581 {
8582 .eraseblocks = { {4 * 1024, 32} },
8583 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008584 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00008585 .eraseblocks = { {64 * 1024, 2} },
8586 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008587 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00008588 .eraseblocks = { {128 * 1024, 1} },
8589 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008590 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00008591 .eraseblocks = { {128 * 1024, 1} },
8592 .block_erase = spi_block_erase_c7,
8593 },
8594 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008595 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008596 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008597 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00008598 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L1006E supports dual I/O */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008599 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008600 },
8601
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008602 {
8603 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008604 .name = "MX25L12805D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008605 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008606 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008607 .model_id = MACRONIX_MX25L12805D,
8608 .total_size = 16384,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008609 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008610 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8611 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008612 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008613 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008614 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008615 .block_erasers =
8616 {
8617 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008618 .eraseblocks = { {4 * 1024, 4096} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008619 .block_erase = spi_block_erase_20,
8620 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008621 .eraseblocks = { {64 * 1024, 256} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008622 .block_erase = spi_block_erase_d8,
8623 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008624 .eraseblocks = { {16 * 1024 * 1024, 1} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008625 .block_erase = spi_block_erase_60,
8626 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008627 .eraseblocks = { {16 * 1024 * 1024, 1} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008628 .block_erase = spi_block_erase_c7,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008629 }
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008630 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10008631 .printlock = spi_prettyprint_status_register_bp3_srwd,
8632 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008633 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00008634 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008635 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008636 },
8637
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008638 {
8639 .vendor = "Macronix",
Tao Xia571f6ad2021-07-21 16:41:53 +08008640 .name = "MX25L12833F/MX25L12835F/MX25L12845E/MX25L12865E/MX25L12873F",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008641 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008642 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008643 .model_id = MACRONIX_MX25L12805D,
8644 .total_size = 16384,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008645 .page_size = 256,
Tao Xia571f6ad2021-07-21 16:41:53 +08008646 /* OTP: MX25L12833F has 1KB total, others have 512B total; enter 0xB1, exit 0xC1 */
Alan Green1f9cc7d2019-07-01 11:10:45 +10008647 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner8179be52011-06-04 13:13:34 +00008648 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008649 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008650 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008651 .block_erasers =
8652 {
8653 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008654 .eraseblocks = { {4 * 1024, 4096} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008655 .block_erase = spi_block_erase_20,
8656 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008657 .eraseblocks = { {32 * 1024, 512} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008658 .block_erase = spi_block_erase_52,
8659 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008660 .eraseblocks = { {64 * 1024, 256} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008661 .block_erase = spi_block_erase_d8,
8662 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008663 .eraseblocks = { {16 * 1024 * 1024, 1} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008664 .block_erase = spi_block_erase_60,
8665 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008666 .eraseblocks = { {16 * 1024 * 1024, 1} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008667 .block_erase = spi_block_erase_c7,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008668 }
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008669 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10008670 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
8671 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8672 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008673 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00008674 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008675 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008676 },
8677
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008678 {
8679 .vendor = "Macronix",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008680 .name = "MX25L1605",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008681 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008682 .manufacture_id = MACRONIX_ID,
8683 .model_id = MACRONIX_MX25L1605,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008684 .total_size = 2048,
8685 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00008686 .feature_bits = FEATURE_WRSR_WREN,
Sven Schnelle4bd8a402011-03-07 10:59:06 +00008687 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008688 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008689 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008690 .block_erasers =
8691 {
8692 {
Stefan Tauner226037d2013-03-16 01:22:12 +00008693 .eraseblocks = { {64 * 1024, 32} },
8694 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008695 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00008696 .eraseblocks = { {64 * 1024, 32} },
8697 .block_erase = spi_block_erase_d8,
8698 }, {
8699 .eraseblocks = { {2 * 1024 * 1024, 1} },
8700 .block_erase = spi_block_erase_60,
8701 }, {
8702 .eraseblocks = { {2 * 1024 * 1024, 1} },
8703 .block_erase = spi_block_erase_c7,
8704 },
8705 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008706 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */
Stefan Tauner226037d2013-03-16 01:22:12 +00008707 .unlock = spi_disable_blockprotect,
8708 .write = spi_chip_write_256,
8709 .read = spi_chip_read, /* Fast read (0x0B) supported */
8710 .voltage = {2700, 3600},
8711 },
8712
8713 {
8714 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008715 .name = "MX25L1605A/MX25L1606E/MX25L1608E",
Stefan Tauner226037d2013-03-16 01:22:12 +00008716 .bustype = BUS_SPI,
8717 .manufacture_id = MACRONIX_ID,
8718 .model_id = MACRONIX_MX25L1605,
8719 .total_size = 2048,
8720 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008721 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L1606E and MX25L1608E only) */
Stefan Tauner226037d2013-03-16 01:22:12 +00008722 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8723 .tested = TEST_OK_PREW,
8724 .probe = probe_spi_rdid,
8725 .probe_timing = TIMING_ZERO,
8726 .block_erasers =
8727 {
8728 {
8729 .eraseblocks = { {4 * 1024, 512} },
8730 .block_erase = spi_block_erase_20,
8731 }, {
8732 .eraseblocks = { {64 * 1024, 32} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008733 .block_erase = spi_block_erase_52,
8734 }, {
8735 .eraseblocks = { {64 * 1024, 32} },
8736 .block_erase = spi_block_erase_d8,
8737 }, {
8738 .eraseblocks = { {2 * 1024 * 1024, 1} },
8739 .block_erase = spi_block_erase_60,
8740 }, {
8741 .eraseblocks = { {2 * 1024 * 1024, 1} },
8742 .block_erase = spi_block_erase_c7,
8743 },
8744 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008745 .printlock = spi_prettyprint_status_register_bp3_srwd, /* MX25L1605A bp2 only */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008746 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008747 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008748 .read = spi_chip_read, /* Fast read (0x0B) supported (MX25L1608E supports dual-I/O read) */
Stefan Tauner226037d2013-03-16 01:22:12 +00008749 .voltage = {2700, 3600},
8750 },
8751
8752 {
8753 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008754 .name = "MX25L1605D/MX25L1608D/MX25L1673E",
Stefan Tauner226037d2013-03-16 01:22:12 +00008755 .bustype = BUS_SPI,
8756 .manufacture_id = MACRONIX_ID,
8757 .model_id = MACRONIX_MX25L1605,
8758 .total_size = 2048,
8759 .page_size = 256,
8760 .feature_bits = FEATURE_WRSR_WREN,
8761 .tested = TEST_OK_PREW,
8762 .probe = probe_spi_rdid,
8763 .probe_timing = TIMING_ZERO,
8764 .block_erasers =
8765 {
8766 {
8767 .eraseblocks = { {4 * 1024, 512} },
8768 .block_erase = spi_block_erase_20,
8769 }, {
8770 .eraseblocks = { {64 * 1024, 32} },
8771 .block_erase = spi_block_erase_d8,
8772 }, {
8773 .eraseblocks = { {2 * 1024 * 1024, 1} },
8774 .block_erase = spi_block_erase_60,
8775 }, {
8776 .eraseblocks = { {2 * 1024 * 1024, 1} },
8777 .block_erase = spi_block_erase_c7,
8778 },
8779 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008780 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: Continuously Program (CP) mode, for 73E is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008781 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00008782 .write = spi_chip_write_256,
8783 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008784 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008785 },
8786
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008787 {
8788 .vendor = "Macronix",
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008789 .name = "MX25L1635D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008790 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008791 .manufacture_id = MACRONIX_ID,
8792 .model_id = MACRONIX_MX25L1635D,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008793 .total_size = 2048,
8794 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008795 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8796 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Angel Ponsc2054872021-01-15 18:57:32 +01008797 .tested = TEST_OK_PREW,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008798 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008799 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008800 .block_erasers =
8801 {
8802 {
8803 .eraseblocks = { {4 * 1024, 512} },
8804 .block_erase = spi_block_erase_20,
8805 }, {
8806 .eraseblocks = { {64 * 1024, 32} },
8807 .block_erase = spi_block_erase_d8,
8808 }, {
8809 .eraseblocks = { {2 * 1024 * 1024, 1} },
8810 .block_erase = spi_block_erase_60,
8811 }, {
8812 .eraseblocks = { {2 * 1024 * 1024, 1} },
8813 .block_erase = spi_block_erase_c7,
8814 }
8815 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008816 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008817 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008818 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008819 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008820 .voltage = {2700, 3600},
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008821 },
Stephan Guillouxfd315502009-04-20 22:54:13 +00008822
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008823 {
8824 .vendor = "Macronix",
Stephan Guilloux3611b802010-09-13 19:59:28 +00008825 .name = "MX25L1635E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008826 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008827 .manufacture_id = MACRONIX_ID,
8828 .model_id = MACRONIX_MX25L1635E,
Stephan Guilloux3611b802010-09-13 19:59:28 +00008829 .total_size = 2048,
8830 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008831 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8832 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux3611b802010-09-13 19:59:28 +00008833 .tested = TEST_UNTESTED,
8834 .probe = probe_spi_rdid,
8835 .probe_timing = TIMING_ZERO,
8836 .block_erasers =
8837 {
8838 {
8839 .eraseblocks = { {4 * 1024, 512} },
8840 .block_erase = spi_block_erase_20,
8841 }, {
8842 .eraseblocks = { {64 * 1024, 32} },
8843 .block_erase = spi_block_erase_d8,
8844 }, {
8845 .eraseblocks = { {2 * 1024 * 1024, 1} },
8846 .block_erase = spi_block_erase_60,
8847 }, {
8848 .eraseblocks = { {2 * 1024 * 1024, 1} },
8849 .block_erase = spi_block_erase_c7,
8850 }
8851 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008852 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008853 .unlock = spi_disable_blockprotect_bp3_srwd,
Stephan Guilloux3611b802010-09-13 19:59:28 +00008854 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008855 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00008856 .voltage = {2700, 3600},
Stephan Guilloux3611b802010-09-13 19:59:28 +00008857 },
8858
8859 {
8860 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008861 .name = "MX25L2005(C)/MX25L2006E",
8862 .bustype = BUS_SPI,
8863 .manufacture_id = MACRONIX_ID,
8864 .model_id = MACRONIX_MX25L2005,
8865 .total_size = 256,
8866 .page_size = 256,
8867 .feature_bits = FEATURE_WRSR_WREN,
8868 .tested = TEST_OK_PREW,
8869 .probe = probe_spi_rdid,
8870 .probe_timing = TIMING_ZERO,
8871 .block_erasers =
8872 {
8873 {
8874 .eraseblocks = { {4 * 1024, 64} },
8875 .block_erase = spi_block_erase_20,
8876 }, {
8877 .eraseblocks = { {64 * 1024, 4} },
8878 .block_erase = spi_block_erase_52,
8879 }, {
8880 .eraseblocks = { {64 * 1024, 4} },
8881 .block_erase = spi_block_erase_d8,
8882 }, {
8883 .eraseblocks = { {256 * 1024, 1} },
8884 .block_erase = spi_block_erase_60,
8885 }, {
8886 .eraseblocks = { {256 * 1024, 1} },
8887 .block_erase = spi_block_erase_c7,
8888 },
8889 },
8890 .printlock = spi_prettyprint_status_register_bp1_srwd,
8891 .unlock = spi_disable_blockprotect,
8892 .write = spi_chip_write_256,
8893 .read = spi_chip_read, /* Fast read (0x0B) supported */
8894 .voltage = {2700, 3600},
8895 },
8896
8897 {
8898 .vendor = "Macronix",
Alan Green03707302019-08-26 12:50:43 +10008899 .name = "MX25L25635F/MX25L25645G",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008900 .bustype = BUS_SPI,
8901 .manufacture_id = MACRONIX_ID,
8902 .model_id = MACRONIX_MX25L25635F,
8903 .total_size = 32768,
8904 .page_size = 256,
8905 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8906 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
8907 .tested = TEST_OK_PREW,
8908 .probe = probe_spi_rdid,
8909 .probe_timing = TIMING_ZERO,
8910 .block_erasers =
8911 {
8912 {
8913 .eraseblocks = { {4 * 1024, 8192} },
8914 .block_erase = spi_block_erase_21,
8915 }, {
8916 .eraseblocks = { {4 * 1024, 8192} },
8917 .block_erase = spi_block_erase_20,
8918 }, {
8919 .eraseblocks = { {32 * 1024, 1024} },
8920 .block_erase = spi_block_erase_5c,
8921 }, {
8922 .eraseblocks = { {32 * 1024, 1024} },
8923 .block_erase = spi_block_erase_52,
8924 }, {
8925 .eraseblocks = { {64 * 1024, 512} },
8926 .block_erase = spi_block_erase_dc,
8927 }, {
8928 .eraseblocks = { {64 * 1024, 512} },
8929 .block_erase = spi_block_erase_d8,
8930 }, {
8931 .eraseblocks = { {32 * 1024 * 1024, 1} },
8932 .block_erase = spi_block_erase_60,
8933 }, {
8934 .eraseblocks = { {32 * 1024 * 1024, 1} },
8935 .block_erase = spi_block_erase_c7,
8936 }
8937 },
8938 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
8939 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8940 .unlock = spi_disable_blockprotect_bp3_srwd,
8941 .write = spi_chip_write_256,
8942 .read = spi_chip_read, /* Fast read (0x0B) supported */
8943 .voltage = {2700, 3600},
Nico Huberab6b18f2023-01-11 23:38:20 +01008944 .prepare_access = spi_prepare_4ba,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008945 },
8946
8947 {
8948 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00008949 .name = "MX25L3205(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008950 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008951 .manufacture_id = MACRONIX_ID,
8952 .model_id = MACRONIX_MX25L3205,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008953 .total_size = 4096,
8954 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00008955 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00008956 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008957 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008958 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00008959 .block_erasers =
8960 {
8961 {
Stefan Tauner226037d2013-03-16 01:22:12 +00008962 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00008963 .block_erase = spi_block_erase_20,
8964 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00008965 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00008966 .block_erase = spi_block_erase_d8,
8967 }, {
8968 .eraseblocks = { {4 * 1024 * 1024, 1} },
8969 .block_erase = spi_block_erase_60,
8970 }, {
8971 .eraseblocks = { {4 * 1024 * 1024, 1} },
8972 .block_erase = spi_block_erase_c7,
8973 },
8974 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008975 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008976 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008977 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008978 .read = spi_chip_read, /* Fast read (0x0B) supported */
8979 .voltage = {2700, 3600},
8980 },
8981
8982 {
8983 .vendor = "Macronix",
8984 .name = "MX25L3205D/MX25L3208D",
8985 .bustype = BUS_SPI,
8986 .manufacture_id = MACRONIX_ID,
8987 .model_id = MACRONIX_MX25L3205,
8988 .total_size = 4096,
8989 .page_size = 256,
8990 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8991 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8992 .tested = TEST_OK_PREW,
8993 .probe = probe_spi_rdid,
8994 .probe_timing = TIMING_ZERO,
8995 .block_erasers =
8996 {
8997 {
8998 .eraseblocks = { {4 * 1024, 1024} },
8999 .block_erase = spi_block_erase_20,
9000 }, {
9001 .eraseblocks = { {64 * 1024, 64} },
9002 .block_erase = spi_block_erase_d8,
9003 }, {
9004 .eraseblocks = { {4 * 1024 * 1024, 1} },
9005 .block_erase = spi_block_erase_60,
9006 }, {
9007 .eraseblocks = { {4 * 1024 * 1024, 1} },
9008 .block_erase = spi_block_erase_c7,
9009 },
9010 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009011 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009012 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00009013 .write = spi_chip_write_256,
9014 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
9015 .voltage = {2700, 3600},
9016 },
9017
9018 {
9019 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009020 .name = "MX25L3206E/MX25L3208E",
Stefan Tauner226037d2013-03-16 01:22:12 +00009021 .bustype = BUS_SPI,
9022 .manufacture_id = MACRONIX_ID,
9023 .model_id = MACRONIX_MX25L3205,
9024 .total_size = 4096,
9025 .page_size = 256,
9026 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
9027 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9028 .tested = TEST_OK_PREW,
9029 .probe = probe_spi_rdid,
9030 .probe_timing = TIMING_ZERO,
9031 .block_erasers =
9032 {
9033 {
9034 .eraseblocks = { {4 * 1024, 1024} },
9035 .block_erase = spi_block_erase_20,
9036 }, {
9037 .eraseblocks = { {64 * 1024, 64} },
9038 .block_erase = spi_block_erase_d8,
9039 }, {
9040 .eraseblocks = { {64 * 1024, 64} },
9041 .block_erase = spi_block_erase_52,
9042 }, {
9043 .eraseblocks = { {4 * 1024 * 1024, 1} },
9044 .block_erase = spi_block_erase_60,
9045 }, {
9046 .eraseblocks = { {4 * 1024 * 1024, 1} },
9047 .block_erase = spi_block_erase_c7,
9048 },
9049 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009050 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner5c316f92015-02-08 21:57:52 +00009051 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00009052 .write = spi_chip_write_256,
9053 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009054 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009055 },
9056
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009057 {
9058 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009059 .name = "MX25L3235D",
9060 .bustype = BUS_SPI,
9061 .manufacture_id = MACRONIX_ID,
9062 .model_id = MACRONIX_MX25L3235D,
9063 .total_size = 4096,
9064 .page_size = 256,
9065 /* OTP: 256B total; enter 0xB1, exit 0xC1 */
9066 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9067 .tested = TEST_UNTESTED,
9068 .probe = probe_spi_rdid,
9069 .probe_timing = TIMING_ZERO,
9070 .block_erasers =
9071 {
9072 {
9073 .eraseblocks = { {4 * 1024, 1024} },
9074 .block_erase = spi_block_erase_20,
9075 }, {
9076 .eraseblocks = { {64 * 1024, 64} },
9077 .block_erase = spi_block_erase_d8,
9078 }, {
9079 .eraseblocks = { {4 * 1024 * 1024, 1} },
9080 .block_erase = spi_block_erase_60,
9081 }, {
9082 .eraseblocks = { {4 * 1024 * 1024, 1} },
9083 .block_erase = spi_block_erase_c7,
9084 }
9085 },
9086 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9087 .unlock = spi_disable_blockprotect_bp3_srwd,
9088 .write = spi_chip_write_256,
9089 .read = spi_chip_read,
9090 .voltage = {2700, 3600},
9091 },
9092
9093 {
9094 .vendor = "Macronix",
Nico Huberb6683e02021-04-21 13:04:29 +02009095 .name = "MX25L3233F/MX25L3273E",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00009096 .bustype = BUS_SPI,
9097 .manufacture_id = MACRONIX_ID,
9098 .model_id = MACRONIX_MX25L3205,
9099 .total_size = 4096,
9100 .page_size = 256,
Nico Huber6e69e2b2021-04-21 13:03:13 +02009101 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00009102 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +00009103 .tested = TEST_OK_PREW,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00009104 .probe = probe_spi_rdid,
9105 .probe_timing = TIMING_ZERO,
9106 .block_erasers =
9107 {
9108 {
9109 .eraseblocks = { {4 * 1024, 1024} },
9110 .block_erase = spi_block_erase_20,
9111 }, {
9112 .eraseblocks = { {32 * 1024, 128} },
9113 .block_erase = spi_block_erase_52,
9114 }, {
9115 .eraseblocks = { {64 * 1024, 64} },
9116 .block_erase = spi_block_erase_d8,
9117 }, {
9118 .eraseblocks = { {4 * 1024 * 1024, 1} },
9119 .block_erase = spi_block_erase_60,
9120 }, {
9121 .eraseblocks = { {4 * 1024 * 1024, 1} },
9122 .block_erase = spi_block_erase_c7,
9123 },
9124 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009125 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner5c316f92015-02-08 21:57:52 +00009126 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00009127 .write = spi_chip_write_256,
9128 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
Nico Huberb6683e02021-04-21 13:04:29 +02009129 .voltage = {2700, 3600}, /* 33F 2.65V..3.6V */
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00009130 },
9131
9132 {
9133 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009134 .name = "MX25L4005(A/C)/MX25L4006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009135 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009136 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009137 .model_id = MACRONIX_MX25L4005,
9138 .total_size = 512,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00009139 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009140 .feature_bits = FEATURE_WRSR_WREN,
9141 .tested = TEST_OK_PREW,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00009142 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009143 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00009144 .block_erasers =
9145 {
9146 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009147 .eraseblocks = { {4 * 1024, 128} },
Sean Nelson54596372010-01-09 05:30:14 +00009148 .block_erase = spi_block_erase_20,
9149 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009150 .eraseblocks = { {64 * 1024, 8} },
9151 .block_erase = spi_block_erase_52,
9152 }, {
9153 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson54596372010-01-09 05:30:14 +00009154 .block_erase = spi_block_erase_d8,
9155 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009156 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00009157 .block_erase = spi_block_erase_60,
9158 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009159 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00009160 .block_erase = spi_block_erase_c7,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009161 },
Sean Nelson54596372010-01-09 05:30:14 +00009162 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10009163 .printlock = spi_prettyprint_status_register_bp2_srwd,
9164 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009165 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009166 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009167 .voltage = {2700, 3600},
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00009168 },
9169
9170 {
9171 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009172 .name = "MX25L512(E)/MX25V512(C)",
9173 .bustype = BUS_SPI,
9174 .manufacture_id = MACRONIX_ID,
9175 .model_id = MACRONIX_MX25L512,
9176 .total_size = 64,
9177 .page_size = 256,
9178 /* MX25L512E supports SFDP */
9179 .feature_bits = FEATURE_WRSR_WREN,
9180 .tested = TEST_OK_PREW,
9181 .probe = probe_spi_rdid,
9182 .probe_timing = TIMING_ZERO,
9183 .block_erasers =
9184 {
9185 {
9186 .eraseblocks = { {4 * 1024, 16} },
9187 .block_erase = spi_block_erase_20,
9188 }, {
9189 .eraseblocks = { {64 * 1024, 1} },
9190 .block_erase = spi_block_erase_52,
9191 }, {
9192 .eraseblocks = { {64 * 1024, 1} },
9193 .block_erase = spi_block_erase_d8,
9194 }, {
9195 .eraseblocks = { {64 * 1024, 1} },
9196 .block_erase = spi_block_erase_60,
9197 }, {
9198 .eraseblocks = { {64 * 1024, 1} },
9199 .block_erase = spi_block_erase_c7,
9200 },
9201 },
9202 .printlock = spi_prettyprint_status_register_bp1_srwd,
9203 .unlock = spi_disable_blockprotect,
9204 .write = spi_chip_write_256,
9205 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L512E supports dual I/O */
9206 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V512(C) */
9207 },
9208
9209 {
9210 .vendor = "Macronix",
Steve Markgraf7e6f3a72020-07-13 18:22:56 +02009211 .name = "MX25L5121E",
9212 .bustype = BUS_SPI,
9213 .manufacture_id = MACRONIX_ID,
9214 .model_id = MACRONIX_MX25L5121E,
9215 .total_size = 64,
9216 .page_size = 32,
9217 .feature_bits = FEATURE_WRSR_WREN,
9218 .tested = TEST_OK_PREW,
9219 .probe = probe_spi_rdid,
9220 .probe_timing = TIMING_ZERO,
9221 .block_erasers =
9222 {
9223 {
9224 .eraseblocks = { {4 * 1024, 16} },
9225 .block_erase = spi_block_erase_20,
9226 }, {
9227 .eraseblocks = { {64 * 1024, 1} },
9228 .block_erase = spi_block_erase_52,
9229 }, {
9230 .eraseblocks = { {64 * 1024, 1} },
9231 .block_erase = spi_block_erase_d8,
9232 }, {
9233 .eraseblocks = { {64 * 1024, 1} },
9234 .block_erase = spi_block_erase_60,
9235 }, {
9236 .eraseblocks = { {64 * 1024, 1} },
9237 .block_erase = spi_block_erase_c7,
9238 },
9239 },
9240 .printlock = spi_prettyprint_status_register_bp1_srwd,
9241 .unlock = spi_disable_blockprotect,
9242 .write = spi_chip_write_256,
9243 .read = spi_chip_read, /* Fast read (0x0B) supported */
9244 .voltage = {2700, 3600},
9245 },
9246
9247 {
9248 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009249 .name = "MX25L6405",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009250 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009251 .manufacture_id = MACRONIX_ID,
9252 .model_id = MACRONIX_MX25L6405,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009253 .total_size = 8192,
9254 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009255 /* Has an additional 512B EEPROM sector */
9256 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzelac427b22012-02-16 21:07:07 +00009257 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009258 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009259 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00009260 .block_erasers =
9261 {
9262 {
9263 .eraseblocks = { {64 * 1024, 128} },
9264 .block_erase = spi_block_erase_20,
9265 }, {
9266 .eraseblocks = { {64 * 1024, 128} },
9267 .block_erase = spi_block_erase_d8,
9268 }, {
9269 .eraseblocks = { {8 * 1024 * 1024, 1} },
9270 .block_erase = spi_block_erase_60,
9271 }, {
9272 .eraseblocks = { {8 * 1024 * 1024, 1} },
9273 .block_erase = spi_block_erase_c7,
9274 }
9275 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009276 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: error flag */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009277 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009278 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009279 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009280 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009281 },
9282
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009283 {
9284 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009285 .name = "MX25L6405D",
Stefan Tauner226037d2013-03-16 01:22:12 +00009286 .bustype = BUS_SPI,
9287 .manufacture_id = MACRONIX_ID,
9288 .model_id = MACRONIX_MX25L6405,
9289 .total_size = 8192,
9290 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009291 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
Stefan Tauner226037d2013-03-16 01:22:12 +00009292 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9293 .tested = TEST_OK_PREW,
9294 .probe = probe_spi_rdid,
9295 .probe_timing = TIMING_ZERO,
9296 .block_erasers =
9297 {
9298 {
9299 .eraseblocks = { {4 * 1024, 2048} },
9300 .block_erase = spi_block_erase_20,
9301 }, {
9302 .eraseblocks = { {64 * 1024, 128} },
9303 .block_erase = spi_block_erase_d8,
9304 }, {
9305 .eraseblocks = { {8 * 1024 * 1024, 1} },
9306 .block_erase = spi_block_erase_60,
9307 }, {
9308 .eraseblocks = { {8 * 1024 * 1024, 1} },
9309 .block_erase = spi_block_erase_c7,
9310 }
9311 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009312 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009313 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00009314 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009315 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0xBB) supported */
Stefan Tauner226037d2013-03-16 01:22:12 +00009316 .voltage = {2700, 3600},
9317 },
9318
9319 {
9320 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009321 .name = "MX25L6406E/MX25L6408E",
9322 .bustype = BUS_SPI,
9323 .manufacture_id = MACRONIX_ID,
9324 .model_id = MACRONIX_MX25L6405,
9325 .total_size = 8192,
9326 .page_size = 256,
9327 /* MX25L6406E supports SFDP */
9328 /* OTP: 06E 64B total; enter 0xB1, exit 0xC1 */
9329 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9330 .tested = TEST_OK_PREW,
9331 .probe = probe_spi_rdid,
9332 .probe_timing = TIMING_ZERO,
9333 .block_erasers =
9334 {
9335 {
9336 .eraseblocks = { {4 * 1024, 2048} },
9337 .block_erase = spi_block_erase_20,
9338 }, {
9339 .eraseblocks = { {64 * 1024, 128} },
9340 .block_erase = spi_block_erase_52,
9341 }, {
9342 .eraseblocks = { {64 * 1024, 128} },
9343 .block_erase = spi_block_erase_d8,
9344 }, {
9345 .eraseblocks = { {8 * 1024 * 1024, 1} },
9346 .block_erase = spi_block_erase_60,
9347 }, {
9348 .eraseblocks = { {8 * 1024 * 1024, 1} },
9349 .block_erase = spi_block_erase_c7,
9350 }
9351 },
9352 .printlock = spi_prettyprint_status_register_bp3_srwd,
9353 .unlock = spi_disable_blockprotect_bp3_srwd,
9354 .write = spi_chip_write_256,
9355 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read supported */
9356 .voltage = {2700, 3600},
9357 },
9358
9359 {
9360 .vendor = "Macronix",
Nico Huberb0072782017-12-06 21:02:57 +01009361 .name = "MX25L6436E/MX25L6445E/MX25L6465E/MX25L6473E/MX25L6473F",
Stefan Tauner226037d2013-03-16 01:22:12 +00009362 .bustype = BUS_SPI,
9363 .manufacture_id = MACRONIX_ID,
9364 .model_id = MACRONIX_MX25L6405,
9365 .total_size = 8192,
9366 .page_size = 256,
9367 /* supports SFDP */
9368 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9369 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9370 .tested = TEST_OK_PREW,
9371 .probe = probe_spi_rdid,
9372 .probe_timing = TIMING_ZERO,
9373 .block_erasers =
9374 {
9375 {
9376 .eraseblocks = { {4 * 1024, 2048} },
9377 .block_erase = spi_block_erase_20,
9378 }, {
9379 .eraseblocks = { {32 * 1024, 256} },
9380 .block_erase = spi_block_erase_52,
9381 }, {
9382 .eraseblocks = { {64 * 1024, 128} },
9383 .block_erase = spi_block_erase_d8,
9384 }, {
9385 .eraseblocks = { {8 * 1024 * 1024, 1} },
9386 .block_erase = spi_block_erase_60,
9387 }, {
9388 .eraseblocks = { {8 * 1024 * 1024, 1} },
9389 .block_erase = spi_block_erase_c7,
9390 }
9391 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009392 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009393 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00009394 .write = spi_chip_write_256,
9395 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9396 .voltage = {2700, 3600},
9397 },
9398
9399 {
9400 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009401 .name = "MX25L6495F",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009402 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009403 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009404 .model_id = MACRONIX_MX25L6495F,
9405 .total_size = 8192,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00009406 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009407 /* OTP: 1024B total; enter 0xB1, exit 0xC1 */
Stefan Tauner226037d2013-03-16 01:22:12 +00009408 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +00009409 .tested = TEST_OK_PREW,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00009410 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009411 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00009412 .block_erasers =
9413 {
9414 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009415 .eraseblocks = { {4 * 1024, 2048} },
Sean Nelson54596372010-01-09 05:30:14 +00009416 .block_erase = spi_block_erase_20,
9417 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009418 .eraseblocks = { {32 * 1024, 256} },
9419 .block_erase = spi_block_erase_52,
9420 }, {
Aarya Chaumal478e1792022-06-04 01:34:44 +05309421 .eraseblocks = { {64 * 1024, 128} },
9422 .block_erase = spi_block_erase_d8,
9423 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009424 .eraseblocks = { {8 * 1024 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00009425 .block_erase = spi_block_erase_60,
9426 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009427 .eraseblocks = { {8 * 1024 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00009428 .block_erase = spi_block_erase_c7,
9429 }
9430 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10009431 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009432 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009433 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009434 .voltage = {2700, 3600},
9435 },
9436
9437 {
9438 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009439 .name = "MX25L8005/MX25L8006E/MX25L8008E/MX25V8005",
Stefan Tauner5c316f92015-02-08 21:57:52 +00009440 .bustype = BUS_SPI,
9441 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009442 .model_id = MACRONIX_MX25L8005,
9443 .total_size = 1024,
9444 .page_size = 256,
9445 /* MX25L8006E, MX25L8008E support SFDP */
9446 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L8006E, MX25L8008E only) */
9447 .feature_bits = FEATURE_WRSR_WREN,
9448 .tested = TEST_OK_PREW,
9449 .probe = probe_spi_rdid,
9450 .probe_timing = TIMING_ZERO,
9451 .block_erasers =
9452 {
9453 {
9454 .eraseblocks = { {4 * 1024, 256} },
9455 .block_erase = spi_block_erase_20,
9456 }, {
9457 .eraseblocks = { {64 * 1024, 16} },
9458 .block_erase = spi_block_erase_52,
9459 }, {
9460 .eraseblocks = { {64 * 1024, 16} },
9461 .block_erase = spi_block_erase_d8,
9462 }, {
9463 .eraseblocks = { {1024 * 1024, 1} },
9464 .block_erase = spi_block_erase_60,
9465 }, {
9466 .eraseblocks = { {1024 * 1024, 1} },
9467 .block_erase = spi_block_erase_c7,
9468 },
9469 },
9470 .printlock = spi_prettyprint_status_register_bp2_srwd,
9471 .unlock = spi_disable_blockprotect,
9472 .write = spi_chip_write_256,
9473 .read = spi_chip_read, /* Fast read (0x0B) supported */
9474 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V8005 */
9475 },
9476
9477 {
9478 .vendor = "Macronix",
sibradzicf62623c2020-03-14 17:21:34 +09009479 .name = "MX25R3235F",
9480 .bustype = BUS_SPI,
9481 .manufacture_id = MACRONIX_ID,
9482 .model_id = MACRONIX_MX25R3235F,
9483 .total_size = 4096,
9484 .page_size = 256,
9485 /* OTP: 1024B total; enter 0xB1, exit 0xC1 */
9486 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9487 .tested = TEST_OK_PREW,
9488 .probe = probe_spi_rdid,
9489 .probe_timing = TIMING_ZERO,
9490 .block_erasers =
9491 {
9492 {
9493 .eraseblocks = { {4 * 1024, 1024} },
9494 .block_erase = spi_block_erase_20,
9495 }, {
sibradzicf62623c2020-03-14 17:21:34 +09009496 .eraseblocks = { {32 * 1024, 128} },
9497 .block_erase = spi_block_erase_52,
9498 }, {
Aarya Chaumal478e1792022-06-04 01:34:44 +05309499 .eraseblocks = { {64 * 1024, 64} },
9500 .block_erase = spi_block_erase_d8,
9501 }, {
sibradzicf62623c2020-03-14 17:21:34 +09009502 .eraseblocks = { {4 * 1024 * 1024, 1} },
9503 .block_erase = spi_block_erase_60,
9504 }, {
9505 .eraseblocks = { {4 * 1024 * 1024, 1} },
9506 .block_erase = spi_block_erase_c7,
9507 }
9508 },
9509 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit 6 is quad enable */
9510 .unlock = spi_disable_blockprotect_bp3_srwd,
9511 .write = spi_chip_write_256,
9512 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9513 .voltage = {1650, 3600},
9514 },
9515
9516 {
9517 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009518 .name = "MX25R6435F",
9519 .bustype = BUS_SPI,
9520 .manufacture_id = MACRONIX_ID,
9521 .model_id = MACRONIX_MX25R6435F,
9522 .total_size = 8192,
9523 .page_size = 256,
9524 /* OTP: 1024B total; enter 0xB1, exit 0xC1 */
9525 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9526 .tested = TEST_OK_PREW,
9527 .probe = probe_spi_rdid,
9528 .probe_timing = TIMING_ZERO,
9529 .block_erasers =
9530 {
9531 {
9532 .eraseblocks = { {4 * 1024, 2048} },
9533 .block_erase = spi_block_erase_20,
9534 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009535 .eraseblocks = { {32 * 1024, 256} },
9536 .block_erase = spi_block_erase_52,
9537 }, {
Aarya Chaumal478e1792022-06-04 01:34:44 +05309538 .eraseblocks = { {64 * 1024, 128} },
9539 .block_erase = spi_block_erase_d8,
9540 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009541 .eraseblocks = { {8 * 1024 * 1024, 1} },
9542 .block_erase = spi_block_erase_60,
9543 }, {
9544 .eraseblocks = { {8 * 1024 * 1024, 1} },
9545 .block_erase = spi_block_erase_c7,
9546 }
9547 },
9548 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9549 .unlock = spi_disable_blockprotect_bp3_srwd,
9550 .write = spi_chip_write_256,
9551 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9552 .voltage = {1650, 3600},
9553 },
9554
9555 {
9556 .vendor = "Macronix",
9557 .name = "MX25U12835F",
9558 .bustype = BUS_SPI,
9559 .manufacture_id = MACRONIX_ID,
9560 .model_id = MACRONIX_MX25U12835E,
Stefan Tauner5c316f92015-02-08 21:57:52 +00009561 .total_size = 16384,
9562 .page_size = 256,
9563 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
Alan Green1f9cc7d2019-07-01 11:10:45 +10009564 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner5c316f92015-02-08 21:57:52 +00009565 .tested = TEST_OK_PREW,
9566 .probe = probe_spi_rdid,
9567 .probe_timing = TIMING_ZERO,
9568 .block_erasers =
9569 {
9570 {
9571 .eraseblocks = { {4 * 1024, 4096} },
9572 .block_erase = spi_block_erase_20,
9573 }, {
9574 .eraseblocks = { {32 * 1024, 512} },
9575 .block_erase = spi_block_erase_52,
9576 }, {
9577 .eraseblocks = { {64 * 1024, 256} },
9578 .block_erase = spi_block_erase_d8,
9579 }, {
9580 .eraseblocks = { {16 * 1024 * 1024, 1} },
9581 .block_erase = spi_block_erase_60,
9582 }, {
9583 .eraseblocks = { {16 * 1024 * 1024, 1} },
9584 .block_erase = spi_block_erase_c7,
9585 }
9586 },
Angel Ponsf112e242018-09-30 20:14:17 +02009587 /* TODO: security register */
9588 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9589 .unlock = spi_disable_blockprotect_bp3_srwd,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009590 .write = spi_chip_write_256, /* Multi I/O supported */
Angel Ponsf112e242018-09-30 20:14:17 +02009591 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9592 .voltage = {1650, 2000},
9593 },
9594
9595 {
9596 .vendor = "Macronix",
Vincent Palatinf800f552013-03-15 02:03:16 +00009597 .name = "MX25U1635E",
9598 .bustype = BUS_SPI,
9599 .manufacture_id = MACRONIX_ID,
9600 .model_id = MACRONIX_MX25U1635E,
9601 .total_size = 2048,
9602 .page_size = 256,
9603 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9604 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
9605 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner5c316f92015-02-08 21:57:52 +00009606 .tested = TEST_OK_PR,
Vincent Palatinf800f552013-03-15 02:03:16 +00009607 .probe = probe_spi_rdid,
9608 .probe_timing = TIMING_ZERO,
9609 .block_erasers =
9610 {
9611 {
9612 .eraseblocks = { {4 * 1024, 512} },
9613 .block_erase = spi_block_erase_20,
9614 }, {
9615 .eraseblocks = { {32 * 1024, 64} },
9616 .block_erase = spi_block_erase_52,
9617 }, {
9618 .eraseblocks = { {64 * 1024, 32} },
9619 .block_erase = spi_block_erase_d8,
9620 }, {
9621 .eraseblocks = { {2 * 1024 * 1024, 1} },
9622 .block_erase = spi_block_erase_60,
9623 }, {
9624 .eraseblocks = { {2 * 1024 * 1024, 1} },
9625 .block_erase = spi_block_erase_c7,
9626 }
9627 },
9628 /* TODO: security register */
Stefan Tauner12f3d512014-05-27 21:27:27 +00009629 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009630 .unlock = spi_disable_blockprotect_bp3_srwd,
Vincent Palatinf800f552013-03-15 02:03:16 +00009631 .write = spi_chip_write_256,
9632 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9633 .voltage = {1650, 2000},
9634 },
9635
9636 {
9637 .vendor = "Macronix",
David Tomaschikf75d8c52019-06-20 09:49:01 -07009638 .name = "MX25U25635F",
9639 .bustype = BUS_SPI,
9640 .manufacture_id = MACRONIX_ID,
9641 .model_id = MACRONIX_MX25U25635F,
9642 .total_size = 32768,
9643 .page_size = 256,
9644 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9645 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_4BA,
Nikolai Artemiev148254b2021-03-23 17:21:10 +11009646 .tested = TEST_OK_PREW,
David Tomaschikf75d8c52019-06-20 09:49:01 -07009647 .probe = probe_spi_rdid,
9648 .probe_timing = TIMING_ZERO,
9649 .block_erasers =
9650 {
9651 {
9652 .eraseblocks = { {4 * 1024, 8192} },
9653 .block_erase = spi_block_erase_21,
9654 }, {
9655 .eraseblocks = { {4 * 1024, 8192} },
9656 .block_erase = spi_block_erase_20,
9657 }, {
9658 .eraseblocks = { {32 * 1024, 1024} },
9659 .block_erase = spi_block_erase_5c,
9660 }, {
9661 .eraseblocks = { {32 * 1024, 1024} },
9662 .block_erase = spi_block_erase_52,
9663 }, {
9664 .eraseblocks = { {64 * 1024, 512} },
9665 .block_erase = spi_block_erase_dc,
9666 }, {
9667 .eraseblocks = { {64 * 1024, 512} },
9668 .block_erase = spi_block_erase_d8,
9669 }, {
9670 .eraseblocks = { {32 * 1024 * 1024, 1} },
9671 .block_erase = spi_block_erase_60,
9672 }, {
9673 .eraseblocks = { {32 * 1024 * 1024, 1} },
9674 .block_erase = spi_block_erase_c7,
9675 }
9676 },
9677 /* TODO: security register */
9678 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9679 .unlock = spi_disable_blockprotect_bp3_srwd,
9680 .write = spi_chip_write_256, /* Multi I/O supported */
9681 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9682 .voltage = {1650, 2000},
Nico Huberab6b18f2023-01-11 23:38:20 +01009683 .prepare_access = spi_prepare_4ba,
David Tomaschikf75d8c52019-06-20 09:49:01 -07009684 },
9685
9686 {
9687 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009688 .name = "MX25U3235E/F",
9689 .bustype = BUS_SPI,
9690 .manufacture_id = MACRONIX_ID,
9691 .model_id = MACRONIX_MX25U3235E,
9692 .total_size = 4096,
9693 .page_size = 256,
9694 /* F model supports SFDP */
9695 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9696 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
9697 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
9698 .tested = TEST_OK_PREW,
9699 .probe = probe_spi_rdid,
9700 .probe_timing = TIMING_ZERO,
9701 .block_erasers =
9702 {
9703 {
9704 .eraseblocks = { {4 * 1024, 1024} },
9705 .block_erase = spi_block_erase_20,
9706 }, {
9707 .eraseblocks = { {32 * 1024, 128} },
9708 .block_erase = spi_block_erase_52,
9709 }, {
9710 .eraseblocks = { {64 * 1024, 64} },
9711 .block_erase = spi_block_erase_d8,
9712 }, {
9713 .eraseblocks = { {4 * 1024 * 1024, 1} },
9714 .block_erase = spi_block_erase_60,
9715 }, {
9716 .eraseblocks = { {4 * 1024 * 1024, 1} },
9717 .block_erase = spi_block_erase_c7,
9718 }
9719 },
9720 /* TODO: security register */
9721 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9722 .unlock = spi_disable_blockprotect_bp3_srwd,
9723 .write = spi_chip_write_256,
9724 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9725 .voltage = {1650, 2000},
9726 },
9727
9728 {
9729 .vendor = "Macronix",
Daniel Thompsoncadd4202018-06-04 13:52:22 +01009730 .name = "MX25U51245G",
9731 .bustype = BUS_SPI,
9732 .manufacture_id = MACRONIX_ID,
9733 .model_id = MACRONIX_MX25U51245G,
9734 .total_size = 65536,
9735 .page_size = 256,
9736 /* OTP: 512B factory programmed and 512B customer programmed; enter 0xB1, exit 0xC1 */
9737 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_4BA,
9738 .tested = TEST_OK_PREW,
9739 .probe = probe_spi_rdid,
9740 .probe_timing = TIMING_ZERO,
9741 .block_erasers =
9742 {
9743 {
9744 .eraseblocks = { {4 * 1024, 16384} },
9745 .block_erase = spi_block_erase_21,
9746 }, {
9747 .eraseblocks = { {4 * 1024, 16384} },
9748 .block_erase = spi_block_erase_20,
9749 }, {
9750 .eraseblocks = { {32 * 1024, 2048} },
9751 .block_erase = spi_block_erase_5c,
9752 }, {
9753 .eraseblocks = { {32 * 1024, 2048} },
9754 .block_erase = spi_block_erase_52,
9755 }, {
9756 .eraseblocks = { {64 * 1024, 1024} },
9757 .block_erase = spi_block_erase_dc,
9758 }, {
9759 .eraseblocks = { {64 * 1024, 1024} },
9760 .block_erase = spi_block_erase_d8,
9761 }, {
9762 .eraseblocks = { {64 * 1024 * 1024, 1} },
9763 .block_erase = spi_block_erase_60,
9764 }, {
9765 .eraseblocks = { {64 * 1024 * 1024, 1} },
9766 .block_erase = spi_block_erase_c7,
9767 }
9768 },
9769 /* TODO: security register */
9770 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9771 .unlock = spi_disable_blockprotect_bp3_srwd,
9772 .write = spi_chip_write_256, /* Multi I/O supported */
9773 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9774 .voltage = {1650, 2000},
Nico Huberab6b18f2023-01-11 23:38:20 +01009775 .prepare_access = spi_prepare_4ba,
Daniel Thompsoncadd4202018-06-04 13:52:22 +01009776 },
9777
9778 {
9779 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009780 .name = "MX25U6435E/F",
Stefan Tauner40bc96f2015-01-10 09:33:14 +00009781 .bustype = BUS_SPI,
9782 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009783 .model_id = MACRONIX_MX25U6435E,
Stefan Tauner40bc96f2015-01-10 09:33:14 +00009784 .total_size = 8192,
9785 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009786 /* F model supports SFDP */
9787 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9788 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
9789 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner40bc96f2015-01-10 09:33:14 +00009790 .tested = TEST_OK_PREW,
9791 .probe = probe_spi_rdid,
9792 .probe_timing = TIMING_ZERO,
9793 .block_erasers =
9794 {
9795 {
9796 .eraseblocks = { {4 * 1024, 2048} },
9797 .block_erase = spi_block_erase_20,
9798 }, {
Stefan Tauner40bc96f2015-01-10 09:33:14 +00009799 .eraseblocks = { {32 * 1024, 256} },
9800 .block_erase = spi_block_erase_52,
9801 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009802 .eraseblocks = { {64 * 1024, 128} },
9803 .block_erase = spi_block_erase_d8,
9804 }, {
Stefan Tauner40bc96f2015-01-10 09:33:14 +00009805 .eraseblocks = { {8 * 1024 * 1024, 1} },
9806 .block_erase = spi_block_erase_60,
9807 }, {
9808 .eraseblocks = { {8 * 1024 * 1024, 1} },
9809 .block_erase = spi_block_erase_c7,
9810 }
9811 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10009812 /* TODO: security register */
Nathan Rennie-Waldock5a7f9422018-08-10 15:35:23 +01009813 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9814 .unlock = spi_disable_blockprotect_bp3_srwd,
9815 .write = spi_chip_write_256,
9816 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Alan Green1f9cc7d2019-07-01 11:10:45 +10009817 .voltage = {1650, 2000},
9818 },
9819
9820 {
9821 .vendor = "Macronix",
9822 .name = "MX25U8032E",
9823 .bustype = BUS_SPI,
9824 .manufacture_id = MACRONIX_ID,
9825 .model_id = MACRONIX_MX25U8032E,
9826 .total_size = 1024,
9827 .page_size = 256,
9828 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9829 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9830 .tested = TEST_OK_PREW,
9831 .probe = probe_spi_rdid,
9832 .probe_timing = TIMING_ZERO,
9833 .block_erasers =
9834 {
9835 {
9836 .eraseblocks = { {4 * 1024, 256} },
9837 .block_erase = spi_block_erase_20,
9838 }, {
9839 .eraseblocks = { {32 * 1024, 32} },
9840 .block_erase = spi_block_erase_52,
9841 }, {
9842 .eraseblocks = { {64 * 1024, 16} },
9843 .block_erase = spi_block_erase_d8,
9844 }, {
9845 .eraseblocks = { {1024 * 1024, 1} },
9846 .block_erase = spi_block_erase_60,
9847 }, {
9848 .eraseblocks = { {1024 * 1024, 1} },
9849 .block_erase = spi_block_erase_c7,
9850 }
9851 },
9852 /* TODO: security register */
9853 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9854 .unlock = spi_disable_blockprotect_bp3_srwd,
9855 .write = spi_chip_write_256,
9856 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9857 .voltage = {1650, 2000},
Nathan Rennie-Waldock5a7f9422018-08-10 15:35:23 +01009858 },
9859
9860 {
9861 .vendor = "Macronix",
Mark Panajotovic502a9132009-08-24 01:42:24 +00009862 .name = "MX29F001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009863 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009864 .manufacture_id = MACRONIX_ID,
9865 .model_id = MACRONIX_MX29F001B,
Mark Panajotovic502a9132009-08-24 01:42:24 +00009866 .total_size = 128,
9867 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009868 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9869 .tested = TEST_UNTESTED,
9870 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009871 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00009872 .block_erasers =
9873 {
9874 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00009875 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00009876 {8 * 1024, 1},
9877 {4 * 1024, 2},
9878 {8 * 1024, 2},
9879 {32 * 1024, 1},
9880 {64 * 1024, 1},
9881 },
Sean Nelson35727f72010-01-28 23:55:12 +00009882 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009883 }, {
9884 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009885 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009886 }
9887 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009888 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00009889 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009890 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +01009891 .prepare_access = prepare_memory_access,
9892 .finish_access = finish_memory_access,
Mark Panajotovic502a9132009-08-24 01:42:24 +00009893 },
9894
9895 {
9896 .vendor = "Macronix",
9897 .name = "MX29F001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009898 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009899 .manufacture_id = MACRONIX_ID,
9900 .model_id = MACRONIX_MX29F001T,
Mark Panajotovic502a9132009-08-24 01:42:24 +00009901 .total_size = 128,
9902 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009903 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stefan Tauner74c6ec62011-05-18 01:31:46 +00009904 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00009905 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009906 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00009907 .block_erasers =
9908 {
9909 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00009910 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00009911 {64 * 1024, 1},
9912 {32 * 1024, 1},
9913 {8 * 1024, 2},
9914 {4 * 1024, 2},
9915 {8 * 1024, 1},
9916 },
Sean Nelson35727f72010-01-28 23:55:12 +00009917 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009918 }, {
9919 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009920 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009921 }
9922 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009923 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00009924 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009925 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +01009926 .prepare_access = prepare_memory_access,
9927 .finish_access = finish_memory_access,
Mark Panajotovic502a9132009-08-24 01:42:24 +00009928 },
9929
9930 {
9931 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00009932 .name = "MX29F002(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009933 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009934 .manufacture_id = MACRONIX_ID,
9935 .model_id = MACRONIX_MX29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009936 .total_size = 256,
9937 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009938 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009939 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00009940 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009941 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009942 .block_erasers =
9943 {
9944 {
9945 .eraseblocks = {
9946 {16 * 1024, 1},
9947 {8 * 1024, 2},
9948 {32 * 1024, 1},
9949 {64 * 1024, 3},
9950 },
Sean Nelson35727f72010-01-28 23:55:12 +00009951 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009952 }, {
9953 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009954 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009955 },
9956 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009957 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009958 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009959 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +01009960 .prepare_access = prepare_memory_access,
9961 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +00009962 },
9963
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009964 {
9965 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00009966 .name = "MX29F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009967 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009968 .manufacture_id = MACRONIX_ID,
9969 .model_id = MACRONIX_MX29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009970 .total_size = 256,
9971 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009972 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00009973 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00009974 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009975 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009976 .block_erasers =
9977 {
9978 {
9979 .eraseblocks = {
9980 {64 * 1024, 3},
9981 {32 * 1024, 1},
9982 {8 * 1024, 2},
9983 {16 * 1024, 1},
9984 },
Sean Nelson35727f72010-01-28 23:55:12 +00009985 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009986 }, {
9987 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009988 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009989 },
9990 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009991 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009992 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009993 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +01009994 .prepare_access = prepare_memory_access,
9995 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +00009996 },
9997
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009998 {
9999 .vendor = "Macronix",
Daniele Forsi6a18a932014-07-13 14:53:45 +000010000 .name = "MX29F022(N)B",
10001 .bustype = BUS_PARALLEL,
10002 .manufacture_id = MACRONIX_ID,
10003 .model_id = MACRONIX_MX29F022B,
10004 .total_size = 256,
10005 .page_size = 0, /* unused */
10006 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
10007 .tested = TEST_UNTESTED,
10008 .probe = probe_jedec,
10009 .probe_timing = TIMING_ZERO,
10010 .block_erasers =
10011 {
10012 {
10013 .eraseblocks = {
10014 {16 * 1024, 1},
10015 {8 * 1024, 2},
10016 {32 * 1024, 1},
10017 {64 * 1024, 3},
10018 },
10019 .block_erase = erase_sector_jedec,
10020 }, {
10021 .eraseblocks = { {256 * 1024, 1} },
10022 .block_erase = erase_chip_block_jedec,
10023 }
10024 },
10025 .write = write_jedec_1,
10026 .read = read_memmapped,
10027 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010010028 .prepare_access = prepare_memory_access,
10029 .finish_access = finish_memory_access,
Daniele Forsi6a18a932014-07-13 14:53:45 +000010030 },
10031
10032 {
10033 .vendor = "Macronix",
10034 .name = "MX29F022(N)T",
10035 .bustype = BUS_PARALLEL,
10036 .manufacture_id = MACRONIX_ID,
10037 .model_id = MACRONIX_MX29F022T,
10038 .total_size = 256,
10039 .page_size = 0, /* unused */
10040 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
10041 .tested = TEST_OK_PREW,
10042 .probe = probe_jedec,
10043 .probe_timing = TIMING_ZERO,
10044 .block_erasers =
10045 {
10046 {
10047 .eraseblocks = {
10048 {64 * 1024, 3},
10049 {32 * 1024, 1},
10050 {8 * 1024, 2},
10051 {16 * 1024, 1},
10052 },
10053 .block_erase = erase_sector_jedec,
10054 }, {
10055 .eraseblocks = { {256 * 1024, 1} },
10056 .block_erase = erase_chip_block_jedec,
10057 }
10058 },
10059 .write = write_jedec_1,
10060 .read = read_memmapped,
10061 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010010062 .prepare_access = prepare_memory_access,
10063 .finish_access = finish_memory_access,
Daniele Forsi6a18a932014-07-13 14:53:45 +000010064 },
10065
10066 {
10067 .vendor = "Macronix",
Joshua Roysf1324e02010-09-16 00:51:51 +000010068 .name = "MX29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010069 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +000010070 .manufacture_id = MACRONIX_ID,
10071 .model_id = MACRONIX_MX29F040,
10072 .total_size = 512,
10073 .page_size = 64 * 1024,
10074 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
10075 .tested = TEST_UNTESTED,
10076 .probe = probe_jedec,
10077 .probe_timing = TIMING_ZERO,
10078 .block_erasers =
10079 {
10080 {
10081 .eraseblocks = { {64 * 1024, 8} },
10082 .block_erase = erase_sector_jedec,
10083 }, {
10084 .eraseblocks = { {512 * 1024, 1} },
10085 .block_erase = erase_chip_block_jedec,
10086 },
10087 },
10088 .write = write_jedec_1,
10089 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000010090 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010010091 .prepare_access = prepare_memory_access,
10092 .finish_access = finish_memory_access,
Joshua Roysf1324e02010-09-16 00:51:51 +000010093 },
10094
10095 {
10096 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010097 .name = "MX29GL128F",
10098 .bustype = BUS_PARALLEL,
10099 .manufacture_id = MACRONIX_ID,
10100 .model_id = MACRONIX_MX29GL128F,
10101 .total_size = 16384,
10102 .page_size = 128 * 1024, /* actual page size is 16 */
10103 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
10104 .tested = TEST_UNTESTED,
10105 .probe = probe_jedec_29gl,
10106 .probe_timing = TIMING_ZERO,
10107 .block_erasers =
10108 {
10109 {
10110 .eraseblocks = { {128 * 1024, 128} },
10111 .block_erase = erase_sector_jedec,
10112 }, {
10113 .eraseblocks = { {16 * 1024 * 1024, 1} },
10114 .block_erase = erase_chip_block_jedec,
10115 },
10116 },
10117 .write = write_jedec_1,
10118 .read = read_memmapped,
10119 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010010120 .prepare_access = prepare_memory_access,
10121 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010122 },
10123
10124 {
10125 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000010126 .name = "MX29GL320EB",
10127 .bustype = BUS_PARALLEL,
10128 .manufacture_id = MACRONIX_ID,
10129 .model_id = MACRONIX_MX29GL320EB,
10130 .total_size = 4096,
10131 .page_size = 128 * 1024, /* actual page size is 16 */
10132 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
10133 .tested = TEST_UNTESTED,
10134 .probe = probe_jedec_29gl,
10135 .probe_timing = TIMING_ZERO,
10136 .block_erasers =
10137 {
10138 {
10139 .eraseblocks = {
10140 {8 * 1024, 8},
10141 {64 * 1024, 63},
10142 },
10143 .block_erase = erase_sector_jedec,
10144 }, {
10145 .eraseblocks = { {4 * 1024 * 1024, 1} },
10146 .block_erase = erase_chip_block_jedec,
10147 },
10148 },
10149 .write = write_jedec_1,
10150 .read = read_memmapped,
10151 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010010152 .prepare_access = prepare_memory_access,
10153 .finish_access = finish_memory_access,
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000010154 },
10155
10156 {
10157 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010158 .name = "MX29GL320EH/L",
10159 .bustype = BUS_PARALLEL,
10160 .manufacture_id = MACRONIX_ID,
10161 .model_id = MACRONIX_MX29GL320EHL,
10162 .total_size = 4096,
10163 .page_size = 128 * 1024, /* actual page size is 16 */
10164 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
10165 .tested = TEST_UNTESTED,
10166 .probe = probe_jedec_29gl,
10167 .probe_timing = TIMING_ZERO,
10168 .block_erasers =
10169 {
10170 {
10171 .eraseblocks = { {64 * 1024, 64} },
10172 .block_erase = erase_sector_jedec,
10173 }, {
10174 .eraseblocks = { {4 * 1024 * 1024, 1} },
10175 .block_erase = erase_chip_block_jedec,
10176 },
10177 },
10178 .write = write_jedec_1,
10179 .read = read_memmapped,
10180 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010010181 .prepare_access = prepare_memory_access,
10182 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010183 },
10184
10185 {
10186 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000010187 .name = "MX29GL320ET",
10188 .bustype = BUS_PARALLEL,
10189 .manufacture_id = MACRONIX_ID,
10190 .model_id = MACRONIX_MX29GL320ET,
10191 .total_size = 4096,
10192 .page_size = 128 * 1024, /* actual page size is 16 */
10193 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
10194 .tested = TEST_UNTESTED,
10195 .probe = probe_jedec_29gl,
10196 .probe_timing = TIMING_ZERO,
10197 .block_erasers =
10198 {
10199 {
10200 .eraseblocks = {
10201 {64 * 1024, 63},
10202 {8 * 1024, 8},
10203 },
10204 .block_erase = erase_sector_jedec,
10205 }, {
10206 .eraseblocks = { {4 * 1024 * 1024, 1} },
10207 .block_erase = erase_chip_block_jedec,
10208 },
10209 },
10210 .write = write_jedec_1,
10211 .read = read_memmapped,
10212 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010010213 .prepare_access = prepare_memory_access,
10214 .finish_access = finish_memory_access,
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000010215 },
10216
10217 {
10218 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000010219 .name = "MX29GL640EB",
10220 .bustype = BUS_PARALLEL,
10221 .manufacture_id = MACRONIX_ID,
10222 .model_id = MACRONIX_MX29GL640EB,
10223 .total_size = 8192,
10224 .page_size = 128 * 1024, /* actual page size is 16 */
10225 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
10226 .tested = TEST_UNTESTED,
10227 .probe = probe_jedec_29gl,
10228 .probe_timing = TIMING_ZERO,
10229 .block_erasers =
10230 {
10231 {
10232 .eraseblocks = {
10233 {8 * 1024, 8},
10234 {64 * 1024, 127},
10235 },
10236 .block_erase = erase_sector_jedec,
10237 }, {
10238 .eraseblocks = { {8 * 1024 * 1024, 1} },
10239 .block_erase = erase_chip_block_jedec,
10240 },
10241 },
10242 .write = write_jedec_1,
10243 .read = read_memmapped,
10244 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010010245 .prepare_access = prepare_memory_access,
10246 .finish_access = finish_memory_access,
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000010247 },
10248
10249 {
10250 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010251 .name = "MX29GL640EH/L",
10252 .bustype = BUS_PARALLEL,
10253 .manufacture_id = MACRONIX_ID,
10254 .model_id = MACRONIX_MX29GL640EHL,
10255 .total_size = 8192,
10256 .page_size = 128 * 1024, /* actual page size is 16 */
10257 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
10258 .tested = TEST_UNTESTED,
10259 .probe = probe_jedec_29gl,
10260 .probe_timing = TIMING_ZERO,
10261 .block_erasers =
10262 {
10263 {
10264 .eraseblocks = { {64 * 1024, 128} },
10265 .block_erase = erase_sector_jedec,
10266 }, {
10267 .eraseblocks = { {8 * 1024 * 1024, 1} },
10268 .block_erase = erase_chip_block_jedec,
10269 },
10270 },
10271 .write = write_jedec_1,
10272 .read = read_memmapped,
10273 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010010274 .prepare_access = prepare_memory_access,
10275 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010276 },
10277
10278 {
10279 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000010280 .name = "MX29GL640ET",
10281 .bustype = BUS_PARALLEL,
10282 .manufacture_id = MACRONIX_ID,
10283 .model_id = MACRONIX_MX29GL640ET,
10284 .total_size = 8192,
10285 .page_size = 128 * 1024, /* actual page size is 16 */
10286 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
10287 .tested = TEST_UNTESTED,
10288 .probe = probe_jedec_29gl,
10289 .probe_timing = TIMING_ZERO,
10290 .block_erasers =
10291 {
10292 {
10293 .eraseblocks = {
10294 {64 * 1024, 127},
10295 {8 * 1024, 8},
10296 },
10297 .block_erase = erase_sector_jedec,
10298 }, {
10299 .eraseblocks = { {8 * 1024 * 1024, 1} },
10300 .block_erase = erase_chip_block_jedec,
10301 },
10302 },
10303 .write = write_jedec_1,
10304 .read = read_memmapped,
10305 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010010306 .prepare_access = prepare_memory_access,
10307 .finish_access = finish_memory_access,
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000010308 },
10309
10310 {
10311 .vendor = "Macronix",
Carl-Daniel Hailfinger350a0c32009-07-24 13:59:27 +000010312 .name = "MX29LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010313 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010314 .manufacture_id = MACRONIX_ID,
10315 .model_id = MACRONIX_MX29LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010316 .total_size = 512,
10317 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010318 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
10319 .tested = TEST_UNTESTED,
10320 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +000010321 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +000010322 .block_erasers =
10323 {
10324 {
Stefan Tauner6697f712014-08-06 15:09:15 +000010325 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +000010326 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +000010327 }, {
10328 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000010329 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +000010330 },
10331 },
Michael Karcher1c296ca2009-11-27 17:49:42 +000010332 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010333 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010334 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010010335 .prepare_access = prepare_memory_access,
10336 .finish_access = finish_memory_access,
Carl-Daniel Hailfinger7de86392008-12-10 10:32:05 +000010337 },
10338
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010339 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010340 .vendor = "Macronix",
Hemanth Guruva Reddya136d422019-07-11 11:08:27 +020010341 .name = "MX66L51235F/MX25L51245G",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010342 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010343 .manufacture_id = MACRONIX_ID,
10344 .model_id = MACRONIX_MX66L51235F,
10345 .total_size = 65536,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010346 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010347 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
10348 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010349 .tested = TEST_OK_PREW,
10350 .probe = probe_spi_rdid,
10351 .probe_timing = TIMING_ZERO,
10352 .block_erasers =
10353 {
10354 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010355 .eraseblocks = { {4 * 1024, 16384} },
10356 .block_erase = spi_block_erase_21,
10357 }, {
10358 .eraseblocks = { {4 * 1024, 16384} },
10359 .block_erase = spi_block_erase_20,
10360 }, {
10361 .eraseblocks = { {32 * 1024, 2048} },
10362 .block_erase = spi_block_erase_5c,
10363 }, {
10364 .eraseblocks = { {32 * 1024, 2048} },
10365 .block_erase = spi_block_erase_52,
10366 }, {
10367 .eraseblocks = { {64 * 1024, 1024} },
10368 .block_erase = spi_block_erase_dc,
10369 }, {
10370 .eraseblocks = { {64 * 1024, 1024} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010371 .block_erase = spi_block_erase_d8,
10372 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010373 .eraseblocks = { {64 * 1024 * 1024, 1} },
10374 .block_erase = spi_block_erase_60,
10375 }, {
10376 .eraseblocks = { {64 * 1024 * 1024, 1} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010377 .block_erase = spi_block_erase_c7,
10378 }
10379 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100010380 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
10381 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010382 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010383 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010384 .read = spi_chip_read, /* Fast read (0x0B) supported */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010385 .voltage = {2700, 3600},
Nico Huberab6b18f2023-01-11 23:38:20 +010010386 .prepare_access = spi_prepare_4ba,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010387 },
10388
Patrick Rudolph3ba83152021-06-08 10:52:19 +020010389 {
10390 .vendor = "Macronix",
10391 .name = "MX66L1G45G",
10392 .bustype = BUS_SPI,
10393 .manufacture_id = MACRONIX_ID,
10394 .model_id = MACRONIX_MX66L1G45G,
10395 .total_size = 131072,
10396 .page_size = 256,
10397 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
10398 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
10399 .tested = TEST_OK_PREW,
10400 .probe = probe_spi_rdid,
10401 .probe_timing = TIMING_ZERO,
10402 .block_erasers =
10403 {
10404 {
10405 .eraseblocks = { {4 * 1024, 32768} },
10406 .block_erase = spi_block_erase_21,
10407 }, {
10408 .eraseblocks = { {4 * 1024, 32768} },
10409 .block_erase = spi_block_erase_20,
10410 }, {
10411 .eraseblocks = { {32 * 1024, 4096} },
10412 .block_erase = spi_block_erase_5c,
10413 }, {
10414 .eraseblocks = { {32 * 1024, 4096} },
10415 .block_erase = spi_block_erase_52,
10416 }, {
10417 .eraseblocks = { {64 * 1024, 2048} },
10418 .block_erase = spi_block_erase_dc,
10419 }, {
10420 .eraseblocks = { {64 * 1024, 2048} },
10421 .block_erase = spi_block_erase_d8,
10422 }, {
10423 .eraseblocks = { {128 * 1024 * 1024, 1} },
10424 .block_erase = spi_block_erase_60,
10425 }, {
10426 .eraseblocks = { {128 * 1024 * 1024, 1} },
10427 .block_erase = spi_block_erase_c7,
10428 }
10429 },
10430 /* TODO: security register and SBLK/SBULK, configuration register */
10431 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
10432 .unlock = spi_disable_blockprotect_bp3_srwd,
10433 .write = spi_chip_write_256,
10434 .read = spi_chip_read, /* Fast read (0x0B) supported */
10435 .voltage = {2700, 3600},
Nico Huberab6b18f2023-01-11 23:38:20 +010010436 .prepare_access = spi_prepare_4ba,
Patrick Rudolph3ba83152021-06-08 10:52:19 +020010437 },
10438
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010439 /* The ST M25P05 is a bit of a problem. It has the same ID as the
10440 * ST M25P05-A in RES mode, but supports only 128 byte writes instead
10441 * of 256 byte writes. We rely heavily on the fact that probe_spi_res1
10442 * only is successful if RDID does not work.
10443 */
10444 {
10445 .vendor = "Micron/Numonyx/ST",
10446 .name = "M25P05",
10447 .bustype = BUS_SPI,
10448 .manufacture_id = 0, /* Not used. */
10449 .model_id = ST_M25P05_RES,
10450 .total_size = 64,
10451 .page_size = 256,
10452 .feature_bits = FEATURE_WRSR_WREN,
10453 .tested = TEST_UNTESTED,
10454 .probe = probe_spi_res1,
10455 .probe_timing = TIMING_ZERO,
10456 .block_erasers =
10457 {
10458 {
10459 .eraseblocks = { {32 * 1024, 2} },
10460 .block_erase = spi_block_erase_d8,
10461 }, {
10462 .eraseblocks = { {64 * 1024, 1} },
10463 .block_erase = spi_block_erase_c7,
10464 }
10465 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010466 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010467 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010468 .write = spi_chip_write_1, /* 128 */
10469 .read = spi_chip_read,
10470 .voltage = {2700, 3600},
10471 },
10472
10473 {
10474 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010475 .name = "M25P05-A",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010476 .bustype = BUS_SPI,
10477 .manufacture_id = ST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010478 .model_id = ST_M25P05A,
10479 .total_size = 64,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010480 .page_size = 256,
10481 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000010482 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010483 .probe = probe_spi_rdid,
10484 .probe_timing = TIMING_ZERO,
10485 .block_erasers =
10486 {
10487 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010488 .eraseblocks = { {32 * 1024, 2} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010489 .block_erase = spi_block_erase_d8,
10490 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010491 .eraseblocks = { {64 * 1024, 1} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010492 .block_erase = spi_block_erase_c7,
10493 }
10494 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010495 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010496 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010497 .write = spi_chip_write_256,
10498 .read = spi_chip_read,
10499 .voltage = {2700, 3600},
10500 },
10501
10502 /* The ST M25P10 has the same problem as the M25P05. */
10503 {
10504 .vendor = "Micron/Numonyx/ST",
10505 .name = "M25P10",
10506 .bustype = BUS_SPI,
10507 .manufacture_id = 0, /* Not used. */
10508 .model_id = ST_M25P10_RES,
10509 .total_size = 128,
10510 .page_size = 256,
10511 .feature_bits = FEATURE_WRSR_WREN,
10512 .tested = TEST_UNTESTED,
10513 .probe = probe_spi_res1,
10514 .probe_timing = TIMING_ZERO,
10515 .block_erasers =
10516 {
10517 {
10518 .eraseblocks = { {32 * 1024, 4} },
10519 .block_erase = spi_block_erase_d8,
10520 }, {
10521 .eraseblocks = { {128 * 1024, 1} },
10522 .block_erase = spi_block_erase_c7,
10523 }
10524 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010525 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010526 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010527 .write = spi_chip_write_1, /* 128 */
10528 .read = spi_chip_read,
10529 .voltage = {2700, 3600},
10530 },
10531
10532 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010533 .vendor = "Micron/Numonyx/ST",
10534 .name = "M25P10-A",
10535 .bustype = BUS_SPI,
10536 .manufacture_id = ST_ID,
10537 .model_id = ST_M25P10A,
10538 .total_size = 128,
10539 .page_size = 256,
10540 .feature_bits = FEATURE_WRSR_WREN,
10541 .tested = TEST_OK_PREW,
10542 .probe = probe_spi_rdid,
10543 .probe_timing = TIMING_ZERO,
10544 .block_erasers =
10545 {
10546 {
10547 .eraseblocks = { {32 * 1024, 4} },
10548 .block_erase = spi_block_erase_d8,
10549 }, {
10550 .eraseblocks = { {128 * 1024, 1} },
10551 .block_erase = spi_block_erase_c7,
10552 }
10553 },
10554 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
10555 .unlock = spi_disable_blockprotect_bp3_srwd,
10556 .write = spi_chip_write_256,
10557 .read = spi_chip_read,
10558 .voltage = {2700, 3600},
10559 },
10560
10561 {
10562 .vendor = "Micron/Numonyx/ST",
10563 .name = "M25P128",
10564 .bustype = BUS_SPI,
10565 .manufacture_id = ST_ID,
10566 .model_id = ST_M25P128,
10567 .total_size = 16384,
10568 .page_size = 256,
10569 .feature_bits = FEATURE_WRSR_WREN,
10570 .tested = TEST_OK_PREW,
10571 .probe = probe_spi_rdid,
10572 .probe_timing = TIMING_ZERO,
10573 .block_erasers =
10574 {
10575 {
10576 .eraseblocks = { {256 * 1024, 64} },
10577 .block_erase = spi_block_erase_d8,
10578 }, {
10579 .eraseblocks = { {16 * 1024 * 1024, 1} },
10580 .block_erase = spi_block_erase_c7,
10581 }
10582 },
10583 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
10584 .unlock = spi_disable_blockprotect_bp3_srwd,
10585 .write = spi_chip_write_256,
10586 .read = spi_chip_read,
10587 .voltage = {2700, 3600},
10588 },
10589
10590 {
10591 .vendor = "Micron/Numonyx/ST",
10592 .name = "M25P16",
10593 .bustype = BUS_SPI,
10594 .manufacture_id = ST_ID,
10595 .model_id = ST_M25P16,
10596 .total_size = 2048,
10597 .page_size = 256,
10598 .feature_bits = FEATURE_WRSR_WREN,
10599 .tested = TEST_OK_PREW,
10600 .probe = probe_spi_rdid,
10601 .probe_timing = TIMING_ZERO,
10602 .block_erasers =
10603 {
10604 {
10605 .eraseblocks = { {64 * 1024, 32} },
10606 .block_erase = spi_block_erase_d8,
10607 }, {
10608 .eraseblocks = { {2 * 1024 * 1024, 1} },
10609 .block_erase = spi_block_erase_c7,
10610 }
10611 },
10612 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
10613 .unlock = spi_disable_blockprotect_bp3_srwd,
10614 .write = spi_chip_write_256,
10615 .read = spi_chip_read,
10616 .voltage = {2700, 3600},
10617 },
10618
10619 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010620 .vendor = "Micron/Numonyx/ST", /* Numonyx */
10621 .name = "M25P20",
10622 .bustype = BUS_SPI,
10623 .manufacture_id = ST_ID,
10624 .model_id = ST_M25P20,
10625 .total_size = 256,
10626 .page_size = 256,
10627 .feature_bits = FEATURE_WRSR_WREN,
10628 .tested = TEST_UNTESTED,
10629 .probe = probe_spi_rdid,
10630 .probe_timing = TIMING_ZERO,
10631 .block_erasers =
10632 {
10633 {
10634 .eraseblocks = { {64 * 1024, 4} },
10635 .block_erase = spi_block_erase_d8,
10636 }, {
10637 .eraseblocks = { {256 * 1024, 1} },
10638 .block_erase = spi_block_erase_c7,
10639 }
10640 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010641 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010642 .unlock = spi_disable_blockprotect,
10643 .write = spi_chip_write_256,
10644 .read = spi_chip_read, /* Fast read (0x0B) supported */
10645 .voltage = {2700, 3600},
10646 },
10647
10648 {
10649 .vendor = "Micron/Numonyx/ST",
10650 .name = "M25P20-old",
10651 .bustype = BUS_SPI,
10652 .manufacture_id = 0, /* Not used. */
10653 .model_id = ST_M25P20_RES,
10654 .total_size = 256,
10655 .page_size = 256,
10656 .feature_bits = FEATURE_WRSR_WREN,
10657 .tested = TEST_OK_PREW,
10658 .probe = probe_spi_res1,
10659 .probe_timing = TIMING_ZERO,
10660 .block_erasers =
10661 {
10662 {
10663 .eraseblocks = { {64 * 1024, 4} },
10664 .block_erase = spi_block_erase_d8,
10665 }, {
10666 .eraseblocks = { {256 * 1024, 1} },
10667 .block_erase = spi_block_erase_c7,
10668 }
10669 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010670 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010671 .unlock = spi_disable_blockprotect,
10672 .write = spi_chip_write_256,
10673 .read = spi_chip_read, /* Fast read (0x0B) supported */
10674 .voltage = {2700, 3600},
10675 },
10676
10677 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010678 .vendor = "Micron/Numonyx/ST",
10679 .name = "M25P32",
10680 .bustype = BUS_SPI,
10681 .manufacture_id = ST_ID,
10682 .model_id = ST_M25P32,
10683 .total_size = 4096,
10684 .page_size = 256,
10685 .feature_bits = FEATURE_WRSR_WREN,
10686 .tested = TEST_OK_PREW,
10687 .probe = probe_spi_rdid,
10688 .probe_timing = TIMING_ZERO,
10689 .block_erasers =
10690 {
10691 {
10692 .eraseblocks = { {64 * 1024, 64} },
10693 .block_erase = spi_block_erase_d8,
10694 }, {
10695 .eraseblocks = { {4 * 1024 * 1024, 1} },
10696 .block_erase = spi_block_erase_c7,
10697 }
10698 },
10699 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
10700 .unlock = spi_disable_blockprotect_bp3_srwd,
10701 .write = spi_chip_write_256,
10702 .read = spi_chip_read,
10703 .voltage = {2700, 3600},
10704 },
10705
10706 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010707 .vendor = "Micron/Numonyx/ST", /* Numonyx */
10708 .name = "M25P40",
10709 .bustype = BUS_SPI,
10710 .manufacture_id = ST_ID,
10711 .model_id = ST_M25P40,
10712 .total_size = 512,
10713 .page_size = 256,
10714 .feature_bits = FEATURE_WRSR_WREN,
10715 .tested = TEST_OK_PREW,
10716 .probe = probe_spi_rdid,
10717 .probe_timing = TIMING_ZERO,
10718 .block_erasers =
10719 {
10720 {
10721 .eraseblocks = { {64 * 1024, 8} },
10722 .block_erase = spi_block_erase_d8,
10723 }, {
10724 .eraseblocks = { {512 * 1024, 1} },
10725 .block_erase = spi_block_erase_c7,
10726 }
10727 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010728 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010729 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010730 .write = spi_chip_write_256,
10731 .read = spi_chip_read,
10732 .voltage = {2700, 3600},
10733 },
10734
10735 {
10736 .vendor = "Micron/Numonyx/ST",
10737 .name = "M25P40-old",
10738 .bustype = BUS_SPI,
10739 .manufacture_id = 0, /* Not used. */
10740 .model_id = ST_M25P40_RES,
10741 .total_size = 512,
10742 .page_size = 256,
10743 .feature_bits = FEATURE_WRSR_WREN,
10744 .tested = TEST_UNTESTED,
10745 .probe = probe_spi_res1,
10746 .probe_timing = TIMING_ZERO,
10747 .block_erasers =
10748 {
10749 {
10750 .eraseblocks = { {64 * 1024, 8} },
10751 .block_erase = spi_block_erase_d8,
10752 }, {
10753 .eraseblocks = { {512 * 1024, 1} },
10754 .block_erase = spi_block_erase_c7,
10755 }
10756 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010757 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010758 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010759 .write = spi_chip_write_256,
10760 .read = spi_chip_read,
10761 },
10762
10763 {
10764 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010765 .name = "M25P64",
10766 .bustype = BUS_SPI,
10767 .manufacture_id = ST_ID,
10768 .model_id = ST_M25P64,
10769 .total_size = 8192,
10770 .page_size = 256,
10771 .feature_bits = FEATURE_WRSR_WREN,
10772 .tested = TEST_OK_PREW,
10773 .probe = probe_spi_rdid,
10774 .probe_timing = TIMING_ZERO,
10775 .block_erasers =
10776 {
10777 {
10778 .eraseblocks = { {64 * 1024, 128} },
10779 .block_erase = spi_block_erase_d8,
10780 }, {
10781 .eraseblocks = { {8 * 1024 * 1024, 1} },
10782 .block_erase = spi_block_erase_c7,
10783 }
10784 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010785 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010786 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010787 .write = spi_chip_write_256,
10788 .read = spi_chip_read,
10789 .voltage = {2700, 3600},
10790 },
10791
10792 {
10793 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010794 .name = "M25P80",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010795 .bustype = BUS_SPI,
10796 .manufacture_id = ST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010797 .model_id = ST_M25P80,
10798 .total_size = 1024,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010799 .page_size = 256,
10800 .feature_bits = FEATURE_WRSR_WREN,
10801 .tested = TEST_OK_PREW,
10802 .probe = probe_spi_rdid,
10803 .probe_timing = TIMING_ZERO,
10804 .block_erasers =
10805 {
10806 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010807 .eraseblocks = { {64 * 1024, 16} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010808 .block_erase = spi_block_erase_d8,
10809 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010810 .eraseblocks = { {1024 * 1024, 1} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010811 .block_erase = spi_block_erase_c7,
10812 }
10813 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010814 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010815 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010816 .write = spi_chip_write_256,
10817 .read = spi_chip_read,
10818 .voltage = {2700, 3600},
10819 },
10820
10821 {
10822 .vendor = "Micron/Numonyx/ST",
10823 .name = "M25PE10",
10824 .bustype = BUS_SPI,
10825 .manufacture_id = ST_ID,
10826 .model_id = ST_M25PE10,
10827 .total_size = 128,
10828 .page_size = 256,
10829 .feature_bits = FEATURE_WRSR_WREN,
10830 .tested = TEST_UNTESTED,
10831 .probe = probe_spi_rdid,
10832 .probe_timing = TIMING_ZERO,
10833 .block_erasers =
10834 {
10835 {
10836 .eraseblocks = { {4 * 1024, 32} },
10837 .block_erase = spi_block_erase_20,
10838 }, {
10839 .eraseblocks = { {64 * 1024, 2} },
10840 .block_erase = spi_block_erase_d8,
10841 }, {
10842 .eraseblocks = { {128 * 1024, 1} },
10843 .block_erase = spi_block_erase_c7,
10844 }
10845 },
10846 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10847 .unlock = spi_disable_blockprotect,
10848 .write = spi_chip_write_256,
10849 .read = spi_chip_read,
10850 .voltage = {2700, 3600},
10851 },
10852
10853 {
10854 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010855 .name = "M25PE16",
10856 .bustype = BUS_SPI,
10857 .manufacture_id = ST_ID,
10858 .model_id = ST_M25PE16,
10859 .total_size = 2048,
10860 .page_size = 256,
10861 .feature_bits = FEATURE_WRSR_WREN,
10862 .tested = TEST_UNTESTED,
10863 .probe = probe_spi_rdid,
10864 .probe_timing = TIMING_ZERO,
10865 .block_erasers =
10866 {
10867 {
10868 .eraseblocks = { {4 * 1024, 512} },
10869 .block_erase = spi_block_erase_20,
10870 }, {
10871 .eraseblocks = { {64 * 1024, 32} },
10872 .block_erase = spi_block_erase_d8,
10873 }, {
10874 .eraseblocks = { {2 * 1024 * 1024, 1} },
10875 .block_erase = spi_block_erase_c7,
10876 }
10877 },
10878 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10879 .unlock = spi_disable_blockprotect,
10880 .write = spi_chip_write_256,
10881 .read = spi_chip_read,
10882 .voltage = {2700, 3600},
10883 },
10884
10885 {
10886 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010887 .name = "M25PE20",
10888 .bustype = BUS_SPI,
10889 .manufacture_id = ST_ID,
10890 .model_id = ST_M25PE20,
10891 .total_size = 256,
10892 .page_size = 256,
10893 .feature_bits = FEATURE_WRSR_WREN,
10894 .tested = TEST_UNTESTED,
10895 .probe = probe_spi_rdid,
10896 .probe_timing = TIMING_ZERO,
10897 .block_erasers =
10898 {
10899 {
10900 .eraseblocks = { {4 * 1024, 64} },
10901 .block_erase = spi_block_erase_20,
10902 }, {
10903 .eraseblocks = { {64 * 1024, 4} },
10904 .block_erase = spi_block_erase_d8,
10905 }, {
10906 .eraseblocks = { {256 * 1024, 1} },
10907 .block_erase = spi_block_erase_c7,
10908 }
10909 },
10910 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10911 .unlock = spi_disable_blockprotect,
10912 .write = spi_chip_write_256,
10913 .read = spi_chip_read,
10914 .voltage = {2700, 3600},
10915 },
10916
10917 {
10918 .vendor = "Micron/Numonyx/ST",
10919 .name = "M25PE40",
10920 .bustype = BUS_SPI,
10921 .manufacture_id = ST_ID,
10922 .model_id = ST_M25PE40,
10923 .total_size = 512,
10924 .page_size = 256,
10925 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000010926 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010927 .probe = probe_spi_rdid,
10928 .probe_timing = TIMING_ZERO,
10929 .block_erasers =
10930 {
10931 {
10932 .eraseblocks = { {4 * 1024, 128} },
10933 .block_erase = spi_block_erase_20,
10934 }, {
10935 .eraseblocks = { {64 * 1024, 8} },
10936 .block_erase = spi_block_erase_d8,
10937 }, {
10938 .eraseblocks = { {512 * 1024, 1} },
10939 .block_erase = spi_block_erase_c7,
10940 }
10941 },
10942 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10943 .unlock = spi_disable_blockprotect,
10944 .write = spi_chip_write_256,
10945 .read = spi_chip_read,
10946 .voltage = {2700, 3600},
10947 },
10948
10949 {
10950 .vendor = "Micron/Numonyx/ST",
10951 .name = "M25PE80",
10952 .bustype = BUS_SPI,
10953 .manufacture_id = ST_ID,
10954 .model_id = ST_M25PE80,
10955 .total_size = 1024,
10956 .page_size = 256,
10957 .feature_bits = FEATURE_WRSR_WREN,
10958 .tested = TEST_OK_PREW,
10959 .probe = probe_spi_rdid,
10960 .probe_timing = TIMING_ZERO,
10961 .block_erasers =
10962 {
10963 {
10964 .eraseblocks = { {4 * 1024, 256} },
10965 .block_erase = spi_block_erase_20,
10966 }, {
10967 .eraseblocks = { {64 * 1024, 16} },
10968 .block_erase = spi_block_erase_d8,
10969 }, {
10970 .eraseblocks = { {1024 * 1024, 1} },
10971 .block_erase = spi_block_erase_c7,
10972 }
10973 },
10974 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10975 .unlock = spi_disable_blockprotect,
10976 .write = spi_chip_write_256,
10977 .read = spi_chip_read,
10978 .voltage = {2700, 3600},
10979 },
10980
10981 {
10982 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010983 .name = "M25PX16",
10984 .bustype = BUS_SPI,
10985 .manufacture_id = ST_ID,
10986 .model_id = ST_M25PX16,
10987 .total_size = 2048,
10988 .page_size = 256,
10989 /* OTP: 64B total; read 0x4B; write 0x42 */
10990 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10991 .tested = TEST_OK_PREW,
10992 .probe = probe_spi_rdid,
10993 .probe_timing = TIMING_ZERO,
10994 .block_erasers =
10995 {
10996 {
10997 .eraseblocks = { { 4 * 1024, 512 } },
10998 .block_erase = spi_block_erase_20,
10999 }, {
11000 .eraseblocks = { {64 * 1024, 32} },
11001 .block_erase = spi_block_erase_d8,
11002 }, {
11003 .eraseblocks = { {2 * 1024 * 1024, 1} },
11004 .block_erase = spi_block_erase_c7,
11005 }
11006 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011007 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011008 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
11009 .write = spi_chip_write_256,
11010 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000011011 .voltage = {2300, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011012 },
11013
11014 {
11015 .vendor = "Micron/Numonyx/ST",
11016 .name = "M25PX32",
11017 .bustype = BUS_SPI,
11018 .manufacture_id = ST_ID,
11019 .model_id = ST_M25PX32,
11020 .total_size = 4096,
11021 .page_size = 256,
11022 /* OTP: 64B total; read 0x4B; write 0x42 */
11023 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11024 .tested = TEST_OK_PRE,
11025 .probe = probe_spi_rdid,
11026 .probe_timing = TIMING_ZERO,
11027 .block_erasers =
11028 {
11029 {
11030 .eraseblocks = { { 4 * 1024, 1024 } },
11031 .block_erase = spi_block_erase_20,
11032 }, {
11033 .eraseblocks = { {64 * 1024, 64} },
11034 .block_erase = spi_block_erase_d8,
11035 }, {
11036 .eraseblocks = { {4 * 1024 * 1024, 1} },
11037 .block_erase = spi_block_erase_c7,
11038 }
11039 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011040 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011041 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
11042 .write = spi_chip_write_256,
11043 .read = spi_chip_read,
11044 .voltage = {2700, 3600},
11045 },
11046
11047 {
11048 .vendor = "Micron/Numonyx/ST",
11049 .name = "M25PX64",
11050 .bustype = BUS_SPI,
11051 .manufacture_id = ST_ID,
11052 .model_id = ST_M25PX64,
11053 .total_size = 8192,
11054 .page_size = 256,
11055 /* OTP: 64B total; read 0x4B; write 0x42 */
11056 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000011057 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011058 .probe = probe_spi_rdid,
11059 .probe_timing = TIMING_ZERO,
11060 .block_erasers =
11061 {
11062 {
11063 .eraseblocks = { { 4 * 1024, 2048 } },
11064 .block_erase = spi_block_erase_20,
11065 }, {
11066 .eraseblocks = { {64 * 1024, 128} },
11067 .block_erase = spi_block_erase_d8,
11068 }, {
11069 .eraseblocks = { {8 * 1024 * 1024, 1} },
11070 .block_erase = spi_block_erase_c7,
11071 }
11072 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011073 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011074 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
11075 .write = spi_chip_write_256,
11076 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000011077 .voltage = {2700, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011078 },
11079
11080 {
11081 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100011082 .name = "M25PX80",
11083 .bustype = BUS_SPI,
11084 .manufacture_id = ST_ID,
11085 .model_id = ST_M25PX80,
11086 .total_size = 1024,
11087 .page_size = 256,
11088 /* OTP: 64B total; read 0x4B, write 0x42 */
11089 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11090 .tested = TEST_OK_PREW,
11091 .probe = probe_spi_rdid,
11092 .probe_timing = TIMING_ZERO,
11093 .block_erasers =
11094 {
11095 {
11096 .eraseblocks = { { 4 * 1024, 256 } },
11097 .block_erase = spi_block_erase_20,
11098 }, {
11099 .eraseblocks = { {64 * 1024, 16} },
11100 .block_erase = spi_block_erase_d8,
11101 }, {
11102 .eraseblocks = { {1024 * 1024, 1} },
11103 .block_erase = spi_block_erase_c7,
11104 }
11105 },
11106 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
11107 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
11108 .write = spi_chip_write_256,
11109 .read = spi_chip_read,
11110 .voltage = {2700, 3600},
11111 },
11112
11113 {
11114 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011115 .name = "M45PE10",
11116 .bustype = BUS_SPI,
11117 .manufacture_id = ST_ID,
11118 .model_id = ST_M45PE10,
11119 .total_size = 128,
11120 .page_size = 256,
11121 .tested = TEST_UNTESTED,
11122 .probe = probe_spi_rdid,
11123 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011124 .block_erasers =
11125 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011126 {
11127 .eraseblocks = { {256, 512} },
11128 .block_erase = spi_block_erase_db,
11129 }, {
11130 .eraseblocks = { {64 * 1024, 2} },
11131 .block_erase = spi_block_erase_d8,
11132 }
11133 },
11134 .printlock = spi_prettyprint_status_register_default_welwip,
11135 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
11136 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
11137 .read = spi_chip_read, /* Fast read (0x0B) supported */
11138 .voltage = {2700, 3600},
11139 },
11140
11141 {
11142 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100011143 .name = "M45PE16",
11144 .bustype = BUS_SPI,
11145 .manufacture_id = ST_ID,
11146 .model_id = ST_M45PE16,
11147 .total_size = 2048,
11148 .page_size = 256,
11149 .tested = TEST_UNTESTED,
11150 .probe = probe_spi_rdid,
11151 .probe_timing = TIMING_ZERO,
11152 .block_erasers =
11153 {
11154 {
11155 .eraseblocks = { {256, 8192} },
11156 .block_erase = spi_block_erase_db,
11157 }, {
11158 .eraseblocks = { {64 * 1024, 32} },
11159 .block_erase = spi_block_erase_d8,
11160 }
11161 },
11162 .printlock = spi_prettyprint_status_register_default_welwip,
11163 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
11164 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
11165 .read = spi_chip_read, /* Fast read (0x0B) supported */
11166 .voltage = {2700, 3600},
11167 },
11168
11169 {
11170 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011171 .name = "M45PE20",
11172 .bustype = BUS_SPI,
11173 .manufacture_id = ST_ID,
11174 .model_id = ST_M45PE20,
11175 .total_size = 256,
11176 .page_size = 256,
11177 .tested = TEST_UNTESTED,
11178 .probe = probe_spi_rdid,
11179 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011180 .block_erasers =
11181 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011182 {
11183 .eraseblocks = { {256, 1024} },
11184 .block_erase = spi_block_erase_db,
11185 }, {
11186 .eraseblocks = { {64 * 1024, 4} },
11187 .block_erase = spi_block_erase_d8,
11188 }
11189 },
11190 .printlock = spi_prettyprint_status_register_default_welwip,
11191 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
11192 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
11193 .read = spi_chip_read, /* Fast read (0x0B) supported */
11194 .voltage = {2700, 3600},
11195 },
11196
11197 {
11198 .vendor = "Micron/Numonyx/ST",
11199 .name = "M45PE40",
11200 .bustype = BUS_SPI,
11201 .manufacture_id = ST_ID,
11202 .model_id = ST_M45PE40,
11203 .total_size = 512,
11204 .page_size = 256,
11205 .tested = TEST_UNTESTED,
11206 .probe = probe_spi_rdid,
11207 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011208 .block_erasers =
11209 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011210 {
11211 .eraseblocks = { {256, 2048} },
11212 .block_erase = spi_block_erase_db,
11213 }, {
11214 .eraseblocks = { {64 * 1024, 8} },
11215 .block_erase = spi_block_erase_d8,
11216 }
11217 },
11218 .printlock = spi_prettyprint_status_register_default_welwip,
11219 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
Stefan Tauner23e10b82016-01-23 16:16:49 +000011220 .write = spi_chip_write_256, /* Page write supported (similar to PP but allows 0->1 changes) */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011221 .read = spi_chip_read, /* Fast read (0x0B) supported */
11222 .voltage = {2700, 3600},
11223 },
11224
11225 {
11226 .vendor = "Micron/Numonyx/ST",
11227 .name = "M45PE80",
11228 .bustype = BUS_SPI,
11229 .manufacture_id = ST_ID,
11230 .model_id = ST_M45PE80,
11231 .total_size = 1024,
11232 .page_size = 256,
11233 .tested = TEST_UNTESTED,
11234 .probe = probe_spi_rdid,
11235 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011236 .block_erasers =
11237 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011238 {
11239 .eraseblocks = { {256, 4096} },
11240 .block_erase = spi_block_erase_db,
11241 }, {
11242 .eraseblocks = { {64 * 1024, 16} },
11243 .block_erase = spi_block_erase_d8,
11244 }
11245 },
11246 .printlock = spi_prettyprint_status_register_default_welwip,
11247 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
11248 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
11249 .read = spi_chip_read, /* Fast read (0x0B) supported */
11250 .voltage = {2700, 3600},
11251 },
11252
11253 {
11254 .vendor = "Micron/Numonyx/ST",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011255 .name = "N25Q00A..1G", /* ..1G = 1.8V, uniform 64KB/4KB blocks/sectors */
11256 .bustype = BUS_SPI,
11257 .manufacture_id = ST_ID,
11258 .model_id = ST_N25Q00A__1G,
11259 .total_size = 131072,
11260 .page_size = 256,
11261 /* supports SFDP */
11262 /* OTP: 64B total; read 0x4B, write 0x42 */
11263 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11264 .tested = TEST_UNTESTED,
11265 .probe = probe_spi_rdid,
11266 .probe_timing = TIMING_ZERO,
11267 .block_erasers =
11268 {
11269 {
11270 .eraseblocks = { {4 * 1024, 32768} },
11271 .block_erase = spi_block_erase_21,
11272 }, {
11273 .eraseblocks = { {4 * 1024, 32768} },
11274 .block_erase = spi_block_erase_20,
11275 }, {
11276 .eraseblocks = { {64 * 1024, 2048} },
11277 .block_erase = spi_block_erase_dc,
11278 }, {
11279 .eraseblocks = { {64 * 1024, 2048} },
11280 .block_erase = spi_block_erase_d8,
11281 }, {
11282 .eraseblocks = { {32768 * 1024, 4} },
11283 .block_erase = spi_block_erase_c4,
11284 }
11285 },
11286 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11287 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11288 .write = spi_chip_write_256, /* Multi I/O supported */
11289 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11290 .voltage = {1700, 2000},
Nico Huberab6b18f2023-01-11 23:38:20 +010011291 .prepare_access = spi_prepare_4ba,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011292 },
11293
11294 {
11295 .vendor = "Micron/Numonyx/ST",
11296 .name = "N25Q00A..3G", /* ..3G = 3V, uniform 64KB/4KB blocks/sectors */
11297 .bustype = BUS_SPI,
11298 .manufacture_id = ST_ID,
11299 .model_id = ST_N25Q00A__3G,
11300 .total_size = 131072,
11301 .page_size = 256,
11302 /* supports SFDP */
11303 /* OTP: 64B total; read 0x4B, write 0x42 */
11304 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11305 .tested = TEST_UNTESTED,
11306 .probe = probe_spi_rdid,
11307 .probe_timing = TIMING_ZERO,
11308 .block_erasers =
11309 {
11310 {
11311 .eraseblocks = { {4 * 1024, 32768} },
11312 .block_erase = spi_block_erase_21,
11313 }, {
11314 .eraseblocks = { {4 * 1024, 32768} },
11315 .block_erase = spi_block_erase_20,
11316 }, {
11317 .eraseblocks = { {64 * 1024, 2048} },
11318 .block_erase = spi_block_erase_dc,
11319 }, {
11320 .eraseblocks = { {64 * 1024, 2048} },
11321 .block_erase = spi_block_erase_d8,
11322 }, {
11323 .eraseblocks = { {32768 * 1024, 4} },
11324 .block_erase = spi_block_erase_c4,
11325 }
11326 },
11327 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11328 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11329 .write = spi_chip_write_256, /* Multi I/O supported */
11330 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11331 .voltage = {2700, 3600},
Nico Huberab6b18f2023-01-11 23:38:20 +010011332 .prepare_access = spi_prepare_4ba,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011333 },
11334
11335 {
11336 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011337 .name = "N25Q016",
11338 .bustype = BUS_SPI,
11339 .manufacture_id = ST_ID,
11340 .model_id = ST_N25Q016__1E,
11341 .total_size = 2048,
11342 .page_size = 256,
11343 /* supports SFDP */
11344 /* OTP: 64B total; read 0x4B, write 0x42 */
11345 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11346 .tested = TEST_UNTESTED,
11347 .probe = probe_spi_rdid,
11348 .probe_timing = TIMING_ZERO,
11349 .block_erasers =
11350 {
11351 {
11352 .eraseblocks = { {4 * 1024, 512} },
11353 .block_erase = spi_block_erase_20,
11354 }, {
11355 .eraseblocks = { {32 * 1024, 64} },
11356 .block_erase = spi_block_erase_52,
11357 }, {
11358 .eraseblocks = { {64 * 1024, 32} },
11359 .block_erase = spi_block_erase_d8,
11360 }, {
11361 .eraseblocks = { {2 * 1024 * 1024, 1} },
11362 .block_erase = spi_block_erase_c7,
11363 }
11364 },
11365 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11366 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11367 .write = spi_chip_write_256, /* Multi I/O supported */
11368 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11369 .voltage = {1700, 2000},
11370 },
11371
11372 {
11373 .vendor = "Micron/Numonyx/ST",
11374 .name = "N25Q032..1E",
11375 .bustype = BUS_SPI,
11376 .manufacture_id = ST_ID,
11377 .model_id = ST_N25Q032__1E,
11378 .total_size = 4096,
11379 .page_size = 256,
11380 /* supports SFDP */
11381 /* OTP: 64B total; read 0x4B, write 0x42 */
11382 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11383 .tested = TEST_UNTESTED,
11384 .probe = probe_spi_rdid,
11385 .probe_timing = TIMING_ZERO,
11386 .block_erasers =
11387 {
11388 {
11389 .eraseblocks = { {4 * 1024, 1024} },
11390 .block_erase = spi_block_erase_20,
11391 }, {
11392 .eraseblocks = { {64 * 1024, 64} },
11393 .block_erase = spi_block_erase_d8,
11394 }, {
11395 .eraseblocks = { {4 * 1024 * 1024, 1} },
11396 .block_erase = spi_block_erase_c7,
11397 }
11398 },
11399 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11400 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11401 .write = spi_chip_write_256, /* Multi I/O supported */
11402 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11403 .voltage = {1700, 2000},
Sergii Dmytrukd5ba24c2022-07-25 00:28:35 +030011404 .reg_bits =
11405 {
11406 /*
11407 * There is also a volatile lock register per 64KiB sector, which is not
11408 * mutually exclusive with BP-based protection.
11409 */
11410 .srp = {STATUS1, 7, RW},
11411 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
11412 .tb = {STATUS1, 5, RW},
11413 },
11414 .decode_range = decode_range_spi25,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011415 },
11416
11417 {
11418 .vendor = "Micron/Numonyx/ST",
11419 .name = "N25Q032..3E",
11420 .bustype = BUS_SPI,
11421 .manufacture_id = ST_ID,
11422 .model_id = ST_N25Q032__3E,
11423 .total_size = 4096,
11424 .page_size = 256,
11425 /* supports SFDP */
11426 /* OTP: 64B total; read 0x4B, write 0x42 */
11427 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11428 .tested = TEST_OK_PREW,
11429 .probe = probe_spi_rdid,
11430 .probe_timing = TIMING_ZERO,
11431 .block_erasers =
11432 {
11433 {
11434 .eraseblocks = { {4 * 1024, 1024} },
11435 .block_erase = spi_block_erase_20,
11436 }, {
11437 .eraseblocks = { {64 * 1024, 64} },
11438 .block_erase = spi_block_erase_d8,
11439 }, {
11440 .eraseblocks = { {4 * 1024 * 1024, 1} },
11441 .block_erase = spi_block_erase_c7,
11442 }
11443 },
11444 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11445 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11446 .write = spi_chip_write_256, /* Multi I/O supported */
11447 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11448 .voltage = {2700, 3600},
Sergii Dmytrukd5ba24c2022-07-25 00:28:35 +030011449 .reg_bits =
11450 {
11451 /*
11452 * There is also a volatile lock register per 64KiB sector, which is not
11453 * mutually exclusive with BP-based protection.
11454 */
11455 .srp = {STATUS1, 7, RW},
11456 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
11457 .tb = {STATUS1, 5, RW},
11458 },
11459 .decode_range = decode_range_spi25,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011460 },
11461
11462 {
11463 .vendor = "Micron/Numonyx/ST",
11464 .name = "N25Q064..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
11465 .bustype = BUS_SPI,
11466 .manufacture_id = ST_ID,
11467 .model_id = ST_N25Q064__1E,
11468 .total_size = 8192,
11469 .page_size = 256,
11470 /* supports SFDP */
11471 /* OTP: 64B total; read 0x4B, write 0x42 */
11472 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000011473 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011474 .probe = probe_spi_rdid,
11475 .probe_timing = TIMING_ZERO,
11476 .block_erasers =
11477 {
11478 {
11479 .eraseblocks = { {4 * 1024, 2048 } },
11480 .block_erase = spi_block_erase_20,
11481 }, {
11482 .eraseblocks = { {64 * 1024, 128} },
11483 .block_erase = spi_block_erase_d8,
11484 }, {
11485 .eraseblocks = { {8 * 1024 * 1024, 1} },
11486 .block_erase = spi_block_erase_c7,
11487 }
11488 },
11489 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11490 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11491 .write = spi_chip_write_256, /* Multi I/O supported */
11492 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11493 .voltage = {1700, 2000},
Sergii Dmytrukd5ba24c2022-07-25 00:28:35 +030011494 .reg_bits =
11495 {
11496 /*
11497 * There is also a volatile lock register per 64KiB sector, which is not
11498 * mutually exclusive with BP-based protection.
11499 */
11500 .srp = {STATUS1, 7, RW},
11501 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 6, RW}},
11502 .tb = {STATUS1, 5, RW},
11503 },
11504 .decode_range = decode_range_spi25,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011505 },
11506
11507 {
11508 .vendor = "Micron/Numonyx/ST",
11509 .name = "N25Q064..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
11510 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100011511 .manufacture_id = ST_ID,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011512 .model_id = ST_N25Q064__3E,
11513 .total_size = 8192,
11514 .page_size = 256,
11515 /* supports SFDP */
11516 /* OTP: 64B total; read 0x4B, write 0x42 */
11517 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11518 .tested = TEST_OK_PREW,
11519 .probe = probe_spi_rdid,
11520 .probe_timing = TIMING_ZERO,
11521 .block_erasers =
11522 {
11523 {
11524 .eraseblocks = { {4 * 1024, 2048 } },
11525 .block_erase = spi_block_erase_20,
11526 }, {
11527 .eraseblocks = { {64 * 1024, 128} },
11528 .block_erase = spi_block_erase_d8,
11529 }, {
11530 .eraseblocks = { {8 * 1024 * 1024, 1} },
11531 .block_erase = spi_block_erase_c7,
11532 }
11533 },
11534 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11535 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11536 .write = spi_chip_write_256, /* Multi I/O supported */
11537 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11538 .voltage = {2700, 3600},
Sergii Dmytrukd5ba24c2022-07-25 00:28:35 +030011539 .reg_bits =
11540 {
11541 /*
11542 * There is also a volatile lock register per 64KiB sector, which is not
11543 * mutually exclusive with BP-based protection.
11544 */
11545 .srp = {STATUS1, 7, RW},
11546 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 6, RW}},
11547 .tb = {STATUS1, 5, RW},
11548 },
11549 .decode_range = decode_range_spi25,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011550 },
11551
11552 {
11553 .vendor = "Micron/Numonyx/ST",
11554 .name = "N25Q128..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
11555 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100011556 .manufacture_id = ST_ID,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011557 .model_id = ST_N25Q128__1E,
11558 .total_size = 16384,
11559 .page_size = 256,
11560 /* supports SFDP */
11561 /* OTP: 64B total; read 0x4B, write 0x42 */
11562 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011563 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011564 .probe = probe_spi_rdid,
11565 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011566 .block_erasers =
11567 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011568 {
11569 .eraseblocks = { {4 * 1024, 4096 } },
11570 .block_erase = spi_block_erase_20,
11571 }, {
11572 .eraseblocks = { {64 * 1024, 256} },
11573 .block_erase = spi_block_erase_d8,
11574 }, {
11575 .eraseblocks = { {16384 * 1024, 1} },
11576 .block_erase = spi_block_erase_c7,
11577 }
11578 },
11579 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11580 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11581 .write = spi_chip_write_256, /* Multi I/O supported */
11582 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11583 .voltage = {1700, 2000},
11584 },
11585
11586 {
11587 .vendor = "Micron/Numonyx/ST",
11588 .name = "N25Q128..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
11589 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100011590 .manufacture_id = ST_ID,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011591 .model_id = ST_N25Q128__3E,
11592 .total_size = 16384,
11593 .page_size = 256,
11594 /* supports SFDP */
11595 /* OTP: 64B total; read 0x4B, write 0x42 */
11596 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11597 .tested = TEST_OK_PREW,
11598 .probe = probe_spi_rdid,
11599 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011600 .block_erasers =
11601 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011602 {
11603 .eraseblocks = { {4 * 1024, 4096 } },
11604 .block_erase = spi_block_erase_20,
11605 }, {
11606 .eraseblocks = { {64 * 1024, 256} },
11607 .block_erase = spi_block_erase_d8,
11608 }, {
11609 .eraseblocks = { {16384 * 1024, 1} },
11610 .block_erase = spi_block_erase_c7,
11611 }
11612 },
11613 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11614 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11615 .write = spi_chip_write_256, /* Multi I/O supported */
11616 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11617 .voltage = {2700, 3600},
11618 },
11619
11620 {
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011621 .vendor = "Micron/Numonyx/ST",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011622 .name = "N25Q256..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
11623 .bustype = BUS_SPI,
11624 .manufacture_id = ST_ID,
11625 .model_id = ST_N25Q256__1E,
11626 .total_size = 32768,
11627 .page_size = 256,
11628 /* supports SFDP */
11629 /* OTP: 64B total; read 0x4B, write 0x42 */
11630 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11631 .tested = TEST_UNTESTED,
11632 .probe = probe_spi_rdid,
11633 .probe_timing = TIMING_ZERO,
11634 .block_erasers =
11635 {
11636 {
11637 .eraseblocks = { {4 * 1024, 8192} },
11638 .block_erase = spi_block_erase_21,
11639 }, {
11640 .eraseblocks = { {4 * 1024, 8192} },
11641 .block_erase = spi_block_erase_20,
11642 }, {
11643 .eraseblocks = { {64 * 1024, 512} },
11644 .block_erase = spi_block_erase_dc,
11645 }, {
11646 .eraseblocks = { {64 * 1024, 512} },
11647 .block_erase = spi_block_erase_d8,
11648 }, {
11649 .eraseblocks = { {32768 * 1024, 1} },
11650 .block_erase = spi_block_erase_c7,
11651 }
11652 },
11653 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11654 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11655 .write = spi_chip_write_256, /* Multi I/O supported */
11656 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11657 .voltage = {1700, 2000},
Nico Huberab6b18f2023-01-11 23:38:20 +010011658 .prepare_access = spi_prepare_4ba,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011659 },
11660
11661 {
11662 .vendor = "Micron/Numonyx/ST",
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011663 .name = "N25Q256..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
11664 .bustype = BUS_SPI,
11665 .manufacture_id = ST_ID,
11666 .model_id = ST_N25Q256__3E,
11667 .total_size = 32768,
11668 .page_size = 256,
11669 /* supports SFDP */
11670 /* OTP: 64B total; read 0x4B, write 0x42 */
11671 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11672 .tested = TEST_UNTESTED,
11673 .probe = probe_spi_rdid,
11674 .probe_timing = TIMING_ZERO,
11675 .block_erasers =
11676 {
11677 {
11678 .eraseblocks = { {4 * 1024, 8192} },
11679 .block_erase = spi_block_erase_21,
11680 }, {
11681 .eraseblocks = { {4 * 1024, 8192} },
11682 .block_erase = spi_block_erase_20,
11683 }, {
11684 .eraseblocks = { {64 * 1024, 512} },
11685 .block_erase = spi_block_erase_dc,
11686 }, {
11687 .eraseblocks = { {64 * 1024, 512} },
11688 .block_erase = spi_block_erase_d8,
11689 }, {
11690 .eraseblocks = { {32768 * 1024, 1} },
11691 .block_erase = spi_block_erase_c7,
11692 }
11693 },
11694 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11695 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11696 .write = spi_chip_write_256, /* Multi I/O supported */
11697 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11698 .voltage = {2700, 3600},
Nico Huberab6b18f2023-01-11 23:38:20 +010011699 .prepare_access = spi_prepare_4ba,
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011700 },
11701
11702 {
11703 .vendor = "Micron/Numonyx/ST",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011704 .name = "N25Q512..1G", /* ..1G = 1.8V, uniform 64KB/4KB blocks/sectors */
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011705 .bustype = BUS_SPI,
11706 .manufacture_id = ST_ID,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011707 .model_id = ST_N25Q512__1G,
11708 .total_size = 65536,
11709 .page_size = 256,
11710 /* supports SFDP */
11711 /* OTP: 64B total; read 0x4B, write 0x42 */
11712 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11713 .tested = TEST_UNTESTED,
11714 .probe = probe_spi_rdid,
11715 .probe_timing = TIMING_ZERO,
11716 .block_erasers =
11717 {
11718 {
11719 .eraseblocks = { {4 * 1024, 16384} },
11720 .block_erase = spi_block_erase_21,
11721 }, {
11722 .eraseblocks = { {4 * 1024, 16384} },
11723 .block_erase = spi_block_erase_20,
11724 }, {
11725 .eraseblocks = { {64 * 1024, 1024} },
11726 .block_erase = spi_block_erase_dc,
11727 }, {
11728 .eraseblocks = { {64 * 1024, 1024} },
11729 .block_erase = spi_block_erase_d8,
11730 }, {
11731 .eraseblocks = { {32768 * 1024, 2} },
11732 .block_erase = spi_block_erase_c4,
11733 }
11734 },
11735 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11736 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11737 .write = spi_chip_write_256, /* Multi I/O supported */
11738 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11739 .voltage = {1700, 2000},
Nico Huberab6b18f2023-01-11 23:38:20 +010011740 .prepare_access = spi_prepare_4ba,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011741 },
11742
11743 {
11744 .vendor = "Micron/Numonyx/ST",
11745 .name = "N25Q512..3G", /* ..3G = 3V, uniform 64KB/4KB blocks/sectors */
11746 .bustype = BUS_SPI,
11747 .manufacture_id = ST_ID,
11748 .model_id = ST_N25Q512__3G,
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011749 .total_size = 65536,
11750 .page_size = 256,
11751 /* supports SFDP */
11752 /* OTP: 64B total; read 0x4B, write 0x42 */
11753 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11754 .tested = TEST_OK_PREW,
11755 .probe = probe_spi_rdid,
11756 .probe_timing = TIMING_ZERO,
11757 .block_erasers =
11758 {
11759 {
11760 .eraseblocks = { {4 * 1024, 16384} },
11761 .block_erase = spi_block_erase_21,
11762 }, {
11763 .eraseblocks = { {4 * 1024, 16384} },
11764 .block_erase = spi_block_erase_20,
11765 }, {
11766 .eraseblocks = { {64 * 1024, 1024} },
11767 .block_erase = spi_block_erase_dc,
11768 }, {
11769 .eraseblocks = { {64 * 1024, 1024} },
11770 .block_erase = spi_block_erase_d8,
11771 }, {
Jacob Creedone8e7b0e2019-07-22 12:21:22 -070011772 .eraseblocks = { {32768 * 1024, 2} },
11773 .block_erase = spi_block_erase_c4,
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011774 }
11775 },
11776 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11777 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11778 .write = spi_chip_write_256, /* Multi I/O supported */
11779 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11780 .voltage = {2700, 3600},
Nico Huberab6b18f2023-01-11 23:38:20 +010011781 .prepare_access = spi_prepare_4ba,
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011782 },
11783
11784 {
Ed Swierk199ab392017-07-03 13:33:44 -070011785 .vendor = "Micron",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011786 .name = "MT25QL01G", /* L = 3V, uniform 64KB/4KB blocks/sectors */
11787 .bustype = BUS_SPI,
11788 .manufacture_id = ST_ID,
11789 .model_id = ST_N25Q00A__3G,
11790 .total_size = 131072,
11791 .page_size = 256,
11792 /* supports SFDP */
11793 /* OTP: 64B total; read 0x4B, write 0x42 */
11794 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11795 .tested = TEST_OK_PREW,
11796 .probe = probe_spi_rdid,
11797 .probe_timing = TIMING_ZERO,
11798 .block_erasers =
11799 {
11800 {
11801 .eraseblocks = { {4 * 1024, 32768} },
11802 .block_erase = spi_block_erase_21,
11803 }, {
11804 .eraseblocks = { {4 * 1024, 32768} },
11805 .block_erase = spi_block_erase_20,
11806 }, {
11807 .eraseblocks = { {32 * 1024, 4096} },
11808 .block_erase = spi_block_erase_5c,
11809 }, {
11810 .eraseblocks = { {32 * 1024, 4096} },
11811 .block_erase = spi_block_erase_52,
11812 }, {
11813 .eraseblocks = { {64 * 1024, 2048} },
11814 .block_erase = spi_block_erase_dc,
11815 }, {
11816 .eraseblocks = { {64 * 1024, 2048} },
11817 .block_erase = spi_block_erase_d8,
11818 }, {
11819 .eraseblocks = { {65536 * 1024, 2} },
11820 .block_erase = spi_block_erase_c4,
11821 }
11822 },
11823 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11824 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11825 .write = spi_chip_write_256, /* Multi I/O supported */
11826 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11827 .voltage = {2700, 3600},
Nico Huberab6b18f2023-01-11 23:38:20 +010011828 .prepare_access = spi_prepare_4ba,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011829 },
11830
11831 {
11832 .vendor = "Micron",
11833 .name = "MT25QU01G", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
11834 .bustype = BUS_SPI,
11835 .manufacture_id = ST_ID,
11836 .model_id = ST_N25Q00A__1G,
11837 .total_size = 131072,
11838 .page_size = 256,
11839 /* supports SFDP */
11840 /* OTP: 64B total; read 0x4B, write 0x42 */
11841 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11842 .tested = TEST_UNTESTED,
11843 .probe = probe_spi_rdid,
11844 .probe_timing = TIMING_ZERO,
11845 .block_erasers =
11846 {
11847 {
11848 .eraseblocks = { {4 * 1024, 32768} },
11849 .block_erase = spi_block_erase_21,
11850 }, {
11851 .eraseblocks = { {4 * 1024, 32768} },
11852 .block_erase = spi_block_erase_20,
11853 }, {
11854 .eraseblocks = { {32 * 1024, 4096} },
11855 .block_erase = spi_block_erase_5c,
11856 }, {
11857 .eraseblocks = { {32 * 1024, 4096} },
11858 .block_erase = spi_block_erase_52,
11859 }, {
11860 .eraseblocks = { {64 * 1024, 2048} },
11861 .block_erase = spi_block_erase_dc,
11862 }, {
11863 .eraseblocks = { {64 * 1024, 2048} },
11864 .block_erase = spi_block_erase_d8,
11865 }, {
11866 .eraseblocks = { {65536 * 1024, 2} },
11867 .block_erase = spi_block_erase_c4,
11868 }
11869 },
11870 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11871 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11872 .write = spi_chip_write_256, /* Multi I/O supported */
11873 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11874 .voltage = {1700, 2000},
Nico Huberab6b18f2023-01-11 23:38:20 +010011875 .prepare_access = spi_prepare_4ba,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011876 },
11877
11878 {
11879 .vendor = "Micron",
11880 .name = "MT25QL02G", /* L = 3V, uniform 64KB/4KB blocks/sectors */
11881 .bustype = BUS_SPI,
11882 .manufacture_id = ST_ID,
11883 .model_id = ST_MT25QL02G,
11884 .total_size = 262144,
11885 .page_size = 256,
11886 /* supports SFDP */
11887 /* OTP: 64B total; read 0x4B, write 0x42 */
11888 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11889 .tested = TEST_UNTESTED,
11890 .probe = probe_spi_rdid,
11891 .probe_timing = TIMING_ZERO,
11892 .block_erasers =
11893 {
11894 {
11895 .eraseblocks = { {4 * 1024, 65536} },
11896 .block_erase = spi_block_erase_21,
11897 }, {
11898 .eraseblocks = { {4 * 1024, 65536} },
11899 .block_erase = spi_block_erase_20,
11900 }, {
11901 .eraseblocks = { {32 * 1024, 8192} },
11902 .block_erase = spi_block_erase_5c,
11903 }, {
11904 .eraseblocks = { {32 * 1024, 8192} },
11905 .block_erase = spi_block_erase_52,
11906 }, {
11907 .eraseblocks = { {64 * 1024, 4096} },
11908 .block_erase = spi_block_erase_dc,
11909 }, {
11910 .eraseblocks = { {64 * 1024, 4096} },
11911 .block_erase = spi_block_erase_d8,
11912 }, {
11913 .eraseblocks = { {65536 * 1024, 4} },
11914 .block_erase = spi_block_erase_c4,
11915 }
11916 },
11917 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11918 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11919 .write = spi_chip_write_256, /* Multi I/O supported */
11920 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11921 .voltage = {2700, 3600},
Nico Huberab6b18f2023-01-11 23:38:20 +010011922 .prepare_access = spi_prepare_4ba,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011923 },
11924
11925 {
11926 .vendor = "Micron",
11927 .name = "MT25QU02G", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
11928 .bustype = BUS_SPI,
11929 .manufacture_id = ST_ID,
11930 .model_id = ST_MT25QU02G,
11931 .total_size = 262144,
11932 .page_size = 256,
11933 /* supports SFDP */
11934 /* OTP: 64B total; read 0x4B, write 0x42 */
11935 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11936 .tested = TEST_UNTESTED,
11937 .probe = probe_spi_rdid,
11938 .probe_timing = TIMING_ZERO,
11939 .block_erasers =
11940 {
11941 {
11942 .eraseblocks = { {4 * 1024, 65536} },
11943 .block_erase = spi_block_erase_21,
11944 }, {
11945 .eraseblocks = { {4 * 1024, 65536} },
11946 .block_erase = spi_block_erase_20,
11947 }, {
11948 .eraseblocks = { {32 * 1024, 8192} },
11949 .block_erase = spi_block_erase_5c,
11950 }, {
11951 .eraseblocks = { {32 * 1024, 8192} },
11952 .block_erase = spi_block_erase_52,
11953 }, {
11954 .eraseblocks = { {64 * 1024, 4096} },
11955 .block_erase = spi_block_erase_dc,
11956 }, {
11957 .eraseblocks = { {64 * 1024, 4096} },
11958 .block_erase = spi_block_erase_d8,
11959 }, {
11960 .eraseblocks = { {65536 * 1024, 4} },
11961 .block_erase = spi_block_erase_c4,
11962 }
11963 },
11964 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11965 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11966 .write = spi_chip_write_256, /* Multi I/O supported */
11967 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11968 .voltage = {1700, 2000},
Nico Huberab6b18f2023-01-11 23:38:20 +010011969 .prepare_access = spi_prepare_4ba,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011970 },
11971
11972 {
11973 .vendor = "Micron",
11974 .name = "MT25QU128", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
11975 .bustype = BUS_SPI,
11976 .manufacture_id = ST_ID,
11977 .model_id = ST_N25Q128__1E,
11978 .total_size = 16384,
11979 .page_size = 256,
11980 /* supports SFDP */
11981 /* OTP: 64B total; read 0x4B, write 0x42 */
Nico Huber48dc0902023-03-05 17:20:55 +010011982 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011983 .tested = TEST_UNTESTED,
11984 .probe = probe_spi_rdid,
11985 .probe_timing = TIMING_ZERO,
11986 .block_erasers =
11987 {
11988 {
11989 .eraseblocks = { {4 * 1024, 4096} },
11990 .block_erase = spi_block_erase_20,
11991 }, {
11992 .eraseblocks = { {32 * 1024, 512} },
11993 .block_erase = spi_block_erase_52,
11994 }, {
11995 .eraseblocks = { {64 * 1024, 256} },
11996 .block_erase = spi_block_erase_d8,
11997 }, {
11998 .eraseblocks = { {16384 * 1024, 1} },
11999 .block_erase = spi_block_erase_c7,
12000 }, {
12001 .eraseblocks = { {16384 * 1024, 1} },
12002 .block_erase = spi_block_erase_60,
12003 }
12004 },
12005 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
12006 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
12007 .write = spi_chip_write_256, /* Multi I/O supported */
12008 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12009 .voltage = {1700, 2000},
12010 },
12011
12012 {
12013 .vendor = "Micron",
12014 .name = "MT25QL128", /* L = 3V, uniform 64KB/4KB blocks/sectors */
12015 .bustype = BUS_SPI,
12016 .manufacture_id = ST_ID,
12017 .model_id = ST_N25Q128__3E,
12018 .total_size = 16384,
12019 .page_size = 256,
12020 /* supports SFDP */
12021 /* OTP: 64B total; read 0x4B, write 0x42 */
Rick Altherr1e563602022-12-22 10:25:34 -080012022 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12023 .tested = TEST_OK_PREW,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070012024 .probe = probe_spi_rdid,
12025 .probe_timing = TIMING_ZERO,
12026 .block_erasers =
12027 {
12028 {
12029 .eraseblocks = { {4 * 1024, 4096} },
12030 .block_erase = spi_block_erase_20,
12031 }, {
12032 .eraseblocks = { {32 * 1024, 512} },
12033 .block_erase = spi_block_erase_52,
12034 }, {
12035 .eraseblocks = { {64 * 1024, 256} },
12036 .block_erase = spi_block_erase_d8,
12037 }, {
12038 .eraseblocks = { {16384 * 1024, 1} },
12039 .block_erase = spi_block_erase_c7,
12040 }, {
12041 .eraseblocks = { {16384 * 1024, 1} },
12042 .block_erase = spi_block_erase_60,
12043 }
12044 },
12045 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
12046 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
12047 .write = spi_chip_write_256, /* Multi I/O supported */
12048 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12049 .voltage = {2700, 3600},
12050 },
12051
12052 {
12053 .vendor = "Micron",
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070012054 .name = "MT25QL256", /* L = 3V, uniform 64KB/4KB blocks/sectors */
Ed Swierk199ab392017-07-03 13:33:44 -070012055 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100012056 .manufacture_id = ST_ID,
Ed Swierk199ab392017-07-03 13:33:44 -070012057 .model_id = ST_N25Q256__3E,
12058 .total_size = 32768,
12059 .page_size = 256,
12060 /* supports SFDP */
12061 /* OTP: 64B total; read 0x4B, write 0x42 */
Nico Huberaac81422017-11-10 22:54:13 +010012062 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
Simon Buhrowb7014f92021-02-15 13:16:57 +010012063 .tested = TEST_OK_PREW,
Ed Swierk199ab392017-07-03 13:33:44 -070012064 .probe = probe_spi_rdid,
12065 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100012066 .block_erasers =
12067 {
Ed Swierk199ab392017-07-03 13:33:44 -070012068 {
12069 .eraseblocks = { {4 * 1024, 8192} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020012070 .block_erase = spi_block_erase_21,
Ed Swierk199ab392017-07-03 13:33:44 -070012071 }, {
Nico Huberaac81422017-11-10 22:54:13 +010012072 .eraseblocks = { {4 * 1024, 8192} },
12073 .block_erase = spi_block_erase_20,
12074 }, {
Jacob Creedon045b97e2019-07-22 12:26:56 -070012075 .eraseblocks = { {32 * 1024, 1024} },
12076 .block_erase = spi_block_erase_5c,
12077 }, {
12078 .eraseblocks = { {32 * 1024, 1024} },
12079 .block_erase = spi_block_erase_52,
12080 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070012081 .eraseblocks = { {64 * 1024, 512} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020012082 .block_erase = spi_block_erase_dc,
Ed Swierk199ab392017-07-03 13:33:44 -070012083 }, {
Nico Huberaac81422017-11-10 22:54:13 +010012084 .eraseblocks = { {64 * 1024, 512} },
12085 .block_erase = spi_block_erase_d8,
12086 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070012087 .eraseblocks = { {32768 * 1024, 1} },
12088 .block_erase = spi_block_erase_c7,
Jacob Creedon045b97e2019-07-22 12:26:56 -070012089 }, {
12090 .eraseblocks = { {32768 * 1024, 1} },
12091 .block_erase = spi_block_erase_60,
Ed Swierk199ab392017-07-03 13:33:44 -070012092 }
12093 },
12094 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
12095 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
12096 .write = spi_chip_write_256, /* Multi I/O supported */
12097 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12098 .voltage = {2700, 3600},
Nico Huberab6b18f2023-01-11 23:38:20 +010012099 .prepare_access = spi_prepare_4ba,
Ed Swierk199ab392017-07-03 13:33:44 -070012100 },
12101
12102 {
12103 .vendor = "Micron",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070012104 .name = "MT25QU256", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
12105 .bustype = BUS_SPI,
12106 .manufacture_id = ST_ID,
12107 .model_id = ST_N25Q256__1E,
12108 .total_size = 32768,
12109 .page_size = 256,
12110 /* supports SFDP */
12111 /* OTP: 64B total; read 0x4B, write 0x42 */
12112 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
Angel Pons59052582022-03-08 15:23:58 +010012113 .tested = TEST_OK_PREW,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070012114 .probe = probe_spi_rdid,
12115 .probe_timing = TIMING_ZERO,
12116 .block_erasers =
12117 {
12118 {
12119 .eraseblocks = { {4 * 1024, 8192} },
12120 .block_erase = spi_block_erase_21,
12121 }, {
12122 .eraseblocks = { {4 * 1024, 8192} },
12123 .block_erase = spi_block_erase_20,
12124 }, {
12125 .eraseblocks = { {32 * 1024, 1024} },
12126 .block_erase = spi_block_erase_5c,
12127 }, {
12128 .eraseblocks = { {32 * 1024, 1024} },
12129 .block_erase = spi_block_erase_52,
12130 }, {
12131 .eraseblocks = { {64 * 1024, 512} },
12132 .block_erase = spi_block_erase_dc,
12133 }, {
12134 .eraseblocks = { {64 * 1024, 512} },
12135 .block_erase = spi_block_erase_d8,
12136 }, {
12137 .eraseblocks = { {32768 * 1024, 1} },
12138 .block_erase = spi_block_erase_c7,
12139 }, {
12140 .eraseblocks = { {32768 * 1024, 1} },
12141 .block_erase = spi_block_erase_60,
12142 }
12143 },
12144 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
12145 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
12146 .write = spi_chip_write_256, /* Multi I/O supported */
12147 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12148 .voltage = {1700, 2000},
Nico Huberab6b18f2023-01-11 23:38:20 +010012149 .prepare_access = spi_prepare_4ba,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070012150 },
12151
12152 {
12153 .vendor = "Micron",
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070012154 .name = "MT25QL512", /* L = 3V, uniform 64KB/4KB blocks/sectors */
Ed Swierk199ab392017-07-03 13:33:44 -070012155 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100012156 .manufacture_id = ST_ID,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070012157 .model_id = ST_N25Q512__3G,
Ed Swierk199ab392017-07-03 13:33:44 -070012158 .total_size = 65536,
12159 .page_size = 256,
12160 /* supports SFDP */
12161 /* OTP: 64B total; read 0x4B, write 0x42 */
Nico Huberaac81422017-11-10 22:54:13 +010012162 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
Angel Pons3ed5a352018-09-30 16:31:09 +020012163 .tested = TEST_OK_PREW,
Ed Swierk199ab392017-07-03 13:33:44 -070012164 .probe = probe_spi_rdid,
12165 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100012166 .block_erasers =
12167 {
Ed Swierk199ab392017-07-03 13:33:44 -070012168 {
12169 .eraseblocks = { {4 * 1024, 16384} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020012170 .block_erase = spi_block_erase_21,
Ed Swierk199ab392017-07-03 13:33:44 -070012171 }, {
Nico Huberaac81422017-11-10 22:54:13 +010012172 .eraseblocks = { {4 * 1024, 16384} },
12173 .block_erase = spi_block_erase_20,
12174 }, {
Jacob Creedon045b97e2019-07-22 12:26:56 -070012175 .eraseblocks = { {32 * 1024, 2048} },
12176 .block_erase = spi_block_erase_5c,
12177 }, {
12178 .eraseblocks = { {32 * 1024, 2048} },
12179 .block_erase = spi_block_erase_52,
12180 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070012181 .eraseblocks = { {64 * 1024, 1024} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020012182 .block_erase = spi_block_erase_dc,
Ed Swierk199ab392017-07-03 13:33:44 -070012183 }, {
Nico Huberaac81422017-11-10 22:54:13 +010012184 .eraseblocks = { {64 * 1024, 1024} },
12185 .block_erase = spi_block_erase_d8,
12186 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070012187 .eraseblocks = { {65536 * 1024, 1} },
12188 .block_erase = spi_block_erase_c7,
Jacob Creedon045b97e2019-07-22 12:26:56 -070012189 }, {
12190 .eraseblocks = { {65536 * 1024, 1} },
12191 .block_erase = spi_block_erase_60,
Ed Swierk199ab392017-07-03 13:33:44 -070012192 }
12193 },
12194 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
12195 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
12196 .write = spi_chip_write_256, /* Multi I/O supported */
12197 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12198 .voltage = {2700, 3600},
Sergii Dmytrukd5ba24c2022-07-25 00:28:35 +030012199 .reg_bits =
12200 {
12201 .srp = {STATUS1, 7, RW},
12202 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 6, RW}},
12203 .tb = {STATUS1, 5, RW},
12204 },
12205 .decode_range = decode_range_spi25,
Nico Huberab6b18f2023-01-11 23:38:20 +010012206 .prepare_access = spi_prepare_4ba,
Ed Swierk199ab392017-07-03 13:33:44 -070012207 },
12208
12209 {
Jacob Creedon80e8dc42019-07-22 12:35:30 -070012210 .vendor = "Micron",
12211 .name = "MT25QU512", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
12212 .bustype = BUS_SPI,
12213 .manufacture_id = ST_ID,
12214 .model_id = ST_N25Q512__1G,
12215 .total_size = 65536,
12216 .page_size = 256,
12217 /* supports SFDP */
12218 /* OTP: 64B total; read 0x4B, write 0x42 */
12219 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
12220 .tested = TEST_OK_PREW,
12221 .probe = probe_spi_rdid,
12222 .probe_timing = TIMING_ZERO,
12223 .block_erasers =
12224 {
12225 {
12226 .eraseblocks = { {4 * 1024, 16384} },
12227 .block_erase = spi_block_erase_21,
12228 }, {
12229 .eraseblocks = { {4 * 1024, 16384} },
12230 .block_erase = spi_block_erase_20,
12231 }, {
12232 .eraseblocks = { {32 * 1024, 2048} },
12233 .block_erase = spi_block_erase_5c,
12234 }, {
12235 .eraseblocks = { {32 * 1024, 2048} },
12236 .block_erase = spi_block_erase_52,
12237 }, {
12238 .eraseblocks = { {64 * 1024, 1024} },
12239 .block_erase = spi_block_erase_dc,
12240 }, {
12241 .eraseblocks = { {64 * 1024, 1024} },
12242 .block_erase = spi_block_erase_d8,
12243 }, {
12244 .eraseblocks = { {65536 * 1024, 1} },
12245 .block_erase = spi_block_erase_c7,
12246 }, {
12247 .eraseblocks = { {65536 * 1024, 1} },
12248 .block_erase = spi_block_erase_60,
12249 }
12250 },
12251 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
12252 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
12253 .write = spi_chip_write_256, /* Multi I/O supported */
12254 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12255 .voltage = {1700, 2000},
Nico Huberab6b18f2023-01-11 23:38:20 +010012256 .prepare_access = spi_prepare_4ba,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070012257 },
12258
12259 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000012260 .vendor = "MoselVitelic",
12261 .name = "V29C51000B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012262 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012263 .manufacture_id = SYNCMOS_MVC_ID,
12264 .model_id = MVC_V29C51000B,
12265 .total_size = 64,
12266 .page_size = 512,
12267 .feature_bits = FEATURE_EITHER_RESET,
12268 .tested = TEST_UNTESTED,
12269 .probe = probe_jedec,
12270 .probe_timing = TIMING_ZERO,
12271 .block_erasers =
12272 {
12273 {
12274 .eraseblocks = { {512, 128} },
12275 .block_erase = erase_sector_jedec,
12276 }, {
12277 .eraseblocks = { {64 * 1024, 1} },
12278 .block_erase = erase_chip_block_jedec,
12279 },
12280 },
12281 .write = write_jedec_1,
12282 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012283 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010012284 .prepare_access = prepare_memory_access,
12285 .finish_access = finish_memory_access,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012286 },
12287
12288 {
12289 .vendor = "MoselVitelic",
12290 .name = "V29C51000T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012291 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012292 .manufacture_id = SYNCMOS_MVC_ID,
12293 .model_id = MVC_V29C51000T,
12294 .total_size = 64,
12295 .page_size = 512,
12296 .feature_bits = FEATURE_EITHER_RESET,
12297 .tested = TEST_UNTESTED,
12298 .probe = probe_jedec,
12299 .probe_timing = TIMING_ZERO,
12300 .block_erasers =
12301 {
12302 {
12303 .eraseblocks = { {512, 128} },
12304 .block_erase = erase_sector_jedec,
12305 }, {
12306 .eraseblocks = { {64 * 1024, 1} },
12307 .block_erase = erase_chip_block_jedec,
12308 },
12309 },
12310 .write = write_jedec_1,
12311 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012312 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010012313 .prepare_access = prepare_memory_access,
12314 .finish_access = finish_memory_access,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012315 },
12316
12317 {
12318 .vendor = "MoselVitelic",
12319 .name = "V29C51400B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012320 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012321 .manufacture_id = SYNCMOS_MVC_ID,
12322 .model_id = MVC_V29C51400B,
12323 .total_size = 512,
12324 .page_size = 1024,
12325 .feature_bits = FEATURE_EITHER_RESET,
12326 .tested = TEST_UNTESTED,
12327 .probe = probe_jedec,
12328 .probe_timing = TIMING_ZERO,
12329 .block_erasers =
12330 {
12331 {
12332 .eraseblocks = { {1024, 512} },
12333 .block_erase = erase_sector_jedec,
12334 }, {
12335 .eraseblocks = { {512 * 1024, 1} },
12336 .block_erase = erase_chip_block_jedec,
12337 },
12338 },
12339 .write = write_jedec_1,
12340 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012341 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010012342 .prepare_access = prepare_memory_access,
12343 .finish_access = finish_memory_access,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012344 },
12345
12346 {
12347 .vendor = "MoselVitelic",
12348 .name = "V29C51400T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012349 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012350 .manufacture_id = SYNCMOS_MVC_ID,
12351 .model_id = MVC_V29C51400T,
12352 .total_size = 512,
12353 .page_size = 1024,
12354 .feature_bits = FEATURE_EITHER_RESET,
12355 .tested = TEST_UNTESTED,
12356 .probe = probe_jedec,
12357 .probe_timing = TIMING_ZERO,
12358 .block_erasers =
12359 {
12360 {
12361 .eraseblocks = { {1024, 512} },
12362 .block_erase = erase_sector_jedec,
12363 }, {
12364 .eraseblocks = { {512 * 1024, 1} },
12365 .block_erase = erase_chip_block_jedec,
12366 },
12367 },
12368 .write = write_jedec_1,
12369 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012370 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010012371 .prepare_access = prepare_memory_access,
12372 .finish_access = finish_memory_access,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012373 },
12374
12375 {
12376 .vendor = "MoselVitelic",
12377 .name = "V29LC51000",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012378 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012379 .manufacture_id = SYNCMOS_MVC_ID,
12380 .model_id = MVC_V29LC51000,
12381 .total_size = 64,
12382 .page_size = 512,
12383 .feature_bits = FEATURE_EITHER_RESET,
12384 .tested = TEST_UNTESTED,
12385 .probe = probe_jedec,
12386 .probe_timing = TIMING_ZERO,
12387 .block_erasers =
12388 {
12389 {
12390 .eraseblocks = { {512, 128} },
12391 .block_erase = erase_sector_jedec,
12392 }, {
12393 .eraseblocks = { {64 * 1024, 1} },
12394 .block_erase = erase_chip_block_jedec,
12395 },
12396 },
12397 .write = write_jedec_1,
12398 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012399 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010012400 .prepare_access = prepare_memory_access,
12401 .finish_access = finish_memory_access,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012402 },
12403
12404 {
12405 .vendor = "MoselVitelic",
12406 .name = "V29LC51001",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012407 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012408 .manufacture_id = SYNCMOS_MVC_ID,
12409 .model_id = MVC_V29LC51001,
12410 .total_size = 128,
12411 .page_size = 512,
12412 .feature_bits = FEATURE_EITHER_RESET,
12413 .tested = TEST_UNTESTED,
12414 .probe = probe_jedec,
12415 .probe_timing = TIMING_ZERO,
12416 .block_erasers =
12417 {
12418 {
12419 .eraseblocks = { {512, 256} },
12420 .block_erase = erase_sector_jedec,
12421 }, {
12422 .eraseblocks = { {128 * 1024, 1} },
12423 .block_erase = erase_chip_block_jedec,
12424 },
12425 },
12426 .write = write_jedec_1,
12427 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012428 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010012429 .prepare_access = prepare_memory_access,
12430 .finish_access = finish_memory_access,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012431 },
12432
12433 {
12434 .vendor = "MoselVitelic",
12435 .name = "V29LC51002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012436 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012437 .manufacture_id = SYNCMOS_MVC_ID,
12438 .model_id = MVC_V29LC51002,
12439 .total_size = 256,
12440 .page_size = 512,
12441 .feature_bits = FEATURE_EITHER_RESET,
12442 .tested = TEST_UNTESTED,
12443 .probe = probe_jedec,
12444 .probe_timing = TIMING_ZERO,
12445 .block_erasers =
12446 {
12447 {
12448 .eraseblocks = { {512, 512} },
12449 .block_erase = erase_sector_jedec,
12450 }, {
12451 .eraseblocks = { {256 * 1024, 1} },
12452 .block_erase = erase_chip_block_jedec,
12453 },
12454 },
12455 .write = write_jedec_1,
12456 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012457 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010012458 .prepare_access = prepare_memory_access,
12459 .finish_access = finish_memory_access,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012460 },
12461
12462 {
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012463 .vendor = "Nantronics",
12464 .name = "N25S10",
12465 .bustype = BUS_SPI,
12466 .manufacture_id = NANTRONICS_ID_NOPREFIX,
12467 .model_id = NANTRONICS_N25S10,
12468 .total_size = 128,
12469 .page_size = 256,
12470 .feature_bits = FEATURE_WRSR_WREN,
12471 .tested = TEST_UNTESTED,
12472 .probe = probe_spi_rdid,
12473 .probe_timing = TIMING_ZERO,
12474 .block_erasers =
12475 {
12476 {
12477 .eraseblocks = { {4 * 1024, 32} },
12478 .block_erase = spi_block_erase_20,
12479 }, {
12480 .eraseblocks = { {4 * 1024, 32} },
12481 .block_erase = spi_block_erase_d7,
12482 }, {
12483 .eraseblocks = { {32 * 1024, 4} },
12484 .block_erase = spi_block_erase_52,
12485 }, {
12486 .eraseblocks = { {64 * 1024, 2} },
12487 .block_erase = spi_block_erase_d8,
12488 }, {
12489 .eraseblocks = { {128 * 1024, 1} },
12490 .block_erase = spi_block_erase_60,
12491 }, {
12492 .eraseblocks = { {128 * 1024, 1} },
12493 .block_erase = spi_block_erase_c7,
12494 }
12495 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012496 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012497 .unlock = spi_disable_blockprotect_bp3_srwd,
12498 .write = spi_chip_write_256,
12499 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
12500 .voltage = {2700, 3600},
12501 },
12502
12503 {
12504 .vendor = "Nantronics",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012505 .name = "N25S16",
12506 .bustype = BUS_SPI,
12507 .manufacture_id = NANTRONICS_ID_NOPREFIX,
12508 .model_id = NANTRONICS_N25S16,
12509 .total_size = 2048,
12510 .page_size = 256,
12511 .feature_bits = FEATURE_WRSR_WREN,
12512 .tested = TEST_UNTESTED,
12513 .probe = probe_spi_rdid,
12514 .probe_timing = TIMING_ZERO,
12515 .block_erasers =
12516 {
12517 {
12518 .eraseblocks = { {4 * 1024, 512} },
12519 .block_erase = spi_block_erase_20,
12520 }, {
12521 .eraseblocks = { {64 * 1024, 32} },
12522 .block_erase = spi_block_erase_d8,
12523 }, {
12524 .eraseblocks = { {2048 * 1024, 1} },
12525 .block_erase = spi_block_erase_60,
12526 }, {
12527 .eraseblocks = { {2048 * 1024, 1} },
12528 .block_erase = spi_block_erase_c7,
12529 }
12530 },
12531 .printlock = spi_prettyprint_status_register_bp3_srwd,
12532 .unlock = spi_disable_blockprotect_bp3_srwd,
12533 .write = spi_chip_write_256,
12534 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
12535 .voltage = {2700, 3600},
12536 },
12537
12538 {
12539 .vendor = "Nantronics",
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012540 .name = "N25S20",
12541 .bustype = BUS_SPI,
12542 .manufacture_id = NANTRONICS_ID_NOPREFIX,
12543 .model_id = NANTRONICS_N25S20,
12544 .total_size = 256,
12545 .page_size = 256,
12546 .feature_bits = FEATURE_WRSR_WREN,
12547 .tested = TEST_UNTESTED,
12548 .probe = probe_spi_rdid,
12549 .probe_timing = TIMING_ZERO,
12550 .block_erasers =
12551 {
12552 {
12553 .eraseblocks = { {4 * 1024, 64} },
12554 .block_erase = spi_block_erase_20,
12555 }, {
12556 .eraseblocks = { {4 * 1024, 64} },
12557 .block_erase = spi_block_erase_d7,
12558 }, {
12559 .eraseblocks = { {32 * 1024, 8} },
12560 .block_erase = spi_block_erase_52,
12561 }, {
12562 .eraseblocks = { {64 * 1024, 4} },
12563 .block_erase = spi_block_erase_d8,
12564 }, {
12565 .eraseblocks = { {256 * 1024, 1} },
12566 .block_erase = spi_block_erase_60,
12567 }, {
12568 .eraseblocks = { {256 * 1024, 1} },
12569 .block_erase = spi_block_erase_c7,
12570 }
12571 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012572 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012573 .unlock = spi_disable_blockprotect_bp3_srwd,
12574 .write = spi_chip_write_256,
12575 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
12576 .voltage = {2700, 3600},
12577 },
12578
12579 {
12580 .vendor = "Nantronics",
12581 .name = "N25S40",
12582 .bustype = BUS_SPI,
12583 .manufacture_id = NANTRONICS_ID_NOPREFIX,
12584 .model_id = NANTRONICS_N25S40,
12585 .total_size = 512,
12586 .page_size = 256,
12587 .feature_bits = FEATURE_WRSR_WREN,
12588 .tested = TEST_UNTESTED,
12589 .probe = probe_spi_rdid,
12590 .probe_timing = TIMING_ZERO,
12591 .block_erasers =
12592 {
12593 {
12594 .eraseblocks = { {4 * 1024, 128} },
12595 .block_erase = spi_block_erase_20,
12596 }, {
12597 .eraseblocks = { {4 * 1024, 128} },
12598 .block_erase = spi_block_erase_d7,
12599 }, {
12600 .eraseblocks = { {32 * 1024, 16} },
12601 .block_erase = spi_block_erase_52,
12602 }, {
12603 .eraseblocks = { {64 * 1024, 8} },
12604 .block_erase = spi_block_erase_d8,
12605 }, {
12606 .eraseblocks = { {512 * 1024, 1} },
12607 .block_erase = spi_block_erase_60,
12608 }, {
12609 .eraseblocks = { {512 * 1024, 1} },
12610 .block_erase = spi_block_erase_c7,
12611 }
12612 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012613 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012614 .unlock = spi_disable_blockprotect_bp3_srwd,
12615 .write = spi_chip_write_256,
12616 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
12617 .voltage = {2700, 3600},
12618 },
12619
12620 {
12621 .vendor = "Nantronics",
12622 .name = "N25S80",
12623 .bustype = BUS_SPI,
12624 .manufacture_id = NANTRONICS_ID_NOPREFIX,
12625 .model_id = NANTRONICS_N25S80,
12626 .total_size = 1024,
12627 .page_size = 256,
12628 .feature_bits = FEATURE_WRSR_WREN,
12629 .tested = TEST_UNTESTED,
12630 .probe = probe_spi_rdid,
12631 .probe_timing = TIMING_ZERO,
12632 .block_erasers =
12633 {
12634 {
12635 .eraseblocks = { {4 * 1024, 256} },
12636 .block_erase = spi_block_erase_20,
12637 }, {
12638 .eraseblocks = { {32 * 1024, 32} },
12639 .block_erase = spi_block_erase_52,
12640 }, {
12641 .eraseblocks = { {64 * 1024, 16} },
12642 .block_erase = spi_block_erase_d8,
12643 }, {
12644 .eraseblocks = { {1024 * 1024, 1} },
12645 .block_erase = spi_block_erase_60,
12646 }, {
12647 .eraseblocks = { {1024 * 1024, 1} },
12648 .block_erase = spi_block_erase_c7,
12649 }
12650 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012651 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012652 .unlock = spi_disable_blockprotect_bp3_srwd,
12653 .write = spi_chip_write_256,
12654 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
12655 .voltage = {2700, 3600},
12656 },
12657
12658 {
Stefan Taunerf4451612013-04-19 01:59:15 +000012659 .vendor = "PMC",
12660 .name = "Pm25LD010(C)",
12661 .bustype = BUS_SPI,
12662 .manufacture_id = PMC_ID,
12663 .model_id = PMC_PM25LD010,
12664 .total_size = 128,
12665 .page_size = 256,
12666 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000012667 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +000012668 .probe = probe_spi_rdid,
12669 .probe_timing = TIMING_ZERO,
12670 .block_erasers =
12671 {
12672 {
12673 .eraseblocks = { {4 * 1024, 32} },
12674 .block_erase = spi_block_erase_20,
12675 }, {
12676 .eraseblocks = { {4 * 1024, 32} },
12677 .block_erase = spi_block_erase_d7,
12678 }, {
12679 .eraseblocks = { {32 * 1024, 4} },
12680 .block_erase = spi_block_erase_d8,
12681 }, {
12682 .eraseblocks = { {128 * 1024, 1} },
12683 .block_erase = spi_block_erase_60,
12684 }, {
12685 .eraseblocks = { {128 * 1024, 1} },
12686 .block_erase = spi_block_erase_c7,
12687 }
12688 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012689 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000012690 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
12691 .write = spi_chip_write_256,
12692 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
12693 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD010 */
12694 },
12695
12696 {
12697 .vendor = "PMC",
12698 .name = "Pm25LD020(C)",
12699 .bustype = BUS_SPI,
12700 .manufacture_id = PMC_ID,
12701 .model_id = PMC_PM25LD020,
12702 .total_size = 256,
12703 .page_size = 256,
12704 .feature_bits = FEATURE_WRSR_WREN,
Angel Ponsf5822a82018-09-30 20:09:58 +020012705 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +000012706 .probe = probe_spi_rdid,
12707 .probe_timing = TIMING_ZERO,
12708 .block_erasers =
12709 {
12710 {
12711 .eraseblocks = { {4 * 1024, 64} },
12712 .block_erase = spi_block_erase_20,
12713 }, {
12714 .eraseblocks = { {4 * 1024, 64} },
12715 .block_erase = spi_block_erase_d7,
12716 }, {
12717 .eraseblocks = { {64 * 1024, 4} },
12718 .block_erase = spi_block_erase_d8,
12719 }, {
12720 .eraseblocks = { {256 * 1024, 1} },
12721 .block_erase = spi_block_erase_60,
12722 }, {
12723 .eraseblocks = { {256 * 1024, 1} },
12724 .block_erase = spi_block_erase_c7,
12725 }
12726 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012727 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000012728 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
12729 .write = spi_chip_write_256,
12730 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
12731 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD020 */
12732 },
12733
12734 {
12735 .vendor = "PMC",
12736 .name = "Pm25LD040(C)",
12737 .bustype = BUS_SPI,
12738 .manufacture_id = PMC_ID,
12739 .model_id = PMC_PM25LV040,
12740 .total_size = 512,
12741 .page_size = 256,
12742 .feature_bits = FEATURE_WRSR_WREN,
Angel Pons05127bf2018-09-30 20:23:24 +020012743 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +000012744 .probe = probe_spi_rdid,
12745 .probe_timing = TIMING_ZERO,
12746 .block_erasers =
12747 {
12748 {
12749 .eraseblocks = { {4 * 1024, 128} },
12750 .block_erase = spi_block_erase_20,
12751 }, {
12752 .eraseblocks = { {4 * 1024, 128} },
12753 .block_erase = spi_block_erase_d7,
12754 }, {
12755 .eraseblocks = { {64 * 1024, 8} },
12756 .block_erase = spi_block_erase_d8,
12757 }, {
12758 .eraseblocks = { {512 * 1024, 1} },
12759 .block_erase = spi_block_erase_60,
12760 }, {
12761 .eraseblocks = { {512 * 1024, 1} },
12762 .block_erase = spi_block_erase_c7,
12763 }
12764 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012765 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000012766 .unlock = spi_disable_blockprotect,
12767 .write = spi_chip_write_256,
12768 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
12769 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD040 */
12770 },
12771
Steven Honeyman81a8fb72015-06-02 22:32:24 +000012772 {
12773 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012774 .name = "Pm25LD256C",
12775 .bustype = BUS_SPI,
12776 .manufacture_id = PMC_ID,
12777 .model_id = PMC_PM25LD256C,
12778 .total_size = 32,
12779 .page_size = 256,
12780 .feature_bits = FEATURE_WRSR_WREN,
12781 .tested = TEST_UNTESTED,
12782 .probe = probe_spi_rdid,
12783 .probe_timing = TIMING_ZERO,
12784 .block_erasers =
12785 {
12786 {
12787 .eraseblocks = { {4 * 1024, 8} },
12788 .block_erase = spi_block_erase_20,
12789 }, {
12790 .eraseblocks = { {4 * 1024, 8} },
12791 .block_erase = spi_block_erase_d7,
12792 }, {
12793 .eraseblocks = { {32 * 1024, 1} },
12794 .block_erase = spi_block_erase_d8,
12795 }, {
12796 .eraseblocks = { {32 * 1024, 1} },
12797 .block_erase = spi_block_erase_60,
12798 }, {
12799 .eraseblocks = { {32 * 1024, 1} },
12800 .block_erase = spi_block_erase_c7,
12801 }
12802 },
12803 .printlock = spi_prettyprint_status_register_bp2_srwd,
12804 .unlock = spi_disable_blockprotect,
12805 .write = spi_chip_write_256,
12806 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
12807 .voltage = {2700, 3600},
12808 },
12809
12810 {
12811 .vendor = "PMC",
12812 .name = "Pm25LD512(C)",
12813 .bustype = BUS_SPI,
12814 .manufacture_id = PMC_ID,
12815 .model_id = PMC_PM25LD512,
12816 .total_size = 64,
12817 .page_size = 256,
12818 .feature_bits = FEATURE_WRSR_WREN,
12819 .tested = TEST_OK_PREW,
12820 .probe = probe_spi_rdid,
12821 .probe_timing = TIMING_ZERO,
12822 .block_erasers =
12823 {
12824 {
12825 .eraseblocks = { {4 * 1024, 16} },
12826 .block_erase = spi_block_erase_20,
12827 }, {
12828 .eraseblocks = { {4 * 1024, 16} },
12829 .block_erase = spi_block_erase_d7,
12830 }, {
12831 .eraseblocks = { {32 * 1024, 2} },
12832 .block_erase = spi_block_erase_d8,
12833 }, {
12834 .eraseblocks = { {64 * 1024, 1} },
12835 .block_erase = spi_block_erase_60,
12836 }, {
12837 .eraseblocks = { {64 * 1024, 1} },
12838 .block_erase = spi_block_erase_c7,
12839 }
12840 },
12841 .printlock = spi_prettyprint_status_register_bp2_srwd,
12842 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
12843 .write = spi_chip_write_256,
12844 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
12845 .voltage = {2300, 3600},
12846 },
12847
12848 {
12849 .vendor = "PMC",
12850 .name = "Pm25LQ016",
12851 .bustype = BUS_SPI,
12852 .manufacture_id = PMC_ID,
12853 .model_id = PMC_PM25LQ016,
12854 .total_size = 2048,
12855 .page_size = 256,
12856 /* OTP: 256B total; read 0x4B, write 0xB1 */
12857 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12858 .tested = TEST_UNTESTED,
12859 .probe = probe_spi_rdid,
12860 .probe_timing = TIMING_ZERO,
12861 .block_erasers =
12862 {
12863 {
12864 .eraseblocks = { {4 * 1024, 512} },
12865 .block_erase = spi_block_erase_20,
12866 }, {
12867 .eraseblocks = { {4 * 1024, 512} },
12868 .block_erase = spi_block_erase_d7,
12869 }, {
12870 .eraseblocks = { {64 * 1024, 32} },
12871 .block_erase = spi_block_erase_d8,
12872 }, {
12873 .eraseblocks = { {2048 * 1024, 1} },
12874 .block_erase = spi_block_erase_60,
12875 }, {
12876 .eraseblocks = { {2048 * 1024, 1} },
12877 .block_erase = spi_block_erase_c7,
12878 }
12879 },
12880 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
12881 .unlock = spi_disable_blockprotect_bp3_srwd,
12882 .write = spi_chip_write_256,
12883 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12884 .voltage = {2300, 3600},
12885 },
12886
12887 {
12888 .vendor = "PMC",
Steven Honeyman81a8fb72015-06-02 22:32:24 +000012889 .name = "Pm25LQ020",
12890 .bustype = BUS_SPI,
12891 .manufacture_id = PMC_ID,
12892 .model_id = PMC_PM25LQ020,
12893 .total_size = 256,
12894 .page_size = 256,
12895 /* OTP: 256B total; read 0x4B, write 0xB1 */
12896 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12897 .tested = TEST_UNTESTED,
12898 .probe = probe_spi_rdid,
12899 .probe_timing = TIMING_ZERO,
12900 .block_erasers =
12901 {
12902 {
12903 .eraseblocks = { {4 * 1024, 64} },
12904 .block_erase = spi_block_erase_20,
12905 }, {
12906 .eraseblocks = { {4 * 1024, 64} },
12907 .block_erase = spi_block_erase_d7,
12908 }, {
12909 .eraseblocks = { {64 * 1024, 4} },
12910 .block_erase = spi_block_erase_d8,
12911 }, {
12912 .eraseblocks = { {256 * 1024, 1} },
12913 .block_erase = spi_block_erase_60,
12914 }, {
12915 .eraseblocks = { {256 * 1024, 1} },
12916 .block_erase = spi_block_erase_c7,
12917 }
12918 },
12919 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
12920 .unlock = spi_disable_blockprotect_bp3_srwd,
12921 .write = spi_chip_write_256,
12922 .read = spi_chip_read,
12923 .voltage = {2300, 3600},
12924 },
12925
12926 {
12927 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012928 .name = "Pm25LQ032C",
12929 .bustype = BUS_SPI,
12930 .manufacture_id = PMC_ID,
12931 .model_id = PMC_PM25LQ032C,
12932 .total_size = 4096,
12933 .page_size = 256,
12934 /* OTP: 64B total; read 0x4B, write 0xB1 */
12935 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12936 .tested = TEST_OK_PREW,
12937 .probe = probe_spi_rdid,
12938 .probe_timing = TIMING_ZERO,
12939 .block_erasers =
12940 {
12941 {
12942 .eraseblocks = { {4 * 1024, 1024} },
12943 .block_erase = spi_block_erase_20,
12944 }, {
12945 .eraseblocks = { {4 * 1024, 1024} },
12946 .block_erase = spi_block_erase_d7,
12947 }, {
12948 .eraseblocks = { {64 * 1024, 64} },
12949 .block_erase = spi_block_erase_d8,
12950 }, {
12951 .eraseblocks = { {4096 * 1024, 1} },
12952 .block_erase = spi_block_erase_60,
12953 }, {
12954 .eraseblocks = { {4096 * 1024, 1} },
12955 .block_erase = spi_block_erase_c7,
12956 }
12957 },
12958 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
12959 .unlock = spi_disable_blockprotect_bp3_srwd,
12960 .write = spi_chip_write_256,
12961 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12962 .voltage = {2700, 3600},
12963 },
12964
12965 {
12966 .vendor = "PMC",
Steven Honeyman81a8fb72015-06-02 22:32:24 +000012967 .name = "Pm25LQ040",
12968 .bustype = BUS_SPI,
12969 .manufacture_id = PMC_ID,
12970 .model_id = PMC_PM25LQ040,
12971 .total_size = 512,
12972 .page_size = 256,
12973 /* OTP: 256B total; read 0x4B, write 0xB1 */
12974 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12975 .tested = TEST_UNTESTED,
12976 .probe = probe_spi_rdid,
12977 .probe_timing = TIMING_ZERO,
12978 .block_erasers =
12979 {
12980 {
12981 .eraseblocks = { {4 * 1024, 128} },
12982 .block_erase = spi_block_erase_20,
12983 }, {
12984 .eraseblocks = { {4 * 1024, 128} },
12985 .block_erase = spi_block_erase_d7,
12986 }, {
12987 .eraseblocks = { {64 * 1024, 8} },
12988 .block_erase = spi_block_erase_d8,
12989 }, {
12990 .eraseblocks = { {512 * 1024, 1} },
12991 .block_erase = spi_block_erase_60,
12992 }, {
12993 .eraseblocks = { {512 * 1024, 1} },
12994 .block_erase = spi_block_erase_c7,
12995 }
12996 },
12997 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
12998 .unlock = spi_disable_blockprotect_bp3_srwd,
12999 .write = spi_chip_write_256,
13000 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
13001 .voltage = {2300, 3600},
13002 },
13003
13004 {
13005 .vendor = "PMC",
13006 .name = "Pm25LQ080",
13007 .bustype = BUS_SPI,
13008 .manufacture_id = PMC_ID,
13009 .model_id = PMC_PM25LQ080,
13010 .total_size = 1024,
13011 .page_size = 256,
13012 /* OTP: 64B total; read 0x4B, write 0xB1 */
13013 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
13014 .tested = TEST_UNTESTED,
13015 .probe = probe_spi_rdid,
13016 .probe_timing = TIMING_ZERO,
13017 .block_erasers =
13018 {
13019 {
13020 .eraseblocks = { {4 * 1024, 256} },
13021 .block_erase = spi_block_erase_20,
13022 }, {
13023 .eraseblocks = { {4 * 1024, 256} },
13024 .block_erase = spi_block_erase_d7,
13025 }, {
13026 .eraseblocks = { {64 * 1024, 16} },
13027 .block_erase = spi_block_erase_d8,
13028 }, {
13029 .eraseblocks = { {1024 * 1024, 1} },
13030 .block_erase = spi_block_erase_60,
13031 }, {
13032 .eraseblocks = { {1024 * 1024, 1} },
13033 .block_erase = spi_block_erase_c7,
13034 }
13035 },
13036 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
13037 .unlock = spi_disable_blockprotect_bp3_srwd,
13038 .write = spi_chip_write_256,
13039 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
13040 .voltage = {2300, 3600},
13041 },
13042
13043 {
13044 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013045 .name = "Pm25LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013046 .bustype = BUS_SPI,
Stefan Taunerbecda742014-05-30 19:34:00 +000013047 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013048 .model_id = PMC_PM25LV010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013049 .total_size = 128,
13050 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000013051 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerbecda742014-05-30 19:34:00 +000013052 .tested = TEST_OK_PREW,
13053 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000013054 .probe_timing = TIMING_ZERO,
13055 .block_erasers =
13056 {
13057 {
13058 .eraseblocks = { {4 * 1024, 32} },
13059 .block_erase = spi_block_erase_d7,
13060 }, {
13061 .eraseblocks = { {32 * 1024, 4} },
13062 .block_erase = spi_block_erase_d8,
13063 }, {
13064 .eraseblocks = { {128 * 1024, 1} },
13065 .block_erase = spi_block_erase_c7,
13066 }
13067 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000013068 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000013069 .unlock = spi_disable_blockprotect,
13070 .write = spi_chip_write_256,
13071 .read = spi_chip_read, /* Fast read (0x0B) supported */
13072 .voltage = {2700, 3600},
13073 },
13074
13075 {
13076 .vendor = "PMC",
13077 .name = "Pm25LV010A",
13078 .bustype = BUS_SPI,
13079 .manufacture_id = PMC_ID,
13080 .model_id = PMC_PM25LV010,
13081 .total_size = 128,
13082 .page_size = 256,
13083 .feature_bits = FEATURE_WRSR_WREN,
13084 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013085 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013086 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000013087 .block_erasers =
13088 {
13089 {
13090 .eraseblocks = { {4 * 1024, 32} },
13091 .block_erase = spi_block_erase_d7,
13092 }, {
13093 .eraseblocks = { {32 * 1024, 4} },
13094 .block_erase = spi_block_erase_d8,
13095 }, {
13096 .eraseblocks = { {128 * 1024, 1} },
13097 .block_erase = spi_block_erase_c7,
13098 }
13099 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000013100 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013101 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000013102 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000013103 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +000013104 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013105 },
13106
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013107 {
13108 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013109 .name = "Pm25LV016B",
13110 .bustype = BUS_SPI,
13111 .manufacture_id = PMC_ID,
13112 .model_id = PMC_PM25LV016B,
13113 .total_size = 2048,
13114 .page_size = 256,
13115 .feature_bits = FEATURE_WRSR_WREN,
13116 .tested = TEST_UNTESTED,
13117 .probe = probe_spi_rdid,
13118 .probe_timing = TIMING_ZERO,
13119 .block_erasers =
13120 {
13121 {
13122 .eraseblocks = { {4 * 1024, 512} },
13123 .block_erase = spi_block_erase_d7,
13124 }, {
13125 .eraseblocks = { {4 * 1024, 512} },
13126 .block_erase = spi_block_erase_20,
13127 }, {
13128 .eraseblocks = { {64 * 1024, 32} },
13129 .block_erase = spi_block_erase_d8,
13130 }, {
13131 .eraseblocks = { {2 * 1024 * 1024, 1} },
13132 .block_erase = spi_block_erase_60,
13133 }, {
13134 .eraseblocks = { {2 * 1024 * 1024, 1} },
13135 .block_erase = spi_block_erase_c7,
13136 }
13137 },
13138 .printlock = spi_prettyprint_status_register_bp2_srwd,
13139 .unlock = spi_disable_blockprotect,
13140 .write = spi_chip_write_256,
13141 .read = spi_chip_read, /* Fast read (0x0B) supported */
13142 .voltage = {2700, 3600},
13143 },
13144
13145 {
13146 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013147 .name = "Pm25LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013148 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013149 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013150 .model_id = PMC_PM25LV020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013151 .total_size = 256,
13152 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000013153 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013154 .tested = TEST_UNTESTED,
13155 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013156 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000013157 .block_erasers =
13158 {
13159 {
13160 .eraseblocks = { {4 * 1024, 64} },
13161 .block_erase = spi_block_erase_d7,
13162 }, {
13163 .eraseblocks = { {64 * 1024, 4} },
13164 .block_erase = spi_block_erase_d8,
13165 }, {
13166 .eraseblocks = { {256 * 1024, 1} },
13167 .block_erase = spi_block_erase_c7,
13168 }
13169 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000013170 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013171 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000013172 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013173 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013174 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013175 },
13176
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013177 {
13178 .vendor = "PMC",
13179 .name = "Pm25LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013180 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013181 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013182 .model_id = PMC_PM25LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013183 .total_size = 512,
13184 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000013185 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +000013186 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013187 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013188 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000013189 .block_erasers =
13190 {
13191 {
13192 .eraseblocks = { {4 * 1024, 128} },
13193 .block_erase = spi_block_erase_d7,
13194 }, {
13195 .eraseblocks = { {64 * 1024, 8} },
13196 .block_erase = spi_block_erase_d8,
13197 }, {
13198 .eraseblocks = { {512 * 1024, 1} },
13199 .block_erase = spi_block_erase_c7,
13200 }
13201 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000013202 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013203 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000013204 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000013205 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013206 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013207 },
13208
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013209 {
13210 .vendor = "PMC",
13211 .name = "Pm25LV080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013212 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013213 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013214 .model_id = PMC_PM25LV080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013215 .total_size = 1024,
13216 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000013217 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013218 .tested = TEST_UNTESTED,
13219 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013220 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000013221 .block_erasers =
13222 {
13223 {
13224 .eraseblocks = { {4 * 1024, 256} },
13225 .block_erase = spi_block_erase_d7,
13226 }, {
13227 .eraseblocks = { {4 * 1024, 256} },
13228 .block_erase = spi_block_erase_20,
13229 }, {
13230 .eraseblocks = { {64 * 1024, 16} },
13231 .block_erase = spi_block_erase_d8,
13232 }, {
13233 .eraseblocks = { {1024 * 1024, 1} },
13234 .block_erase = spi_block_erase_60,
13235 }, {
13236 .eraseblocks = { {1024 * 1024, 1} },
13237 .block_erase = spi_block_erase_c7,
13238 }
13239 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000013240 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013241 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000013242 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000013243 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013244 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013245 },
13246
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013247 {
13248 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013249 .name = "Pm25LV512(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013250 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013251 .manufacture_id = PMC_ID_NOPREFIX,
13252 .model_id = PMC_PM25LV512,
13253 .total_size = 64,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013254 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000013255 .feature_bits = FEATURE_WRSR_WREN,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013256 .tested = TEST_OK_PREW,
13257 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013258 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000013259 .block_erasers =
13260 {
13261 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013262 .eraseblocks = { {4 * 1024, 16} },
Sean Nelson5643c072010-01-19 03:23:07 +000013263 .block_erase = spi_block_erase_d7,
13264 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013265 .eraseblocks = { {32 * 1024, 2} },
Sean Nelson5643c072010-01-19 03:23:07 +000013266 .block_erase = spi_block_erase_d8,
13267 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013268 .eraseblocks = { {64 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +000013269 .block_erase = spi_block_erase_c7,
13270 }
13271 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100013272 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013273 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000013274 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000013275 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +000013276 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013277 },
13278
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013279 {
13280 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +000013281 .name = "Pm29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013282 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000013283 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013284 .model_id = PMC_PM29F002B,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000013285 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +000013286 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013287 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000013288 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000013289 .probe = probe_jedec,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000013290 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +000013291 .block_erasers =
13292 {
13293 {
13294 .eraseblocks = {
13295 {16 * 1024, 1},
13296 {8 * 1024, 2},
13297 {96 * 1024, 1},
13298 {128 * 1024, 1},
13299 },
Sean Nelson35727f72010-01-28 23:55:12 +000013300 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000013301 }, {
13302 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000013303 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000013304 },
13305 },
Sean Nelson35727f72010-01-28 23:55:12 +000013306 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000013307 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013308 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010013309 .prepare_access = prepare_memory_access,
13310 .finish_access = finish_memory_access,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000013311 },
13312
13313 {
13314 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013315 .name = "Pm29F002T",
13316 .bustype = BUS_PARALLEL,
13317 .manufacture_id = PMC_ID_NOPREFIX,
13318 .model_id = PMC_PM29F002T,
13319 .total_size = 256,
13320 .page_size = 8 * 1024,
13321 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
13322 .tested = TEST_OK_PREW,
13323 .probe = probe_jedec,
13324 .probe_timing = TIMING_FIXME,
13325 .block_erasers =
13326 {
13327 {
13328 .eraseblocks = {
13329 {128 * 1024, 1},
13330 {96 * 1024, 1},
13331 {8 * 1024, 2},
13332 {16 * 1024, 1},
13333 },
13334 .block_erase = erase_sector_jedec,
13335 }, {
13336 .eraseblocks = { {256 * 1024, 1} },
13337 .block_erase = erase_chip_block_jedec,
13338 },
13339 },
13340 .write = write_jedec_1,
13341 .read = read_memmapped,
13342 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010013343 .prepare_access = prepare_memory_access,
13344 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013345 },
13346
13347 {
13348 .vendor = "PMC",
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000013349 .name = "Pm39LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013350 .bustype = BUS_PARALLEL,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000013351 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013352 .model_id = PMC_PM39F010, /* Pm39LV010 and Pm39F010 have identical IDs but different voltage */
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000013353 .total_size = 128,
13354 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013355 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000013356 .tested = TEST_OK_PREW,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000013357 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013358 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson5643c072010-01-19 03:23:07 +000013359 .block_erasers =
13360 {
13361 {
13362 .eraseblocks = { {4 * 1024, 32} },
13363 .block_erase = erase_sector_jedec,
13364 }, {
13365 .eraseblocks = { {64 * 1024, 2} },
13366 .block_erase = erase_block_jedec,
13367 }, {
13368 .eraseblocks = { {128 * 1024, 1} },
13369 .block_erase = erase_chip_block_jedec,
13370 }
13371 },
Sean Nelson35727f72010-01-28 23:55:12 +000013372 .write = write_jedec_1,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000013373 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013374 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010013375 .prepare_access = prepare_memory_access,
13376 .finish_access = finish_memory_access,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000013377 },
13378
13379 {
13380 .vendor = "PMC",
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013381 .name = "Pm39LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013382 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013383 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013384 .model_id = PMC_PM39LV020,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013385 .total_size = 256,
13386 .page_size = 4096,
13387 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
13388 .tested = TEST_UNTESTED,
13389 .probe = probe_jedec,
13390 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Alan Greenfa3fcd32019-06-27 15:41:50 +100013391 .block_erasers =
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013392 {
13393 {
13394 .eraseblocks = { {4 * 1024, 64} },
13395 .block_erase = erase_sector_jedec,
13396 }, {
13397 .eraseblocks = { {64 * 1024, 4} },
13398 .block_erase = erase_block_jedec,
13399 }, {
13400 .eraseblocks = { {256 * 1024, 1} },
13401 .block_erase = erase_chip_block_jedec,
13402 }
13403 },
13404 .write = write_jedec_1,
13405 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013406 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010013407 .prepare_access = prepare_memory_access,
13408 .finish_access = finish_memory_access,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013409 },
13410
13411 {
13412 .vendor = "PMC",
13413 .name = "Pm39LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013414 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013415 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013416 .model_id = PMC_PM39LV040,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013417 .total_size = 512,
13418 .page_size = 4096,
13419 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000013420 .tested = TEST_OK_PR,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013421 .probe = probe_jedec,
13422 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Alan Greenfa3fcd32019-06-27 15:41:50 +100013423 .block_erasers =
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013424 {
13425 {
13426 .eraseblocks = { {4 * 1024, 128} },
13427 .block_erase = erase_sector_jedec,
13428 }, {
13429 .eraseblocks = { {64 * 1024, 8} },
13430 .block_erase = erase_block_jedec,
13431 }, {
13432 .eraseblocks = { {512 * 1024, 1} },
13433 .block_erase = erase_chip_block_jedec,
13434 }
13435 },
13436 .write = write_jedec_1,
13437 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013438 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010013439 .prepare_access = prepare_memory_access,
13440 .finish_access = finish_memory_access,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013441 },
Kyösti Mälkkiedab1d22012-05-20 23:32:33 +000013442
13443 {
13444 .vendor = "PMC",
13445 .name = "Pm39LV512",
13446 .bustype = BUS_PARALLEL,
13447 .manufacture_id = PMC_ID_NOPREFIX,
13448 .model_id = PMC_PM39LV512,
13449 .total_size = 64,
13450 .page_size = 4096,
13451 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
13452 .tested = TEST_OK_PREW,
13453 .probe = probe_jedec,
13454 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
13455 .block_erasers =
13456 {
13457 {
13458 .eraseblocks = { {4 * 1024, 16} },
13459 .block_erase = erase_sector_jedec,
13460 }, {
13461 .eraseblocks = { {64 * 1024, 1} },
13462 .block_erase = erase_block_jedec,
13463 }, {
13464 .eraseblocks = { {64 * 1024, 1} },
13465 .block_erase = erase_chip_block_jedec,
13466 }
13467 },
13468 .write = write_jedec_1,
13469 .read = read_memmapped,
13470 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010013471 .prepare_access = prepare_memory_access,
13472 .finish_access = finish_memory_access,
Kyösti Mälkkiedab1d22012-05-20 23:32:33 +000013473 },
13474
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013475 {
13476 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013477 .name = "Pm49FL002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013478 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013479 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013480 .model_id = PMC_PM49FL002,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013481 .total_size = 256,
13482 .page_size = 16 * 1024,
Nico Huberb1974022023-01-12 13:13:12 +010013483 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013484 .tested = TEST_OK_PR,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000013485 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013486 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +000013487 .block_erasers =
13488 {
13489 {
13490 .eraseblocks = { {4 * 1024, 64} },
13491 .block_erase = erase_sector_jedec,
13492 }, {
13493 .eraseblocks = { {16 * 1024, 16} },
13494 .block_erase = erase_block_jedec,
13495 }, {
13496 .eraseblocks = { {256 * 1024, 1} },
13497 .block_erase = erase_chip_block_jedec,
13498 }
13499 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013500 .unlock = unlock_regspace2_uniform_32k,
Sean Nelson36172342010-02-27 18:01:15 +000013501 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013502 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013503 .voltage = {3000, 3600},
Nico Huberb1974022023-01-12 13:13:12 +010013504 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010013505 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000013506 },
13507
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013508 {
13509 .vendor = "PMC",
13510 .name = "Pm49FL004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013511 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013512 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013513 .model_id = PMC_PM49FL004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013514 .total_size = 512,
13515 .page_size = 64 * 1024,
Nico Huberb1974022023-01-12 13:13:12 +010013516 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner74dc73f2015-03-01 22:04:38 +000013517 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000013518 .probe = probe_jedec,
Stefan Tauner74dc73f2015-03-01 22:04:38 +000013519 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000013520 .block_erasers =
13521 {
13522 {
13523 .eraseblocks = { {4 * 1024, 128} },
13524 .block_erase = erase_sector_jedec,
13525 }, {
13526 .eraseblocks = { {64 * 1024, 8} },
13527 .block_erase = erase_block_jedec,
13528 }, {
13529 .eraseblocks = { {512 * 1024, 1} },
13530 .block_erase = erase_chip_block_jedec,
13531 }
13532 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013533 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson36172342010-02-27 18:01:15 +000013534 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013535 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013536 .voltage = {3000, 3600},
Nico Huberb1974022023-01-12 13:13:12 +010013537 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010013538 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000013539 },
13540
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013541 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013542 .vendor = "SST",
Idwer Volleringf3607d12014-05-07 15:25:04 +000013543 .name = "SST25LF020A",
13544 .bustype = BUS_SPI,
13545 .manufacture_id = SST_ID,
13546 .model_id = SST_SST25VF020_REMS,
13547 .total_size = 256,
13548 .page_size = 256,
13549 .feature_bits = FEATURE_WRSR_EWSR,
13550 .tested = TEST_OK_PREW,
13551 .probe = probe_spi_rems,
13552 .probe_timing = TIMING_ZERO,
13553 .block_erasers =
13554 {
13555 {
13556 .eraseblocks = { {4 * 1024, 64} },
13557 .block_erase = spi_block_erase_20,
13558 }, {
13559 .eraseblocks = { {32 * 1024, 8} },
13560 .block_erase = spi_block_erase_52,
13561 }, {
13562 .eraseblocks = { {256 * 1024, 1} },
13563 .block_erase = spi_block_erase_60,
13564 },
13565 },
13566 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
13567 .unlock = spi_disable_blockprotect,
13568 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13569 .read = spi_chip_read, /* Fast read (0x0B) supported */
13570 .voltage = {2700, 3600},
13571 },
13572
13573 {
13574 .vendor = "SST",
Zeus Castro33670ba2011-08-17 09:50:11 +000013575 .name = "SST25LF040A",
13576 .bustype = BUS_SPI,
13577 .manufacture_id = SST_ID,
13578 .model_id = SST_SST25VF040_REMS,
13579 .total_size = 512,
13580 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000013581 .feature_bits = FEATURE_WRSR_EWSR,
Uwe Hermann4335ec82011-09-07 20:20:25 +000013582 .tested = TEST_OK_PREW,
Zeus Castro33670ba2011-08-17 09:50:11 +000013583 .probe = probe_spi_res2,
13584 .probe_timing = TIMING_ZERO,
13585 .block_erasers =
13586 {
13587 {
13588 .eraseblocks = { {4 * 1024, 128} },
13589 .block_erase = spi_block_erase_20,
13590 }, {
13591 .eraseblocks = { {32 * 1024, 16} },
13592 .block_erase = spi_block_erase_52,
13593 }, {
13594 .eraseblocks = { {512 * 1024, 1} },
13595 .block_erase = spi_block_erase_60,
13596 },
13597 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013598 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +000013599 .unlock = spi_disable_blockprotect,
13600 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13601 .read = spi_chip_read,
13602 .voltage = {3000, 3600},
13603 },
13604
13605 {
13606 .vendor = "SST",
Stefan Taunere34e3e82013-01-01 00:06:51 +000013607 .name = "SST25LF080(A)",
Zeus Castro33670ba2011-08-17 09:50:11 +000013608 .bustype = BUS_SPI,
13609 .manufacture_id = SST_ID,
13610 .model_id = SST_SST25VF080_REMS,
13611 .total_size = 1024,
13612 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000013613 .feature_bits = FEATURE_WRSR_EITHER,
Zeus Castro33670ba2011-08-17 09:50:11 +000013614 .tested = TEST_UNTESTED,
13615 .probe = probe_spi_res2,
13616 .probe_timing = TIMING_ZERO,
13617 .block_erasers =
13618 {
13619 {
13620 .eraseblocks = { {4 * 1024, 256} },
13621 .block_erase = spi_block_erase_20,
13622 }, {
13623 .eraseblocks = { {32 * 1024, 32} },
13624 .block_erase = spi_block_erase_52,
13625 }, {
13626 .eraseblocks = { {1024 * 1024, 1} },
13627 .block_erase = spi_block_erase_60,
13628 },
13629 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013630 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +000013631 .unlock = spi_disable_blockprotect,
13632 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13633 .read = spi_chip_read,
13634 .voltage = {3000, 3600},
13635 },
13636
13637 {
13638 .vendor = "SST",
Stefan Tauner6697f712014-08-06 15:09:15 +000013639 .name = "SST25VF010(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013640 .bustype = BUS_SPI,
Mark Marshall90021f22010-12-03 14:48:11 +000013641 .manufacture_id = SST_ID,
13642 .model_id = SST_SST25VF010_REMS,
13643 .total_size = 128,
13644 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000013645 .feature_bits = FEATURE_WRSR_EWSR,
Mark Marshall90021f22010-12-03 14:48:11 +000013646 .tested = TEST_OK_PREW,
13647 .probe = probe_spi_rems,
13648 .probe_timing = TIMING_ZERO,
13649 .block_erasers =
13650 {
13651 {
13652 .eraseblocks = { {4 * 1024, 32} },
13653 .block_erase = spi_block_erase_20,
13654 }, {
13655 .eraseblocks = { {32 * 1024, 4} },
13656 .block_erase = spi_block_erase_52,
13657 }, {
Cory Henderson370f5822013-10-19 23:09:16 +000013658 .eraseblocks = { {32 * 1024, 4} },
Stefan Tauner6697f712014-08-06 15:09:15 +000013659 .block_erase = spi_block_erase_d8, /* Supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000013660 }, {
Mark Marshall90021f22010-12-03 14:48:11 +000013661 .eraseblocks = { {128 * 1024, 1} },
13662 .block_erase = spi_block_erase_60,
Cory Henderson370f5822013-10-19 23:09:16 +000013663 }, {
13664 .eraseblocks = { {128 * 1024, 1} },
Stefan Tauner6697f712014-08-06 15:09:15 +000013665 .block_erase = spi_block_erase_c7, /* Supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000013666 },
13667 },
13668 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
13669 .unlock = spi_disable_blockprotect,
13670 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
Stefan Tauner6697f712014-08-06 15:09:15 +000013671 .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000013672 .voltage = {2700, 3600},
13673 },
13674
13675 {
13676 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013677 .name = "SST25VF016B",
13678 .bustype = BUS_SPI,
13679 .manufacture_id = SST_ID,
13680 .model_id = SST_SST25VF016B,
13681 .total_size = 2048,
13682 .page_size = 256,
13683 .feature_bits = FEATURE_WRSR_EITHER,
13684 .tested = TEST_OK_PREW,
13685 .probe = probe_spi_rdid,
13686 .probe_timing = TIMING_ZERO,
13687 .block_erasers =
13688 {
13689 {
13690 .eraseblocks = { {4 * 1024, 512} },
13691 .block_erase = spi_block_erase_20,
13692 }, {
13693 .eraseblocks = { {32 * 1024, 64} },
13694 .block_erase = spi_block_erase_52,
13695 }, {
13696 .eraseblocks = { {64 * 1024, 32} },
13697 .block_erase = spi_block_erase_d8,
13698 }, {
13699 .eraseblocks = { {2 * 1024 * 1024, 1} },
13700 .block_erase = spi_block_erase_60,
13701 }, {
13702 .eraseblocks = { {2 * 1024 * 1024, 1} },
13703 .block_erase = spi_block_erase_c7,
13704 },
13705 },
13706 .printlock = spi_prettyprint_status_register_sst25vf016,
13707 .unlock = spi_disable_blockprotect,
13708 .write = spi_aai_write,
13709 .read = spi_chip_read,
13710 .voltage = {2700, 3600},
13711 },
13712
13713 {
13714 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +000013715 .name = "SST25VF020",
13716 .bustype = BUS_SPI,
13717 .manufacture_id = SST_ID,
13718 .model_id = SST_SST25VF020_REMS,
13719 .total_size = 256,
13720 .page_size = 256,
13721 .feature_bits = FEATURE_WRSR_EWSR,
13722 .tested = TEST_UNTESTED,
13723 .probe = probe_spi_rems,
13724 .probe_timing = TIMING_ZERO,
13725 .block_erasers =
13726 {
13727 {
13728 .eraseblocks = { {4 * 1024, 64} },
13729 .block_erase = spi_block_erase_20,
13730 }, {
13731 .eraseblocks = { {32 * 1024, 8} },
13732 .block_erase = spi_block_erase_52,
13733 }, {
13734 .eraseblocks = { {256 * 1024, 1} },
13735 .block_erase = spi_block_erase_60,
13736 },
13737 },
13738 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
13739 .unlock = spi_disable_blockprotect,
13740 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13741 .read = spi_chip_read, /* only */
13742 .voltage = {2700, 3600},
13743 },
13744
13745 {
13746 .vendor = "SST",
13747 .name = "SST25VF020B",
13748 .bustype = BUS_SPI,
13749 .manufacture_id = SST_ID,
13750 .model_id = SST_SST25VF020B,
13751 .total_size = 256,
13752 .page_size = 256,
13753 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000013754 .tested = TEST_OK_PREW,
Cory Henderson370f5822013-10-19 23:09:16 +000013755 .probe = probe_spi_rdid,
13756 .probe_timing = TIMING_ZERO,
13757 .block_erasers =
13758 {
13759 {
13760 .eraseblocks = { {4 * 1024, 64} },
13761 .block_erase = spi_block_erase_20,
13762 }, {
13763 .eraseblocks = { {32 * 1024, 8} },
13764 .block_erase = spi_block_erase_52,
13765 }, {
13766 .eraseblocks = { {64 * 1024, 4} },
13767 .block_erase = spi_block_erase_d8,
13768 }, {
13769 .eraseblocks = { {256 * 1024, 1} },
13770 .block_erase = spi_block_erase_60,
13771 }, {
13772 .eraseblocks = { {256 * 1024, 1} },
13773 .block_erase = spi_block_erase_c7,
13774 },
13775 },
13776 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 and 2nd SR */
13777 .unlock = spi_disable_blockprotect, /* FIXME: 2nd SR */
13778 .write = spi_aai_write, /* AAI supported (0xAD) */
13779 .read = spi_chip_read, /* Fast read (0x0B) supported */
13780 .voltage = {2700, 3600},
13781 },
13782
13783 {
13784 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013785 .name = "SST25VF032B",
13786 .bustype = BUS_SPI,
13787 .manufacture_id = SST_ID,
13788 .model_id = SST_SST25VF032B,
13789 .total_size = 4096,
13790 .page_size = 256,
13791 .feature_bits = FEATURE_WRSR_EWSR,
13792 .tested = TEST_OK_PREW,
13793 .probe = probe_spi_rdid,
13794 .probe_timing = TIMING_ZERO,
13795 .block_erasers =
13796 {
13797 {
13798 .eraseblocks = { {4 * 1024, 1024} },
13799 .block_erase = spi_block_erase_20,
13800 }, {
13801 .eraseblocks = { {32 * 1024, 128} },
13802 .block_erase = spi_block_erase_52,
13803 }, {
13804 .eraseblocks = { {64 * 1024, 64} },
13805 .block_erase = spi_block_erase_d8,
13806 }, {
13807 .eraseblocks = { {4 * 1024 * 1024, 1} },
13808 .block_erase = spi_block_erase_60,
13809 }, {
13810 .eraseblocks = { {4 * 1024 * 1024, 1} },
13811 .block_erase = spi_block_erase_c7,
13812 },
13813 },
13814 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
13815 .unlock = spi_disable_blockprotect,
13816 .write = spi_aai_write,
13817 .read = spi_chip_read,
13818 .voltage = {2700, 3600},
13819 },
13820
13821 {
13822 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +000013823 .name = "SST25VF040",
13824 .bustype = BUS_SPI,
13825 .manufacture_id = SST_ID,
13826 .model_id = SST_SST25VF040_REMS,
13827 .total_size = 512,
13828 .page_size = 256,
13829 .feature_bits = FEATURE_WRSR_EWSR,
13830 .tested = TEST_OK_PR,
13831 .probe = probe_spi_rems,
13832 .probe_timing = TIMING_ZERO,
13833 .block_erasers =
13834 {
13835 {
13836 .eraseblocks = { {4 * 1024, 128} },
13837 .block_erase = spi_block_erase_20,
13838 }, {
13839 .eraseblocks = { {32 * 1024, 16} },
13840 .block_erase = spi_block_erase_52,
13841 }, {
13842 .eraseblocks = { {512 * 1024, 1} },
13843 .block_erase = spi_block_erase_60,
Mark Marshall90021f22010-12-03 14:48:11 +000013844 },
13845 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013846 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Mark Marshall90021f22010-12-03 14:48:11 +000013847 .unlock = spi_disable_blockprotect,
Cory Henderson370f5822013-10-19 23:09:16 +000013848 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13849 .read = spi_chip_read,
13850 .voltage = {2700, 3600},
13851 },
13852
13853 {
13854 .vendor = "SST",
13855 .name = "SST25VF040B",
13856 .bustype = BUS_SPI,
13857 .manufacture_id = SST_ID,
13858 .model_id = SST_SST25VF040B,
13859 .total_size = 512,
13860 .page_size = 256,
13861 .feature_bits = FEATURE_WRSR_EWSR,
13862 .tested = TEST_OK_PREW,
13863 .probe = probe_spi_rdid,
13864 .probe_timing = TIMING_ZERO,
13865 .block_erasers =
13866 {
13867 {
13868 .eraseblocks = { {4 * 1024, 128} },
13869 .block_erase = spi_block_erase_20,
13870 }, {
13871 .eraseblocks = { {32 * 1024, 16} },
13872 .block_erase = spi_block_erase_52,
13873 }, {
13874 .eraseblocks = { {64 * 1024, 8} },
13875 .block_erase = spi_block_erase_d8,
13876 }, {
13877 .eraseblocks = { {512 * 1024, 1} },
13878 .block_erase = spi_block_erase_60,
13879 }, {
13880 .eraseblocks = { {512 * 1024, 1} },
13881 .block_erase = spi_block_erase_c7,
13882 },
13883 },
13884 .printlock = spi_prettyprint_status_register_sst25vf040b,
13885 .unlock = spi_disable_blockprotect,
13886 .write = spi_aai_write, /* AAI supported (0xAD) */
13887 .read = spi_chip_read, /* Fast read (0x0B) supported */
13888 .voltage = {2700, 3600},
13889 },
13890
13891 {
13892 .vendor = "SST",
13893 .name = "SST25VF040B.REMS",
13894 .bustype = BUS_SPI,
13895 .manufacture_id = SST_ID,
13896 .model_id = SST_SST25VF040B_REMS,
13897 .total_size = 512,
13898 .page_size = 256,
13899 .feature_bits = FEATURE_WRSR_EWSR,
13900 .tested = TEST_OK_PREW,
13901 .probe = probe_spi_rems,
13902 .probe_timing = TIMING_ZERO,
13903 .block_erasers =
13904 {
13905 {
13906 .eraseblocks = { {4 * 1024, 128} },
13907 .block_erase = spi_block_erase_20,
13908 }, {
13909 .eraseblocks = { {32 * 1024, 16} },
13910 .block_erase = spi_block_erase_52,
13911 }, {
13912 .eraseblocks = { {64 * 1024, 8} },
13913 .block_erase = spi_block_erase_d8,
13914 }, {
13915 .eraseblocks = { {512 * 1024, 1} },
13916 .block_erase = spi_block_erase_60,
13917 }, {
13918 .eraseblocks = { {512 * 1024, 1} },
13919 .block_erase = spi_block_erase_c7,
13920 },
13921 },
13922 .printlock = spi_prettyprint_status_register_sst25vf040b,
13923 .unlock = spi_disable_blockprotect,
13924 .write = spi_aai_write,
13925 .read = spi_chip_read,
13926 .voltage = {2700, 3600},
13927 },
13928
13929 {
13930 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013931 .name = "SST25VF064C",
Ben Gardnerbcf61092015-11-22 02:23:31 +000013932 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013933 .manufacture_id = SST_ID,
13934 .model_id = SST_SST25VF064C,
13935 .total_size = 8192,
Ben Gardnerbcf61092015-11-22 02:23:31 +000013936 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013937 .feature_bits = FEATURE_WRSR_EWSR,
Ben Gardnerbcf61092015-11-22 02:23:31 +000013938 .tested = TEST_OK_PREW,
13939 .probe = probe_spi_rdid,
13940 .probe_timing = TIMING_ZERO,
13941 .block_erasers =
13942 {
13943 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013944 .eraseblocks = { {4 * 1024, 2048} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000013945 .block_erase = spi_block_erase_20,
13946 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013947 .eraseblocks = { {32 * 1024, 256} },
13948 .block_erase = spi_block_erase_52,
13949 }, {
13950 .eraseblocks = { {64 * 1024, 128} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000013951 .block_erase = spi_block_erase_d8,
13952 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013953 .eraseblocks = { {8 * 1024 * 1024, 1} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000013954 .block_erase = spi_block_erase_60,
13955 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013956 .eraseblocks = { {8 * 1024 * 1024, 1} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000013957 .block_erase = spi_block_erase_c7,
13958 },
13959 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100013960 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
13961 .unlock = spi_disable_blockprotect,
Ben Gardnerbcf61092015-11-22 02:23:31 +000013962 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013963 .read = spi_chip_read,
13964 .voltage = {2700, 3600},
Ben Gardnerbcf61092015-11-22 02:23:31 +000013965 },
13966
13967 {
13968 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +000013969 .name = "SST25VF080B",
13970 .bustype = BUS_SPI,
13971 .manufacture_id = SST_ID,
13972 .model_id = SST_SST25VF080B,
13973 .total_size = 1024,
13974 .page_size = 256,
13975 .feature_bits = FEATURE_WRSR_EWSR,
13976 .tested = TEST_OK_PREW,
13977 .probe = probe_spi_rdid,
13978 .probe_timing = TIMING_ZERO,
13979 .block_erasers =
13980 {
13981 {
13982 .eraseblocks = { {4 * 1024, 256} },
13983 .block_erase = spi_block_erase_20,
13984 }, {
13985 .eraseblocks = { {32 * 1024, 32} },
13986 .block_erase = spi_block_erase_52,
13987 }, {
13988 .eraseblocks = { {64 * 1024, 16} },
13989 .block_erase = spi_block_erase_d8,
13990 }, {
13991 .eraseblocks = { {1024 * 1024, 1} },
13992 .block_erase = spi_block_erase_60,
13993 }, {
13994 .eraseblocks = { {1024 * 1024, 1} },
13995 .block_erase = spi_block_erase_c7,
13996 },
13997 },
13998 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
13999 .unlock = spi_disable_blockprotect,
14000 .write = spi_aai_write,
Mark Marshall90021f22010-12-03 14:48:11 +000014001 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000014002 .voltage = {2700, 3600},
Mark Marshall90021f22010-12-03 14:48:11 +000014003 },
14004
14005 {
14006 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100014007 .name = "SST25VF512(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014008 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014009 .manufacture_id = SST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100014010 .model_id = SST_SST25VF512_REMS,
14011 .total_size = 64,
14012 .page_size = 256,
14013 .feature_bits = FEATURE_WRSR_EWSR,
14014 .tested = TEST_OK_PREW,
14015 .probe = probe_spi_rems,
14016 .probe_timing = TIMING_ZERO,
14017 .block_erasers =
14018 {
14019 {
14020 .eraseblocks = { {4 * 1024, 16} },
14021 .block_erase = spi_block_erase_20,
14022 }, {
14023 .eraseblocks = { {32 * 1024, 2} },
14024 .block_erase = spi_block_erase_52,
14025 }, {
14026 .eraseblocks = { {32 * 1024, 2} },
14027 .block_erase = spi_block_erase_d8, /* Supported by SST25VF512A only */
14028 }, {
14029 .eraseblocks = { {64 * 1024, 1} },
14030 .block_erase = spi_block_erase_60,
14031 }, {
14032 .eraseblocks = { {64 * 1024, 1} },
14033 .block_erase = spi_block_erase_c7, /* Supported by SST25VF512A only */
14034 },
14035 },
14036 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
14037 .unlock = spi_disable_blockprotect,
14038 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
14039 .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF512A only */
14040 .voltage = {2700, 3600},
14041 },
14042
14043 {
14044 .vendor = "SST",
14045 .name = "SST25WF010",
14046 .bustype = BUS_SPI,
14047 .manufacture_id = SST_ID,
14048 .model_id = SST_SST25WF010,
14049 .total_size = 128,
14050 .page_size = 256,
14051 .feature_bits = FEATURE_WRSR_EITHER,
14052 .tested = TEST_UNTESTED,
14053 .probe = probe_spi_rdid,
14054 .probe_timing = TIMING_ZERO,
14055 .block_erasers =
14056 {
14057 {
14058 .eraseblocks = { {4 * 1024, 32} },
14059 .block_erase = spi_block_erase_20,
14060 }, {
14061 .eraseblocks = { {32 * 1024, 4} },
14062 .block_erase = spi_block_erase_52,
14063 }, {
14064 .eraseblocks = { {1024 * 128, 1} },
14065 .block_erase = spi_block_erase_60,
14066 }, {
14067 .eraseblocks = { {1024 * 128, 1} },
14068 .block_erase = spi_block_erase_c7,
14069 },
14070 },
14071 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
14072 .unlock = spi_disable_blockprotect_bp2_srwd,
14073 .write = spi_aai_write,
14074 .read = spi_chip_read, /* Fast read (0x0B) supported */
14075 .voltage = {1650, 1950},
14076 },
14077
14078 {
14079 .vendor = "SST",
14080 .name = "SST25WF020",
14081 .bustype = BUS_SPI,
14082 .manufacture_id = SST_ID,
14083 .model_id = SST_SST25WF020,
14084 .total_size = 256,
14085 .page_size = 256,
14086 .feature_bits = FEATURE_WRSR_EITHER,
14087 .tested = TEST_UNTESTED,
14088 .probe = probe_spi_rdid,
14089 .probe_timing = TIMING_ZERO,
14090 .block_erasers =
14091 {
14092 {
14093 .eraseblocks = { {4 * 1024, 64} },
14094 .block_erase = spi_block_erase_20,
14095 }, {
14096 .eraseblocks = { {32 * 1024, 8} },
14097 .block_erase = spi_block_erase_52,
14098 }, {
14099 .eraseblocks = { {64 * 1024, 4} },
14100 .block_erase = spi_block_erase_d8,
14101 }, {
14102 .eraseblocks = { {1024 * 256, 1} },
14103 .block_erase = spi_block_erase_60,
14104 }, {
14105 .eraseblocks = { {1024 * 256, 1} },
14106 .block_erase = spi_block_erase_c7,
14107 },
14108 },
14109 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
14110 .unlock = spi_disable_blockprotect_bp2_srwd,
14111 .write = spi_aai_write,
14112 .read = spi_chip_read, /* Fast read (0x0B) supported */
14113 .voltage = {1650, 1950},
14114 },
14115
14116 {
14117 .vendor = "SST",
14118 .name = "SST25WF020A",
14119 .bustype = BUS_SPI,
14120 .manufacture_id = SANYO_ID, /* See flashchips.h */
14121 .model_id = SST_SST25WF020A,
14122 .total_size = 256,
14123 .page_size = 256,
14124 .feature_bits = FEATURE_WRSR_WREN,
14125 .tested = TEST_UNTESTED,
14126 .probe = probe_spi_rdid,
14127 .probe_timing = TIMING_ZERO,
14128 .block_erasers =
14129 {
14130 {
14131 .eraseblocks = { {4 * 1024, 64} },
14132 .block_erase = spi_block_erase_20,
14133 }, {
14134 .eraseblocks = { {64 * 1024, 4} },
14135 .block_erase = spi_block_erase_d8,
14136 }, {
14137 .eraseblocks = { {256 * 1024, 1} },
14138 .block_erase = spi_block_erase_60,
14139 }, {
14140 .eraseblocks = { {256 * 1024, 1} },
14141 .block_erase = spi_block_erase_c7,
14142 },
14143 },
14144 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
14145 .unlock = spi_disable_blockprotect_bp2_srwd,
14146 .write = spi_chip_write_256,
14147 .read = spi_chip_read, /* Fast read (0x0B) supported */
14148 .voltage = {1650, 1950},
14149 },
14150
14151 {
14152 .vendor = "SST",
14153 .name = "SST25WF040",
14154 .bustype = BUS_SPI,
14155 .manufacture_id = SST_ID,
14156 .model_id = SST_SST25WF040,
14157 .total_size = 512,
14158 .page_size = 256,
14159 .feature_bits = FEATURE_WRSR_EITHER,
14160 .tested = TEST_UNTESTED,
14161 .probe = probe_spi_rdid,
14162 .probe_timing = TIMING_ZERO,
14163 .block_erasers =
14164 {
14165 {
14166 .eraseblocks = { {4 * 1024, 128} },
14167 .block_erase = spi_block_erase_20,
14168 }, {
14169 .eraseblocks = { {32 * 1024, 16} },
14170 .block_erase = spi_block_erase_52,
14171 }, {
14172 .eraseblocks = { {64 * 1024, 8} },
14173 .block_erase = spi_block_erase_d8,
14174 }, {
14175 .eraseblocks = { {1024 * 512, 1} },
14176 .block_erase = spi_block_erase_60,
14177 }, {
14178 .eraseblocks = { {1024 * 512, 1} },
14179 .block_erase = spi_block_erase_c7,
14180 },
14181 },
14182 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
14183 .unlock = spi_disable_blockprotect_bp2_srwd,
14184 .write = spi_aai_write,
14185 .read = spi_chip_read, /* Fast read (0x0B) supported */
14186 .voltage = {1650, 1950},
14187 },
14188
14189 {
14190 .vendor = "SST",
14191 .name = "SST25WF040B",
14192 .bustype = BUS_SPI,
14193 .manufacture_id = SANYO_ID, /* See flashchips.h */
14194 .model_id = SST_SST25WF040B,
14195 .total_size = 512,
14196 .page_size = 256,
14197 .feature_bits = FEATURE_WRSR_WREN,
14198 .tested = TEST_UNTESTED,
14199 .probe = probe_spi_rdid,
14200 .probe_timing = TIMING_ZERO,
14201 .block_erasers =
14202 {
14203 {
14204 .eraseblocks = { {4 * 1024, 128} },
14205 .block_erase = spi_block_erase_20,
14206 }, {
14207 .eraseblocks = { {64 * 1024, 8} },
14208 .block_erase = spi_block_erase_d8,
14209 }, {
14210 .eraseblocks = { {512 * 1024, 1} },
14211 .block_erase = spi_block_erase_60,
14212 }, {
14213 .eraseblocks = { {512 * 1024, 1} },
14214 .block_erase = spi_block_erase_c7,
14215 },
14216 },
14217 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
14218 .unlock = spi_disable_blockprotect_bp2_srwd,
14219 .write = spi_chip_write_256,
14220 .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */
14221 .voltage = {1650, 1950},
14222 },
14223
14224 {
14225 .vendor = "SST",
14226 .name = "SST25WF080",
14227 .bustype = BUS_SPI,
14228 .manufacture_id = SST_ID,
14229 .model_id = SST_SST25WF080,
14230 .total_size = 1024,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014231 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000014232 .feature_bits = FEATURE_WRSR_EITHER,
Mark Marshall90021f22010-12-03 14:48:11 +000014233 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014234 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000014235 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014236 .block_erasers =
14237 {
14238 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014239 .eraseblocks = { {4 * 1024, 256} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014240 .block_erase = spi_block_erase_20,
14241 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014242 .eraseblocks = { {32 * 1024, 32} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014243 .block_erase = spi_block_erase_52,
14244 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014245 .eraseblocks = { {64 * 1024, 16} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014246 .block_erase = spi_block_erase_d8,
14247 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014248 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014249 .block_erase = spi_block_erase_60,
14250 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014251 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014252 .block_erase = spi_block_erase_c7,
14253 },
14254 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100014255 .printlock = spi_prettyprint_status_register_sst25, /* *does* have a BP3 but it is useless */
14256 .unlock = spi_disable_blockprotect_bp3_srwd,
Joshua Roys87955bf2011-08-01 18:39:28 +000014257 .write = spi_aai_write,
Alan Green1f9cc7d2019-07-01 11:10:45 +100014258 .read = spi_chip_read, /* Fast read (0x0B) supported */
14259 .voltage = {1650, 1950},
FENG yu ningff692fb2008-12-08 18:15:10 +000014260 },
14261
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014262 {
14263 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100014264 .name = "SST25WF080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014265 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +100014266 .manufacture_id = SANYO_ID, /* See flashchips.h */
14267 .model_id = SST_SST25WF080B,
14268 .total_size = 1024,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014269 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100014270 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerfcf6a8c2011-05-18 01:32:00 +000014271 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014272 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000014273 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014274 .block_erasers =
14275 {
14276 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014277 .eraseblocks = { {4 * 1024, 256} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014278 .block_erase = spi_block_erase_20,
14279 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014280 .eraseblocks = { {64 * 1024, 16} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014281 .block_erase = spi_block_erase_d8,
14282 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014283 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014284 .block_erase = spi_block_erase_60,
14285 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014286 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014287 .block_erase = spi_block_erase_c7,
14288 },
14289 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100014290 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
14291 .unlock = spi_disable_blockprotect_bp2_srwd,
Helge Wagner1db7a442010-10-05 22:29:08 +000014292 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100014293 .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */
14294 .voltage = {1650, 1950},
14295 },
14296
14297 {
14298 .vendor = "SST",
14299 .name = "SST25WF512",
14300 .bustype = BUS_SPI,
14301 .manufacture_id = SST_ID,
14302 .model_id = SST_SST25WF512,
14303 .total_size = 64,
14304 .page_size = 256,
14305 .feature_bits = FEATURE_WRSR_EITHER,
14306 .tested = TEST_UNTESTED,
14307 .probe = probe_spi_rdid,
14308 .probe_timing = TIMING_ZERO,
14309 .block_erasers =
14310 {
14311 {
14312 .eraseblocks = { {4 * 1024, 16} },
14313 .block_erase = spi_block_erase_20,
14314 }, {
14315 .eraseblocks = { {32 * 1024, 2} },
14316 .block_erase = spi_block_erase_52,
14317 }, {
14318 .eraseblocks = { {1024 * 64, 1} },
14319 .block_erase = spi_block_erase_60,
14320 }, {
14321 .eraseblocks = { {1024 * 64, 1} },
14322 .block_erase = spi_block_erase_c7,
14323 },
14324 },
14325 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
14326 .unlock = spi_disable_blockprotect_bp2_srwd,
14327 .write = spi_aai_write,
14328 .read = spi_chip_read, /* Fast read (0x0B) supported */
14329 .voltage = {1650, 1950},
Ed Swierk86f4e6d2010-07-21 15:02:22 +000014330 },
14331
14332 {
14333 .vendor = "SST",
Nico Hubera2eaf4a2023-02-15 22:56:53 +010014334 .name = "SST26VF016",
14335 .bustype = BUS_SPI,
14336 .manufacture_id = SST_ID,
14337 .model_id = SST_SST26VF016,
14338 .total_size = 2048,
14339 .page_size = 256,
14340 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
14341 .tested = TEST_UNTESTED,
14342 .probe = probe_spi_rdid,
14343 .probe_timing = TIMING_ZERO,
14344 .block_erasers =
14345 {
14346 {
14347 .eraseblocks = { {4 * 1024, 512} },
14348 .block_erase = spi_block_erase_20,
14349 }, {
14350 .eraseblocks = {
14351 {8 * 1024, 4},
14352 {32 * 1024, 1},
14353 {64 * 1024, 30},
14354 {32 * 1024, 1},
14355 {8 * 1024, 4},
14356 },
14357 .block_erase = spi_block_erase_d8,
14358 }, {
14359 .eraseblocks = { {2 * 1024 * 1024, 1} },
14360 .block_erase = spi_block_erase_c7,
14361 },
14362 },
14363 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14364 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
14365 .write = spi_chip_write_256, /* Multi I/O supported */
14366 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
14367 .voltage = {2700, 3600},
14368 },
14369
14370 {
14371 .vendor = "SST",
Wei Hu25584de2018-04-30 14:02:08 -070014372 .name = "SST26VF016B(A)",
14373 .bustype = BUS_SPI,
14374 .manufacture_id = SST_ID,
14375 .model_id = SST_SST26VF016B,
14376 .total_size = 2048,
14377 .page_size = 256,
14378 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
14379 .tested = TEST_OK_PREW,
14380 .probe = probe_spi_rdid,
14381 .probe_timing = TIMING_ZERO,
14382 .block_erasers =
14383 {
14384 {
14385 .eraseblocks = { {4 * 1024, 512} },
14386 .block_erase = spi_block_erase_20,
14387 }, {
14388 .eraseblocks = {
14389 {8 * 1024, 4},
14390 {32 * 1024, 1},
14391 {64 * 1024, 30},
14392 {32 * 1024, 1},
14393 {8 * 1024, 4},
14394 },
14395 .block_erase = spi_block_erase_d8,
14396 }, {
14397 .eraseblocks = { {2 * 1024 * 1024, 1} },
14398 .block_erase = spi_block_erase_c7,
14399 },
14400 },
14401 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14402 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
14403 .write = spi_chip_write_256, /* Multi I/O supported */
14404 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
14405 .voltage = {2700, 3600},
14406 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100014407
Wei Hu25584de2018-04-30 14:02:08 -070014408 {
14409 .vendor = "SST",
Nico Hubera2eaf4a2023-02-15 22:56:53 +010014410 .name = "SST26VF032",
14411 .bustype = BUS_SPI,
14412 .manufacture_id = SST_ID,
14413 .model_id = SST_SST26VF032,
14414 .total_size = 4096,
14415 .page_size = 256,
14416 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
14417 .tested = TEST_UNTESTED,
14418 .probe = probe_spi_rdid,
14419 .probe_timing = TIMING_ZERO,
14420 .block_erasers =
14421 {
14422 {
14423 .eraseblocks = { {4 * 1024, 1024} },
14424 .block_erase = spi_block_erase_20,
14425 }, {
14426 .eraseblocks = {
14427 {8 * 1024, 4},
14428 {32 * 1024, 1},
14429 {64 * 1024, 62},
14430 {32 * 1024, 1},
14431 {8 * 1024, 4},
14432 },
14433 .block_erase = spi_block_erase_d8,
14434 }, {
14435 .eraseblocks = { {4 * 1024 * 1024, 1} },
14436 .block_erase = spi_block_erase_c7,
14437 },
14438 },
14439 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14440 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
14441 .write = spi_chip_write_256, /* Multi I/O supported */
14442 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
14443 .voltage = {2700, 3600},
14444 },
14445
14446 {
14447 .vendor = "SST",
Wei Hu25584de2018-04-30 14:02:08 -070014448 .name = "SST26VF032B(A)",
14449 .bustype = BUS_SPI,
14450 .manufacture_id = SST_ID,
14451 .model_id = SST_SST26VF032B,
14452 .total_size = 4096,
14453 .page_size = 256,
14454 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
14455 .tested = TEST_UNTESTED,
14456 .probe = probe_spi_rdid,
14457 .probe_timing = TIMING_ZERO,
14458 .block_erasers =
14459 {
14460 {
14461 .eraseblocks = { {4 * 1024, 1024} },
14462 .block_erase = spi_block_erase_20,
14463 }, {
14464 .eraseblocks = {
14465 {8 * 1024, 4},
14466 {32 * 1024, 1},
14467 {64 * 1024, 62},
14468 {32 * 1024, 1},
14469 {8 * 1024, 4},
14470 },
14471 .block_erase = spi_block_erase_d8,
14472 }, {
14473 .eraseblocks = { {4 * 1024 * 1024, 1} },
14474 .block_erase = spi_block_erase_c7,
14475 },
14476 },
14477 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14478 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
14479 .write = spi_chip_write_256, /* Multi I/O supported */
14480 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
14481 .voltage = {2700, 3600},
14482 },
14483
Wei Hu25584de2018-04-30 14:02:08 -070014484 {
14485 .vendor = "SST",
14486 .name = "SST26VF064B(A)",
14487 .bustype = BUS_SPI,
14488 .manufacture_id = SST_ID,
14489 .model_id = SST_SST26VF064B,
14490 .total_size = 8192,
14491 .page_size = 256,
14492 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
14493 .tested = TEST_OK_PREW,
14494 .probe = probe_spi_rdid,
14495 .probe_timing = TIMING_ZERO,
14496 .block_erasers =
14497 {
14498 {
14499 .eraseblocks = { {4 * 1024, 2048} },
14500 .block_erase = spi_block_erase_20,
14501 }, {
14502 .eraseblocks = {
14503 {8 * 1024, 4},
14504 {32 * 1024, 1},
14505 {64 * 1024, 126},
14506 {32 * 1024, 1},
14507 {8 * 1024, 4},
14508 },
14509 .block_erase = spi_block_erase_d8,
14510 }, {
14511 .eraseblocks = { {8 * 1024 * 1024, 1} },
14512 .block_erase = spi_block_erase_c7,
14513 },
14514 },
14515 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14516 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
14517 .write = spi_chip_write_256, /* Multi I/O supported */
14518 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
14519 .voltage = {2700, 3600},
14520 },
14521
14522 {
14523 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014524 .name = "SST28SF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014525 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014526 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014527 .model_id = SST_SST28SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014528 .total_size = 512,
14529 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000014530 .feature_bits = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014531 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014532 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014533 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014534 .block_erasers =
14535 {
14536 {
14537 .eraseblocks = { {128, 4096} },
14538 .block_erase = erase_sector_28sf040,
14539 }, {
14540 .eraseblocks = { {512 * 1024, 1} },
14541 .block_erase = erase_chip_28sf040,
14542 }
14543 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014544 .unlock = unprotect_28sf040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014545 .write = write_28sf040,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014546 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014547 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010014548 .prepare_access = prepare_memory_access,
14549 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000014550 },
14551
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014552 {
14553 .vendor = "SST",
14554 .name = "SST29EE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014555 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014556 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014557 .model_id = SST_SST29EE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014558 .total_size = 128,
14559 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000014560 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000014561 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014562 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000014563 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014564 .block_erasers =
14565 {
14566 {
14567 .eraseblocks = { {128 * 1024, 1} },
14568 .block_erase = erase_chip_block_jedec,
14569 }
14570 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014571 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014572 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014573 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010014574 .prepare_access = prepare_memory_access,
14575 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000014576 },
14577
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014578 {
14579 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014580 .name = "SST29EE020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014581 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014582 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014583 .model_id = SST_SST29EE020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014584 .total_size = 256,
14585 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000014586 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000014587 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014588 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014589 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014590 .block_erasers =
14591 {
14592 {
14593 .eraseblocks = { {256 * 1024, 1} },
14594 .block_erase = erase_chip_block_jedec,
14595 }
14596 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014597 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014598 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014599 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010014600 .prepare_access = prepare_memory_access,
14601 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000014602 },
14603
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014604 {
14605 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100014606 .name = "SST29LE010",
14607 .bustype = BUS_PARALLEL,
14608 .manufacture_id = SST_ID,
14609 .model_id = SST_SST29LE010,
14610 .total_size = 128,
14611 .page_size = 128,
14612 .feature_bits = FEATURE_LONG_RESET,
14613 .tested = TEST_UNTESTED,
14614 .probe = probe_jedec,
14615 .probe_timing = 10,
14616 .block_erasers =
14617 {
14618 {
14619 .eraseblocks = { {128 * 1024, 1} },
14620 .block_erase = erase_chip_block_jedec,
14621 }
14622 },
14623 .write = write_jedec,
14624 .read = read_memmapped,
14625 .voltage = {3000, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010014626 .prepare_access = prepare_memory_access,
14627 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +100014628 },
14629
14630 {
14631 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014632 .name = "SST29LE020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014633 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014634 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014635 .model_id = SST_SST29LE020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014636 .total_size = 256,
14637 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000014638 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000014639 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014640 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000014641 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014642 .block_erasers =
14643 {
14644 {
14645 .eraseblocks = { {256 * 1024, 1} },
14646 .block_erase = erase_chip_block_jedec,
14647 }
14648 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014649 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014650 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014651 .voltage = {3000, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010014652 .prepare_access = prepare_memory_access,
14653 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000014654 },
14655
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014656 {
14657 .vendor = "SST",
14658 .name = "SST39SF010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014659 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014660 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014661 .model_id = SST_SST39SF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014662 .total_size = 128,
14663 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014664 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000014665 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014666 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000014667 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014668 .block_erasers =
14669 {
14670 {
14671 .eraseblocks = { {4 * 1024, 32} },
14672 .block_erase = erase_sector_jedec,
14673 }, {
14674 .eraseblocks = { {128 * 1024, 1} },
14675 .block_erase = erase_chip_block_jedec,
14676 }
14677 },
Sean Nelson35727f72010-01-28 23:55:12 +000014678 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014679 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014680 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010014681 .prepare_access = prepare_memory_access,
14682 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000014683 },
14684
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014685 {
14686 .vendor = "SST",
14687 .name = "SST39SF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014688 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014689 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014690 .model_id = SST_SST39SF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014691 .total_size = 256,
14692 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014693 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann19f46f22011-06-18 22:56:14 +000014694 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014695 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014696 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014697 .block_erasers =
14698 {
14699 {
14700 .eraseblocks = { {4 * 1024, 64} },
14701 .block_erase = erase_sector_jedec,
14702 }, {
14703 .eraseblocks = { {256 * 1024, 1} },
14704 .block_erase = erase_chip_block_jedec,
14705 }
14706 },
Sean Nelson35727f72010-01-28 23:55:12 +000014707 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014708 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014709 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010014710 .prepare_access = prepare_memory_access,
14711 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000014712 },
14713
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014714 {
14715 .vendor = "SST",
14716 .name = "SST39SF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014717 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014718 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014719 .model_id = SST_SST39SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014720 .total_size = 512,
14721 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014722 .feature_bits = FEATURE_EITHER_RESET,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +000014723 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014724 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014725 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014726 .block_erasers =
14727 {
14728 {
14729 .eraseblocks = { {4 * 1024, 128} },
14730 .block_erase = erase_sector_jedec,
14731 }, {
14732 .eraseblocks = { {512 * 1024, 1} },
14733 .block_erase = erase_chip_block_jedec,
14734 }
14735 },
Sean Nelson35727f72010-01-28 23:55:12 +000014736 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014737 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014738 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010014739 .prepare_access = prepare_memory_access,
14740 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000014741 },
14742
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014743 {
14744 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100014745 .name = "SST39SF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014746 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014747 .manufacture_id = SST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100014748 .model_id = SST_SST39SF512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014749 .total_size = 64,
14750 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014751 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd7d423b2012-10-20 09:13:16 +000014752 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014753 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014754 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014755 .block_erasers =
14756 {
14757 {
14758 .eraseblocks = { {4 * 1024, 16} },
14759 .block_erase = erase_sector_jedec,
14760 }, {
14761 .eraseblocks = { {64 * 1024, 1} },
14762 .block_erase = erase_chip_block_jedec,
14763 }
14764 },
Sean Nelson35727f72010-01-28 23:55:12 +000014765 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014766 .read = read_memmapped,
Alan Green1f9cc7d2019-07-01 11:10:45 +100014767 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010014768 .prepare_access = prepare_memory_access,
14769 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000014770 },
14771
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014772 {
14773 .vendor = "SST",
14774 .name = "SST39VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014775 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014776 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014777 .model_id = SST_SST39VF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014778 .total_size = 128,
14779 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014780 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd94d25d2012-07-28 03:17:15 +000014781 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014782 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014783 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014784 .block_erasers =
14785 {
14786 {
14787 .eraseblocks = { {4 * 1024, 32} },
14788 .block_erase = erase_sector_jedec,
14789 }, {
14790 .eraseblocks = { {128 * 1024, 1} },
14791 .block_erase = erase_chip_block_jedec,
14792 }
14793 },
Sean Nelson35727f72010-01-28 23:55:12 +000014794 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014795 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014796 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010014797 .prepare_access = prepare_memory_access,
14798 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000014799 },
14800
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014801 {
14802 .vendor = "SST",
14803 .name = "SST39VF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014804 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014805 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014806 .model_id = SST_SST39VF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014807 .total_size = 256,
14808 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014809 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner5c316f92015-02-08 21:57:52 +000014810 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014811 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014812 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014813 .block_erasers =
14814 {
14815 {
14816 .eraseblocks = { {4 * 1024, 64} },
14817 .block_erase = erase_sector_jedec,
14818 }, {
14819 .eraseblocks = { {256 * 1024, 1} },
14820 .block_erase = erase_chip_block_jedec,
14821 }
14822 },
Sean Nelson35727f72010-01-28 23:55:12 +000014823 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014824 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014825 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010014826 .prepare_access = prepare_memory_access,
14827 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000014828 },
14829
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014830 {
14831 .vendor = "SST",
14832 .name = "SST39VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014833 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014834 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014835 .model_id = SST_SST39VF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014836 .total_size = 512,
14837 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014838 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner23e10b82016-01-23 16:16:49 +000014839 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014840 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014841 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014842 .block_erasers =
14843 {
14844 {
14845 .eraseblocks = { {4 * 1024, 128} },
14846 .block_erase = erase_sector_jedec,
14847 }, {
14848 .eraseblocks = { {512 * 1024, 1} },
14849 .block_erase = erase_chip_block_jedec,
14850 }
14851 },
Sean Nelson35727f72010-01-28 23:55:12 +000014852 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014853 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014854 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010014855 .prepare_access = prepare_memory_access,
14856 .finish_access = finish_memory_access,
Carl-Daniel Hailfinger90eff152008-12-08 23:51:45 +000014857 },
FENG yu ningff692fb2008-12-08 18:15:10 +000014858
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014859 {
14860 .vendor = "SST",
Peter Stuge8440cc02009-01-25 23:55:12 +000014861 .name = "SST39VF080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014862 .bustype = BUS_PARALLEL,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000014863 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014864 .model_id = SST_SST39VF080,
Peter Stuge8440cc02009-01-25 23:55:12 +000014865 .total_size = 1024,
14866 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014867 .feature_bits = FEATURE_EITHER_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +000014868 .tested = TEST_UNTESTED,
14869 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014870 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014871 .block_erasers =
14872 {
14873 {
14874 .eraseblocks = { {4 * 1024, 256} },
14875 .block_erase = erase_sector_jedec,
14876 }, {
14877 .eraseblocks = { {64 * 1024, 16} },
14878 .block_erase = erase_block_jedec,
14879 }, {
14880 .eraseblocks = { {1024 * 1024, 1} },
14881 .block_erase = erase_chip_block_jedec,
14882 }
14883 },
Sean Nelson35727f72010-01-28 23:55:12 +000014884 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014885 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014886 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010014887 .prepare_access = prepare_memory_access,
14888 .finish_access = finish_memory_access,
Peter Stuge8440cc02009-01-25 23:55:12 +000014889 },
14890
14891 {
14892 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100014893 .name = "SST39VF512",
14894 .bustype = BUS_PARALLEL,
14895 .manufacture_id = SST_ID,
14896 .model_id = SST_SST39VF512,
14897 .total_size = 64,
14898 .page_size = 4096,
14899 .feature_bits = FEATURE_EITHER_RESET,
14900 .tested = TEST_OK_PREW,
14901 .probe = probe_jedec,
14902 .probe_timing = 1, /* 150 ns */
14903 .block_erasers =
14904 {
14905 {
14906 .eraseblocks = { {4 * 1024, 16} },
14907 .block_erase = erase_sector_jedec,
14908 }, {
14909 .eraseblocks = { {64 * 1024, 1} },
14910 .block_erase = erase_chip_block_jedec,
14911 }
14912 },
14913 .write = write_jedec_1,
14914 .read = read_memmapped,
14915 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010014916 .prepare_access = prepare_memory_access,
14917 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +100014918 },
14919
14920 {
14921 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014922 .name = "SST49LF002A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014923 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014924 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014925 .model_id = SST_SST49LF002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014926 .total_size = 256,
14927 .page_size = 16 * 1024,
Nico Huberb1974022023-01-12 13:13:12 +010014928 .feature_bits = FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000014929 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014930 .probe = probe_jedec,
14931 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014932 .block_erasers =
14933 {
14934 {
14935 .eraseblocks = { {4 * 1024, 64} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014936 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014937 }, {
14938 .eraseblocks = { {16 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014939 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014940 }, {
14941 .eraseblocks = { {256 * 1024, 1} },
14942 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
14943 }
14944 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014945 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014946 .unlock = unlock_sst_fwhub,
14947 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014948 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014949 .voltage = {3000, 3600},
Nico Huberb1974022023-01-12 13:13:12 +010014950 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010014951 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000014952 },
14953
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014954 {
14955 .vendor = "SST",
14956 .name = "SST49LF003A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014957 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014958 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014959 .model_id = SST_SST49LF003A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014960 .total_size = 384,
14961 .page_size = 64 * 1024,
Nico Huberb1974022023-01-12 13:13:12 +010014962 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000014963 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014964 .probe = probe_jedec,
14965 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014966 .block_erasers =
14967 {
14968 {
14969 .eraseblocks = { {4 * 1024, 96} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014970 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014971 }, {
14972 .eraseblocks = { {64 * 1024, 6} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014973 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014974 }, {
14975 .eraseblocks = { {384 * 1024, 1} },
14976 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
14977 }
14978 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014979 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014980 .unlock = unlock_sst_fwhub,
14981 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014982 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014983 .voltage = {3000, 3600},
Nico Huberb1974022023-01-12 13:13:12 +010014984 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010014985 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000014986 },
14987
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014988 {
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000014989 /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB)
14990 * and is only honored for 64k block erase, but not 4k sector erase.
14991 */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014992 .vendor = "SST",
14993 .name = "SST49LF004A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014994 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014995 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014996 .model_id = SST_SST49LF004A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014997 .total_size = 512,
14998 .page_size = 64 * 1024,
Nico Huberb1974022023-01-12 13:13:12 +010014999 .feature_bits = FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000015000 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015001 .probe = probe_jedec,
15002 .probe_timing = 1, /* 150 ns */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000015003 .block_erasers =
15004 {
15005 {
15006 .eraseblocks = { {4 * 1024, 128} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000015007 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000015008 }, {
15009 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000015010 .block_erase = erase_block_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000015011 }, {
15012 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson51c83fb2010-01-20 20:55:53 +000015013 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000015014 },
15015 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015016 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000015017 .unlock = unlock_sst_fwhub,
15018 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015019 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015020 .voltage = {3000, 3600},
Nico Huberb1974022023-01-12 13:13:12 +010015021 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010015022 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015023 },
15024
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015025 {
15026 .vendor = "SST",
15027 .name = "SST49LF004C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015028 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015029 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000015030 .model_id = SST_SST49LF004C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015031 .total_size = 512,
15032 .page_size = 4 * 1024,
15033 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015034 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000015035 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000015036 .block_erasers =
15037 {
15038 {
15039 .eraseblocks = { {4 * 1024, 128} },
15040 .block_erase = erase_sector_49lfxxxc,
15041 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000015042 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000015043 {64 * 1024, 7},
15044 {32 * 1024, 1},
15045 {8 * 1024, 2},
15046 {16 * 1024, 1},
15047 },
Sean Nelson69e58112010-03-23 17:10:28 +000015048 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000015049 }
15050 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015051 .printlock = printlock_regspace2_block_eraser_1,
15052 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000015053 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015054 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015055 .voltage = {3000, 3600},
Nico Huberb1974022023-01-12 13:13:12 +010015056 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010015057 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015058 },
15059
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015060 {
15061 .vendor = "SST",
15062 .name = "SST49LF008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015063 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015064 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000015065 .model_id = SST_SST49LF008A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015066 .total_size = 1024,
15067 .page_size = 64 * 1024,
Nico Huberb1974022023-01-12 13:13:12 +010015068 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000015069 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015070 .probe = probe_jedec,
15071 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000015072 .block_erasers =
15073 {
15074 {
15075 .eraseblocks = { {4 * 1024, 256} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000015076 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000015077 }, {
15078 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000015079 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000015080 }, {
15081 .eraseblocks = { {1024 * 1024, 1} },
15082 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
15083 }
15084 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015085 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000015086 .unlock = unlock_sst_fwhub,
15087 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015088 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015089 .voltage = {3000, 3600},
Nico Huberb1974022023-01-12 13:13:12 +010015090 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010015091 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015092 },
15093
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015094 {
15095 .vendor = "SST",
15096 .name = "SST49LF008C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015097 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015098 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000015099 .model_id = SST_SST49LF008C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015100 .total_size = 1024,
15101 .page_size = 4 * 1024,
15102 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015103 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000015104 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000015105 .block_erasers =
15106 {
15107 {
15108 .eraseblocks = { {4 * 1024, 256} },
15109 .block_erase = erase_sector_49lfxxxc,
15110 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000015111 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000015112 {64 * 1024, 15},
15113 {32 * 1024, 1},
15114 {8 * 1024, 2},
15115 {16 * 1024, 1},
15116 },
Sean Nelson69e58112010-03-23 17:10:28 +000015117 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000015118 }
15119 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015120 .printlock = printlock_regspace2_block_eraser_1,
15121 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000015122 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015123 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015124 .voltage = {3000, 3600},
Nico Huberb1974022023-01-12 13:13:12 +010015125 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010015126 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015127 },
15128
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015129 {
15130 .vendor = "SST",
15131 .name = "SST49LF016C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015132 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015133 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000015134 .model_id = SST_SST49LF016C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015135 .total_size = 2048,
15136 .page_size = 4 * 1024,
Stefan Tauner23e10b82016-01-23 16:16:49 +000015137 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015138 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000015139 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000015140 .block_erasers =
15141 {
15142 {
15143 .eraseblocks = { {4 * 1024, 512} },
15144 .block_erase = erase_sector_49lfxxxc,
15145 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000015146 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000015147 {64 * 1024, 31},
15148 {32 * 1024, 1},
15149 {8 * 1024, 2},
15150 {16 * 1024, 1},
15151 },
Sean Nelson69e58112010-03-23 17:10:28 +000015152 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000015153 }
15154 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015155 .printlock = printlock_regspace2_block_eraser_1,
15156 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000015157 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015158 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015159 .voltage = {3000, 3600},
Nico Huberb1974022023-01-12 13:13:12 +010015160 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010015161 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015162 },
15163
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015164 {
15165 .vendor = "SST",
15166 .name = "SST49LF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015167 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015168 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000015169 .model_id = SST_SST49LF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015170 .total_size = 256,
15171 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015172 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +000015173 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015174 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000015175 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000015176 .block_erasers =
15177 {
15178 {
15179 .eraseblocks = { {4 * 1024, 64} },
15180 .block_erase = erase_sector_jedec,
15181 }, {
15182 .eraseblocks = { {16 * 1024, 16} },
15183 .block_erase = erase_block_jedec,
15184 }, {
15185 .eraseblocks = { {256 * 1024, 1} },
15186 .block_erase = NULL,
15187 }
15188 },
Sean Nelson35727f72010-01-28 23:55:12 +000015189 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015190 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015191 .voltage = {3000, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010015192 .prepare_access = prepare_memory_access,
15193 .finish_access = finish_memory_access,
Sven Schnellec208dfb2009-01-07 12:35:09 +000015194 },
15195
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015196 {
15197 .vendor = "SST",
15198 .name = "SST49LF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015199 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015200 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000015201 .model_id = SST_SST49LF020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015202 .total_size = 256,
Carl-Daniel Hailfingerda654322009-07-23 01:44:38 +000015203 .page_size = 4 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015204 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000015205 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015206 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000015207 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000015208 .block_erasers =
15209 {
15210 {
15211 .eraseblocks = { {4 * 1024, 64} },
15212 .block_erase = erase_sector_jedec,
15213 }, {
15214 .eraseblocks = { {16 * 1024, 16} },
15215 .block_erase = erase_block_jedec,
15216 }, {
15217 .eraseblocks = { {256 * 1024, 1} },
15218 .block_erase = NULL,
15219 }
15220 },
Sean Nelson35727f72010-01-28 23:55:12 +000015221 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015222 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015223 .voltage = {3000, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010015224 .prepare_access = prepare_memory_access,
15225 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015226 },
15227
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015228 {
15229 .vendor = "SST",
15230 .name = "SST49LF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015231 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015232 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000015233 .model_id = SST_SST49LF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015234 .total_size = 512,
15235 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000015236 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000015237 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015238 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000015239 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000015240 .block_erasers =
15241 {
15242 {
15243 .eraseblocks = { {4 * 1024, 128} },
15244 .block_erase = erase_sector_jedec,
15245 }, {
15246 .eraseblocks = { {64 * 1024, 8} },
15247 .block_erase = erase_block_jedec,
15248 }, {
15249 .eraseblocks = { {512 * 1024, 1} },
15250 .block_erase = NULL,
15251 }
15252 },
Sean Nelson35727f72010-01-28 23:55:12 +000015253 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015254 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015255 .voltage = {3000, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010015256 .prepare_access = prepare_memory_access,
15257 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015258 },
15259
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015260 {
15261 .vendor = "SST",
15262 .name = "SST49LF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015263 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015264 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000015265 .model_id = SST_SST49LF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015266 .total_size = 512,
15267 .page_size = 64 * 1024,
Nico Huberb1974022023-01-12 13:13:12 +010015268 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner23e10b82016-01-23 16:16:49 +000015269 .tested = TEST_OK_PREW,
Sean Nelson51c83fb2010-01-20 20:55:53 +000015270 .probe = probe_jedec,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015271 .probe_timing = 1, /* 150ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000015272 .block_erasers =
15273 {
15274 {
15275 .eraseblocks = { {4 * 1024, 128} },
15276 .block_erase = erase_sector_jedec,
15277 }, {
15278 .eraseblocks = { {64 * 1024, 8} },
15279 .block_erase = erase_block_jedec,
15280 }, {
15281 .eraseblocks = { {512 * 1024, 1} },
15282 .block_erase = NULL,
15283 }
15284 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015285 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000015286 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015287 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015288 .voltage = {3000, 3600},
Nico Huberb1974022023-01-12 13:13:12 +010015289 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010015290 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015291 },
15292
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015293 {
15294 .vendor = "SST",
15295 .name = "SST49LF080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015296 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015297 .manufacture_id = SST_ID,
Elyes HAOUAS124ef382018-03-27 12:15:09 +020015298 .model_id = SST_SST49LF080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015299 .total_size = 1024,
15300 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000015301 .feature_bits = FEATURE_EITHER_RESET,
Brandon Dowdyf07bf322011-03-06 18:31:11 +000015302 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015303 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000015304 .probe_timing = TIMING_FIXME,
Sean Nelson51c83fb2010-01-20 20:55:53 +000015305 .block_erasers =
15306 {
15307 {
15308 .eraseblocks = { {4 * 1024, 256} },
15309 .block_erase = erase_sector_jedec,
15310 }, {
15311 .eraseblocks = { {64 * 1024, 16} },
15312 .block_erase = erase_block_jedec,
15313 }, {
15314 .eraseblocks = { {1024 * 1024, 1} },
15315 .block_erase = NULL,
15316 }
15317 },
Sean Nelson35727f72010-01-28 23:55:12 +000015318 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015319 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015320 .voltage = {3000, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010015321 .prepare_access = prepare_memory_access,
15322 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015323 },
15324
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015325 {
15326 .vendor = "SST",
15327 .name = "SST49LF160C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015328 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015329 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000015330 .model_id = SST_SST49LF160C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015331 .total_size = 2048,
15332 .page_size = 4 * 1024,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015333 .tested = TEST_OK_PR,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015334 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000015335 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000015336 .block_erasers =
15337 {
15338 {
15339 .eraseblocks = { {4 * 1024, 512} },
15340 .block_erase = erase_sector_49lfxxxc,
15341 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000015342 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000015343 {64 * 1024, 31},
15344 {32 * 1024, 1},
15345 {8 * 1024, 2},
15346 {16 * 1024, 1},
15347 },
Sean Nelson69e58112010-03-23 17:10:28 +000015348 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000015349 }
15350 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015351 .printlock = printlock_regspace2_block_eraser_1,
15352 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000015353 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015354 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015355 .voltage = {3000, 3600},
Nico Huberb1974022023-01-12 13:13:12 +010015356 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010015357 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015358 },
15359
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015360 {
15361 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015362 .name = "M29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015363 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015364 .manufacture_id = ST_ID,
15365 .model_id = ST_M29F002B,
15366 .total_size = 256,
15367 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015368 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015369 .tested = TEST_UNTESTED,
15370 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000015371 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000015372 .block_erasers =
15373 {
15374 {
15375 .eraseblocks = {
15376 {16 * 1024, 1},
15377 {8 * 1024, 2},
15378 {32 * 1024, 1},
15379 {64 * 1024, 3},
15380 },
15381 .block_erase = erase_sector_jedec,
15382 }, {
15383 .eraseblocks = { {256 * 1024, 1} },
15384 .block_erase = erase_chip_block_jedec,
15385 }
15386 },
Sean Nelson35727f72010-01-28 23:55:12 +000015387 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015388 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000015389 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
Nico Huber9eec4072023-01-12 01:17:30 +010015390 .prepare_access = prepare_memory_access,
15391 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015392 },
15393
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015394 {
15395 .vendor = "ST",
15396 .name = "M29F002T/NT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015397 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015398 .manufacture_id = ST_ID,
15399 .model_id = ST_M29F002T,
15400 .total_size = 256,
15401 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015402 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stefan Taunere34e3e82013-01-01 00:06:51 +000015403 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015404 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000015405 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000015406 .block_erasers =
15407 {
15408 {
15409 .eraseblocks = {
15410 {64 * 1024, 3},
15411 {32 * 1024, 1},
15412 {8 * 1024, 2},
15413 {16 * 1024, 1},
15414 },
15415 .block_erase = erase_sector_jedec,
15416 }, {
15417 .eraseblocks = { {256 * 1024, 1} },
15418 .block_erase = erase_chip_block_jedec,
15419 }
15420 },
Sean Nelson35727f72010-01-28 23:55:12 +000015421 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015422 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000015423 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
Nico Huber9eec4072023-01-12 01:17:30 +010015424 .prepare_access = prepare_memory_access,
15425 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015426 },
15427
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015428 {
15429 .vendor = "ST",
15430 .name = "M29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015431 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015432 .manufacture_id = ST_ID,
15433 .model_id = ST_M29F040B,
15434 .total_size = 512,
15435 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015436 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
15437 .tested = TEST_UNTESTED,
15438 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +000015439 .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */
Sean Nelson56358aa2010-01-19 16:08:51 +000015440 .block_erasers =
15441 {
15442 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015443 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +000015444 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000015445 }, {
15446 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000015447 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000015448 }
15449 },
Sean Nelson35727f72010-01-28 23:55:12 +000015450 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015451 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015452 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010015453 .prepare_access = prepare_memory_access,
15454 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015455 },
15456
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015457 {
Sean Nelson35727f72010-01-28 23:55:12 +000015458 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015459 .vendor = "ST",
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000015460 .name = "M29F400BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015461 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000015462 .manufacture_id = ST_ID,
15463 .model_id = ST_M29F400BB,
15464 .total_size = 512,
15465 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015466 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000015467 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015468 .probe = probe_jedec,
15469 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000015470 .block_erasers =
15471 {
15472 {
15473 .eraseblocks = {
15474 {16 * 1024, 1},
15475 {8 * 1024, 2},
15476 {32 * 1024, 1},
15477 {64 * 1024, 7},
15478 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015479 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000015480 }, {
15481 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015482 .block_erase = erase_chip_block_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000015483 }
15484 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015485 .write = write_jedec_1,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000015486 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015487 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010015488 .prepare_access = prepare_memory_access,
15489 .finish_access = finish_memory_access,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000015490 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100015491
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000015492 {
15493 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
15494 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015495 .name = "M29F400BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015496 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015497 .manufacture_id = ST_ID,
15498 .model_id = ST_M29F400BT,
15499 .total_size = 512,
15500 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015501 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015502 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015503 .probe = probe_jedec,
15504 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson56358aa2010-01-19 16:08:51 +000015505 .block_erasers =
15506 {
15507 {
15508 .eraseblocks = {
15509 {64 * 1024, 7},
15510 {32 * 1024, 1},
15511 {8 * 1024, 2},
15512 {16 * 1024, 1},
15513 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015514 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000015515 }, {
15516 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015517 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000015518 }
15519 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015520 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015521 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015522 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010015523 .prepare_access = prepare_memory_access,
15524 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015525 },
15526
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015527 {
15528 .vendor = "ST",
15529 .name = "M29W010B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015530 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015531 .manufacture_id = ST_ID,
15532 .model_id = ST_M29W010B,
15533 .total_size = 128,
15534 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015535 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015536 .tested = TEST_UNTESTED,
15537 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000015538 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000015539 .block_erasers =
15540 {
15541 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015542 .eraseblocks = { {16 * 1024, 8} },
Sean Nelson56358aa2010-01-19 16:08:51 +000015543 .block_erase = erase_sector_jedec,
15544 }, {
15545 .eraseblocks = { {128 * 1024, 1} },
15546 .block_erase = erase_chip_block_jedec,
15547 }
15548 },
Sean Nelson35727f72010-01-28 23:55:12 +000015549 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015550 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015551 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010015552 .prepare_access = prepare_memory_access,
15553 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015554 },
15555
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015556 {
15557 .vendor = "ST",
15558 .name = "M29W040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015559 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015560 .manufacture_id = ST_ID,
15561 .model_id = ST_M29W040B,
15562 .total_size = 512,
15563 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015564 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015565 .tested = TEST_UNTESTED,
15566 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000015567 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000015568 .block_erasers =
15569 {
15570 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015571 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson56358aa2010-01-19 16:08:51 +000015572 .block_erase = erase_sector_jedec,
15573 }, {
15574 .eraseblocks = { {512 * 1024, 1} },
15575 .block_erase = erase_chip_block_jedec,
15576 }
15577 },
Sean Nelson35727f72010-01-28 23:55:12 +000015578 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015579 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015580 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010015581 .prepare_access = prepare_memory_access,
15582 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015583 },
15584
Stefan Taunereb582572012-09-21 12:52:50 +000015585 {
15586 .vendor = "ST",
15587 .name = "M29W512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015588 .bustype = BUS_PARALLEL,
Alan Greenfa3fcd32019-06-27 15:41:50 +100015589 .manufacture_id = ST_ID,
Stefan Taunereb582572012-09-21 12:52:50 +000015590 .model_id = ST_M29W512B,
15591 .total_size = 64,
15592 .page_size = 64 * 1024,
15593 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauner0554ca52013-07-25 22:54:25 +000015594 .tested = TEST_OK_PREW,
Stefan Taunereb582572012-09-21 12:52:50 +000015595 .probe = probe_jedec,
15596 .probe_timing = TIMING_ZERO,
15597 .block_erasers =
15598 {
15599 {
15600 .eraseblocks = { {64 * 1024, 1} },
15601 .block_erase = erase_chip_block_jedec,
15602 }
15603 },
15604 .write = write_jedec_1,
15605 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015606 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010015607 .prepare_access = prepare_memory_access,
15608 .finish_access = finish_memory_access,
Stefan Taunereb582572012-09-21 12:52:50 +000015609 },
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +000015610
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015611 {
15612 .vendor = "ST",
15613 .name = "M50FLW040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015614 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015615 .manufacture_id = ST_ID,
15616 .model_id = ST_M50FLW040A,
15617 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000015618 .page_size = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015619 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000015620 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000015621 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000015622 .block_erasers =
15623 {
15624 {
Sean Nelson329bde72010-01-19 16:39:19 +000015625 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000015626 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000015627 {64 * 1024, 5}, /* block */
15628 {4 * 1024, 16}, /* sector */
15629 {4 * 1024, 16}, /* sector */
15630 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000015631 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000015632 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000015633 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000015634 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015635 }
15636 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015637 .unlock = unlock_regspace2_uniform_64k,
Alan Greenc1863ca2019-06-27 15:08:03 +100015638 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015639 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015640 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
Nico Huberb1974022023-01-12 13:13:12 +010015641 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010015642 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015643 },
15644
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015645 {
15646 .vendor = "ST",
15647 .name = "M50FLW040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015648 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015649 .manufacture_id = ST_ID,
15650 .model_id = ST_M50FLW040B,
15651 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000015652 .page_size = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015653 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000015654 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000015655 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000015656 .block_erasers =
15657 {
15658 {
Sean Nelson329bde72010-01-19 16:39:19 +000015659 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000015660 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000015661 {4 * 1024, 16}, /* sector */
15662 {64 * 1024, 5}, /* block */
15663 {4 * 1024, 16}, /* sector */
15664 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000015665 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000015666 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000015667 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000015668 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015669 }
15670 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015671 .unlock = unlock_regspace2_uniform_64k,
Alan Greenc1863ca2019-06-27 15:08:03 +100015672 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015673 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015674 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
Nico Huberb1974022023-01-12 13:13:12 +010015675 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010015676 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015677 },
15678
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015679 {
15680 .vendor = "ST",
15681 .name = "M50FLW080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015682 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015683 .manufacture_id = ST_ID,
15684 .model_id = ST_M50FLW080A,
15685 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000015686 .page_size = 0,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015687 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +000015688 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000015689 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000015690 .block_erasers =
15691 {
15692 {
Sean Nelson329bde72010-01-19 16:39:19 +000015693 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000015694 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000015695 {64 * 1024, 13}, /* block */
15696 {4 * 1024, 16}, /* sector */
15697 {4 * 1024, 16}, /* sector */
15698 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000015699 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000015700 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000015701 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000015702 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015703 }
15704 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015705 .printlock = printlock_regspace2_block_eraser_0,
15706 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000015707 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015708 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015709 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
Nico Huberb1974022023-01-12 13:13:12 +010015710 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010015711 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015712 },
15713
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015714 {
15715 .vendor = "ST",
15716 .name = "M50FLW080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015717 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015718 .manufacture_id = ST_ID,
15719 .model_id = ST_M50FLW080B,
15720 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000015721 .page_size = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015722 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000015723 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000015724 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000015725 .block_erasers =
15726 {
15727 {
Sean Nelson329bde72010-01-19 16:39:19 +000015728 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000015729 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000015730 {4 * 1024, 16}, /* sector */
15731 {64 * 1024, 13}, /* block */
15732 {4 * 1024, 16}, /* sector */
15733 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000015734 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000015735 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000015736 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000015737 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015738 }
15739 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015740 .printlock = printlock_regspace2_block_eraser_0,
15741 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000015742 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015743 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015744 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
Nico Huberb1974022023-01-12 13:13:12 +010015745 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010015746 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015747 },
15748
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015749 {
15750 .vendor = "ST",
15751 .name = "M50FW002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015752 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015753 .manufacture_id = ST_ID,
15754 .model_id = ST_M50FW002,
15755 .total_size = 256,
Stefan Tauner4404f732013-09-12 08:28:56 +000015756 .page_size = 0,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015757 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +000015758 .probe = probe_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015759 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000015760 .block_erasers =
15761 {
15762 {
15763 .eraseblocks = {
15764 {64 * 1024, 3},
15765 {32 * 1024, 1},
15766 {8 * 1024, 2},
15767 {16 * 1024, 1},
15768 },
Sean Nelson28accc22010-03-19 18:47:06 +000015769 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015770 }, {
Stefan Tauner5c316f92015-02-08 21:57:52 +000015771 .eraseblocks = { {256 * 1024, 1} },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015772 .block_erase = NULL, /* Only in A/A mux mode */
Sean Nelson56358aa2010-01-19 16:08:51 +000015773 }
15774 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015775 .printlock = printlock_regspace2_block_eraser_0,
15776 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000015777 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015778 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015779 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
Nico Huberb1974022023-01-12 13:13:12 +010015780 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010015781 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015782 },
15783
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015784 {
15785 .vendor = "ST",
15786 .name = "M50FW016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015787 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015788 .manufacture_id = ST_ID,
15789 .model_id = ST_M50FW016,
15790 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000015791 .page_size = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015792 .tested = TEST_UNTESTED,
15793 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000015794 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000015795 .block_erasers =
15796 {
15797 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015798 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson28accc22010-03-19 18:47:06 +000015799 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015800 }
15801 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015802 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000015803 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015804 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015805 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
Nico Huberb1974022023-01-12 13:13:12 +010015806 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010015807 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015808 },
15809
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015810 {
15811 .vendor = "ST",
15812 .name = "M50FW040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015813 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015814 .manufacture_id = ST_ID,
15815 .model_id = ST_M50FW040,
15816 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000015817 .page_size = 0,
Sean Nelson28accc22010-03-19 18:47:06 +000015818 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015819 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000015820 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000015821 .block_erasers =
15822 {
15823 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015824 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000015825 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015826 }
15827 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015828 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000015829 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015830 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015831 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
Nico Huberb1974022023-01-12 13:13:12 +010015832 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010015833 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015834 },
15835
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015836 {
15837 .vendor = "ST",
15838 .name = "M50FW080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015839 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015840 .manufacture_id = ST_ID,
15841 .model_id = ST_M50FW080,
15842 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000015843 .page_size = 0,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015844 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015845 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000015846 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000015847 .block_erasers =
15848 {
15849 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015850 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000015851 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015852 }
15853 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015854 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000015855 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015856 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015857 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
Nico Huberb1974022023-01-12 13:13:12 +010015858 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010015859 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015860 },
15861
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015862 {
15863 .vendor = "ST",
Stefan Tauner8c4602b2013-09-12 08:29:00 +000015864 .name = "M50LPW080",
15865 .bustype = BUS_LPC, /* A/A Mux */
15866 .manufacture_id = ST_ID,
15867 .model_id = ST_M50LPW080,
15868 .total_size = 1024,
15869 .page_size = 0,
Stefan Tauner8c4602b2013-09-12 08:29:00 +000015870 .tested = TEST_UNTESTED,
15871 .probe = probe_82802ab,
15872 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
15873 .block_erasers =
15874 {
15875 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015876 .eraseblocks = { {64 * 1024, 16} },
Stefan Tauner8c4602b2013-09-12 08:29:00 +000015877 .block_erase = erase_block_82802ab,
15878 }
15879 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015880 .unlock = unlock_regspace2_uniform_64k,
Stefan Tauner8c4602b2013-09-12 08:29:00 +000015881 .write = write_82802ab,
15882 .read = read_memmapped,
15883 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
Nico Huberb1974022023-01-12 13:13:12 +010015884 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010015885 .finish_access = finish_memory_access,
Stefan Tauner8c4602b2013-09-12 08:29:00 +000015886 },
15887
15888 {
15889 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015890 .name = "M50LPW116",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015891 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015892 .manufacture_id = ST_ID,
15893 .model_id = ST_M50LPW116,
15894 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000015895 .page_size = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015896 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000015897 .probe = probe_82802ab,
Udu Ogahc04ee222009-09-05 01:31:32 +000015898 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000015899 .block_erasers =
15900 {
15901 {
15902 .eraseblocks = {
15903 {4 * 1024, 16},
15904 {64 * 1024, 30},
15905 {32 * 1024, 1},
15906 {8 * 1024, 2},
15907 {16 * 1024, 1},
15908 },
Sean Nelson28accc22010-03-19 18:47:06 +000015909 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015910 }
15911 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015912 .printlock = printlock_regspace2_block_eraser_0,
15913 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000015914 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015915 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015916 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
Nico Huberb1974022023-01-12 13:13:12 +010015917 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010015918 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015919 },
15920
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015921 {
Konstantin Grudnev3d8868c2019-07-23 00:48:54 +030015922 .vendor = "ST",
15923 .name = "M95M02",
15924 .bustype = BUS_SPI,
15925 .manufacture_id = ST_ID,
15926 .model_id = ST_M95M02,
15927 .total_size = 256,
15928 .page_size = 256,
15929 .feature_bits = FEATURE_WRSR_WREN | FEATURE_NO_ERASE | FEATURE_ERASED_ZERO,
15930 .tested = TEST_OK_PREW,
Nico Huber54557862023-05-15 12:01:04 +020015931 .spi_cmd_set = SPI95,
Konstantin Grudnev3d8868c2019-07-23 00:48:54 +030015932 .probe = probe_spi_st95,
15933 .probe_timing = TIMING_ZERO,
15934 .block_erasers =
15935 {
15936 {
15937 .eraseblocks = { {256 * 1024, 1} },
15938 .block_erase = spi_block_erase_emulation,
15939 }
15940 },
15941
15942 .printlock = spi_prettyprint_status_register_bp1_srwd,
15943 .unlock = spi_disable_blockprotect_bp1_srwd,
15944 .write = spi_chip_write_256,
15945 .read = spi_chip_read,
15946 .voltage = {2500, 5500},
15947 },
15948
15949 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100015950 .vendor = "Sanyo",
15951 .name = "LE25FU106B",
15952 .bustype = BUS_SPI,
15953 .manufacture_id = SANYO_ID,
15954 .model_id = SANYO_LE25FU106B,
15955 .total_size = 128,
15956 .page_size = 256,
15957 .feature_bits = FEATURE_WRSR_WREN,
15958 .tested = TEST_UNTESTED,
15959 .probe = probe_spi_res2,
15960 .probe_timing = TIMING_ZERO,
15961 .block_erasers =
15962 {
15963 /* FIXME: Is this correct?
15964 {
15965 .eraseblocks = { {2 * 1024, 64} },
15966 .block_erase = spi_block_erase_d7,
15967 },*/
15968 {
15969 .eraseblocks = { {32 * 1024, 4} },
15970 .block_erase = spi_block_erase_d8,
15971 }, {
15972 .eraseblocks = { {128 * 1024, 1} },
15973 .block_erase = spi_block_erase_c7,
15974 }
15975 },
15976 .printlock = spi_prettyprint_status_register_bp1_srwd,
15977 .unlock = spi_disable_blockprotect_bp1_srwd,
15978 .write = spi_chip_write_256,
15979 .read = spi_chip_read,
15980 .voltage = {2300, 3600},
15981 },
15982
15983 {
15984 .vendor = "Sanyo",
15985 .name = "LE25FU206",
15986 .bustype = BUS_SPI,
15987 .manufacture_id = SANYO_ID,
15988 .model_id = SANYO_LE25FU206,
15989 .total_size = 256,
15990 .page_size = 256,
15991 .feature_bits = FEATURE_WRSR_WREN,
15992 .tested = TEST_UNTESTED,
15993 .probe = probe_spi_res2,
15994 .probe_timing = TIMING_ZERO,
15995 .block_erasers =
15996 {
15997 {
15998 .eraseblocks = { {4 * 1024, 64} },
15999 .block_erase = spi_block_erase_d7,
16000 }, {
16001 .eraseblocks = { {64 * 1024, 4} },
16002 .block_erase = spi_block_erase_d8,
16003 }, {
16004 .eraseblocks = { {256 * 1024, 1} },
16005 .block_erase = spi_block_erase_c7,
16006 }
16007 },
16008 .printlock = spi_prettyprint_status_register_bp1_srwd,
16009 .unlock = spi_disable_blockprotect_bp1_srwd,
16010 .write = spi_chip_write_256,
16011 .read = spi_chip_read,
16012 .voltage = {2300, 3600},
16013 },
16014
16015 {
16016 .vendor = "Sanyo",
16017 .name = "LE25FU206A",
16018 .bustype = BUS_SPI,
16019 .manufacture_id = SANYO_ID,
16020 .model_id = SANYO_LE25FU206A,
16021 .total_size = 256,
16022 .page_size = 256,
16023 .tested = TEST_UNTESTED,
16024 .probe = probe_spi_rdid,
16025 .probe_timing = TIMING_ZERO,
16026 .block_erasers =
16027 {
16028 {
16029 .eraseblocks = { {4 * 1024, 64} },
16030 .block_erase = spi_block_erase_20,
16031 }, {
16032 .eraseblocks = { {4 * 1024, 64} },
16033 .block_erase = spi_block_erase_d7,
16034 }, {
16035 .eraseblocks = { {64 * 1024, 4} },
16036 .block_erase = spi_block_erase_d8,
16037 }, {
16038 .eraseblocks = { {256 * 1024, 1} },
16039 .block_erase = spi_block_erase_60,
16040 }, {
16041 .eraseblocks = { {256 * 1024, 1} },
16042 .block_erase = spi_block_erase_c7,
16043 }
16044 },
16045 .printlock = spi_prettyprint_status_register_bp2_srwd,
16046 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
16047 .write = spi_chip_write_256,
16048 .read = spi_chip_read,
16049 .voltage = {2300, 3600},
16050 },
16051
16052 {
16053 .vendor = "Sanyo",
16054 .name = "LE25FU406B",
16055 .bustype = BUS_SPI,
16056 .manufacture_id = SANYO_ID,
16057 .model_id = SANYO_LE25FU406B,
16058 .total_size = 512,
16059 .page_size = 256,
16060 .feature_bits = FEATURE_WRSR_WREN,
16061 .tested = TEST_OK_PREW,
16062 .probe = probe_spi_res2,
16063 .probe_timing = TIMING_ZERO,
16064 .block_erasers =
16065 {
16066 {
16067 .eraseblocks = { {4 * 1024, 128} },
16068 .block_erase = spi_block_erase_d7,
16069 }, {
16070 .eraseblocks = { {64 * 1024, 8} },
16071 .block_erase = spi_block_erase_d8,
16072 }, {
16073 .eraseblocks = { {512 * 1024, 1} },
16074 .block_erase = spi_block_erase_c7,
16075 }
16076 },
16077 .printlock = spi_prettyprint_status_register_bp2_srwd,
16078 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
16079 .write = spi_chip_write_256,
16080 .read = spi_chip_read,
16081 .voltage = {2300, 3600},
16082 },
16083
16084 {
16085 .vendor = "Sanyo",
16086 .name = "LE25FU406C/LE25U40CMC",
16087 .bustype = BUS_SPI,
16088 .manufacture_id = SANYO_ID,
16089 .model_id = SANYO_LE25FU406C,
16090 .total_size = 512,
16091 .page_size = 256,
16092 .feature_bits = FEATURE_WRSR_WREN,
16093 .tested = TEST_OK_PREW,
16094 .probe = probe_spi_rdid,
16095 .probe_timing = TIMING_ZERO,
16096 .block_erasers =
16097 {
16098 {
16099 .eraseblocks = { {4 * 1024, 128} },
16100 .block_erase = spi_block_erase_20,
16101 }, {
16102 .eraseblocks = { {4 * 1024, 128} },
16103 .block_erase = spi_block_erase_d7,
16104 }, {
16105 .eraseblocks = { {64 * 1024, 8} },
16106 .block_erase = spi_block_erase_d8,
16107 }, {
16108 .eraseblocks = { {512 * 1024, 1} },
16109 .block_erase = spi_block_erase_60,
16110 }, {
16111 .eraseblocks = { {512 * 1024, 1} },
16112 .block_erase = spi_block_erase_c7,
16113 }
16114 },
16115 .printlock = spi_prettyprint_status_register_bp2_srwd,
16116 .unlock = spi_disable_blockprotect_bp2_srwd,
16117 .write = spi_chip_write_256,
16118 .read = spi_chip_read, /* Fast read (0x0B), dual read (0x3B) and dual I/O (0xBB) supported */
16119 .voltage = {2300, 3600},
16120 },
16121
16122 {
16123 .vendor = "Sanyo",
16124 .name = "LE25FW106",
16125 .bustype = BUS_SPI,
16126 .manufacture_id = SANYO_ID,
16127 .model_id = SANYO_LE25FW106,
16128 .total_size = 128,
16129 .page_size = 256,
16130 .feature_bits = FEATURE_WRSR_WREN,
16131 .tested = TEST_OK_PREW,
16132 .probe = probe_spi_res2,
16133 .probe_timing = TIMING_ZERO,
16134 .block_erasers =
16135 {
16136 {
16137 .eraseblocks = { {2 * 1024, 64} },
16138 .block_erase = spi_block_erase_d7,
16139 }, {
16140 .eraseblocks = { {32 * 1024, 4} },
16141 .block_erase = spi_block_erase_d8,
16142 }, {
16143 .eraseblocks = { {128 * 1024, 1} },
16144 .block_erase = spi_block_erase_c7,
16145 }
16146 },
16147 .printlock = spi_prettyprint_status_register_bp1_srwd, /* FIXME: Add ERSER error flag. */
16148 .unlock = spi_disable_blockprotect_bp1_srwd,
16149 .write = spi_chip_write_256,
16150 .read = spi_chip_read,
16151 .voltage = {2700, 3600},
16152 },
16153
16154 {
16155 .vendor = "Sanyo",
16156 .name = "LE25FW203A",
16157 .bustype = BUS_SPI,
16158 .manufacture_id = SANYO_ID,
16159 .model_id = SANYO_LE25FW203A,
16160 .total_size = 256,
16161 .page_size = 256,
16162 .tested = TEST_UNTESTED,
16163 .probe = probe_spi_rdid,
16164 .probe_timing = TIMING_ZERO,
16165 .block_erasers =
16166 {
16167 {
16168 .eraseblocks = { {256, 1024} },
16169 .block_erase = spi_block_erase_db,
16170 }, {
16171 .eraseblocks = { {64 * 1024, 4} },
16172 .block_erase = spi_block_erase_d8,
16173 }, {
16174 .eraseblocks = { {256 * 1024, 1} },
16175 .block_erase = spi_block_erase_c7,
16176 }
16177 },
16178 .printlock = spi_prettyprint_status_register_default_welwip,
16179 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
16180 .write = spi_chip_write_256,
16181 .read = spi_chip_read,
16182 .voltage = {2700, 3600},
16183 },
16184
16185 {
16186 .vendor = "Sanyo",
16187 .name = "LE25FW403A",
16188 .bustype = BUS_SPI,
16189 .manufacture_id = SANYO_ID,
16190 .model_id = SANYO_LE25FW403A,
16191 .total_size = 512,
16192 .page_size = 256,
16193 .tested = TEST_UNTESTED,
16194 .probe = probe_spi_rdid,
16195 .probe_timing = TIMING_ZERO,
16196 .block_erasers =
16197 {
16198 {
16199 .eraseblocks = { {256, 2 * 1024} },
16200 .block_erase = spi_block_erase_db,
16201 }, {
16202 .eraseblocks = { {64 * 1024, 8} },
16203 .block_erase = spi_block_erase_d8,
16204 }, {
16205 .eraseblocks = { {512 * 1024, 1} },
16206 .block_erase = spi_block_erase_c7,
16207 }
16208 },
16209 .printlock = spi_prettyprint_status_register_default_welwip,
16210 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
16211 .write = spi_chip_write_256,
16212 .read = spi_chip_read,
16213 .voltage = {2700, 3600},
16214 },
16215
16216 {
16217 .vendor = "Sanyo",
16218 .name = "LE25FW406A",
16219 .bustype = BUS_SPI,
16220 .manufacture_id = SANYO_ID,
16221 .model_id = SANYO_LE25FW406A,
16222 .total_size = 512,
16223 .page_size = 256,
16224 .feature_bits = FEATURE_WRSR_WREN,
16225 .tested = TEST_OK_PREW,
16226 .probe = probe_spi_res2,
16227 .probe_timing = TIMING_ZERO,
16228 .block_erasers =
16229 {
16230 {
16231 .eraseblocks = { {4 * 1024, 128} },
16232 .block_erase = spi_block_erase_d7,
16233 }, {
16234 .eraseblocks = { {64 * 1024, 8} },
16235 .block_erase = spi_block_erase_d8,
16236 }, {
16237 .eraseblocks = { {512 * 1024, 1} },
16238 .block_erase = spi_block_erase_c7,
16239 }
16240 },
16241 .printlock = spi_prettyprint_status_register_plain,
16242 .unlock = spi_disable_blockprotect,
16243 .write = spi_chip_write_256,
16244 .read = spi_chip_read,
16245 .voltage = {2700, 3600},
16246 },
16247
16248 {
16249 .vendor = "Sanyo",
16250 .name = "LE25FW418A",
16251 .bustype = BUS_SPI,
16252 .manufacture_id = SANYO_ID,
16253 .model_id = SANYO_LE25FW418A,
16254 .total_size = 512,
16255 .page_size = 256,
16256 .feature_bits = FEATURE_WRSR_WREN,
16257 .tested = TEST_UNTESTED,
16258 .probe = probe_spi_res2,
16259 .probe_timing = TIMING_ZERO,
16260 .block_erasers =
16261 {
16262 {
16263 .eraseblocks = { {4 * 1024, 128} },
16264 .block_erase = spi_block_erase_d7,
16265 }, {
16266 .eraseblocks = { {64 * 1024, 8} },
16267 .block_erase = spi_block_erase_d8,
16268 }, {
16269 .eraseblocks = { {512 * 1024, 1} },
16270 .block_erase = spi_block_erase_c7,
16271 }
16272 },
16273 .printlock = spi_prettyprint_status_register_bp2_srwd,
16274 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
16275 .write = spi_chip_write_256,
16276 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
16277 .voltage = {2700, 3600},
16278 },
16279
16280 {
16281 .vendor = "Sanyo",
16282 .name = "LE25FW806",
16283 .bustype = BUS_SPI,
16284 .manufacture_id = SANYO_ID,
16285 .model_id = SANYO_LE25FW806,
16286 .total_size = 1024,
16287 .page_size = 256,
16288 .feature_bits = FEATURE_WRSR_WREN,
16289 .tested = TEST_UNTESTED,
16290 .probe = probe_spi_res2,
16291 .probe_timing = TIMING_ZERO,
16292 .block_erasers =
16293 {
16294 {
16295 .eraseblocks = { {4 * 1024, 256} },
16296 .block_erase = spi_block_erase_20,
16297 }, {
16298 .eraseblocks = { {4 * 1024, 256} },
16299 .block_erase = spi_block_erase_d7,
16300 }, {
16301 .eraseblocks = { {64 * 1024, 16} },
16302 .block_erase = spi_block_erase_d8,
16303 }, {
16304 .eraseblocks = { {1024 * 1024, 1} },
16305 .block_erase = spi_block_erase_c7,
16306 }
16307 },
16308 .printlock = spi_prettyprint_status_register_bp2_srwd,
16309 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
16310 .write = spi_chip_write_256,
16311 .read = spi_chip_read,
16312 .voltage = {2700, 3600},
16313 },
16314
16315 {
16316 .vendor = "Sanyo",
16317 .name = "LE25FW808",
16318 .bustype = BUS_SPI,
16319 .manufacture_id = SANYO_ID,
16320 .model_id = SANYO_LE25FW808,
16321 .total_size = 1024,
16322 .page_size = 256,
16323 .feature_bits = FEATURE_WRSR_WREN,
16324 .tested = TEST_UNTESTED,
16325 .probe = probe_spi_res2,
16326 .probe_timing = TIMING_ZERO,
16327 .block_erasers =
16328 {
16329 {
16330 .eraseblocks = { {8 * 1024, 128} },
16331 .block_erase = spi_block_erase_d7,
16332 }, {
16333 .eraseblocks = { {64 * 1024, 16} },
16334 .block_erase = spi_block_erase_d8,
16335 }, {
16336 .eraseblocks = { {1024 * 1024, 1} },
16337 .block_erase = spi_block_erase_c7,
16338 }
16339 },
16340 .printlock = spi_prettyprint_status_register_bp2_srwd,
16341 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
16342 .write = spi_chip_write_256,
16343 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
16344 .voltage = {2700, 3600},
16345 },
16346
16347 {
16348 .vendor = "Sharp",
16349 .name = "LH28F008BJT-BTLZ1",
16350 .bustype = BUS_PARALLEL,
16351 .manufacture_id = SHARP_ID,
16352 .model_id = SHARP_LH28F008BJ__PB,
16353 .total_size = 1024,
16354 .page_size = 64 * 1024,
16355 .tested = TEST_OK_PREW,
16356 .probe = probe_82802ab,
16357 .probe_timing = TIMING_ZERO,
16358 .block_erasers =
16359 {
16360 {
16361 .eraseblocks = {
16362 {8 * 1024, 8},
16363 {64 * 1024, 15}
16364 },
16365 .block_erase = erase_block_82802ab,
16366 }, {
16367 .eraseblocks = { {1024 * 1024, 1} },
16368 .block_erase = erase_sector_49lfxxxc,
16369 }
16370 },
16371 .unlock = unlock_lh28f008bjt,
16372 .write = write_82802ab,
16373 .read = read_memmapped,
16374 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010016375 .prepare_access = prepare_memory_access,
16376 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016377 },
16378
16379 {
16380 .vendor = "Sharp",
16381 .name = "LHF00L04",
16382 .bustype = BUS_FWH, /* A/A Mux */
16383 .manufacture_id = SHARP_ID,
16384 .model_id = SHARP_LHF00L04,
16385 .total_size = 1024,
16386 .page_size = 64 * 1024,
Nico Huberb1974022023-01-12 13:13:12 +010016387 .feature_bits = FEATURE_EITHER_RESET,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016388 .tested = TEST_UNTESTED,
16389 .probe = probe_82802ab,
16390 .probe_timing = TIMING_ZERO,
16391 .block_erasers =
16392 {
16393 {
16394 .eraseblocks = {
16395 {64 * 1024, 15},
16396 {8 * 1024, 8}
16397 },
16398 .block_erase = erase_block_82802ab,
16399 }, {
16400 .eraseblocks = {
16401 {1024 * 1024, 1}
16402 },
16403 .block_erase = NULL, /* 30 D0, only in A/A mux mode */
16404 },
16405 },
16406 .unlock = unlock_regspace2_uniform_64k,
16407 .write = write_82802ab,
16408 .read = read_memmapped,
16409 .voltage = {3000, 3600},
Nico Huberb1974022023-01-12 13:13:12 +010016410 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010016411 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016412 },
16413
16414 {
16415 .vendor = "Spansion",
16416 .name = "S25FL004A",
16417 .bustype = BUS_SPI,
16418 .manufacture_id = SPANSION_ID,
16419 .model_id = SPANSION_S25FL004A,
16420 .total_size = 512,
16421 .page_size = 256,
16422 .feature_bits = FEATURE_WRSR_WREN,
16423 .tested = TEST_UNTESTED,
16424 .probe = probe_spi_rdid,
16425 .probe_timing = TIMING_ZERO,
16426 .block_erasers =
16427 {
16428 {
16429 .eraseblocks = { {64 * 1024, 8} },
16430 .block_erase = spi_block_erase_d8,
16431 }, {
16432 .eraseblocks = { {512 * 1024, 1} },
16433 .block_erase = spi_block_erase_c7,
16434 }
16435 },
16436 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16437 .unlock = spi_disable_blockprotect,
16438 .write = spi_chip_write_256,
16439 .read = spi_chip_read,
16440 .voltage = {2700, 3600},
16441 },
16442
16443 {
16444 .vendor = "Spansion",
16445 .name = "S25FL008A",
16446 .bustype = BUS_SPI,
16447 .manufacture_id = SPANSION_ID,
16448 .model_id = SPANSION_S25FL008A,
16449 .total_size = 1024,
16450 .page_size = 256,
16451 .feature_bits = FEATURE_WRSR_WREN,
16452 .tested = TEST_OK_PRE,
16453 .probe = probe_spi_rdid,
16454 .probe_timing = TIMING_ZERO,
16455 .block_erasers =
16456 {
16457 {
16458 .eraseblocks = { {64 * 1024, 16} },
16459 .block_erase = spi_block_erase_d8,
16460 }, {
16461 .eraseblocks = { {1024 * 1024, 1} },
16462 .block_erase = spi_block_erase_c7,
16463 }
16464 },
16465 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16466 .unlock = spi_disable_blockprotect,
16467 .write = spi_chip_write_256,
16468 .read = spi_chip_read,
16469 .voltage = {2700, 3600},
16470 },
16471
16472 {
16473 .vendor = "Spansion",
16474 .name = "S25FL016A",
16475 .bustype = BUS_SPI,
16476 .manufacture_id = SPANSION_ID,
16477 .model_id = SPANSION_S25FL016A,
16478 .total_size = 2048,
16479 .page_size = 256,
16480 .feature_bits = FEATURE_WRSR_WREN,
16481 .tested = TEST_OK_PREW,
16482 .probe = probe_spi_rdid,
16483 .probe_timing = TIMING_ZERO,
16484 .block_erasers =
16485 {
16486 {
16487 .eraseblocks = { {64 * 1024, 32} },
16488 .block_erase = spi_block_erase_d8,
16489 }, {
16490 .eraseblocks = { {2 * 1024 * 1024, 1} },
16491 .block_erase = spi_block_erase_c7,
16492 }
16493 },
16494 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16495 .unlock = spi_disable_blockprotect,
16496 .write = spi_chip_write_256,
16497 .read = spi_chip_read,
16498 .voltage = {2700, 3600},
16499 },
16500
16501 {
16502 .vendor = "Spansion",
16503 .name = "S25FL032A/P",
16504 .bustype = BUS_SPI,
16505 .manufacture_id = SPANSION_ID,
16506 .model_id = SPANSION_S25FL032A,
16507 .total_size = 4096,
16508 .page_size = 256,
16509 .feature_bits = FEATURE_WRSR_WREN,
16510 .tested = TEST_OK_PREW,
16511 .probe = probe_spi_rdid,
16512 .probe_timing = TIMING_ZERO,
16513 .block_erasers =
16514 {
16515 {
16516 .eraseblocks = { {64 * 1024, 64} },
16517 .block_erase = spi_block_erase_d8,
16518 }, {
16519 .eraseblocks = { {4 * 1024 * 1024, 1} },
16520 .block_erase = spi_block_erase_c7,
16521 }
16522 },
16523 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16524 .unlock = spi_disable_blockprotect,
16525 .write = spi_chip_write_256,
16526 .read = spi_chip_read,
16527 .voltage = {2700, 3600},
16528 },
16529
16530 {
16531 .vendor = "Spansion",
16532 .name = "S25FL064A/P",
16533 .bustype = BUS_SPI,
16534 .manufacture_id = SPANSION_ID,
16535 .model_id = SPANSION_S25FL064A,
16536 .total_size = 8192,
16537 .page_size = 256,
16538 .feature_bits = FEATURE_WRSR_WREN,
16539 .tested = TEST_OK_PREW,
16540 .probe = probe_spi_rdid,
16541 .probe_timing = TIMING_ZERO,
16542 .block_erasers =
16543 {
16544 {
16545 .eraseblocks = { {64 * 1024, 128} },
16546 .block_erase = spi_block_erase_d8,
16547 }, {
16548 .eraseblocks = { {8 * 1024 * 1024, 1} },
16549 .block_erase = spi_block_erase_c7,
16550 }
16551 },
16552 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16553 .unlock = spi_disable_blockprotect,
16554 .write = spi_chip_write_256,
16555 .read = spi_chip_read,
16556 .voltage = {2700, 3600},
16557 },
16558
16559 {
16560 .vendor = "Spansion",
16561 .name = "S25FL116K/S25FL216K", /* FIXME: separate them */
16562 .bustype = BUS_SPI,
16563 .manufacture_id = SPANSION_ID,
16564 .model_id = SPANSION_S25FL216,
16565 .total_size = 2048,
16566 .page_size = 256,
16567 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (S25FL116K only) */
16568 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16569 .tested = TEST_UNTESTED,
16570 .probe = probe_spi_rdid,
16571 .probe_timing = TIMING_ZERO,
16572 .block_erasers =
16573 {
16574 {
16575 .eraseblocks = { {4 * 1024, 512} },
16576 .block_erase = spi_block_erase_20,
16577 }, {
16578 .eraseblocks = { {64 * 1024, 32} },
16579 .block_erase = spi_block_erase_d8,
16580 }, {
16581 .eraseblocks = { { 2048 * 1024, 1} },
16582 .block_erase = spi_block_erase_60,
16583 }, {
16584 .eraseblocks = { { 2048 * 1024, 1} },
16585 .block_erase = spi_block_erase_c7,
16586 }
16587 },
16588 .printlock = spi_prettyprint_status_register_bp3_srwd,
16589 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
16590 .write = spi_chip_write_256,
16591 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
16592 .voltage = {2700, 3600},
16593 },
16594
16595 {
16596 .vendor = "Spansion",
16597 .name = "S25FL127S-256kB", /* uniform 256kB sectors */
16598 .bustype = BUS_SPI,
16599 .manufacture_id = SPANSION_ID,
16600 .model_id = SPANSION_S25FL128,
16601 .total_size = 16384,
16602 .page_size = 512,
16603 /* supports 4B addressing */
16604 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
16605 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16606 .tested = TEST_UNTESTED,
16607 .probe = probe_spi_rdid,
16608 .probe_timing = TIMING_ZERO,
16609 .block_erasers =
16610 {
16611 {
16612 .eraseblocks = { {256 * 1024, 64} },
16613 .block_erase = spi_block_erase_d8,
16614 }, {
16615 .eraseblocks = { { 16384 * 1024, 1} },
16616 .block_erase = spi_block_erase_60,
16617 }, {
16618 .eraseblocks = { { 16384 * 1024, 1} },
16619 .block_erase = spi_block_erase_c7,
16620 }
16621 },
16622 .printlock = spi_prettyprint_status_register_bp2_srwd,
16623 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
16624 .write = spi_chip_write_256, /* Multi I/O supported */
16625 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16626 .voltage = {2700, 3600},
16627 },
16628
16629 {
16630 .vendor = "Spansion",
16631 .name = "S25FL127S-64kB", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
16632 .bustype = BUS_SPI,
16633 .manufacture_id = SPANSION_ID,
16634 .model_id = SPANSION_S25FL128,
16635 .total_size = 16384,
16636 .page_size = 256,
16637 /* supports 4B addressing */
16638 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
16639 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16640 .tested = TEST_OK_PREW,
16641 /* FIXME: we should distinguish the configuration on probing time like we do for AT45DB chips */
16642 .probe = probe_spi_rdid,
16643 .probe_timing = TIMING_ZERO,
16644 .block_erasers =
16645 {
16646 {
16647 /* This chip supports erasing of 32 so-called "parameter sectors" with
16648 * opcode 0x20 which may be configured to be on top or bottom of the address
16649 * space. Trying to access an address outside these 4kB blocks does have no
16650 * effect on the memory contents, e.g.
16651 .eraseblocks = {
16652 {4 * 1024, 32},
16653 {64 * 1024, 254} // inaccessible
16654 },
16655 .block_erase = spi_block_erase_20,
16656 }, { */
16657 .eraseblocks = { { 64 * 1024, 256} },
16658 .block_erase = spi_block_erase_d8,
16659 }, {
16660 .eraseblocks = { { 16384 * 1024, 1} },
16661 .block_erase = spi_block_erase_60,
16662 }, {
16663 .eraseblocks = { { 16384 * 1024, 1} },
16664 .block_erase = spi_block_erase_c7,
16665 }
16666 },
16667 .printlock = spi_prettyprint_status_register_bp2_srwd,
16668 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
16669 .write = spi_chip_write_256, /* Multi I/O supported */
16670 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16671 .voltage = {2700, 3600},
16672 },
16673
16674 {
16675 .vendor = "Spansion",
Nico Huberfffc48d2022-05-28 14:26:06 +020016676 .name = "S25FL128L",
16677 .bustype = BUS_SPI,
16678 .manufacture_id = SPANSION_ID,
16679 .model_id = SPANSION_S25FL128L,
16680 .total_size = 16384,
16681 .page_size = 256,
16682 /* 4 x 256B Security Region (OTP) */
16683 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT3 | FEATURE_OTP,
16684 .tested = TEST_UNTESTED,
16685 .probe = probe_spi_rdid,
16686 .probe_timing = TIMING_ZERO,
16687 .block_erasers =
16688 {
16689 {
16690 .eraseblocks = { {4 * 1024, 4096} },
16691 .block_erase = spi_block_erase_20,
16692 }, {
16693 .eraseblocks = { {32 * 1024, 512} },
16694 .block_erase = spi_block_erase_52,
16695 }, {
16696 .eraseblocks = { {64 * 1024, 256} },
16697 .block_erase = spi_block_erase_d8,
16698 }, {
16699 .eraseblocks = { {16384 * 1024, 1} },
16700 .block_erase = spi_block_erase_60,
16701 }, {
16702 .eraseblocks = { {16384 * 1024, 1} },
16703 .block_erase = spi_block_erase_c7,
16704 }
16705 },
16706 .printlock = spi_prettyprint_status_register_bp2_srwd,
16707 .unlock = spi_disable_blockprotect_bp2_srwd,
16708 .write = spi_chip_write_256,
16709 .read = spi_chip_read, /* Fast read (0x0B) supported */
16710 .voltage = {2700, 3600},
16711 .reg_bits =
16712 {
16713 /*
16714 * Note: This chip has a read-only Status Register 2 that is not
16715 * counted here. Registers are mapped as follows:
16716 * STATUS1 ... Status Register 1
16717 * STATUS2 ... Configuration Register 1
16718 * STATUS3 ... Configuration Register 2
16719 */
16720 .srp = {STATUS1, 7, RW},
16721 .srl = {STATUS2, 0, RW},
16722 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
16723 .tb = {STATUS1, 5, RW},
16724 .sec = {STATUS1, 6, RW},
16725 .cmp = {STATUS2, 6, RW},
16726 .wps = {STATUS3, 2, RW},
16727 },
16728 .decode_range = decode_range_spi25,
16729 },
16730
16731 {
16732 .vendor = "Spansion",
Alan Green1f9cc7d2019-07-01 11:10:45 +100016733 .name = "S25FL128P......0", /* uniform 64 kB sectors */
16734 .bustype = BUS_SPI,
16735 .manufacture_id = SPANSION_ID,
16736 .model_id = SPANSION_S25FL128,
16737 .total_size = 16384,
16738 .page_size = 256,
16739 .feature_bits = FEATURE_WRSR_WREN,
16740 .tested = TEST_OK_PREW,
16741 .probe = probe_spi_rdid,
16742 .probe_timing = TIMING_ZERO,
16743 .block_erasers =
16744 {
16745 {
16746 .eraseblocks = { {64 * 1024, 256} },
16747 .block_erase = spi_block_erase_20,
16748 }, {
16749 .eraseblocks = { {64 * 1024, 256} },
16750 .block_erase = spi_block_erase_d8,
16751 }, {
16752 .eraseblocks = { { 16384 * 1024, 1} },
16753 .block_erase = spi_block_erase_60,
16754 }, {
16755 .eraseblocks = { { 16384 * 1024, 1} },
16756 .block_erase = spi_block_erase_c7,
16757 }
16758 },
16759 .printlock = spi_prettyprint_status_register_bp3_srwd,
16760 .unlock = spi_disable_blockprotect_bp3_srwd,
16761 .write = spi_chip_write_256,
16762 .read = spi_chip_read, /* Fast read (0x0B) supported */
16763 .voltage = {2700, 3600},
16764 },
16765
16766 {
16767 .vendor = "Spansion",
16768 .name = "S25FL128P......1", /* uniform 256kB sectors */
16769 .bustype = BUS_SPI,
16770 .manufacture_id = SPANSION_ID,
16771 .model_id = SPANSION_S25FL128,
16772 .total_size = 16384,
16773 .page_size = 256,
16774 .feature_bits = FEATURE_WRSR_WREN,
16775 .tested = TEST_UNTESTED,
16776 .probe = probe_spi_rdid,
16777 .probe_timing = TIMING_ZERO,
16778 .block_erasers =
16779 {
16780 {
16781 .eraseblocks = { {256 * 1024, 64} },
16782 .block_erase = spi_block_erase_d8,
16783 }, {
16784 .eraseblocks = { { 16384 * 1024, 1} },
16785 .block_erase = spi_block_erase_c7,
16786 }
16787 },
16788 .printlock = spi_prettyprint_status_register_bp2_srwd,
16789 .unlock = spi_disable_blockprotect_bp2_srwd,
16790 .write = spi_chip_write_256,
16791 .read = spi_chip_read, /* Fast read (0x0B) supported */
16792 .voltage = {2700, 3600},
16793 },
16794
16795 {
16796 .vendor = "Spansion",
16797 .name = "S25FL128S......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
16798 .bustype = BUS_SPI,
16799 .manufacture_id = SPANSION_ID,
16800 .model_id = SPANSION_S25FL128,
16801 .total_size = 16384,
16802 .page_size = 256,
16803 /* supports 4B addressing */
16804 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
16805 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16806 .tested = TEST_OK_PREW,
16807 .probe = probe_spi_rdid,
16808 .probe_timing = TIMING_ZERO,
16809 .block_erasers =
16810 {
16811 {
16812 /* This chip supports erasing of the 32 so-called "parameter sectors" with
16813 * opcode 0x20. Trying to access an address outside these 4kB blocks does
16814 * have no effect on the memory contents, but sets a flag in the SR.
16815 .eraseblocks = {
16816 {4 * 1024, 32},
16817 {64 * 1024, 254} // inaccessible
16818 },
16819 .block_erase = spi_block_erase_20,
16820 }, { */
16821 .eraseblocks = { { 64 * 1024, 256} },
16822 .block_erase = spi_block_erase_d8,
16823 }, {
16824 .eraseblocks = { { 16384 * 1024, 1} },
16825 .block_erase = spi_block_erase_60,
16826 }, {
16827 .eraseblocks = { { 16384 * 1024, 1} },
16828 .block_erase = spi_block_erase_c7,
16829 }
16830 },
16831 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
16832 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
16833 .write = spi_chip_write_256, /* Multi I/O supported */
16834 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16835 .voltage = {2700, 3600},
16836 },
16837
16838 {
16839 .vendor = "Spansion",
16840 .name = "S25FL128S......1", /* uniform 256 kB sectors */
16841 .bustype = BUS_SPI,
16842 .manufacture_id = SPANSION_ID,
16843 .model_id = SPANSION_S25FL128,
16844 .total_size = 16384,
16845 .page_size = 512,
16846 /* supports 4B addressing */
16847 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
16848 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16849 .tested = TEST_UNTESTED,
16850 .probe = probe_spi_rdid,
16851 .probe_timing = TIMING_ZERO,
16852 .block_erasers =
16853 {
16854 {
16855 .eraseblocks = { {256 * 1024, 64} },
16856 .block_erase = spi_block_erase_d8,
16857 }, {
16858 .eraseblocks = { { 16384 * 1024, 1} },
16859 .block_erase = spi_block_erase_60,
16860 }, {
16861 .eraseblocks = { { 16384 * 1024, 1} },
16862 .block_erase = spi_block_erase_c7,
16863 }
16864 },
16865 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
16866 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
16867 .write = spi_chip_write_256, /* Multi I/O supported */
16868 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16869 .voltage = {2700, 3600},
16870 },
16871
16872 {
16873 .vendor = "Spansion",
16874 .name = "S25FL129P......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
16875 .bustype = BUS_SPI,
16876 .manufacture_id = SPANSION_ID,
16877 .model_id = SPANSION_S25FL128,
16878 .total_size = 16384,
16879 .page_size = 256,
16880 /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */
16881 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16882 .tested = TEST_OK_PREW,
16883 .probe = probe_spi_rdid,
16884 .probe_timing = TIMING_ZERO,
16885 .block_erasers =
16886 {
16887 {
16888 /* FIXME: This chip supports erasing of the 32 so-called "parameter sectors" with
16889 * opcode 0x20. Trying to access an address outside these 4kB blocks does have no
16890 * effect on the memory contents, but sets a flag in the SR.
16891 .eraseblocks = {
16892 {4 * 1024, 32},
16893 {64 * 1024, 254} // inaccessible
16894 },
16895 .block_erase = spi_block_erase_20,
16896 }, { */
16897 /* FIXME: Additionally it also supports erase opcode 40h for the respective 2*4 kB pairs
16898 .eraseblocks = {
16899 {8 * 1024, 16},
16900 {64 * 1024, 254} // inaccessible
16901 },
16902 .block_erase = spi_block_erase_40,
16903 }, { */
16904 .eraseblocks = { { 64 * 1024, 256} },
16905 .block_erase = spi_block_erase_d8,
16906 }, {
16907 .eraseblocks = { { 16384 * 1024, 1} },
16908 .block_erase = spi_block_erase_60,
16909 }, {
16910 .eraseblocks = { { 16384 * 1024, 1} },
16911 .block_erase = spi_block_erase_c7,
16912 }
16913 },
16914 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */
16915 .unlock = spi_disable_blockprotect_bp2_srwd,
16916 .write = spi_chip_write_256, /* Multi I/O supported */
16917 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16918 .voltage = {2700, 3600},
16919 },
16920
16921 {
16922 .vendor = "Spansion",
16923 .name = "S25FL129P......1", /* uniform 256 kB sectors */
16924 .bustype = BUS_SPI,
16925 .manufacture_id = SPANSION_ID,
16926 .model_id = SPANSION_S25FL128,
16927 .total_size = 16384,
16928 .page_size = 256,
16929 /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */
16930 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16931 .tested = TEST_UNTESTED,
16932 .probe = probe_spi_rdid,
16933 .probe_timing = TIMING_ZERO,
16934 .block_erasers =
16935 {
16936 {
16937 .eraseblocks = { {256 * 1024, 64} },
16938 .block_erase = spi_block_erase_d8,
16939 }, {
16940 .eraseblocks = { { 16384 * 1024, 1} },
16941 .block_erase = spi_block_erase_60,
16942 }, {
16943 .eraseblocks = { { 16384 * 1024, 1} },
16944 .block_erase = spi_block_erase_c7,
16945 }
16946 },
16947 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */
16948 .unlock = spi_disable_blockprotect_bp2_srwd,
16949 .write = spi_chip_write_256, /* Multi I/O supported */
16950 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16951 .voltage = {2700, 3600},
16952 },
16953
16954 {
16955 .vendor = "Spansion",
16956 .name = "S25FL132K",
16957 .bustype = BUS_SPI,
16958 .manufacture_id = SPANSION_ID,
16959 .model_id = SPANSION_S25FL132K,
16960 .total_size = 4096,
16961 .page_size = 256,
16962 /* OTP: 768B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
16963 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16964 .tested = TEST_UNTESTED,
16965 .probe = probe_spi_rdid,
16966 .probe_timing = TIMING_ZERO,
16967 .block_erasers =
16968 {
16969 {
16970 .eraseblocks = { {4 * 1024, 1024} },
16971 .block_erase = spi_block_erase_20,
16972 }, {
16973 .eraseblocks = { {64 * 1024, 64} },
16974 .block_erase = spi_block_erase_d8,
16975 }, {
16976 .eraseblocks = { { 4096 * 1024, 1} },
16977 .block_erase = spi_block_erase_60,
16978 }, {
16979 .eraseblocks = { { 4096 * 1024, 1} },
16980 .block_erase = spi_block_erase_c7,
16981 }
16982 },
16983 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
16984 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
16985 .write = spi_chip_write_256,
16986 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16987 .voltage = {2700, 3600},
16988 },
16989
16990 {
16991 .vendor = "Spansion",
16992 .name = "S25FL164K",
16993 .bustype = BUS_SPI,
16994 .manufacture_id = SPANSION_ID,
16995 .model_id = SPANSION_S25FL164K,
16996 .total_size = 8192,
16997 .page_size = 256,
16998 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
16999 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17000 .tested = TEST_OK_PREW,
17001 .probe = probe_spi_rdid,
17002 .probe_timing = TIMING_ZERO,
17003 .block_erasers =
17004 {
17005 {
17006 .eraseblocks = { {4 * 1024, 2048} },
17007 .block_erase = spi_block_erase_20,
17008 }, {
17009 .eraseblocks = { {64 * 1024, 128} },
17010 .block_erase = spi_block_erase_d8,
17011 }, {
17012 .eraseblocks = { { 8192 * 1024, 1} },
17013 .block_erase = spi_block_erase_60,
17014 }, {
17015 .eraseblocks = { { 8192 * 1024, 1} },
17016 .block_erase = spi_block_erase_c7,
17017 }
17018 },
17019 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
17020 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
17021 .write = spi_chip_write_256,
17022 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
17023 .voltage = {2700, 3600},
17024 },
17025
17026 {
17027 .vendor = "Spansion",
17028 .name = "S25FL204K",
17029 .bustype = BUS_SPI,
17030 .manufacture_id = SPANSION_ID,
17031 .model_id = SPANSION_S25FL204,
17032 .total_size = 512,
17033 .page_size = 256,
17034 .feature_bits = FEATURE_WRSR_WREN,
17035 .tested = TEST_OK_PR,
17036 .probe = probe_spi_rdid,
17037 .probe_timing = TIMING_ZERO,
17038 .block_erasers =
17039 {
17040 {
17041 .eraseblocks = { {4 * 1024, 128} },
17042 .block_erase = spi_block_erase_20,
17043 }, {
17044 .eraseblocks = { {64 * 1024, 8} },
17045 .block_erase = spi_block_erase_d8,
17046 }, {
17047 .eraseblocks = { { 512 * 1024, 1} },
17048 .block_erase = spi_block_erase_60,
17049 }, {
17050 .eraseblocks = { { 512 * 1024, 1} },
17051 .block_erase = spi_block_erase_c7,
17052 }
17053 },
17054 .printlock = spi_prettyprint_status_register_bp3_srwd,
17055 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
17056 .write = spi_chip_write_256,
17057 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
17058 .voltage = {2700, 3600},
17059 },
17060
17061 {
17062 .vendor = "Spansion",
17063 .name = "S25FL208K",
17064 .bustype = BUS_SPI,
17065 .manufacture_id = SPANSION_ID,
17066 .model_id = SPANSION_S25FL208,
17067 .total_size = 1024,
17068 .page_size = 256,
17069 .feature_bits = FEATURE_WRSR_WREN,
17070 .tested = TEST_OK_PREW,
17071 .probe = probe_spi_rdid,
17072 .probe_timing = TIMING_ZERO,
17073 .block_erasers =
17074 {
17075 {
17076 .eraseblocks = { {4 * 1024, 256} },
17077 .block_erase = spi_block_erase_20,
17078 }, {
17079 .eraseblocks = { {64 * 1024, 16} },
17080 .block_erase = spi_block_erase_d8,
17081 }, {
17082 .eraseblocks = { { 1024 * 1024, 1} },
17083 .block_erase = spi_block_erase_60,
17084 }, {
17085 .eraseblocks = { { 1024 * 1024, 1} },
17086 .block_erase = spi_block_erase_c7,
17087 }
17088 },
17089 .printlock = spi_prettyprint_status_register_bp3_srwd,
17090 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
17091 .write = spi_chip_write_256,
17092 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
17093 .voltage = {2700, 3600},
17094 },
17095
17096 {
17097 .vendor = "Spansion",
Nico Huberfffc48d2022-05-28 14:26:06 +020017098 .name = "S25FL256L",
17099 .bustype = BUS_SPI,
17100 .manufacture_id = SPANSION_ID,
17101 .model_id = SPANSION_S25FL256L,
17102 .total_size = 32768,
17103 .page_size = 256,
17104 /* 4 x 256B Security Region (OTP) */
17105 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT3 | FEATURE_OTP |
17106 FEATURE_4BA_ENTER | FEATURE_4BA_NATIVE,
17107 .tested = TEST_UNTESTED,
17108 .probe = probe_spi_rdid,
17109 .probe_timing = TIMING_ZERO,
17110 .block_erasers =
17111 {
17112 {
17113 .eraseblocks = { {4 * 1024, 8192} },
17114 .block_erase = spi_block_erase_21,
17115 }, {
17116 .eraseblocks = { {4 * 1024, 8192} },
17117 .block_erase = spi_block_erase_20,
17118 }, {
17119 .eraseblocks = { {32 * 1024, 1024} },
17120 .block_erase = spi_block_erase_53,
17121 }, {
17122 .eraseblocks = { {32 * 1024, 1024} },
17123 .block_erase = spi_block_erase_52,
17124 }, {
17125 .eraseblocks = { {64 * 1024, 512} },
17126 .block_erase = spi_block_erase_dc,
17127 }, {
17128 .eraseblocks = { {64 * 1024, 512} },
17129 .block_erase = spi_block_erase_d8,
17130 }, {
17131 .eraseblocks = { {32768 * 1024, 1} },
17132 .block_erase = spi_block_erase_60,
17133 }, {
17134 .eraseblocks = { {32768 * 1024, 1} },
17135 .block_erase = spi_block_erase_c7,
17136 }
17137 },
17138 .printlock = spi_prettyprint_status_register_bp3_srwd,
17139 .unlock = spi_disable_blockprotect_bp3_srwd,
17140 .write = spi_chip_write_256,
17141 .read = spi_chip_read, /* Fast read (0x0B) supported */
17142 .voltage = {2700, 3600},
17143 .reg_bits =
17144 {
17145 /*
17146 * Note: This chip has a read-only Status Register 2 that is not
17147 * counted here. Registers are mapped as follows:
17148 * STATUS1 ... Status Register 1
17149 * STATUS2 ... Configuration Register 1
17150 * STATUS3 ... Configuration Register 2
17151 */
17152 .srp = {STATUS1, 7, RW},
17153 .srl = {STATUS2, 0, RW},
17154 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}},
17155 .tb = {STATUS1, 6, RW},
17156 .cmp = {STATUS2, 6, RW},
17157 .wps = {STATUS3, 2, RW},
17158 },
17159 .decode_range = decode_range_spi25,
Nico Huberab6b18f2023-01-11 23:38:20 +010017160 .prepare_access = spi_prepare_4ba,
Nico Huberfffc48d2022-05-28 14:26:06 +020017161 },
17162
17163 {
17164 .vendor = "Spansion",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017165 .name = "S25FL256S......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
17166 .bustype = BUS_SPI,
17167 .manufacture_id = SPANSION_ID,
17168 .model_id = SPANSION_S25FL256,
17169 .total_size = 32768,
17170 .page_size = 256,
17171 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
Nico Huber9bb8a322022-05-24 15:07:34 +020017172 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP |
17173 FEATURE_4BA_NATIVE | FEATURE_4BA_ENTER_EAR7 | FEATURE_4BA_EAR_1716,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017174 .tested = TEST_OK_PREW,
17175 .probe = probe_spi_rdid,
17176 .probe_timing = TIMING_ZERO,
17177 .block_erasers =
17178 {
17179 {
17180 /* This chip supports erasing of the 32 so-called "parameter sectors" with
17181 * opcode 0x20. Trying to access an address outside these 4kB blocks does
17182 * have no effect on the memory contents, but sets a flag in the SR.
17183 .eraseblocks = {
17184 {4 * 1024, 32},
17185 {64 * 1024, 254} // inaccessible
17186 },
17187 .block_erase = spi_block_erase_20,
17188 }, { */
17189 .eraseblocks = { { 64 * 1024, 512} },
17190 .block_erase = spi_block_erase_dc,
17191 }, {
17192 .eraseblocks = { { 64 * 1024, 512} },
17193 .block_erase = spi_block_erase_d8,
17194 }, {
17195 .eraseblocks = { { 32768 * 1024, 1} },
17196 .block_erase = spi_block_erase_60,
17197 }, {
17198 .eraseblocks = { { 32768 * 1024, 1} },
17199 .block_erase = spi_block_erase_c7,
17200 }
17201 },
17202 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
17203 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
17204 .write = spi_chip_write_256, /* Multi I/O supported */
17205 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
17206 .voltage = {2700, 3600},
Nico Huberab6b18f2023-01-11 23:38:20 +010017207 .prepare_access = spi_prepare_4ba,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017208 },
17209
17210 {
Bernhard Urban-Forster05c629b2020-02-02 21:29:48 +010017211 .vendor = "Spansion",
17212 .name = "S25FL512S",
17213 .bustype = BUS_SPI,
17214 .manufacture_id = SPANSION_ID,
17215 .model_id = SPANSION_S25FL512,
17216 .total_size = 65536, /* 512 Mb (=> 64 MB)) */
17217 .page_size = 256,
17218 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
Nico Huber26237922022-06-20 19:37:37 +020017219 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP |
17220 FEATURE_4BA_NATIVE | FEATURE_4BA_ENTER_EAR7 | FEATURE_4BA_EAR_1716,
17221 .tested = TEST_UNTESTED,
Bernhard Urban-Forster05c629b2020-02-02 21:29:48 +010017222 .probe = probe_spi_rdid,
17223 .probe_timing = TIMING_ZERO,
17224 .block_erasers =
17225 {
17226 {
17227 .eraseblocks = { { 256 * 1024, 256} },
17228 .block_erase = spi_block_erase_dc,
17229 }, {
Nico Huberbb608ff2022-05-24 15:33:26 +020017230 .eraseblocks = { { 256 * 1024, 256} },
17231 .block_erase = spi_block_erase_d8,
17232 }, {
Bernhard Urban-Forster05c629b2020-02-02 21:29:48 +010017233 .eraseblocks = { { 65536 * 1024, 1} },
17234 .block_erase = spi_block_erase_60,
17235 }, {
17236 .eraseblocks = { { 65536 * 1024, 1} },
17237 .block_erase = spi_block_erase_c7,
17238 }
17239 },
17240 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
17241 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
17242 .write = spi_chip_write_256, /* Multi I/O supported, IGNORE for now */
17243 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
17244 .voltage = {2700, 3600},
Nico Huberab6b18f2023-01-11 23:38:20 +010017245 .prepare_access = spi_prepare_4ba,
Bernhard Urban-Forster05c629b2020-02-02 21:29:48 +010017246 },
17247
17248 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000017249 .vendor = "SyncMOS/MoselVitelic",
17250 .name = "{F,S,V}29C51001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017251 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017252 .manufacture_id = SYNCMOS_MVC_ID,
17253 .model_id = SM_MVC_29C51001B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017254 .total_size = 128,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017255 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000017256 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017257 .tested = TEST_UNTESTED,
17258 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000017259 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000017260 .block_erasers =
17261 {
17262 {
17263 .eraseblocks = { {512, 256} },
17264 .block_erase = erase_sector_jedec,
17265 }, {
17266 .eraseblocks = { {128 * 1024, 1} },
17267 .block_erase = erase_chip_block_jedec,
17268 },
17269 },
Sean Nelson35727f72010-01-28 23:55:12 +000017270 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017271 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017272 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010017273 .prepare_access = prepare_memory_access,
17274 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000017275 },
17276
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017277 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000017278 .vendor = "SyncMOS/MoselVitelic",
17279 .name = "{F,S,V}29C51001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017280 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017281 .manufacture_id = SYNCMOS_MVC_ID,
17282 .model_id = SM_MVC_29C51001T,
17283 .total_size = 128,
17284 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000017285 .feature_bits = FEATURE_EITHER_RESET,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017286 .tested = TEST_UNTESTED,
17287 .probe = probe_jedec,
17288 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
17289 .block_erasers =
17290 {
17291 {
17292 .eraseblocks = { {512, 256} },
17293 .block_erase = erase_sector_jedec,
17294 }, {
17295 .eraseblocks = { {128 * 1024, 1} },
17296 .block_erase = erase_chip_block_jedec,
17297 },
17298 },
17299 .write = write_jedec_1,
17300 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017301 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010017302 .prepare_access = prepare_memory_access,
17303 .finish_access = finish_memory_access,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017304 },
17305
17306 {
17307 .vendor = "SyncMOS/MoselVitelic",
17308 .name = "{F,S,V}29C51002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017309 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017310 .manufacture_id = SYNCMOS_MVC_ID,
17311 .model_id = SM_MVC_29C51002B,
17312 .total_size = 256,
17313 .page_size = 512,
17314 .feature_bits = FEATURE_EITHER_RESET,
17315 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017316 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000017317 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000017318 .block_erasers =
17319 {
17320 {
17321 .eraseblocks = { {512, 512} },
17322 .block_erase = erase_sector_jedec,
17323 }, {
17324 .eraseblocks = { {256 * 1024, 1} },
17325 .block_erase = erase_chip_block_jedec,
17326 },
17327 },
Sean Nelson35727f72010-01-28 23:55:12 +000017328 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017329 .read = read_memmapped,
Nico Huber9eec4072023-01-12 01:17:30 +010017330 .prepare_access = prepare_memory_access,
17331 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000017332 },
17333
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017334 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000017335 .vendor = "SyncMOS/MoselVitelic",
17336 .name = "{F,S,V}29C51002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017337 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017338 .manufacture_id = SYNCMOS_MVC_ID,
17339 .model_id = SM_MVC_29C51002T,
17340 .total_size = 256,
17341 .page_size = 512,
17342 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000017343 .tested = TEST_OK_PREW,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017344 .probe = probe_jedec,
17345 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
17346 .block_erasers =
17347 {
17348 {
17349 .eraseblocks = { {512, 512} },
17350 .block_erase = erase_sector_jedec,
17351 }, {
17352 .eraseblocks = { {256 * 1024, 1} },
17353 .block_erase = erase_chip_block_jedec,
17354 },
17355 },
17356 .write = write_jedec_1,
17357 .read = read_memmapped,
Nico Huber9eec4072023-01-12 01:17:30 +010017358 .prepare_access = prepare_memory_access,
17359 .finish_access = finish_memory_access,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017360 },
17361
17362 {
17363 .vendor = "SyncMOS/MoselVitelic",
17364 .name = "{F,S,V}29C51004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017365 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017366 .manufacture_id = SYNCMOS_MVC_ID,
17367 .model_id = SM_MVC_29C51004B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017368 .total_size = 512,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017369 .page_size = 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000017370 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017371 .tested = TEST_UNTESTED,
17372 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000017373 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +000017374 .block_erasers =
17375 {
17376 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000017377 .eraseblocks = { {1024, 512} },
17378 .block_erase = erase_sector_jedec,
17379 }, {
17380 .eraseblocks = { {512 * 1024, 1} },
17381 .block_erase = erase_chip_block_jedec,
17382 },
17383 },
17384 .write = write_jedec_1,
17385 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017386 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010017387 .prepare_access = prepare_memory_access,
17388 .finish_access = finish_memory_access,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017389 },
17390
17391 {
17392 .vendor = "SyncMOS/MoselVitelic",
17393 .name = "{F,S,V}29C51004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017394 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017395 .manufacture_id = SYNCMOS_MVC_ID,
17396 .model_id = SM_MVC_29C51004T,
17397 .total_size = 512,
17398 .page_size = 1024,
17399 .feature_bits = FEATURE_EITHER_RESET,
17400 .tested = TEST_UNTESTED,
17401 .probe = probe_jedec,
17402 .probe_timing = TIMING_ZERO,
17403 .block_erasers =
17404 {
17405 {
17406 .eraseblocks = { {1024, 512} },
17407 .block_erase = erase_sector_jedec,
17408 }, {
17409 .eraseblocks = { {512 * 1024, 1} },
17410 .block_erase = erase_chip_block_jedec,
17411 },
17412 },
17413 .write = write_jedec_1,
17414 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017415 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010017416 .prepare_access = prepare_memory_access,
17417 .finish_access = finish_memory_access,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017418 },
17419
17420 {
17421 .vendor = "SyncMOS/MoselVitelic",
17422 .name = "{S,V}29C31004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017423 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017424 .manufacture_id = SYNCMOS_MVC_ID,
17425 .model_id = SM_MVC_29C31004B,
17426 .total_size = 512,
17427 .page_size = 1024,
17428 .feature_bits = FEATURE_EITHER_RESET,
17429 .tested = TEST_UNTESTED,
17430 .probe = probe_jedec,
17431 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
17432 .block_erasers =
17433 {
17434 {
17435 .eraseblocks = { {1024, 512} },
17436 .block_erase = erase_sector_jedec,
17437 }, {
17438 .eraseblocks = { {512 * 1024, 1} },
17439 .block_erase = erase_chip_block_jedec,
17440 },
17441 },
17442 .write = write_jedec_1,
17443 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017444 .voltage = {3000, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010017445 .prepare_access = prepare_memory_access,
17446 .finish_access = finish_memory_access,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017447 },
17448
17449 {
17450 .vendor = "SyncMOS/MoselVitelic",
17451 .name = "{S,V}29C31004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017452 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017453 .manufacture_id = SYNCMOS_MVC_ID,
17454 .model_id = SM_MVC_29C31004T,
17455 .total_size = 512,
17456 .page_size = 1024,
17457 .feature_bits = FEATURE_EITHER_RESET,
17458 .tested = TEST_UNTESTED,
17459 .probe = probe_jedec,
17460 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
17461 .block_erasers =
17462 {
17463 {
17464 .eraseblocks = { {1024, 512} },
Sean Nelson56358aa2010-01-19 16:08:51 +000017465 .block_erase = erase_sector_jedec,
17466 }, {
17467 .eraseblocks = { {512 * 1024, 1} },
17468 .block_erase = erase_chip_block_jedec,
17469 },
17470 },
Sean Nelson35727f72010-01-28 23:55:12 +000017471 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017472 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017473 .voltage = {3000, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010017474 .prepare_access = prepare_memory_access,
17475 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000017476 },
17477
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017478 {
Uwe Hermanna106d152009-05-27 23:17:40 +000017479 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017480 .name = "TMS29F002RB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017481 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017482 .manufacture_id = TI_OLD_ID,
17483 .model_id = TI_TMS29F002RB,
17484 .total_size = 256,
17485 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000017486 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017487 .tested = TEST_UNTESTED,
17488 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000017489 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000017490 .block_erasers =
17491 {
17492 {
17493 .eraseblocks = {
17494 {16 * 1024, 1},
17495 {8 * 1024, 2},
17496 {32 * 1024, 1},
17497 {64 * 1024, 3},
17498 },
17499 .block_erase = erase_sector_jedec,
17500 }, {
17501 .eraseblocks = { {256 * 1024, 1} },
17502 .block_erase = erase_chip_block_jedec,
17503 },
17504 },
Sean Nelson35727f72010-01-28 23:55:12 +000017505 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017506 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017507 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010017508 .prepare_access = prepare_memory_access,
17509 .finish_access = finish_memory_access,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017510 },
17511
17512 {
Uwe Hermanna106d152009-05-27 23:17:40 +000017513 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017514 .name = "TMS29F002RT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017515 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017516 .manufacture_id = TI_OLD_ID,
17517 .model_id = TI_TMS29F002RT,
17518 .total_size = 256,
17519 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000017520 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017521 .tested = TEST_UNTESTED,
17522 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000017523 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000017524 .block_erasers =
17525 {
17526 {
17527 .eraseblocks = {
17528 {64 * 1024, 3},
17529 {32 * 1024, 1},
17530 {8 * 1024, 2},
17531 {16 * 1024, 1},
17532 },
17533 .block_erase = erase_sector_jedec,
17534 }, {
17535 .eraseblocks = { {256 * 1024, 1} },
17536 .block_erase = erase_chip_block_jedec,
17537 },
17538 },
Sean Nelson35727f72010-01-28 23:55:12 +000017539 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017540 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017541 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010017542 .prepare_access = prepare_memory_access,
17543 .finish_access = finish_memory_access,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017544 },
17545
17546 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017547 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017548 .name = "W25P16",
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000017549 .bustype = BUS_SPI,
17550 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017551 .model_id = WINBOND_NEX_W25P16,
17552 .total_size = 2048,
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000017553 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017554 .feature_bits = FEATURE_WRSR_WREN,
17555 .tested = TEST_UNTESTED,
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000017556 .probe = probe_spi_rdid,
17557 .probe_timing = TIMING_ZERO,
17558 .block_erasers =
17559 {
17560 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017561 .eraseblocks = { {64 * 1024, 32} },
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000017562 .block_erase = spi_block_erase_d8,
17563 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017564 .eraseblocks = { {2048 * 1024, 1} },
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000017565 .block_erase = spi_block_erase_c7,
17566 }
17567 },
17568 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17569 .unlock = spi_disable_blockprotect,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017570 .write = spi_chip_write_256,
17571 .read = spi_chip_read, /* Fast read (0x0B) supported */
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000017572 .voltage = {2700, 3600},
17573 },
17574
17575 {
17576 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017577 .name = "W25P32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017578 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000017579 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017580 .model_id = WINBOND_NEX_W25P32,
17581 .total_size = 4096,
Rudolf Marekce1c7982010-04-20 19:34:31 +000017582 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017583 .feature_bits = FEATURE_WRSR_WREN,
17584 .tested = TEST_UNTESTED,
Rudolf Marekce1c7982010-04-20 19:34:31 +000017585 .probe = probe_spi_rdid,
17586 .probe_timing = TIMING_ZERO,
17587 .block_erasers =
17588 {
17589 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017590 .eraseblocks = { {64 * 1024, 64} },
17591 .block_erase = spi_block_erase_d8,
Rudolf Marekce1c7982010-04-20 19:34:31 +000017592 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017593 .eraseblocks = { {4096 * 1024, 1} },
17594 .block_erase = spi_block_erase_c7,
17595 }
17596 },
17597 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17598 .unlock = spi_disable_blockprotect,
17599 .write = spi_chip_write_256,
17600 .read = spi_chip_read, /* Fast read (0x0B) supported */
17601 .voltage = {2700, 3600},
17602 },
17603
17604 {
17605 .vendor = "Winbond",
17606 .name = "W25P80",
17607 .bustype = BUS_SPI,
17608 .manufacture_id = WINBOND_NEX_ID,
17609 .model_id = WINBOND_NEX_W25P80,
17610 .total_size = 1024,
17611 .page_size = 256,
17612 .feature_bits = FEATURE_WRSR_WREN,
17613 .tested = TEST_UNTESTED,
17614 .probe = probe_spi_rdid,
17615 .probe_timing = TIMING_ZERO,
17616 .block_erasers =
17617 {
17618 {
Rudolf Marekce1c7982010-04-20 19:34:31 +000017619 .eraseblocks = { {64 * 1024, 16} },
17620 .block_erase = spi_block_erase_d8,
17621 }, {
17622 .eraseblocks = { {1024 * 1024, 1} },
Rudolf Marekce1c7982010-04-20 19:34:31 +000017623 .block_erase = spi_block_erase_c7,
17624 }
17625 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000017626 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000017627 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000017628 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017629 .read = spi_chip_read, /* Fast read (0x0B) supported */
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017630 .voltage = {2700, 3600},
David Hendricksc4acec92010-06-24 11:39:57 +000017631 },
17632
17633 {
17634 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017635 .name = "W25Q128.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017636 .bustype = BUS_SPI,
Antony Rheneus0fbba982011-05-26 14:28:51 +000017637 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017638 .model_id = WINBOND_NEX_W25Q128_V,
Antony Rheneus0fbba982011-05-26 14:28:51 +000017639 .total_size = 16384,
17640 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017641 /* supports SFDP */
17642 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber3f3c1f32022-05-28 16:48:26 +020017643 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP |
17644 FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3,
Edward O'Callaghana97e3532022-12-16 15:41:05 +110017645 .tested = TEST_OK_PREWB,
Antony Rheneus0fbba982011-05-26 14:28:51 +000017646 .probe = probe_spi_rdid,
17647 .probe_timing = TIMING_ZERO,
17648 .block_erasers =
17649 {
17650 {
17651 .eraseblocks = { {4 * 1024, 4096} },
17652 .block_erase = spi_block_erase_20,
17653 }, {
17654 .eraseblocks = { {32 * 1024, 512} },
17655 .block_erase = spi_block_erase_52,
17656 }, {
17657 .eraseblocks = { {64 * 1024, 256} },
17658 .block_erase = spi_block_erase_d8,
17659 }, {
17660 .eraseblocks = { {16 * 1024 * 1024, 1} },
17661 .block_erase = spi_block_erase_60,
17662 }, {
17663 .eraseblocks = { {16 * 1024 * 1024, 1} },
17664 .block_erase = spi_block_erase_c7,
17665 }
17666 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000017667 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Antony Rheneus0fbba982011-05-26 14:28:51 +000017668 .unlock = spi_disable_blockprotect,
17669 .write = spi_chip_write_256,
17670 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017671 .voltage = {2700, 3600},
Sergii Dmytrukd1af3072021-11-08 00:00:43 +020017672 /* FIXME: Older versions (e.g. 25Q128BV) use WRSR_EXT and have no WPS. */
17673 .reg_bits =
17674 {
17675 .srp = {STATUS1, 7, RW},
17676 .srl = {STATUS2, 0, RW},
17677 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
17678 .tb = {STATUS1, 5, RW},
17679 .sec = {STATUS1, 6, RW},
17680 .cmp = {STATUS2, 6, RW},
17681 .wps = {STATUS3, 2, RW},
17682 },
17683 .decode_range = decode_range_spi25,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017684 },
17685
17686 {
17687 .vendor = "Winbond",
Patrick Rudolph34323492018-10-04 14:59:40 +020017688 .name = "W25Q128.V..M",
17689 .bustype = BUS_SPI,
17690 .manufacture_id = WINBOND_NEX_ID,
17691 .model_id = WINBOND_NEX_W25Q128_V_M,
17692 .total_size = 16384,
17693 .page_size = 256,
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110017694 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_WRSR2,
Sergii Dmytrukc74eac22022-10-06 18:17:58 +030017695 .tested = TEST_OK_PREWB,
Patrick Rudolph34323492018-10-04 14:59:40 +020017696 .probe = probe_spi_rdid,
17697 .probe_timing = TIMING_ZERO,
17698 .block_erasers =
17699 {
17700 {
17701 .eraseblocks = { {4 * 1024, 4096} },
17702 .block_erase = spi_block_erase_20,
17703 }, {
17704 .eraseblocks = { {32 * 1024, 512} },
17705 .block_erase = spi_block_erase_52,
17706 }, {
17707 .eraseblocks = { {64 * 1024, 256} },
17708 .block_erase = spi_block_erase_d8,
17709 }, {
17710 .eraseblocks = { {16 * 1024 * 1024, 1} },
17711 .block_erase = spi_block_erase_60,
17712 }, {
17713 .eraseblocks = { {16 * 1024 * 1024, 1} },
17714 .block_erase = spi_block_erase_c7,
17715 }
17716 },
Alan Greena1fc01d2019-09-23 17:12:44 +100017717 .printlock = spi_prettyprint_status_register_plain,
Patrick Rudolph34323492018-10-04 14:59:40 +020017718 .unlock = spi_disable_blockprotect,
17719 .write = spi_chip_write_256,
17720 .read = spi_chip_read,
17721 .voltage = {2700, 3600},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110017722 .reg_bits =
17723 {
17724 .srp = {STATUS1, 7, RW},
17725 .srl = {STATUS2, 0, RW},
17726 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
17727 .tb = {STATUS1, 5, RW},
17728 .sec = {STATUS1, 6, RW},
17729 .cmp = {STATUS2, 6, RW},
17730 },
17731 .decode_range = decode_range_spi25,
Patrick Rudolph34323492018-10-04 14:59:40 +020017732 },
17733
17734 {
17735 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017736 .name = "W25Q128.W",
17737 .bustype = BUS_SPI,
17738 .manufacture_id = WINBOND_NEX_ID,
17739 .model_id = WINBOND_NEX_W25Q128_W,
17740 .total_size = 16384,
17741 .page_size = 256,
17742 /* supports SFDP */
17743 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110017744 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_WRSR2,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017745 .tested = TEST_OK_PREW,
17746 .probe = probe_spi_rdid,
17747 .probe_timing = TIMING_ZERO,
17748 .block_erasers =
17749 {
17750 {
17751 .eraseblocks = { {4 * 1024, 4096} },
17752 .block_erase = spi_block_erase_20,
17753 }, {
17754 .eraseblocks = { {32 * 1024, 512} },
17755 .block_erase = spi_block_erase_52,
17756 }, {
17757 .eraseblocks = { {64 * 1024, 256} },
17758 .block_erase = spi_block_erase_d8,
17759 }, {
17760 .eraseblocks = { {16 * 1024 * 1024, 1} },
17761 .block_erase = spi_block_erase_60,
17762 }, {
17763 .eraseblocks = { {16 * 1024 * 1024, 1} },
17764 .block_erase = spi_block_erase_c7,
17765 }
17766 },
17767 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17768 .unlock = spi_disable_blockprotect,
17769 .write = spi_chip_write_256,
17770 .read = spi_chip_read,
17771 .voltage = {1650, 1950},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110017772 .reg_bits =
17773 {
17774 .srp = {STATUS1, 7, RW},
17775 .srl = {STATUS2, 0, RW},
17776 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
17777 .tb = {STATUS1, 5, RW},
17778 .sec = {STATUS1, 6, RW},
17779 .cmp = {STATUS2, 6, RW},
17780 },
17781 .decode_range = decode_range_spi25,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017782 },
17783
17784 {
17785 .vendor = "Winbond",
Peichao Wang1a119492019-11-11 15:26:41 +080017786 .name = "W25Q128.JW.DTR",
17787 .bustype = BUS_SPI,
17788 .manufacture_id = WINBOND_NEX_ID,
17789 .model_id = WINBOND_NEX_W25Q128_DTR,
17790 .total_size = 16384,
17791 .page_size = 256,
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110017792 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_WRSR2,
Peichao Wang1a119492019-11-11 15:26:41 +080017793 .tested = TEST_OK_PREW,
17794 .probe = probe_spi_rdid,
17795 .probe_timing = TIMING_ZERO,
17796 .block_erasers =
17797 {
17798 {
17799 .eraseblocks = { {4 * 1024, 4096} },
17800 .block_erase = spi_block_erase_20,
17801 }, {
17802 .eraseblocks = { {32 * 1024, 512} },
17803 .block_erase = spi_block_erase_52,
17804 }, {
17805 .eraseblocks = { {64 * 1024, 256} },
17806 .block_erase = spi_block_erase_d8,
17807 }, {
17808 .eraseblocks = { {16 * 1024 * 1024, 1} },
17809 .block_erase = spi_block_erase_60,
17810 }, {
17811 .eraseblocks = { {16 * 1024 * 1024, 1} },
17812 .block_erase = spi_block_erase_c7,
17813 }
17814 },
17815 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17816 .unlock = spi_disable_blockprotect,
17817 .write = spi_chip_write_256,
17818 .read = spi_chip_read,
17819 .voltage = {1650, 1950},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110017820 .reg_bits =
17821 {
17822 .srp = {STATUS1, 7, RW},
17823 .srl = {STATUS2, 0, RW},
17824 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
17825 .tb = {STATUS1, 5, RW},
17826 .sec = {STATUS1, 6, RW},
17827 .cmp = {STATUS2, 6, RW},
17828 },
17829 .decode_range = decode_range_spi25,
Peichao Wang1a119492019-11-11 15:26:41 +080017830 },
17831
17832 {
17833 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017834 .name = "W25Q16.V",
17835 .bustype = BUS_SPI,
17836 .manufacture_id = WINBOND_NEX_ID,
17837 .model_id = WINBOND_NEX_W25Q16_V,
17838 .total_size = 2048,
17839 .page_size = 256,
17840 /* supports SFDP */
17841 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17842 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17843 .tested = TEST_OK_PREW,
17844 .probe = probe_spi_rdid,
17845 .probe_timing = TIMING_ZERO,
17846 .block_erasers =
17847 {
17848 {
17849 .eraseblocks = { {4 * 1024, 512} },
17850 .block_erase = spi_block_erase_20,
17851 }, {
17852 .eraseblocks = { {32 * 1024, 64} },
17853 .block_erase = spi_block_erase_52,
17854 }, {
17855 .eraseblocks = { {64 * 1024, 32} },
17856 .block_erase = spi_block_erase_d8,
17857 }, {
17858 .eraseblocks = { {2 * 1024 * 1024, 1} },
17859 .block_erase = spi_block_erase_60,
17860 }, {
17861 .eraseblocks = { {2 * 1024 * 1024, 1} },
17862 .block_erase = spi_block_erase_c7,
17863 }
17864 },
17865 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17866 .unlock = spi_disable_blockprotect,
17867 .write = spi_chip_write_256,
17868 .read = spi_chip_read,
17869 .voltage = {2700, 3600},
17870 },
17871
17872 {
17873 .vendor = "Winbond",
17874 .name = "W25Q16.W",
17875 .bustype = BUS_SPI,
17876 .manufacture_id = WINBOND_NEX_ID,
17877 .model_id = WINBOND_NEX_W25Q16_W,
17878 .total_size = 2048,
17879 .page_size = 256,
17880 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17881 /* QPI enable 0x38, disable 0xFF */
17882 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
17883 .tested = TEST_UNTESTED,
17884 .probe = probe_spi_rdid,
17885 .probe_timing = TIMING_ZERO,
17886 .block_erasers =
17887 {
17888 {
17889 .eraseblocks = { {4 * 1024, 512} },
17890 .block_erase = spi_block_erase_20,
17891 }, {
17892 .eraseblocks = { {32 * 1024, 64} },
17893 .block_erase = spi_block_erase_52,
17894 }, {
17895 .eraseblocks = { {64 * 1024, 32} },
17896 .block_erase = spi_block_erase_d8,
17897 }, {
17898 .eraseblocks = { {2 * 1024 * 1024, 1} },
17899 .block_erase = spi_block_erase_60,
17900 }, {
17901 .eraseblocks = { {2 * 1024 * 1024, 1} },
17902 .block_erase = spi_block_erase_c7,
17903 }
17904 },
17905 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17906 .unlock = spi_disable_blockprotect,
17907 .write = spi_chip_write_256,
17908 .read = spi_chip_read,
17909 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
17910 },
17911
17912 {
17913 .vendor = "Winbond",
17914 .name = "W25Q20.W",
17915 .bustype = BUS_SPI,
17916 .manufacture_id = WINBOND_NEX_ID,
17917 .model_id = WINBOND_NEX_W25Q20_W,
17918 .total_size = 256,
17919 .page_size = 256,
17920 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17921 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17922 .tested = TEST_UNTESTED,
17923 .probe = probe_spi_rdid,
17924 .probe_timing = TIMING_ZERO,
17925 .block_erasers =
17926 {
17927 {
17928 .eraseblocks = { {4 * 1024, 64} },
17929 .block_erase = spi_block_erase_20,
17930 }, {
17931 .eraseblocks = { {32 * 1024, 8} },
17932 .block_erase = spi_block_erase_52,
17933 }, {
17934 .eraseblocks = { {64 * 1024, 4} },
17935 .block_erase = spi_block_erase_d8,
17936 }, {
17937 .eraseblocks = { {256 * 1024, 1} },
17938 .block_erase = spi_block_erase_60,
17939 }, {
17940 .eraseblocks = { {256 * 1024, 1} },
17941 .block_erase = spi_block_erase_c7,
17942 }
17943 },
17944 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17945 .unlock = spi_disable_blockprotect,
17946 .write = spi_chip_write_256,
17947 .read = spi_chip_read,
17948 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
17949 },
17950
17951 {
17952 .vendor = "Winbond",
Nico Huber5215eab2022-05-23 15:13:07 +020017953 .name = "W25Q256FV",
Boris Baykovaa6c3742016-06-11 18:29:01 +020017954 .bustype = BUS_SPI,
17955 .manufacture_id = WINBOND_NEX_ID,
17956 .model_id = WINBOND_NEX_W25Q256_V,
17957 .total_size = 32768,
17958 .page_size = 256,
17959 /* supports SFDP */
17960 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110017961 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_ENTER_WREN |
Nico Huber542b1f02022-05-24 14:30:12 +020017962 FEATURE_4BA_EAR_C5C8 | FEATURE_4BA_READ | FEATURE_4BA_FAST_READ |
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110017963 FEATURE_WRSR2,
Angel Pons3130cbd2018-09-30 19:32:30 +020017964 .tested = TEST_OK_PREW,
Boris Baykovaa6c3742016-06-11 18:29:01 +020017965 .probe = probe_spi_rdid,
17966 .probe_timing = TIMING_ZERO,
17967 .block_erasers =
17968 {
17969 {
17970 .eraseblocks = { {4 * 1024, 8192} },
Nico Huber7a077222017-10-14 18:18:30 +020017971 .block_erase = spi_block_erase_20,
Boris Baykovaa6c3742016-06-11 18:29:01 +020017972 }, {
17973 .eraseblocks = { {32 * 1024, 1024} },
Nico Huber7a077222017-10-14 18:18:30 +020017974 .block_erase = spi_block_erase_52,
Boris Baykovaa6c3742016-06-11 18:29:01 +020017975 }, {
17976 .eraseblocks = { {64 * 1024, 512} },
Nico Huber7a077222017-10-14 18:18:30 +020017977 .block_erase = spi_block_erase_d8,
Boris Baykovaa6c3742016-06-11 18:29:01 +020017978 }, {
17979 .eraseblocks = { {32 * 1024 * 1024, 1} },
17980 .block_erase = spi_block_erase_60,
17981 }, {
17982 .eraseblocks = { {32 * 1024 * 1024, 1} },
17983 .block_erase = spi_block_erase_c7,
17984 }
17985 },
17986 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17987 .unlock = spi_disable_blockprotect,
17988 .write = spi_chip_write_256,
17989 .read = spi_chip_read,
17990 .voltage = {2700, 3600},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110017991 .reg_bits =
17992 {
17993 .srp = {STATUS1, 7, RW},
17994 .srl = {STATUS2, 0, RW},
17995 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}},
17996 .tb = {STATUS1, 6, RW},
17997 .cmp = {STATUS2, 6, RW},
17998 },
17999 .decode_range = decode_range_spi25,
Nico Huberab6b18f2023-01-11 23:38:20 +010018000 .prepare_access = spi_prepare_4ba,
Boris Baykovaa6c3742016-06-11 18:29:01 +020018001 },
18002
18003 {
18004 .vendor = "Winbond",
Nico Huber5215eab2022-05-23 15:13:07 +020018005 .name = "W25Q256JV_Q",
18006 .bustype = BUS_SPI,
18007 .manufacture_id = WINBOND_NEX_ID,
18008 .model_id = WINBOND_NEX_W25Q256_V,
18009 .total_size = 32768,
18010 .page_size = 256,
18011 /* supports SFDP */
18012 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
18013 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA | FEATURE_WRSR2,
Nico Huberddfbbe82023-12-21 16:31:27 +010018014 .tested = TEST_OK_PREW,
Nico Huber5215eab2022-05-23 15:13:07 +020018015 .probe = probe_spi_rdid,
18016 .probe_timing = TIMING_ZERO,
18017 .block_erasers =
18018 {
18019 {
18020 .eraseblocks = { {4 * 1024, 8192} },
18021 .block_erase = spi_block_erase_21,
18022 }, {
18023 .eraseblocks = { {4 * 1024, 8192} },
18024 .block_erase = spi_block_erase_20,
18025 }, {
18026 .eraseblocks = { {32 * 1024, 1024} },
18027 .block_erase = spi_block_erase_52,
18028 }, {
18029 .eraseblocks = { {64 * 1024, 512} },
18030 .block_erase = spi_block_erase_dc,
18031 }, {
18032 .eraseblocks = { {64 * 1024, 512} },
18033 .block_erase = spi_block_erase_d8,
18034 }, {
18035 .eraseblocks = { {32 * 1024 * 1024, 1} },
18036 .block_erase = spi_block_erase_60,
18037 }, {
18038 .eraseblocks = { {32 * 1024 * 1024, 1} },
18039 .block_erase = spi_block_erase_c7,
18040 }
18041 },
18042 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18043 .unlock = spi_disable_blockprotect,
18044 .write = spi_chip_write_256,
18045 .read = spi_chip_read,
18046 .voltage = {2700, 3600},
18047 .reg_bits =
18048 {
18049 .srp = {STATUS1, 7, RW},
18050 .srl = {STATUS2, 0, RW},
18051 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}},
18052 .tb = {STATUS1, 6, RW},
18053 .cmp = {STATUS2, 6, RW},
18054 },
18055 .decode_range = decode_range_spi25,
Nico Huberab6b18f2023-01-11 23:38:20 +010018056 .prepare_access = spi_prepare_4ba,
Nico Huber5215eab2022-05-23 15:13:07 +020018057 },
18058
18059 {
18060 .vendor = "Winbond",
David Hendricks49876792018-10-27 20:19:42 +000018061 .name = "W25Q256JV_M",
18062 .bustype = BUS_SPI,
18063 .manufacture_id = WINBOND_NEX_ID,
18064 .model_id = WINBOND_NEX_W25Q256JV_M,
18065 .total_size = 32768,
18066 .page_size = 256,
18067 /* supports SFDP */
18068 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110018069 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA | FEATURE_WRSR2,
David Hendricks49876792018-10-27 20:19:42 +000018070 .tested = TEST_OK_PREW,
18071 .probe = probe_spi_rdid,
18072 .probe_timing = TIMING_ZERO,
18073 .block_erasers =
18074 {
18075 {
18076 .eraseblocks = { {4 * 1024, 8192} },
18077 .block_erase = spi_block_erase_21,
18078 }, {
18079 .eraseblocks = { {4 * 1024, 8192} },
18080 .block_erase = spi_block_erase_20,
18081 }, {
18082 .eraseblocks = { {32 * 1024, 1024} },
18083 .block_erase = spi_block_erase_52,
18084 }, {
18085 .eraseblocks = { {64 * 1024, 512} },
18086 .block_erase = spi_block_erase_dc,
18087 }, {
18088 .eraseblocks = { {64 * 1024, 512} },
18089 .block_erase = spi_block_erase_d8,
18090 }, {
18091 .eraseblocks = { {32 * 1024 * 1024, 1} },
18092 .block_erase = spi_block_erase_60,
18093 }, {
18094 .eraseblocks = { {32 * 1024 * 1024, 1} },
18095 .block_erase = spi_block_erase_c7,
18096 }
18097 },
18098 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18099 .unlock = spi_disable_blockprotect,
18100 .write = spi_chip_write_256,
18101 .read = spi_chip_read,
18102 .voltage = {2700, 3600},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110018103 .reg_bits =
18104 {
18105 .srp = {STATUS1, 7, RW},
18106 .srl = {STATUS2, 0, RW},
18107 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}},
18108 .tb = {STATUS1, 6, RW},
18109 .cmp = {STATUS2, 6, RW},
18110 },
18111 .decode_range = decode_range_spi25,
Nico Huberab6b18f2023-01-11 23:38:20 +010018112 .prepare_access = spi_prepare_4ba,
David Hendricks49876792018-10-27 20:19:42 +000018113 },
18114
18115 {
18116 .vendor = "Winbond",
Patrick Rudolph8f5bd982020-08-26 09:15:53 +020018117 .name = "W25Q256JW",
el-coderon01209852020-04-29 12:12:53 +020018118 .bustype = BUS_SPI,
18119 .manufacture_id = WINBOND_NEX_ID,
18120 .model_id = WINBOND_NEX_W25Q256_W,
18121 .total_size = 32768,
18122 .page_size = 256,
18123 /* supports SFDP */
18124 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Patrick Rudolph8f5bd982020-08-26 09:15:53 +020018125 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
el-coderon01209852020-04-29 12:12:53 +020018126 .tested = TEST_OK_PREW,
18127 .probe = probe_spi_rdid,
18128 .probe_timing = TIMING_ZERO,
18129 .block_erasers =
18130 {
18131 {
18132 .eraseblocks = { {4 * 1024, 8192} },
Patrick Rudolph8f5bd982020-08-26 09:15:53 +020018133 .block_erase = spi_block_erase_21,
18134 }, {
18135 .eraseblocks = { {4 * 1024, 8192} },
el-coderon01209852020-04-29 12:12:53 +020018136 .block_erase = spi_block_erase_20,
18137 }, {
18138 .eraseblocks = { {32 * 1024, 1024} },
18139 .block_erase = spi_block_erase_52,
18140 }, {
18141 .eraseblocks = { {64 * 1024, 512} },
Patrick Rudolph8f5bd982020-08-26 09:15:53 +020018142 .block_erase = spi_block_erase_dc,
18143 }, {
18144 .eraseblocks = { {64 * 1024, 512} },
el-coderon01209852020-04-29 12:12:53 +020018145 .block_erase = spi_block_erase_d8,
18146 }, {
18147 .eraseblocks = { {32 * 1024 * 1024, 1} },
18148 .block_erase = spi_block_erase_60,
18149 }, {
18150 .eraseblocks = { {32 * 1024 * 1024, 1} },
18151 .block_erase = spi_block_erase_c7,
18152 }
18153 },
18154 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18155 .unlock = spi_disable_blockprotect,
18156 .write = spi_chip_write_256,
18157 .read = spi_chip_read,
18158 .voltage = {1650, 1950},
Nico Huberab6b18f2023-01-11 23:38:20 +010018159 .prepare_access = spi_prepare_4ba,
el-coderon01209852020-04-29 12:12:53 +020018160 },
18161
18162 {
18163 .vendor = "Winbond",
David Hendricks31532602020-08-16 17:14:56 -070018164 .name = "W25Q256JW_DTR",
18165 .bustype = BUS_SPI,
18166 .manufacture_id = WINBOND_NEX_ID,
18167 .model_id = WINBOND_NEX_W25Q256_DTR,
18168 .total_size = 32768,
18169 .page_size = 256,
18170 /* supports SFDP */
18171 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Kapil Porwal111c3802022-12-09 19:41:27 +053018172 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA | FEATURE_WRSR2
18173 | FEATURE_WRSR3,
18174 .tested = TEST_OK_PREWB,
David Hendricks31532602020-08-16 17:14:56 -070018175 .probe = probe_spi_rdid,
18176 .probe_timing = TIMING_ZERO,
18177 .block_erasers =
18178 {
18179 {
18180 .eraseblocks = { {4 * 1024, 8192} },
18181 .block_erase = spi_block_erase_21,
18182 }, {
18183 .eraseblocks = { {4 * 1024, 8192} },
18184 .block_erase = spi_block_erase_20,
18185 }, {
18186 .eraseblocks = { {32 * 1024, 1024} },
18187 .block_erase = spi_block_erase_52,
18188 }, {
18189 .eraseblocks = { {64 * 1024, 512} },
18190 .block_erase = spi_block_erase_dc,
18191 }, {
18192 .eraseblocks = { {64 * 1024, 512} },
18193 .block_erase = spi_block_erase_d8,
18194 }, {
18195 .eraseblocks = { {32 * 1024 * 1024, 1} },
18196 .block_erase = spi_block_erase_60,
18197 }, {
18198 .eraseblocks = { {32 * 1024 * 1024, 1} },
18199 .block_erase = spi_block_erase_c7,
18200 }
18201 },
18202 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18203 .unlock = spi_disable_blockprotect,
18204 .write = spi_chip_write_256,
18205 .read = spi_chip_read,
18206 .voltage = {1700, 1950},
Kapil Porwal111c3802022-12-09 19:41:27 +053018207 .reg_bits =
18208 {
18209 .srp = {STATUS1, 7, RW},
18210 .srl = {STATUS2, 0, RW},
18211 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}},
18212 .tb = {STATUS1, 6, RW},
18213 .cmp = {STATUS2, 6, RW},
18214 .wps = {STATUS3, 2, RW},
18215 },
18216 .decode_range = decode_range_spi25,
Nico Huberab6b18f2023-01-11 23:38:20 +010018217 .prepare_access = spi_prepare_4ba,
David Hendricks31532602020-08-16 17:14:56 -070018218 },
18219
18220 {
18221 .vendor = "Winbond",
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018222 .name = "W25Q32BV/W25Q32CV/W25Q32DV",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018223 .bustype = BUS_SPI,
18224 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018225 .model_id = WINBOND_NEX_W25Q32_V,
18226 .total_size = 4096,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018227 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018228 /* supports SFDP */
18229 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018230 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_WRSR_EXT2,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018231 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018232 .probe = probe_spi_rdid,
18233 .probe_timing = TIMING_ZERO,
18234 .block_erasers =
18235 {
18236 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100018237 .eraseblocks = { {4 * 1024, 1024} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018238 .block_erase = spi_block_erase_20,
18239 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100018240 .eraseblocks = { {32 * 1024, 128} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018241 .block_erase = spi_block_erase_52,
18242 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100018243 .eraseblocks = { {64 * 1024, 64} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018244 .block_erase = spi_block_erase_d8,
18245 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100018246 .eraseblocks = { {4 * 1024 * 1024, 1} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018247 .block_erase = spi_block_erase_60,
18248 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100018249 .eraseblocks = { {4 * 1024 * 1024, 1} },
18250 .block_erase = spi_block_erase_c7,
18251 }
18252 },
18253 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18254 .unlock = spi_disable_blockprotect,
18255 .write = spi_chip_write_256,
18256 .read = spi_chip_read,
18257 .voltage = {2700, 3600},
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018258 .reg_bits =
18259 {
18260 .srp = {STATUS1, 7, RW},
18261 .srl = {STATUS2, 0, RW},
18262 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
18263 .tb = {STATUS1, 5, RW},
18264 .sec = {STATUS1, 6, RW},
18265 .cmp = {STATUS2, 6, RW},
18266 },
18267 .decode_range = decode_range_spi25,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018268 },
18269
18270 {
18271 .vendor = "Winbond",
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018272 .name = "W25Q32FV",
18273 .bustype = BUS_SPI,
18274 .manufacture_id = WINBOND_NEX_ID,
18275 .model_id = WINBOND_NEX_W25Q32_V,
18276 .total_size = 4096,
18277 .page_size = 256,
18278 /* supports SFDP */
18279 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
18280 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI |
18281 FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3,
18282 .tested = TEST_OK_PREW,
18283 .probe = probe_spi_rdid,
18284 .probe_timing = TIMING_ZERO,
18285 .block_erasers =
18286 {
18287 {
18288 .eraseblocks = { {4 * 1024, 1024} },
18289 .block_erase = spi_block_erase_20,
18290 }, {
18291 .eraseblocks = { {32 * 1024, 128} },
18292 .block_erase = spi_block_erase_52,
18293 }, {
18294 .eraseblocks = { {64 * 1024, 64} },
18295 .block_erase = spi_block_erase_d8,
18296 }, {
18297 .eraseblocks = { {4 * 1024 * 1024, 1} },
18298 .block_erase = spi_block_erase_60,
18299 }, {
18300 .eraseblocks = { {4 * 1024 * 1024, 1} },
18301 .block_erase = spi_block_erase_c7,
18302 }
18303 },
18304 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18305 .unlock = spi_disable_blockprotect,
18306 .write = spi_chip_write_256,
18307 .read = spi_chip_read,
18308 .voltage = {2700, 3600},
18309 .reg_bits =
18310 {
18311 .srp = {STATUS1, 7, RW},
18312 .srl = {STATUS2, 0, RW},
18313 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
18314 .tb = {STATUS1, 5, RW},
18315 .sec = {STATUS1, 6, RW},
18316 .cmp = {STATUS2, 6, RW},
18317 .wps = {STATUS3, 2, RW},
18318 },
18319 .decode_range = decode_range_spi25,
18320 },
18321
18322 {
18323 .vendor = "Winbond",
18324 .name = "W25Q32JV",
18325 .bustype = BUS_SPI,
18326 .manufacture_id = WINBOND_NEX_ID,
18327 .model_id = WINBOND_NEX_W25Q32_V,
18328 .total_size = 4096,
18329 .page_size = 256,
18330 /* supports SFDP */
18331 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
18332 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP |
18333 FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3,
18334 .tested = TEST_OK_PREW,
18335 .probe = probe_spi_rdid,
18336 .probe_timing = TIMING_ZERO,
18337 .block_erasers =
18338 {
18339 {
18340 .eraseblocks = { {4 * 1024, 1024} },
18341 .block_erase = spi_block_erase_20,
18342 }, {
18343 .eraseblocks = { {32 * 1024, 128} },
18344 .block_erase = spi_block_erase_52,
18345 }, {
18346 .eraseblocks = { {64 * 1024, 64} },
18347 .block_erase = spi_block_erase_d8,
18348 }, {
18349 .eraseblocks = { {4 * 1024 * 1024, 1} },
18350 .block_erase = spi_block_erase_60,
18351 }, {
18352 .eraseblocks = { {4 * 1024 * 1024, 1} },
18353 .block_erase = spi_block_erase_c7,
18354 }
18355 },
18356 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18357 .unlock = spi_disable_blockprotect,
18358 .write = spi_chip_write_256,
18359 .read = spi_chip_read,
18360 .voltage = {2700, 3600},
18361 .reg_bits =
18362 {
18363 .srp = {STATUS1, 7, RW},
18364 .srl = {STATUS2, 0, RW},
18365 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
18366 .tb = {STATUS1, 5, RW},
18367 .sec = {STATUS1, 6, RW},
18368 .cmp = {STATUS2, 6, RW},
18369 .wps = {STATUS3, 2, RW},
18370 },
18371 .decode_range = decode_range_spi25,
18372 },
18373
18374 {
18375 .vendor = "Winbond",
18376 .name = "W25Q32BW/W25Q32CW/W25Q32DW",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018377 .bustype = BUS_SPI,
18378 .manufacture_id = WINBOND_NEX_ID,
18379 .model_id = WINBOND_NEX_W25Q32_W,
18380 .total_size = 4096,
18381 .page_size = 256,
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018382 /* OTP: 1024B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Alan Green1f9cc7d2019-07-01 11:10:45 +100018383 /* QPI enable 0x38, disable 0xFF */
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018384 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_WRSR_EXT2,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018385 .tested = TEST_OK_PREW,
18386 .probe = probe_spi_rdid,
18387 .probe_timing = TIMING_ZERO,
18388 .block_erasers =
18389 {
18390 {
18391 .eraseblocks = { {4 * 1024, 1024} },
18392 .block_erase = spi_block_erase_20,
18393 }, {
18394 .eraseblocks = { {32 * 1024, 128} },
18395 .block_erase = spi_block_erase_52,
18396 }, {
18397 .eraseblocks = { {64 * 1024, 64} },
18398 .block_erase = spi_block_erase_d8,
18399 }, {
18400 .eraseblocks = { {4 * 1024 * 1024, 1} },
18401 .block_erase = spi_block_erase_60,
18402 }, {
18403 .eraseblocks = { {4 * 1024 * 1024, 1} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018404 .block_erase = spi_block_erase_c7,
18405 }
18406 },
18407 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18408 .unlock = spi_disable_blockprotect,
18409 .write = spi_chip_write_256,
18410 .read = spi_chip_read,
18411 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018412 .reg_bits =
18413 {
18414 .srp = {STATUS1, 7, RW},
18415 .srl = {STATUS2, 0, RW},
18416 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
18417 .tb = {STATUS1, 5, RW},
18418 .sec = {STATUS1, 6, RW},
18419 .cmp = {STATUS2, 6, RW},
18420 },
18421 .decode_range = decode_range_spi25,
18422 },
18423
18424 {
18425 .vendor = "Winbond",
18426 .name = "W25Q32FW",
18427 .bustype = BUS_SPI,
18428 .manufacture_id = WINBOND_NEX_ID,
18429 .model_id = WINBOND_NEX_W25Q32_W,
18430 .total_size = 4096,
18431 .page_size = 256,
18432 /* OTP: 768B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
18433 /* QPI enable 0x38, disable 0xFF */
18434 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI |
18435 FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3,
18436 .tested = TEST_OK_PREW,
18437 .probe = probe_spi_rdid,
18438 .probe_timing = TIMING_ZERO,
18439 .block_erasers =
18440 {
18441 {
18442 .eraseblocks = { {4 * 1024, 1024} },
18443 .block_erase = spi_block_erase_20,
18444 }, {
18445 .eraseblocks = { {32 * 1024, 128} },
18446 .block_erase = spi_block_erase_52,
18447 }, {
18448 .eraseblocks = { {64 * 1024, 64} },
18449 .block_erase = spi_block_erase_d8,
18450 }, {
18451 .eraseblocks = { {4 * 1024 * 1024, 1} },
18452 .block_erase = spi_block_erase_60,
18453 }, {
18454 .eraseblocks = { {4 * 1024 * 1024, 1} },
18455 .block_erase = spi_block_erase_c7,
18456 }
18457 },
18458 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18459 .unlock = spi_disable_blockprotect,
18460 .write = spi_chip_write_256,
18461 .read = spi_chip_read,
18462 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
18463 .reg_bits =
18464 {
18465 .srp = {STATUS1, 7, RW},
18466 .srl = {STATUS2, 0, RW},
18467 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
18468 .tb = {STATUS1, 5, RW},
18469 .sec = {STATUS1, 6, RW},
18470 .cmp = {STATUS2, 6, RW},
18471 .wps = {STATUS3, 2, RW},
18472 },
18473 .decode_range = decode_range_spi25,
18474 },
18475
18476 {
18477 .vendor = "Winbond",
18478 .name = "W25Q32JW...Q",
18479 .bustype = BUS_SPI,
18480 .manufacture_id = WINBOND_NEX_ID,
18481 .model_id = WINBOND_NEX_W25Q32_W,
18482 .total_size = 4096,
18483 .page_size = 256,
18484 /* OTP: 768B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
18485 /* QPI enable 0x38, disable 0xFF */
18486 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP |
18487 FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3,
18488 .tested = TEST_OK_PREW,
18489 .probe = probe_spi_rdid,
18490 .probe_timing = TIMING_ZERO,
18491 .block_erasers =
18492 {
18493 {
18494 .eraseblocks = { {4 * 1024, 1024} },
18495 .block_erase = spi_block_erase_20,
18496 }, {
18497 .eraseblocks = { {32 * 1024, 128} },
18498 .block_erase = spi_block_erase_52,
18499 }, {
18500 .eraseblocks = { {64 * 1024, 64} },
18501 .block_erase = spi_block_erase_d8,
18502 }, {
18503 .eraseblocks = { {4 * 1024 * 1024, 1} },
18504 .block_erase = spi_block_erase_60,
18505 }, {
18506 .eraseblocks = { {4 * 1024 * 1024, 1} },
18507 .block_erase = spi_block_erase_c7,
18508 }
18509 },
18510 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18511 .unlock = spi_disable_blockprotect,
18512 .write = spi_chip_write_256,
18513 .read = spi_chip_read,
18514 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
18515 .reg_bits =
18516 {
18517 .srp = {STATUS1, 7, RW},
18518 .srl = {STATUS2, 0, RW},
18519 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
18520 .tb = {STATUS1, 5, RW},
18521 .sec = {STATUS1, 6, RW},
18522 .cmp = {STATUS2, 6, RW},
18523 .wps = {STATUS3, 2, RW},
18524 },
18525 .decode_range = decode_range_spi25,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018526 },
18527
18528 {
18529 .vendor = "Winbond",
Nikolai Artemiev6ae79b12021-05-08 17:31:23 +100018530 .name = "W25Q32JW...M",
18531 .bustype = BUS_SPI,
18532 .manufacture_id = WINBOND_NEX_ID,
18533 .model_id = WINBOND_NEX_W25Q32JW_M,
18534 .total_size = 4096,
18535 .page_size = 256,
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018536 /* OTP: 768B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
18537 /* QPI enable 0x38, disable 0xFF */
18538 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP |
18539 FEATURE_WRSR2 | FEATURE_WRSR3 | FEATURE_WRSR_EXT2,
Nikolai Artemiev6ae79b12021-05-08 17:31:23 +100018540 .tested = TEST_OK_PREW,
18541 .probe = probe_spi_rdid,
18542 .probe_timing = TIMING_ZERO,
18543 .block_erasers =
18544 {
18545 {
18546 .eraseblocks = { {4 * 1024, 1024} },
18547 .block_erase = spi_block_erase_20,
18548 }, {
18549 .eraseblocks = { {32 * 1024, 128} },
18550 .block_erase = spi_block_erase_52,
18551 }, {
18552 .eraseblocks = { {64 * 1024, 64} },
18553 .block_erase = spi_block_erase_d8,
18554 }, {
18555 .eraseblocks = { {4 * 1024 * 1024, 1} },
18556 .block_erase = spi_block_erase_60,
18557 }, {
18558 .eraseblocks = { {4 * 1024 * 1024, 1} },
18559 .block_erase = spi_block_erase_c7,
18560 }
18561 },
18562 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
18563 .unlock = spi_disable_blockprotect_bp2_srwd,
18564 .write = spi_chip_write_256,
18565 .read = spi_chip_read,
18566 .voltage = {1700, 1950},
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018567 .reg_bits =
18568 {
18569 .srp = {STATUS1, 7, RW},
18570 .srl = {STATUS2, 0, RW},
18571 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
18572 .tb = {STATUS1, 5, RW},
18573 .sec = {STATUS1, 6, RW},
18574 .cmp = {STATUS2, 6, RW},
18575 .wps = {STATUS3, 2, RW},
18576 },
18577 .decode_range = decode_range_spi25,
Nikolai Artemiev6ae79b12021-05-08 17:31:23 +100018578 },
18579
18580 {
18581 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018582 .name = "W25Q40.V",
18583 .bustype = BUS_SPI,
18584 .manufacture_id = WINBOND_NEX_ID,
18585 .model_id = WINBOND_NEX_W25Q40_V,
18586 .total_size = 512,
18587 .page_size = 256,
18588 /* supports SFDP */
18589 /* OTP: 756B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
18590 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
18591 .tested = TEST_OK_PREW,
18592 .probe = probe_spi_rdid,
18593 .probe_timing = TIMING_ZERO,
18594 .block_erasers =
18595 {
18596 {
18597 .eraseblocks = { {4 * 1024, 128} },
18598 .block_erase = spi_block_erase_20,
18599 }, {
18600 .eraseblocks = { {32 * 1024, 16} },
18601 .block_erase = spi_block_erase_52,
18602 }, {
18603 .eraseblocks = { {64 * 1024, 8} },
18604 .block_erase = spi_block_erase_d8,
18605 }, {
18606 .eraseblocks = { {512 * 1024, 1} },
18607 .block_erase = spi_block_erase_60,
18608 }, {
18609 .eraseblocks = { {512 * 1024, 1} },
18610 .block_erase = spi_block_erase_c7,
18611 }
18612 },
18613 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18614 .unlock = spi_disable_blockprotect,
18615 .write = spi_chip_write_256, /* Multi I/O supported */
18616 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
18617 .voltage = {2700, 3600},
18618 },
18619
18620 {
18621 .vendor = "Winbond",
Nico Huber25683572018-03-30 13:50:13 +020018622 .name = "W25Q40BW",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018623 .bustype = BUS_SPI,
18624 .manufacture_id = WINBOND_NEX_ID,
Nico Huber25683572018-03-30 13:50:13 +020018625 .model_id = WINBOND_NEX_W25Q40BW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018626 .total_size = 512,
18627 .page_size = 256,
18628 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
18629 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Angel Pons3164a0c2018-09-30 20:26:06 +020018630 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018631 .probe = probe_spi_rdid,
18632 .probe_timing = TIMING_ZERO,
18633 .block_erasers =
18634 {
18635 {
18636 .eraseblocks = { {4 * 1024, 128} },
18637 .block_erase = spi_block_erase_20,
18638 }, {
18639 .eraseblocks = { {32 * 1024, 16} },
18640 .block_erase = spi_block_erase_52,
18641 }, {
18642 .eraseblocks = { {64 * 1024, 8} },
18643 .block_erase = spi_block_erase_d8,
18644 }, {
18645 .eraseblocks = { {512 * 1024, 1} },
18646 .block_erase = spi_block_erase_60,
18647 }, {
18648 .eraseblocks = { {512 * 1024, 1} },
18649 .block_erase = spi_block_erase_c7,
18650 }
18651 },
18652 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18653 .unlock = spi_disable_blockprotect,
18654 .write = spi_chip_write_256,
18655 .read = spi_chip_read,
18656 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
18657 },
18658
18659 {
18660 .vendor = "Winbond",
Nico Huber25683572018-03-30 13:50:13 +020018661 .name = "W25Q40EW",
18662 .bustype = BUS_SPI,
18663 .manufacture_id = WINBOND_NEX_ID,
18664 .model_id = WINBOND_NEX_W25Q40EW,
18665 .total_size = 512,
18666 .page_size = 256,
18667 /* OTP: 3*256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
18668 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Alan Green07b8a172019-09-23 16:47:05 +100018669 .tested = TEST_OK_PREW,
Nico Huber25683572018-03-30 13:50:13 +020018670 .probe = probe_spi_rdid,
18671 .probe_timing = TIMING_ZERO,
18672 .block_erasers =
18673 {
18674 {
18675 .eraseblocks = { {4 * 1024, 128} },
18676 .block_erase = spi_block_erase_20,
18677 }, {
18678 .eraseblocks = { {32 * 1024, 16} },
18679 .block_erase = spi_block_erase_52,
18680 }, {
18681 .eraseblocks = { {64 * 1024, 8} },
18682 .block_erase = spi_block_erase_d8,
18683 }, {
18684 .eraseblocks = { {512 * 1024, 1} },
18685 .block_erase = spi_block_erase_60,
18686 }, {
18687 .eraseblocks = { {512 * 1024, 1} },
18688 .block_erase = spi_block_erase_c7,
18689 }
18690 },
18691 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18692 .unlock = spi_disable_blockprotect,
18693 .write = spi_chip_write_256,
18694 .read = spi_chip_read,
18695 .voltage = {1650, 1950}, /* Fast read (0x0B) and multi I/O supported */
18696 },
18697
Stanislav Sedovf5775442018-03-07 14:16:51 -080018698 {
18699 .vendor = "Winbond",
Joel Stanley55439612019-07-27 19:25:35 +093018700 .name = "W25Q512JV",
18701 .bustype = BUS_SPI,
18702 .manufacture_id = WINBOND_NEX_ID,
18703 .model_id = WINBOND_NEX_W25Q512JV,
18704 .total_size = 64 * 1024,
18705 .page_size = 256,
18706 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
18707 .tested = TEST_OK_PREW,
18708 .probe = probe_spi_rdid,
18709 .probe_timing = TIMING_ZERO,
18710 .block_erasers =
18711 {
18712 {
18713 .eraseblocks = { {4 * 1024, 16384} },
18714 .block_erase = spi_block_erase_21,
18715 }, {
18716 .eraseblocks = { {4 * 1024, 16384} },
18717 .block_erase = spi_block_erase_20,
18718 }, {
18719 .eraseblocks = { {32 * 1024, 2048} },
18720 .block_erase = spi_block_erase_52,
18721 }, {
18722 .eraseblocks = { {64 * 1024, 1024} },
18723 .block_erase = spi_block_erase_dc,
18724 }, {
18725 .eraseblocks = { {64 * 1024, 1024} },
18726 .block_erase = spi_block_erase_d8,
18727 }, {
18728 .eraseblocks = { {64 * 1024 * 1024, 1} },
18729 .block_erase = spi_block_erase_60,
18730 }, {
18731 .eraseblocks = { {64 * 1024 * 1024, 1} },
18732 .block_erase = spi_block_erase_c7,
18733 }
18734 },
18735 .printlock = spi_prettyprint_status_register_plain,
18736 .unlock = spi_disable_blockprotect,
18737 .write = spi_chip_write_256,
18738 .read = spi_chip_read,
18739 .voltage = {2700, 3600},
Nico Huberab6b18f2023-01-11 23:38:20 +010018740 .prepare_access = spi_prepare_4ba,
Joel Stanley55439612019-07-27 19:25:35 +093018741 },
18742
18743 {
Felix Singer3c9bdb92022-12-15 23:30:16 +010018744 .vendor = "Winbond",
18745 .name = "W25Q512NW-IM",
18746 .bustype = BUS_SPI,
18747 .manufacture_id = WINBOND_NEX_ID,
18748 .model_id = WINBOND_NEX_W25Q512NW_IM,
18749 .total_size = 64 * 1024,
18750 .page_size = 256,
Subrata Banikf5bffd92022-12-14 12:30:43 +053018751 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA | FEATURE_WRSR2
18752 | FEATURE_WRSR3,
18753 .tested = TEST_OK_PREWB,
Felix Singer3c9bdb92022-12-15 23:30:16 +010018754 .probe = probe_spi_rdid,
18755 .probe_timing = TIMING_ZERO,
18756 .block_erasers =
Atul Dhudase2502dbd2021-09-21 10:02:20 +053018757 {
Felix Singer3c9bdb92022-12-15 23:30:16 +010018758 {
18759 .eraseblocks = { {4 * 1024, 16384} },
18760 .block_erase = spi_block_erase_21,
18761 }, {
18762 .eraseblocks = { {4 * 1024, 16384} },
18763 .block_erase = spi_block_erase_20,
18764 }, {
18765 .eraseblocks = { {32 * 1024, 2048} },
18766 .block_erase = spi_block_erase_52,
18767 }, {
18768 .eraseblocks = { {64 * 1024, 1024} },
18769 .block_erase = spi_block_erase_dc,
18770 }, {
18771 .eraseblocks = { {64 * 1024, 1024} },
18772 .block_erase = spi_block_erase_d8,
18773 }, {
18774 .eraseblocks = { {64 * 1024 * 1024, 1} },
18775 .block_erase = spi_block_erase_60,
18776 }, {
18777 .eraseblocks = { {64 * 1024 * 1024, 1} },
18778 .block_erase = spi_block_erase_c7,
18779 }
18780 },
18781 .unlock = spi_disable_blockprotect,
18782 .write = spi_chip_write_256,
18783 .read = spi_chip_read,
18784 .voltage = {1650, 1950},
Subrata Banikf5bffd92022-12-14 12:30:43 +053018785 .reg_bits =
18786 {
18787 .srp = {STATUS1, 7, RW},
18788 .srl = {STATUS2, 0, RW},
18789 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}},
18790 .tb = {STATUS1, 6, RW},
18791 .cmp = {STATUS2, 6, RW},
18792 .wps = {STATUS3, 2, RW},
18793 },
18794 .decode_range = decode_range_spi25,
Nico Huberab6b18f2023-01-11 23:38:20 +010018795 .prepare_access = spi_prepare_4ba,
Atul Dhudase2502dbd2021-09-21 10:02:20 +053018796 },
18797
18798 {
Joel Stanley55439612019-07-27 19:25:35 +093018799 .vendor = "Winbond",
Sergii Dmytrukd1af3072021-11-08 00:00:43 +020018800 .name = "W25Q64BV/W25Q64CV/W25Q64FV",
Stanislav Sedovf5775442018-03-07 14:16:51 -080018801 .bustype = BUS_SPI,
18802 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018803 .model_id = WINBOND_NEX_W25Q64_V,
18804 .total_size = 8192,
Stanislav Sedovf5775442018-03-07 14:16:51 -080018805 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018806 /* supports SFDP */
18807 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Sergii Dmytrukd1af3072021-11-08 00:00:43 +020018808 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_WRSR2,
Sergii Dmytrukc74eac22022-10-06 18:17:58 +030018809 .tested = TEST_OK_PREWB,
Stanislav Sedovf5775442018-03-07 14:16:51 -080018810 .probe = probe_spi_rdid,
18811 .probe_timing = TIMING_ZERO,
18812 .block_erasers =
18813 {
18814 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100018815 .eraseblocks = { {4 * 1024, 2048} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080018816 .block_erase = spi_block_erase_20,
18817 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100018818 .eraseblocks = { {32 * 1024, 256} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080018819 .block_erase = spi_block_erase_52,
18820 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100018821 .eraseblocks = { {64 * 1024, 128} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080018822 .block_erase = spi_block_erase_d8,
18823 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100018824 .eraseblocks = { {8 * 1024 * 1024, 1} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080018825 .block_erase = spi_block_erase_60,
18826 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100018827 .eraseblocks = { {8 * 1024 * 1024, 1} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080018828 .block_erase = spi_block_erase_c7,
18829 }
18830 },
18831 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18832 .unlock = spi_disable_blockprotect,
18833 .write = spi_chip_write_256,
18834 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018835 .voltage = {2700, 3600},
Sergii Dmytrukd1af3072021-11-08 00:00:43 +020018836 .reg_bits =
18837 {
18838 .srp = {STATUS1, 7, RW},
18839 .srl = {STATUS2, 0, RW},
18840 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
18841 .tb = {STATUS1, 5, RW},
18842 .sec = {STATUS1, 6, RW},
18843 .cmp = {STATUS2, 6, RW},
18844 },
18845 .decode_range = decode_range_spi25,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018846 },
18847
18848 {
18849 .vendor = "Winbond",
Sergii Dmytrukd1af3072021-11-08 00:00:43 +020018850 .name = "W25Q64JV-.Q",
18851 .bustype = BUS_SPI,
18852 .manufacture_id = WINBOND_NEX_ID,
18853 .model_id = WINBOND_NEX_W25Q64_V,
18854 .total_size = 8192,
18855 .page_size = 256,
18856 /* supports SFDP */
18857 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber3f3c1f32022-05-28 16:48:26 +020018858 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP |
18859 FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3,
Sergii Dmytrukd1af3072021-11-08 00:00:43 +020018860 .tested = TEST_OK_PREW,
18861 .probe = probe_spi_rdid,
18862 .probe_timing = TIMING_ZERO,
18863 .block_erasers =
18864 {
18865 {
18866 .eraseblocks = { {4 * 1024, 2048} },
18867 .block_erase = spi_block_erase_20,
18868 }, {
18869 .eraseblocks = { {32 * 1024, 256} },
18870 .block_erase = spi_block_erase_52,
18871 }, {
18872 .eraseblocks = { {64 * 1024, 128} },
18873 .block_erase = spi_block_erase_d8,
18874 }, {
18875 .eraseblocks = { {8 * 1024 * 1024, 1} },
18876 .block_erase = spi_block_erase_60,
18877 }, {
18878 .eraseblocks = { {8 * 1024 * 1024, 1} },
18879 .block_erase = spi_block_erase_c7,
18880 }
18881 },
18882 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18883 .unlock = spi_disable_blockprotect,
18884 .write = spi_chip_write_256,
18885 .read = spi_chip_read,
18886 .voltage = {2700, 3600},
18887 .reg_bits =
18888 {
18889 .srp = {STATUS1, 7, RW},
18890 .srl = {STATUS2, 0, RW},
18891 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
18892 .tb = {STATUS1, 5, RW},
18893 .sec = {STATUS1, 6, RW},
18894 .cmp = {STATUS2, 6, RW},
18895 .wps = {STATUS3, 2, RW},
18896 },
18897 .decode_range = decode_range_spi25,
18898 },
18899
18900 {
18901 .vendor = "Winbond",
18902 .name = "W25Q64JV-.M",
Simon Buhrow236a38c2021-11-05 11:48:30 +010018903 .bustype = BUS_SPI,
18904 .manufacture_id = WINBOND_NEX_ID,
18905 .model_id = WINBOND_NEX_W25Q64JV,
18906 .total_size = 8192,
18907 .page_size = 256,
18908 /* supports SFDP */
18909 /* QPI enable 0x38 */
18910 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
18911 .tested = TEST_OK_PREW,
18912 .probe = probe_spi_rdid,
18913 .probe_timing = TIMING_ZERO,
18914 .block_erasers =
18915 {
18916 {
18917 .eraseblocks = { {4 * 1024, 2048} },
18918 .block_erase = spi_block_erase_20,
18919 }, {
18920 .eraseblocks = { {32 * 1024, 256} },
18921 .block_erase = spi_block_erase_52,
18922 }, {
18923 .eraseblocks = { {64 * 1024, 128} },
18924 .block_erase = spi_block_erase_d8,
18925 }, {
18926 .eraseblocks = { {8 * 1024 * 1024, 1} },
18927 .block_erase = spi_block_erase_60,
18928 }, {
18929 .eraseblocks = { {8 * 1024 * 1024, 1} },
18930 .block_erase = spi_block_erase_c7,
18931 }
18932 },
18933 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
18934 .unlock = spi_disable_blockprotect_bp2_srwd,
18935 .write = spi_chip_write_256,
18936 .read = spi_chip_read,
18937 .voltage = {2700, 3600},
18938 },
18939
18940 {
18941 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018942 .name = "W25Q64.W",
18943 .bustype = BUS_SPI,
18944 .manufacture_id = WINBOND_NEX_ID,
18945 .model_id = WINBOND_NEX_W25Q64_W,
18946 .total_size = 8192,
18947 .page_size = 256,
18948 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
18949 /* QPI enable 0x38, disable 0xFF */
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110018950 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_WRSR2,
Sergii Dmytrukc74eac22022-10-06 18:17:58 +030018951 .tested = TEST_OK_PREWB,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018952 .probe = probe_spi_rdid,
18953 .probe_timing = TIMING_ZERO,
18954 .block_erasers =
18955 {
18956 {
18957 .eraseblocks = { {4 * 1024, 2048} },
18958 .block_erase = spi_block_erase_20,
18959 }, {
18960 .eraseblocks = { {32 * 1024, 256} },
18961 .block_erase = spi_block_erase_52,
18962 }, {
18963 .eraseblocks = { {64 * 1024, 128} },
18964 .block_erase = spi_block_erase_d8,
18965 }, {
18966 .eraseblocks = { {8 * 1024 * 1024, 1} },
18967 .block_erase = spi_block_erase_60,
18968 }, {
18969 .eraseblocks = { {8 * 1024 * 1024, 1} },
18970 .block_erase = spi_block_erase_c7,
18971 }
18972 },
18973 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18974 .unlock = spi_disable_blockprotect,
18975 .write = spi_chip_write_256,
18976 .read = spi_chip_read,
18977 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110018978 .reg_bits =
18979 {
18980 .srp = {STATUS1, 7, RW},
18981 .srl = {STATUS2, 0, RW},
18982 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
18983 .tb = {STATUS1, 5, RW},
18984 .sec = {STATUS1, 6, RW},
18985 .cmp = {STATUS2, 6, RW},
18986 },
18987 .decode_range = decode_range_spi25,
Antony Rheneus0fbba982011-05-26 14:28:51 +000018988 },
18989
18990 {
18991 .vendor = "Winbond",
Nikolai Artemiev5fa05052021-05-14 15:26:47 +100018992 .name = "W25Q64JW...M",
Scott Chao1bbc5012020-04-08 22:10:50 +080018993 .bustype = BUS_SPI,
18994 .manufacture_id = WINBOND_NEX_ID,
Nikolai Artemiev5fa05052021-05-14 15:26:47 +100018995 .model_id = WINBOND_NEX_W25Q64JW_M,
Scott Chao1bbc5012020-04-08 22:10:50 +080018996 .total_size = 8192,
18997 .page_size = 256,
18998 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
18999 /* QPI enable 0x38, disable 0xFF */
Evan Benn29c8b5d2022-09-13 16:01:10 +100019000 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_WRSR2 | FEATURE_WRSR3,
Scott Chao1bbc5012020-04-08 22:10:50 +080019001 .tested = TEST_OK_PREW,
19002 .probe = probe_spi_rdid,
19003 .probe_timing = TIMING_ZERO,
19004 .block_erasers =
19005 {
19006 {
19007 .eraseblocks = { {4 * 1024, 2048} },
19008 .block_erase = spi_block_erase_20,
19009 }, {
19010 .eraseblocks = { {32 * 1024, 256} },
19011 .block_erase = spi_block_erase_52,
19012 }, {
19013 .eraseblocks = { {64 * 1024, 128} },
19014 .block_erase = spi_block_erase_d8,
19015 }, {
19016 .eraseblocks = { {8 * 1024 * 1024, 1} },
19017 .block_erase = spi_block_erase_60,
19018 }, {
19019 .eraseblocks = { {8 * 1024 * 1024, 1} },
19020 .block_erase = spi_block_erase_c7,
19021 }
19022 },
19023 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19024 .unlock = spi_disable_blockprotect,
19025 .write = spi_chip_write_256,
19026 .read = spi_chip_read,
19027 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
Evan Benn29c8b5d2022-09-13 16:01:10 +100019028 .reg_bits =
19029 {
19030 .srp = {STATUS1, 7, RW},
19031 .srl = {STATUS2, 0, RW},
19032 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
19033 .tb = {STATUS1, 5, RW},
19034 .sec = {STATUS1, 6, RW},
19035 .cmp = {STATUS2, 6, RW},
19036 .wps = {STATUS3, 2, RW},
19037 },
19038 .decode_range = decode_range_spi25,
Scott Chao1bbc5012020-04-08 22:10:50 +080019039 },
19040
19041 {
19042 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100019043 .name = "W25Q80.V",
Nico Huber70eed9f2017-04-24 22:19:27 +020019044 .bustype = BUS_SPI,
19045 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100019046 .model_id = WINBOND_NEX_W25Q80_V,
19047 .total_size = 1024,
Nico Huber70eed9f2017-04-24 22:19:27 +020019048 .page_size = 256,
19049 /* supports SFDP */
19050 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Alan Green1f9cc7d2019-07-01 11:10:45 +100019051 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks48729d32017-12-08 14:44:07 -080019052 .tested = TEST_OK_PREW,
Nico Huber70eed9f2017-04-24 22:19:27 +020019053 .probe = probe_spi_rdid,
19054 .probe_timing = TIMING_ZERO,
19055 .block_erasers =
19056 {
19057 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100019058 .eraseblocks = { {4 * 1024, 256} },
Nico Huber70eed9f2017-04-24 22:19:27 +020019059 .block_erase = spi_block_erase_20,
19060 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100019061 .eraseblocks = { {32 * 1024, 32} },
Nico Huber70eed9f2017-04-24 22:19:27 +020019062 .block_erase = spi_block_erase_52,
19063 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100019064 .eraseblocks = { {64 * 1024, 16} },
Nico Huber70eed9f2017-04-24 22:19:27 +020019065 .block_erase = spi_block_erase_d8,
19066 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100019067 .eraseblocks = { {1024 * 1024, 1} },
Nico Huber70eed9f2017-04-24 22:19:27 +020019068 .block_erase = spi_block_erase_60,
19069 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100019070 .eraseblocks = { {1024 * 1024, 1} },
Nico Huber70eed9f2017-04-24 22:19:27 +020019071 .block_erase = spi_block_erase_c7,
19072 }
19073 },
19074 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19075 .unlock = spi_disable_blockprotect,
19076 .write = spi_chip_write_256,
19077 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +100019078 .voltage = {2700, 3600},
19079 },
19080
19081 {
19082 .vendor = "Winbond",
19083 .name = "W25Q80BW",
19084 .bustype = BUS_SPI,
19085 .manufacture_id = WINBOND_NEX_ID,
19086 .model_id = WINBOND_NEX_W25Q80BW,
19087 .total_size = 1024,
19088 .page_size = 256,
19089 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
19090 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
19091 .tested = TEST_OK_PREW,
19092 .probe = probe_spi_rdid,
19093 .probe_timing = TIMING_ZERO,
19094 .block_erasers =
19095 {
19096 {
19097 .eraseblocks = { {4 * 1024, 256} },
19098 .block_erase = spi_block_erase_20,
19099 }, {
19100 .eraseblocks = { {32 * 1024, 32} },
19101 .block_erase = spi_block_erase_52,
19102 }, {
19103 .eraseblocks = { {64 * 1024, 16} },
19104 .block_erase = spi_block_erase_d8,
19105 }, {
19106 .eraseblocks = { {1 * 1024 * 1024, 1} },
19107 .block_erase = spi_block_erase_60,
19108 }, {
19109 .eraseblocks = { {1 * 1024 * 1024, 1} },
19110 .block_erase = spi_block_erase_c7,
19111 }
19112 },
19113 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19114 .unlock = spi_disable_blockprotect,
19115 .write = spi_chip_write_256,
19116 .read = spi_chip_read,
19117 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
19118 },
19119
19120 {
19121 .vendor = "Winbond",
19122 .name = "W25Q80EW",
19123 .bustype = BUS_SPI,
19124 .manufacture_id = WINBOND_NEX_ID,
19125 .model_id = WINBOND_NEX_W25Q80EW,
19126 .total_size = 1024,
19127 .page_size = 256,
19128 /* OTP: 3*256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
19129 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
19130 .tested = TEST_OK_PREW,
19131 .probe = probe_spi_rdid,
19132 .probe_timing = TIMING_ZERO,
19133 .block_erasers =
19134 {
19135 {
19136 .eraseblocks = { {4 * 1024, 256} },
19137 .block_erase = spi_block_erase_20,
19138 }, {
19139 .eraseblocks = { {32 * 1024, 32} },
19140 .block_erase = spi_block_erase_52,
19141 }, {
19142 .eraseblocks = { {64 * 1024, 16} },
19143 .block_erase = spi_block_erase_d8,
19144 }, {
19145 .eraseblocks = { {1 * 1024 * 1024, 1} },
19146 .block_erase = spi_block_erase_60,
19147 }, {
19148 .eraseblocks = { {1 * 1024 * 1024, 1} },
19149 .block_erase = spi_block_erase_c7,
19150 }
19151 },
19152 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19153 .unlock = spi_disable_blockprotect,
19154 .write = spi_chip_write_256,
19155 .read = spi_chip_read,
19156 .voltage = {1650, 1950}, /* Fast read (0x0B) and multi I/O supported */
Nico Huber70eed9f2017-04-24 22:19:27 +020019157 },
19158
19159 {
19160 .vendor = "Winbond",
Jacob Appelbaumebbdc022019-09-02 09:10:43 -040019161 .name = "W25X05",
19162 .bustype = BUS_SPI,
19163 .manufacture_id = WINBOND_NEX_ID,
19164 .model_id = WINBOND_NEX_W25X05,
19165 .total_size = 64,
19166 .page_size = 256,
19167 .feature_bits = FEATURE_WRSR_WREN,
19168 .tested = TEST_OK_PREW,
19169 .probe = probe_spi_rdid,
19170 .probe_timing = TIMING_ZERO,
19171 .block_erasers =
19172 {
19173 {
19174 .eraseblocks = { {4 * 1024, 16} },
19175 .block_erase = spi_block_erase_20,
19176 }, {
19177 .eraseblocks = { {32 * 1024, 2} },
19178 .block_erase = spi_block_erase_52,
19179 }, {
19180 .eraseblocks = { {64 * 1024, 1} },
19181 .block_erase = spi_block_erase_d8,
19182 }
19183 },
19184 .printlock = spi_prettyprint_status_register_plain,
19185 .unlock = spi_disable_blockprotect,
19186 .write = spi_chip_write_256,
19187 .read = spi_chip_read,
19188 .voltage = {2300, 3600},
19189 },
19190
19191 {
19192 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000019193 .name = "W25X10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019194 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019195 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000019196 .model_id = WINBOND_NEX_W25X10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019197 .total_size = 128,
19198 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000019199 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +000019200 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019201 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000019202 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019203 .block_erasers =
19204 {
19205 {
19206 .eraseblocks = { {4 * 1024, 32} },
19207 .block_erase = spi_block_erase_20,
19208 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019209 .eraseblocks = { {64 * 1024, 2} },
19210 .block_erase = spi_block_erase_d8,
19211 }, {
19212 .eraseblocks = { {128 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019213 .block_erase = spi_block_erase_c7,
19214 }
19215 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000019216 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000019217 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000019218 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019219 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000019220 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000019221 },
19222
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019223 {
19224 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000019225 .name = "W25X16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019226 .bustype = BUS_SPI,
Hector Martina721ae22009-07-11 19:39:11 +000019227 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000019228 .model_id = WINBOND_NEX_W25X16,
Hector Martina721ae22009-07-11 19:39:11 +000019229 .total_size = 2048,
19230 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000019231 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +000019232 .tested = TEST_OK_PREW,
Hector Martina721ae22009-07-11 19:39:11 +000019233 .probe = probe_spi_rdid,
19234 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019235 .block_erasers =
19236 {
19237 {
19238 .eraseblocks = { {4 * 1024, 512} },
19239 .block_erase = spi_block_erase_20,
19240 }, {
19241 .eraseblocks = { {32 * 1024, 64} },
19242 .block_erase = spi_block_erase_52,
19243 }, {
19244 .eraseblocks = { {64 * 1024, 32} },
19245 .block_erase = spi_block_erase_d8,
19246 }, {
19247 .eraseblocks = { {2 * 1024 * 1024, 1} },
19248 .block_erase = spi_block_erase_60,
19249 }, {
19250 .eraseblocks = { {2 * 1024 * 1024, 1} },
19251 .block_erase = spi_block_erase_c7,
19252 }
19253 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000019254 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000019255 .unlock = spi_disable_blockprotect,
Hector Martina721ae22009-07-11 19:39:11 +000019256 .write = spi_chip_write_256,
19257 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000019258 .voltage = {2700, 3600},
Hector Martina721ae22009-07-11 19:39:11 +000019259 },
19260
19261 {
19262 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100019263 .name = "W25X20",
19264 .bustype = BUS_SPI,
19265 .manufacture_id = WINBOND_NEX_ID,
19266 .model_id = WINBOND_NEX_W25X20,
19267 .total_size = 256,
19268 .page_size = 256,
19269 .feature_bits = FEATURE_WRSR_WREN,
19270 .tested = TEST_OK_PREW,
19271 .probe = probe_spi_rdid,
19272 .probe_timing = TIMING_ZERO,
19273 .block_erasers =
19274 {
19275 {
19276 .eraseblocks = { {4 * 1024, 64} },
19277 .block_erase = spi_block_erase_20,
19278 }, {
19279 .eraseblocks = { {64 * 1024, 4} },
19280 .block_erase = spi_block_erase_d8,
19281 }, {
19282 .eraseblocks = { {256 * 1024, 1} },
19283 .block_erase = spi_block_erase_c7,
19284 }
19285 },
19286 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19287 .unlock = spi_disable_blockprotect,
19288 .write = spi_chip_write_256,
19289 .read = spi_chip_read,
19290 .voltage = {2700, 3600},
19291 },
19292
19293 {
19294 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000019295 .name = "W25X32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019296 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000019297 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000019298 .model_id = WINBOND_NEX_W25X32,
Zheng Bao1db2b752009-11-26 11:05:01 +000019299 .total_size = 4096,
19300 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000019301 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000019302 .tested = TEST_OK_PREW,
Zheng Bao1db2b752009-11-26 11:05:01 +000019303 .probe = probe_spi_rdid,
19304 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019305 .block_erasers =
19306 {
19307 {
19308 .eraseblocks = { {4 * 1024, 1024} },
19309 .block_erase = spi_block_erase_20,
19310 }, {
19311 .eraseblocks = { {32 * 1024, 128} },
19312 .block_erase = spi_block_erase_52,
19313 }, {
19314 .eraseblocks = { {64 * 1024, 64} },
19315 .block_erase = spi_block_erase_d8,
19316 }, {
19317 .eraseblocks = { {4 * 1024 * 1024, 1} },
19318 .block_erase = spi_block_erase_60,
19319 }, {
19320 .eraseblocks = { {4 * 1024 * 1024, 1} },
19321 .block_erase = spi_block_erase_c7,
19322 }
19323 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000019324 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000019325 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000019326 .write = spi_chip_write_256,
19327 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000019328 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000019329 },
19330
19331 {
19332 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100019333 .name = "W25X40",
19334 .bustype = BUS_SPI,
19335 .manufacture_id = WINBOND_NEX_ID,
19336 .model_id = WINBOND_NEX_W25X40,
19337 .total_size = 512,
19338 .page_size = 256,
19339 .feature_bits = FEATURE_WRSR_WREN,
19340 .tested = TEST_OK_PREW,
19341 .probe = probe_spi_rdid,
19342 .probe_timing = TIMING_ZERO,
19343 .block_erasers =
19344 {
19345 {
19346 .eraseblocks = { {4 * 1024, 128} },
19347 .block_erase = spi_block_erase_20,
19348 }, {
19349 .eraseblocks = { {64 * 1024, 8} },
19350 .block_erase = spi_block_erase_d8,
19351 }, {
19352 .eraseblocks = { {512 * 1024, 1} },
19353 .block_erase = spi_block_erase_c7,
19354 }
19355 },
19356 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19357 .unlock = spi_disable_blockprotect,
19358 .write = spi_chip_write_256,
19359 .read = spi_chip_read,
19360 .voltage = {2700, 3600},
19361 },
19362
19363 {
19364 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000019365 .name = "W25X64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019366 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000019367 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000019368 .model_id = WINBOND_NEX_W25X64,
Zheng Bao1db2b752009-11-26 11:05:01 +000019369 .total_size = 8192,
19370 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000019371 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000019372 .tested = TEST_OK_PREW,
Zheng Bao1db2b752009-11-26 11:05:01 +000019373 .probe = probe_spi_rdid,
19374 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019375 .block_erasers =
19376 {
19377 {
19378 .eraseblocks = { {4 * 1024, 2048} },
19379 .block_erase = spi_block_erase_20,
19380 }, {
19381 .eraseblocks = { {32 * 1024, 256} },
19382 .block_erase = spi_block_erase_52,
19383 }, {
19384 .eraseblocks = { {64 * 1024, 128} },
19385 .block_erase = spi_block_erase_d8,
19386 }, {
19387 .eraseblocks = { {8 * 1024 * 1024, 1} },
19388 .block_erase = spi_block_erase_60,
19389 }, {
19390 .eraseblocks = { {8 * 1024 * 1024, 1} },
19391 .block_erase = spi_block_erase_c7,
19392 }
19393 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000019394 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000019395 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000019396 .write = spi_chip_write_256,
19397 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000019398 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000019399 },
19400
19401 {
Alan Greenfa3fcd32019-06-27 15:41:50 +100019402 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100019403 .name = "W25X80",
Alan Greenfa3fcd32019-06-27 15:41:50 +100019404 .bustype = BUS_SPI,
19405 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100019406 .model_id = WINBOND_NEX_W25X80,
Alan Greenfa3fcd32019-06-27 15:41:50 +100019407 .total_size = 1024,
19408 .page_size = 256,
19409 .feature_bits = FEATURE_WRSR_WREN,
Alan Green1f9cc7d2019-07-01 11:10:45 +100019410 .tested = TEST_OK_PREW,
Alan Greenfa3fcd32019-06-27 15:41:50 +100019411 .probe = probe_spi_rdid,
19412 .probe_timing = TIMING_ZERO,
19413 .block_erasers =
David Hendricksc9ee0ed2018-02-11 17:40:53 -080019414 {
19415 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100019416 .eraseblocks = { {4 * 1024, 256} },
19417 .block_erase = spi_block_erase_20,
19418 }, {
David Hendricksc9ee0ed2018-02-11 17:40:53 -080019419 .eraseblocks = { {64 * 1024, 16} },
19420 .block_erase = spi_block_erase_d8,
19421 }, {
19422 .eraseblocks = { {1024 * 1024, 1} },
19423 .block_erase = spi_block_erase_c7,
19424 }
19425 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100019426 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19427 .unlock = spi_disable_blockprotect,
19428 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100019429 .read = spi_chip_read,
Alan Greenfa3fcd32019-06-27 15:41:50 +100019430 .voltage = {2700, 3600},
David Hendricksc9ee0ed2018-02-11 17:40:53 -080019431 },
19432
Alan Greenf29ea362019-06-27 17:14:02 +100019433 /* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */
19434 {
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000019435 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000019436 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019437 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019438 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000019439 .model_id = WINBOND_W29C010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019440 .total_size = 128,
19441 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000019442 .feature_bits = FEATURE_LONG_RESET,
David Hendricks567b7b82011-05-18 01:31:03 +000019443 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019444 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000019445 .probe_timing = 10, /* used datasheet for the W29C011A */
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019446 .block_erasers =
19447 {
19448 {
19449 .eraseblocks = { {128 * 1024, 1} },
19450 .block_erase = erase_chip_block_jedec,
19451 }
19452 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019453 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019454 .read = read_memmapped,
Nico Huber9eec4072023-01-12 01:17:30 +010019455 .prepare_access = prepare_memory_access,
19456 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000019457 },
19458
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019459 {
19460 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100019461 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old",
19462 .bustype = BUS_PARALLEL,
19463 .manufacture_id = WINBOND_ID,
19464 .model_id = WINBOND_W29C010,
19465 .total_size = 128,
19466 .page_size = 128,
19467 .feature_bits = FEATURE_LONG_RESET,
19468 .tested = TEST_OK_PREW,
19469 .probe = probe_w29ee011,
19470 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */
19471 .block_erasers =
19472 {
19473 {
19474 .eraseblocks = { {128 * 1024, 1} },
19475 .block_erase = erase_chip_block_jedec,
19476 }
19477 },
19478 .write = write_jedec,
19479 .read = read_memmapped,
Nico Huber9eec4072023-01-12 01:17:30 +010019480 .prepare_access = prepare_memory_access,
19481 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +100019482 },
19483
19484 {
19485 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000019486 .name = "W29C020(C)/W29C022",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019487 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019488 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000019489 .model_id = WINBOND_W29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019490 .total_size = 256,
19491 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000019492 .feature_bits = FEATURE_LONG_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000019493 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019494 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000019495 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019496 .block_erasers =
19497 {
19498 {
19499 .eraseblocks = { {256 * 1024, 1} },
19500 .block_erase = erase_chip_block_jedec,
19501 }
19502 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019503 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019504 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000019505 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010019506 .prepare_access = prepare_memory_access,
19507 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000019508 },
19509
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019510 {
19511 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000019512 .name = "W29C040/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019513 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019514 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000019515 .model_id = WINBOND_W29C040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019516 .total_size = 512,
19517 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000019518 .feature_bits = FEATURE_LONG_RESET,
19519 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019520 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000019521 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019522 .block_erasers =
19523 {
19524 {
19525 .eraseblocks = { {512 * 1024, 1} },
19526 .block_erase = erase_chip_block_jedec,
19527 }
19528 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019529 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019530 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000019531 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010019532 .prepare_access = prepare_memory_access,
19533 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000019534 },
19535
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019536 {
19537 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100019538 .name = "W29C512A/W29EE512",
19539 .bustype = BUS_PARALLEL,
19540 .manufacture_id = WINBOND_ID,
19541 .model_id = WINBOND_W29C512A,
19542 .total_size = 64,
19543 .page_size = 128,
19544 .feature_bits = FEATURE_LONG_RESET,
19545 .tested = TEST_OK_PREW,
19546 .probe = probe_jedec,
19547 .probe_timing = 10,
19548 .block_erasers =
19549 {
19550 {
19551 .eraseblocks = { {64 * 1024, 1} },
19552 .block_erase = erase_chip_block_jedec,
19553 }
19554 },
19555 .write = write_jedec,
19556 .read = read_memmapped,
19557 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010019558 .prepare_access = prepare_memory_access,
19559 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +100019560 },
19561
19562 {
19563 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000019564 .name = "W29GL032CB",
19565 .bustype = BUS_PARALLEL,
19566 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
19567 .model_id = WINBOND_W29GL032CB,
19568 .total_size = 4096,
19569 .page_size = 128 * 1024, /* actual page size is 16 */
19570 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
19571 .tested = TEST_UNTESTED,
19572 .probe = probe_jedec_29gl,
19573 .probe_timing = TIMING_ZERO,
19574 .block_erasers =
19575 {
19576 {
19577 .eraseblocks = {
19578 {8 * 1024, 8},
19579 {64 * 1024, 63},
19580 },
19581 .block_erase = erase_sector_jedec,
19582 }, {
19583 .eraseblocks = { {4 * 1024 * 1024, 1} },
19584 .block_erase = erase_chip_block_jedec,
19585 },
19586 },
19587 .write = write_jedec_1,
19588 .read = read_memmapped,
19589 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010019590 .prepare_access = prepare_memory_access,
19591 .finish_access = finish_memory_access,
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000019592 },
19593
19594 {
19595 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100019596 .name = "W29GL032CH/L",
19597 .bustype = BUS_PARALLEL,
19598 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
19599 .model_id = WINBOND_W29GL032CHL,
19600 .total_size = 4096,
19601 .page_size = 128 * 1024, /* actual page size is 16 */
19602 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
19603 .tested = TEST_UNTESTED,
19604 .probe = probe_jedec_29gl,
19605 .probe_timing = TIMING_ZERO,
19606 .block_erasers =
19607 {
19608 {
19609 .eraseblocks = { {64 * 1024, 64} },
19610 .block_erase = erase_sector_jedec,
19611 }, {
19612 .eraseblocks = { {4 * 1024 * 1024, 1} },
19613 .block_erase = erase_chip_block_jedec,
19614 },
19615 },
19616 .write = write_jedec_1,
19617 .read = read_memmapped,
19618 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010019619 .prepare_access = prepare_memory_access,
19620 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +100019621 },
19622
19623 {
19624 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000019625 .name = "W29GL032CT",
19626 .bustype = BUS_PARALLEL,
19627 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
19628 .model_id = WINBOND_W29GL032CT,
19629 .total_size = 4096,
19630 .page_size = 128 * 1024, /* actual page size is 16 */
19631 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
19632 .tested = TEST_UNTESTED,
19633 .probe = probe_jedec_29gl,
19634 .probe_timing = TIMING_ZERO,
19635 .block_erasers =
19636 {
19637 {
19638 .eraseblocks = {
19639 {64 * 1024, 63},
19640 {8 * 1024, 8},
19641 },
19642 .block_erase = erase_sector_jedec,
19643 }, {
19644 .eraseblocks = { {4 * 1024 * 1024, 1} },
19645 .block_erase = erase_chip_block_jedec,
19646 },
19647 },
19648 .write = write_jedec_1,
19649 .read = read_memmapped,
19650 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010019651 .prepare_access = prepare_memory_access,
19652 .finish_access = finish_memory_access,
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000019653 },
19654
19655 {
19656 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000019657 .name = "W29GL064CB",
19658 .bustype = BUS_PARALLEL,
19659 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
19660 .model_id = WINBOND_W29GL064CB,
19661 .total_size = 8192,
19662 .page_size = 128 * 1024, /* actual page size is 16 */
19663 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
19664 .tested = TEST_UNTESTED,
19665 .probe = probe_jedec_29gl,
19666 .probe_timing = TIMING_ZERO,
19667 .block_erasers =
19668 {
19669 {
19670 .eraseblocks = {
19671 {8 * 1024, 8},
19672 {64 * 1024, 127},
19673 },
19674 .block_erase = erase_sector_jedec,
19675 }, {
19676 .eraseblocks = { {8 * 1024 * 1024, 1} },
19677 .block_erase = erase_chip_block_jedec,
19678 },
19679 },
19680 .write = write_jedec_1,
19681 .read = read_memmapped,
19682 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010019683 .prepare_access = prepare_memory_access,
19684 .finish_access = finish_memory_access,
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000019685 },
19686
19687 {
19688 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100019689 .name = "W29GL064CH/L",
19690 .bustype = BUS_PARALLEL,
19691 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
19692 .model_id = WINBOND_W29GL064CHL,
19693 .total_size = 8192,
19694 .page_size = 128 * 1024, /* actual page size is 16 */
19695 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
19696 .tested = TEST_UNTESTED,
19697 .probe = probe_jedec_29gl,
19698 .probe_timing = TIMING_ZERO,
19699 .block_erasers =
19700 {
19701 {
19702 .eraseblocks = { {64 * 1024, 128} },
19703 .block_erase = erase_sector_jedec,
19704 }, {
19705 .eraseblocks = { {8 * 1024 * 1024, 1} },
19706 .block_erase = erase_chip_block_jedec,
19707 },
19708 },
19709 .write = write_jedec_1,
19710 .read = read_memmapped,
19711 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010019712 .prepare_access = prepare_memory_access,
19713 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +100019714 },
19715
19716 {
19717 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000019718 .name = "W29GL064CT",
19719 .bustype = BUS_PARALLEL,
19720 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
19721 .model_id = WINBOND_W29GL064CT,
19722 .total_size = 8192,
19723 .page_size = 128 * 1024, /* actual page size is 16 */
19724 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
19725 .tested = TEST_UNTESTED,
19726 .probe = probe_jedec_29gl,
19727 .probe_timing = TIMING_ZERO,
19728 .block_erasers =
19729 {
19730 {
19731 .eraseblocks = {
19732 {64 * 1024, 127},
19733 {8 * 1024, 8},
19734 },
19735 .block_erase = erase_sector_jedec,
19736 }, {
19737 .eraseblocks = { {8 * 1024 * 1024, 1} },
19738 .block_erase = erase_chip_block_jedec,
19739 },
19740 },
19741 .write = write_jedec_1,
19742 .read = read_memmapped,
19743 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010019744 .prepare_access = prepare_memory_access,
19745 .finish_access = finish_memory_access,
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000019746 },
19747
19748 {
19749 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000019750 .name = "W29GL128C",
19751 .bustype = BUS_PARALLEL,
19752 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
19753 .model_id = WINBOND_W29GL128CHL,
19754 .total_size = 16384,
19755 .page_size = 128 * 1024, /* actual page size is 16 */
19756 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
19757 .tested = TEST_UNTESTED,
19758 .probe = probe_jedec_29gl,
19759 .probe_timing = TIMING_ZERO,
19760 .block_erasers =
19761 {
19762 {
19763 .eraseblocks = { {128 * 1024, 128} },
19764 .block_erase = erase_sector_jedec,
19765 }, {
19766 .eraseblocks = { {16 * 1024 * 1024, 1} },
19767 .block_erase = erase_chip_block_jedec,
19768 },
19769 },
19770 .write = write_jedec_1,
19771 .read = read_memmapped,
19772 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010019773 .prepare_access = prepare_memory_access,
19774 .finish_access = finish_memory_access,
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000019775 },
19776
19777 {
19778 .vendor = "Winbond",
Kyösti Mälkkic31243e2012-10-28 01:50:08 +000019779 .name = "W39F010",
19780 .bustype = BUS_PARALLEL,
19781 .manufacture_id = WINBOND_ID,
19782 .model_id = WINBOND_W39F010,
19783 .total_size = 128,
19784 .page_size = 4 * 1024,
19785 .feature_bits = FEATURE_EITHER_RESET,
19786 .tested = TEST_OK_PREW,
19787 .probe = probe_jedec,
19788 .probe_timing = 10,
19789 .block_erasers =
19790 {
19791 {
19792 .eraseblocks = { {4 * 1024, 32} },
19793 .block_erase = erase_block_jedec,
19794 }, {
19795 .eraseblocks = { {128 * 1024, 1} },
19796 .block_erase = erase_chip_block_jedec,
19797 }
19798 },
19799 .printlock = printlock_w39f010,
19800 .write = write_jedec_1,
19801 .read = read_memmapped,
19802 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010019803 .prepare_access = prepare_memory_access,
19804 .finish_access = finish_memory_access,
Kyösti Mälkkic31243e2012-10-28 01:50:08 +000019805 },
19806
19807 {
19808 .vendor = "Winbond",
19809 .name = "W39L010",
19810 .bustype = BUS_PARALLEL,
19811 .manufacture_id = WINBOND_ID,
19812 .model_id = WINBOND_W39L010,
19813 .total_size = 128,
19814 .page_size = 4 * 1024,
19815 .feature_bits = FEATURE_EITHER_RESET,
19816 .tested = TEST_UNTESTED,
19817 .probe = probe_jedec,
19818 .probe_timing = 10,
19819 .block_erasers =
19820 {
19821 {
19822 .eraseblocks = { {4 * 1024, 32} },
19823 .block_erase = erase_block_jedec,
19824 }, {
19825 .eraseblocks = { {128 * 1024, 1} },
19826 .block_erase = erase_chip_block_jedec,
19827 }
19828 },
19829 .printlock = printlock_w39l010,
19830 .write = write_jedec_1,
19831 .read = read_memmapped,
19832 .voltage = {3000, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010019833 .prepare_access = prepare_memory_access,
19834 .finish_access = finish_memory_access,
Kyösti Mälkkic31243e2012-10-28 01:50:08 +000019835 },
19836
19837 {
19838 .vendor = "Winbond",
19839 .name = "W39L020",
19840 .bustype = BUS_PARALLEL,
19841 .manufacture_id = WINBOND_ID,
19842 .model_id = WINBOND_W39L020,
19843 .total_size = 256,
19844 .page_size = 4 * 1024,
19845 .feature_bits = FEATURE_EITHER_RESET,
19846 .tested = TEST_UNTESTED,
19847 .probe = probe_jedec,
19848 .probe_timing = 10,
19849 .block_erasers =
19850 {
19851 {
19852 .eraseblocks = { {4 * 1024, 64} },
19853 .block_erase = erase_block_jedec,
19854 }, {
19855 .eraseblocks = { {64 * 1024, 4} },
19856 .block_erase = erase_sector_jedec,
19857 }, {
19858 .eraseblocks = { {256 * 1024, 1} },
19859 .block_erase = erase_chip_block_jedec,
19860 }
19861 },
19862 .printlock = printlock_w39l020,
19863 .write = write_jedec_1,
19864 .read = read_memmapped,
19865 .voltage = {3000, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010019866 .prepare_access = prepare_memory_access,
19867 .finish_access = finish_memory_access,
Kyösti Mälkkic31243e2012-10-28 01:50:08 +000019868 },
19869
19870 {
19871 .vendor = "Winbond",
Michael Karcher19e0aac2011-03-06 17:58:05 +000019872 .name = "W39L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019873 .bustype = BUS_PARALLEL,
Michael Karcher19e0aac2011-03-06 17:58:05 +000019874 .manufacture_id = WINBOND_ID,
19875 .model_id = WINBOND_W39L040,
19876 .total_size = 512,
19877 .page_size = 64 * 1024,
19878 .feature_bits = FEATURE_EITHER_RESET,
19879 .tested = TEST_OK_PR,
19880 .probe = probe_jedec,
19881 .probe_timing = 10,
19882 .block_erasers =
19883 {
19884 {
19885 .eraseblocks = { {4 * 1024, 128} },
19886 .block_erase = erase_block_jedec,
19887 }, {
19888 .eraseblocks = { {64 * 1024, 8} },
19889 .block_erase = erase_sector_jedec,
19890 }, {
19891 .eraseblocks = { {512 * 1024, 1} },
19892 .block_erase = erase_chip_block_jedec,
19893 }
19894 },
19895 .printlock = printlock_w39l040,
19896 .write = write_jedec_1,
19897 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000019898 .voltage = {3000, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010019899 .prepare_access = prepare_memory_access,
19900 .finish_access = finish_memory_access,
Michael Karcher19e0aac2011-03-06 17:58:05 +000019901 },
19902
19903 {
19904 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019905 .name = "W39V040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019906 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019907 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000019908 .model_id = WINBOND_W39V040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019909 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000019910 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000019911 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000019912 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019913 .probe = probe_jedec,
Stefan Tauner716e0982011-07-25 20:38:52 +000019914 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019915 .block_erasers =
19916 {
19917 {
19918 .eraseblocks = { {64 * 1024, 8} },
19919 .block_erase = erase_sector_jedec,
19920 }, {
19921 .eraseblocks = { {512 * 1024, 1} },
19922 .block_erase = erase_chip_block_jedec,
19923 }
19924 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000019925 .printlock = printlock_w39v040a,
Sean Nelson35727f72010-01-28 23:55:12 +000019926 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019927 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000019928 .voltage = {3000, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010019929 .prepare_access = prepare_memory_access,
19930 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000019931 },
19932
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019933 {
19934 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000019935 .name = "W39V040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019936 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019937 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000019938 .model_id = WINBOND_W39V040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019939 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000019940 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000019941 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000019942 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019943 .probe = probe_jedec,
Paul Menzel018d4822011-10-21 12:33:07 +000019944 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019945 .block_erasers =
19946 {
19947 {
19948 .eraseblocks = { {64 * 1024, 8} },
19949 .block_erase = erase_sector_jedec,
19950 }, {
19951 .eraseblocks = { {512 * 1024, 1} },
19952 .block_erase = erase_chip_block_jedec,
19953 }
19954 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000019955 .printlock = printlock_w39v040b,
Sean Nelson35727f72010-01-28 23:55:12 +000019956 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019957 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000019958 .voltage = {3000, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010019959 .prepare_access = prepare_memory_access,
19960 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000019961 },
19962
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019963 {
19964 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000019965 .name = "W39V040C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019966 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019967 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000019968 .model_id = WINBOND_W39V040C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019969 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000019970 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000019971 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000019972 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +000019973 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000019974 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019975 .block_erasers =
19976 {
19977 {
19978 .eraseblocks = { {64 * 1024, 8} },
19979 .block_erase = erase_sector_jedec,
19980 }, {
19981 .eraseblocks = { {512 * 1024, 1} },
19982 .block_erase = erase_chip_block_jedec,
19983 }
19984 },
Sean Nelson6e0b9122010-02-19 00:52:10 +000019985 .printlock = printlock_w39v040c,
Sean Nelson35727f72010-01-28 23:55:12 +000019986 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019987 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000019988 .voltage = {3000, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010019989 .prepare_access = prepare_memory_access,
19990 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000019991 },
19992
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019993 {
19994 .vendor = "Winbond",
19995 .name = "W39V040FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019996 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019997 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000019998 .model_id = WINBOND_W39V040FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019999 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000020000 .page_size = 64 * 1024,
Nico Huberb1974022023-01-12 13:13:12 +010020001 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner23e10b82016-01-23 16:16:49 +000020002 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020003 .probe = probe_jedec,
Antony Rheneus0fbba982011-05-26 14:28:51 +000020004 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000020005 .block_erasers =
20006 {
20007 {
20008 .eraseblocks = { {4 * 1024, 128} },
20009 .block_erase = erase_block_jedec,
20010 }, {
20011 .eraseblocks = { {64 * 1024, 8} },
20012 .block_erase = erase_sector_jedec,
20013 }, {
20014 .eraseblocks = { {512 * 1024, 1} },
20015 .block_erase = erase_chip_block_jedec,
20016 }
20017 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000020018 .printlock = printlock_w39v040fa,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000020019 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000020020 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000020021 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000020022 .voltage = {3000, 3600},
Nico Huberb1974022023-01-12 13:13:12 +010020023 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010020024 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000020025 },
20026
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020027 {
20028 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000020029 .name = "W39V040FB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020030 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000020031 .manufacture_id = WINBOND_ID,
20032 .model_id = WINBOND_W39V040B,
20033 .total_size = 512,
20034 .page_size = 64 * 1024,
Nico Huberb1974022023-01-12 13:13:12 +010020035 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner0be072c2016-03-13 15:16:30 +000020036 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000020037 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000020038 .probe_timing = 10,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000020039 .block_erasers =
20040 {
20041 {
20042 .eraseblocks = { {64 * 1024, 8} },
20043 .block_erase = erase_sector_jedec,
20044 }, {
20045 .eraseblocks = { {512 * 1024, 1} },
20046 .block_erase = erase_chip_block_jedec,
20047 }
20048 },
20049 .printlock = printlock_w39v040fb,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000020050 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000020051 .write = write_jedec_1,
20052 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000020053 .voltage = {3000, 3600}, /* Also has 12V fast program */
Nico Huberb1974022023-01-12 13:13:12 +010020054 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010020055 .finish_access = finish_memory_access,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000020056 },
20057
20058 {
20059 .vendor = "Winbond",
20060 .name = "W39V040FC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020061 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000020062 .manufacture_id = WINBOND_ID,
20063 .model_id = WINBOND_W39V040C,
20064 .total_size = 512,
20065 .page_size = 64 * 1024,
Nico Huberb1974022023-01-12 13:13:12 +010020066 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +000020067 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000020068 .probe = probe_jedec,
20069 .probe_timing = 10,
20070 .block_erasers =
20071 {
20072 {
20073 .eraseblocks = { {64 * 1024, 8} },
20074 .block_erase = erase_sector_jedec,
20075 }, {
20076 .eraseblocks = { {512 * 1024, 1} },
20077 .block_erase = erase_chip_block_jedec,
20078 }
20079 },
20080 .printlock = printlock_w39v040fc,
20081 .write = write_jedec_1,
20082 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000020083 .voltage = {3000, 3600}, /* Also has 12V fast program */
Nico Huberb1974022023-01-12 13:13:12 +010020084 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010020085 .finish_access = finish_memory_access,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000020086 },
20087
20088 {
20089 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020090 .name = "W39V080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020091 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020092 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000020093 .model_id = WINBOND_W39V080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020094 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000020095 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000020096 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +000020097 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020098 .probe = probe_jedec,
Paul Menzelac427b22012-02-16 21:07:07 +000020099 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000020100 .block_erasers =
20101 {
20102 {
20103 .eraseblocks = { {64 * 1024, 16} },
20104 .block_erase = erase_sector_jedec,
20105 }, {
20106 .eraseblocks = { {1024 * 1024, 1} },
20107 .block_erase = erase_chip_block_jedec,
20108 }
20109 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000020110 .printlock = printlock_w39v080a,
Sean Nelson35727f72010-01-28 23:55:12 +000020111 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000020112 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000020113 .voltage = {3000, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010020114 .prepare_access = prepare_memory_access,
20115 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000020116 },
20117
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020118 {
20119 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100020120 .name = "W39V080FA",
20121 .bustype = BUS_FWH,
20122 .manufacture_id = WINBOND_ID,
20123 .model_id = WINBOND_W39V080FA,
20124 .total_size = 1024,
20125 .page_size = 64 * 1024,
Nico Huberb1974022023-01-12 13:13:12 +010020126 .feature_bits = FEATURE_EITHER_RESET,
Alan Green1f9cc7d2019-07-01 11:10:45 +100020127 .tested = TEST_OK_PREW,
20128 .probe = probe_jedec,
20129 .probe_timing = 10,
20130 .block_erasers =
20131 {
20132 {
20133 .eraseblocks = { {64 * 1024, 16} },
20134 .block_erase = erase_sector_jedec,
20135 }, {
20136 .eraseblocks = { {1024 * 1024, 1} },
20137 .block_erase = erase_chip_block_jedec,
20138 }
20139 },
20140 .printlock = printlock_w39v080fa,
20141 .unlock = unlock_regspace2_uniform_64k,
20142 .write = write_jedec_1,
20143 .read = read_memmapped,
20144 .voltage = {3000, 3600}, /* Also has 12V fast program */
Nico Huberb1974022023-01-12 13:13:12 +010020145 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010020146 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +100020147 },
20148
20149 {
20150 .vendor = "Winbond",
20151 .name = "W39V080FA (dual mode)",
20152 .bustype = BUS_FWH,
20153 .manufacture_id = WINBOND_ID,
20154 .model_id = WINBOND_W39V080FA_DM,
20155 .total_size = 512,
20156 .page_size = 64 * 1024,
Nico Huberb1974022023-01-12 13:13:12 +010020157 .feature_bits = FEATURE_EITHER_RESET,
Alan Green1f9cc7d2019-07-01 11:10:45 +100020158 .tested = TEST_UNTESTED,
20159 .probe = probe_jedec,
20160 .probe_timing = 10,
20161 .block_erasers =
20162 {
20163 {
20164 .eraseblocks = { {64 * 1024, 8} },
20165 .block_erase = erase_sector_jedec,
20166 }, {
20167 .eraseblocks = { {512 * 1024, 1} },
20168 .block_erase = erase_chip_block_jedec,
20169 }
20170 },
20171 .printlock = printlock_w39v080fa_dual,
20172 .write = write_jedec_1,
20173 .read = read_memmapped,
20174 .voltage = {3000, 3600}, /* Also has 12V fast program */
Nico Huberb1974022023-01-12 13:13:12 +010020175 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010020176 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +100020177 },
20178
20179 {
20180 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000020181 .name = "W49F002U/N",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020182 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020183 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000020184 .model_id = WINBOND_W49F002U,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020185 .total_size = 256,
20186 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000020187 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000020188 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020189 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000020190 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000020191 .block_erasers =
20192 {
20193 {
20194 .eraseblocks = {
20195 {128 * 1024, 1},
20196 {96 * 1024, 1},
20197 {8 * 1024, 2},
20198 {16 * 1024, 1},
20199 },
20200 .block_erase = erase_sector_jedec,
20201 }, {
20202 .eraseblocks = { {256 * 1024, 1} },
20203 .block_erase = erase_chip_block_jedec,
20204 }
20205 },
Sean Nelson35727f72010-01-28 23:55:12 +000020206 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000020207 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000020208 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010020209 .prepare_access = prepare_memory_access,
20210 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000020211 },
20212
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020213 {
20214 .vendor = "Winbond",
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000020215 .name = "W49F020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020216 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000020217 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000020218 .model_id = WINBOND_W49F020,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000020219 .total_size = 256,
20220 .page_size = 128,
20221 .feature_bits = FEATURE_EITHER_RESET,
20222 .tested = TEST_OK_PROBE,
20223 .probe = probe_jedec,
20224 .probe_timing = 10,
20225 .block_erasers =
20226 {
20227 {
20228 .eraseblocks = { {256 * 1024, 1} },
20229 .block_erase = erase_chip_block_jedec,
20230 }
20231 },
20232 .write = write_jedec_1,
20233 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000020234 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010020235 .prepare_access = prepare_memory_access,
20236 .finish_access = finish_memory_access,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000020237 },
20238
20239 {
20240 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020241 .name = "W49V002A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020242 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020243 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000020244 .model_id = WINBOND_W49V002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020245 .total_size = 256,
20246 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000020247 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000020248 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020249 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000020250 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000020251 .block_erasers =
20252 {
20253 {
20254 .eraseblocks = {
20255 {64 * 1024, 3},
20256 {32 * 1024, 1},
20257 {8 * 1024, 2},
20258 {16 * 1024, 1},
20259 },
20260 .block_erase = erase_sector_jedec,
20261 }, {
20262 .eraseblocks = { {256 * 1024, 1} },
20263 .block_erase = erase_chip_block_jedec,
20264 }
20265 },
Sean Nelson35727f72010-01-28 23:55:12 +000020266 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000020267 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000020268 .voltage = {3000, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010020269 .prepare_access = prepare_memory_access,
20270 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000020271 },
20272
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020273 {
20274 .vendor = "Winbond",
20275 .name = "W49V002FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020276 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020277 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000020278 .model_id = WINBOND_W49V002FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020279 .total_size = 256,
20280 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000020281 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000020282 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020283 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000020284 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000020285 .block_erasers =
20286 {
20287 {
20288 .eraseblocks = {
20289 {64 * 1024, 3},
20290 {32 * 1024, 1},
20291 {8 * 1024, 2},
20292 {16 * 1024, 1},
20293 },
20294 .block_erase = erase_sector_jedec,
20295 }, {
20296 .eraseblocks = { {256 * 1024, 1} },
20297 .block_erase = erase_chip_block_jedec,
20298 }
20299 },
Sean Nelson35727f72010-01-28 23:55:12 +000020300 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000020301 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000020302 .voltage = {3000, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010020303 .prepare_access = prepare_memory_access,
20304 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000020305 },
20306
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020307 {
luke heef884232020-12-28 18:22:21 +080020308 .vendor = "XMC",
20309 .name = "XM25QH128C",
20310 .bustype = BUS_SPI,
20311 .manufacture_id = ST_ID,
20312 .model_id = XMC_XM25QH128C,
20313 .total_size = 16384,
20314 .page_size = 256,
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110020315 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_WRSR2,
luke heef884232020-12-28 18:22:21 +080020316 .tested = TEST_UNTESTED,
20317 .probe = probe_spi_rdid,
20318 .probe_timing = TIMING_ZERO,
20319 .block_erasers =
20320 {
20321 {
20322 .eraseblocks = { {4 * 1024, 4096} },
20323 .block_erase = spi_block_erase_20,
20324 }, {
20325 .eraseblocks = { {32 * 1024, 512} },
20326 .block_erase = spi_block_erase_52,
20327 }, {
20328 .eraseblocks = { {64 * 1024, 256} },
20329 .block_erase = spi_block_erase_d8,
20330 }, {
20331 .eraseblocks = { {16 * 1024 * 1024, 1} },
20332 .block_erase = spi_block_erase_60,
20333 }, {
20334 .eraseblocks = { {16 * 1024 * 1024, 1} },
20335 .block_erase = spi_block_erase_c7,
20336 }
20337 },
20338 .printlock = spi_prettyprint_status_register_plain,
20339 .unlock = spi_disable_blockprotect,
20340 .write = spi_chip_write_256,
20341 .read = spi_chip_read,
20342 .voltage = {2700, 3600},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110020343 .reg_bits =
20344 {
20345 .srp = {STATUS1, 7, RW},
20346 .srl = {STATUS2, 0, RW},
20347 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
20348 .tb = {STATUS1, 5, RW},
20349 .sec = {STATUS1, 6, RW},
20350 .cmp = {STATUS2, 6, RW},
20351 },
20352 .decode_range = decode_range_spi25,
luke heef884232020-12-28 18:22:21 +080020353 },
20354
20355 {
20356 .vendor = "XMC",
20357 .name = "XM25QH256C",
20358 .bustype = BUS_SPI,
20359 .manufacture_id = ST_ID,
20360 .model_id = XMC_XM25QH256C,
20361 .total_size = 32768,
20362 .page_size = 256,
20363 /* supports SFDP */
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110020364 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN | FEATURE_WRSR2,
luke heef884232020-12-28 18:22:21 +080020365 .tested = TEST_UNTESTED,
20366 .probe = probe_spi_rdid,
20367 .probe_timing = TIMING_ZERO,
20368 .block_erasers =
20369 {
20370 {
20371 .eraseblocks = { {4 * 1024, 8192} },
20372 .block_erase = spi_block_erase_21,
20373 }, {
20374 .eraseblocks = { {4 * 1024, 8192} },
20375 .block_erase = spi_block_erase_20,
20376 }, {
20377 .eraseblocks = { {32 * 1024, 1024} },
20378 .block_erase = spi_block_erase_52,
20379 }, {
20380 .eraseblocks = { {64 * 1024, 512} },
20381 .block_erase = spi_block_erase_dc,
20382 }, {
20383 .eraseblocks = { {64 * 1024, 512} },
20384 .block_erase = spi_block_erase_d8,
20385 }, {
20386 .eraseblocks = { {32 * 1024 * 1024, 1} },
20387 .block_erase = spi_block_erase_60,
20388 }, {
20389 .eraseblocks = { {32 * 1024 * 1024, 1} },
20390 .block_erase = spi_block_erase_c7,
20391 }
20392 },
20393 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
20394 .unlock = spi_disable_blockprotect,
20395 .write = spi_chip_write_256,
20396 .read = spi_chip_read,
20397 .voltage = {2700, 3600},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110020398 .reg_bits =
20399 {
20400 .srp = {STATUS1, 7, RW},
20401 .srl = {STATUS2, 0, RW},
20402 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}},
20403 .tb = {STATUS1, 6, RW},
20404 },
20405 .decode_range = decode_range_spi25,
Nico Huberab6b18f2023-01-11 23:38:20 +010020406 .prepare_access = spi_prepare_4ba,
luke heef884232020-12-28 18:22:21 +080020407 },
20408
20409 {
20410 .vendor = "XMC",
20411 .name = "XM25QH64C",
20412 .bustype = BUS_SPI,
20413 .manufacture_id = ST_ID,
20414 .model_id = XMC_XM25QH64C,
20415 .total_size = 8192,
20416 .page_size = 256,
20417 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
20418 .tested = TEST_UNTESTED,
20419 .probe = probe_spi_rdid,
20420 .probe_timing = TIMING_ZERO,
20421 .block_erasers =
20422 {
20423 {
20424 .eraseblocks = { {4 * 1024, 2048} },
20425 .block_erase = spi_block_erase_20,
20426 }, {
20427 .eraseblocks = { {32 * 1024, 256} },
20428 .block_erase = spi_block_erase_52,
20429 }, {
20430 .eraseblocks = { {64 * 1024, 128} },
20431 .block_erase = spi_block_erase_d8,
20432 }, {
20433 .eraseblocks = { {8 * 1024 * 1024, 1} },
20434 .block_erase = spi_block_erase_60,
20435 }, {
20436 .eraseblocks = { {8 * 1024 * 1024, 1} },
20437 .block_erase = spi_block_erase_c7,
20438 }
20439 },
20440 .printlock = spi_prettyprint_status_register_plain,
20441 .unlock = spi_disable_blockprotect,
20442 .write = spi_chip_write_256,
20443 .read = spi_chip_read,
20444 .voltage = {2700, 3600},
20445 },
20446
20447 {
20448 .vendor = "XMC",
20449 .name = "XM25QU128C",
20450 .bustype = BUS_SPI,
20451 .manufacture_id = ST_ID,
20452 .model_id = XMC_XM25QU128C,
20453 .total_size = 16384,
20454 .page_size = 256,
20455 /* supports SFDP */
20456 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
20457 .tested = TEST_UNTESTED,
20458 .probe = probe_spi_rdid,
20459 .probe_timing = TIMING_ZERO,
20460 .block_erasers =
20461 {
20462 {
20463 .eraseblocks = { {4 * 1024, 4096} },
20464 .block_erase = spi_block_erase_20,
20465 }, {
20466 .eraseblocks = { {32 * 1024, 512} },
20467 .block_erase = spi_block_erase_52,
20468 }, {
20469 .eraseblocks = { {64 * 1024, 256} },
20470 .block_erase = spi_block_erase_d8,
20471 }, {
20472 .eraseblocks = { {16 * 1024 * 1024, 1} },
20473 .block_erase = spi_block_erase_60,
20474 }, {
20475 .eraseblocks = { {16 * 1024 * 1024, 1} },
20476 .block_erase = spi_block_erase_c7,
20477 }
20478 },
20479 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
20480 .unlock = spi_disable_blockprotect,
20481 .write = spi_chip_write_256,
20482 .read = spi_chip_read,
20483 .voltage = {1650, 1950},
20484 },
20485
20486 {
20487 .vendor = "XMC",
20488 .name = "XM25QU256C",
20489 .bustype = BUS_SPI,
20490 .manufacture_id = ST_ID,
20491 .model_id = XMC_XM25QU256C,
20492 .total_size = 32768,
20493 .page_size = 256,
20494 /* supports SFDP */
20495 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
20496 .tested = TEST_UNTESTED,
20497 .probe = probe_spi_rdid,
20498 .probe_timing = TIMING_ZERO,
20499 .block_erasers =
20500 {
20501 {
20502 .eraseblocks = { {4 * 1024, 8192} },
20503 .block_erase = spi_block_erase_21,
20504 }, {
20505 .eraseblocks = { {4 * 1024, 8192} },
20506 .block_erase = spi_block_erase_20,
20507 }, {
20508 .eraseblocks = { {32 * 1024, 1024} },
20509 .block_erase = spi_block_erase_52,
20510 }, {
20511 .eraseblocks = { {64 * 1024, 512} },
20512 .block_erase = spi_block_erase_dc,
20513 }, {
20514 .eraseblocks = { {64 * 1024, 512} },
20515 .block_erase = spi_block_erase_d8,
20516 }, {
20517 .eraseblocks = { {32 * 1024 * 1024, 1} },
20518 .block_erase = spi_block_erase_60,
20519 }, {
20520 .eraseblocks = { {32 * 1024 * 1024, 1} },
20521 .block_erase = spi_block_erase_c7,
20522 }
20523 },
20524 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
20525 .unlock = spi_disable_blockprotect,
20526 .write = spi_chip_write_256,
20527 .read = spi_chip_read,
20528 .voltage = {1650, 1950},
Nico Huberab6b18f2023-01-11 23:38:20 +010020529 .prepare_access = spi_prepare_4ba,
luke heef884232020-12-28 18:22:21 +080020530 },
20531
20532 {
20533 .vendor = "XMC",
20534 .name = "XM25QU64C",
20535 .bustype = BUS_SPI,
20536 .manufacture_id = ST_ID,
20537 .model_id = XMC_XM25QU64C,
20538 .total_size = 8192,
20539 .page_size = 256,
20540 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
20541 .tested = TEST_UNTESTED,
20542 .probe = probe_spi_rdid,
20543 .probe_timing = TIMING_ZERO,
20544 .block_erasers =
20545 {
20546 {
20547 .eraseblocks = { {4 * 1024, 2048} },
20548 .block_erase = spi_block_erase_20,
20549 }, {
20550 .eraseblocks = { {32 * 1024, 256} },
20551 .block_erase = spi_block_erase_52,
20552 }, {
20553 .eraseblocks = { {64 * 1024, 128} },
20554 .block_erase = spi_block_erase_d8,
20555 }, {
20556 .eraseblocks = { {8 * 1024 * 1024, 1} },
20557 .block_erase = spi_block_erase_60,
20558 }, {
20559 .eraseblocks = { {8 * 1024 * 1024, 1} },
20560 .block_erase = spi_block_erase_c7,
20561 }
20562 },
20563 .printlock = spi_prettyprint_status_register_plain,
20564 .unlock = spi_disable_blockprotect,
20565 .write = spi_chip_write_256,
20566 .read = spi_chip_read,
20567 .voltage = {1650, 1950},
20568 },
20569
20570 {
Alan Greenfa3fcd32019-06-27 15:41:50 +100020571 .vendor = "Zetta Device",
20572 .name = "ZD25D20",
20573 .bustype = BUS_SPI,
20574 .manufacture_id = ZETTADEVICE_ID,
20575 .model_id = ZETTADEVICE_ZD25D20,
20576 .total_size = 256,
20577 .page_size = 256,
20578 .feature_bits = FEATURE_WRSR_WREN,
20579 .tested = TEST_UNTESTED,
20580 .probe = probe_spi_rdid,
20581 .probe_timing = TIMING_ZERO,
20582 .block_erasers =
David Hendricksa72d5a92018-02-11 17:58:44 -080020583 {
20584 {
20585 .eraseblocks = { {4 * 1024, 64} },
20586 .block_erase = spi_block_erase_20,
20587 }, {
20588 .eraseblocks = { {32 * 1024, 8} },
20589 .block_erase = spi_block_erase_52,
20590 }, {
20591 .eraseblocks = { {64 * 1024, 4} },
20592 .block_erase = spi_block_erase_d8,
20593 }, {
20594 .eraseblocks = { {256 * 1024, 1} },
20595 .block_erase = spi_block_erase_60,
20596 }, {
20597 .eraseblocks = { {256 * 1024, 1} },
20598 .block_erase = spi_block_erase_c7,
20599 }
20600 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100020601 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
20602 .unlock = spi_disable_blockprotect,
20603 .write = spi_chip_write_256,
20604 .read = spi_chip_read,
20605 .voltage = {2700, 3600},
David Hendricksa72d5a92018-02-11 17:58:44 -080020606 },
20607
20608 {
Alan Greenfa3fcd32019-06-27 15:41:50 +100020609 .vendor = "Zetta Device",
20610 .name = "ZD25D40",
20611 .bustype = BUS_SPI,
20612 .manufacture_id = ZETTADEVICE_ID,
20613 .model_id = ZETTADEVICE_ZD25D40,
20614 .total_size = 512,
20615 .page_size = 256,
20616 .feature_bits = FEATURE_WRSR_WREN,
20617 .tested = TEST_UNTESTED,
20618 .probe = probe_spi_rdid,
20619 .probe_timing = TIMING_ZERO,
20620 .block_erasers =
nybashcbb46e22018-02-11 17:53:49 -080020621 {
20622 {
20623 .eraseblocks = { {4 * 1024, 128} },
20624 .block_erase = spi_block_erase_20,
20625 }, {
20626 .eraseblocks = { {32 * 1024, 16} },
20627 .block_erase = spi_block_erase_52,
20628 }, {
20629 .eraseblocks = { {64 * 1024, 8} },
20630 .block_erase = spi_block_erase_d8,
20631 }, {
20632 .eraseblocks = { {512 * 1024, 1} },
20633 .block_erase = spi_block_erase_60,
20634 }, {
20635 .eraseblocks = { {512 * 1024, 1} },
20636 .block_erase = spi_block_erase_c7,
20637 }
20638 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100020639 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
20640 .unlock = spi_disable_blockprotect,
20641 .write = spi_chip_write_256,
20642 .read = spi_chip_read,
20643 .voltage = {2700, 3600},
nybashcbb46e22018-02-11 17:53:49 -080020644 },
20645
Stefan Taunerac1b4c82012-02-17 14:51:04 +000020646 {
Alan Greendd592202019-08-23 10:11:37 +100020647 .vendor = "Unknown",
20648 .name = "SFDP-capable chip",
20649 .bustype = BUS_SPI,
20650 .manufacture_id = GENERIC_MANUF_ID,
20651 .model_id = SFDP_DEVICE_ID,
20652 .total_size = 0, /* set by probing function */
20653 .page_size = 0, /* set by probing function */
20654 .feature_bits = 0, /* set by probing function */
20655 /* We present our own "report this" text hence we do not */
20656 /* want the default "This flash part has status UNTESTED..." */
20657 /* text to be printed. */
20658 .tested = TEST_OK_PREW,
20659 .probe = probe_spi_sfdp,
20660 .block_erasers = {}, /* set by probing function */
20661 .unlock = spi_disable_blockprotect, /* is this safe? */
20662 .write = NULL, /* set by probing function */
20663 .read = spi_chip_read,
20664 /* FIXME: some vendor extensions define this */
20665 .voltage = {0},
20666 },
20667
20668 {
Carl-Daniel Hailfinger532c7172011-11-04 21:35:26 +000020669 .vendor = "Programmer",
20670 .name = "Opaque flash chip",
20671 .bustype = BUS_PROG,
20672 .manufacture_id = PROGMANUF_ID,
20673 .model_id = PROGDEV_ID,
20674 .total_size = 0,
20675 .page_size = 256,
20676 /* probe is assumed to work, rest will be filled in by probe */
20677 .tested = TEST_OK_PROBE,
20678 .probe = probe_opaque,
20679 /* eraseblock sizes will be set by the probing function */
20680 .block_erasers =
20681 {
20682 {
20683 .block_erase = erase_opaque,
20684 }
20685 },
20686 .write = write_opaque,
20687 .read = read_opaque,
20688 },
20689
20690 {
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000020691 .vendor = "AMIC",
20692 .name = "unknown AMIC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020693 .bustype = BUS_SPI,
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000020694 .manufacture_id = AMIC_ID,
20695 .model_id = GENERIC_DEVICE_ID,
20696 .total_size = 0,
20697 .page_size = 256,
20698 .tested = TEST_BAD_PREW,
20699 .probe = probe_spi_rdid4,
20700 .probe_timing = TIMING_ZERO,
20701 .write = NULL,
20702 .read = NULL,
20703 },
20704
20705 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020706 .vendor = "Atmel",
20707 .name = "unknown Atmel SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020708 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020709 .manufacture_id = ATMEL_ID,
20710 .model_id = GENERIC_DEVICE_ID,
20711 .total_size = 0,
20712 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000020713 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020714 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000020715 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020716 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000020717 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000020718 },
20719
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020720 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +000020721 .vendor = "Eon",
20722 .name = "unknown Eon SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020723 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020724 .manufacture_id = EON_ID_NOPREFIX,
20725 .model_id = GENERIC_DEVICE_ID,
20726 .total_size = 0,
20727 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000020728 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020729 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000020730 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020731 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000020732 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000020733 },
20734
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020735 {
20736 .vendor = "Macronix",
20737 .name = "unknown Macronix SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020738 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000020739 .manufacture_id = MACRONIX_ID,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020740 .model_id = GENERIC_DEVICE_ID,
20741 .total_size = 0,
20742 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000020743 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020744 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000020745 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020746 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000020747 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000020748 },
20749
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020750 {
20751 .vendor = "PMC",
20752 .name = "unknown PMC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020753 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020754 .manufacture_id = PMC_ID,
20755 .model_id = GENERIC_DEVICE_ID,
20756 .total_size = 0,
20757 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000020758 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020759 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000020760 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020761 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000020762 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000020763 },
20764
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020765 {
20766 .vendor = "SST",
20767 .name = "unknown SST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020768 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020769 .manufacture_id = SST_ID,
20770 .model_id = GENERIC_DEVICE_ID,
20771 .total_size = 0,
20772 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000020773 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020774 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000020775 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020776 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000020777 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000020778 },
20779
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020780 {
20781 .vendor = "ST",
20782 .name = "unknown ST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020783 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020784 .manufacture_id = ST_ID,
20785 .model_id = GENERIC_DEVICE_ID,
20786 .total_size = 0,
20787 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000020788 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020789 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000020790 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020791 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000020792 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000020793 },
Uwe Hermannfc425e82008-03-16 02:06:25 +000020794
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000020795 {
Sean Nelson118e1d62009-11-24 02:08:11 +000020796 .vendor = "Sanyo",
20797 .name = "unknown Sanyo SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020798 .bustype = BUS_SPI,
Sean Nelson118e1d62009-11-24 02:08:11 +000020799 .manufacture_id = SANYO_ID,
20800 .model_id = GENERIC_DEVICE_ID,
20801 .total_size = 0,
20802 .page_size = 256,
20803 .tested = TEST_BAD_PREW,
20804 .probe = probe_spi_rdid,
20805 .probe_timing = TIMING_ZERO,
Sean Nelson118e1d62009-11-24 02:08:11 +000020806 .write = NULL,
20807 .read = NULL,
20808 },
20809
20810 {
Stefan Taunereb582572012-09-21 12:52:50 +000020811 .vendor = "Winbond",
20812 .name = "unknown Winbond (ex Nexcom) SPI chip",
20813 .bustype = BUS_SPI,
20814 .manufacture_id = WINBOND_NEX_ID,
20815 .model_id = GENERIC_DEVICE_ID,
20816 .total_size = 0,
20817 .page_size = 256,
20818 .tested = TEST_BAD_PREW,
20819 .probe = probe_spi_rdid,
20820 .probe_timing = TIMING_ZERO,
20821 .write = NULL,
20822 .read = NULL,
20823 },
20824
20825 {
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000020826 .vendor = "Generic",
20827 .name = "unknown SPI chip (RDID)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020828 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000020829 .manufacture_id = GENERIC_MANUF_ID,
20830 .model_id = GENERIC_DEVICE_ID,
20831 .total_size = 0,
20832 .page_size = 256,
20833 .tested = TEST_BAD_PREW,
20834 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000020835 .write = NULL,
20836 },
Stefan Tauneraf2db612011-12-02 21:48:17 +000020837
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000020838 {
20839 .vendor = "Generic",
20840 .name = "unknown SPI chip (REMS)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020841 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000020842 .manufacture_id = GENERIC_MANUF_ID,
20843 .model_id = GENERIC_DEVICE_ID,
20844 .total_size = 0,
20845 .page_size = 256,
20846 .tested = TEST_BAD_PREW,
20847 .probe = probe_spi_rems,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000020848 .write = NULL,
20849 },
20850
Stefan Tauner96658be2014-05-26 22:05:31 +000020851 {0}
Stephan Guilloux72cf5652009-04-21 01:46:07 +000020852};
Stefan Tauner96658be2014-05-26 22:05:31 +000020853
20854const unsigned int flashchips_size = ARRAY_SIZE(flashchips);