blob: 9336c8c3f63563449a836d839f461b91834a20a6 [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
29 * assist with merging the Chromium fork of flashrom.
30 *
31 * The usual intention is that that this list is sorted by vendor, then chip
32 * family and chip density, which is useful for the output of 'flashrom -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 */
FENG yu ningff692fb2008-12-08 18:15:10 +000089 },
90
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000091 {
92 .vendor = "AMD",
93 .name = "Am29F002(N)BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000094 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000095 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000096 .model_id = AMD_AM29F002BT,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000097 .total_size = 256,
98 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000099 .feature_bits = FEATURE_EITHER_RESET | FEATURE_ADDR_2AA,
100 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000101 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +0000102 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000103 .block_erasers =
104 {
105 {
106 .eraseblocks = {
107 {64 * 1024, 3},
108 {32 * 1024, 1},
109 {8 * 1024, 2},
110 {16 * 1024, 1},
111 },
112 .block_erase = erase_sector_jedec,
113 }, {
114 .eraseblocks = { {256 * 1024, 1} },
115 .block_erase = erase_chip_block_jedec,
116 },
117 },
Michael Karcher1c296ca2009-11-27 17:49:42 +0000118 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000119 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000120 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +0000121 },
122
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000123 {
124 .vendor = "AMD",
Alan Green1f9cc7d2019-07-01 11:10:45 +1000125 .name = "Am29F010",
126 .bustype = BUS_PARALLEL,
127 .manufacture_id = AMD_ID,
128 .model_id = AMD_AM29F010,
129 .total_size = 128,
130 .page_size = 16 * 1024,
131 .feature_bits = FEATURE_SHORT_RESET,
132 .tested = TEST_UNTESTED,
133 .probe = probe_jedec,
134 .probe_timing = TIMING_ZERO,
135 .block_erasers =
136 {
137 {
138 .eraseblocks = { {16 * 1024, 8} },
139 .block_erase = erase_sector_jedec,
140 }, {
141 .eraseblocks = { {128 * 1024, 1} },
142 .block_erase = erase_chip_block_jedec,
143 },
144 },
145 .write = write_jedec_1,
146 .read = read_memmapped,
147 .voltage = {4500, 5500},
148 },
149
150 {
151 .vendor = "AMD",
152 .name = "Am29F010A/B",
153 .bustype = BUS_PARALLEL,
154 .manufacture_id = AMD_ID,
155 .model_id = AMD_AM29F010,
156 .total_size = 128,
157 .page_size = 16 * 1024,
158 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Alan Greena4e579f2019-07-24 14:18:39 +1000159 .tested = TEST_OK_PRE,
Alan Green1f9cc7d2019-07-01 11:10:45 +1000160 .probe = probe_jedec,
161 .probe_timing = TIMING_ZERO,
162 .block_erasers =
163 {
164 {
165 .eraseblocks = { {16 * 1024, 8} },
166 .block_erase = erase_sector_jedec,
167 }, {
168 .eraseblocks = { {128 * 1024, 1} },
169 .block_erase = erase_chip_block_jedec,
170 },
171 },
172 .write = write_jedec_1,
173 .read = read_memmapped,
174 .voltage = {4500, 5500},
175 },
176
177 {
178 .vendor = "AMD",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000179 .name = "Am29F016D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000180 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000181 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000182 .model_id = AMD_AM29F016D,
Sean Nelson72a9a022009-12-22 22:15:33 +0000183 .total_size = 2 * 1024,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000184 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000185 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000186 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +0000187 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000188 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000189 .block_erasers =
190 {
191 {
192 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson35727f72010-01-28 23:55:12 +0000193 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000194 }, {
195 .eraseblocks = { {2048 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000196 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000197 },
198 },
Sean Nelson35727f72010-01-28 23:55:12 +0000199 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000200 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000201 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +0000202 },
203
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000204 {
205 .vendor = "AMD",
Stefan Taunerd1ca1e82016-01-31 23:17:35 +0000206 .name = "Am29F040",
207 .bustype = BUS_PARALLEL,
208 .manufacture_id = AMD_ID,
209 .model_id = AMD_AM29F040,
210 .total_size = 512,
211 .page_size = 64 * 1024,
212 .feature_bits = FEATURE_EITHER_RESET,
213 .tested = TEST_UNTESTED,
214 .probe = probe_jedec,
215 .probe_timing = TIMING_ZERO,
216 .block_erasers =
217 {
218 {
219 .eraseblocks = { {64 * 1024, 8} },
220 .block_erase = erase_sector_jedec,
221 }, {
222 .eraseblocks = { {512 * 1024, 1} },
223 .block_erase = erase_chip_block_jedec,
224 },
225 },
226 .write = write_jedec_1,
227 .read = read_memmapped,
228 .voltage = {4500, 5500},
229 },
230
231 {
232 .vendor = "AMD",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000233 .name = "Am29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000234 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000235 .manufacture_id = AMD_ID,
Stefan Taunerd1ca1e82016-01-31 23:17:35 +0000236 .model_id = AMD_AM29F040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000237 .total_size = 512,
238 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000239 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
240 .tested = TEST_UNTESTED,
241 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000242 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000243 .block_erasers =
244 {
245 {
246 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +0000247 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000248 }, {
249 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000250 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000251 },
252 },
Sean Nelson35727f72010-01-28 23:55:12 +0000253 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000254 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000255 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +0000256 },
257
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000258 {
259 .vendor = "AMD",
Stefan Taunerd1ca1e82016-01-31 23:17:35 +0000260 .name = "Am29F080",
261 .bustype = BUS_PARALLEL,
262 .manufacture_id = AMD_ID,
263 .model_id = AMD_AM29F080,
264 .total_size = 1024,
265 .page_size = 64 * 1024,
266 .feature_bits = FEATURE_EITHER_RESET,
267 .tested = TEST_UNTESTED,
268 .probe = probe_jedec,
269 .probe_timing = TIMING_ZERO,
270 .block_erasers =
271 {
272 {
273 .eraseblocks = { {64 * 1024, 16} },
274 .block_erase = erase_sector_jedec,
275 }, {
276 .eraseblocks = { {1024 * 1024, 1} },
277 .block_erase = erase_chip_block_jedec,
278 },
279 },
280 .write = write_jedec_1,
281 .read = read_memmapped,
282 .voltage = {4500, 5500},
283 },
284
285 {
286 .vendor = "AMD",
Peter Stuge8440cc02009-01-25 23:55:12 +0000287 .name = "Am29F080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000288 .bustype = BUS_PARALLEL,
Mateusz Murawski5bae4382009-06-02 00:38:14 +0000289 .manufacture_id = AMD_ID,
Stefan Taunerd1ca1e82016-01-31 23:17:35 +0000290 .model_id = AMD_AM29F080,
Peter Stuge8440cc02009-01-25 23:55:12 +0000291 .total_size = 1024,
292 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000293 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +0000294 .tested = TEST_UNTESTED,
295 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +0000296 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000297 .block_erasers =
298 {
299 {
300 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson35727f72010-01-28 23:55:12 +0000301 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000302 }, {
303 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000304 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000305 },
306 },
Sean Nelson35727f72010-01-28 23:55:12 +0000307 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000308 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000309 .voltage = {4500, 5500},
Peter Stuge8440cc02009-01-25 23:55:12 +0000310 },
311
312 {
313 .vendor = "AMD",
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000314 .name = "Am29LV001BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000315 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000316 .manufacture_id = AMD_ID,
317 .model_id = AMD_AM29LV001BB,
318 .total_size = 128,
319 .page_size = 64 * 1024, /* unused */
320 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
321 .tested = TEST_OK_PREW,
322 .probe = probe_jedec,
323 .probe_timing = TIMING_ZERO,
324 .block_erasers =
325 {
326 {
327 .eraseblocks = {
328 {8 * 1024, 1},
329 {4 * 1024, 2},
330 {16 * 1024, 7},
331 },
332 .block_erase = erase_sector_jedec,
333 }, {
334 .eraseblocks = { {128 * 1024, 1} },
335 .block_erase = erase_chip_block_jedec,
336 },
337 },
338 .write = write_jedec_1,
339 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000340 .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000341 },
342
343 {
344 .vendor = "AMD",
345 .name = "Am29LV001BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000346 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000347 .manufacture_id = AMD_ID,
348 .model_id = AMD_AM29LV001BT,
349 .total_size = 128,
350 .page_size = 64 * 1024, /* unused */
351 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
352 .tested = TEST_UNTESTED,
353 .probe = probe_jedec,
354 .probe_timing = TIMING_ZERO,
355 .block_erasers =
356 {
357 {
358 .eraseblocks = {
359 {16 * 1024, 7},
360 {4 * 1024, 2},
361 {8 * 1024, 1},
362 },
363 .block_erase = erase_sector_jedec,
364 }, {
365 .eraseblocks = { {128 * 1024, 1} },
366 .block_erase = erase_chip_block_jedec,
367 },
368 },
369 .write = write_jedec_1,
370 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000371 .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000372 },
373
374 {
375 .vendor = "AMD",
376 .name = "Am29LV002BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000377 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000378 .manufacture_id = AMD_ID,
379 .model_id = AMD_AM29LV002BB,
380 .total_size = 256,
381 .page_size = 64 * 1024, /* unused */
382 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
383 .tested = TEST_UNTESTED,
384 .probe = probe_jedec,
385 .probe_timing = TIMING_ZERO,
386 .block_erasers =
387 {
388 {
389 .eraseblocks = {
390 {16 * 1024, 1},
391 {8 * 1024, 2},
392 {32 * 1024, 1},
393 {64 * 1024, 3},
394 },
395 .block_erase = erase_sector_jedec,
396 }, {
397 .eraseblocks = { {256 * 1024, 1} },
398 .block_erase = erase_chip_block_jedec,
399 },
400 },
401 .write = write_jedec_1,
402 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000403 .voltage = {3000, 3600}, /* 3.0-3.6V for type -55, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000404 },
405
406 {
407 .vendor = "AMD",
408 .name = "Am29LV002BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000409 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000410 .manufacture_id = AMD_ID,
411 .model_id = AMD_AM29LV002BT,
412 .total_size = 256,
413 .page_size = 64 * 1024, /* unused */
414 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
415 .tested = TEST_UNTESTED,
416 .probe = probe_jedec,
417 .probe_timing = TIMING_ZERO,
418 .block_erasers =
419 {
420 {
421 .eraseblocks = {
422 {64 * 1024, 3},
423 {32 * 1024, 1},
424 {8 * 1024, 2},
425 {16 * 1024, 1},
426 },
427 .block_erase = erase_sector_jedec,
428 }, {
429 .eraseblocks = { {256 * 1024, 1} },
430 .block_erase = erase_chip_block_jedec,
431 },
432 },
433 .write = write_jedec_1,
434 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000435 .voltage = {3000, 3600}, /* 3.0-3.6V for type -55, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000436 },
437
438 {
439 .vendor = "AMD",
440 .name = "Am29LV004BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000441 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000442 .manufacture_id = AMD_ID,
443 .model_id = AMD_AM29LV004BB,
444 .total_size = 512,
445 .page_size = 64 * 1024, /* unused */
446 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
447 .tested = TEST_UNTESTED,
448 .probe = probe_jedec,
449 .probe_timing = TIMING_ZERO,
450 .block_erasers =
451 {
452 {
453 .eraseblocks = {
454 {16 * 1024, 1},
455 {8 * 1024, 2},
456 {32 * 1024, 1},
457 {64 * 1024, 7},
458 },
459 .block_erase = erase_sector_jedec,
460 }, {
461 .eraseblocks = { {512 * 1024, 1} },
462 .block_erase = erase_chip_block_jedec,
463 },
464 },
465 .write = write_jedec_1,
466 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000467 .voltage = {2700, 3600},
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000468 },
469
470 {
471 .vendor = "AMD",
472 .name = "Am29LV004BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000473 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000474 .manufacture_id = AMD_ID,
475 .model_id = AMD_AM29LV004BT,
476 .total_size = 512,
477 .page_size = 64 * 1024, /* unused */
478 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
479 .tested = TEST_UNTESTED,
480 .probe = probe_jedec,
481 .probe_timing = TIMING_ZERO,
482 .block_erasers =
483 {
484 {
485 .eraseblocks = {
486 {64 * 1024, 7},
487 {32 * 1024, 1},
488 {8 * 1024, 2},
489 {16 * 1024, 1},
490 },
491 .block_erase = erase_sector_jedec,
492 }, {
493 .eraseblocks = { {512 * 1024, 1} },
494 .block_erase = erase_chip_block_jedec,
495 },
496 },
497 .write = write_jedec_1,
498 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000499 .voltage = {2700, 3600},
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000500 },
501
502 {
503 .vendor = "AMD",
504 .name = "Am29LV008BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000505 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000506 .manufacture_id = AMD_ID,
507 .model_id = AMD_AM29LV008BB,
508 .total_size = 1024,
509 .page_size = 64 * 1024, /* unused */
510 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Uwe Hermann09ebd522011-08-25 22:54:23 +0000511 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000512 .probe = probe_jedec,
513 .probe_timing = TIMING_ZERO,
514 .block_erasers =
515 {
516 {
517 .eraseblocks = {
518 {16 * 1024, 1},
519 {8 * 1024, 2},
520 {32 * 1024, 1},
521 {64 * 1024, 15},
522 },
523 .block_erase = erase_sector_jedec,
524 }, {
525 .eraseblocks = { {1024 * 1024, 1} },
526 .block_erase = erase_chip_block_jedec,
527 },
528 },
529 .write = write_jedec_1,
530 .read = read_memmapped,
Alan Greenf5ad6882019-06-27 12:09:13 +1000531 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000532 },
533
534 {
535 .vendor = "AMD",
536 .name = "Am29LV008BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000537 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000538 .manufacture_id = AMD_ID,
539 .model_id = AMD_AM29LV008BT,
540 .total_size = 1024,
541 .page_size = 64 * 1024, /* unused */
542 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
543 .tested = TEST_UNTESTED,
544 .probe = probe_jedec,
545 .probe_timing = TIMING_ZERO,
546 .block_erasers =
547 {
548 {
549 .eraseblocks = {
550 {64 * 1024, 15},
551 {32 * 1024, 1},
552 {8 * 1024, 2},
553 {16 * 1024, 1},
554 },
555 .block_erase = erase_sector_jedec,
556 }, {
557 .eraseblocks = { {1024 * 1024, 1} },
558 .block_erase = erase_chip_block_jedec,
559 },
560 },
561 .write = write_jedec_1,
562 .read = read_memmapped,
Alan Greenf5ad6882019-06-27 12:09:13 +1000563 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000564 },
565
566 {
567 .vendor = "AMD",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000568 .name = "Am29LV040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000569 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000570 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000571 .model_id = AMD_AM29LV040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000572 .total_size = 512,
573 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000574 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000575 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +0000576 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000577 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000578 .block_erasers =
579 {
580 {
581 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +0000582 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000583 }, {
584 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000585 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000586 },
587 },
Sean Nelson35727f72010-01-28 23:55:12 +0000588 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000589 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000590 .voltage = {3000, 3600}, /* 3.0-3.6V for type -60R, others 2.7-3.6V*/
FENG yu ningff692fb2008-12-08 18:15:10 +0000591 },
592
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000593 {
Peter Stuge8440cc02009-01-25 23:55:12 +0000594 .vendor = "AMD",
595 .name = "Am29LV081B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000596 .bustype = BUS_PARALLEL,
Mateusz Murawski5bae4382009-06-02 00:38:14 +0000597 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000598 .model_id = AMD_AM29LV080B,
Peter Stuge8440cc02009-01-25 23:55:12 +0000599 .total_size = 1024,
600 .page_size = 64 * 1024,
David Borg204f4652010-12-04 03:26:40 +0000601 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, /* datasheet specifies address as don't care */
Peter Stuge8440cc02009-01-25 23:55:12 +0000602 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +0000603 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000604 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000605 .block_erasers =
606 {
607 {
608 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson35727f72010-01-28 23:55:12 +0000609 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000610 }, {
611 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000612 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000613 },
614 },
Sean Nelson35727f72010-01-28 23:55:12 +0000615 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000616 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000617 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70R, others 2.7-3.6V */
Peter Stuge8440cc02009-01-25 23:55:12 +0000618 },
619
620 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000621 .vendor = "AMIC",
Alan Green1f9cc7d2019-07-01 11:10:45 +1000622 .name = "A25L010",
623 .bustype = BUS_SPI,
624 .manufacture_id = AMIC_ID_NOPREFIX,
625 .model_id = AMIC_A25L010,
626 .total_size = 128,
627 .page_size = 256,
628 .feature_bits = FEATURE_WRSR_WREN,
629 .tested = TEST_UNTESTED,
630 .probe = probe_spi_rdid,
631 .probe_timing = TIMING_ZERO,
632 .block_erasers =
633 {
634 {
635 .eraseblocks = { { 4 * 1024, 32 } },
636 .block_erase = spi_block_erase_20,
637 }, {
638 .eraseblocks = { { 64 * 1024, 2 } },
639 .block_erase = spi_block_erase_d8,
640 }, {
641 .eraseblocks = { { 128 * 1024, 1 } },
642 .block_erase = spi_block_erase_c7,
643 }
644 },
645 .printlock = spi_prettyprint_status_register_bp2_srwd,
646 .unlock = spi_disable_blockprotect,
647 .write = spi_chip_write_256,
648 .read = spi_chip_read,
649 .voltage = {2700, 3600},
650 },
651
652 {
653 .vendor = "AMIC",
654 .name = "A25L016",
655 .bustype = BUS_SPI,
656 .manufacture_id = AMIC_ID_NOPREFIX,
657 .model_id = AMIC_A25L016,
658 .total_size = 2048,
659 .page_size = 256,
660 .feature_bits = FEATURE_WRSR_WREN,
661 .tested = TEST_UNTESTED,
662 .probe = probe_spi_rdid,
663 .probe_timing = TIMING_ZERO,
664 .block_erasers =
665 {
666 {
667 .eraseblocks = { { 4 * 1024, 512 } },
668 .block_erase = spi_block_erase_20,
669 }, {
670 .eraseblocks = { { 64 * 1024, 32 } },
671 .block_erase = spi_block_erase_d8,
672 }, {
673 .eraseblocks = { { 2048 * 1024, 1 } },
674 .block_erase = spi_block_erase_c7,
675 }
676 },
677 .printlock = spi_prettyprint_status_register_bp2_srwd,
678 .unlock = spi_disable_blockprotect,
679 .write = spi_chip_write_256,
680 .read = spi_chip_read,
681 .voltage = {2700, 3600},
682 },
683
684 {
685 .vendor = "AMIC",
686 .name = "A25L020",
687 .bustype = BUS_SPI,
688 .manufacture_id = AMIC_ID_NOPREFIX,
689 .model_id = AMIC_A25L020,
690 .total_size = 256,
691 .page_size = 256,
692 .feature_bits = FEATURE_WRSR_WREN,
693 .tested = TEST_UNTESTED,
694 .probe = probe_spi_rdid,
695 .probe_timing = TIMING_ZERO,
696 .block_erasers =
697 {
698 {
699 .eraseblocks = { { 4 * 1024, 64 } },
700 .block_erase = spi_block_erase_20,
701 }, {
702 .eraseblocks = { { 64 * 1024, 4 } },
703 .block_erase = spi_block_erase_d8,
704 }, {
705 .eraseblocks = { { 256 * 1024, 1 } },
706 .block_erase = spi_block_erase_c7,
707 }
708 },
709 .printlock = spi_prettyprint_status_register_bp2_srwd,
710 .unlock = spi_disable_blockprotect,
711 .write = spi_chip_write_256,
712 .read = spi_chip_read,
713 .voltage = {2700, 3600},
714 },
715
716 {
717 .vendor = "AMIC",
718 .name = "A25L032",
719 .bustype = BUS_SPI,
720 .manufacture_id = AMIC_ID_NOPREFIX,
721 .model_id = AMIC_A25L032,
722 .total_size = 4096,
723 .page_size = 256,
724 /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */
725 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
726 .tested = TEST_OK_PREW,
727 .probe = probe_spi_rdid,
728 .probe_timing = TIMING_ZERO,
729 .block_erasers =
730 {
731 {
732 .eraseblocks = { { 4 * 1024, 1024 } },
733 .block_erase = spi_block_erase_20,
734 }, {
735 .eraseblocks = { { 64 * 1024, 64 } },
736 .block_erase = spi_block_erase_52,
737 }, {
738 .eraseblocks = { { 64 * 1024, 64 } },
739 .block_erase = spi_block_erase_d8,
740 }, {
741 .eraseblocks = { { 4096 * 1024, 1 } },
742 .block_erase = spi_block_erase_60,
743 }, {
744 .eraseblocks = { { 4096 * 1024, 1 } },
745 .block_erase = spi_block_erase_c7,
746 }
747 },
748 .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */
749 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */
750 .write = spi_chip_write_256,
751 .read = spi_chip_read,
752 .voltage = {2700, 3600},
753 },
754
755 {
756 .vendor = "AMIC",
757 .name = "A25L040",
758 .bustype = BUS_SPI,
759 .manufacture_id = AMIC_ID_NOPREFIX,
760 .model_id = AMIC_A25L040,
761 .total_size = 512,
762 .page_size = 256,
763 .feature_bits = FEATURE_WRSR_WREN,
764 .tested = TEST_UNTESTED,
765 .probe = probe_spi_rdid,
766 .probe_timing = TIMING_ZERO,
767 .block_erasers =
768 {
769 {
770 .eraseblocks = { { 4 * 1024, 128 } },
771 .block_erase = spi_block_erase_20,
772 }, {
773 .eraseblocks = { { 64 * 1024, 8 } },
774 .block_erase = spi_block_erase_d8,
775 }, {
776 .eraseblocks = { { 512 * 1024, 1 } },
777 .block_erase = spi_block_erase_c7,
778 }
779 },
780 .printlock = spi_prettyprint_status_register_bp2_srwd,
781 .unlock = spi_disable_blockprotect,
782 .write = spi_chip_write_256,
783 .read = spi_chip_read,
784 .voltage = {2700, 3600},
785 },
786
787 {
788 .vendor = "AMIC",
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000789 .name = "A25L05PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000790 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000791 .manufacture_id = AMIC_ID,
792 .model_id = AMIC_A25L05PT,
793 .total_size = 64,
794 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000795 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000796 .tested = TEST_UNTESTED,
797 .probe = probe_spi_rdid4,
798 .probe_timing = TIMING_ZERO,
799 .block_erasers =
800 {
801 {
802 .eraseblocks = {
803 {32 * 1024, 1},
804 {16 * 1024, 1},
805 {8 * 1024, 1},
806 {4 * 1024, 2},
807 },
808 .block_erase = spi_block_erase_d8,
809 }, {
810 .eraseblocks = { {64 * 1024, 1} },
811 .block_erase = spi_block_erase_c7,
812 }
813 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000814 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000815 .unlock = spi_disable_blockprotect,
816 .write = spi_chip_write_256,
817 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000818 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000819 },
820
821 {
822 .vendor = "AMIC",
823 .name = "A25L05PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000824 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000825 .manufacture_id = AMIC_ID,
826 .model_id = AMIC_A25L05PU,
827 .total_size = 64,
828 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000829 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000830 .tested = TEST_UNTESTED,
831 .probe = probe_spi_rdid4,
832 .probe_timing = TIMING_ZERO,
833 .block_erasers =
834 {
835 {
836 .eraseblocks = {
837 {4 * 1024, 2},
838 {8 * 1024, 1},
839 {16 * 1024, 1},
840 {32 * 1024, 1},
841 },
842 .block_erase = spi_block_erase_d8,
843 }, {
844 .eraseblocks = { {64 * 1024, 1} },
845 .block_erase = spi_block_erase_c7,
846 }
847 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000848 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000849 .unlock = spi_disable_blockprotect,
850 .write = spi_chip_write_256,
851 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000852 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000853 },
854
855 {
856 .vendor = "AMIC",
Alan Green1f9cc7d2019-07-01 11:10:45 +1000857 .name = "A25L080",
858 .bustype = BUS_SPI,
859 .manufacture_id = AMIC_ID_NOPREFIX,
860 .model_id = AMIC_A25L080,
861 .total_size = 1024,
862 .page_size = 256,
863 .feature_bits = FEATURE_WRSR_WREN,
864 .tested = TEST_UNTESTED,
865 .probe = probe_spi_rdid,
866 .probe_timing = TIMING_ZERO,
867 .block_erasers =
868 {
869 {
870 .eraseblocks = { { 4 * 1024, 256 } },
871 .block_erase = spi_block_erase_20,
872 }, {
873 .eraseblocks = { { 64 * 1024, 16 } },
874 .block_erase = spi_block_erase_d8,
875 }, {
876 .eraseblocks = { { 1024 * 1024, 1 } },
877 .block_erase = spi_block_erase_c7,
878 }
879 },
880 .printlock = spi_prettyprint_status_register_bp2_srwd,
881 .unlock = spi_disable_blockprotect,
882 .write = spi_chip_write_256,
883 .read = spi_chip_read,
884 .voltage = {2700, 3600},
885 },
886
887 {
888 .vendor = "AMIC",
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000889 .name = "A25L10PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000890 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000891 .manufacture_id = AMIC_ID,
892 .model_id = AMIC_A25L10PT,
893 .total_size = 128,
894 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000895 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000896 .tested = TEST_UNTESTED,
897 .probe = probe_spi_rdid4,
898 .probe_timing = TIMING_ZERO,
899 .block_erasers =
900 {
901 {
902 .eraseblocks = {
903 {64 * 1024, 1},
904 {32 * 1024, 1},
905 {16 * 1024, 1},
906 {8 * 1024, 1},
907 {4 * 1024, 2},
908 },
909 .block_erase = spi_block_erase_d8,
910 }, {
911 .eraseblocks = { {128 * 1024, 1} },
912 .block_erase = spi_block_erase_c7,
913 }
914 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000915 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000916 .unlock = spi_disable_blockprotect,
917 .write = spi_chip_write_256,
918 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000919 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000920 },
921
922 {
923 .vendor = "AMIC",
924 .name = "A25L10PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000925 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000926 .manufacture_id = AMIC_ID,
927 .model_id = AMIC_A25L10PU,
928 .total_size = 128,
929 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000930 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000931 .tested = TEST_UNTESTED,
932 .probe = probe_spi_rdid4,
933 .probe_timing = TIMING_ZERO,
934 .block_erasers =
935 {
936 {
937 .eraseblocks = {
938 {4 * 1024, 2},
939 {8 * 1024, 1},
940 {16 * 1024, 1},
941 {32 * 1024, 1},
942 {64 * 1024, 1},
943 },
944 .block_erase = spi_block_erase_d8,
945 }, {
946 .eraseblocks = { {128 * 1024, 1} },
947 .block_erase = spi_block_erase_c7,
948 }
949 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000950 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000951 .unlock = spi_disable_blockprotect,
952 .write = spi_chip_write_256,
953 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000954 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000955 },
956
957 {
958 .vendor = "AMIC",
Alan Green1f9cc7d2019-07-01 11:10:45 +1000959 .name = "A25L16PT",
960 .bustype = BUS_SPI,
961 .manufacture_id = AMIC_ID,
962 .model_id = AMIC_A25L16PT,
963 .total_size = 2048,
964 .page_size = 256,
965 .feature_bits = FEATURE_WRSR_WREN,
966 .tested = TEST_UNTESTED,
967 .probe = probe_spi_rdid4,
968 .probe_timing = TIMING_ZERO,
969 .block_erasers =
970 {
971 {
972 .eraseblocks = {
973 {64 * 1024, 31},
974 {32 * 1024, 1},
975 {16 * 1024, 1},
976 {8 * 1024, 1},
977 {4 * 1024, 2},
978 },
979 .block_erase = spi_block_erase_d8,
980 }, {
981 .eraseblocks = { {2048 * 1024, 1} },
982 .block_erase = spi_block_erase_60,
983 }, {
984 .eraseblocks = { {2048 * 1024, 1} },
985 .block_erase = spi_block_erase_c7,
986 }
987 },
988 .printlock = spi_prettyprint_status_register_bp2_srwd,
989 .unlock = spi_disable_blockprotect,
990 .write = spi_chip_write_256,
991 .read = spi_chip_read,
992 .voltage = {2700, 3600},
993 },
994
995 {
996 .vendor = "AMIC",
997 .name = "A25L16PU",
998 .bustype = BUS_SPI,
999 .manufacture_id = AMIC_ID,
1000 .model_id = AMIC_A25L16PU,
1001 .total_size = 2048,
1002 .page_size = 256,
1003 .feature_bits = FEATURE_WRSR_WREN,
1004 .tested = TEST_OK_PR,
1005 .probe = probe_spi_rdid4,
1006 .probe_timing = TIMING_ZERO,
1007 .block_erasers =
1008 {
1009 {
1010 .eraseblocks = {
1011 {4 * 1024, 2},
1012 {8 * 1024, 1},
1013 {16 * 1024, 1},
1014 {32 * 1024, 1},
1015 {64 * 1024, 31},
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",
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001035 .name = "A25L20PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001036 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001037 .manufacture_id = AMIC_ID,
1038 .model_id = AMIC_A25L20PT,
1039 .total_size = 256,
1040 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001041 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001042 .tested = TEST_UNTESTED,
1043 .probe = probe_spi_rdid4,
1044 .probe_timing = TIMING_ZERO,
1045 .block_erasers =
1046 {
1047 {
1048 .eraseblocks = {
1049 {64 * 1024, 3},
1050 {32 * 1024, 1},
1051 {16 * 1024, 1},
1052 {8 * 1024, 1},
1053 {4 * 1024, 2},
1054 },
1055 .block_erase = spi_block_erase_d8,
1056 }, {
1057 .eraseblocks = { {256 * 1024, 1} },
1058 .block_erase = spi_block_erase_c7,
1059 }
1060 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001061 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001062 .unlock = spi_disable_blockprotect,
1063 .write = spi_chip_write_256,
1064 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001065 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001066 },
1067
1068 {
1069 .vendor = "AMIC",
1070 .name = "A25L20PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001071 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001072 .manufacture_id = AMIC_ID,
1073 .model_id = AMIC_A25L20PU,
1074 .total_size = 256,
1075 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001076 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001077 .tested = TEST_UNTESTED,
1078 .probe = probe_spi_rdid4,
1079 .probe_timing = TIMING_ZERO,
1080 .block_erasers =
1081 {
1082 {
1083 .eraseblocks = {
1084 {4 * 1024, 2},
1085 {8 * 1024, 1},
1086 {16 * 1024, 1},
1087 {32 * 1024, 1},
1088 {64 * 1024, 3},
1089 },
1090 .block_erase = spi_block_erase_d8,
1091 }, {
1092 .eraseblocks = { {256 * 1024, 1} },
1093 .block_erase = spi_block_erase_c7,
1094 }
1095 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001096 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001097 .unlock = spi_disable_blockprotect,
1098 .write = spi_chip_write_256,
1099 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001100 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001101 },
1102
1103 /* The A25L40P{T,U} chips are distinguished by their
1104 * erase block layouts, but without any distinction in RDID.
1105 * This inexplicable quirk was verified by Rudolf Marek
1106 * and discussed on the flashrom mailing list on 2010-07-12.
1107 */
1108 {
1109 .vendor = "AMIC",
1110 .name = "A25L40PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001111 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001112 .manufacture_id = AMIC_ID,
1113 .model_id = AMIC_A25L40PT,
1114 .total_size = 512,
1115 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001116 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00001117 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001118 .probe = probe_spi_rdid4,
1119 .probe_timing = TIMING_ZERO,
1120 .block_erasers =
1121 {
1122 {
1123 .eraseblocks = {
1124 {64 * 1024, 7},
1125 {32 * 1024, 1},
1126 {16 * 1024, 1},
1127 {8 * 1024, 1},
1128 {4 * 1024, 2},
1129 },
1130 .block_erase = spi_block_erase_d8,
1131 }, {
1132 .eraseblocks = { {512 * 1024, 1} },
1133 .block_erase = spi_block_erase_c7,
1134 }
1135 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001136 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001137 .unlock = spi_disable_blockprotect,
1138 .write = spi_chip_write_256,
1139 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001140 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001141 },
1142
1143 {
1144 .vendor = "AMIC",
1145 .name = "A25L40PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001146 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001147 .manufacture_id = AMIC_ID,
1148 .model_id = AMIC_A25L40PU,
1149 .total_size = 512,
1150 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001151 .feature_bits = FEATURE_WRSR_WREN,
Angel Pons6f088352018-09-30 19:59:42 +02001152 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001153 .probe = probe_spi_rdid4,
1154 .probe_timing = TIMING_ZERO,
1155 .block_erasers =
1156 {
1157 {
1158 .eraseblocks = {
1159 {4 * 1024, 2},
1160 {8 * 1024, 1},
1161 {16 * 1024, 1},
1162 {32 * 1024, 1},
1163 {64 * 1024, 7},
1164 },
1165 .block_erase = spi_block_erase_d8,
1166 }, {
1167 .eraseblocks = { {512 * 1024, 1} },
1168 .block_erase = spi_block_erase_c7,
1169 }
1170 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001171 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001172 .unlock = spi_disable_blockprotect,
1173 .write = spi_chip_write_256,
1174 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001175 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001176 },
1177
1178 {
1179 .vendor = "AMIC",
Alan Green1f9cc7d2019-07-01 11:10:45 +10001180 .name = "A25L512",
1181 .bustype = BUS_SPI,
1182 .manufacture_id = AMIC_ID_NOPREFIX,
1183 .model_id = AMIC_A25L512,
1184 .total_size = 64,
1185 .page_size = 256,
1186 .feature_bits = FEATURE_WRSR_WREN,
1187 .tested = TEST_UNTESTED,
1188 .probe = probe_spi_rdid,
1189 .probe_timing = TIMING_ZERO,
1190 .block_erasers =
1191 {
1192 {
1193 .eraseblocks = { { 4 * 1024, 16 } },
1194 .block_erase = spi_block_erase_20,
1195 }, {
1196 .eraseblocks = { { 64 * 1024, 1 } },
1197 .block_erase = spi_block_erase_d8,
1198 }, {
1199 .eraseblocks = { { 64 * 1024, 1 } },
1200 .block_erase = spi_block_erase_c7,
1201 }
1202 },
1203 .printlock = spi_prettyprint_status_register_bp2_srwd,
1204 .unlock = spi_disable_blockprotect,
1205 .write = spi_chip_write_256,
1206 .read = spi_chip_read,
1207 .voltage = {2700, 3600},
1208 },
1209
1210 {
1211 .vendor = "AMIC",
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001212 .name = "A25L80P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001213 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001214 .manufacture_id = AMIC_ID,
1215 .model_id = AMIC_A25L80P,
1216 .total_size = 1024,
1217 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001218 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00001219 .tested = TEST_OK_PRE,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001220 .probe = probe_spi_rdid4,
1221 .probe_timing = TIMING_ZERO,
1222 .block_erasers =
1223 {
1224 {
1225 .eraseblocks = {
1226 {4 * 1024, 2},
1227 {8 * 1024, 1},
1228 {16 * 1024, 1},
1229 {32 * 1024, 1},
1230 {64 * 1024, 15},
1231 },
1232 .block_erase = spi_block_erase_d8,
1233 }, {
1234 .eraseblocks = { {1024 * 1024, 1} },
1235 .block_erase = spi_block_erase_c7,
1236 }
1237 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001238 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001239 .unlock = spi_disable_blockprotect,
1240 .write = spi_chip_write_256,
1241 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001242 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001243 },
1244
1245 {
1246 .vendor = "AMIC",
Alan Green1f9cc7d2019-07-01 11:10:45 +10001247 .name = "A25LQ032/A25LQ32A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001248 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001249 .manufacture_id = AMIC_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10001250 .model_id = AMIC_A25LQ032,
Dan Lenski11617122010-07-29 15:00:40 +00001251 .total_size = 4096,
1252 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10001253 /* A25LQ32A supports SFDP */
Daniel Lenski65922a32012-02-15 23:40:23 +00001254 /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */
1255 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Alan Green1f9cc7d2019-07-01 11:10:45 +10001256 .tested = TEST_UNTESTED,
Dan Lenski11617122010-07-29 15:00:40 +00001257 .probe = probe_spi_rdid,
1258 .probe_timing = TIMING_ZERO,
1259 .block_erasers =
1260 {
1261 {
1262 .eraseblocks = { { 4 * 1024, 1024 } },
1263 .block_erase = spi_block_erase_20,
1264 }, {
1265 .eraseblocks = { { 64 * 1024, 64 } },
1266 .block_erase = spi_block_erase_52,
1267 }, {
1268 .eraseblocks = { { 64 * 1024, 64 } },
1269 .block_erase = spi_block_erase_d8,
1270 }, {
1271 .eraseblocks = { { 4096 * 1024, 1 } },
1272 .block_erase = spi_block_erase_60,
1273 }, {
1274 .eraseblocks = { { 4096 * 1024, 1 } },
1275 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001276 }
Dan Lenski11617122010-07-29 15:00:40 +00001277 },
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001278 .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */
1279 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */
Dan Lenski11617122010-07-29 15:00:40 +00001280 .write = spi_chip_write_256,
1281 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001282 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001283 },
1284
1285 {
1286 .vendor = "AMIC",
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001287 .name = "A25LQ16",
1288 .bustype = BUS_SPI,
1289 .manufacture_id = AMIC_ID_NOPREFIX,
1290 .model_id = AMIC_A25LQ16,
1291 .total_size = 2048,
1292 .page_size = 256,
1293 /* supports SFDP */
1294 /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */
1295 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
1296 .tested = TEST_UNTESTED,
1297 .probe = probe_spi_rdid,
1298 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10001299 .block_erasers =
1300 {
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001301 {
1302 .eraseblocks = { { 4 * 1024, 512 } },
1303 .block_erase = spi_block_erase_20,
1304 }, {
1305 .eraseblocks = { { 64 * 1024, 32 } },
1306 .block_erase = spi_block_erase_52,
1307 }, {
1308 .eraseblocks = { { 64 * 1024, 32 } },
1309 .block_erase = spi_block_erase_d8,
1310 }, {
1311 .eraseblocks = { { 2048 * 1024, 1 } },
1312 .block_erase = spi_block_erase_60,
1313 }, {
1314 .eraseblocks = { { 2048 * 1024, 1 } },
1315 .block_erase = spi_block_erase_c7,
1316 }
1317 },
1318 .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */
1319 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */
1320 .write = spi_chip_write_256,
1321 .read = spi_chip_read,
1322 .voltage = {2700, 3600},
1323 },
1324
1325 {
1326 .vendor = "AMIC",
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001327 .name = "A25LQ64",
1328 .bustype = BUS_SPI,
1329 .manufacture_id = AMIC_ID_NOPREFIX,
Stefan Tauner23e10b82016-01-23 16:16:49 +00001330 .model_id = AMIC_A25LQ64,
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001331 .total_size = 8192,
1332 .page_size = 256,
1333 /* supports SFDP */
1334 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
1335 /* QPI enable 0x35, disable 0xF5 */
1336 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
1337 .tested = TEST_UNTESTED,
1338 .probe = probe_spi_rdid,
1339 .probe_timing = TIMING_ZERO,
1340 .block_erasers =
1341 {
1342 {
1343 .eraseblocks = { { 4 * 1024, 2048 } },
1344 .block_erase = spi_block_erase_20,
1345 }, {
1346 .eraseblocks = { { 32 * 1024, 256 } },
1347 .block_erase = spi_block_erase_52,
1348 }, {
1349 .eraseblocks = { { 64 * 1024, 128 } },
1350 .block_erase = spi_block_erase_d8,
1351 }, {
1352 .eraseblocks = { { 8192 * 1024, 1 } },
1353 .block_erase = spi_block_erase_60,
1354 }, {
1355 .eraseblocks = { { 8192 * 1024, 1 } },
1356 .block_erase = spi_block_erase_c7,
1357 }
1358 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001359 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enhance (sic!) */
Stefan Tauner5c316f92015-02-08 21:57:52 +00001360 .unlock = spi_disable_blockprotect_bp3_srwd,
Dan Lenski11617122010-07-29 15:00:40 +00001361 .write = spi_chip_write_256,
1362 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001363 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001364 },
1365
1366 {
1367 .vendor = "AMIC",
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001368 .name = "A29002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001369 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001370 .manufacture_id = AMIC_ID_NOPREFIX,
1371 .model_id = AMIC_A29002B,
1372 .total_size = 256,
1373 .page_size = 64 * 1024,
1374 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
1375 .tested = TEST_UNTESTED,
1376 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001377 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001378 .block_erasers =
1379 {
1380 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00001381 .eraseblocks = {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001382 {16 * 1024, 1},
1383 {8 * 1024, 2},
1384 {32 * 1024, 1},
1385 {64 * 1024, 3},
1386 },
1387 .block_erase = erase_sector_jedec,
1388 }, {
1389 .eraseblocks = { {256 * 1024, 1} },
1390 .block_erase = erase_chip_block_jedec,
1391 },
1392 },
1393 .write = write_jedec_1,
1394 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001395 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001396 },
1397
1398 {
1399 .vendor = "AMIC",
1400 .name = "A29002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001401 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001402 .manufacture_id = AMIC_ID_NOPREFIX,
1403 .model_id = AMIC_A29002T,
1404 .total_size = 256,
1405 .page_size = 64 * 1024,
1406 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00001407 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001408 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001409 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001410 .block_erasers =
1411 {
1412 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00001413 .eraseblocks = {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001414 {64 * 1024, 3},
1415 {32 * 1024, 1},
1416 {8 * 1024, 2},
1417 {16 * 1024, 1},
1418 },
1419 .block_erase = erase_sector_jedec,
1420 }, {
1421 .eraseblocks = { {256 * 1024, 1} },
1422 .block_erase = erase_chip_block_jedec,
1423 },
1424 },
1425 .write = write_jedec_1,
1426 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001427 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001428 },
1429
1430 {
1431 .vendor = "AMIC",
1432 .name = "A29040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001433 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001434 .manufacture_id = AMIC_ID_NOPREFIX,
1435 .model_id = AMIC_A29040B,
1436 .total_size = 512,
1437 .page_size = 64 * 1024,
1438 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Corey Osgoodcbd56652013-09-10 10:42:48 +00001439 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001440 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001441 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001442 .block_erasers =
1443 {
1444 {
1445 .eraseblocks = { {64 * 1024, 8} },
1446 .block_erase = erase_sector_jedec,
1447 }, {
1448 .eraseblocks = { {512 * 1024, 1} },
1449 .block_erase = erase_chip_block_jedec,
1450 },
1451 },
1452 .write = write_jedec_1,
1453 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001454 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001455 },
1456
1457 {
1458 .vendor = "AMIC",
1459 .name = "A49LF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001460 .bustype = BUS_LPC,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001461 .manufacture_id = AMIC_ID_NOPREFIX,
1462 .model_id = AMIC_A49LF040A,
1463 .total_size = 512,
1464 .page_size = 64 * 1024,
1465 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00001466 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001467 .probe = probe_jedec,
1468 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
1469 .block_erasers =
1470 {
1471 {
1472 .eraseblocks = { {64 * 1024, 8} },
1473 .block_erase = erase_block_jedec,
1474 }, {
1475 .eraseblocks = { {512 * 1024, 1} },
1476 .block_erase = erase_chip_block_jedec,
1477 }
1478 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00001479 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001480 .write = write_jedec_1,
1481 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001482 .voltage = {3000, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001483 },
1484
1485 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001486 .vendor = "Atmel",
1487 .name = "AT25DF021",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001488 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001489 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001490 .model_id = ATMEL_AT25DF021,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001491 .total_size = 256,
1492 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001493 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1494 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001495 .tested = TEST_UNTESTED,
1496 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001497 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001498 .block_erasers =
1499 {
1500 {
1501 .eraseblocks = { {4 * 1024, 64} },
1502 .block_erase = spi_block_erase_20,
1503 }, {
1504 .eraseblocks = { {32 * 1024, 8} },
1505 .block_erase = spi_block_erase_52,
1506 }, {
1507 .eraseblocks = { {64 * 1024, 4} },
1508 .block_erase = spi_block_erase_d8,
1509 }, {
1510 .eraseblocks = { {256 * 1024, 1} },
1511 .block_erase = spi_block_erase_60,
1512 }, {
1513 .eraseblocks = { {256 * 1024, 1} },
1514 .block_erase = spi_block_erase_c7,
1515 }
1516 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001517 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001518 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001519 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001520 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001521 .voltage = {2700, 3600}, /* 2.3-3.6V & 2.7-3.6V models available */
FENG yu ningff692fb2008-12-08 18:15:10 +00001522 },
1523
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001524 {
1525 .vendor = "Atmel",
Steffen Mauch0b59b0d2018-06-02 23:46:03 +02001526 .name = "AT25DF021A",
1527 .bustype = BUS_SPI,
1528 .manufacture_id = ATMEL_ID,
1529 .model_id = ATMEL_AT25DF021A,
1530 .total_size = 256,
1531 .page_size = 256,
1532 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1533 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
1534 .tested = TEST_OK_PREW,
1535 .probe = probe_spi_rdid,
1536 .probe_timing = TIMING_ZERO,
1537 .block_erasers =
1538 {
1539 {
1540 .eraseblocks = { {4 * 1024, 64} },
1541 .block_erase = spi_block_erase_20,
1542 }, {
1543 .eraseblocks = { {32 * 1024, 8} },
1544 .block_erase = spi_block_erase_52,
1545 }, {
1546 .eraseblocks = { {64 * 1024, 4} },
1547 .block_erase = spi_block_erase_d8,
1548 }, {
1549 .eraseblocks = { {256 * 1024, 1} },
1550 .block_erase = spi_block_erase_60,
1551 }, {
1552 .eraseblocks = { {256 * 1024, 1} },
1553 .block_erase = spi_block_erase_c7,
1554 }
1555 },
1556 .printlock = spi_prettyprint_status_register_at25df,
1557 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
1558 .write = spi_chip_write_256,
1559 .read = spi_chip_read,
1560 .voltage = {1650, 3600},
1561 },
1562
1563 {
1564 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001565 .name = "AT25DF041A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001566 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001567 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001568 .model_id = ATMEL_AT25DF041A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001569 .total_size = 512,
1570 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001571 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +00001572 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001573 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001574 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001575 .block_erasers =
1576 {
1577 {
1578 .eraseblocks = { {4 * 1024, 128} },
1579 .block_erase = spi_block_erase_20,
1580 }, {
1581 .eraseblocks = { {32 * 1024, 16} },
1582 .block_erase = spi_block_erase_52,
1583 }, {
1584 .eraseblocks = { {64 * 1024, 8} },
1585 .block_erase = spi_block_erase_d8,
1586 }, {
1587 .eraseblocks = { {512 * 1024, 1} },
1588 .block_erase = spi_block_erase_60,
1589 }, {
1590 .eraseblocks = { {512 * 1024, 1} },
1591 .block_erase = spi_block_erase_c7,
1592 }
1593 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001594 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001595 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001596 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001597 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001598 .voltage = {2700, 3600}, /* 2.3-3.6V & 2.7-3.6V models available */
FENG yu ningff692fb2008-12-08 18:15:10 +00001599 },
1600
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001601 {
1602 .vendor = "Atmel",
1603 .name = "AT25DF081",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001604 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001605 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001606 .model_id = ATMEL_AT25DF081,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001607 .total_size = 1024,
1608 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001609 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001610 .tested = TEST_UNTESTED,
1611 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001612 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001613 .block_erasers =
1614 {
1615 {
1616 .eraseblocks = { {4 * 1024, 256} },
1617 .block_erase = spi_block_erase_20,
1618 }, {
1619 .eraseblocks = { {32 * 1024, 32} },
1620 .block_erase = spi_block_erase_52,
1621 }, {
1622 .eraseblocks = { {64 * 1024, 16} },
1623 .block_erase = spi_block_erase_d8,
1624 }, {
1625 .eraseblocks = { {1024 * 1024, 1} },
1626 .block_erase = spi_block_erase_60,
1627 }, {
1628 .eraseblocks = { {1024 * 1024, 1} },
1629 .block_erase = spi_block_erase_c7,
1630 }
1631 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001632 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001633 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001634 .write = spi_chip_write_256,
1635 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001636 .voltage = {1600, 2000}, /* Datasheet says range is 1.65-1.95 V */
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001637 },
1638
1639 {
1640 .vendor = "Atmel",
1641 .name = "AT25DF081A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001642 .bustype = BUS_SPI,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001643 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001644 .model_id = ATMEL_AT25DF081A,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001645 .total_size = 1024,
1646 .page_size = 256,
1647 .feature_bits = FEATURE_WRSR_WREN,
1648 .tested = TEST_UNTESTED,
1649 .probe = probe_spi_rdid,
1650 .probe_timing = TIMING_ZERO,
1651 .block_erasers =
1652 {
1653 {
1654 .eraseblocks = { {4 * 1024, 256} },
1655 .block_erase = spi_block_erase_20,
1656 }, {
1657 .eraseblocks = { {32 * 1024, 32} },
1658 .block_erase = spi_block_erase_52,
1659 }, {
1660 .eraseblocks = { {64 * 1024, 16} },
1661 .block_erase = spi_block_erase_d8,
1662 }, {
1663 .eraseblocks = { {1024 * 1024, 1} },
1664 .block_erase = spi_block_erase_60,
1665 }, {
1666 .eraseblocks = { {1024 * 1024, 1} },
1667 .block_erase = spi_block_erase_c7,
1668 }
1669 },
1670 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001671 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001672 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001673 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001674 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001675 },
1676
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001677 {
1678 .vendor = "Atmel",
1679 .name = "AT25DF161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001680 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001681 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001682 .model_id = ATMEL_AT25DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001683 .total_size = 2048,
1684 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001685 .feature_bits = FEATURE_WRSR_WREN,
Angel Pons8b5b9622018-09-30 19:13:15 +02001686 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001687 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001688 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001689 .block_erasers =
1690 {
1691 {
1692 .eraseblocks = { {4 * 1024, 512} },
1693 .block_erase = spi_block_erase_20,
1694 }, {
1695 .eraseblocks = { {32 * 1024, 64} },
1696 .block_erase = spi_block_erase_52,
1697 }, {
1698 .eraseblocks = { {64 * 1024, 32} },
1699 .block_erase = spi_block_erase_d8,
1700 }, {
1701 .eraseblocks = { {2 * 1024 * 1024, 1} },
1702 .block_erase = spi_block_erase_60,
1703 }, {
1704 .eraseblocks = { {2 * 1024 * 1024, 1} },
1705 .block_erase = spi_block_erase_c7,
1706 }
1707 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001708 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001709 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001710 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001711 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001712 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001713 },
1714
Alan Green86bf6ab2019-06-27 16:58:20 +10001715 /*The AT26DF321 has the same ID as the AT25DF321. */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001716 {
1717 .vendor = "Atmel",
1718 .name = "AT25DF321",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001719 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001720 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001721 .model_id = ATMEL_AT25DF321,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001722 .total_size = 4096,
1723 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001724 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd06d9412011-06-12 19:47:55 +00001725 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001726 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001727 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001728 .block_erasers =
1729 {
1730 {
1731 .eraseblocks = { {4 * 1024, 1024} },
1732 .block_erase = spi_block_erase_20,
1733 }, {
1734 .eraseblocks = { {32 * 1024, 128} },
1735 .block_erase = spi_block_erase_52,
1736 }, {
1737 .eraseblocks = { {64 * 1024, 64} },
1738 .block_erase = spi_block_erase_d8,
1739 }, {
1740 .eraseblocks = { {4 * 1024 * 1024, 1} },
1741 .block_erase = spi_block_erase_60,
1742 }, {
1743 .eraseblocks = { {4 * 1024 * 1024, 1} },
1744 .block_erase = spi_block_erase_c7,
1745 }
1746 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001747 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001748 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001749 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001750 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001751 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001752 },
1753
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001754 {
1755 .vendor = "Atmel",
1756 .name = "AT25DF321A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001757 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001758 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001759 .model_id = ATMEL_AT25DF321A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001760 .total_size = 4096,
1761 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001762 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1763 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00001764 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001765 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001766 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001767 .block_erasers =
1768 {
1769 {
1770 .eraseblocks = { {4 * 1024, 1024} },
1771 .block_erase = spi_block_erase_20,
1772 }, {
1773 .eraseblocks = { {32 * 1024, 128} },
1774 .block_erase = spi_block_erase_52,
1775 }, {
1776 .eraseblocks = { {64 * 1024, 64} },
1777 .block_erase = spi_block_erase_d8,
1778 }, {
1779 .eraseblocks = { {4 * 1024 * 1024, 1} },
1780 .block_erase = spi_block_erase_60,
1781 }, {
1782 .eraseblocks = { {4 * 1024 * 1024, 1} },
1783 .block_erase = spi_block_erase_c7,
1784 }
1785 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001786 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001787 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001788 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001789 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001790 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001791 },
1792
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001793 {
1794 .vendor = "Atmel",
Paul Menzelac427b22012-02-16 21:07:07 +00001795 .name = "AT25DF641(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001796 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001797 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001798 .model_id = ATMEL_AT25DF641,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001799 .total_size = 8192,
1800 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001801 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00001802 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001803 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001804 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001805 .block_erasers =
1806 {
1807 {
1808 .eraseblocks = { {4 * 1024, 2048} },
1809 .block_erase = spi_block_erase_20,
1810 }, {
1811 .eraseblocks = { {32 * 1024, 256} },
1812 .block_erase = spi_block_erase_52,
1813 }, {
1814 .eraseblocks = { {64 * 1024, 128} },
1815 .block_erase = spi_block_erase_d8,
1816 }, {
1817 .eraseblocks = { {8 * 1024 * 1024, 1} },
1818 .block_erase = spi_block_erase_60,
1819 }, {
1820 .eraseblocks = { {8 * 1024 * 1024, 1} },
1821 .block_erase = spi_block_erase_c7,
1822 }
1823 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001824 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001825 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001826 .write = spi_chip_write_256,
1827 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001828 .voltage = {2700, 3600},
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001829 },
1830
1831 {
1832 .vendor = "Atmel",
Stefan Taunerc9d8b272014-06-01 13:22:35 +00001833 .name = "AT25DL081",
1834 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +10001835 .manufacture_id = ATMEL_ID,
Stefan Taunerc9d8b272014-06-01 13:22:35 +00001836 .model_id = ATMEL_AT25DF081,
1837 .total_size = 1024,
1838 .page_size = 256,
1839 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1840 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
1841 .tested = TEST_UNTESTED,
1842 .probe = probe_spi_rdid,
1843 .probe_timing = TIMING_ZERO,
1844 .block_erasers =
1845 {
1846 {
1847 .eraseblocks = { {4 * 1024, 256} },
1848 .block_erase = spi_block_erase_20,
1849 }, {
1850 .eraseblocks = { {32 * 1024, 32} },
1851 .block_erase = spi_block_erase_52,
1852 }, {
1853 .eraseblocks = { {64 * 1024, 16} },
1854 .block_erase = spi_block_erase_d8,
1855 }, {
1856 .eraseblocks = { {1 * 1024 * 1024, 1} },
1857 .block_erase = spi_block_erase_60,
1858 }, {
1859 .eraseblocks = { {1 * 1024 * 1024, 1} },
1860 .block_erase = spi_block_erase_c7,
1861 }
1862 },
1863 .printlock = spi_prettyprint_status_register_at25df_sec,
1864 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
1865 .write = spi_chip_write_256, /* Dual I/O (0xA2) supported */
1866 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
1867 .voltage = {1650, 1950},
1868 },
1869
1870 {
1871 .vendor = "Atmel",
1872 .name = "AT25DL161",
1873 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +10001874 .manufacture_id = ATMEL_ID,
Stefan Taunerc9d8b272014-06-01 13:22:35 +00001875 .model_id = ATMEL_AT25DL161,
1876 .total_size = 2048,
1877 .page_size = 256,
1878 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1879 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
1880 .tested = TEST_UNTESTED,
1881 .probe = probe_spi_rdid,
1882 .probe_timing = TIMING_ZERO,
1883 .block_erasers =
1884 {
1885 {
1886 .eraseblocks = { {4 * 1024, 512} },
1887 .block_erase = spi_block_erase_20,
1888 }, {
1889 .eraseblocks = { {32 * 1024, 64} },
1890 .block_erase = spi_block_erase_52,
1891 }, {
1892 .eraseblocks = { {64 * 1024, 32} },
1893 .block_erase = spi_block_erase_d8,
1894 }, {
1895 .eraseblocks = { {2 * 1024 * 1024, 1} },
1896 .block_erase = spi_block_erase_60,
1897 }, {
1898 .eraseblocks = { {2 * 1024 * 1024, 1} },
1899 .block_erase = spi_block_erase_c7,
1900 }
1901 },
1902 .printlock = spi_prettyprint_status_register_at25df_sec,
1903 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
1904 .write = spi_chip_write_256, /* Dual I/O (0xA2) supported */
1905 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
1906 .voltage = {1650, 1950},
1907 },
1908
1909 {
1910 .vendor = "Atmel",
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001911 .name = "AT25DQ161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001912 .bustype = BUS_SPI,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001913 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001914 .model_id = ATMEL_AT25DQ161,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001915 .total_size = 2048,
1916 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001917 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1918 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001919 .tested = TEST_UNTESTED,
1920 .probe = probe_spi_rdid,
1921 .probe_timing = TIMING_ZERO,
1922 .block_erasers =
1923 {
1924 {
1925 .eraseblocks = { {4 * 1024, 512} },
1926 .block_erase = spi_block_erase_20,
1927 }, {
1928 .eraseblocks = { {32 * 1024, 64} },
1929 .block_erase = spi_block_erase_52,
1930 }, {
1931 .eraseblocks = { {64 * 1024, 32} },
1932 .block_erase = spi_block_erase_d8,
1933 }, {
1934 .eraseblocks = { {2 * 1024 * 1024, 1} },
1935 .block_erase = spi_block_erase_60,
1936 }, {
1937 .eraseblocks = { {2 * 1024 * 1024, 1} },
1938 .block_erase = spi_block_erase_c7,
1939 }
1940 },
1941 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001942 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001943 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001944 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001945 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001946 },
1947
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001948 {
1949 .vendor = "Atmel",
Alan Green1f9cc7d2019-07-01 11:10:45 +10001950 /* The A suffix indicates 33MHz instead of 20MHz clock rate.
1951 * All other properties seem to be the same.*/
1952 .name = "AT25F1024(A)",
1953 .bustype = BUS_SPI,
1954 .manufacture_id = ATMEL_ID,
1955 .model_id = ATMEL_AT25F1024,
1956 .total_size = 128,
1957 .page_size = 256,
1958 .feature_bits = FEATURE_WRSR_WREN,
1959 .tested = TEST_OK_PREW,
1960 .probe = probe_spi_at25f,
1961 .probe_timing = TIMING_ZERO,
1962 .block_erasers =
1963 {
1964 {
1965 .eraseblocks = { {32 * 1024, 4} },
1966 .block_erase = spi_block_erase_52,
1967 }, {
1968 .eraseblocks = { {128 * 1024, 1} },
1969 .block_erase = spi_block_erase_62,
1970 }
1971 },
1972 .printlock = spi_prettyprint_status_register_at25f,
1973 .unlock = spi_disable_blockprotect_at25f,
1974 .write = spi_chip_write_256,
1975 .read = spi_chip_read,
1976 .voltage = {2700, 3600},
1977 },
1978
1979 {
1980 .vendor = "Atmel",
1981 .name = "AT25F2048",
1982 .bustype = BUS_SPI,
1983 .manufacture_id = ATMEL_ID,
1984 .model_id = ATMEL_AT25F2048,
1985 .total_size = 256,
1986 .page_size = 256,
1987 .feature_bits = FEATURE_WRSR_WREN,
1988 .tested = TEST_UNTESTED,
1989 .probe = probe_spi_at25f,
1990 .probe_timing = TIMING_ZERO,
1991 .block_erasers =
1992 {
1993 {
1994 .eraseblocks = { {64 * 1024, 4} },
1995 .block_erase = spi_block_erase_52,
1996 }, {
1997 .eraseblocks = { {256 * 1024, 1} },
1998 .block_erase = spi_block_erase_62,
1999 }
2000 },
2001 .printlock = spi_prettyprint_status_register_at25f,
2002 .unlock = spi_disable_blockprotect_at25f,
2003 .write = spi_chip_write_256,
2004 .read = spi_chip_read,
2005 .voltage = {2700, 3600},
2006 },
2007
2008 {
2009 .vendor = "Atmel",
2010 .name = "AT25F4096",
2011 .bustype = BUS_SPI,
2012 .manufacture_id = ATMEL_ID,
2013 .model_id = ATMEL_AT25F4096,
2014 .total_size = 512,
2015 .page_size = 256,
2016 .feature_bits = FEATURE_WRSR_WREN,
2017 .tested = TEST_OK_PREW,
2018 .probe = probe_spi_at25f,
2019 .probe_timing = TIMING_ZERO,
2020 .block_erasers =
2021 {
2022 {
2023 .eraseblocks = { {64 * 1024, 8} },
2024 .block_erase = spi_block_erase_52,
2025 }, {
2026 .eraseblocks = { {512 * 1024, 1} },
2027 .block_erase = spi_block_erase_62,
2028 }
2029 },
2030 .printlock = spi_prettyprint_status_register_at25f4096,
2031 /* "Bits 5-6 are 0s when device is not in an internal write cycle." Better leave them alone: */
2032 .unlock = spi_disable_blockprotect_bp2_srwd,
2033 .write = spi_chip_write_256,
2034 .read = spi_chip_read,
2035 .voltage = {2700, 3600},
2036 },
2037
2038 {
2039 .vendor = "Atmel",
Stefan Tauner57794ac2012-12-29 15:04:20 +00002040 .name = "AT25F512",
2041 .bustype = BUS_SPI,
2042 .manufacture_id = ATMEL_ID,
2043 .model_id = ATMEL_AT25F512,
2044 .total_size = 64,
2045 .page_size = 256,
2046 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00002047 .tested = TEST_OK_PREW,
Stefan Tauner57794ac2012-12-29 15:04:20 +00002048 .probe = probe_spi_at25f,
2049 .probe_timing = TIMING_ZERO,
2050 .block_erasers =
2051 {
2052 {
2053 .eraseblocks = { {32 * 1024, 2} },
2054 .block_erase = spi_block_erase_52,
2055 }, {
2056 .eraseblocks = { {64 * 1024, 1} },
2057 .block_erase = spi_block_erase_62,
2058 }
2059 },
2060 .printlock = spi_prettyprint_status_register_at25f,
2061 .unlock = spi_disable_blockprotect_at25f,
2062 .write = spi_chip_write_256,
2063 .read = spi_chip_read,
2064 .voltage = {2700, 3600},
2065 },
2066
2067 {
2068 .vendor = "Atmel",
2069 .name = "AT25F512A",
2070 .bustype = BUS_SPI,
2071 .manufacture_id = ATMEL_ID,
2072 .model_id = ATMEL_AT25F512A,
2073 .total_size = 64,
2074 .page_size = 128,
2075 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00002076 .tested = TEST_OK_PREW,
Stefan Tauner57794ac2012-12-29 15:04:20 +00002077 .probe = probe_spi_at25f,
2078 .probe_timing = TIMING_ZERO,
2079 .block_erasers =
2080 {
2081 {
2082 .eraseblocks = { {32 * 1024, 2} },
2083 .block_erase = spi_block_erase_52,
2084 }, {
2085 .eraseblocks = { {64 * 1024, 1} },
2086 .block_erase = spi_block_erase_62,
2087 }
2088 },
2089 .printlock = spi_prettyprint_status_register_at25f512a,
2090 /* FIXME: It is not correct to use this one, because the BP1 bit is N/A. */
2091 .unlock = spi_disable_blockprotect_at25f512a,
2092 .write = spi_chip_write_256,
2093 .read = spi_chip_read,
2094 .voltage = {2700, 3600},
2095 },
2096
2097 {
2098 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002099 .name = "AT25F512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002100 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002101 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002102 .model_id = ATMEL_AT25F512B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002103 .total_size = 64,
2104 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00002105 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2106 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002107 .tested = TEST_UNTESTED,
2108 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002109 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002110 .block_erasers =
2111 {
2112 {
2113 .eraseblocks = { {4 * 1024, 16} },
2114 .block_erase = spi_block_erase_20,
2115 }, {
2116 .eraseblocks = { {32 * 1024, 2} },
2117 .block_erase = spi_block_erase_52,
2118 }, {
2119 .eraseblocks = { {32 * 1024, 2} },
2120 .block_erase = spi_block_erase_d8,
2121 }, {
2122 .eraseblocks = { {64 * 1024, 1} },
2123 .block_erase = spi_block_erase_60,
2124 }, {
2125 .eraseblocks = { {64 * 1024, 1} },
2126 .block_erase = spi_block_erase_c7,
Stefan Tauner3c0fcd02012-09-21 12:46:56 +00002127 }, {
2128 .eraseblocks = { {64 * 1024, 1} },
2129 .block_erase = spi_block_erase_62,
Sean Nelson89187292009-12-23 12:02:55 +00002130 }
2131 },
Stefan Tauner7bf4ed92012-08-26 21:04:27 +00002132 .printlock = spi_prettyprint_status_register_at25f512b,
2133 .unlock = spi_disable_blockprotect_at25f512b,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002134 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002135 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002136 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002137 },
2138
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002139 {
2140 .vendor = "Atmel",
2141 .name = "AT25FS010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002142 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002143 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002144 .model_id = ATMEL_AT25FS010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002145 .total_size = 128,
2146 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002147 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00002148 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002149 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002150 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002151 .block_erasers =
2152 {
2153 {
2154 .eraseblocks = { {4 * 1024, 32} },
2155 .block_erase = spi_block_erase_20,
2156 }, {
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00002157 .eraseblocks = { {4 * 1024, 32} },
2158 .block_erase = spi_block_erase_d7,
2159 }, {
Sean Nelson89187292009-12-23 12:02:55 +00002160 .eraseblocks = { {32 * 1024, 4} },
2161 .block_erase = spi_block_erase_52,
2162 }, {
2163 .eraseblocks = { {32 * 1024, 4} },
2164 .block_erase = spi_block_erase_d8,
2165 }, {
2166 .eraseblocks = { {128 * 1024, 1} },
2167 .block_erase = spi_block_erase_60,
2168 }, {
2169 .eraseblocks = { {128 * 1024, 1} },
2170 .block_erase = spi_block_erase_c7,
2171 }
2172 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00002173 .printlock = spi_prettyprint_status_register_at25fs010,
2174 .unlock = spi_disable_blockprotect_at25fs010,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002175 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002176 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002177 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002178 },
2179
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002180 {
2181 .vendor = "Atmel",
2182 .name = "AT25FS040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002183 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002184 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002185 .model_id = ATMEL_AT25FS040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002186 .total_size = 512,
2187 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002188 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002189 .tested = TEST_UNTESTED,
2190 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002191 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002192 .block_erasers =
2193 {
2194 {
2195 .eraseblocks = { {4 * 1024, 128} },
2196 .block_erase = spi_block_erase_20,
2197 }, {
2198 .eraseblocks = { {64 * 1024, 8} },
2199 .block_erase = spi_block_erase_52,
2200 }, {
2201 .eraseblocks = { {64 * 1024, 8} },
2202 .block_erase = spi_block_erase_d8,
2203 }, {
2204 .eraseblocks = { {512 * 1024, 1} },
2205 .block_erase = spi_block_erase_60,
2206 }, {
2207 .eraseblocks = { {512 * 1024, 1} },
2208 .block_erase = spi_block_erase_c7,
2209 }
2210 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00002211 .printlock = spi_prettyprint_status_register_at25fs040,
2212 .unlock = spi_disable_blockprotect_at25fs040,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002213 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002214 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002215 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002216 },
2217
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002218 {
2219 .vendor = "Atmel",
jvma3ab6c62018-03-08 15:43:20 +01002220 .name = "AT25SF041",
2221 .bustype = BUS_SPI,
2222 .manufacture_id = ATMEL_ID,
2223 .model_id = ATMEL_AT25SF041,
2224 .total_size = 512,
2225 .page_size = 256,
2226 .feature_bits = FEATURE_WRSR_WREN,
2227 .tested = TEST_OK_PREW,
2228 .probe = probe_spi_rdid,
2229 .probe_timing = TIMING_ZERO,
2230 .block_erasers =
2231 {
2232 {
2233 .eraseblocks = { {4 * 1024, 128} },
2234 .block_erase = spi_block_erase_20,
2235 }, {
2236 .eraseblocks = { {32 * 1024, 16} },
2237 .block_erase = spi_block_erase_52,
2238 }, {
2239 .eraseblocks = { {64 * 1024, 8} },
2240 .block_erase = spi_block_erase_d8,
2241 }, {
2242 .eraseblocks = { {512 * 1024, 1} },
2243 .block_erase = spi_block_erase_60,
2244 }, {
2245 .eraseblocks = { {512 * 1024, 1} },
2246 .block_erase = spi_block_erase_c7,
2247 }
2248 },
2249 .printlock = spi_prettyprint_status_register_plain,
2250 .unlock = spi_disable_blockprotect,
2251 .write = spi_chip_write_256,
2252 .read = spi_chip_read,
2253 .voltage = {2500, 3600},
2254 },
2255
2256 {
2257 .vendor = "Atmel",
Evan Jensen291c1012018-05-17 14:30:19 -07002258 .name = "AT25SF081",
2259 .bustype = BUS_SPI,
2260 .manufacture_id = ATMEL_ID,
2261 .model_id = ATMEL_AT25SF081,
2262 .total_size = 1024,
2263 .page_size = 256,
2264 .feature_bits = FEATURE_WRSR_WREN,
2265 .tested = TEST_OK_PREW,
2266 .probe = probe_spi_rdid,
2267 .probe_timing = TIMING_ZERO,
2268 .block_erasers =
2269 {
2270 {
2271 .eraseblocks = { {4 * 1024, 256} },
2272 .block_erase = spi_block_erase_20,
2273 }, {
2274 .eraseblocks = { {32 * 1024, 32} },
2275 .block_erase = spi_block_erase_52,
2276 }, {
2277 .eraseblocks = { {64 * 1024, 16} },
2278 .block_erase = spi_block_erase_d8,
2279 }, {
2280 .eraseblocks = { {1024 * 1024, 1} },
2281 .block_erase = spi_block_erase_60,
2282 }, {
2283 .eraseblocks = { {1024 * 1024, 1} },
2284 .block_erase = spi_block_erase_c7,
2285 }
2286 },
2287 .printlock = spi_prettyprint_status_register_plain,
2288 .unlock = spi_disable_blockprotect,
2289 .write = spi_chip_write_256,
2290 .read = spi_chip_read,
2291 .voltage = {2300, 3600},
2292 },
2293
2294 {
2295 .vendor = "Atmel",
Stanislav Sedovf5775442018-03-07 14:16:51 -08002296 .name = "AT25SF161",
2297 .bustype = BUS_SPI,
2298 .manufacture_id = ATMEL_ID,
2299 .model_id = ATMEL_AT25SF161,
2300 .total_size = 2048,
2301 .page_size = 256,
2302 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
2303 .tested = TEST_OK_PREW,
2304 .probe = probe_spi_rdid,
2305 .probe_timing = TIMING_ZERO,
2306 .block_erasers =
2307 {
2308 {
2309 .eraseblocks = { {4 * 1024, 512} },
2310 .block_erase = spi_block_erase_20,
2311 }, {
2312 .eraseblocks = { {32 * 1024, 64} },
2313 .block_erase = spi_block_erase_52,
2314 }, {
2315 .eraseblocks = { {64 * 1024, 32} },
2316 .block_erase = spi_block_erase_d8,
2317 }, {
2318 .eraseblocks = { {2048 * 1024, 1} },
2319 .block_erase = spi_block_erase_60,
2320 }, {
2321 .eraseblocks = { {2048 * 1024, 1} },
2322 .block_erase = spi_block_erase_c7,
2323 }
2324 },
2325 .printlock = spi_prettyprint_status_register_plain,
2326 .unlock = spi_disable_blockprotect,
2327 .write = spi_chip_write_256,
2328 .read = spi_chip_read,
2329 .voltage = {2500, 3600},
2330 },
2331
2332 {
Alan Green57938f82019-06-27 15:06:43 +10002333 .vendor = "Atmel",
darkarnium41394382019-11-04 20:06:48 +00002334 .name = "AT25SF321",
2335 .bustype = BUS_SPI,
2336 .manufacture_id = ATMEL_ID,
2337 .model_id = ATMEL_AT25SF321,
2338 .total_size = 4096,
2339 .page_size = 256,
2340 .feature_bits = FEATURE_WRSR_WREN,
2341 .tested = TEST_OK_PR,
2342 .probe = probe_spi_rdid,
2343 .probe_timing = TIMING_ZERO,
2344 .block_erasers =
2345 {
2346 {
2347 .eraseblocks = { {4 * 1024, 1024} },
2348 .block_erase = spi_block_erase_20,
2349 }, {
2350 .eraseblocks = { {32 * 1024, 128} },
2351 .block_erase = spi_block_erase_52,
2352 }, {
2353 .eraseblocks = { {64 * 1024, 64} },
2354 .block_erase = spi_block_erase_d8,
2355 }, {
2356 .eraseblocks = { {4096 * 1024, 1} },
2357 .block_erase = spi_block_erase_60,
2358 }, {
2359 .eraseblocks = { {4096 * 1024, 1} },
2360 .block_erase = spi_block_erase_c7,
2361 }
2362 },
2363 .printlock = spi_prettyprint_status_register_plain,
2364 .unlock = spi_disable_blockprotect,
2365 .write = spi_chip_write_256,
2366 .read = spi_chip_read,
2367 .voltage = {2500, 3600},
2368 },
2369
2370 {
2371 .vendor = "Atmel",
Hal Martin49e23d22018-05-27 14:18:43 +02002372 .name = "AT25SL128A",
2373 .bustype = BUS_SPI,
2374 .manufacture_id = ATMEL_ID,
2375 .model_id = ATMEL_AT25SL128A,
2376 .total_size = 16384,
2377 .page_size = 256,
2378 /* supports SFDP */
Nikolai Artemievd32e18b2022-02-15 18:06:55 +11002379 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_WRSR2,
Hal Martin49e23d22018-05-27 14:18:43 +02002380 .tested = TEST_OK_PREW,
2381 .probe = probe_spi_rdid,
2382 .probe_timing = TIMING_ZERO,
2383 .block_erasers =
2384 {
2385 {
2386 .eraseblocks = { {4 * 1024, 4096} },
2387 .block_erase = spi_block_erase_20,
2388 }, {
2389 .eraseblocks = { {32 * 1024, 512} },
2390 .block_erase = spi_block_erase_52,
2391 }, {
2392 .eraseblocks = { {64 * 1024, 256} },
2393 .block_erase = spi_block_erase_d8,
2394 }, {
2395 .eraseblocks = { {16 * 1024 * 1024, 1} },
2396 .block_erase = spi_block_erase_60,
2397 }, {
2398 .eraseblocks = { {16 * 1024 * 1024, 1} },
2399 .block_erase = spi_block_erase_c7,
2400 }
2401 },
2402 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
2403 .unlock = spi_disable_blockprotect,
2404 .write = spi_chip_write_256,
2405 .read = spi_chip_read,
2406 .voltage = {1700, 2000},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +11002407 .reg_bits =
2408 {
2409 .srp = {STATUS1, 7, RW},
2410 .srl = {STATUS2, 0, RW},
2411 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
2412 .tb = {STATUS1, 5, RW},
2413 .sec = {STATUS1, 6, RW},
2414 .cmp = {STATUS2, 6, RW},
2415 },
2416 .decode_range = decode_range_spi25,
Hal Martin49e23d22018-05-27 14:18:43 +02002417 },
2418
2419 {
Stanislav Sedovf5775442018-03-07 14:16:51 -08002420 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002421 .name = "AT26DF041",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002422 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002423 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002424 .model_id = ATMEL_AT26DF041,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002425 .total_size = 512,
2426 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002427 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner94b39b42012-10-27 00:06:02 +00002428 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002429 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002430 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002431 .block_erasers =
2432 {
2433 {
Stefan Tauner94b39b42012-10-27 00:06:02 +00002434 .eraseblocks = { {256, 2048} },
2435 .block_erase = spi_block_erase_81,
2436 }, {
2437 .eraseblocks = { {2 * 1024, 256} },
2438 .block_erase = spi_block_erase_50,
2439 }, {
Sean Nelson89187292009-12-23 12:02:55 +00002440 .eraseblocks = { {4 * 1024, 128} },
2441 .block_erase = spi_block_erase_20,
2442 }
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002443 },
Stefan Taunercecb2c52013-06-20 22:55:41 +00002444 .printlock = spi_prettyprint_status_register_plain,
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002445 /* Supports also an incompatible page write (of exactly 256 B) and an auto-erasing write. */
Stefan Tauner94b39b42012-10-27 00:06:02 +00002446 .write = spi_chip_write_1,
2447 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002448 .voltage = {2700, 3600}, /* 3.0-3.6V for higher speed, 2.7-3.6V normal */
FENG yu ningff692fb2008-12-08 18:15:10 +00002449 },
2450
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002451 {
2452 .vendor = "Atmel",
2453 .name = "AT26DF081A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002454 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002455 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002456 .model_id = ATMEL_AT26DF081A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002457 .total_size = 1024,
2458 .page_size = 256,
Mathias Krause2c3afa32011-01-17 07:45:54 +00002459 .feature_bits = FEATURE_WRSR_WREN,
2460 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002461 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002462 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002463 .block_erasers =
2464 {
2465 {
2466 .eraseblocks = { {4 * 1024, 256} },
2467 .block_erase = spi_block_erase_20,
2468 }, {
2469 .eraseblocks = { {32 * 1024, 32} },
2470 .block_erase = spi_block_erase_52,
2471 }, {
2472 .eraseblocks = { {64 * 1024, 16} },
2473 .block_erase = spi_block_erase_d8,
2474 }, {
2475 .eraseblocks = { {1024 * 1024, 1} },
2476 .block_erase = spi_block_erase_60,
2477 }, {
2478 .eraseblocks = { {1024 * 1024, 1} },
2479 .block_erase = spi_block_erase_c7,
2480 }
2481 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002482 .printlock = spi_prettyprint_status_register_at26df081a,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002483 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002484 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002485 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002486 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002487 },
2488
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002489 {
2490 .vendor = "Atmel",
2491 .name = "AT26DF161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002492 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002493 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002494 .model_id = ATMEL_AT26DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002495 .total_size = 2048,
2496 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002497 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +00002498 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002499 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002500 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002501 .block_erasers =
2502 {
2503 {
2504 .eraseblocks = { {4 * 1024, 512} },
2505 .block_erase = spi_block_erase_20,
2506 }, {
2507 .eraseblocks = { {32 * 1024, 64} },
2508 .block_erase = spi_block_erase_52,
2509 }, {
2510 .eraseblocks = { {64 * 1024, 32} },
2511 .block_erase = spi_block_erase_d8,
2512 }, {
2513 .eraseblocks = { {2 * 1024 * 1024, 1} },
2514 .block_erase = spi_block_erase_60,
2515 }, {
2516 .eraseblocks = { {2 * 1024 * 1024, 1} },
2517 .block_erase = spi_block_erase_c7,
2518 }
2519 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00002520 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002521 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002522 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002523 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002524 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002525 },
2526
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002527 {
2528 .vendor = "Atmel",
2529 .name = "AT26DF161A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002530 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002531 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002532 .model_id = ATMEL_AT26DF161A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002533 .total_size = 2048,
2534 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002535 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002536 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002537 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002538 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002539 .block_erasers =
2540 {
2541 {
2542 .eraseblocks = { {4 * 1024, 512} },
2543 .block_erase = spi_block_erase_20,
2544 }, {
2545 .eraseblocks = { {32 * 1024, 64} },
2546 .block_erase = spi_block_erase_52,
2547 }, {
2548 .eraseblocks = { {64 * 1024, 32} },
2549 .block_erase = spi_block_erase_d8,
2550 }, {
2551 .eraseblocks = { {2 * 1024 * 1024, 1} },
2552 .block_erase = spi_block_erase_60,
2553 }, {
2554 .eraseblocks = { {2 * 1024 * 1024, 1} },
2555 .block_erase = spi_block_erase_c7,
2556 }
2557 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002558 .printlock = spi_prettyprint_status_register_at26df081a,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002559 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002560 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002561 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002562 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002563 },
2564
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002565 {
2566 .vendor = "Atmel",
2567 .name = "AT26F004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002568 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002569 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002570 .model_id = ATMEL_AT26F004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002571 .total_size = 512,
2572 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002573 .feature_bits = FEATURE_WRSR_WREN,
Alan Green908adf42019-07-03 15:34:06 +10002574 .tested = {.probe = NT, .read = NT, .erase = NT, .write = BAD},
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002575 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002576 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002577 .block_erasers =
2578 {
2579 {
2580 .eraseblocks = { {4 * 1024, 128} },
2581 .block_erase = spi_block_erase_20,
2582 }, {
2583 .eraseblocks = { {32 * 1024, 16} },
2584 .block_erase = spi_block_erase_52,
2585 }, {
2586 .eraseblocks = { {64 * 1024, 8} },
2587 .block_erase = spi_block_erase_d8,
2588 }, {
2589 .eraseblocks = { {512 * 1024, 1} },
2590 .block_erase = spi_block_erase_60,
2591 }, {
2592 .eraseblocks = { {512 * 1024, 1} },
2593 .block_erase = spi_block_erase_c7,
2594 }
2595 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002596 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Alan Greencbb85c02019-06-25 13:42:34 +10002597 .write = NULL, /* Incompatible Page write */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002598 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002599 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002600 },
2601
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002602 {
2603 .vendor = "Atmel",
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002604 .name = "AT29C010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002605 .bustype = BUS_PARALLEL,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002606 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002607 .model_id = ATMEL_AT29C010A,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002608 .total_size = 128,
2609 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00002610 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002611 .tested = TEST_OK_PRE,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002612 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00002613 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00002614 .block_erasers =
2615 {
2616 {
2617 .eraseblocks = { {128 * 1024, 1} },
2618 .block_erase = erase_chip_block_jedec,
2619 }
2620 },
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002621 .write = write_jedec, /* FIXME */
2622 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002623 .voltage = {4500, 5500},
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002624 },
2625
2626 {
2627 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002628 .name = "AT29C020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002629 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002630 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002631 .model_id = ATMEL_AT29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002632 .total_size = 256,
2633 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002634 .feature_bits = FEATURE_LONG_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00002635 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002636 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00002637 .probe_timing = 10000, /* 10ms */
Sean Nelson89187292009-12-23 12:02:55 +00002638 .block_erasers =
2639 {
2640 {
2641 .eraseblocks = { {256 * 1024, 1} },
2642 .block_erase = erase_chip_block_jedec,
2643 }
2644 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002645 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002646 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002647 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002648 },
2649
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002650 {
2651 .vendor = "Atmel",
2652 .name = "AT29C040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002653 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002654 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002655 .model_id = ATMEL_AT29C040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002656 .total_size = 512,
2657 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002658 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002659 .tested = TEST_UNTESTED,
2660 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00002661 .probe_timing = 10000, /* 10 ms */
Sean Nelson89187292009-12-23 12:02:55 +00002662 .block_erasers =
2663 {
2664 {
2665 .eraseblocks = { {512 * 1024, 1} },
2666 .block_erase = erase_chip_block_jedec,
2667 }
2668 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002669 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002670 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002671 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002672 },
2673
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002674 {
2675 .vendor = "Atmel",
Alan Green1f9cc7d2019-07-01 11:10:45 +10002676 .name = "AT29C512",
2677 .bustype = BUS_PARALLEL,
2678 .manufacture_id = ATMEL_ID,
2679 .model_id = ATMEL_AT29C512,
2680 .total_size = 64,
2681 .page_size = 128,
2682 .feature_bits = FEATURE_LONG_RESET,
2683 .tested = TEST_OK_PREW,
2684 .probe = probe_jedec,
2685 .probe_timing = 10000, /* 10mS, Enter=Exec */
2686 .block_erasers =
2687 {
2688 {
2689 .eraseblocks = { {64 * 1024, 1} },
2690 .block_erase = erase_chip_block_jedec,
2691 }
2692 },
2693 .write = write_jedec,
2694 .read = read_memmapped,
2695 .voltage = {4500, 5500},
2696 },
2697
2698 {
2699 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002700 .name = "AT45CS1282",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002701 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002702 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002703 .model_id = ATMEL_AT45CS1282,
Alan Greencbb85c02019-06-25 13:42:34 +10002704 .total_size = 16896, /* No power of two sizes */
2705 .page_size = 1056, /* No power of two sizes */
Steven Zakulec3603a282012-05-02 20:07:57 +00002706 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner1dd5d3a2013-08-27 18:02:19 +00002707 /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */
2708 .feature_bits = FEATURE_OTP,
2709 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002710 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002711 .probe_timing = TIMING_ZERO,
Stefan Tauner1dd5d3a2013-08-27 18:02:19 +00002712 .block_erasers =
2713 {
2714 {
2715 .eraseblocks = {
2716 {8 * 1056, 1}, /* sector 0a: opcode 50h */
2717 {248 * 1056, 1}, /* sector 0b: opcode 7Ch */
2718 {256 * 1056, 63}, /* sectors 1 - 63: opcode 7Ch */
2719 },
2720 .block_erase = spi_erase_at45cs_sector,
2721 }
2722 },
2723 .printlock = spi_prettyprint_status_register_plain,
Stefan Tauner1dd5d3a2013-08-27 18:02:19 +00002724 .write = spi_write_at45db,
2725 .read = spi_read_at45db,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002726 .voltage = {2700, 3600},
Alan Greenc1863ca2019-06-27 15:08:03 +10002727 .gran = write_gran_1056bytes,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002728 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002729
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002730 {
2731 .vendor = "Atmel",
2732 .name = "AT45DB011D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002733 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002734 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002735 .model_id = ATMEL_AT45DB011D,
Alan Greencbb85c02019-06-25 13:42:34 +10002736 .total_size = 128, /* or 132, determined from status register */
2737 .page_size = 256, /* or 264, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00002738 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002739 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2740 .feature_bits = FEATURE_OTP,
Stefan Tauner5c316f92015-02-08 21:57:52 +00002741 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002742 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002743 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002744 .block_erasers =
2745 {
2746 {
2747 .eraseblocks = { {256, 512} },
2748 .block_erase = spi_erase_at45db_page,
2749 }, {
2750 .eraseblocks = { {8 * 256, 512/8} },
2751 .block_erase = spi_erase_at45db_block,
2752 }, {
2753 .eraseblocks = {
2754 {8 * 256, 1},
2755 {120 * 256, 1},
2756 {128 * 256, 3},
2757 },
2758 .block_erase = spi_erase_at45db_sector
2759 }, {
2760 .eraseblocks = { {128 * 1024, 1} },
2761 .block_erase = spi_erase_at45db_chip,
2762 }
2763 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002764 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10002765 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002766 /* granularity will be set by the probing function. */
2767 .write = spi_write_at45db,
2768 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002769 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002770 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002771
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002772 {
2773 .vendor = "Atmel",
2774 .name = "AT45DB021D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002775 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002776 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002777 .model_id = ATMEL_AT45DB021D,
Alan Greencbb85c02019-06-25 13:42:34 +10002778 .total_size = 256, /* or 264, determined from status register */
2779 .page_size = 256, /* or 264, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00002780 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002781 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2782 .feature_bits = FEATURE_OTP,
Stefan Tauner6697f712014-08-06 15:09:15 +00002783 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002784 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002785 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002786 .block_erasers =
2787 {
2788 {
2789 .eraseblocks = { {256, 1024} },
2790 .block_erase = spi_erase_at45db_page,
2791 }, {
2792 .eraseblocks = { {8 * 256, 1024/8} },
2793 .block_erase = spi_erase_at45db_block,
2794 }, {
2795 .eraseblocks = {
2796 {8 * 256, 1},
2797 {120 * 256, 1},
2798 {128 * 256, 7},
2799 },
2800 .block_erase = spi_erase_at45db_sector
2801 }, {
2802 .eraseblocks = { {256 * 1024, 1} },
2803 .block_erase = spi_erase_at45db_chip,
2804 }
2805 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002806 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10002807 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002808 /* granularity will be set by the probing function. */
2809 .write = spi_write_at45db,
2810 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002811 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002812 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002813
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002814 {
2815 .vendor = "Atmel",
2816 .name = "AT45DB041D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002817 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002818 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002819 .model_id = ATMEL_AT45DB041D,
Alan Greencbb85c02019-06-25 13:42:34 +10002820 .total_size = 512, /* or 528, determined from status register */
2821 .page_size = 256, /* or 264, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00002822 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002823 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2824 .feature_bits = FEATURE_OTP,
2825 .tested = TEST_OK_PREW,
2826 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002827 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002828 .block_erasers =
2829 {
2830 {
2831 .eraseblocks = { {256, 2048} },
2832 .block_erase = spi_erase_at45db_page,
2833 }, {
2834 .eraseblocks = { {8 * 256, 2048/8} },
2835 .block_erase = spi_erase_at45db_block,
2836 }, {
2837 .eraseblocks = {
2838 {8 * 256, 1},
2839 {248 * 256, 1},
2840 {256 * 256, 7},
2841 },
2842 .block_erase = spi_erase_at45db_sector
2843 }, {
2844 .eraseblocks = { {512 * 1024, 1} },
2845 .block_erase = spi_erase_at45db_chip,
2846 }
2847 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002848 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10002849 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002850 /* granularity will be set by the probing function. */
2851 .write = spi_write_at45db,
2852 .read = spi_read_at45db, /* Fast read (0x0B) supported */
2853 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002854 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002855
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002856 {
2857 .vendor = "Atmel",
2858 .name = "AT45DB081D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002859 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002860 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002861 .model_id = ATMEL_AT45DB081D,
Alan Greencbb85c02019-06-25 13:42:34 +10002862 .total_size = 1024, /* or 1056, determined from status register */
2863 .page_size = 256, /* or 264, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00002864 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002865 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2866 .feature_bits = FEATURE_OTP,
Angel Pons250aeba2018-09-30 20:28:22 +02002867 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002868 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002869 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002870 .block_erasers =
2871 {
2872 {
2873 .eraseblocks = { {256, 4096} },
2874 .block_erase = spi_erase_at45db_page,
2875 }, {
2876 .eraseblocks = { {8 * 256, 4096/8} },
2877 .block_erase = spi_erase_at45db_block,
2878 }, {
2879 .eraseblocks = {
2880 {8 * 256, 1},
2881 {248 * 256, 1},
2882 {256 * 256, 15},
2883 },
2884 .block_erase = spi_erase_at45db_sector
2885 }, {
2886 .eraseblocks = { {1024 * 1024, 1} },
2887 .block_erase = spi_erase_at45db_chip,
2888 }
2889 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002890 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10002891 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002892 /* granularity will be set by the probing function. */
2893 .write = spi_write_at45db,
2894 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002895 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002896 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002897
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002898 {
2899 .vendor = "Atmel",
2900 .name = "AT45DB161D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002901 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002902 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002903 .model_id = ATMEL_AT45DB161D,
Alan Greencbb85c02019-06-25 13:42:34 +10002904 .total_size = 2048, /* or 2112, determined from status register */
2905 .page_size = 512, /* or 528, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00002906 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002907 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2908 .feature_bits = FEATURE_OTP,
2909 .tested = TEST_OK_PREW,
2910 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002911 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002912 .block_erasers =
2913 {
2914 {
2915 .eraseblocks = { {512, 4096} },
2916 .block_erase = spi_erase_at45db_page,
2917 }, {
2918 .eraseblocks = { {8 * 512, 4096/8} },
2919 .block_erase = spi_erase_at45db_block,
2920 }, {
2921 .eraseblocks = {
2922 {8 * 512, 1},
2923 {248 * 512, 1},
2924 {256 * 512, 15},
2925 },
2926 .block_erase = spi_erase_at45db_sector
2927 }, {
2928 .eraseblocks = { {2048 * 1024, 1} },
2929 .block_erase = spi_erase_at45db_chip,
2930 }
2931 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002932 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10002933 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002934 /* granularity will be set by the probing function. */
2935 .write = spi_write_at45db,
2936 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002937 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002938 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002939
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002940 {
2941 .vendor = "Atmel",
2942 .name = "AT45DB321C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002943 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002944 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002945 .model_id = ATMEL_AT45DB321C,
Alan Greencbb85c02019-06-25 13:42:34 +10002946 .total_size = 4224, /* No power of two sizes */
2947 .page_size = 528, /* No power of two sizes */
Steven Zakulec3603a282012-05-02 20:07:57 +00002948 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002949 /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */
2950 .feature_bits = FEATURE_OTP,
2951 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002952 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002953 .probe_timing = TIMING_ZERO,
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002954 .block_erasers =
2955 {
2956 {
2957 .eraseblocks = { {528, 8192} },
2958 .block_erase = spi_erase_at45db_page,
2959 }, {
2960 .eraseblocks = { {8 * 528, 8192/8} },
2961 .block_erase = spi_erase_at45db_block,
2962 }, /* Although the datasheets describes sectors (which can be write protected)
2963 * there seems to be no erase functions for them.
Stefan Tauner23e10b82016-01-23 16:16:49 +00002964 {
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002965 .eraseblocks = {
2966 {8 * 528, 1},
2967 {120 * 528, 1},
2968 {128 * 528, 63},
2969 },
2970 .block_erase = spi_erase_at45db_sector
2971 }, */ {
2972 .eraseblocks = { {4224 * 1024, 1} },
2973 .block_erase = spi_erase_at45db_chip,
2974 }
2975 },
2976 .printlock = spi_prettyprint_status_register_at45db, /* Bit 0 is undefined, no lockdown */
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002977 .write = spi_write_at45db,
2978 .read = spi_read_at45db_e8, /* 3 address and 4 dummy bytes */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002979 .voltage = {2700, 3600},
Alan Greenc1863ca2019-06-27 15:08:03 +10002980 .gran = write_gran_528bytes,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002981 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002982
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002983 {
2984 .vendor = "Atmel",
2985 .name = "AT45DB321D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002986 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002987 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002988 .model_id = ATMEL_AT45DB321D,
Alan Greencbb85c02019-06-25 13:42:34 +10002989 .total_size = 4096, /* or 4224, determined from status register */
2990 .page_size = 512, /* or 528, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00002991 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002992 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
Daniel Lenski65922a32012-02-15 23:40:23 +00002993 .feature_bits = FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +00002994 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002995 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002996 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002997 .block_erasers =
2998 {
2999 {
3000 .eraseblocks = { {512, 8192} },
3001 .block_erase = spi_erase_at45db_page,
3002 }, {
3003 .eraseblocks = { {8 * 512, 8192/8} },
3004 .block_erase = spi_erase_at45db_block,
3005 }, {
3006 .eraseblocks = {
3007 {8 * 512, 1},
3008 {120 * 512, 1},
3009 {128 * 512, 63},
3010 },
3011 .block_erase = spi_erase_at45db_sector
3012 }, {
3013 .eraseblocks = { {4096 * 1024, 1} },
3014 .block_erase = spi_erase_at45db_chip,
3015 }
3016 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003017 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10003018 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003019 /* granularity will be set by the probing function. */
3020 .write = spi_write_at45db,
3021 .read = spi_read_at45db, /* Fast read (0x0B) supported */
3022 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
3023 },
3024
3025 {
3026 .vendor = "Atmel",
3027 .name = "AT45DB321E",
3028 .bustype = BUS_SPI,
3029 .manufacture_id = ATMEL_ID,
3030 .model_id = ATMEL_AT45DB321C,
Alan Greencbb85c02019-06-25 13:42:34 +10003031 .total_size = 4096, /* or 4224, determined from status register */
3032 .page_size = 512, /* or 528, determined from status register */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003033 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
3034 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
3035 .feature_bits = FEATURE_OTP,
3036 .tested = TEST_UNTESTED,
3037 .probe = probe_spi_at45db,
3038 .probe_timing = TIMING_ZERO,
3039 .block_erasers =
3040 {
3041 {
3042 .eraseblocks = { {512, 8192} },
3043 .block_erase = spi_erase_at45db_page,
3044 }, {
3045 .eraseblocks = { {8 * 512, 8192/8} },
3046 .block_erase = spi_erase_at45db_block,
3047 }, {
3048 .eraseblocks = {
3049 {8 * 512, 1},
3050 {120 * 512, 1},
3051 {128 * 512, 63},
3052 },
3053 .block_erase = spi_erase_at45db_sector
3054 }, {
3055 .eraseblocks = { {4096 * 1024, 1} },
3056 .block_erase = spi_erase_at45db_chip,
3057 }
3058 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003059 .printlock = spi_prettyprint_status_register_at45db, /* has a 2nd status register */
Alan Greenc1863ca2019-06-27 15:08:03 +10003060 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003061 /* granularity will be set by the probing function. */
3062 .write = spi_write_at45db,
3063 .read = spi_read_at45db, /* Fast read (0x0B) supported */
3064 .voltage = {2500, 3600}, /* 2.3-3.6V & 2.5-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00003065 },
FENG yu ningff692fb2008-12-08 18:15:10 +00003066
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003067 {
3068 .vendor = "Atmel",
3069 .name = "AT45DB642D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003070 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003071 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003072 .model_id = ATMEL_AT45DB642D,
Alan Greencbb85c02019-06-25 13:42:34 +10003073 .total_size = 8192, /* or 8448, determined from status register */
3074 .page_size = 1024, /* or 1056, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00003075 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003076 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
3077 .feature_bits = FEATURE_OTP,
Stefan Tauner5c316f92015-02-08 21:57:52 +00003078 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003079 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003080 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003081 .block_erasers =
3082 {
3083 {
3084 .eraseblocks = { {1024, 8192} },
3085 .block_erase = spi_erase_at45db_page,
3086 }, {
3087 .eraseblocks = { {8 * 1024, 8192/8} },
3088 .block_erase = spi_erase_at45db_block,
3089 }, {
3090 .eraseblocks = {
3091 {8 * 1024, 1},
3092 {248 * 1024, 1},
3093 {256 * 1024, 31},
3094 },
3095 .block_erase = spi_erase_at45db_sector
3096 }, {
3097 .eraseblocks = { {8192 * 1024, 1} },
3098 .block_erase = spi_erase_at45db_chip,
3099 }
3100 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003101 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10003102 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003103 /* granularity will be set by the probing function. */
3104 .write = spi_write_at45db,
3105 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003106 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00003107 },
FENG yu ningff692fb2008-12-08 18:15:10 +00003108
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003109 {
3110 .vendor = "Atmel",
Alan Green1f9cc7d2019-07-01 11:10:45 +10003111 .name = "AT49(H)F010",
3112 .bustype = BUS_PARALLEL,
3113 .manufacture_id = ATMEL_ID,
3114 .model_id = ATMEL_AT49F010,
3115 .total_size = 128,
3116 .page_size = 0, /* unused */
3117 .feature_bits = FEATURE_EITHER_RESET,
3118 .tested = TEST_OK_PREW,
3119 .probe = probe_jedec,
3120 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3121 .block_erasers =
3122 {
3123 {
3124 .eraseblocks = { {128 * 1024, 1} },
3125 .block_erase = erase_chip_block_jedec,
3126 }
3127 },
3128 .printlock = printlock_at49f,
3129 .write = write_jedec_1,
3130 .read = read_memmapped,
3131 .voltage = {4500, 5500},
3132 },
3133
3134 {
3135 .vendor = "Atmel",
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003136 .name = "AT49BV512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003137 .bustype = BUS_PARALLEL,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003138 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003139 .model_id = ATMEL_AT49BV512,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003140 .total_size = 64,
3141 .page_size = 64,
Sean Nelson35727f72010-01-28 23:55:12 +00003142 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +00003143 .tested = TEST_OK_PREW,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003144 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003145 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00003146 .block_erasers =
3147 {
3148 {
3149 .eraseblocks = { {64 * 1024, 1} },
3150 .block_erase = erase_chip_block_jedec,
3151 }
3152 },
Sean Nelson35727f72010-01-28 23:55:12 +00003153 .write = write_jedec_1,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003154 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003155 .voltage = {2700, 3600},
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003156 },
3157
3158 {
3159 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003160 .name = "AT49F002(N)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003161 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003162 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003163 .model_id = ATMEL_AT49F002N,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003164 .total_size = 256,
3165 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00003166 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003167 .tested = TEST_UNTESTED,
3168 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003169 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00003170 .block_erasers =
3171 {
3172 {
3173 .eraseblocks = {
3174 {16 * 1024, 1},
3175 {8 * 1024, 2},
3176 {96 * 1024, 1},
3177 {128 * 1024, 1},
3178 },
3179 .block_erase = erase_sector_jedec,
3180 }, {
3181 .eraseblocks = { {256 * 1024, 1} },
3182 .block_erase = erase_chip_block_jedec,
3183 }
3184 },
Sean Nelson35727f72010-01-28 23:55:12 +00003185 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003186 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003187 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003188 },
3189
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003190 {
3191 .vendor = "Atmel",
3192 .name = "AT49F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003193 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003194 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003195 .model_id = ATMEL_AT49F002NT,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003196 .total_size = 256,
3197 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00003198 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003199 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +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 = {
3206 {128 * 1024, 1},
3207 {96 * 1024, 1},
3208 {8 * 1024, 2},
3209 {16 * 1024, 1},
3210 },
3211 .block_erase = erase_sector_jedec,
3212 }, {
3213 .eraseblocks = { {256 * 1024, 1} },
3214 .block_erase = erase_chip_block_jedec,
3215 }
3216 },
Sean Nelson35727f72010-01-28 23:55:12 +00003217 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003218 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003219 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003220 },
3221
Daniel Lenskidf90d3a2010-07-22 11:44:38 +00003222 {
Uwe Hermannc74e9772011-09-08 19:55:18 +00003223 .vendor = "Atmel",
David Borgf5a30f62012-04-15 13:16:32 +00003224 .name = "AT49F020",
3225 .bustype = BUS_PARALLEL,
3226 .manufacture_id = ATMEL_ID,
3227 .model_id = ATMEL_AT49F020,
3228 .total_size = 256,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00003229 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00003230 .feature_bits = FEATURE_EITHER_RESET,
3231 .tested = TEST_OK_PRE,
3232 .probe = probe_jedec,
3233 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3234 .block_erasers =
3235 {
3236 {
3237 .eraseblocks = { {256 * 1024, 1} },
3238 .block_erase = erase_chip_block_jedec,
3239 }
3240 /* Chip features an optional permanent write protection
3241 * of the first 8 kB. The erase function is the same as
3242 * above, but 00000H to 01FFFH will not be erased.
3243 * FIXME: add another eraser when partial erasers are
3244 * supported.
3245 */
3246 },
3247 .printlock = printlock_at49f,
3248 .write = write_jedec_1,
3249 .read = read_memmapped,
3250 .voltage = {4500, 5500},
3251 },
3252
3253 {
3254 .vendor = "Atmel",
3255 .name = "AT49F040",
3256 .bustype = BUS_PARALLEL,
3257 .manufacture_id = ATMEL_ID,
3258 .model_id = ATMEL_AT49F040,
3259 .total_size = 512,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00003260 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00003261 .feature_bits = FEATURE_EITHER_RESET,
3262 .tested = TEST_UNTESTED,
3263 .probe = probe_jedec,
3264 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3265 .block_erasers =
3266 {
3267 {
3268 .eraseblocks = { {512 * 1024, 1} },
3269 .block_erase = erase_chip_block_jedec,
3270 }
3271 /* Chip features an optional permanent write protection
3272 * of the first 16 kB. The erase function is the same as
3273 * above, but 00000H to 03FFFH will not be erased.
3274 * FIXME: add another eraser when partial erasers are
3275 * supported.
3276 */
3277 },
3278 .printlock = printlock_at49f,
3279 .write = write_jedec_1,
3280 .read = read_memmapped,
3281 .voltage = {4500, 5500},
3282 },
3283
3284 {
3285 .vendor = "Atmel",
Andrew Morgan8dd97f92012-08-13 23:43:46 +00003286 .name = "AT49F080",
3287 .bustype = BUS_PARALLEL,
3288 .manufacture_id = ATMEL_ID,
3289 .model_id = ATMEL_AT49F080,
3290 .total_size = 1024,
3291 .page_size = 0, /* unused */
3292 .feature_bits = FEATURE_EITHER_RESET,
3293 .tested = TEST_UNTESTED,
3294 .probe = probe_jedec,
3295 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3296 .block_erasers =
3297 {
3298 {
3299 .eraseblocks = { {1024 * 1024, 1} },
3300 .block_erase = erase_chip_block_jedec,
3301 }
3302 /* Chip features an optional permanent write protection
3303 * of the first 16 kB. The erase function is the same as
3304 * above, but 00000H to 03FFFH 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},
3313 },
3314
3315 {
3316 /* 'top' version of AT49F080. equal in all aspects but the boot block address */
3317 .vendor = "Atmel",
3318 .name = "AT49F080T",
3319 .bustype = BUS_PARALLEL,
3320 .manufacture_id = ATMEL_ID,
3321 .model_id = ATMEL_AT49F080T,
3322 .total_size = 1024,
3323 .page_size = 0, /* unused */
3324 .feature_bits = FEATURE_EITHER_RESET,
3325 .tested = TEST_UNTESTED,
3326 .probe = probe_jedec,
3327 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3328 .block_erasers =
3329 {
3330 {
3331 .eraseblocks = { {1024 * 1024, 1} },
3332 .block_erase = erase_chip_block_jedec,
3333 }
3334 /* Chip features an optional permanent write protection
3335 * of the first 16 kB. The erase function is the same as
3336 * above, but FC000H to FFFFFH will not be erased.
3337 * FIXME: add another eraser when partial erasers are
3338 * supported.
3339 */
3340 },
3341 .printlock = printlock_at49f,
3342 .write = write_jedec_1,
3343 .read = read_memmapped,
3344 .voltage = {4500, 5500},
3345 },
3346
3347 {
3348 .vendor = "Atmel",
Uwe Hermannc74e9772011-09-08 19:55:18 +00003349 .name = "AT49LH002",
3350 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
3351 .manufacture_id = ATMEL_ID,
3352 .model_id = ATMEL_AT49LH002,
3353 .total_size = 256,
3354 .page_size = 0, /* unused */
Stefan Tauner7de93932014-08-03 13:05:45 +00003355 .feature_bits = FEATURE_REGISTERMAP,
Uwe Hermannc74e9772011-09-08 19:55:18 +00003356 .tested = TEST_UNTESTED,
Stefan Tauner7de93932014-08-03 13:05:45 +00003357 .probe = probe_82802ab,
3358 .probe_timing = TIMING_ZERO,
Uwe Hermannc74e9772011-09-08 19:55:18 +00003359 .block_erasers =
3360 {
3361 {
3362 .eraseblocks = {
3363 {64 * 1024, 3},
3364 {32 * 1024, 1},
3365 {8 * 1024, 2},
3366 {16 * 1024, 1},
3367 },
Stefan Tauner7de93932014-08-03 13:05:45 +00003368 .block_erase = NULL, /* TODO: Implement. */
Uwe Hermannc74e9772011-09-08 19:55:18 +00003369 }, {
3370 .eraseblocks = {
3371 {64 * 1024, 4},
3372 },
Stefan Tauner7de93932014-08-03 13:05:45 +00003373 .block_erase = erase_block_82802ab,
3374 },
3375 },
3376 .printlock = printlock_regspace2_block_eraser_0,
3377 .unlock = unlock_regspace2_block_eraser_0,
3378 .write = write_82802ab,
3379 .read = read_memmapped,
3380 .voltage = {3000, 3600},
3381 },
3382
3383 {
3384 .vendor = "Atmel",
Stefan Tauner7de93932014-08-03 13:05:45 +00003385 .name = "AT49LH004",
3386 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
3387 .manufacture_id = ATMEL_ID,
3388 .model_id = ATMEL_AT49LH004,
3389 .total_size = 512,
3390 .page_size = 0, /* unused */
3391 .feature_bits = FEATURE_REGISTERMAP,
3392 .tested = TEST_UNTESTED,
3393 .probe = probe_82802ab,
3394 .probe_timing = TIMING_ZERO,
3395 .block_erasers =
3396 {
3397 {
3398 .eraseblocks = {
3399 {64 * 1024, 7},
3400 {32 * 1024, 1},
3401 {8 * 1024, 2},
3402 {16 * 1024, 1},
3403 },
3404 .block_erase = erase_block_82802ab,
3405 }, {
3406 .eraseblocks = {
3407 {64 * 1024, 8},
3408 },
Uwe Hermannc74e9772011-09-08 19:55:18 +00003409 .block_erase = NULL, /* TODO: Implement. */
3410 },
3411 },
Stefan Tauner7de93932014-08-03 13:05:45 +00003412 .printlock = printlock_regspace2_block_eraser_0,
3413 .unlock = unlock_regspace2_block_eraser_0,
Uwe Hermannc74e9772011-09-08 19:55:18 +00003414 .write = write_82802ab,
3415 .read = read_memmapped,
3416 .voltage = {3000, 3600},
3417 },
3418
3419 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003420 .vendor = "Atmel",
3421 .name = "AT49LH00B4",
3422 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
3423 .manufacture_id = ATMEL_ID,
3424 .model_id = ATMEL_AT49LH00B4,
3425 .total_size = 512,
Andrew Morganca081462011-09-13 22:05:44 +00003426 .page_size = 0, /* unused */
Alan Green1f9cc7d2019-07-01 11:10:45 +10003427 .feature_bits = FEATURE_REGISTERMAP,
3428 .tested = TEST_UNTESTED,
3429 .probe = probe_82802ab,
Andrew Morganca081462011-09-13 22:05:44 +00003430 .probe_timing = TIMING_ZERO,
3431 .block_erasers =
3432 {
3433 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003434 .eraseblocks = {
3435 {8 * 1024, 2},
3436 {16 * 1024, 1},
3437 {32 * 1024, 1},
3438 {64 * 1024, 7},
3439 },
3440 .block_erase = NULL, /* TODO: Implement. */
3441 }, {
3442 .eraseblocks = {
3443 {64 * 1024, 8},
3444 },
3445 .block_erase = erase_block_82802ab,
Andrew Morganca081462011-09-13 22:05:44 +00003446 },
3447 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10003448 .printlock = printlock_regspace2_block_eraser_0,
3449 .unlock = unlock_regspace2_block_eraser_0,
3450 .write = write_82802ab,
Andrew Morganca081462011-09-13 22:05:44 +00003451 .read = read_memmapped,
Alan Green1f9cc7d2019-07-01 11:10:45 +10003452 .voltage = {3000, 3600},
Andrew Morganca081462011-09-13 22:05:44 +00003453 },
3454
3455 {
Angel Pons1ebda782021-04-20 21:39:11 +02003456 .vendor = "Boya/BoHong Microelectronics",
Christian Kudera475a7ee2021-04-20 22:50:01 +02003457 .name = "B.25D16A",
3458 .bustype = BUS_SPI,
3459 .manufacture_id = BOYA_BOHONG_ID,
3460 .model_id = BOYA_BOHONG_B_25D16A,
3461 .total_size = 2048,
3462 .page_size = 256,
3463 .feature_bits = FEATURE_WRSR_WREN,
3464 .tested = TEST_OK_PR,
3465 .probe = probe_spi_rdid,
3466 .probe_timing = TIMING_ZERO,
3467 .block_erasers =
3468 {
3469 {
3470 .eraseblocks = { {4 * 1024, 512} },
3471 .block_erase = spi_block_erase_20,
3472 }, {
3473 .eraseblocks = { {32 * 1024, 64} },
3474 .block_erase = spi_block_erase_52,
3475 }, {
3476 .eraseblocks = { {64 * 1024, 32} },
3477 .block_erase = spi_block_erase_d8,
3478 }, {
3479 .eraseblocks = { {2 * 1024 * 1024, 1} },
3480 .block_erase = spi_block_erase_60,
3481 }, {
3482 .eraseblocks = { {2 * 1024 * 1024, 1} },
3483 .block_erase = spi_block_erase_c7,
3484 }
3485 },
3486 .printlock = spi_prettyprint_status_register_bp2_srwd,
3487 .unlock = spi_disable_blockprotect_bp2_srwd,
3488 .write = spi_chip_write_256,
3489 .read = spi_chip_read,
3490 .voltage = {2700, 3600},
3491 },
3492
3493 {
3494 .vendor = "Boya/BoHong Microelectronics",
Angel Pons1ebda782021-04-20 21:39:11 +02003495 .name = "B.25Q128AS",
Jack Olsen73ae5ef2020-08-08 21:12:13 -05003496 .bustype = BUS_SPI,
Angel Pons1ebda782021-04-20 21:39:11 +02003497 .manufacture_id = BOYA_BOHONG_ID,
3498 .model_id = BOYA_BOHONG_B_25Q128AS,
Jack Olsen73ae5ef2020-08-08 21:12:13 -05003499 .total_size = 16384,
3500 .page_size = 256,
3501 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
3502 .tested = TEST_OK_PREW,
3503 .probe = probe_spi_rdid,
3504 .probe_timing = TIMING_ZERO,
3505 .block_erasers =
3506 {
3507 {
3508 .eraseblocks = { {4 * 1024, 4096} },
3509 .block_erase = spi_block_erase_20,
3510 }, {
3511 .eraseblocks = { {32 * 1024, 512} },
3512 .block_erase = spi_block_erase_52,
3513 }, {
3514 .eraseblocks = { {64 * 1024, 256} },
3515 .block_erase = spi_block_erase_d8,
3516 }, {
3517 .eraseblocks = { {16 * 1024 * 1024, 1} },
3518 .block_erase = spi_block_erase_60,
3519 }, {
3520 .eraseblocks = { {16 * 1024 * 1024, 1} },
3521 .block_erase = spi_block_erase_c7,
3522 }
3523 },
3524 .printlock = spi_prettyprint_status_register_plain,
3525 .unlock = spi_disable_blockprotect_at25fs040,
3526 .write = spi_chip_write_256,
3527 .read = spi_chip_read,
3528 .voltage = {2700, 3600},
3529 },
3530
3531 {
Joshua Roysf1324e02010-09-16 00:51:51 +00003532 .vendor = "Bright",
3533 .name = "BM29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003534 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00003535 .manufacture_id = BRIGHT_ID,
3536 .model_id = BRIGHT_BM29F040,
3537 .total_size = 512,
3538 .page_size = 64 * 1024,
3539 .feature_bits = FEATURE_EITHER_RESET,
3540 .tested = TEST_OK_PR,
3541 .probe = probe_jedec,
3542 .probe_timing = TIMING_ZERO,
3543 .block_erasers =
3544 {
3545 {
3546 .eraseblocks = { {64 * 1024, 8} },
3547 .block_erase = erase_sector_jedec,
3548 }, {
3549 .eraseblocks = { {512 * 1024, 1} },
3550 .block_erase = erase_chip_block_jedec,
3551 },
3552 },
3553 .write = write_jedec_1,
3554 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003555 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00003556 },
3557
3558 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003559 .vendor = "Catalyst",
3560 .name = "CAT28F512",
3561 .bustype = BUS_PARALLEL,
3562 .manufacture_id = CATALYST_ID,
3563 .model_id = CATALYST_CAT28F512,
3564 .total_size = 64,
3565 .page_size = 0, /* unused */
3566 .feature_bits = 0,
Alan Green908adf42019-07-03 15:34:06 +10003567 .tested = {.probe = OK, .read = OK, .erase = BAD, .write = BAD},
Alan Green1f9cc7d2019-07-01 11:10:45 +10003568 .probe = probe_jedec, /* FIXME! */
3569 .probe_timing = TIMING_ZERO,
3570 .block_erasers =
3571 {
3572 {
3573 .eraseblocks = { {64 * 1024, 1} },
3574 .block_erase = NULL, /* TODO */
3575 },
3576 },
3577 .write = NULL, /* TODO */
3578 .read = read_memmapped,
3579 .voltage = {4500, 5500},
3580 },
3581
3582 {
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003583 .vendor = "ENE",
3584 .name = "KB9012 (EDI)",
3585 .bustype = BUS_SPI,
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003586 .total_size = 128,
3587 .page_size = 128,
3588 .feature_bits = FEATURE_ERASED_ZERO,
3589 .tested = TEST_OK_PREW,
Alan Greenc1863ca2019-06-27 15:08:03 +10003590 .spi_cmd_set = SPI_EDI,
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003591 .probe = edi_probe_kb9012,
3592 .probe_timing = TIMING_ZERO,
3593 .block_erasers =
3594 {
3595 {
3596 .eraseblocks = { {128, 1024} },
3597 .block_erase = edi_chip_block_erase,
3598 },
3599 },
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003600 .write = edi_chip_write,
3601 .read = edi_chip_read,
3602 .voltage = {2700, 3600},
Alan Greenc1863ca2019-06-27 15:08:03 +10003603 .gran = write_gran_128bytes,
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003604 },
3605
3606 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003607 .vendor = "ESI",
3608 .name = "ES25P16",
3609 .bustype = BUS_SPI,
3610 .manufacture_id = EXCEL_ID_NOPREFIX,
3611 .model_id = EXCEL_ES25P16,
3612 .total_size = 2 * 1024,
3613 .page_size = 256,
3614 /* 256-byte parameter page separate from memory array:
3615 * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
3616 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003617 .tested = TEST_UNTESTED,
Alan Green1f9cc7d2019-07-01 11:10:45 +10003618 .probe = probe_spi_rdid,
3619 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003620 .block_erasers =
3621 {
3622 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003623 .eraseblocks = { {64 * 1024, 32} },
3624 .block_erase = spi_block_erase_d8,
Sean Nelson54596372010-01-09 05:30:14 +00003625 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003626 .eraseblocks = { {2 * 1024 * 1024, 1} },
3627 .block_erase = spi_block_erase_c7,
Sean Nelson54596372010-01-09 05:30:14 +00003628 }
3629 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10003630 .printlock = spi_prettyprint_status_register_bp2_srwd,
3631 .unlock = spi_disable_blockprotect_bp2_srwd,
3632 .write = spi_chip_write_256,
3633 .read = spi_chip_read, /* Fast Read (0x0B) supported */
3634 .voltage = {2700, 3600},
3635 },
3636
3637 {
3638 .vendor = "ESI",
3639 .name = "ES25P40",
3640 .bustype = BUS_SPI,
3641 .manufacture_id = EXCEL_ID_NOPREFIX,
3642 .model_id = EXCEL_ES25P40,
3643 .total_size = 512,
3644 .page_size = 256,
3645 /* 256-byte parameter page separate from memory array:
3646 * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
3647 .feature_bits = FEATURE_WRSR_WREN,
3648 .tested = TEST_UNTESTED,
3649 .probe = probe_spi_rdid,
3650 .probe_timing = TIMING_ZERO,
3651 .block_erasers =
3652 {
3653 {
3654 .eraseblocks = { {64 * 1024, 8} },
3655 .block_erase = spi_block_erase_d8,
3656 }, {
3657 .eraseblocks = { {512 * 1024, 1} },
3658 .block_erase = spi_block_erase_c7,
3659 }
3660 },
3661 .printlock = spi_prettyprint_status_register_bp2_srwd,
3662 .unlock = spi_disable_blockprotect_bp2_srwd,
3663 .write = spi_chip_write_256,
3664 .read = spi_chip_read, /* Fast Read (0x0B) supported */
3665 .voltage = {2700, 3600},
3666 },
3667
3668 {
3669 .vendor = "ESI",
3670 .name = "ES25P80",
3671 .bustype = BUS_SPI,
3672 .manufacture_id = EXCEL_ID_NOPREFIX,
3673 .model_id = EXCEL_ES25P80,
3674 .total_size = 1024,
3675 .page_size = 256,
3676 /* 256-byte parameter page separate from memory array:
3677 * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
3678 .feature_bits = FEATURE_WRSR_WREN,
3679 .tested = TEST_UNTESTED,
3680 .probe = probe_spi_rdid,
3681 .probe_timing = TIMING_ZERO,
3682 .block_erasers =
3683 {
3684 {
3685 .eraseblocks = { {64 * 1024, 16} },
3686 .block_erase = spi_block_erase_d8,
3687 }, {
3688 .eraseblocks = { {1024 * 1024, 1} },
3689 .block_erase = spi_block_erase_c7,
3690 }
3691 },
3692 .printlock = spi_prettyprint_status_register_bp2_srwd,
3693 .unlock = spi_disable_blockprotect_bp2_srwd,
3694 .write = spi_chip_write_256,
3695 .read = spi_chip_read, /* Fast Read (0x0B) supported */
3696 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00003697 },
3698
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003699 {
Stefan Tauner352e50b2013-02-22 15:58:45 +00003700 .vendor = "ESMT",
Michael Karcher80a59ea2010-06-19 22:06:35 +00003701 .name = "F25L008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003702 .bustype = BUS_SPI,
Stefan Tauner352e50b2013-02-22 15:58:45 +00003703 .manufacture_id = ESMT_ID,
3704 .model_id = ESMT_F25L008A,
Michael Karcher80a59ea2010-06-19 22:06:35 +00003705 .total_size = 1024,
3706 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003707 .feature_bits = FEATURE_WRSR_EITHER,
Stefan Taunereb582572012-09-21 12:52:50 +00003708 .tested = TEST_OK_PREW,
Michael Karcher80a59ea2010-06-19 22:06:35 +00003709 .probe = probe_spi_rdid,
3710 .probe_timing = TIMING_ZERO,
3711 .block_erasers =
3712 {
3713 {
3714 .eraseblocks = { {4 * 1024, 256} },
3715 .block_erase = spi_block_erase_20,
3716 }, {
3717 .eraseblocks = { {64 * 1024, 16} },
3718 .block_erase = spi_block_erase_d8,
3719 }, {
3720 .eraseblocks = { {1024 * 1024, 1} },
3721 .block_erase = spi_block_erase_60,
3722 }, {
3723 .eraseblocks = { {1024 * 1024, 1} },
3724 .block_erase = spi_block_erase_c7,
3725 }
3726 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003727 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003728 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger9a795d82010-07-14 16:19:05 +00003729 .write = spi_chip_write_1,
Michael Karcher4497e862010-07-10 19:34:15 +00003730 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003731 .voltage = {2700, 3600},
Michael Karcher80a59ea2010-06-19 22:06:35 +00003732 },
3733
3734 {
Stefan Tauner85f09f72014-05-27 21:27:14 +00003735 .vendor = "ESMT",
3736 .name = "F25L32PA",
3737 .bustype = BUS_SPI,
3738 .manufacture_id = ESMT_ID,
3739 .model_id = ESMT_F25L32PA,
3740 .total_size = 4096,
3741 .page_size = 256,
3742 .feature_bits = FEATURE_WRSR_EITHER | FEATURE_OTP,
3743 .tested = TEST_UNTESTED,
3744 .probe = probe_spi_rdid,
3745 .probe_timing = TIMING_ZERO,
3746 .block_erasers =
3747 {
3748 {
3749 .eraseblocks = { {4 * 1024, 1024} },
3750 .block_erase = spi_block_erase_20,
3751 }, {
3752 .eraseblocks = { {64 * 1024, 64} },
3753 .block_erase = spi_block_erase_d8,
3754 }, {
3755 .eraseblocks = { {4 * 1024 * 1024, 1} },
3756 .block_erase = spi_block_erase_60,
3757 }, {
3758 .eraseblocks = { {4 * 1024 * 1024, 1} },
3759 .block_erase = spi_block_erase_c7,
3760 }
3761 },
3762 .printlock = spi_prettyprint_status_register_bp2_bpl,
3763 .unlock = spi_disable_blockprotect,
3764 .write = spi_chip_write_256,
3765 .read = spi_chip_read,
3766 .voltage = {2700, 3600},
3767 },
3768
3769 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003770 .vendor = "ESMT",
3771 .name = "F49B002UA",
3772 .bustype = BUS_PARALLEL,
3773 .manufacture_id = ESMT_ID,
3774 .model_id = ESMT_F49B002UA,
3775 .total_size = 256,
3776 .page_size = 4096,
3777 .feature_bits = FEATURE_EITHER_RESET,
3778 .tested = TEST_UNTESTED,
3779 .probe = probe_jedec,
3780 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3781 .block_erasers =
3782 {
3783 {
3784 .eraseblocks = {
3785 {128 * 1024, 1},
3786 {96 * 1024, 1},
3787 {8 * 1024, 2},
3788 {16 * 1024, 1},
3789 },
3790 .block_erase = erase_sector_jedec,
3791 }, {
3792 .eraseblocks = { {256 * 1024, 1} },
3793 .block_erase = erase_chip_block_jedec,
3794 }
3795 },
3796 .write = write_jedec_1,
3797 .read = read_memmapped,
3798 .voltage = {4500, 5500},
3799 },
3800
3801 {
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003802 .vendor = "Eon",
3803 .name = "EN25B05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003804 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003805 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003806 .model_id = EON_EN25B05,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003807 .total_size = 64,
3808 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003809 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003810 .tested = TEST_UNTESTED,
3811 .probe = probe_spi_rdid,
3812 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003813 .block_erasers =
3814 {
3815 {
3816 .eraseblocks = {
3817 {4 * 1024, 2},
3818 {8 * 1024, 1},
3819 {16 * 1024, 1},
3820 {32 * 1024, 1},
3821 },
3822 .block_erase = spi_block_erase_d8,
3823 }, {
3824 .eraseblocks = { {64 * 1024, 1} },
3825 .block_erase = spi_block_erase_c7,
3826 }
3827 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003828 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003829 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003830 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003831 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003832 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003833 },
3834
3835 {
3836 .vendor = "Eon",
3837 .name = "EN25B05T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003838 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003839 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003840 .model_id = EON_EN25B05,
Sean Nelson54596372010-01-09 05:30:14 +00003841 .total_size = 64,
3842 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003843 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003844 .tested = TEST_UNTESTED,
3845 .probe = probe_spi_rdid,
3846 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003847 .block_erasers =
3848 {
3849 {
3850 .eraseblocks = {
3851 {32 * 1024, 1},
3852 {16 * 1024, 1},
3853 {8 * 1024, 1},
3854 {4 * 1024, 2},
3855 },
3856 .block_erase = spi_block_erase_d8,
3857 }, {
3858 .eraseblocks = { {64 * 1024, 1} },
3859 .block_erase = spi_block_erase_c7,
3860 }
3861 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003862 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003863 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003864 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003865 .read = spi_chip_read, /* Fast read (0x0B) supported */
3866 .voltage = {2700, 3600},
3867 },
3868
3869 {
3870 .vendor = "Eon",
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003871 .name = "EN25B10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003872 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003873 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003874 .model_id = EON_EN25B10,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003875 .total_size = 128,
3876 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003877 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003878 .tested = TEST_UNTESTED,
3879 .probe = probe_spi_rdid,
3880 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003881 .block_erasers =
3882 {
3883 {
3884 .eraseblocks = {
3885 {4 * 1024, 2},
3886 {8 * 1024, 1},
3887 {16 * 1024, 1},
3888 {32 * 1024, 3},
3889 },
3890 .block_erase = spi_block_erase_d8,
3891 }, {
3892 .eraseblocks = { {128 * 1024, 1} },
3893 .block_erase = spi_block_erase_c7,
3894 }
3895 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003896 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003897 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003898 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003899 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003900 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003901 },
3902
3903 {
3904 .vendor = "Eon",
3905 .name = "EN25B10T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003906 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003907 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003908 .model_id = EON_EN25B10,
Sean Nelson54596372010-01-09 05:30:14 +00003909 .total_size = 128,
3910 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003911 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00003912 .tested = TEST_OK_PREW,
Sean Nelson54596372010-01-09 05:30:14 +00003913 .probe = probe_spi_rdid,
3914 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003915 .block_erasers =
3916 {
3917 {
3918 .eraseblocks = {
3919 {32 * 1024, 3},
3920 {16 * 1024, 1},
3921 {8 * 1024, 1},
3922 {4 * 1024, 2},
3923 },
3924 .block_erase = spi_block_erase_d8,
3925 }, {
3926 .eraseblocks = { {128 * 1024, 1} },
3927 .block_erase = spi_block_erase_c7,
3928 }
3929 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003930 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003931 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003932 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003933 .read = spi_chip_read, /* Fast read (0x0B) supported */
3934 .voltage = {2700, 3600},
3935 },
3936
3937 {
3938 .vendor = "Eon",
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003939 .name = "EN25B16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003940 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003941 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003942 .model_id = EON_EN25B16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003943 .total_size = 2048,
3944 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003945 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003946 .tested = TEST_UNTESTED,
3947 .probe = probe_spi_rdid,
3948 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003949 .block_erasers =
3950 {
3951 {
3952 .eraseblocks = {
3953 {4 * 1024, 2},
3954 {8 * 1024, 1},
3955 {16 * 1024, 1},
3956 {32 * 1024, 1},
3957 {64 * 1024, 31},
3958 },
3959 .block_erase = spi_block_erase_d8,
3960 }, {
3961 .eraseblocks = { {2 * 1024 * 1024, 1} },
3962 .block_erase = spi_block_erase_c7,
3963 }
3964 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003965 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003966 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003967 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003968 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003969 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003970 },
3971
3972 {
3973 .vendor = "Eon",
3974 .name = "EN25B16T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003975 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003976 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003977 .model_id = EON_EN25B16,
Sean Nelson54596372010-01-09 05:30:14 +00003978 .total_size = 2048,
3979 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003980 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003981 .tested = TEST_UNTESTED,
3982 .probe = probe_spi_rdid,
3983 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003984 .block_erasers =
3985 {
3986 {
3987 .eraseblocks = {
3988 {64 * 1024, 31},
3989 {32 * 1024, 1},
3990 {16 * 1024, 1},
3991 {8 * 1024, 1},
3992 {4 * 1024, 2},
3993 },
3994 .block_erase = spi_block_erase_d8,
3995 }, {
3996 .eraseblocks = { {2 * 1024 * 1024, 1} },
3997 .block_erase = spi_block_erase_c7,
3998 }
3999 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004000 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004001 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004002 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004003 .read = spi_chip_read, /* Fast read (0x0B) supported */
4004 .voltage = {2700, 3600},
4005 },
4006
4007 {
4008 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004009 .name = "EN25B20",
Stefan Taunerb175af52015-01-24 15:06:27 +00004010 .bustype = BUS_SPI,
4011 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004012 .model_id = EON_EN25B20,
4013 .total_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004014 .page_size = 256,
4015 .feature_bits = FEATURE_WRSR_WREN,
4016 .tested = TEST_UNTESTED,
4017 .probe = probe_spi_rdid,
4018 .probe_timing = TIMING_ZERO,
4019 .block_erasers =
4020 {
4021 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004022 .eraseblocks = {
4023 {4 * 1024, 2},
4024 {8 * 1024, 1},
4025 {16 * 1024, 1},
4026 {32 * 1024, 1},
4027 {64 * 1024, 3}
4028 },
Stefan Taunerb175af52015-01-24 15:06:27 +00004029 .block_erase = spi_block_erase_d8,
4030 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004031 .eraseblocks = { {256 * 1024, 1} },
4032 .block_erase = spi_block_erase_c7,
4033 }
4034 },
4035 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4036 .unlock = spi_disable_blockprotect,
4037 .write = spi_chip_write_256,
4038 .read = spi_chip_read, /* Fast read (0x0B) supported */
4039 .voltage = {2700, 3600},
4040 },
4041
4042 {
4043 .vendor = "Eon",
4044 .name = "EN25B20T",
4045 .bustype = BUS_SPI,
4046 .manufacture_id = EON_ID_NOPREFIX,
4047 .model_id = EON_EN25B20,
4048 .total_size = 256,
4049 .page_size = 256,
4050 .feature_bits = FEATURE_WRSR_WREN,
4051 .tested = TEST_UNTESTED,
4052 .probe = probe_spi_rdid,
4053 .probe_timing = TIMING_ZERO,
4054 .block_erasers =
4055 {
4056 {
4057 .eraseblocks = {
4058 {64 * 1024, 3},
4059 {32 * 1024, 1},
4060 {16 * 1024, 1},
4061 {8 * 1024, 1},
4062 {4 * 1024, 2},
4063 },
4064 .block_erase = spi_block_erase_d8,
4065 }, {
4066 .eraseblocks = { {256 * 1024, 1} },
Stefan Taunerb175af52015-01-24 15:06:27 +00004067 .block_erase = spi_block_erase_c7,
4068 }
4069 },
4070 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4071 .unlock = spi_disable_blockprotect,
4072 .write = spi_chip_write_256,
4073 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004074 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004075 },
4076
4077 {
4078 .vendor = "Eon",
4079 .name = "EN25B32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004080 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004081 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004082 .model_id = EON_EN25B32,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004083 .total_size = 4096,
4084 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004085 /* OTP: 512B total; enter 0x3A */
4086 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004087 .tested = TEST_UNTESTED,
4088 .probe = probe_spi_rdid,
4089 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004090 .block_erasers =
4091 {
4092 {
4093 .eraseblocks = {
4094 {4 * 1024, 2},
4095 {8 * 1024, 1},
4096 {16 * 1024, 1},
4097 {32 * 1024, 1},
4098 {64 * 1024, 63},
4099 },
4100 .block_erase = spi_block_erase_d8,
4101 }, {
4102 .eraseblocks = { {4 * 1024 * 1024, 1} },
4103 .block_erase = spi_block_erase_c7,
4104 }
4105 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004106 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004107 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00004108 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004109 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004110 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00004111 },
4112
4113 {
4114 .vendor = "Eon",
4115 .name = "EN25B32T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004116 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00004117 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004118 .model_id = EON_EN25B32,
Sean Nelson54596372010-01-09 05:30:14 +00004119 .total_size = 4096,
4120 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004121 /* OTP: 512B total; enter 0x3A */
4122 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Sean Nelson54596372010-01-09 05:30:14 +00004123 .tested = TEST_UNTESTED,
4124 .probe = probe_spi_rdid,
4125 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004126 .block_erasers =
4127 {
4128 {
4129 .eraseblocks = {
4130 {64 * 1024, 63},
4131 {32 * 1024, 1},
4132 {16 * 1024, 1},
4133 {8 * 1024, 1},
4134 {4 * 1024, 2},
4135 },
4136 .block_erase = spi_block_erase_d8,
4137 }, {
4138 .eraseblocks = { {4 * 1024 * 1024, 1} },
4139 .block_erase = spi_block_erase_c7,
4140 }
4141 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004142 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004143 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004144 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004145 .read = spi_chip_read, /* Fast read (0x0B) supported */
4146 .voltage = {2700, 3600},
4147 },
4148
4149 {
4150 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004151 .name = "EN25B40",
Stefan Taunerb175af52015-01-24 15:06:27 +00004152 .bustype = BUS_SPI,
4153 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004154 .model_id = EON_EN25B40,
4155 .total_size = 512,
Stefan Taunerb175af52015-01-24 15:06:27 +00004156 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004157 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerb175af52015-01-24 15:06:27 +00004158 .tested = TEST_UNTESTED,
4159 .probe = probe_spi_rdid,
4160 .probe_timing = TIMING_ZERO,
4161 .block_erasers =
4162 {
4163 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004164 .eraseblocks = {
4165 {4 * 1024, 2},
4166 {8 * 1024, 1},
4167 {16 * 1024, 1},
4168 {32 * 1024, 1},
4169 {64 * 1024, 7}
4170 },
Stefan Taunerb175af52015-01-24 15:06:27 +00004171 .block_erase = spi_block_erase_d8,
4172 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004173 .eraseblocks = { {512 * 1024, 1} },
4174 .block_erase = spi_block_erase_c7,
4175 }
4176 },
4177 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4178 .unlock = spi_disable_blockprotect,
4179 .write = spi_chip_write_256,
4180 .read = spi_chip_read, /* Fast read (0x0B) supported */
4181 .voltage = {2700, 3600},
4182 },
4183
4184 {
4185 .vendor = "Eon",
4186 .name = "EN25B40T",
4187 .bustype = BUS_SPI,
4188 .manufacture_id = EON_ID_NOPREFIX,
4189 .model_id = EON_EN25B40,
4190 .total_size = 512,
4191 .page_size = 256,
4192 .feature_bits = FEATURE_WRSR_WREN,
4193 .tested = TEST_UNTESTED,
4194 .probe = probe_spi_rdid,
4195 .probe_timing = TIMING_ZERO,
4196 .block_erasers =
4197 {
4198 {
4199 .eraseblocks = {
4200 {64 * 1024, 7},
4201 {32 * 1024, 1},
4202 {16 * 1024, 1},
4203 {8 * 1024, 1},
4204 {4 * 1024, 2},
4205 },
4206 .block_erase = spi_block_erase_d8,
4207 }, {
4208 .eraseblocks = { {512 * 1024, 1} },
Stefan Taunerb175af52015-01-24 15:06:27 +00004209 .block_erase = spi_block_erase_c7,
4210 }
4211 },
4212 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4213 .unlock = spi_disable_blockprotect,
4214 .write = spi_chip_write_256,
4215 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004216 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004217 },
4218
4219 {
4220 .vendor = "Eon",
4221 .name = "EN25B64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004222 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004223 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004224 .model_id = EON_EN25B64,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004225 .total_size = 8192,
4226 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004227 /* OTP: 512B total; enter 0x3A */
4228 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004229 .tested = TEST_UNTESTED,
4230 .probe = probe_spi_rdid,
4231 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004232 .block_erasers =
4233 {
4234 {
4235 .eraseblocks = {
4236 {4 * 1024, 2},
4237 {8 * 1024, 1},
4238 {16 * 1024, 1},
4239 {32 * 1024, 1},
4240 {64 * 1024, 127},
4241 },
4242 .block_erase = spi_block_erase_d8,
4243 }, {
4244 .eraseblocks = { {8 * 1024 * 1024, 1} },
4245 .block_erase = spi_block_erase_c7,
4246 }
4247 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004248 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004249 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00004250 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004251 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004252 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00004253 },
4254
4255 {
4256 .vendor = "Eon",
4257 .name = "EN25B64T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004258 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00004259 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004260 .model_id = EON_EN25B64,
Sean Nelson54596372010-01-09 05:30:14 +00004261 .total_size = 8192,
4262 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004263 /* OTP: 512B total; enter 0x3A */
4264 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Sean Nelson54596372010-01-09 05:30:14 +00004265 .tested = TEST_UNTESTED,
4266 .probe = probe_spi_rdid,
4267 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004268 .block_erasers =
4269 {
4270 {
4271 .eraseblocks = {
4272 {64 * 1024, 127},
4273 {32 * 1024, 1},
4274 {16 * 1024, 1},
4275 {8 * 1024, 1},
4276 {4 * 1024, 2},
4277 },
4278 .block_erase = spi_block_erase_d8,
4279 }, {
4280 .eraseblocks = { {8 * 1024 * 1024, 1} },
4281 .block_erase = spi_block_erase_c7,
4282 }
4283 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004284 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004285 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004286 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004287 .read = spi_chip_read, /* Fast read (0x0B) supported */
4288 .voltage = {2700, 3600},
4289 },
4290
4291 {
4292 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004293 .name = "EN25B80",
Stefan Taunerb175af52015-01-24 15:06:27 +00004294 .bustype = BUS_SPI,
4295 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004296 .model_id = EON_EN25B80,
4297 .total_size = 1024,
Stefan Taunerb175af52015-01-24 15:06:27 +00004298 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004299 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerb175af52015-01-24 15:06:27 +00004300 .tested = TEST_UNTESTED,
4301 .probe = probe_spi_rdid,
4302 .probe_timing = TIMING_ZERO,
4303 .block_erasers =
4304 {
4305 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004306 .eraseblocks = {
4307 {4 * 1024, 2},
4308 {8 * 1024, 1},
4309 {16 * 1024, 1},
4310 {32 * 1024, 1},
4311 {64 * 1024, 15}
4312 },
Stefan Taunerb175af52015-01-24 15:06:27 +00004313 .block_erase = spi_block_erase_d8,
4314 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004315 .eraseblocks = { {1024 * 1024, 1} },
4316 .block_erase = spi_block_erase_c7,
4317 }
4318 },
4319 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4320 .unlock = spi_disable_blockprotect,
4321 .write = spi_chip_write_256,
4322 .read = spi_chip_read, /* Fast read (0x0B) supported */
4323 .voltage = {2700, 3600},
4324 },
4325
4326 {
4327 .vendor = "Eon",
4328 .name = "EN25B80T",
4329 .bustype = BUS_SPI,
4330 .manufacture_id = EON_ID_NOPREFIX,
4331 .model_id = EON_EN25B80,
4332 .total_size = 1024,
4333 .page_size = 256,
4334 .feature_bits = FEATURE_WRSR_WREN,
4335 .tested = TEST_UNTESTED,
4336 .probe = probe_spi_rdid,
4337 .probe_timing = TIMING_ZERO,
4338 .block_erasers =
4339 {
4340 {
4341 .eraseblocks = {
4342 {64 * 1024, 15},
4343 {32 * 1024, 1},
4344 {16 * 1024, 1},
4345 {8 * 1024, 1},
4346 {4 * 1024, 2},
4347 },
4348 .block_erase = spi_block_erase_d8,
4349 }, {
4350 .eraseblocks = { {1024 * 1024, 1} },
Stefan Taunerb175af52015-01-24 15:06:27 +00004351 .block_erase = spi_block_erase_c7,
4352 }
4353 },
4354 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4355 .unlock = spi_disable_blockprotect,
4356 .write = spi_chip_write_256,
4357 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004358 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004359 },
4360
4361 {
4362 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004363 .name = "EN25F05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004364 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004365 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004366 .model_id = EON_EN25F05,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004367 .total_size = 64,
4368 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004369 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00004370 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004371 .probe = probe_spi_rdid,
4372 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004373 .block_erasers =
4374 {
4375 {
4376 .eraseblocks = { {4 * 1024, 16} },
4377 .block_erase = spi_block_erase_20,
4378 }, {
4379 .eraseblocks = { {32 * 1024, 2} },
4380 .block_erase = spi_block_erase_d8,
4381 }, {
4382 .eraseblocks = { {32 * 1024, 2} },
4383 .block_erase = spi_block_erase_52,
4384 }, {
4385 .eraseblocks = { {64 * 1024, 1} },
4386 .block_erase = spi_block_erase_60,
4387 }, {
4388 .eraseblocks = { {64 * 1024, 1} },
4389 .block_erase = spi_block_erase_c7,
4390 }
4391 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004392 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004393 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004394 .write = spi_chip_write_256,
4395 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004396 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004397 },
4398
4399 {
4400 .vendor = "Eon",
4401 .name = "EN25F10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004402 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004403 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004404 .model_id = EON_EN25F10,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004405 .total_size = 128,
4406 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004407 .feature_bits = FEATURE_WRSR_WREN,
Simon Buhrowd173ed42021-09-29 09:28:07 +02004408 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004409 .probe = probe_spi_rdid,
4410 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004411 .block_erasers =
4412 {
4413 {
4414 .eraseblocks = { {4 * 1024, 32} },
4415 .block_erase = spi_block_erase_20,
4416 }, {
4417 .eraseblocks = { {32 * 1024, 4} },
4418 .block_erase = spi_block_erase_d8,
4419 }, {
4420 .eraseblocks = { {32 * 1024, 4} },
4421 .block_erase = spi_block_erase_52,
4422 }, {
4423 .eraseblocks = { {128 * 1024, 1} },
4424 .block_erase = spi_block_erase_60,
4425 }, {
4426 .eraseblocks = { {128 * 1024, 1} },
4427 .block_erase = spi_block_erase_c7,
4428 }
4429 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004430 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004431 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004432 .write = spi_chip_write_256,
4433 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004434 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004435 },
4436
4437 {
4438 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004439 .name = "EN25F16",
4440 .bustype = BUS_SPI,
4441 .manufacture_id = EON_ID_NOPREFIX,
4442 .model_id = EON_EN25F16,
4443 .total_size = 2048,
4444 .page_size = 256,
4445 .feature_bits = FEATURE_WRSR_WREN,
4446 .tested = TEST_OK_PREW,
4447 .probe = probe_spi_rdid,
4448 .probe_timing = TIMING_ZERO,
4449 .block_erasers =
4450 {
4451 {
4452 .eraseblocks = { {4 * 1024, 512} },
4453 .block_erase = spi_block_erase_20,
4454 }, {
4455 .eraseblocks = { {64 * 1024, 32} },
4456 .block_erase = spi_block_erase_d8,
4457 }, {
4458 .eraseblocks = { {2 * 1024 * 1024, 1} },
4459 .block_erase = spi_block_erase_60,
4460 }, {
4461 .eraseblocks = { {2 * 1024 * 1024, 1} },
4462 .block_erase = spi_block_erase_c7,
4463 }
4464 },
4465 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4466 .unlock = spi_disable_blockprotect,
4467 .write = spi_chip_write_256,
4468 .read = spi_chip_read,
4469 .voltage = {2700, 3600},
4470 },
4471
4472 {
4473 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004474 .name = "EN25F20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004475 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004476 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004477 .model_id = EON_EN25F20,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004478 .total_size = 256,
4479 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004480 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004481 .tested = TEST_UNTESTED,
4482 .probe = probe_spi_rdid,
4483 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004484 .block_erasers =
4485 {
4486 {
4487 .eraseblocks = { {4 * 1024, 64} },
4488 .block_erase = spi_block_erase_20,
4489 }, {
4490 .eraseblocks = { {64 * 1024, 4} },
4491 .block_erase = spi_block_erase_d8,
4492 }, {
4493 .eraseblocks = { {64 * 1024, 4} },
4494 .block_erase = spi_block_erase_52,
4495 }, {
4496 .eraseblocks = { {256 * 1024, 1} },
4497 .block_erase = spi_block_erase_60,
4498 }, {
4499 .eraseblocks = { {256 * 1024, 1} },
4500 .block_erase = spi_block_erase_c7,
4501 }
4502 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004503 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004504 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004505 .write = spi_chip_write_256,
4506 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004507 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004508 },
4509
4510 {
4511 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004512 .name = "EN25F32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004513 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004514 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004515 .model_id = EON_EN25F32,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004516 .total_size = 4096,
4517 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004518 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +00004519 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004520 .probe = probe_spi_rdid,
4521 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004522 .block_erasers =
4523 {
4524 {
4525 .eraseblocks = { {4 * 1024, 1024} },
4526 .block_erase = spi_block_erase_20,
4527 }, {
4528 .eraseblocks = { {64 * 1024, 64} },
4529 .block_erase = spi_block_erase_d8,
4530 }, {
4531 .eraseblocks = { {4 * 1024 * 1024, 1} },
4532 .block_erase = spi_block_erase_60,
4533 }, {
4534 .eraseblocks = { {4 * 1024 * 1024, 1} },
4535 .block_erase = spi_block_erase_c7,
4536 }
4537 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004538 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004539 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004540 .write = spi_chip_write_256,
4541 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004542 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004543 },
4544
4545 {
Russ Dill3cd5a122010-03-05 08:44:11 +00004546 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004547 .name = "EN25F40",
4548 .bustype = BUS_SPI,
4549 .manufacture_id = EON_ID_NOPREFIX,
4550 .model_id = EON_EN25F40,
4551 .total_size = 512,
4552 .page_size = 256,
4553 .feature_bits = FEATURE_WRSR_WREN,
4554 .tested = TEST_OK_PREW,
4555 .probe = probe_spi_rdid,
4556 .probe_timing = TIMING_ZERO,
4557 .block_erasers =
4558 {
4559 {
4560 .eraseblocks = { {4 * 1024, 128} },
4561 .block_erase = spi_block_erase_20,
4562 }, {
4563 .eraseblocks = { {64 * 1024, 8} },
4564 .block_erase = spi_block_erase_d8,
4565 }, {
4566 .eraseblocks = { {512 * 1024, 1} },
4567 .block_erase = spi_block_erase_60,
4568 }, {
4569 .eraseblocks = { {512 * 1024, 1} },
4570 .block_erase = spi_block_erase_c7,
4571 },
4572 },
4573 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4574 .unlock = spi_disable_blockprotect,
4575 .write = spi_chip_write_256,
4576 .read = spi_chip_read,
4577 .voltage = {2700, 3600},
4578 },
4579
4580 {
4581 .vendor = "Eon",
Stefan Taunerd932fd02012-09-06 17:37:16 +00004582 .name = "EN25F64",
4583 .bustype = BUS_SPI,
4584 .manufacture_id = EON_ID_NOPREFIX,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00004585 .model_id = EON_EN25F64,
Stefan Taunerd932fd02012-09-06 17:37:16 +00004586 .total_size = 8192,
4587 .page_size = 256,
4588 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00004589 .tested = TEST_OK_PREW,
Stefan Taunerd932fd02012-09-06 17:37:16 +00004590 .probe = probe_spi_rdid,
4591 .probe_timing = TIMING_ZERO,
4592 .block_erasers =
4593 {
4594 {
4595 .eraseblocks = { {4 * 1024, 2048} },
4596 .block_erase = spi_block_erase_20,
4597 }, {
4598 .eraseblocks = { {64 * 1024, 128} },
4599 .block_erase = spi_block_erase_d8,
4600 }, {
4601 .eraseblocks = { {8 * 1024 * 1024, 1} },
4602 .block_erase = spi_block_erase_60,
4603 }, {
4604 .eraseblocks = { {8 * 1024 * 1024, 1} },
4605 .block_erase = spi_block_erase_c7,
4606 }
4607 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004608 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Stefan Taunerd932fd02012-09-06 17:37:16 +00004609 .unlock = spi_disable_blockprotect,
4610 .write = spi_chip_write_256,
4611 .read = spi_chip_read,
4612 .voltage = {2700, 3600},
4613 },
4614
4615 {
4616 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004617 .name = "EN25F80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004618 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004619 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004620 .model_id = EON_EN25F80,
David Hendricks6d715302011-07-24 22:21:57 +00004621 .total_size = 1024,
4622 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004623 .feature_bits = FEATURE_WRSR_WREN,
4624 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004625 .probe = probe_spi_rdid,
4626 .probe_timing = TIMING_ZERO,
4627 .block_erasers =
4628 {
4629 {
4630 .eraseblocks = { {4 * 1024, 256} },
4631 .block_erase = spi_block_erase_20,
4632 }, {
4633 .eraseblocks = { {64 * 1024, 16} },
4634 .block_erase = spi_block_erase_d8,
4635 }, {
4636 .eraseblocks = { {1024 * 1024, 1} },
4637 .block_erase = spi_block_erase_60,
4638 }, {
4639 .eraseblocks = { {1024 * 1024, 1} },
4640 .block_erase = spi_block_erase_c7,
4641 }
4642 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004643 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004644 .unlock = spi_disable_blockprotect,
4645 .write = spi_chip_write_256,
4646 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004647 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004648 },
4649
4650 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004651 .vendor = "Eon",
4652 .name = "EN25P05",
4653 .bustype = BUS_SPI,
4654 .manufacture_id = EON_ID_NOPREFIX,
4655 .model_id = EON_EN25B05,
4656 .total_size = 64,
4657 .page_size = 256,
4658 .feature_bits = FEATURE_WRSR_WREN,
4659 .tested = TEST_UNTESTED,
4660 .probe = probe_spi_rdid,
4661 .probe_timing = TIMING_ZERO,
4662 .block_erasers =
4663 {
4664 {
4665 .eraseblocks = {
4666 {32 * 1024, 2} },
4667 .block_erase = spi_block_erase_d8,
4668 }, {
4669 .eraseblocks = { {64 * 1024, 1} },
4670 .block_erase = spi_block_erase_c7,
4671 }
4672 },
4673 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4674 .unlock = spi_disable_blockprotect,
4675 .write = spi_chip_write_256,
4676 .read = spi_chip_read, /* Fast read (0x0B) supported */
4677 .voltage = {2700, 3600},
4678 },
4679
4680 {
4681 .vendor = "Eon",
4682 .name = "EN25P10",
4683 .bustype = BUS_SPI,
4684 .manufacture_id = EON_ID_NOPREFIX,
4685 .model_id = EON_EN25B10,
4686 .total_size = 128,
4687 .page_size = 256,
4688 .feature_bits = FEATURE_WRSR_WREN,
4689 .tested = TEST_UNTESTED,
4690 .probe = probe_spi_rdid,
4691 .probe_timing = TIMING_ZERO,
4692 .block_erasers =
4693 {
4694 {
4695 .eraseblocks = { {32 * 1024, 4} },
4696 .block_erase = spi_block_erase_d8,
4697 }, {
4698 .eraseblocks = { {128 * 1024, 1} },
4699 .block_erase = spi_block_erase_c7,
4700 }
4701 },
4702 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4703 .unlock = spi_disable_blockprotect,
4704 .write = spi_chip_write_256,
4705 .read = spi_chip_read, /* Fast read (0x0B) supported */
4706 .voltage = {2700, 3600},
4707 },
4708
4709 {
4710 .vendor = "Eon",
4711 .name = "EN25P16",
4712 .bustype = BUS_SPI,
4713 .manufacture_id = EON_ID_NOPREFIX,
4714 .model_id = EON_EN25B16,
4715 .total_size = 2048,
4716 .page_size = 256,
4717 .feature_bits = FEATURE_WRSR_WREN,
4718 .tested = TEST_UNTESTED,
4719 .probe = probe_spi_rdid,
4720 .probe_timing = TIMING_ZERO,
4721 .block_erasers =
4722 {
4723 {
4724 .eraseblocks = { {64 * 1024, 32} },
4725 .block_erase = spi_block_erase_d8,
4726 }, {
4727 .eraseblocks = { {2 * 1024 * 1024, 1} },
4728 .block_erase = spi_block_erase_c7,
4729 }
4730 },
4731 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4732 .unlock = spi_disable_blockprotect,
4733 .write = spi_chip_write_256,
4734 .read = spi_chip_read, /* Fast read (0x0B) supported */
4735 .voltage = {2700, 3600},
4736 },
4737
4738 {
4739 .vendor = "Eon",
4740 .name = "EN25P20",
4741 .bustype = BUS_SPI,
4742 .manufacture_id = EON_ID_NOPREFIX,
4743 .model_id = EON_EN25B20,
4744 .total_size = 256,
4745 .page_size = 256,
4746 .feature_bits = FEATURE_WRSR_WREN,
4747 .tested = TEST_UNTESTED,
4748 .probe = probe_spi_rdid,
4749 .probe_timing = TIMING_ZERO,
4750 .block_erasers =
4751 {
4752 {
4753 .eraseblocks = { {64 * 1024, 4} },
4754 .block_erase = spi_block_erase_d8,
4755 }, {
4756 .eraseblocks = { {256 * 1024, 1} },
4757 .block_erase = spi_block_erase_c7,
4758 }
4759 },
4760 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4761 .unlock = spi_disable_blockprotect,
4762 .write = spi_chip_write_256,
4763 .read = spi_chip_read, /* Fast read (0x0B) supported */
4764 .voltage = {2700, 3600},
4765 },
4766
4767 {
4768 .vendor = "Eon",
4769 .name = "EN25P32", /* Uniform version of EN25B32 */
4770 .bustype = BUS_SPI,
4771 .manufacture_id = EON_ID_NOPREFIX,
4772 .model_id = EON_EN25B32,
4773 .total_size = 4096,
4774 .page_size = 256,
4775 /* OTP: 512B total; enter 0x3A */
4776 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4777 .tested = TEST_UNTESTED,
4778 .probe = probe_spi_rdid,
4779 .probe_timing = TIMING_ZERO,
4780 .block_erasers =
4781 {
4782 {
4783 .eraseblocks = { {64 * 1024, 64} },
4784 .block_erase = spi_block_erase_d8,
4785 }, {
4786 .eraseblocks = { {4 * 1024 * 1024, 1} },
4787 .block_erase = spi_block_erase_c7,
4788 }
4789 },
4790 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4791 .unlock = spi_disable_blockprotect,
4792 .write = spi_chip_write_256,
4793 .read = spi_chip_read, /* Fast read (0x0B) supported */
4794 .voltage = {2700, 3600},
4795 },
4796
4797 {
4798 .vendor = "Eon",
4799 .name = "EN25P40",
4800 .bustype = BUS_SPI,
4801 .manufacture_id = EON_ID_NOPREFIX,
4802 .model_id = EON_EN25B40,
4803 .total_size = 512,
4804 .page_size = 256,
4805 .feature_bits = FEATURE_WRSR_WREN,
4806 .tested = TEST_UNTESTED,
4807 .probe = probe_spi_rdid,
4808 .probe_timing = TIMING_ZERO,
4809 .block_erasers =
4810 {
4811 {
4812 .eraseblocks = { {64 * 1024, 8} },
4813 .block_erase = spi_block_erase_d8,
4814 }, {
4815 .eraseblocks = { {512 * 1024, 1} },
4816 .block_erase = spi_block_erase_c7,
4817 }
4818 },
4819 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4820 .unlock = spi_disable_blockprotect,
4821 .write = spi_chip_write_256,
4822 .read = spi_chip_read, /* Fast read (0x0B) supported */
4823 .voltage = {2700, 3600},
4824 },
4825
4826 {
4827 .vendor = "Eon",
4828 .name = "EN25P64",
4829 .bustype = BUS_SPI,
4830 .manufacture_id = EON_ID_NOPREFIX,
4831 .model_id = EON_EN25B64,
4832 .total_size = 8192,
4833 .page_size = 256,
4834 /* OTP: 512B total; enter 0x3A */
4835 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4836 .tested = TEST_UNTESTED,
4837 .probe = probe_spi_rdid,
4838 .probe_timing = TIMING_ZERO,
4839 .block_erasers =
4840 {
4841 {
4842 .eraseblocks = { {64 * 1024, 128} },
4843 .block_erase = spi_block_erase_d8,
4844 }, {
4845 .eraseblocks = { {8 * 1024 * 1024, 1} },
4846 .block_erase = spi_block_erase_c7,
4847 }
4848 },
4849 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4850 .unlock = spi_disable_blockprotect,
4851 .write = spi_chip_write_256,
4852 .read = spi_chip_read, /* Fast read (0x0B) supported */
4853 .voltage = {2700, 3600},
4854 },
4855
4856 {
4857 .vendor = "Eon",
4858 .name = "EN25P80",
4859 .bustype = BUS_SPI,
4860 .manufacture_id = EON_ID_NOPREFIX,
4861 .model_id = EON_EN25B80,
4862 .total_size = 1024,
4863 .page_size = 256,
4864 .feature_bits = FEATURE_WRSR_WREN,
4865 .tested = TEST_UNTESTED,
4866 .probe = probe_spi_rdid,
4867 .probe_timing = TIMING_ZERO,
4868 .block_erasers =
4869 {
4870 {
4871 .eraseblocks = { {64 * 1024, 16} },
4872 .block_erase = spi_block_erase_d8,
4873 }, {
4874 .eraseblocks = { {1024 * 1024, 1} },
4875 .block_erase = spi_block_erase_c7,
4876 }
4877 },
4878 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4879 .unlock = spi_disable_blockprotect,
4880 .write = spi_chip_write_256,
4881 .read = spi_chip_read, /* Fast read (0x0B) supported */
4882 .voltage = {2700, 3600},
4883 },
4884
4885 {
4886 .vendor = "Eon",
4887 .name = "EN25Q128",
4888 .bustype = BUS_SPI,
4889 .manufacture_id = EON_ID_NOPREFIX,
4890 .model_id = EON_EN25Q128,
4891 .total_size = 16384,
4892 .page_size = 256,
4893 /* OTP: 512B total; enter 0x3A */
4894 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4895 .tested = TEST_OK_PREW,
4896 .probe = probe_spi_rdid,
4897 .probe_timing = TIMING_ZERO,
4898 .block_erasers =
4899 {
4900 {
4901 .eraseblocks = { {4 * 1024, 4096} },
4902 .block_erase = spi_block_erase_20,
4903 }, {
4904 .eraseblocks = { {64 * 1024, 256} },
4905 .block_erase = spi_block_erase_d8,
4906 }, {
4907 .eraseblocks = { {16 * 1024 * 1024, 1} },
4908 .block_erase = spi_block_erase_60,
4909 }, {
4910 .eraseblocks = { {16 * 1024 * 1024, 1} },
4911 .block_erase = spi_block_erase_c7,
4912 }
4913 },
4914 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4915 .unlock = spi_disable_blockprotect,
4916 .write = spi_chip_write_256,
4917 .read = spi_chip_read,
4918 },
4919
4920 {
David Hendricks6d715302011-07-24 22:21:57 +00004921 /* Note: EN25D16 is an evil twin which shares the model ID
4922 but has different write protection capabilities */
4923 .vendor = "Eon",
4924 .name = "EN25Q16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004925 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004926 .manufacture_id = EON_ID_NOPREFIX,
4927 .model_id = EON_EN25Q16,
4928 .total_size = 2048,
4929 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004930 /* OTP: D16 512B/Q16 128B total; enter 0x3A */
4931 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004932 .tested = TEST_UNTESTED,
4933 .probe = probe_spi_rdid,
4934 .probe_timing = TIMING_ZERO,
4935 .block_erasers =
4936 {
4937 {
4938 .eraseblocks = { {4 * 1024, 512} },
4939 .block_erase = spi_block_erase_20,
4940 }, {
4941 .eraseblocks = { {64 * 1024, 32} },
4942 .block_erase = spi_block_erase_d8,
4943 }, {
4944 /* not supported by Q16 version */
4945 .eraseblocks = { {64 * 1024, 32} },
4946 .block_erase = spi_block_erase_52,
4947 }, {
4948 .eraseblocks = { {2 * 1024 * 1024, 1} },
4949 .block_erase = spi_block_erase_60,
4950 }, {
4951 .eraseblocks = { {2 * 1024 * 1024, 1} },
4952 .block_erase = spi_block_erase_c7,
4953 }
4954 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004955 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004956 .unlock = spi_disable_blockprotect,
4957 .write = spi_chip_write_256,
4958 .read = spi_chip_read,
4959 .voltage = {2700, 3600},
4960 },
4961
4962 {
4963 .vendor = "Eon",
4964 .name = "EN25Q32(A/B)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004965 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004966 .manufacture_id = EON_ID_NOPREFIX,
4967 .model_id = EON_EN25Q32,
4968 .total_size = 4096,
4969 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004970 /* OTP: 512B total; enter 0x3A */
4971 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004972 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004973 .probe = probe_spi_rdid,
4974 .probe_timing = TIMING_ZERO,
4975 .block_erasers =
4976 {
4977 {
4978 .eraseblocks = { {4 * 1024, 1024} },
4979 .block_erase = spi_block_erase_20,
4980 }, {
4981 .eraseblocks = { {64 * 1024, 64} },
4982 .block_erase = spi_block_erase_d8,
4983 }, {
4984 .eraseblocks = { {4 * 1024 * 1024, 1} },
4985 .block_erase = spi_block_erase_60,
4986 }, {
4987 .eraseblocks = { {4 * 1024 * 1024, 1} },
4988 .block_erase = spi_block_erase_c7,
4989 }
4990 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004991 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004992 .unlock = spi_disable_blockprotect,
4993 .write = spi_chip_write_256,
4994 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004995 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004996 },
4997
4998 {
4999 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005000 .name = "EN25Q40",
5001 .bustype = BUS_SPI,
5002 .manufacture_id = EON_ID_NOPREFIX,
5003 .model_id = EON_EN25Q40,
5004 .total_size = 512,
5005 .page_size = 256,
5006 /* OTP: 256B total; enter 0x3A */
5007 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5008 .tested = TEST_UNTESTED,
5009 .probe = probe_spi_rdid,
5010 .probe_timing = TIMING_ZERO,
5011 .block_erasers =
5012 {
5013 {
5014 .eraseblocks = { {4 * 1024, 128} },
5015 .block_erase = spi_block_erase_20,
5016 }, {
5017 .eraseblocks = { {64 * 1024, 8} },
5018 .block_erase = spi_block_erase_d8,
5019 }, {
5020 .eraseblocks = { {512 * 1024, 1} },
5021 .block_erase = spi_block_erase_60,
5022 }, {
5023 .eraseblocks = { {512 * 1024, 1} },
5024 .block_erase = spi_block_erase_c7,
5025 }
5026 },
5027 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
5028 .unlock = spi_disable_blockprotect,
5029 .write = spi_chip_write_256,
5030 .read = spi_chip_read,
5031 .voltage = {2700, 3600},
5032 },
5033
5034 {
5035 .vendor = "Eon",
David Hendricks6d715302011-07-24 22:21:57 +00005036 .name = "EN25Q64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005037 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00005038 .manufacture_id = EON_ID_NOPREFIX,
5039 .model_id = EON_EN25Q64,
5040 .total_size = 8192,
5041 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00005042 /* OTP: 512B total; enter 0x3A */
5043 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005044 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00005045 .probe = probe_spi_rdid,
5046 .probe_timing = TIMING_ZERO,
5047 .block_erasers =
5048 {
5049 {
5050 .eraseblocks = { {4 * 1024, 2048} },
5051 .block_erase = spi_block_erase_20,
5052 }, {
5053 .eraseblocks = { {64 * 1024, 128} },
5054 .block_erase = spi_block_erase_d8,
5055 }, {
5056 .eraseblocks = { {8 * 1024 * 1024, 1} },
5057 .block_erase = spi_block_erase_60,
5058 }, {
5059 .eraseblocks = { {8 * 1024 * 1024, 1} },
5060 .block_erase = spi_block_erase_c7,
5061 }
5062 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00005063 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00005064 .unlock = spi_disable_blockprotect,
5065 .write = spi_chip_write_256,
5066 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00005067 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00005068 },
5069
5070 {
5071 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005072 .name = "EN25Q80(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005073 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00005074 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005075 .model_id = EON_EN25Q80,
5076 .total_size = 1024,
5077 .page_size = 256,
5078 /* OTP: 256B total; enter 0x3A */
5079 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5080 .tested = TEST_UNTESTED,
5081 .probe = probe_spi_rdid,
5082 .probe_timing = TIMING_ZERO,
5083 .block_erasers =
5084 {
5085 {
5086 .eraseblocks = { {4 * 1024, 256} },
5087 .block_erase = spi_block_erase_20,
5088 }, {
5089 .eraseblocks = { {64 * 1024, 16} },
5090 .block_erase = spi_block_erase_d8,
5091 }, {
5092 .eraseblocks = { {1024 * 1024, 1} },
5093 .block_erase = spi_block_erase_60,
5094 }, {
5095 .eraseblocks = { {1024 * 1024, 1} },
5096 .block_erase = spi_block_erase_c7,
5097 }
5098 },
5099 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
5100 .unlock = spi_disable_blockprotect,
5101 .write = spi_chip_write_256,
5102 .read = spi_chip_read,
5103 .voltage = {2700, 3600},
5104 },
5105
5106 {
5107 .vendor = "Eon",
5108 .name = "EN25QH128",
5109 .bustype = BUS_SPI,
5110 .manufacture_id = EON_ID_NOPREFIX,
5111 .model_id = EON_EN25QH128,
David Hendricks6d715302011-07-24 22:21:57 +00005112 .total_size = 16384,
5113 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005114 /* supports SFDP */
Daniel Lenski65922a32012-02-15 23:40:23 +00005115 /* OTP: 512B total; enter 0x3A */
Alan Green1f9cc7d2019-07-01 11:10:45 +10005116 /* QPI enable 0x38, disable 0xFF */
5117 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Tim Chenbfe149a2020-07-06 14:59:21 +08005118 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00005119 .probe = probe_spi_rdid,
5120 .probe_timing = TIMING_ZERO,
5121 .block_erasers =
5122 {
5123 {
5124 .eraseblocks = { {4 * 1024, 4096} },
5125 .block_erase = spi_block_erase_20,
5126 }, {
5127 .eraseblocks = { {64 * 1024, 256} },
5128 .block_erase = spi_block_erase_d8,
5129 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005130 .eraseblocks = { { 16384 * 1024, 1} },
David Hendricks6d715302011-07-24 22:21:57 +00005131 .block_erase = spi_block_erase_60,
5132 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005133 .eraseblocks = { { 16384 * 1024, 1} },
David Hendricks6d715302011-07-24 22:21:57 +00005134 .block_erase = spi_block_erase_c7,
5135 }
5136 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005137 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
5138 .unlock = spi_disable_blockprotect_bp3_srwd,
David Hendricks6d715302011-07-24 22:21:57 +00005139 .write = spi_chip_write_256,
5140 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005141 .voltage = {2700, 3600},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +11005142 .reg_bits =
5143 {
5144 .srp = {STATUS1, 7, RW},
5145 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
5146 .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */
5147 },
5148 .decode_range = decode_range_spi25,
David Hendricks6d715302011-07-24 22:21:57 +00005149 },
5150
5151 {
5152 .vendor = "Eon",
5153 .name = "EN25QH16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005154 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00005155 .manufacture_id = EON_ID_NOPREFIX,
5156 .model_id = EON_EN25QH16,
5157 .total_size = 2048,
5158 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00005159 /* supports SFDP */
5160 /* OTP: 512B total; enter 0x3A */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005161 /* QPI enable 0x38, disable 0xFF */
5162 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner5c316f92015-02-08 21:57:52 +00005163 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00005164 .probe = probe_spi_rdid,
5165 .probe_timing = TIMING_ZERO,
5166 .block_erasers =
5167 {
5168 {
5169 .eraseblocks = { {4 * 1024, 512} },
5170 .block_erase = spi_block_erase_20,
5171 }, {
5172 .eraseblocks = { {64 * 1024, 32} },
5173 .block_erase = spi_block_erase_d8,
5174 }, {
5175 .eraseblocks = { {1024 * 2048, 1} },
5176 .block_erase = spi_block_erase_60,
5177 }, {
5178 .eraseblocks = { {1024 * 2048, 1} },
5179 .block_erase = spi_block_erase_c7,
5180 }
5181 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005182 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005183 .unlock = spi_disable_blockprotect_bp3_srwd,
David Hendricks6d715302011-07-24 22:21:57 +00005184 .write = spi_chip_write_256,
5185 .read = spi_chip_read,
Stefan Tauner2cef9162012-05-14 01:51:46 +00005186 .voltage = {2700, 3600},
5187 },
5188
5189 {
5190 .vendor = "Eon",
5191 .name = "EN25QH32",
5192 .bustype = BUS_SPI,
5193 .manufacture_id = EON_ID_NOPREFIX,
5194 .model_id = EON_EN25QH32,
5195 .total_size = 4096,
5196 .page_size = 256,
5197 /* supports SFDP */
5198 /* OTP: 512B total; enter 0x3A */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005199 /* QPI enable 0x38, disable 0xFF */
5200 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner23e10b82016-01-23 16:16:49 +00005201 .tested = TEST_OK_PREW,
Stefan Tauner2cef9162012-05-14 01:51:46 +00005202 .probe = probe_spi_rdid,
5203 .probe_timing = TIMING_ZERO,
5204 .block_erasers =
5205 {
5206 {
5207 .eraseblocks = { {4 * 1024, 1024} },
5208 .block_erase = spi_block_erase_20,
5209 }, {
5210 .eraseblocks = { {64 * 1024, 64} },
5211 .block_erase = spi_block_erase_d8,
5212 }, {
5213 .eraseblocks = { {1024 * 4096, 1} },
5214 .block_erase = spi_block_erase_60,
5215 }, {
5216 .eraseblocks = { {1024 * 4096, 1} },
5217 .block_erase = spi_block_erase_c7,
5218 }
5219 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005220 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005221 .unlock = spi_disable_blockprotect_bp3_srwd,
5222 .write = spi_chip_write_256,
5223 .read = spi_chip_read,
5224 .voltage = {2700, 3600},
Sergii Dmytrukc6e8b1a2022-08-14 20:57:48 +03005225 .reg_bits =
5226 {
5227 .srp = {STATUS1, 7, RW},
5228 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
5229 .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */
5230 },
5231 .decode_range = decode_range_spi25,
5232 },
5233
5234 {
5235 .vendor = "Eon",
5236 .name = "EN25QH32B",
5237 .bustype = BUS_SPI,
5238 .manufacture_id = EON_ID_NOPREFIX,
5239 .model_id = EON_EN25QH32,
5240 .total_size = 4096,
5241 .page_size = 256,
5242 /* supports SFDP */
5243 /* OTP: 1536B total; enter 0x3A */
5244 /* QPI enable 0x38, disable 0xFF */
5245 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5246 .tested = TEST_OK_PREW,
5247 .probe = probe_spi_rdid,
5248 .probe_timing = TIMING_ZERO,
5249 .block_erasers =
5250 {
5251 {
5252 .eraseblocks = { {4 * 1024, 1024} },
5253 .block_erase = spi_block_erase_20,
5254 }, {
5255 .eraseblocks = { {32 * 1024, 128} },
5256 .block_erase = spi_block_erase_52,
5257 }, {
5258 .eraseblocks = { {64 * 1024, 64} },
5259 .block_erase = spi_block_erase_d8,
5260 }, {
5261 .eraseblocks = { {1024 * 4096, 1} },
5262 .block_erase = spi_block_erase_60,
5263 }, {
5264 .eraseblocks = { {1024 * 4096, 1} },
5265 .block_erase = spi_block_erase_c7,
5266 }
5267 },
5268 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
5269 .unlock = spi_disable_blockprotect_bp3_srwd,
5270 .write = spi_chip_write_256,
5271 .read = spi_chip_read,
5272 .voltage = {2700, 3600},
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005273 },
5274
5275 {
5276 .vendor = "Eon",
5277 .name = "EN25QH64",
5278 .bustype = BUS_SPI,
5279 .manufacture_id = EON_ID_NOPREFIX,
5280 .model_id = EON_EN25QH64,
5281 .total_size = 8192,
5282 .page_size = 256,
5283 /* supports SFDP */
5284 /* OTP: 512B total; enter 0x3A */
5285 /* QPI enable 0x38, disable 0xFF */
5286 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner23e10b82016-01-23 16:16:49 +00005287 .tested = TEST_OK_PREW,
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005288 .probe = probe_spi_rdid,
5289 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005290 .block_erasers =
5291 {
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005292 {
5293 .eraseblocks = { {4 * 1024, 2048} },
5294 .block_erase = spi_block_erase_20,
5295 }, {
5296 .eraseblocks = { {64 * 1024, 128} },
5297 .block_erase = spi_block_erase_d8,
5298 }, {
5299 .eraseblocks = { { 8192 * 1024, 1} },
5300 .block_erase = spi_block_erase_60,
5301 }, {
5302 .eraseblocks = { { 8192 * 1024, 1} },
5303 .block_erase = spi_block_erase_c7,
5304 }
5305 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005306 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005307 .unlock = spi_disable_blockprotect_bp3_srwd,
5308 .write = spi_chip_write_256,
5309 .read = spi_chip_read,
5310 .voltage = {2700, 3600},
Sergii Dmytrukc6e8b1a2022-08-14 20:57:48 +03005311 .reg_bits =
5312 {
5313 .srp = {STATUS1, 7, RW},
5314 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
5315 .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */
5316 },
5317 .decode_range = decode_range_spi25_64k_block,
5318 },
5319
5320 {
5321 .vendor = "Eon",
5322 .name = "EN25QH64A",
5323 .bustype = BUS_SPI,
5324 .manufacture_id = EON_ID_NOPREFIX,
5325 .model_id = EON_EN25QH64,
5326 .total_size = 8192,
5327 .page_size = 256,
5328 /* supports SFDP */
5329 /* OTP: 512B total; enter 0x3A */
5330 /* QPI enable 0x38, disable 0xFF */
5331 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5332 .tested = TEST_OK_PREW,
5333 .probe = probe_spi_rdid,
5334 .probe_timing = TIMING_ZERO,
5335 .block_erasers =
5336 {
5337 {
5338 .eraseblocks = { {4 * 1024, 2048} },
5339 .block_erase = spi_block_erase_20,
5340 }, {
5341 .eraseblocks = { {32 * 1024, 256} },
5342 .block_erase = spi_block_erase_52,
5343 }, {
5344 .eraseblocks = { {64 * 1024, 128} },
5345 .block_erase = spi_block_erase_d8,
5346 }, {
5347 .eraseblocks = { { 8192 * 1024, 1} },
5348 .block_erase = spi_block_erase_60,
5349 }, {
5350 .eraseblocks = { { 8192 * 1024, 1} },
5351 .block_erase = spi_block_erase_c7,
5352 }
5353 },
5354 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
5355 .unlock = spi_disable_blockprotect_bp3_srwd,
5356 .write = spi_chip_write_256,
5357 .read = spi_chip_read,
5358 .voltage = {2700, 3600},
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005359 },
5360
5361 {
5362 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005363 .name = "EN25S10",
5364 .bustype = BUS_SPI,
5365 .manufacture_id = EON_ID_NOPREFIX,
5366 .model_id = EON_EN25S10,
5367 .total_size = 128,
5368 .page_size = 256,
5369 /* OTP: 256B total; enter 0x3A */
5370 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5371 .tested = TEST_UNTESTED,
5372 .probe = probe_spi_rdid,
5373 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005374 .block_erasers =
5375 {
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005376 {
5377 .eraseblocks = { {4 * 1024, 32} },
5378 .block_erase = spi_block_erase_20,
5379 }, {
5380 .eraseblocks = { {32 * 1024, 4} },
5381 .block_erase = spi_block_erase_52,
5382 }, {
5383 .eraseblocks = { {128 * 1024, 1} },
5384 .block_erase = spi_block_erase_60,
5385 }, {
5386 .eraseblocks = { {128 * 1024, 1} },
5387 .block_erase = spi_block_erase_c7,
5388 }
5389 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005390 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005391 .unlock = spi_disable_blockprotect,
5392 .write = spi_chip_write_256,
5393 .read = spi_chip_read,
5394 .voltage = {1650, 1950},
5395 },
5396
5397 {
5398 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005399 .name = "EN25S16",
5400 .bustype = BUS_SPI,
5401 .manufacture_id = EON_ID_NOPREFIX,
5402 .model_id = EON_EN25S16,
5403 .total_size = 2048,
5404 .page_size = 256,
5405 /* OTP: 512B total; enter 0x3A */
5406 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5407 .tested = TEST_UNTESTED,
5408 .probe = probe_spi_rdid,
5409 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005410 .block_erasers =
5411 {
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005412 {
5413 .eraseblocks = { {4 * 1024, 512} },
5414 .block_erase = spi_block_erase_20,
5415 }, {
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005416 .eraseblocks = { {32 * 1024, 64} },
5417 .block_erase = spi_block_erase_d8,
5418 }, {
Aarya Chaumal478e1792022-06-04 01:34:44 +05305419 .eraseblocks = { {64 * 1024, 32} },
5420 .block_erase = spi_block_erase_52,
5421 }, {
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005422 .eraseblocks = { {2048 * 1024, 1} },
5423 .block_erase = spi_block_erase_60,
5424 }, {
5425 .eraseblocks = { {2048 * 1024, 1} },
5426 .block_erase = spi_block_erase_c7,
5427 }
5428 },
5429 .printlock = spi_prettyprint_status_register_en25s_wp,
5430 .unlock = spi_disable_blockprotect_bp3_srwd,
5431 .write = spi_chip_write_256,
5432 .read = spi_chip_read,
5433 .voltage = {1650, 1950},
5434 },
5435
5436 {
5437 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005438 .name = "EN25S20",
5439 .bustype = BUS_SPI,
5440 .manufacture_id = EON_ID_NOPREFIX,
5441 .model_id = EON_EN25S20,
5442 .total_size = 256,
5443 .page_size = 256,
5444 /* OTP: 256B total; enter 0x3A */
5445 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5446 .tested = TEST_UNTESTED,
5447 .probe = probe_spi_rdid,
5448 .probe_timing = TIMING_ZERO,
5449 .block_erasers =
5450 {
5451 {
5452 .eraseblocks = { {4 * 1024, 64} },
5453 .block_erase = spi_block_erase_20,
5454 }, {
5455 .eraseblocks = { {64 * 1024, 4} },
5456 .block_erase = spi_block_erase_d8,
5457 }, {
5458 .eraseblocks = { {256 * 1024, 1} },
5459 .block_erase = spi_block_erase_60,
5460 }, {
5461 .eraseblocks = { {256 * 1024, 1} },
5462 .block_erase = spi_block_erase_c7,
5463 }
5464 },
5465 .printlock = spi_prettyprint_status_register_bp2_srwd,
5466 .unlock = spi_disable_blockprotect,
5467 .write = spi_chip_write_256,
5468 .read = spi_chip_read,
5469 .voltage = {1650, 1950},
5470 },
5471
5472 {
5473 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005474 .name = "EN25S32",
5475 .bustype = BUS_SPI,
5476 .manufacture_id = EON_ID_NOPREFIX,
5477 .model_id = EON_EN25S32,
5478 .total_size = 4096,
5479 .page_size = 256,
5480 /* OTP: 512B total; enter 0x3A */
5481 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5482 .tested = TEST_UNTESTED,
5483 .probe = probe_spi_rdid,
5484 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005485 .block_erasers =
5486 {
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005487 {
5488 .eraseblocks = { {4 * 1024, 1024} },
5489 .block_erase = spi_block_erase_20,
5490 }, {
5491 .eraseblocks = { {32 * 1024, 128} },
5492 .block_erase = spi_block_erase_52,
5493 }, {
5494 .eraseblocks = { {64 * 1024, 64} },
5495 .block_erase = spi_block_erase_d8,
5496 }, {
5497 .eraseblocks = { {4096 * 1024, 1} },
5498 .block_erase = spi_block_erase_60,
5499 }, {
5500 .eraseblocks = { {4096 * 1024, 1} },
5501 .block_erase = spi_block_erase_c7,
5502 }
5503 },
5504 .printlock = spi_prettyprint_status_register_en25s_wp,
5505 .unlock = spi_disable_blockprotect_bp3_srwd,
5506 .write = spi_chip_write_256,
5507 .read = spi_chip_read,
5508 .voltage = {1650, 1950},
5509 },
5510
5511 {
5512 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005513 .name = "EN25S40",
5514 .bustype = BUS_SPI,
5515 .manufacture_id = EON_ID_NOPREFIX,
5516 .model_id = EON_EN25S40,
5517 .total_size = 512,
5518 .page_size = 256,
5519 /* OTP: 256B total; enter 0x3A */
5520 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5521 .tested = TEST_OK_PREW,
5522 .probe = probe_spi_rdid,
5523 .probe_timing = TIMING_ZERO,
5524 .block_erasers =
5525 {
5526 {
5527 .eraseblocks = { {4 * 1024, 128} },
5528 .block_erase = spi_block_erase_20,
5529 }, {
5530 .eraseblocks = { {64 * 1024, 8} },
5531 .block_erase = spi_block_erase_d8,
5532 }, {
5533 .eraseblocks = { {512 * 1024, 1} },
5534 .block_erase = spi_block_erase_60,
5535 }, {
5536 .eraseblocks = { {512 * 1024, 1} },
5537 .block_erase = spi_block_erase_c7,
5538 }
5539 },
5540 .printlock = spi_prettyprint_status_register_bp2_srwd,
5541 .unlock = spi_disable_blockprotect,
5542 .write = spi_chip_write_256,
5543 .read = spi_chip_read,
5544 .voltage = {1650, 1950},
5545 },
5546
5547 {
5548 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005549 .name = "EN25S64",
5550 .bustype = BUS_SPI,
5551 .manufacture_id = EON_ID_NOPREFIX,
5552 .model_id = EON_EN25S64,
5553 .total_size = 8192,
5554 .page_size = 256,
5555 /* OTP: 512B total; enter 0x3A */
5556 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Nikolai Artemievdf889fa2021-03-23 17:10:45 +11005557 .tested = TEST_OK_PREW,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005558 .probe = probe_spi_rdid,
5559 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005560 .block_erasers =
5561 {
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005562 {
5563 .eraseblocks = { {4 * 1024, 2048} },
5564 .block_erase = spi_block_erase_20,
5565 }, {
5566 .eraseblocks = { {64 * 1024, 128} },
5567 .block_erase = spi_block_erase_d8,
5568 }, {
5569 .eraseblocks = { {8192 * 1024, 1} },
5570 .block_erase = spi_block_erase_60,
5571 }, {
5572 .eraseblocks = { {8192 * 1024, 1} },
5573 .block_erase = spi_block_erase_c7,
5574 }
5575 },
5576 .printlock = spi_prettyprint_status_register_en25s_wp,
5577 .unlock = spi_disable_blockprotect_bp3_srwd,
5578 .write = spi_chip_write_256,
5579 .read = spi_chip_read,
5580 .voltage = {1650, 1950},
5581 },
5582
5583 {
5584 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005585 .name = "EN25S80",
5586 .bustype = BUS_SPI,
5587 .manufacture_id = EON_ID_NOPREFIX,
5588 .model_id = EON_EN25S80,
5589 .total_size = 1024,
5590 .page_size = 256,
5591 /* OTP: 256B total; enter 0x3A */
5592 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5593 .tested = TEST_UNTESTED,
5594 .probe = probe_spi_rdid,
5595 .probe_timing = TIMING_ZERO,
Russ Dill3cd5a122010-03-05 08:44:11 +00005596 .block_erasers =
5597 {
5598 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005599 .eraseblocks = { {4 * 1024, 256} },
5600 .block_erase = spi_block_erase_20,
5601 }, {
5602 .eraseblocks = { {64 * 1024, 16} },
5603 .block_erase = spi_block_erase_d8,
5604 }, {
5605 .eraseblocks = { {1024 * 1024, 1} },
5606 .block_erase = spi_block_erase_60,
5607 }, {
5608 .eraseblocks = { {1024 * 1024, 1} },
5609 .block_erase = spi_block_erase_c7,
5610 }
Russ Dill3cd5a122010-03-05 08:44:11 +00005611 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005612 .printlock = spi_prettyprint_status_register_bp2_srwd,
5613 .unlock = spi_disable_blockprotect,
5614 .write = spi_chip_write_256,
5615 .read = spi_chip_read,
5616 .voltage = {1650, 1950},
Russ Dill3cd5a122010-03-05 08:44:11 +00005617 },
5618
5619 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00005620 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005621 .name = "EN29F002(A)(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005622 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005623 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005624 .model_id = EON_EN29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005625 .total_size = 256,
5626 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00005627 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Alan Green4362e622019-08-26 15:02:12 +10005628 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005629 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005630 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005631 .block_erasers =
5632 {
5633 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005634 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005635 {16 * 1024, 1},
Michael Karchere3cb0a12010-03-13 23:47:09 +00005636 {8 * 1024, 2},
5637 {32 * 1024, 1},
5638 {64 * 1024, 3},
Sean Nelson6b11ad22009-12-23 17:05:59 +00005639 },
5640 .block_erase = erase_sector_jedec,
5641 }, {
5642 .eraseblocks = { {256 * 1024, 1} },
5643 .block_erase = erase_chip_block_jedec,
5644 },
5645 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005646 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005647 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005648 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005649 },
5650
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005651 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00005652 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005653 .name = "EN29F002(A)(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005654 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005655 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005656 .model_id = EON_EN29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005657 .total_size = 256,
5658 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00005659 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00005660 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005661 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005662 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005663 .block_erasers =
5664 {
5665 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005666 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005667 {64 * 1024, 3},
Michael Karchere3cb0a12010-03-13 23:47:09 +00005668 {32 * 1024, 1},
5669 {8 * 1024, 2},
5670 {16 * 1024, 1},
Sean Nelson6b11ad22009-12-23 17:05:59 +00005671 },
5672 .block_erase = erase_sector_jedec,
5673 }, {
5674 .eraseblocks = { {256 * 1024, 1} },
5675 .block_erase = erase_chip_block_jedec,
5676 },
5677 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005678 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005679 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005680 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005681 },
5682
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005683 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005684 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005685 .name = "EN29F010",
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005686 .bustype = BUS_PARALLEL,
5687 .manufacture_id = EON_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005688 .model_id = EON_EN29F010,
5689 .total_size = 128,
5690 .page_size = 128,
5691 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
5692 .tested = TEST_OK_PRE,
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005693 .probe = probe_jedec,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005694 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005695 .block_erasers =
5696 {
5697 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005698 .eraseblocks = { {16 * 1024, 8} },
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005699 .block_erase = erase_sector_jedec,
5700 },
5701 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005702 .eraseblocks = { {128 * 1024, 1} },
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005703 .block_erase = erase_chip_block_jedec,
5704 },
5705 },
5706 .write = write_jedec_1,
5707 .read = read_memmapped,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005708 .voltage = {4500, 5500},
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005709 },
5710
5711 {
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00005712 .vendor = "Eon",
5713 .name = "EN29GL064(A)B",
5714 .bustype = BUS_PARALLEL,
5715 .manufacture_id = EON_ID,
5716 .model_id = EON_EN29GL064B,
5717 .total_size = 8192,
5718 .page_size = 128 * 1024, /* actual page size is 16 */
5719 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5720 .tested = TEST_UNTESTED,
5721 .probe = probe_jedec_29gl,
5722 .probe_timing = TIMING_ZERO,
5723 .block_erasers =
5724 {
5725 {
5726 .eraseblocks = {
5727 {8 * 1024, 8},
5728 {64 * 1024, 127},
5729 },
5730 .block_erase = erase_sector_jedec,
5731 }, {
5732 .eraseblocks = { {8 * 1024 * 1024, 1} },
5733 .block_erase = erase_chip_block_jedec,
5734 },
5735 },
5736 .write = write_jedec_1,
5737 .read = read_memmapped,
5738 .voltage = {2700, 3600},
5739 },
5740
5741 {
5742 .vendor = "Eon",
5743 .name = "EN29GL064(A)T",
5744 .bustype = BUS_PARALLEL,
5745 .manufacture_id = EON_ID,
5746 .model_id = EON_EN29GL064T,
5747 .total_size = 8192,
5748 .page_size = 128 * 1024, /* actual page size is 16 */
5749 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5750 .tested = TEST_UNTESTED,
5751 .probe = probe_jedec_29gl,
5752 .probe_timing = TIMING_ZERO,
5753 .block_erasers =
5754 {
5755 {
5756 .eraseblocks = {
5757 {64 * 1024, 127},
5758 {8 * 1024, 8},
5759 },
5760 .block_erase = erase_sector_jedec,
5761 }, {
5762 .eraseblocks = { {8 * 1024 * 1024, 1} },
5763 .block_erase = erase_chip_block_jedec,
5764 },
5765 },
5766 .write = write_jedec_1,
5767 .read = read_memmapped,
5768 .voltage = {2700, 3600},
5769 },
5770
5771 {
5772 .vendor = "Eon",
5773 .name = "EN29GL064H/L",
5774 .bustype = BUS_PARALLEL,
5775 .manufacture_id = EON_ID,
5776 .model_id = EON_EN29GL064HL,
5777 .total_size = 8192,
5778 .page_size = 128 * 1024, /* actual page size is 16 */
5779 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5780 .tested = TEST_UNTESTED,
5781 .probe = probe_jedec_29gl,
5782 .probe_timing = TIMING_ZERO,
5783 .block_erasers =
5784 {
5785 {
5786 .eraseblocks = { {64 * 1024, 128} },
5787 .block_erase = erase_sector_jedec,
5788 }, {
5789 .eraseblocks = { {8 * 1024 * 1024, 1} },
5790 .block_erase = erase_chip_block_jedec,
5791 },
5792 },
5793 .write = write_jedec_1,
5794 .read = read_memmapped,
5795 .voltage = {2700, 3600},
5796 },
5797
5798 {
5799 .vendor = "Eon",
5800 .name = "EN29GL128",
5801 .bustype = BUS_PARALLEL,
5802 .manufacture_id = EON_ID,
5803 .model_id = EON_EN29GL128HL,
5804 .total_size = 16384,
5805 .page_size = 128 * 1024, /* actual page size is 16 */
5806 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5807 .tested = TEST_UNTESTED,
5808 .probe = probe_jedec_29gl,
5809 .probe_timing = TIMING_ZERO,
5810 .block_erasers =
5811 {
5812 {
5813 .eraseblocks = { {128 * 1024, 128} },
5814 .block_erase = erase_sector_jedec,
5815 }, {
5816 .eraseblocks = { {16 * 1024 * 1024, 1} },
5817 .block_erase = erase_chip_block_jedec,
5818 },
5819 },
5820 .write = write_jedec_1,
5821 .read = read_memmapped,
5822 .voltage = {2700, 3600},
5823 },
5824
5825 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005826 .vendor = "Eon",
5827 .name = "EN29LV040(A)",
5828 .bustype = BUS_PARALLEL,
5829 .manufacture_id = EON_ID,
5830 .model_id = EON_EN29LV040,
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005831 .total_size = 512,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005832 .page_size = 4 * 1024,
5833 .tested = TEST_OK_PREW,
5834 .probe = probe_jedec,
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005835 .probe_timing = TIMING_ZERO,
5836 .block_erasers =
5837 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00005838 {
5839 .eraseblocks = { {64 * 1024, 8} },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005840 .block_erase = erase_sector_jedec,
5841 },
5842 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00005843 .eraseblocks = { {512 * 1024, 1} },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005844 .block_erase = erase_chip_block_jedec,
5845 },
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005846 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005847 .write = write_jedec_1,
5848 .read = read_memmapped,
5849 .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R and 55R, others 2.7-3.6V */
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005850 },
5851
5852 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005853 .vendor = "Eon",
5854 .name = "EN29LV640B",
5855 .bustype = BUS_PARALLEL,
5856 .manufacture_id = EON_ID,
5857 .model_id = EON_EN29LV640B,
5858 .total_size = 8192,
5859 .page_size = 8192,
5860 .feature_bits = FEATURE_ADDR_SHIFTED,
5861 .tested = TEST_OK_PREW,
5862 .probe = probe_en29lv640b,
5863 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005864 .block_erasers =
5865 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00005866 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005867 .eraseblocks = {
5868 {8 * 1024, 8},
5869 {64 * 1024, 127},
5870 },
5871 .block_erase = erase_block_jedec,
Stefan Tauner0be072c2016-03-13 15:16:30 +00005872 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005873 .eraseblocks = { {8 * 1024 * 1024, 1} },
5874 .block_erase = erase_chip_block_jedec,
5875 },
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005876 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005877 .write = write_en29lv640b,
5878 .read = read_memmapped,
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005879 .voltage = {2700, 3600},
5880 },
5881
5882 {
Jakob Petersson0cf3e122019-02-18 01:55:43 +01005883 .vendor = "Fudan",
5884 .name = "FM25F005",
5885 .bustype = BUS_SPI,
5886 .manufacture_id = FUDAN_ID_NOPREFIX,
5887 .model_id = FUDAN_FM25F005,
5888 .total_size = 64,
5889 .page_size = 256,
5890 /* OTP: 256B total; enter 0x3A */
5891 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5892 .tested = TEST_UNTESTED,
5893 .probe = probe_spi_rdid,
5894 .probe_timing = TIMING_ZERO,
5895 .block_erasers = {
5896 {
5897 .eraseblocks = { {4 * 1024, 16} },
5898 .block_erase = spi_block_erase_20,
5899 }, {
5900 .eraseblocks = { {32 * 1024, 2} },
5901 .block_erase = spi_block_erase_52,
5902 }, {
5903 .eraseblocks = { {64 * 1024, 1} },
5904 .block_erase = spi_block_erase_d8,
5905 }, {
5906 .eraseblocks = { {64 * 1024, 1} },
5907 .block_erase = spi_block_erase_60,
5908 }, {
5909 .eraseblocks = { {64 * 1024, 1} },
5910 .block_erase = spi_block_erase_c7,
5911 }
5912 },
5913 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
5914 .unlock = spi_disable_blockprotect_bp2_srwd,
5915 .write = spi_chip_write_256,
5916 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
5917 .voltage = {2700, 3600}, /* 2.3-2.7V acceptable results in lower performance */
5918 },
5919
5920 {
5921 .vendor = "Fudan",
5922 .name = "FM25F01",
5923 .bustype = BUS_SPI,
5924 .manufacture_id = FUDAN_ID_NOPREFIX,
5925 .model_id = FUDAN_FM25F01,
5926 .total_size = 128,
5927 .page_size = 256,
5928 /* OTP: 256B total; enter 0x3A */
5929 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5930 .tested = TEST_UNTESTED,
5931 .probe = probe_spi_rdid,
5932 .probe_timing = TIMING_ZERO,
5933 .block_erasers = {
5934 {
5935 .eraseblocks = { {4 * 1024, 32} },
5936 .block_erase = spi_block_erase_20,
5937 }, {
5938 .eraseblocks = { {32 * 1024, 4} },
5939 .block_erase = spi_block_erase_52,
5940 }, {
5941 .eraseblocks = { {64 * 1024, 2} },
5942 .block_erase = spi_block_erase_d8,
5943 }, {
5944 .eraseblocks = { {128 * 1024, 1} },
5945 .block_erase = spi_block_erase_60,
5946 }, {
5947 .eraseblocks = { {128 * 1024, 1} },
5948 .block_erase = spi_block_erase_c7,
5949 }
5950 },
5951 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
5952 .unlock = spi_disable_blockprotect_bp2_srwd,
5953 .write = spi_chip_write_256,
5954 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
5955 .voltage = {2700, 3600}, /* 2.3-2.7V acceptable results in lower performance */
5956 },
5957
5958 {
5959 .vendor = "Fudan",
5960 .name = "FM25F02(A)",
5961 .bustype = BUS_SPI,
5962 .manufacture_id = FUDAN_ID_NOPREFIX,
5963 .model_id = FUDAN_FM25F02,
5964 .total_size = 256,
5965 .page_size = 256,
5966 /* OTP: 256B total; enter 0x3A, (A version only:) read ID 0x4B */
5967 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5968 .tested = TEST_UNTESTED,
5969 .probe = probe_spi_rdid,
5970 .probe_timing = TIMING_ZERO,
5971 .block_erasers = {
5972 {
5973 .eraseblocks = { {4 * 1024, 64} },
5974 .block_erase = spi_block_erase_20,
5975 }, {
5976 .eraseblocks = { {32 * 1024, 8} },
5977 .block_erase = spi_block_erase_52,
5978 }, {
5979 .eraseblocks = { {64 * 1024, 4} },
5980 .block_erase = spi_block_erase_d8,
5981 }, {
5982 .eraseblocks = { {1024 * 256, 1} },
5983 .block_erase = spi_block_erase_60,
5984 }, {
5985 .eraseblocks = { {1024 * 256, 1} },
5986 .block_erase = spi_block_erase_c7,
5987 },
5988 },
5989 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
5990 .unlock = spi_disable_blockprotect_bp2_srwd,
5991 .write = spi_chip_write_256,
5992 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
5993 .voltage = {2700, 3600}, /* 2.3-2.7V acceptable results in lower performance */
5994 },
5995
5996 {
5997 .vendor = "Fudan",
5998 .name = "FM25F04(A)",
5999 .bustype = BUS_SPI,
6000 .manufacture_id = FUDAN_ID_NOPREFIX,
6001 .model_id = FUDAN_FM25F04,
6002 .total_size = 512,
6003 .page_size = 256,
6004 /* OTP: 256B total; enter 0x3A, (A version only:) read ID 0x4B */
6005 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6006 .tested = TEST_UNTESTED,
6007 .probe = probe_spi_rdid,
6008 .probe_timing = TIMING_ZERO,
6009 .block_erasers = {
6010 {
6011 .eraseblocks = { {4 * 1024, 128} },
6012 .block_erase = spi_block_erase_20,
6013 }, {
6014 .eraseblocks = { {32 * 1024, 16} },
6015 .block_erase = spi_block_erase_52,
6016 }, {
6017 .eraseblocks = { {64 * 1024, 8} },
6018 .block_erase = spi_block_erase_d8,
6019 }, {
6020 .eraseblocks = { {1024 * 512, 1} },
6021 .block_erase = spi_block_erase_60,
6022 }, {
6023 .eraseblocks = { {1024 * 512, 1} },
6024 .block_erase = spi_block_erase_c7,
6025 },
6026 },
6027 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
6028 .unlock = spi_disable_blockprotect_bp2_srwd,
6029 .write = spi_chip_write_256,
6030 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
6031 .voltage = {2700, 3600},
6032 },
6033
6034 {
6035 .vendor = "Fudan",
6036 .name = "FM25Q08",
6037 .bustype = BUS_SPI,
6038 .manufacture_id = FUDAN_ID_NOPREFIX,
6039 .model_id = FUDAN_FM25Q08,
6040 .total_size = 1024,
6041 .page_size = 256,
6042 /* supports SFDP */
6043 /* OTP: 1024B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
6044 /* QPI enable 0x38, disable 0xFF */
6045 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6046 .tested = TEST_UNTESTED,
6047 .probe = probe_spi_rdid,
6048 .probe_timing = TIMING_ZERO,
6049 .block_erasers = {
6050 {
6051 .eraseblocks = { {4 * 1024, 256} },
6052 .block_erase = spi_block_erase_20,
6053 }, {
6054 .eraseblocks = { {32 * 1024, 32} },
6055 .block_erase = spi_block_erase_52,
6056 }, {
6057 .eraseblocks = { {64 * 1024, 16} },
6058 .block_erase = spi_block_erase_d8,
6059 }, {
6060 .eraseblocks = { {1024 * 1024, 1} },
6061 .block_erase = spi_block_erase_60,
6062 }, {
6063 .eraseblocks = { {1024 * 1024, 1} },
6064 .block_erase = spi_block_erase_c7,
6065 },
6066 },
6067 .printlock = spi_prettyprint_status_register_bp2_tb_bpl, /* bit6 selects size of protected blocks; TODO: SR2 */
6068 .unlock = spi_disable_blockprotect_bp2_srwd,
6069 .write = spi_chip_write_256,
6070 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6071 .voltage = {2700, 3600},
6072 },
6073
6074 {
6075 .vendor = "Fudan",
6076 .name = "FM25Q16",
6077 .bustype = BUS_SPI,
6078 .manufacture_id = FUDAN_ID_NOPREFIX,
6079 .model_id = FUDAN_FM25Q16,
6080 .total_size = 2048,
6081 .page_size = 256,
6082 /* supports SFDP */
6083 /* OTP: 1024B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
6084 /* QPI enable 0x38, disable 0xFF */
6085 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6086 .tested = TEST_UNTESTED,
6087 .probe = probe_spi_rdid,
6088 .probe_timing = TIMING_ZERO,
6089 .block_erasers = {
6090 {
6091 .eraseblocks = { {4 * 1024, 512} },
6092 .block_erase = spi_block_erase_20,
6093 }, {
6094 .eraseblocks = { {32 * 1024, 64} },
6095 .block_erase = spi_block_erase_52,
6096 }, {
6097 .eraseblocks = { {64 * 1024, 32} },
6098 .block_erase = spi_block_erase_d8,
6099 }, {
6100 .eraseblocks = { {2 * 1024 * 1024, 1} },
6101 .block_erase = spi_block_erase_60,
6102 }, {
6103 .eraseblocks = { {2 * 1024 * 1024, 1} },
6104 .block_erase = spi_block_erase_c7,
6105 }
6106 },
6107 .printlock = spi_prettyprint_status_register_bp2_tb_bpl, /* bit6 selects size of protected blocks; TODO: SR2 */
6108 .unlock = spi_disable_blockprotect_bp2_srwd,
6109 .write = spi_chip_write_256,
6110 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6111 .voltage = {2700, 3600},
6112 },
6113
6114 {
6115 .vendor = "Fudan",
6116 .name = "FM25Q32",
6117 .bustype = BUS_SPI,
6118 .manufacture_id = FUDAN_ID_NOPREFIX,
6119 .model_id = FUDAN_FM25Q32,
6120 .total_size = 4096,
6121 .page_size = 256,
6122 /* supports SFDP */
6123 /* OTP: 1024B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
6124 /* QPI enable 0x38, disable 0xFF */
6125 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6126 .tested = TEST_UNTESTED,
6127 .probe = probe_spi_rdid,
6128 .probe_timing = TIMING_ZERO,
6129 .block_erasers = {
6130 {
6131 .eraseblocks = { {4 * 1024, 1024} },
6132 .block_erase = spi_block_erase_20,
6133 }, {
6134 .eraseblocks = { {32 * 1024, 128} },
6135 .block_erase = spi_block_erase_52,
6136 }, {
6137 .eraseblocks = { {64 * 1024, 64} },
6138 .block_erase = spi_block_erase_d8,
6139 }, {
6140 .eraseblocks = { {4 * 1024 * 1024, 1} },
6141 .block_erase = spi_block_erase_60,
6142 }, {
6143 .eraseblocks = { {4 * 1024 * 1024, 1} },
6144 .block_erase = spi_block_erase_c7,
6145 },
6146 },
6147 .printlock = spi_prettyprint_status_register_bp2_tb_bpl, /* bit6 selects size of protected blocks; TODO: SR2 */
6148 .unlock = spi_disable_blockprotect_bp2_srwd,
6149 .write = spi_chip_write_256,
6150 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6151 .voltage = {2700, 3600},
6152 },
6153
6154 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006155 .vendor = "Fujitsu",
6156 .name = "MBM29F004BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006157 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006158 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006159 .model_id = FUJITSU_MBM29F004BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006160 .total_size = 512,
6161 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006162 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006163 .tested = TEST_UNTESTED,
6164 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006165 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00006166 .block_erasers =
6167 {
6168 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006169 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00006170 {16 * 1024, 1},
6171 {8 * 1024, 2},
6172 {32 * 1024, 1},
6173 {64 * 1024, 7},
6174 },
Sean Nelson35727f72010-01-28 23:55:12 +00006175 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006176 }, {
6177 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006178 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006179 },
6180 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006181 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006182 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006183 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006184 },
6185
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006186 {
6187 .vendor = "Fujitsu",
6188 .name = "MBM29F004TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006189 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006190 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006191 .model_id = FUJITSU_MBM29F004TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006192 .total_size = 512,
6193 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006194 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006195 .tested = TEST_UNTESTED,
6196 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006197 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00006198 .block_erasers =
6199 {
6200 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006201 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00006202 {64 * 1024, 7},
6203 {32 * 1024, 1},
6204 {8 * 1024, 2},
6205 {16 * 1024, 1},
6206 },
Sean Nelson35727f72010-01-28 23:55:12 +00006207 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006208 }, {
6209 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006210 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006211 },
6212 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006213 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006214 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006215 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006216 },
6217
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006218 {
Sean Nelson35727f72010-01-28 23:55:12 +00006219 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006220 .vendor = "Fujitsu",
6221 .name = "MBM29F400BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006222 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006223 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006224 .model_id = FUJITSU_MBM29F400BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006225 .total_size = 512,
6226 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006227 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00006228 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006229 .probe = probe_jedec,
6230 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson6b11ad22009-12-23 17:05:59 +00006231 .block_erasers =
6232 {
6233 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006234 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00006235 {16 * 1024, 1},
6236 {8 * 1024, 2},
6237 {32 * 1024, 1},
6238 {64 * 1024, 7},
6239 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006240 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006241 }, {
6242 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006243 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006244 },
6245 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006246 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006247 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006248 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00006249 },
6250
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006251 {
6252 .vendor = "Fujitsu",
6253 .name = "MBM29F400TC",
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_MBM29F400TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006257 .total_size = 512,
6258 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006259 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006260 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006261 .probe = probe_jedec,
6262 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
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 {64 * 1024, 7},
6268 {32 * 1024, 1},
6269 {8 * 1024, 2},
6270 {16 * 1024, 1},
6271 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006272 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006273 }, {
6274 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006275 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006276 },
6277 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006278 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006279 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006280 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00006281 },
6282
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006283 {
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006284 .vendor = "Fujitsu",
6285 .name = "MBM29LV160BE",
6286 .bustype = BUS_PARALLEL,
6287 .manufacture_id = FUJITSU_ID,
6288 .model_id = FUJITSU_MBM29LV160BE,
6289 .total_size = 2 * 1024,
6290 .page_size = 0,
6291 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET,
6292 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006293 .probe = probe_jedec,
6294 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006295 .block_erasers =
6296 {
6297 {
6298 .eraseblocks = {
6299 {16 * 1024, 1},
6300 {8 * 1024, 2},
6301 {32 * 1024, 1},
6302 {64 * 1024, 31},
6303 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006304 .block_erase = erase_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006305 }, {
6306 .eraseblocks = { {2048 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006307 .block_erase = erase_chip_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006308 },
6309 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006310 .write = write_jedec_1, /* Supports a fast mode too */
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006311 .read = read_memmapped,
6312 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */
6313 },
6314
6315 {
6316 .vendor = "Fujitsu",
6317 .name = "MBM29LV160TE",
6318 .bustype = BUS_PARALLEL,
6319 .manufacture_id = FUJITSU_ID,
6320 .model_id = FUJITSU_MBM29LV160TE,
6321 .total_size = 2 * 1024,
6322 .page_size = 0,
6323 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET,
6324 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006325 .probe = probe_jedec,
6326 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006327 .block_erasers =
6328 {
6329 {
6330 .eraseblocks = {
6331 {64 * 1024, 31},
6332 {32 * 1024, 1},
6333 {8 * 1024, 2},
6334 {16 * 1024, 1},
6335 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006336 .block_erase = erase_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006337 }, {
6338 .eraseblocks = { {2048 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006339 .block_erase = erase_chip_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006340 },
6341 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006342 .write = write_jedec_1, /* Supports a fast mode too */
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006343 .read = read_memmapped,
6344 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */
6345 },
6346
6347 {
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006348 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006349 .name = "GD25B128B/GD25Q128B",
Roman Titov95edc892015-04-03 21:29:04 +00006350 .bustype = BUS_SPI,
6351 .manufacture_id = GIGADEVICE_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006352 .model_id = GIGADEVICE_GD25Q128,
6353 .total_size = 16384,
Roman Titov95edc892015-04-03 21:29:04 +00006354 .page_size = 256,
6355 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6356 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006357 .tested = TEST_OK_PREW,
Roman Titov95edc892015-04-03 21:29:04 +00006358 .probe = probe_spi_rdid,
6359 .probe_timing = TIMING_ZERO,
6360 .block_erasers =
6361 {
6362 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006363 .eraseblocks = { {4 * 1024, 4096} },
Roman Titov95edc892015-04-03 21:29:04 +00006364 .block_erase = spi_block_erase_20,
6365 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006366 .eraseblocks = { {32 * 1024, 512} },
Roman Titov95edc892015-04-03 21:29:04 +00006367 .block_erase = spi_block_erase_52,
6368 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006369 .eraseblocks = { {64 * 1024, 256} },
Roman Titov95edc892015-04-03 21:29:04 +00006370 .block_erase = spi_block_erase_d8,
6371 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006372 .eraseblocks = { {16 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00006373 .block_erase = spi_block_erase_60,
6374 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006375 .eraseblocks = { {16 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00006376 .block_erase = spi_block_erase_c7,
6377 }
6378 },
6379 .printlock = spi_prettyprint_status_register_bp4_srwd,
6380 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6381 .write = spi_chip_write_256,
6382 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Alan Green1f9cc7d2019-07-01 11:10:45 +10006383 .voltage = {2700, 3600},
Roman Titov95edc892015-04-03 21:29:04 +00006384 },
6385
6386 {
6387 .vendor = "GigaDevice",
Edward O'Callaghan981a3442021-06-22 11:16:55 +10006388 .name = "GD25LQ128C/GD25LQ128D/GD25LQ128E",
Roman Titov95edc892015-04-03 21:29:04 +00006389 .bustype = BUS_SPI,
6390 .manufacture_id = GIGADEVICE_ID,
Alan Green188127e2019-08-06 16:10:34 +10006391 .model_id = GIGADEVICE_GD25LQ128CD,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006392 .total_size = 16384,
Roman Titov95edc892015-04-03 21:29:04 +00006393 .page_size = 256,
6394 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Nico Huber3f3c1f32022-05-28 16:48:26 +02006395 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_WRSR_EXT2,
Sergii Dmytrukc74eac22022-10-06 18:17:58 +03006396 .tested = TEST_OK_PREWB,
Roman Titov95edc892015-04-03 21:29:04 +00006397 .probe = probe_spi_rdid,
6398 .probe_timing = TIMING_ZERO,
6399 .block_erasers =
6400 {
6401 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006402 .eraseblocks = { {4 * 1024, 4096} },
Roman Titov95edc892015-04-03 21:29:04 +00006403 .block_erase = spi_block_erase_20,
6404 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006405 .eraseblocks = { {32 * 1024, 512} },
Roman Titov95edc892015-04-03 21:29:04 +00006406 .block_erase = spi_block_erase_52,
6407 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006408 .eraseblocks = { {64 * 1024, 256} },
Roman Titov95edc892015-04-03 21:29:04 +00006409 .block_erase = spi_block_erase_d8,
6410 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006411 .eraseblocks = { {16 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00006412 .block_erase = spi_block_erase_60,
6413 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006414 .eraseblocks = { {16 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00006415 .block_erase = spi_block_erase_c7,
6416 }
6417 },
6418 .printlock = spi_prettyprint_status_register_bp4_srwd,
6419 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6420 .write = spi_chip_write_256,
6421 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6422 .voltage = {1695, 1950},
Nikolai Artemievc6c3f282021-10-20 23:34:15 +11006423 .reg_bits =
6424 {
6425 .srp = {STATUS1, 7, RW},
6426 .srl = {STATUS2, 0, RW},
6427 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
6428 .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */
6429 .sec = {STATUS1, 6, RW}, /* Called BP4 in datasheet, acts like SEC */
6430 .cmp = {STATUS2, 6, RW},
6431 },
Nikolai Artemievc9feb1b2021-10-21 01:35:13 +11006432 .decode_range = decode_range_spi25,
Roman Titov95edc892015-04-03 21:29:04 +00006433 },
6434
6435 {
6436 .vendor = "GigaDevice",
6437 .name = "GD25LQ16",
6438 .bustype = BUS_SPI,
6439 .manufacture_id = GIGADEVICE_ID,
6440 .model_id = GIGADEVICE_GD25LQ16,
6441 .total_size = 2048,
6442 .page_size = 256,
6443 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6444 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6445 .tested = TEST_UNTESTED,
6446 .probe = probe_spi_rdid,
6447 .probe_timing = TIMING_ZERO,
6448 .block_erasers =
6449 {
6450 {
6451 .eraseblocks = { {4 * 1024, 512} },
6452 .block_erase = spi_block_erase_20,
6453 }, {
6454 .eraseblocks = { {32 * 1024, 64} },
6455 .block_erase = spi_block_erase_52,
6456 }, {
6457 .eraseblocks = { {64 * 1024, 32} },
6458 .block_erase = spi_block_erase_d8,
6459 }, {
6460 .eraseblocks = { {2 * 1024 * 1024, 1} },
6461 .block_erase = spi_block_erase_60,
6462 }, {
6463 .eraseblocks = { {2 * 1024 * 1024, 1} },
6464 .block_erase = spi_block_erase_c7,
6465 }
6466 },
6467 .printlock = spi_prettyprint_status_register_bp4_srwd,
6468 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6469 .write = spi_chip_write_256,
6470 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6471 .voltage = {1695, 1950},
6472 },
6473
6474 {
6475 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006476 .name = "GD25LQ32",
6477 .bustype = BUS_SPI,
6478 .manufacture_id = GIGADEVICE_ID,
6479 .model_id = GIGADEVICE_GD25LQ32,
6480 .total_size = 4096,
6481 .page_size = 256,
6482 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6483 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6484 .tested = TEST_OK_PREW,
6485 .probe = probe_spi_rdid,
6486 .probe_timing = TIMING_ZERO,
6487 .block_erasers =
6488 {
6489 {
6490 .eraseblocks = { {4 * 1024, 1024} },
6491 .block_erase = spi_block_erase_20,
6492 }, {
6493 .eraseblocks = { {32 * 1024, 128} },
6494 .block_erase = spi_block_erase_52,
6495 }, {
6496 .eraseblocks = { {64 * 1024, 64} },
6497 .block_erase = spi_block_erase_d8,
6498 }, {
6499 .eraseblocks = { {4 * 1024 * 1024, 1} },
6500 .block_erase = spi_block_erase_60,
6501 }, {
6502 .eraseblocks = { {4 * 1024 * 1024, 1} },
6503 .block_erase = spi_block_erase_c7,
6504 }
6505 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006506 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006507 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6508 .write = spi_chip_write_256,
Roman Titov95edc892015-04-03 21:29:04 +00006509 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6510 .voltage = {1695, 1950},
6511 },
6512
6513 {
6514 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006515 .name = "GD25LQ40",
6516 .bustype = BUS_SPI,
6517 .manufacture_id = GIGADEVICE_ID,
6518 .model_id = GIGADEVICE_GD25LQ40,
6519 .total_size = 512,
6520 .page_size = 256,
6521 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6522 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6523 .tested = TEST_UNTESTED,
6524 .probe = probe_spi_rdid,
6525 .probe_timing = TIMING_ZERO,
6526 .block_erasers =
6527 {
6528 {
6529 .eraseblocks = { {4 * 1024, 128} },
6530 .block_erase = spi_block_erase_20,
6531 }, {
6532 .eraseblocks = { {32 * 1024, 16} },
6533 .block_erase = spi_block_erase_52,
6534 }, {
6535 .eraseblocks = { {64 * 1024, 8} },
6536 .block_erase = spi_block_erase_d8,
6537 }, {
6538 .eraseblocks = { {512 * 1024, 1} },
6539 .block_erase = spi_block_erase_60,
6540 }, {
6541 .eraseblocks = { {512 * 1024, 1} },
6542 .block_erase = spi_block_erase_c7,
6543 }
6544 },
6545 .printlock = spi_prettyprint_status_register_bp4_srwd,
6546 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6547 .write = spi_chip_write_256,
6548 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6549 .voltage = {1695, 1950},
6550 },
6551
6552 {
6553 .vendor = "GigaDevice",
Roman Titov95edc892015-04-03 21:29:04 +00006554 .name = "GD25LQ64(B)",
6555 .bustype = BUS_SPI,
6556 .manufacture_id = GIGADEVICE_ID,
6557 .model_id = GIGADEVICE_GD25LQ64,
6558 .total_size = 8192,
6559 .page_size = 256,
6560 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Nico Huber3f3c1f32022-05-28 16:48:26 +02006561 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_WRSR_EXT2,
Sergii Dmytrukc74eac22022-10-06 18:17:58 +03006562 .tested = TEST_OK_PREWB,
Roman Titov95edc892015-04-03 21:29:04 +00006563 .probe = probe_spi_rdid,
6564 .probe_timing = TIMING_ZERO,
6565 .block_erasers =
6566 {
6567 {
6568 .eraseblocks = { {4 * 1024, 2048} },
6569 .block_erase = spi_block_erase_20,
6570 }, {
6571 .eraseblocks = { {32 * 1024, 256} },
6572 .block_erase = spi_block_erase_52,
6573 }, {
6574 .eraseblocks = { {64 * 1024, 128} },
6575 .block_erase = spi_block_erase_d8,
6576 }, {
6577 .eraseblocks = { {8 * 1024 * 1024, 1} },
6578 .block_erase = spi_block_erase_60,
6579 }, {
6580 .eraseblocks = { {8 * 1024 * 1024, 1} },
6581 .block_erase = spi_block_erase_c7,
6582 }
6583 },
6584 .printlock = spi_prettyprint_status_register_bp4_srwd,
6585 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6586 .write = spi_chip_write_256,
6587 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6588 .voltage = {1695, 1950},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +11006589 .reg_bits =
6590 {
6591 .srp = {STATUS1, 7, RW},
6592 .srl = {STATUS2, 0, RW},
6593 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
6594 .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */
6595 .sec = {STATUS1, 6, RW}, /* Called BP4 in datasheet, acts like SEC */
6596 .cmp = {STATUS2, 6, RW},
6597 },
6598 .decode_range = decode_range_spi25,
Roman Titov95edc892015-04-03 21:29:04 +00006599 },
6600
6601 {
6602 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006603 .name = "GD25LQ80",
Roman Titov95edc892015-04-03 21:29:04 +00006604 .bustype = BUS_SPI,
6605 .manufacture_id = GIGADEVICE_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006606 .model_id = GIGADEVICE_GD25LQ80,
6607 .total_size = 1024,
Roman Titov95edc892015-04-03 21:29:04 +00006608 .page_size = 256,
6609 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6610 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6611 .tested = TEST_UNTESTED,
6612 .probe = probe_spi_rdid,
6613 .probe_timing = TIMING_ZERO,
6614 .block_erasers =
6615 {
6616 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006617 .eraseblocks = { {4 * 1024, 256} },
Roman Titov95edc892015-04-03 21:29:04 +00006618 .block_erase = spi_block_erase_20,
6619 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006620 .eraseblocks = { {32 * 1024, 32} },
Roman Titov95edc892015-04-03 21:29:04 +00006621 .block_erase = spi_block_erase_52,
6622 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006623 .eraseblocks = { {64 * 1024, 16} },
Roman Titov95edc892015-04-03 21:29:04 +00006624 .block_erase = spi_block_erase_d8,
6625 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006626 .eraseblocks = { {1 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00006627 .block_erase = spi_block_erase_60,
6628 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006629 .eraseblocks = { {1 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00006630 .block_erase = spi_block_erase_c7,
6631 }
6632 },
6633 .printlock = spi_prettyprint_status_register_bp4_srwd,
6634 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6635 .write = spi_chip_write_256,
6636 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6637 .voltage = {1695, 1950},
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006638 },
6639
6640 {
6641 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006642 .name = "GD25Q10",
6643 .bustype = BUS_SPI,
6644 .manufacture_id = GIGADEVICE_ID,
6645 .model_id = GIGADEVICE_GD25Q10,
6646 .total_size = 128,
6647 .page_size = 256,
6648 .feature_bits = FEATURE_WRSR_WREN,
6649 .tested = TEST_UNTESTED,
6650 .probe = probe_spi_rdid,
6651 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10006652 .block_erasers =
6653 {
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006654 {
6655 .eraseblocks = { {4 * 1024, 32} },
6656 .block_erase = spi_block_erase_20,
6657 }, {
6658 .eraseblocks = { {32 * 1024, 4} },
6659 .block_erase = spi_block_erase_52,
6660 }, {
6661 .eraseblocks = { {64 * 1024, 2} },
6662 .block_erase = spi_block_erase_d8,
6663 }, {
6664 .eraseblocks = { {128 * 1024, 1} },
6665 .block_erase = spi_block_erase_60,
6666 }, {
6667 .eraseblocks = { {128 * 1024, 1} },
6668 .block_erase = spi_block_erase_c7,
6669 }
6670 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006671 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006672 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6673 .write = spi_chip_write_256,
6674 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6675 .voltage = {2700, 3600},
6676 },
6677
6678 {
6679 .vendor = "GigaDevice",
Alan Green4f009122019-08-26 10:45:18 +10006680 .name = "GD25Q127C/GD25Q128C",
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006681 .bustype = BUS_SPI,
6682 .manufacture_id = GIGADEVICE_ID,
6683 .model_id = GIGADEVICE_GD25Q128,
6684 .total_size = 16384,
6685 .page_size = 256,
6686 /* OTP: 1536B total; read 0x48; write 0x42, erase 0x44 */
6687 /* QPI: enable 0x38, disable 0xFF */
Nikolai Artemievd32e18b2022-02-15 18:06:55 +11006688 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_WRSR2,
Sergii Dmytrukc74eac22022-10-06 18:17:58 +03006689 .tested = TEST_OK_PREWB,
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006690 .probe = probe_spi_rdid,
6691 .probe_timing = TIMING_ZERO,
6692 .block_erasers =
6693 {
6694 {
6695 .eraseblocks = { {4 * 1024, 4096} },
6696 .block_erase = spi_block_erase_20,
6697 }, {
6698 .eraseblocks = { {32 * 1024, 512} },
6699 .block_erase = spi_block_erase_52,
6700 }, {
6701 .eraseblocks = { {64 * 1024, 256} },
6702 .block_erase = spi_block_erase_d8,
6703 }, {
6704 .eraseblocks = { {16 * 1024 * 1024, 1} },
6705 .block_erase = spi_block_erase_60,
6706 }, {
6707 .eraseblocks = { {16 * 1024 * 1024, 1} },
6708 .block_erase = spi_block_erase_c7,
6709 }
6710 },
6711 /* TODO: 2nd status reg (read 0x35, write 0x31) and 3rd status reg (read 0x15, write 0x11) */
6712 .printlock = spi_prettyprint_status_register_bp4_srwd,
6713 .unlock = spi_disable_blockprotect_bp4_srwd,
6714 .write = spi_chip_write_256,
6715 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6716 .voltage = {2700, 3600},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +11006717 .reg_bits =
6718 {
6719 .srp = {STATUS1, 7, RW},
6720 .srl = {STATUS2, 0, RW},
6721 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
6722 .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */
6723 .sec = {STATUS1, 6, RW}, /* Called BP4 in datasheet, acts like SEC */
6724 .cmp = {STATUS2, 6, RW},
6725 },
6726 .decode_range = decode_range_spi25,
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006727 },
6728
6729 {
6730 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006731 .name = "GD25Q16(B)",
6732 .bustype = BUS_SPI,
6733 .manufacture_id = GIGADEVICE_ID,
6734 .model_id = GIGADEVICE_GD25Q16,
6735 .total_size = 2048,
6736 .page_size = 256,
6737 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
6738 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6739 .tested = TEST_OK_PREW,
6740 .probe = probe_spi_rdid,
6741 .probe_timing = TIMING_ZERO,
6742 .block_erasers =
6743 {
6744 {
6745 .eraseblocks = { {4 * 1024, 512} },
6746 .block_erase = spi_block_erase_20,
6747 }, {
6748 .eraseblocks = { {32 * 1024, 64} },
6749 .block_erase = spi_block_erase_52,
6750 }, {
6751 .eraseblocks = { {64 * 1024, 32} },
6752 .block_erase = spi_block_erase_d8,
6753 }, {
6754 .eraseblocks = { {2 * 1024 * 1024, 1} },
6755 .block_erase = spi_block_erase_60,
6756 }, {
6757 .eraseblocks = { {2 * 1024 * 1024, 1} },
6758 .block_erase = spi_block_erase_c7,
6759 }
6760 },
6761 .printlock = spi_prettyprint_status_register_bp4_srwd,
6762 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6763 .write = spi_chip_write_256,
6764 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6765 .voltage = {2700, 3600},
6766 },
6767
6768 {
6769 .vendor = "GigaDevice",
6770 .name = "GD25Q20(B)",
6771 .bustype = BUS_SPI,
6772 .manufacture_id = GIGADEVICE_ID,
6773 .model_id = GIGADEVICE_GD25Q20,
6774 .total_size = 256,
6775 .page_size = 256,
6776 .feature_bits = FEATURE_WRSR_WREN,
6777 .tested = TEST_OK_PREW,
6778 .probe = probe_spi_rdid,
6779 .probe_timing = TIMING_ZERO,
6780 .block_erasers =
6781 {
6782 {
6783 .eraseblocks = { {4 * 1024, 64} },
6784 .block_erase = spi_block_erase_20,
6785 }, {
6786 .eraseblocks = { {32 * 1024, 8} },
6787 .block_erase = spi_block_erase_52,
6788 }, {
6789 .eraseblocks = { {64 * 1024, 4} },
6790 .block_erase = spi_block_erase_d8,
6791 }, {
6792 .eraseblocks = { {256 * 1024, 1} },
6793 .block_erase = spi_block_erase_60,
6794 }, {
6795 .eraseblocks = { {256 * 1024, 1} },
6796 .block_erase = spi_block_erase_c7,
6797 }
6798 },
6799 .printlock = spi_prettyprint_status_register_bp4_srwd,
6800 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6801 .write = spi_chip_write_256,
6802 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6803 .voltage = {2700, 3600},
6804 },
6805
6806 {
6807 .vendor = "GigaDevice",
Nikolai Artemiev3ca0af02022-06-17 15:10:18 +10006808 .name = "GD25Q256D/GD25Q256E",
Alan Green86fc9cf2019-08-26 15:02:12 +10006809 .bustype = BUS_SPI,
6810 .manufacture_id = GIGADEVICE_ID,
6811 .model_id = GIGADEVICE_GD25Q256D,
6812 .total_size = 32768,
6813 .page_size = 256,
Nikolai Artemievb931e7a2022-12-05 13:06:14 +11006814 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA |
Nico Huber3f3c1f32022-05-28 16:48:26 +02006815 FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3,
Sergii Dmytrukc74eac22022-10-06 18:17:58 +03006816 .tested = TEST_OK_PREWB,
Alan Green86fc9cf2019-08-26 15:02:12 +10006817 .probe = probe_spi_rdid,
6818 .probe_timing = TIMING_ZERO,
6819 .block_erasers =
6820 {
6821 {
6822 .eraseblocks = { {4 * 1024, 8192} },
Nico Huber5374dc32019-10-04 16:16:15 +02006823 .block_erase = spi_block_erase_21,
6824 }, {
6825 .eraseblocks = { {4 * 1024, 8192} },
Alan Green86fc9cf2019-08-26 15:02:12 +10006826 .block_erase = spi_block_erase_20,
6827 }, {
6828 .eraseblocks = { {32 * 1024, 1024} },
Nico Huber5374dc32019-10-04 16:16:15 +02006829 .block_erase = spi_block_erase_5c,
6830 }, {
6831 .eraseblocks = { {32 * 1024, 1024} },
Alan Green86fc9cf2019-08-26 15:02:12 +10006832 .block_erase = spi_block_erase_52,
6833 }, {
6834 .eraseblocks = { {64 * 1024, 512} },
Nico Huber5374dc32019-10-04 16:16:15 +02006835 .block_erase = spi_block_erase_dc,
6836 }, {
6837 .eraseblocks = { {64 * 1024, 512} },
Alan Green86fc9cf2019-08-26 15:02:12 +10006838 .block_erase = spi_block_erase_d8,
6839 }, {
6840 .eraseblocks = { {32 * 1024 * 1024, 1} },
6841 .block_erase = spi_block_erase_60,
6842 }, {
6843 .eraseblocks = { {32 * 1024 * 1024, 1} },
6844 .block_erase = spi_block_erase_c7,
6845 }
6846 },
6847 .printlock = spi_prettyprint_status_register_bp3_srwd,
6848 .unlock = spi_disable_blockprotect,
6849 .write = spi_chip_write_256,
6850 .read = spi_chip_read,
6851 .voltage = {2700, 3600},
Nikolai Artemievc6c3f282021-10-20 23:34:15 +11006852 .reg_bits =
6853 {
6854 .srp = {STATUS1, 7, RW},
6855 .srl = {STATUS2, 6, RW},
6856 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}},
6857 .tb = {STATUS1, 6, RW},
6858 },
Nikolai Artemievc9feb1b2021-10-21 01:35:13 +11006859 .decode_range = decode_range_spi25,
Alan Green86fc9cf2019-08-26 15:02:12 +10006860 },
6861
6862 {
6863 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006864 .name = "GD25Q32(B)",
6865 .bustype = BUS_SPI,
6866 .manufacture_id = GIGADEVICE_ID,
6867 .model_id = GIGADEVICE_GD25Q32,
6868 .total_size = 4096,
6869 .page_size = 256,
6870 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Nikolai Artemiev9de3f872021-10-20 22:32:25 +11006871 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_WRSR2,
Sergii Dmytrukc74eac22022-10-06 18:17:58 +03006872 .tested = TEST_OK_PREWB,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006873 .probe = probe_spi_rdid,
6874 .probe_timing = TIMING_ZERO,
6875 .block_erasers =
6876 {
6877 {
6878 .eraseblocks = { {4 * 1024, 1024} },
6879 .block_erase = spi_block_erase_20,
6880 }, {
6881 .eraseblocks = { {32 * 1024, 128} },
6882 .block_erase = spi_block_erase_52,
6883 }, {
6884 .eraseblocks = { {64 * 1024, 64} },
6885 .block_erase = spi_block_erase_d8,
6886 }, {
6887 .eraseblocks = { {4 * 1024 * 1024, 1} },
6888 .block_erase = spi_block_erase_60,
6889 }, {
6890 .eraseblocks = { {4 * 1024 * 1024, 1} },
6891 .block_erase = spi_block_erase_c7,
6892 }
6893 },
6894 .printlock = spi_prettyprint_status_register_bp4_srwd,
6895 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6896 .write = spi_chip_write_256,
6897 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6898 .voltage = {2700, 3600},
Nikolai Artemievc6c3f282021-10-20 23:34:15 +11006899 .reg_bits =
6900 {
6901 .srp = {STATUS1, 7, RW},
6902 .srl = {STATUS2, 0, RW},
6903 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
6904 .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */
6905 .sec = {STATUS1, 6, RW}, /* Called BP4 in datasheet, acts like SEC */
6906 .cmp = {STATUS2, 6, RW},
6907 },
Nikolai Artemievc9feb1b2021-10-21 01:35:13 +11006908 .decode_range = decode_range_spi25,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006909 },
6910
6911 {
6912 .vendor = "GigaDevice",
6913 .name = "GD25Q40(B)",
6914 .bustype = BUS_SPI,
6915 .manufacture_id = GIGADEVICE_ID,
6916 .model_id = GIGADEVICE_GD25Q40,
6917 .total_size = 512,
6918 .page_size = 256,
6919 .feature_bits = FEATURE_WRSR_WREN,
Simon Buhrow551664c2022-03-09 16:09:08 +01006920 .tested = TEST_OK_PREW,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006921 .probe = probe_spi_rdid,
6922 .probe_timing = TIMING_ZERO,
6923 .block_erasers =
6924 {
6925 {
6926 .eraseblocks = { {4 * 1024, 128} },
6927 .block_erase = spi_block_erase_20,
6928 }, {
6929 .eraseblocks = { {32 * 1024, 16} },
6930 .block_erase = spi_block_erase_52,
6931 }, {
6932 .eraseblocks = { {64 * 1024, 8} },
6933 .block_erase = spi_block_erase_d8,
6934 }, {
6935 .eraseblocks = { {512 * 1024, 1} },
6936 .block_erase = spi_block_erase_60,
6937 }, {
6938 .eraseblocks = { {512 * 1024, 1} },
6939 .block_erase = spi_block_erase_c7,
6940 }
6941 },
6942 .printlock = spi_prettyprint_status_register_bp4_srwd,
6943 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6944 .write = spi_chip_write_256,
6945 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6946 .voltage = {2700, 3600},
6947 },
6948
6949 {
6950 .vendor = "GigaDevice",
6951 .name = "GD25Q512",
6952 .bustype = BUS_SPI,
6953 .manufacture_id = GIGADEVICE_ID,
6954 .model_id = GIGADEVICE_GD25Q512,
6955 .total_size = 64,
6956 .page_size = 256,
6957 .feature_bits = FEATURE_WRSR_WREN,
6958 .tested = TEST_OK_PREW,
6959 .probe = probe_spi_rdid,
6960 .probe_timing = TIMING_ZERO,
6961 .block_erasers =
6962 {
6963 {
6964 .eraseblocks = { {4 * 1024, 16} },
6965 .block_erase = spi_block_erase_20,
6966 }, {
6967 .eraseblocks = { {32 * 1024, 2} },
6968 .block_erase = spi_block_erase_52,
6969 }, {
6970 .eraseblocks = { {64 * 1024, 1} },
6971 .block_erase = spi_block_erase_60,
6972 }, {
6973 .eraseblocks = { {64 * 1024, 1} },
6974 .block_erase = spi_block_erase_c7,
6975 }
6976 },
6977 .printlock = spi_prettyprint_status_register_bp4_srwd,
6978 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6979 .write = spi_chip_write_256,
6980 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6981 .voltage = {2700, 3600},
6982 },
6983
6984 {
6985 .vendor = "GigaDevice",
6986 .name = "GD25Q64(B)",
6987 .bustype = BUS_SPI,
6988 .manufacture_id = GIGADEVICE_ID,
6989 .model_id = GIGADEVICE_GD25Q64,
6990 .total_size = 8192,
6991 .page_size = 256,
6992 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Nikolai Artemievd32e18b2022-02-15 18:06:55 +11006993 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_WRSR2,
Sergii Dmytrukc74eac22022-10-06 18:17:58 +03006994 .tested = TEST_OK_PREWB,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006995 .probe = probe_spi_rdid,
6996 .probe_timing = TIMING_ZERO,
6997 .block_erasers =
6998 {
6999 {
7000 .eraseblocks = { {4 * 1024, 2048} },
7001 .block_erase = spi_block_erase_20,
7002 }, {
7003 .eraseblocks = { {32 * 1024, 256} },
7004 .block_erase = spi_block_erase_52,
7005 }, {
7006 .eraseblocks = { {64 * 1024, 128} },
7007 .block_erase = spi_block_erase_d8,
7008 }, {
7009 .eraseblocks = { {8 * 1024 * 1024, 1} },
7010 .block_erase = spi_block_erase_60,
7011 }, {
7012 .eraseblocks = { {8 * 1024 * 1024, 1} },
7013 .block_erase = spi_block_erase_c7,
7014 }
7015 },
7016 .printlock = spi_prettyprint_status_register_bp4_srwd,
7017 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7018 .write = spi_chip_write_256,
7019 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7020 .voltage = {2700, 3600},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +11007021 .reg_bits =
7022 {
7023 .srp = {STATUS1, 7, RW},
7024 .srl = {STATUS2, 0, RW},
7025 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
7026 .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */
7027 .sec = {STATUS1, 6, RW}, /* Called BP4 in datasheet, acts like SEC */
7028 .cmp = {STATUS2, 6, RW},
7029 },
7030 .decode_range = decode_range_spi25,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007031 },
7032
7033 {
7034 .vendor = "GigaDevice",
7035 .name = "GD25Q80(B)",
7036 .bustype = BUS_SPI,
7037 .manufacture_id = GIGADEVICE_ID,
7038 .model_id = GIGADEVICE_GD25Q80,
7039 .total_size = 1024,
7040 .page_size = 256,
7041 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
7042 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7043 .tested = TEST_OK_PREW,
7044 .probe = probe_spi_rdid,
7045 .probe_timing = TIMING_ZERO,
7046 .block_erasers =
7047 {
7048 {
7049 .eraseblocks = { {4 * 1024, 256} },
7050 .block_erase = spi_block_erase_20,
7051 }, {
7052 .eraseblocks = { {32 * 1024, 32} },
7053 .block_erase = spi_block_erase_52,
7054 }, {
7055 .eraseblocks = { {64 * 1024, 16} },
7056 .block_erase = spi_block_erase_d8,
7057 }, {
7058 .eraseblocks = { {1024 * 1024, 1} },
7059 .block_erase = spi_block_erase_60,
7060 }, {
7061 .eraseblocks = { {1024 * 1024, 1} },
7062 .block_erase = spi_block_erase_c7,
7063 }
7064 },
7065 .printlock = spi_prettyprint_status_register_bp4_srwd,
7066 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7067 .write = spi_chip_write_256,
7068 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7069 .voltage = {2700, 3600},
7070 },
7071
7072 {
7073 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00007074 .name = "GD25T80",
7075 .bustype = BUS_SPI,
7076 .manufacture_id = GIGADEVICE_ID,
7077 .model_id = GIGADEVICE_GD25T80,
7078 .total_size = 1024,
7079 .page_size = 256,
7080 /* OTP: 256B total; enter 0x3A */
7081 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7082 .tested = TEST_UNTESTED,
7083 .probe = probe_spi_rdid,
7084 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10007085 .block_erasers =
7086 {
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00007087 {
7088 .eraseblocks = { {4 * 1024, 256} },
7089 .block_erase = spi_block_erase_20,
7090 }, {
7091 .eraseblocks = { {64 * 1024, 16} },
7092 .block_erase = spi_block_erase_52,
7093 }, {
7094 .eraseblocks = { {64 * 1024, 16} },
7095 .block_erase = spi_block_erase_d8,
7096 }, {
7097 .eraseblocks = { {1024 * 1024, 1} },
7098 .block_erase = spi_block_erase_60,
7099 }, {
7100 .eraseblocks = { {1024 * 1024, 1} },
7101 .block_erase = spi_block_erase_c7,
7102 }
7103 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00007104 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00007105 .unlock = spi_disable_blockprotect,
7106 .write = spi_chip_write_256,
7107 .read = spi_chip_read,
Stefan Tauner352e50b2013-02-22 15:58:45 +00007108 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00007109 },
7110
7111 {
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007112 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10007113 .name = "GD25VQ16C",
7114 .bustype = BUS_SPI,
7115 .manufacture_id = GIGADEVICE_ID,
7116 .model_id = GIGADEVICE_GD25VQ16C,
7117 .total_size = 2 * 1024,
7118 .page_size = 256,
7119 /* Supports SFDP */
7120 /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */
7121 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7122 .tested = TEST_UNTESTED,
7123 .probe = probe_spi_rdid,
7124 .probe_timing = TIMING_ZERO,
7125 .block_erasers =
7126 {
7127 {
7128 .eraseblocks = { { 4 * 1024, 512} },
7129 .block_erase = spi_block_erase_20,
7130 }, {
7131 .eraseblocks = { { 32 * 1024, 64} },
7132 .block_erase = spi_block_erase_52,
7133 }, {
7134 .eraseblocks = { { 64 * 1024, 32} },
7135 .block_erase = spi_block_erase_d8,
7136 }, {
7137 .eraseblocks = { {2 * 1024 * 1024, 1} },
7138 .block_erase = spi_block_erase_60,
7139 }, {
7140 .eraseblocks = { {2 * 1024 * 1024, 1} },
7141 .block_erase = spi_block_erase_c7,
7142 }
7143 },
7144 .printlock = spi_prettyprint_status_register_bp4_srwd,
7145 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7146 .write = spi_chip_write_256,
7147 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7148 .voltage = {2300, 3600},
7149 },
7150
7151 {
7152 .vendor = "GigaDevice",
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007153 .name = "GD25VQ21B",
7154 .bustype = BUS_SPI,
7155 .manufacture_id = GIGADEVICE_ID,
7156 .model_id = GIGADEVICE_GD25VQ21B,
7157 .total_size = 256,
7158 .page_size = 256,
7159 /* OTP: 1536B total; read 0x48, write 0x42, erase 0x44 */
7160 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7161 .tested = TEST_UNTESTED,
7162 .probe = probe_spi_rdid,
7163 .probe_timing = TIMING_ZERO,
7164 .block_erasers =
7165 {
7166 {
7167 .eraseblocks = { { 4 * 1024, 64} },
7168 .block_erase = spi_block_erase_20,
7169 }, {
7170 .eraseblocks = { { 32 * 1024, 8} },
7171 .block_erase = spi_block_erase_52,
7172 }, {
7173 .eraseblocks = { { 64 * 1024, 4} },
7174 .block_erase = spi_block_erase_d8,
7175 }, {
7176 .eraseblocks = { {256 * 1024, 1} },
7177 .block_erase = spi_block_erase_60,
7178 }, {
7179 .eraseblocks = { {256 * 1024, 1} },
7180 .block_erase = spi_block_erase_c7,
7181 }
7182 },
7183 .printlock = spi_prettyprint_status_register_bp4_srwd,
7184 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7185 .write = spi_chip_write_256,
7186 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7187 .voltage = {2300, 3600},
7188 },
7189
7190 {
7191 .vendor = "GigaDevice",
7192 .name = "GD25VQ40C",
7193 .bustype = BUS_SPI,
7194 .manufacture_id = GIGADEVICE_ID,
7195 .model_id = GIGADEVICE_GD25VQ41B,
7196 .total_size = 512,
7197 .page_size = 256,
7198 /* Supports SFDP */
7199 /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */
7200 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7201 .tested = TEST_UNTESTED,
7202 .probe = probe_spi_rdid,
7203 .probe_timing = TIMING_ZERO,
7204 .block_erasers =
7205 {
7206 {
7207 .eraseblocks = { { 4 * 1024, 128} },
7208 .block_erase = spi_block_erase_20,
7209 }, {
7210 .eraseblocks = { { 32 * 1024, 16} },
7211 .block_erase = spi_block_erase_52,
7212 }, {
7213 .eraseblocks = { { 64 * 1024, 8} },
7214 .block_erase = spi_block_erase_d8,
7215 }, {
7216 .eraseblocks = { {512 * 1024, 1} },
7217 .block_erase = spi_block_erase_60,
7218 }, {
7219 .eraseblocks = { {512 * 1024, 1} },
7220 .block_erase = spi_block_erase_c7,
7221 }
7222 },
7223 .printlock = spi_prettyprint_status_register_bp4_srwd,
7224 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7225 .write = spi_chip_write_256,
7226 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7227 .voltage = {2300, 3600},
7228 },
7229
7230 {
7231 .vendor = "GigaDevice",
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007232 .name = "GD25VQ41B",
7233 .bustype = BUS_SPI,
7234 .manufacture_id = GIGADEVICE_ID,
7235 .model_id = GIGADEVICE_GD25VQ41B,
7236 .total_size = 512,
7237 .page_size = 256,
7238 /* OTP: 1536B total; read 0x48, write 0x42, erase 0x44 */
7239 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner0be072c2016-03-13 15:16:30 +00007240 .tested = TEST_OK_PREW,
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007241 .probe = probe_spi_rdid,
7242 .probe_timing = TIMING_ZERO,
Stefan Tauner0be072c2016-03-13 15:16:30 +00007243 .block_erasers =
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007244 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00007245 {
7246 .eraseblocks = { { 4 * 1024, 128} },
7247 .block_erase = spi_block_erase_20,
7248 }, {
7249 .eraseblocks = { { 32 * 1024, 16} },
7250 .block_erase = spi_block_erase_52,
7251 }, {
7252 .eraseblocks = { { 64 * 1024, 8} },
7253 .block_erase = spi_block_erase_d8,
7254 }, {
7255 .eraseblocks = { {512 * 1024, 1} },
7256 .block_erase = spi_block_erase_60,
7257 }, {
7258 .eraseblocks = { {512 * 1024, 1} },
7259 .block_erase = spi_block_erase_c7,
7260 }
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007261 },
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007262 .printlock = spi_prettyprint_status_register_bp4_srwd,
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007263 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7264 .write = spi_chip_write_256,
7265 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7266 .voltage = {2300, 3600},
7267 },
7268
7269 {
7270 .vendor = "GigaDevice",
7271 .name = "GD25VQ80C",
7272 .bustype = BUS_SPI,
7273 .manufacture_id = GIGADEVICE_ID,
7274 .model_id = GIGADEVICE_GD25VQ80C,
7275 .total_size = 1024,
7276 .page_size = 256,
7277 /* Supports SFDP */
7278 /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */
7279 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7280 .tested = TEST_UNTESTED,
7281 .probe = probe_spi_rdid,
7282 .probe_timing = TIMING_ZERO,
7283 .block_erasers =
7284 {
7285 {
7286 .eraseblocks = { { 4 * 1024, 256} },
7287 .block_erase = spi_block_erase_20,
7288 }, {
7289 .eraseblocks = { { 32 * 1024, 32} },
7290 .block_erase = spi_block_erase_52,
7291 }, {
7292 .eraseblocks = { { 64 * 1024, 16} },
7293 .block_erase = spi_block_erase_d8,
7294 }, {
7295 .eraseblocks = { {1024 * 1024, 1} },
7296 .block_erase = spi_block_erase_60,
7297 }, {
7298 .eraseblocks = { {1024 * 1024, 1} },
7299 .block_erase = spi_block_erase_c7,
7300 }
7301 },
7302 .printlock = spi_prettyprint_status_register_bp4_srwd,
7303 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7304 .write = spi_chip_write_256,
7305 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7306 .voltage = {2300, 3600},
7307 },
7308
7309 {
Dino Li3214f582020-03-25 17:39:53 +08007310 .vendor = "GigaDevice",
7311 .name = "GD25WQ80E",
7312 .bustype = BUS_SPI,
7313 .manufacture_id = GIGADEVICE_ID,
7314 .model_id = GIGADEVICE_GD25WQ80E,
7315 .total_size = 1024,
7316 .page_size = 256,
7317 .feature_bits = FEATURE_WRSR_WREN,
7318 .tested = TEST_OK_PREW,
7319 .probe = probe_spi_rdid,
7320 .probe_timing = TIMING_ZERO,
7321 .block_erasers =
7322 {
7323 {
7324 .eraseblocks = { {4 * 1024, 256} },
7325 .block_erase = spi_block_erase_20,
7326 }, {
7327 .eraseblocks = { {32 * 1024, 32} },
7328 .block_erase = spi_block_erase_52,
7329 }, {
7330 .eraseblocks = { {64 * 1024, 16} },
7331 .block_erase = spi_block_erase_d8,
7332 }, {
7333 .eraseblocks = { {1 * 1024 * 1024, 1} },
7334 .block_erase = spi_block_erase_60,
7335 }, {
7336 .eraseblocks = { {1 * 1024 * 1024, 1} },
7337 .block_erase = spi_block_erase_c7,
7338 }
7339 },
7340 .printlock = spi_prettyprint_status_register_bp4_srwd,
7341 .unlock = spi_disable_blockprotect_bp4_srwd,
7342 .write = spi_chip_write_256,
7343 .read = spi_chip_read,
7344 .voltage = {1650, 3600},
7345 },
7346
7347 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007348 .vendor = "Hyundai",
7349 .name = "HY29F002B",
7350 .bustype = BUS_PARALLEL,
7351 .manufacture_id = HYUNDAI_ID,
7352 .model_id = HYUNDAI_HY29F002B,
7353 .total_size = 256,
7354 .page_size = 256 * 1024,
7355 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007356 .tested = TEST_UNTESTED,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007357 .probe = probe_jedec,
7358 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007359 .block_erasers =
7360 {
7361 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007362 .eraseblocks = {
7363 {16 * 1024, 1},
7364 {8 * 1024, 2},
7365 {32 * 1024, 1},
7366 {64 * 1024, 3},
7367 },
7368 .block_erase = erase_sector_jedec,
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007369 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007370 .eraseblocks = { {256 * 1024, 1} },
7371 .block_erase = erase_chip_block_jedec,
7372 },
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007373 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10007374 .write = write_jedec_1,
7375 .read = read_memmapped,
7376 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007377 },
7378
7379 {
David Borgc96a8bd2010-06-21 16:12:22 +00007380 .vendor = "Hyundai",
7381 .name = "HY29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007382 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00007383 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007384 .model_id = HYUNDAI_HY29F002T,
David Borgc96a8bd2010-06-21 16:12:22 +00007385 .total_size = 256,
7386 .page_size = 256 * 1024,
7387 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007388 .tested = TEST_OK_PRE,
David Borgc96a8bd2010-06-21 16:12:22 +00007389 .probe = probe_jedec,
7390 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7391 .block_erasers =
7392 {
7393 {
7394 .eraseblocks = {
7395 {64 * 1024, 3},
7396 {32 * 1024, 1},
7397 {8 * 1024, 2},
7398 {16 * 1024, 1},
7399 },
7400 .block_erase = erase_sector_jedec,
7401 }, {
7402 .eraseblocks = { {256 * 1024, 1} },
7403 .block_erase = erase_chip_block_jedec,
7404 },
7405 },
7406 .write = write_jedec_1,
7407 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007408 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00007409 },
7410
7411 {
7412 .vendor = "Hyundai",
Joshua Roysf1324e02010-09-16 00:51:51 +00007413 .name = "HY29F040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007414 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00007415 .manufacture_id = HYUNDAI_ID,
7416 .model_id = HYUNDAI_HY29F040A,
7417 .total_size = 512,
7418 .page_size = 64 * 1024,
7419 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
7420 .tested = TEST_UNTESTED,
7421 .probe = probe_jedec,
7422 .probe_timing = TIMING_ZERO,
7423 .block_erasers =
7424 {
7425 {
7426 .eraseblocks = { {64 * 1024, 8} },
7427 .block_erase = erase_sector_jedec,
7428 }, {
7429 .eraseblocks = { {512 * 1024, 1} },
7430 .block_erase = erase_chip_block_jedec,
7431 },
7432 },
7433 .write = write_jedec_1,
7434 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007435 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00007436 },
7437
7438 {
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007439 .vendor = "ISSI",
Angel Pons2ef47f32018-09-30 16:47:30 +02007440 .name = "IS25LP064",
7441 .bustype = BUS_SPI,
7442 .manufacture_id = ISSI_ID_SPI,
7443 .model_id = ISSI_IS25LP064,
7444 .total_size = 8192,
7445 .page_size = 256,
7446 /* OTP: 1024B total; read 0x48; write 0x42 */
7447 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Simon Buhrow9bf829d2021-10-20 17:09:09 +02007448 .tested = TEST_OK_PREW,
Angel Pons2ef47f32018-09-30 16:47:30 +02007449 .probe = probe_spi_rdid,
7450 .probe_timing = TIMING_ZERO,
7451 .block_erasers =
7452 {
7453 {
7454 .eraseblocks = { {4 * 1024, 2048} },
7455 .block_erase = spi_block_erase_20,
7456 }, {
7457 .eraseblocks = { {4 * 1024, 2048} },
7458 .block_erase = spi_block_erase_d7,
7459 }, {
7460 .eraseblocks = { {32 * 1024, 256} },
7461 .block_erase = spi_block_erase_52,
7462 }, {
7463 .eraseblocks = { {64 * 1024, 128} },
7464 .block_erase = spi_block_erase_d8,
7465 }, {
7466 .eraseblocks = { {8 * 1024 * 1024, 1} },
7467 .block_erase = spi_block_erase_60,
7468 }, {
7469 .eraseblocks = { {8 * 1024 * 1024, 1} },
7470 .block_erase = spi_block_erase_c7,
7471 }
7472 },
7473 .unlock = spi_disable_blockprotect,
7474 .write = spi_chip_write_256,
7475 .read = spi_chip_read,
7476 .voltage = {2300, 3600},
7477 },
7478
7479 {
7480 .vendor = "ISSI",
David Hendricks3083ed92017-05-02 13:25:56 -07007481 .name = "IS25LP128",
7482 .bustype = BUS_SPI,
7483 .manufacture_id = ISSI_ID_SPI,
7484 .model_id = ISSI_IS25LP128,
7485 .total_size = 16384,
7486 .page_size = 256,
7487 /* OTP: 1024B total; read 0x48; write 0x42 */
7488 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7489 .tested = TEST_OK_PREW,
7490 .probe = probe_spi_rdid,
7491 .probe_timing = TIMING_ZERO,
7492 .block_erasers =
7493 {
7494 {
7495 .eraseblocks = { {4 * 1024, 4096} },
7496 .block_erase = spi_block_erase_20,
7497 }, {
7498 .eraseblocks = { {4 * 1024, 4096} },
7499 .block_erase = spi_block_erase_d7,
7500 }, {
7501 .eraseblocks = { {32 * 1024, 512} },
7502 .block_erase = spi_block_erase_52,
7503 }, {
7504 .eraseblocks = { {64 * 1024, 256} },
7505 .block_erase = spi_block_erase_d8,
7506 }, {
7507 .eraseblocks = { {16 * 1024 * 1024, 1} },
7508 .block_erase = spi_block_erase_60,
7509 }, {
7510 .eraseblocks = { {16 * 1024 * 1024, 1} },
7511 .block_erase = spi_block_erase_c7,
7512 }
7513 },
7514 .unlock = spi_disable_blockprotect,
7515 .write = spi_chip_write_256,
7516 .read = spi_chip_read,
7517 .voltage = {2300, 3600},
7518 },
7519
7520 {
7521 .vendor = "ISSI",
David Hendricks61818dc2018-10-28 01:02:21 +00007522 .name = "IS25LP256",
7523 .bustype = BUS_SPI,
7524 .manufacture_id = ISSI_ID_SPI,
7525 .model_id = ISSI_IS25LP256,
7526 .total_size = 32768,
7527 .page_size = 256,
7528 /* supports SFDP */
7529 /* OTP: 1024B total; read 0x68; write 0x62, erase 0x64, read ID 0x4B */
Nico Huberad55d5a2022-06-20 19:32:16 +02007530 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP |
7531 FEATURE_4BA | FEATURE_4BA_ENTER_EAR7 | FEATURE_4BA_EAR_1716,
David Hendricks61818dc2018-10-28 01:02:21 +00007532 .tested = TEST_OK_PREW,
7533 .probe = probe_spi_rdid,
7534 .probe_timing = TIMING_ZERO,
7535 .block_erasers =
7536 {
7537 {
7538 .eraseblocks = { {4 * 1024, 8192} },
7539 .block_erase = spi_block_erase_21,
7540 }, {
7541 .eraseblocks = { {4 * 1024, 8192} },
7542 .block_erase = spi_block_erase_20,
7543 /* could also use spi_block_erase_d7 */
7544 }, {
7545 .eraseblocks = { {32 * 1024, 1024} },
7546 .block_erase = spi_block_erase_5c,
7547 }, {
7548 .eraseblocks = { {32 * 1024, 1024} },
7549 .block_erase = spi_block_erase_52,
7550 }, {
7551 .eraseblocks = { {64 * 1024, 512} },
7552 .block_erase = spi_block_erase_dc,
7553 }, {
7554 .eraseblocks = { {64 * 1024, 512} },
7555 .block_erase = spi_block_erase_d8,
7556 }, {
7557 .eraseblocks = { {32 * 1024 * 1024, 1} },
7558 .block_erase = spi_block_erase_60,
7559 }, {
7560 .eraseblocks = { {32 * 1024 * 1024, 1} },
7561 .block_erase = spi_block_erase_c7,
7562 }
7563 },
7564 .unlock = spi_disable_blockprotect,
7565 .write = spi_chip_write_256,
7566 .read = spi_chip_read,
7567 .voltage = {2300, 3600},
7568 },
7569
7570 {
7571 .vendor = "ISSI",
Nico Huberb27b8d12018-10-02 20:46:21 +02007572 .name = "IS25WP032",
7573 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +10007574 .manufacture_id = ISSI_ID_SPI,
Nico Huberb27b8d12018-10-02 20:46:21 +02007575 .model_id = ISSI_IS25WP032,
7576 .total_size = 4096,
7577 .page_size = 256,
7578 /* OTP: 1024B total; read 0x48; write 0x42 */
7579 /* QPI enable 0x35, disable 0xF5 */
7580 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7581 .tested = TEST_UNTESTED,
7582 .probe = probe_spi_rdid,
7583 .probe_timing = TIMING_ZERO,
7584 .block_erasers =
7585 {
7586 {
7587 .eraseblocks = { {4 * 1024, 1024} },
7588 .block_erase = spi_block_erase_20,
7589 }, {
7590 .eraseblocks = { {4 * 1024, 1024} },
7591 .block_erase = spi_block_erase_d7,
7592 }, {
7593 .eraseblocks = { {32 * 1024, 128} },
7594 .block_erase = spi_block_erase_52,
7595 }, {
7596 .eraseblocks = { {64 * 1024, 64} },
7597 .block_erase = spi_block_erase_d8,
7598 }, {
7599 .eraseblocks = { {4 * 1024 * 1024, 1} },
7600 .block_erase = spi_block_erase_60,
7601 }, {
7602 .eraseblocks = { {4 * 1024 * 1024, 1} },
7603 .block_erase = spi_block_erase_c7,
7604 }
7605 },
7606 .unlock = spi_disable_blockprotect,
7607 .write = spi_chip_write_256,
7608 .read = spi_chip_read,
7609 .voltage = {1650, 1950},
7610 },
7611
7612 {
7613 .vendor = "ISSI",
7614 .name = "IS25WP064",
7615 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +10007616 .manufacture_id = ISSI_ID_SPI,
Nico Huberb27b8d12018-10-02 20:46:21 +02007617 .model_id = ISSI_IS25WP064,
7618 .total_size = 8192,
7619 .page_size = 256,
7620 /* OTP: 1024B total; read 0x48; write 0x42 */
7621 /* QPI enable 0x35, disable 0xF5 */
7622 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7623 .tested = TEST_OK_PREW,
7624 .probe = probe_spi_rdid,
7625 .probe_timing = TIMING_ZERO,
7626 .block_erasers =
7627 {
7628 {
7629 .eraseblocks = { {4 * 1024, 2048} },
7630 .block_erase = spi_block_erase_20,
7631 }, {
7632 .eraseblocks = { {4 * 1024, 2048} },
7633 .block_erase = spi_block_erase_d7,
7634 }, {
7635 .eraseblocks = { {32 * 1024, 256} },
7636 .block_erase = spi_block_erase_52,
7637 }, {
7638 .eraseblocks = { {64 * 1024, 128} },
7639 .block_erase = spi_block_erase_d8,
7640 }, {
7641 .eraseblocks = { {8 * 1024 * 1024, 1} },
7642 .block_erase = spi_block_erase_60,
7643 }, {
7644 .eraseblocks = { {8 * 1024 * 1024, 1} },
7645 .block_erase = spi_block_erase_c7,
7646 }
7647 },
7648 .unlock = spi_disable_blockprotect,
7649 .write = spi_chip_write_256,
7650 .read = spi_chip_read,
7651 .voltage = {1650, 1950},
7652 },
7653
7654 {
7655 .vendor = "ISSI",
David Hendricks3083ed92017-05-02 13:25:56 -07007656 .name = "IS25WP128",
7657 .bustype = BUS_SPI,
7658 .manufacture_id = ISSI_ID_SPI,
7659 .model_id = ISSI_IS25WP128,
7660 .total_size = 16384,
7661 .page_size = 256,
7662 /* OTP: 1024B total; read 0x48; write 0x42 */
Nico Huberb27b8d12018-10-02 20:46:21 +02007663 /* QPI enable 0x35, disable 0xF5 */
7664 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
David Hendricks3083ed92017-05-02 13:25:56 -07007665 .tested = TEST_OK_PREW,
7666 .probe = probe_spi_rdid,
7667 .probe_timing = TIMING_ZERO,
7668 .block_erasers =
7669 {
7670 {
7671 .eraseblocks = { {4 * 1024, 4096} },
7672 .block_erase = spi_block_erase_20,
7673 }, {
7674 .eraseblocks = { {4 * 1024, 4096} },
7675 .block_erase = spi_block_erase_d7,
7676 }, {
7677 .eraseblocks = { {32 * 1024, 512} },
7678 .block_erase = spi_block_erase_52,
7679 }, {
7680 .eraseblocks = { {64 * 1024, 256} },
7681 .block_erase = spi_block_erase_d8,
7682 }, {
7683 .eraseblocks = { {16 * 1024 * 1024, 1} },
7684 .block_erase = spi_block_erase_60,
7685 }, {
7686 .eraseblocks = { {16 * 1024 * 1024, 1} },
7687 .block_erase = spi_block_erase_c7,
7688 }
7689 },
7690 .unlock = spi_disable_blockprotect,
7691 .write = spi_chip_write_256,
7692 .read = spi_chip_read,
7693 .voltage = {1650, 1950},
7694 },
7695
7696 {
7697 .vendor = "ISSI",
David Hendricks61818dc2018-10-28 01:02:21 +00007698 .name = "IS25WP256",
7699 .bustype = BUS_SPI,
7700 .manufacture_id = ISSI_ID_SPI,
7701 .model_id = ISSI_IS25WP256,
7702 .total_size = 32768,
7703 .page_size = 256,
7704 /* supports SFDP */
7705 /* OTP: 1024B total; read 0x68; write 0x62, erase 0x64, read ID 0x4B */
Nico Huberad55d5a2022-06-20 19:32:16 +02007706 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP |
7707 FEATURE_4BA | FEATURE_4BA_ENTER_EAR7 | FEATURE_4BA_EAR_1716,
David Hendricks61818dc2018-10-28 01:02:21 +00007708 .tested = TEST_OK_PREW,
7709 .probe = probe_spi_rdid,
7710 .probe_timing = TIMING_ZERO,
7711 .block_erasers =
7712 {
7713 {
7714 .eraseblocks = { {4 * 1024, 8192} },
7715 .block_erase = spi_block_erase_21,
7716 }, {
7717 .eraseblocks = { {4 * 1024, 8192} },
7718 .block_erase = spi_block_erase_20,
7719 /* could also use spi_block_erase_d7 */
7720 }, {
7721 .eraseblocks = { {32 * 1024, 1024} },
7722 .block_erase = spi_block_erase_5c,
7723 }, {
7724 .eraseblocks = { {32 * 1024, 1024} },
7725 .block_erase = spi_block_erase_52,
7726 }, {
7727 .eraseblocks = { {64 * 1024, 512} },
7728 .block_erase = spi_block_erase_dc,
7729 }, {
7730 .eraseblocks = { {64 * 1024, 512} },
7731 .block_erase = spi_block_erase_d8,
7732 }, {
7733 .eraseblocks = { {32 * 1024 * 1024, 1} },
7734 .block_erase = spi_block_erase_60,
7735 }, {
7736 .eraseblocks = { {32 * 1024 * 1024, 1} },
7737 .block_erase = spi_block_erase_c7,
7738 }
7739 },
7740 .unlock = spi_disable_blockprotect,
7741 .write = spi_chip_write_256,
7742 .read = spi_chip_read,
7743 .voltage = {1650, 1950},
7744 },
7745
7746 {
7747 .vendor = "ISSI",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007748 .name = "IS29GL064B",
7749 .bustype = BUS_PARALLEL,
7750 .manufacture_id = ISSI_ID,
7751 .model_id = ISSI_PMC_IS29GL064B,
7752 .total_size = 8192,
7753 .page_size = 128 * 1024, /* actual page size is 16 */
7754 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7755 .tested = TEST_UNTESTED,
7756 .probe = probe_jedec_29gl,
7757 .probe_timing = TIMING_ZERO,
7758 .block_erasers =
7759 {
7760 {
7761 .eraseblocks = {
7762 {8 * 1024, 8},
7763 {64 * 1024, 127},
7764 },
7765 .block_erase = erase_sector_jedec,
7766 }, {
7767 .eraseblocks = { {8 * 1024 * 1024, 1} },
7768 .block_erase = erase_chip_block_jedec,
7769 },
7770 },
7771 .write = write_jedec_1,
7772 .read = read_memmapped,
7773 .voltage = {2700, 3600},
7774 },
7775
7776 {
7777 .vendor = "ISSI",
Alan Green1f9cc7d2019-07-01 11:10:45 +10007778 .name = "IS29GL064H/L",
7779 .bustype = BUS_PARALLEL,
7780 .manufacture_id = ISSI_ID,
7781 .model_id = ISSI_PMC_IS29GL064HL,
7782 .total_size = 8192,
7783 .page_size = 128 * 1024, /* actual page size is 16 */
7784 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7785 .tested = TEST_UNTESTED,
7786 .probe = probe_jedec_29gl,
7787 .probe_timing = TIMING_ZERO,
7788 .block_erasers =
7789 {
7790 {
7791 .eraseblocks = { {64 * 1024, 128} },
7792 .block_erase = erase_sector_jedec,
7793 }, {
7794 .eraseblocks = { {8 * 1024 * 1024, 1} },
7795 .block_erase = erase_chip_block_jedec,
7796 },
7797 },
7798 .write = write_jedec_1,
7799 .read = read_memmapped,
7800 .voltage = {2700, 3600},
7801 },
7802
7803 {
7804 .vendor = "ISSI",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007805 .name = "IS29GL064T",
7806 .bustype = BUS_PARALLEL,
7807 .manufacture_id = ISSI_ID,
7808 .model_id = ISSI_PMC_IS29GL064T,
7809 .total_size = 8192,
7810 .page_size = 128 * 1024, /* actual page size is 16 */
7811 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7812 .tested = TEST_UNTESTED,
7813 .probe = probe_jedec_29gl,
7814 .probe_timing = TIMING_ZERO,
7815 .block_erasers =
7816 {
7817 {
7818 .eraseblocks = {
7819 {64 * 1024, 127},
7820 {8 * 1024, 8},
7821 },
7822 .block_erase = erase_sector_jedec,
7823 }, {
7824 .eraseblocks = { {8 * 1024 * 1024, 1} },
7825 .block_erase = erase_chip_block_jedec,
7826 },
7827 },
7828 .write = write_jedec_1,
7829 .read = read_memmapped,
7830 .voltage = {2700, 3600},
7831 },
7832
7833 {
7834 .vendor = "ISSI",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007835 .name = "IS29GL128H/L",
7836 .bustype = BUS_PARALLEL,
7837 .manufacture_id = ISSI_ID,
7838 .model_id = ISSI_PMC_IS29GL128HL,
7839 .total_size = 16384,
7840 .page_size = 128 * 1024, /* actual page size is 16 */
7841 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7842 .tested = TEST_UNTESTED,
7843 .probe = probe_jedec_29gl,
7844 .probe_timing = TIMING_ZERO,
7845 .block_erasers =
7846 {
7847 {
7848 .eraseblocks = { {128 * 1024, 128} },
7849 .block_erase = erase_sector_jedec,
7850 }, {
7851 .eraseblocks = { {16 * 1024 * 1024, 1} },
7852 .block_erase = erase_chip_block_jedec,
7853 },
7854 },
7855 .write = write_jedec_1,
7856 .read = read_memmapped,
7857 .voltage = {2700, 3600},
7858 },
7859
7860 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007861 .vendor = "Intel",
7862 .name = "25F160S33B8",
7863 .bustype = BUS_SPI,
7864 .manufacture_id = INTEL_ID,
7865 .model_id = INTEL_25F160S33B8,
7866 .total_size = 2048,
7867 .page_size = 256,
7868 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
7869 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7870 .tested = TEST_UNTESTED,
7871 .probe = probe_spi_rdid,
7872 .probe_timing = TIMING_ZERO,
7873 .block_erasers =
7874 {
7875 {
7876 /* This chip supports erasing of the 8 so-called "parameter blocks" with
7877 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
7878 * have no effect on the memory contents, but sets a flag in the SR.
7879 .eraseblocks = {
7880 {8 * 1024, 8},
7881 {64 * 1024, 31} // inaccessible
7882 },
7883 .block_erase = spi_block_erase_40,
7884 }, { */
7885 .eraseblocks = { {64 * 1024, 32} },
7886 .block_erase = spi_block_erase_d8,
7887 }, {
7888 .eraseblocks = { {2 * 1024 * 1024, 1} },
7889 .block_erase = spi_block_erase_c7,
7890 }
7891 },
7892 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
7893 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
7894 .write = spi_chip_write_256,
7895 .read = spi_chip_read, /* also fast read 0x0B */
7896 .voltage = {2700, 3600},
7897 },
7898
7899 {
7900 .vendor = "Intel",
7901 .name = "25F160S33T8",
7902 .bustype = BUS_SPI,
7903 .manufacture_id = INTEL_ID,
7904 .model_id = INTEL_25F160S33T8,
7905 .total_size = 2048,
7906 .page_size = 256,
7907 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
7908 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7909 .tested = TEST_UNTESTED,
7910 .probe = probe_spi_rdid,
7911 .probe_timing = TIMING_ZERO,
7912 .block_erasers =
7913 {
7914 {
7915 /* This chip supports erasing of the 8 so-called "parameter blocks" with
7916 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
7917 * have no effect on the memory contents, but sets a flag in the SR.
7918 .eraseblocks = {
7919 {64 * 1024, 31}, // inaccessible
7920 {8 * 1024, 8}
7921 },
7922 .block_erase = spi_block_erase_40,
7923 }, { */
7924 .eraseblocks = { {64 * 1024, 32} },
7925 .block_erase = spi_block_erase_d8,
7926 }, {
7927 .eraseblocks = { {2 * 1024 * 1024, 1} },
7928 .block_erase = spi_block_erase_c7,
7929 }
7930 },
7931 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
7932 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
7933 .write = spi_chip_write_256,
7934 .read = spi_chip_read, /* also fast read 0x0B */
7935 .voltage = {2700, 3600},
7936 },
7937
7938 {
7939 .vendor = "Intel",
7940 .name = "25F320S33B8",
7941 .bustype = BUS_SPI,
7942 .manufacture_id = INTEL_ID,
7943 .model_id = INTEL_25F320S33B8,
7944 .total_size = 4096,
7945 .page_size = 256,
7946 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
7947 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7948 .tested = TEST_UNTESTED,
7949 .probe = probe_spi_rdid,
7950 .probe_timing = TIMING_ZERO,
7951 .block_erasers =
7952 {
7953 {
7954 /* This chip supports erasing of the 8 so-called "parameter blocks" with
7955 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
7956 * have no effect on the memory contents, but sets a flag in the SR.
7957 .eraseblocks = {
7958 {8 * 1024, 8},
7959 {64 * 1024, 63} // inaccessible
7960 },
7961 .block_erase = spi_block_erase_40,
7962 }, { */
7963 .eraseblocks = { {64 * 1024, 64} },
7964 .block_erase = spi_block_erase_d8,
7965 }, {
7966 .eraseblocks = { {4 * 1024 * 1024, 1} },
7967 .block_erase = spi_block_erase_c7,
7968 }
7969 },
7970 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
7971 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
7972 .write = spi_chip_write_256,
7973 .read = spi_chip_read, /* also fast read 0x0B */
7974 .voltage = {2700, 3600},
7975 },
7976
7977 {
7978 .vendor = "Intel",
7979 .name = "25F320S33T8",
7980 .bustype = BUS_SPI,
7981 .manufacture_id = INTEL_ID,
7982 .model_id = INTEL_25F320S33T8,
7983 .total_size = 4096,
7984 .page_size = 256,
7985 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
7986 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7987 .tested = TEST_UNTESTED,
7988 .probe = probe_spi_rdid,
7989 .probe_timing = TIMING_ZERO,
7990 .block_erasers =
7991 {
7992 {
7993 /* This chip supports erasing of the 8 so-called "parameter blocks" with
7994 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
7995 * have no effect on the memory contents, but sets a flag in the SR.
7996 .eraseblocks = {
7997 {64 * 1024, 63}, // inaccessible
7998 {8 * 1024, 8}
7999 },
8000 .block_erase = spi_block_erase_40,
8001 }, { */
8002 .eraseblocks = { {64 * 1024, 64} },
8003 .block_erase = spi_block_erase_d8,
8004 }, {
8005 .eraseblocks = { {4 * 1024 * 1024, 1} },
8006 .block_erase = spi_block_erase_c7,
8007 }
8008 },
8009 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
8010 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
8011 .write = spi_chip_write_256,
8012 .read = spi_chip_read, /* also fast read 0x0B */
8013 .voltage = {2700, 3600},
8014 },
8015
8016 {
8017 .vendor = "Intel",
8018 .name = "25F640S33B8",
8019 .bustype = BUS_SPI,
8020 .manufacture_id = INTEL_ID,
8021 .model_id = INTEL_25F640S33B8,
8022 .total_size = 8192,
8023 .page_size = 256,
8024 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
8025 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Zoltan HERPAIe0e8b2b2020-08-08 16:04:34 +02008026 .tested = TEST_OK_PREW,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008027 .probe = probe_spi_rdid,
8028 .probe_timing = TIMING_ZERO,
8029 .block_erasers =
8030 {
8031 {
8032 /* This chip supports erasing of the 8 so-called "parameter blocks" with
8033 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
8034 * have no effect on the memory contents, but sets a flag in the SR.
8035 .eraseblocks = {
8036 {8 * 1024, 8},
8037 {64 * 1024, 127} // inaccessible
8038 },
8039 .block_erase = spi_block_erase_40,
8040 }, { */
8041 .eraseblocks = { {64 * 1024, 128} },
8042 .block_erase = spi_block_erase_d8,
8043 }, {
8044 .eraseblocks = { {8 * 1024 * 1024, 1} },
8045 .block_erase = spi_block_erase_c7,
8046 }
8047 },
8048 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
8049 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
8050 .write = spi_chip_write_256,
8051 .read = spi_chip_read, /* also fast read 0x0B */
8052 .voltage = {2700, 3600},
8053 },
8054
8055 {
8056 .vendor = "Intel",
8057 .name = "25F640S33T8",
8058 .bustype = BUS_SPI,
8059 .manufacture_id = INTEL_ID,
8060 .model_id = INTEL_25F640S33T8,
8061 .total_size = 8192,
8062 .page_size = 256,
8063 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
8064 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8065 .tested = TEST_UNTESTED,
8066 .probe = probe_spi_rdid,
8067 .probe_timing = TIMING_ZERO,
8068 .block_erasers =
8069 {
8070 {
8071 /* This chip supports erasing of the 8 so-called "parameter blocks" with
8072 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
8073 * have no effect on the memory contents, but sets a flag in the SR.
8074 .eraseblocks = {
8075 {64 * 1024, 127}, // inaccessible
8076 {8 * 1024, 8}
8077 },
8078 .block_erase = spi_block_erase_40,
8079 }, { */
8080 .eraseblocks = { {64 * 1024, 128} },
8081 .block_erase = spi_block_erase_d8,
8082 }, {
8083 .eraseblocks = { {8 * 1024 * 1024, 1} },
8084 .block_erase = spi_block_erase_c7,
8085 }
8086 },
8087 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
8088 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
8089 .write = spi_chip_write_256,
8090 .read = spi_chip_read, /* also fast read 0x0B */
8091 .voltage = {2700, 3600},
8092 },
8093
8094 {
8095 .vendor = "Intel",
8096 .name = "28F001BN/BX-B",
8097 .bustype = BUS_PARALLEL,
8098 .manufacture_id = INTEL_ID,
8099 .model_id = INTEL_28F001B,
8100 .total_size = 128,
8101 .page_size = 128 * 1024, /* 8k + 2x4k + 112k */
8102 .tested = TEST_UNTESTED,
8103 .probe = probe_jedec,
8104 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8105 .block_erasers =
8106 {
8107 {
8108 .eraseblocks = {
8109 {8 * 1024, 1},
8110 {4 * 1024, 2},
8111 {112 * 1024, 1},
8112 },
8113 .block_erase = erase_block_82802ab,
8114 },
8115 },
8116 .write = write_82802ab,
8117 .read = read_memmapped,
8118 .voltage = {4500, 5500},
8119 },
8120
8121 {
8122 .vendor = "Intel",
8123 .name = "28F001BN/BX-T",
8124 .bustype = BUS_PARALLEL,
8125 .manufacture_id = INTEL_ID,
8126 .model_id = INTEL_28F001T,
8127 .total_size = 128,
8128 .page_size = 128 * 1024, /* 112k + 2x4k + 8k */
8129 .tested = TEST_OK_PREW,
8130 .probe = probe_jedec,
8131 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8132 .block_erasers =
8133 {
8134 {
8135 .eraseblocks = {
8136 {112 * 1024, 1},
8137 {4 * 1024, 2},
8138 {8 * 1024, 1},
8139 },
8140 .block_erase = erase_block_82802ab,
8141 },
8142 },
8143 .write = write_82802ab,
8144 .read = read_memmapped,
8145 .voltage = {4500, 5500},
8146 },
8147
8148 {
8149 .vendor = "Intel",
8150 .name = "28F002BC/BL/BV/BX-T",
8151 .bustype = BUS_PARALLEL,
8152 .manufacture_id = INTEL_ID,
8153 .model_id = INTEL_28F002T,
8154 .total_size = 256,
8155 .page_size = 256 * 1024,
8156 .tested = TEST_OK_PRE,
8157 .probe = probe_82802ab,
8158 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8159 .block_erasers =
8160 {
8161 {
8162 .eraseblocks = {
8163 {128 * 1024, 1},
8164 {96 * 1024, 1},
8165 {8 * 1024, 2},
8166 {16 * 1024, 1},
8167 },
8168 .block_erase = erase_block_82802ab,
8169 },
8170 },
8171 .write = write_82802ab,
8172 .read = read_memmapped,
8173 },
8174
8175 {
8176 .vendor = "Intel",
8177 .name = "28F004B5/BE/BV/BX-B",
8178 .bustype = BUS_PARALLEL,
8179 .manufacture_id = INTEL_ID,
8180 .model_id = INTEL_28F004B,
8181 .total_size = 512,
8182 .page_size = 128 * 1024, /* maximal block size */
8183 .tested = TEST_UNTESTED,
8184 .probe = probe_82802ab,
8185 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8186 .block_erasers =
8187 {
8188 {
8189 .eraseblocks = {
8190 {16 * 1024, 1},
8191 {8 * 1024, 2},
8192 {96 * 1024, 1},
8193 {128 * 1024, 3},
8194 },
8195 .block_erase = erase_block_82802ab,
8196 },
8197 },
8198 .write = write_82802ab,
8199 .read = read_memmapped,
8200 },
8201
8202 {
8203 .vendor = "Intel",
8204 .name = "28F004B5/BE/BV/BX-T",
8205 .bustype = BUS_PARALLEL,
8206 .manufacture_id = INTEL_ID,
8207 .model_id = INTEL_28F004T,
8208 .total_size = 512,
8209 .page_size = 128 * 1024, /* maximal block size */
8210 .tested = TEST_UNTESTED,
8211 .probe = probe_82802ab,
8212 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8213 .block_erasers =
8214 {
8215 {
8216 .eraseblocks = {
8217 {128 * 1024, 3},
8218 {96 * 1024, 1},
8219 {8 * 1024, 2},
8220 {16 * 1024, 1},
8221 },
8222 .block_erase = erase_block_82802ab,
8223 },
8224 },
8225 .write = write_82802ab,
8226 .read = read_memmapped,
8227 },
8228
8229 {
8230 .vendor = "Intel",
8231 .name = "28F008S3/S5/SC",
8232 .bustype = BUS_PARALLEL,
8233 .manufacture_id = INTEL_ID,
8234 .model_id = INTEL_28F004S3,
8235 .total_size = 512,
8236 .page_size = 256,
8237 .tested = TEST_UNTESTED,
8238 .probe = probe_82802ab,
8239 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8240 .block_erasers =
8241 {
8242 {
8243 .eraseblocks = { {64 * 1024, 8} },
8244 .block_erase = erase_block_82802ab,
8245 },
8246 },
8247 .unlock = unlock_28f004s5,
8248 .write = write_82802ab,
8249 .read = read_memmapped,
8250 },
8251
8252 {
8253 .vendor = "Intel",
8254 .name = "28F400BV/BX/CE/CV-B",
8255 .bustype = BUS_PARALLEL,
8256 .manufacture_id = INTEL_ID,
8257 .model_id = INTEL_28F400B,
8258 .total_size = 512,
8259 .page_size = 128 * 1024, /* maximal block size */
8260 .feature_bits = FEATURE_ADDR_SHIFTED,
8261 .tested = TEST_UNTESTED,
8262 .probe = probe_82802ab,
8263 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8264 .block_erasers =
8265 {
8266 {
8267 .eraseblocks = {
8268 {16 * 1024, 1},
8269 {8 * 1024, 2},
8270 {96 * 1024, 1},
8271 {128 * 1024, 3},
8272 },
8273 .block_erase = erase_block_82802ab,
8274 },
8275 },
8276 .write = write_82802ab,
8277 .read = read_memmapped,
8278 },
8279
8280 {
8281 .vendor = "Intel",
8282 .name = "28F400BV/BX/CE/CV-T",
8283 .bustype = BUS_PARALLEL,
8284 .manufacture_id = INTEL_ID,
8285 .model_id = INTEL_28F400T,
8286 .total_size = 512,
8287 .page_size = 128 * 1024, /* maximal block size */
8288 .feature_bits = FEATURE_ADDR_SHIFTED,
8289 .tested = TEST_UNTESTED,
8290 .probe = probe_82802ab,
8291 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8292 .block_erasers =
8293 {
8294 {
8295 .eraseblocks = {
8296 {128 * 1024, 3},
8297 {96 * 1024, 1},
8298 {8 * 1024, 2},
8299 {16 * 1024, 1},
8300 },
8301 .block_erase = erase_block_82802ab,
8302 },
8303 },
8304 .write = write_82802ab,
8305 .read = read_memmapped,
8306 },
8307
8308 {
8309 .vendor = "Intel",
8310 .name = "82802AB",
8311 .bustype = BUS_FWH,
8312 .manufacture_id = INTEL_ID,
8313 .model_id = INTEL_82802AB,
8314 .total_size = 512,
8315 .page_size = 64 * 1024,
8316 .feature_bits = FEATURE_REGISTERMAP,
Alan Green88552572019-07-24 13:56:06 +10008317 .tested = TEST_OK_PREW,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008318 .probe = probe_82802ab,
8319 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
8320 .block_erasers =
8321 {
8322 {
8323 .eraseblocks = { {64 * 1024, 8} },
8324 .block_erase = erase_block_82802ab,
8325 },
8326 },
8327 .unlock = unlock_regspace2_uniform_64k,
8328 .write = write_82802ab,
8329 .read = read_memmapped,
8330 .voltage = {3000, 3600},
8331 },
8332
8333 {
8334 .vendor = "Intel",
8335 .name = "82802AC",
8336 .bustype = BUS_FWH,
8337 .manufacture_id = INTEL_ID,
8338 .model_id = INTEL_82802AC,
8339 .total_size = 1024,
8340 .page_size = 64 * 1024,
8341 .feature_bits = FEATURE_REGISTERMAP,
8342 .tested = TEST_OK_PR,
8343 .probe = probe_82802ab,
8344 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
8345 .block_erasers =
8346 {
8347 {
8348 .eraseblocks = { {64 * 1024, 16} },
8349 .block_erase = erase_block_82802ab,
8350 },
8351 },
8352 .unlock = unlock_regspace2_uniform_64k,
8353 .write = write_82802ab,
8354 .read = read_memmapped,
8355 .voltage = {3000, 3600},
8356 },
8357
8358 {
8359 .vendor = "Macronix",
8360 .name = "MX23L12854",
8361 .bustype = BUS_SPI,
8362 .manufacture_id = MACRONIX_ID,
8363 .model_id = MACRONIX_MX23L12854,
8364 .total_size = 16384,
8365 .page_size = 256,
8366 .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA},
8367 .probe = probe_spi_rdid,
8368 .probe_timing = TIMING_ZERO,
8369 .write = NULL, /* MX23L12854 is a mask ROM, so it is read-only */
8370 .read = spi_chip_read, /* Fast read (0x0B) supported */
8371 .voltage = {3000, 3600},
8372 },
8373
8374 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008375 .vendor = "Macronix",
Michael Coppola583ea322014-08-20 18:56:35 +00008376 .name = "MX23L1654",
8377 .bustype = BUS_SPI,
8378 .manufacture_id = MACRONIX_ID,
8379 .model_id = MACRONIX_MX23L1654,
8380 .total_size = 2048,
8381 .page_size = 256,
8382 .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA},
8383 .probe = probe_spi_rdid,
8384 .probe_timing = TIMING_ZERO,
8385 .write = NULL, /* MX23L1654 is a mask ROM, so it is read-only */
8386 .read = spi_chip_read, /* Fast read (0x0B) supported */
8387 .voltage = {3000, 3600},
8388 },
8389
8390 {
8391 .vendor = "Macronix",
Michael Coppola4e7f36e2014-05-03 23:01:18 +00008392 .name = "MX23L3254",
8393 .bustype = BUS_SPI,
8394 .manufacture_id = MACRONIX_ID,
8395 .model_id = MACRONIX_MX23L3254,
8396 .total_size = 4096,
8397 .page_size = 256,
Stefan Tauner6455dff2014-05-26 00:36:24 +00008398 .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA},
Michael Coppola4e7f36e2014-05-03 23:01:18 +00008399 .probe = probe_spi_rdid,
8400 .probe_timing = TIMING_ZERO,
8401 .write = NULL, /* MX23L3254 is a mask ROM, so it is read-only */
8402 .read = spi_chip_read, /* Fast read (0x0B) supported */
8403 .voltage = {3000, 3600},
8404 },
8405
8406 {
8407 .vendor = "Macronix",
Michael Coppola583ea322014-08-20 18:56:35 +00008408 .name = "MX23L6454",
8409 .bustype = BUS_SPI,
8410 .manufacture_id = MACRONIX_ID,
8411 .model_id = MACRONIX_MX23L6454,
8412 .total_size = 8192,
8413 .page_size = 256,
Stefan Tauner23e10b82016-01-23 16:16:49 +00008414 .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA},
Michael Coppola583ea322014-08-20 18:56:35 +00008415 .probe = probe_spi_rdid,
8416 .probe_timing = TIMING_ZERO,
8417 .write = NULL, /* MX23L6454 is a mask ROM, so it is read-only */
8418 .read = spi_chip_read, /* Fast read (0x0B) supported */
8419 .voltage = {3000, 3600},
8420 },
8421
8422 {
8423 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00008424 .name = "MX25L1005(C)/MX25L1006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008425 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008426 .manufacture_id = MACRONIX_ID,
8427 .model_id = MACRONIX_MX25L1005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008428 .total_size = 128,
8429 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00008430 /* MX25L1006E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00008431 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00008432 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008433 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008434 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00008435 .block_erasers =
8436 {
8437 {
8438 .eraseblocks = { {4 * 1024, 32} },
8439 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008440 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00008441 .eraseblocks = { {64 * 1024, 2} },
8442 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008443 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00008444 .eraseblocks = { {128 * 1024, 1} },
8445 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008446 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00008447 .eraseblocks = { {128 * 1024, 1} },
8448 .block_erase = spi_block_erase_c7,
8449 },
8450 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008451 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008452 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008453 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00008454 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L1006E supports dual I/O */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008455 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008456 },
8457
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008458 {
8459 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008460 .name = "MX25L12805D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008461 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008462 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008463 .model_id = MACRONIX_MX25L12805D,
8464 .total_size = 16384,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008465 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008466 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8467 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008468 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008469 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008470 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008471 .block_erasers =
8472 {
8473 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008474 .eraseblocks = { {4 * 1024, 4096} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008475 .block_erase = spi_block_erase_20,
8476 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008477 .eraseblocks = { {64 * 1024, 256} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008478 .block_erase = spi_block_erase_d8,
8479 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008480 .eraseblocks = { {16 * 1024 * 1024, 1} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008481 .block_erase = spi_block_erase_60,
8482 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008483 .eraseblocks = { {16 * 1024 * 1024, 1} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008484 .block_erase = spi_block_erase_c7,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008485 }
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008486 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10008487 .printlock = spi_prettyprint_status_register_bp3_srwd,
8488 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008489 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00008490 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008491 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008492 },
8493
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008494 {
8495 .vendor = "Macronix",
Tao Xia571f6ad2021-07-21 16:41:53 +08008496 .name = "MX25L12833F/MX25L12835F/MX25L12845E/MX25L12865E/MX25L12873F",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008497 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008498 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008499 .model_id = MACRONIX_MX25L12805D,
8500 .total_size = 16384,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008501 .page_size = 256,
Tao Xia571f6ad2021-07-21 16:41:53 +08008502 /* OTP: MX25L12833F has 1KB total, others have 512B total; enter 0xB1, exit 0xC1 */
Alan Green1f9cc7d2019-07-01 11:10:45 +10008503 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner8179be52011-06-04 13:13:34 +00008504 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008505 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008506 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008507 .block_erasers =
8508 {
8509 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008510 .eraseblocks = { {4 * 1024, 4096} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008511 .block_erase = spi_block_erase_20,
8512 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008513 .eraseblocks = { {32 * 1024, 512} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008514 .block_erase = spi_block_erase_52,
8515 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008516 .eraseblocks = { {64 * 1024, 256} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008517 .block_erase = spi_block_erase_d8,
8518 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008519 .eraseblocks = { {16 * 1024 * 1024, 1} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008520 .block_erase = spi_block_erase_60,
8521 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008522 .eraseblocks = { {16 * 1024 * 1024, 1} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008523 .block_erase = spi_block_erase_c7,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008524 }
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008525 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10008526 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
8527 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8528 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008529 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00008530 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008531 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008532 },
8533
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008534 {
8535 .vendor = "Macronix",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008536 .name = "MX25L1605",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008537 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008538 .manufacture_id = MACRONIX_ID,
8539 .model_id = MACRONIX_MX25L1605,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008540 .total_size = 2048,
8541 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00008542 .feature_bits = FEATURE_WRSR_WREN,
Sven Schnelle4bd8a402011-03-07 10:59:06 +00008543 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008544 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008545 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008546 .block_erasers =
8547 {
8548 {
Stefan Tauner226037d2013-03-16 01:22:12 +00008549 .eraseblocks = { {64 * 1024, 32} },
8550 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008551 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00008552 .eraseblocks = { {64 * 1024, 32} },
8553 .block_erase = spi_block_erase_d8,
8554 }, {
8555 .eraseblocks = { {2 * 1024 * 1024, 1} },
8556 .block_erase = spi_block_erase_60,
8557 }, {
8558 .eraseblocks = { {2 * 1024 * 1024, 1} },
8559 .block_erase = spi_block_erase_c7,
8560 },
8561 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008562 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */
Stefan Tauner226037d2013-03-16 01:22:12 +00008563 .unlock = spi_disable_blockprotect,
8564 .write = spi_chip_write_256,
8565 .read = spi_chip_read, /* Fast read (0x0B) supported */
8566 .voltage = {2700, 3600},
8567 },
8568
8569 {
8570 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008571 .name = "MX25L1605A/MX25L1606E/MX25L1608E",
Stefan Tauner226037d2013-03-16 01:22:12 +00008572 .bustype = BUS_SPI,
8573 .manufacture_id = MACRONIX_ID,
8574 .model_id = MACRONIX_MX25L1605,
8575 .total_size = 2048,
8576 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008577 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L1606E and MX25L1608E only) */
Stefan Tauner226037d2013-03-16 01:22:12 +00008578 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8579 .tested = TEST_OK_PREW,
8580 .probe = probe_spi_rdid,
8581 .probe_timing = TIMING_ZERO,
8582 .block_erasers =
8583 {
8584 {
8585 .eraseblocks = { {4 * 1024, 512} },
8586 .block_erase = spi_block_erase_20,
8587 }, {
8588 .eraseblocks = { {64 * 1024, 32} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008589 .block_erase = spi_block_erase_52,
8590 }, {
8591 .eraseblocks = { {64 * 1024, 32} },
8592 .block_erase = spi_block_erase_d8,
8593 }, {
8594 .eraseblocks = { {2 * 1024 * 1024, 1} },
8595 .block_erase = spi_block_erase_60,
8596 }, {
8597 .eraseblocks = { {2 * 1024 * 1024, 1} },
8598 .block_erase = spi_block_erase_c7,
8599 },
8600 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008601 .printlock = spi_prettyprint_status_register_bp3_srwd, /* MX25L1605A bp2 only */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008602 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008603 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008604 .read = spi_chip_read, /* Fast read (0x0B) supported (MX25L1608E supports dual-I/O read) */
Stefan Tauner226037d2013-03-16 01:22:12 +00008605 .voltage = {2700, 3600},
8606 },
8607
8608 {
8609 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008610 .name = "MX25L1605D/MX25L1608D/MX25L1673E",
Stefan Tauner226037d2013-03-16 01:22:12 +00008611 .bustype = BUS_SPI,
8612 .manufacture_id = MACRONIX_ID,
8613 .model_id = MACRONIX_MX25L1605,
8614 .total_size = 2048,
8615 .page_size = 256,
8616 .feature_bits = FEATURE_WRSR_WREN,
8617 .tested = TEST_OK_PREW,
8618 .probe = probe_spi_rdid,
8619 .probe_timing = TIMING_ZERO,
8620 .block_erasers =
8621 {
8622 {
8623 .eraseblocks = { {4 * 1024, 512} },
8624 .block_erase = spi_block_erase_20,
8625 }, {
8626 .eraseblocks = { {64 * 1024, 32} },
8627 .block_erase = spi_block_erase_d8,
8628 }, {
8629 .eraseblocks = { {2 * 1024 * 1024, 1} },
8630 .block_erase = spi_block_erase_60,
8631 }, {
8632 .eraseblocks = { {2 * 1024 * 1024, 1} },
8633 .block_erase = spi_block_erase_c7,
8634 },
8635 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008636 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: Continuously Program (CP) mode, for 73E is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008637 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00008638 .write = spi_chip_write_256,
8639 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008640 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008641 },
8642
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008643 {
8644 .vendor = "Macronix",
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008645 .name = "MX25L1635D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008646 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008647 .manufacture_id = MACRONIX_ID,
8648 .model_id = MACRONIX_MX25L1635D,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008649 .total_size = 2048,
8650 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008651 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8652 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Angel Ponsc2054872021-01-15 18:57:32 +01008653 .tested = TEST_OK_PREW,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008654 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008655 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008656 .block_erasers =
8657 {
8658 {
8659 .eraseblocks = { {4 * 1024, 512} },
8660 .block_erase = spi_block_erase_20,
8661 }, {
8662 .eraseblocks = { {64 * 1024, 32} },
8663 .block_erase = spi_block_erase_d8,
8664 }, {
8665 .eraseblocks = { {2 * 1024 * 1024, 1} },
8666 .block_erase = spi_block_erase_60,
8667 }, {
8668 .eraseblocks = { {2 * 1024 * 1024, 1} },
8669 .block_erase = spi_block_erase_c7,
8670 }
8671 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008672 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008673 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008674 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008675 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008676 .voltage = {2700, 3600},
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008677 },
Stephan Guillouxfd315502009-04-20 22:54:13 +00008678
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008679 {
8680 .vendor = "Macronix",
Stephan Guilloux3611b802010-09-13 19:59:28 +00008681 .name = "MX25L1635E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008682 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008683 .manufacture_id = MACRONIX_ID,
8684 .model_id = MACRONIX_MX25L1635E,
Stephan Guilloux3611b802010-09-13 19:59:28 +00008685 .total_size = 2048,
8686 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008687 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8688 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux3611b802010-09-13 19:59:28 +00008689 .tested = TEST_UNTESTED,
8690 .probe = probe_spi_rdid,
8691 .probe_timing = TIMING_ZERO,
8692 .block_erasers =
8693 {
8694 {
8695 .eraseblocks = { {4 * 1024, 512} },
8696 .block_erase = spi_block_erase_20,
8697 }, {
8698 .eraseblocks = { {64 * 1024, 32} },
8699 .block_erase = spi_block_erase_d8,
8700 }, {
8701 .eraseblocks = { {2 * 1024 * 1024, 1} },
8702 .block_erase = spi_block_erase_60,
8703 }, {
8704 .eraseblocks = { {2 * 1024 * 1024, 1} },
8705 .block_erase = spi_block_erase_c7,
8706 }
8707 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008708 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008709 .unlock = spi_disable_blockprotect_bp3_srwd,
Stephan Guilloux3611b802010-09-13 19:59:28 +00008710 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008711 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00008712 .voltage = {2700, 3600},
Stephan Guilloux3611b802010-09-13 19:59:28 +00008713 },
8714
8715 {
8716 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008717 .name = "MX25L2005(C)/MX25L2006E",
8718 .bustype = BUS_SPI,
8719 .manufacture_id = MACRONIX_ID,
8720 .model_id = MACRONIX_MX25L2005,
8721 .total_size = 256,
8722 .page_size = 256,
8723 .feature_bits = FEATURE_WRSR_WREN,
8724 .tested = TEST_OK_PREW,
8725 .probe = probe_spi_rdid,
8726 .probe_timing = TIMING_ZERO,
8727 .block_erasers =
8728 {
8729 {
8730 .eraseblocks = { {4 * 1024, 64} },
8731 .block_erase = spi_block_erase_20,
8732 }, {
8733 .eraseblocks = { {64 * 1024, 4} },
8734 .block_erase = spi_block_erase_52,
8735 }, {
8736 .eraseblocks = { {64 * 1024, 4} },
8737 .block_erase = spi_block_erase_d8,
8738 }, {
8739 .eraseblocks = { {256 * 1024, 1} },
8740 .block_erase = spi_block_erase_60,
8741 }, {
8742 .eraseblocks = { {256 * 1024, 1} },
8743 .block_erase = spi_block_erase_c7,
8744 },
8745 },
8746 .printlock = spi_prettyprint_status_register_bp1_srwd,
8747 .unlock = spi_disable_blockprotect,
8748 .write = spi_chip_write_256,
8749 .read = spi_chip_read, /* Fast read (0x0B) supported */
8750 .voltage = {2700, 3600},
8751 },
8752
8753 {
8754 .vendor = "Macronix",
Alan Green03707302019-08-26 12:50:43 +10008755 .name = "MX25L25635F/MX25L25645G",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008756 .bustype = BUS_SPI,
8757 .manufacture_id = MACRONIX_ID,
8758 .model_id = MACRONIX_MX25L25635F,
8759 .total_size = 32768,
8760 .page_size = 256,
8761 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8762 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
8763 .tested = TEST_OK_PREW,
8764 .probe = probe_spi_rdid,
8765 .probe_timing = TIMING_ZERO,
8766 .block_erasers =
8767 {
8768 {
8769 .eraseblocks = { {4 * 1024, 8192} },
8770 .block_erase = spi_block_erase_21,
8771 }, {
8772 .eraseblocks = { {4 * 1024, 8192} },
8773 .block_erase = spi_block_erase_20,
8774 }, {
8775 .eraseblocks = { {32 * 1024, 1024} },
8776 .block_erase = spi_block_erase_5c,
8777 }, {
8778 .eraseblocks = { {32 * 1024, 1024} },
8779 .block_erase = spi_block_erase_52,
8780 }, {
8781 .eraseblocks = { {64 * 1024, 512} },
8782 .block_erase = spi_block_erase_dc,
8783 }, {
8784 .eraseblocks = { {64 * 1024, 512} },
8785 .block_erase = spi_block_erase_d8,
8786 }, {
8787 .eraseblocks = { {32 * 1024 * 1024, 1} },
8788 .block_erase = spi_block_erase_60,
8789 }, {
8790 .eraseblocks = { {32 * 1024 * 1024, 1} },
8791 .block_erase = spi_block_erase_c7,
8792 }
8793 },
8794 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
8795 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8796 .unlock = spi_disable_blockprotect_bp3_srwd,
8797 .write = spi_chip_write_256,
8798 .read = spi_chip_read, /* Fast read (0x0B) supported */
8799 .voltage = {2700, 3600},
8800 },
8801
8802 {
8803 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00008804 .name = "MX25L3205(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008805 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008806 .manufacture_id = MACRONIX_ID,
8807 .model_id = MACRONIX_MX25L3205,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008808 .total_size = 4096,
8809 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00008810 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00008811 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008812 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008813 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00008814 .block_erasers =
8815 {
8816 {
Stefan Tauner226037d2013-03-16 01:22:12 +00008817 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00008818 .block_erase = spi_block_erase_20,
8819 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00008820 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00008821 .block_erase = spi_block_erase_d8,
8822 }, {
8823 .eraseblocks = { {4 * 1024 * 1024, 1} },
8824 .block_erase = spi_block_erase_60,
8825 }, {
8826 .eraseblocks = { {4 * 1024 * 1024, 1} },
8827 .block_erase = spi_block_erase_c7,
8828 },
8829 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008830 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008831 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008832 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008833 .read = spi_chip_read, /* Fast read (0x0B) supported */
8834 .voltage = {2700, 3600},
8835 },
8836
8837 {
8838 .vendor = "Macronix",
8839 .name = "MX25L3205D/MX25L3208D",
8840 .bustype = BUS_SPI,
8841 .manufacture_id = MACRONIX_ID,
8842 .model_id = MACRONIX_MX25L3205,
8843 .total_size = 4096,
8844 .page_size = 256,
8845 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8846 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8847 .tested = TEST_OK_PREW,
8848 .probe = probe_spi_rdid,
8849 .probe_timing = TIMING_ZERO,
8850 .block_erasers =
8851 {
8852 {
8853 .eraseblocks = { {4 * 1024, 1024} },
8854 .block_erase = spi_block_erase_20,
8855 }, {
8856 .eraseblocks = { {64 * 1024, 64} },
8857 .block_erase = spi_block_erase_d8,
8858 }, {
8859 .eraseblocks = { {4 * 1024 * 1024, 1} },
8860 .block_erase = spi_block_erase_60,
8861 }, {
8862 .eraseblocks = { {4 * 1024 * 1024, 1} },
8863 .block_erase = spi_block_erase_c7,
8864 },
8865 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008866 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008867 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00008868 .write = spi_chip_write_256,
8869 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
8870 .voltage = {2700, 3600},
8871 },
8872
8873 {
8874 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008875 .name = "MX25L3206E/MX25L3208E",
Stefan Tauner226037d2013-03-16 01:22:12 +00008876 .bustype = BUS_SPI,
8877 .manufacture_id = MACRONIX_ID,
8878 .model_id = MACRONIX_MX25L3205,
8879 .total_size = 4096,
8880 .page_size = 256,
8881 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8882 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8883 .tested = TEST_OK_PREW,
8884 .probe = probe_spi_rdid,
8885 .probe_timing = TIMING_ZERO,
8886 .block_erasers =
8887 {
8888 {
8889 .eraseblocks = { {4 * 1024, 1024} },
8890 .block_erase = spi_block_erase_20,
8891 }, {
8892 .eraseblocks = { {64 * 1024, 64} },
8893 .block_erase = spi_block_erase_d8,
8894 }, {
8895 .eraseblocks = { {64 * 1024, 64} },
8896 .block_erase = spi_block_erase_52,
8897 }, {
8898 .eraseblocks = { {4 * 1024 * 1024, 1} },
8899 .block_erase = spi_block_erase_60,
8900 }, {
8901 .eraseblocks = { {4 * 1024 * 1024, 1} },
8902 .block_erase = spi_block_erase_c7,
8903 },
8904 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008905 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008906 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00008907 .write = spi_chip_write_256,
8908 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008909 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008910 },
8911
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008912 {
8913 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008914 .name = "MX25L3235D",
8915 .bustype = BUS_SPI,
8916 .manufacture_id = MACRONIX_ID,
8917 .model_id = MACRONIX_MX25L3235D,
8918 .total_size = 4096,
8919 .page_size = 256,
8920 /* OTP: 256B total; enter 0xB1, exit 0xC1 */
8921 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8922 .tested = TEST_UNTESTED,
8923 .probe = probe_spi_rdid,
8924 .probe_timing = TIMING_ZERO,
8925 .block_erasers =
8926 {
8927 {
8928 .eraseblocks = { {4 * 1024, 1024} },
8929 .block_erase = spi_block_erase_20,
8930 }, {
8931 .eraseblocks = { {64 * 1024, 64} },
8932 .block_erase = spi_block_erase_d8,
8933 }, {
8934 .eraseblocks = { {4 * 1024 * 1024, 1} },
8935 .block_erase = spi_block_erase_60,
8936 }, {
8937 .eraseblocks = { {4 * 1024 * 1024, 1} },
8938 .block_erase = spi_block_erase_c7,
8939 }
8940 },
8941 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8942 .unlock = spi_disable_blockprotect_bp3_srwd,
8943 .write = spi_chip_write_256,
8944 .read = spi_chip_read,
8945 .voltage = {2700, 3600},
8946 },
8947
8948 {
8949 .vendor = "Macronix",
Nico Huberb6683e02021-04-21 13:04:29 +02008950 .name = "MX25L3233F/MX25L3273E",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008951 .bustype = BUS_SPI,
8952 .manufacture_id = MACRONIX_ID,
8953 .model_id = MACRONIX_MX25L3205,
8954 .total_size = 4096,
8955 .page_size = 256,
Nico Huber6e69e2b2021-04-21 13:03:13 +02008956 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008957 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +00008958 .tested = TEST_OK_PREW,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008959 .probe = probe_spi_rdid,
8960 .probe_timing = TIMING_ZERO,
8961 .block_erasers =
8962 {
8963 {
8964 .eraseblocks = { {4 * 1024, 1024} },
8965 .block_erase = spi_block_erase_20,
8966 }, {
8967 .eraseblocks = { {32 * 1024, 128} },
8968 .block_erase = spi_block_erase_52,
8969 }, {
8970 .eraseblocks = { {64 * 1024, 64} },
8971 .block_erase = spi_block_erase_d8,
8972 }, {
8973 .eraseblocks = { {4 * 1024 * 1024, 1} },
8974 .block_erase = spi_block_erase_60,
8975 }, {
8976 .eraseblocks = { {4 * 1024 * 1024, 1} },
8977 .block_erase = spi_block_erase_c7,
8978 },
8979 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008980 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008981 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008982 .write = spi_chip_write_256,
8983 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
Nico Huberb6683e02021-04-21 13:04:29 +02008984 .voltage = {2700, 3600}, /* 33F 2.65V..3.6V */
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008985 },
8986
8987 {
8988 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008989 .name = "MX25L4005(A/C)/MX25L4006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008990 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008991 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008992 .model_id = MACRONIX_MX25L4005,
8993 .total_size = 512,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00008994 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008995 .feature_bits = FEATURE_WRSR_WREN,
8996 .tested = TEST_OK_PREW,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00008997 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008998 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008999 .block_erasers =
9000 {
9001 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009002 .eraseblocks = { {4 * 1024, 128} },
Sean Nelson54596372010-01-09 05:30:14 +00009003 .block_erase = spi_block_erase_20,
9004 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009005 .eraseblocks = { {64 * 1024, 8} },
9006 .block_erase = spi_block_erase_52,
9007 }, {
9008 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson54596372010-01-09 05:30:14 +00009009 .block_erase = spi_block_erase_d8,
9010 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009011 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00009012 .block_erase = spi_block_erase_60,
9013 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009014 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00009015 .block_erase = spi_block_erase_c7,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009016 },
Sean Nelson54596372010-01-09 05:30:14 +00009017 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10009018 .printlock = spi_prettyprint_status_register_bp2_srwd,
9019 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009020 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009021 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009022 .voltage = {2700, 3600},
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00009023 },
9024
9025 {
9026 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009027 .name = "MX25L512(E)/MX25V512(C)",
9028 .bustype = BUS_SPI,
9029 .manufacture_id = MACRONIX_ID,
9030 .model_id = MACRONIX_MX25L512,
9031 .total_size = 64,
9032 .page_size = 256,
9033 /* MX25L512E supports SFDP */
9034 .feature_bits = FEATURE_WRSR_WREN,
9035 .tested = TEST_OK_PREW,
9036 .probe = probe_spi_rdid,
9037 .probe_timing = TIMING_ZERO,
9038 .block_erasers =
9039 {
9040 {
9041 .eraseblocks = { {4 * 1024, 16} },
9042 .block_erase = spi_block_erase_20,
9043 }, {
9044 .eraseblocks = { {64 * 1024, 1} },
9045 .block_erase = spi_block_erase_52,
9046 }, {
9047 .eraseblocks = { {64 * 1024, 1} },
9048 .block_erase = spi_block_erase_d8,
9049 }, {
9050 .eraseblocks = { {64 * 1024, 1} },
9051 .block_erase = spi_block_erase_60,
9052 }, {
9053 .eraseblocks = { {64 * 1024, 1} },
9054 .block_erase = spi_block_erase_c7,
9055 },
9056 },
9057 .printlock = spi_prettyprint_status_register_bp1_srwd,
9058 .unlock = spi_disable_blockprotect,
9059 .write = spi_chip_write_256,
9060 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L512E supports dual I/O */
9061 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V512(C) */
9062 },
9063
9064 {
9065 .vendor = "Macronix",
Steve Markgraf7e6f3a72020-07-13 18:22:56 +02009066 .name = "MX25L5121E",
9067 .bustype = BUS_SPI,
9068 .manufacture_id = MACRONIX_ID,
9069 .model_id = MACRONIX_MX25L5121E,
9070 .total_size = 64,
9071 .page_size = 32,
9072 .feature_bits = FEATURE_WRSR_WREN,
9073 .tested = TEST_OK_PREW,
9074 .probe = probe_spi_rdid,
9075 .probe_timing = TIMING_ZERO,
9076 .block_erasers =
9077 {
9078 {
9079 .eraseblocks = { {4 * 1024, 16} },
9080 .block_erase = spi_block_erase_20,
9081 }, {
9082 .eraseblocks = { {64 * 1024, 1} },
9083 .block_erase = spi_block_erase_52,
9084 }, {
9085 .eraseblocks = { {64 * 1024, 1} },
9086 .block_erase = spi_block_erase_d8,
9087 }, {
9088 .eraseblocks = { {64 * 1024, 1} },
9089 .block_erase = spi_block_erase_60,
9090 }, {
9091 .eraseblocks = { {64 * 1024, 1} },
9092 .block_erase = spi_block_erase_c7,
9093 },
9094 },
9095 .printlock = spi_prettyprint_status_register_bp1_srwd,
9096 .unlock = spi_disable_blockprotect,
9097 .write = spi_chip_write_256,
9098 .read = spi_chip_read, /* Fast read (0x0B) supported */
9099 .voltage = {2700, 3600},
9100 },
9101
9102 {
9103 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009104 .name = "MX25L6405",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009105 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009106 .manufacture_id = MACRONIX_ID,
9107 .model_id = MACRONIX_MX25L6405,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009108 .total_size = 8192,
9109 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009110 /* Has an additional 512B EEPROM sector */
9111 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzelac427b22012-02-16 21:07:07 +00009112 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009113 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009114 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00009115 .block_erasers =
9116 {
9117 {
9118 .eraseblocks = { {64 * 1024, 128} },
9119 .block_erase = spi_block_erase_20,
9120 }, {
9121 .eraseblocks = { {64 * 1024, 128} },
9122 .block_erase = spi_block_erase_d8,
9123 }, {
9124 .eraseblocks = { {8 * 1024 * 1024, 1} },
9125 .block_erase = spi_block_erase_60,
9126 }, {
9127 .eraseblocks = { {8 * 1024 * 1024, 1} },
9128 .block_erase = spi_block_erase_c7,
9129 }
9130 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009131 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: error flag */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009132 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009133 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009134 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009135 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009136 },
9137
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009138 {
9139 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009140 .name = "MX25L6405D",
Stefan Tauner226037d2013-03-16 01:22:12 +00009141 .bustype = BUS_SPI,
9142 .manufacture_id = MACRONIX_ID,
9143 .model_id = MACRONIX_MX25L6405,
9144 .total_size = 8192,
9145 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009146 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
Stefan Tauner226037d2013-03-16 01:22:12 +00009147 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9148 .tested = TEST_OK_PREW,
9149 .probe = probe_spi_rdid,
9150 .probe_timing = TIMING_ZERO,
9151 .block_erasers =
9152 {
9153 {
9154 .eraseblocks = { {4 * 1024, 2048} },
9155 .block_erase = spi_block_erase_20,
9156 }, {
9157 .eraseblocks = { {64 * 1024, 128} },
9158 .block_erase = spi_block_erase_d8,
9159 }, {
9160 .eraseblocks = { {8 * 1024 * 1024, 1} },
9161 .block_erase = spi_block_erase_60,
9162 }, {
9163 .eraseblocks = { {8 * 1024 * 1024, 1} },
9164 .block_erase = spi_block_erase_c7,
9165 }
9166 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009167 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009168 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00009169 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009170 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0xBB) supported */
Stefan Tauner226037d2013-03-16 01:22:12 +00009171 .voltage = {2700, 3600},
9172 },
9173
9174 {
9175 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009176 .name = "MX25L6406E/MX25L6408E",
9177 .bustype = BUS_SPI,
9178 .manufacture_id = MACRONIX_ID,
9179 .model_id = MACRONIX_MX25L6405,
9180 .total_size = 8192,
9181 .page_size = 256,
9182 /* MX25L6406E supports SFDP */
9183 /* OTP: 06E 64B total; enter 0xB1, exit 0xC1 */
9184 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9185 .tested = TEST_OK_PREW,
9186 .probe = probe_spi_rdid,
9187 .probe_timing = TIMING_ZERO,
9188 .block_erasers =
9189 {
9190 {
9191 .eraseblocks = { {4 * 1024, 2048} },
9192 .block_erase = spi_block_erase_20,
9193 }, {
9194 .eraseblocks = { {64 * 1024, 128} },
9195 .block_erase = spi_block_erase_52,
9196 }, {
9197 .eraseblocks = { {64 * 1024, 128} },
9198 .block_erase = spi_block_erase_d8,
9199 }, {
9200 .eraseblocks = { {8 * 1024 * 1024, 1} },
9201 .block_erase = spi_block_erase_60,
9202 }, {
9203 .eraseblocks = { {8 * 1024 * 1024, 1} },
9204 .block_erase = spi_block_erase_c7,
9205 }
9206 },
9207 .printlock = spi_prettyprint_status_register_bp3_srwd,
9208 .unlock = spi_disable_blockprotect_bp3_srwd,
9209 .write = spi_chip_write_256,
9210 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read supported */
9211 .voltage = {2700, 3600},
9212 },
9213
9214 {
9215 .vendor = "Macronix",
Nico Huberb0072782017-12-06 21:02:57 +01009216 .name = "MX25L6436E/MX25L6445E/MX25L6465E/MX25L6473E/MX25L6473F",
Stefan Tauner226037d2013-03-16 01:22:12 +00009217 .bustype = BUS_SPI,
9218 .manufacture_id = MACRONIX_ID,
9219 .model_id = MACRONIX_MX25L6405,
9220 .total_size = 8192,
9221 .page_size = 256,
9222 /* supports SFDP */
9223 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9224 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9225 .tested = TEST_OK_PREW,
9226 .probe = probe_spi_rdid,
9227 .probe_timing = TIMING_ZERO,
9228 .block_erasers =
9229 {
9230 {
9231 .eraseblocks = { {4 * 1024, 2048} },
9232 .block_erase = spi_block_erase_20,
9233 }, {
9234 .eraseblocks = { {32 * 1024, 256} },
9235 .block_erase = spi_block_erase_52,
9236 }, {
9237 .eraseblocks = { {64 * 1024, 128} },
9238 .block_erase = spi_block_erase_d8,
9239 }, {
9240 .eraseblocks = { {8 * 1024 * 1024, 1} },
9241 .block_erase = spi_block_erase_60,
9242 }, {
9243 .eraseblocks = { {8 * 1024 * 1024, 1} },
9244 .block_erase = spi_block_erase_c7,
9245 }
9246 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009247 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009248 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00009249 .write = spi_chip_write_256,
9250 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9251 .voltage = {2700, 3600},
9252 },
9253
9254 {
9255 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009256 .name = "MX25L6495F",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009257 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009258 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009259 .model_id = MACRONIX_MX25L6495F,
9260 .total_size = 8192,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00009261 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009262 /* OTP: 1024B total; enter 0xB1, exit 0xC1 */
Stefan Tauner226037d2013-03-16 01:22:12 +00009263 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +00009264 .tested = TEST_OK_PREW,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00009265 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009266 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00009267 .block_erasers =
9268 {
9269 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009270 .eraseblocks = { {4 * 1024, 2048} },
Sean Nelson54596372010-01-09 05:30:14 +00009271 .block_erase = spi_block_erase_20,
9272 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009273 .eraseblocks = { {32 * 1024, 256} },
9274 .block_erase = spi_block_erase_52,
9275 }, {
Aarya Chaumal478e1792022-06-04 01:34:44 +05309276 .eraseblocks = { {64 * 1024, 128} },
9277 .block_erase = spi_block_erase_d8,
9278 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009279 .eraseblocks = { {8 * 1024 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00009280 .block_erase = spi_block_erase_60,
9281 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009282 .eraseblocks = { {8 * 1024 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00009283 .block_erase = spi_block_erase_c7,
9284 }
9285 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10009286 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009287 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009288 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009289 .voltage = {2700, 3600},
9290 },
9291
9292 {
9293 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009294 .name = "MX25L8005/MX25L8006E/MX25L8008E/MX25V8005",
Stefan Tauner5c316f92015-02-08 21:57:52 +00009295 .bustype = BUS_SPI,
9296 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009297 .model_id = MACRONIX_MX25L8005,
9298 .total_size = 1024,
9299 .page_size = 256,
9300 /* MX25L8006E, MX25L8008E support SFDP */
9301 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L8006E, MX25L8008E only) */
9302 .feature_bits = FEATURE_WRSR_WREN,
9303 .tested = TEST_OK_PREW,
9304 .probe = probe_spi_rdid,
9305 .probe_timing = TIMING_ZERO,
9306 .block_erasers =
9307 {
9308 {
9309 .eraseblocks = { {4 * 1024, 256} },
9310 .block_erase = spi_block_erase_20,
9311 }, {
9312 .eraseblocks = { {64 * 1024, 16} },
9313 .block_erase = spi_block_erase_52,
9314 }, {
9315 .eraseblocks = { {64 * 1024, 16} },
9316 .block_erase = spi_block_erase_d8,
9317 }, {
9318 .eraseblocks = { {1024 * 1024, 1} },
9319 .block_erase = spi_block_erase_60,
9320 }, {
9321 .eraseblocks = { {1024 * 1024, 1} },
9322 .block_erase = spi_block_erase_c7,
9323 },
9324 },
9325 .printlock = spi_prettyprint_status_register_bp2_srwd,
9326 .unlock = spi_disable_blockprotect,
9327 .write = spi_chip_write_256,
9328 .read = spi_chip_read, /* Fast read (0x0B) supported */
9329 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V8005 */
9330 },
9331
9332 {
9333 .vendor = "Macronix",
sibradzicf62623c2020-03-14 17:21:34 +09009334 .name = "MX25R3235F",
9335 .bustype = BUS_SPI,
9336 .manufacture_id = MACRONIX_ID,
9337 .model_id = MACRONIX_MX25R3235F,
9338 .total_size = 4096,
9339 .page_size = 256,
9340 /* OTP: 1024B total; enter 0xB1, exit 0xC1 */
9341 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9342 .tested = TEST_OK_PREW,
9343 .probe = probe_spi_rdid,
9344 .probe_timing = TIMING_ZERO,
9345 .block_erasers =
9346 {
9347 {
9348 .eraseblocks = { {4 * 1024, 1024} },
9349 .block_erase = spi_block_erase_20,
9350 }, {
sibradzicf62623c2020-03-14 17:21:34 +09009351 .eraseblocks = { {32 * 1024, 128} },
9352 .block_erase = spi_block_erase_52,
9353 }, {
Aarya Chaumal478e1792022-06-04 01:34:44 +05309354 .eraseblocks = { {64 * 1024, 64} },
9355 .block_erase = spi_block_erase_d8,
9356 }, {
sibradzicf62623c2020-03-14 17:21:34 +09009357 .eraseblocks = { {4 * 1024 * 1024, 1} },
9358 .block_erase = spi_block_erase_60,
9359 }, {
9360 .eraseblocks = { {4 * 1024 * 1024, 1} },
9361 .block_erase = spi_block_erase_c7,
9362 }
9363 },
9364 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit 6 is quad enable */
9365 .unlock = spi_disable_blockprotect_bp3_srwd,
9366 .write = spi_chip_write_256,
9367 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9368 .voltage = {1650, 3600},
9369 },
9370
9371 {
9372 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009373 .name = "MX25R6435F",
9374 .bustype = BUS_SPI,
9375 .manufacture_id = MACRONIX_ID,
9376 .model_id = MACRONIX_MX25R6435F,
9377 .total_size = 8192,
9378 .page_size = 256,
9379 /* OTP: 1024B total; enter 0xB1, exit 0xC1 */
9380 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9381 .tested = TEST_OK_PREW,
9382 .probe = probe_spi_rdid,
9383 .probe_timing = TIMING_ZERO,
9384 .block_erasers =
9385 {
9386 {
9387 .eraseblocks = { {4 * 1024, 2048} },
9388 .block_erase = spi_block_erase_20,
9389 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009390 .eraseblocks = { {32 * 1024, 256} },
9391 .block_erase = spi_block_erase_52,
9392 }, {
Aarya Chaumal478e1792022-06-04 01:34:44 +05309393 .eraseblocks = { {64 * 1024, 128} },
9394 .block_erase = spi_block_erase_d8,
9395 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009396 .eraseblocks = { {8 * 1024 * 1024, 1} },
9397 .block_erase = spi_block_erase_60,
9398 }, {
9399 .eraseblocks = { {8 * 1024 * 1024, 1} },
9400 .block_erase = spi_block_erase_c7,
9401 }
9402 },
9403 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9404 .unlock = spi_disable_blockprotect_bp3_srwd,
9405 .write = spi_chip_write_256,
9406 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9407 .voltage = {1650, 3600},
9408 },
9409
9410 {
9411 .vendor = "Macronix",
9412 .name = "MX25U12835F",
9413 .bustype = BUS_SPI,
9414 .manufacture_id = MACRONIX_ID,
9415 .model_id = MACRONIX_MX25U12835E,
Stefan Tauner5c316f92015-02-08 21:57:52 +00009416 .total_size = 16384,
9417 .page_size = 256,
9418 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
Alan Green1f9cc7d2019-07-01 11:10:45 +10009419 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner5c316f92015-02-08 21:57:52 +00009420 .tested = TEST_OK_PREW,
9421 .probe = probe_spi_rdid,
9422 .probe_timing = TIMING_ZERO,
9423 .block_erasers =
9424 {
9425 {
9426 .eraseblocks = { {4 * 1024, 4096} },
9427 .block_erase = spi_block_erase_20,
9428 }, {
9429 .eraseblocks = { {32 * 1024, 512} },
9430 .block_erase = spi_block_erase_52,
9431 }, {
9432 .eraseblocks = { {64 * 1024, 256} },
9433 .block_erase = spi_block_erase_d8,
9434 }, {
9435 .eraseblocks = { {16 * 1024 * 1024, 1} },
9436 .block_erase = spi_block_erase_60,
9437 }, {
9438 .eraseblocks = { {16 * 1024 * 1024, 1} },
9439 .block_erase = spi_block_erase_c7,
9440 }
9441 },
Angel Ponsf112e242018-09-30 20:14:17 +02009442 /* TODO: security register */
9443 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9444 .unlock = spi_disable_blockprotect_bp3_srwd,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009445 .write = spi_chip_write_256, /* Multi I/O supported */
Angel Ponsf112e242018-09-30 20:14:17 +02009446 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9447 .voltage = {1650, 2000},
9448 },
9449
9450 {
9451 .vendor = "Macronix",
Vincent Palatinf800f552013-03-15 02:03:16 +00009452 .name = "MX25U1635E",
9453 .bustype = BUS_SPI,
9454 .manufacture_id = MACRONIX_ID,
9455 .model_id = MACRONIX_MX25U1635E,
9456 .total_size = 2048,
9457 .page_size = 256,
9458 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9459 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
9460 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner5c316f92015-02-08 21:57:52 +00009461 .tested = TEST_OK_PR,
Vincent Palatinf800f552013-03-15 02:03:16 +00009462 .probe = probe_spi_rdid,
9463 .probe_timing = TIMING_ZERO,
9464 .block_erasers =
9465 {
9466 {
9467 .eraseblocks = { {4 * 1024, 512} },
9468 .block_erase = spi_block_erase_20,
9469 }, {
9470 .eraseblocks = { {32 * 1024, 64} },
9471 .block_erase = spi_block_erase_52,
9472 }, {
9473 .eraseblocks = { {64 * 1024, 32} },
9474 .block_erase = spi_block_erase_d8,
9475 }, {
9476 .eraseblocks = { {2 * 1024 * 1024, 1} },
9477 .block_erase = spi_block_erase_60,
9478 }, {
9479 .eraseblocks = { {2 * 1024 * 1024, 1} },
9480 .block_erase = spi_block_erase_c7,
9481 }
9482 },
9483 /* TODO: security register */
Stefan Tauner12f3d512014-05-27 21:27:27 +00009484 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009485 .unlock = spi_disable_blockprotect_bp3_srwd,
Vincent Palatinf800f552013-03-15 02:03:16 +00009486 .write = spi_chip_write_256,
9487 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9488 .voltage = {1650, 2000},
9489 },
9490
9491 {
9492 .vendor = "Macronix",
David Tomaschikf75d8c52019-06-20 09:49:01 -07009493 .name = "MX25U25635F",
9494 .bustype = BUS_SPI,
9495 .manufacture_id = MACRONIX_ID,
9496 .model_id = MACRONIX_MX25U25635F,
9497 .total_size = 32768,
9498 .page_size = 256,
9499 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9500 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_4BA,
Nikolai Artemiev148254b2021-03-23 17:21:10 +11009501 .tested = TEST_OK_PREW,
David Tomaschikf75d8c52019-06-20 09:49:01 -07009502 .probe = probe_spi_rdid,
9503 .probe_timing = TIMING_ZERO,
9504 .block_erasers =
9505 {
9506 {
9507 .eraseblocks = { {4 * 1024, 8192} },
9508 .block_erase = spi_block_erase_21,
9509 }, {
9510 .eraseblocks = { {4 * 1024, 8192} },
9511 .block_erase = spi_block_erase_20,
9512 }, {
9513 .eraseblocks = { {32 * 1024, 1024} },
9514 .block_erase = spi_block_erase_5c,
9515 }, {
9516 .eraseblocks = { {32 * 1024, 1024} },
9517 .block_erase = spi_block_erase_52,
9518 }, {
9519 .eraseblocks = { {64 * 1024, 512} },
9520 .block_erase = spi_block_erase_dc,
9521 }, {
9522 .eraseblocks = { {64 * 1024, 512} },
9523 .block_erase = spi_block_erase_d8,
9524 }, {
9525 .eraseblocks = { {32 * 1024 * 1024, 1} },
9526 .block_erase = spi_block_erase_60,
9527 }, {
9528 .eraseblocks = { {32 * 1024 * 1024, 1} },
9529 .block_erase = spi_block_erase_c7,
9530 }
9531 },
9532 /* TODO: security register */
9533 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9534 .unlock = spi_disable_blockprotect_bp3_srwd,
9535 .write = spi_chip_write_256, /* Multi I/O supported */
9536 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9537 .voltage = {1650, 2000},
9538 },
9539
9540 {
9541 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009542 .name = "MX25U3235E/F",
9543 .bustype = BUS_SPI,
9544 .manufacture_id = MACRONIX_ID,
9545 .model_id = MACRONIX_MX25U3235E,
9546 .total_size = 4096,
9547 .page_size = 256,
9548 /* F model supports SFDP */
9549 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9550 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
9551 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
9552 .tested = TEST_OK_PREW,
9553 .probe = probe_spi_rdid,
9554 .probe_timing = TIMING_ZERO,
9555 .block_erasers =
9556 {
9557 {
9558 .eraseblocks = { {4 * 1024, 1024} },
9559 .block_erase = spi_block_erase_20,
9560 }, {
9561 .eraseblocks = { {32 * 1024, 128} },
9562 .block_erase = spi_block_erase_52,
9563 }, {
9564 .eraseblocks = { {64 * 1024, 64} },
9565 .block_erase = spi_block_erase_d8,
9566 }, {
9567 .eraseblocks = { {4 * 1024 * 1024, 1} },
9568 .block_erase = spi_block_erase_60,
9569 }, {
9570 .eraseblocks = { {4 * 1024 * 1024, 1} },
9571 .block_erase = spi_block_erase_c7,
9572 }
9573 },
9574 /* TODO: security register */
9575 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9576 .unlock = spi_disable_blockprotect_bp3_srwd,
9577 .write = spi_chip_write_256,
9578 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9579 .voltage = {1650, 2000},
9580 },
9581
9582 {
9583 .vendor = "Macronix",
Daniel Thompsoncadd4202018-06-04 13:52:22 +01009584 .name = "MX25U51245G",
9585 .bustype = BUS_SPI,
9586 .manufacture_id = MACRONIX_ID,
9587 .model_id = MACRONIX_MX25U51245G,
9588 .total_size = 65536,
9589 .page_size = 256,
9590 /* OTP: 512B factory programmed and 512B customer programmed; enter 0xB1, exit 0xC1 */
9591 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_4BA,
9592 .tested = TEST_OK_PREW,
9593 .probe = probe_spi_rdid,
9594 .probe_timing = TIMING_ZERO,
9595 .block_erasers =
9596 {
9597 {
9598 .eraseblocks = { {4 * 1024, 16384} },
9599 .block_erase = spi_block_erase_21,
9600 }, {
9601 .eraseblocks = { {4 * 1024, 16384} },
9602 .block_erase = spi_block_erase_20,
9603 }, {
9604 .eraseblocks = { {32 * 1024, 2048} },
9605 .block_erase = spi_block_erase_5c,
9606 }, {
9607 .eraseblocks = { {32 * 1024, 2048} },
9608 .block_erase = spi_block_erase_52,
9609 }, {
9610 .eraseblocks = { {64 * 1024, 1024} },
9611 .block_erase = spi_block_erase_dc,
9612 }, {
9613 .eraseblocks = { {64 * 1024, 1024} },
9614 .block_erase = spi_block_erase_d8,
9615 }, {
9616 .eraseblocks = { {64 * 1024 * 1024, 1} },
9617 .block_erase = spi_block_erase_60,
9618 }, {
9619 .eraseblocks = { {64 * 1024 * 1024, 1} },
9620 .block_erase = spi_block_erase_c7,
9621 }
9622 },
9623 /* TODO: security register */
9624 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9625 .unlock = spi_disable_blockprotect_bp3_srwd,
9626 .write = spi_chip_write_256, /* Multi I/O supported */
9627 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9628 .voltage = {1650, 2000},
9629 },
9630
9631 {
9632 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009633 .name = "MX25U6435E/F",
Stefan Tauner40bc96f2015-01-10 09:33:14 +00009634 .bustype = BUS_SPI,
9635 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009636 .model_id = MACRONIX_MX25U6435E,
Stefan Tauner40bc96f2015-01-10 09:33:14 +00009637 .total_size = 8192,
9638 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009639 /* F model supports SFDP */
9640 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9641 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
9642 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner40bc96f2015-01-10 09:33:14 +00009643 .tested = TEST_OK_PREW,
9644 .probe = probe_spi_rdid,
9645 .probe_timing = TIMING_ZERO,
9646 .block_erasers =
9647 {
9648 {
9649 .eraseblocks = { {4 * 1024, 2048} },
9650 .block_erase = spi_block_erase_20,
9651 }, {
Stefan Tauner40bc96f2015-01-10 09:33:14 +00009652 .eraseblocks = { {32 * 1024, 256} },
9653 .block_erase = spi_block_erase_52,
9654 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009655 .eraseblocks = { {64 * 1024, 128} },
9656 .block_erase = spi_block_erase_d8,
9657 }, {
Stefan Tauner40bc96f2015-01-10 09:33:14 +00009658 .eraseblocks = { {8 * 1024 * 1024, 1} },
9659 .block_erase = spi_block_erase_60,
9660 }, {
9661 .eraseblocks = { {8 * 1024 * 1024, 1} },
9662 .block_erase = spi_block_erase_c7,
9663 }
9664 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10009665 /* TODO: security register */
Nathan Rennie-Waldock5a7f9422018-08-10 15:35:23 +01009666 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9667 .unlock = spi_disable_blockprotect_bp3_srwd,
9668 .write = spi_chip_write_256,
9669 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Alan Green1f9cc7d2019-07-01 11:10:45 +10009670 .voltage = {1650, 2000},
9671 },
9672
9673 {
9674 .vendor = "Macronix",
9675 .name = "MX25U8032E",
9676 .bustype = BUS_SPI,
9677 .manufacture_id = MACRONIX_ID,
9678 .model_id = MACRONIX_MX25U8032E,
9679 .total_size = 1024,
9680 .page_size = 256,
9681 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9682 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9683 .tested = TEST_OK_PREW,
9684 .probe = probe_spi_rdid,
9685 .probe_timing = TIMING_ZERO,
9686 .block_erasers =
9687 {
9688 {
9689 .eraseblocks = { {4 * 1024, 256} },
9690 .block_erase = spi_block_erase_20,
9691 }, {
9692 .eraseblocks = { {32 * 1024, 32} },
9693 .block_erase = spi_block_erase_52,
9694 }, {
9695 .eraseblocks = { {64 * 1024, 16} },
9696 .block_erase = spi_block_erase_d8,
9697 }, {
9698 .eraseblocks = { {1024 * 1024, 1} },
9699 .block_erase = spi_block_erase_60,
9700 }, {
9701 .eraseblocks = { {1024 * 1024, 1} },
9702 .block_erase = spi_block_erase_c7,
9703 }
9704 },
9705 /* TODO: security register */
9706 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9707 .unlock = spi_disable_blockprotect_bp3_srwd,
9708 .write = spi_chip_write_256,
9709 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9710 .voltage = {1650, 2000},
Nathan Rennie-Waldock5a7f9422018-08-10 15:35:23 +01009711 },
9712
9713 {
9714 .vendor = "Macronix",
Mark Panajotovic502a9132009-08-24 01:42:24 +00009715 .name = "MX29F001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009716 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009717 .manufacture_id = MACRONIX_ID,
9718 .model_id = MACRONIX_MX29F001B,
Mark Panajotovic502a9132009-08-24 01:42:24 +00009719 .total_size = 128,
9720 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009721 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9722 .tested = TEST_UNTESTED,
9723 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009724 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00009725 .block_erasers =
9726 {
9727 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00009728 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00009729 {8 * 1024, 1},
9730 {4 * 1024, 2},
9731 {8 * 1024, 2},
9732 {32 * 1024, 1},
9733 {64 * 1024, 1},
9734 },
Sean Nelson35727f72010-01-28 23:55:12 +00009735 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009736 }, {
9737 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009738 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009739 }
9740 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009741 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00009742 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009743 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00009744 },
9745
9746 {
9747 .vendor = "Macronix",
9748 .name = "MX29F001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009749 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009750 .manufacture_id = MACRONIX_ID,
9751 .model_id = MACRONIX_MX29F001T,
Mark Panajotovic502a9132009-08-24 01:42:24 +00009752 .total_size = 128,
9753 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009754 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stefan Tauner74c6ec62011-05-18 01:31:46 +00009755 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00009756 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009757 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00009758 .block_erasers =
9759 {
9760 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00009761 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00009762 {64 * 1024, 1},
9763 {32 * 1024, 1},
9764 {8 * 1024, 2},
9765 {4 * 1024, 2},
9766 {8 * 1024, 1},
9767 },
Sean Nelson35727f72010-01-28 23:55:12 +00009768 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009769 }, {
9770 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009771 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009772 }
9773 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009774 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00009775 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009776 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00009777 },
9778
9779 {
9780 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00009781 .name = "MX29F002(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009782 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009783 .manufacture_id = MACRONIX_ID,
9784 .model_id = MACRONIX_MX29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009785 .total_size = 256,
9786 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009787 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009788 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00009789 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009790 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009791 .block_erasers =
9792 {
9793 {
9794 .eraseblocks = {
9795 {16 * 1024, 1},
9796 {8 * 1024, 2},
9797 {32 * 1024, 1},
9798 {64 * 1024, 3},
9799 },
Sean Nelson35727f72010-01-28 23:55:12 +00009800 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009801 }, {
9802 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009803 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009804 },
9805 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009806 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009807 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009808 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009809 },
9810
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009811 {
9812 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00009813 .name = "MX29F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009814 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009815 .manufacture_id = MACRONIX_ID,
9816 .model_id = MACRONIX_MX29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009817 .total_size = 256,
9818 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009819 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00009820 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00009821 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009822 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009823 .block_erasers =
9824 {
9825 {
9826 .eraseblocks = {
9827 {64 * 1024, 3},
9828 {32 * 1024, 1},
9829 {8 * 1024, 2},
9830 {16 * 1024, 1},
9831 },
Sean Nelson35727f72010-01-28 23:55:12 +00009832 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009833 }, {
9834 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009835 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009836 },
9837 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009838 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009839 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009840 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009841 },
9842
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009843 {
9844 .vendor = "Macronix",
Daniele Forsi6a18a932014-07-13 14:53:45 +00009845 .name = "MX29F022(N)B",
9846 .bustype = BUS_PARALLEL,
9847 .manufacture_id = MACRONIX_ID,
9848 .model_id = MACRONIX_MX29F022B,
9849 .total_size = 256,
9850 .page_size = 0, /* unused */
9851 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9852 .tested = TEST_UNTESTED,
9853 .probe = probe_jedec,
9854 .probe_timing = TIMING_ZERO,
9855 .block_erasers =
9856 {
9857 {
9858 .eraseblocks = {
9859 {16 * 1024, 1},
9860 {8 * 1024, 2},
9861 {32 * 1024, 1},
9862 {64 * 1024, 3},
9863 },
9864 .block_erase = erase_sector_jedec,
9865 }, {
9866 .eraseblocks = { {256 * 1024, 1} },
9867 .block_erase = erase_chip_block_jedec,
9868 }
9869 },
9870 .write = write_jedec_1,
9871 .read = read_memmapped,
9872 .voltage = {4500, 5500},
9873 },
9874
9875 {
9876 .vendor = "Macronix",
9877 .name = "MX29F022(N)T",
9878 .bustype = BUS_PARALLEL,
9879 .manufacture_id = MACRONIX_ID,
9880 .model_id = MACRONIX_MX29F022T,
9881 .total_size = 256,
9882 .page_size = 0, /* unused */
9883 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9884 .tested = TEST_OK_PREW,
9885 .probe = probe_jedec,
9886 .probe_timing = TIMING_ZERO,
9887 .block_erasers =
9888 {
9889 {
9890 .eraseblocks = {
9891 {64 * 1024, 3},
9892 {32 * 1024, 1},
9893 {8 * 1024, 2},
9894 {16 * 1024, 1},
9895 },
9896 .block_erase = erase_sector_jedec,
9897 }, {
9898 .eraseblocks = { {256 * 1024, 1} },
9899 .block_erase = erase_chip_block_jedec,
9900 }
9901 },
9902 .write = write_jedec_1,
9903 .read = read_memmapped,
9904 .voltage = {4500, 5500},
9905 },
9906
9907 {
9908 .vendor = "Macronix",
Joshua Roysf1324e02010-09-16 00:51:51 +00009909 .name = "MX29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009910 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00009911 .manufacture_id = MACRONIX_ID,
9912 .model_id = MACRONIX_MX29F040,
9913 .total_size = 512,
9914 .page_size = 64 * 1024,
9915 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9916 .tested = TEST_UNTESTED,
9917 .probe = probe_jedec,
9918 .probe_timing = TIMING_ZERO,
9919 .block_erasers =
9920 {
9921 {
9922 .eraseblocks = { {64 * 1024, 8} },
9923 .block_erase = erase_sector_jedec,
9924 }, {
9925 .eraseblocks = { {512 * 1024, 1} },
9926 .block_erase = erase_chip_block_jedec,
9927 },
9928 },
9929 .write = write_jedec_1,
9930 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009931 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00009932 },
9933
9934 {
9935 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009936 .name = "MX29GL128F",
9937 .bustype = BUS_PARALLEL,
9938 .manufacture_id = MACRONIX_ID,
9939 .model_id = MACRONIX_MX29GL128F,
9940 .total_size = 16384,
9941 .page_size = 128 * 1024, /* actual page size is 16 */
9942 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9943 .tested = TEST_UNTESTED,
9944 .probe = probe_jedec_29gl,
9945 .probe_timing = TIMING_ZERO,
9946 .block_erasers =
9947 {
9948 {
9949 .eraseblocks = { {128 * 1024, 128} },
9950 .block_erase = erase_sector_jedec,
9951 }, {
9952 .eraseblocks = { {16 * 1024 * 1024, 1} },
9953 .block_erase = erase_chip_block_jedec,
9954 },
9955 },
9956 .write = write_jedec_1,
9957 .read = read_memmapped,
9958 .voltage = {2700, 3600},
9959 },
9960
9961 {
9962 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00009963 .name = "MX29GL320EB",
9964 .bustype = BUS_PARALLEL,
9965 .manufacture_id = MACRONIX_ID,
9966 .model_id = MACRONIX_MX29GL320EB,
9967 .total_size = 4096,
9968 .page_size = 128 * 1024, /* actual page size is 16 */
9969 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9970 .tested = TEST_UNTESTED,
9971 .probe = probe_jedec_29gl,
9972 .probe_timing = TIMING_ZERO,
9973 .block_erasers =
9974 {
9975 {
9976 .eraseblocks = {
9977 {8 * 1024, 8},
9978 {64 * 1024, 63},
9979 },
9980 .block_erase = erase_sector_jedec,
9981 }, {
9982 .eraseblocks = { {4 * 1024 * 1024, 1} },
9983 .block_erase = erase_chip_block_jedec,
9984 },
9985 },
9986 .write = write_jedec_1,
9987 .read = read_memmapped,
9988 .voltage = {2700, 3600},
9989 },
9990
9991 {
9992 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009993 .name = "MX29GL320EH/L",
9994 .bustype = BUS_PARALLEL,
9995 .manufacture_id = MACRONIX_ID,
9996 .model_id = MACRONIX_MX29GL320EHL,
9997 .total_size = 4096,
9998 .page_size = 128 * 1024, /* actual page size is 16 */
9999 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
10000 .tested = TEST_UNTESTED,
10001 .probe = probe_jedec_29gl,
10002 .probe_timing = TIMING_ZERO,
10003 .block_erasers =
10004 {
10005 {
10006 .eraseblocks = { {64 * 1024, 64} },
10007 .block_erase = erase_sector_jedec,
10008 }, {
10009 .eraseblocks = { {4 * 1024 * 1024, 1} },
10010 .block_erase = erase_chip_block_jedec,
10011 },
10012 },
10013 .write = write_jedec_1,
10014 .read = read_memmapped,
10015 .voltage = {2700, 3600},
10016 },
10017
10018 {
10019 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000010020 .name = "MX29GL320ET",
10021 .bustype = BUS_PARALLEL,
10022 .manufacture_id = MACRONIX_ID,
10023 .model_id = MACRONIX_MX29GL320ET,
10024 .total_size = 4096,
10025 .page_size = 128 * 1024, /* actual page size is 16 */
10026 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
10027 .tested = TEST_UNTESTED,
10028 .probe = probe_jedec_29gl,
10029 .probe_timing = TIMING_ZERO,
10030 .block_erasers =
10031 {
10032 {
10033 .eraseblocks = {
10034 {64 * 1024, 63},
10035 {8 * 1024, 8},
10036 },
10037 .block_erase = erase_sector_jedec,
10038 }, {
10039 .eraseblocks = { {4 * 1024 * 1024, 1} },
10040 .block_erase = erase_chip_block_jedec,
10041 },
10042 },
10043 .write = write_jedec_1,
10044 .read = read_memmapped,
10045 .voltage = {2700, 3600},
10046 },
10047
10048 {
10049 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000010050 .name = "MX29GL640EB",
10051 .bustype = BUS_PARALLEL,
10052 .manufacture_id = MACRONIX_ID,
10053 .model_id = MACRONIX_MX29GL640EB,
10054 .total_size = 8192,
10055 .page_size = 128 * 1024, /* actual page size is 16 */
10056 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
10057 .tested = TEST_UNTESTED,
10058 .probe = probe_jedec_29gl,
10059 .probe_timing = TIMING_ZERO,
10060 .block_erasers =
10061 {
10062 {
10063 .eraseblocks = {
10064 {8 * 1024, 8},
10065 {64 * 1024, 127},
10066 },
10067 .block_erase = erase_sector_jedec,
10068 }, {
10069 .eraseblocks = { {8 * 1024 * 1024, 1} },
10070 .block_erase = erase_chip_block_jedec,
10071 },
10072 },
10073 .write = write_jedec_1,
10074 .read = read_memmapped,
10075 .voltage = {2700, 3600},
10076 },
10077
10078 {
10079 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010080 .name = "MX29GL640EH/L",
10081 .bustype = BUS_PARALLEL,
10082 .manufacture_id = MACRONIX_ID,
10083 .model_id = MACRONIX_MX29GL640EHL,
10084 .total_size = 8192,
10085 .page_size = 128 * 1024, /* actual page size is 16 */
10086 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
10087 .tested = TEST_UNTESTED,
10088 .probe = probe_jedec_29gl,
10089 .probe_timing = TIMING_ZERO,
10090 .block_erasers =
10091 {
10092 {
10093 .eraseblocks = { {64 * 1024, 128} },
10094 .block_erase = erase_sector_jedec,
10095 }, {
10096 .eraseblocks = { {8 * 1024 * 1024, 1} },
10097 .block_erase = erase_chip_block_jedec,
10098 },
10099 },
10100 .write = write_jedec_1,
10101 .read = read_memmapped,
10102 .voltage = {2700, 3600},
10103 },
10104
10105 {
10106 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000010107 .name = "MX29GL640ET",
10108 .bustype = BUS_PARALLEL,
10109 .manufacture_id = MACRONIX_ID,
10110 .model_id = MACRONIX_MX29GL640ET,
10111 .total_size = 8192,
10112 .page_size = 128 * 1024, /* actual page size is 16 */
10113 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
10114 .tested = TEST_UNTESTED,
10115 .probe = probe_jedec_29gl,
10116 .probe_timing = TIMING_ZERO,
10117 .block_erasers =
10118 {
10119 {
10120 .eraseblocks = {
10121 {64 * 1024, 127},
10122 {8 * 1024, 8},
10123 },
10124 .block_erase = erase_sector_jedec,
10125 }, {
10126 .eraseblocks = { {8 * 1024 * 1024, 1} },
10127 .block_erase = erase_chip_block_jedec,
10128 },
10129 },
10130 .write = write_jedec_1,
10131 .read = read_memmapped,
10132 .voltage = {2700, 3600},
10133 },
10134
10135 {
10136 .vendor = "Macronix",
Carl-Daniel Hailfinger350a0c32009-07-24 13:59:27 +000010137 .name = "MX29LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010138 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010139 .manufacture_id = MACRONIX_ID,
10140 .model_id = MACRONIX_MX29LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010141 .total_size = 512,
10142 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010143 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
10144 .tested = TEST_UNTESTED,
10145 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +000010146 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +000010147 .block_erasers =
10148 {
10149 {
Stefan Tauner6697f712014-08-06 15:09:15 +000010150 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +000010151 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +000010152 }, {
10153 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000010154 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +000010155 },
10156 },
Michael Karcher1c296ca2009-11-27 17:49:42 +000010157 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010158 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010159 .voltage = {2700, 3600},
Carl-Daniel Hailfinger7de86392008-12-10 10:32:05 +000010160 },
10161
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010162 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010163 .vendor = "Macronix",
Hemanth Guruva Reddya136d422019-07-11 11:08:27 +020010164 .name = "MX66L51235F/MX25L51245G",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010165 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010166 .manufacture_id = MACRONIX_ID,
10167 .model_id = MACRONIX_MX66L51235F,
10168 .total_size = 65536,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010169 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010170 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
10171 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010172 .tested = TEST_OK_PREW,
10173 .probe = probe_spi_rdid,
10174 .probe_timing = TIMING_ZERO,
10175 .block_erasers =
10176 {
10177 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010178 .eraseblocks = { {4 * 1024, 16384} },
10179 .block_erase = spi_block_erase_21,
10180 }, {
10181 .eraseblocks = { {4 * 1024, 16384} },
10182 .block_erase = spi_block_erase_20,
10183 }, {
10184 .eraseblocks = { {32 * 1024, 2048} },
10185 .block_erase = spi_block_erase_5c,
10186 }, {
10187 .eraseblocks = { {32 * 1024, 2048} },
10188 .block_erase = spi_block_erase_52,
10189 }, {
10190 .eraseblocks = { {64 * 1024, 1024} },
10191 .block_erase = spi_block_erase_dc,
10192 }, {
10193 .eraseblocks = { {64 * 1024, 1024} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010194 .block_erase = spi_block_erase_d8,
10195 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010196 .eraseblocks = { {64 * 1024 * 1024, 1} },
10197 .block_erase = spi_block_erase_60,
10198 }, {
10199 .eraseblocks = { {64 * 1024 * 1024, 1} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010200 .block_erase = spi_block_erase_c7,
10201 }
10202 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100010203 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
10204 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010205 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010206 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010207 .read = spi_chip_read, /* Fast read (0x0B) supported */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010208 .voltage = {2700, 3600},
10209 },
10210
Patrick Rudolph3ba83152021-06-08 10:52:19 +020010211 {
10212 .vendor = "Macronix",
10213 .name = "MX66L1G45G",
10214 .bustype = BUS_SPI,
10215 .manufacture_id = MACRONIX_ID,
10216 .model_id = MACRONIX_MX66L1G45G,
10217 .total_size = 131072,
10218 .page_size = 256,
10219 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
10220 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
10221 .tested = TEST_OK_PREW,
10222 .probe = probe_spi_rdid,
10223 .probe_timing = TIMING_ZERO,
10224 .block_erasers =
10225 {
10226 {
10227 .eraseblocks = { {4 * 1024, 32768} },
10228 .block_erase = spi_block_erase_21,
10229 }, {
10230 .eraseblocks = { {4 * 1024, 32768} },
10231 .block_erase = spi_block_erase_20,
10232 }, {
10233 .eraseblocks = { {32 * 1024, 4096} },
10234 .block_erase = spi_block_erase_5c,
10235 }, {
10236 .eraseblocks = { {32 * 1024, 4096} },
10237 .block_erase = spi_block_erase_52,
10238 }, {
10239 .eraseblocks = { {64 * 1024, 2048} },
10240 .block_erase = spi_block_erase_dc,
10241 }, {
10242 .eraseblocks = { {64 * 1024, 2048} },
10243 .block_erase = spi_block_erase_d8,
10244 }, {
10245 .eraseblocks = { {128 * 1024 * 1024, 1} },
10246 .block_erase = spi_block_erase_60,
10247 }, {
10248 .eraseblocks = { {128 * 1024 * 1024, 1} },
10249 .block_erase = spi_block_erase_c7,
10250 }
10251 },
10252 /* TODO: security register and SBLK/SBULK, configuration register */
10253 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
10254 .unlock = spi_disable_blockprotect_bp3_srwd,
10255 .write = spi_chip_write_256,
10256 .read = spi_chip_read, /* Fast read (0x0B) supported */
10257 .voltage = {2700, 3600},
10258 },
10259
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010260 /* The ST M25P05 is a bit of a problem. It has the same ID as the
10261 * ST M25P05-A in RES mode, but supports only 128 byte writes instead
10262 * of 256 byte writes. We rely heavily on the fact that probe_spi_res1
10263 * only is successful if RDID does not work.
10264 */
10265 {
10266 .vendor = "Micron/Numonyx/ST",
10267 .name = "M25P05",
10268 .bustype = BUS_SPI,
10269 .manufacture_id = 0, /* Not used. */
10270 .model_id = ST_M25P05_RES,
10271 .total_size = 64,
10272 .page_size = 256,
10273 .feature_bits = FEATURE_WRSR_WREN,
10274 .tested = TEST_UNTESTED,
10275 .probe = probe_spi_res1,
10276 .probe_timing = TIMING_ZERO,
10277 .block_erasers =
10278 {
10279 {
10280 .eraseblocks = { {32 * 1024, 2} },
10281 .block_erase = spi_block_erase_d8,
10282 }, {
10283 .eraseblocks = { {64 * 1024, 1} },
10284 .block_erase = spi_block_erase_c7,
10285 }
10286 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010287 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010288 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010289 .write = spi_chip_write_1, /* 128 */
10290 .read = spi_chip_read,
10291 .voltage = {2700, 3600},
10292 },
10293
10294 {
10295 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010296 .name = "M25P05-A",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010297 .bustype = BUS_SPI,
10298 .manufacture_id = ST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010299 .model_id = ST_M25P05A,
10300 .total_size = 64,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010301 .page_size = 256,
10302 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000010303 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010304 .probe = probe_spi_rdid,
10305 .probe_timing = TIMING_ZERO,
10306 .block_erasers =
10307 {
10308 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010309 .eraseblocks = { {32 * 1024, 2} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010310 .block_erase = spi_block_erase_d8,
10311 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010312 .eraseblocks = { {64 * 1024, 1} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010313 .block_erase = spi_block_erase_c7,
10314 }
10315 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010316 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010317 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010318 .write = spi_chip_write_256,
10319 .read = spi_chip_read,
10320 .voltage = {2700, 3600},
10321 },
10322
10323 /* The ST M25P10 has the same problem as the M25P05. */
10324 {
10325 .vendor = "Micron/Numonyx/ST",
10326 .name = "M25P10",
10327 .bustype = BUS_SPI,
10328 .manufacture_id = 0, /* Not used. */
10329 .model_id = ST_M25P10_RES,
10330 .total_size = 128,
10331 .page_size = 256,
10332 .feature_bits = FEATURE_WRSR_WREN,
10333 .tested = TEST_UNTESTED,
10334 .probe = probe_spi_res1,
10335 .probe_timing = TIMING_ZERO,
10336 .block_erasers =
10337 {
10338 {
10339 .eraseblocks = { {32 * 1024, 4} },
10340 .block_erase = spi_block_erase_d8,
10341 }, {
10342 .eraseblocks = { {128 * 1024, 1} },
10343 .block_erase = spi_block_erase_c7,
10344 }
10345 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010346 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010347 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010348 .write = spi_chip_write_1, /* 128 */
10349 .read = spi_chip_read,
10350 .voltage = {2700, 3600},
10351 },
10352
10353 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010354 .vendor = "Micron/Numonyx/ST",
10355 .name = "M25P10-A",
10356 .bustype = BUS_SPI,
10357 .manufacture_id = ST_ID,
10358 .model_id = ST_M25P10A,
10359 .total_size = 128,
10360 .page_size = 256,
10361 .feature_bits = FEATURE_WRSR_WREN,
10362 .tested = TEST_OK_PREW,
10363 .probe = probe_spi_rdid,
10364 .probe_timing = TIMING_ZERO,
10365 .block_erasers =
10366 {
10367 {
10368 .eraseblocks = { {32 * 1024, 4} },
10369 .block_erase = spi_block_erase_d8,
10370 }, {
10371 .eraseblocks = { {128 * 1024, 1} },
10372 .block_erase = spi_block_erase_c7,
10373 }
10374 },
10375 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
10376 .unlock = spi_disable_blockprotect_bp3_srwd,
10377 .write = spi_chip_write_256,
10378 .read = spi_chip_read,
10379 .voltage = {2700, 3600},
10380 },
10381
10382 {
10383 .vendor = "Micron/Numonyx/ST",
10384 .name = "M25P128",
10385 .bustype = BUS_SPI,
10386 .manufacture_id = ST_ID,
10387 .model_id = ST_M25P128,
10388 .total_size = 16384,
10389 .page_size = 256,
10390 .feature_bits = FEATURE_WRSR_WREN,
10391 .tested = TEST_OK_PREW,
10392 .probe = probe_spi_rdid,
10393 .probe_timing = TIMING_ZERO,
10394 .block_erasers =
10395 {
10396 {
10397 .eraseblocks = { {256 * 1024, 64} },
10398 .block_erase = spi_block_erase_d8,
10399 }, {
10400 .eraseblocks = { {16 * 1024 * 1024, 1} },
10401 .block_erase = spi_block_erase_c7,
10402 }
10403 },
10404 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
10405 .unlock = spi_disable_blockprotect_bp3_srwd,
10406 .write = spi_chip_write_256,
10407 .read = spi_chip_read,
10408 .voltage = {2700, 3600},
10409 },
10410
10411 {
10412 .vendor = "Micron/Numonyx/ST",
10413 .name = "M25P16",
10414 .bustype = BUS_SPI,
10415 .manufacture_id = ST_ID,
10416 .model_id = ST_M25P16,
10417 .total_size = 2048,
10418 .page_size = 256,
10419 .feature_bits = FEATURE_WRSR_WREN,
10420 .tested = TEST_OK_PREW,
10421 .probe = probe_spi_rdid,
10422 .probe_timing = TIMING_ZERO,
10423 .block_erasers =
10424 {
10425 {
10426 .eraseblocks = { {64 * 1024, 32} },
10427 .block_erase = spi_block_erase_d8,
10428 }, {
10429 .eraseblocks = { {2 * 1024 * 1024, 1} },
10430 .block_erase = spi_block_erase_c7,
10431 }
10432 },
10433 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
10434 .unlock = spi_disable_blockprotect_bp3_srwd,
10435 .write = spi_chip_write_256,
10436 .read = spi_chip_read,
10437 .voltage = {2700, 3600},
10438 },
10439
10440 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010441 .vendor = "Micron/Numonyx/ST", /* Numonyx */
10442 .name = "M25P20",
10443 .bustype = BUS_SPI,
10444 .manufacture_id = ST_ID,
10445 .model_id = ST_M25P20,
10446 .total_size = 256,
10447 .page_size = 256,
10448 .feature_bits = FEATURE_WRSR_WREN,
10449 .tested = TEST_UNTESTED,
10450 .probe = probe_spi_rdid,
10451 .probe_timing = TIMING_ZERO,
10452 .block_erasers =
10453 {
10454 {
10455 .eraseblocks = { {64 * 1024, 4} },
10456 .block_erase = spi_block_erase_d8,
10457 }, {
10458 .eraseblocks = { {256 * 1024, 1} },
10459 .block_erase = spi_block_erase_c7,
10460 }
10461 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010462 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010463 .unlock = spi_disable_blockprotect,
10464 .write = spi_chip_write_256,
10465 .read = spi_chip_read, /* Fast read (0x0B) supported */
10466 .voltage = {2700, 3600},
10467 },
10468
10469 {
10470 .vendor = "Micron/Numonyx/ST",
10471 .name = "M25P20-old",
10472 .bustype = BUS_SPI,
10473 .manufacture_id = 0, /* Not used. */
10474 .model_id = ST_M25P20_RES,
10475 .total_size = 256,
10476 .page_size = 256,
10477 .feature_bits = FEATURE_WRSR_WREN,
10478 .tested = TEST_OK_PREW,
10479 .probe = probe_spi_res1,
10480 .probe_timing = TIMING_ZERO,
10481 .block_erasers =
10482 {
10483 {
10484 .eraseblocks = { {64 * 1024, 4} },
10485 .block_erase = spi_block_erase_d8,
10486 }, {
10487 .eraseblocks = { {256 * 1024, 1} },
10488 .block_erase = spi_block_erase_c7,
10489 }
10490 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010491 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010492 .unlock = spi_disable_blockprotect,
10493 .write = spi_chip_write_256,
10494 .read = spi_chip_read, /* Fast read (0x0B) supported */
10495 .voltage = {2700, 3600},
10496 },
10497
10498 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010499 .vendor = "Micron/Numonyx/ST",
10500 .name = "M25P32",
10501 .bustype = BUS_SPI,
10502 .manufacture_id = ST_ID,
10503 .model_id = ST_M25P32,
10504 .total_size = 4096,
10505 .page_size = 256,
10506 .feature_bits = FEATURE_WRSR_WREN,
10507 .tested = TEST_OK_PREW,
10508 .probe = probe_spi_rdid,
10509 .probe_timing = TIMING_ZERO,
10510 .block_erasers =
10511 {
10512 {
10513 .eraseblocks = { {64 * 1024, 64} },
10514 .block_erase = spi_block_erase_d8,
10515 }, {
10516 .eraseblocks = { {4 * 1024 * 1024, 1} },
10517 .block_erase = spi_block_erase_c7,
10518 }
10519 },
10520 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
10521 .unlock = spi_disable_blockprotect_bp3_srwd,
10522 .write = spi_chip_write_256,
10523 .read = spi_chip_read,
10524 .voltage = {2700, 3600},
10525 },
10526
10527 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010528 .vendor = "Micron/Numonyx/ST", /* Numonyx */
10529 .name = "M25P40",
10530 .bustype = BUS_SPI,
10531 .manufacture_id = ST_ID,
10532 .model_id = ST_M25P40,
10533 .total_size = 512,
10534 .page_size = 256,
10535 .feature_bits = FEATURE_WRSR_WREN,
10536 .tested = TEST_OK_PREW,
10537 .probe = probe_spi_rdid,
10538 .probe_timing = TIMING_ZERO,
10539 .block_erasers =
10540 {
10541 {
10542 .eraseblocks = { {64 * 1024, 8} },
10543 .block_erase = spi_block_erase_d8,
10544 }, {
10545 .eraseblocks = { {512 * 1024, 1} },
10546 .block_erase = spi_block_erase_c7,
10547 }
10548 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010549 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010550 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010551 .write = spi_chip_write_256,
10552 .read = spi_chip_read,
10553 .voltage = {2700, 3600},
10554 },
10555
10556 {
10557 .vendor = "Micron/Numonyx/ST",
10558 .name = "M25P40-old",
10559 .bustype = BUS_SPI,
10560 .manufacture_id = 0, /* Not used. */
10561 .model_id = ST_M25P40_RES,
10562 .total_size = 512,
10563 .page_size = 256,
10564 .feature_bits = FEATURE_WRSR_WREN,
10565 .tested = TEST_UNTESTED,
10566 .probe = probe_spi_res1,
10567 .probe_timing = TIMING_ZERO,
10568 .block_erasers =
10569 {
10570 {
10571 .eraseblocks = { {64 * 1024, 8} },
10572 .block_erase = spi_block_erase_d8,
10573 }, {
10574 .eraseblocks = { {512 * 1024, 1} },
10575 .block_erase = spi_block_erase_c7,
10576 }
10577 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010578 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010579 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010580 .write = spi_chip_write_256,
10581 .read = spi_chip_read,
10582 },
10583
10584 {
10585 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010586 .name = "M25P64",
10587 .bustype = BUS_SPI,
10588 .manufacture_id = ST_ID,
10589 .model_id = ST_M25P64,
10590 .total_size = 8192,
10591 .page_size = 256,
10592 .feature_bits = FEATURE_WRSR_WREN,
10593 .tested = TEST_OK_PREW,
10594 .probe = probe_spi_rdid,
10595 .probe_timing = TIMING_ZERO,
10596 .block_erasers =
10597 {
10598 {
10599 .eraseblocks = { {64 * 1024, 128} },
10600 .block_erase = spi_block_erase_d8,
10601 }, {
10602 .eraseblocks = { {8 * 1024 * 1024, 1} },
10603 .block_erase = spi_block_erase_c7,
10604 }
10605 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010606 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010607 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010608 .write = spi_chip_write_256,
10609 .read = spi_chip_read,
10610 .voltage = {2700, 3600},
10611 },
10612
10613 {
10614 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010615 .name = "M25P80",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010616 .bustype = BUS_SPI,
10617 .manufacture_id = ST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010618 .model_id = ST_M25P80,
10619 .total_size = 1024,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010620 .page_size = 256,
10621 .feature_bits = FEATURE_WRSR_WREN,
10622 .tested = TEST_OK_PREW,
10623 .probe = probe_spi_rdid,
10624 .probe_timing = TIMING_ZERO,
10625 .block_erasers =
10626 {
10627 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010628 .eraseblocks = { {64 * 1024, 16} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010629 .block_erase = spi_block_erase_d8,
10630 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010631 .eraseblocks = { {1024 * 1024, 1} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010632 .block_erase = spi_block_erase_c7,
10633 }
10634 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010635 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010636 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010637 .write = spi_chip_write_256,
10638 .read = spi_chip_read,
10639 .voltage = {2700, 3600},
10640 },
10641
10642 {
10643 .vendor = "Micron/Numonyx/ST",
10644 .name = "M25PE10",
10645 .bustype = BUS_SPI,
10646 .manufacture_id = ST_ID,
10647 .model_id = ST_M25PE10,
10648 .total_size = 128,
10649 .page_size = 256,
10650 .feature_bits = FEATURE_WRSR_WREN,
10651 .tested = TEST_UNTESTED,
10652 .probe = probe_spi_rdid,
10653 .probe_timing = TIMING_ZERO,
10654 .block_erasers =
10655 {
10656 {
10657 .eraseblocks = { {4 * 1024, 32} },
10658 .block_erase = spi_block_erase_20,
10659 }, {
10660 .eraseblocks = { {64 * 1024, 2} },
10661 .block_erase = spi_block_erase_d8,
10662 }, {
10663 .eraseblocks = { {128 * 1024, 1} },
10664 .block_erase = spi_block_erase_c7,
10665 }
10666 },
10667 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10668 .unlock = spi_disable_blockprotect,
10669 .write = spi_chip_write_256,
10670 .read = spi_chip_read,
10671 .voltage = {2700, 3600},
10672 },
10673
10674 {
10675 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010676 .name = "M25PE16",
10677 .bustype = BUS_SPI,
10678 .manufacture_id = ST_ID,
10679 .model_id = ST_M25PE16,
10680 .total_size = 2048,
10681 .page_size = 256,
10682 .feature_bits = FEATURE_WRSR_WREN,
10683 .tested = TEST_UNTESTED,
10684 .probe = probe_spi_rdid,
10685 .probe_timing = TIMING_ZERO,
10686 .block_erasers =
10687 {
10688 {
10689 .eraseblocks = { {4 * 1024, 512} },
10690 .block_erase = spi_block_erase_20,
10691 }, {
10692 .eraseblocks = { {64 * 1024, 32} },
10693 .block_erase = spi_block_erase_d8,
10694 }, {
10695 .eraseblocks = { {2 * 1024 * 1024, 1} },
10696 .block_erase = spi_block_erase_c7,
10697 }
10698 },
10699 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10700 .unlock = spi_disable_blockprotect,
10701 .write = spi_chip_write_256,
10702 .read = spi_chip_read,
10703 .voltage = {2700, 3600},
10704 },
10705
10706 {
10707 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010708 .name = "M25PE20",
10709 .bustype = BUS_SPI,
10710 .manufacture_id = ST_ID,
10711 .model_id = ST_M25PE20,
10712 .total_size = 256,
10713 .page_size = 256,
10714 .feature_bits = FEATURE_WRSR_WREN,
10715 .tested = TEST_UNTESTED,
10716 .probe = probe_spi_rdid,
10717 .probe_timing = TIMING_ZERO,
10718 .block_erasers =
10719 {
10720 {
10721 .eraseblocks = { {4 * 1024, 64} },
10722 .block_erase = spi_block_erase_20,
10723 }, {
10724 .eraseblocks = { {64 * 1024, 4} },
10725 .block_erase = spi_block_erase_d8,
10726 }, {
10727 .eraseblocks = { {256 * 1024, 1} },
10728 .block_erase = spi_block_erase_c7,
10729 }
10730 },
10731 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10732 .unlock = spi_disable_blockprotect,
10733 .write = spi_chip_write_256,
10734 .read = spi_chip_read,
10735 .voltage = {2700, 3600},
10736 },
10737
10738 {
10739 .vendor = "Micron/Numonyx/ST",
10740 .name = "M25PE40",
10741 .bustype = BUS_SPI,
10742 .manufacture_id = ST_ID,
10743 .model_id = ST_M25PE40,
10744 .total_size = 512,
10745 .page_size = 256,
10746 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000010747 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010748 .probe = probe_spi_rdid,
10749 .probe_timing = TIMING_ZERO,
10750 .block_erasers =
10751 {
10752 {
10753 .eraseblocks = { {4 * 1024, 128} },
10754 .block_erase = spi_block_erase_20,
10755 }, {
10756 .eraseblocks = { {64 * 1024, 8} },
10757 .block_erase = spi_block_erase_d8,
10758 }, {
10759 .eraseblocks = { {512 * 1024, 1} },
10760 .block_erase = spi_block_erase_c7,
10761 }
10762 },
10763 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10764 .unlock = spi_disable_blockprotect,
10765 .write = spi_chip_write_256,
10766 .read = spi_chip_read,
10767 .voltage = {2700, 3600},
10768 },
10769
10770 {
10771 .vendor = "Micron/Numonyx/ST",
10772 .name = "M25PE80",
10773 .bustype = BUS_SPI,
10774 .manufacture_id = ST_ID,
10775 .model_id = ST_M25PE80,
10776 .total_size = 1024,
10777 .page_size = 256,
10778 .feature_bits = FEATURE_WRSR_WREN,
10779 .tested = TEST_OK_PREW,
10780 .probe = probe_spi_rdid,
10781 .probe_timing = TIMING_ZERO,
10782 .block_erasers =
10783 {
10784 {
10785 .eraseblocks = { {4 * 1024, 256} },
10786 .block_erase = spi_block_erase_20,
10787 }, {
10788 .eraseblocks = { {64 * 1024, 16} },
10789 .block_erase = spi_block_erase_d8,
10790 }, {
10791 .eraseblocks = { {1024 * 1024, 1} },
10792 .block_erase = spi_block_erase_c7,
10793 }
10794 },
10795 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10796 .unlock = spi_disable_blockprotect,
10797 .write = spi_chip_write_256,
10798 .read = spi_chip_read,
10799 .voltage = {2700, 3600},
10800 },
10801
10802 {
10803 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010804 .name = "M25PX16",
10805 .bustype = BUS_SPI,
10806 .manufacture_id = ST_ID,
10807 .model_id = ST_M25PX16,
10808 .total_size = 2048,
10809 .page_size = 256,
10810 /* OTP: 64B total; read 0x4B; write 0x42 */
10811 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10812 .tested = TEST_OK_PREW,
10813 .probe = probe_spi_rdid,
10814 .probe_timing = TIMING_ZERO,
10815 .block_erasers =
10816 {
10817 {
10818 .eraseblocks = { { 4 * 1024, 512 } },
10819 .block_erase = spi_block_erase_20,
10820 }, {
10821 .eraseblocks = { {64 * 1024, 32} },
10822 .block_erase = spi_block_erase_d8,
10823 }, {
10824 .eraseblocks = { {2 * 1024 * 1024, 1} },
10825 .block_erase = spi_block_erase_c7,
10826 }
10827 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010828 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010829 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
10830 .write = spi_chip_write_256,
10831 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000010832 .voltage = {2300, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010833 },
10834
10835 {
10836 .vendor = "Micron/Numonyx/ST",
10837 .name = "M25PX32",
10838 .bustype = BUS_SPI,
10839 .manufacture_id = ST_ID,
10840 .model_id = ST_M25PX32,
10841 .total_size = 4096,
10842 .page_size = 256,
10843 /* OTP: 64B total; read 0x4B; write 0x42 */
10844 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10845 .tested = TEST_OK_PRE,
10846 .probe = probe_spi_rdid,
10847 .probe_timing = TIMING_ZERO,
10848 .block_erasers =
10849 {
10850 {
10851 .eraseblocks = { { 4 * 1024, 1024 } },
10852 .block_erase = spi_block_erase_20,
10853 }, {
10854 .eraseblocks = { {64 * 1024, 64} },
10855 .block_erase = spi_block_erase_d8,
10856 }, {
10857 .eraseblocks = { {4 * 1024 * 1024, 1} },
10858 .block_erase = spi_block_erase_c7,
10859 }
10860 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010861 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010862 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
10863 .write = spi_chip_write_256,
10864 .read = spi_chip_read,
10865 .voltage = {2700, 3600},
10866 },
10867
10868 {
10869 .vendor = "Micron/Numonyx/ST",
10870 .name = "M25PX64",
10871 .bustype = BUS_SPI,
10872 .manufacture_id = ST_ID,
10873 .model_id = ST_M25PX64,
10874 .total_size = 8192,
10875 .page_size = 256,
10876 /* OTP: 64B total; read 0x4B; write 0x42 */
10877 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000010878 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010879 .probe = probe_spi_rdid,
10880 .probe_timing = TIMING_ZERO,
10881 .block_erasers =
10882 {
10883 {
10884 .eraseblocks = { { 4 * 1024, 2048 } },
10885 .block_erase = spi_block_erase_20,
10886 }, {
10887 .eraseblocks = { {64 * 1024, 128} },
10888 .block_erase = spi_block_erase_d8,
10889 }, {
10890 .eraseblocks = { {8 * 1024 * 1024, 1} },
10891 .block_erase = spi_block_erase_c7,
10892 }
10893 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010894 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010895 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
10896 .write = spi_chip_write_256,
10897 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000010898 .voltage = {2700, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010899 },
10900
10901 {
10902 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010903 .name = "M25PX80",
10904 .bustype = BUS_SPI,
10905 .manufacture_id = ST_ID,
10906 .model_id = ST_M25PX80,
10907 .total_size = 1024,
10908 .page_size = 256,
10909 /* OTP: 64B total; read 0x4B, write 0x42 */
10910 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10911 .tested = TEST_OK_PREW,
10912 .probe = probe_spi_rdid,
10913 .probe_timing = TIMING_ZERO,
10914 .block_erasers =
10915 {
10916 {
10917 .eraseblocks = { { 4 * 1024, 256 } },
10918 .block_erase = spi_block_erase_20,
10919 }, {
10920 .eraseblocks = { {64 * 1024, 16} },
10921 .block_erase = spi_block_erase_d8,
10922 }, {
10923 .eraseblocks = { {1024 * 1024, 1} },
10924 .block_erase = spi_block_erase_c7,
10925 }
10926 },
10927 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
10928 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
10929 .write = spi_chip_write_256,
10930 .read = spi_chip_read,
10931 .voltage = {2700, 3600},
10932 },
10933
10934 {
10935 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010936 .name = "M45PE10",
10937 .bustype = BUS_SPI,
10938 .manufacture_id = ST_ID,
10939 .model_id = ST_M45PE10,
10940 .total_size = 128,
10941 .page_size = 256,
10942 .tested = TEST_UNTESTED,
10943 .probe = probe_spi_rdid,
10944 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100010945 .block_erasers =
10946 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010947 {
10948 .eraseblocks = { {256, 512} },
10949 .block_erase = spi_block_erase_db,
10950 }, {
10951 .eraseblocks = { {64 * 1024, 2} },
10952 .block_erase = spi_block_erase_d8,
10953 }
10954 },
10955 .printlock = spi_prettyprint_status_register_default_welwip,
10956 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
10957 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
10958 .read = spi_chip_read, /* Fast read (0x0B) supported */
10959 .voltage = {2700, 3600},
10960 },
10961
10962 {
10963 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010964 .name = "M45PE16",
10965 .bustype = BUS_SPI,
10966 .manufacture_id = ST_ID,
10967 .model_id = ST_M45PE16,
10968 .total_size = 2048,
10969 .page_size = 256,
10970 .tested = TEST_UNTESTED,
10971 .probe = probe_spi_rdid,
10972 .probe_timing = TIMING_ZERO,
10973 .block_erasers =
10974 {
10975 {
10976 .eraseblocks = { {256, 8192} },
10977 .block_erase = spi_block_erase_db,
10978 }, {
10979 .eraseblocks = { {64 * 1024, 32} },
10980 .block_erase = spi_block_erase_d8,
10981 }
10982 },
10983 .printlock = spi_prettyprint_status_register_default_welwip,
10984 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
10985 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
10986 .read = spi_chip_read, /* Fast read (0x0B) supported */
10987 .voltage = {2700, 3600},
10988 },
10989
10990 {
10991 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010992 .name = "M45PE20",
10993 .bustype = BUS_SPI,
10994 .manufacture_id = ST_ID,
10995 .model_id = ST_M45PE20,
10996 .total_size = 256,
10997 .page_size = 256,
10998 .tested = TEST_UNTESTED,
10999 .probe = probe_spi_rdid,
11000 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011001 .block_erasers =
11002 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011003 {
11004 .eraseblocks = { {256, 1024} },
11005 .block_erase = spi_block_erase_db,
11006 }, {
11007 .eraseblocks = { {64 * 1024, 4} },
11008 .block_erase = spi_block_erase_d8,
11009 }
11010 },
11011 .printlock = spi_prettyprint_status_register_default_welwip,
11012 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
11013 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
11014 .read = spi_chip_read, /* Fast read (0x0B) supported */
11015 .voltage = {2700, 3600},
11016 },
11017
11018 {
11019 .vendor = "Micron/Numonyx/ST",
11020 .name = "M45PE40",
11021 .bustype = BUS_SPI,
11022 .manufacture_id = ST_ID,
11023 .model_id = ST_M45PE40,
11024 .total_size = 512,
11025 .page_size = 256,
11026 .tested = TEST_UNTESTED,
11027 .probe = probe_spi_rdid,
11028 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011029 .block_erasers =
11030 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011031 {
11032 .eraseblocks = { {256, 2048} },
11033 .block_erase = spi_block_erase_db,
11034 }, {
11035 .eraseblocks = { {64 * 1024, 8} },
11036 .block_erase = spi_block_erase_d8,
11037 }
11038 },
11039 .printlock = spi_prettyprint_status_register_default_welwip,
11040 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
Stefan Tauner23e10b82016-01-23 16:16:49 +000011041 .write = spi_chip_write_256, /* Page write supported (similar to PP but allows 0->1 changes) */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011042 .read = spi_chip_read, /* Fast read (0x0B) supported */
11043 .voltage = {2700, 3600},
11044 },
11045
11046 {
11047 .vendor = "Micron/Numonyx/ST",
11048 .name = "M45PE80",
11049 .bustype = BUS_SPI,
11050 .manufacture_id = ST_ID,
11051 .model_id = ST_M45PE80,
11052 .total_size = 1024,
11053 .page_size = 256,
11054 .tested = TEST_UNTESTED,
11055 .probe = probe_spi_rdid,
11056 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011057 .block_erasers =
11058 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011059 {
11060 .eraseblocks = { {256, 4096} },
11061 .block_erase = spi_block_erase_db,
11062 }, {
11063 .eraseblocks = { {64 * 1024, 16} },
11064 .block_erase = spi_block_erase_d8,
11065 }
11066 },
11067 .printlock = spi_prettyprint_status_register_default_welwip,
11068 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
11069 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
11070 .read = spi_chip_read, /* Fast read (0x0B) supported */
11071 .voltage = {2700, 3600},
11072 },
11073
11074 {
11075 .vendor = "Micron/Numonyx/ST",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011076 .name = "N25Q00A..1G", /* ..1G = 1.8V, uniform 64KB/4KB blocks/sectors */
11077 .bustype = BUS_SPI,
11078 .manufacture_id = ST_ID,
11079 .model_id = ST_N25Q00A__1G,
11080 .total_size = 131072,
11081 .page_size = 256,
11082 /* supports SFDP */
11083 /* OTP: 64B total; read 0x4B, write 0x42 */
11084 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11085 .tested = TEST_UNTESTED,
11086 .probe = probe_spi_rdid,
11087 .probe_timing = TIMING_ZERO,
11088 .block_erasers =
11089 {
11090 {
11091 .eraseblocks = { {4 * 1024, 32768} },
11092 .block_erase = spi_block_erase_21,
11093 }, {
11094 .eraseblocks = { {4 * 1024, 32768} },
11095 .block_erase = spi_block_erase_20,
11096 }, {
11097 .eraseblocks = { {64 * 1024, 2048} },
11098 .block_erase = spi_block_erase_dc,
11099 }, {
11100 .eraseblocks = { {64 * 1024, 2048} },
11101 .block_erase = spi_block_erase_d8,
11102 }, {
11103 .eraseblocks = { {32768 * 1024, 4} },
11104 .block_erase = spi_block_erase_c4,
11105 }
11106 },
11107 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11108 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11109 .write = spi_chip_write_256, /* Multi I/O supported */
11110 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11111 .voltage = {1700, 2000},
11112 },
11113
11114 {
11115 .vendor = "Micron/Numonyx/ST",
11116 .name = "N25Q00A..3G", /* ..3G = 3V, uniform 64KB/4KB blocks/sectors */
11117 .bustype = BUS_SPI,
11118 .manufacture_id = ST_ID,
11119 .model_id = ST_N25Q00A__3G,
11120 .total_size = 131072,
11121 .page_size = 256,
11122 /* supports SFDP */
11123 /* OTP: 64B total; read 0x4B, write 0x42 */
11124 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11125 .tested = TEST_UNTESTED,
11126 .probe = probe_spi_rdid,
11127 .probe_timing = TIMING_ZERO,
11128 .block_erasers =
11129 {
11130 {
11131 .eraseblocks = { {4 * 1024, 32768} },
11132 .block_erase = spi_block_erase_21,
11133 }, {
11134 .eraseblocks = { {4 * 1024, 32768} },
11135 .block_erase = spi_block_erase_20,
11136 }, {
11137 .eraseblocks = { {64 * 1024, 2048} },
11138 .block_erase = spi_block_erase_dc,
11139 }, {
11140 .eraseblocks = { {64 * 1024, 2048} },
11141 .block_erase = spi_block_erase_d8,
11142 }, {
11143 .eraseblocks = { {32768 * 1024, 4} },
11144 .block_erase = spi_block_erase_c4,
11145 }
11146 },
11147 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11148 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11149 .write = spi_chip_write_256, /* Multi I/O supported */
11150 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11151 .voltage = {2700, 3600},
11152 },
11153
11154 {
11155 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011156 .name = "N25Q016",
11157 .bustype = BUS_SPI,
11158 .manufacture_id = ST_ID,
11159 .model_id = ST_N25Q016__1E,
11160 .total_size = 2048,
11161 .page_size = 256,
11162 /* supports SFDP */
11163 /* OTP: 64B total; read 0x4B, write 0x42 */
11164 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11165 .tested = TEST_UNTESTED,
11166 .probe = probe_spi_rdid,
11167 .probe_timing = TIMING_ZERO,
11168 .block_erasers =
11169 {
11170 {
11171 .eraseblocks = { {4 * 1024, 512} },
11172 .block_erase = spi_block_erase_20,
11173 }, {
11174 .eraseblocks = { {32 * 1024, 64} },
11175 .block_erase = spi_block_erase_52,
11176 }, {
11177 .eraseblocks = { {64 * 1024, 32} },
11178 .block_erase = spi_block_erase_d8,
11179 }, {
11180 .eraseblocks = { {2 * 1024 * 1024, 1} },
11181 .block_erase = spi_block_erase_c7,
11182 }
11183 },
11184 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11185 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11186 .write = spi_chip_write_256, /* Multi I/O supported */
11187 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11188 .voltage = {1700, 2000},
11189 },
11190
11191 {
11192 .vendor = "Micron/Numonyx/ST",
11193 .name = "N25Q032..1E",
11194 .bustype = BUS_SPI,
11195 .manufacture_id = ST_ID,
11196 .model_id = ST_N25Q032__1E,
11197 .total_size = 4096,
11198 .page_size = 256,
11199 /* supports SFDP */
11200 /* OTP: 64B total; read 0x4B, write 0x42 */
11201 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11202 .tested = TEST_UNTESTED,
11203 .probe = probe_spi_rdid,
11204 .probe_timing = TIMING_ZERO,
11205 .block_erasers =
11206 {
11207 {
11208 .eraseblocks = { {4 * 1024, 1024} },
11209 .block_erase = spi_block_erase_20,
11210 }, {
11211 .eraseblocks = { {64 * 1024, 64} },
11212 .block_erase = spi_block_erase_d8,
11213 }, {
11214 .eraseblocks = { {4 * 1024 * 1024, 1} },
11215 .block_erase = spi_block_erase_c7,
11216 }
11217 },
11218 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11219 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11220 .write = spi_chip_write_256, /* Multi I/O supported */
11221 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11222 .voltage = {1700, 2000},
Sergii Dmytrukd5ba24c2022-07-25 00:28:35 +030011223 .reg_bits =
11224 {
11225 /*
11226 * There is also a volatile lock register per 64KiB sector, which is not
11227 * mutually exclusive with BP-based protection.
11228 */
11229 .srp = {STATUS1, 7, RW},
11230 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
11231 .tb = {STATUS1, 5, RW},
11232 },
11233 .decode_range = decode_range_spi25,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011234 },
11235
11236 {
11237 .vendor = "Micron/Numonyx/ST",
11238 .name = "N25Q032..3E",
11239 .bustype = BUS_SPI,
11240 .manufacture_id = ST_ID,
11241 .model_id = ST_N25Q032__3E,
11242 .total_size = 4096,
11243 .page_size = 256,
11244 /* supports SFDP */
11245 /* OTP: 64B total; read 0x4B, write 0x42 */
11246 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11247 .tested = TEST_OK_PREW,
11248 .probe = probe_spi_rdid,
11249 .probe_timing = TIMING_ZERO,
11250 .block_erasers =
11251 {
11252 {
11253 .eraseblocks = { {4 * 1024, 1024} },
11254 .block_erase = spi_block_erase_20,
11255 }, {
11256 .eraseblocks = { {64 * 1024, 64} },
11257 .block_erase = spi_block_erase_d8,
11258 }, {
11259 .eraseblocks = { {4 * 1024 * 1024, 1} },
11260 .block_erase = spi_block_erase_c7,
11261 }
11262 },
11263 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11264 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11265 .write = spi_chip_write_256, /* Multi I/O supported */
11266 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11267 .voltage = {2700, 3600},
Sergii Dmytrukd5ba24c2022-07-25 00:28:35 +030011268 .reg_bits =
11269 {
11270 /*
11271 * There is also a volatile lock register per 64KiB sector, which is not
11272 * mutually exclusive with BP-based protection.
11273 */
11274 .srp = {STATUS1, 7, RW},
11275 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
11276 .tb = {STATUS1, 5, RW},
11277 },
11278 .decode_range = decode_range_spi25,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011279 },
11280
11281 {
11282 .vendor = "Micron/Numonyx/ST",
11283 .name = "N25Q064..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
11284 .bustype = BUS_SPI,
11285 .manufacture_id = ST_ID,
11286 .model_id = ST_N25Q064__1E,
11287 .total_size = 8192,
11288 .page_size = 256,
11289 /* supports SFDP */
11290 /* OTP: 64B total; read 0x4B, write 0x42 */
11291 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000011292 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011293 .probe = probe_spi_rdid,
11294 .probe_timing = TIMING_ZERO,
11295 .block_erasers =
11296 {
11297 {
11298 .eraseblocks = { {4 * 1024, 2048 } },
11299 .block_erase = spi_block_erase_20,
11300 }, {
11301 .eraseblocks = { {64 * 1024, 128} },
11302 .block_erase = spi_block_erase_d8,
11303 }, {
11304 .eraseblocks = { {8 * 1024 * 1024, 1} },
11305 .block_erase = spi_block_erase_c7,
11306 }
11307 },
11308 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11309 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11310 .write = spi_chip_write_256, /* Multi I/O supported */
11311 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11312 .voltage = {1700, 2000},
Sergii Dmytrukd5ba24c2022-07-25 00:28:35 +030011313 .reg_bits =
11314 {
11315 /*
11316 * There is also a volatile lock register per 64KiB sector, which is not
11317 * mutually exclusive with BP-based protection.
11318 */
11319 .srp = {STATUS1, 7, RW},
11320 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 6, RW}},
11321 .tb = {STATUS1, 5, RW},
11322 },
11323 .decode_range = decode_range_spi25,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011324 },
11325
11326 {
11327 .vendor = "Micron/Numonyx/ST",
11328 .name = "N25Q064..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
11329 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100011330 .manufacture_id = ST_ID,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011331 .model_id = ST_N25Q064__3E,
11332 .total_size = 8192,
11333 .page_size = 256,
11334 /* supports SFDP */
11335 /* OTP: 64B total; read 0x4B, write 0x42 */
11336 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11337 .tested = TEST_OK_PREW,
11338 .probe = probe_spi_rdid,
11339 .probe_timing = TIMING_ZERO,
11340 .block_erasers =
11341 {
11342 {
11343 .eraseblocks = { {4 * 1024, 2048 } },
11344 .block_erase = spi_block_erase_20,
11345 }, {
11346 .eraseblocks = { {64 * 1024, 128} },
11347 .block_erase = spi_block_erase_d8,
11348 }, {
11349 .eraseblocks = { {8 * 1024 * 1024, 1} },
11350 .block_erase = spi_block_erase_c7,
11351 }
11352 },
11353 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11354 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11355 .write = spi_chip_write_256, /* Multi I/O supported */
11356 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11357 .voltage = {2700, 3600},
Sergii Dmytrukd5ba24c2022-07-25 00:28:35 +030011358 .reg_bits =
11359 {
11360 /*
11361 * There is also a volatile lock register per 64KiB sector, which is not
11362 * mutually exclusive with BP-based protection.
11363 */
11364 .srp = {STATUS1, 7, RW},
11365 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 6, RW}},
11366 .tb = {STATUS1, 5, RW},
11367 },
11368 .decode_range = decode_range_spi25,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011369 },
11370
11371 {
11372 .vendor = "Micron/Numonyx/ST",
11373 .name = "N25Q128..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
11374 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100011375 .manufacture_id = ST_ID,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011376 .model_id = ST_N25Q128__1E,
11377 .total_size = 16384,
11378 .page_size = 256,
11379 /* supports SFDP */
11380 /* OTP: 64B total; read 0x4B, write 0x42 */
11381 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011382 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011383 .probe = probe_spi_rdid,
11384 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011385 .block_erasers =
11386 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011387 {
11388 .eraseblocks = { {4 * 1024, 4096 } },
11389 .block_erase = spi_block_erase_20,
11390 }, {
11391 .eraseblocks = { {64 * 1024, 256} },
11392 .block_erase = spi_block_erase_d8,
11393 }, {
11394 .eraseblocks = { {16384 * 1024, 1} },
11395 .block_erase = spi_block_erase_c7,
11396 }
11397 },
11398 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11399 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11400 .write = spi_chip_write_256, /* Multi I/O supported */
11401 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11402 .voltage = {1700, 2000},
11403 },
11404
11405 {
11406 .vendor = "Micron/Numonyx/ST",
11407 .name = "N25Q128..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
11408 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100011409 .manufacture_id = ST_ID,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011410 .model_id = ST_N25Q128__3E,
11411 .total_size = 16384,
11412 .page_size = 256,
11413 /* supports SFDP */
11414 /* OTP: 64B total; read 0x4B, write 0x42 */
11415 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11416 .tested = TEST_OK_PREW,
11417 .probe = probe_spi_rdid,
11418 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011419 .block_erasers =
11420 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011421 {
11422 .eraseblocks = { {4 * 1024, 4096 } },
11423 .block_erase = spi_block_erase_20,
11424 }, {
11425 .eraseblocks = { {64 * 1024, 256} },
11426 .block_erase = spi_block_erase_d8,
11427 }, {
11428 .eraseblocks = { {16384 * 1024, 1} },
11429 .block_erase = spi_block_erase_c7,
11430 }
11431 },
11432 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11433 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11434 .write = spi_chip_write_256, /* Multi I/O supported */
11435 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11436 .voltage = {2700, 3600},
11437 },
11438
11439 {
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011440 .vendor = "Micron/Numonyx/ST",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011441 .name = "N25Q256..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
11442 .bustype = BUS_SPI,
11443 .manufacture_id = ST_ID,
11444 .model_id = ST_N25Q256__1E,
11445 .total_size = 32768,
11446 .page_size = 256,
11447 /* supports SFDP */
11448 /* OTP: 64B total; read 0x4B, write 0x42 */
11449 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11450 .tested = TEST_UNTESTED,
11451 .probe = probe_spi_rdid,
11452 .probe_timing = TIMING_ZERO,
11453 .block_erasers =
11454 {
11455 {
11456 .eraseblocks = { {4 * 1024, 8192} },
11457 .block_erase = spi_block_erase_21,
11458 }, {
11459 .eraseblocks = { {4 * 1024, 8192} },
11460 .block_erase = spi_block_erase_20,
11461 }, {
11462 .eraseblocks = { {64 * 1024, 512} },
11463 .block_erase = spi_block_erase_dc,
11464 }, {
11465 .eraseblocks = { {64 * 1024, 512} },
11466 .block_erase = spi_block_erase_d8,
11467 }, {
11468 .eraseblocks = { {32768 * 1024, 1} },
11469 .block_erase = spi_block_erase_c7,
11470 }
11471 },
11472 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11473 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11474 .write = spi_chip_write_256, /* Multi I/O supported */
11475 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11476 .voltage = {1700, 2000},
11477 },
11478
11479 {
11480 .vendor = "Micron/Numonyx/ST",
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011481 .name = "N25Q256..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
11482 .bustype = BUS_SPI,
11483 .manufacture_id = ST_ID,
11484 .model_id = ST_N25Q256__3E,
11485 .total_size = 32768,
11486 .page_size = 256,
11487 /* supports SFDP */
11488 /* OTP: 64B total; read 0x4B, write 0x42 */
11489 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11490 .tested = TEST_UNTESTED,
11491 .probe = probe_spi_rdid,
11492 .probe_timing = TIMING_ZERO,
11493 .block_erasers =
11494 {
11495 {
11496 .eraseblocks = { {4 * 1024, 8192} },
11497 .block_erase = spi_block_erase_21,
11498 }, {
11499 .eraseblocks = { {4 * 1024, 8192} },
11500 .block_erase = spi_block_erase_20,
11501 }, {
11502 .eraseblocks = { {64 * 1024, 512} },
11503 .block_erase = spi_block_erase_dc,
11504 }, {
11505 .eraseblocks = { {64 * 1024, 512} },
11506 .block_erase = spi_block_erase_d8,
11507 }, {
11508 .eraseblocks = { {32768 * 1024, 1} },
11509 .block_erase = spi_block_erase_c7,
11510 }
11511 },
11512 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11513 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11514 .write = spi_chip_write_256, /* Multi I/O supported */
11515 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11516 .voltage = {2700, 3600},
11517 },
11518
11519 {
11520 .vendor = "Micron/Numonyx/ST",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011521 .name = "N25Q512..1G", /* ..1G = 1.8V, uniform 64KB/4KB blocks/sectors */
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011522 .bustype = BUS_SPI,
11523 .manufacture_id = ST_ID,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011524 .model_id = ST_N25Q512__1G,
11525 .total_size = 65536,
11526 .page_size = 256,
11527 /* supports SFDP */
11528 /* OTP: 64B total; read 0x4B, write 0x42 */
11529 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11530 .tested = TEST_UNTESTED,
11531 .probe = probe_spi_rdid,
11532 .probe_timing = TIMING_ZERO,
11533 .block_erasers =
11534 {
11535 {
11536 .eraseblocks = { {4 * 1024, 16384} },
11537 .block_erase = spi_block_erase_21,
11538 }, {
11539 .eraseblocks = { {4 * 1024, 16384} },
11540 .block_erase = spi_block_erase_20,
11541 }, {
11542 .eraseblocks = { {64 * 1024, 1024} },
11543 .block_erase = spi_block_erase_dc,
11544 }, {
11545 .eraseblocks = { {64 * 1024, 1024} },
11546 .block_erase = spi_block_erase_d8,
11547 }, {
11548 .eraseblocks = { {32768 * 1024, 2} },
11549 .block_erase = spi_block_erase_c4,
11550 }
11551 },
11552 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11553 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11554 .write = spi_chip_write_256, /* Multi I/O supported */
11555 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11556 .voltage = {1700, 2000},
11557 },
11558
11559 {
11560 .vendor = "Micron/Numonyx/ST",
11561 .name = "N25Q512..3G", /* ..3G = 3V, uniform 64KB/4KB blocks/sectors */
11562 .bustype = BUS_SPI,
11563 .manufacture_id = ST_ID,
11564 .model_id = ST_N25Q512__3G,
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011565 .total_size = 65536,
11566 .page_size = 256,
11567 /* supports SFDP */
11568 /* OTP: 64B total; read 0x4B, write 0x42 */
11569 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11570 .tested = TEST_OK_PREW,
11571 .probe = probe_spi_rdid,
11572 .probe_timing = TIMING_ZERO,
11573 .block_erasers =
11574 {
11575 {
11576 .eraseblocks = { {4 * 1024, 16384} },
11577 .block_erase = spi_block_erase_21,
11578 }, {
11579 .eraseblocks = { {4 * 1024, 16384} },
11580 .block_erase = spi_block_erase_20,
11581 }, {
11582 .eraseblocks = { {64 * 1024, 1024} },
11583 .block_erase = spi_block_erase_dc,
11584 }, {
11585 .eraseblocks = { {64 * 1024, 1024} },
11586 .block_erase = spi_block_erase_d8,
11587 }, {
Jacob Creedone8e7b0e2019-07-22 12:21:22 -070011588 .eraseblocks = { {32768 * 1024, 2} },
11589 .block_erase = spi_block_erase_c4,
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011590 }
11591 },
11592 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11593 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11594 .write = spi_chip_write_256, /* Multi I/O supported */
11595 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11596 .voltage = {2700, 3600},
11597 },
11598
11599 {
Ed Swierk199ab392017-07-03 13:33:44 -070011600 .vendor = "Micron",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011601 .name = "MT25QL01G", /* L = 3V, uniform 64KB/4KB blocks/sectors */
11602 .bustype = BUS_SPI,
11603 .manufacture_id = ST_ID,
11604 .model_id = ST_N25Q00A__3G,
11605 .total_size = 131072,
11606 .page_size = 256,
11607 /* supports SFDP */
11608 /* OTP: 64B total; read 0x4B, write 0x42 */
11609 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11610 .tested = TEST_OK_PREW,
11611 .probe = probe_spi_rdid,
11612 .probe_timing = TIMING_ZERO,
11613 .block_erasers =
11614 {
11615 {
11616 .eraseblocks = { {4 * 1024, 32768} },
11617 .block_erase = spi_block_erase_21,
11618 }, {
11619 .eraseblocks = { {4 * 1024, 32768} },
11620 .block_erase = spi_block_erase_20,
11621 }, {
11622 .eraseblocks = { {32 * 1024, 4096} },
11623 .block_erase = spi_block_erase_5c,
11624 }, {
11625 .eraseblocks = { {32 * 1024, 4096} },
11626 .block_erase = spi_block_erase_52,
11627 }, {
11628 .eraseblocks = { {64 * 1024, 2048} },
11629 .block_erase = spi_block_erase_dc,
11630 }, {
11631 .eraseblocks = { {64 * 1024, 2048} },
11632 .block_erase = spi_block_erase_d8,
11633 }, {
11634 .eraseblocks = { {65536 * 1024, 2} },
11635 .block_erase = spi_block_erase_c4,
11636 }
11637 },
11638 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11639 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11640 .write = spi_chip_write_256, /* Multi I/O supported */
11641 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11642 .voltage = {2700, 3600},
11643 },
11644
11645 {
11646 .vendor = "Micron",
11647 .name = "MT25QU01G", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
11648 .bustype = BUS_SPI,
11649 .manufacture_id = ST_ID,
11650 .model_id = ST_N25Q00A__1G,
11651 .total_size = 131072,
11652 .page_size = 256,
11653 /* supports SFDP */
11654 /* OTP: 64B total; read 0x4B, write 0x42 */
11655 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11656 .tested = TEST_UNTESTED,
11657 .probe = probe_spi_rdid,
11658 .probe_timing = TIMING_ZERO,
11659 .block_erasers =
11660 {
11661 {
11662 .eraseblocks = { {4 * 1024, 32768} },
11663 .block_erase = spi_block_erase_21,
11664 }, {
11665 .eraseblocks = { {4 * 1024, 32768} },
11666 .block_erase = spi_block_erase_20,
11667 }, {
11668 .eraseblocks = { {32 * 1024, 4096} },
11669 .block_erase = spi_block_erase_5c,
11670 }, {
11671 .eraseblocks = { {32 * 1024, 4096} },
11672 .block_erase = spi_block_erase_52,
11673 }, {
11674 .eraseblocks = { {64 * 1024, 2048} },
11675 .block_erase = spi_block_erase_dc,
11676 }, {
11677 .eraseblocks = { {64 * 1024, 2048} },
11678 .block_erase = spi_block_erase_d8,
11679 }, {
11680 .eraseblocks = { {65536 * 1024, 2} },
11681 .block_erase = spi_block_erase_c4,
11682 }
11683 },
11684 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11685 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11686 .write = spi_chip_write_256, /* Multi I/O supported */
11687 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11688 .voltage = {1700, 2000},
11689 },
11690
11691 {
11692 .vendor = "Micron",
11693 .name = "MT25QL02G", /* L = 3V, uniform 64KB/4KB blocks/sectors */
11694 .bustype = BUS_SPI,
11695 .manufacture_id = ST_ID,
11696 .model_id = ST_MT25QL02G,
11697 .total_size = 262144,
11698 .page_size = 256,
11699 /* supports SFDP */
11700 /* OTP: 64B total; read 0x4B, write 0x42 */
11701 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11702 .tested = TEST_UNTESTED,
11703 .probe = probe_spi_rdid,
11704 .probe_timing = TIMING_ZERO,
11705 .block_erasers =
11706 {
11707 {
11708 .eraseblocks = { {4 * 1024, 65536} },
11709 .block_erase = spi_block_erase_21,
11710 }, {
11711 .eraseblocks = { {4 * 1024, 65536} },
11712 .block_erase = spi_block_erase_20,
11713 }, {
11714 .eraseblocks = { {32 * 1024, 8192} },
11715 .block_erase = spi_block_erase_5c,
11716 }, {
11717 .eraseblocks = { {32 * 1024, 8192} },
11718 .block_erase = spi_block_erase_52,
11719 }, {
11720 .eraseblocks = { {64 * 1024, 4096} },
11721 .block_erase = spi_block_erase_dc,
11722 }, {
11723 .eraseblocks = { {64 * 1024, 4096} },
11724 .block_erase = spi_block_erase_d8,
11725 }, {
11726 .eraseblocks = { {65536 * 1024, 4} },
11727 .block_erase = spi_block_erase_c4,
11728 }
11729 },
11730 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11731 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11732 .write = spi_chip_write_256, /* Multi I/O supported */
11733 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11734 .voltage = {2700, 3600},
11735 },
11736
11737 {
11738 .vendor = "Micron",
11739 .name = "MT25QU02G", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
11740 .bustype = BUS_SPI,
11741 .manufacture_id = ST_ID,
11742 .model_id = ST_MT25QU02G,
11743 .total_size = 262144,
11744 .page_size = 256,
11745 /* supports SFDP */
11746 /* OTP: 64B total; read 0x4B, write 0x42 */
11747 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11748 .tested = TEST_UNTESTED,
11749 .probe = probe_spi_rdid,
11750 .probe_timing = TIMING_ZERO,
11751 .block_erasers =
11752 {
11753 {
11754 .eraseblocks = { {4 * 1024, 65536} },
11755 .block_erase = spi_block_erase_21,
11756 }, {
11757 .eraseblocks = { {4 * 1024, 65536} },
11758 .block_erase = spi_block_erase_20,
11759 }, {
11760 .eraseblocks = { {32 * 1024, 8192} },
11761 .block_erase = spi_block_erase_5c,
11762 }, {
11763 .eraseblocks = { {32 * 1024, 8192} },
11764 .block_erase = spi_block_erase_52,
11765 }, {
11766 .eraseblocks = { {64 * 1024, 4096} },
11767 .block_erase = spi_block_erase_dc,
11768 }, {
11769 .eraseblocks = { {64 * 1024, 4096} },
11770 .block_erase = spi_block_erase_d8,
11771 }, {
11772 .eraseblocks = { {65536 * 1024, 4} },
11773 .block_erase = spi_block_erase_c4,
11774 }
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 = {1700, 2000},
11781 },
11782
11783 {
11784 .vendor = "Micron",
11785 .name = "MT25QU128", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
11786 .bustype = BUS_SPI,
11787 .manufacture_id = ST_ID,
11788 .model_id = ST_N25Q128__1E,
11789 .total_size = 16384,
11790 .page_size = 256,
11791 /* supports SFDP */
11792 /* OTP: 64B total; read 0x4B, write 0x42 */
11793 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11794 .tested = TEST_UNTESTED,
11795 .probe = probe_spi_rdid,
11796 .probe_timing = TIMING_ZERO,
11797 .block_erasers =
11798 {
11799 {
11800 .eraseblocks = { {4 * 1024, 4096} },
11801 .block_erase = spi_block_erase_20,
11802 }, {
11803 .eraseblocks = { {32 * 1024, 512} },
11804 .block_erase = spi_block_erase_52,
11805 }, {
11806 .eraseblocks = { {64 * 1024, 256} },
11807 .block_erase = spi_block_erase_d8,
11808 }, {
11809 .eraseblocks = { {16384 * 1024, 1} },
11810 .block_erase = spi_block_erase_c7,
11811 }, {
11812 .eraseblocks = { {16384 * 1024, 1} },
11813 .block_erase = spi_block_erase_60,
11814 }
11815 },
11816 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11817 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11818 .write = spi_chip_write_256, /* Multi I/O supported */
11819 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11820 .voltage = {1700, 2000},
11821 },
11822
11823 {
11824 .vendor = "Micron",
11825 .name = "MT25QL128", /* L = 3V, uniform 64KB/4KB blocks/sectors */
11826 .bustype = BUS_SPI,
11827 .manufacture_id = ST_ID,
11828 .model_id = ST_N25Q128__3E,
11829 .total_size = 16384,
11830 .page_size = 256,
11831 /* supports SFDP */
11832 /* OTP: 64B total; read 0x4B, write 0x42 */
11833 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11834 .tested = TEST_UNTESTED,
11835 .probe = probe_spi_rdid,
11836 .probe_timing = TIMING_ZERO,
11837 .block_erasers =
11838 {
11839 {
11840 .eraseblocks = { {4 * 1024, 4096} },
11841 .block_erase = spi_block_erase_20,
11842 }, {
11843 .eraseblocks = { {32 * 1024, 512} },
11844 .block_erase = spi_block_erase_52,
11845 }, {
11846 .eraseblocks = { {64 * 1024, 256} },
11847 .block_erase = spi_block_erase_d8,
11848 }, {
11849 .eraseblocks = { {16384 * 1024, 1} },
11850 .block_erase = spi_block_erase_c7,
11851 }, {
11852 .eraseblocks = { {16384 * 1024, 1} },
11853 .block_erase = spi_block_erase_60,
11854 }
11855 },
11856 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11857 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11858 .write = spi_chip_write_256, /* Multi I/O supported */
11859 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11860 .voltage = {2700, 3600},
11861 },
11862
11863 {
11864 .vendor = "Micron",
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011865 .name = "MT25QL256", /* L = 3V, uniform 64KB/4KB blocks/sectors */
Ed Swierk199ab392017-07-03 13:33:44 -070011866 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100011867 .manufacture_id = ST_ID,
Ed Swierk199ab392017-07-03 13:33:44 -070011868 .model_id = ST_N25Q256__3E,
11869 .total_size = 32768,
11870 .page_size = 256,
11871 /* supports SFDP */
11872 /* OTP: 64B total; read 0x4B, write 0x42 */
Nico Huberaac81422017-11-10 22:54:13 +010011873 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
Simon Buhrowb7014f92021-02-15 13:16:57 +010011874 .tested = TEST_OK_PREW,
Ed Swierk199ab392017-07-03 13:33:44 -070011875 .probe = probe_spi_rdid,
11876 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011877 .block_erasers =
11878 {
Ed Swierk199ab392017-07-03 13:33:44 -070011879 {
11880 .eraseblocks = { {4 * 1024, 8192} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020011881 .block_erase = spi_block_erase_21,
Ed Swierk199ab392017-07-03 13:33:44 -070011882 }, {
Nico Huberaac81422017-11-10 22:54:13 +010011883 .eraseblocks = { {4 * 1024, 8192} },
11884 .block_erase = spi_block_erase_20,
11885 }, {
Jacob Creedon045b97e2019-07-22 12:26:56 -070011886 .eraseblocks = { {32 * 1024, 1024} },
11887 .block_erase = spi_block_erase_5c,
11888 }, {
11889 .eraseblocks = { {32 * 1024, 1024} },
11890 .block_erase = spi_block_erase_52,
11891 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070011892 .eraseblocks = { {64 * 1024, 512} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020011893 .block_erase = spi_block_erase_dc,
Ed Swierk199ab392017-07-03 13:33:44 -070011894 }, {
Nico Huberaac81422017-11-10 22:54:13 +010011895 .eraseblocks = { {64 * 1024, 512} },
11896 .block_erase = spi_block_erase_d8,
11897 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070011898 .eraseblocks = { {32768 * 1024, 1} },
11899 .block_erase = spi_block_erase_c7,
Jacob Creedon045b97e2019-07-22 12:26:56 -070011900 }, {
11901 .eraseblocks = { {32768 * 1024, 1} },
11902 .block_erase = spi_block_erase_60,
Ed Swierk199ab392017-07-03 13:33:44 -070011903 }
11904 },
11905 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11906 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11907 .write = spi_chip_write_256, /* Multi I/O supported */
11908 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11909 .voltage = {2700, 3600},
11910 },
11911
11912 {
11913 .vendor = "Micron",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011914 .name = "MT25QU256", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
11915 .bustype = BUS_SPI,
11916 .manufacture_id = ST_ID,
11917 .model_id = ST_N25Q256__1E,
11918 .total_size = 32768,
11919 .page_size = 256,
11920 /* supports SFDP */
11921 /* OTP: 64B total; read 0x4B, write 0x42 */
11922 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
Angel Pons59052582022-03-08 15:23:58 +010011923 .tested = TEST_OK_PREW,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011924 .probe = probe_spi_rdid,
11925 .probe_timing = TIMING_ZERO,
11926 .block_erasers =
11927 {
11928 {
11929 .eraseblocks = { {4 * 1024, 8192} },
11930 .block_erase = spi_block_erase_21,
11931 }, {
11932 .eraseblocks = { {4 * 1024, 8192} },
11933 .block_erase = spi_block_erase_20,
11934 }, {
11935 .eraseblocks = { {32 * 1024, 1024} },
11936 .block_erase = spi_block_erase_5c,
11937 }, {
11938 .eraseblocks = { {32 * 1024, 1024} },
11939 .block_erase = spi_block_erase_52,
11940 }, {
11941 .eraseblocks = { {64 * 1024, 512} },
11942 .block_erase = spi_block_erase_dc,
11943 }, {
11944 .eraseblocks = { {64 * 1024, 512} },
11945 .block_erase = spi_block_erase_d8,
11946 }, {
11947 .eraseblocks = { {32768 * 1024, 1} },
11948 .block_erase = spi_block_erase_c7,
11949 }, {
11950 .eraseblocks = { {32768 * 1024, 1} },
11951 .block_erase = spi_block_erase_60,
11952 }
11953 },
11954 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11955 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11956 .write = spi_chip_write_256, /* Multi I/O supported */
11957 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11958 .voltage = {1700, 2000},
11959 },
11960
11961 {
11962 .vendor = "Micron",
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011963 .name = "MT25QL512", /* L = 3V, uniform 64KB/4KB blocks/sectors */
Ed Swierk199ab392017-07-03 13:33:44 -070011964 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100011965 .manufacture_id = ST_ID,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011966 .model_id = ST_N25Q512__3G,
Ed Swierk199ab392017-07-03 13:33:44 -070011967 .total_size = 65536,
11968 .page_size = 256,
11969 /* supports SFDP */
11970 /* OTP: 64B total; read 0x4B, write 0x42 */
Nico Huberaac81422017-11-10 22:54:13 +010011971 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
Angel Pons3ed5a352018-09-30 16:31:09 +020011972 .tested = TEST_OK_PREW,
Ed Swierk199ab392017-07-03 13:33:44 -070011973 .probe = probe_spi_rdid,
11974 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011975 .block_erasers =
11976 {
Ed Swierk199ab392017-07-03 13:33:44 -070011977 {
11978 .eraseblocks = { {4 * 1024, 16384} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020011979 .block_erase = spi_block_erase_21,
Ed Swierk199ab392017-07-03 13:33:44 -070011980 }, {
Nico Huberaac81422017-11-10 22:54:13 +010011981 .eraseblocks = { {4 * 1024, 16384} },
11982 .block_erase = spi_block_erase_20,
11983 }, {
Jacob Creedon045b97e2019-07-22 12:26:56 -070011984 .eraseblocks = { {32 * 1024, 2048} },
11985 .block_erase = spi_block_erase_5c,
11986 }, {
11987 .eraseblocks = { {32 * 1024, 2048} },
11988 .block_erase = spi_block_erase_52,
11989 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070011990 .eraseblocks = { {64 * 1024, 1024} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020011991 .block_erase = spi_block_erase_dc,
Ed Swierk199ab392017-07-03 13:33:44 -070011992 }, {
Nico Huberaac81422017-11-10 22:54:13 +010011993 .eraseblocks = { {64 * 1024, 1024} },
11994 .block_erase = spi_block_erase_d8,
11995 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070011996 .eraseblocks = { {65536 * 1024, 1} },
11997 .block_erase = spi_block_erase_c7,
Jacob Creedon045b97e2019-07-22 12:26:56 -070011998 }, {
11999 .eraseblocks = { {65536 * 1024, 1} },
12000 .block_erase = spi_block_erase_60,
Ed Swierk199ab392017-07-03 13:33:44 -070012001 }
12002 },
12003 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
12004 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
12005 .write = spi_chip_write_256, /* Multi I/O supported */
12006 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12007 .voltage = {2700, 3600},
Sergii Dmytrukd5ba24c2022-07-25 00:28:35 +030012008 .reg_bits =
12009 {
12010 .srp = {STATUS1, 7, RW},
12011 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 6, RW}},
12012 .tb = {STATUS1, 5, RW},
12013 },
12014 .decode_range = decode_range_spi25,
Ed Swierk199ab392017-07-03 13:33:44 -070012015 },
12016
12017 {
Jacob Creedon80e8dc42019-07-22 12:35:30 -070012018 .vendor = "Micron",
12019 .name = "MT25QU512", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
12020 .bustype = BUS_SPI,
12021 .manufacture_id = ST_ID,
12022 .model_id = ST_N25Q512__1G,
12023 .total_size = 65536,
12024 .page_size = 256,
12025 /* supports SFDP */
12026 /* OTP: 64B total; read 0x4B, write 0x42 */
12027 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
12028 .tested = TEST_OK_PREW,
12029 .probe = probe_spi_rdid,
12030 .probe_timing = TIMING_ZERO,
12031 .block_erasers =
12032 {
12033 {
12034 .eraseblocks = { {4 * 1024, 16384} },
12035 .block_erase = spi_block_erase_21,
12036 }, {
12037 .eraseblocks = { {4 * 1024, 16384} },
12038 .block_erase = spi_block_erase_20,
12039 }, {
12040 .eraseblocks = { {32 * 1024, 2048} },
12041 .block_erase = spi_block_erase_5c,
12042 }, {
12043 .eraseblocks = { {32 * 1024, 2048} },
12044 .block_erase = spi_block_erase_52,
12045 }, {
12046 .eraseblocks = { {64 * 1024, 1024} },
12047 .block_erase = spi_block_erase_dc,
12048 }, {
12049 .eraseblocks = { {64 * 1024, 1024} },
12050 .block_erase = spi_block_erase_d8,
12051 }, {
12052 .eraseblocks = { {65536 * 1024, 1} },
12053 .block_erase = spi_block_erase_c7,
12054 }, {
12055 .eraseblocks = { {65536 * 1024, 1} },
12056 .block_erase = spi_block_erase_60,
12057 }
12058 },
12059 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
12060 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
12061 .write = spi_chip_write_256, /* Multi I/O supported */
12062 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12063 .voltage = {1700, 2000},
12064 },
12065
12066 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000012067 .vendor = "MoselVitelic",
12068 .name = "V29C51000B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012069 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012070 .manufacture_id = SYNCMOS_MVC_ID,
12071 .model_id = MVC_V29C51000B,
12072 .total_size = 64,
12073 .page_size = 512,
12074 .feature_bits = FEATURE_EITHER_RESET,
12075 .tested = TEST_UNTESTED,
12076 .probe = probe_jedec,
12077 .probe_timing = TIMING_ZERO,
12078 .block_erasers =
12079 {
12080 {
12081 .eraseblocks = { {512, 128} },
12082 .block_erase = erase_sector_jedec,
12083 }, {
12084 .eraseblocks = { {64 * 1024, 1} },
12085 .block_erase = erase_chip_block_jedec,
12086 },
12087 },
12088 .write = write_jedec_1,
12089 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012090 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000012091 },
12092
12093 {
12094 .vendor = "MoselVitelic",
12095 .name = "V29C51000T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012096 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012097 .manufacture_id = SYNCMOS_MVC_ID,
12098 .model_id = MVC_V29C51000T,
12099 .total_size = 64,
12100 .page_size = 512,
12101 .feature_bits = FEATURE_EITHER_RESET,
12102 .tested = TEST_UNTESTED,
12103 .probe = probe_jedec,
12104 .probe_timing = TIMING_ZERO,
12105 .block_erasers =
12106 {
12107 {
12108 .eraseblocks = { {512, 128} },
12109 .block_erase = erase_sector_jedec,
12110 }, {
12111 .eraseblocks = { {64 * 1024, 1} },
12112 .block_erase = erase_chip_block_jedec,
12113 },
12114 },
12115 .write = write_jedec_1,
12116 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012117 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000012118 },
12119
12120 {
12121 .vendor = "MoselVitelic",
12122 .name = "V29C51400B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012123 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012124 .manufacture_id = SYNCMOS_MVC_ID,
12125 .model_id = MVC_V29C51400B,
12126 .total_size = 512,
12127 .page_size = 1024,
12128 .feature_bits = FEATURE_EITHER_RESET,
12129 .tested = TEST_UNTESTED,
12130 .probe = probe_jedec,
12131 .probe_timing = TIMING_ZERO,
12132 .block_erasers =
12133 {
12134 {
12135 .eraseblocks = { {1024, 512} },
12136 .block_erase = erase_sector_jedec,
12137 }, {
12138 .eraseblocks = { {512 * 1024, 1} },
12139 .block_erase = erase_chip_block_jedec,
12140 },
12141 },
12142 .write = write_jedec_1,
12143 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012144 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000012145 },
12146
12147 {
12148 .vendor = "MoselVitelic",
12149 .name = "V29C51400T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012150 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012151 .manufacture_id = SYNCMOS_MVC_ID,
12152 .model_id = MVC_V29C51400T,
12153 .total_size = 512,
12154 .page_size = 1024,
12155 .feature_bits = FEATURE_EITHER_RESET,
12156 .tested = TEST_UNTESTED,
12157 .probe = probe_jedec,
12158 .probe_timing = TIMING_ZERO,
12159 .block_erasers =
12160 {
12161 {
12162 .eraseblocks = { {1024, 512} },
12163 .block_erase = erase_sector_jedec,
12164 }, {
12165 .eraseblocks = { {512 * 1024, 1} },
12166 .block_erase = erase_chip_block_jedec,
12167 },
12168 },
12169 .write = write_jedec_1,
12170 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012171 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000012172 },
12173
12174 {
12175 .vendor = "MoselVitelic",
12176 .name = "V29LC51000",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012177 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012178 .manufacture_id = SYNCMOS_MVC_ID,
12179 .model_id = MVC_V29LC51000,
12180 .total_size = 64,
12181 .page_size = 512,
12182 .feature_bits = FEATURE_EITHER_RESET,
12183 .tested = TEST_UNTESTED,
12184 .probe = probe_jedec,
12185 .probe_timing = TIMING_ZERO,
12186 .block_erasers =
12187 {
12188 {
12189 .eraseblocks = { {512, 128} },
12190 .block_erase = erase_sector_jedec,
12191 }, {
12192 .eraseblocks = { {64 * 1024, 1} },
12193 .block_erase = erase_chip_block_jedec,
12194 },
12195 },
12196 .write = write_jedec_1,
12197 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012198 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000012199 },
12200
12201 {
12202 .vendor = "MoselVitelic",
12203 .name = "V29LC51001",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012204 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012205 .manufacture_id = SYNCMOS_MVC_ID,
12206 .model_id = MVC_V29LC51001,
12207 .total_size = 128,
12208 .page_size = 512,
12209 .feature_bits = FEATURE_EITHER_RESET,
12210 .tested = TEST_UNTESTED,
12211 .probe = probe_jedec,
12212 .probe_timing = TIMING_ZERO,
12213 .block_erasers =
12214 {
12215 {
12216 .eraseblocks = { {512, 256} },
12217 .block_erase = erase_sector_jedec,
12218 }, {
12219 .eraseblocks = { {128 * 1024, 1} },
12220 .block_erase = erase_chip_block_jedec,
12221 },
12222 },
12223 .write = write_jedec_1,
12224 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012225 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000012226 },
12227
12228 {
12229 .vendor = "MoselVitelic",
12230 .name = "V29LC51002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012231 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012232 .manufacture_id = SYNCMOS_MVC_ID,
12233 .model_id = MVC_V29LC51002,
12234 .total_size = 256,
12235 .page_size = 512,
12236 .feature_bits = FEATURE_EITHER_RESET,
12237 .tested = TEST_UNTESTED,
12238 .probe = probe_jedec,
12239 .probe_timing = TIMING_ZERO,
12240 .block_erasers =
12241 {
12242 {
12243 .eraseblocks = { {512, 512} },
12244 .block_erase = erase_sector_jedec,
12245 }, {
12246 .eraseblocks = { {256 * 1024, 1} },
12247 .block_erase = erase_chip_block_jedec,
12248 },
12249 },
12250 .write = write_jedec_1,
12251 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012252 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000012253 },
12254
12255 {
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012256 .vendor = "Nantronics",
12257 .name = "N25S10",
12258 .bustype = BUS_SPI,
12259 .manufacture_id = NANTRONICS_ID_NOPREFIX,
12260 .model_id = NANTRONICS_N25S10,
12261 .total_size = 128,
12262 .page_size = 256,
12263 .feature_bits = FEATURE_WRSR_WREN,
12264 .tested = TEST_UNTESTED,
12265 .probe = probe_spi_rdid,
12266 .probe_timing = TIMING_ZERO,
12267 .block_erasers =
12268 {
12269 {
12270 .eraseblocks = { {4 * 1024, 32} },
12271 .block_erase = spi_block_erase_20,
12272 }, {
12273 .eraseblocks = { {4 * 1024, 32} },
12274 .block_erase = spi_block_erase_d7,
12275 }, {
12276 .eraseblocks = { {32 * 1024, 4} },
12277 .block_erase = spi_block_erase_52,
12278 }, {
12279 .eraseblocks = { {64 * 1024, 2} },
12280 .block_erase = spi_block_erase_d8,
12281 }, {
12282 .eraseblocks = { {128 * 1024, 1} },
12283 .block_erase = spi_block_erase_60,
12284 }, {
12285 .eraseblocks = { {128 * 1024, 1} },
12286 .block_erase = spi_block_erase_c7,
12287 }
12288 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012289 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012290 .unlock = spi_disable_blockprotect_bp3_srwd,
12291 .write = spi_chip_write_256,
12292 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
12293 .voltage = {2700, 3600},
12294 },
12295
12296 {
12297 .vendor = "Nantronics",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012298 .name = "N25S16",
12299 .bustype = BUS_SPI,
12300 .manufacture_id = NANTRONICS_ID_NOPREFIX,
12301 .model_id = NANTRONICS_N25S16,
12302 .total_size = 2048,
12303 .page_size = 256,
12304 .feature_bits = FEATURE_WRSR_WREN,
12305 .tested = TEST_UNTESTED,
12306 .probe = probe_spi_rdid,
12307 .probe_timing = TIMING_ZERO,
12308 .block_erasers =
12309 {
12310 {
12311 .eraseblocks = { {4 * 1024, 512} },
12312 .block_erase = spi_block_erase_20,
12313 }, {
12314 .eraseblocks = { {64 * 1024, 32} },
12315 .block_erase = spi_block_erase_d8,
12316 }, {
12317 .eraseblocks = { {2048 * 1024, 1} },
12318 .block_erase = spi_block_erase_60,
12319 }, {
12320 .eraseblocks = { {2048 * 1024, 1} },
12321 .block_erase = spi_block_erase_c7,
12322 }
12323 },
12324 .printlock = spi_prettyprint_status_register_bp3_srwd,
12325 .unlock = spi_disable_blockprotect_bp3_srwd,
12326 .write = spi_chip_write_256,
12327 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
12328 .voltage = {2700, 3600},
12329 },
12330
12331 {
12332 .vendor = "Nantronics",
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012333 .name = "N25S20",
12334 .bustype = BUS_SPI,
12335 .manufacture_id = NANTRONICS_ID_NOPREFIX,
12336 .model_id = NANTRONICS_N25S20,
12337 .total_size = 256,
12338 .page_size = 256,
12339 .feature_bits = FEATURE_WRSR_WREN,
12340 .tested = TEST_UNTESTED,
12341 .probe = probe_spi_rdid,
12342 .probe_timing = TIMING_ZERO,
12343 .block_erasers =
12344 {
12345 {
12346 .eraseblocks = { {4 * 1024, 64} },
12347 .block_erase = spi_block_erase_20,
12348 }, {
12349 .eraseblocks = { {4 * 1024, 64} },
12350 .block_erase = spi_block_erase_d7,
12351 }, {
12352 .eraseblocks = { {32 * 1024, 8} },
12353 .block_erase = spi_block_erase_52,
12354 }, {
12355 .eraseblocks = { {64 * 1024, 4} },
12356 .block_erase = spi_block_erase_d8,
12357 }, {
12358 .eraseblocks = { {256 * 1024, 1} },
12359 .block_erase = spi_block_erase_60,
12360 }, {
12361 .eraseblocks = { {256 * 1024, 1} },
12362 .block_erase = spi_block_erase_c7,
12363 }
12364 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012365 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012366 .unlock = spi_disable_blockprotect_bp3_srwd,
12367 .write = spi_chip_write_256,
12368 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
12369 .voltage = {2700, 3600},
12370 },
12371
12372 {
12373 .vendor = "Nantronics",
12374 .name = "N25S40",
12375 .bustype = BUS_SPI,
12376 .manufacture_id = NANTRONICS_ID_NOPREFIX,
12377 .model_id = NANTRONICS_N25S40,
12378 .total_size = 512,
12379 .page_size = 256,
12380 .feature_bits = FEATURE_WRSR_WREN,
12381 .tested = TEST_UNTESTED,
12382 .probe = probe_spi_rdid,
12383 .probe_timing = TIMING_ZERO,
12384 .block_erasers =
12385 {
12386 {
12387 .eraseblocks = { {4 * 1024, 128} },
12388 .block_erase = spi_block_erase_20,
12389 }, {
12390 .eraseblocks = { {4 * 1024, 128} },
12391 .block_erase = spi_block_erase_d7,
12392 }, {
12393 .eraseblocks = { {32 * 1024, 16} },
12394 .block_erase = spi_block_erase_52,
12395 }, {
12396 .eraseblocks = { {64 * 1024, 8} },
12397 .block_erase = spi_block_erase_d8,
12398 }, {
12399 .eraseblocks = { {512 * 1024, 1} },
12400 .block_erase = spi_block_erase_60,
12401 }, {
12402 .eraseblocks = { {512 * 1024, 1} },
12403 .block_erase = spi_block_erase_c7,
12404 }
12405 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012406 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012407 .unlock = spi_disable_blockprotect_bp3_srwd,
12408 .write = spi_chip_write_256,
12409 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
12410 .voltage = {2700, 3600},
12411 },
12412
12413 {
12414 .vendor = "Nantronics",
12415 .name = "N25S80",
12416 .bustype = BUS_SPI,
12417 .manufacture_id = NANTRONICS_ID_NOPREFIX,
12418 .model_id = NANTRONICS_N25S80,
12419 .total_size = 1024,
12420 .page_size = 256,
12421 .feature_bits = FEATURE_WRSR_WREN,
12422 .tested = TEST_UNTESTED,
12423 .probe = probe_spi_rdid,
12424 .probe_timing = TIMING_ZERO,
12425 .block_erasers =
12426 {
12427 {
12428 .eraseblocks = { {4 * 1024, 256} },
12429 .block_erase = spi_block_erase_20,
12430 }, {
12431 .eraseblocks = { {32 * 1024, 32} },
12432 .block_erase = spi_block_erase_52,
12433 }, {
12434 .eraseblocks = { {64 * 1024, 16} },
12435 .block_erase = spi_block_erase_d8,
12436 }, {
12437 .eraseblocks = { {1024 * 1024, 1} },
12438 .block_erase = spi_block_erase_60,
12439 }, {
12440 .eraseblocks = { {1024 * 1024, 1} },
12441 .block_erase = spi_block_erase_c7,
12442 }
12443 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012444 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012445 .unlock = spi_disable_blockprotect_bp3_srwd,
12446 .write = spi_chip_write_256,
12447 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
12448 .voltage = {2700, 3600},
12449 },
12450
12451 {
Stefan Taunerf4451612013-04-19 01:59:15 +000012452 .vendor = "PMC",
12453 .name = "Pm25LD010(C)",
12454 .bustype = BUS_SPI,
12455 .manufacture_id = PMC_ID,
12456 .model_id = PMC_PM25LD010,
12457 .total_size = 128,
12458 .page_size = 256,
12459 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000012460 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +000012461 .probe = probe_spi_rdid,
12462 .probe_timing = TIMING_ZERO,
12463 .block_erasers =
12464 {
12465 {
12466 .eraseblocks = { {4 * 1024, 32} },
12467 .block_erase = spi_block_erase_20,
12468 }, {
12469 .eraseblocks = { {4 * 1024, 32} },
12470 .block_erase = spi_block_erase_d7,
12471 }, {
12472 .eraseblocks = { {32 * 1024, 4} },
12473 .block_erase = spi_block_erase_d8,
12474 }, {
12475 .eraseblocks = { {128 * 1024, 1} },
12476 .block_erase = spi_block_erase_60,
12477 }, {
12478 .eraseblocks = { {128 * 1024, 1} },
12479 .block_erase = spi_block_erase_c7,
12480 }
12481 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012482 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000012483 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
12484 .write = spi_chip_write_256,
12485 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
12486 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD010 */
12487 },
12488
12489 {
12490 .vendor = "PMC",
12491 .name = "Pm25LD020(C)",
12492 .bustype = BUS_SPI,
12493 .manufacture_id = PMC_ID,
12494 .model_id = PMC_PM25LD020,
12495 .total_size = 256,
12496 .page_size = 256,
12497 .feature_bits = FEATURE_WRSR_WREN,
Angel Ponsf5822a82018-09-30 20:09:58 +020012498 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +000012499 .probe = probe_spi_rdid,
12500 .probe_timing = TIMING_ZERO,
12501 .block_erasers =
12502 {
12503 {
12504 .eraseblocks = { {4 * 1024, 64} },
12505 .block_erase = spi_block_erase_20,
12506 }, {
12507 .eraseblocks = { {4 * 1024, 64} },
12508 .block_erase = spi_block_erase_d7,
12509 }, {
12510 .eraseblocks = { {64 * 1024, 4} },
12511 .block_erase = spi_block_erase_d8,
12512 }, {
12513 .eraseblocks = { {256 * 1024, 1} },
12514 .block_erase = spi_block_erase_60,
12515 }, {
12516 .eraseblocks = { {256 * 1024, 1} },
12517 .block_erase = spi_block_erase_c7,
12518 }
12519 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012520 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000012521 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
12522 .write = spi_chip_write_256,
12523 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
12524 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD020 */
12525 },
12526
12527 {
12528 .vendor = "PMC",
12529 .name = "Pm25LD040(C)",
12530 .bustype = BUS_SPI,
12531 .manufacture_id = PMC_ID,
12532 .model_id = PMC_PM25LV040,
12533 .total_size = 512,
12534 .page_size = 256,
12535 .feature_bits = FEATURE_WRSR_WREN,
Angel Pons05127bf2018-09-30 20:23:24 +020012536 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +000012537 .probe = probe_spi_rdid,
12538 .probe_timing = TIMING_ZERO,
12539 .block_erasers =
12540 {
12541 {
12542 .eraseblocks = { {4 * 1024, 128} },
12543 .block_erase = spi_block_erase_20,
12544 }, {
12545 .eraseblocks = { {4 * 1024, 128} },
12546 .block_erase = spi_block_erase_d7,
12547 }, {
12548 .eraseblocks = { {64 * 1024, 8} },
12549 .block_erase = spi_block_erase_d8,
12550 }, {
12551 .eraseblocks = { {512 * 1024, 1} },
12552 .block_erase = spi_block_erase_60,
12553 }, {
12554 .eraseblocks = { {512 * 1024, 1} },
12555 .block_erase = spi_block_erase_c7,
12556 }
12557 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012558 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000012559 .unlock = spi_disable_blockprotect,
12560 .write = spi_chip_write_256,
12561 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
12562 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD040 */
12563 },
12564
Steven Honeyman81a8fb72015-06-02 22:32:24 +000012565 {
12566 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012567 .name = "Pm25LD256C",
12568 .bustype = BUS_SPI,
12569 .manufacture_id = PMC_ID,
12570 .model_id = PMC_PM25LD256C,
12571 .total_size = 32,
12572 .page_size = 256,
12573 .feature_bits = FEATURE_WRSR_WREN,
12574 .tested = TEST_UNTESTED,
12575 .probe = probe_spi_rdid,
12576 .probe_timing = TIMING_ZERO,
12577 .block_erasers =
12578 {
12579 {
12580 .eraseblocks = { {4 * 1024, 8} },
12581 .block_erase = spi_block_erase_20,
12582 }, {
12583 .eraseblocks = { {4 * 1024, 8} },
12584 .block_erase = spi_block_erase_d7,
12585 }, {
12586 .eraseblocks = { {32 * 1024, 1} },
12587 .block_erase = spi_block_erase_d8,
12588 }, {
12589 .eraseblocks = { {32 * 1024, 1} },
12590 .block_erase = spi_block_erase_60,
12591 }, {
12592 .eraseblocks = { {32 * 1024, 1} },
12593 .block_erase = spi_block_erase_c7,
12594 }
12595 },
12596 .printlock = spi_prettyprint_status_register_bp2_srwd,
12597 .unlock = spi_disable_blockprotect,
12598 .write = spi_chip_write_256,
12599 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
12600 .voltage = {2700, 3600},
12601 },
12602
12603 {
12604 .vendor = "PMC",
12605 .name = "Pm25LD512(C)",
12606 .bustype = BUS_SPI,
12607 .manufacture_id = PMC_ID,
12608 .model_id = PMC_PM25LD512,
12609 .total_size = 64,
12610 .page_size = 256,
12611 .feature_bits = FEATURE_WRSR_WREN,
12612 .tested = TEST_OK_PREW,
12613 .probe = probe_spi_rdid,
12614 .probe_timing = TIMING_ZERO,
12615 .block_erasers =
12616 {
12617 {
12618 .eraseblocks = { {4 * 1024, 16} },
12619 .block_erase = spi_block_erase_20,
12620 }, {
12621 .eraseblocks = { {4 * 1024, 16} },
12622 .block_erase = spi_block_erase_d7,
12623 }, {
12624 .eraseblocks = { {32 * 1024, 2} },
12625 .block_erase = spi_block_erase_d8,
12626 }, {
12627 .eraseblocks = { {64 * 1024, 1} },
12628 .block_erase = spi_block_erase_60,
12629 }, {
12630 .eraseblocks = { {64 * 1024, 1} },
12631 .block_erase = spi_block_erase_c7,
12632 }
12633 },
12634 .printlock = spi_prettyprint_status_register_bp2_srwd,
12635 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
12636 .write = spi_chip_write_256,
12637 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
12638 .voltage = {2300, 3600},
12639 },
12640
12641 {
12642 .vendor = "PMC",
12643 .name = "Pm25LQ016",
12644 .bustype = BUS_SPI,
12645 .manufacture_id = PMC_ID,
12646 .model_id = PMC_PM25LQ016,
12647 .total_size = 2048,
12648 .page_size = 256,
12649 /* OTP: 256B total; read 0x4B, write 0xB1 */
12650 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12651 .tested = TEST_UNTESTED,
12652 .probe = probe_spi_rdid,
12653 .probe_timing = TIMING_ZERO,
12654 .block_erasers =
12655 {
12656 {
12657 .eraseblocks = { {4 * 1024, 512} },
12658 .block_erase = spi_block_erase_20,
12659 }, {
12660 .eraseblocks = { {4 * 1024, 512} },
12661 .block_erase = spi_block_erase_d7,
12662 }, {
12663 .eraseblocks = { {64 * 1024, 32} },
12664 .block_erase = spi_block_erase_d8,
12665 }, {
12666 .eraseblocks = { {2048 * 1024, 1} },
12667 .block_erase = spi_block_erase_60,
12668 }, {
12669 .eraseblocks = { {2048 * 1024, 1} },
12670 .block_erase = spi_block_erase_c7,
12671 }
12672 },
12673 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
12674 .unlock = spi_disable_blockprotect_bp3_srwd,
12675 .write = spi_chip_write_256,
12676 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12677 .voltage = {2300, 3600},
12678 },
12679
12680 {
12681 .vendor = "PMC",
Steven Honeyman81a8fb72015-06-02 22:32:24 +000012682 .name = "Pm25LQ020",
12683 .bustype = BUS_SPI,
12684 .manufacture_id = PMC_ID,
12685 .model_id = PMC_PM25LQ020,
12686 .total_size = 256,
12687 .page_size = 256,
12688 /* OTP: 256B total; read 0x4B, write 0xB1 */
12689 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12690 .tested = TEST_UNTESTED,
12691 .probe = probe_spi_rdid,
12692 .probe_timing = TIMING_ZERO,
12693 .block_erasers =
12694 {
12695 {
12696 .eraseblocks = { {4 * 1024, 64} },
12697 .block_erase = spi_block_erase_20,
12698 }, {
12699 .eraseblocks = { {4 * 1024, 64} },
12700 .block_erase = spi_block_erase_d7,
12701 }, {
12702 .eraseblocks = { {64 * 1024, 4} },
12703 .block_erase = spi_block_erase_d8,
12704 }, {
12705 .eraseblocks = { {256 * 1024, 1} },
12706 .block_erase = spi_block_erase_60,
12707 }, {
12708 .eraseblocks = { {256 * 1024, 1} },
12709 .block_erase = spi_block_erase_c7,
12710 }
12711 },
12712 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
12713 .unlock = spi_disable_blockprotect_bp3_srwd,
12714 .write = spi_chip_write_256,
12715 .read = spi_chip_read,
12716 .voltage = {2300, 3600},
12717 },
12718
12719 {
12720 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012721 .name = "Pm25LQ032C",
12722 .bustype = BUS_SPI,
12723 .manufacture_id = PMC_ID,
12724 .model_id = PMC_PM25LQ032C,
12725 .total_size = 4096,
12726 .page_size = 256,
12727 /* OTP: 64B total; read 0x4B, write 0xB1 */
12728 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12729 .tested = TEST_OK_PREW,
12730 .probe = probe_spi_rdid,
12731 .probe_timing = TIMING_ZERO,
12732 .block_erasers =
12733 {
12734 {
12735 .eraseblocks = { {4 * 1024, 1024} },
12736 .block_erase = spi_block_erase_20,
12737 }, {
12738 .eraseblocks = { {4 * 1024, 1024} },
12739 .block_erase = spi_block_erase_d7,
12740 }, {
12741 .eraseblocks = { {64 * 1024, 64} },
12742 .block_erase = spi_block_erase_d8,
12743 }, {
12744 .eraseblocks = { {4096 * 1024, 1} },
12745 .block_erase = spi_block_erase_60,
12746 }, {
12747 .eraseblocks = { {4096 * 1024, 1} },
12748 .block_erase = spi_block_erase_c7,
12749 }
12750 },
12751 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
12752 .unlock = spi_disable_blockprotect_bp3_srwd,
12753 .write = spi_chip_write_256,
12754 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12755 .voltage = {2700, 3600},
12756 },
12757
12758 {
12759 .vendor = "PMC",
Steven Honeyman81a8fb72015-06-02 22:32:24 +000012760 .name = "Pm25LQ040",
12761 .bustype = BUS_SPI,
12762 .manufacture_id = PMC_ID,
12763 .model_id = PMC_PM25LQ040,
12764 .total_size = 512,
12765 .page_size = 256,
12766 /* OTP: 256B total; read 0x4B, write 0xB1 */
12767 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12768 .tested = TEST_UNTESTED,
12769 .probe = probe_spi_rdid,
12770 .probe_timing = TIMING_ZERO,
12771 .block_erasers =
12772 {
12773 {
12774 .eraseblocks = { {4 * 1024, 128} },
12775 .block_erase = spi_block_erase_20,
12776 }, {
12777 .eraseblocks = { {4 * 1024, 128} },
12778 .block_erase = spi_block_erase_d7,
12779 }, {
12780 .eraseblocks = { {64 * 1024, 8} },
12781 .block_erase = spi_block_erase_d8,
12782 }, {
12783 .eraseblocks = { {512 * 1024, 1} },
12784 .block_erase = spi_block_erase_60,
12785 }, {
12786 .eraseblocks = { {512 * 1024, 1} },
12787 .block_erase = spi_block_erase_c7,
12788 }
12789 },
12790 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
12791 .unlock = spi_disable_blockprotect_bp3_srwd,
12792 .write = spi_chip_write_256,
12793 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12794 .voltage = {2300, 3600},
12795 },
12796
12797 {
12798 .vendor = "PMC",
12799 .name = "Pm25LQ080",
12800 .bustype = BUS_SPI,
12801 .manufacture_id = PMC_ID,
12802 .model_id = PMC_PM25LQ080,
12803 .total_size = 1024,
12804 .page_size = 256,
12805 /* OTP: 64B total; read 0x4B, write 0xB1 */
12806 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12807 .tested = TEST_UNTESTED,
12808 .probe = probe_spi_rdid,
12809 .probe_timing = TIMING_ZERO,
12810 .block_erasers =
12811 {
12812 {
12813 .eraseblocks = { {4 * 1024, 256} },
12814 .block_erase = spi_block_erase_20,
12815 }, {
12816 .eraseblocks = { {4 * 1024, 256} },
12817 .block_erase = spi_block_erase_d7,
12818 }, {
12819 .eraseblocks = { {64 * 1024, 16} },
12820 .block_erase = spi_block_erase_d8,
12821 }, {
12822 .eraseblocks = { {1024 * 1024, 1} },
12823 .block_erase = spi_block_erase_60,
12824 }, {
12825 .eraseblocks = { {1024 * 1024, 1} },
12826 .block_erase = spi_block_erase_c7,
12827 }
12828 },
12829 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
12830 .unlock = spi_disable_blockprotect_bp3_srwd,
12831 .write = spi_chip_write_256,
12832 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12833 .voltage = {2300, 3600},
12834 },
12835
12836 {
12837 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012838 .name = "Pm25LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012839 .bustype = BUS_SPI,
Stefan Taunerbecda742014-05-30 19:34:00 +000012840 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012841 .model_id = PMC_PM25LV010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012842 .total_size = 128,
12843 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012844 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerbecda742014-05-30 19:34:00 +000012845 .tested = TEST_OK_PREW,
12846 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000012847 .probe_timing = TIMING_ZERO,
12848 .block_erasers =
12849 {
12850 {
12851 .eraseblocks = { {4 * 1024, 32} },
12852 .block_erase = spi_block_erase_d7,
12853 }, {
12854 .eraseblocks = { {32 * 1024, 4} },
12855 .block_erase = spi_block_erase_d8,
12856 }, {
12857 .eraseblocks = { {128 * 1024, 1} },
12858 .block_erase = spi_block_erase_c7,
12859 }
12860 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012861 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000012862 .unlock = spi_disable_blockprotect,
12863 .write = spi_chip_write_256,
12864 .read = spi_chip_read, /* Fast read (0x0B) supported */
12865 .voltage = {2700, 3600},
12866 },
12867
12868 {
12869 .vendor = "PMC",
12870 .name = "Pm25LV010A",
12871 .bustype = BUS_SPI,
12872 .manufacture_id = PMC_ID,
12873 .model_id = PMC_PM25LV010,
12874 .total_size = 128,
12875 .page_size = 256,
12876 .feature_bits = FEATURE_WRSR_WREN,
12877 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012878 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012879 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000012880 .block_erasers =
12881 {
12882 {
12883 .eraseblocks = { {4 * 1024, 32} },
12884 .block_erase = spi_block_erase_d7,
12885 }, {
12886 .eraseblocks = { {32 * 1024, 4} },
12887 .block_erase = spi_block_erase_d8,
12888 }, {
12889 .eraseblocks = { {128 * 1024, 1} },
12890 .block_erase = spi_block_erase_c7,
12891 }
12892 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012893 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012894 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012895 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000012896 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +000012897 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012898 },
12899
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012900 {
12901 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012902 .name = "Pm25LV016B",
12903 .bustype = BUS_SPI,
12904 .manufacture_id = PMC_ID,
12905 .model_id = PMC_PM25LV016B,
12906 .total_size = 2048,
12907 .page_size = 256,
12908 .feature_bits = FEATURE_WRSR_WREN,
12909 .tested = TEST_UNTESTED,
12910 .probe = probe_spi_rdid,
12911 .probe_timing = TIMING_ZERO,
12912 .block_erasers =
12913 {
12914 {
12915 .eraseblocks = { {4 * 1024, 512} },
12916 .block_erase = spi_block_erase_d7,
12917 }, {
12918 .eraseblocks = { {4 * 1024, 512} },
12919 .block_erase = spi_block_erase_20,
12920 }, {
12921 .eraseblocks = { {64 * 1024, 32} },
12922 .block_erase = spi_block_erase_d8,
12923 }, {
12924 .eraseblocks = { {2 * 1024 * 1024, 1} },
12925 .block_erase = spi_block_erase_60,
12926 }, {
12927 .eraseblocks = { {2 * 1024 * 1024, 1} },
12928 .block_erase = spi_block_erase_c7,
12929 }
12930 },
12931 .printlock = spi_prettyprint_status_register_bp2_srwd,
12932 .unlock = spi_disable_blockprotect,
12933 .write = spi_chip_write_256,
12934 .read = spi_chip_read, /* Fast read (0x0B) supported */
12935 .voltage = {2700, 3600},
12936 },
12937
12938 {
12939 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012940 .name = "Pm25LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012941 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012942 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012943 .model_id = PMC_PM25LV020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012944 .total_size = 256,
12945 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012946 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012947 .tested = TEST_UNTESTED,
12948 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012949 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000012950 .block_erasers =
12951 {
12952 {
12953 .eraseblocks = { {4 * 1024, 64} },
12954 .block_erase = spi_block_erase_d7,
12955 }, {
12956 .eraseblocks = { {64 * 1024, 4} },
12957 .block_erase = spi_block_erase_d8,
12958 }, {
12959 .eraseblocks = { {256 * 1024, 1} },
12960 .block_erase = spi_block_erase_c7,
12961 }
12962 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012963 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012964 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012965 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012966 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012967 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012968 },
12969
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012970 {
12971 .vendor = "PMC",
12972 .name = "Pm25LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012973 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012974 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012975 .model_id = PMC_PM25LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012976 .total_size = 512,
12977 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012978 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +000012979 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012980 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012981 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000012982 .block_erasers =
12983 {
12984 {
12985 .eraseblocks = { {4 * 1024, 128} },
12986 .block_erase = spi_block_erase_d7,
12987 }, {
12988 .eraseblocks = { {64 * 1024, 8} },
12989 .block_erase = spi_block_erase_d8,
12990 }, {
12991 .eraseblocks = { {512 * 1024, 1} },
12992 .block_erase = spi_block_erase_c7,
12993 }
12994 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012995 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012996 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012997 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000012998 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012999 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013000 },
13001
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013002 {
13003 .vendor = "PMC",
13004 .name = "Pm25LV080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013005 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013006 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013007 .model_id = PMC_PM25LV080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013008 .total_size = 1024,
13009 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000013010 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013011 .tested = TEST_UNTESTED,
13012 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013013 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000013014 .block_erasers =
13015 {
13016 {
13017 .eraseblocks = { {4 * 1024, 256} },
13018 .block_erase = spi_block_erase_d7,
13019 }, {
13020 .eraseblocks = { {4 * 1024, 256} },
13021 .block_erase = spi_block_erase_20,
13022 }, {
13023 .eraseblocks = { {64 * 1024, 16} },
13024 .block_erase = spi_block_erase_d8,
13025 }, {
13026 .eraseblocks = { {1024 * 1024, 1} },
13027 .block_erase = spi_block_erase_60,
13028 }, {
13029 .eraseblocks = { {1024 * 1024, 1} },
13030 .block_erase = spi_block_erase_c7,
13031 }
13032 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000013033 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013034 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000013035 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000013036 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013037 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013038 },
13039
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013040 {
13041 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013042 .name = "Pm25LV512(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013043 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013044 .manufacture_id = PMC_ID_NOPREFIX,
13045 .model_id = PMC_PM25LV512,
13046 .total_size = 64,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013047 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000013048 .feature_bits = FEATURE_WRSR_WREN,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013049 .tested = TEST_OK_PREW,
13050 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013051 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000013052 .block_erasers =
13053 {
13054 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013055 .eraseblocks = { {4 * 1024, 16} },
Sean Nelson5643c072010-01-19 03:23:07 +000013056 .block_erase = spi_block_erase_d7,
13057 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013058 .eraseblocks = { {32 * 1024, 2} },
Sean Nelson5643c072010-01-19 03:23:07 +000013059 .block_erase = spi_block_erase_d8,
13060 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013061 .eraseblocks = { {64 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +000013062 .block_erase = spi_block_erase_c7,
13063 }
13064 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100013065 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013066 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000013067 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000013068 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +000013069 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013070 },
13071
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013072 {
13073 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +000013074 .name = "Pm29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013075 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000013076 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013077 .model_id = PMC_PM29F002B,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000013078 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +000013079 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013080 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000013081 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000013082 .probe = probe_jedec,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000013083 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +000013084 .block_erasers =
13085 {
13086 {
13087 .eraseblocks = {
13088 {16 * 1024, 1},
13089 {8 * 1024, 2},
13090 {96 * 1024, 1},
13091 {128 * 1024, 1},
13092 },
Sean Nelson35727f72010-01-28 23:55:12 +000013093 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000013094 }, {
13095 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000013096 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000013097 },
13098 },
Sean Nelson35727f72010-01-28 23:55:12 +000013099 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000013100 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013101 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +000013102 },
13103
13104 {
13105 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013106 .name = "Pm29F002T",
13107 .bustype = BUS_PARALLEL,
13108 .manufacture_id = PMC_ID_NOPREFIX,
13109 .model_id = PMC_PM29F002T,
13110 .total_size = 256,
13111 .page_size = 8 * 1024,
13112 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
13113 .tested = TEST_OK_PREW,
13114 .probe = probe_jedec,
13115 .probe_timing = TIMING_FIXME,
13116 .block_erasers =
13117 {
13118 {
13119 .eraseblocks = {
13120 {128 * 1024, 1},
13121 {96 * 1024, 1},
13122 {8 * 1024, 2},
13123 {16 * 1024, 1},
13124 },
13125 .block_erase = erase_sector_jedec,
13126 }, {
13127 .eraseblocks = { {256 * 1024, 1} },
13128 .block_erase = erase_chip_block_jedec,
13129 },
13130 },
13131 .write = write_jedec_1,
13132 .read = read_memmapped,
13133 .voltage = {4500, 5500},
13134 },
13135
13136 {
13137 .vendor = "PMC",
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000013138 .name = "Pm39LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013139 .bustype = BUS_PARALLEL,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000013140 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013141 .model_id = PMC_PM39F010, /* Pm39LV010 and Pm39F010 have identical IDs but different voltage */
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000013142 .total_size = 128,
13143 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013144 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000013145 .tested = TEST_OK_PREW,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000013146 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013147 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson5643c072010-01-19 03:23:07 +000013148 .block_erasers =
13149 {
13150 {
13151 .eraseblocks = { {4 * 1024, 32} },
13152 .block_erase = erase_sector_jedec,
13153 }, {
13154 .eraseblocks = { {64 * 1024, 2} },
13155 .block_erase = erase_block_jedec,
13156 }, {
13157 .eraseblocks = { {128 * 1024, 1} },
13158 .block_erase = erase_chip_block_jedec,
13159 }
13160 },
Sean Nelson35727f72010-01-28 23:55:12 +000013161 .write = write_jedec_1,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000013162 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013163 .voltage = {2700, 3600},
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000013164 },
13165
13166 {
13167 .vendor = "PMC",
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013168 .name = "Pm39LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013169 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013170 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013171 .model_id = PMC_PM39LV020,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013172 .total_size = 256,
13173 .page_size = 4096,
13174 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
13175 .tested = TEST_UNTESTED,
13176 .probe = probe_jedec,
13177 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Alan Greenfa3fcd32019-06-27 15:41:50 +100013178 .block_erasers =
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013179 {
13180 {
13181 .eraseblocks = { {4 * 1024, 64} },
13182 .block_erase = erase_sector_jedec,
13183 }, {
13184 .eraseblocks = { {64 * 1024, 4} },
13185 .block_erase = erase_block_jedec,
13186 }, {
13187 .eraseblocks = { {256 * 1024, 1} },
13188 .block_erase = erase_chip_block_jedec,
13189 }
13190 },
13191 .write = write_jedec_1,
13192 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013193 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013194 },
13195
13196 {
13197 .vendor = "PMC",
13198 .name = "Pm39LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013199 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013200 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013201 .model_id = PMC_PM39LV040,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013202 .total_size = 512,
13203 .page_size = 4096,
13204 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000013205 .tested = TEST_OK_PR,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013206 .probe = probe_jedec,
13207 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Alan Greenfa3fcd32019-06-27 15:41:50 +100013208 .block_erasers =
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013209 {
13210 {
13211 .eraseblocks = { {4 * 1024, 128} },
13212 .block_erase = erase_sector_jedec,
13213 }, {
13214 .eraseblocks = { {64 * 1024, 8} },
13215 .block_erase = erase_block_jedec,
13216 }, {
13217 .eraseblocks = { {512 * 1024, 1} },
13218 .block_erase = erase_chip_block_jedec,
13219 }
13220 },
13221 .write = write_jedec_1,
13222 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013223 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013224 },
Kyösti Mälkkiedab1d22012-05-20 23:32:33 +000013225
13226 {
13227 .vendor = "PMC",
13228 .name = "Pm39LV512",
13229 .bustype = BUS_PARALLEL,
13230 .manufacture_id = PMC_ID_NOPREFIX,
13231 .model_id = PMC_PM39LV512,
13232 .total_size = 64,
13233 .page_size = 4096,
13234 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
13235 .tested = TEST_OK_PREW,
13236 .probe = probe_jedec,
13237 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
13238 .block_erasers =
13239 {
13240 {
13241 .eraseblocks = { {4 * 1024, 16} },
13242 .block_erase = erase_sector_jedec,
13243 }, {
13244 .eraseblocks = { {64 * 1024, 1} },
13245 .block_erase = erase_block_jedec,
13246 }, {
13247 .eraseblocks = { {64 * 1024, 1} },
13248 .block_erase = erase_chip_block_jedec,
13249 }
13250 },
13251 .write = write_jedec_1,
13252 .read = read_memmapped,
13253 .voltage = {2700, 3600},
13254 },
13255
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013256 {
13257 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013258 .name = "Pm49FL002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013259 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013260 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013261 .model_id = PMC_PM49FL002,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013262 .total_size = 256,
13263 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013264 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013265 .tested = TEST_OK_PR,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000013266 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013267 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +000013268 .block_erasers =
13269 {
13270 {
13271 .eraseblocks = { {4 * 1024, 64} },
13272 .block_erase = erase_sector_jedec,
13273 }, {
13274 .eraseblocks = { {16 * 1024, 16} },
13275 .block_erase = erase_block_jedec,
13276 }, {
13277 .eraseblocks = { {256 * 1024, 1} },
13278 .block_erase = erase_chip_block_jedec,
13279 }
13280 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013281 .unlock = unlock_regspace2_uniform_32k,
Sean Nelson36172342010-02-27 18:01:15 +000013282 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013283 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013284 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013285 },
13286
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013287 {
13288 .vendor = "PMC",
13289 .name = "Pm49FL004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013290 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013291 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013292 .model_id = PMC_PM49FL004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013293 .total_size = 512,
13294 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013295 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner74dc73f2015-03-01 22:04:38 +000013296 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000013297 .probe = probe_jedec,
Stefan Tauner74dc73f2015-03-01 22:04:38 +000013298 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000013299 .block_erasers =
13300 {
13301 {
13302 .eraseblocks = { {4 * 1024, 128} },
13303 .block_erase = erase_sector_jedec,
13304 }, {
13305 .eraseblocks = { {64 * 1024, 8} },
13306 .block_erase = erase_block_jedec,
13307 }, {
13308 .eraseblocks = { {512 * 1024, 1} },
13309 .block_erase = erase_chip_block_jedec,
13310 }
13311 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013312 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson36172342010-02-27 18:01:15 +000013313 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013314 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013315 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013316 },
13317
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013318 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013319 .vendor = "SST",
Idwer Volleringf3607d12014-05-07 15:25:04 +000013320 .name = "SST25LF020A",
13321 .bustype = BUS_SPI,
13322 .manufacture_id = SST_ID,
13323 .model_id = SST_SST25VF020_REMS,
13324 .total_size = 256,
13325 .page_size = 256,
13326 .feature_bits = FEATURE_WRSR_EWSR,
13327 .tested = TEST_OK_PREW,
13328 .probe = probe_spi_rems,
13329 .probe_timing = TIMING_ZERO,
13330 .block_erasers =
13331 {
13332 {
13333 .eraseblocks = { {4 * 1024, 64} },
13334 .block_erase = spi_block_erase_20,
13335 }, {
13336 .eraseblocks = { {32 * 1024, 8} },
13337 .block_erase = spi_block_erase_52,
13338 }, {
13339 .eraseblocks = { {256 * 1024, 1} },
13340 .block_erase = spi_block_erase_60,
13341 },
13342 },
13343 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
13344 .unlock = spi_disable_blockprotect,
13345 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13346 .read = spi_chip_read, /* Fast read (0x0B) supported */
13347 .voltage = {2700, 3600},
13348 },
13349
13350 {
13351 .vendor = "SST",
Zeus Castro33670ba2011-08-17 09:50:11 +000013352 .name = "SST25LF040A",
13353 .bustype = BUS_SPI,
13354 .manufacture_id = SST_ID,
13355 .model_id = SST_SST25VF040_REMS,
13356 .total_size = 512,
13357 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000013358 .feature_bits = FEATURE_WRSR_EWSR,
Uwe Hermann4335ec82011-09-07 20:20:25 +000013359 .tested = TEST_OK_PREW,
Zeus Castro33670ba2011-08-17 09:50:11 +000013360 .probe = probe_spi_res2,
13361 .probe_timing = TIMING_ZERO,
13362 .block_erasers =
13363 {
13364 {
13365 .eraseblocks = { {4 * 1024, 128} },
13366 .block_erase = spi_block_erase_20,
13367 }, {
13368 .eraseblocks = { {32 * 1024, 16} },
13369 .block_erase = spi_block_erase_52,
13370 }, {
13371 .eraseblocks = { {512 * 1024, 1} },
13372 .block_erase = spi_block_erase_60,
13373 },
13374 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013375 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +000013376 .unlock = spi_disable_blockprotect,
13377 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13378 .read = spi_chip_read,
13379 .voltage = {3000, 3600},
13380 },
13381
13382 {
13383 .vendor = "SST",
Stefan Taunere34e3e82013-01-01 00:06:51 +000013384 .name = "SST25LF080(A)",
Zeus Castro33670ba2011-08-17 09:50:11 +000013385 .bustype = BUS_SPI,
13386 .manufacture_id = SST_ID,
13387 .model_id = SST_SST25VF080_REMS,
13388 .total_size = 1024,
13389 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000013390 .feature_bits = FEATURE_WRSR_EITHER,
Zeus Castro33670ba2011-08-17 09:50:11 +000013391 .tested = TEST_UNTESTED,
13392 .probe = probe_spi_res2,
13393 .probe_timing = TIMING_ZERO,
13394 .block_erasers =
13395 {
13396 {
13397 .eraseblocks = { {4 * 1024, 256} },
13398 .block_erase = spi_block_erase_20,
13399 }, {
13400 .eraseblocks = { {32 * 1024, 32} },
13401 .block_erase = spi_block_erase_52,
13402 }, {
13403 .eraseblocks = { {1024 * 1024, 1} },
13404 .block_erase = spi_block_erase_60,
13405 },
13406 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013407 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +000013408 .unlock = spi_disable_blockprotect,
13409 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13410 .read = spi_chip_read,
13411 .voltage = {3000, 3600},
13412 },
13413
13414 {
13415 .vendor = "SST",
Stefan Tauner6697f712014-08-06 15:09:15 +000013416 .name = "SST25VF010(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013417 .bustype = BUS_SPI,
Mark Marshall90021f22010-12-03 14:48:11 +000013418 .manufacture_id = SST_ID,
13419 .model_id = SST_SST25VF010_REMS,
13420 .total_size = 128,
13421 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000013422 .feature_bits = FEATURE_WRSR_EWSR,
Mark Marshall90021f22010-12-03 14:48:11 +000013423 .tested = TEST_OK_PREW,
13424 .probe = probe_spi_rems,
13425 .probe_timing = TIMING_ZERO,
13426 .block_erasers =
13427 {
13428 {
13429 .eraseblocks = { {4 * 1024, 32} },
13430 .block_erase = spi_block_erase_20,
13431 }, {
13432 .eraseblocks = { {32 * 1024, 4} },
13433 .block_erase = spi_block_erase_52,
13434 }, {
Cory Henderson370f5822013-10-19 23:09:16 +000013435 .eraseblocks = { {32 * 1024, 4} },
Stefan Tauner6697f712014-08-06 15:09:15 +000013436 .block_erase = spi_block_erase_d8, /* Supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000013437 }, {
Mark Marshall90021f22010-12-03 14:48:11 +000013438 .eraseblocks = { {128 * 1024, 1} },
13439 .block_erase = spi_block_erase_60,
Cory Henderson370f5822013-10-19 23:09:16 +000013440 }, {
13441 .eraseblocks = { {128 * 1024, 1} },
Stefan Tauner6697f712014-08-06 15:09:15 +000013442 .block_erase = spi_block_erase_c7, /* Supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000013443 },
13444 },
13445 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
13446 .unlock = spi_disable_blockprotect,
13447 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
Stefan Tauner6697f712014-08-06 15:09:15 +000013448 .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000013449 .voltage = {2700, 3600},
13450 },
13451
13452 {
13453 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013454 .name = "SST25VF016B",
13455 .bustype = BUS_SPI,
13456 .manufacture_id = SST_ID,
13457 .model_id = SST_SST25VF016B,
13458 .total_size = 2048,
13459 .page_size = 256,
13460 .feature_bits = FEATURE_WRSR_EITHER,
13461 .tested = TEST_OK_PREW,
13462 .probe = probe_spi_rdid,
13463 .probe_timing = TIMING_ZERO,
13464 .block_erasers =
13465 {
13466 {
13467 .eraseblocks = { {4 * 1024, 512} },
13468 .block_erase = spi_block_erase_20,
13469 }, {
13470 .eraseblocks = { {32 * 1024, 64} },
13471 .block_erase = spi_block_erase_52,
13472 }, {
13473 .eraseblocks = { {64 * 1024, 32} },
13474 .block_erase = spi_block_erase_d8,
13475 }, {
13476 .eraseblocks = { {2 * 1024 * 1024, 1} },
13477 .block_erase = spi_block_erase_60,
13478 }, {
13479 .eraseblocks = { {2 * 1024 * 1024, 1} },
13480 .block_erase = spi_block_erase_c7,
13481 },
13482 },
13483 .printlock = spi_prettyprint_status_register_sst25vf016,
13484 .unlock = spi_disable_blockprotect,
13485 .write = spi_aai_write,
13486 .read = spi_chip_read,
13487 .voltage = {2700, 3600},
13488 },
13489
13490 {
13491 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +000013492 .name = "SST25VF020",
13493 .bustype = BUS_SPI,
13494 .manufacture_id = SST_ID,
13495 .model_id = SST_SST25VF020_REMS,
13496 .total_size = 256,
13497 .page_size = 256,
13498 .feature_bits = FEATURE_WRSR_EWSR,
13499 .tested = TEST_UNTESTED,
13500 .probe = probe_spi_rems,
13501 .probe_timing = TIMING_ZERO,
13502 .block_erasers =
13503 {
13504 {
13505 .eraseblocks = { {4 * 1024, 64} },
13506 .block_erase = spi_block_erase_20,
13507 }, {
13508 .eraseblocks = { {32 * 1024, 8} },
13509 .block_erase = spi_block_erase_52,
13510 }, {
13511 .eraseblocks = { {256 * 1024, 1} },
13512 .block_erase = spi_block_erase_60,
13513 },
13514 },
13515 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
13516 .unlock = spi_disable_blockprotect,
13517 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13518 .read = spi_chip_read, /* only */
13519 .voltage = {2700, 3600},
13520 },
13521
13522 {
13523 .vendor = "SST",
13524 .name = "SST25VF020B",
13525 .bustype = BUS_SPI,
13526 .manufacture_id = SST_ID,
13527 .model_id = SST_SST25VF020B,
13528 .total_size = 256,
13529 .page_size = 256,
13530 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000013531 .tested = TEST_OK_PREW,
Cory Henderson370f5822013-10-19 23:09:16 +000013532 .probe = probe_spi_rdid,
13533 .probe_timing = TIMING_ZERO,
13534 .block_erasers =
13535 {
13536 {
13537 .eraseblocks = { {4 * 1024, 64} },
13538 .block_erase = spi_block_erase_20,
13539 }, {
13540 .eraseblocks = { {32 * 1024, 8} },
13541 .block_erase = spi_block_erase_52,
13542 }, {
13543 .eraseblocks = { {64 * 1024, 4} },
13544 .block_erase = spi_block_erase_d8,
13545 }, {
13546 .eraseblocks = { {256 * 1024, 1} },
13547 .block_erase = spi_block_erase_60,
13548 }, {
13549 .eraseblocks = { {256 * 1024, 1} },
13550 .block_erase = spi_block_erase_c7,
13551 },
13552 },
13553 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 and 2nd SR */
13554 .unlock = spi_disable_blockprotect, /* FIXME: 2nd SR */
13555 .write = spi_aai_write, /* AAI supported (0xAD) */
13556 .read = spi_chip_read, /* Fast read (0x0B) supported */
13557 .voltage = {2700, 3600},
13558 },
13559
13560 {
13561 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013562 .name = "SST25VF032B",
13563 .bustype = BUS_SPI,
13564 .manufacture_id = SST_ID,
13565 .model_id = SST_SST25VF032B,
13566 .total_size = 4096,
13567 .page_size = 256,
13568 .feature_bits = FEATURE_WRSR_EWSR,
13569 .tested = TEST_OK_PREW,
13570 .probe = probe_spi_rdid,
13571 .probe_timing = TIMING_ZERO,
13572 .block_erasers =
13573 {
13574 {
13575 .eraseblocks = { {4 * 1024, 1024} },
13576 .block_erase = spi_block_erase_20,
13577 }, {
13578 .eraseblocks = { {32 * 1024, 128} },
13579 .block_erase = spi_block_erase_52,
13580 }, {
13581 .eraseblocks = { {64 * 1024, 64} },
13582 .block_erase = spi_block_erase_d8,
13583 }, {
13584 .eraseblocks = { {4 * 1024 * 1024, 1} },
13585 .block_erase = spi_block_erase_60,
13586 }, {
13587 .eraseblocks = { {4 * 1024 * 1024, 1} },
13588 .block_erase = spi_block_erase_c7,
13589 },
13590 },
13591 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
13592 .unlock = spi_disable_blockprotect,
13593 .write = spi_aai_write,
13594 .read = spi_chip_read,
13595 .voltage = {2700, 3600},
13596 },
13597
13598 {
13599 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +000013600 .name = "SST25VF040",
13601 .bustype = BUS_SPI,
13602 .manufacture_id = SST_ID,
13603 .model_id = SST_SST25VF040_REMS,
13604 .total_size = 512,
13605 .page_size = 256,
13606 .feature_bits = FEATURE_WRSR_EWSR,
13607 .tested = TEST_OK_PR,
13608 .probe = probe_spi_rems,
13609 .probe_timing = TIMING_ZERO,
13610 .block_erasers =
13611 {
13612 {
13613 .eraseblocks = { {4 * 1024, 128} },
13614 .block_erase = spi_block_erase_20,
13615 }, {
13616 .eraseblocks = { {32 * 1024, 16} },
13617 .block_erase = spi_block_erase_52,
13618 }, {
13619 .eraseblocks = { {512 * 1024, 1} },
13620 .block_erase = spi_block_erase_60,
Mark Marshall90021f22010-12-03 14:48:11 +000013621 },
13622 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013623 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Mark Marshall90021f22010-12-03 14:48:11 +000013624 .unlock = spi_disable_blockprotect,
Cory Henderson370f5822013-10-19 23:09:16 +000013625 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13626 .read = spi_chip_read,
13627 .voltage = {2700, 3600},
13628 },
13629
13630 {
13631 .vendor = "SST",
13632 .name = "SST25VF040B",
13633 .bustype = BUS_SPI,
13634 .manufacture_id = SST_ID,
13635 .model_id = SST_SST25VF040B,
13636 .total_size = 512,
13637 .page_size = 256,
13638 .feature_bits = FEATURE_WRSR_EWSR,
13639 .tested = TEST_OK_PREW,
13640 .probe = probe_spi_rdid,
13641 .probe_timing = TIMING_ZERO,
13642 .block_erasers =
13643 {
13644 {
13645 .eraseblocks = { {4 * 1024, 128} },
13646 .block_erase = spi_block_erase_20,
13647 }, {
13648 .eraseblocks = { {32 * 1024, 16} },
13649 .block_erase = spi_block_erase_52,
13650 }, {
13651 .eraseblocks = { {64 * 1024, 8} },
13652 .block_erase = spi_block_erase_d8,
13653 }, {
13654 .eraseblocks = { {512 * 1024, 1} },
13655 .block_erase = spi_block_erase_60,
13656 }, {
13657 .eraseblocks = { {512 * 1024, 1} },
13658 .block_erase = spi_block_erase_c7,
13659 },
13660 },
13661 .printlock = spi_prettyprint_status_register_sst25vf040b,
13662 .unlock = spi_disable_blockprotect,
13663 .write = spi_aai_write, /* AAI supported (0xAD) */
13664 .read = spi_chip_read, /* Fast read (0x0B) supported */
13665 .voltage = {2700, 3600},
13666 },
13667
13668 {
13669 .vendor = "SST",
13670 .name = "SST25VF040B.REMS",
13671 .bustype = BUS_SPI,
13672 .manufacture_id = SST_ID,
13673 .model_id = SST_SST25VF040B_REMS,
13674 .total_size = 512,
13675 .page_size = 256,
13676 .feature_bits = FEATURE_WRSR_EWSR,
13677 .tested = TEST_OK_PREW,
13678 .probe = probe_spi_rems,
13679 .probe_timing = TIMING_ZERO,
13680 .block_erasers =
13681 {
13682 {
13683 .eraseblocks = { {4 * 1024, 128} },
13684 .block_erase = spi_block_erase_20,
13685 }, {
13686 .eraseblocks = { {32 * 1024, 16} },
13687 .block_erase = spi_block_erase_52,
13688 }, {
13689 .eraseblocks = { {64 * 1024, 8} },
13690 .block_erase = spi_block_erase_d8,
13691 }, {
13692 .eraseblocks = { {512 * 1024, 1} },
13693 .block_erase = spi_block_erase_60,
13694 }, {
13695 .eraseblocks = { {512 * 1024, 1} },
13696 .block_erase = spi_block_erase_c7,
13697 },
13698 },
13699 .printlock = spi_prettyprint_status_register_sst25vf040b,
13700 .unlock = spi_disable_blockprotect,
13701 .write = spi_aai_write,
13702 .read = spi_chip_read,
13703 .voltage = {2700, 3600},
13704 },
13705
13706 {
13707 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013708 .name = "SST25VF064C",
Ben Gardnerbcf61092015-11-22 02:23:31 +000013709 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013710 .manufacture_id = SST_ID,
13711 .model_id = SST_SST25VF064C,
13712 .total_size = 8192,
Ben Gardnerbcf61092015-11-22 02:23:31 +000013713 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013714 .feature_bits = FEATURE_WRSR_EWSR,
Ben Gardnerbcf61092015-11-22 02:23:31 +000013715 .tested = TEST_OK_PREW,
13716 .probe = probe_spi_rdid,
13717 .probe_timing = TIMING_ZERO,
13718 .block_erasers =
13719 {
13720 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013721 .eraseblocks = { {4 * 1024, 2048} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000013722 .block_erase = spi_block_erase_20,
13723 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013724 .eraseblocks = { {32 * 1024, 256} },
13725 .block_erase = spi_block_erase_52,
13726 }, {
13727 .eraseblocks = { {64 * 1024, 128} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000013728 .block_erase = spi_block_erase_d8,
13729 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013730 .eraseblocks = { {8 * 1024 * 1024, 1} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000013731 .block_erase = spi_block_erase_60,
13732 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013733 .eraseblocks = { {8 * 1024 * 1024, 1} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000013734 .block_erase = spi_block_erase_c7,
13735 },
13736 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100013737 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
13738 .unlock = spi_disable_blockprotect,
Ben Gardnerbcf61092015-11-22 02:23:31 +000013739 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013740 .read = spi_chip_read,
13741 .voltage = {2700, 3600},
Ben Gardnerbcf61092015-11-22 02:23:31 +000013742 },
13743
13744 {
13745 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +000013746 .name = "SST25VF080B",
13747 .bustype = BUS_SPI,
13748 .manufacture_id = SST_ID,
13749 .model_id = SST_SST25VF080B,
13750 .total_size = 1024,
13751 .page_size = 256,
13752 .feature_bits = FEATURE_WRSR_EWSR,
13753 .tested = TEST_OK_PREW,
13754 .probe = probe_spi_rdid,
13755 .probe_timing = TIMING_ZERO,
13756 .block_erasers =
13757 {
13758 {
13759 .eraseblocks = { {4 * 1024, 256} },
13760 .block_erase = spi_block_erase_20,
13761 }, {
13762 .eraseblocks = { {32 * 1024, 32} },
13763 .block_erase = spi_block_erase_52,
13764 }, {
13765 .eraseblocks = { {64 * 1024, 16} },
13766 .block_erase = spi_block_erase_d8,
13767 }, {
13768 .eraseblocks = { {1024 * 1024, 1} },
13769 .block_erase = spi_block_erase_60,
13770 }, {
13771 .eraseblocks = { {1024 * 1024, 1} },
13772 .block_erase = spi_block_erase_c7,
13773 },
13774 },
13775 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
13776 .unlock = spi_disable_blockprotect,
13777 .write = spi_aai_write,
Mark Marshall90021f22010-12-03 14:48:11 +000013778 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000013779 .voltage = {2700, 3600},
Mark Marshall90021f22010-12-03 14:48:11 +000013780 },
13781
13782 {
13783 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013784 .name = "SST25VF512(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013785 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013786 .manufacture_id = SST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013787 .model_id = SST_SST25VF512_REMS,
13788 .total_size = 64,
13789 .page_size = 256,
13790 .feature_bits = FEATURE_WRSR_EWSR,
13791 .tested = TEST_OK_PREW,
13792 .probe = probe_spi_rems,
13793 .probe_timing = TIMING_ZERO,
13794 .block_erasers =
13795 {
13796 {
13797 .eraseblocks = { {4 * 1024, 16} },
13798 .block_erase = spi_block_erase_20,
13799 }, {
13800 .eraseblocks = { {32 * 1024, 2} },
13801 .block_erase = spi_block_erase_52,
13802 }, {
13803 .eraseblocks = { {32 * 1024, 2} },
13804 .block_erase = spi_block_erase_d8, /* Supported by SST25VF512A only */
13805 }, {
13806 .eraseblocks = { {64 * 1024, 1} },
13807 .block_erase = spi_block_erase_60,
13808 }, {
13809 .eraseblocks = { {64 * 1024, 1} },
13810 .block_erase = spi_block_erase_c7, /* Supported by SST25VF512A only */
13811 },
13812 },
13813 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
13814 .unlock = spi_disable_blockprotect,
13815 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13816 .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF512A only */
13817 .voltage = {2700, 3600},
13818 },
13819
13820 {
13821 .vendor = "SST",
13822 .name = "SST25WF010",
13823 .bustype = BUS_SPI,
13824 .manufacture_id = SST_ID,
13825 .model_id = SST_SST25WF010,
13826 .total_size = 128,
13827 .page_size = 256,
13828 .feature_bits = FEATURE_WRSR_EITHER,
13829 .tested = TEST_UNTESTED,
13830 .probe = probe_spi_rdid,
13831 .probe_timing = TIMING_ZERO,
13832 .block_erasers =
13833 {
13834 {
13835 .eraseblocks = { {4 * 1024, 32} },
13836 .block_erase = spi_block_erase_20,
13837 }, {
13838 .eraseblocks = { {32 * 1024, 4} },
13839 .block_erase = spi_block_erase_52,
13840 }, {
13841 .eraseblocks = { {1024 * 128, 1} },
13842 .block_erase = spi_block_erase_60,
13843 }, {
13844 .eraseblocks = { {1024 * 128, 1} },
13845 .block_erase = spi_block_erase_c7,
13846 },
13847 },
13848 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
13849 .unlock = spi_disable_blockprotect_bp2_srwd,
13850 .write = spi_aai_write,
13851 .read = spi_chip_read, /* Fast read (0x0B) supported */
13852 .voltage = {1650, 1950},
13853 },
13854
13855 {
13856 .vendor = "SST",
13857 .name = "SST25WF020",
13858 .bustype = BUS_SPI,
13859 .manufacture_id = SST_ID,
13860 .model_id = SST_SST25WF020,
13861 .total_size = 256,
13862 .page_size = 256,
13863 .feature_bits = FEATURE_WRSR_EITHER,
13864 .tested = TEST_UNTESTED,
13865 .probe = probe_spi_rdid,
13866 .probe_timing = TIMING_ZERO,
13867 .block_erasers =
13868 {
13869 {
13870 .eraseblocks = { {4 * 1024, 64} },
13871 .block_erase = spi_block_erase_20,
13872 }, {
13873 .eraseblocks = { {32 * 1024, 8} },
13874 .block_erase = spi_block_erase_52,
13875 }, {
13876 .eraseblocks = { {64 * 1024, 4} },
13877 .block_erase = spi_block_erase_d8,
13878 }, {
13879 .eraseblocks = { {1024 * 256, 1} },
13880 .block_erase = spi_block_erase_60,
13881 }, {
13882 .eraseblocks = { {1024 * 256, 1} },
13883 .block_erase = spi_block_erase_c7,
13884 },
13885 },
13886 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
13887 .unlock = spi_disable_blockprotect_bp2_srwd,
13888 .write = spi_aai_write,
13889 .read = spi_chip_read, /* Fast read (0x0B) supported */
13890 .voltage = {1650, 1950},
13891 },
13892
13893 {
13894 .vendor = "SST",
13895 .name = "SST25WF020A",
13896 .bustype = BUS_SPI,
13897 .manufacture_id = SANYO_ID, /* See flashchips.h */
13898 .model_id = SST_SST25WF020A,
13899 .total_size = 256,
13900 .page_size = 256,
13901 .feature_bits = FEATURE_WRSR_WREN,
13902 .tested = TEST_UNTESTED,
13903 .probe = probe_spi_rdid,
13904 .probe_timing = TIMING_ZERO,
13905 .block_erasers =
13906 {
13907 {
13908 .eraseblocks = { {4 * 1024, 64} },
13909 .block_erase = spi_block_erase_20,
13910 }, {
13911 .eraseblocks = { {64 * 1024, 4} },
13912 .block_erase = spi_block_erase_d8,
13913 }, {
13914 .eraseblocks = { {256 * 1024, 1} },
13915 .block_erase = spi_block_erase_60,
13916 }, {
13917 .eraseblocks = { {256 * 1024, 1} },
13918 .block_erase = spi_block_erase_c7,
13919 },
13920 },
13921 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
13922 .unlock = spi_disable_blockprotect_bp2_srwd,
13923 .write = spi_chip_write_256,
13924 .read = spi_chip_read, /* Fast read (0x0B) supported */
13925 .voltage = {1650, 1950},
13926 },
13927
13928 {
13929 .vendor = "SST",
13930 .name = "SST25WF040",
13931 .bustype = BUS_SPI,
13932 .manufacture_id = SST_ID,
13933 .model_id = SST_SST25WF040,
13934 .total_size = 512,
13935 .page_size = 256,
13936 .feature_bits = FEATURE_WRSR_EITHER,
13937 .tested = TEST_UNTESTED,
13938 .probe = probe_spi_rdid,
13939 .probe_timing = TIMING_ZERO,
13940 .block_erasers =
13941 {
13942 {
13943 .eraseblocks = { {4 * 1024, 128} },
13944 .block_erase = spi_block_erase_20,
13945 }, {
13946 .eraseblocks = { {32 * 1024, 16} },
13947 .block_erase = spi_block_erase_52,
13948 }, {
13949 .eraseblocks = { {64 * 1024, 8} },
13950 .block_erase = spi_block_erase_d8,
13951 }, {
13952 .eraseblocks = { {1024 * 512, 1} },
13953 .block_erase = spi_block_erase_60,
13954 }, {
13955 .eraseblocks = { {1024 * 512, 1} },
13956 .block_erase = spi_block_erase_c7,
13957 },
13958 },
13959 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
13960 .unlock = spi_disable_blockprotect_bp2_srwd,
13961 .write = spi_aai_write,
13962 .read = spi_chip_read, /* Fast read (0x0B) supported */
13963 .voltage = {1650, 1950},
13964 },
13965
13966 {
13967 .vendor = "SST",
13968 .name = "SST25WF040B",
13969 .bustype = BUS_SPI,
13970 .manufacture_id = SANYO_ID, /* See flashchips.h */
13971 .model_id = SST_SST25WF040B,
13972 .total_size = 512,
13973 .page_size = 256,
13974 .feature_bits = FEATURE_WRSR_WREN,
13975 .tested = TEST_UNTESTED,
13976 .probe = probe_spi_rdid,
13977 .probe_timing = TIMING_ZERO,
13978 .block_erasers =
13979 {
13980 {
13981 .eraseblocks = { {4 * 1024, 128} },
13982 .block_erase = spi_block_erase_20,
13983 }, {
13984 .eraseblocks = { {64 * 1024, 8} },
13985 .block_erase = spi_block_erase_d8,
13986 }, {
13987 .eraseblocks = { {512 * 1024, 1} },
13988 .block_erase = spi_block_erase_60,
13989 }, {
13990 .eraseblocks = { {512 * 1024, 1} },
13991 .block_erase = spi_block_erase_c7,
13992 },
13993 },
13994 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
13995 .unlock = spi_disable_blockprotect_bp2_srwd,
13996 .write = spi_chip_write_256,
13997 .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */
13998 .voltage = {1650, 1950},
13999 },
14000
14001 {
14002 .vendor = "SST",
14003 .name = "SST25WF080",
14004 .bustype = BUS_SPI,
14005 .manufacture_id = SST_ID,
14006 .model_id = SST_SST25WF080,
14007 .total_size = 1024,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014008 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000014009 .feature_bits = FEATURE_WRSR_EITHER,
Mark Marshall90021f22010-12-03 14:48:11 +000014010 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014011 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000014012 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014013 .block_erasers =
14014 {
14015 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014016 .eraseblocks = { {4 * 1024, 256} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014017 .block_erase = spi_block_erase_20,
14018 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014019 .eraseblocks = { {32 * 1024, 32} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014020 .block_erase = spi_block_erase_52,
14021 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014022 .eraseblocks = { {64 * 1024, 16} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014023 .block_erase = spi_block_erase_d8,
14024 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014025 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014026 .block_erase = spi_block_erase_60,
14027 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014028 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014029 .block_erase = spi_block_erase_c7,
14030 },
14031 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100014032 .printlock = spi_prettyprint_status_register_sst25, /* *does* have a BP3 but it is useless */
14033 .unlock = spi_disable_blockprotect_bp3_srwd,
Joshua Roys87955bf2011-08-01 18:39:28 +000014034 .write = spi_aai_write,
Alan Green1f9cc7d2019-07-01 11:10:45 +100014035 .read = spi_chip_read, /* Fast read (0x0B) supported */
14036 .voltage = {1650, 1950},
FENG yu ningff692fb2008-12-08 18:15:10 +000014037 },
14038
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014039 {
14040 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100014041 .name = "SST25WF080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014042 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +100014043 .manufacture_id = SANYO_ID, /* See flashchips.h */
14044 .model_id = SST_SST25WF080B,
14045 .total_size = 1024,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014046 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100014047 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerfcf6a8c2011-05-18 01:32:00 +000014048 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014049 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000014050 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014051 .block_erasers =
14052 {
14053 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014054 .eraseblocks = { {4 * 1024, 256} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014055 .block_erase = spi_block_erase_20,
14056 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014057 .eraseblocks = { {64 * 1024, 16} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014058 .block_erase = spi_block_erase_d8,
14059 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014060 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014061 .block_erase = spi_block_erase_60,
14062 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014063 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014064 .block_erase = spi_block_erase_c7,
14065 },
14066 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100014067 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
14068 .unlock = spi_disable_blockprotect_bp2_srwd,
Helge Wagner1db7a442010-10-05 22:29:08 +000014069 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100014070 .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */
14071 .voltage = {1650, 1950},
14072 },
14073
14074 {
14075 .vendor = "SST",
14076 .name = "SST25WF512",
14077 .bustype = BUS_SPI,
14078 .manufacture_id = SST_ID,
14079 .model_id = SST_SST25WF512,
14080 .total_size = 64,
14081 .page_size = 256,
14082 .feature_bits = FEATURE_WRSR_EITHER,
14083 .tested = TEST_UNTESTED,
14084 .probe = probe_spi_rdid,
14085 .probe_timing = TIMING_ZERO,
14086 .block_erasers =
14087 {
14088 {
14089 .eraseblocks = { {4 * 1024, 16} },
14090 .block_erase = spi_block_erase_20,
14091 }, {
14092 .eraseblocks = { {32 * 1024, 2} },
14093 .block_erase = spi_block_erase_52,
14094 }, {
14095 .eraseblocks = { {1024 * 64, 1} },
14096 .block_erase = spi_block_erase_60,
14097 }, {
14098 .eraseblocks = { {1024 * 64, 1} },
14099 .block_erase = spi_block_erase_c7,
14100 },
14101 },
14102 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
14103 .unlock = spi_disable_blockprotect_bp2_srwd,
14104 .write = spi_aai_write,
14105 .read = spi_chip_read, /* Fast read (0x0B) supported */
14106 .voltage = {1650, 1950},
Ed Swierk86f4e6d2010-07-21 15:02:22 +000014107 },
14108
14109 {
14110 .vendor = "SST",
Wei Hu25584de2018-04-30 14:02:08 -070014111 .name = "SST26VF016B(A)",
14112 .bustype = BUS_SPI,
14113 .manufacture_id = SST_ID,
14114 .model_id = SST_SST26VF016B,
14115 .total_size = 2048,
14116 .page_size = 256,
14117 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
14118 .tested = TEST_OK_PREW,
14119 .probe = probe_spi_rdid,
14120 .probe_timing = TIMING_ZERO,
14121 .block_erasers =
14122 {
14123 {
14124 .eraseblocks = { {4 * 1024, 512} },
14125 .block_erase = spi_block_erase_20,
14126 }, {
14127 .eraseblocks = {
14128 {8 * 1024, 4},
14129 {32 * 1024, 1},
14130 {64 * 1024, 30},
14131 {32 * 1024, 1},
14132 {8 * 1024, 4},
14133 },
14134 .block_erase = spi_block_erase_d8,
14135 }, {
14136 .eraseblocks = { {2 * 1024 * 1024, 1} },
14137 .block_erase = spi_block_erase_c7,
14138 },
14139 },
14140 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14141 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
14142 .write = spi_chip_write_256, /* Multi I/O supported */
14143 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
14144 .voltage = {2700, 3600},
14145 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100014146
Wei Hu25584de2018-04-30 14:02:08 -070014147 {
14148 .vendor = "SST",
14149 .name = "SST26VF032B(A)",
14150 .bustype = BUS_SPI,
14151 .manufacture_id = SST_ID,
14152 .model_id = SST_SST26VF032B,
14153 .total_size = 4096,
14154 .page_size = 256,
14155 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
14156 .tested = TEST_UNTESTED,
14157 .probe = probe_spi_rdid,
14158 .probe_timing = TIMING_ZERO,
14159 .block_erasers =
14160 {
14161 {
14162 .eraseblocks = { {4 * 1024, 1024} },
14163 .block_erase = spi_block_erase_20,
14164 }, {
14165 .eraseblocks = {
14166 {8 * 1024, 4},
14167 {32 * 1024, 1},
14168 {64 * 1024, 62},
14169 {32 * 1024, 1},
14170 {8 * 1024, 4},
14171 },
14172 .block_erase = spi_block_erase_d8,
14173 }, {
14174 .eraseblocks = { {4 * 1024 * 1024, 1} },
14175 .block_erase = spi_block_erase_c7,
14176 },
14177 },
14178 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14179 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
14180 .write = spi_chip_write_256, /* Multi I/O supported */
14181 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
14182 .voltage = {2700, 3600},
14183 },
14184
Wei Hu25584de2018-04-30 14:02:08 -070014185 {
14186 .vendor = "SST",
14187 .name = "SST26VF064B(A)",
14188 .bustype = BUS_SPI,
14189 .manufacture_id = SST_ID,
14190 .model_id = SST_SST26VF064B,
14191 .total_size = 8192,
14192 .page_size = 256,
14193 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
14194 .tested = TEST_OK_PREW,
14195 .probe = probe_spi_rdid,
14196 .probe_timing = TIMING_ZERO,
14197 .block_erasers =
14198 {
14199 {
14200 .eraseblocks = { {4 * 1024, 2048} },
14201 .block_erase = spi_block_erase_20,
14202 }, {
14203 .eraseblocks = {
14204 {8 * 1024, 4},
14205 {32 * 1024, 1},
14206 {64 * 1024, 126},
14207 {32 * 1024, 1},
14208 {8 * 1024, 4},
14209 },
14210 .block_erase = spi_block_erase_d8,
14211 }, {
14212 .eraseblocks = { {8 * 1024 * 1024, 1} },
14213 .block_erase = spi_block_erase_c7,
14214 },
14215 },
14216 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14217 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
14218 .write = spi_chip_write_256, /* Multi I/O supported */
14219 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
14220 .voltage = {2700, 3600},
14221 },
14222
14223 {
14224 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014225 .name = "SST28SF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014226 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014227 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014228 .model_id = SST_SST28SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014229 .total_size = 512,
14230 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000014231 .feature_bits = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014232 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014233 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014234 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014235 .block_erasers =
14236 {
14237 {
14238 .eraseblocks = { {128, 4096} },
14239 .block_erase = erase_sector_28sf040,
14240 }, {
14241 .eraseblocks = { {512 * 1024, 1} },
14242 .block_erase = erase_chip_28sf040,
14243 }
14244 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014245 .unlock = unprotect_28sf040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014246 .write = write_28sf040,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014247 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014248 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014249 },
14250
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014251 {
14252 .vendor = "SST",
14253 .name = "SST29EE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014254 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014255 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014256 .model_id = SST_SST29EE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014257 .total_size = 128,
14258 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000014259 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000014260 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014261 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000014262 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014263 .block_erasers =
14264 {
14265 {
14266 .eraseblocks = { {128 * 1024, 1} },
14267 .block_erase = erase_chip_block_jedec,
14268 }
14269 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014270 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014271 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014272 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014273 },
14274
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014275 {
14276 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014277 .name = "SST29EE020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014278 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014279 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014280 .model_id = SST_SST29EE020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014281 .total_size = 256,
14282 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000014283 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000014284 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014285 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014286 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014287 .block_erasers =
14288 {
14289 {
14290 .eraseblocks = { {256 * 1024, 1} },
14291 .block_erase = erase_chip_block_jedec,
14292 }
14293 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014294 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014295 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014296 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014297 },
14298
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014299 {
14300 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100014301 .name = "SST29LE010",
14302 .bustype = BUS_PARALLEL,
14303 .manufacture_id = SST_ID,
14304 .model_id = SST_SST29LE010,
14305 .total_size = 128,
14306 .page_size = 128,
14307 .feature_bits = FEATURE_LONG_RESET,
14308 .tested = TEST_UNTESTED,
14309 .probe = probe_jedec,
14310 .probe_timing = 10,
14311 .block_erasers =
14312 {
14313 {
14314 .eraseblocks = { {128 * 1024, 1} },
14315 .block_erase = erase_chip_block_jedec,
14316 }
14317 },
14318 .write = write_jedec,
14319 .read = read_memmapped,
14320 .voltage = {3000, 3600},
14321 },
14322
14323 {
14324 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014325 .name = "SST29LE020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014326 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014327 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014328 .model_id = SST_SST29LE020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014329 .total_size = 256,
14330 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000014331 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000014332 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014333 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000014334 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014335 .block_erasers =
14336 {
14337 {
14338 .eraseblocks = { {256 * 1024, 1} },
14339 .block_erase = erase_chip_block_jedec,
14340 }
14341 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014342 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014343 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014344 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014345 },
14346
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014347 {
14348 .vendor = "SST",
14349 .name = "SST39SF010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014350 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014351 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014352 .model_id = SST_SST39SF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014353 .total_size = 128,
14354 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014355 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000014356 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014357 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000014358 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014359 .block_erasers =
14360 {
14361 {
14362 .eraseblocks = { {4 * 1024, 32} },
14363 .block_erase = erase_sector_jedec,
14364 }, {
14365 .eraseblocks = { {128 * 1024, 1} },
14366 .block_erase = erase_chip_block_jedec,
14367 }
14368 },
Sean Nelson35727f72010-01-28 23:55:12 +000014369 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014370 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014371 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014372 },
14373
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014374 {
14375 .vendor = "SST",
14376 .name = "SST39SF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014377 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014378 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014379 .model_id = SST_SST39SF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014380 .total_size = 256,
14381 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014382 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann19f46f22011-06-18 22:56:14 +000014383 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014384 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014385 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014386 .block_erasers =
14387 {
14388 {
14389 .eraseblocks = { {4 * 1024, 64} },
14390 .block_erase = erase_sector_jedec,
14391 }, {
14392 .eraseblocks = { {256 * 1024, 1} },
14393 .block_erase = erase_chip_block_jedec,
14394 }
14395 },
Sean Nelson35727f72010-01-28 23:55:12 +000014396 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014397 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014398 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014399 },
14400
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014401 {
14402 .vendor = "SST",
14403 .name = "SST39SF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014404 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014405 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014406 .model_id = SST_SST39SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014407 .total_size = 512,
14408 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014409 .feature_bits = FEATURE_EITHER_RESET,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +000014410 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014411 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014412 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014413 .block_erasers =
14414 {
14415 {
14416 .eraseblocks = { {4 * 1024, 128} },
14417 .block_erase = erase_sector_jedec,
14418 }, {
14419 .eraseblocks = { {512 * 1024, 1} },
14420 .block_erase = erase_chip_block_jedec,
14421 }
14422 },
Sean Nelson35727f72010-01-28 23:55:12 +000014423 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014424 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014425 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014426 },
14427
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014428 {
14429 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100014430 .name = "SST39SF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014431 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014432 .manufacture_id = SST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100014433 .model_id = SST_SST39SF512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014434 .total_size = 64,
14435 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014436 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd7d423b2012-10-20 09:13:16 +000014437 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014438 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014439 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014440 .block_erasers =
14441 {
14442 {
14443 .eraseblocks = { {4 * 1024, 16} },
14444 .block_erase = erase_sector_jedec,
14445 }, {
14446 .eraseblocks = { {64 * 1024, 1} },
14447 .block_erase = erase_chip_block_jedec,
14448 }
14449 },
Sean Nelson35727f72010-01-28 23:55:12 +000014450 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014451 .read = read_memmapped,
Alan Green1f9cc7d2019-07-01 11:10:45 +100014452 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014453 },
14454
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014455 {
14456 .vendor = "SST",
14457 .name = "SST39VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014458 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014459 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014460 .model_id = SST_SST39VF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014461 .total_size = 128,
14462 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014463 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd94d25d2012-07-28 03:17:15 +000014464 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014465 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014466 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014467 .block_erasers =
14468 {
14469 {
14470 .eraseblocks = { {4 * 1024, 32} },
14471 .block_erase = erase_sector_jedec,
14472 }, {
14473 .eraseblocks = { {128 * 1024, 1} },
14474 .block_erase = erase_chip_block_jedec,
14475 }
14476 },
Sean Nelson35727f72010-01-28 23:55:12 +000014477 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014478 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014479 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014480 },
14481
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014482 {
14483 .vendor = "SST",
14484 .name = "SST39VF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014485 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014486 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014487 .model_id = SST_SST39VF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014488 .total_size = 256,
14489 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014490 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner5c316f92015-02-08 21:57:52 +000014491 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014492 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014493 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014494 .block_erasers =
14495 {
14496 {
14497 .eraseblocks = { {4 * 1024, 64} },
14498 .block_erase = erase_sector_jedec,
14499 }, {
14500 .eraseblocks = { {256 * 1024, 1} },
14501 .block_erase = erase_chip_block_jedec,
14502 }
14503 },
Sean Nelson35727f72010-01-28 23:55:12 +000014504 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014505 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014506 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014507 },
14508
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014509 {
14510 .vendor = "SST",
14511 .name = "SST39VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014512 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014513 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014514 .model_id = SST_SST39VF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014515 .total_size = 512,
14516 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014517 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner23e10b82016-01-23 16:16:49 +000014518 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014519 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014520 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014521 .block_erasers =
14522 {
14523 {
14524 .eraseblocks = { {4 * 1024, 128} },
14525 .block_erase = erase_sector_jedec,
14526 }, {
14527 .eraseblocks = { {512 * 1024, 1} },
14528 .block_erase = erase_chip_block_jedec,
14529 }
14530 },
Sean Nelson35727f72010-01-28 23:55:12 +000014531 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014532 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014533 .voltage = {2700, 3600},
Carl-Daniel Hailfinger90eff152008-12-08 23:51:45 +000014534 },
FENG yu ningff692fb2008-12-08 18:15:10 +000014535
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014536 {
14537 .vendor = "SST",
Peter Stuge8440cc02009-01-25 23:55:12 +000014538 .name = "SST39VF080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014539 .bustype = BUS_PARALLEL,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000014540 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014541 .model_id = SST_SST39VF080,
Peter Stuge8440cc02009-01-25 23:55:12 +000014542 .total_size = 1024,
14543 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014544 .feature_bits = FEATURE_EITHER_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +000014545 .tested = TEST_UNTESTED,
14546 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014547 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014548 .block_erasers =
14549 {
14550 {
14551 .eraseblocks = { {4 * 1024, 256} },
14552 .block_erase = erase_sector_jedec,
14553 }, {
14554 .eraseblocks = { {64 * 1024, 16} },
14555 .block_erase = erase_block_jedec,
14556 }, {
14557 .eraseblocks = { {1024 * 1024, 1} },
14558 .block_erase = erase_chip_block_jedec,
14559 }
14560 },
Sean Nelson35727f72010-01-28 23:55:12 +000014561 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014562 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014563 .voltage = {2700, 3600},
Peter Stuge8440cc02009-01-25 23:55:12 +000014564 },
14565
14566 {
14567 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100014568 .name = "SST39VF512",
14569 .bustype = BUS_PARALLEL,
14570 .manufacture_id = SST_ID,
14571 .model_id = SST_SST39VF512,
14572 .total_size = 64,
14573 .page_size = 4096,
14574 .feature_bits = FEATURE_EITHER_RESET,
14575 .tested = TEST_OK_PREW,
14576 .probe = probe_jedec,
14577 .probe_timing = 1, /* 150 ns */
14578 .block_erasers =
14579 {
14580 {
14581 .eraseblocks = { {4 * 1024, 16} },
14582 .block_erase = erase_sector_jedec,
14583 }, {
14584 .eraseblocks = { {64 * 1024, 1} },
14585 .block_erase = erase_chip_block_jedec,
14586 }
14587 },
14588 .write = write_jedec_1,
14589 .read = read_memmapped,
14590 .voltage = {2700, 3600},
14591 },
14592
14593 {
14594 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014595 .name = "SST49LF002A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014596 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014597 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014598 .model_id = SST_SST49LF002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014599 .total_size = 256,
14600 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014601 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000014602 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014603 .probe = probe_jedec,
14604 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014605 .block_erasers =
14606 {
14607 {
14608 .eraseblocks = { {4 * 1024, 64} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014609 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014610 }, {
14611 .eraseblocks = { {16 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014612 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014613 }, {
14614 .eraseblocks = { {256 * 1024, 1} },
14615 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
14616 }
14617 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014618 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014619 .unlock = unlock_sst_fwhub,
14620 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014621 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014622 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014623 },
14624
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014625 {
14626 .vendor = "SST",
14627 .name = "SST49LF003A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014628 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014629 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014630 .model_id = SST_SST49LF003A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014631 .total_size = 384,
14632 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014633 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000014634 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014635 .probe = probe_jedec,
14636 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014637 .block_erasers =
14638 {
14639 {
14640 .eraseblocks = { {4 * 1024, 96} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014641 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014642 }, {
14643 .eraseblocks = { {64 * 1024, 6} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014644 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014645 }, {
14646 .eraseblocks = { {384 * 1024, 1} },
14647 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
14648 }
14649 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014650 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014651 .unlock = unlock_sst_fwhub,
14652 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014653 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014654 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014655 },
14656
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014657 {
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000014658 /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB)
14659 * and is only honored for 64k block erase, but not 4k sector erase.
14660 */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014661 .vendor = "SST",
14662 .name = "SST49LF004A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014663 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014664 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014665 .model_id = SST_SST49LF004A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014666 .total_size = 512,
14667 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014668 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000014669 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014670 .probe = probe_jedec,
14671 .probe_timing = 1, /* 150 ns */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000014672 .block_erasers =
14673 {
14674 {
14675 .eraseblocks = { {4 * 1024, 128} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014676 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000014677 }, {
14678 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014679 .block_erase = erase_block_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000014680 }, {
14681 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson51c83fb2010-01-20 20:55:53 +000014682 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000014683 },
14684 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014685 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014686 .unlock = unlock_sst_fwhub,
14687 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014688 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014689 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014690 },
14691
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014692 {
14693 .vendor = "SST",
14694 .name = "SST49LF004C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014695 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014696 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014697 .model_id = SST_SST49LF004C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014698 .total_size = 512,
14699 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014700 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014701 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014702 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014703 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014704 .block_erasers =
14705 {
14706 {
14707 .eraseblocks = { {4 * 1024, 128} },
14708 .block_erase = erase_sector_49lfxxxc,
14709 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000014710 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000014711 {64 * 1024, 7},
14712 {32 * 1024, 1},
14713 {8 * 1024, 2},
14714 {16 * 1024, 1},
14715 },
Sean Nelson69e58112010-03-23 17:10:28 +000014716 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014717 }
14718 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014719 .printlock = printlock_regspace2_block_eraser_1,
14720 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014721 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014722 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014723 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014724 },
14725
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014726 {
14727 .vendor = "SST",
14728 .name = "SST49LF008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014729 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014730 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014731 .model_id = SST_SST49LF008A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014732 .total_size = 1024,
14733 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014734 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000014735 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014736 .probe = probe_jedec,
14737 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014738 .block_erasers =
14739 {
14740 {
14741 .eraseblocks = { {4 * 1024, 256} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014742 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014743 }, {
14744 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014745 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014746 }, {
14747 .eraseblocks = { {1024 * 1024, 1} },
14748 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
14749 }
14750 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014751 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014752 .unlock = unlock_sst_fwhub,
14753 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014754 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014755 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014756 },
14757
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014758 {
14759 .vendor = "SST",
14760 .name = "SST49LF008C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014761 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014762 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014763 .model_id = SST_SST49LF008C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014764 .total_size = 1024,
14765 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014766 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014767 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014768 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014769 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014770 .block_erasers =
14771 {
14772 {
14773 .eraseblocks = { {4 * 1024, 256} },
14774 .block_erase = erase_sector_49lfxxxc,
14775 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000014776 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000014777 {64 * 1024, 15},
14778 {32 * 1024, 1},
14779 {8 * 1024, 2},
14780 {16 * 1024, 1},
14781 },
Sean Nelson69e58112010-03-23 17:10:28 +000014782 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014783 }
14784 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014785 .printlock = printlock_regspace2_block_eraser_1,
14786 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014787 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014788 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014789 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014790 },
14791
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014792 {
14793 .vendor = "SST",
14794 .name = "SST49LF016C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014795 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014796 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014797 .model_id = SST_SST49LF016C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014798 .total_size = 2048,
14799 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014800 .feature_bits = FEATURE_REGISTERMAP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000014801 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014802 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014803 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014804 .block_erasers =
14805 {
14806 {
14807 .eraseblocks = { {4 * 1024, 512} },
14808 .block_erase = erase_sector_49lfxxxc,
14809 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000014810 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000014811 {64 * 1024, 31},
14812 {32 * 1024, 1},
14813 {8 * 1024, 2},
14814 {16 * 1024, 1},
14815 },
Sean Nelson69e58112010-03-23 17:10:28 +000014816 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014817 }
14818 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014819 .printlock = printlock_regspace2_block_eraser_1,
14820 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014821 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014822 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014823 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014824 },
14825
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014826 {
14827 .vendor = "SST",
14828 .name = "SST49LF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014829 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014830 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014831 .model_id = SST_SST49LF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014832 .total_size = 256,
14833 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014834 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +000014835 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014836 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014837 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014838 .block_erasers =
14839 {
14840 {
14841 .eraseblocks = { {4 * 1024, 64} },
14842 .block_erase = erase_sector_jedec,
14843 }, {
14844 .eraseblocks = { {16 * 1024, 16} },
14845 .block_erase = erase_block_jedec,
14846 }, {
14847 .eraseblocks = { {256 * 1024, 1} },
14848 .block_erase = NULL,
14849 }
14850 },
Sean Nelson35727f72010-01-28 23:55:12 +000014851 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014852 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014853 .voltage = {3000, 3600},
Sven Schnellec208dfb2009-01-07 12:35:09 +000014854 },
14855
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014856 {
14857 .vendor = "SST",
14858 .name = "SST49LF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014859 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014860 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014861 .model_id = SST_SST49LF020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014862 .total_size = 256,
Carl-Daniel Hailfingerda654322009-07-23 01:44:38 +000014863 .page_size = 4 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014864 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000014865 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014866 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014867 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014868 .block_erasers =
14869 {
14870 {
14871 .eraseblocks = { {4 * 1024, 64} },
14872 .block_erase = erase_sector_jedec,
14873 }, {
14874 .eraseblocks = { {16 * 1024, 16} },
14875 .block_erase = erase_block_jedec,
14876 }, {
14877 .eraseblocks = { {256 * 1024, 1} },
14878 .block_erase = NULL,
14879 }
14880 },
Sean Nelson35727f72010-01-28 23:55:12 +000014881 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014882 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014883 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014884 },
14885
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014886 {
14887 .vendor = "SST",
14888 .name = "SST49LF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014889 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014890 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014891 .model_id = SST_SST49LF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014892 .total_size = 512,
14893 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014894 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000014895 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014896 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014897 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014898 .block_erasers =
14899 {
14900 {
14901 .eraseblocks = { {4 * 1024, 128} },
14902 .block_erase = erase_sector_jedec,
14903 }, {
14904 .eraseblocks = { {64 * 1024, 8} },
14905 .block_erase = erase_block_jedec,
14906 }, {
14907 .eraseblocks = { {512 * 1024, 1} },
14908 .block_erase = NULL,
14909 }
14910 },
Sean Nelson35727f72010-01-28 23:55:12 +000014911 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014912 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014913 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014914 },
14915
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014916 {
14917 .vendor = "SST",
14918 .name = "SST49LF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014919 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014920 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014921 .model_id = SST_SST49LF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014922 .total_size = 512,
14923 .page_size = 64 * 1024,
Joshua Roysa84b0bd2010-08-16 22:12:39 +000014924 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000014925 .tested = TEST_OK_PREW,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014926 .probe = probe_jedec,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014927 .probe_timing = 1, /* 150ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014928 .block_erasers =
14929 {
14930 {
14931 .eraseblocks = { {4 * 1024, 128} },
14932 .block_erase = erase_sector_jedec,
14933 }, {
14934 .eraseblocks = { {64 * 1024, 8} },
14935 .block_erase = erase_block_jedec,
14936 }, {
14937 .eraseblocks = { {512 * 1024, 1} },
14938 .block_erase = NULL,
14939 }
14940 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014941 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000014942 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014943 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014944 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014945 },
14946
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014947 {
14948 .vendor = "SST",
14949 .name = "SST49LF080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014950 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014951 .manufacture_id = SST_ID,
Elyes HAOUAS124ef382018-03-27 12:15:09 +020014952 .model_id = SST_SST49LF080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014953 .total_size = 1024,
14954 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014955 .feature_bits = FEATURE_EITHER_RESET,
Brandon Dowdyf07bf322011-03-06 18:31:11 +000014956 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014957 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000014958 .probe_timing = TIMING_FIXME,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014959 .block_erasers =
14960 {
14961 {
14962 .eraseblocks = { {4 * 1024, 256} },
14963 .block_erase = erase_sector_jedec,
14964 }, {
14965 .eraseblocks = { {64 * 1024, 16} },
14966 .block_erase = erase_block_jedec,
14967 }, {
14968 .eraseblocks = { {1024 * 1024, 1} },
14969 .block_erase = NULL,
14970 }
14971 },
Sean Nelson35727f72010-01-28 23:55:12 +000014972 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014973 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014974 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014975 },
14976
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014977 {
14978 .vendor = "SST",
14979 .name = "SST49LF160C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014980 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014981 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014982 .model_id = SST_SST49LF160C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014983 .total_size = 2048,
14984 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014985 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014986 .tested = TEST_OK_PR,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014987 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014988 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014989 .block_erasers =
14990 {
14991 {
14992 .eraseblocks = { {4 * 1024, 512} },
14993 .block_erase = erase_sector_49lfxxxc,
14994 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000014995 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000014996 {64 * 1024, 31},
14997 {32 * 1024, 1},
14998 {8 * 1024, 2},
14999 {16 * 1024, 1},
15000 },
Sean Nelson69e58112010-03-23 17:10:28 +000015001 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000015002 }
15003 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015004 .printlock = printlock_regspace2_block_eraser_1,
15005 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000015006 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015007 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015008 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000015009 },
15010
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015011 {
15012 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015013 .name = "M29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015014 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015015 .manufacture_id = ST_ID,
15016 .model_id = ST_M29F002B,
15017 .total_size = 256,
15018 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015019 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015020 .tested = TEST_UNTESTED,
15021 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000015022 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000015023 .block_erasers =
15024 {
15025 {
15026 .eraseblocks = {
15027 {16 * 1024, 1},
15028 {8 * 1024, 2},
15029 {32 * 1024, 1},
15030 {64 * 1024, 3},
15031 },
15032 .block_erase = erase_sector_jedec,
15033 }, {
15034 .eraseblocks = { {256 * 1024, 1} },
15035 .block_erase = erase_chip_block_jedec,
15036 }
15037 },
Sean Nelson35727f72010-01-28 23:55:12 +000015038 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015039 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000015040 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000015041 },
15042
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015043 {
15044 .vendor = "ST",
15045 .name = "M29F002T/NT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015046 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015047 .manufacture_id = ST_ID,
15048 .model_id = ST_M29F002T,
15049 .total_size = 256,
15050 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015051 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stefan Taunere34e3e82013-01-01 00:06:51 +000015052 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015053 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000015054 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000015055 .block_erasers =
15056 {
15057 {
15058 .eraseblocks = {
15059 {64 * 1024, 3},
15060 {32 * 1024, 1},
15061 {8 * 1024, 2},
15062 {16 * 1024, 1},
15063 },
15064 .block_erase = erase_sector_jedec,
15065 }, {
15066 .eraseblocks = { {256 * 1024, 1} },
15067 .block_erase = erase_chip_block_jedec,
15068 }
15069 },
Sean Nelson35727f72010-01-28 23:55:12 +000015070 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015071 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000015072 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000015073 },
15074
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015075 {
15076 .vendor = "ST",
15077 .name = "M29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015078 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015079 .manufacture_id = ST_ID,
15080 .model_id = ST_M29F040B,
15081 .total_size = 512,
15082 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015083 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
15084 .tested = TEST_UNTESTED,
15085 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +000015086 .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */
Sean Nelson56358aa2010-01-19 16:08:51 +000015087 .block_erasers =
15088 {
15089 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015090 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +000015091 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000015092 }, {
15093 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000015094 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000015095 }
15096 },
Sean Nelson35727f72010-01-28 23:55:12 +000015097 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015098 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015099 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000015100 },
15101
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015102 {
Sean Nelson35727f72010-01-28 23:55:12 +000015103 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015104 .vendor = "ST",
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000015105 .name = "M29F400BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015106 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000015107 .manufacture_id = ST_ID,
15108 .model_id = ST_M29F400BB,
15109 .total_size = 512,
15110 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015111 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000015112 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015113 .probe = probe_jedec,
15114 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000015115 .block_erasers =
15116 {
15117 {
15118 .eraseblocks = {
15119 {16 * 1024, 1},
15120 {8 * 1024, 2},
15121 {32 * 1024, 1},
15122 {64 * 1024, 7},
15123 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015124 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000015125 }, {
15126 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015127 .block_erase = erase_chip_block_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000015128 }
15129 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015130 .write = write_jedec_1,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000015131 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015132 .voltage = {4500, 5500},
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000015133 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100015134
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000015135 {
15136 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
15137 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015138 .name = "M29F400BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015139 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015140 .manufacture_id = ST_ID,
15141 .model_id = ST_M29F400BT,
15142 .total_size = 512,
15143 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015144 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015145 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015146 .probe = probe_jedec,
15147 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson56358aa2010-01-19 16:08:51 +000015148 .block_erasers =
15149 {
15150 {
15151 .eraseblocks = {
15152 {64 * 1024, 7},
15153 {32 * 1024, 1},
15154 {8 * 1024, 2},
15155 {16 * 1024, 1},
15156 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015157 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000015158 }, {
15159 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015160 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000015161 }
15162 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015163 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015164 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015165 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000015166 },
15167
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015168 {
15169 .vendor = "ST",
15170 .name = "M29W010B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015171 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015172 .manufacture_id = ST_ID,
15173 .model_id = ST_M29W010B,
15174 .total_size = 128,
15175 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015176 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015177 .tested = TEST_UNTESTED,
15178 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000015179 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000015180 .block_erasers =
15181 {
15182 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015183 .eraseblocks = { {16 * 1024, 8} },
Sean Nelson56358aa2010-01-19 16:08:51 +000015184 .block_erase = erase_sector_jedec,
15185 }, {
15186 .eraseblocks = { {128 * 1024, 1} },
15187 .block_erase = erase_chip_block_jedec,
15188 }
15189 },
Sean Nelson35727f72010-01-28 23:55:12 +000015190 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015191 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015192 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000015193 },
15194
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015195 {
15196 .vendor = "ST",
15197 .name = "M29W040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015198 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015199 .manufacture_id = ST_ID,
15200 .model_id = ST_M29W040B,
15201 .total_size = 512,
15202 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015203 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015204 .tested = TEST_UNTESTED,
15205 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000015206 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000015207 .block_erasers =
15208 {
15209 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015210 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson56358aa2010-01-19 16:08:51 +000015211 .block_erase = erase_sector_jedec,
15212 }, {
15213 .eraseblocks = { {512 * 1024, 1} },
15214 .block_erase = erase_chip_block_jedec,
15215 }
15216 },
Sean Nelson35727f72010-01-28 23:55:12 +000015217 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015218 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015219 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000015220 },
15221
Stefan Taunereb582572012-09-21 12:52:50 +000015222 {
15223 .vendor = "ST",
15224 .name = "M29W512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015225 .bustype = BUS_PARALLEL,
Alan Greenfa3fcd32019-06-27 15:41:50 +100015226 .manufacture_id = ST_ID,
Stefan Taunereb582572012-09-21 12:52:50 +000015227 .model_id = ST_M29W512B,
15228 .total_size = 64,
15229 .page_size = 64 * 1024,
15230 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauner0554ca52013-07-25 22:54:25 +000015231 .tested = TEST_OK_PREW,
Stefan Taunereb582572012-09-21 12:52:50 +000015232 .probe = probe_jedec,
15233 .probe_timing = TIMING_ZERO,
15234 .block_erasers =
15235 {
15236 {
15237 .eraseblocks = { {64 * 1024, 1} },
15238 .block_erase = erase_chip_block_jedec,
15239 }
15240 },
15241 .write = write_jedec_1,
15242 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015243 .voltage = {2700, 3600},
Stefan Taunereb582572012-09-21 12:52:50 +000015244 },
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +000015245
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015246 {
15247 .vendor = "ST",
15248 .name = "M50FLW040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015249 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015250 .manufacture_id = ST_ID,
15251 .model_id = ST_M50FLW040A,
15252 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000015253 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015254 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015255 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000015256 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000015257 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000015258 .block_erasers =
15259 {
15260 {
Sean Nelson329bde72010-01-19 16:39:19 +000015261 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000015262 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000015263 {64 * 1024, 5}, /* block */
15264 {4 * 1024, 16}, /* sector */
15265 {4 * 1024, 16}, /* sector */
15266 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000015267 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000015268 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000015269 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000015270 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015271 }
15272 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015273 .unlock = unlock_regspace2_uniform_64k,
Alan Greenc1863ca2019-06-27 15:08:03 +100015274 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015275 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015276 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015277 },
15278
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015279 {
15280 .vendor = "ST",
15281 .name = "M50FLW040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015282 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015283 .manufacture_id = ST_ID,
15284 .model_id = ST_M50FLW040B,
15285 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000015286 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015287 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015288 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000015289 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000015290 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000015291 .block_erasers =
15292 {
15293 {
Sean Nelson329bde72010-01-19 16:39:19 +000015294 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000015295 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000015296 {4 * 1024, 16}, /* sector */
15297 {64 * 1024, 5}, /* block */
15298 {4 * 1024, 16}, /* sector */
15299 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000015300 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000015301 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000015302 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000015303 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015304 }
15305 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015306 .unlock = unlock_regspace2_uniform_64k,
Alan Greenc1863ca2019-06-27 15:08:03 +100015307 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015308 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015309 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015310 },
15311
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015312 {
15313 .vendor = "ST",
15314 .name = "M50FLW080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015315 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015316 .manufacture_id = ST_ID,
15317 .model_id = ST_M50FLW080A,
15318 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000015319 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015320 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015321 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +000015322 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000015323 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000015324 .block_erasers =
15325 {
15326 {
Sean Nelson329bde72010-01-19 16:39:19 +000015327 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000015328 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000015329 {64 * 1024, 13}, /* block */
15330 {4 * 1024, 16}, /* sector */
15331 {4 * 1024, 16}, /* sector */
15332 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000015333 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000015334 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000015335 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000015336 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015337 }
15338 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015339 .printlock = printlock_regspace2_block_eraser_0,
15340 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000015341 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015342 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015343 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015344 },
15345
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015346 {
15347 .vendor = "ST",
15348 .name = "M50FLW080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015349 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015350 .manufacture_id = ST_ID,
15351 .model_id = ST_M50FLW080B,
15352 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000015353 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015354 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015355 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000015356 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000015357 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000015358 .block_erasers =
15359 {
15360 {
Sean Nelson329bde72010-01-19 16:39:19 +000015361 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000015362 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000015363 {4 * 1024, 16}, /* sector */
15364 {64 * 1024, 13}, /* block */
15365 {4 * 1024, 16}, /* sector */
15366 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000015367 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000015368 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000015369 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000015370 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015371 }
15372 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015373 .printlock = printlock_regspace2_block_eraser_0,
15374 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000015375 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015376 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015377 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015378 },
15379
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015380 {
15381 .vendor = "ST",
15382 .name = "M50FW002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015383 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015384 .manufacture_id = ST_ID,
15385 .model_id = ST_M50FW002,
15386 .total_size = 256,
Stefan Tauner4404f732013-09-12 08:28:56 +000015387 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015388 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015389 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +000015390 .probe = probe_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015391 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000015392 .block_erasers =
15393 {
15394 {
15395 .eraseblocks = {
15396 {64 * 1024, 3},
15397 {32 * 1024, 1},
15398 {8 * 1024, 2},
15399 {16 * 1024, 1},
15400 },
Sean Nelson28accc22010-03-19 18:47:06 +000015401 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015402 }, {
Stefan Tauner5c316f92015-02-08 21:57:52 +000015403 .eraseblocks = { {256 * 1024, 1} },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015404 .block_erase = NULL, /* Only in A/A mux mode */
Sean Nelson56358aa2010-01-19 16:08:51 +000015405 }
15406 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015407 .printlock = printlock_regspace2_block_eraser_0,
15408 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000015409 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015410 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015411 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015412 },
15413
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015414 {
15415 .vendor = "ST",
15416 .name = "M50FW016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015417 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015418 .manufacture_id = ST_ID,
15419 .model_id = ST_M50FW016,
15420 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000015421 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015422 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015423 .tested = TEST_UNTESTED,
15424 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000015425 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000015426 .block_erasers =
15427 {
15428 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015429 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson28accc22010-03-19 18:47:06 +000015430 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015431 }
15432 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015433 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000015434 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015435 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015436 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015437 },
15438
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015439 {
15440 .vendor = "ST",
15441 .name = "M50FW040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015442 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015443 .manufacture_id = ST_ID,
15444 .model_id = ST_M50FW040,
15445 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000015446 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015447 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +000015448 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015449 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000015450 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000015451 .block_erasers =
15452 {
15453 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015454 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000015455 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015456 }
15457 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015458 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000015459 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015460 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015461 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015462 },
15463
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015464 {
15465 .vendor = "ST",
15466 .name = "M50FW080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015467 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015468 .manufacture_id = ST_ID,
15469 .model_id = ST_M50FW080,
15470 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000015471 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015472 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015473 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015474 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000015475 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000015476 .block_erasers =
15477 {
15478 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015479 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000015480 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015481 }
15482 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015483 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000015484 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015485 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015486 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015487 },
15488
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015489 {
15490 .vendor = "ST",
Stefan Tauner8c4602b2013-09-12 08:29:00 +000015491 .name = "M50LPW080",
15492 .bustype = BUS_LPC, /* A/A Mux */
15493 .manufacture_id = ST_ID,
15494 .model_id = ST_M50LPW080,
15495 .total_size = 1024,
15496 .page_size = 0,
15497 .feature_bits = FEATURE_REGISTERMAP,
15498 .tested = TEST_UNTESTED,
15499 .probe = probe_82802ab,
15500 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
15501 .block_erasers =
15502 {
15503 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015504 .eraseblocks = { {64 * 1024, 16} },
Stefan Tauner8c4602b2013-09-12 08:29:00 +000015505 .block_erase = erase_block_82802ab,
15506 }
15507 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015508 .unlock = unlock_regspace2_uniform_64k,
Stefan Tauner8c4602b2013-09-12 08:29:00 +000015509 .write = write_82802ab,
15510 .read = read_memmapped,
15511 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
15512 },
15513
15514 {
15515 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015516 .name = "M50LPW116",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015517 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015518 .manufacture_id = ST_ID,
15519 .model_id = ST_M50LPW116,
15520 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000015521 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015522 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015523 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000015524 .probe = probe_82802ab,
Udu Ogahc04ee222009-09-05 01:31:32 +000015525 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000015526 .block_erasers =
15527 {
15528 {
15529 .eraseblocks = {
15530 {4 * 1024, 16},
15531 {64 * 1024, 30},
15532 {32 * 1024, 1},
15533 {8 * 1024, 2},
15534 {16 * 1024, 1},
15535 },
Sean Nelson28accc22010-03-19 18:47:06 +000015536 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015537 }
15538 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015539 .printlock = printlock_regspace2_block_eraser_0,
15540 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000015541 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015542 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015543 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015544 },
15545
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015546 {
Konstantin Grudnev3d8868c2019-07-23 00:48:54 +030015547 .vendor = "ST",
15548 .name = "M95M02",
15549 .bustype = BUS_SPI,
15550 .manufacture_id = ST_ID,
15551 .model_id = ST_M95M02,
15552 .total_size = 256,
15553 .page_size = 256,
15554 .feature_bits = FEATURE_WRSR_WREN | FEATURE_NO_ERASE | FEATURE_ERASED_ZERO,
15555 .tested = TEST_OK_PREW,
15556 .probe = probe_spi_st95,
15557 .probe_timing = TIMING_ZERO,
15558 .block_erasers =
15559 {
15560 {
15561 .eraseblocks = { {256 * 1024, 1} },
15562 .block_erase = spi_block_erase_emulation,
15563 }
15564 },
15565
15566 .printlock = spi_prettyprint_status_register_bp1_srwd,
15567 .unlock = spi_disable_blockprotect_bp1_srwd,
15568 .write = spi_chip_write_256,
15569 .read = spi_chip_read,
15570 .voltage = {2500, 5500},
15571 },
15572
15573 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100015574 .vendor = "Sanyo",
15575 .name = "LE25FU106B",
15576 .bustype = BUS_SPI,
15577 .manufacture_id = SANYO_ID,
15578 .model_id = SANYO_LE25FU106B,
15579 .total_size = 128,
15580 .page_size = 256,
15581 .feature_bits = FEATURE_WRSR_WREN,
15582 .tested = TEST_UNTESTED,
15583 .probe = probe_spi_res2,
15584 .probe_timing = TIMING_ZERO,
15585 .block_erasers =
15586 {
15587 /* FIXME: Is this correct?
15588 {
15589 .eraseblocks = { {2 * 1024, 64} },
15590 .block_erase = spi_block_erase_d7,
15591 },*/
15592 {
15593 .eraseblocks = { {32 * 1024, 4} },
15594 .block_erase = spi_block_erase_d8,
15595 }, {
15596 .eraseblocks = { {128 * 1024, 1} },
15597 .block_erase = spi_block_erase_c7,
15598 }
15599 },
15600 .printlock = spi_prettyprint_status_register_bp1_srwd,
15601 .unlock = spi_disable_blockprotect_bp1_srwd,
15602 .write = spi_chip_write_256,
15603 .read = spi_chip_read,
15604 .voltage = {2300, 3600},
15605 },
15606
15607 {
15608 .vendor = "Sanyo",
15609 .name = "LE25FU206",
15610 .bustype = BUS_SPI,
15611 .manufacture_id = SANYO_ID,
15612 .model_id = SANYO_LE25FU206,
15613 .total_size = 256,
15614 .page_size = 256,
15615 .feature_bits = FEATURE_WRSR_WREN,
15616 .tested = TEST_UNTESTED,
15617 .probe = probe_spi_res2,
15618 .probe_timing = TIMING_ZERO,
15619 .block_erasers =
15620 {
15621 {
15622 .eraseblocks = { {4 * 1024, 64} },
15623 .block_erase = spi_block_erase_d7,
15624 }, {
15625 .eraseblocks = { {64 * 1024, 4} },
15626 .block_erase = spi_block_erase_d8,
15627 }, {
15628 .eraseblocks = { {256 * 1024, 1} },
15629 .block_erase = spi_block_erase_c7,
15630 }
15631 },
15632 .printlock = spi_prettyprint_status_register_bp1_srwd,
15633 .unlock = spi_disable_blockprotect_bp1_srwd,
15634 .write = spi_chip_write_256,
15635 .read = spi_chip_read,
15636 .voltage = {2300, 3600},
15637 },
15638
15639 {
15640 .vendor = "Sanyo",
15641 .name = "LE25FU206A",
15642 .bustype = BUS_SPI,
15643 .manufacture_id = SANYO_ID,
15644 .model_id = SANYO_LE25FU206A,
15645 .total_size = 256,
15646 .page_size = 256,
15647 .tested = TEST_UNTESTED,
15648 .probe = probe_spi_rdid,
15649 .probe_timing = TIMING_ZERO,
15650 .block_erasers =
15651 {
15652 {
15653 .eraseblocks = { {4 * 1024, 64} },
15654 .block_erase = spi_block_erase_20,
15655 }, {
15656 .eraseblocks = { {4 * 1024, 64} },
15657 .block_erase = spi_block_erase_d7,
15658 }, {
15659 .eraseblocks = { {64 * 1024, 4} },
15660 .block_erase = spi_block_erase_d8,
15661 }, {
15662 .eraseblocks = { {256 * 1024, 1} },
15663 .block_erase = spi_block_erase_60,
15664 }, {
15665 .eraseblocks = { {256 * 1024, 1} },
15666 .block_erase = spi_block_erase_c7,
15667 }
15668 },
15669 .printlock = spi_prettyprint_status_register_bp2_srwd,
15670 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
15671 .write = spi_chip_write_256,
15672 .read = spi_chip_read,
15673 .voltage = {2300, 3600},
15674 },
15675
15676 {
15677 .vendor = "Sanyo",
15678 .name = "LE25FU406B",
15679 .bustype = BUS_SPI,
15680 .manufacture_id = SANYO_ID,
15681 .model_id = SANYO_LE25FU406B,
15682 .total_size = 512,
15683 .page_size = 256,
15684 .feature_bits = FEATURE_WRSR_WREN,
15685 .tested = TEST_OK_PREW,
15686 .probe = probe_spi_res2,
15687 .probe_timing = TIMING_ZERO,
15688 .block_erasers =
15689 {
15690 {
15691 .eraseblocks = { {4 * 1024, 128} },
15692 .block_erase = spi_block_erase_d7,
15693 }, {
15694 .eraseblocks = { {64 * 1024, 8} },
15695 .block_erase = spi_block_erase_d8,
15696 }, {
15697 .eraseblocks = { {512 * 1024, 1} },
15698 .block_erase = spi_block_erase_c7,
15699 }
15700 },
15701 .printlock = spi_prettyprint_status_register_bp2_srwd,
15702 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
15703 .write = spi_chip_write_256,
15704 .read = spi_chip_read,
15705 .voltage = {2300, 3600},
15706 },
15707
15708 {
15709 .vendor = "Sanyo",
15710 .name = "LE25FU406C/LE25U40CMC",
15711 .bustype = BUS_SPI,
15712 .manufacture_id = SANYO_ID,
15713 .model_id = SANYO_LE25FU406C,
15714 .total_size = 512,
15715 .page_size = 256,
15716 .feature_bits = FEATURE_WRSR_WREN,
15717 .tested = TEST_OK_PREW,
15718 .probe = probe_spi_rdid,
15719 .probe_timing = TIMING_ZERO,
15720 .block_erasers =
15721 {
15722 {
15723 .eraseblocks = { {4 * 1024, 128} },
15724 .block_erase = spi_block_erase_20,
15725 }, {
15726 .eraseblocks = { {4 * 1024, 128} },
15727 .block_erase = spi_block_erase_d7,
15728 }, {
15729 .eraseblocks = { {64 * 1024, 8} },
15730 .block_erase = spi_block_erase_d8,
15731 }, {
15732 .eraseblocks = { {512 * 1024, 1} },
15733 .block_erase = spi_block_erase_60,
15734 }, {
15735 .eraseblocks = { {512 * 1024, 1} },
15736 .block_erase = spi_block_erase_c7,
15737 }
15738 },
15739 .printlock = spi_prettyprint_status_register_bp2_srwd,
15740 .unlock = spi_disable_blockprotect_bp2_srwd,
15741 .write = spi_chip_write_256,
15742 .read = spi_chip_read, /* Fast read (0x0B), dual read (0x3B) and dual I/O (0xBB) supported */
15743 .voltage = {2300, 3600},
15744 },
15745
15746 {
15747 .vendor = "Sanyo",
15748 .name = "LE25FW106",
15749 .bustype = BUS_SPI,
15750 .manufacture_id = SANYO_ID,
15751 .model_id = SANYO_LE25FW106,
15752 .total_size = 128,
15753 .page_size = 256,
15754 .feature_bits = FEATURE_WRSR_WREN,
15755 .tested = TEST_OK_PREW,
15756 .probe = probe_spi_res2,
15757 .probe_timing = TIMING_ZERO,
15758 .block_erasers =
15759 {
15760 {
15761 .eraseblocks = { {2 * 1024, 64} },
15762 .block_erase = spi_block_erase_d7,
15763 }, {
15764 .eraseblocks = { {32 * 1024, 4} },
15765 .block_erase = spi_block_erase_d8,
15766 }, {
15767 .eraseblocks = { {128 * 1024, 1} },
15768 .block_erase = spi_block_erase_c7,
15769 }
15770 },
15771 .printlock = spi_prettyprint_status_register_bp1_srwd, /* FIXME: Add ERSER error flag. */
15772 .unlock = spi_disable_blockprotect_bp1_srwd,
15773 .write = spi_chip_write_256,
15774 .read = spi_chip_read,
15775 .voltage = {2700, 3600},
15776 },
15777
15778 {
15779 .vendor = "Sanyo",
15780 .name = "LE25FW203A",
15781 .bustype = BUS_SPI,
15782 .manufacture_id = SANYO_ID,
15783 .model_id = SANYO_LE25FW203A,
15784 .total_size = 256,
15785 .page_size = 256,
15786 .tested = TEST_UNTESTED,
15787 .probe = probe_spi_rdid,
15788 .probe_timing = TIMING_ZERO,
15789 .block_erasers =
15790 {
15791 {
15792 .eraseblocks = { {256, 1024} },
15793 .block_erase = spi_block_erase_db,
15794 }, {
15795 .eraseblocks = { {64 * 1024, 4} },
15796 .block_erase = spi_block_erase_d8,
15797 }, {
15798 .eraseblocks = { {256 * 1024, 1} },
15799 .block_erase = spi_block_erase_c7,
15800 }
15801 },
15802 .printlock = spi_prettyprint_status_register_default_welwip,
15803 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
15804 .write = spi_chip_write_256,
15805 .read = spi_chip_read,
15806 .voltage = {2700, 3600},
15807 },
15808
15809 {
15810 .vendor = "Sanyo",
15811 .name = "LE25FW403A",
15812 .bustype = BUS_SPI,
15813 .manufacture_id = SANYO_ID,
15814 .model_id = SANYO_LE25FW403A,
15815 .total_size = 512,
15816 .page_size = 256,
15817 .tested = TEST_UNTESTED,
15818 .probe = probe_spi_rdid,
15819 .probe_timing = TIMING_ZERO,
15820 .block_erasers =
15821 {
15822 {
15823 .eraseblocks = { {256, 2 * 1024} },
15824 .block_erase = spi_block_erase_db,
15825 }, {
15826 .eraseblocks = { {64 * 1024, 8} },
15827 .block_erase = spi_block_erase_d8,
15828 }, {
15829 .eraseblocks = { {512 * 1024, 1} },
15830 .block_erase = spi_block_erase_c7,
15831 }
15832 },
15833 .printlock = spi_prettyprint_status_register_default_welwip,
15834 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
15835 .write = spi_chip_write_256,
15836 .read = spi_chip_read,
15837 .voltage = {2700, 3600},
15838 },
15839
15840 {
15841 .vendor = "Sanyo",
15842 .name = "LE25FW406A",
15843 .bustype = BUS_SPI,
15844 .manufacture_id = SANYO_ID,
15845 .model_id = SANYO_LE25FW406A,
15846 .total_size = 512,
15847 .page_size = 256,
15848 .feature_bits = FEATURE_WRSR_WREN,
15849 .tested = TEST_OK_PREW,
15850 .probe = probe_spi_res2,
15851 .probe_timing = TIMING_ZERO,
15852 .block_erasers =
15853 {
15854 {
15855 .eraseblocks = { {4 * 1024, 128} },
15856 .block_erase = spi_block_erase_d7,
15857 }, {
15858 .eraseblocks = { {64 * 1024, 8} },
15859 .block_erase = spi_block_erase_d8,
15860 }, {
15861 .eraseblocks = { {512 * 1024, 1} },
15862 .block_erase = spi_block_erase_c7,
15863 }
15864 },
15865 .printlock = spi_prettyprint_status_register_plain,
15866 .unlock = spi_disable_blockprotect,
15867 .write = spi_chip_write_256,
15868 .read = spi_chip_read,
15869 .voltage = {2700, 3600},
15870 },
15871
15872 {
15873 .vendor = "Sanyo",
15874 .name = "LE25FW418A",
15875 .bustype = BUS_SPI,
15876 .manufacture_id = SANYO_ID,
15877 .model_id = SANYO_LE25FW418A,
15878 .total_size = 512,
15879 .page_size = 256,
15880 .feature_bits = FEATURE_WRSR_WREN,
15881 .tested = TEST_UNTESTED,
15882 .probe = probe_spi_res2,
15883 .probe_timing = TIMING_ZERO,
15884 .block_erasers =
15885 {
15886 {
15887 .eraseblocks = { {4 * 1024, 128} },
15888 .block_erase = spi_block_erase_d7,
15889 }, {
15890 .eraseblocks = { {64 * 1024, 8} },
15891 .block_erase = spi_block_erase_d8,
15892 }, {
15893 .eraseblocks = { {512 * 1024, 1} },
15894 .block_erase = spi_block_erase_c7,
15895 }
15896 },
15897 .printlock = spi_prettyprint_status_register_bp2_srwd,
15898 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
15899 .write = spi_chip_write_256,
15900 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
15901 .voltage = {2700, 3600},
15902 },
15903
15904 {
15905 .vendor = "Sanyo",
15906 .name = "LE25FW806",
15907 .bustype = BUS_SPI,
15908 .manufacture_id = SANYO_ID,
15909 .model_id = SANYO_LE25FW806,
15910 .total_size = 1024,
15911 .page_size = 256,
15912 .feature_bits = FEATURE_WRSR_WREN,
15913 .tested = TEST_UNTESTED,
15914 .probe = probe_spi_res2,
15915 .probe_timing = TIMING_ZERO,
15916 .block_erasers =
15917 {
15918 {
15919 .eraseblocks = { {4 * 1024, 256} },
15920 .block_erase = spi_block_erase_20,
15921 }, {
15922 .eraseblocks = { {4 * 1024, 256} },
15923 .block_erase = spi_block_erase_d7,
15924 }, {
15925 .eraseblocks = { {64 * 1024, 16} },
15926 .block_erase = spi_block_erase_d8,
15927 }, {
15928 .eraseblocks = { {1024 * 1024, 1} },
15929 .block_erase = spi_block_erase_c7,
15930 }
15931 },
15932 .printlock = spi_prettyprint_status_register_bp2_srwd,
15933 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
15934 .write = spi_chip_write_256,
15935 .read = spi_chip_read,
15936 .voltage = {2700, 3600},
15937 },
15938
15939 {
15940 .vendor = "Sanyo",
15941 .name = "LE25FW808",
15942 .bustype = BUS_SPI,
15943 .manufacture_id = SANYO_ID,
15944 .model_id = SANYO_LE25FW808,
15945 .total_size = 1024,
15946 .page_size = 256,
15947 .feature_bits = FEATURE_WRSR_WREN,
15948 .tested = TEST_UNTESTED,
15949 .probe = probe_spi_res2,
15950 .probe_timing = TIMING_ZERO,
15951 .block_erasers =
15952 {
15953 {
15954 .eraseblocks = { {8 * 1024, 128} },
15955 .block_erase = spi_block_erase_d7,
15956 }, {
15957 .eraseblocks = { {64 * 1024, 16} },
15958 .block_erase = spi_block_erase_d8,
15959 }, {
15960 .eraseblocks = { {1024 * 1024, 1} },
15961 .block_erase = spi_block_erase_c7,
15962 }
15963 },
15964 .printlock = spi_prettyprint_status_register_bp2_srwd,
15965 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
15966 .write = spi_chip_write_256,
15967 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
15968 .voltage = {2700, 3600},
15969 },
15970
15971 {
15972 .vendor = "Sharp",
15973 .name = "LH28F008BJT-BTLZ1",
15974 .bustype = BUS_PARALLEL,
15975 .manufacture_id = SHARP_ID,
15976 .model_id = SHARP_LH28F008BJ__PB,
15977 .total_size = 1024,
15978 .page_size = 64 * 1024,
15979 .tested = TEST_OK_PREW,
15980 .probe = probe_82802ab,
15981 .probe_timing = TIMING_ZERO,
15982 .block_erasers =
15983 {
15984 {
15985 .eraseblocks = {
15986 {8 * 1024, 8},
15987 {64 * 1024, 15}
15988 },
15989 .block_erase = erase_block_82802ab,
15990 }, {
15991 .eraseblocks = { {1024 * 1024, 1} },
15992 .block_erase = erase_sector_49lfxxxc,
15993 }
15994 },
15995 .unlock = unlock_lh28f008bjt,
15996 .write = write_82802ab,
15997 .read = read_memmapped,
15998 .voltage = {2700, 3600},
15999 },
16000
16001 {
16002 .vendor = "Sharp",
16003 .name = "LHF00L04",
16004 .bustype = BUS_FWH, /* A/A Mux */
16005 .manufacture_id = SHARP_ID,
16006 .model_id = SHARP_LHF00L04,
16007 .total_size = 1024,
16008 .page_size = 64 * 1024,
16009 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
16010 .tested = TEST_UNTESTED,
16011 .probe = probe_82802ab,
16012 .probe_timing = TIMING_ZERO,
16013 .block_erasers =
16014 {
16015 {
16016 .eraseblocks = {
16017 {64 * 1024, 15},
16018 {8 * 1024, 8}
16019 },
16020 .block_erase = erase_block_82802ab,
16021 }, {
16022 .eraseblocks = {
16023 {1024 * 1024, 1}
16024 },
16025 .block_erase = NULL, /* 30 D0, only in A/A mux mode */
16026 },
16027 },
16028 .unlock = unlock_regspace2_uniform_64k,
16029 .write = write_82802ab,
16030 .read = read_memmapped,
16031 .voltage = {3000, 3600},
16032 },
16033
16034 {
16035 .vendor = "Spansion",
16036 .name = "S25FL004A",
16037 .bustype = BUS_SPI,
16038 .manufacture_id = SPANSION_ID,
16039 .model_id = SPANSION_S25FL004A,
16040 .total_size = 512,
16041 .page_size = 256,
16042 .feature_bits = FEATURE_WRSR_WREN,
16043 .tested = TEST_UNTESTED,
16044 .probe = probe_spi_rdid,
16045 .probe_timing = TIMING_ZERO,
16046 .block_erasers =
16047 {
16048 {
16049 .eraseblocks = { {64 * 1024, 8} },
16050 .block_erase = spi_block_erase_d8,
16051 }, {
16052 .eraseblocks = { {512 * 1024, 1} },
16053 .block_erase = spi_block_erase_c7,
16054 }
16055 },
16056 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16057 .unlock = spi_disable_blockprotect,
16058 .write = spi_chip_write_256,
16059 .read = spi_chip_read,
16060 .voltage = {2700, 3600},
16061 },
16062
16063 {
16064 .vendor = "Spansion",
16065 .name = "S25FL008A",
16066 .bustype = BUS_SPI,
16067 .manufacture_id = SPANSION_ID,
16068 .model_id = SPANSION_S25FL008A,
16069 .total_size = 1024,
16070 .page_size = 256,
16071 .feature_bits = FEATURE_WRSR_WREN,
16072 .tested = TEST_OK_PRE,
16073 .probe = probe_spi_rdid,
16074 .probe_timing = TIMING_ZERO,
16075 .block_erasers =
16076 {
16077 {
16078 .eraseblocks = { {64 * 1024, 16} },
16079 .block_erase = spi_block_erase_d8,
16080 }, {
16081 .eraseblocks = { {1024 * 1024, 1} },
16082 .block_erase = spi_block_erase_c7,
16083 }
16084 },
16085 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16086 .unlock = spi_disable_blockprotect,
16087 .write = spi_chip_write_256,
16088 .read = spi_chip_read,
16089 .voltage = {2700, 3600},
16090 },
16091
16092 {
16093 .vendor = "Spansion",
16094 .name = "S25FL016A",
16095 .bustype = BUS_SPI,
16096 .manufacture_id = SPANSION_ID,
16097 .model_id = SPANSION_S25FL016A,
16098 .total_size = 2048,
16099 .page_size = 256,
16100 .feature_bits = FEATURE_WRSR_WREN,
16101 .tested = TEST_OK_PREW,
16102 .probe = probe_spi_rdid,
16103 .probe_timing = TIMING_ZERO,
16104 .block_erasers =
16105 {
16106 {
16107 .eraseblocks = { {64 * 1024, 32} },
16108 .block_erase = spi_block_erase_d8,
16109 }, {
16110 .eraseblocks = { {2 * 1024 * 1024, 1} },
16111 .block_erase = spi_block_erase_c7,
16112 }
16113 },
16114 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16115 .unlock = spi_disable_blockprotect,
16116 .write = spi_chip_write_256,
16117 .read = spi_chip_read,
16118 .voltage = {2700, 3600},
16119 },
16120
16121 {
16122 .vendor = "Spansion",
16123 .name = "S25FL032A/P",
16124 .bustype = BUS_SPI,
16125 .manufacture_id = SPANSION_ID,
16126 .model_id = SPANSION_S25FL032A,
16127 .total_size = 4096,
16128 .page_size = 256,
16129 .feature_bits = FEATURE_WRSR_WREN,
16130 .tested = TEST_OK_PREW,
16131 .probe = probe_spi_rdid,
16132 .probe_timing = TIMING_ZERO,
16133 .block_erasers =
16134 {
16135 {
16136 .eraseblocks = { {64 * 1024, 64} },
16137 .block_erase = spi_block_erase_d8,
16138 }, {
16139 .eraseblocks = { {4 * 1024 * 1024, 1} },
16140 .block_erase = spi_block_erase_c7,
16141 }
16142 },
16143 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16144 .unlock = spi_disable_blockprotect,
16145 .write = spi_chip_write_256,
16146 .read = spi_chip_read,
16147 .voltage = {2700, 3600},
16148 },
16149
16150 {
16151 .vendor = "Spansion",
16152 .name = "S25FL064A/P",
16153 .bustype = BUS_SPI,
16154 .manufacture_id = SPANSION_ID,
16155 .model_id = SPANSION_S25FL064A,
16156 .total_size = 8192,
16157 .page_size = 256,
16158 .feature_bits = FEATURE_WRSR_WREN,
16159 .tested = TEST_OK_PREW,
16160 .probe = probe_spi_rdid,
16161 .probe_timing = TIMING_ZERO,
16162 .block_erasers =
16163 {
16164 {
16165 .eraseblocks = { {64 * 1024, 128} },
16166 .block_erase = spi_block_erase_d8,
16167 }, {
16168 .eraseblocks = { {8 * 1024 * 1024, 1} },
16169 .block_erase = spi_block_erase_c7,
16170 }
16171 },
16172 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16173 .unlock = spi_disable_blockprotect,
16174 .write = spi_chip_write_256,
16175 .read = spi_chip_read,
16176 .voltage = {2700, 3600},
16177 },
16178
16179 {
16180 .vendor = "Spansion",
16181 .name = "S25FL116K/S25FL216K", /* FIXME: separate them */
16182 .bustype = BUS_SPI,
16183 .manufacture_id = SPANSION_ID,
16184 .model_id = SPANSION_S25FL216,
16185 .total_size = 2048,
16186 .page_size = 256,
16187 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (S25FL116K only) */
16188 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16189 .tested = TEST_UNTESTED,
16190 .probe = probe_spi_rdid,
16191 .probe_timing = TIMING_ZERO,
16192 .block_erasers =
16193 {
16194 {
16195 .eraseblocks = { {4 * 1024, 512} },
16196 .block_erase = spi_block_erase_20,
16197 }, {
16198 .eraseblocks = { {64 * 1024, 32} },
16199 .block_erase = spi_block_erase_d8,
16200 }, {
16201 .eraseblocks = { { 2048 * 1024, 1} },
16202 .block_erase = spi_block_erase_60,
16203 }, {
16204 .eraseblocks = { { 2048 * 1024, 1} },
16205 .block_erase = spi_block_erase_c7,
16206 }
16207 },
16208 .printlock = spi_prettyprint_status_register_bp3_srwd,
16209 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
16210 .write = spi_chip_write_256,
16211 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
16212 .voltage = {2700, 3600},
16213 },
16214
16215 {
16216 .vendor = "Spansion",
16217 .name = "S25FL127S-256kB", /* uniform 256kB sectors */
16218 .bustype = BUS_SPI,
16219 .manufacture_id = SPANSION_ID,
16220 .model_id = SPANSION_S25FL128,
16221 .total_size = 16384,
16222 .page_size = 512,
16223 /* supports 4B addressing */
16224 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
16225 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16226 .tested = TEST_UNTESTED,
16227 .probe = probe_spi_rdid,
16228 .probe_timing = TIMING_ZERO,
16229 .block_erasers =
16230 {
16231 {
16232 .eraseblocks = { {256 * 1024, 64} },
16233 .block_erase = spi_block_erase_d8,
16234 }, {
16235 .eraseblocks = { { 16384 * 1024, 1} },
16236 .block_erase = spi_block_erase_60,
16237 }, {
16238 .eraseblocks = { { 16384 * 1024, 1} },
16239 .block_erase = spi_block_erase_c7,
16240 }
16241 },
16242 .printlock = spi_prettyprint_status_register_bp2_srwd,
16243 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
16244 .write = spi_chip_write_256, /* Multi I/O supported */
16245 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16246 .voltage = {2700, 3600},
16247 },
16248
16249 {
16250 .vendor = "Spansion",
16251 .name = "S25FL127S-64kB", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
16252 .bustype = BUS_SPI,
16253 .manufacture_id = SPANSION_ID,
16254 .model_id = SPANSION_S25FL128,
16255 .total_size = 16384,
16256 .page_size = 256,
16257 /* supports 4B addressing */
16258 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
16259 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16260 .tested = TEST_OK_PREW,
16261 /* FIXME: we should distinguish the configuration on probing time like we do for AT45DB chips */
16262 .probe = probe_spi_rdid,
16263 .probe_timing = TIMING_ZERO,
16264 .block_erasers =
16265 {
16266 {
16267 /* This chip supports erasing of 32 so-called "parameter sectors" with
16268 * opcode 0x20 which may be configured to be on top or bottom of the address
16269 * space. Trying to access an address outside these 4kB blocks does have no
16270 * effect on the memory contents, e.g.
16271 .eraseblocks = {
16272 {4 * 1024, 32},
16273 {64 * 1024, 254} // inaccessible
16274 },
16275 .block_erase = spi_block_erase_20,
16276 }, { */
16277 .eraseblocks = { { 64 * 1024, 256} },
16278 .block_erase = spi_block_erase_d8,
16279 }, {
16280 .eraseblocks = { { 16384 * 1024, 1} },
16281 .block_erase = spi_block_erase_60,
16282 }, {
16283 .eraseblocks = { { 16384 * 1024, 1} },
16284 .block_erase = spi_block_erase_c7,
16285 }
16286 },
16287 .printlock = spi_prettyprint_status_register_bp2_srwd,
16288 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
16289 .write = spi_chip_write_256, /* Multi I/O supported */
16290 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16291 .voltage = {2700, 3600},
16292 },
16293
16294 {
16295 .vendor = "Spansion",
Nico Huberfffc48d2022-05-28 14:26:06 +020016296 .name = "S25FL128L",
16297 .bustype = BUS_SPI,
16298 .manufacture_id = SPANSION_ID,
16299 .model_id = SPANSION_S25FL128L,
16300 .total_size = 16384,
16301 .page_size = 256,
16302 /* 4 x 256B Security Region (OTP) */
16303 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT3 | FEATURE_OTP,
16304 .tested = TEST_UNTESTED,
16305 .probe = probe_spi_rdid,
16306 .probe_timing = TIMING_ZERO,
16307 .block_erasers =
16308 {
16309 {
16310 .eraseblocks = { {4 * 1024, 4096} },
16311 .block_erase = spi_block_erase_20,
16312 }, {
16313 .eraseblocks = { {32 * 1024, 512} },
16314 .block_erase = spi_block_erase_52,
16315 }, {
16316 .eraseblocks = { {64 * 1024, 256} },
16317 .block_erase = spi_block_erase_d8,
16318 }, {
16319 .eraseblocks = { {16384 * 1024, 1} },
16320 .block_erase = spi_block_erase_60,
16321 }, {
16322 .eraseblocks = { {16384 * 1024, 1} },
16323 .block_erase = spi_block_erase_c7,
16324 }
16325 },
16326 .printlock = spi_prettyprint_status_register_bp2_srwd,
16327 .unlock = spi_disable_blockprotect_bp2_srwd,
16328 .write = spi_chip_write_256,
16329 .read = spi_chip_read, /* Fast read (0x0B) supported */
16330 .voltage = {2700, 3600},
16331 .reg_bits =
16332 {
16333 /*
16334 * Note: This chip has a read-only Status Register 2 that is not
16335 * counted here. Registers are mapped as follows:
16336 * STATUS1 ... Status Register 1
16337 * STATUS2 ... Configuration Register 1
16338 * STATUS3 ... Configuration Register 2
16339 */
16340 .srp = {STATUS1, 7, RW},
16341 .srl = {STATUS2, 0, RW},
16342 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
16343 .tb = {STATUS1, 5, RW},
16344 .sec = {STATUS1, 6, RW},
16345 .cmp = {STATUS2, 6, RW},
16346 .wps = {STATUS3, 2, RW},
16347 },
16348 .decode_range = decode_range_spi25,
16349 },
16350
16351 {
16352 .vendor = "Spansion",
Alan Green1f9cc7d2019-07-01 11:10:45 +100016353 .name = "S25FL128P......0", /* uniform 64 kB sectors */
16354 .bustype = BUS_SPI,
16355 .manufacture_id = SPANSION_ID,
16356 .model_id = SPANSION_S25FL128,
16357 .total_size = 16384,
16358 .page_size = 256,
16359 .feature_bits = FEATURE_WRSR_WREN,
16360 .tested = TEST_OK_PREW,
16361 .probe = probe_spi_rdid,
16362 .probe_timing = TIMING_ZERO,
16363 .block_erasers =
16364 {
16365 {
16366 .eraseblocks = { {64 * 1024, 256} },
16367 .block_erase = spi_block_erase_20,
16368 }, {
16369 .eraseblocks = { {64 * 1024, 256} },
16370 .block_erase = spi_block_erase_d8,
16371 }, {
16372 .eraseblocks = { { 16384 * 1024, 1} },
16373 .block_erase = spi_block_erase_60,
16374 }, {
16375 .eraseblocks = { { 16384 * 1024, 1} },
16376 .block_erase = spi_block_erase_c7,
16377 }
16378 },
16379 .printlock = spi_prettyprint_status_register_bp3_srwd,
16380 .unlock = spi_disable_blockprotect_bp3_srwd,
16381 .write = spi_chip_write_256,
16382 .read = spi_chip_read, /* Fast read (0x0B) supported */
16383 .voltage = {2700, 3600},
16384 },
16385
16386 {
16387 .vendor = "Spansion",
16388 .name = "S25FL128P......1", /* uniform 256kB sectors */
16389 .bustype = BUS_SPI,
16390 .manufacture_id = SPANSION_ID,
16391 .model_id = SPANSION_S25FL128,
16392 .total_size = 16384,
16393 .page_size = 256,
16394 .feature_bits = FEATURE_WRSR_WREN,
16395 .tested = TEST_UNTESTED,
16396 .probe = probe_spi_rdid,
16397 .probe_timing = TIMING_ZERO,
16398 .block_erasers =
16399 {
16400 {
16401 .eraseblocks = { {256 * 1024, 64} },
16402 .block_erase = spi_block_erase_d8,
16403 }, {
16404 .eraseblocks = { { 16384 * 1024, 1} },
16405 .block_erase = spi_block_erase_c7,
16406 }
16407 },
16408 .printlock = spi_prettyprint_status_register_bp2_srwd,
16409 .unlock = spi_disable_blockprotect_bp2_srwd,
16410 .write = spi_chip_write_256,
16411 .read = spi_chip_read, /* Fast read (0x0B) supported */
16412 .voltage = {2700, 3600},
16413 },
16414
16415 {
16416 .vendor = "Spansion",
16417 .name = "S25FL128S......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
16418 .bustype = BUS_SPI,
16419 .manufacture_id = SPANSION_ID,
16420 .model_id = SPANSION_S25FL128,
16421 .total_size = 16384,
16422 .page_size = 256,
16423 /* supports 4B addressing */
16424 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
16425 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16426 .tested = TEST_OK_PREW,
16427 .probe = probe_spi_rdid,
16428 .probe_timing = TIMING_ZERO,
16429 .block_erasers =
16430 {
16431 {
16432 /* This chip supports erasing of the 32 so-called "parameter sectors" with
16433 * opcode 0x20. Trying to access an address outside these 4kB blocks does
16434 * have no effect on the memory contents, but sets a flag in the SR.
16435 .eraseblocks = {
16436 {4 * 1024, 32},
16437 {64 * 1024, 254} // inaccessible
16438 },
16439 .block_erase = spi_block_erase_20,
16440 }, { */
16441 .eraseblocks = { { 64 * 1024, 256} },
16442 .block_erase = spi_block_erase_d8,
16443 }, {
16444 .eraseblocks = { { 16384 * 1024, 1} },
16445 .block_erase = spi_block_erase_60,
16446 }, {
16447 .eraseblocks = { { 16384 * 1024, 1} },
16448 .block_erase = spi_block_erase_c7,
16449 }
16450 },
16451 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
16452 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
16453 .write = spi_chip_write_256, /* Multi I/O supported */
16454 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16455 .voltage = {2700, 3600},
16456 },
16457
16458 {
16459 .vendor = "Spansion",
16460 .name = "S25FL128S......1", /* uniform 256 kB sectors */
16461 .bustype = BUS_SPI,
16462 .manufacture_id = SPANSION_ID,
16463 .model_id = SPANSION_S25FL128,
16464 .total_size = 16384,
16465 .page_size = 512,
16466 /* supports 4B addressing */
16467 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
16468 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16469 .tested = TEST_UNTESTED,
16470 .probe = probe_spi_rdid,
16471 .probe_timing = TIMING_ZERO,
16472 .block_erasers =
16473 {
16474 {
16475 .eraseblocks = { {256 * 1024, 64} },
16476 .block_erase = spi_block_erase_d8,
16477 }, {
16478 .eraseblocks = { { 16384 * 1024, 1} },
16479 .block_erase = spi_block_erase_60,
16480 }, {
16481 .eraseblocks = { { 16384 * 1024, 1} },
16482 .block_erase = spi_block_erase_c7,
16483 }
16484 },
16485 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
16486 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
16487 .write = spi_chip_write_256, /* Multi I/O supported */
16488 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16489 .voltage = {2700, 3600},
16490 },
16491
16492 {
16493 .vendor = "Spansion",
16494 .name = "S25FL129P......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
16495 .bustype = BUS_SPI,
16496 .manufacture_id = SPANSION_ID,
16497 .model_id = SPANSION_S25FL128,
16498 .total_size = 16384,
16499 .page_size = 256,
16500 /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */
16501 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16502 .tested = TEST_OK_PREW,
16503 .probe = probe_spi_rdid,
16504 .probe_timing = TIMING_ZERO,
16505 .block_erasers =
16506 {
16507 {
16508 /* FIXME: This chip supports erasing of the 32 so-called "parameter sectors" with
16509 * opcode 0x20. Trying to access an address outside these 4kB blocks does have no
16510 * effect on the memory contents, but sets a flag in the SR.
16511 .eraseblocks = {
16512 {4 * 1024, 32},
16513 {64 * 1024, 254} // inaccessible
16514 },
16515 .block_erase = spi_block_erase_20,
16516 }, { */
16517 /* FIXME: Additionally it also supports erase opcode 40h for the respective 2*4 kB pairs
16518 .eraseblocks = {
16519 {8 * 1024, 16},
16520 {64 * 1024, 254} // inaccessible
16521 },
16522 .block_erase = spi_block_erase_40,
16523 }, { */
16524 .eraseblocks = { { 64 * 1024, 256} },
16525 .block_erase = spi_block_erase_d8,
16526 }, {
16527 .eraseblocks = { { 16384 * 1024, 1} },
16528 .block_erase = spi_block_erase_60,
16529 }, {
16530 .eraseblocks = { { 16384 * 1024, 1} },
16531 .block_erase = spi_block_erase_c7,
16532 }
16533 },
16534 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */
16535 .unlock = spi_disable_blockprotect_bp2_srwd,
16536 .write = spi_chip_write_256, /* Multi I/O supported */
16537 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16538 .voltage = {2700, 3600},
16539 },
16540
16541 {
16542 .vendor = "Spansion",
16543 .name = "S25FL129P......1", /* uniform 256 kB sectors */
16544 .bustype = BUS_SPI,
16545 .manufacture_id = SPANSION_ID,
16546 .model_id = SPANSION_S25FL128,
16547 .total_size = 16384,
16548 .page_size = 256,
16549 /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */
16550 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16551 .tested = TEST_UNTESTED,
16552 .probe = probe_spi_rdid,
16553 .probe_timing = TIMING_ZERO,
16554 .block_erasers =
16555 {
16556 {
16557 .eraseblocks = { {256 * 1024, 64} },
16558 .block_erase = spi_block_erase_d8,
16559 }, {
16560 .eraseblocks = { { 16384 * 1024, 1} },
16561 .block_erase = spi_block_erase_60,
16562 }, {
16563 .eraseblocks = { { 16384 * 1024, 1} },
16564 .block_erase = spi_block_erase_c7,
16565 }
16566 },
16567 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */
16568 .unlock = spi_disable_blockprotect_bp2_srwd,
16569 .write = spi_chip_write_256, /* Multi I/O supported */
16570 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16571 .voltage = {2700, 3600},
16572 },
16573
16574 {
16575 .vendor = "Spansion",
16576 .name = "S25FL132K",
16577 .bustype = BUS_SPI,
16578 .manufacture_id = SPANSION_ID,
16579 .model_id = SPANSION_S25FL132K,
16580 .total_size = 4096,
16581 .page_size = 256,
16582 /* OTP: 768B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
16583 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16584 .tested = TEST_UNTESTED,
16585 .probe = probe_spi_rdid,
16586 .probe_timing = TIMING_ZERO,
16587 .block_erasers =
16588 {
16589 {
16590 .eraseblocks = { {4 * 1024, 1024} },
16591 .block_erase = spi_block_erase_20,
16592 }, {
16593 .eraseblocks = { {64 * 1024, 64} },
16594 .block_erase = spi_block_erase_d8,
16595 }, {
16596 .eraseblocks = { { 4096 * 1024, 1} },
16597 .block_erase = spi_block_erase_60,
16598 }, {
16599 .eraseblocks = { { 4096 * 1024, 1} },
16600 .block_erase = spi_block_erase_c7,
16601 }
16602 },
16603 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
16604 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
16605 .write = spi_chip_write_256,
16606 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16607 .voltage = {2700, 3600},
16608 },
16609
16610 {
16611 .vendor = "Spansion",
16612 .name = "S25FL164K",
16613 .bustype = BUS_SPI,
16614 .manufacture_id = SPANSION_ID,
16615 .model_id = SPANSION_S25FL164K,
16616 .total_size = 8192,
16617 .page_size = 256,
16618 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
16619 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16620 .tested = TEST_OK_PREW,
16621 .probe = probe_spi_rdid,
16622 .probe_timing = TIMING_ZERO,
16623 .block_erasers =
16624 {
16625 {
16626 .eraseblocks = { {4 * 1024, 2048} },
16627 .block_erase = spi_block_erase_20,
16628 }, {
16629 .eraseblocks = { {64 * 1024, 128} },
16630 .block_erase = spi_block_erase_d8,
16631 }, {
16632 .eraseblocks = { { 8192 * 1024, 1} },
16633 .block_erase = spi_block_erase_60,
16634 }, {
16635 .eraseblocks = { { 8192 * 1024, 1} },
16636 .block_erase = spi_block_erase_c7,
16637 }
16638 },
16639 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
16640 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
16641 .write = spi_chip_write_256,
16642 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16643 .voltage = {2700, 3600},
16644 },
16645
16646 {
16647 .vendor = "Spansion",
16648 .name = "S25FL204K",
16649 .bustype = BUS_SPI,
16650 .manufacture_id = SPANSION_ID,
16651 .model_id = SPANSION_S25FL204,
16652 .total_size = 512,
16653 .page_size = 256,
16654 .feature_bits = FEATURE_WRSR_WREN,
16655 .tested = TEST_OK_PR,
16656 .probe = probe_spi_rdid,
16657 .probe_timing = TIMING_ZERO,
16658 .block_erasers =
16659 {
16660 {
16661 .eraseblocks = { {4 * 1024, 128} },
16662 .block_erase = spi_block_erase_20,
16663 }, {
16664 .eraseblocks = { {64 * 1024, 8} },
16665 .block_erase = spi_block_erase_d8,
16666 }, {
16667 .eraseblocks = { { 512 * 1024, 1} },
16668 .block_erase = spi_block_erase_60,
16669 }, {
16670 .eraseblocks = { { 512 * 1024, 1} },
16671 .block_erase = spi_block_erase_c7,
16672 }
16673 },
16674 .printlock = spi_prettyprint_status_register_bp3_srwd,
16675 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
16676 .write = spi_chip_write_256,
16677 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
16678 .voltage = {2700, 3600},
16679 },
16680
16681 {
16682 .vendor = "Spansion",
16683 .name = "S25FL208K",
16684 .bustype = BUS_SPI,
16685 .manufacture_id = SPANSION_ID,
16686 .model_id = SPANSION_S25FL208,
16687 .total_size = 1024,
16688 .page_size = 256,
16689 .feature_bits = FEATURE_WRSR_WREN,
16690 .tested = TEST_OK_PREW,
16691 .probe = probe_spi_rdid,
16692 .probe_timing = TIMING_ZERO,
16693 .block_erasers =
16694 {
16695 {
16696 .eraseblocks = { {4 * 1024, 256} },
16697 .block_erase = spi_block_erase_20,
16698 }, {
16699 .eraseblocks = { {64 * 1024, 16} },
16700 .block_erase = spi_block_erase_d8,
16701 }, {
16702 .eraseblocks = { { 1024 * 1024, 1} },
16703 .block_erase = spi_block_erase_60,
16704 }, {
16705 .eraseblocks = { { 1024 * 1024, 1} },
16706 .block_erase = spi_block_erase_c7,
16707 }
16708 },
16709 .printlock = spi_prettyprint_status_register_bp3_srwd,
16710 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
16711 .write = spi_chip_write_256,
16712 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
16713 .voltage = {2700, 3600},
16714 },
16715
16716 {
16717 .vendor = "Spansion",
Nico Huberfffc48d2022-05-28 14:26:06 +020016718 .name = "S25FL256L",
16719 .bustype = BUS_SPI,
16720 .manufacture_id = SPANSION_ID,
16721 .model_id = SPANSION_S25FL256L,
16722 .total_size = 32768,
16723 .page_size = 256,
16724 /* 4 x 256B Security Region (OTP) */
16725 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT3 | FEATURE_OTP |
16726 FEATURE_4BA_ENTER | FEATURE_4BA_NATIVE,
16727 .tested = TEST_UNTESTED,
16728 .probe = probe_spi_rdid,
16729 .probe_timing = TIMING_ZERO,
16730 .block_erasers =
16731 {
16732 {
16733 .eraseblocks = { {4 * 1024, 8192} },
16734 .block_erase = spi_block_erase_21,
16735 }, {
16736 .eraseblocks = { {4 * 1024, 8192} },
16737 .block_erase = spi_block_erase_20,
16738 }, {
16739 .eraseblocks = { {32 * 1024, 1024} },
16740 .block_erase = spi_block_erase_53,
16741 }, {
16742 .eraseblocks = { {32 * 1024, 1024} },
16743 .block_erase = spi_block_erase_52,
16744 }, {
16745 .eraseblocks = { {64 * 1024, 512} },
16746 .block_erase = spi_block_erase_dc,
16747 }, {
16748 .eraseblocks = { {64 * 1024, 512} },
16749 .block_erase = spi_block_erase_d8,
16750 }, {
16751 .eraseblocks = { {32768 * 1024, 1} },
16752 .block_erase = spi_block_erase_60,
16753 }, {
16754 .eraseblocks = { {32768 * 1024, 1} },
16755 .block_erase = spi_block_erase_c7,
16756 }
16757 },
16758 .printlock = spi_prettyprint_status_register_bp3_srwd,
16759 .unlock = spi_disable_blockprotect_bp3_srwd,
16760 .write = spi_chip_write_256,
16761 .read = spi_chip_read, /* Fast read (0x0B) supported */
16762 .voltage = {2700, 3600},
16763 .reg_bits =
16764 {
16765 /*
16766 * Note: This chip has a read-only Status Register 2 that is not
16767 * counted here. Registers are mapped as follows:
16768 * STATUS1 ... Status Register 1
16769 * STATUS2 ... Configuration Register 1
16770 * STATUS3 ... Configuration Register 2
16771 */
16772 .srp = {STATUS1, 7, RW},
16773 .srl = {STATUS2, 0, RW},
16774 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}},
16775 .tb = {STATUS1, 6, RW},
16776 .cmp = {STATUS2, 6, RW},
16777 .wps = {STATUS3, 2, RW},
16778 },
16779 .decode_range = decode_range_spi25,
16780 },
16781
16782 {
16783 .vendor = "Spansion",
Alan Green1f9cc7d2019-07-01 11:10:45 +100016784 .name = "S25FL256S......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
16785 .bustype = BUS_SPI,
16786 .manufacture_id = SPANSION_ID,
16787 .model_id = SPANSION_S25FL256,
16788 .total_size = 32768,
16789 .page_size = 256,
16790 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
Nico Huber9bb8a322022-05-24 15:07:34 +020016791 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP |
16792 FEATURE_4BA_NATIVE | FEATURE_4BA_ENTER_EAR7 | FEATURE_4BA_EAR_1716,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016793 .tested = TEST_OK_PREW,
16794 .probe = probe_spi_rdid,
16795 .probe_timing = TIMING_ZERO,
16796 .block_erasers =
16797 {
16798 {
16799 /* This chip supports erasing of the 32 so-called "parameter sectors" with
16800 * opcode 0x20. Trying to access an address outside these 4kB blocks does
16801 * have no effect on the memory contents, but sets a flag in the SR.
16802 .eraseblocks = {
16803 {4 * 1024, 32},
16804 {64 * 1024, 254} // inaccessible
16805 },
16806 .block_erase = spi_block_erase_20,
16807 }, { */
16808 .eraseblocks = { { 64 * 1024, 512} },
16809 .block_erase = spi_block_erase_dc,
16810 }, {
16811 .eraseblocks = { { 64 * 1024, 512} },
16812 .block_erase = spi_block_erase_d8,
16813 }, {
16814 .eraseblocks = { { 32768 * 1024, 1} },
16815 .block_erase = spi_block_erase_60,
16816 }, {
16817 .eraseblocks = { { 32768 * 1024, 1} },
16818 .block_erase = spi_block_erase_c7,
16819 }
16820 },
16821 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
16822 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
16823 .write = spi_chip_write_256, /* Multi I/O supported */
16824 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16825 .voltage = {2700, 3600},
Alan Green1f9cc7d2019-07-01 11:10:45 +100016826 },
16827
16828 {
Bernhard Urban-Forster05c629b2020-02-02 21:29:48 +010016829 .vendor = "Spansion",
16830 .name = "S25FL512S",
16831 .bustype = BUS_SPI,
16832 .manufacture_id = SPANSION_ID,
16833 .model_id = SPANSION_S25FL512,
16834 .total_size = 65536, /* 512 Mb (=> 64 MB)) */
16835 .page_size = 256,
16836 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
Nico Huber26237922022-06-20 19:37:37 +020016837 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP |
16838 FEATURE_4BA_NATIVE | FEATURE_4BA_ENTER_EAR7 | FEATURE_4BA_EAR_1716,
16839 .tested = TEST_UNTESTED,
Bernhard Urban-Forster05c629b2020-02-02 21:29:48 +010016840 .probe = probe_spi_rdid,
16841 .probe_timing = TIMING_ZERO,
16842 .block_erasers =
16843 {
16844 {
16845 .eraseblocks = { { 256 * 1024, 256} },
16846 .block_erase = spi_block_erase_dc,
16847 }, {
Nico Huberbb608ff2022-05-24 15:33:26 +020016848 .eraseblocks = { { 256 * 1024, 256} },
16849 .block_erase = spi_block_erase_d8,
16850 }, {
Bernhard Urban-Forster05c629b2020-02-02 21:29:48 +010016851 .eraseblocks = { { 65536 * 1024, 1} },
16852 .block_erase = spi_block_erase_60,
16853 }, {
16854 .eraseblocks = { { 65536 * 1024, 1} },
16855 .block_erase = spi_block_erase_c7,
16856 }
16857 },
16858 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
16859 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
16860 .write = spi_chip_write_256, /* Multi I/O supported, IGNORE for now */
16861 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16862 .voltage = {2700, 3600},
16863 },
16864
16865 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000016866 .vendor = "SyncMOS/MoselVitelic",
16867 .name = "{F,S,V}29C51001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016868 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016869 .manufacture_id = SYNCMOS_MVC_ID,
16870 .model_id = SM_MVC_29C51001B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016871 .total_size = 128,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016872 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000016873 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016874 .tested = TEST_UNTESTED,
16875 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000016876 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000016877 .block_erasers =
16878 {
16879 {
16880 .eraseblocks = { {512, 256} },
16881 .block_erase = erase_sector_jedec,
16882 }, {
16883 .eraseblocks = { {128 * 1024, 1} },
16884 .block_erase = erase_chip_block_jedec,
16885 },
16886 },
Sean Nelson35727f72010-01-28 23:55:12 +000016887 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016888 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016889 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000016890 },
16891
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016892 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000016893 .vendor = "SyncMOS/MoselVitelic",
16894 .name = "{F,S,V}29C51001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016895 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016896 .manufacture_id = SYNCMOS_MVC_ID,
16897 .model_id = SM_MVC_29C51001T,
16898 .total_size = 128,
16899 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000016900 .feature_bits = FEATURE_EITHER_RESET,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016901 .tested = TEST_UNTESTED,
16902 .probe = probe_jedec,
16903 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
16904 .block_erasers =
16905 {
16906 {
16907 .eraseblocks = { {512, 256} },
16908 .block_erase = erase_sector_jedec,
16909 }, {
16910 .eraseblocks = { {128 * 1024, 1} },
16911 .block_erase = erase_chip_block_jedec,
16912 },
16913 },
16914 .write = write_jedec_1,
16915 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016916 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000016917 },
16918
16919 {
16920 .vendor = "SyncMOS/MoselVitelic",
16921 .name = "{F,S,V}29C51002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016922 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016923 .manufacture_id = SYNCMOS_MVC_ID,
16924 .model_id = SM_MVC_29C51002B,
16925 .total_size = 256,
16926 .page_size = 512,
16927 .feature_bits = FEATURE_EITHER_RESET,
16928 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016929 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000016930 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000016931 .block_erasers =
16932 {
16933 {
16934 .eraseblocks = { {512, 512} },
16935 .block_erase = erase_sector_jedec,
16936 }, {
16937 .eraseblocks = { {256 * 1024, 1} },
16938 .block_erase = erase_chip_block_jedec,
16939 },
16940 },
Sean Nelson35727f72010-01-28 23:55:12 +000016941 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016942 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000016943 },
16944
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016945 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000016946 .vendor = "SyncMOS/MoselVitelic",
16947 .name = "{F,S,V}29C51002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016948 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016949 .manufacture_id = SYNCMOS_MVC_ID,
16950 .model_id = SM_MVC_29C51002T,
16951 .total_size = 256,
16952 .page_size = 512,
16953 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000016954 .tested = TEST_OK_PREW,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016955 .probe = probe_jedec,
16956 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
16957 .block_erasers =
16958 {
16959 {
16960 .eraseblocks = { {512, 512} },
16961 .block_erase = erase_sector_jedec,
16962 }, {
16963 .eraseblocks = { {256 * 1024, 1} },
16964 .block_erase = erase_chip_block_jedec,
16965 },
16966 },
16967 .write = write_jedec_1,
16968 .read = read_memmapped,
16969 },
16970
16971 {
16972 .vendor = "SyncMOS/MoselVitelic",
16973 .name = "{F,S,V}29C51004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016974 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016975 .manufacture_id = SYNCMOS_MVC_ID,
16976 .model_id = SM_MVC_29C51004B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016977 .total_size = 512,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016978 .page_size = 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000016979 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016980 .tested = TEST_UNTESTED,
16981 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000016982 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +000016983 .block_erasers =
16984 {
16985 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000016986 .eraseblocks = { {1024, 512} },
16987 .block_erase = erase_sector_jedec,
16988 }, {
16989 .eraseblocks = { {512 * 1024, 1} },
16990 .block_erase = erase_chip_block_jedec,
16991 },
16992 },
16993 .write = write_jedec_1,
16994 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016995 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000016996 },
16997
16998 {
16999 .vendor = "SyncMOS/MoselVitelic",
17000 .name = "{F,S,V}29C51004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017001 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017002 .manufacture_id = SYNCMOS_MVC_ID,
17003 .model_id = SM_MVC_29C51004T,
17004 .total_size = 512,
17005 .page_size = 1024,
17006 .feature_bits = FEATURE_EITHER_RESET,
17007 .tested = TEST_UNTESTED,
17008 .probe = probe_jedec,
17009 .probe_timing = TIMING_ZERO,
17010 .block_erasers =
17011 {
17012 {
17013 .eraseblocks = { {1024, 512} },
17014 .block_erase = erase_sector_jedec,
17015 }, {
17016 .eraseblocks = { {512 * 1024, 1} },
17017 .block_erase = erase_chip_block_jedec,
17018 },
17019 },
17020 .write = write_jedec_1,
17021 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017022 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000017023 },
17024
17025 {
17026 .vendor = "SyncMOS/MoselVitelic",
17027 .name = "{S,V}29C31004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017028 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017029 .manufacture_id = SYNCMOS_MVC_ID,
17030 .model_id = SM_MVC_29C31004B,
17031 .total_size = 512,
17032 .page_size = 1024,
17033 .feature_bits = FEATURE_EITHER_RESET,
17034 .tested = TEST_UNTESTED,
17035 .probe = probe_jedec,
17036 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
17037 .block_erasers =
17038 {
17039 {
17040 .eraseblocks = { {1024, 512} },
17041 .block_erase = erase_sector_jedec,
17042 }, {
17043 .eraseblocks = { {512 * 1024, 1} },
17044 .block_erase = erase_chip_block_jedec,
17045 },
17046 },
17047 .write = write_jedec_1,
17048 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017049 .voltage = {3000, 3600},
Mattias Mattsson4c066502010-07-29 20:01:13 +000017050 },
17051
17052 {
17053 .vendor = "SyncMOS/MoselVitelic",
17054 .name = "{S,V}29C31004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017055 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017056 .manufacture_id = SYNCMOS_MVC_ID,
17057 .model_id = SM_MVC_29C31004T,
17058 .total_size = 512,
17059 .page_size = 1024,
17060 .feature_bits = FEATURE_EITHER_RESET,
17061 .tested = TEST_UNTESTED,
17062 .probe = probe_jedec,
17063 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
17064 .block_erasers =
17065 {
17066 {
17067 .eraseblocks = { {1024, 512} },
Sean Nelson56358aa2010-01-19 16:08:51 +000017068 .block_erase = erase_sector_jedec,
17069 }, {
17070 .eraseblocks = { {512 * 1024, 1} },
17071 .block_erase = erase_chip_block_jedec,
17072 },
17073 },
Sean Nelson35727f72010-01-28 23:55:12 +000017074 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017075 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017076 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000017077 },
17078
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017079 {
Uwe Hermanna106d152009-05-27 23:17:40 +000017080 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017081 .name = "TMS29F002RB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017082 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017083 .manufacture_id = TI_OLD_ID,
17084 .model_id = TI_TMS29F002RB,
17085 .total_size = 256,
17086 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000017087 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017088 .tested = TEST_UNTESTED,
17089 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000017090 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000017091 .block_erasers =
17092 {
17093 {
17094 .eraseblocks = {
17095 {16 * 1024, 1},
17096 {8 * 1024, 2},
17097 {32 * 1024, 1},
17098 {64 * 1024, 3},
17099 },
17100 .block_erase = erase_sector_jedec,
17101 }, {
17102 .eraseblocks = { {256 * 1024, 1} },
17103 .block_erase = erase_chip_block_jedec,
17104 },
17105 },
Sean Nelson35727f72010-01-28 23:55:12 +000017106 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017107 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017108 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017109 },
17110
17111 {
Uwe Hermanna106d152009-05-27 23:17:40 +000017112 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017113 .name = "TMS29F002RT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017114 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017115 .manufacture_id = TI_OLD_ID,
17116 .model_id = TI_TMS29F002RT,
17117 .total_size = 256,
17118 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000017119 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017120 .tested = TEST_UNTESTED,
17121 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000017122 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000017123 .block_erasers =
17124 {
17125 {
17126 .eraseblocks = {
17127 {64 * 1024, 3},
17128 {32 * 1024, 1},
17129 {8 * 1024, 2},
17130 {16 * 1024, 1},
17131 },
17132 .block_erase = erase_sector_jedec,
17133 }, {
17134 .eraseblocks = { {256 * 1024, 1} },
17135 .block_erase = erase_chip_block_jedec,
17136 },
17137 },
Sean Nelson35727f72010-01-28 23:55:12 +000017138 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017139 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017140 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017141 },
17142
17143 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017144 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017145 .name = "W25P16",
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000017146 .bustype = BUS_SPI,
17147 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017148 .model_id = WINBOND_NEX_W25P16,
17149 .total_size = 2048,
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000017150 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017151 .feature_bits = FEATURE_WRSR_WREN,
17152 .tested = TEST_UNTESTED,
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000017153 .probe = probe_spi_rdid,
17154 .probe_timing = TIMING_ZERO,
17155 .block_erasers =
17156 {
17157 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017158 .eraseblocks = { {64 * 1024, 32} },
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000017159 .block_erase = spi_block_erase_d8,
17160 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017161 .eraseblocks = { {2048 * 1024, 1} },
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000017162 .block_erase = spi_block_erase_c7,
17163 }
17164 },
17165 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17166 .unlock = spi_disable_blockprotect,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017167 .write = spi_chip_write_256,
17168 .read = spi_chip_read, /* Fast read (0x0B) supported */
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000017169 .voltage = {2700, 3600},
17170 },
17171
17172 {
17173 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017174 .name = "W25P32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017175 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000017176 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017177 .model_id = WINBOND_NEX_W25P32,
17178 .total_size = 4096,
Rudolf Marekce1c7982010-04-20 19:34:31 +000017179 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017180 .feature_bits = FEATURE_WRSR_WREN,
17181 .tested = TEST_UNTESTED,
Rudolf Marekce1c7982010-04-20 19:34:31 +000017182 .probe = probe_spi_rdid,
17183 .probe_timing = TIMING_ZERO,
17184 .block_erasers =
17185 {
17186 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017187 .eraseblocks = { {64 * 1024, 64} },
17188 .block_erase = spi_block_erase_d8,
Rudolf Marekce1c7982010-04-20 19:34:31 +000017189 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017190 .eraseblocks = { {4096 * 1024, 1} },
17191 .block_erase = spi_block_erase_c7,
17192 }
17193 },
17194 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17195 .unlock = spi_disable_blockprotect,
17196 .write = spi_chip_write_256,
17197 .read = spi_chip_read, /* Fast read (0x0B) supported */
17198 .voltage = {2700, 3600},
17199 },
17200
17201 {
17202 .vendor = "Winbond",
17203 .name = "W25P80",
17204 .bustype = BUS_SPI,
17205 .manufacture_id = WINBOND_NEX_ID,
17206 .model_id = WINBOND_NEX_W25P80,
17207 .total_size = 1024,
17208 .page_size = 256,
17209 .feature_bits = FEATURE_WRSR_WREN,
17210 .tested = TEST_UNTESTED,
17211 .probe = probe_spi_rdid,
17212 .probe_timing = TIMING_ZERO,
17213 .block_erasers =
17214 {
17215 {
Rudolf Marekce1c7982010-04-20 19:34:31 +000017216 .eraseblocks = { {64 * 1024, 16} },
17217 .block_erase = spi_block_erase_d8,
17218 }, {
17219 .eraseblocks = { {1024 * 1024, 1} },
Rudolf Marekce1c7982010-04-20 19:34:31 +000017220 .block_erase = spi_block_erase_c7,
17221 }
17222 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000017223 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000017224 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000017225 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017226 .read = spi_chip_read, /* Fast read (0x0B) supported */
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017227 .voltage = {2700, 3600},
David Hendricksc4acec92010-06-24 11:39:57 +000017228 },
17229
17230 {
17231 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017232 .name = "W25Q128.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017233 .bustype = BUS_SPI,
Antony Rheneus0fbba982011-05-26 14:28:51 +000017234 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017235 .model_id = WINBOND_NEX_W25Q128_V,
Antony Rheneus0fbba982011-05-26 14:28:51 +000017236 .total_size = 16384,
17237 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017238 /* supports SFDP */
17239 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber3f3c1f32022-05-28 16:48:26 +020017240 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP |
17241 FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3,
Edward O'Callaghana97e3532022-12-16 15:41:05 +110017242 .tested = TEST_OK_PREWB,
Antony Rheneus0fbba982011-05-26 14:28:51 +000017243 .probe = probe_spi_rdid,
17244 .probe_timing = TIMING_ZERO,
17245 .block_erasers =
17246 {
17247 {
17248 .eraseblocks = { {4 * 1024, 4096} },
17249 .block_erase = spi_block_erase_20,
17250 }, {
17251 .eraseblocks = { {32 * 1024, 512} },
17252 .block_erase = spi_block_erase_52,
17253 }, {
17254 .eraseblocks = { {64 * 1024, 256} },
17255 .block_erase = spi_block_erase_d8,
17256 }, {
17257 .eraseblocks = { {16 * 1024 * 1024, 1} },
17258 .block_erase = spi_block_erase_60,
17259 }, {
17260 .eraseblocks = { {16 * 1024 * 1024, 1} },
17261 .block_erase = spi_block_erase_c7,
17262 }
17263 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000017264 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Antony Rheneus0fbba982011-05-26 14:28:51 +000017265 .unlock = spi_disable_blockprotect,
17266 .write = spi_chip_write_256,
17267 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017268 .voltage = {2700, 3600},
Sergii Dmytrukd1af3072021-11-08 00:00:43 +020017269 /* FIXME: Older versions (e.g. 25Q128BV) use WRSR_EXT and have no WPS. */
17270 .reg_bits =
17271 {
17272 .srp = {STATUS1, 7, RW},
17273 .srl = {STATUS2, 0, RW},
17274 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
17275 .tb = {STATUS1, 5, RW},
17276 .sec = {STATUS1, 6, RW},
17277 .cmp = {STATUS2, 6, RW},
17278 .wps = {STATUS3, 2, RW},
17279 },
17280 .decode_range = decode_range_spi25,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017281 },
17282
17283 {
17284 .vendor = "Winbond",
Patrick Rudolph34323492018-10-04 14:59:40 +020017285 .name = "W25Q128.V..M",
17286 .bustype = BUS_SPI,
17287 .manufacture_id = WINBOND_NEX_ID,
17288 .model_id = WINBOND_NEX_W25Q128_V_M,
17289 .total_size = 16384,
17290 .page_size = 256,
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110017291 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_WRSR2,
Sergii Dmytrukc74eac22022-10-06 18:17:58 +030017292 .tested = TEST_OK_PREWB,
Patrick Rudolph34323492018-10-04 14:59:40 +020017293 .probe = probe_spi_rdid,
17294 .probe_timing = TIMING_ZERO,
17295 .block_erasers =
17296 {
17297 {
17298 .eraseblocks = { {4 * 1024, 4096} },
17299 .block_erase = spi_block_erase_20,
17300 }, {
17301 .eraseblocks = { {32 * 1024, 512} },
17302 .block_erase = spi_block_erase_52,
17303 }, {
17304 .eraseblocks = { {64 * 1024, 256} },
17305 .block_erase = spi_block_erase_d8,
17306 }, {
17307 .eraseblocks = { {16 * 1024 * 1024, 1} },
17308 .block_erase = spi_block_erase_60,
17309 }, {
17310 .eraseblocks = { {16 * 1024 * 1024, 1} },
17311 .block_erase = spi_block_erase_c7,
17312 }
17313 },
Alan Greena1fc01d2019-09-23 17:12:44 +100017314 .printlock = spi_prettyprint_status_register_plain,
Patrick Rudolph34323492018-10-04 14:59:40 +020017315 .unlock = spi_disable_blockprotect,
17316 .write = spi_chip_write_256,
17317 .read = spi_chip_read,
17318 .voltage = {2700, 3600},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110017319 .reg_bits =
17320 {
17321 .srp = {STATUS1, 7, RW},
17322 .srl = {STATUS2, 0, RW},
17323 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
17324 .tb = {STATUS1, 5, RW},
17325 .sec = {STATUS1, 6, RW},
17326 .cmp = {STATUS2, 6, RW},
17327 },
17328 .decode_range = decode_range_spi25,
Patrick Rudolph34323492018-10-04 14:59:40 +020017329 },
17330
17331 {
17332 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017333 .name = "W25Q128.W",
17334 .bustype = BUS_SPI,
17335 .manufacture_id = WINBOND_NEX_ID,
17336 .model_id = WINBOND_NEX_W25Q128_W,
17337 .total_size = 16384,
17338 .page_size = 256,
17339 /* supports SFDP */
17340 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110017341 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_WRSR2,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017342 .tested = TEST_OK_PREW,
17343 .probe = probe_spi_rdid,
17344 .probe_timing = TIMING_ZERO,
17345 .block_erasers =
17346 {
17347 {
17348 .eraseblocks = { {4 * 1024, 4096} },
17349 .block_erase = spi_block_erase_20,
17350 }, {
17351 .eraseblocks = { {32 * 1024, 512} },
17352 .block_erase = spi_block_erase_52,
17353 }, {
17354 .eraseblocks = { {64 * 1024, 256} },
17355 .block_erase = spi_block_erase_d8,
17356 }, {
17357 .eraseblocks = { {16 * 1024 * 1024, 1} },
17358 .block_erase = spi_block_erase_60,
17359 }, {
17360 .eraseblocks = { {16 * 1024 * 1024, 1} },
17361 .block_erase = spi_block_erase_c7,
17362 }
17363 },
17364 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17365 .unlock = spi_disable_blockprotect,
17366 .write = spi_chip_write_256,
17367 .read = spi_chip_read,
17368 .voltage = {1650, 1950},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110017369 .reg_bits =
17370 {
17371 .srp = {STATUS1, 7, RW},
17372 .srl = {STATUS2, 0, RW},
17373 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
17374 .tb = {STATUS1, 5, RW},
17375 .sec = {STATUS1, 6, RW},
17376 .cmp = {STATUS2, 6, RW},
17377 },
17378 .decode_range = decode_range_spi25,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017379 },
17380
17381 {
17382 .vendor = "Winbond",
Peichao Wang1a119492019-11-11 15:26:41 +080017383 .name = "W25Q128.JW.DTR",
17384 .bustype = BUS_SPI,
17385 .manufacture_id = WINBOND_NEX_ID,
17386 .model_id = WINBOND_NEX_W25Q128_DTR,
17387 .total_size = 16384,
17388 .page_size = 256,
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110017389 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_WRSR2,
Peichao Wang1a119492019-11-11 15:26:41 +080017390 .tested = TEST_OK_PREW,
17391 .probe = probe_spi_rdid,
17392 .probe_timing = TIMING_ZERO,
17393 .block_erasers =
17394 {
17395 {
17396 .eraseblocks = { {4 * 1024, 4096} },
17397 .block_erase = spi_block_erase_20,
17398 }, {
17399 .eraseblocks = { {32 * 1024, 512} },
17400 .block_erase = spi_block_erase_52,
17401 }, {
17402 .eraseblocks = { {64 * 1024, 256} },
17403 .block_erase = spi_block_erase_d8,
17404 }, {
17405 .eraseblocks = { {16 * 1024 * 1024, 1} },
17406 .block_erase = spi_block_erase_60,
17407 }, {
17408 .eraseblocks = { {16 * 1024 * 1024, 1} },
17409 .block_erase = spi_block_erase_c7,
17410 }
17411 },
17412 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17413 .unlock = spi_disable_blockprotect,
17414 .write = spi_chip_write_256,
17415 .read = spi_chip_read,
17416 .voltage = {1650, 1950},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110017417 .reg_bits =
17418 {
17419 .srp = {STATUS1, 7, RW},
17420 .srl = {STATUS2, 0, RW},
17421 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
17422 .tb = {STATUS1, 5, RW},
17423 .sec = {STATUS1, 6, RW},
17424 .cmp = {STATUS2, 6, RW},
17425 },
17426 .decode_range = decode_range_spi25,
Peichao Wang1a119492019-11-11 15:26:41 +080017427 },
17428
17429 {
17430 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017431 .name = "W25Q16.V",
17432 .bustype = BUS_SPI,
17433 .manufacture_id = WINBOND_NEX_ID,
17434 .model_id = WINBOND_NEX_W25Q16_V,
17435 .total_size = 2048,
17436 .page_size = 256,
17437 /* supports SFDP */
17438 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17439 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17440 .tested = TEST_OK_PREW,
17441 .probe = probe_spi_rdid,
17442 .probe_timing = TIMING_ZERO,
17443 .block_erasers =
17444 {
17445 {
17446 .eraseblocks = { {4 * 1024, 512} },
17447 .block_erase = spi_block_erase_20,
17448 }, {
17449 .eraseblocks = { {32 * 1024, 64} },
17450 .block_erase = spi_block_erase_52,
17451 }, {
17452 .eraseblocks = { {64 * 1024, 32} },
17453 .block_erase = spi_block_erase_d8,
17454 }, {
17455 .eraseblocks = { {2 * 1024 * 1024, 1} },
17456 .block_erase = spi_block_erase_60,
17457 }, {
17458 .eraseblocks = { {2 * 1024 * 1024, 1} },
17459 .block_erase = spi_block_erase_c7,
17460 }
17461 },
17462 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17463 .unlock = spi_disable_blockprotect,
17464 .write = spi_chip_write_256,
17465 .read = spi_chip_read,
17466 .voltage = {2700, 3600},
17467 },
17468
17469 {
17470 .vendor = "Winbond",
17471 .name = "W25Q16.W",
17472 .bustype = BUS_SPI,
17473 .manufacture_id = WINBOND_NEX_ID,
17474 .model_id = WINBOND_NEX_W25Q16_W,
17475 .total_size = 2048,
17476 .page_size = 256,
17477 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17478 /* QPI enable 0x38, disable 0xFF */
17479 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
17480 .tested = TEST_UNTESTED,
17481 .probe = probe_spi_rdid,
17482 .probe_timing = TIMING_ZERO,
17483 .block_erasers =
17484 {
17485 {
17486 .eraseblocks = { {4 * 1024, 512} },
17487 .block_erase = spi_block_erase_20,
17488 }, {
17489 .eraseblocks = { {32 * 1024, 64} },
17490 .block_erase = spi_block_erase_52,
17491 }, {
17492 .eraseblocks = { {64 * 1024, 32} },
17493 .block_erase = spi_block_erase_d8,
17494 }, {
17495 .eraseblocks = { {2 * 1024 * 1024, 1} },
17496 .block_erase = spi_block_erase_60,
17497 }, {
17498 .eraseblocks = { {2 * 1024 * 1024, 1} },
17499 .block_erase = spi_block_erase_c7,
17500 }
17501 },
17502 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17503 .unlock = spi_disable_blockprotect,
17504 .write = spi_chip_write_256,
17505 .read = spi_chip_read,
17506 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
17507 },
17508
17509 {
17510 .vendor = "Winbond",
17511 .name = "W25Q20.W",
17512 .bustype = BUS_SPI,
17513 .manufacture_id = WINBOND_NEX_ID,
17514 .model_id = WINBOND_NEX_W25Q20_W,
17515 .total_size = 256,
17516 .page_size = 256,
17517 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17518 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17519 .tested = TEST_UNTESTED,
17520 .probe = probe_spi_rdid,
17521 .probe_timing = TIMING_ZERO,
17522 .block_erasers =
17523 {
17524 {
17525 .eraseblocks = { {4 * 1024, 64} },
17526 .block_erase = spi_block_erase_20,
17527 }, {
17528 .eraseblocks = { {32 * 1024, 8} },
17529 .block_erase = spi_block_erase_52,
17530 }, {
17531 .eraseblocks = { {64 * 1024, 4} },
17532 .block_erase = spi_block_erase_d8,
17533 }, {
17534 .eraseblocks = { {256 * 1024, 1} },
17535 .block_erase = spi_block_erase_60,
17536 }, {
17537 .eraseblocks = { {256 * 1024, 1} },
17538 .block_erase = spi_block_erase_c7,
17539 }
17540 },
17541 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17542 .unlock = spi_disable_blockprotect,
17543 .write = spi_chip_write_256,
17544 .read = spi_chip_read,
17545 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
17546 },
17547
17548 {
17549 .vendor = "Winbond",
Nico Huber5215eab2022-05-23 15:13:07 +020017550 .name = "W25Q256FV",
Boris Baykovaa6c3742016-06-11 18:29:01 +020017551 .bustype = BUS_SPI,
17552 .manufacture_id = WINBOND_NEX_ID,
17553 .model_id = WINBOND_NEX_W25Q256_V,
17554 .total_size = 32768,
17555 .page_size = 256,
17556 /* supports SFDP */
17557 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110017558 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_ENTER_WREN |
Nico Huber542b1f02022-05-24 14:30:12 +020017559 FEATURE_4BA_EAR_C5C8 | FEATURE_4BA_READ | FEATURE_4BA_FAST_READ |
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110017560 FEATURE_WRSR2,
Angel Pons3130cbd2018-09-30 19:32:30 +020017561 .tested = TEST_OK_PREW,
Boris Baykovaa6c3742016-06-11 18:29:01 +020017562 .probe = probe_spi_rdid,
17563 .probe_timing = TIMING_ZERO,
17564 .block_erasers =
17565 {
17566 {
17567 .eraseblocks = { {4 * 1024, 8192} },
Nico Huber7a077222017-10-14 18:18:30 +020017568 .block_erase = spi_block_erase_20,
Boris Baykovaa6c3742016-06-11 18:29:01 +020017569 }, {
17570 .eraseblocks = { {32 * 1024, 1024} },
Nico Huber7a077222017-10-14 18:18:30 +020017571 .block_erase = spi_block_erase_52,
Boris Baykovaa6c3742016-06-11 18:29:01 +020017572 }, {
17573 .eraseblocks = { {64 * 1024, 512} },
Nico Huber7a077222017-10-14 18:18:30 +020017574 .block_erase = spi_block_erase_d8,
Boris Baykovaa6c3742016-06-11 18:29:01 +020017575 }, {
17576 .eraseblocks = { {32 * 1024 * 1024, 1} },
17577 .block_erase = spi_block_erase_60,
17578 }, {
17579 .eraseblocks = { {32 * 1024 * 1024, 1} },
17580 .block_erase = spi_block_erase_c7,
17581 }
17582 },
17583 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17584 .unlock = spi_disable_blockprotect,
17585 .write = spi_chip_write_256,
17586 .read = spi_chip_read,
17587 .voltage = {2700, 3600},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110017588 .reg_bits =
17589 {
17590 .srp = {STATUS1, 7, RW},
17591 .srl = {STATUS2, 0, RW},
17592 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}},
17593 .tb = {STATUS1, 6, RW},
17594 .cmp = {STATUS2, 6, RW},
17595 },
17596 .decode_range = decode_range_spi25,
Boris Baykovaa6c3742016-06-11 18:29:01 +020017597 },
17598
17599 {
17600 .vendor = "Winbond",
Nico Huber5215eab2022-05-23 15:13:07 +020017601 .name = "W25Q256JV_Q",
17602 .bustype = BUS_SPI,
17603 .manufacture_id = WINBOND_NEX_ID,
17604 .model_id = WINBOND_NEX_W25Q256_V,
17605 .total_size = 32768,
17606 .page_size = 256,
17607 /* supports SFDP */
17608 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17609 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA | FEATURE_WRSR2,
17610 .tested = TEST_UNTESTED,
17611 .probe = probe_spi_rdid,
17612 .probe_timing = TIMING_ZERO,
17613 .block_erasers =
17614 {
17615 {
17616 .eraseblocks = { {4 * 1024, 8192} },
17617 .block_erase = spi_block_erase_21,
17618 }, {
17619 .eraseblocks = { {4 * 1024, 8192} },
17620 .block_erase = spi_block_erase_20,
17621 }, {
17622 .eraseblocks = { {32 * 1024, 1024} },
17623 .block_erase = spi_block_erase_52,
17624 }, {
17625 .eraseblocks = { {64 * 1024, 512} },
17626 .block_erase = spi_block_erase_dc,
17627 }, {
17628 .eraseblocks = { {64 * 1024, 512} },
17629 .block_erase = spi_block_erase_d8,
17630 }, {
17631 .eraseblocks = { {32 * 1024 * 1024, 1} },
17632 .block_erase = spi_block_erase_60,
17633 }, {
17634 .eraseblocks = { {32 * 1024 * 1024, 1} },
17635 .block_erase = spi_block_erase_c7,
17636 }
17637 },
17638 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17639 .unlock = spi_disable_blockprotect,
17640 .write = spi_chip_write_256,
17641 .read = spi_chip_read,
17642 .voltage = {2700, 3600},
17643 .reg_bits =
17644 {
17645 .srp = {STATUS1, 7, RW},
17646 .srl = {STATUS2, 0, RW},
17647 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}},
17648 .tb = {STATUS1, 6, RW},
17649 .cmp = {STATUS2, 6, RW},
17650 },
17651 .decode_range = decode_range_spi25,
17652 },
17653
17654 {
17655 .vendor = "Winbond",
David Hendricks49876792018-10-27 20:19:42 +000017656 .name = "W25Q256JV_M",
17657 .bustype = BUS_SPI,
17658 .manufacture_id = WINBOND_NEX_ID,
17659 .model_id = WINBOND_NEX_W25Q256JV_M,
17660 .total_size = 32768,
17661 .page_size = 256,
17662 /* supports SFDP */
17663 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110017664 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA | FEATURE_WRSR2,
David Hendricks49876792018-10-27 20:19:42 +000017665 .tested = TEST_OK_PREW,
17666 .probe = probe_spi_rdid,
17667 .probe_timing = TIMING_ZERO,
17668 .block_erasers =
17669 {
17670 {
17671 .eraseblocks = { {4 * 1024, 8192} },
17672 .block_erase = spi_block_erase_21,
17673 }, {
17674 .eraseblocks = { {4 * 1024, 8192} },
17675 .block_erase = spi_block_erase_20,
17676 }, {
17677 .eraseblocks = { {32 * 1024, 1024} },
17678 .block_erase = spi_block_erase_52,
17679 }, {
17680 .eraseblocks = { {64 * 1024, 512} },
17681 .block_erase = spi_block_erase_dc,
17682 }, {
17683 .eraseblocks = { {64 * 1024, 512} },
17684 .block_erase = spi_block_erase_d8,
17685 }, {
17686 .eraseblocks = { {32 * 1024 * 1024, 1} },
17687 .block_erase = spi_block_erase_60,
17688 }, {
17689 .eraseblocks = { {32 * 1024 * 1024, 1} },
17690 .block_erase = spi_block_erase_c7,
17691 }
17692 },
17693 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17694 .unlock = spi_disable_blockprotect,
17695 .write = spi_chip_write_256,
17696 .read = spi_chip_read,
17697 .voltage = {2700, 3600},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110017698 .reg_bits =
17699 {
17700 .srp = {STATUS1, 7, RW},
17701 .srl = {STATUS2, 0, RW},
17702 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}},
17703 .tb = {STATUS1, 6, RW},
17704 .cmp = {STATUS2, 6, RW},
17705 },
17706 .decode_range = decode_range_spi25,
David Hendricks49876792018-10-27 20:19:42 +000017707 },
17708
17709 {
17710 .vendor = "Winbond",
Patrick Rudolph8f5bd982020-08-26 09:15:53 +020017711 .name = "W25Q256JW",
el-coderon01209852020-04-29 12:12:53 +020017712 .bustype = BUS_SPI,
17713 .manufacture_id = WINBOND_NEX_ID,
17714 .model_id = WINBOND_NEX_W25Q256_W,
17715 .total_size = 32768,
17716 .page_size = 256,
17717 /* supports SFDP */
17718 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Patrick Rudolph8f5bd982020-08-26 09:15:53 +020017719 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
el-coderon01209852020-04-29 12:12:53 +020017720 .tested = TEST_OK_PREW,
17721 .probe = probe_spi_rdid,
17722 .probe_timing = TIMING_ZERO,
17723 .block_erasers =
17724 {
17725 {
17726 .eraseblocks = { {4 * 1024, 8192} },
Patrick Rudolph8f5bd982020-08-26 09:15:53 +020017727 .block_erase = spi_block_erase_21,
17728 }, {
17729 .eraseblocks = { {4 * 1024, 8192} },
el-coderon01209852020-04-29 12:12:53 +020017730 .block_erase = spi_block_erase_20,
17731 }, {
17732 .eraseblocks = { {32 * 1024, 1024} },
17733 .block_erase = spi_block_erase_52,
17734 }, {
17735 .eraseblocks = { {64 * 1024, 512} },
Patrick Rudolph8f5bd982020-08-26 09:15:53 +020017736 .block_erase = spi_block_erase_dc,
17737 }, {
17738 .eraseblocks = { {64 * 1024, 512} },
el-coderon01209852020-04-29 12:12:53 +020017739 .block_erase = spi_block_erase_d8,
17740 }, {
17741 .eraseblocks = { {32 * 1024 * 1024, 1} },
17742 .block_erase = spi_block_erase_60,
17743 }, {
17744 .eraseblocks = { {32 * 1024 * 1024, 1} },
17745 .block_erase = spi_block_erase_c7,
17746 }
17747 },
17748 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17749 .unlock = spi_disable_blockprotect,
17750 .write = spi_chip_write_256,
17751 .read = spi_chip_read,
17752 .voltage = {1650, 1950},
17753 },
17754
17755 {
17756 .vendor = "Winbond",
David Hendricks31532602020-08-16 17:14:56 -070017757 .name = "W25Q256JW_DTR",
17758 .bustype = BUS_SPI,
17759 .manufacture_id = WINBOND_NEX_ID,
17760 .model_id = WINBOND_NEX_W25Q256_DTR,
17761 .total_size = 32768,
17762 .page_size = 256,
17763 /* supports SFDP */
17764 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
David Hendricks31532602020-08-16 17:14:56 -070017765 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
17766 .tested = TEST_OK_PREW,
17767 .probe = probe_spi_rdid,
17768 .probe_timing = TIMING_ZERO,
17769 .block_erasers =
17770 {
17771 {
17772 .eraseblocks = { {4 * 1024, 8192} },
17773 .block_erase = spi_block_erase_21,
17774 }, {
17775 .eraseblocks = { {4 * 1024, 8192} },
17776 .block_erase = spi_block_erase_20,
17777 }, {
17778 .eraseblocks = { {32 * 1024, 1024} },
17779 .block_erase = spi_block_erase_52,
17780 }, {
17781 .eraseblocks = { {64 * 1024, 512} },
17782 .block_erase = spi_block_erase_dc,
17783 }, {
17784 .eraseblocks = { {64 * 1024, 512} },
17785 .block_erase = spi_block_erase_d8,
17786 }, {
17787 .eraseblocks = { {32 * 1024 * 1024, 1} },
17788 .block_erase = spi_block_erase_60,
17789 }, {
17790 .eraseblocks = { {32 * 1024 * 1024, 1} },
17791 .block_erase = spi_block_erase_c7,
17792 }
17793 },
17794 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17795 .unlock = spi_disable_blockprotect,
17796 .write = spi_chip_write_256,
17797 .read = spi_chip_read,
17798 .voltage = {1700, 1950},
17799 },
17800
17801 {
17802 .vendor = "Winbond",
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030017803 .name = "W25Q32BV/W25Q32CV/W25Q32DV",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017804 .bustype = BUS_SPI,
17805 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017806 .model_id = WINBOND_NEX_W25Q32_V,
17807 .total_size = 4096,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017808 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017809 /* supports SFDP */
17810 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030017811 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_WRSR_EXT2,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017812 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017813 .probe = probe_spi_rdid,
17814 .probe_timing = TIMING_ZERO,
17815 .block_erasers =
17816 {
17817 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017818 .eraseblocks = { {4 * 1024, 1024} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017819 .block_erase = spi_block_erase_20,
17820 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017821 .eraseblocks = { {32 * 1024, 128} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017822 .block_erase = spi_block_erase_52,
17823 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017824 .eraseblocks = { {64 * 1024, 64} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017825 .block_erase = spi_block_erase_d8,
17826 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017827 .eraseblocks = { {4 * 1024 * 1024, 1} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017828 .block_erase = spi_block_erase_60,
17829 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017830 .eraseblocks = { {4 * 1024 * 1024, 1} },
17831 .block_erase = spi_block_erase_c7,
17832 }
17833 },
17834 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17835 .unlock = spi_disable_blockprotect,
17836 .write = spi_chip_write_256,
17837 .read = spi_chip_read,
17838 .voltage = {2700, 3600},
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030017839 .reg_bits =
17840 {
17841 .srp = {STATUS1, 7, RW},
17842 .srl = {STATUS2, 0, RW},
17843 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
17844 .tb = {STATUS1, 5, RW},
17845 .sec = {STATUS1, 6, RW},
17846 .cmp = {STATUS2, 6, RW},
17847 },
17848 .decode_range = decode_range_spi25,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017849 },
17850
17851 {
17852 .vendor = "Winbond",
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030017853 .name = "W25Q32FV",
17854 .bustype = BUS_SPI,
17855 .manufacture_id = WINBOND_NEX_ID,
17856 .model_id = WINBOND_NEX_W25Q32_V,
17857 .total_size = 4096,
17858 .page_size = 256,
17859 /* supports SFDP */
17860 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17861 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI |
17862 FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3,
17863 .tested = TEST_OK_PREW,
17864 .probe = probe_spi_rdid,
17865 .probe_timing = TIMING_ZERO,
17866 .block_erasers =
17867 {
17868 {
17869 .eraseblocks = { {4 * 1024, 1024} },
17870 .block_erase = spi_block_erase_20,
17871 }, {
17872 .eraseblocks = { {32 * 1024, 128} },
17873 .block_erase = spi_block_erase_52,
17874 }, {
17875 .eraseblocks = { {64 * 1024, 64} },
17876 .block_erase = spi_block_erase_d8,
17877 }, {
17878 .eraseblocks = { {4 * 1024 * 1024, 1} },
17879 .block_erase = spi_block_erase_60,
17880 }, {
17881 .eraseblocks = { {4 * 1024 * 1024, 1} },
17882 .block_erase = spi_block_erase_c7,
17883 }
17884 },
17885 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17886 .unlock = spi_disable_blockprotect,
17887 .write = spi_chip_write_256,
17888 .read = spi_chip_read,
17889 .voltage = {2700, 3600},
17890 .reg_bits =
17891 {
17892 .srp = {STATUS1, 7, RW},
17893 .srl = {STATUS2, 0, RW},
17894 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
17895 .tb = {STATUS1, 5, RW},
17896 .sec = {STATUS1, 6, RW},
17897 .cmp = {STATUS2, 6, RW},
17898 .wps = {STATUS3, 2, RW},
17899 },
17900 .decode_range = decode_range_spi25,
17901 },
17902
17903 {
17904 .vendor = "Winbond",
17905 .name = "W25Q32JV",
17906 .bustype = BUS_SPI,
17907 .manufacture_id = WINBOND_NEX_ID,
17908 .model_id = WINBOND_NEX_W25Q32_V,
17909 .total_size = 4096,
17910 .page_size = 256,
17911 /* supports SFDP */
17912 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17913 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP |
17914 FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3,
17915 .tested = TEST_OK_PREW,
17916 .probe = probe_spi_rdid,
17917 .probe_timing = TIMING_ZERO,
17918 .block_erasers =
17919 {
17920 {
17921 .eraseblocks = { {4 * 1024, 1024} },
17922 .block_erase = spi_block_erase_20,
17923 }, {
17924 .eraseblocks = { {32 * 1024, 128} },
17925 .block_erase = spi_block_erase_52,
17926 }, {
17927 .eraseblocks = { {64 * 1024, 64} },
17928 .block_erase = spi_block_erase_d8,
17929 }, {
17930 .eraseblocks = { {4 * 1024 * 1024, 1} },
17931 .block_erase = spi_block_erase_60,
17932 }, {
17933 .eraseblocks = { {4 * 1024 * 1024, 1} },
17934 .block_erase = spi_block_erase_c7,
17935 }
17936 },
17937 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17938 .unlock = spi_disable_blockprotect,
17939 .write = spi_chip_write_256,
17940 .read = spi_chip_read,
17941 .voltage = {2700, 3600},
17942 .reg_bits =
17943 {
17944 .srp = {STATUS1, 7, RW},
17945 .srl = {STATUS2, 0, RW},
17946 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
17947 .tb = {STATUS1, 5, RW},
17948 .sec = {STATUS1, 6, RW},
17949 .cmp = {STATUS2, 6, RW},
17950 .wps = {STATUS3, 2, RW},
17951 },
17952 .decode_range = decode_range_spi25,
17953 },
17954
17955 {
17956 .vendor = "Winbond",
17957 .name = "W25Q32BW/W25Q32CW/W25Q32DW",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017958 .bustype = BUS_SPI,
17959 .manufacture_id = WINBOND_NEX_ID,
17960 .model_id = WINBOND_NEX_W25Q32_W,
17961 .total_size = 4096,
17962 .page_size = 256,
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030017963 /* OTP: 1024B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Alan Green1f9cc7d2019-07-01 11:10:45 +100017964 /* QPI enable 0x38, disable 0xFF */
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030017965 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_WRSR_EXT2,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017966 .tested = TEST_OK_PREW,
17967 .probe = probe_spi_rdid,
17968 .probe_timing = TIMING_ZERO,
17969 .block_erasers =
17970 {
17971 {
17972 .eraseblocks = { {4 * 1024, 1024} },
17973 .block_erase = spi_block_erase_20,
17974 }, {
17975 .eraseblocks = { {32 * 1024, 128} },
17976 .block_erase = spi_block_erase_52,
17977 }, {
17978 .eraseblocks = { {64 * 1024, 64} },
17979 .block_erase = spi_block_erase_d8,
17980 }, {
17981 .eraseblocks = { {4 * 1024 * 1024, 1} },
17982 .block_erase = spi_block_erase_60,
17983 }, {
17984 .eraseblocks = { {4 * 1024 * 1024, 1} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017985 .block_erase = spi_block_erase_c7,
17986 }
17987 },
17988 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17989 .unlock = spi_disable_blockprotect,
17990 .write = spi_chip_write_256,
17991 .read = spi_chip_read,
17992 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030017993 .reg_bits =
17994 {
17995 .srp = {STATUS1, 7, RW},
17996 .srl = {STATUS2, 0, RW},
17997 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
17998 .tb = {STATUS1, 5, RW},
17999 .sec = {STATUS1, 6, RW},
18000 .cmp = {STATUS2, 6, RW},
18001 },
18002 .decode_range = decode_range_spi25,
18003 },
18004
18005 {
18006 .vendor = "Winbond",
18007 .name = "W25Q32FW",
18008 .bustype = BUS_SPI,
18009 .manufacture_id = WINBOND_NEX_ID,
18010 .model_id = WINBOND_NEX_W25Q32_W,
18011 .total_size = 4096,
18012 .page_size = 256,
18013 /* OTP: 768B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
18014 /* QPI enable 0x38, disable 0xFF */
18015 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI |
18016 FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3,
18017 .tested = TEST_OK_PREW,
18018 .probe = probe_spi_rdid,
18019 .probe_timing = TIMING_ZERO,
18020 .block_erasers =
18021 {
18022 {
18023 .eraseblocks = { {4 * 1024, 1024} },
18024 .block_erase = spi_block_erase_20,
18025 }, {
18026 .eraseblocks = { {32 * 1024, 128} },
18027 .block_erase = spi_block_erase_52,
18028 }, {
18029 .eraseblocks = { {64 * 1024, 64} },
18030 .block_erase = spi_block_erase_d8,
18031 }, {
18032 .eraseblocks = { {4 * 1024 * 1024, 1} },
18033 .block_erase = spi_block_erase_60,
18034 }, {
18035 .eraseblocks = { {4 * 1024 * 1024, 1} },
18036 .block_erase = spi_block_erase_c7,
18037 }
18038 },
18039 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18040 .unlock = spi_disable_blockprotect,
18041 .write = spi_chip_write_256,
18042 .read = spi_chip_read,
18043 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
18044 .reg_bits =
18045 {
18046 .srp = {STATUS1, 7, RW},
18047 .srl = {STATUS2, 0, RW},
18048 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
18049 .tb = {STATUS1, 5, RW},
18050 .sec = {STATUS1, 6, RW},
18051 .cmp = {STATUS2, 6, RW},
18052 .wps = {STATUS3, 2, RW},
18053 },
18054 .decode_range = decode_range_spi25,
18055 },
18056
18057 {
18058 .vendor = "Winbond",
18059 .name = "W25Q32JW...Q",
18060 .bustype = BUS_SPI,
18061 .manufacture_id = WINBOND_NEX_ID,
18062 .model_id = WINBOND_NEX_W25Q32_W,
18063 .total_size = 4096,
18064 .page_size = 256,
18065 /* OTP: 768B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
18066 /* QPI enable 0x38, disable 0xFF */
18067 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP |
18068 FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3,
18069 .tested = TEST_OK_PREW,
18070 .probe = probe_spi_rdid,
18071 .probe_timing = TIMING_ZERO,
18072 .block_erasers =
18073 {
18074 {
18075 .eraseblocks = { {4 * 1024, 1024} },
18076 .block_erase = spi_block_erase_20,
18077 }, {
18078 .eraseblocks = { {32 * 1024, 128} },
18079 .block_erase = spi_block_erase_52,
18080 }, {
18081 .eraseblocks = { {64 * 1024, 64} },
18082 .block_erase = spi_block_erase_d8,
18083 }, {
18084 .eraseblocks = { {4 * 1024 * 1024, 1} },
18085 .block_erase = spi_block_erase_60,
18086 }, {
18087 .eraseblocks = { {4 * 1024 * 1024, 1} },
18088 .block_erase = spi_block_erase_c7,
18089 }
18090 },
18091 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18092 .unlock = spi_disable_blockprotect,
18093 .write = spi_chip_write_256,
18094 .read = spi_chip_read,
18095 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
18096 .reg_bits =
18097 {
18098 .srp = {STATUS1, 7, RW},
18099 .srl = {STATUS2, 0, RW},
18100 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
18101 .tb = {STATUS1, 5, RW},
18102 .sec = {STATUS1, 6, RW},
18103 .cmp = {STATUS2, 6, RW},
18104 .wps = {STATUS3, 2, RW},
18105 },
18106 .decode_range = decode_range_spi25,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018107 },
18108
18109 {
18110 .vendor = "Winbond",
Nikolai Artemiev6ae79b12021-05-08 17:31:23 +100018111 .name = "W25Q32JW...M",
18112 .bustype = BUS_SPI,
18113 .manufacture_id = WINBOND_NEX_ID,
18114 .model_id = WINBOND_NEX_W25Q32JW_M,
18115 .total_size = 4096,
18116 .page_size = 256,
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018117 /* OTP: 768B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
18118 /* QPI enable 0x38, disable 0xFF */
18119 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP |
18120 FEATURE_WRSR2 | FEATURE_WRSR3 | FEATURE_WRSR_EXT2,
Nikolai Artemiev6ae79b12021-05-08 17:31:23 +100018121 .tested = TEST_OK_PREW,
18122 .probe = probe_spi_rdid,
18123 .probe_timing = TIMING_ZERO,
18124 .block_erasers =
18125 {
18126 {
18127 .eraseblocks = { {4 * 1024, 1024} },
18128 .block_erase = spi_block_erase_20,
18129 }, {
18130 .eraseblocks = { {32 * 1024, 128} },
18131 .block_erase = spi_block_erase_52,
18132 }, {
18133 .eraseblocks = { {64 * 1024, 64} },
18134 .block_erase = spi_block_erase_d8,
18135 }, {
18136 .eraseblocks = { {4 * 1024 * 1024, 1} },
18137 .block_erase = spi_block_erase_60,
18138 }, {
18139 .eraseblocks = { {4 * 1024 * 1024, 1} },
18140 .block_erase = spi_block_erase_c7,
18141 }
18142 },
18143 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
18144 .unlock = spi_disable_blockprotect_bp2_srwd,
18145 .write = spi_chip_write_256,
18146 .read = spi_chip_read,
18147 .voltage = {1700, 1950},
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018148 .reg_bits =
18149 {
18150 .srp = {STATUS1, 7, RW},
18151 .srl = {STATUS2, 0, RW},
18152 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
18153 .tb = {STATUS1, 5, RW},
18154 .sec = {STATUS1, 6, RW},
18155 .cmp = {STATUS2, 6, RW},
18156 .wps = {STATUS3, 2, RW},
18157 },
18158 .decode_range = decode_range_spi25,
Nikolai Artemiev6ae79b12021-05-08 17:31:23 +100018159 },
18160
18161 {
18162 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018163 .name = "W25Q40.V",
18164 .bustype = BUS_SPI,
18165 .manufacture_id = WINBOND_NEX_ID,
18166 .model_id = WINBOND_NEX_W25Q40_V,
18167 .total_size = 512,
18168 .page_size = 256,
18169 /* supports SFDP */
18170 /* OTP: 756B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
18171 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
18172 .tested = TEST_OK_PREW,
18173 .probe = probe_spi_rdid,
18174 .probe_timing = TIMING_ZERO,
18175 .block_erasers =
18176 {
18177 {
18178 .eraseblocks = { {4 * 1024, 128} },
18179 .block_erase = spi_block_erase_20,
18180 }, {
18181 .eraseblocks = { {32 * 1024, 16} },
18182 .block_erase = spi_block_erase_52,
18183 }, {
18184 .eraseblocks = { {64 * 1024, 8} },
18185 .block_erase = spi_block_erase_d8,
18186 }, {
18187 .eraseblocks = { {512 * 1024, 1} },
18188 .block_erase = spi_block_erase_60,
18189 }, {
18190 .eraseblocks = { {512 * 1024, 1} },
18191 .block_erase = spi_block_erase_c7,
18192 }
18193 },
18194 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18195 .unlock = spi_disable_blockprotect,
18196 .write = spi_chip_write_256, /* Multi I/O supported */
18197 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
18198 .voltage = {2700, 3600},
18199 },
18200
18201 {
18202 .vendor = "Winbond",
Nico Huber25683572018-03-30 13:50:13 +020018203 .name = "W25Q40BW",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018204 .bustype = BUS_SPI,
18205 .manufacture_id = WINBOND_NEX_ID,
Nico Huber25683572018-03-30 13:50:13 +020018206 .model_id = WINBOND_NEX_W25Q40BW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018207 .total_size = 512,
18208 .page_size = 256,
18209 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
18210 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Angel Pons3164a0c2018-09-30 20:26:06 +020018211 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018212 .probe = probe_spi_rdid,
18213 .probe_timing = TIMING_ZERO,
18214 .block_erasers =
18215 {
18216 {
18217 .eraseblocks = { {4 * 1024, 128} },
18218 .block_erase = spi_block_erase_20,
18219 }, {
18220 .eraseblocks = { {32 * 1024, 16} },
18221 .block_erase = spi_block_erase_52,
18222 }, {
18223 .eraseblocks = { {64 * 1024, 8} },
18224 .block_erase = spi_block_erase_d8,
18225 }, {
18226 .eraseblocks = { {512 * 1024, 1} },
18227 .block_erase = spi_block_erase_60,
18228 }, {
18229 .eraseblocks = { {512 * 1024, 1} },
18230 .block_erase = spi_block_erase_c7,
18231 }
18232 },
18233 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18234 .unlock = spi_disable_blockprotect,
18235 .write = spi_chip_write_256,
18236 .read = spi_chip_read,
18237 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
18238 },
18239
18240 {
18241 .vendor = "Winbond",
Nico Huber25683572018-03-30 13:50:13 +020018242 .name = "W25Q40EW",
18243 .bustype = BUS_SPI,
18244 .manufacture_id = WINBOND_NEX_ID,
18245 .model_id = WINBOND_NEX_W25Q40EW,
18246 .total_size = 512,
18247 .page_size = 256,
18248 /* OTP: 3*256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
18249 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Alan Green07b8a172019-09-23 16:47:05 +100018250 .tested = TEST_OK_PREW,
Nico Huber25683572018-03-30 13:50:13 +020018251 .probe = probe_spi_rdid,
18252 .probe_timing = TIMING_ZERO,
18253 .block_erasers =
18254 {
18255 {
18256 .eraseblocks = { {4 * 1024, 128} },
18257 .block_erase = spi_block_erase_20,
18258 }, {
18259 .eraseblocks = { {32 * 1024, 16} },
18260 .block_erase = spi_block_erase_52,
18261 }, {
18262 .eraseblocks = { {64 * 1024, 8} },
18263 .block_erase = spi_block_erase_d8,
18264 }, {
18265 .eraseblocks = { {512 * 1024, 1} },
18266 .block_erase = spi_block_erase_60,
18267 }, {
18268 .eraseblocks = { {512 * 1024, 1} },
18269 .block_erase = spi_block_erase_c7,
18270 }
18271 },
18272 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18273 .unlock = spi_disable_blockprotect,
18274 .write = spi_chip_write_256,
18275 .read = spi_chip_read,
18276 .voltage = {1650, 1950}, /* Fast read (0x0B) and multi I/O supported */
18277 },
18278
Stanislav Sedovf5775442018-03-07 14:16:51 -080018279 {
18280 .vendor = "Winbond",
Joel Stanley55439612019-07-27 19:25:35 +093018281 .name = "W25Q512JV",
18282 .bustype = BUS_SPI,
18283 .manufacture_id = WINBOND_NEX_ID,
18284 .model_id = WINBOND_NEX_W25Q512JV,
18285 .total_size = 64 * 1024,
18286 .page_size = 256,
18287 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
18288 .tested = TEST_OK_PREW,
18289 .probe = probe_spi_rdid,
18290 .probe_timing = TIMING_ZERO,
18291 .block_erasers =
18292 {
18293 {
18294 .eraseblocks = { {4 * 1024, 16384} },
18295 .block_erase = spi_block_erase_21,
18296 }, {
18297 .eraseblocks = { {4 * 1024, 16384} },
18298 .block_erase = spi_block_erase_20,
18299 }, {
18300 .eraseblocks = { {32 * 1024, 2048} },
18301 .block_erase = spi_block_erase_52,
18302 }, {
18303 .eraseblocks = { {64 * 1024, 1024} },
18304 .block_erase = spi_block_erase_dc,
18305 }, {
18306 .eraseblocks = { {64 * 1024, 1024} },
18307 .block_erase = spi_block_erase_d8,
18308 }, {
18309 .eraseblocks = { {64 * 1024 * 1024, 1} },
18310 .block_erase = spi_block_erase_60,
18311 }, {
18312 .eraseblocks = { {64 * 1024 * 1024, 1} },
18313 .block_erase = spi_block_erase_c7,
18314 }
18315 },
18316 .printlock = spi_prettyprint_status_register_plain,
18317 .unlock = spi_disable_blockprotect,
18318 .write = spi_chip_write_256,
18319 .read = spi_chip_read,
18320 .voltage = {2700, 3600},
18321 },
18322
18323 {
Felix Singer3c9bdb92022-12-15 23:30:16 +010018324 .vendor = "Winbond",
18325 .name = "W25Q512NW-IM",
18326 .bustype = BUS_SPI,
18327 .manufacture_id = WINBOND_NEX_ID,
18328 .model_id = WINBOND_NEX_W25Q512NW_IM,
18329 .total_size = 64 * 1024,
18330 .page_size = 256,
Subrata Banikf5bffd92022-12-14 12:30:43 +053018331 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA | FEATURE_WRSR2
18332 | FEATURE_WRSR3,
18333 .tested = TEST_OK_PREWB,
Felix Singer3c9bdb92022-12-15 23:30:16 +010018334 .probe = probe_spi_rdid,
18335 .probe_timing = TIMING_ZERO,
18336 .block_erasers =
Atul Dhudase2502dbd2021-09-21 10:02:20 +053018337 {
Felix Singer3c9bdb92022-12-15 23:30:16 +010018338 {
18339 .eraseblocks = { {4 * 1024, 16384} },
18340 .block_erase = spi_block_erase_21,
18341 }, {
18342 .eraseblocks = { {4 * 1024, 16384} },
18343 .block_erase = spi_block_erase_20,
18344 }, {
18345 .eraseblocks = { {32 * 1024, 2048} },
18346 .block_erase = spi_block_erase_52,
18347 }, {
18348 .eraseblocks = { {64 * 1024, 1024} },
18349 .block_erase = spi_block_erase_dc,
18350 }, {
18351 .eraseblocks = { {64 * 1024, 1024} },
18352 .block_erase = spi_block_erase_d8,
18353 }, {
18354 .eraseblocks = { {64 * 1024 * 1024, 1} },
18355 .block_erase = spi_block_erase_60,
18356 }, {
18357 .eraseblocks = { {64 * 1024 * 1024, 1} },
18358 .block_erase = spi_block_erase_c7,
18359 }
18360 },
18361 .unlock = spi_disable_blockprotect,
18362 .write = spi_chip_write_256,
18363 .read = spi_chip_read,
18364 .voltage = {1650, 1950},
Subrata Banikf5bffd92022-12-14 12:30:43 +053018365 .reg_bits =
18366 {
18367 .srp = {STATUS1, 7, RW},
18368 .srl = {STATUS2, 0, RW},
18369 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}},
18370 .tb = {STATUS1, 6, RW},
18371 .cmp = {STATUS2, 6, RW},
18372 .wps = {STATUS3, 2, RW},
18373 },
18374 .decode_range = decode_range_spi25,
Atul Dhudase2502dbd2021-09-21 10:02:20 +053018375 },
18376
18377 {
Joel Stanley55439612019-07-27 19:25:35 +093018378 .vendor = "Winbond",
Sergii Dmytrukd1af3072021-11-08 00:00:43 +020018379 .name = "W25Q64BV/W25Q64CV/W25Q64FV",
Stanislav Sedovf5775442018-03-07 14:16:51 -080018380 .bustype = BUS_SPI,
18381 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018382 .model_id = WINBOND_NEX_W25Q64_V,
18383 .total_size = 8192,
Stanislav Sedovf5775442018-03-07 14:16:51 -080018384 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018385 /* supports SFDP */
18386 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Sergii Dmytrukd1af3072021-11-08 00:00:43 +020018387 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_WRSR2,
Sergii Dmytrukc74eac22022-10-06 18:17:58 +030018388 .tested = TEST_OK_PREWB,
Stanislav Sedovf5775442018-03-07 14:16:51 -080018389 .probe = probe_spi_rdid,
18390 .probe_timing = TIMING_ZERO,
18391 .block_erasers =
18392 {
18393 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100018394 .eraseblocks = { {4 * 1024, 2048} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080018395 .block_erase = spi_block_erase_20,
18396 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100018397 .eraseblocks = { {32 * 1024, 256} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080018398 .block_erase = spi_block_erase_52,
18399 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100018400 .eraseblocks = { {64 * 1024, 128} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080018401 .block_erase = spi_block_erase_d8,
18402 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100018403 .eraseblocks = { {8 * 1024 * 1024, 1} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080018404 .block_erase = spi_block_erase_60,
18405 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100018406 .eraseblocks = { {8 * 1024 * 1024, 1} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080018407 .block_erase = spi_block_erase_c7,
18408 }
18409 },
18410 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18411 .unlock = spi_disable_blockprotect,
18412 .write = spi_chip_write_256,
18413 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018414 .voltage = {2700, 3600},
Sergii Dmytrukd1af3072021-11-08 00:00:43 +020018415 .reg_bits =
18416 {
18417 .srp = {STATUS1, 7, RW},
18418 .srl = {STATUS2, 0, RW},
18419 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
18420 .tb = {STATUS1, 5, RW},
18421 .sec = {STATUS1, 6, RW},
18422 .cmp = {STATUS2, 6, RW},
18423 },
18424 .decode_range = decode_range_spi25,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018425 },
18426
18427 {
18428 .vendor = "Winbond",
Sergii Dmytrukd1af3072021-11-08 00:00:43 +020018429 .name = "W25Q64JV-.Q",
18430 .bustype = BUS_SPI,
18431 .manufacture_id = WINBOND_NEX_ID,
18432 .model_id = WINBOND_NEX_W25Q64_V,
18433 .total_size = 8192,
18434 .page_size = 256,
18435 /* supports SFDP */
18436 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber3f3c1f32022-05-28 16:48:26 +020018437 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP |
18438 FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3,
Sergii Dmytrukd1af3072021-11-08 00:00:43 +020018439 .tested = TEST_OK_PREW,
18440 .probe = probe_spi_rdid,
18441 .probe_timing = TIMING_ZERO,
18442 .block_erasers =
18443 {
18444 {
18445 .eraseblocks = { {4 * 1024, 2048} },
18446 .block_erase = spi_block_erase_20,
18447 }, {
18448 .eraseblocks = { {32 * 1024, 256} },
18449 .block_erase = spi_block_erase_52,
18450 }, {
18451 .eraseblocks = { {64 * 1024, 128} },
18452 .block_erase = spi_block_erase_d8,
18453 }, {
18454 .eraseblocks = { {8 * 1024 * 1024, 1} },
18455 .block_erase = spi_block_erase_60,
18456 }, {
18457 .eraseblocks = { {8 * 1024 * 1024, 1} },
18458 .block_erase = spi_block_erase_c7,
18459 }
18460 },
18461 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18462 .unlock = spi_disable_blockprotect,
18463 .write = spi_chip_write_256,
18464 .read = spi_chip_read,
18465 .voltage = {2700, 3600},
18466 .reg_bits =
18467 {
18468 .srp = {STATUS1, 7, RW},
18469 .srl = {STATUS2, 0, RW},
18470 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
18471 .tb = {STATUS1, 5, RW},
18472 .sec = {STATUS1, 6, RW},
18473 .cmp = {STATUS2, 6, RW},
18474 .wps = {STATUS3, 2, RW},
18475 },
18476 .decode_range = decode_range_spi25,
18477 },
18478
18479 {
18480 .vendor = "Winbond",
18481 .name = "W25Q64JV-.M",
Simon Buhrow236a38c2021-11-05 11:48:30 +010018482 .bustype = BUS_SPI,
18483 .manufacture_id = WINBOND_NEX_ID,
18484 .model_id = WINBOND_NEX_W25Q64JV,
18485 .total_size = 8192,
18486 .page_size = 256,
18487 /* supports SFDP */
18488 /* QPI enable 0x38 */
18489 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
18490 .tested = TEST_OK_PREW,
18491 .probe = probe_spi_rdid,
18492 .probe_timing = TIMING_ZERO,
18493 .block_erasers =
18494 {
18495 {
18496 .eraseblocks = { {4 * 1024, 2048} },
18497 .block_erase = spi_block_erase_20,
18498 }, {
18499 .eraseblocks = { {32 * 1024, 256} },
18500 .block_erase = spi_block_erase_52,
18501 }, {
18502 .eraseblocks = { {64 * 1024, 128} },
18503 .block_erase = spi_block_erase_d8,
18504 }, {
18505 .eraseblocks = { {8 * 1024 * 1024, 1} },
18506 .block_erase = spi_block_erase_60,
18507 }, {
18508 .eraseblocks = { {8 * 1024 * 1024, 1} },
18509 .block_erase = spi_block_erase_c7,
18510 }
18511 },
18512 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
18513 .unlock = spi_disable_blockprotect_bp2_srwd,
18514 .write = spi_chip_write_256,
18515 .read = spi_chip_read,
18516 .voltage = {2700, 3600},
18517 },
18518
18519 {
18520 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018521 .name = "W25Q64.W",
18522 .bustype = BUS_SPI,
18523 .manufacture_id = WINBOND_NEX_ID,
18524 .model_id = WINBOND_NEX_W25Q64_W,
18525 .total_size = 8192,
18526 .page_size = 256,
18527 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
18528 /* QPI enable 0x38, disable 0xFF */
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110018529 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_WRSR2,
Sergii Dmytrukc74eac22022-10-06 18:17:58 +030018530 .tested = TEST_OK_PREWB,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018531 .probe = probe_spi_rdid,
18532 .probe_timing = TIMING_ZERO,
18533 .block_erasers =
18534 {
18535 {
18536 .eraseblocks = { {4 * 1024, 2048} },
18537 .block_erase = spi_block_erase_20,
18538 }, {
18539 .eraseblocks = { {32 * 1024, 256} },
18540 .block_erase = spi_block_erase_52,
18541 }, {
18542 .eraseblocks = { {64 * 1024, 128} },
18543 .block_erase = spi_block_erase_d8,
18544 }, {
18545 .eraseblocks = { {8 * 1024 * 1024, 1} },
18546 .block_erase = spi_block_erase_60,
18547 }, {
18548 .eraseblocks = { {8 * 1024 * 1024, 1} },
18549 .block_erase = spi_block_erase_c7,
18550 }
18551 },
18552 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18553 .unlock = spi_disable_blockprotect,
18554 .write = spi_chip_write_256,
18555 .read = spi_chip_read,
18556 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110018557 .reg_bits =
18558 {
18559 .srp = {STATUS1, 7, RW},
18560 .srl = {STATUS2, 0, RW},
18561 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
18562 .tb = {STATUS1, 5, RW},
18563 .sec = {STATUS1, 6, RW},
18564 .cmp = {STATUS2, 6, RW},
18565 },
18566 .decode_range = decode_range_spi25,
Antony Rheneus0fbba982011-05-26 14:28:51 +000018567 },
18568
18569 {
18570 .vendor = "Winbond",
Nikolai Artemiev5fa05052021-05-14 15:26:47 +100018571 .name = "W25Q64JW...M",
Scott Chao1bbc5012020-04-08 22:10:50 +080018572 .bustype = BUS_SPI,
18573 .manufacture_id = WINBOND_NEX_ID,
Nikolai Artemiev5fa05052021-05-14 15:26:47 +100018574 .model_id = WINBOND_NEX_W25Q64JW_M,
Scott Chao1bbc5012020-04-08 22:10:50 +080018575 .total_size = 8192,
18576 .page_size = 256,
18577 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
18578 /* QPI enable 0x38, disable 0xFF */
Evan Benn29c8b5d2022-09-13 16:01:10 +100018579 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_WRSR2 | FEATURE_WRSR3,
Scott Chao1bbc5012020-04-08 22:10:50 +080018580 .tested = TEST_OK_PREW,
18581 .probe = probe_spi_rdid,
18582 .probe_timing = TIMING_ZERO,
18583 .block_erasers =
18584 {
18585 {
18586 .eraseblocks = { {4 * 1024, 2048} },
18587 .block_erase = spi_block_erase_20,
18588 }, {
18589 .eraseblocks = { {32 * 1024, 256} },
18590 .block_erase = spi_block_erase_52,
18591 }, {
18592 .eraseblocks = { {64 * 1024, 128} },
18593 .block_erase = spi_block_erase_d8,
18594 }, {
18595 .eraseblocks = { {8 * 1024 * 1024, 1} },
18596 .block_erase = spi_block_erase_60,
18597 }, {
18598 .eraseblocks = { {8 * 1024 * 1024, 1} },
18599 .block_erase = spi_block_erase_c7,
18600 }
18601 },
18602 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18603 .unlock = spi_disable_blockprotect,
18604 .write = spi_chip_write_256,
18605 .read = spi_chip_read,
18606 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
Evan Benn29c8b5d2022-09-13 16:01:10 +100018607 .reg_bits =
18608 {
18609 .srp = {STATUS1, 7, RW},
18610 .srl = {STATUS2, 0, RW},
18611 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
18612 .tb = {STATUS1, 5, RW},
18613 .sec = {STATUS1, 6, RW},
18614 .cmp = {STATUS2, 6, RW},
18615 .wps = {STATUS3, 2, RW},
18616 },
18617 .decode_range = decode_range_spi25,
Scott Chao1bbc5012020-04-08 22:10:50 +080018618 },
18619
18620 {
18621 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018622 .name = "W25Q80.V",
Nico Huber70eed9f2017-04-24 22:19:27 +020018623 .bustype = BUS_SPI,
18624 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018625 .model_id = WINBOND_NEX_W25Q80_V,
18626 .total_size = 1024,
Nico Huber70eed9f2017-04-24 22:19:27 +020018627 .page_size = 256,
18628 /* supports SFDP */
18629 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Alan Green1f9cc7d2019-07-01 11:10:45 +100018630 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks48729d32017-12-08 14:44:07 -080018631 .tested = TEST_OK_PREW,
Nico Huber70eed9f2017-04-24 22:19:27 +020018632 .probe = probe_spi_rdid,
18633 .probe_timing = TIMING_ZERO,
18634 .block_erasers =
18635 {
18636 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100018637 .eraseblocks = { {4 * 1024, 256} },
Nico Huber70eed9f2017-04-24 22:19:27 +020018638 .block_erase = spi_block_erase_20,
18639 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100018640 .eraseblocks = { {32 * 1024, 32} },
Nico Huber70eed9f2017-04-24 22:19:27 +020018641 .block_erase = spi_block_erase_52,
18642 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100018643 .eraseblocks = { {64 * 1024, 16} },
Nico Huber70eed9f2017-04-24 22:19:27 +020018644 .block_erase = spi_block_erase_d8,
18645 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100018646 .eraseblocks = { {1024 * 1024, 1} },
Nico Huber70eed9f2017-04-24 22:19:27 +020018647 .block_erase = spi_block_erase_60,
18648 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100018649 .eraseblocks = { {1024 * 1024, 1} },
Nico Huber70eed9f2017-04-24 22:19:27 +020018650 .block_erase = spi_block_erase_c7,
18651 }
18652 },
18653 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18654 .unlock = spi_disable_blockprotect,
18655 .write = spi_chip_write_256,
18656 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018657 .voltage = {2700, 3600},
18658 },
18659
18660 {
18661 .vendor = "Winbond",
18662 .name = "W25Q80BW",
18663 .bustype = BUS_SPI,
18664 .manufacture_id = WINBOND_NEX_ID,
18665 .model_id = WINBOND_NEX_W25Q80BW,
18666 .total_size = 1024,
18667 .page_size = 256,
18668 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
18669 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
18670 .tested = TEST_OK_PREW,
18671 .probe = probe_spi_rdid,
18672 .probe_timing = TIMING_ZERO,
18673 .block_erasers =
18674 {
18675 {
18676 .eraseblocks = { {4 * 1024, 256} },
18677 .block_erase = spi_block_erase_20,
18678 }, {
18679 .eraseblocks = { {32 * 1024, 32} },
18680 .block_erase = spi_block_erase_52,
18681 }, {
18682 .eraseblocks = { {64 * 1024, 16} },
18683 .block_erase = spi_block_erase_d8,
18684 }, {
18685 .eraseblocks = { {1 * 1024 * 1024, 1} },
18686 .block_erase = spi_block_erase_60,
18687 }, {
18688 .eraseblocks = { {1 * 1024 * 1024, 1} },
18689 .block_erase = spi_block_erase_c7,
18690 }
18691 },
18692 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18693 .unlock = spi_disable_blockprotect,
18694 .write = spi_chip_write_256,
18695 .read = spi_chip_read,
18696 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
18697 },
18698
18699 {
18700 .vendor = "Winbond",
18701 .name = "W25Q80EW",
18702 .bustype = BUS_SPI,
18703 .manufacture_id = WINBOND_NEX_ID,
18704 .model_id = WINBOND_NEX_W25Q80EW,
18705 .total_size = 1024,
18706 .page_size = 256,
18707 /* OTP: 3*256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
18708 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
18709 .tested = TEST_OK_PREW,
18710 .probe = probe_spi_rdid,
18711 .probe_timing = TIMING_ZERO,
18712 .block_erasers =
18713 {
18714 {
18715 .eraseblocks = { {4 * 1024, 256} },
18716 .block_erase = spi_block_erase_20,
18717 }, {
18718 .eraseblocks = { {32 * 1024, 32} },
18719 .block_erase = spi_block_erase_52,
18720 }, {
18721 .eraseblocks = { {64 * 1024, 16} },
18722 .block_erase = spi_block_erase_d8,
18723 }, {
18724 .eraseblocks = { {1 * 1024 * 1024, 1} },
18725 .block_erase = spi_block_erase_60,
18726 }, {
18727 .eraseblocks = { {1 * 1024 * 1024, 1} },
18728 .block_erase = spi_block_erase_c7,
18729 }
18730 },
18731 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18732 .unlock = spi_disable_blockprotect,
18733 .write = spi_chip_write_256,
18734 .read = spi_chip_read,
18735 .voltage = {1650, 1950}, /* Fast read (0x0B) and multi I/O supported */
Nico Huber70eed9f2017-04-24 22:19:27 +020018736 },
18737
18738 {
18739 .vendor = "Winbond",
Jacob Appelbaumebbdc022019-09-02 09:10:43 -040018740 .name = "W25X05",
18741 .bustype = BUS_SPI,
18742 .manufacture_id = WINBOND_NEX_ID,
18743 .model_id = WINBOND_NEX_W25X05,
18744 .total_size = 64,
18745 .page_size = 256,
18746 .feature_bits = FEATURE_WRSR_WREN,
18747 .tested = TEST_OK_PREW,
18748 .probe = probe_spi_rdid,
18749 .probe_timing = TIMING_ZERO,
18750 .block_erasers =
18751 {
18752 {
18753 .eraseblocks = { {4 * 1024, 16} },
18754 .block_erase = spi_block_erase_20,
18755 }, {
18756 .eraseblocks = { {32 * 1024, 2} },
18757 .block_erase = spi_block_erase_52,
18758 }, {
18759 .eraseblocks = { {64 * 1024, 1} },
18760 .block_erase = spi_block_erase_d8,
18761 }
18762 },
18763 .printlock = spi_prettyprint_status_register_plain,
18764 .unlock = spi_disable_blockprotect,
18765 .write = spi_chip_write_256,
18766 .read = spi_chip_read,
18767 .voltage = {2300, 3600},
18768 },
18769
18770 {
18771 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000018772 .name = "W25X10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018773 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018774 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018775 .model_id = WINBOND_NEX_W25X10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018776 .total_size = 128,
18777 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000018778 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +000018779 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018780 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000018781 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018782 .block_erasers =
18783 {
18784 {
18785 .eraseblocks = { {4 * 1024, 32} },
18786 .block_erase = spi_block_erase_20,
18787 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018788 .eraseblocks = { {64 * 1024, 2} },
18789 .block_erase = spi_block_erase_d8,
18790 }, {
18791 .eraseblocks = { {128 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018792 .block_erase = spi_block_erase_c7,
18793 }
18794 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000018795 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000018796 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000018797 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018798 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018799 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000018800 },
18801
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018802 {
18803 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000018804 .name = "W25X16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018805 .bustype = BUS_SPI,
Hector Martina721ae22009-07-11 19:39:11 +000018806 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018807 .model_id = WINBOND_NEX_W25X16,
Hector Martina721ae22009-07-11 19:39:11 +000018808 .total_size = 2048,
18809 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000018810 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +000018811 .tested = TEST_OK_PREW,
Hector Martina721ae22009-07-11 19:39:11 +000018812 .probe = probe_spi_rdid,
18813 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018814 .block_erasers =
18815 {
18816 {
18817 .eraseblocks = { {4 * 1024, 512} },
18818 .block_erase = spi_block_erase_20,
18819 }, {
18820 .eraseblocks = { {32 * 1024, 64} },
18821 .block_erase = spi_block_erase_52,
18822 }, {
18823 .eraseblocks = { {64 * 1024, 32} },
18824 .block_erase = spi_block_erase_d8,
18825 }, {
18826 .eraseblocks = { {2 * 1024 * 1024, 1} },
18827 .block_erase = spi_block_erase_60,
18828 }, {
18829 .eraseblocks = { {2 * 1024 * 1024, 1} },
18830 .block_erase = spi_block_erase_c7,
18831 }
18832 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000018833 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000018834 .unlock = spi_disable_blockprotect,
Hector Martina721ae22009-07-11 19:39:11 +000018835 .write = spi_chip_write_256,
18836 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018837 .voltage = {2700, 3600},
Hector Martina721ae22009-07-11 19:39:11 +000018838 },
18839
18840 {
18841 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018842 .name = "W25X20",
18843 .bustype = BUS_SPI,
18844 .manufacture_id = WINBOND_NEX_ID,
18845 .model_id = WINBOND_NEX_W25X20,
18846 .total_size = 256,
18847 .page_size = 256,
18848 .feature_bits = FEATURE_WRSR_WREN,
18849 .tested = TEST_OK_PREW,
18850 .probe = probe_spi_rdid,
18851 .probe_timing = TIMING_ZERO,
18852 .block_erasers =
18853 {
18854 {
18855 .eraseblocks = { {4 * 1024, 64} },
18856 .block_erase = spi_block_erase_20,
18857 }, {
18858 .eraseblocks = { {64 * 1024, 4} },
18859 .block_erase = spi_block_erase_d8,
18860 }, {
18861 .eraseblocks = { {256 * 1024, 1} },
18862 .block_erase = spi_block_erase_c7,
18863 }
18864 },
18865 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18866 .unlock = spi_disable_blockprotect,
18867 .write = spi_chip_write_256,
18868 .read = spi_chip_read,
18869 .voltage = {2700, 3600},
18870 },
18871
18872 {
18873 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000018874 .name = "W25X32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018875 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000018876 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018877 .model_id = WINBOND_NEX_W25X32,
Zheng Bao1db2b752009-11-26 11:05:01 +000018878 .total_size = 4096,
18879 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000018880 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000018881 .tested = TEST_OK_PREW,
Zheng Bao1db2b752009-11-26 11:05:01 +000018882 .probe = probe_spi_rdid,
18883 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018884 .block_erasers =
18885 {
18886 {
18887 .eraseblocks = { {4 * 1024, 1024} },
18888 .block_erase = spi_block_erase_20,
18889 }, {
18890 .eraseblocks = { {32 * 1024, 128} },
18891 .block_erase = spi_block_erase_52,
18892 }, {
18893 .eraseblocks = { {64 * 1024, 64} },
18894 .block_erase = spi_block_erase_d8,
18895 }, {
18896 .eraseblocks = { {4 * 1024 * 1024, 1} },
18897 .block_erase = spi_block_erase_60,
18898 }, {
18899 .eraseblocks = { {4 * 1024 * 1024, 1} },
18900 .block_erase = spi_block_erase_c7,
18901 }
18902 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000018903 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000018904 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000018905 .write = spi_chip_write_256,
18906 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018907 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000018908 },
18909
18910 {
18911 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018912 .name = "W25X40",
18913 .bustype = BUS_SPI,
18914 .manufacture_id = WINBOND_NEX_ID,
18915 .model_id = WINBOND_NEX_W25X40,
18916 .total_size = 512,
18917 .page_size = 256,
18918 .feature_bits = FEATURE_WRSR_WREN,
18919 .tested = TEST_OK_PREW,
18920 .probe = probe_spi_rdid,
18921 .probe_timing = TIMING_ZERO,
18922 .block_erasers =
18923 {
18924 {
18925 .eraseblocks = { {4 * 1024, 128} },
18926 .block_erase = spi_block_erase_20,
18927 }, {
18928 .eraseblocks = { {64 * 1024, 8} },
18929 .block_erase = spi_block_erase_d8,
18930 }, {
18931 .eraseblocks = { {512 * 1024, 1} },
18932 .block_erase = spi_block_erase_c7,
18933 }
18934 },
18935 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18936 .unlock = spi_disable_blockprotect,
18937 .write = spi_chip_write_256,
18938 .read = spi_chip_read,
18939 .voltage = {2700, 3600},
18940 },
18941
18942 {
18943 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000018944 .name = "W25X64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018945 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000018946 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018947 .model_id = WINBOND_NEX_W25X64,
Zheng Bao1db2b752009-11-26 11:05:01 +000018948 .total_size = 8192,
18949 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000018950 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000018951 .tested = TEST_OK_PREW,
Zheng Bao1db2b752009-11-26 11:05:01 +000018952 .probe = probe_spi_rdid,
18953 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018954 .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 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000018973 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000018974 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000018975 .write = spi_chip_write_256,
18976 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018977 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000018978 },
18979
18980 {
Alan Greenfa3fcd32019-06-27 15:41:50 +100018981 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018982 .name = "W25X80",
Alan Greenfa3fcd32019-06-27 15:41:50 +100018983 .bustype = BUS_SPI,
18984 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018985 .model_id = WINBOND_NEX_W25X80,
Alan Greenfa3fcd32019-06-27 15:41:50 +100018986 .total_size = 1024,
18987 .page_size = 256,
18988 .feature_bits = FEATURE_WRSR_WREN,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018989 .tested = TEST_OK_PREW,
Alan Greenfa3fcd32019-06-27 15:41:50 +100018990 .probe = probe_spi_rdid,
18991 .probe_timing = TIMING_ZERO,
18992 .block_erasers =
David Hendricksc9ee0ed2018-02-11 17:40:53 -080018993 {
18994 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100018995 .eraseblocks = { {4 * 1024, 256} },
18996 .block_erase = spi_block_erase_20,
18997 }, {
David Hendricksc9ee0ed2018-02-11 17:40:53 -080018998 .eraseblocks = { {64 * 1024, 16} },
18999 .block_erase = spi_block_erase_d8,
19000 }, {
19001 .eraseblocks = { {1024 * 1024, 1} },
19002 .block_erase = spi_block_erase_c7,
19003 }
19004 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100019005 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19006 .unlock = spi_disable_blockprotect,
19007 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100019008 .read = spi_chip_read,
Alan Greenfa3fcd32019-06-27 15:41:50 +100019009 .voltage = {2700, 3600},
David Hendricksc9ee0ed2018-02-11 17:40:53 -080019010 },
19011
Alan Greenf29ea362019-06-27 17:14:02 +100019012 /* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */
19013 {
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000019014 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000019015 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019016 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019017 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000019018 .model_id = WINBOND_W29C010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019019 .total_size = 128,
19020 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000019021 .feature_bits = FEATURE_LONG_RESET,
David Hendricks567b7b82011-05-18 01:31:03 +000019022 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019023 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000019024 .probe_timing = 10, /* used datasheet for the W29C011A */
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019025 .block_erasers =
19026 {
19027 {
19028 .eraseblocks = { {128 * 1024, 1} },
19029 .block_erase = erase_chip_block_jedec,
19030 }
19031 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019032 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019033 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000019034 },
19035
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019036 {
19037 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100019038 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old",
19039 .bustype = BUS_PARALLEL,
19040 .manufacture_id = WINBOND_ID,
19041 .model_id = WINBOND_W29C010,
19042 .total_size = 128,
19043 .page_size = 128,
19044 .feature_bits = FEATURE_LONG_RESET,
19045 .tested = TEST_OK_PREW,
19046 .probe = probe_w29ee011,
19047 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */
19048 .block_erasers =
19049 {
19050 {
19051 .eraseblocks = { {128 * 1024, 1} },
19052 .block_erase = erase_chip_block_jedec,
19053 }
19054 },
19055 .write = write_jedec,
19056 .read = read_memmapped,
19057 },
19058
19059 {
19060 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000019061 .name = "W29C020(C)/W29C022",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019062 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019063 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000019064 .model_id = WINBOND_W29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019065 .total_size = 256,
19066 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000019067 .feature_bits = FEATURE_LONG_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000019068 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019069 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000019070 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019071 .block_erasers =
19072 {
19073 {
19074 .eraseblocks = { {256 * 1024, 1} },
19075 .block_erase = erase_chip_block_jedec,
19076 }
19077 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019078 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019079 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000019080 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000019081 },
19082
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019083 {
19084 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000019085 .name = "W29C040/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019086 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019087 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000019088 .model_id = WINBOND_W29C040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019089 .total_size = 512,
19090 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000019091 .feature_bits = FEATURE_LONG_RESET,
19092 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019093 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000019094 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019095 .block_erasers =
19096 {
19097 {
19098 .eraseblocks = { {512 * 1024, 1} },
19099 .block_erase = erase_chip_block_jedec,
19100 }
19101 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019102 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019103 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000019104 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000019105 },
19106
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019107 {
19108 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100019109 .name = "W29C512A/W29EE512",
19110 .bustype = BUS_PARALLEL,
19111 .manufacture_id = WINBOND_ID,
19112 .model_id = WINBOND_W29C512A,
19113 .total_size = 64,
19114 .page_size = 128,
19115 .feature_bits = FEATURE_LONG_RESET,
19116 .tested = TEST_OK_PREW,
19117 .probe = probe_jedec,
19118 .probe_timing = 10,
19119 .block_erasers =
19120 {
19121 {
19122 .eraseblocks = { {64 * 1024, 1} },
19123 .block_erase = erase_chip_block_jedec,
19124 }
19125 },
19126 .write = write_jedec,
19127 .read = read_memmapped,
19128 .voltage = {4500, 5500},
19129 },
19130
19131 {
19132 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000019133 .name = "W29GL032CB",
19134 .bustype = BUS_PARALLEL,
19135 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
19136 .model_id = WINBOND_W29GL032CB,
19137 .total_size = 4096,
19138 .page_size = 128 * 1024, /* actual page size is 16 */
19139 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
19140 .tested = TEST_UNTESTED,
19141 .probe = probe_jedec_29gl,
19142 .probe_timing = TIMING_ZERO,
19143 .block_erasers =
19144 {
19145 {
19146 .eraseblocks = {
19147 {8 * 1024, 8},
19148 {64 * 1024, 63},
19149 },
19150 .block_erase = erase_sector_jedec,
19151 }, {
19152 .eraseblocks = { {4 * 1024 * 1024, 1} },
19153 .block_erase = erase_chip_block_jedec,
19154 },
19155 },
19156 .write = write_jedec_1,
19157 .read = read_memmapped,
19158 .voltage = {2700, 3600},
19159 },
19160
19161 {
19162 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100019163 .name = "W29GL032CH/L",
19164 .bustype = BUS_PARALLEL,
19165 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
19166 .model_id = WINBOND_W29GL032CHL,
19167 .total_size = 4096,
19168 .page_size = 128 * 1024, /* actual page size is 16 */
19169 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
19170 .tested = TEST_UNTESTED,
19171 .probe = probe_jedec_29gl,
19172 .probe_timing = TIMING_ZERO,
19173 .block_erasers =
19174 {
19175 {
19176 .eraseblocks = { {64 * 1024, 64} },
19177 .block_erase = erase_sector_jedec,
19178 }, {
19179 .eraseblocks = { {4 * 1024 * 1024, 1} },
19180 .block_erase = erase_chip_block_jedec,
19181 },
19182 },
19183 .write = write_jedec_1,
19184 .read = read_memmapped,
19185 .voltage = {2700, 3600},
19186 },
19187
19188 {
19189 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000019190 .name = "W29GL032CT",
19191 .bustype = BUS_PARALLEL,
19192 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
19193 .model_id = WINBOND_W29GL032CT,
19194 .total_size = 4096,
19195 .page_size = 128 * 1024, /* actual page size is 16 */
19196 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
19197 .tested = TEST_UNTESTED,
19198 .probe = probe_jedec_29gl,
19199 .probe_timing = TIMING_ZERO,
19200 .block_erasers =
19201 {
19202 {
19203 .eraseblocks = {
19204 {64 * 1024, 63},
19205 {8 * 1024, 8},
19206 },
19207 .block_erase = erase_sector_jedec,
19208 }, {
19209 .eraseblocks = { {4 * 1024 * 1024, 1} },
19210 .block_erase = erase_chip_block_jedec,
19211 },
19212 },
19213 .write = write_jedec_1,
19214 .read = read_memmapped,
19215 .voltage = {2700, 3600},
19216 },
19217
19218 {
19219 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000019220 .name = "W29GL064CB",
19221 .bustype = BUS_PARALLEL,
19222 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
19223 .model_id = WINBOND_W29GL064CB,
19224 .total_size = 8192,
19225 .page_size = 128 * 1024, /* actual page size is 16 */
19226 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
19227 .tested = TEST_UNTESTED,
19228 .probe = probe_jedec_29gl,
19229 .probe_timing = TIMING_ZERO,
19230 .block_erasers =
19231 {
19232 {
19233 .eraseblocks = {
19234 {8 * 1024, 8},
19235 {64 * 1024, 127},
19236 },
19237 .block_erase = erase_sector_jedec,
19238 }, {
19239 .eraseblocks = { {8 * 1024 * 1024, 1} },
19240 .block_erase = erase_chip_block_jedec,
19241 },
19242 },
19243 .write = write_jedec_1,
19244 .read = read_memmapped,
19245 .voltage = {2700, 3600},
19246 },
19247
19248 {
19249 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100019250 .name = "W29GL064CH/L",
19251 .bustype = BUS_PARALLEL,
19252 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
19253 .model_id = WINBOND_W29GL064CHL,
19254 .total_size = 8192,
19255 .page_size = 128 * 1024, /* actual page size is 16 */
19256 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
19257 .tested = TEST_UNTESTED,
19258 .probe = probe_jedec_29gl,
19259 .probe_timing = TIMING_ZERO,
19260 .block_erasers =
19261 {
19262 {
19263 .eraseblocks = { {64 * 1024, 128} },
19264 .block_erase = erase_sector_jedec,
19265 }, {
19266 .eraseblocks = { {8 * 1024 * 1024, 1} },
19267 .block_erase = erase_chip_block_jedec,
19268 },
19269 },
19270 .write = write_jedec_1,
19271 .read = read_memmapped,
19272 .voltage = {2700, 3600},
19273 },
19274
19275 {
19276 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000019277 .name = "W29GL064CT",
19278 .bustype = BUS_PARALLEL,
19279 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
19280 .model_id = WINBOND_W29GL064CT,
19281 .total_size = 8192,
19282 .page_size = 128 * 1024, /* actual page size is 16 */
19283 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
19284 .tested = TEST_UNTESTED,
19285 .probe = probe_jedec_29gl,
19286 .probe_timing = TIMING_ZERO,
19287 .block_erasers =
19288 {
19289 {
19290 .eraseblocks = {
19291 {64 * 1024, 127},
19292 {8 * 1024, 8},
19293 },
19294 .block_erase = erase_sector_jedec,
19295 }, {
19296 .eraseblocks = { {8 * 1024 * 1024, 1} },
19297 .block_erase = erase_chip_block_jedec,
19298 },
19299 },
19300 .write = write_jedec_1,
19301 .read = read_memmapped,
19302 .voltage = {2700, 3600},
19303 },
19304
19305 {
19306 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000019307 .name = "W29GL128C",
19308 .bustype = BUS_PARALLEL,
19309 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
19310 .model_id = WINBOND_W29GL128CHL,
19311 .total_size = 16384,
19312 .page_size = 128 * 1024, /* actual page size is 16 */
19313 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
19314 .tested = TEST_UNTESTED,
19315 .probe = probe_jedec_29gl,
19316 .probe_timing = TIMING_ZERO,
19317 .block_erasers =
19318 {
19319 {
19320 .eraseblocks = { {128 * 1024, 128} },
19321 .block_erase = erase_sector_jedec,
19322 }, {
19323 .eraseblocks = { {16 * 1024 * 1024, 1} },
19324 .block_erase = erase_chip_block_jedec,
19325 },
19326 },
19327 .write = write_jedec_1,
19328 .read = read_memmapped,
19329 .voltage = {2700, 3600},
19330 },
19331
19332 {
19333 .vendor = "Winbond",
Kyösti Mälkkic31243e2012-10-28 01:50:08 +000019334 .name = "W39F010",
19335 .bustype = BUS_PARALLEL,
19336 .manufacture_id = WINBOND_ID,
19337 .model_id = WINBOND_W39F010,
19338 .total_size = 128,
19339 .page_size = 4 * 1024,
19340 .feature_bits = FEATURE_EITHER_RESET,
19341 .tested = TEST_OK_PREW,
19342 .probe = probe_jedec,
19343 .probe_timing = 10,
19344 .block_erasers =
19345 {
19346 {
19347 .eraseblocks = { {4 * 1024, 32} },
19348 .block_erase = erase_block_jedec,
19349 }, {
19350 .eraseblocks = { {128 * 1024, 1} },
19351 .block_erase = erase_chip_block_jedec,
19352 }
19353 },
19354 .printlock = printlock_w39f010,
19355 .write = write_jedec_1,
19356 .read = read_memmapped,
19357 .voltage = {4500, 5500},
19358 },
19359
19360 {
19361 .vendor = "Winbond",
19362 .name = "W39L010",
19363 .bustype = BUS_PARALLEL,
19364 .manufacture_id = WINBOND_ID,
19365 .model_id = WINBOND_W39L010,
19366 .total_size = 128,
19367 .page_size = 4 * 1024,
19368 .feature_bits = FEATURE_EITHER_RESET,
19369 .tested = TEST_UNTESTED,
19370 .probe = probe_jedec,
19371 .probe_timing = 10,
19372 .block_erasers =
19373 {
19374 {
19375 .eraseblocks = { {4 * 1024, 32} },
19376 .block_erase = erase_block_jedec,
19377 }, {
19378 .eraseblocks = { {128 * 1024, 1} },
19379 .block_erase = erase_chip_block_jedec,
19380 }
19381 },
19382 .printlock = printlock_w39l010,
19383 .write = write_jedec_1,
19384 .read = read_memmapped,
19385 .voltage = {3000, 3600},
19386 },
19387
19388 {
19389 .vendor = "Winbond",
19390 .name = "W39L020",
19391 .bustype = BUS_PARALLEL,
19392 .manufacture_id = WINBOND_ID,
19393 .model_id = WINBOND_W39L020,
19394 .total_size = 256,
19395 .page_size = 4 * 1024,
19396 .feature_bits = FEATURE_EITHER_RESET,
19397 .tested = TEST_UNTESTED,
19398 .probe = probe_jedec,
19399 .probe_timing = 10,
19400 .block_erasers =
19401 {
19402 {
19403 .eraseblocks = { {4 * 1024, 64} },
19404 .block_erase = erase_block_jedec,
19405 }, {
19406 .eraseblocks = { {64 * 1024, 4} },
19407 .block_erase = erase_sector_jedec,
19408 }, {
19409 .eraseblocks = { {256 * 1024, 1} },
19410 .block_erase = erase_chip_block_jedec,
19411 }
19412 },
19413 .printlock = printlock_w39l020,
19414 .write = write_jedec_1,
19415 .read = read_memmapped,
19416 .voltage = {3000, 3600},
19417 },
19418
19419 {
19420 .vendor = "Winbond",
Michael Karcher19e0aac2011-03-06 17:58:05 +000019421 .name = "W39L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019422 .bustype = BUS_PARALLEL,
Michael Karcher19e0aac2011-03-06 17:58:05 +000019423 .manufacture_id = WINBOND_ID,
19424 .model_id = WINBOND_W39L040,
19425 .total_size = 512,
19426 .page_size = 64 * 1024,
19427 .feature_bits = FEATURE_EITHER_RESET,
19428 .tested = TEST_OK_PR,
19429 .probe = probe_jedec,
19430 .probe_timing = 10,
19431 .block_erasers =
19432 {
19433 {
19434 .eraseblocks = { {4 * 1024, 128} },
19435 .block_erase = erase_block_jedec,
19436 }, {
19437 .eraseblocks = { {64 * 1024, 8} },
19438 .block_erase = erase_sector_jedec,
19439 }, {
19440 .eraseblocks = { {512 * 1024, 1} },
19441 .block_erase = erase_chip_block_jedec,
19442 }
19443 },
19444 .printlock = printlock_w39l040,
19445 .write = write_jedec_1,
19446 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000019447 .voltage = {3000, 3600},
Michael Karcher19e0aac2011-03-06 17:58:05 +000019448 },
19449
19450 {
19451 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019452 .name = "W39V040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019453 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019454 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000019455 .model_id = WINBOND_W39V040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019456 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000019457 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000019458 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000019459 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019460 .probe = probe_jedec,
Stefan Tauner716e0982011-07-25 20:38:52 +000019461 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019462 .block_erasers =
19463 {
19464 {
19465 .eraseblocks = { {64 * 1024, 8} },
19466 .block_erase = erase_sector_jedec,
19467 }, {
19468 .eraseblocks = { {512 * 1024, 1} },
19469 .block_erase = erase_chip_block_jedec,
19470 }
19471 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000019472 .printlock = printlock_w39v040a,
Sean Nelson35727f72010-01-28 23:55:12 +000019473 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019474 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000019475 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000019476 },
19477
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019478 {
19479 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000019480 .name = "W39V040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019481 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019482 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000019483 .model_id = WINBOND_W39V040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019484 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000019485 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000019486 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000019487 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019488 .probe = probe_jedec,
Paul Menzel018d4822011-10-21 12:33:07 +000019489 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019490 .block_erasers =
19491 {
19492 {
19493 .eraseblocks = { {64 * 1024, 8} },
19494 .block_erase = erase_sector_jedec,
19495 }, {
19496 .eraseblocks = { {512 * 1024, 1} },
19497 .block_erase = erase_chip_block_jedec,
19498 }
19499 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000019500 .printlock = printlock_w39v040b,
Sean Nelson35727f72010-01-28 23:55:12 +000019501 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019502 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000019503 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000019504 },
19505
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019506 {
19507 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000019508 .name = "W39V040C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019509 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019510 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000019511 .model_id = WINBOND_W39V040C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019512 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000019513 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000019514 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000019515 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +000019516 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000019517 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019518 .block_erasers =
19519 {
19520 {
19521 .eraseblocks = { {64 * 1024, 8} },
19522 .block_erase = erase_sector_jedec,
19523 }, {
19524 .eraseblocks = { {512 * 1024, 1} },
19525 .block_erase = erase_chip_block_jedec,
19526 }
19527 },
Sean Nelson6e0b9122010-02-19 00:52:10 +000019528 .printlock = printlock_w39v040c,
Sean Nelson35727f72010-01-28 23:55:12 +000019529 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019530 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000019531 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000019532 },
19533
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019534 {
19535 .vendor = "Winbond",
19536 .name = "W39V040FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019537 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019538 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000019539 .model_id = WINBOND_W39V040FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019540 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000019541 .page_size = 64 * 1024,
Michael Karcherc9b63412010-05-30 16:55:18 +000019542 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner23e10b82016-01-23 16:16:49 +000019543 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019544 .probe = probe_jedec,
Antony Rheneus0fbba982011-05-26 14:28:51 +000019545 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019546 .block_erasers =
19547 {
19548 {
19549 .eraseblocks = { {4 * 1024, 128} },
19550 .block_erase = erase_block_jedec,
19551 }, {
19552 .eraseblocks = { {64 * 1024, 8} },
19553 .block_erase = erase_sector_jedec,
19554 }, {
19555 .eraseblocks = { {512 * 1024, 1} },
19556 .block_erase = erase_chip_block_jedec,
19557 }
19558 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000019559 .printlock = printlock_w39v040fa,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000019560 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000019561 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019562 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000019563 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000019564 },
19565
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019566 {
19567 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000019568 .name = "W39V040FB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019569 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000019570 .manufacture_id = WINBOND_ID,
19571 .model_id = WINBOND_W39V040B,
19572 .total_size = 512,
19573 .page_size = 64 * 1024,
19574 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner0be072c2016-03-13 15:16:30 +000019575 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000019576 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000019577 .probe_timing = 10,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000019578 .block_erasers =
19579 {
19580 {
19581 .eraseblocks = { {64 * 1024, 8} },
19582 .block_erase = erase_sector_jedec,
19583 }, {
19584 .eraseblocks = { {512 * 1024, 1} },
19585 .block_erase = erase_chip_block_jedec,
19586 }
19587 },
19588 .printlock = printlock_w39v040fb,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000019589 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000019590 .write = write_jedec_1,
19591 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000019592 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000019593 },
19594
19595 {
19596 .vendor = "Winbond",
19597 .name = "W39V040FC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019598 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000019599 .manufacture_id = WINBOND_ID,
19600 .model_id = WINBOND_W39V040C,
19601 .total_size = 512,
19602 .page_size = 64 * 1024,
19603 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +000019604 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000019605 .probe = probe_jedec,
19606 .probe_timing = 10,
19607 .block_erasers =
19608 {
19609 {
19610 .eraseblocks = { {64 * 1024, 8} },
19611 .block_erase = erase_sector_jedec,
19612 }, {
19613 .eraseblocks = { {512 * 1024, 1} },
19614 .block_erase = erase_chip_block_jedec,
19615 }
19616 },
19617 .printlock = printlock_w39v040fc,
19618 .write = write_jedec_1,
19619 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000019620 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000019621 },
19622
19623 {
19624 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019625 .name = "W39V080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019626 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019627 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000019628 .model_id = WINBOND_W39V080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019629 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000019630 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000019631 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +000019632 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019633 .probe = probe_jedec,
Paul Menzelac427b22012-02-16 21:07:07 +000019634 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019635 .block_erasers =
19636 {
19637 {
19638 .eraseblocks = { {64 * 1024, 16} },
19639 .block_erase = erase_sector_jedec,
19640 }, {
19641 .eraseblocks = { {1024 * 1024, 1} },
19642 .block_erase = erase_chip_block_jedec,
19643 }
19644 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000019645 .printlock = printlock_w39v080a,
Sean Nelson35727f72010-01-28 23:55:12 +000019646 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019647 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000019648 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000019649 },
19650
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019651 {
19652 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100019653 .name = "W39V080FA",
19654 .bustype = BUS_FWH,
19655 .manufacture_id = WINBOND_ID,
19656 .model_id = WINBOND_W39V080FA,
19657 .total_size = 1024,
19658 .page_size = 64 * 1024,
19659 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
19660 .tested = TEST_OK_PREW,
19661 .probe = probe_jedec,
19662 .probe_timing = 10,
19663 .block_erasers =
19664 {
19665 {
19666 .eraseblocks = { {64 * 1024, 16} },
19667 .block_erase = erase_sector_jedec,
19668 }, {
19669 .eraseblocks = { {1024 * 1024, 1} },
19670 .block_erase = erase_chip_block_jedec,
19671 }
19672 },
19673 .printlock = printlock_w39v080fa,
19674 .unlock = unlock_regspace2_uniform_64k,
19675 .write = write_jedec_1,
19676 .read = read_memmapped,
19677 .voltage = {3000, 3600}, /* Also has 12V fast program */
19678 },
19679
19680 {
19681 .vendor = "Winbond",
19682 .name = "W39V080FA (dual mode)",
19683 .bustype = BUS_FWH,
19684 .manufacture_id = WINBOND_ID,
19685 .model_id = WINBOND_W39V080FA_DM,
19686 .total_size = 512,
19687 .page_size = 64 * 1024,
19688 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
19689 .tested = TEST_UNTESTED,
19690 .probe = probe_jedec,
19691 .probe_timing = 10,
19692 .block_erasers =
19693 {
19694 {
19695 .eraseblocks = { {64 * 1024, 8} },
19696 .block_erase = erase_sector_jedec,
19697 }, {
19698 .eraseblocks = { {512 * 1024, 1} },
19699 .block_erase = erase_chip_block_jedec,
19700 }
19701 },
19702 .printlock = printlock_w39v080fa_dual,
19703 .write = write_jedec_1,
19704 .read = read_memmapped,
19705 .voltage = {3000, 3600}, /* Also has 12V fast program */
19706 },
19707
19708 {
19709 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000019710 .name = "W49F002U/N",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019711 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019712 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000019713 .model_id = WINBOND_W49F002U,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019714 .total_size = 256,
19715 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000019716 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000019717 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019718 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000019719 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019720 .block_erasers =
19721 {
19722 {
19723 .eraseblocks = {
19724 {128 * 1024, 1},
19725 {96 * 1024, 1},
19726 {8 * 1024, 2},
19727 {16 * 1024, 1},
19728 },
19729 .block_erase = erase_sector_jedec,
19730 }, {
19731 .eraseblocks = { {256 * 1024, 1} },
19732 .block_erase = erase_chip_block_jedec,
19733 }
19734 },
Sean Nelson35727f72010-01-28 23:55:12 +000019735 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019736 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000019737 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000019738 },
19739
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019740 {
19741 .vendor = "Winbond",
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000019742 .name = "W49F020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019743 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000019744 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000019745 .model_id = WINBOND_W49F020,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000019746 .total_size = 256,
19747 .page_size = 128,
19748 .feature_bits = FEATURE_EITHER_RESET,
19749 .tested = TEST_OK_PROBE,
19750 .probe = probe_jedec,
19751 .probe_timing = 10,
19752 .block_erasers =
19753 {
19754 {
19755 .eraseblocks = { {256 * 1024, 1} },
19756 .block_erase = erase_chip_block_jedec,
19757 }
19758 },
19759 .write = write_jedec_1,
19760 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000019761 .voltage = {4500, 5500},
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000019762 },
19763
19764 {
19765 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019766 .name = "W49V002A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019767 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019768 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000019769 .model_id = WINBOND_W49V002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019770 .total_size = 256,
19771 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000019772 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000019773 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019774 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000019775 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019776 .block_erasers =
19777 {
19778 {
19779 .eraseblocks = {
19780 {64 * 1024, 3},
19781 {32 * 1024, 1},
19782 {8 * 1024, 2},
19783 {16 * 1024, 1},
19784 },
19785 .block_erase = erase_sector_jedec,
19786 }, {
19787 .eraseblocks = { {256 * 1024, 1} },
19788 .block_erase = erase_chip_block_jedec,
19789 }
19790 },
Sean Nelson35727f72010-01-28 23:55:12 +000019791 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019792 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000019793 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000019794 },
19795
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019796 {
19797 .vendor = "Winbond",
19798 .name = "W49V002FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019799 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019800 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000019801 .model_id = WINBOND_W49V002FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019802 .total_size = 256,
19803 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000019804 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000019805 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019806 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000019807 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019808 .block_erasers =
19809 {
19810 {
19811 .eraseblocks = {
19812 {64 * 1024, 3},
19813 {32 * 1024, 1},
19814 {8 * 1024, 2},
19815 {16 * 1024, 1},
19816 },
19817 .block_erase = erase_sector_jedec,
19818 }, {
19819 .eraseblocks = { {256 * 1024, 1} },
19820 .block_erase = erase_chip_block_jedec,
19821 }
19822 },
Sean Nelson35727f72010-01-28 23:55:12 +000019823 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019824 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000019825 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000019826 },
19827
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019828 {
luke heef884232020-12-28 18:22:21 +080019829 .vendor = "XMC",
19830 .name = "XM25QH128C",
19831 .bustype = BUS_SPI,
19832 .manufacture_id = ST_ID,
19833 .model_id = XMC_XM25QH128C,
19834 .total_size = 16384,
19835 .page_size = 256,
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110019836 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_WRSR2,
luke heef884232020-12-28 18:22:21 +080019837 .tested = TEST_UNTESTED,
19838 .probe = probe_spi_rdid,
19839 .probe_timing = TIMING_ZERO,
19840 .block_erasers =
19841 {
19842 {
19843 .eraseblocks = { {4 * 1024, 4096} },
19844 .block_erase = spi_block_erase_20,
19845 }, {
19846 .eraseblocks = { {32 * 1024, 512} },
19847 .block_erase = spi_block_erase_52,
19848 }, {
19849 .eraseblocks = { {64 * 1024, 256} },
19850 .block_erase = spi_block_erase_d8,
19851 }, {
19852 .eraseblocks = { {16 * 1024 * 1024, 1} },
19853 .block_erase = spi_block_erase_60,
19854 }, {
19855 .eraseblocks = { {16 * 1024 * 1024, 1} },
19856 .block_erase = spi_block_erase_c7,
19857 }
19858 },
19859 .printlock = spi_prettyprint_status_register_plain,
19860 .unlock = spi_disable_blockprotect,
19861 .write = spi_chip_write_256,
19862 .read = spi_chip_read,
19863 .voltage = {2700, 3600},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110019864 .reg_bits =
19865 {
19866 .srp = {STATUS1, 7, RW},
19867 .srl = {STATUS2, 0, RW},
19868 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
19869 .tb = {STATUS1, 5, RW},
19870 .sec = {STATUS1, 6, RW},
19871 .cmp = {STATUS2, 6, RW},
19872 },
19873 .decode_range = decode_range_spi25,
luke heef884232020-12-28 18:22:21 +080019874 },
19875
19876 {
19877 .vendor = "XMC",
19878 .name = "XM25QH256C",
19879 .bustype = BUS_SPI,
19880 .manufacture_id = ST_ID,
19881 .model_id = XMC_XM25QH256C,
19882 .total_size = 32768,
19883 .page_size = 256,
19884 /* supports SFDP */
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110019885 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN | FEATURE_WRSR2,
luke heef884232020-12-28 18:22:21 +080019886 .tested = TEST_UNTESTED,
19887 .probe = probe_spi_rdid,
19888 .probe_timing = TIMING_ZERO,
19889 .block_erasers =
19890 {
19891 {
19892 .eraseblocks = { {4 * 1024, 8192} },
19893 .block_erase = spi_block_erase_21,
19894 }, {
19895 .eraseblocks = { {4 * 1024, 8192} },
19896 .block_erase = spi_block_erase_20,
19897 }, {
19898 .eraseblocks = { {32 * 1024, 1024} },
19899 .block_erase = spi_block_erase_52,
19900 }, {
19901 .eraseblocks = { {64 * 1024, 512} },
19902 .block_erase = spi_block_erase_dc,
19903 }, {
19904 .eraseblocks = { {64 * 1024, 512} },
19905 .block_erase = spi_block_erase_d8,
19906 }, {
19907 .eraseblocks = { {32 * 1024 * 1024, 1} },
19908 .block_erase = spi_block_erase_60,
19909 }, {
19910 .eraseblocks = { {32 * 1024 * 1024, 1} },
19911 .block_erase = spi_block_erase_c7,
19912 }
19913 },
19914 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19915 .unlock = spi_disable_blockprotect,
19916 .write = spi_chip_write_256,
19917 .read = spi_chip_read,
19918 .voltage = {2700, 3600},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110019919 .reg_bits =
19920 {
19921 .srp = {STATUS1, 7, RW},
19922 .srl = {STATUS2, 0, RW},
19923 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}},
19924 .tb = {STATUS1, 6, RW},
19925 },
19926 .decode_range = decode_range_spi25,
luke heef884232020-12-28 18:22:21 +080019927 },
19928
19929 {
19930 .vendor = "XMC",
19931 .name = "XM25QH64C",
19932 .bustype = BUS_SPI,
19933 .manufacture_id = ST_ID,
19934 .model_id = XMC_XM25QH64C,
19935 .total_size = 8192,
19936 .page_size = 256,
19937 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
19938 .tested = TEST_UNTESTED,
19939 .probe = probe_spi_rdid,
19940 .probe_timing = TIMING_ZERO,
19941 .block_erasers =
19942 {
19943 {
19944 .eraseblocks = { {4 * 1024, 2048} },
19945 .block_erase = spi_block_erase_20,
19946 }, {
19947 .eraseblocks = { {32 * 1024, 256} },
19948 .block_erase = spi_block_erase_52,
19949 }, {
19950 .eraseblocks = { {64 * 1024, 128} },
19951 .block_erase = spi_block_erase_d8,
19952 }, {
19953 .eraseblocks = { {8 * 1024 * 1024, 1} },
19954 .block_erase = spi_block_erase_60,
19955 }, {
19956 .eraseblocks = { {8 * 1024 * 1024, 1} },
19957 .block_erase = spi_block_erase_c7,
19958 }
19959 },
19960 .printlock = spi_prettyprint_status_register_plain,
19961 .unlock = spi_disable_blockprotect,
19962 .write = spi_chip_write_256,
19963 .read = spi_chip_read,
19964 .voltage = {2700, 3600},
19965 },
19966
19967 {
19968 .vendor = "XMC",
19969 .name = "XM25QU128C",
19970 .bustype = BUS_SPI,
19971 .manufacture_id = ST_ID,
19972 .model_id = XMC_XM25QU128C,
19973 .total_size = 16384,
19974 .page_size = 256,
19975 /* supports SFDP */
19976 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
19977 .tested = TEST_UNTESTED,
19978 .probe = probe_spi_rdid,
19979 .probe_timing = TIMING_ZERO,
19980 .block_erasers =
19981 {
19982 {
19983 .eraseblocks = { {4 * 1024, 4096} },
19984 .block_erase = spi_block_erase_20,
19985 }, {
19986 .eraseblocks = { {32 * 1024, 512} },
19987 .block_erase = spi_block_erase_52,
19988 }, {
19989 .eraseblocks = { {64 * 1024, 256} },
19990 .block_erase = spi_block_erase_d8,
19991 }, {
19992 .eraseblocks = { {16 * 1024 * 1024, 1} },
19993 .block_erase = spi_block_erase_60,
19994 }, {
19995 .eraseblocks = { {16 * 1024 * 1024, 1} },
19996 .block_erase = spi_block_erase_c7,
19997 }
19998 },
19999 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
20000 .unlock = spi_disable_blockprotect,
20001 .write = spi_chip_write_256,
20002 .read = spi_chip_read,
20003 .voltage = {1650, 1950},
20004 },
20005
20006 {
20007 .vendor = "XMC",
20008 .name = "XM25QU256C",
20009 .bustype = BUS_SPI,
20010 .manufacture_id = ST_ID,
20011 .model_id = XMC_XM25QU256C,
20012 .total_size = 32768,
20013 .page_size = 256,
20014 /* supports SFDP */
20015 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
20016 .tested = TEST_UNTESTED,
20017 .probe = probe_spi_rdid,
20018 .probe_timing = TIMING_ZERO,
20019 .block_erasers =
20020 {
20021 {
20022 .eraseblocks = { {4 * 1024, 8192} },
20023 .block_erase = spi_block_erase_21,
20024 }, {
20025 .eraseblocks = { {4 * 1024, 8192} },
20026 .block_erase = spi_block_erase_20,
20027 }, {
20028 .eraseblocks = { {32 * 1024, 1024} },
20029 .block_erase = spi_block_erase_52,
20030 }, {
20031 .eraseblocks = { {64 * 1024, 512} },
20032 .block_erase = spi_block_erase_dc,
20033 }, {
20034 .eraseblocks = { {64 * 1024, 512} },
20035 .block_erase = spi_block_erase_d8,
20036 }, {
20037 .eraseblocks = { {32 * 1024 * 1024, 1} },
20038 .block_erase = spi_block_erase_60,
20039 }, {
20040 .eraseblocks = { {32 * 1024 * 1024, 1} },
20041 .block_erase = spi_block_erase_c7,
20042 }
20043 },
20044 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
20045 .unlock = spi_disable_blockprotect,
20046 .write = spi_chip_write_256,
20047 .read = spi_chip_read,
20048 .voltage = {1650, 1950},
20049 },
20050
20051 {
20052 .vendor = "XMC",
20053 .name = "XM25QU64C",
20054 .bustype = BUS_SPI,
20055 .manufacture_id = ST_ID,
20056 .model_id = XMC_XM25QU64C,
20057 .total_size = 8192,
20058 .page_size = 256,
20059 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
20060 .tested = TEST_UNTESTED,
20061 .probe = probe_spi_rdid,
20062 .probe_timing = TIMING_ZERO,
20063 .block_erasers =
20064 {
20065 {
20066 .eraseblocks = { {4 * 1024, 2048} },
20067 .block_erase = spi_block_erase_20,
20068 }, {
20069 .eraseblocks = { {32 * 1024, 256} },
20070 .block_erase = spi_block_erase_52,
20071 }, {
20072 .eraseblocks = { {64 * 1024, 128} },
20073 .block_erase = spi_block_erase_d8,
20074 }, {
20075 .eraseblocks = { {8 * 1024 * 1024, 1} },
20076 .block_erase = spi_block_erase_60,
20077 }, {
20078 .eraseblocks = { {8 * 1024 * 1024, 1} },
20079 .block_erase = spi_block_erase_c7,
20080 }
20081 },
20082 .printlock = spi_prettyprint_status_register_plain,
20083 .unlock = spi_disable_blockprotect,
20084 .write = spi_chip_write_256,
20085 .read = spi_chip_read,
20086 .voltage = {1650, 1950},
20087 },
20088
20089 {
Alan Greenfa3fcd32019-06-27 15:41:50 +100020090 .vendor = "Zetta Device",
20091 .name = "ZD25D20",
20092 .bustype = BUS_SPI,
20093 .manufacture_id = ZETTADEVICE_ID,
20094 .model_id = ZETTADEVICE_ZD25D20,
20095 .total_size = 256,
20096 .page_size = 256,
20097 .feature_bits = FEATURE_WRSR_WREN,
20098 .tested = TEST_UNTESTED,
20099 .probe = probe_spi_rdid,
20100 .probe_timing = TIMING_ZERO,
20101 .block_erasers =
David Hendricksa72d5a92018-02-11 17:58:44 -080020102 {
20103 {
20104 .eraseblocks = { {4 * 1024, 64} },
20105 .block_erase = spi_block_erase_20,
20106 }, {
20107 .eraseblocks = { {32 * 1024, 8} },
20108 .block_erase = spi_block_erase_52,
20109 }, {
20110 .eraseblocks = { {64 * 1024, 4} },
20111 .block_erase = spi_block_erase_d8,
20112 }, {
20113 .eraseblocks = { {256 * 1024, 1} },
20114 .block_erase = spi_block_erase_60,
20115 }, {
20116 .eraseblocks = { {256 * 1024, 1} },
20117 .block_erase = spi_block_erase_c7,
20118 }
20119 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100020120 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
20121 .unlock = spi_disable_blockprotect,
20122 .write = spi_chip_write_256,
20123 .read = spi_chip_read,
20124 .voltage = {2700, 3600},
David Hendricksa72d5a92018-02-11 17:58:44 -080020125 },
20126
20127 {
Alan Greenfa3fcd32019-06-27 15:41:50 +100020128 .vendor = "Zetta Device",
20129 .name = "ZD25D40",
20130 .bustype = BUS_SPI,
20131 .manufacture_id = ZETTADEVICE_ID,
20132 .model_id = ZETTADEVICE_ZD25D40,
20133 .total_size = 512,
20134 .page_size = 256,
20135 .feature_bits = FEATURE_WRSR_WREN,
20136 .tested = TEST_UNTESTED,
20137 .probe = probe_spi_rdid,
20138 .probe_timing = TIMING_ZERO,
20139 .block_erasers =
nybashcbb46e22018-02-11 17:53:49 -080020140 {
20141 {
20142 .eraseblocks = { {4 * 1024, 128} },
20143 .block_erase = spi_block_erase_20,
20144 }, {
20145 .eraseblocks = { {32 * 1024, 16} },
20146 .block_erase = spi_block_erase_52,
20147 }, {
20148 .eraseblocks = { {64 * 1024, 8} },
20149 .block_erase = spi_block_erase_d8,
20150 }, {
20151 .eraseblocks = { {512 * 1024, 1} },
20152 .block_erase = spi_block_erase_60,
20153 }, {
20154 .eraseblocks = { {512 * 1024, 1} },
20155 .block_erase = spi_block_erase_c7,
20156 }
20157 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100020158 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
20159 .unlock = spi_disable_blockprotect,
20160 .write = spi_chip_write_256,
20161 .read = spi_chip_read,
20162 .voltage = {2700, 3600},
nybashcbb46e22018-02-11 17:53:49 -080020163 },
20164
Stefan Taunerac1b4c82012-02-17 14:51:04 +000020165 {
Alan Greendd592202019-08-23 10:11:37 +100020166 .vendor = "Unknown",
20167 .name = "SFDP-capable chip",
20168 .bustype = BUS_SPI,
20169 .manufacture_id = GENERIC_MANUF_ID,
20170 .model_id = SFDP_DEVICE_ID,
20171 .total_size = 0, /* set by probing function */
20172 .page_size = 0, /* set by probing function */
20173 .feature_bits = 0, /* set by probing function */
20174 /* We present our own "report this" text hence we do not */
20175 /* want the default "This flash part has status UNTESTED..." */
20176 /* text to be printed. */
20177 .tested = TEST_OK_PREW,
20178 .probe = probe_spi_sfdp,
20179 .block_erasers = {}, /* set by probing function */
20180 .unlock = spi_disable_blockprotect, /* is this safe? */
20181 .write = NULL, /* set by probing function */
20182 .read = spi_chip_read,
20183 /* FIXME: some vendor extensions define this */
20184 .voltage = {0},
20185 },
20186
20187 {
Carl-Daniel Hailfinger532c7172011-11-04 21:35:26 +000020188 .vendor = "Programmer",
20189 .name = "Opaque flash chip",
20190 .bustype = BUS_PROG,
20191 .manufacture_id = PROGMANUF_ID,
20192 .model_id = PROGDEV_ID,
20193 .total_size = 0,
20194 .page_size = 256,
20195 /* probe is assumed to work, rest will be filled in by probe */
20196 .tested = TEST_OK_PROBE,
20197 .probe = probe_opaque,
20198 /* eraseblock sizes will be set by the probing function */
20199 .block_erasers =
20200 {
20201 {
20202 .block_erase = erase_opaque,
20203 }
20204 },
20205 .write = write_opaque,
20206 .read = read_opaque,
20207 },
20208
20209 {
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000020210 .vendor = "AMIC",
20211 .name = "unknown AMIC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020212 .bustype = BUS_SPI,
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000020213 .manufacture_id = AMIC_ID,
20214 .model_id = GENERIC_DEVICE_ID,
20215 .total_size = 0,
20216 .page_size = 256,
20217 .tested = TEST_BAD_PREW,
20218 .probe = probe_spi_rdid4,
20219 .probe_timing = TIMING_ZERO,
20220 .write = NULL,
20221 .read = NULL,
20222 },
20223
20224 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020225 .vendor = "Atmel",
20226 .name = "unknown Atmel SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020227 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020228 .manufacture_id = ATMEL_ID,
20229 .model_id = GENERIC_DEVICE_ID,
20230 .total_size = 0,
20231 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000020232 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020233 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000020234 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020235 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000020236 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000020237 },
20238
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020239 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +000020240 .vendor = "Eon",
20241 .name = "unknown Eon SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020242 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020243 .manufacture_id = EON_ID_NOPREFIX,
20244 .model_id = GENERIC_DEVICE_ID,
20245 .total_size = 0,
20246 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000020247 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020248 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000020249 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020250 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000020251 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000020252 },
20253
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020254 {
20255 .vendor = "Macronix",
20256 .name = "unknown Macronix SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020257 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000020258 .manufacture_id = MACRONIX_ID,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020259 .model_id = GENERIC_DEVICE_ID,
20260 .total_size = 0,
20261 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000020262 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020263 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000020264 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020265 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000020266 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000020267 },
20268
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020269 {
20270 .vendor = "PMC",
20271 .name = "unknown PMC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020272 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020273 .manufacture_id = PMC_ID,
20274 .model_id = GENERIC_DEVICE_ID,
20275 .total_size = 0,
20276 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000020277 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020278 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000020279 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020280 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000020281 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000020282 },
20283
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020284 {
20285 .vendor = "SST",
20286 .name = "unknown SST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020287 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020288 .manufacture_id = SST_ID,
20289 .model_id = GENERIC_DEVICE_ID,
20290 .total_size = 0,
20291 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000020292 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020293 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000020294 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020295 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000020296 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000020297 },
20298
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020299 {
20300 .vendor = "ST",
20301 .name = "unknown ST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020302 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020303 .manufacture_id = ST_ID,
20304 .model_id = GENERIC_DEVICE_ID,
20305 .total_size = 0,
20306 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000020307 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020308 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000020309 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020310 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000020311 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000020312 },
Uwe Hermannfc425e82008-03-16 02:06:25 +000020313
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000020314 {
Sean Nelson118e1d62009-11-24 02:08:11 +000020315 .vendor = "Sanyo",
20316 .name = "unknown Sanyo SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020317 .bustype = BUS_SPI,
Sean Nelson118e1d62009-11-24 02:08:11 +000020318 .manufacture_id = SANYO_ID,
20319 .model_id = GENERIC_DEVICE_ID,
20320 .total_size = 0,
20321 .page_size = 256,
20322 .tested = TEST_BAD_PREW,
20323 .probe = probe_spi_rdid,
20324 .probe_timing = TIMING_ZERO,
Sean Nelson118e1d62009-11-24 02:08:11 +000020325 .write = NULL,
20326 .read = NULL,
20327 },
20328
20329 {
Stefan Taunereb582572012-09-21 12:52:50 +000020330 .vendor = "Winbond",
20331 .name = "unknown Winbond (ex Nexcom) SPI chip",
20332 .bustype = BUS_SPI,
20333 .manufacture_id = WINBOND_NEX_ID,
20334 .model_id = GENERIC_DEVICE_ID,
20335 .total_size = 0,
20336 .page_size = 256,
20337 .tested = TEST_BAD_PREW,
20338 .probe = probe_spi_rdid,
20339 .probe_timing = TIMING_ZERO,
20340 .write = NULL,
20341 .read = NULL,
20342 },
20343
20344 {
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000020345 .vendor = "Generic",
20346 .name = "unknown SPI chip (RDID)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020347 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000020348 .manufacture_id = GENERIC_MANUF_ID,
20349 .model_id = GENERIC_DEVICE_ID,
20350 .total_size = 0,
20351 .page_size = 256,
20352 .tested = TEST_BAD_PREW,
20353 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000020354 .write = NULL,
20355 },
Stefan Tauneraf2db612011-12-02 21:48:17 +000020356
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000020357 {
20358 .vendor = "Generic",
20359 .name = "unknown SPI chip (REMS)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020360 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000020361 .manufacture_id = GENERIC_MANUF_ID,
20362 .model_id = GENERIC_DEVICE_ID,
20363 .total_size = 0,
20364 .page_size = 256,
20365 .tested = TEST_BAD_PREW,
20366 .probe = probe_spi_rems,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000020367 .write = NULL,
20368 },
20369
Stefan Tauner96658be2014-05-26 22:05:31 +000020370 {0}
Stephan Guilloux72cf5652009-04-21 01:46:07 +000020371};
Stefan Tauner96658be2014-05-26 22:05:31 +000020372
20373const unsigned int flashchips_size = ARRAY_SIZE(flashchips);