blob: 65a2c462025d53f9131641c6fadea080026c49a6 [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 Artemiev9de3f872021-10-20 22:32:25 +11006814 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN |
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},
11223 },
11224
11225 {
11226 .vendor = "Micron/Numonyx/ST",
11227 .name = "N25Q032..3E",
11228 .bustype = BUS_SPI,
11229 .manufacture_id = ST_ID,
11230 .model_id = ST_N25Q032__3E,
11231 .total_size = 4096,
11232 .page_size = 256,
11233 /* supports SFDP */
11234 /* OTP: 64B total; read 0x4B, write 0x42 */
11235 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11236 .tested = TEST_OK_PREW,
11237 .probe = probe_spi_rdid,
11238 .probe_timing = TIMING_ZERO,
11239 .block_erasers =
11240 {
11241 {
11242 .eraseblocks = { {4 * 1024, 1024} },
11243 .block_erase = spi_block_erase_20,
11244 }, {
11245 .eraseblocks = { {64 * 1024, 64} },
11246 .block_erase = spi_block_erase_d8,
11247 }, {
11248 .eraseblocks = { {4 * 1024 * 1024, 1} },
11249 .block_erase = spi_block_erase_c7,
11250 }
11251 },
11252 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11253 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11254 .write = spi_chip_write_256, /* Multi I/O supported */
11255 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11256 .voltage = {2700, 3600},
11257 },
11258
11259 {
11260 .vendor = "Micron/Numonyx/ST",
11261 .name = "N25Q064..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
11262 .bustype = BUS_SPI,
11263 .manufacture_id = ST_ID,
11264 .model_id = ST_N25Q064__1E,
11265 .total_size = 8192,
11266 .page_size = 256,
11267 /* supports SFDP */
11268 /* OTP: 64B total; read 0x4B, write 0x42 */
11269 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000011270 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011271 .probe = probe_spi_rdid,
11272 .probe_timing = TIMING_ZERO,
11273 .block_erasers =
11274 {
11275 {
11276 .eraseblocks = { {4 * 1024, 2048 } },
11277 .block_erase = spi_block_erase_20,
11278 }, {
11279 .eraseblocks = { {64 * 1024, 128} },
11280 .block_erase = spi_block_erase_d8,
11281 }, {
11282 .eraseblocks = { {8 * 1024 * 1024, 1} },
11283 .block_erase = spi_block_erase_c7,
11284 }
11285 },
11286 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11287 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11288 .write = spi_chip_write_256, /* Multi I/O supported */
11289 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11290 .voltage = {1700, 2000},
11291 },
11292
11293 {
11294 .vendor = "Micron/Numonyx/ST",
11295 .name = "N25Q064..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
11296 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100011297 .manufacture_id = ST_ID,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011298 .model_id = ST_N25Q064__3E,
11299 .total_size = 8192,
11300 .page_size = 256,
11301 /* supports SFDP */
11302 /* OTP: 64B total; read 0x4B, write 0x42 */
11303 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11304 .tested = TEST_OK_PREW,
11305 .probe = probe_spi_rdid,
11306 .probe_timing = TIMING_ZERO,
11307 .block_erasers =
11308 {
11309 {
11310 .eraseblocks = { {4 * 1024, 2048 } },
11311 .block_erase = spi_block_erase_20,
11312 }, {
11313 .eraseblocks = { {64 * 1024, 128} },
11314 .block_erase = spi_block_erase_d8,
11315 }, {
11316 .eraseblocks = { {8 * 1024 * 1024, 1} },
11317 .block_erase = spi_block_erase_c7,
11318 }
11319 },
11320 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11321 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11322 .write = spi_chip_write_256, /* Multi I/O supported */
11323 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11324 .voltage = {2700, 3600},
11325 },
11326
11327 {
11328 .vendor = "Micron/Numonyx/ST",
11329 .name = "N25Q128..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
11330 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100011331 .manufacture_id = ST_ID,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011332 .model_id = ST_N25Q128__1E,
11333 .total_size = 16384,
11334 .page_size = 256,
11335 /* supports SFDP */
11336 /* OTP: 64B total; read 0x4B, write 0x42 */
11337 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011338 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011339 .probe = probe_spi_rdid,
11340 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011341 .block_erasers =
11342 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011343 {
11344 .eraseblocks = { {4 * 1024, 4096 } },
11345 .block_erase = spi_block_erase_20,
11346 }, {
11347 .eraseblocks = { {64 * 1024, 256} },
11348 .block_erase = spi_block_erase_d8,
11349 }, {
11350 .eraseblocks = { {16384 * 1024, 1} },
11351 .block_erase = spi_block_erase_c7,
11352 }
11353 },
11354 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11355 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11356 .write = spi_chip_write_256, /* Multi I/O supported */
11357 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11358 .voltage = {1700, 2000},
11359 },
11360
11361 {
11362 .vendor = "Micron/Numonyx/ST",
11363 .name = "N25Q128..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
11364 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100011365 .manufacture_id = ST_ID,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011366 .model_id = ST_N25Q128__3E,
11367 .total_size = 16384,
11368 .page_size = 256,
11369 /* supports SFDP */
11370 /* OTP: 64B total; read 0x4B, write 0x42 */
11371 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11372 .tested = TEST_OK_PREW,
11373 .probe = probe_spi_rdid,
11374 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011375 .block_erasers =
11376 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011377 {
11378 .eraseblocks = { {4 * 1024, 4096 } },
11379 .block_erase = spi_block_erase_20,
11380 }, {
11381 .eraseblocks = { {64 * 1024, 256} },
11382 .block_erase = spi_block_erase_d8,
11383 }, {
11384 .eraseblocks = { {16384 * 1024, 1} },
11385 .block_erase = spi_block_erase_c7,
11386 }
11387 },
11388 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11389 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11390 .write = spi_chip_write_256, /* Multi I/O supported */
11391 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11392 .voltage = {2700, 3600},
11393 },
11394
11395 {
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011396 .vendor = "Micron/Numonyx/ST",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011397 .name = "N25Q256..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
11398 .bustype = BUS_SPI,
11399 .manufacture_id = ST_ID,
11400 .model_id = ST_N25Q256__1E,
11401 .total_size = 32768,
11402 .page_size = 256,
11403 /* supports SFDP */
11404 /* OTP: 64B total; read 0x4B, write 0x42 */
11405 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11406 .tested = TEST_UNTESTED,
11407 .probe = probe_spi_rdid,
11408 .probe_timing = TIMING_ZERO,
11409 .block_erasers =
11410 {
11411 {
11412 .eraseblocks = { {4 * 1024, 8192} },
11413 .block_erase = spi_block_erase_21,
11414 }, {
11415 .eraseblocks = { {4 * 1024, 8192} },
11416 .block_erase = spi_block_erase_20,
11417 }, {
11418 .eraseblocks = { {64 * 1024, 512} },
11419 .block_erase = spi_block_erase_dc,
11420 }, {
11421 .eraseblocks = { {64 * 1024, 512} },
11422 .block_erase = spi_block_erase_d8,
11423 }, {
11424 .eraseblocks = { {32768 * 1024, 1} },
11425 .block_erase = spi_block_erase_c7,
11426 }
11427 },
11428 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11429 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11430 .write = spi_chip_write_256, /* Multi I/O supported */
11431 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11432 .voltage = {1700, 2000},
11433 },
11434
11435 {
11436 .vendor = "Micron/Numonyx/ST",
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011437 .name = "N25Q256..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
11438 .bustype = BUS_SPI,
11439 .manufacture_id = ST_ID,
11440 .model_id = ST_N25Q256__3E,
11441 .total_size = 32768,
11442 .page_size = 256,
11443 /* supports SFDP */
11444 /* OTP: 64B total; read 0x4B, write 0x42 */
11445 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11446 .tested = TEST_UNTESTED,
11447 .probe = probe_spi_rdid,
11448 .probe_timing = TIMING_ZERO,
11449 .block_erasers =
11450 {
11451 {
11452 .eraseblocks = { {4 * 1024, 8192} },
11453 .block_erase = spi_block_erase_21,
11454 }, {
11455 .eraseblocks = { {4 * 1024, 8192} },
11456 .block_erase = spi_block_erase_20,
11457 }, {
11458 .eraseblocks = { {64 * 1024, 512} },
11459 .block_erase = spi_block_erase_dc,
11460 }, {
11461 .eraseblocks = { {64 * 1024, 512} },
11462 .block_erase = spi_block_erase_d8,
11463 }, {
11464 .eraseblocks = { {32768 * 1024, 1} },
11465 .block_erase = spi_block_erase_c7,
11466 }
11467 },
11468 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11469 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11470 .write = spi_chip_write_256, /* Multi I/O supported */
11471 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11472 .voltage = {2700, 3600},
11473 },
11474
11475 {
11476 .vendor = "Micron/Numonyx/ST",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011477 .name = "N25Q512..1G", /* ..1G = 1.8V, uniform 64KB/4KB blocks/sectors */
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011478 .bustype = BUS_SPI,
11479 .manufacture_id = ST_ID,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011480 .model_id = ST_N25Q512__1G,
11481 .total_size = 65536,
11482 .page_size = 256,
11483 /* supports SFDP */
11484 /* OTP: 64B total; read 0x4B, write 0x42 */
11485 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11486 .tested = TEST_UNTESTED,
11487 .probe = probe_spi_rdid,
11488 .probe_timing = TIMING_ZERO,
11489 .block_erasers =
11490 {
11491 {
11492 .eraseblocks = { {4 * 1024, 16384} },
11493 .block_erase = spi_block_erase_21,
11494 }, {
11495 .eraseblocks = { {4 * 1024, 16384} },
11496 .block_erase = spi_block_erase_20,
11497 }, {
11498 .eraseblocks = { {64 * 1024, 1024} },
11499 .block_erase = spi_block_erase_dc,
11500 }, {
11501 .eraseblocks = { {64 * 1024, 1024} },
11502 .block_erase = spi_block_erase_d8,
11503 }, {
11504 .eraseblocks = { {32768 * 1024, 2} },
11505 .block_erase = spi_block_erase_c4,
11506 }
11507 },
11508 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11509 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11510 .write = spi_chip_write_256, /* Multi I/O supported */
11511 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11512 .voltage = {1700, 2000},
11513 },
11514
11515 {
11516 .vendor = "Micron/Numonyx/ST",
11517 .name = "N25Q512..3G", /* ..3G = 3V, uniform 64KB/4KB blocks/sectors */
11518 .bustype = BUS_SPI,
11519 .manufacture_id = ST_ID,
11520 .model_id = ST_N25Q512__3G,
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011521 .total_size = 65536,
11522 .page_size = 256,
11523 /* supports SFDP */
11524 /* OTP: 64B total; read 0x4B, write 0x42 */
11525 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11526 .tested = TEST_OK_PREW,
11527 .probe = probe_spi_rdid,
11528 .probe_timing = TIMING_ZERO,
11529 .block_erasers =
11530 {
11531 {
11532 .eraseblocks = { {4 * 1024, 16384} },
11533 .block_erase = spi_block_erase_21,
11534 }, {
11535 .eraseblocks = { {4 * 1024, 16384} },
11536 .block_erase = spi_block_erase_20,
11537 }, {
11538 .eraseblocks = { {64 * 1024, 1024} },
11539 .block_erase = spi_block_erase_dc,
11540 }, {
11541 .eraseblocks = { {64 * 1024, 1024} },
11542 .block_erase = spi_block_erase_d8,
11543 }, {
Jacob Creedone8e7b0e2019-07-22 12:21:22 -070011544 .eraseblocks = { {32768 * 1024, 2} },
11545 .block_erase = spi_block_erase_c4,
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011546 }
11547 },
11548 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11549 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11550 .write = spi_chip_write_256, /* Multi I/O supported */
11551 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11552 .voltage = {2700, 3600},
11553 },
11554
11555 {
Ed Swierk199ab392017-07-03 13:33:44 -070011556 .vendor = "Micron",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011557 .name = "MT25QL01G", /* L = 3V, uniform 64KB/4KB blocks/sectors */
11558 .bustype = BUS_SPI,
11559 .manufacture_id = ST_ID,
11560 .model_id = ST_N25Q00A__3G,
11561 .total_size = 131072,
11562 .page_size = 256,
11563 /* supports SFDP */
11564 /* OTP: 64B total; read 0x4B, write 0x42 */
11565 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11566 .tested = TEST_OK_PREW,
11567 .probe = probe_spi_rdid,
11568 .probe_timing = TIMING_ZERO,
11569 .block_erasers =
11570 {
11571 {
11572 .eraseblocks = { {4 * 1024, 32768} },
11573 .block_erase = spi_block_erase_21,
11574 }, {
11575 .eraseblocks = { {4 * 1024, 32768} },
11576 .block_erase = spi_block_erase_20,
11577 }, {
11578 .eraseblocks = { {32 * 1024, 4096} },
11579 .block_erase = spi_block_erase_5c,
11580 }, {
11581 .eraseblocks = { {32 * 1024, 4096} },
11582 .block_erase = spi_block_erase_52,
11583 }, {
11584 .eraseblocks = { {64 * 1024, 2048} },
11585 .block_erase = spi_block_erase_dc,
11586 }, {
11587 .eraseblocks = { {64 * 1024, 2048} },
11588 .block_erase = spi_block_erase_d8,
11589 }, {
11590 .eraseblocks = { {65536 * 1024, 2} },
11591 .block_erase = spi_block_erase_c4,
11592 }
11593 },
11594 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11595 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11596 .write = spi_chip_write_256, /* Multi I/O supported */
11597 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11598 .voltage = {2700, 3600},
11599 },
11600
11601 {
11602 .vendor = "Micron",
11603 .name = "MT25QU01G", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
11604 .bustype = BUS_SPI,
11605 .manufacture_id = ST_ID,
11606 .model_id = ST_N25Q00A__1G,
11607 .total_size = 131072,
11608 .page_size = 256,
11609 /* supports SFDP */
11610 /* OTP: 64B total; read 0x4B, write 0x42 */
11611 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11612 .tested = TEST_UNTESTED,
11613 .probe = probe_spi_rdid,
11614 .probe_timing = TIMING_ZERO,
11615 .block_erasers =
11616 {
11617 {
11618 .eraseblocks = { {4 * 1024, 32768} },
11619 .block_erase = spi_block_erase_21,
11620 }, {
11621 .eraseblocks = { {4 * 1024, 32768} },
11622 .block_erase = spi_block_erase_20,
11623 }, {
11624 .eraseblocks = { {32 * 1024, 4096} },
11625 .block_erase = spi_block_erase_5c,
11626 }, {
11627 .eraseblocks = { {32 * 1024, 4096} },
11628 .block_erase = spi_block_erase_52,
11629 }, {
11630 .eraseblocks = { {64 * 1024, 2048} },
11631 .block_erase = spi_block_erase_dc,
11632 }, {
11633 .eraseblocks = { {64 * 1024, 2048} },
11634 .block_erase = spi_block_erase_d8,
11635 }, {
11636 .eraseblocks = { {65536 * 1024, 2} },
11637 .block_erase = spi_block_erase_c4,
11638 }
11639 },
11640 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11641 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11642 .write = spi_chip_write_256, /* Multi I/O supported */
11643 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11644 .voltage = {1700, 2000},
11645 },
11646
11647 {
11648 .vendor = "Micron",
11649 .name = "MT25QL02G", /* L = 3V, uniform 64KB/4KB blocks/sectors */
11650 .bustype = BUS_SPI,
11651 .manufacture_id = ST_ID,
11652 .model_id = ST_MT25QL02G,
11653 .total_size = 262144,
11654 .page_size = 256,
11655 /* supports SFDP */
11656 /* OTP: 64B total; read 0x4B, write 0x42 */
11657 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11658 .tested = TEST_UNTESTED,
11659 .probe = probe_spi_rdid,
11660 .probe_timing = TIMING_ZERO,
11661 .block_erasers =
11662 {
11663 {
11664 .eraseblocks = { {4 * 1024, 65536} },
11665 .block_erase = spi_block_erase_21,
11666 }, {
11667 .eraseblocks = { {4 * 1024, 65536} },
11668 .block_erase = spi_block_erase_20,
11669 }, {
11670 .eraseblocks = { {32 * 1024, 8192} },
11671 .block_erase = spi_block_erase_5c,
11672 }, {
11673 .eraseblocks = { {32 * 1024, 8192} },
11674 .block_erase = spi_block_erase_52,
11675 }, {
11676 .eraseblocks = { {64 * 1024, 4096} },
11677 .block_erase = spi_block_erase_dc,
11678 }, {
11679 .eraseblocks = { {64 * 1024, 4096} },
11680 .block_erase = spi_block_erase_d8,
11681 }, {
11682 .eraseblocks = { {65536 * 1024, 4} },
11683 .block_erase = spi_block_erase_c4,
11684 }
11685 },
11686 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11687 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11688 .write = spi_chip_write_256, /* Multi I/O supported */
11689 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11690 .voltage = {2700, 3600},
11691 },
11692
11693 {
11694 .vendor = "Micron",
11695 .name = "MT25QU02G", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
11696 .bustype = BUS_SPI,
11697 .manufacture_id = ST_ID,
11698 .model_id = ST_MT25QU02G,
11699 .total_size = 262144,
11700 .page_size = 256,
11701 /* supports SFDP */
11702 /* OTP: 64B total; read 0x4B, write 0x42 */
11703 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11704 .tested = TEST_UNTESTED,
11705 .probe = probe_spi_rdid,
11706 .probe_timing = TIMING_ZERO,
11707 .block_erasers =
11708 {
11709 {
11710 .eraseblocks = { {4 * 1024, 65536} },
11711 .block_erase = spi_block_erase_21,
11712 }, {
11713 .eraseblocks = { {4 * 1024, 65536} },
11714 .block_erase = spi_block_erase_20,
11715 }, {
11716 .eraseblocks = { {32 * 1024, 8192} },
11717 .block_erase = spi_block_erase_5c,
11718 }, {
11719 .eraseblocks = { {32 * 1024, 8192} },
11720 .block_erase = spi_block_erase_52,
11721 }, {
11722 .eraseblocks = { {64 * 1024, 4096} },
11723 .block_erase = spi_block_erase_dc,
11724 }, {
11725 .eraseblocks = { {64 * 1024, 4096} },
11726 .block_erase = spi_block_erase_d8,
11727 }, {
11728 .eraseblocks = { {65536 * 1024, 4} },
11729 .block_erase = spi_block_erase_c4,
11730 }
11731 },
11732 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11733 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11734 .write = spi_chip_write_256, /* Multi I/O supported */
11735 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11736 .voltage = {1700, 2000},
11737 },
11738
11739 {
11740 .vendor = "Micron",
11741 .name = "MT25QU128", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
11742 .bustype = BUS_SPI,
11743 .manufacture_id = ST_ID,
11744 .model_id = ST_N25Q128__1E,
11745 .total_size = 16384,
11746 .page_size = 256,
11747 /* supports SFDP */
11748 /* OTP: 64B total; read 0x4B, write 0x42 */
11749 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11750 .tested = TEST_UNTESTED,
11751 .probe = probe_spi_rdid,
11752 .probe_timing = TIMING_ZERO,
11753 .block_erasers =
11754 {
11755 {
11756 .eraseblocks = { {4 * 1024, 4096} },
11757 .block_erase = spi_block_erase_20,
11758 }, {
11759 .eraseblocks = { {32 * 1024, 512} },
11760 .block_erase = spi_block_erase_52,
11761 }, {
11762 .eraseblocks = { {64 * 1024, 256} },
11763 .block_erase = spi_block_erase_d8,
11764 }, {
11765 .eraseblocks = { {16384 * 1024, 1} },
11766 .block_erase = spi_block_erase_c7,
11767 }, {
11768 .eraseblocks = { {16384 * 1024, 1} },
11769 .block_erase = spi_block_erase_60,
11770 }
11771 },
11772 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11773 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11774 .write = spi_chip_write_256, /* Multi I/O supported */
11775 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11776 .voltage = {1700, 2000},
11777 },
11778
11779 {
11780 .vendor = "Micron",
11781 .name = "MT25QL128", /* L = 3V, uniform 64KB/4KB blocks/sectors */
11782 .bustype = BUS_SPI,
11783 .manufacture_id = ST_ID,
11784 .model_id = ST_N25Q128__3E,
11785 .total_size = 16384,
11786 .page_size = 256,
11787 /* supports SFDP */
11788 /* OTP: 64B total; read 0x4B, write 0x42 */
11789 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11790 .tested = TEST_UNTESTED,
11791 .probe = probe_spi_rdid,
11792 .probe_timing = TIMING_ZERO,
11793 .block_erasers =
11794 {
11795 {
11796 .eraseblocks = { {4 * 1024, 4096} },
11797 .block_erase = spi_block_erase_20,
11798 }, {
11799 .eraseblocks = { {32 * 1024, 512} },
11800 .block_erase = spi_block_erase_52,
11801 }, {
11802 .eraseblocks = { {64 * 1024, 256} },
11803 .block_erase = spi_block_erase_d8,
11804 }, {
11805 .eraseblocks = { {16384 * 1024, 1} },
11806 .block_erase = spi_block_erase_c7,
11807 }, {
11808 .eraseblocks = { {16384 * 1024, 1} },
11809 .block_erase = spi_block_erase_60,
11810 }
11811 },
11812 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11813 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11814 .write = spi_chip_write_256, /* Multi I/O supported */
11815 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11816 .voltage = {2700, 3600},
11817 },
11818
11819 {
11820 .vendor = "Micron",
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011821 .name = "MT25QL256", /* L = 3V, uniform 64KB/4KB blocks/sectors */
Ed Swierk199ab392017-07-03 13:33:44 -070011822 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100011823 .manufacture_id = ST_ID,
Ed Swierk199ab392017-07-03 13:33:44 -070011824 .model_id = ST_N25Q256__3E,
11825 .total_size = 32768,
11826 .page_size = 256,
11827 /* supports SFDP */
11828 /* OTP: 64B total; read 0x4B, write 0x42 */
Nico Huberaac81422017-11-10 22:54:13 +010011829 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
Simon Buhrowb7014f92021-02-15 13:16:57 +010011830 .tested = TEST_OK_PREW,
Ed Swierk199ab392017-07-03 13:33:44 -070011831 .probe = probe_spi_rdid,
11832 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011833 .block_erasers =
11834 {
Ed Swierk199ab392017-07-03 13:33:44 -070011835 {
11836 .eraseblocks = { {4 * 1024, 8192} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020011837 .block_erase = spi_block_erase_21,
Ed Swierk199ab392017-07-03 13:33:44 -070011838 }, {
Nico Huberaac81422017-11-10 22:54:13 +010011839 .eraseblocks = { {4 * 1024, 8192} },
11840 .block_erase = spi_block_erase_20,
11841 }, {
Jacob Creedon045b97e2019-07-22 12:26:56 -070011842 .eraseblocks = { {32 * 1024, 1024} },
11843 .block_erase = spi_block_erase_5c,
11844 }, {
11845 .eraseblocks = { {32 * 1024, 1024} },
11846 .block_erase = spi_block_erase_52,
11847 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070011848 .eraseblocks = { {64 * 1024, 512} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020011849 .block_erase = spi_block_erase_dc,
Ed Swierk199ab392017-07-03 13:33:44 -070011850 }, {
Nico Huberaac81422017-11-10 22:54:13 +010011851 .eraseblocks = { {64 * 1024, 512} },
11852 .block_erase = spi_block_erase_d8,
11853 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070011854 .eraseblocks = { {32768 * 1024, 1} },
11855 .block_erase = spi_block_erase_c7,
Jacob Creedon045b97e2019-07-22 12:26:56 -070011856 }, {
11857 .eraseblocks = { {32768 * 1024, 1} },
11858 .block_erase = spi_block_erase_60,
Ed Swierk199ab392017-07-03 13:33:44 -070011859 }
11860 },
11861 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11862 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11863 .write = spi_chip_write_256, /* Multi I/O supported */
11864 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11865 .voltage = {2700, 3600},
11866 },
11867
11868 {
11869 .vendor = "Micron",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011870 .name = "MT25QU256", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
11871 .bustype = BUS_SPI,
11872 .manufacture_id = ST_ID,
11873 .model_id = ST_N25Q256__1E,
11874 .total_size = 32768,
11875 .page_size = 256,
11876 /* supports SFDP */
11877 /* OTP: 64B total; read 0x4B, write 0x42 */
11878 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
Angel Pons59052582022-03-08 15:23:58 +010011879 .tested = TEST_OK_PREW,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011880 .probe = probe_spi_rdid,
11881 .probe_timing = TIMING_ZERO,
11882 .block_erasers =
11883 {
11884 {
11885 .eraseblocks = { {4 * 1024, 8192} },
11886 .block_erase = spi_block_erase_21,
11887 }, {
11888 .eraseblocks = { {4 * 1024, 8192} },
11889 .block_erase = spi_block_erase_20,
11890 }, {
11891 .eraseblocks = { {32 * 1024, 1024} },
11892 .block_erase = spi_block_erase_5c,
11893 }, {
11894 .eraseblocks = { {32 * 1024, 1024} },
11895 .block_erase = spi_block_erase_52,
11896 }, {
11897 .eraseblocks = { {64 * 1024, 512} },
11898 .block_erase = spi_block_erase_dc,
11899 }, {
11900 .eraseblocks = { {64 * 1024, 512} },
11901 .block_erase = spi_block_erase_d8,
11902 }, {
11903 .eraseblocks = { {32768 * 1024, 1} },
11904 .block_erase = spi_block_erase_c7,
11905 }, {
11906 .eraseblocks = { {32768 * 1024, 1} },
11907 .block_erase = spi_block_erase_60,
11908 }
11909 },
11910 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11911 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11912 .write = spi_chip_write_256, /* Multi I/O supported */
11913 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11914 .voltage = {1700, 2000},
11915 },
11916
11917 {
11918 .vendor = "Micron",
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011919 .name = "MT25QL512", /* L = 3V, uniform 64KB/4KB blocks/sectors */
Ed Swierk199ab392017-07-03 13:33:44 -070011920 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100011921 .manufacture_id = ST_ID,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011922 .model_id = ST_N25Q512__3G,
Ed Swierk199ab392017-07-03 13:33:44 -070011923 .total_size = 65536,
11924 .page_size = 256,
11925 /* supports SFDP */
11926 /* OTP: 64B total; read 0x4B, write 0x42 */
Nico Huberaac81422017-11-10 22:54:13 +010011927 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
Angel Pons3ed5a352018-09-30 16:31:09 +020011928 .tested = TEST_OK_PREW,
Ed Swierk199ab392017-07-03 13:33:44 -070011929 .probe = probe_spi_rdid,
11930 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011931 .block_erasers =
11932 {
Ed Swierk199ab392017-07-03 13:33:44 -070011933 {
11934 .eraseblocks = { {4 * 1024, 16384} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020011935 .block_erase = spi_block_erase_21,
Ed Swierk199ab392017-07-03 13:33:44 -070011936 }, {
Nico Huberaac81422017-11-10 22:54:13 +010011937 .eraseblocks = { {4 * 1024, 16384} },
11938 .block_erase = spi_block_erase_20,
11939 }, {
Jacob Creedon045b97e2019-07-22 12:26:56 -070011940 .eraseblocks = { {32 * 1024, 2048} },
11941 .block_erase = spi_block_erase_5c,
11942 }, {
11943 .eraseblocks = { {32 * 1024, 2048} },
11944 .block_erase = spi_block_erase_52,
11945 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070011946 .eraseblocks = { {64 * 1024, 1024} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020011947 .block_erase = spi_block_erase_dc,
Ed Swierk199ab392017-07-03 13:33:44 -070011948 }, {
Nico Huberaac81422017-11-10 22:54:13 +010011949 .eraseblocks = { {64 * 1024, 1024} },
11950 .block_erase = spi_block_erase_d8,
11951 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070011952 .eraseblocks = { {65536 * 1024, 1} },
11953 .block_erase = spi_block_erase_c7,
Jacob Creedon045b97e2019-07-22 12:26:56 -070011954 }, {
11955 .eraseblocks = { {65536 * 1024, 1} },
11956 .block_erase = spi_block_erase_60,
Ed Swierk199ab392017-07-03 13:33:44 -070011957 }
11958 },
11959 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11960 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11961 .write = spi_chip_write_256, /* Multi I/O supported */
11962 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11963 .voltage = {2700, 3600},
11964 },
11965
11966 {
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011967 .vendor = "Micron",
11968 .name = "MT25QU512", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
11969 .bustype = BUS_SPI,
11970 .manufacture_id = ST_ID,
11971 .model_id = ST_N25Q512__1G,
11972 .total_size = 65536,
11973 .page_size = 256,
11974 /* supports SFDP */
11975 /* OTP: 64B total; read 0x4B, write 0x42 */
11976 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11977 .tested = TEST_OK_PREW,
11978 .probe = probe_spi_rdid,
11979 .probe_timing = TIMING_ZERO,
11980 .block_erasers =
11981 {
11982 {
11983 .eraseblocks = { {4 * 1024, 16384} },
11984 .block_erase = spi_block_erase_21,
11985 }, {
11986 .eraseblocks = { {4 * 1024, 16384} },
11987 .block_erase = spi_block_erase_20,
11988 }, {
11989 .eraseblocks = { {32 * 1024, 2048} },
11990 .block_erase = spi_block_erase_5c,
11991 }, {
11992 .eraseblocks = { {32 * 1024, 2048} },
11993 .block_erase = spi_block_erase_52,
11994 }, {
11995 .eraseblocks = { {64 * 1024, 1024} },
11996 .block_erase = spi_block_erase_dc,
11997 }, {
11998 .eraseblocks = { {64 * 1024, 1024} },
11999 .block_erase = spi_block_erase_d8,
12000 }, {
12001 .eraseblocks = { {65536 * 1024, 1} },
12002 .block_erase = spi_block_erase_c7,
12003 }, {
12004 .eraseblocks = { {65536 * 1024, 1} },
12005 .block_erase = spi_block_erase_60,
12006 }
12007 },
12008 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
12009 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
12010 .write = spi_chip_write_256, /* Multi I/O supported */
12011 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12012 .voltage = {1700, 2000},
12013 },
12014
12015 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000012016 .vendor = "MoselVitelic",
12017 .name = "V29C51000B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012018 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012019 .manufacture_id = SYNCMOS_MVC_ID,
12020 .model_id = MVC_V29C51000B,
12021 .total_size = 64,
12022 .page_size = 512,
12023 .feature_bits = FEATURE_EITHER_RESET,
12024 .tested = TEST_UNTESTED,
12025 .probe = probe_jedec,
12026 .probe_timing = TIMING_ZERO,
12027 .block_erasers =
12028 {
12029 {
12030 .eraseblocks = { {512, 128} },
12031 .block_erase = erase_sector_jedec,
12032 }, {
12033 .eraseblocks = { {64 * 1024, 1} },
12034 .block_erase = erase_chip_block_jedec,
12035 },
12036 },
12037 .write = write_jedec_1,
12038 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012039 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000012040 },
12041
12042 {
12043 .vendor = "MoselVitelic",
12044 .name = "V29C51000T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012045 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012046 .manufacture_id = SYNCMOS_MVC_ID,
12047 .model_id = MVC_V29C51000T,
12048 .total_size = 64,
12049 .page_size = 512,
12050 .feature_bits = FEATURE_EITHER_RESET,
12051 .tested = TEST_UNTESTED,
12052 .probe = probe_jedec,
12053 .probe_timing = TIMING_ZERO,
12054 .block_erasers =
12055 {
12056 {
12057 .eraseblocks = { {512, 128} },
12058 .block_erase = erase_sector_jedec,
12059 }, {
12060 .eraseblocks = { {64 * 1024, 1} },
12061 .block_erase = erase_chip_block_jedec,
12062 },
12063 },
12064 .write = write_jedec_1,
12065 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012066 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000012067 },
12068
12069 {
12070 .vendor = "MoselVitelic",
12071 .name = "V29C51400B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012072 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012073 .manufacture_id = SYNCMOS_MVC_ID,
12074 .model_id = MVC_V29C51400B,
12075 .total_size = 512,
12076 .page_size = 1024,
12077 .feature_bits = FEATURE_EITHER_RESET,
12078 .tested = TEST_UNTESTED,
12079 .probe = probe_jedec,
12080 .probe_timing = TIMING_ZERO,
12081 .block_erasers =
12082 {
12083 {
12084 .eraseblocks = { {1024, 512} },
12085 .block_erase = erase_sector_jedec,
12086 }, {
12087 .eraseblocks = { {512 * 1024, 1} },
12088 .block_erase = erase_chip_block_jedec,
12089 },
12090 },
12091 .write = write_jedec_1,
12092 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012093 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000012094 },
12095
12096 {
12097 .vendor = "MoselVitelic",
12098 .name = "V29C51400T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012099 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012100 .manufacture_id = SYNCMOS_MVC_ID,
12101 .model_id = MVC_V29C51400T,
12102 .total_size = 512,
12103 .page_size = 1024,
12104 .feature_bits = FEATURE_EITHER_RESET,
12105 .tested = TEST_UNTESTED,
12106 .probe = probe_jedec,
12107 .probe_timing = TIMING_ZERO,
12108 .block_erasers =
12109 {
12110 {
12111 .eraseblocks = { {1024, 512} },
12112 .block_erase = erase_sector_jedec,
12113 }, {
12114 .eraseblocks = { {512 * 1024, 1} },
12115 .block_erase = erase_chip_block_jedec,
12116 },
12117 },
12118 .write = write_jedec_1,
12119 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012120 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000012121 },
12122
12123 {
12124 .vendor = "MoselVitelic",
12125 .name = "V29LC51000",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012126 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012127 .manufacture_id = SYNCMOS_MVC_ID,
12128 .model_id = MVC_V29LC51000,
12129 .total_size = 64,
12130 .page_size = 512,
12131 .feature_bits = FEATURE_EITHER_RESET,
12132 .tested = TEST_UNTESTED,
12133 .probe = probe_jedec,
12134 .probe_timing = TIMING_ZERO,
12135 .block_erasers =
12136 {
12137 {
12138 .eraseblocks = { {512, 128} },
12139 .block_erase = erase_sector_jedec,
12140 }, {
12141 .eraseblocks = { {64 * 1024, 1} },
12142 .block_erase = erase_chip_block_jedec,
12143 },
12144 },
12145 .write = write_jedec_1,
12146 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012147 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000012148 },
12149
12150 {
12151 .vendor = "MoselVitelic",
12152 .name = "V29LC51001",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012153 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012154 .manufacture_id = SYNCMOS_MVC_ID,
12155 .model_id = MVC_V29LC51001,
12156 .total_size = 128,
12157 .page_size = 512,
12158 .feature_bits = FEATURE_EITHER_RESET,
12159 .tested = TEST_UNTESTED,
12160 .probe = probe_jedec,
12161 .probe_timing = TIMING_ZERO,
12162 .block_erasers =
12163 {
12164 {
12165 .eraseblocks = { {512, 256} },
12166 .block_erase = erase_sector_jedec,
12167 }, {
12168 .eraseblocks = { {128 * 1024, 1} },
12169 .block_erase = erase_chip_block_jedec,
12170 },
12171 },
12172 .write = write_jedec_1,
12173 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012174 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000012175 },
12176
12177 {
12178 .vendor = "MoselVitelic",
12179 .name = "V29LC51002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012180 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012181 .manufacture_id = SYNCMOS_MVC_ID,
12182 .model_id = MVC_V29LC51002,
12183 .total_size = 256,
12184 .page_size = 512,
12185 .feature_bits = FEATURE_EITHER_RESET,
12186 .tested = TEST_UNTESTED,
12187 .probe = probe_jedec,
12188 .probe_timing = TIMING_ZERO,
12189 .block_erasers =
12190 {
12191 {
12192 .eraseblocks = { {512, 512} },
12193 .block_erase = erase_sector_jedec,
12194 }, {
12195 .eraseblocks = { {256 * 1024, 1} },
12196 .block_erase = erase_chip_block_jedec,
12197 },
12198 },
12199 .write = write_jedec_1,
12200 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012201 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000012202 },
12203
12204 {
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012205 .vendor = "Nantronics",
12206 .name = "N25S10",
12207 .bustype = BUS_SPI,
12208 .manufacture_id = NANTRONICS_ID_NOPREFIX,
12209 .model_id = NANTRONICS_N25S10,
12210 .total_size = 128,
12211 .page_size = 256,
12212 .feature_bits = FEATURE_WRSR_WREN,
12213 .tested = TEST_UNTESTED,
12214 .probe = probe_spi_rdid,
12215 .probe_timing = TIMING_ZERO,
12216 .block_erasers =
12217 {
12218 {
12219 .eraseblocks = { {4 * 1024, 32} },
12220 .block_erase = spi_block_erase_20,
12221 }, {
12222 .eraseblocks = { {4 * 1024, 32} },
12223 .block_erase = spi_block_erase_d7,
12224 }, {
12225 .eraseblocks = { {32 * 1024, 4} },
12226 .block_erase = spi_block_erase_52,
12227 }, {
12228 .eraseblocks = { {64 * 1024, 2} },
12229 .block_erase = spi_block_erase_d8,
12230 }, {
12231 .eraseblocks = { {128 * 1024, 1} },
12232 .block_erase = spi_block_erase_60,
12233 }, {
12234 .eraseblocks = { {128 * 1024, 1} },
12235 .block_erase = spi_block_erase_c7,
12236 }
12237 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012238 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012239 .unlock = spi_disable_blockprotect_bp3_srwd,
12240 .write = spi_chip_write_256,
12241 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
12242 .voltage = {2700, 3600},
12243 },
12244
12245 {
12246 .vendor = "Nantronics",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012247 .name = "N25S16",
12248 .bustype = BUS_SPI,
12249 .manufacture_id = NANTRONICS_ID_NOPREFIX,
12250 .model_id = NANTRONICS_N25S16,
12251 .total_size = 2048,
12252 .page_size = 256,
12253 .feature_bits = FEATURE_WRSR_WREN,
12254 .tested = TEST_UNTESTED,
12255 .probe = probe_spi_rdid,
12256 .probe_timing = TIMING_ZERO,
12257 .block_erasers =
12258 {
12259 {
12260 .eraseblocks = { {4 * 1024, 512} },
12261 .block_erase = spi_block_erase_20,
12262 }, {
12263 .eraseblocks = { {64 * 1024, 32} },
12264 .block_erase = spi_block_erase_d8,
12265 }, {
12266 .eraseblocks = { {2048 * 1024, 1} },
12267 .block_erase = spi_block_erase_60,
12268 }, {
12269 .eraseblocks = { {2048 * 1024, 1} },
12270 .block_erase = spi_block_erase_c7,
12271 }
12272 },
12273 .printlock = spi_prettyprint_status_register_bp3_srwd,
12274 .unlock = spi_disable_blockprotect_bp3_srwd,
12275 .write = spi_chip_write_256,
12276 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
12277 .voltage = {2700, 3600},
12278 },
12279
12280 {
12281 .vendor = "Nantronics",
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012282 .name = "N25S20",
12283 .bustype = BUS_SPI,
12284 .manufacture_id = NANTRONICS_ID_NOPREFIX,
12285 .model_id = NANTRONICS_N25S20,
12286 .total_size = 256,
12287 .page_size = 256,
12288 .feature_bits = FEATURE_WRSR_WREN,
12289 .tested = TEST_UNTESTED,
12290 .probe = probe_spi_rdid,
12291 .probe_timing = TIMING_ZERO,
12292 .block_erasers =
12293 {
12294 {
12295 .eraseblocks = { {4 * 1024, 64} },
12296 .block_erase = spi_block_erase_20,
12297 }, {
12298 .eraseblocks = { {4 * 1024, 64} },
12299 .block_erase = spi_block_erase_d7,
12300 }, {
12301 .eraseblocks = { {32 * 1024, 8} },
12302 .block_erase = spi_block_erase_52,
12303 }, {
12304 .eraseblocks = { {64 * 1024, 4} },
12305 .block_erase = spi_block_erase_d8,
12306 }, {
12307 .eraseblocks = { {256 * 1024, 1} },
12308 .block_erase = spi_block_erase_60,
12309 }, {
12310 .eraseblocks = { {256 * 1024, 1} },
12311 .block_erase = spi_block_erase_c7,
12312 }
12313 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012314 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012315 .unlock = spi_disable_blockprotect_bp3_srwd,
12316 .write = spi_chip_write_256,
12317 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
12318 .voltage = {2700, 3600},
12319 },
12320
12321 {
12322 .vendor = "Nantronics",
12323 .name = "N25S40",
12324 .bustype = BUS_SPI,
12325 .manufacture_id = NANTRONICS_ID_NOPREFIX,
12326 .model_id = NANTRONICS_N25S40,
12327 .total_size = 512,
12328 .page_size = 256,
12329 .feature_bits = FEATURE_WRSR_WREN,
12330 .tested = TEST_UNTESTED,
12331 .probe = probe_spi_rdid,
12332 .probe_timing = TIMING_ZERO,
12333 .block_erasers =
12334 {
12335 {
12336 .eraseblocks = { {4 * 1024, 128} },
12337 .block_erase = spi_block_erase_20,
12338 }, {
12339 .eraseblocks = { {4 * 1024, 128} },
12340 .block_erase = spi_block_erase_d7,
12341 }, {
12342 .eraseblocks = { {32 * 1024, 16} },
12343 .block_erase = spi_block_erase_52,
12344 }, {
12345 .eraseblocks = { {64 * 1024, 8} },
12346 .block_erase = spi_block_erase_d8,
12347 }, {
12348 .eraseblocks = { {512 * 1024, 1} },
12349 .block_erase = spi_block_erase_60,
12350 }, {
12351 .eraseblocks = { {512 * 1024, 1} },
12352 .block_erase = spi_block_erase_c7,
12353 }
12354 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012355 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012356 .unlock = spi_disable_blockprotect_bp3_srwd,
12357 .write = spi_chip_write_256,
12358 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
12359 .voltage = {2700, 3600},
12360 },
12361
12362 {
12363 .vendor = "Nantronics",
12364 .name = "N25S80",
12365 .bustype = BUS_SPI,
12366 .manufacture_id = NANTRONICS_ID_NOPREFIX,
12367 .model_id = NANTRONICS_N25S80,
12368 .total_size = 1024,
12369 .page_size = 256,
12370 .feature_bits = FEATURE_WRSR_WREN,
12371 .tested = TEST_UNTESTED,
12372 .probe = probe_spi_rdid,
12373 .probe_timing = TIMING_ZERO,
12374 .block_erasers =
12375 {
12376 {
12377 .eraseblocks = { {4 * 1024, 256} },
12378 .block_erase = spi_block_erase_20,
12379 }, {
12380 .eraseblocks = { {32 * 1024, 32} },
12381 .block_erase = spi_block_erase_52,
12382 }, {
12383 .eraseblocks = { {64 * 1024, 16} },
12384 .block_erase = spi_block_erase_d8,
12385 }, {
12386 .eraseblocks = { {1024 * 1024, 1} },
12387 .block_erase = spi_block_erase_60,
12388 }, {
12389 .eraseblocks = { {1024 * 1024, 1} },
12390 .block_erase = spi_block_erase_c7,
12391 }
12392 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012393 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012394 .unlock = spi_disable_blockprotect_bp3_srwd,
12395 .write = spi_chip_write_256,
12396 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
12397 .voltage = {2700, 3600},
12398 },
12399
12400 {
Stefan Taunerf4451612013-04-19 01:59:15 +000012401 .vendor = "PMC",
12402 .name = "Pm25LD010(C)",
12403 .bustype = BUS_SPI,
12404 .manufacture_id = PMC_ID,
12405 .model_id = PMC_PM25LD010,
12406 .total_size = 128,
12407 .page_size = 256,
12408 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000012409 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +000012410 .probe = probe_spi_rdid,
12411 .probe_timing = TIMING_ZERO,
12412 .block_erasers =
12413 {
12414 {
12415 .eraseblocks = { {4 * 1024, 32} },
12416 .block_erase = spi_block_erase_20,
12417 }, {
12418 .eraseblocks = { {4 * 1024, 32} },
12419 .block_erase = spi_block_erase_d7,
12420 }, {
12421 .eraseblocks = { {32 * 1024, 4} },
12422 .block_erase = spi_block_erase_d8,
12423 }, {
12424 .eraseblocks = { {128 * 1024, 1} },
12425 .block_erase = spi_block_erase_60,
12426 }, {
12427 .eraseblocks = { {128 * 1024, 1} },
12428 .block_erase = spi_block_erase_c7,
12429 }
12430 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012431 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000012432 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
12433 .write = spi_chip_write_256,
12434 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
12435 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD010 */
12436 },
12437
12438 {
12439 .vendor = "PMC",
12440 .name = "Pm25LD020(C)",
12441 .bustype = BUS_SPI,
12442 .manufacture_id = PMC_ID,
12443 .model_id = PMC_PM25LD020,
12444 .total_size = 256,
12445 .page_size = 256,
12446 .feature_bits = FEATURE_WRSR_WREN,
Angel Ponsf5822a82018-09-30 20:09:58 +020012447 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +000012448 .probe = probe_spi_rdid,
12449 .probe_timing = TIMING_ZERO,
12450 .block_erasers =
12451 {
12452 {
12453 .eraseblocks = { {4 * 1024, 64} },
12454 .block_erase = spi_block_erase_20,
12455 }, {
12456 .eraseblocks = { {4 * 1024, 64} },
12457 .block_erase = spi_block_erase_d7,
12458 }, {
12459 .eraseblocks = { {64 * 1024, 4} },
12460 .block_erase = spi_block_erase_d8,
12461 }, {
12462 .eraseblocks = { {256 * 1024, 1} },
12463 .block_erase = spi_block_erase_60,
12464 }, {
12465 .eraseblocks = { {256 * 1024, 1} },
12466 .block_erase = spi_block_erase_c7,
12467 }
12468 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012469 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000012470 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
12471 .write = spi_chip_write_256,
12472 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
12473 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD020 */
12474 },
12475
12476 {
12477 .vendor = "PMC",
12478 .name = "Pm25LD040(C)",
12479 .bustype = BUS_SPI,
12480 .manufacture_id = PMC_ID,
12481 .model_id = PMC_PM25LV040,
12482 .total_size = 512,
12483 .page_size = 256,
12484 .feature_bits = FEATURE_WRSR_WREN,
Angel Pons05127bf2018-09-30 20:23:24 +020012485 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +000012486 .probe = probe_spi_rdid,
12487 .probe_timing = TIMING_ZERO,
12488 .block_erasers =
12489 {
12490 {
12491 .eraseblocks = { {4 * 1024, 128} },
12492 .block_erase = spi_block_erase_20,
12493 }, {
12494 .eraseblocks = { {4 * 1024, 128} },
12495 .block_erase = spi_block_erase_d7,
12496 }, {
12497 .eraseblocks = { {64 * 1024, 8} },
12498 .block_erase = spi_block_erase_d8,
12499 }, {
12500 .eraseblocks = { {512 * 1024, 1} },
12501 .block_erase = spi_block_erase_60,
12502 }, {
12503 .eraseblocks = { {512 * 1024, 1} },
12504 .block_erase = spi_block_erase_c7,
12505 }
12506 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012507 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000012508 .unlock = spi_disable_blockprotect,
12509 .write = spi_chip_write_256,
12510 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
12511 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD040 */
12512 },
12513
Steven Honeyman81a8fb72015-06-02 22:32:24 +000012514 {
12515 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012516 .name = "Pm25LD256C",
12517 .bustype = BUS_SPI,
12518 .manufacture_id = PMC_ID,
12519 .model_id = PMC_PM25LD256C,
12520 .total_size = 32,
12521 .page_size = 256,
12522 .feature_bits = FEATURE_WRSR_WREN,
12523 .tested = TEST_UNTESTED,
12524 .probe = probe_spi_rdid,
12525 .probe_timing = TIMING_ZERO,
12526 .block_erasers =
12527 {
12528 {
12529 .eraseblocks = { {4 * 1024, 8} },
12530 .block_erase = spi_block_erase_20,
12531 }, {
12532 .eraseblocks = { {4 * 1024, 8} },
12533 .block_erase = spi_block_erase_d7,
12534 }, {
12535 .eraseblocks = { {32 * 1024, 1} },
12536 .block_erase = spi_block_erase_d8,
12537 }, {
12538 .eraseblocks = { {32 * 1024, 1} },
12539 .block_erase = spi_block_erase_60,
12540 }, {
12541 .eraseblocks = { {32 * 1024, 1} },
12542 .block_erase = spi_block_erase_c7,
12543 }
12544 },
12545 .printlock = spi_prettyprint_status_register_bp2_srwd,
12546 .unlock = spi_disable_blockprotect,
12547 .write = spi_chip_write_256,
12548 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
12549 .voltage = {2700, 3600},
12550 },
12551
12552 {
12553 .vendor = "PMC",
12554 .name = "Pm25LD512(C)",
12555 .bustype = BUS_SPI,
12556 .manufacture_id = PMC_ID,
12557 .model_id = PMC_PM25LD512,
12558 .total_size = 64,
12559 .page_size = 256,
12560 .feature_bits = FEATURE_WRSR_WREN,
12561 .tested = TEST_OK_PREW,
12562 .probe = probe_spi_rdid,
12563 .probe_timing = TIMING_ZERO,
12564 .block_erasers =
12565 {
12566 {
12567 .eraseblocks = { {4 * 1024, 16} },
12568 .block_erase = spi_block_erase_20,
12569 }, {
12570 .eraseblocks = { {4 * 1024, 16} },
12571 .block_erase = spi_block_erase_d7,
12572 }, {
12573 .eraseblocks = { {32 * 1024, 2} },
12574 .block_erase = spi_block_erase_d8,
12575 }, {
12576 .eraseblocks = { {64 * 1024, 1} },
12577 .block_erase = spi_block_erase_60,
12578 }, {
12579 .eraseblocks = { {64 * 1024, 1} },
12580 .block_erase = spi_block_erase_c7,
12581 }
12582 },
12583 .printlock = spi_prettyprint_status_register_bp2_srwd,
12584 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
12585 .write = spi_chip_write_256,
12586 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
12587 .voltage = {2300, 3600},
12588 },
12589
12590 {
12591 .vendor = "PMC",
12592 .name = "Pm25LQ016",
12593 .bustype = BUS_SPI,
12594 .manufacture_id = PMC_ID,
12595 .model_id = PMC_PM25LQ016,
12596 .total_size = 2048,
12597 .page_size = 256,
12598 /* OTP: 256B total; read 0x4B, write 0xB1 */
12599 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12600 .tested = TEST_UNTESTED,
12601 .probe = probe_spi_rdid,
12602 .probe_timing = TIMING_ZERO,
12603 .block_erasers =
12604 {
12605 {
12606 .eraseblocks = { {4 * 1024, 512} },
12607 .block_erase = spi_block_erase_20,
12608 }, {
12609 .eraseblocks = { {4 * 1024, 512} },
12610 .block_erase = spi_block_erase_d7,
12611 }, {
12612 .eraseblocks = { {64 * 1024, 32} },
12613 .block_erase = spi_block_erase_d8,
12614 }, {
12615 .eraseblocks = { {2048 * 1024, 1} },
12616 .block_erase = spi_block_erase_60,
12617 }, {
12618 .eraseblocks = { {2048 * 1024, 1} },
12619 .block_erase = spi_block_erase_c7,
12620 }
12621 },
12622 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
12623 .unlock = spi_disable_blockprotect_bp3_srwd,
12624 .write = spi_chip_write_256,
12625 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12626 .voltage = {2300, 3600},
12627 },
12628
12629 {
12630 .vendor = "PMC",
Steven Honeyman81a8fb72015-06-02 22:32:24 +000012631 .name = "Pm25LQ020",
12632 .bustype = BUS_SPI,
12633 .manufacture_id = PMC_ID,
12634 .model_id = PMC_PM25LQ020,
12635 .total_size = 256,
12636 .page_size = 256,
12637 /* OTP: 256B total; read 0x4B, write 0xB1 */
12638 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12639 .tested = TEST_UNTESTED,
12640 .probe = probe_spi_rdid,
12641 .probe_timing = TIMING_ZERO,
12642 .block_erasers =
12643 {
12644 {
12645 .eraseblocks = { {4 * 1024, 64} },
12646 .block_erase = spi_block_erase_20,
12647 }, {
12648 .eraseblocks = { {4 * 1024, 64} },
12649 .block_erase = spi_block_erase_d7,
12650 }, {
12651 .eraseblocks = { {64 * 1024, 4} },
12652 .block_erase = spi_block_erase_d8,
12653 }, {
12654 .eraseblocks = { {256 * 1024, 1} },
12655 .block_erase = spi_block_erase_60,
12656 }, {
12657 .eraseblocks = { {256 * 1024, 1} },
12658 .block_erase = spi_block_erase_c7,
12659 }
12660 },
12661 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
12662 .unlock = spi_disable_blockprotect_bp3_srwd,
12663 .write = spi_chip_write_256,
12664 .read = spi_chip_read,
12665 .voltage = {2300, 3600},
12666 },
12667
12668 {
12669 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012670 .name = "Pm25LQ032C",
12671 .bustype = BUS_SPI,
12672 .manufacture_id = PMC_ID,
12673 .model_id = PMC_PM25LQ032C,
12674 .total_size = 4096,
12675 .page_size = 256,
12676 /* OTP: 64B total; read 0x4B, write 0xB1 */
12677 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12678 .tested = TEST_OK_PREW,
12679 .probe = probe_spi_rdid,
12680 .probe_timing = TIMING_ZERO,
12681 .block_erasers =
12682 {
12683 {
12684 .eraseblocks = { {4 * 1024, 1024} },
12685 .block_erase = spi_block_erase_20,
12686 }, {
12687 .eraseblocks = { {4 * 1024, 1024} },
12688 .block_erase = spi_block_erase_d7,
12689 }, {
12690 .eraseblocks = { {64 * 1024, 64} },
12691 .block_erase = spi_block_erase_d8,
12692 }, {
12693 .eraseblocks = { {4096 * 1024, 1} },
12694 .block_erase = spi_block_erase_60,
12695 }, {
12696 .eraseblocks = { {4096 * 1024, 1} },
12697 .block_erase = spi_block_erase_c7,
12698 }
12699 },
12700 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
12701 .unlock = spi_disable_blockprotect_bp3_srwd,
12702 .write = spi_chip_write_256,
12703 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12704 .voltage = {2700, 3600},
12705 },
12706
12707 {
12708 .vendor = "PMC",
Steven Honeyman81a8fb72015-06-02 22:32:24 +000012709 .name = "Pm25LQ040",
12710 .bustype = BUS_SPI,
12711 .manufacture_id = PMC_ID,
12712 .model_id = PMC_PM25LQ040,
12713 .total_size = 512,
12714 .page_size = 256,
12715 /* OTP: 256B total; read 0x4B, write 0xB1 */
12716 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12717 .tested = TEST_UNTESTED,
12718 .probe = probe_spi_rdid,
12719 .probe_timing = TIMING_ZERO,
12720 .block_erasers =
12721 {
12722 {
12723 .eraseblocks = { {4 * 1024, 128} },
12724 .block_erase = spi_block_erase_20,
12725 }, {
12726 .eraseblocks = { {4 * 1024, 128} },
12727 .block_erase = spi_block_erase_d7,
12728 }, {
12729 .eraseblocks = { {64 * 1024, 8} },
12730 .block_erase = spi_block_erase_d8,
12731 }, {
12732 .eraseblocks = { {512 * 1024, 1} },
12733 .block_erase = spi_block_erase_60,
12734 }, {
12735 .eraseblocks = { {512 * 1024, 1} },
12736 .block_erase = spi_block_erase_c7,
12737 }
12738 },
12739 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
12740 .unlock = spi_disable_blockprotect_bp3_srwd,
12741 .write = spi_chip_write_256,
12742 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12743 .voltage = {2300, 3600},
12744 },
12745
12746 {
12747 .vendor = "PMC",
12748 .name = "Pm25LQ080",
12749 .bustype = BUS_SPI,
12750 .manufacture_id = PMC_ID,
12751 .model_id = PMC_PM25LQ080,
12752 .total_size = 1024,
12753 .page_size = 256,
12754 /* OTP: 64B total; read 0x4B, write 0xB1 */
12755 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12756 .tested = TEST_UNTESTED,
12757 .probe = probe_spi_rdid,
12758 .probe_timing = TIMING_ZERO,
12759 .block_erasers =
12760 {
12761 {
12762 .eraseblocks = { {4 * 1024, 256} },
12763 .block_erase = spi_block_erase_20,
12764 }, {
12765 .eraseblocks = { {4 * 1024, 256} },
12766 .block_erase = spi_block_erase_d7,
12767 }, {
12768 .eraseblocks = { {64 * 1024, 16} },
12769 .block_erase = spi_block_erase_d8,
12770 }, {
12771 .eraseblocks = { {1024 * 1024, 1} },
12772 .block_erase = spi_block_erase_60,
12773 }, {
12774 .eraseblocks = { {1024 * 1024, 1} },
12775 .block_erase = spi_block_erase_c7,
12776 }
12777 },
12778 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
12779 .unlock = spi_disable_blockprotect_bp3_srwd,
12780 .write = spi_chip_write_256,
12781 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12782 .voltage = {2300, 3600},
12783 },
12784
12785 {
12786 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012787 .name = "Pm25LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012788 .bustype = BUS_SPI,
Stefan Taunerbecda742014-05-30 19:34:00 +000012789 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012790 .model_id = PMC_PM25LV010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012791 .total_size = 128,
12792 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012793 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerbecda742014-05-30 19:34:00 +000012794 .tested = TEST_OK_PREW,
12795 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000012796 .probe_timing = TIMING_ZERO,
12797 .block_erasers =
12798 {
12799 {
12800 .eraseblocks = { {4 * 1024, 32} },
12801 .block_erase = spi_block_erase_d7,
12802 }, {
12803 .eraseblocks = { {32 * 1024, 4} },
12804 .block_erase = spi_block_erase_d8,
12805 }, {
12806 .eraseblocks = { {128 * 1024, 1} },
12807 .block_erase = spi_block_erase_c7,
12808 }
12809 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012810 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000012811 .unlock = spi_disable_blockprotect,
12812 .write = spi_chip_write_256,
12813 .read = spi_chip_read, /* Fast read (0x0B) supported */
12814 .voltage = {2700, 3600},
12815 },
12816
12817 {
12818 .vendor = "PMC",
12819 .name = "Pm25LV010A",
12820 .bustype = BUS_SPI,
12821 .manufacture_id = PMC_ID,
12822 .model_id = PMC_PM25LV010,
12823 .total_size = 128,
12824 .page_size = 256,
12825 .feature_bits = FEATURE_WRSR_WREN,
12826 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012827 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012828 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000012829 .block_erasers =
12830 {
12831 {
12832 .eraseblocks = { {4 * 1024, 32} },
12833 .block_erase = spi_block_erase_d7,
12834 }, {
12835 .eraseblocks = { {32 * 1024, 4} },
12836 .block_erase = spi_block_erase_d8,
12837 }, {
12838 .eraseblocks = { {128 * 1024, 1} },
12839 .block_erase = spi_block_erase_c7,
12840 }
12841 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012842 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012843 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012844 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000012845 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +000012846 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012847 },
12848
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012849 {
12850 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012851 .name = "Pm25LV016B",
12852 .bustype = BUS_SPI,
12853 .manufacture_id = PMC_ID,
12854 .model_id = PMC_PM25LV016B,
12855 .total_size = 2048,
12856 .page_size = 256,
12857 .feature_bits = FEATURE_WRSR_WREN,
12858 .tested = TEST_UNTESTED,
12859 .probe = probe_spi_rdid,
12860 .probe_timing = TIMING_ZERO,
12861 .block_erasers =
12862 {
12863 {
12864 .eraseblocks = { {4 * 1024, 512} },
12865 .block_erase = spi_block_erase_d7,
12866 }, {
12867 .eraseblocks = { {4 * 1024, 512} },
12868 .block_erase = spi_block_erase_20,
12869 }, {
12870 .eraseblocks = { {64 * 1024, 32} },
12871 .block_erase = spi_block_erase_d8,
12872 }, {
12873 .eraseblocks = { {2 * 1024 * 1024, 1} },
12874 .block_erase = spi_block_erase_60,
12875 }, {
12876 .eraseblocks = { {2 * 1024 * 1024, 1} },
12877 .block_erase = spi_block_erase_c7,
12878 }
12879 },
12880 .printlock = spi_prettyprint_status_register_bp2_srwd,
12881 .unlock = spi_disable_blockprotect,
12882 .write = spi_chip_write_256,
12883 .read = spi_chip_read, /* Fast read (0x0B) supported */
12884 .voltage = {2700, 3600},
12885 },
12886
12887 {
12888 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012889 .name = "Pm25LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012890 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012891 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012892 .model_id = PMC_PM25LV020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012893 .total_size = 256,
12894 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012895 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012896 .tested = TEST_UNTESTED,
12897 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012898 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000012899 .block_erasers =
12900 {
12901 {
12902 .eraseblocks = { {4 * 1024, 64} },
12903 .block_erase = spi_block_erase_d7,
12904 }, {
12905 .eraseblocks = { {64 * 1024, 4} },
12906 .block_erase = spi_block_erase_d8,
12907 }, {
12908 .eraseblocks = { {256 * 1024, 1} },
12909 .block_erase = spi_block_erase_c7,
12910 }
12911 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012912 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012913 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012914 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012915 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012916 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012917 },
12918
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012919 {
12920 .vendor = "PMC",
12921 .name = "Pm25LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012922 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012923 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012924 .model_id = PMC_PM25LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012925 .total_size = 512,
12926 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012927 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +000012928 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012929 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012930 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000012931 .block_erasers =
12932 {
12933 {
12934 .eraseblocks = { {4 * 1024, 128} },
12935 .block_erase = spi_block_erase_d7,
12936 }, {
12937 .eraseblocks = { {64 * 1024, 8} },
12938 .block_erase = spi_block_erase_d8,
12939 }, {
12940 .eraseblocks = { {512 * 1024, 1} },
12941 .block_erase = spi_block_erase_c7,
12942 }
12943 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012944 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012945 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012946 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000012947 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012948 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012949 },
12950
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012951 {
12952 .vendor = "PMC",
12953 .name = "Pm25LV080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012954 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012955 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012956 .model_id = PMC_PM25LV080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012957 .total_size = 1024,
12958 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012959 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012960 .tested = TEST_UNTESTED,
12961 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012962 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000012963 .block_erasers =
12964 {
12965 {
12966 .eraseblocks = { {4 * 1024, 256} },
12967 .block_erase = spi_block_erase_d7,
12968 }, {
12969 .eraseblocks = { {4 * 1024, 256} },
12970 .block_erase = spi_block_erase_20,
12971 }, {
12972 .eraseblocks = { {64 * 1024, 16} },
12973 .block_erase = spi_block_erase_d8,
12974 }, {
12975 .eraseblocks = { {1024 * 1024, 1} },
12976 .block_erase = spi_block_erase_60,
12977 }, {
12978 .eraseblocks = { {1024 * 1024, 1} },
12979 .block_erase = spi_block_erase_c7,
12980 }
12981 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012982 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012983 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012984 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000012985 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012986 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012987 },
12988
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012989 {
12990 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012991 .name = "Pm25LV512(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012992 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +100012993 .manufacture_id = PMC_ID_NOPREFIX,
12994 .model_id = PMC_PM25LV512,
12995 .total_size = 64,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012996 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012997 .feature_bits = FEATURE_WRSR_WREN,
Alan Green1f9cc7d2019-07-01 11:10:45 +100012998 .tested = TEST_OK_PREW,
12999 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013000 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000013001 .block_erasers =
13002 {
13003 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013004 .eraseblocks = { {4 * 1024, 16} },
Sean Nelson5643c072010-01-19 03:23:07 +000013005 .block_erase = spi_block_erase_d7,
13006 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013007 .eraseblocks = { {32 * 1024, 2} },
Sean Nelson5643c072010-01-19 03:23:07 +000013008 .block_erase = spi_block_erase_d8,
13009 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013010 .eraseblocks = { {64 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +000013011 .block_erase = spi_block_erase_c7,
13012 }
13013 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100013014 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013015 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000013016 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000013017 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +000013018 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013019 },
13020
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013021 {
13022 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +000013023 .name = "Pm29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013024 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000013025 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013026 .model_id = PMC_PM29F002B,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000013027 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +000013028 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013029 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000013030 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000013031 .probe = probe_jedec,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000013032 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +000013033 .block_erasers =
13034 {
13035 {
13036 .eraseblocks = {
13037 {16 * 1024, 1},
13038 {8 * 1024, 2},
13039 {96 * 1024, 1},
13040 {128 * 1024, 1},
13041 },
Sean Nelson35727f72010-01-28 23:55:12 +000013042 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000013043 }, {
13044 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000013045 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000013046 },
13047 },
Sean Nelson35727f72010-01-28 23:55:12 +000013048 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000013049 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013050 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +000013051 },
13052
13053 {
13054 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013055 .name = "Pm29F002T",
13056 .bustype = BUS_PARALLEL,
13057 .manufacture_id = PMC_ID_NOPREFIX,
13058 .model_id = PMC_PM29F002T,
13059 .total_size = 256,
13060 .page_size = 8 * 1024,
13061 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
13062 .tested = TEST_OK_PREW,
13063 .probe = probe_jedec,
13064 .probe_timing = TIMING_FIXME,
13065 .block_erasers =
13066 {
13067 {
13068 .eraseblocks = {
13069 {128 * 1024, 1},
13070 {96 * 1024, 1},
13071 {8 * 1024, 2},
13072 {16 * 1024, 1},
13073 },
13074 .block_erase = erase_sector_jedec,
13075 }, {
13076 .eraseblocks = { {256 * 1024, 1} },
13077 .block_erase = erase_chip_block_jedec,
13078 },
13079 },
13080 .write = write_jedec_1,
13081 .read = read_memmapped,
13082 .voltage = {4500, 5500},
13083 },
13084
13085 {
13086 .vendor = "PMC",
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000013087 .name = "Pm39LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013088 .bustype = BUS_PARALLEL,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000013089 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013090 .model_id = PMC_PM39F010, /* Pm39LV010 and Pm39F010 have identical IDs but different voltage */
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000013091 .total_size = 128,
13092 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013093 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000013094 .tested = TEST_OK_PREW,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000013095 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013096 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson5643c072010-01-19 03:23:07 +000013097 .block_erasers =
13098 {
13099 {
13100 .eraseblocks = { {4 * 1024, 32} },
13101 .block_erase = erase_sector_jedec,
13102 }, {
13103 .eraseblocks = { {64 * 1024, 2} },
13104 .block_erase = erase_block_jedec,
13105 }, {
13106 .eraseblocks = { {128 * 1024, 1} },
13107 .block_erase = erase_chip_block_jedec,
13108 }
13109 },
Sean Nelson35727f72010-01-28 23:55:12 +000013110 .write = write_jedec_1,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000013111 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013112 .voltage = {2700, 3600},
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000013113 },
13114
13115 {
13116 .vendor = "PMC",
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013117 .name = "Pm39LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013118 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013119 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013120 .model_id = PMC_PM39LV020,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013121 .total_size = 256,
13122 .page_size = 4096,
13123 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
13124 .tested = TEST_UNTESTED,
13125 .probe = probe_jedec,
13126 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Alan Greenfa3fcd32019-06-27 15:41:50 +100013127 .block_erasers =
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013128 {
13129 {
13130 .eraseblocks = { {4 * 1024, 64} },
13131 .block_erase = erase_sector_jedec,
13132 }, {
13133 .eraseblocks = { {64 * 1024, 4} },
13134 .block_erase = erase_block_jedec,
13135 }, {
13136 .eraseblocks = { {256 * 1024, 1} },
13137 .block_erase = erase_chip_block_jedec,
13138 }
13139 },
13140 .write = write_jedec_1,
13141 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013142 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013143 },
13144
13145 {
13146 .vendor = "PMC",
13147 .name = "Pm39LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013148 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013149 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013150 .model_id = PMC_PM39LV040,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013151 .total_size = 512,
13152 .page_size = 4096,
13153 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000013154 .tested = TEST_OK_PR,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013155 .probe = probe_jedec,
13156 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Alan Greenfa3fcd32019-06-27 15:41:50 +100013157 .block_erasers =
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013158 {
13159 {
13160 .eraseblocks = { {4 * 1024, 128} },
13161 .block_erase = erase_sector_jedec,
13162 }, {
13163 .eraseblocks = { {64 * 1024, 8} },
13164 .block_erase = erase_block_jedec,
13165 }, {
13166 .eraseblocks = { {512 * 1024, 1} },
13167 .block_erase = erase_chip_block_jedec,
13168 }
13169 },
13170 .write = write_jedec_1,
13171 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013172 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013173 },
Kyösti Mälkkiedab1d22012-05-20 23:32:33 +000013174
13175 {
13176 .vendor = "PMC",
13177 .name = "Pm39LV512",
13178 .bustype = BUS_PARALLEL,
13179 .manufacture_id = PMC_ID_NOPREFIX,
13180 .model_id = PMC_PM39LV512,
13181 .total_size = 64,
13182 .page_size = 4096,
13183 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
13184 .tested = TEST_OK_PREW,
13185 .probe = probe_jedec,
13186 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
13187 .block_erasers =
13188 {
13189 {
13190 .eraseblocks = { {4 * 1024, 16} },
13191 .block_erase = erase_sector_jedec,
13192 }, {
13193 .eraseblocks = { {64 * 1024, 1} },
13194 .block_erase = erase_block_jedec,
13195 }, {
13196 .eraseblocks = { {64 * 1024, 1} },
13197 .block_erase = erase_chip_block_jedec,
13198 }
13199 },
13200 .write = write_jedec_1,
13201 .read = read_memmapped,
13202 .voltage = {2700, 3600},
13203 },
13204
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013205 {
13206 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013207 .name = "Pm49FL002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013208 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013209 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013210 .model_id = PMC_PM49FL002,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013211 .total_size = 256,
13212 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013213 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013214 .tested = TEST_OK_PR,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000013215 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013216 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +000013217 .block_erasers =
13218 {
13219 {
13220 .eraseblocks = { {4 * 1024, 64} },
13221 .block_erase = erase_sector_jedec,
13222 }, {
13223 .eraseblocks = { {16 * 1024, 16} },
13224 .block_erase = erase_block_jedec,
13225 }, {
13226 .eraseblocks = { {256 * 1024, 1} },
13227 .block_erase = erase_chip_block_jedec,
13228 }
13229 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013230 .unlock = unlock_regspace2_uniform_32k,
Sean Nelson36172342010-02-27 18:01:15 +000013231 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013232 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013233 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013234 },
13235
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013236 {
13237 .vendor = "PMC",
13238 .name = "Pm49FL004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013239 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013240 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013241 .model_id = PMC_PM49FL004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013242 .total_size = 512,
13243 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013244 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner74dc73f2015-03-01 22:04:38 +000013245 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000013246 .probe = probe_jedec,
Stefan Tauner74dc73f2015-03-01 22:04:38 +000013247 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000013248 .block_erasers =
13249 {
13250 {
13251 .eraseblocks = { {4 * 1024, 128} },
13252 .block_erase = erase_sector_jedec,
13253 }, {
13254 .eraseblocks = { {64 * 1024, 8} },
13255 .block_erase = erase_block_jedec,
13256 }, {
13257 .eraseblocks = { {512 * 1024, 1} },
13258 .block_erase = erase_chip_block_jedec,
13259 }
13260 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013261 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson36172342010-02-27 18:01:15 +000013262 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013263 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013264 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013265 },
13266
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013267 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013268 .vendor = "SST",
Idwer Volleringf3607d12014-05-07 15:25:04 +000013269 .name = "SST25LF020A",
13270 .bustype = BUS_SPI,
13271 .manufacture_id = SST_ID,
13272 .model_id = SST_SST25VF020_REMS,
13273 .total_size = 256,
13274 .page_size = 256,
13275 .feature_bits = FEATURE_WRSR_EWSR,
13276 .tested = TEST_OK_PREW,
13277 .probe = probe_spi_rems,
13278 .probe_timing = TIMING_ZERO,
13279 .block_erasers =
13280 {
13281 {
13282 .eraseblocks = { {4 * 1024, 64} },
13283 .block_erase = spi_block_erase_20,
13284 }, {
13285 .eraseblocks = { {32 * 1024, 8} },
13286 .block_erase = spi_block_erase_52,
13287 }, {
13288 .eraseblocks = { {256 * 1024, 1} },
13289 .block_erase = spi_block_erase_60,
13290 },
13291 },
13292 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
13293 .unlock = spi_disable_blockprotect,
13294 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13295 .read = spi_chip_read, /* Fast read (0x0B) supported */
13296 .voltage = {2700, 3600},
13297 },
13298
13299 {
13300 .vendor = "SST",
Zeus Castro33670ba2011-08-17 09:50:11 +000013301 .name = "SST25LF040A",
13302 .bustype = BUS_SPI,
13303 .manufacture_id = SST_ID,
13304 .model_id = SST_SST25VF040_REMS,
13305 .total_size = 512,
13306 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000013307 .feature_bits = FEATURE_WRSR_EWSR,
Uwe Hermann4335ec82011-09-07 20:20:25 +000013308 .tested = TEST_OK_PREW,
Zeus Castro33670ba2011-08-17 09:50:11 +000013309 .probe = probe_spi_res2,
13310 .probe_timing = TIMING_ZERO,
13311 .block_erasers =
13312 {
13313 {
13314 .eraseblocks = { {4 * 1024, 128} },
13315 .block_erase = spi_block_erase_20,
13316 }, {
13317 .eraseblocks = { {32 * 1024, 16} },
13318 .block_erase = spi_block_erase_52,
13319 }, {
13320 .eraseblocks = { {512 * 1024, 1} },
13321 .block_erase = spi_block_erase_60,
13322 },
13323 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013324 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +000013325 .unlock = spi_disable_blockprotect,
13326 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13327 .read = spi_chip_read,
13328 .voltage = {3000, 3600},
13329 },
13330
13331 {
13332 .vendor = "SST",
Stefan Taunere34e3e82013-01-01 00:06:51 +000013333 .name = "SST25LF080(A)",
Zeus Castro33670ba2011-08-17 09:50:11 +000013334 .bustype = BUS_SPI,
13335 .manufacture_id = SST_ID,
13336 .model_id = SST_SST25VF080_REMS,
13337 .total_size = 1024,
13338 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000013339 .feature_bits = FEATURE_WRSR_EITHER,
Zeus Castro33670ba2011-08-17 09:50:11 +000013340 .tested = TEST_UNTESTED,
13341 .probe = probe_spi_res2,
13342 .probe_timing = TIMING_ZERO,
13343 .block_erasers =
13344 {
13345 {
13346 .eraseblocks = { {4 * 1024, 256} },
13347 .block_erase = spi_block_erase_20,
13348 }, {
13349 .eraseblocks = { {32 * 1024, 32} },
13350 .block_erase = spi_block_erase_52,
13351 }, {
13352 .eraseblocks = { {1024 * 1024, 1} },
13353 .block_erase = spi_block_erase_60,
13354 },
13355 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013356 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +000013357 .unlock = spi_disable_blockprotect,
13358 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13359 .read = spi_chip_read,
13360 .voltage = {3000, 3600},
13361 },
13362
13363 {
13364 .vendor = "SST",
Stefan Tauner6697f712014-08-06 15:09:15 +000013365 .name = "SST25VF010(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013366 .bustype = BUS_SPI,
Mark Marshall90021f22010-12-03 14:48:11 +000013367 .manufacture_id = SST_ID,
13368 .model_id = SST_SST25VF010_REMS,
13369 .total_size = 128,
13370 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000013371 .feature_bits = FEATURE_WRSR_EWSR,
Mark Marshall90021f22010-12-03 14:48:11 +000013372 .tested = TEST_OK_PREW,
13373 .probe = probe_spi_rems,
13374 .probe_timing = TIMING_ZERO,
13375 .block_erasers =
13376 {
13377 {
13378 .eraseblocks = { {4 * 1024, 32} },
13379 .block_erase = spi_block_erase_20,
13380 }, {
13381 .eraseblocks = { {32 * 1024, 4} },
13382 .block_erase = spi_block_erase_52,
13383 }, {
Cory Henderson370f5822013-10-19 23:09:16 +000013384 .eraseblocks = { {32 * 1024, 4} },
Stefan Tauner6697f712014-08-06 15:09:15 +000013385 .block_erase = spi_block_erase_d8, /* Supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000013386 }, {
Mark Marshall90021f22010-12-03 14:48:11 +000013387 .eraseblocks = { {128 * 1024, 1} },
13388 .block_erase = spi_block_erase_60,
Cory Henderson370f5822013-10-19 23:09:16 +000013389 }, {
13390 .eraseblocks = { {128 * 1024, 1} },
Stefan Tauner6697f712014-08-06 15:09:15 +000013391 .block_erase = spi_block_erase_c7, /* Supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000013392 },
13393 },
13394 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
13395 .unlock = spi_disable_blockprotect,
13396 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
Stefan Tauner6697f712014-08-06 15:09:15 +000013397 .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000013398 .voltage = {2700, 3600},
13399 },
13400
13401 {
13402 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013403 .name = "SST25VF016B",
13404 .bustype = BUS_SPI,
13405 .manufacture_id = SST_ID,
13406 .model_id = SST_SST25VF016B,
13407 .total_size = 2048,
13408 .page_size = 256,
13409 .feature_bits = FEATURE_WRSR_EITHER,
13410 .tested = TEST_OK_PREW,
13411 .probe = probe_spi_rdid,
13412 .probe_timing = TIMING_ZERO,
13413 .block_erasers =
13414 {
13415 {
13416 .eraseblocks = { {4 * 1024, 512} },
13417 .block_erase = spi_block_erase_20,
13418 }, {
13419 .eraseblocks = { {32 * 1024, 64} },
13420 .block_erase = spi_block_erase_52,
13421 }, {
13422 .eraseblocks = { {64 * 1024, 32} },
13423 .block_erase = spi_block_erase_d8,
13424 }, {
13425 .eraseblocks = { {2 * 1024 * 1024, 1} },
13426 .block_erase = spi_block_erase_60,
13427 }, {
13428 .eraseblocks = { {2 * 1024 * 1024, 1} },
13429 .block_erase = spi_block_erase_c7,
13430 },
13431 },
13432 .printlock = spi_prettyprint_status_register_sst25vf016,
13433 .unlock = spi_disable_blockprotect,
13434 .write = spi_aai_write,
13435 .read = spi_chip_read,
13436 .voltage = {2700, 3600},
13437 },
13438
13439 {
13440 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +000013441 .name = "SST25VF020",
13442 .bustype = BUS_SPI,
13443 .manufacture_id = SST_ID,
13444 .model_id = SST_SST25VF020_REMS,
13445 .total_size = 256,
13446 .page_size = 256,
13447 .feature_bits = FEATURE_WRSR_EWSR,
13448 .tested = TEST_UNTESTED,
13449 .probe = probe_spi_rems,
13450 .probe_timing = TIMING_ZERO,
13451 .block_erasers =
13452 {
13453 {
13454 .eraseblocks = { {4 * 1024, 64} },
13455 .block_erase = spi_block_erase_20,
13456 }, {
13457 .eraseblocks = { {32 * 1024, 8} },
13458 .block_erase = spi_block_erase_52,
13459 }, {
13460 .eraseblocks = { {256 * 1024, 1} },
13461 .block_erase = spi_block_erase_60,
13462 },
13463 },
13464 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
13465 .unlock = spi_disable_blockprotect,
13466 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13467 .read = spi_chip_read, /* only */
13468 .voltage = {2700, 3600},
13469 },
13470
13471 {
13472 .vendor = "SST",
13473 .name = "SST25VF020B",
13474 .bustype = BUS_SPI,
13475 .manufacture_id = SST_ID,
13476 .model_id = SST_SST25VF020B,
13477 .total_size = 256,
13478 .page_size = 256,
13479 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000013480 .tested = TEST_OK_PREW,
Cory Henderson370f5822013-10-19 23:09:16 +000013481 .probe = probe_spi_rdid,
13482 .probe_timing = TIMING_ZERO,
13483 .block_erasers =
13484 {
13485 {
13486 .eraseblocks = { {4 * 1024, 64} },
13487 .block_erase = spi_block_erase_20,
13488 }, {
13489 .eraseblocks = { {32 * 1024, 8} },
13490 .block_erase = spi_block_erase_52,
13491 }, {
13492 .eraseblocks = { {64 * 1024, 4} },
13493 .block_erase = spi_block_erase_d8,
13494 }, {
13495 .eraseblocks = { {256 * 1024, 1} },
13496 .block_erase = spi_block_erase_60,
13497 }, {
13498 .eraseblocks = { {256 * 1024, 1} },
13499 .block_erase = spi_block_erase_c7,
13500 },
13501 },
13502 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 and 2nd SR */
13503 .unlock = spi_disable_blockprotect, /* FIXME: 2nd SR */
13504 .write = spi_aai_write, /* AAI supported (0xAD) */
13505 .read = spi_chip_read, /* Fast read (0x0B) supported */
13506 .voltage = {2700, 3600},
13507 },
13508
13509 {
13510 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013511 .name = "SST25VF032B",
13512 .bustype = BUS_SPI,
13513 .manufacture_id = SST_ID,
13514 .model_id = SST_SST25VF032B,
13515 .total_size = 4096,
13516 .page_size = 256,
13517 .feature_bits = FEATURE_WRSR_EWSR,
13518 .tested = TEST_OK_PREW,
13519 .probe = probe_spi_rdid,
13520 .probe_timing = TIMING_ZERO,
13521 .block_erasers =
13522 {
13523 {
13524 .eraseblocks = { {4 * 1024, 1024} },
13525 .block_erase = spi_block_erase_20,
13526 }, {
13527 .eraseblocks = { {32 * 1024, 128} },
13528 .block_erase = spi_block_erase_52,
13529 }, {
13530 .eraseblocks = { {64 * 1024, 64} },
13531 .block_erase = spi_block_erase_d8,
13532 }, {
13533 .eraseblocks = { {4 * 1024 * 1024, 1} },
13534 .block_erase = spi_block_erase_60,
13535 }, {
13536 .eraseblocks = { {4 * 1024 * 1024, 1} },
13537 .block_erase = spi_block_erase_c7,
13538 },
13539 },
13540 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
13541 .unlock = spi_disable_blockprotect,
13542 .write = spi_aai_write,
13543 .read = spi_chip_read,
13544 .voltage = {2700, 3600},
13545 },
13546
13547 {
13548 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +000013549 .name = "SST25VF040",
13550 .bustype = BUS_SPI,
13551 .manufacture_id = SST_ID,
13552 .model_id = SST_SST25VF040_REMS,
13553 .total_size = 512,
13554 .page_size = 256,
13555 .feature_bits = FEATURE_WRSR_EWSR,
13556 .tested = TEST_OK_PR,
13557 .probe = probe_spi_rems,
13558 .probe_timing = TIMING_ZERO,
13559 .block_erasers =
13560 {
13561 {
13562 .eraseblocks = { {4 * 1024, 128} },
13563 .block_erase = spi_block_erase_20,
13564 }, {
13565 .eraseblocks = { {32 * 1024, 16} },
13566 .block_erase = spi_block_erase_52,
13567 }, {
13568 .eraseblocks = { {512 * 1024, 1} },
13569 .block_erase = spi_block_erase_60,
Mark Marshall90021f22010-12-03 14:48:11 +000013570 },
13571 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013572 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Mark Marshall90021f22010-12-03 14:48:11 +000013573 .unlock = spi_disable_blockprotect,
Cory Henderson370f5822013-10-19 23:09:16 +000013574 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13575 .read = spi_chip_read,
13576 .voltage = {2700, 3600},
13577 },
13578
13579 {
13580 .vendor = "SST",
13581 .name = "SST25VF040B",
13582 .bustype = BUS_SPI,
13583 .manufacture_id = SST_ID,
13584 .model_id = SST_SST25VF040B,
13585 .total_size = 512,
13586 .page_size = 256,
13587 .feature_bits = FEATURE_WRSR_EWSR,
13588 .tested = TEST_OK_PREW,
13589 .probe = probe_spi_rdid,
13590 .probe_timing = TIMING_ZERO,
13591 .block_erasers =
13592 {
13593 {
13594 .eraseblocks = { {4 * 1024, 128} },
13595 .block_erase = spi_block_erase_20,
13596 }, {
13597 .eraseblocks = { {32 * 1024, 16} },
13598 .block_erase = spi_block_erase_52,
13599 }, {
13600 .eraseblocks = { {64 * 1024, 8} },
13601 .block_erase = spi_block_erase_d8,
13602 }, {
13603 .eraseblocks = { {512 * 1024, 1} },
13604 .block_erase = spi_block_erase_60,
13605 }, {
13606 .eraseblocks = { {512 * 1024, 1} },
13607 .block_erase = spi_block_erase_c7,
13608 },
13609 },
13610 .printlock = spi_prettyprint_status_register_sst25vf040b,
13611 .unlock = spi_disable_blockprotect,
13612 .write = spi_aai_write, /* AAI supported (0xAD) */
13613 .read = spi_chip_read, /* Fast read (0x0B) supported */
13614 .voltage = {2700, 3600},
13615 },
13616
13617 {
13618 .vendor = "SST",
13619 .name = "SST25VF040B.REMS",
13620 .bustype = BUS_SPI,
13621 .manufacture_id = SST_ID,
13622 .model_id = SST_SST25VF040B_REMS,
13623 .total_size = 512,
13624 .page_size = 256,
13625 .feature_bits = FEATURE_WRSR_EWSR,
13626 .tested = TEST_OK_PREW,
13627 .probe = probe_spi_rems,
13628 .probe_timing = TIMING_ZERO,
13629 .block_erasers =
13630 {
13631 {
13632 .eraseblocks = { {4 * 1024, 128} },
13633 .block_erase = spi_block_erase_20,
13634 }, {
13635 .eraseblocks = { {32 * 1024, 16} },
13636 .block_erase = spi_block_erase_52,
13637 }, {
13638 .eraseblocks = { {64 * 1024, 8} },
13639 .block_erase = spi_block_erase_d8,
13640 }, {
13641 .eraseblocks = { {512 * 1024, 1} },
13642 .block_erase = spi_block_erase_60,
13643 }, {
13644 .eraseblocks = { {512 * 1024, 1} },
13645 .block_erase = spi_block_erase_c7,
13646 },
13647 },
13648 .printlock = spi_prettyprint_status_register_sst25vf040b,
13649 .unlock = spi_disable_blockprotect,
13650 .write = spi_aai_write,
13651 .read = spi_chip_read,
13652 .voltage = {2700, 3600},
13653 },
13654
13655 {
13656 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013657 .name = "SST25VF064C",
Ben Gardnerbcf61092015-11-22 02:23:31 +000013658 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013659 .manufacture_id = SST_ID,
13660 .model_id = SST_SST25VF064C,
13661 .total_size = 8192,
Ben Gardnerbcf61092015-11-22 02:23:31 +000013662 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013663 .feature_bits = FEATURE_WRSR_EWSR,
Ben Gardnerbcf61092015-11-22 02:23:31 +000013664 .tested = TEST_OK_PREW,
13665 .probe = probe_spi_rdid,
13666 .probe_timing = TIMING_ZERO,
13667 .block_erasers =
13668 {
13669 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013670 .eraseblocks = { {4 * 1024, 2048} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000013671 .block_erase = spi_block_erase_20,
13672 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013673 .eraseblocks = { {32 * 1024, 256} },
13674 .block_erase = spi_block_erase_52,
13675 }, {
13676 .eraseblocks = { {64 * 1024, 128} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000013677 .block_erase = spi_block_erase_d8,
13678 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013679 .eraseblocks = { {8 * 1024 * 1024, 1} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000013680 .block_erase = spi_block_erase_60,
13681 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013682 .eraseblocks = { {8 * 1024 * 1024, 1} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000013683 .block_erase = spi_block_erase_c7,
13684 },
13685 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100013686 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
13687 .unlock = spi_disable_blockprotect,
Ben Gardnerbcf61092015-11-22 02:23:31 +000013688 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013689 .read = spi_chip_read,
13690 .voltage = {2700, 3600},
Ben Gardnerbcf61092015-11-22 02:23:31 +000013691 },
13692
13693 {
13694 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +000013695 .name = "SST25VF080B",
13696 .bustype = BUS_SPI,
13697 .manufacture_id = SST_ID,
13698 .model_id = SST_SST25VF080B,
13699 .total_size = 1024,
13700 .page_size = 256,
13701 .feature_bits = FEATURE_WRSR_EWSR,
13702 .tested = TEST_OK_PREW,
13703 .probe = probe_spi_rdid,
13704 .probe_timing = TIMING_ZERO,
13705 .block_erasers =
13706 {
13707 {
13708 .eraseblocks = { {4 * 1024, 256} },
13709 .block_erase = spi_block_erase_20,
13710 }, {
13711 .eraseblocks = { {32 * 1024, 32} },
13712 .block_erase = spi_block_erase_52,
13713 }, {
13714 .eraseblocks = { {64 * 1024, 16} },
13715 .block_erase = spi_block_erase_d8,
13716 }, {
13717 .eraseblocks = { {1024 * 1024, 1} },
13718 .block_erase = spi_block_erase_60,
13719 }, {
13720 .eraseblocks = { {1024 * 1024, 1} },
13721 .block_erase = spi_block_erase_c7,
13722 },
13723 },
13724 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
13725 .unlock = spi_disable_blockprotect,
13726 .write = spi_aai_write,
Mark Marshall90021f22010-12-03 14:48:11 +000013727 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000013728 .voltage = {2700, 3600},
Mark Marshall90021f22010-12-03 14:48:11 +000013729 },
13730
13731 {
13732 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013733 .name = "SST25VF512(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013734 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013735 .manufacture_id = SST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013736 .model_id = SST_SST25VF512_REMS,
13737 .total_size = 64,
13738 .page_size = 256,
13739 .feature_bits = FEATURE_WRSR_EWSR,
13740 .tested = TEST_OK_PREW,
13741 .probe = probe_spi_rems,
13742 .probe_timing = TIMING_ZERO,
13743 .block_erasers =
13744 {
13745 {
13746 .eraseblocks = { {4 * 1024, 16} },
13747 .block_erase = spi_block_erase_20,
13748 }, {
13749 .eraseblocks = { {32 * 1024, 2} },
13750 .block_erase = spi_block_erase_52,
13751 }, {
13752 .eraseblocks = { {32 * 1024, 2} },
13753 .block_erase = spi_block_erase_d8, /* Supported by SST25VF512A only */
13754 }, {
13755 .eraseblocks = { {64 * 1024, 1} },
13756 .block_erase = spi_block_erase_60,
13757 }, {
13758 .eraseblocks = { {64 * 1024, 1} },
13759 .block_erase = spi_block_erase_c7, /* Supported by SST25VF512A only */
13760 },
13761 },
13762 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
13763 .unlock = spi_disable_blockprotect,
13764 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13765 .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF512A only */
13766 .voltage = {2700, 3600},
13767 },
13768
13769 {
13770 .vendor = "SST",
13771 .name = "SST25WF010",
13772 .bustype = BUS_SPI,
13773 .manufacture_id = SST_ID,
13774 .model_id = SST_SST25WF010,
13775 .total_size = 128,
13776 .page_size = 256,
13777 .feature_bits = FEATURE_WRSR_EITHER,
13778 .tested = TEST_UNTESTED,
13779 .probe = probe_spi_rdid,
13780 .probe_timing = TIMING_ZERO,
13781 .block_erasers =
13782 {
13783 {
13784 .eraseblocks = { {4 * 1024, 32} },
13785 .block_erase = spi_block_erase_20,
13786 }, {
13787 .eraseblocks = { {32 * 1024, 4} },
13788 .block_erase = spi_block_erase_52,
13789 }, {
13790 .eraseblocks = { {1024 * 128, 1} },
13791 .block_erase = spi_block_erase_60,
13792 }, {
13793 .eraseblocks = { {1024 * 128, 1} },
13794 .block_erase = spi_block_erase_c7,
13795 },
13796 },
13797 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
13798 .unlock = spi_disable_blockprotect_bp2_srwd,
13799 .write = spi_aai_write,
13800 .read = spi_chip_read, /* Fast read (0x0B) supported */
13801 .voltage = {1650, 1950},
13802 },
13803
13804 {
13805 .vendor = "SST",
13806 .name = "SST25WF020",
13807 .bustype = BUS_SPI,
13808 .manufacture_id = SST_ID,
13809 .model_id = SST_SST25WF020,
13810 .total_size = 256,
13811 .page_size = 256,
13812 .feature_bits = FEATURE_WRSR_EITHER,
13813 .tested = TEST_UNTESTED,
13814 .probe = probe_spi_rdid,
13815 .probe_timing = TIMING_ZERO,
13816 .block_erasers =
13817 {
13818 {
13819 .eraseblocks = { {4 * 1024, 64} },
13820 .block_erase = spi_block_erase_20,
13821 }, {
13822 .eraseblocks = { {32 * 1024, 8} },
13823 .block_erase = spi_block_erase_52,
13824 }, {
13825 .eraseblocks = { {64 * 1024, 4} },
13826 .block_erase = spi_block_erase_d8,
13827 }, {
13828 .eraseblocks = { {1024 * 256, 1} },
13829 .block_erase = spi_block_erase_60,
13830 }, {
13831 .eraseblocks = { {1024 * 256, 1} },
13832 .block_erase = spi_block_erase_c7,
13833 },
13834 },
13835 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
13836 .unlock = spi_disable_blockprotect_bp2_srwd,
13837 .write = spi_aai_write,
13838 .read = spi_chip_read, /* Fast read (0x0B) supported */
13839 .voltage = {1650, 1950},
13840 },
13841
13842 {
13843 .vendor = "SST",
13844 .name = "SST25WF020A",
13845 .bustype = BUS_SPI,
13846 .manufacture_id = SANYO_ID, /* See flashchips.h */
13847 .model_id = SST_SST25WF020A,
13848 .total_size = 256,
13849 .page_size = 256,
13850 .feature_bits = FEATURE_WRSR_WREN,
13851 .tested = TEST_UNTESTED,
13852 .probe = probe_spi_rdid,
13853 .probe_timing = TIMING_ZERO,
13854 .block_erasers =
13855 {
13856 {
13857 .eraseblocks = { {4 * 1024, 64} },
13858 .block_erase = spi_block_erase_20,
13859 }, {
13860 .eraseblocks = { {64 * 1024, 4} },
13861 .block_erase = spi_block_erase_d8,
13862 }, {
13863 .eraseblocks = { {256 * 1024, 1} },
13864 .block_erase = spi_block_erase_60,
13865 }, {
13866 .eraseblocks = { {256 * 1024, 1} },
13867 .block_erase = spi_block_erase_c7,
13868 },
13869 },
13870 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
13871 .unlock = spi_disable_blockprotect_bp2_srwd,
13872 .write = spi_chip_write_256,
13873 .read = spi_chip_read, /* Fast read (0x0B) supported */
13874 .voltage = {1650, 1950},
13875 },
13876
13877 {
13878 .vendor = "SST",
13879 .name = "SST25WF040",
13880 .bustype = BUS_SPI,
13881 .manufacture_id = SST_ID,
13882 .model_id = SST_SST25WF040,
13883 .total_size = 512,
13884 .page_size = 256,
13885 .feature_bits = FEATURE_WRSR_EITHER,
13886 .tested = TEST_UNTESTED,
13887 .probe = probe_spi_rdid,
13888 .probe_timing = TIMING_ZERO,
13889 .block_erasers =
13890 {
13891 {
13892 .eraseblocks = { {4 * 1024, 128} },
13893 .block_erase = spi_block_erase_20,
13894 }, {
13895 .eraseblocks = { {32 * 1024, 16} },
13896 .block_erase = spi_block_erase_52,
13897 }, {
13898 .eraseblocks = { {64 * 1024, 8} },
13899 .block_erase = spi_block_erase_d8,
13900 }, {
13901 .eraseblocks = { {1024 * 512, 1} },
13902 .block_erase = spi_block_erase_60,
13903 }, {
13904 .eraseblocks = { {1024 * 512, 1} },
13905 .block_erase = spi_block_erase_c7,
13906 },
13907 },
13908 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
13909 .unlock = spi_disable_blockprotect_bp2_srwd,
13910 .write = spi_aai_write,
13911 .read = spi_chip_read, /* Fast read (0x0B) supported */
13912 .voltage = {1650, 1950},
13913 },
13914
13915 {
13916 .vendor = "SST",
13917 .name = "SST25WF040B",
13918 .bustype = BUS_SPI,
13919 .manufacture_id = SANYO_ID, /* See flashchips.h */
13920 .model_id = SST_SST25WF040B,
13921 .total_size = 512,
13922 .page_size = 256,
13923 .feature_bits = FEATURE_WRSR_WREN,
13924 .tested = TEST_UNTESTED,
13925 .probe = probe_spi_rdid,
13926 .probe_timing = TIMING_ZERO,
13927 .block_erasers =
13928 {
13929 {
13930 .eraseblocks = { {4 * 1024, 128} },
13931 .block_erase = spi_block_erase_20,
13932 }, {
13933 .eraseblocks = { {64 * 1024, 8} },
13934 .block_erase = spi_block_erase_d8,
13935 }, {
13936 .eraseblocks = { {512 * 1024, 1} },
13937 .block_erase = spi_block_erase_60,
13938 }, {
13939 .eraseblocks = { {512 * 1024, 1} },
13940 .block_erase = spi_block_erase_c7,
13941 },
13942 },
13943 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
13944 .unlock = spi_disable_blockprotect_bp2_srwd,
13945 .write = spi_chip_write_256,
13946 .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */
13947 .voltage = {1650, 1950},
13948 },
13949
13950 {
13951 .vendor = "SST",
13952 .name = "SST25WF080",
13953 .bustype = BUS_SPI,
13954 .manufacture_id = SST_ID,
13955 .model_id = SST_SST25WF080,
13956 .total_size = 1024,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013957 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000013958 .feature_bits = FEATURE_WRSR_EITHER,
Mark Marshall90021f22010-12-03 14:48:11 +000013959 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013960 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013961 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013962 .block_erasers =
13963 {
13964 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013965 .eraseblocks = { {4 * 1024, 256} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013966 .block_erase = spi_block_erase_20,
13967 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013968 .eraseblocks = { {32 * 1024, 32} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013969 .block_erase = spi_block_erase_52,
13970 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013971 .eraseblocks = { {64 * 1024, 16} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013972 .block_erase = spi_block_erase_d8,
13973 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013974 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013975 .block_erase = spi_block_erase_60,
13976 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013977 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013978 .block_erase = spi_block_erase_c7,
13979 },
13980 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100013981 .printlock = spi_prettyprint_status_register_sst25, /* *does* have a BP3 but it is useless */
13982 .unlock = spi_disable_blockprotect_bp3_srwd,
Joshua Roys87955bf2011-08-01 18:39:28 +000013983 .write = spi_aai_write,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013984 .read = spi_chip_read, /* Fast read (0x0B) supported */
13985 .voltage = {1650, 1950},
FENG yu ningff692fb2008-12-08 18:15:10 +000013986 },
13987
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013988 {
13989 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013990 .name = "SST25WF080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013991 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013992 .manufacture_id = SANYO_ID, /* See flashchips.h */
13993 .model_id = SST_SST25WF080B,
13994 .total_size = 1024,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013995 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013996 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerfcf6a8c2011-05-18 01:32:00 +000013997 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013998 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013999 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014000 .block_erasers =
14001 {
14002 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014003 .eraseblocks = { {4 * 1024, 256} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014004 .block_erase = spi_block_erase_20,
14005 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014006 .eraseblocks = { {64 * 1024, 16} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014007 .block_erase = spi_block_erase_d8,
14008 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014009 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014010 .block_erase = spi_block_erase_60,
14011 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014012 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014013 .block_erase = spi_block_erase_c7,
14014 },
14015 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100014016 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
14017 .unlock = spi_disable_blockprotect_bp2_srwd,
Helge Wagner1db7a442010-10-05 22:29:08 +000014018 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100014019 .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */
14020 .voltage = {1650, 1950},
14021 },
14022
14023 {
14024 .vendor = "SST",
14025 .name = "SST25WF512",
14026 .bustype = BUS_SPI,
14027 .manufacture_id = SST_ID,
14028 .model_id = SST_SST25WF512,
14029 .total_size = 64,
14030 .page_size = 256,
14031 .feature_bits = FEATURE_WRSR_EITHER,
14032 .tested = TEST_UNTESTED,
14033 .probe = probe_spi_rdid,
14034 .probe_timing = TIMING_ZERO,
14035 .block_erasers =
14036 {
14037 {
14038 .eraseblocks = { {4 * 1024, 16} },
14039 .block_erase = spi_block_erase_20,
14040 }, {
14041 .eraseblocks = { {32 * 1024, 2} },
14042 .block_erase = spi_block_erase_52,
14043 }, {
14044 .eraseblocks = { {1024 * 64, 1} },
14045 .block_erase = spi_block_erase_60,
14046 }, {
14047 .eraseblocks = { {1024 * 64, 1} },
14048 .block_erase = spi_block_erase_c7,
14049 },
14050 },
14051 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
14052 .unlock = spi_disable_blockprotect_bp2_srwd,
14053 .write = spi_aai_write,
14054 .read = spi_chip_read, /* Fast read (0x0B) supported */
14055 .voltage = {1650, 1950},
Ed Swierk86f4e6d2010-07-21 15:02:22 +000014056 },
14057
14058 {
14059 .vendor = "SST",
Wei Hu25584de2018-04-30 14:02:08 -070014060 .name = "SST26VF016B(A)",
14061 .bustype = BUS_SPI,
14062 .manufacture_id = SST_ID,
14063 .model_id = SST_SST26VF016B,
14064 .total_size = 2048,
14065 .page_size = 256,
14066 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
14067 .tested = TEST_OK_PREW,
14068 .probe = probe_spi_rdid,
14069 .probe_timing = TIMING_ZERO,
14070 .block_erasers =
14071 {
14072 {
14073 .eraseblocks = { {4 * 1024, 512} },
14074 .block_erase = spi_block_erase_20,
14075 }, {
14076 .eraseblocks = {
14077 {8 * 1024, 4},
14078 {32 * 1024, 1},
14079 {64 * 1024, 30},
14080 {32 * 1024, 1},
14081 {8 * 1024, 4},
14082 },
14083 .block_erase = spi_block_erase_d8,
14084 }, {
14085 .eraseblocks = { {2 * 1024 * 1024, 1} },
14086 .block_erase = spi_block_erase_c7,
14087 },
14088 },
14089 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14090 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
14091 .write = spi_chip_write_256, /* Multi I/O supported */
14092 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
14093 .voltage = {2700, 3600},
14094 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100014095
Wei Hu25584de2018-04-30 14:02:08 -070014096 {
14097 .vendor = "SST",
14098 .name = "SST26VF032B(A)",
14099 .bustype = BUS_SPI,
14100 .manufacture_id = SST_ID,
14101 .model_id = SST_SST26VF032B,
14102 .total_size = 4096,
14103 .page_size = 256,
14104 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
14105 .tested = TEST_UNTESTED,
14106 .probe = probe_spi_rdid,
14107 .probe_timing = TIMING_ZERO,
14108 .block_erasers =
14109 {
14110 {
14111 .eraseblocks = { {4 * 1024, 1024} },
14112 .block_erase = spi_block_erase_20,
14113 }, {
14114 .eraseblocks = {
14115 {8 * 1024, 4},
14116 {32 * 1024, 1},
14117 {64 * 1024, 62},
14118 {32 * 1024, 1},
14119 {8 * 1024, 4},
14120 },
14121 .block_erase = spi_block_erase_d8,
14122 }, {
14123 .eraseblocks = { {4 * 1024 * 1024, 1} },
14124 .block_erase = spi_block_erase_c7,
14125 },
14126 },
14127 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14128 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
14129 .write = spi_chip_write_256, /* Multi I/O supported */
14130 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
14131 .voltage = {2700, 3600},
14132 },
14133
Wei Hu25584de2018-04-30 14:02:08 -070014134 {
14135 .vendor = "SST",
14136 .name = "SST26VF064B(A)",
14137 .bustype = BUS_SPI,
14138 .manufacture_id = SST_ID,
14139 .model_id = SST_SST26VF064B,
14140 .total_size = 8192,
14141 .page_size = 256,
14142 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
14143 .tested = TEST_OK_PREW,
14144 .probe = probe_spi_rdid,
14145 .probe_timing = TIMING_ZERO,
14146 .block_erasers =
14147 {
14148 {
14149 .eraseblocks = { {4 * 1024, 2048} },
14150 .block_erase = spi_block_erase_20,
14151 }, {
14152 .eraseblocks = {
14153 {8 * 1024, 4},
14154 {32 * 1024, 1},
14155 {64 * 1024, 126},
14156 {32 * 1024, 1},
14157 {8 * 1024, 4},
14158 },
14159 .block_erase = spi_block_erase_d8,
14160 }, {
14161 .eraseblocks = { {8 * 1024 * 1024, 1} },
14162 .block_erase = spi_block_erase_c7,
14163 },
14164 },
14165 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14166 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
14167 .write = spi_chip_write_256, /* Multi I/O supported */
14168 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
14169 .voltage = {2700, 3600},
14170 },
14171
14172 {
14173 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014174 .name = "SST28SF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014175 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014176 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014177 .model_id = SST_SST28SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014178 .total_size = 512,
14179 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000014180 .feature_bits = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014181 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014182 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014183 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014184 .block_erasers =
14185 {
14186 {
14187 .eraseblocks = { {128, 4096} },
14188 .block_erase = erase_sector_28sf040,
14189 }, {
14190 .eraseblocks = { {512 * 1024, 1} },
14191 .block_erase = erase_chip_28sf040,
14192 }
14193 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014194 .unlock = unprotect_28sf040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014195 .write = write_28sf040,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014196 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014197 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014198 },
14199
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014200 {
14201 .vendor = "SST",
14202 .name = "SST29EE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014203 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014204 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014205 .model_id = SST_SST29EE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014206 .total_size = 128,
14207 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000014208 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000014209 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014210 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000014211 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014212 .block_erasers =
14213 {
14214 {
14215 .eraseblocks = { {128 * 1024, 1} },
14216 .block_erase = erase_chip_block_jedec,
14217 }
14218 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014219 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014220 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014221 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014222 },
14223
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014224 {
14225 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014226 .name = "SST29EE020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014227 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014228 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014229 .model_id = SST_SST29EE020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014230 .total_size = 256,
14231 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000014232 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000014233 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014234 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014235 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014236 .block_erasers =
14237 {
14238 {
14239 .eraseblocks = { {256 * 1024, 1} },
14240 .block_erase = erase_chip_block_jedec,
14241 }
14242 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014243 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014244 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014245 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014246 },
14247
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014248 {
14249 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100014250 .name = "SST29LE010",
14251 .bustype = BUS_PARALLEL,
14252 .manufacture_id = SST_ID,
14253 .model_id = SST_SST29LE010,
14254 .total_size = 128,
14255 .page_size = 128,
14256 .feature_bits = FEATURE_LONG_RESET,
14257 .tested = TEST_UNTESTED,
14258 .probe = probe_jedec,
14259 .probe_timing = 10,
14260 .block_erasers =
14261 {
14262 {
14263 .eraseblocks = { {128 * 1024, 1} },
14264 .block_erase = erase_chip_block_jedec,
14265 }
14266 },
14267 .write = write_jedec,
14268 .read = read_memmapped,
14269 .voltage = {3000, 3600},
14270 },
14271
14272 {
14273 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014274 .name = "SST29LE020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014275 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014276 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014277 .model_id = SST_SST29LE020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014278 .total_size = 256,
14279 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000014280 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000014281 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014282 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000014283 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014284 .block_erasers =
14285 {
14286 {
14287 .eraseblocks = { {256 * 1024, 1} },
14288 .block_erase = erase_chip_block_jedec,
14289 }
14290 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014291 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014292 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014293 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014294 },
14295
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014296 {
14297 .vendor = "SST",
14298 .name = "SST39SF010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014299 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014300 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014301 .model_id = SST_SST39SF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014302 .total_size = 128,
14303 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014304 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000014305 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014306 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000014307 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014308 .block_erasers =
14309 {
14310 {
14311 .eraseblocks = { {4 * 1024, 32} },
14312 .block_erase = erase_sector_jedec,
14313 }, {
14314 .eraseblocks = { {128 * 1024, 1} },
14315 .block_erase = erase_chip_block_jedec,
14316 }
14317 },
Sean Nelson35727f72010-01-28 23:55:12 +000014318 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014319 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014320 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014321 },
14322
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014323 {
14324 .vendor = "SST",
14325 .name = "SST39SF020A",
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_SST39SF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014329 .total_size = 256,
14330 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014331 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann19f46f22011-06-18 22:56:14 +000014332 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014333 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014334 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014335 .block_erasers =
14336 {
14337 {
14338 .eraseblocks = { {4 * 1024, 64} },
14339 .block_erase = erase_sector_jedec,
14340 }, {
14341 .eraseblocks = { {256 * 1024, 1} },
14342 .block_erase = erase_chip_block_jedec,
14343 }
14344 },
Sean Nelson35727f72010-01-28 23:55:12 +000014345 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014346 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014347 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014348 },
14349
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014350 {
14351 .vendor = "SST",
14352 .name = "SST39SF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014353 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014354 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014355 .model_id = SST_SST39SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014356 .total_size = 512,
14357 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014358 .feature_bits = FEATURE_EITHER_RESET,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +000014359 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014360 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014361 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014362 .block_erasers =
14363 {
14364 {
14365 .eraseblocks = { {4 * 1024, 128} },
14366 .block_erase = erase_sector_jedec,
14367 }, {
14368 .eraseblocks = { {512 * 1024, 1} },
14369 .block_erase = erase_chip_block_jedec,
14370 }
14371 },
Sean Nelson35727f72010-01-28 23:55:12 +000014372 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014373 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014374 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014375 },
14376
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014377 {
14378 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100014379 .name = "SST39SF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014380 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014381 .manufacture_id = SST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100014382 .model_id = SST_SST39SF512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014383 .total_size = 64,
14384 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014385 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd7d423b2012-10-20 09:13:16 +000014386 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014387 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014388 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014389 .block_erasers =
14390 {
14391 {
14392 .eraseblocks = { {4 * 1024, 16} },
14393 .block_erase = erase_sector_jedec,
14394 }, {
14395 .eraseblocks = { {64 * 1024, 1} },
14396 .block_erase = erase_chip_block_jedec,
14397 }
14398 },
Sean Nelson35727f72010-01-28 23:55:12 +000014399 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014400 .read = read_memmapped,
Alan Green1f9cc7d2019-07-01 11:10:45 +100014401 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014402 },
14403
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014404 {
14405 .vendor = "SST",
14406 .name = "SST39VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014407 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014408 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014409 .model_id = SST_SST39VF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014410 .total_size = 128,
14411 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014412 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd94d25d2012-07-28 03:17:15 +000014413 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014414 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014415 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014416 .block_erasers =
14417 {
14418 {
14419 .eraseblocks = { {4 * 1024, 32} },
14420 .block_erase = erase_sector_jedec,
14421 }, {
14422 .eraseblocks = { {128 * 1024, 1} },
14423 .block_erase = erase_chip_block_jedec,
14424 }
14425 },
Sean Nelson35727f72010-01-28 23:55:12 +000014426 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014427 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014428 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014429 },
14430
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014431 {
14432 .vendor = "SST",
14433 .name = "SST39VF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014434 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014435 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014436 .model_id = SST_SST39VF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014437 .total_size = 256,
14438 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014439 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner5c316f92015-02-08 21:57:52 +000014440 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014441 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014442 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014443 .block_erasers =
14444 {
14445 {
14446 .eraseblocks = { {4 * 1024, 64} },
14447 .block_erase = erase_sector_jedec,
14448 }, {
14449 .eraseblocks = { {256 * 1024, 1} },
14450 .block_erase = erase_chip_block_jedec,
14451 }
14452 },
Sean Nelson35727f72010-01-28 23:55:12 +000014453 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014454 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014455 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014456 },
14457
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014458 {
14459 .vendor = "SST",
14460 .name = "SST39VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014461 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014462 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014463 .model_id = SST_SST39VF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014464 .total_size = 512,
14465 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014466 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner23e10b82016-01-23 16:16:49 +000014467 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014468 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014469 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014470 .block_erasers =
14471 {
14472 {
14473 .eraseblocks = { {4 * 1024, 128} },
14474 .block_erase = erase_sector_jedec,
14475 }, {
14476 .eraseblocks = { {512 * 1024, 1} },
14477 .block_erase = erase_chip_block_jedec,
14478 }
14479 },
Sean Nelson35727f72010-01-28 23:55:12 +000014480 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014481 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014482 .voltage = {2700, 3600},
Carl-Daniel Hailfinger90eff152008-12-08 23:51:45 +000014483 },
FENG yu ningff692fb2008-12-08 18:15:10 +000014484
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014485 {
14486 .vendor = "SST",
Peter Stuge8440cc02009-01-25 23:55:12 +000014487 .name = "SST39VF080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014488 .bustype = BUS_PARALLEL,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000014489 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014490 .model_id = SST_SST39VF080,
Peter Stuge8440cc02009-01-25 23:55:12 +000014491 .total_size = 1024,
14492 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014493 .feature_bits = FEATURE_EITHER_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +000014494 .tested = TEST_UNTESTED,
14495 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014496 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014497 .block_erasers =
14498 {
14499 {
14500 .eraseblocks = { {4 * 1024, 256} },
14501 .block_erase = erase_sector_jedec,
14502 }, {
14503 .eraseblocks = { {64 * 1024, 16} },
14504 .block_erase = erase_block_jedec,
14505 }, {
14506 .eraseblocks = { {1024 * 1024, 1} },
14507 .block_erase = erase_chip_block_jedec,
14508 }
14509 },
Sean Nelson35727f72010-01-28 23:55:12 +000014510 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014511 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014512 .voltage = {2700, 3600},
Peter Stuge8440cc02009-01-25 23:55:12 +000014513 },
14514
14515 {
14516 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100014517 .name = "SST39VF512",
14518 .bustype = BUS_PARALLEL,
14519 .manufacture_id = SST_ID,
14520 .model_id = SST_SST39VF512,
14521 .total_size = 64,
14522 .page_size = 4096,
14523 .feature_bits = FEATURE_EITHER_RESET,
14524 .tested = TEST_OK_PREW,
14525 .probe = probe_jedec,
14526 .probe_timing = 1, /* 150 ns */
14527 .block_erasers =
14528 {
14529 {
14530 .eraseblocks = { {4 * 1024, 16} },
14531 .block_erase = erase_sector_jedec,
14532 }, {
14533 .eraseblocks = { {64 * 1024, 1} },
14534 .block_erase = erase_chip_block_jedec,
14535 }
14536 },
14537 .write = write_jedec_1,
14538 .read = read_memmapped,
14539 .voltage = {2700, 3600},
14540 },
14541
14542 {
14543 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014544 .name = "SST49LF002A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014545 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014546 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014547 .model_id = SST_SST49LF002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014548 .total_size = 256,
14549 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014550 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000014551 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014552 .probe = probe_jedec,
14553 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014554 .block_erasers =
14555 {
14556 {
14557 .eraseblocks = { {4 * 1024, 64} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014558 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014559 }, {
14560 .eraseblocks = { {16 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014561 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014562 }, {
14563 .eraseblocks = { {256 * 1024, 1} },
14564 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
14565 }
14566 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014567 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014568 .unlock = unlock_sst_fwhub,
14569 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014570 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014571 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014572 },
14573
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014574 {
14575 .vendor = "SST",
14576 .name = "SST49LF003A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014577 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014578 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014579 .model_id = SST_SST49LF003A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014580 .total_size = 384,
14581 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014582 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000014583 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014584 .probe = probe_jedec,
14585 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014586 .block_erasers =
14587 {
14588 {
14589 .eraseblocks = { {4 * 1024, 96} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014590 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014591 }, {
14592 .eraseblocks = { {64 * 1024, 6} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014593 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014594 }, {
14595 .eraseblocks = { {384 * 1024, 1} },
14596 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
14597 }
14598 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014599 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014600 .unlock = unlock_sst_fwhub,
14601 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014602 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014603 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014604 },
14605
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014606 {
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000014607 /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB)
14608 * and is only honored for 64k block erase, but not 4k sector erase.
14609 */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014610 .vendor = "SST",
14611 .name = "SST49LF004A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014612 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014613 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014614 .model_id = SST_SST49LF004A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014615 .total_size = 512,
14616 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014617 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000014618 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014619 .probe = probe_jedec,
14620 .probe_timing = 1, /* 150 ns */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000014621 .block_erasers =
14622 {
14623 {
14624 .eraseblocks = { {4 * 1024, 128} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014625 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000014626 }, {
14627 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014628 .block_erase = erase_block_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000014629 }, {
14630 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson51c83fb2010-01-20 20:55:53 +000014631 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000014632 },
14633 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014634 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014635 .unlock = unlock_sst_fwhub,
14636 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014637 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014638 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014639 },
14640
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014641 {
14642 .vendor = "SST",
14643 .name = "SST49LF004C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014644 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014645 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014646 .model_id = SST_SST49LF004C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014647 .total_size = 512,
14648 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014649 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014650 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014651 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014652 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014653 .block_erasers =
14654 {
14655 {
14656 .eraseblocks = { {4 * 1024, 128} },
14657 .block_erase = erase_sector_49lfxxxc,
14658 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000014659 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000014660 {64 * 1024, 7},
14661 {32 * 1024, 1},
14662 {8 * 1024, 2},
14663 {16 * 1024, 1},
14664 },
Sean Nelson69e58112010-03-23 17:10:28 +000014665 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014666 }
14667 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014668 .printlock = printlock_regspace2_block_eraser_1,
14669 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014670 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014671 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014672 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014673 },
14674
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014675 {
14676 .vendor = "SST",
14677 .name = "SST49LF008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014678 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014679 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014680 .model_id = SST_SST49LF008A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014681 .total_size = 1024,
14682 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014683 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000014684 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014685 .probe = probe_jedec,
14686 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014687 .block_erasers =
14688 {
14689 {
14690 .eraseblocks = { {4 * 1024, 256} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014691 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014692 }, {
14693 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014694 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014695 }, {
14696 .eraseblocks = { {1024 * 1024, 1} },
14697 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
14698 }
14699 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014700 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014701 .unlock = unlock_sst_fwhub,
14702 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014703 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014704 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014705 },
14706
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014707 {
14708 .vendor = "SST",
14709 .name = "SST49LF008C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014710 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014711 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014712 .model_id = SST_SST49LF008C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014713 .total_size = 1024,
14714 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014715 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014716 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014717 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014718 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014719 .block_erasers =
14720 {
14721 {
14722 .eraseblocks = { {4 * 1024, 256} },
14723 .block_erase = erase_sector_49lfxxxc,
14724 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000014725 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000014726 {64 * 1024, 15},
14727 {32 * 1024, 1},
14728 {8 * 1024, 2},
14729 {16 * 1024, 1},
14730 },
Sean Nelson69e58112010-03-23 17:10:28 +000014731 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014732 }
14733 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014734 .printlock = printlock_regspace2_block_eraser_1,
14735 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014736 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014737 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014738 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014739 },
14740
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014741 {
14742 .vendor = "SST",
14743 .name = "SST49LF016C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014744 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014745 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014746 .model_id = SST_SST49LF016C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014747 .total_size = 2048,
14748 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014749 .feature_bits = FEATURE_REGISTERMAP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000014750 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014751 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014752 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014753 .block_erasers =
14754 {
14755 {
14756 .eraseblocks = { {4 * 1024, 512} },
14757 .block_erase = erase_sector_49lfxxxc,
14758 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000014759 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000014760 {64 * 1024, 31},
14761 {32 * 1024, 1},
14762 {8 * 1024, 2},
14763 {16 * 1024, 1},
14764 },
Sean Nelson69e58112010-03-23 17:10:28 +000014765 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014766 }
14767 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014768 .printlock = printlock_regspace2_block_eraser_1,
14769 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014770 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014771 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014772 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014773 },
14774
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014775 {
14776 .vendor = "SST",
14777 .name = "SST49LF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014778 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014779 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014780 .model_id = SST_SST49LF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014781 .total_size = 256,
14782 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014783 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +000014784 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014785 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014786 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014787 .block_erasers =
14788 {
14789 {
14790 .eraseblocks = { {4 * 1024, 64} },
14791 .block_erase = erase_sector_jedec,
14792 }, {
14793 .eraseblocks = { {16 * 1024, 16} },
14794 .block_erase = erase_block_jedec,
14795 }, {
14796 .eraseblocks = { {256 * 1024, 1} },
14797 .block_erase = NULL,
14798 }
14799 },
Sean Nelson35727f72010-01-28 23:55:12 +000014800 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014801 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014802 .voltage = {3000, 3600},
Sven Schnellec208dfb2009-01-07 12:35:09 +000014803 },
14804
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014805 {
14806 .vendor = "SST",
14807 .name = "SST49LF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014808 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014809 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014810 .model_id = SST_SST49LF020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014811 .total_size = 256,
Carl-Daniel Hailfingerda654322009-07-23 01:44:38 +000014812 .page_size = 4 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014813 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000014814 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014815 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014816 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014817 .block_erasers =
14818 {
14819 {
14820 .eraseblocks = { {4 * 1024, 64} },
14821 .block_erase = erase_sector_jedec,
14822 }, {
14823 .eraseblocks = { {16 * 1024, 16} },
14824 .block_erase = erase_block_jedec,
14825 }, {
14826 .eraseblocks = { {256 * 1024, 1} },
14827 .block_erase = NULL,
14828 }
14829 },
Sean Nelson35727f72010-01-28 23:55:12 +000014830 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014831 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014832 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014833 },
14834
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014835 {
14836 .vendor = "SST",
14837 .name = "SST49LF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014838 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014839 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014840 .model_id = SST_SST49LF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014841 .total_size = 512,
14842 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014843 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000014844 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014845 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014846 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014847 .block_erasers =
14848 {
14849 {
14850 .eraseblocks = { {4 * 1024, 128} },
14851 .block_erase = erase_sector_jedec,
14852 }, {
14853 .eraseblocks = { {64 * 1024, 8} },
14854 .block_erase = erase_block_jedec,
14855 }, {
14856 .eraseblocks = { {512 * 1024, 1} },
14857 .block_erase = NULL,
14858 }
14859 },
Sean Nelson35727f72010-01-28 23:55:12 +000014860 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014861 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014862 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014863 },
14864
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014865 {
14866 .vendor = "SST",
14867 .name = "SST49LF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014868 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014869 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014870 .model_id = SST_SST49LF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014871 .total_size = 512,
14872 .page_size = 64 * 1024,
Joshua Roysa84b0bd2010-08-16 22:12:39 +000014873 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000014874 .tested = TEST_OK_PREW,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014875 .probe = probe_jedec,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014876 .probe_timing = 1, /* 150ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014877 .block_erasers =
14878 {
14879 {
14880 .eraseblocks = { {4 * 1024, 128} },
14881 .block_erase = erase_sector_jedec,
14882 }, {
14883 .eraseblocks = { {64 * 1024, 8} },
14884 .block_erase = erase_block_jedec,
14885 }, {
14886 .eraseblocks = { {512 * 1024, 1} },
14887 .block_erase = NULL,
14888 }
14889 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014890 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000014891 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014892 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014893 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014894 },
14895
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014896 {
14897 .vendor = "SST",
14898 .name = "SST49LF080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014899 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014900 .manufacture_id = SST_ID,
Elyes HAOUAS124ef382018-03-27 12:15:09 +020014901 .model_id = SST_SST49LF080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014902 .total_size = 1024,
14903 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014904 .feature_bits = FEATURE_EITHER_RESET,
Brandon Dowdyf07bf322011-03-06 18:31:11 +000014905 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014906 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000014907 .probe_timing = TIMING_FIXME,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014908 .block_erasers =
14909 {
14910 {
14911 .eraseblocks = { {4 * 1024, 256} },
14912 .block_erase = erase_sector_jedec,
14913 }, {
14914 .eraseblocks = { {64 * 1024, 16} },
14915 .block_erase = erase_block_jedec,
14916 }, {
14917 .eraseblocks = { {1024 * 1024, 1} },
14918 .block_erase = NULL,
14919 }
14920 },
Sean Nelson35727f72010-01-28 23:55:12 +000014921 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014922 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014923 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014924 },
14925
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014926 {
14927 .vendor = "SST",
14928 .name = "SST49LF160C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014929 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014930 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014931 .model_id = SST_SST49LF160C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014932 .total_size = 2048,
14933 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014934 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014935 .tested = TEST_OK_PR,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014936 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014937 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014938 .block_erasers =
14939 {
14940 {
14941 .eraseblocks = { {4 * 1024, 512} },
14942 .block_erase = erase_sector_49lfxxxc,
14943 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000014944 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000014945 {64 * 1024, 31},
14946 {32 * 1024, 1},
14947 {8 * 1024, 2},
14948 {16 * 1024, 1},
14949 },
Sean Nelson69e58112010-03-23 17:10:28 +000014950 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014951 }
14952 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014953 .printlock = printlock_regspace2_block_eraser_1,
14954 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014955 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014956 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014957 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014958 },
14959
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014960 {
14961 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014962 .name = "M29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014963 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014964 .manufacture_id = ST_ID,
14965 .model_id = ST_M29F002B,
14966 .total_size = 256,
14967 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014968 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014969 .tested = TEST_UNTESTED,
14970 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014971 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014972 .block_erasers =
14973 {
14974 {
14975 .eraseblocks = {
14976 {16 * 1024, 1},
14977 {8 * 1024, 2},
14978 {32 * 1024, 1},
14979 {64 * 1024, 3},
14980 },
14981 .block_erase = erase_sector_jedec,
14982 }, {
14983 .eraseblocks = { {256 * 1024, 1} },
14984 .block_erase = erase_chip_block_jedec,
14985 }
14986 },
Sean Nelson35727f72010-01-28 23:55:12 +000014987 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014988 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000014989 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000014990 },
14991
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014992 {
14993 .vendor = "ST",
14994 .name = "M29F002T/NT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014995 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014996 .manufacture_id = ST_ID,
14997 .model_id = ST_M29F002T,
14998 .total_size = 256,
14999 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015000 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stefan Taunere34e3e82013-01-01 00:06:51 +000015001 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015002 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000015003 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000015004 .block_erasers =
15005 {
15006 {
15007 .eraseblocks = {
15008 {64 * 1024, 3},
15009 {32 * 1024, 1},
15010 {8 * 1024, 2},
15011 {16 * 1024, 1},
15012 },
15013 .block_erase = erase_sector_jedec,
15014 }, {
15015 .eraseblocks = { {256 * 1024, 1} },
15016 .block_erase = erase_chip_block_jedec,
15017 }
15018 },
Sean Nelson35727f72010-01-28 23:55:12 +000015019 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015020 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000015021 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000015022 },
15023
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015024 {
15025 .vendor = "ST",
15026 .name = "M29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015027 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015028 .manufacture_id = ST_ID,
15029 .model_id = ST_M29F040B,
15030 .total_size = 512,
15031 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015032 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
15033 .tested = TEST_UNTESTED,
15034 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +000015035 .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */
Sean Nelson56358aa2010-01-19 16:08:51 +000015036 .block_erasers =
15037 {
15038 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015039 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +000015040 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000015041 }, {
15042 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000015043 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000015044 }
15045 },
Sean Nelson35727f72010-01-28 23:55:12 +000015046 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015047 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015048 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000015049 },
15050
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015051 {
Sean Nelson35727f72010-01-28 23:55:12 +000015052 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015053 .vendor = "ST",
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000015054 .name = "M29F400BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015055 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000015056 .manufacture_id = ST_ID,
15057 .model_id = ST_M29F400BB,
15058 .total_size = 512,
15059 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015060 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000015061 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015062 .probe = probe_jedec,
15063 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000015064 .block_erasers =
15065 {
15066 {
15067 .eraseblocks = {
15068 {16 * 1024, 1},
15069 {8 * 1024, 2},
15070 {32 * 1024, 1},
15071 {64 * 1024, 7},
15072 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015073 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000015074 }, {
15075 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015076 .block_erase = erase_chip_block_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000015077 }
15078 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015079 .write = write_jedec_1,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000015080 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015081 .voltage = {4500, 5500},
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000015082 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100015083
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000015084 {
15085 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
15086 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015087 .name = "M29F400BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015088 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015089 .manufacture_id = ST_ID,
15090 .model_id = ST_M29F400BT,
15091 .total_size = 512,
15092 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015093 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015094 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015095 .probe = probe_jedec,
15096 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson56358aa2010-01-19 16:08:51 +000015097 .block_erasers =
15098 {
15099 {
15100 .eraseblocks = {
15101 {64 * 1024, 7},
15102 {32 * 1024, 1},
15103 {8 * 1024, 2},
15104 {16 * 1024, 1},
15105 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015106 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000015107 }, {
15108 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015109 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000015110 }
15111 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015112 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015113 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015114 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000015115 },
15116
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015117 {
15118 .vendor = "ST",
15119 .name = "M29W010B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015120 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015121 .manufacture_id = ST_ID,
15122 .model_id = ST_M29W010B,
15123 .total_size = 128,
15124 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015125 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015126 .tested = TEST_UNTESTED,
15127 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000015128 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000015129 .block_erasers =
15130 {
15131 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015132 .eraseblocks = { {16 * 1024, 8} },
Sean Nelson56358aa2010-01-19 16:08:51 +000015133 .block_erase = erase_sector_jedec,
15134 }, {
15135 .eraseblocks = { {128 * 1024, 1} },
15136 .block_erase = erase_chip_block_jedec,
15137 }
15138 },
Sean Nelson35727f72010-01-28 23:55:12 +000015139 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015140 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015141 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000015142 },
15143
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015144 {
15145 .vendor = "ST",
15146 .name = "M29W040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015147 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015148 .manufacture_id = ST_ID,
15149 .model_id = ST_M29W040B,
15150 .total_size = 512,
15151 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015152 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015153 .tested = TEST_UNTESTED,
15154 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000015155 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000015156 .block_erasers =
15157 {
15158 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015159 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson56358aa2010-01-19 16:08:51 +000015160 .block_erase = erase_sector_jedec,
15161 }, {
15162 .eraseblocks = { {512 * 1024, 1} },
15163 .block_erase = erase_chip_block_jedec,
15164 }
15165 },
Sean Nelson35727f72010-01-28 23:55:12 +000015166 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015167 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015168 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000015169 },
15170
Stefan Taunereb582572012-09-21 12:52:50 +000015171 {
15172 .vendor = "ST",
15173 .name = "M29W512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015174 .bustype = BUS_PARALLEL,
Alan Greenfa3fcd32019-06-27 15:41:50 +100015175 .manufacture_id = ST_ID,
Stefan Taunereb582572012-09-21 12:52:50 +000015176 .model_id = ST_M29W512B,
15177 .total_size = 64,
15178 .page_size = 64 * 1024,
15179 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauner0554ca52013-07-25 22:54:25 +000015180 .tested = TEST_OK_PREW,
Stefan Taunereb582572012-09-21 12:52:50 +000015181 .probe = probe_jedec,
15182 .probe_timing = TIMING_ZERO,
15183 .block_erasers =
15184 {
15185 {
15186 .eraseblocks = { {64 * 1024, 1} },
15187 .block_erase = erase_chip_block_jedec,
15188 }
15189 },
15190 .write = write_jedec_1,
15191 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015192 .voltage = {2700, 3600},
Stefan Taunereb582572012-09-21 12:52:50 +000015193 },
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +000015194
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015195 {
15196 .vendor = "ST",
15197 .name = "M50FLW040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015198 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015199 .manufacture_id = ST_ID,
15200 .model_id = ST_M50FLW040A,
15201 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000015202 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015203 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015204 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000015205 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000015206 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000015207 .block_erasers =
15208 {
15209 {
Sean Nelson329bde72010-01-19 16:39:19 +000015210 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000015211 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000015212 {64 * 1024, 5}, /* block */
15213 {4 * 1024, 16}, /* sector */
15214 {4 * 1024, 16}, /* sector */
15215 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000015216 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000015217 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000015218 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000015219 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015220 }
15221 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015222 .unlock = unlock_regspace2_uniform_64k,
Alan Greenc1863ca2019-06-27 15:08:03 +100015223 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015224 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015225 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015226 },
15227
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015228 {
15229 .vendor = "ST",
15230 .name = "M50FLW040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015231 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015232 .manufacture_id = ST_ID,
15233 .model_id = ST_M50FLW040B,
15234 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000015235 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015236 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015237 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000015238 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000015239 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000015240 .block_erasers =
15241 {
15242 {
Sean Nelson329bde72010-01-19 16:39:19 +000015243 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000015244 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000015245 {4 * 1024, 16}, /* sector */
15246 {64 * 1024, 5}, /* block */
15247 {4 * 1024, 16}, /* sector */
15248 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000015249 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000015250 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000015251 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000015252 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015253 }
15254 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015255 .unlock = unlock_regspace2_uniform_64k,
Alan Greenc1863ca2019-06-27 15:08:03 +100015256 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015257 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015258 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015259 },
15260
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015261 {
15262 .vendor = "ST",
15263 .name = "M50FLW080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015264 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015265 .manufacture_id = ST_ID,
15266 .model_id = ST_M50FLW080A,
15267 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000015268 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015269 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015270 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +000015271 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000015272 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000015273 .block_erasers =
15274 {
15275 {
Sean Nelson329bde72010-01-19 16:39:19 +000015276 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000015277 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000015278 {64 * 1024, 13}, /* block */
15279 {4 * 1024, 16}, /* sector */
15280 {4 * 1024, 16}, /* sector */
15281 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000015282 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000015283 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000015284 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000015285 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015286 }
15287 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015288 .printlock = printlock_regspace2_block_eraser_0,
15289 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000015290 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015291 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015292 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015293 },
15294
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015295 {
15296 .vendor = "ST",
15297 .name = "M50FLW080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015298 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015299 .manufacture_id = ST_ID,
15300 .model_id = ST_M50FLW080B,
15301 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000015302 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015303 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015304 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000015305 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000015306 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000015307 .block_erasers =
15308 {
15309 {
Sean Nelson329bde72010-01-19 16:39:19 +000015310 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000015311 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000015312 {4 * 1024, 16}, /* sector */
15313 {64 * 1024, 13}, /* block */
15314 {4 * 1024, 16}, /* sector */
15315 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000015316 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000015317 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000015318 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000015319 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015320 }
15321 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015322 .printlock = printlock_regspace2_block_eraser_0,
15323 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000015324 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015325 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015326 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015327 },
15328
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015329 {
15330 .vendor = "ST",
15331 .name = "M50FW002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015332 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015333 .manufacture_id = ST_ID,
15334 .model_id = ST_M50FW002,
15335 .total_size = 256,
Stefan Tauner4404f732013-09-12 08:28:56 +000015336 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015337 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015338 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +000015339 .probe = probe_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015340 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000015341 .block_erasers =
15342 {
15343 {
15344 .eraseblocks = {
15345 {64 * 1024, 3},
15346 {32 * 1024, 1},
15347 {8 * 1024, 2},
15348 {16 * 1024, 1},
15349 },
Sean Nelson28accc22010-03-19 18:47:06 +000015350 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015351 }, {
Stefan Tauner5c316f92015-02-08 21:57:52 +000015352 .eraseblocks = { {256 * 1024, 1} },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015353 .block_erase = NULL, /* Only in A/A mux mode */
Sean Nelson56358aa2010-01-19 16:08:51 +000015354 }
15355 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015356 .printlock = printlock_regspace2_block_eraser_0,
15357 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000015358 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015359 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015360 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015361 },
15362
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015363 {
15364 .vendor = "ST",
15365 .name = "M50FW016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015366 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015367 .manufacture_id = ST_ID,
15368 .model_id = ST_M50FW016,
15369 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000015370 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015371 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015372 .tested = TEST_UNTESTED,
15373 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000015374 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000015375 .block_erasers =
15376 {
15377 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015378 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson28accc22010-03-19 18:47:06 +000015379 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015380 }
15381 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015382 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000015383 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015384 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015385 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015386 },
15387
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015388 {
15389 .vendor = "ST",
15390 .name = "M50FW040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015391 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015392 .manufacture_id = ST_ID,
15393 .model_id = ST_M50FW040,
15394 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000015395 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015396 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +000015397 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015398 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000015399 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000015400 .block_erasers =
15401 {
15402 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015403 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000015404 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015405 }
15406 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015407 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000015408 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015409 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015410 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015411 },
15412
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015413 {
15414 .vendor = "ST",
15415 .name = "M50FW080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015416 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015417 .manufacture_id = ST_ID,
15418 .model_id = ST_M50FW080,
15419 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000015420 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015421 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015422 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015423 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000015424 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000015425 .block_erasers =
15426 {
15427 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015428 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000015429 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015430 }
15431 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015432 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000015433 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015434 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015435 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015436 },
15437
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015438 {
15439 .vendor = "ST",
Stefan Tauner8c4602b2013-09-12 08:29:00 +000015440 .name = "M50LPW080",
15441 .bustype = BUS_LPC, /* A/A Mux */
15442 .manufacture_id = ST_ID,
15443 .model_id = ST_M50LPW080,
15444 .total_size = 1024,
15445 .page_size = 0,
15446 .feature_bits = FEATURE_REGISTERMAP,
15447 .tested = TEST_UNTESTED,
15448 .probe = probe_82802ab,
15449 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
15450 .block_erasers =
15451 {
15452 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015453 .eraseblocks = { {64 * 1024, 16} },
Stefan Tauner8c4602b2013-09-12 08:29:00 +000015454 .block_erase = erase_block_82802ab,
15455 }
15456 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015457 .unlock = unlock_regspace2_uniform_64k,
Stefan Tauner8c4602b2013-09-12 08:29:00 +000015458 .write = write_82802ab,
15459 .read = read_memmapped,
15460 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
15461 },
15462
15463 {
15464 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015465 .name = "M50LPW116",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015466 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015467 .manufacture_id = ST_ID,
15468 .model_id = ST_M50LPW116,
15469 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000015470 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015471 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015472 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000015473 .probe = probe_82802ab,
Udu Ogahc04ee222009-09-05 01:31:32 +000015474 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000015475 .block_erasers =
15476 {
15477 {
15478 .eraseblocks = {
15479 {4 * 1024, 16},
15480 {64 * 1024, 30},
15481 {32 * 1024, 1},
15482 {8 * 1024, 2},
15483 {16 * 1024, 1},
15484 },
Sean Nelson28accc22010-03-19 18:47:06 +000015485 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015486 }
15487 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015488 .printlock = printlock_regspace2_block_eraser_0,
15489 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000015490 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015491 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015492 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015493 },
15494
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015495 {
Konstantin Grudnev3d8868c2019-07-23 00:48:54 +030015496 .vendor = "ST",
15497 .name = "M95M02",
15498 .bustype = BUS_SPI,
15499 .manufacture_id = ST_ID,
15500 .model_id = ST_M95M02,
15501 .total_size = 256,
15502 .page_size = 256,
15503 .feature_bits = FEATURE_WRSR_WREN | FEATURE_NO_ERASE | FEATURE_ERASED_ZERO,
15504 .tested = TEST_OK_PREW,
15505 .probe = probe_spi_st95,
15506 .probe_timing = TIMING_ZERO,
15507 .block_erasers =
15508 {
15509 {
15510 .eraseblocks = { {256 * 1024, 1} },
15511 .block_erase = spi_block_erase_emulation,
15512 }
15513 },
15514
15515 .printlock = spi_prettyprint_status_register_bp1_srwd,
15516 .unlock = spi_disable_blockprotect_bp1_srwd,
15517 .write = spi_chip_write_256,
15518 .read = spi_chip_read,
15519 .voltage = {2500, 5500},
15520 },
15521
15522 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100015523 .vendor = "Sanyo",
15524 .name = "LE25FU106B",
15525 .bustype = BUS_SPI,
15526 .manufacture_id = SANYO_ID,
15527 .model_id = SANYO_LE25FU106B,
15528 .total_size = 128,
15529 .page_size = 256,
15530 .feature_bits = FEATURE_WRSR_WREN,
15531 .tested = TEST_UNTESTED,
15532 .probe = probe_spi_res2,
15533 .probe_timing = TIMING_ZERO,
15534 .block_erasers =
15535 {
15536 /* FIXME: Is this correct?
15537 {
15538 .eraseblocks = { {2 * 1024, 64} },
15539 .block_erase = spi_block_erase_d7,
15540 },*/
15541 {
15542 .eraseblocks = { {32 * 1024, 4} },
15543 .block_erase = spi_block_erase_d8,
15544 }, {
15545 .eraseblocks = { {128 * 1024, 1} },
15546 .block_erase = spi_block_erase_c7,
15547 }
15548 },
15549 .printlock = spi_prettyprint_status_register_bp1_srwd,
15550 .unlock = spi_disable_blockprotect_bp1_srwd,
15551 .write = spi_chip_write_256,
15552 .read = spi_chip_read,
15553 .voltage = {2300, 3600},
15554 },
15555
15556 {
15557 .vendor = "Sanyo",
15558 .name = "LE25FU206",
15559 .bustype = BUS_SPI,
15560 .manufacture_id = SANYO_ID,
15561 .model_id = SANYO_LE25FU206,
15562 .total_size = 256,
15563 .page_size = 256,
15564 .feature_bits = FEATURE_WRSR_WREN,
15565 .tested = TEST_UNTESTED,
15566 .probe = probe_spi_res2,
15567 .probe_timing = TIMING_ZERO,
15568 .block_erasers =
15569 {
15570 {
15571 .eraseblocks = { {4 * 1024, 64} },
15572 .block_erase = spi_block_erase_d7,
15573 }, {
15574 .eraseblocks = { {64 * 1024, 4} },
15575 .block_erase = spi_block_erase_d8,
15576 }, {
15577 .eraseblocks = { {256 * 1024, 1} },
15578 .block_erase = spi_block_erase_c7,
15579 }
15580 },
15581 .printlock = spi_prettyprint_status_register_bp1_srwd,
15582 .unlock = spi_disable_blockprotect_bp1_srwd,
15583 .write = spi_chip_write_256,
15584 .read = spi_chip_read,
15585 .voltage = {2300, 3600},
15586 },
15587
15588 {
15589 .vendor = "Sanyo",
15590 .name = "LE25FU206A",
15591 .bustype = BUS_SPI,
15592 .manufacture_id = SANYO_ID,
15593 .model_id = SANYO_LE25FU206A,
15594 .total_size = 256,
15595 .page_size = 256,
15596 .tested = TEST_UNTESTED,
15597 .probe = probe_spi_rdid,
15598 .probe_timing = TIMING_ZERO,
15599 .block_erasers =
15600 {
15601 {
15602 .eraseblocks = { {4 * 1024, 64} },
15603 .block_erase = spi_block_erase_20,
15604 }, {
15605 .eraseblocks = { {4 * 1024, 64} },
15606 .block_erase = spi_block_erase_d7,
15607 }, {
15608 .eraseblocks = { {64 * 1024, 4} },
15609 .block_erase = spi_block_erase_d8,
15610 }, {
15611 .eraseblocks = { {256 * 1024, 1} },
15612 .block_erase = spi_block_erase_60,
15613 }, {
15614 .eraseblocks = { {256 * 1024, 1} },
15615 .block_erase = spi_block_erase_c7,
15616 }
15617 },
15618 .printlock = spi_prettyprint_status_register_bp2_srwd,
15619 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
15620 .write = spi_chip_write_256,
15621 .read = spi_chip_read,
15622 .voltage = {2300, 3600},
15623 },
15624
15625 {
15626 .vendor = "Sanyo",
15627 .name = "LE25FU406B",
15628 .bustype = BUS_SPI,
15629 .manufacture_id = SANYO_ID,
15630 .model_id = SANYO_LE25FU406B,
15631 .total_size = 512,
15632 .page_size = 256,
15633 .feature_bits = FEATURE_WRSR_WREN,
15634 .tested = TEST_OK_PREW,
15635 .probe = probe_spi_res2,
15636 .probe_timing = TIMING_ZERO,
15637 .block_erasers =
15638 {
15639 {
15640 .eraseblocks = { {4 * 1024, 128} },
15641 .block_erase = spi_block_erase_d7,
15642 }, {
15643 .eraseblocks = { {64 * 1024, 8} },
15644 .block_erase = spi_block_erase_d8,
15645 }, {
15646 .eraseblocks = { {512 * 1024, 1} },
15647 .block_erase = spi_block_erase_c7,
15648 }
15649 },
15650 .printlock = spi_prettyprint_status_register_bp2_srwd,
15651 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
15652 .write = spi_chip_write_256,
15653 .read = spi_chip_read,
15654 .voltage = {2300, 3600},
15655 },
15656
15657 {
15658 .vendor = "Sanyo",
15659 .name = "LE25FU406C/LE25U40CMC",
15660 .bustype = BUS_SPI,
15661 .manufacture_id = SANYO_ID,
15662 .model_id = SANYO_LE25FU406C,
15663 .total_size = 512,
15664 .page_size = 256,
15665 .feature_bits = FEATURE_WRSR_WREN,
15666 .tested = TEST_OK_PREW,
15667 .probe = probe_spi_rdid,
15668 .probe_timing = TIMING_ZERO,
15669 .block_erasers =
15670 {
15671 {
15672 .eraseblocks = { {4 * 1024, 128} },
15673 .block_erase = spi_block_erase_20,
15674 }, {
15675 .eraseblocks = { {4 * 1024, 128} },
15676 .block_erase = spi_block_erase_d7,
15677 }, {
15678 .eraseblocks = { {64 * 1024, 8} },
15679 .block_erase = spi_block_erase_d8,
15680 }, {
15681 .eraseblocks = { {512 * 1024, 1} },
15682 .block_erase = spi_block_erase_60,
15683 }, {
15684 .eraseblocks = { {512 * 1024, 1} },
15685 .block_erase = spi_block_erase_c7,
15686 }
15687 },
15688 .printlock = spi_prettyprint_status_register_bp2_srwd,
15689 .unlock = spi_disable_blockprotect_bp2_srwd,
15690 .write = spi_chip_write_256,
15691 .read = spi_chip_read, /* Fast read (0x0B), dual read (0x3B) and dual I/O (0xBB) supported */
15692 .voltage = {2300, 3600},
15693 },
15694
15695 {
15696 .vendor = "Sanyo",
15697 .name = "LE25FW106",
15698 .bustype = BUS_SPI,
15699 .manufacture_id = SANYO_ID,
15700 .model_id = SANYO_LE25FW106,
15701 .total_size = 128,
15702 .page_size = 256,
15703 .feature_bits = FEATURE_WRSR_WREN,
15704 .tested = TEST_OK_PREW,
15705 .probe = probe_spi_res2,
15706 .probe_timing = TIMING_ZERO,
15707 .block_erasers =
15708 {
15709 {
15710 .eraseblocks = { {2 * 1024, 64} },
15711 .block_erase = spi_block_erase_d7,
15712 }, {
15713 .eraseblocks = { {32 * 1024, 4} },
15714 .block_erase = spi_block_erase_d8,
15715 }, {
15716 .eraseblocks = { {128 * 1024, 1} },
15717 .block_erase = spi_block_erase_c7,
15718 }
15719 },
15720 .printlock = spi_prettyprint_status_register_bp1_srwd, /* FIXME: Add ERSER error flag. */
15721 .unlock = spi_disable_blockprotect_bp1_srwd,
15722 .write = spi_chip_write_256,
15723 .read = spi_chip_read,
15724 .voltage = {2700, 3600},
15725 },
15726
15727 {
15728 .vendor = "Sanyo",
15729 .name = "LE25FW203A",
15730 .bustype = BUS_SPI,
15731 .manufacture_id = SANYO_ID,
15732 .model_id = SANYO_LE25FW203A,
15733 .total_size = 256,
15734 .page_size = 256,
15735 .tested = TEST_UNTESTED,
15736 .probe = probe_spi_rdid,
15737 .probe_timing = TIMING_ZERO,
15738 .block_erasers =
15739 {
15740 {
15741 .eraseblocks = { {256, 1024} },
15742 .block_erase = spi_block_erase_db,
15743 }, {
15744 .eraseblocks = { {64 * 1024, 4} },
15745 .block_erase = spi_block_erase_d8,
15746 }, {
15747 .eraseblocks = { {256 * 1024, 1} },
15748 .block_erase = spi_block_erase_c7,
15749 }
15750 },
15751 .printlock = spi_prettyprint_status_register_default_welwip,
15752 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
15753 .write = spi_chip_write_256,
15754 .read = spi_chip_read,
15755 .voltage = {2700, 3600},
15756 },
15757
15758 {
15759 .vendor = "Sanyo",
15760 .name = "LE25FW403A",
15761 .bustype = BUS_SPI,
15762 .manufacture_id = SANYO_ID,
15763 .model_id = SANYO_LE25FW403A,
15764 .total_size = 512,
15765 .page_size = 256,
15766 .tested = TEST_UNTESTED,
15767 .probe = probe_spi_rdid,
15768 .probe_timing = TIMING_ZERO,
15769 .block_erasers =
15770 {
15771 {
15772 .eraseblocks = { {256, 2 * 1024} },
15773 .block_erase = spi_block_erase_db,
15774 }, {
15775 .eraseblocks = { {64 * 1024, 8} },
15776 .block_erase = spi_block_erase_d8,
15777 }, {
15778 .eraseblocks = { {512 * 1024, 1} },
15779 .block_erase = spi_block_erase_c7,
15780 }
15781 },
15782 .printlock = spi_prettyprint_status_register_default_welwip,
15783 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
15784 .write = spi_chip_write_256,
15785 .read = spi_chip_read,
15786 .voltage = {2700, 3600},
15787 },
15788
15789 {
15790 .vendor = "Sanyo",
15791 .name = "LE25FW406A",
15792 .bustype = BUS_SPI,
15793 .manufacture_id = SANYO_ID,
15794 .model_id = SANYO_LE25FW406A,
15795 .total_size = 512,
15796 .page_size = 256,
15797 .feature_bits = FEATURE_WRSR_WREN,
15798 .tested = TEST_OK_PREW,
15799 .probe = probe_spi_res2,
15800 .probe_timing = TIMING_ZERO,
15801 .block_erasers =
15802 {
15803 {
15804 .eraseblocks = { {4 * 1024, 128} },
15805 .block_erase = spi_block_erase_d7,
15806 }, {
15807 .eraseblocks = { {64 * 1024, 8} },
15808 .block_erase = spi_block_erase_d8,
15809 }, {
15810 .eraseblocks = { {512 * 1024, 1} },
15811 .block_erase = spi_block_erase_c7,
15812 }
15813 },
15814 .printlock = spi_prettyprint_status_register_plain,
15815 .unlock = spi_disable_blockprotect,
15816 .write = spi_chip_write_256,
15817 .read = spi_chip_read,
15818 .voltage = {2700, 3600},
15819 },
15820
15821 {
15822 .vendor = "Sanyo",
15823 .name = "LE25FW418A",
15824 .bustype = BUS_SPI,
15825 .manufacture_id = SANYO_ID,
15826 .model_id = SANYO_LE25FW418A,
15827 .total_size = 512,
15828 .page_size = 256,
15829 .feature_bits = FEATURE_WRSR_WREN,
15830 .tested = TEST_UNTESTED,
15831 .probe = probe_spi_res2,
15832 .probe_timing = TIMING_ZERO,
15833 .block_erasers =
15834 {
15835 {
15836 .eraseblocks = { {4 * 1024, 128} },
15837 .block_erase = spi_block_erase_d7,
15838 }, {
15839 .eraseblocks = { {64 * 1024, 8} },
15840 .block_erase = spi_block_erase_d8,
15841 }, {
15842 .eraseblocks = { {512 * 1024, 1} },
15843 .block_erase = spi_block_erase_c7,
15844 }
15845 },
15846 .printlock = spi_prettyprint_status_register_bp2_srwd,
15847 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
15848 .write = spi_chip_write_256,
15849 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
15850 .voltage = {2700, 3600},
15851 },
15852
15853 {
15854 .vendor = "Sanyo",
15855 .name = "LE25FW806",
15856 .bustype = BUS_SPI,
15857 .manufacture_id = SANYO_ID,
15858 .model_id = SANYO_LE25FW806,
15859 .total_size = 1024,
15860 .page_size = 256,
15861 .feature_bits = FEATURE_WRSR_WREN,
15862 .tested = TEST_UNTESTED,
15863 .probe = probe_spi_res2,
15864 .probe_timing = TIMING_ZERO,
15865 .block_erasers =
15866 {
15867 {
15868 .eraseblocks = { {4 * 1024, 256} },
15869 .block_erase = spi_block_erase_20,
15870 }, {
15871 .eraseblocks = { {4 * 1024, 256} },
15872 .block_erase = spi_block_erase_d7,
15873 }, {
15874 .eraseblocks = { {64 * 1024, 16} },
15875 .block_erase = spi_block_erase_d8,
15876 }, {
15877 .eraseblocks = { {1024 * 1024, 1} },
15878 .block_erase = spi_block_erase_c7,
15879 }
15880 },
15881 .printlock = spi_prettyprint_status_register_bp2_srwd,
15882 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
15883 .write = spi_chip_write_256,
15884 .read = spi_chip_read,
15885 .voltage = {2700, 3600},
15886 },
15887
15888 {
15889 .vendor = "Sanyo",
15890 .name = "LE25FW808",
15891 .bustype = BUS_SPI,
15892 .manufacture_id = SANYO_ID,
15893 .model_id = SANYO_LE25FW808,
15894 .total_size = 1024,
15895 .page_size = 256,
15896 .feature_bits = FEATURE_WRSR_WREN,
15897 .tested = TEST_UNTESTED,
15898 .probe = probe_spi_res2,
15899 .probe_timing = TIMING_ZERO,
15900 .block_erasers =
15901 {
15902 {
15903 .eraseblocks = { {8 * 1024, 128} },
15904 .block_erase = spi_block_erase_d7,
15905 }, {
15906 .eraseblocks = { {64 * 1024, 16} },
15907 .block_erase = spi_block_erase_d8,
15908 }, {
15909 .eraseblocks = { {1024 * 1024, 1} },
15910 .block_erase = spi_block_erase_c7,
15911 }
15912 },
15913 .printlock = spi_prettyprint_status_register_bp2_srwd,
15914 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
15915 .write = spi_chip_write_256,
15916 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
15917 .voltage = {2700, 3600},
15918 },
15919
15920 {
15921 .vendor = "Sharp",
15922 .name = "LH28F008BJT-BTLZ1",
15923 .bustype = BUS_PARALLEL,
15924 .manufacture_id = SHARP_ID,
15925 .model_id = SHARP_LH28F008BJ__PB,
15926 .total_size = 1024,
15927 .page_size = 64 * 1024,
15928 .tested = TEST_OK_PREW,
15929 .probe = probe_82802ab,
15930 .probe_timing = TIMING_ZERO,
15931 .block_erasers =
15932 {
15933 {
15934 .eraseblocks = {
15935 {8 * 1024, 8},
15936 {64 * 1024, 15}
15937 },
15938 .block_erase = erase_block_82802ab,
15939 }, {
15940 .eraseblocks = { {1024 * 1024, 1} },
15941 .block_erase = erase_sector_49lfxxxc,
15942 }
15943 },
15944 .unlock = unlock_lh28f008bjt,
15945 .write = write_82802ab,
15946 .read = read_memmapped,
15947 .voltage = {2700, 3600},
15948 },
15949
15950 {
15951 .vendor = "Sharp",
15952 .name = "LHF00L04",
15953 .bustype = BUS_FWH, /* A/A Mux */
15954 .manufacture_id = SHARP_ID,
15955 .model_id = SHARP_LHF00L04,
15956 .total_size = 1024,
15957 .page_size = 64 * 1024,
15958 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
15959 .tested = TEST_UNTESTED,
15960 .probe = probe_82802ab,
15961 .probe_timing = TIMING_ZERO,
15962 .block_erasers =
15963 {
15964 {
15965 .eraseblocks = {
15966 {64 * 1024, 15},
15967 {8 * 1024, 8}
15968 },
15969 .block_erase = erase_block_82802ab,
15970 }, {
15971 .eraseblocks = {
15972 {1024 * 1024, 1}
15973 },
15974 .block_erase = NULL, /* 30 D0, only in A/A mux mode */
15975 },
15976 },
15977 .unlock = unlock_regspace2_uniform_64k,
15978 .write = write_82802ab,
15979 .read = read_memmapped,
15980 .voltage = {3000, 3600},
15981 },
15982
15983 {
15984 .vendor = "Spansion",
15985 .name = "S25FL004A",
15986 .bustype = BUS_SPI,
15987 .manufacture_id = SPANSION_ID,
15988 .model_id = SPANSION_S25FL004A,
15989 .total_size = 512,
15990 .page_size = 256,
15991 .feature_bits = FEATURE_WRSR_WREN,
15992 .tested = TEST_UNTESTED,
15993 .probe = probe_spi_rdid,
15994 .probe_timing = TIMING_ZERO,
15995 .block_erasers =
15996 {
15997 {
15998 .eraseblocks = { {64 * 1024, 8} },
15999 .block_erase = spi_block_erase_d8,
16000 }, {
16001 .eraseblocks = { {512 * 1024, 1} },
16002 .block_erase = spi_block_erase_c7,
16003 }
16004 },
16005 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16006 .unlock = spi_disable_blockprotect,
16007 .write = spi_chip_write_256,
16008 .read = spi_chip_read,
16009 .voltage = {2700, 3600},
16010 },
16011
16012 {
16013 .vendor = "Spansion",
16014 .name = "S25FL008A",
16015 .bustype = BUS_SPI,
16016 .manufacture_id = SPANSION_ID,
16017 .model_id = SPANSION_S25FL008A,
16018 .total_size = 1024,
16019 .page_size = 256,
16020 .feature_bits = FEATURE_WRSR_WREN,
16021 .tested = TEST_OK_PRE,
16022 .probe = probe_spi_rdid,
16023 .probe_timing = TIMING_ZERO,
16024 .block_erasers =
16025 {
16026 {
16027 .eraseblocks = { {64 * 1024, 16} },
16028 .block_erase = spi_block_erase_d8,
16029 }, {
16030 .eraseblocks = { {1024 * 1024, 1} },
16031 .block_erase = spi_block_erase_c7,
16032 }
16033 },
16034 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16035 .unlock = spi_disable_blockprotect,
16036 .write = spi_chip_write_256,
16037 .read = spi_chip_read,
16038 .voltage = {2700, 3600},
16039 },
16040
16041 {
16042 .vendor = "Spansion",
16043 .name = "S25FL016A",
16044 .bustype = BUS_SPI,
16045 .manufacture_id = SPANSION_ID,
16046 .model_id = SPANSION_S25FL016A,
16047 .total_size = 2048,
16048 .page_size = 256,
16049 .feature_bits = FEATURE_WRSR_WREN,
16050 .tested = TEST_OK_PREW,
16051 .probe = probe_spi_rdid,
16052 .probe_timing = TIMING_ZERO,
16053 .block_erasers =
16054 {
16055 {
16056 .eraseblocks = { {64 * 1024, 32} },
16057 .block_erase = spi_block_erase_d8,
16058 }, {
16059 .eraseblocks = { {2 * 1024 * 1024, 1} },
16060 .block_erase = spi_block_erase_c7,
16061 }
16062 },
16063 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16064 .unlock = spi_disable_blockprotect,
16065 .write = spi_chip_write_256,
16066 .read = spi_chip_read,
16067 .voltage = {2700, 3600},
16068 },
16069
16070 {
16071 .vendor = "Spansion",
16072 .name = "S25FL032A/P",
16073 .bustype = BUS_SPI,
16074 .manufacture_id = SPANSION_ID,
16075 .model_id = SPANSION_S25FL032A,
16076 .total_size = 4096,
16077 .page_size = 256,
16078 .feature_bits = FEATURE_WRSR_WREN,
16079 .tested = TEST_OK_PREW,
16080 .probe = probe_spi_rdid,
16081 .probe_timing = TIMING_ZERO,
16082 .block_erasers =
16083 {
16084 {
16085 .eraseblocks = { {64 * 1024, 64} },
16086 .block_erase = spi_block_erase_d8,
16087 }, {
16088 .eraseblocks = { {4 * 1024 * 1024, 1} },
16089 .block_erase = spi_block_erase_c7,
16090 }
16091 },
16092 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16093 .unlock = spi_disable_blockprotect,
16094 .write = spi_chip_write_256,
16095 .read = spi_chip_read,
16096 .voltage = {2700, 3600},
16097 },
16098
16099 {
16100 .vendor = "Spansion",
16101 .name = "S25FL064A/P",
16102 .bustype = BUS_SPI,
16103 .manufacture_id = SPANSION_ID,
16104 .model_id = SPANSION_S25FL064A,
16105 .total_size = 8192,
16106 .page_size = 256,
16107 .feature_bits = FEATURE_WRSR_WREN,
16108 .tested = TEST_OK_PREW,
16109 .probe = probe_spi_rdid,
16110 .probe_timing = TIMING_ZERO,
16111 .block_erasers =
16112 {
16113 {
16114 .eraseblocks = { {64 * 1024, 128} },
16115 .block_erase = spi_block_erase_d8,
16116 }, {
16117 .eraseblocks = { {8 * 1024 * 1024, 1} },
16118 .block_erase = spi_block_erase_c7,
16119 }
16120 },
16121 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16122 .unlock = spi_disable_blockprotect,
16123 .write = spi_chip_write_256,
16124 .read = spi_chip_read,
16125 .voltage = {2700, 3600},
16126 },
16127
16128 {
16129 .vendor = "Spansion",
16130 .name = "S25FL116K/S25FL216K", /* FIXME: separate them */
16131 .bustype = BUS_SPI,
16132 .manufacture_id = SPANSION_ID,
16133 .model_id = SPANSION_S25FL216,
16134 .total_size = 2048,
16135 .page_size = 256,
16136 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (S25FL116K only) */
16137 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16138 .tested = TEST_UNTESTED,
16139 .probe = probe_spi_rdid,
16140 .probe_timing = TIMING_ZERO,
16141 .block_erasers =
16142 {
16143 {
16144 .eraseblocks = { {4 * 1024, 512} },
16145 .block_erase = spi_block_erase_20,
16146 }, {
16147 .eraseblocks = { {64 * 1024, 32} },
16148 .block_erase = spi_block_erase_d8,
16149 }, {
16150 .eraseblocks = { { 2048 * 1024, 1} },
16151 .block_erase = spi_block_erase_60,
16152 }, {
16153 .eraseblocks = { { 2048 * 1024, 1} },
16154 .block_erase = spi_block_erase_c7,
16155 }
16156 },
16157 .printlock = spi_prettyprint_status_register_bp3_srwd,
16158 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
16159 .write = spi_chip_write_256,
16160 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
16161 .voltage = {2700, 3600},
16162 },
16163
16164 {
16165 .vendor = "Spansion",
16166 .name = "S25FL127S-256kB", /* uniform 256kB sectors */
16167 .bustype = BUS_SPI,
16168 .manufacture_id = SPANSION_ID,
16169 .model_id = SPANSION_S25FL128,
16170 .total_size = 16384,
16171 .page_size = 512,
16172 /* supports 4B addressing */
16173 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
16174 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16175 .tested = TEST_UNTESTED,
16176 .probe = probe_spi_rdid,
16177 .probe_timing = TIMING_ZERO,
16178 .block_erasers =
16179 {
16180 {
16181 .eraseblocks = { {256 * 1024, 64} },
16182 .block_erase = spi_block_erase_d8,
16183 }, {
16184 .eraseblocks = { { 16384 * 1024, 1} },
16185 .block_erase = spi_block_erase_60,
16186 }, {
16187 .eraseblocks = { { 16384 * 1024, 1} },
16188 .block_erase = spi_block_erase_c7,
16189 }
16190 },
16191 .printlock = spi_prettyprint_status_register_bp2_srwd,
16192 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
16193 .write = spi_chip_write_256, /* Multi I/O supported */
16194 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16195 .voltage = {2700, 3600},
16196 },
16197
16198 {
16199 .vendor = "Spansion",
16200 .name = "S25FL127S-64kB", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
16201 .bustype = BUS_SPI,
16202 .manufacture_id = SPANSION_ID,
16203 .model_id = SPANSION_S25FL128,
16204 .total_size = 16384,
16205 .page_size = 256,
16206 /* supports 4B addressing */
16207 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
16208 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16209 .tested = TEST_OK_PREW,
16210 /* FIXME: we should distinguish the configuration on probing time like we do for AT45DB chips */
16211 .probe = probe_spi_rdid,
16212 .probe_timing = TIMING_ZERO,
16213 .block_erasers =
16214 {
16215 {
16216 /* This chip supports erasing of 32 so-called "parameter sectors" with
16217 * opcode 0x20 which may be configured to be on top or bottom of the address
16218 * space. Trying to access an address outside these 4kB blocks does have no
16219 * effect on the memory contents, e.g.
16220 .eraseblocks = {
16221 {4 * 1024, 32},
16222 {64 * 1024, 254} // inaccessible
16223 },
16224 .block_erase = spi_block_erase_20,
16225 }, { */
16226 .eraseblocks = { { 64 * 1024, 256} },
16227 .block_erase = spi_block_erase_d8,
16228 }, {
16229 .eraseblocks = { { 16384 * 1024, 1} },
16230 .block_erase = spi_block_erase_60,
16231 }, {
16232 .eraseblocks = { { 16384 * 1024, 1} },
16233 .block_erase = spi_block_erase_c7,
16234 }
16235 },
16236 .printlock = spi_prettyprint_status_register_bp2_srwd,
16237 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
16238 .write = spi_chip_write_256, /* Multi I/O supported */
16239 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16240 .voltage = {2700, 3600},
16241 },
16242
16243 {
16244 .vendor = "Spansion",
Nico Huberfffc48d2022-05-28 14:26:06 +020016245 .name = "S25FL128L",
16246 .bustype = BUS_SPI,
16247 .manufacture_id = SPANSION_ID,
16248 .model_id = SPANSION_S25FL128L,
16249 .total_size = 16384,
16250 .page_size = 256,
16251 /* 4 x 256B Security Region (OTP) */
16252 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT3 | FEATURE_OTP,
16253 .tested = TEST_UNTESTED,
16254 .probe = probe_spi_rdid,
16255 .probe_timing = TIMING_ZERO,
16256 .block_erasers =
16257 {
16258 {
16259 .eraseblocks = { {4 * 1024, 4096} },
16260 .block_erase = spi_block_erase_20,
16261 }, {
16262 .eraseblocks = { {32 * 1024, 512} },
16263 .block_erase = spi_block_erase_52,
16264 }, {
16265 .eraseblocks = { {64 * 1024, 256} },
16266 .block_erase = spi_block_erase_d8,
16267 }, {
16268 .eraseblocks = { {16384 * 1024, 1} },
16269 .block_erase = spi_block_erase_60,
16270 }, {
16271 .eraseblocks = { {16384 * 1024, 1} },
16272 .block_erase = spi_block_erase_c7,
16273 }
16274 },
16275 .printlock = spi_prettyprint_status_register_bp2_srwd,
16276 .unlock = spi_disable_blockprotect_bp2_srwd,
16277 .write = spi_chip_write_256,
16278 .read = spi_chip_read, /* Fast read (0x0B) supported */
16279 .voltage = {2700, 3600},
16280 .reg_bits =
16281 {
16282 /*
16283 * Note: This chip has a read-only Status Register 2 that is not
16284 * counted here. Registers are mapped as follows:
16285 * STATUS1 ... Status Register 1
16286 * STATUS2 ... Configuration Register 1
16287 * STATUS3 ... Configuration Register 2
16288 */
16289 .srp = {STATUS1, 7, RW},
16290 .srl = {STATUS2, 0, RW},
16291 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
16292 .tb = {STATUS1, 5, RW},
16293 .sec = {STATUS1, 6, RW},
16294 .cmp = {STATUS2, 6, RW},
16295 .wps = {STATUS3, 2, RW},
16296 },
16297 .decode_range = decode_range_spi25,
16298 },
16299
16300 {
16301 .vendor = "Spansion",
Alan Green1f9cc7d2019-07-01 11:10:45 +100016302 .name = "S25FL128P......0", /* uniform 64 kB sectors */
16303 .bustype = BUS_SPI,
16304 .manufacture_id = SPANSION_ID,
16305 .model_id = SPANSION_S25FL128,
16306 .total_size = 16384,
16307 .page_size = 256,
16308 .feature_bits = FEATURE_WRSR_WREN,
16309 .tested = TEST_OK_PREW,
16310 .probe = probe_spi_rdid,
16311 .probe_timing = TIMING_ZERO,
16312 .block_erasers =
16313 {
16314 {
16315 .eraseblocks = { {64 * 1024, 256} },
16316 .block_erase = spi_block_erase_20,
16317 }, {
16318 .eraseblocks = { {64 * 1024, 256} },
16319 .block_erase = spi_block_erase_d8,
16320 }, {
16321 .eraseblocks = { { 16384 * 1024, 1} },
16322 .block_erase = spi_block_erase_60,
16323 }, {
16324 .eraseblocks = { { 16384 * 1024, 1} },
16325 .block_erase = spi_block_erase_c7,
16326 }
16327 },
16328 .printlock = spi_prettyprint_status_register_bp3_srwd,
16329 .unlock = spi_disable_blockprotect_bp3_srwd,
16330 .write = spi_chip_write_256,
16331 .read = spi_chip_read, /* Fast read (0x0B) supported */
16332 .voltage = {2700, 3600},
16333 },
16334
16335 {
16336 .vendor = "Spansion",
16337 .name = "S25FL128P......1", /* uniform 256kB sectors */
16338 .bustype = BUS_SPI,
16339 .manufacture_id = SPANSION_ID,
16340 .model_id = SPANSION_S25FL128,
16341 .total_size = 16384,
16342 .page_size = 256,
16343 .feature_bits = FEATURE_WRSR_WREN,
16344 .tested = TEST_UNTESTED,
16345 .probe = probe_spi_rdid,
16346 .probe_timing = TIMING_ZERO,
16347 .block_erasers =
16348 {
16349 {
16350 .eraseblocks = { {256 * 1024, 64} },
16351 .block_erase = spi_block_erase_d8,
16352 }, {
16353 .eraseblocks = { { 16384 * 1024, 1} },
16354 .block_erase = spi_block_erase_c7,
16355 }
16356 },
16357 .printlock = spi_prettyprint_status_register_bp2_srwd,
16358 .unlock = spi_disable_blockprotect_bp2_srwd,
16359 .write = spi_chip_write_256,
16360 .read = spi_chip_read, /* Fast read (0x0B) supported */
16361 .voltage = {2700, 3600},
16362 },
16363
16364 {
16365 .vendor = "Spansion",
16366 .name = "S25FL128S......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
16367 .bustype = BUS_SPI,
16368 .manufacture_id = SPANSION_ID,
16369 .model_id = SPANSION_S25FL128,
16370 .total_size = 16384,
16371 .page_size = 256,
16372 /* supports 4B addressing */
16373 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
16374 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16375 .tested = TEST_OK_PREW,
16376 .probe = probe_spi_rdid,
16377 .probe_timing = TIMING_ZERO,
16378 .block_erasers =
16379 {
16380 {
16381 /* This chip supports erasing of the 32 so-called "parameter sectors" with
16382 * opcode 0x20. Trying to access an address outside these 4kB blocks does
16383 * have no effect on the memory contents, but sets a flag in the SR.
16384 .eraseblocks = {
16385 {4 * 1024, 32},
16386 {64 * 1024, 254} // inaccessible
16387 },
16388 .block_erase = spi_block_erase_20,
16389 }, { */
16390 .eraseblocks = { { 64 * 1024, 256} },
16391 .block_erase = spi_block_erase_d8,
16392 }, {
16393 .eraseblocks = { { 16384 * 1024, 1} },
16394 .block_erase = spi_block_erase_60,
16395 }, {
16396 .eraseblocks = { { 16384 * 1024, 1} },
16397 .block_erase = spi_block_erase_c7,
16398 }
16399 },
16400 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
16401 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
16402 .write = spi_chip_write_256, /* Multi I/O supported */
16403 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16404 .voltage = {2700, 3600},
16405 },
16406
16407 {
16408 .vendor = "Spansion",
16409 .name = "S25FL128S......1", /* uniform 256 kB sectors */
16410 .bustype = BUS_SPI,
16411 .manufacture_id = SPANSION_ID,
16412 .model_id = SPANSION_S25FL128,
16413 .total_size = 16384,
16414 .page_size = 512,
16415 /* supports 4B addressing */
16416 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
16417 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16418 .tested = TEST_UNTESTED,
16419 .probe = probe_spi_rdid,
16420 .probe_timing = TIMING_ZERO,
16421 .block_erasers =
16422 {
16423 {
16424 .eraseblocks = { {256 * 1024, 64} },
16425 .block_erase = spi_block_erase_d8,
16426 }, {
16427 .eraseblocks = { { 16384 * 1024, 1} },
16428 .block_erase = spi_block_erase_60,
16429 }, {
16430 .eraseblocks = { { 16384 * 1024, 1} },
16431 .block_erase = spi_block_erase_c7,
16432 }
16433 },
16434 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
16435 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
16436 .write = spi_chip_write_256, /* Multi I/O supported */
16437 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16438 .voltage = {2700, 3600},
16439 },
16440
16441 {
16442 .vendor = "Spansion",
16443 .name = "S25FL129P......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
16444 .bustype = BUS_SPI,
16445 .manufacture_id = SPANSION_ID,
16446 .model_id = SPANSION_S25FL128,
16447 .total_size = 16384,
16448 .page_size = 256,
16449 /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */
16450 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16451 .tested = TEST_OK_PREW,
16452 .probe = probe_spi_rdid,
16453 .probe_timing = TIMING_ZERO,
16454 .block_erasers =
16455 {
16456 {
16457 /* FIXME: This chip supports erasing of the 32 so-called "parameter sectors" with
16458 * opcode 0x20. Trying to access an address outside these 4kB blocks does have no
16459 * effect on the memory contents, but sets a flag in the SR.
16460 .eraseblocks = {
16461 {4 * 1024, 32},
16462 {64 * 1024, 254} // inaccessible
16463 },
16464 .block_erase = spi_block_erase_20,
16465 }, { */
16466 /* FIXME: Additionally it also supports erase opcode 40h for the respective 2*4 kB pairs
16467 .eraseblocks = {
16468 {8 * 1024, 16},
16469 {64 * 1024, 254} // inaccessible
16470 },
16471 .block_erase = spi_block_erase_40,
16472 }, { */
16473 .eraseblocks = { { 64 * 1024, 256} },
16474 .block_erase = spi_block_erase_d8,
16475 }, {
16476 .eraseblocks = { { 16384 * 1024, 1} },
16477 .block_erase = spi_block_erase_60,
16478 }, {
16479 .eraseblocks = { { 16384 * 1024, 1} },
16480 .block_erase = spi_block_erase_c7,
16481 }
16482 },
16483 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */
16484 .unlock = spi_disable_blockprotect_bp2_srwd,
16485 .write = spi_chip_write_256, /* Multi I/O supported */
16486 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16487 .voltage = {2700, 3600},
16488 },
16489
16490 {
16491 .vendor = "Spansion",
16492 .name = "S25FL129P......1", /* uniform 256 kB sectors */
16493 .bustype = BUS_SPI,
16494 .manufacture_id = SPANSION_ID,
16495 .model_id = SPANSION_S25FL128,
16496 .total_size = 16384,
16497 .page_size = 256,
16498 /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */
16499 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16500 .tested = TEST_UNTESTED,
16501 .probe = probe_spi_rdid,
16502 .probe_timing = TIMING_ZERO,
16503 .block_erasers =
16504 {
16505 {
16506 .eraseblocks = { {256 * 1024, 64} },
16507 .block_erase = spi_block_erase_d8,
16508 }, {
16509 .eraseblocks = { { 16384 * 1024, 1} },
16510 .block_erase = spi_block_erase_60,
16511 }, {
16512 .eraseblocks = { { 16384 * 1024, 1} },
16513 .block_erase = spi_block_erase_c7,
16514 }
16515 },
16516 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */
16517 .unlock = spi_disable_blockprotect_bp2_srwd,
16518 .write = spi_chip_write_256, /* Multi I/O supported */
16519 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16520 .voltage = {2700, 3600},
16521 },
16522
16523 {
16524 .vendor = "Spansion",
16525 .name = "S25FL132K",
16526 .bustype = BUS_SPI,
16527 .manufacture_id = SPANSION_ID,
16528 .model_id = SPANSION_S25FL132K,
16529 .total_size = 4096,
16530 .page_size = 256,
16531 /* OTP: 768B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
16532 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16533 .tested = TEST_UNTESTED,
16534 .probe = probe_spi_rdid,
16535 .probe_timing = TIMING_ZERO,
16536 .block_erasers =
16537 {
16538 {
16539 .eraseblocks = { {4 * 1024, 1024} },
16540 .block_erase = spi_block_erase_20,
16541 }, {
16542 .eraseblocks = { {64 * 1024, 64} },
16543 .block_erase = spi_block_erase_d8,
16544 }, {
16545 .eraseblocks = { { 4096 * 1024, 1} },
16546 .block_erase = spi_block_erase_60,
16547 }, {
16548 .eraseblocks = { { 4096 * 1024, 1} },
16549 .block_erase = spi_block_erase_c7,
16550 }
16551 },
16552 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
16553 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
16554 .write = spi_chip_write_256,
16555 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16556 .voltage = {2700, 3600},
16557 },
16558
16559 {
16560 .vendor = "Spansion",
16561 .name = "S25FL164K",
16562 .bustype = BUS_SPI,
16563 .manufacture_id = SPANSION_ID,
16564 .model_id = SPANSION_S25FL164K,
16565 .total_size = 8192,
16566 .page_size = 256,
16567 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
16568 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16569 .tested = TEST_OK_PREW,
16570 .probe = probe_spi_rdid,
16571 .probe_timing = TIMING_ZERO,
16572 .block_erasers =
16573 {
16574 {
16575 .eraseblocks = { {4 * 1024, 2048} },
16576 .block_erase = spi_block_erase_20,
16577 }, {
16578 .eraseblocks = { {64 * 1024, 128} },
16579 .block_erase = spi_block_erase_d8,
16580 }, {
16581 .eraseblocks = { { 8192 * 1024, 1} },
16582 .block_erase = spi_block_erase_60,
16583 }, {
16584 .eraseblocks = { { 8192 * 1024, 1} },
16585 .block_erase = spi_block_erase_c7,
16586 }
16587 },
16588 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
16589 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
16590 .write = spi_chip_write_256,
16591 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16592 .voltage = {2700, 3600},
16593 },
16594
16595 {
16596 .vendor = "Spansion",
16597 .name = "S25FL204K",
16598 .bustype = BUS_SPI,
16599 .manufacture_id = SPANSION_ID,
16600 .model_id = SPANSION_S25FL204,
16601 .total_size = 512,
16602 .page_size = 256,
16603 .feature_bits = FEATURE_WRSR_WREN,
16604 .tested = TEST_OK_PR,
16605 .probe = probe_spi_rdid,
16606 .probe_timing = TIMING_ZERO,
16607 .block_erasers =
16608 {
16609 {
16610 .eraseblocks = { {4 * 1024, 128} },
16611 .block_erase = spi_block_erase_20,
16612 }, {
16613 .eraseblocks = { {64 * 1024, 8} },
16614 .block_erase = spi_block_erase_d8,
16615 }, {
16616 .eraseblocks = { { 512 * 1024, 1} },
16617 .block_erase = spi_block_erase_60,
16618 }, {
16619 .eraseblocks = { { 512 * 1024, 1} },
16620 .block_erase = spi_block_erase_c7,
16621 }
16622 },
16623 .printlock = spi_prettyprint_status_register_bp3_srwd,
16624 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
16625 .write = spi_chip_write_256,
16626 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
16627 .voltage = {2700, 3600},
16628 },
16629
16630 {
16631 .vendor = "Spansion",
16632 .name = "S25FL208K",
16633 .bustype = BUS_SPI,
16634 .manufacture_id = SPANSION_ID,
16635 .model_id = SPANSION_S25FL208,
16636 .total_size = 1024,
16637 .page_size = 256,
16638 .feature_bits = FEATURE_WRSR_WREN,
16639 .tested = TEST_OK_PREW,
16640 .probe = probe_spi_rdid,
16641 .probe_timing = TIMING_ZERO,
16642 .block_erasers =
16643 {
16644 {
16645 .eraseblocks = { {4 * 1024, 256} },
16646 .block_erase = spi_block_erase_20,
16647 }, {
16648 .eraseblocks = { {64 * 1024, 16} },
16649 .block_erase = spi_block_erase_d8,
16650 }, {
16651 .eraseblocks = { { 1024 * 1024, 1} },
16652 .block_erase = spi_block_erase_60,
16653 }, {
16654 .eraseblocks = { { 1024 * 1024, 1} },
16655 .block_erase = spi_block_erase_c7,
16656 }
16657 },
16658 .printlock = spi_prettyprint_status_register_bp3_srwd,
16659 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
16660 .write = spi_chip_write_256,
16661 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
16662 .voltage = {2700, 3600},
16663 },
16664
16665 {
16666 .vendor = "Spansion",
Nico Huberfffc48d2022-05-28 14:26:06 +020016667 .name = "S25FL256L",
16668 .bustype = BUS_SPI,
16669 .manufacture_id = SPANSION_ID,
16670 .model_id = SPANSION_S25FL256L,
16671 .total_size = 32768,
16672 .page_size = 256,
16673 /* 4 x 256B Security Region (OTP) */
16674 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT3 | FEATURE_OTP |
16675 FEATURE_4BA_ENTER | FEATURE_4BA_NATIVE,
16676 .tested = TEST_UNTESTED,
16677 .probe = probe_spi_rdid,
16678 .probe_timing = TIMING_ZERO,
16679 .block_erasers =
16680 {
16681 {
16682 .eraseblocks = { {4 * 1024, 8192} },
16683 .block_erase = spi_block_erase_21,
16684 }, {
16685 .eraseblocks = { {4 * 1024, 8192} },
16686 .block_erase = spi_block_erase_20,
16687 }, {
16688 .eraseblocks = { {32 * 1024, 1024} },
16689 .block_erase = spi_block_erase_53,
16690 }, {
16691 .eraseblocks = { {32 * 1024, 1024} },
16692 .block_erase = spi_block_erase_52,
16693 }, {
16694 .eraseblocks = { {64 * 1024, 512} },
16695 .block_erase = spi_block_erase_dc,
16696 }, {
16697 .eraseblocks = { {64 * 1024, 512} },
16698 .block_erase = spi_block_erase_d8,
16699 }, {
16700 .eraseblocks = { {32768 * 1024, 1} },
16701 .block_erase = spi_block_erase_60,
16702 }, {
16703 .eraseblocks = { {32768 * 1024, 1} },
16704 .block_erase = spi_block_erase_c7,
16705 }
16706 },
16707 .printlock = spi_prettyprint_status_register_bp3_srwd,
16708 .unlock = spi_disable_blockprotect_bp3_srwd,
16709 .write = spi_chip_write_256,
16710 .read = spi_chip_read, /* Fast read (0x0B) supported */
16711 .voltage = {2700, 3600},
16712 .reg_bits =
16713 {
16714 /*
16715 * Note: This chip has a read-only Status Register 2 that is not
16716 * counted here. Registers are mapped as follows:
16717 * STATUS1 ... Status Register 1
16718 * STATUS2 ... Configuration Register 1
16719 * STATUS3 ... Configuration Register 2
16720 */
16721 .srp = {STATUS1, 7, RW},
16722 .srl = {STATUS2, 0, RW},
16723 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}},
16724 .tb = {STATUS1, 6, RW},
16725 .cmp = {STATUS2, 6, RW},
16726 .wps = {STATUS3, 2, RW},
16727 },
16728 .decode_range = decode_range_spi25,
16729 },
16730
16731 {
16732 .vendor = "Spansion",
Alan Green1f9cc7d2019-07-01 11:10:45 +100016733 .name = "S25FL256S......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
16734 .bustype = BUS_SPI,
16735 .manufacture_id = SPANSION_ID,
16736 .model_id = SPANSION_S25FL256,
16737 .total_size = 32768,
16738 .page_size = 256,
16739 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
Nico Huber9bb8a322022-05-24 15:07:34 +020016740 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP |
16741 FEATURE_4BA_NATIVE | FEATURE_4BA_ENTER_EAR7 | FEATURE_4BA_EAR_1716,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016742 .tested = TEST_OK_PREW,
16743 .probe = probe_spi_rdid,
16744 .probe_timing = TIMING_ZERO,
16745 .block_erasers =
16746 {
16747 {
16748 /* This chip supports erasing of the 32 so-called "parameter sectors" with
16749 * opcode 0x20. Trying to access an address outside these 4kB blocks does
16750 * have no effect on the memory contents, but sets a flag in the SR.
16751 .eraseblocks = {
16752 {4 * 1024, 32},
16753 {64 * 1024, 254} // inaccessible
16754 },
16755 .block_erase = spi_block_erase_20,
16756 }, { */
16757 .eraseblocks = { { 64 * 1024, 512} },
16758 .block_erase = spi_block_erase_dc,
16759 }, {
16760 .eraseblocks = { { 64 * 1024, 512} },
16761 .block_erase = spi_block_erase_d8,
16762 }, {
16763 .eraseblocks = { { 32768 * 1024, 1} },
16764 .block_erase = spi_block_erase_60,
16765 }, {
16766 .eraseblocks = { { 32768 * 1024, 1} },
16767 .block_erase = spi_block_erase_c7,
16768 }
16769 },
16770 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
16771 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
16772 .write = spi_chip_write_256, /* Multi I/O supported */
16773 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16774 .voltage = {2700, 3600},
Alan Green1f9cc7d2019-07-01 11:10:45 +100016775 },
16776
16777 {
Bernhard Urban-Forster05c629b2020-02-02 21:29:48 +010016778 .vendor = "Spansion",
16779 .name = "S25FL512S",
16780 .bustype = BUS_SPI,
16781 .manufacture_id = SPANSION_ID,
16782 .model_id = SPANSION_S25FL512,
16783 .total_size = 65536, /* 512 Mb (=> 64 MB)) */
16784 .page_size = 256,
16785 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
Nico Huber26237922022-06-20 19:37:37 +020016786 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP |
16787 FEATURE_4BA_NATIVE | FEATURE_4BA_ENTER_EAR7 | FEATURE_4BA_EAR_1716,
16788 .tested = TEST_UNTESTED,
Bernhard Urban-Forster05c629b2020-02-02 21:29:48 +010016789 .probe = probe_spi_rdid,
16790 .probe_timing = TIMING_ZERO,
16791 .block_erasers =
16792 {
16793 {
16794 .eraseblocks = { { 256 * 1024, 256} },
16795 .block_erase = spi_block_erase_dc,
16796 }, {
Nico Huberbb608ff2022-05-24 15:33:26 +020016797 .eraseblocks = { { 256 * 1024, 256} },
16798 .block_erase = spi_block_erase_d8,
16799 }, {
Bernhard Urban-Forster05c629b2020-02-02 21:29:48 +010016800 .eraseblocks = { { 65536 * 1024, 1} },
16801 .block_erase = spi_block_erase_60,
16802 }, {
16803 .eraseblocks = { { 65536 * 1024, 1} },
16804 .block_erase = spi_block_erase_c7,
16805 }
16806 },
16807 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
16808 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
16809 .write = spi_chip_write_256, /* Multi I/O supported, IGNORE for now */
16810 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16811 .voltage = {2700, 3600},
16812 },
16813
16814 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000016815 .vendor = "SyncMOS/MoselVitelic",
16816 .name = "{F,S,V}29C51001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016817 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016818 .manufacture_id = SYNCMOS_MVC_ID,
16819 .model_id = SM_MVC_29C51001B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016820 .total_size = 128,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016821 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000016822 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016823 .tested = TEST_UNTESTED,
16824 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000016825 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000016826 .block_erasers =
16827 {
16828 {
16829 .eraseblocks = { {512, 256} },
16830 .block_erase = erase_sector_jedec,
16831 }, {
16832 .eraseblocks = { {128 * 1024, 1} },
16833 .block_erase = erase_chip_block_jedec,
16834 },
16835 },
Sean Nelson35727f72010-01-28 23:55:12 +000016836 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016837 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016838 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000016839 },
16840
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016841 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000016842 .vendor = "SyncMOS/MoselVitelic",
16843 .name = "{F,S,V}29C51001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016844 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016845 .manufacture_id = SYNCMOS_MVC_ID,
16846 .model_id = SM_MVC_29C51001T,
16847 .total_size = 128,
16848 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000016849 .feature_bits = FEATURE_EITHER_RESET,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016850 .tested = TEST_UNTESTED,
16851 .probe = probe_jedec,
16852 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
16853 .block_erasers =
16854 {
16855 {
16856 .eraseblocks = { {512, 256} },
16857 .block_erase = erase_sector_jedec,
16858 }, {
16859 .eraseblocks = { {128 * 1024, 1} },
16860 .block_erase = erase_chip_block_jedec,
16861 },
16862 },
16863 .write = write_jedec_1,
16864 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016865 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000016866 },
16867
16868 {
16869 .vendor = "SyncMOS/MoselVitelic",
16870 .name = "{F,S,V}29C51002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016871 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016872 .manufacture_id = SYNCMOS_MVC_ID,
16873 .model_id = SM_MVC_29C51002B,
16874 .total_size = 256,
16875 .page_size = 512,
16876 .feature_bits = FEATURE_EITHER_RESET,
16877 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016878 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000016879 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000016880 .block_erasers =
16881 {
16882 {
16883 .eraseblocks = { {512, 512} },
16884 .block_erase = erase_sector_jedec,
16885 }, {
16886 .eraseblocks = { {256 * 1024, 1} },
16887 .block_erase = erase_chip_block_jedec,
16888 },
16889 },
Sean Nelson35727f72010-01-28 23:55:12 +000016890 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016891 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000016892 },
16893
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016894 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000016895 .vendor = "SyncMOS/MoselVitelic",
16896 .name = "{F,S,V}29C51002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016897 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016898 .manufacture_id = SYNCMOS_MVC_ID,
16899 .model_id = SM_MVC_29C51002T,
16900 .total_size = 256,
16901 .page_size = 512,
16902 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000016903 .tested = TEST_OK_PREW,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016904 .probe = probe_jedec,
16905 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
16906 .block_erasers =
16907 {
16908 {
16909 .eraseblocks = { {512, 512} },
16910 .block_erase = erase_sector_jedec,
16911 }, {
16912 .eraseblocks = { {256 * 1024, 1} },
16913 .block_erase = erase_chip_block_jedec,
16914 },
16915 },
16916 .write = write_jedec_1,
16917 .read = read_memmapped,
16918 },
16919
16920 {
16921 .vendor = "SyncMOS/MoselVitelic",
16922 .name = "{F,S,V}29C51004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016923 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016924 .manufacture_id = SYNCMOS_MVC_ID,
16925 .model_id = SM_MVC_29C51004B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016926 .total_size = 512,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016927 .page_size = 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000016928 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016929 .tested = TEST_UNTESTED,
16930 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000016931 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +000016932 .block_erasers =
16933 {
16934 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000016935 .eraseblocks = { {1024, 512} },
16936 .block_erase = erase_sector_jedec,
16937 }, {
16938 .eraseblocks = { {512 * 1024, 1} },
16939 .block_erase = erase_chip_block_jedec,
16940 },
16941 },
16942 .write = write_jedec_1,
16943 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016944 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000016945 },
16946
16947 {
16948 .vendor = "SyncMOS/MoselVitelic",
16949 .name = "{F,S,V}29C51004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016950 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016951 .manufacture_id = SYNCMOS_MVC_ID,
16952 .model_id = SM_MVC_29C51004T,
16953 .total_size = 512,
16954 .page_size = 1024,
16955 .feature_bits = FEATURE_EITHER_RESET,
16956 .tested = TEST_UNTESTED,
16957 .probe = probe_jedec,
16958 .probe_timing = TIMING_ZERO,
16959 .block_erasers =
16960 {
16961 {
16962 .eraseblocks = { {1024, 512} },
16963 .block_erase = erase_sector_jedec,
16964 }, {
16965 .eraseblocks = { {512 * 1024, 1} },
16966 .block_erase = erase_chip_block_jedec,
16967 },
16968 },
16969 .write = write_jedec_1,
16970 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016971 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000016972 },
16973
16974 {
16975 .vendor = "SyncMOS/MoselVitelic",
16976 .name = "{S,V}29C31004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016977 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016978 .manufacture_id = SYNCMOS_MVC_ID,
16979 .model_id = SM_MVC_29C31004B,
16980 .total_size = 512,
16981 .page_size = 1024,
16982 .feature_bits = FEATURE_EITHER_RESET,
16983 .tested = TEST_UNTESTED,
16984 .probe = probe_jedec,
16985 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
16986 .block_erasers =
16987 {
16988 {
16989 .eraseblocks = { {1024, 512} },
16990 .block_erase = erase_sector_jedec,
16991 }, {
16992 .eraseblocks = { {512 * 1024, 1} },
16993 .block_erase = erase_chip_block_jedec,
16994 },
16995 },
16996 .write = write_jedec_1,
16997 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016998 .voltage = {3000, 3600},
Mattias Mattsson4c066502010-07-29 20:01:13 +000016999 },
17000
17001 {
17002 .vendor = "SyncMOS/MoselVitelic",
17003 .name = "{S,V}29C31004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017004 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017005 .manufacture_id = SYNCMOS_MVC_ID,
17006 .model_id = SM_MVC_29C31004T,
17007 .total_size = 512,
17008 .page_size = 1024,
17009 .feature_bits = FEATURE_EITHER_RESET,
17010 .tested = TEST_UNTESTED,
17011 .probe = probe_jedec,
17012 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
17013 .block_erasers =
17014 {
17015 {
17016 .eraseblocks = { {1024, 512} },
Sean Nelson56358aa2010-01-19 16:08:51 +000017017 .block_erase = erase_sector_jedec,
17018 }, {
17019 .eraseblocks = { {512 * 1024, 1} },
17020 .block_erase = erase_chip_block_jedec,
17021 },
17022 },
Sean Nelson35727f72010-01-28 23:55:12 +000017023 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017024 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017025 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000017026 },
17027
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017028 {
Uwe Hermanna106d152009-05-27 23:17:40 +000017029 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017030 .name = "TMS29F002RB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017031 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017032 .manufacture_id = TI_OLD_ID,
17033 .model_id = TI_TMS29F002RB,
17034 .total_size = 256,
17035 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000017036 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017037 .tested = TEST_UNTESTED,
17038 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000017039 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000017040 .block_erasers =
17041 {
17042 {
17043 .eraseblocks = {
17044 {16 * 1024, 1},
17045 {8 * 1024, 2},
17046 {32 * 1024, 1},
17047 {64 * 1024, 3},
17048 },
17049 .block_erase = erase_sector_jedec,
17050 }, {
17051 .eraseblocks = { {256 * 1024, 1} },
17052 .block_erase = erase_chip_block_jedec,
17053 },
17054 },
Sean Nelson35727f72010-01-28 23:55:12 +000017055 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017056 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017057 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017058 },
17059
17060 {
Uwe Hermanna106d152009-05-27 23:17:40 +000017061 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017062 .name = "TMS29F002RT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017063 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017064 .manufacture_id = TI_OLD_ID,
17065 .model_id = TI_TMS29F002RT,
17066 .total_size = 256,
17067 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000017068 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017069 .tested = TEST_UNTESTED,
17070 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000017071 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000017072 .block_erasers =
17073 {
17074 {
17075 .eraseblocks = {
17076 {64 * 1024, 3},
17077 {32 * 1024, 1},
17078 {8 * 1024, 2},
17079 {16 * 1024, 1},
17080 },
17081 .block_erase = erase_sector_jedec,
17082 }, {
17083 .eraseblocks = { {256 * 1024, 1} },
17084 .block_erase = erase_chip_block_jedec,
17085 },
17086 },
Sean Nelson35727f72010-01-28 23:55:12 +000017087 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017088 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017089 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017090 },
17091
17092 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017093 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017094 .name = "W25P16",
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000017095 .bustype = BUS_SPI,
17096 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017097 .model_id = WINBOND_NEX_W25P16,
17098 .total_size = 2048,
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000017099 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017100 .feature_bits = FEATURE_WRSR_WREN,
17101 .tested = TEST_UNTESTED,
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000017102 .probe = probe_spi_rdid,
17103 .probe_timing = TIMING_ZERO,
17104 .block_erasers =
17105 {
17106 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017107 .eraseblocks = { {64 * 1024, 32} },
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000017108 .block_erase = spi_block_erase_d8,
17109 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017110 .eraseblocks = { {2048 * 1024, 1} },
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000017111 .block_erase = spi_block_erase_c7,
17112 }
17113 },
17114 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17115 .unlock = spi_disable_blockprotect,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017116 .write = spi_chip_write_256,
17117 .read = spi_chip_read, /* Fast read (0x0B) supported */
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000017118 .voltage = {2700, 3600},
17119 },
17120
17121 {
17122 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017123 .name = "W25P32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017124 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000017125 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017126 .model_id = WINBOND_NEX_W25P32,
17127 .total_size = 4096,
Rudolf Marekce1c7982010-04-20 19:34:31 +000017128 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017129 .feature_bits = FEATURE_WRSR_WREN,
17130 .tested = TEST_UNTESTED,
Rudolf Marekce1c7982010-04-20 19:34:31 +000017131 .probe = probe_spi_rdid,
17132 .probe_timing = TIMING_ZERO,
17133 .block_erasers =
17134 {
17135 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017136 .eraseblocks = { {64 * 1024, 64} },
17137 .block_erase = spi_block_erase_d8,
Rudolf Marekce1c7982010-04-20 19:34:31 +000017138 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017139 .eraseblocks = { {4096 * 1024, 1} },
17140 .block_erase = spi_block_erase_c7,
17141 }
17142 },
17143 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17144 .unlock = spi_disable_blockprotect,
17145 .write = spi_chip_write_256,
17146 .read = spi_chip_read, /* Fast read (0x0B) supported */
17147 .voltage = {2700, 3600},
17148 },
17149
17150 {
17151 .vendor = "Winbond",
17152 .name = "W25P80",
17153 .bustype = BUS_SPI,
17154 .manufacture_id = WINBOND_NEX_ID,
17155 .model_id = WINBOND_NEX_W25P80,
17156 .total_size = 1024,
17157 .page_size = 256,
17158 .feature_bits = FEATURE_WRSR_WREN,
17159 .tested = TEST_UNTESTED,
17160 .probe = probe_spi_rdid,
17161 .probe_timing = TIMING_ZERO,
17162 .block_erasers =
17163 {
17164 {
Rudolf Marekce1c7982010-04-20 19:34:31 +000017165 .eraseblocks = { {64 * 1024, 16} },
17166 .block_erase = spi_block_erase_d8,
17167 }, {
17168 .eraseblocks = { {1024 * 1024, 1} },
Rudolf Marekce1c7982010-04-20 19:34:31 +000017169 .block_erase = spi_block_erase_c7,
17170 }
17171 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000017172 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000017173 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000017174 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017175 .read = spi_chip_read, /* Fast read (0x0B) supported */
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017176 .voltage = {2700, 3600},
David Hendricksc4acec92010-06-24 11:39:57 +000017177 },
17178
17179 {
17180 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017181 .name = "W25Q128.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017182 .bustype = BUS_SPI,
Antony Rheneus0fbba982011-05-26 14:28:51 +000017183 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017184 .model_id = WINBOND_NEX_W25Q128_V,
Antony Rheneus0fbba982011-05-26 14:28:51 +000017185 .total_size = 16384,
17186 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017187 /* supports SFDP */
17188 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber3f3c1f32022-05-28 16:48:26 +020017189 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP |
17190 FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3,
Stefan Tauner0554ca52013-07-25 22:54:25 +000017191 .tested = TEST_OK_PREW,
Antony Rheneus0fbba982011-05-26 14:28:51 +000017192 .probe = probe_spi_rdid,
17193 .probe_timing = TIMING_ZERO,
17194 .block_erasers =
17195 {
17196 {
17197 .eraseblocks = { {4 * 1024, 4096} },
17198 .block_erase = spi_block_erase_20,
17199 }, {
17200 .eraseblocks = { {32 * 1024, 512} },
17201 .block_erase = spi_block_erase_52,
17202 }, {
17203 .eraseblocks = { {64 * 1024, 256} },
17204 .block_erase = spi_block_erase_d8,
17205 }, {
17206 .eraseblocks = { {16 * 1024 * 1024, 1} },
17207 .block_erase = spi_block_erase_60,
17208 }, {
17209 .eraseblocks = { {16 * 1024 * 1024, 1} },
17210 .block_erase = spi_block_erase_c7,
17211 }
17212 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000017213 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Antony Rheneus0fbba982011-05-26 14:28:51 +000017214 .unlock = spi_disable_blockprotect,
17215 .write = spi_chip_write_256,
17216 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017217 .voltage = {2700, 3600},
Sergii Dmytrukd1af3072021-11-08 00:00:43 +020017218 /* FIXME: Older versions (e.g. 25Q128BV) use WRSR_EXT and have no WPS. */
17219 .reg_bits =
17220 {
17221 .srp = {STATUS1, 7, RW},
17222 .srl = {STATUS2, 0, RW},
17223 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
17224 .tb = {STATUS1, 5, RW},
17225 .sec = {STATUS1, 6, RW},
17226 .cmp = {STATUS2, 6, RW},
17227 .wps = {STATUS3, 2, RW},
17228 },
17229 .decode_range = decode_range_spi25,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017230 },
17231
17232 {
17233 .vendor = "Winbond",
Patrick Rudolph34323492018-10-04 14:59:40 +020017234 .name = "W25Q128.V..M",
17235 .bustype = BUS_SPI,
17236 .manufacture_id = WINBOND_NEX_ID,
17237 .model_id = WINBOND_NEX_W25Q128_V_M,
17238 .total_size = 16384,
17239 .page_size = 256,
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110017240 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_WRSR2,
Sergii Dmytrukc74eac22022-10-06 18:17:58 +030017241 .tested = TEST_OK_PREWB,
Patrick Rudolph34323492018-10-04 14:59:40 +020017242 .probe = probe_spi_rdid,
17243 .probe_timing = TIMING_ZERO,
17244 .block_erasers =
17245 {
17246 {
17247 .eraseblocks = { {4 * 1024, 4096} },
17248 .block_erase = spi_block_erase_20,
17249 }, {
17250 .eraseblocks = { {32 * 1024, 512} },
17251 .block_erase = spi_block_erase_52,
17252 }, {
17253 .eraseblocks = { {64 * 1024, 256} },
17254 .block_erase = spi_block_erase_d8,
17255 }, {
17256 .eraseblocks = { {16 * 1024 * 1024, 1} },
17257 .block_erase = spi_block_erase_60,
17258 }, {
17259 .eraseblocks = { {16 * 1024 * 1024, 1} },
17260 .block_erase = spi_block_erase_c7,
17261 }
17262 },
Alan Greena1fc01d2019-09-23 17:12:44 +100017263 .printlock = spi_prettyprint_status_register_plain,
Patrick Rudolph34323492018-10-04 14:59:40 +020017264 .unlock = spi_disable_blockprotect,
17265 .write = spi_chip_write_256,
17266 .read = spi_chip_read,
17267 .voltage = {2700, 3600},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110017268 .reg_bits =
17269 {
17270 .srp = {STATUS1, 7, RW},
17271 .srl = {STATUS2, 0, RW},
17272 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
17273 .tb = {STATUS1, 5, RW},
17274 .sec = {STATUS1, 6, RW},
17275 .cmp = {STATUS2, 6, RW},
17276 },
17277 .decode_range = decode_range_spi25,
Patrick Rudolph34323492018-10-04 14:59:40 +020017278 },
17279
17280 {
17281 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017282 .name = "W25Q128.W",
17283 .bustype = BUS_SPI,
17284 .manufacture_id = WINBOND_NEX_ID,
17285 .model_id = WINBOND_NEX_W25Q128_W,
17286 .total_size = 16384,
17287 .page_size = 256,
17288 /* supports SFDP */
17289 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110017290 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_WRSR2,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017291 .tested = TEST_OK_PREW,
17292 .probe = probe_spi_rdid,
17293 .probe_timing = TIMING_ZERO,
17294 .block_erasers =
17295 {
17296 {
17297 .eraseblocks = { {4 * 1024, 4096} },
17298 .block_erase = spi_block_erase_20,
17299 }, {
17300 .eraseblocks = { {32 * 1024, 512} },
17301 .block_erase = spi_block_erase_52,
17302 }, {
17303 .eraseblocks = { {64 * 1024, 256} },
17304 .block_erase = spi_block_erase_d8,
17305 }, {
17306 .eraseblocks = { {16 * 1024 * 1024, 1} },
17307 .block_erase = spi_block_erase_60,
17308 }, {
17309 .eraseblocks = { {16 * 1024 * 1024, 1} },
17310 .block_erase = spi_block_erase_c7,
17311 }
17312 },
17313 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17314 .unlock = spi_disable_blockprotect,
17315 .write = spi_chip_write_256,
17316 .read = spi_chip_read,
17317 .voltage = {1650, 1950},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110017318 .reg_bits =
17319 {
17320 .srp = {STATUS1, 7, RW},
17321 .srl = {STATUS2, 0, RW},
17322 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
17323 .tb = {STATUS1, 5, RW},
17324 .sec = {STATUS1, 6, RW},
17325 .cmp = {STATUS2, 6, RW},
17326 },
17327 .decode_range = decode_range_spi25,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017328 },
17329
17330 {
17331 .vendor = "Winbond",
Peichao Wang1a119492019-11-11 15:26:41 +080017332 .name = "W25Q128.JW.DTR",
17333 .bustype = BUS_SPI,
17334 .manufacture_id = WINBOND_NEX_ID,
17335 .model_id = WINBOND_NEX_W25Q128_DTR,
17336 .total_size = 16384,
17337 .page_size = 256,
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110017338 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_WRSR2,
Peichao Wang1a119492019-11-11 15:26:41 +080017339 .tested = TEST_OK_PREW,
17340 .probe = probe_spi_rdid,
17341 .probe_timing = TIMING_ZERO,
17342 .block_erasers =
17343 {
17344 {
17345 .eraseblocks = { {4 * 1024, 4096} },
17346 .block_erase = spi_block_erase_20,
17347 }, {
17348 .eraseblocks = { {32 * 1024, 512} },
17349 .block_erase = spi_block_erase_52,
17350 }, {
17351 .eraseblocks = { {64 * 1024, 256} },
17352 .block_erase = spi_block_erase_d8,
17353 }, {
17354 .eraseblocks = { {16 * 1024 * 1024, 1} },
17355 .block_erase = spi_block_erase_60,
17356 }, {
17357 .eraseblocks = { {16 * 1024 * 1024, 1} },
17358 .block_erase = spi_block_erase_c7,
17359 }
17360 },
17361 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17362 .unlock = spi_disable_blockprotect,
17363 .write = spi_chip_write_256,
17364 .read = spi_chip_read,
17365 .voltage = {1650, 1950},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110017366 .reg_bits =
17367 {
17368 .srp = {STATUS1, 7, RW},
17369 .srl = {STATUS2, 0, RW},
17370 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
17371 .tb = {STATUS1, 5, RW},
17372 .sec = {STATUS1, 6, RW},
17373 .cmp = {STATUS2, 6, RW},
17374 },
17375 .decode_range = decode_range_spi25,
Peichao Wang1a119492019-11-11 15:26:41 +080017376 },
17377
17378 {
17379 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017380 .name = "W25Q16.V",
17381 .bustype = BUS_SPI,
17382 .manufacture_id = WINBOND_NEX_ID,
17383 .model_id = WINBOND_NEX_W25Q16_V,
17384 .total_size = 2048,
17385 .page_size = 256,
17386 /* supports SFDP */
17387 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17388 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17389 .tested = TEST_OK_PREW,
17390 .probe = probe_spi_rdid,
17391 .probe_timing = TIMING_ZERO,
17392 .block_erasers =
17393 {
17394 {
17395 .eraseblocks = { {4 * 1024, 512} },
17396 .block_erase = spi_block_erase_20,
17397 }, {
17398 .eraseblocks = { {32 * 1024, 64} },
17399 .block_erase = spi_block_erase_52,
17400 }, {
17401 .eraseblocks = { {64 * 1024, 32} },
17402 .block_erase = spi_block_erase_d8,
17403 }, {
17404 .eraseblocks = { {2 * 1024 * 1024, 1} },
17405 .block_erase = spi_block_erase_60,
17406 }, {
17407 .eraseblocks = { {2 * 1024 * 1024, 1} },
17408 .block_erase = spi_block_erase_c7,
17409 }
17410 },
17411 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17412 .unlock = spi_disable_blockprotect,
17413 .write = spi_chip_write_256,
17414 .read = spi_chip_read,
17415 .voltage = {2700, 3600},
17416 },
17417
17418 {
17419 .vendor = "Winbond",
17420 .name = "W25Q16.W",
17421 .bustype = BUS_SPI,
17422 .manufacture_id = WINBOND_NEX_ID,
17423 .model_id = WINBOND_NEX_W25Q16_W,
17424 .total_size = 2048,
17425 .page_size = 256,
17426 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17427 /* QPI enable 0x38, disable 0xFF */
17428 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
17429 .tested = TEST_UNTESTED,
17430 .probe = probe_spi_rdid,
17431 .probe_timing = TIMING_ZERO,
17432 .block_erasers =
17433 {
17434 {
17435 .eraseblocks = { {4 * 1024, 512} },
17436 .block_erase = spi_block_erase_20,
17437 }, {
17438 .eraseblocks = { {32 * 1024, 64} },
17439 .block_erase = spi_block_erase_52,
17440 }, {
17441 .eraseblocks = { {64 * 1024, 32} },
17442 .block_erase = spi_block_erase_d8,
17443 }, {
17444 .eraseblocks = { {2 * 1024 * 1024, 1} },
17445 .block_erase = spi_block_erase_60,
17446 }, {
17447 .eraseblocks = { {2 * 1024 * 1024, 1} },
17448 .block_erase = spi_block_erase_c7,
17449 }
17450 },
17451 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17452 .unlock = spi_disable_blockprotect,
17453 .write = spi_chip_write_256,
17454 .read = spi_chip_read,
17455 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
17456 },
17457
17458 {
17459 .vendor = "Winbond",
17460 .name = "W25Q20.W",
17461 .bustype = BUS_SPI,
17462 .manufacture_id = WINBOND_NEX_ID,
17463 .model_id = WINBOND_NEX_W25Q20_W,
17464 .total_size = 256,
17465 .page_size = 256,
17466 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17467 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17468 .tested = TEST_UNTESTED,
17469 .probe = probe_spi_rdid,
17470 .probe_timing = TIMING_ZERO,
17471 .block_erasers =
17472 {
17473 {
17474 .eraseblocks = { {4 * 1024, 64} },
17475 .block_erase = spi_block_erase_20,
17476 }, {
17477 .eraseblocks = { {32 * 1024, 8} },
17478 .block_erase = spi_block_erase_52,
17479 }, {
17480 .eraseblocks = { {64 * 1024, 4} },
17481 .block_erase = spi_block_erase_d8,
17482 }, {
17483 .eraseblocks = { {256 * 1024, 1} },
17484 .block_erase = spi_block_erase_60,
17485 }, {
17486 .eraseblocks = { {256 * 1024, 1} },
17487 .block_erase = spi_block_erase_c7,
17488 }
17489 },
17490 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17491 .unlock = spi_disable_blockprotect,
17492 .write = spi_chip_write_256,
17493 .read = spi_chip_read,
17494 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
17495 },
17496
17497 {
17498 .vendor = "Winbond",
Nico Huber5215eab2022-05-23 15:13:07 +020017499 .name = "W25Q256FV",
Boris Baykovaa6c3742016-06-11 18:29:01 +020017500 .bustype = BUS_SPI,
17501 .manufacture_id = WINBOND_NEX_ID,
17502 .model_id = WINBOND_NEX_W25Q256_V,
17503 .total_size = 32768,
17504 .page_size = 256,
17505 /* supports SFDP */
17506 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110017507 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_ENTER_WREN |
Nico Huber542b1f02022-05-24 14:30:12 +020017508 FEATURE_4BA_EAR_C5C8 | FEATURE_4BA_READ | FEATURE_4BA_FAST_READ |
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110017509 FEATURE_WRSR2,
Angel Pons3130cbd2018-09-30 19:32:30 +020017510 .tested = TEST_OK_PREW,
Boris Baykovaa6c3742016-06-11 18:29:01 +020017511 .probe = probe_spi_rdid,
17512 .probe_timing = TIMING_ZERO,
17513 .block_erasers =
17514 {
17515 {
17516 .eraseblocks = { {4 * 1024, 8192} },
Nico Huber7a077222017-10-14 18:18:30 +020017517 .block_erase = spi_block_erase_20,
Boris Baykovaa6c3742016-06-11 18:29:01 +020017518 }, {
17519 .eraseblocks = { {32 * 1024, 1024} },
Nico Huber7a077222017-10-14 18:18:30 +020017520 .block_erase = spi_block_erase_52,
Boris Baykovaa6c3742016-06-11 18:29:01 +020017521 }, {
17522 .eraseblocks = { {64 * 1024, 512} },
Nico Huber7a077222017-10-14 18:18:30 +020017523 .block_erase = spi_block_erase_d8,
Boris Baykovaa6c3742016-06-11 18:29:01 +020017524 }, {
17525 .eraseblocks = { {32 * 1024 * 1024, 1} },
17526 .block_erase = spi_block_erase_60,
17527 }, {
17528 .eraseblocks = { {32 * 1024 * 1024, 1} },
17529 .block_erase = spi_block_erase_c7,
17530 }
17531 },
17532 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17533 .unlock = spi_disable_blockprotect,
17534 .write = spi_chip_write_256,
17535 .read = spi_chip_read,
17536 .voltage = {2700, 3600},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110017537 .reg_bits =
17538 {
17539 .srp = {STATUS1, 7, RW},
17540 .srl = {STATUS2, 0, RW},
17541 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}},
17542 .tb = {STATUS1, 6, RW},
17543 .cmp = {STATUS2, 6, RW},
17544 },
17545 .decode_range = decode_range_spi25,
Boris Baykovaa6c3742016-06-11 18:29:01 +020017546 },
17547
17548 {
17549 .vendor = "Winbond",
Nico Huber5215eab2022-05-23 15:13:07 +020017550 .name = "W25Q256JV_Q",
17551 .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 */
17558 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA | FEATURE_WRSR2,
17559 .tested = TEST_UNTESTED,
17560 .probe = probe_spi_rdid,
17561 .probe_timing = TIMING_ZERO,
17562 .block_erasers =
17563 {
17564 {
17565 .eraseblocks = { {4 * 1024, 8192} },
17566 .block_erase = spi_block_erase_21,
17567 }, {
17568 .eraseblocks = { {4 * 1024, 8192} },
17569 .block_erase = spi_block_erase_20,
17570 }, {
17571 .eraseblocks = { {32 * 1024, 1024} },
17572 .block_erase = spi_block_erase_52,
17573 }, {
17574 .eraseblocks = { {64 * 1024, 512} },
17575 .block_erase = spi_block_erase_dc,
17576 }, {
17577 .eraseblocks = { {64 * 1024, 512} },
17578 .block_erase = spi_block_erase_d8,
17579 }, {
17580 .eraseblocks = { {32 * 1024 * 1024, 1} },
17581 .block_erase = spi_block_erase_60,
17582 }, {
17583 .eraseblocks = { {32 * 1024 * 1024, 1} },
17584 .block_erase = spi_block_erase_c7,
17585 }
17586 },
17587 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17588 .unlock = spi_disable_blockprotect,
17589 .write = spi_chip_write_256,
17590 .read = spi_chip_read,
17591 .voltage = {2700, 3600},
17592 .reg_bits =
17593 {
17594 .srp = {STATUS1, 7, RW},
17595 .srl = {STATUS2, 0, RW},
17596 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}},
17597 .tb = {STATUS1, 6, RW},
17598 .cmp = {STATUS2, 6, RW},
17599 },
17600 .decode_range = decode_range_spi25,
17601 },
17602
17603 {
17604 .vendor = "Winbond",
David Hendricks49876792018-10-27 20:19:42 +000017605 .name = "W25Q256JV_M",
17606 .bustype = BUS_SPI,
17607 .manufacture_id = WINBOND_NEX_ID,
17608 .model_id = WINBOND_NEX_W25Q256JV_M,
17609 .total_size = 32768,
17610 .page_size = 256,
17611 /* supports SFDP */
17612 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110017613 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA | FEATURE_WRSR2,
David Hendricks49876792018-10-27 20:19:42 +000017614 .tested = TEST_OK_PREW,
17615 .probe = probe_spi_rdid,
17616 .probe_timing = TIMING_ZERO,
17617 .block_erasers =
17618 {
17619 {
17620 .eraseblocks = { {4 * 1024, 8192} },
17621 .block_erase = spi_block_erase_21,
17622 }, {
17623 .eraseblocks = { {4 * 1024, 8192} },
17624 .block_erase = spi_block_erase_20,
17625 }, {
17626 .eraseblocks = { {32 * 1024, 1024} },
17627 .block_erase = spi_block_erase_52,
17628 }, {
17629 .eraseblocks = { {64 * 1024, 512} },
17630 .block_erase = spi_block_erase_dc,
17631 }, {
17632 .eraseblocks = { {64 * 1024, 512} },
17633 .block_erase = spi_block_erase_d8,
17634 }, {
17635 .eraseblocks = { {32 * 1024 * 1024, 1} },
17636 .block_erase = spi_block_erase_60,
17637 }, {
17638 .eraseblocks = { {32 * 1024 * 1024, 1} },
17639 .block_erase = spi_block_erase_c7,
17640 }
17641 },
17642 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17643 .unlock = spi_disable_blockprotect,
17644 .write = spi_chip_write_256,
17645 .read = spi_chip_read,
17646 .voltage = {2700, 3600},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110017647 .reg_bits =
17648 {
17649 .srp = {STATUS1, 7, RW},
17650 .srl = {STATUS2, 0, RW},
17651 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}},
17652 .tb = {STATUS1, 6, RW},
17653 .cmp = {STATUS2, 6, RW},
17654 },
17655 .decode_range = decode_range_spi25,
David Hendricks49876792018-10-27 20:19:42 +000017656 },
17657
17658 {
17659 .vendor = "Winbond",
Patrick Rudolph8f5bd982020-08-26 09:15:53 +020017660 .name = "W25Q256JW",
el-coderon01209852020-04-29 12:12:53 +020017661 .bustype = BUS_SPI,
17662 .manufacture_id = WINBOND_NEX_ID,
17663 .model_id = WINBOND_NEX_W25Q256_W,
17664 .total_size = 32768,
17665 .page_size = 256,
17666 /* supports SFDP */
17667 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Patrick Rudolph8f5bd982020-08-26 09:15:53 +020017668 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
el-coderon01209852020-04-29 12:12:53 +020017669 .tested = TEST_OK_PREW,
17670 .probe = probe_spi_rdid,
17671 .probe_timing = TIMING_ZERO,
17672 .block_erasers =
17673 {
17674 {
17675 .eraseblocks = { {4 * 1024, 8192} },
Patrick Rudolph8f5bd982020-08-26 09:15:53 +020017676 .block_erase = spi_block_erase_21,
17677 }, {
17678 .eraseblocks = { {4 * 1024, 8192} },
el-coderon01209852020-04-29 12:12:53 +020017679 .block_erase = spi_block_erase_20,
17680 }, {
17681 .eraseblocks = { {32 * 1024, 1024} },
17682 .block_erase = spi_block_erase_52,
17683 }, {
17684 .eraseblocks = { {64 * 1024, 512} },
Patrick Rudolph8f5bd982020-08-26 09:15:53 +020017685 .block_erase = spi_block_erase_dc,
17686 }, {
17687 .eraseblocks = { {64 * 1024, 512} },
el-coderon01209852020-04-29 12:12:53 +020017688 .block_erase = spi_block_erase_d8,
17689 }, {
17690 .eraseblocks = { {32 * 1024 * 1024, 1} },
17691 .block_erase = spi_block_erase_60,
17692 }, {
17693 .eraseblocks = { {32 * 1024 * 1024, 1} },
17694 .block_erase = spi_block_erase_c7,
17695 }
17696 },
17697 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17698 .unlock = spi_disable_blockprotect,
17699 .write = spi_chip_write_256,
17700 .read = spi_chip_read,
17701 .voltage = {1650, 1950},
17702 },
17703
17704 {
17705 .vendor = "Winbond",
David Hendricks31532602020-08-16 17:14:56 -070017706 .name = "W25Q256JW_DTR",
17707 .bustype = BUS_SPI,
17708 .manufacture_id = WINBOND_NEX_ID,
17709 .model_id = WINBOND_NEX_W25Q256_DTR,
17710 .total_size = 32768,
17711 .page_size = 256,
17712 /* supports SFDP */
17713 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
David Hendricks31532602020-08-16 17:14:56 -070017714 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
17715 .tested = TEST_OK_PREW,
17716 .probe = probe_spi_rdid,
17717 .probe_timing = TIMING_ZERO,
17718 .block_erasers =
17719 {
17720 {
17721 .eraseblocks = { {4 * 1024, 8192} },
17722 .block_erase = spi_block_erase_21,
17723 }, {
17724 .eraseblocks = { {4 * 1024, 8192} },
17725 .block_erase = spi_block_erase_20,
17726 }, {
17727 .eraseblocks = { {32 * 1024, 1024} },
17728 .block_erase = spi_block_erase_52,
17729 }, {
17730 .eraseblocks = { {64 * 1024, 512} },
17731 .block_erase = spi_block_erase_dc,
17732 }, {
17733 .eraseblocks = { {64 * 1024, 512} },
17734 .block_erase = spi_block_erase_d8,
17735 }, {
17736 .eraseblocks = { {32 * 1024 * 1024, 1} },
17737 .block_erase = spi_block_erase_60,
17738 }, {
17739 .eraseblocks = { {32 * 1024 * 1024, 1} },
17740 .block_erase = spi_block_erase_c7,
17741 }
17742 },
17743 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17744 .unlock = spi_disable_blockprotect,
17745 .write = spi_chip_write_256,
17746 .read = spi_chip_read,
17747 .voltage = {1700, 1950},
17748 },
17749
17750 {
17751 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017752 .name = "W25Q32.V",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017753 .bustype = BUS_SPI,
17754 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017755 .model_id = WINBOND_NEX_W25Q32_V,
17756 .total_size = 4096,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017757 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017758 /* supports SFDP */
17759 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017760 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017761 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017762 .probe = probe_spi_rdid,
17763 .probe_timing = TIMING_ZERO,
17764 .block_erasers =
17765 {
17766 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017767 .eraseblocks = { {4 * 1024, 1024} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017768 .block_erase = spi_block_erase_20,
17769 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017770 .eraseblocks = { {32 * 1024, 128} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017771 .block_erase = spi_block_erase_52,
17772 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017773 .eraseblocks = { {64 * 1024, 64} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017774 .block_erase = spi_block_erase_d8,
17775 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017776 .eraseblocks = { {4 * 1024 * 1024, 1} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017777 .block_erase = spi_block_erase_60,
17778 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017779 .eraseblocks = { {4 * 1024 * 1024, 1} },
17780 .block_erase = spi_block_erase_c7,
17781 }
17782 },
17783 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17784 .unlock = spi_disable_blockprotect,
17785 .write = spi_chip_write_256,
17786 .read = spi_chip_read,
17787 .voltage = {2700, 3600},
17788 },
17789
17790 {
17791 .vendor = "Winbond",
17792 .name = "W25Q32.W",
17793 .bustype = BUS_SPI,
17794 .manufacture_id = WINBOND_NEX_ID,
17795 .model_id = WINBOND_NEX_W25Q32_W,
17796 .total_size = 4096,
17797 .page_size = 256,
17798 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17799 /* QPI enable 0x38, disable 0xFF */
17800 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
17801 .tested = TEST_OK_PREW,
17802 .probe = probe_spi_rdid,
17803 .probe_timing = TIMING_ZERO,
17804 .block_erasers =
17805 {
17806 {
17807 .eraseblocks = { {4 * 1024, 1024} },
17808 .block_erase = spi_block_erase_20,
17809 }, {
17810 .eraseblocks = { {32 * 1024, 128} },
17811 .block_erase = spi_block_erase_52,
17812 }, {
17813 .eraseblocks = { {64 * 1024, 64} },
17814 .block_erase = spi_block_erase_d8,
17815 }, {
17816 .eraseblocks = { {4 * 1024 * 1024, 1} },
17817 .block_erase = spi_block_erase_60,
17818 }, {
17819 .eraseblocks = { {4 * 1024 * 1024, 1} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017820 .block_erase = spi_block_erase_c7,
17821 }
17822 },
17823 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17824 .unlock = spi_disable_blockprotect,
17825 .write = spi_chip_write_256,
17826 .read = spi_chip_read,
17827 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
17828 },
17829
17830 {
17831 .vendor = "Winbond",
Nikolai Artemiev6ae79b12021-05-08 17:31:23 +100017832 .name = "W25Q32JW...M",
17833 .bustype = BUS_SPI,
17834 .manufacture_id = WINBOND_NEX_ID,
17835 .model_id = WINBOND_NEX_W25Q32JW_M,
17836 .total_size = 4096,
17837 .page_size = 256,
17838 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17839 .tested = TEST_OK_PREW,
17840 .probe = probe_spi_rdid,
17841 .probe_timing = TIMING_ZERO,
17842 .block_erasers =
17843 {
17844 {
17845 .eraseblocks = { {4 * 1024, 1024} },
17846 .block_erase = spi_block_erase_20,
17847 }, {
17848 .eraseblocks = { {32 * 1024, 128} },
17849 .block_erase = spi_block_erase_52,
17850 }, {
17851 .eraseblocks = { {64 * 1024, 64} },
17852 .block_erase = spi_block_erase_d8,
17853 }, {
17854 .eraseblocks = { {4 * 1024 * 1024, 1} },
17855 .block_erase = spi_block_erase_60,
17856 }, {
17857 .eraseblocks = { {4 * 1024 * 1024, 1} },
17858 .block_erase = spi_block_erase_c7,
17859 }
17860 },
17861 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
17862 .unlock = spi_disable_blockprotect_bp2_srwd,
17863 .write = spi_chip_write_256,
17864 .read = spi_chip_read,
17865 .voltage = {1700, 1950},
17866 },
17867
17868 {
17869 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017870 .name = "W25Q40.V",
17871 .bustype = BUS_SPI,
17872 .manufacture_id = WINBOND_NEX_ID,
17873 .model_id = WINBOND_NEX_W25Q40_V,
17874 .total_size = 512,
17875 .page_size = 256,
17876 /* supports SFDP */
17877 /* OTP: 756B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17878 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17879 .tested = TEST_OK_PREW,
17880 .probe = probe_spi_rdid,
17881 .probe_timing = TIMING_ZERO,
17882 .block_erasers =
17883 {
17884 {
17885 .eraseblocks = { {4 * 1024, 128} },
17886 .block_erase = spi_block_erase_20,
17887 }, {
17888 .eraseblocks = { {32 * 1024, 16} },
17889 .block_erase = spi_block_erase_52,
17890 }, {
17891 .eraseblocks = { {64 * 1024, 8} },
17892 .block_erase = spi_block_erase_d8,
17893 }, {
17894 .eraseblocks = { {512 * 1024, 1} },
17895 .block_erase = spi_block_erase_60,
17896 }, {
17897 .eraseblocks = { {512 * 1024, 1} },
17898 .block_erase = spi_block_erase_c7,
17899 }
17900 },
17901 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17902 .unlock = spi_disable_blockprotect,
17903 .write = spi_chip_write_256, /* Multi I/O supported */
17904 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
17905 .voltage = {2700, 3600},
17906 },
17907
17908 {
17909 .vendor = "Winbond",
Nico Huber25683572018-03-30 13:50:13 +020017910 .name = "W25Q40BW",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017911 .bustype = BUS_SPI,
17912 .manufacture_id = WINBOND_NEX_ID,
Nico Huber25683572018-03-30 13:50:13 +020017913 .model_id = WINBOND_NEX_W25Q40BW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017914 .total_size = 512,
17915 .page_size = 256,
17916 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17917 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Angel Pons3164a0c2018-09-30 20:26:06 +020017918 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017919 .probe = probe_spi_rdid,
17920 .probe_timing = TIMING_ZERO,
17921 .block_erasers =
17922 {
17923 {
17924 .eraseblocks = { {4 * 1024, 128} },
17925 .block_erase = spi_block_erase_20,
17926 }, {
17927 .eraseblocks = { {32 * 1024, 16} },
17928 .block_erase = spi_block_erase_52,
17929 }, {
17930 .eraseblocks = { {64 * 1024, 8} },
17931 .block_erase = spi_block_erase_d8,
17932 }, {
17933 .eraseblocks = { {512 * 1024, 1} },
17934 .block_erase = spi_block_erase_60,
17935 }, {
17936 .eraseblocks = { {512 * 1024, 1} },
17937 .block_erase = spi_block_erase_c7,
17938 }
17939 },
17940 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17941 .unlock = spi_disable_blockprotect,
17942 .write = spi_chip_write_256,
17943 .read = spi_chip_read,
17944 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
17945 },
17946
17947 {
17948 .vendor = "Winbond",
Nico Huber25683572018-03-30 13:50:13 +020017949 .name = "W25Q40EW",
17950 .bustype = BUS_SPI,
17951 .manufacture_id = WINBOND_NEX_ID,
17952 .model_id = WINBOND_NEX_W25Q40EW,
17953 .total_size = 512,
17954 .page_size = 256,
17955 /* OTP: 3*256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17956 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Alan Green07b8a172019-09-23 16:47:05 +100017957 .tested = TEST_OK_PREW,
Nico Huber25683572018-03-30 13:50:13 +020017958 .probe = probe_spi_rdid,
17959 .probe_timing = TIMING_ZERO,
17960 .block_erasers =
17961 {
17962 {
17963 .eraseblocks = { {4 * 1024, 128} },
17964 .block_erase = spi_block_erase_20,
17965 }, {
17966 .eraseblocks = { {32 * 1024, 16} },
17967 .block_erase = spi_block_erase_52,
17968 }, {
17969 .eraseblocks = { {64 * 1024, 8} },
17970 .block_erase = spi_block_erase_d8,
17971 }, {
17972 .eraseblocks = { {512 * 1024, 1} },
17973 .block_erase = spi_block_erase_60,
17974 }, {
17975 .eraseblocks = { {512 * 1024, 1} },
17976 .block_erase = spi_block_erase_c7,
17977 }
17978 },
17979 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17980 .unlock = spi_disable_blockprotect,
17981 .write = spi_chip_write_256,
17982 .read = spi_chip_read,
17983 .voltage = {1650, 1950}, /* Fast read (0x0B) and multi I/O supported */
17984 },
17985
Stanislav Sedovf5775442018-03-07 14:16:51 -080017986 {
17987 .vendor = "Winbond",
Joel Stanley55439612019-07-27 19:25:35 +093017988 .name = "W25Q512JV",
17989 .bustype = BUS_SPI,
17990 .manufacture_id = WINBOND_NEX_ID,
17991 .model_id = WINBOND_NEX_W25Q512JV,
17992 .total_size = 64 * 1024,
17993 .page_size = 256,
17994 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
17995 .tested = TEST_OK_PREW,
17996 .probe = probe_spi_rdid,
17997 .probe_timing = TIMING_ZERO,
17998 .block_erasers =
17999 {
18000 {
18001 .eraseblocks = { {4 * 1024, 16384} },
18002 .block_erase = spi_block_erase_21,
18003 }, {
18004 .eraseblocks = { {4 * 1024, 16384} },
18005 .block_erase = spi_block_erase_20,
18006 }, {
18007 .eraseblocks = { {32 * 1024, 2048} },
18008 .block_erase = spi_block_erase_52,
18009 }, {
18010 .eraseblocks = { {64 * 1024, 1024} },
18011 .block_erase = spi_block_erase_dc,
18012 }, {
18013 .eraseblocks = { {64 * 1024, 1024} },
18014 .block_erase = spi_block_erase_d8,
18015 }, {
18016 .eraseblocks = { {64 * 1024 * 1024, 1} },
18017 .block_erase = spi_block_erase_60,
18018 }, {
18019 .eraseblocks = { {64 * 1024 * 1024, 1} },
18020 .block_erase = spi_block_erase_c7,
18021 }
18022 },
18023 .printlock = spi_prettyprint_status_register_plain,
18024 .unlock = spi_disable_blockprotect,
18025 .write = spi_chip_write_256,
18026 .read = spi_chip_read,
18027 .voltage = {2700, 3600},
18028 },
18029
18030 {
Atul Dhudase2502dbd2021-09-21 10:02:20 +053018031 .vendor = "Winbond",
18032 .name = "W25Q512NW-IM",
18033 .bustype = BUS_SPI,
18034 .manufacture_id = WINBOND_NEX_ID,
18035 .model_id = WINBOND_NEX_W25Q512NW_IM,
18036 .total_size = 64 * 1024,
18037 .page_size = 256,
18038 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
18039 .tested = TEST_OK_PREW,
18040 .probe = probe_spi_rdid,
18041 .probe_timing = TIMING_ZERO,
18042 .block_erasers =
18043 {
18044 {
18045 .eraseblocks = { {4 * 1024, 16384} },
18046 .block_erase = spi_block_erase_21,
18047 }, {
18048 .eraseblocks = { {4 * 1024, 16384} },
18049 .block_erase = spi_block_erase_20,
18050 }, {
18051 .eraseblocks = { {32 * 1024, 2048} },
18052 .block_erase = spi_block_erase_52,
18053 }, {
18054 .eraseblocks = { {64 * 1024, 1024} },
18055 .block_erase = spi_block_erase_dc,
18056 }, {
18057 .eraseblocks = { {64 * 1024, 1024} },
18058 .block_erase = spi_block_erase_d8,
18059 }, {
18060 .eraseblocks = { {64 * 1024 * 1024, 1} },
18061 .block_erase = spi_block_erase_60,
18062 }, {
18063 .eraseblocks = { {64 * 1024 * 1024, 1} },
18064 .block_erase = spi_block_erase_c7,
18065 }
18066 },
18067 .unlock = spi_disable_blockprotect,
18068 .write = spi_chip_write_256,
18069 .read = spi_chip_read,
18070 .voltage = {1650, 1950},
18071 },
18072
18073 {
Joel Stanley55439612019-07-27 19:25:35 +093018074 .vendor = "Winbond",
Sergii Dmytrukd1af3072021-11-08 00:00:43 +020018075 .name = "W25Q64BV/W25Q64CV/W25Q64FV",
Stanislav Sedovf5775442018-03-07 14:16:51 -080018076 .bustype = BUS_SPI,
18077 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018078 .model_id = WINBOND_NEX_W25Q64_V,
18079 .total_size = 8192,
Stanislav Sedovf5775442018-03-07 14:16:51 -080018080 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018081 /* supports SFDP */
18082 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Sergii Dmytrukd1af3072021-11-08 00:00:43 +020018083 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_WRSR2,
Sergii Dmytrukc74eac22022-10-06 18:17:58 +030018084 .tested = TEST_OK_PREWB,
Stanislav Sedovf5775442018-03-07 14:16:51 -080018085 .probe = probe_spi_rdid,
18086 .probe_timing = TIMING_ZERO,
18087 .block_erasers =
18088 {
18089 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100018090 .eraseblocks = { {4 * 1024, 2048} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080018091 .block_erase = spi_block_erase_20,
18092 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100018093 .eraseblocks = { {32 * 1024, 256} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080018094 .block_erase = spi_block_erase_52,
18095 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100018096 .eraseblocks = { {64 * 1024, 128} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080018097 .block_erase = spi_block_erase_d8,
18098 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100018099 .eraseblocks = { {8 * 1024 * 1024, 1} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080018100 .block_erase = spi_block_erase_60,
18101 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100018102 .eraseblocks = { {8 * 1024 * 1024, 1} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080018103 .block_erase = spi_block_erase_c7,
18104 }
18105 },
18106 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18107 .unlock = spi_disable_blockprotect,
18108 .write = spi_chip_write_256,
18109 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018110 .voltage = {2700, 3600},
Sergii Dmytrukd1af3072021-11-08 00:00:43 +020018111 .reg_bits =
18112 {
18113 .srp = {STATUS1, 7, RW},
18114 .srl = {STATUS2, 0, RW},
18115 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
18116 .tb = {STATUS1, 5, RW},
18117 .sec = {STATUS1, 6, RW},
18118 .cmp = {STATUS2, 6, RW},
18119 },
18120 .decode_range = decode_range_spi25,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018121 },
18122
18123 {
18124 .vendor = "Winbond",
Sergii Dmytrukd1af3072021-11-08 00:00:43 +020018125 .name = "W25Q64JV-.Q",
18126 .bustype = BUS_SPI,
18127 .manufacture_id = WINBOND_NEX_ID,
18128 .model_id = WINBOND_NEX_W25Q64_V,
18129 .total_size = 8192,
18130 .page_size = 256,
18131 /* supports SFDP */
18132 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber3f3c1f32022-05-28 16:48:26 +020018133 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP |
18134 FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3,
Sergii Dmytrukd1af3072021-11-08 00:00:43 +020018135 .tested = TEST_OK_PREW,
18136 .probe = probe_spi_rdid,
18137 .probe_timing = TIMING_ZERO,
18138 .block_erasers =
18139 {
18140 {
18141 .eraseblocks = { {4 * 1024, 2048} },
18142 .block_erase = spi_block_erase_20,
18143 }, {
18144 .eraseblocks = { {32 * 1024, 256} },
18145 .block_erase = spi_block_erase_52,
18146 }, {
18147 .eraseblocks = { {64 * 1024, 128} },
18148 .block_erase = spi_block_erase_d8,
18149 }, {
18150 .eraseblocks = { {8 * 1024 * 1024, 1} },
18151 .block_erase = spi_block_erase_60,
18152 }, {
18153 .eraseblocks = { {8 * 1024 * 1024, 1} },
18154 .block_erase = spi_block_erase_c7,
18155 }
18156 },
18157 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18158 .unlock = spi_disable_blockprotect,
18159 .write = spi_chip_write_256,
18160 .read = spi_chip_read,
18161 .voltage = {2700, 3600},
18162 .reg_bits =
18163 {
18164 .srp = {STATUS1, 7, RW},
18165 .srl = {STATUS2, 0, RW},
18166 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
18167 .tb = {STATUS1, 5, RW},
18168 .sec = {STATUS1, 6, RW},
18169 .cmp = {STATUS2, 6, RW},
18170 .wps = {STATUS3, 2, RW},
18171 },
18172 .decode_range = decode_range_spi25,
18173 },
18174
18175 {
18176 .vendor = "Winbond",
18177 .name = "W25Q64JV-.M",
Simon Buhrow236a38c2021-11-05 11:48:30 +010018178 .bustype = BUS_SPI,
18179 .manufacture_id = WINBOND_NEX_ID,
18180 .model_id = WINBOND_NEX_W25Q64JV,
18181 .total_size = 8192,
18182 .page_size = 256,
18183 /* supports SFDP */
18184 /* QPI enable 0x38 */
18185 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
18186 .tested = TEST_OK_PREW,
18187 .probe = probe_spi_rdid,
18188 .probe_timing = TIMING_ZERO,
18189 .block_erasers =
18190 {
18191 {
18192 .eraseblocks = { {4 * 1024, 2048} },
18193 .block_erase = spi_block_erase_20,
18194 }, {
18195 .eraseblocks = { {32 * 1024, 256} },
18196 .block_erase = spi_block_erase_52,
18197 }, {
18198 .eraseblocks = { {64 * 1024, 128} },
18199 .block_erase = spi_block_erase_d8,
18200 }, {
18201 .eraseblocks = { {8 * 1024 * 1024, 1} },
18202 .block_erase = spi_block_erase_60,
18203 }, {
18204 .eraseblocks = { {8 * 1024 * 1024, 1} },
18205 .block_erase = spi_block_erase_c7,
18206 }
18207 },
18208 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
18209 .unlock = spi_disable_blockprotect_bp2_srwd,
18210 .write = spi_chip_write_256,
18211 .read = spi_chip_read,
18212 .voltage = {2700, 3600},
18213 },
18214
18215 {
18216 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018217 .name = "W25Q64.W",
18218 .bustype = BUS_SPI,
18219 .manufacture_id = WINBOND_NEX_ID,
18220 .model_id = WINBOND_NEX_W25Q64_W,
18221 .total_size = 8192,
18222 .page_size = 256,
18223 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
18224 /* QPI enable 0x38, disable 0xFF */
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110018225 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_WRSR2,
Sergii Dmytrukc74eac22022-10-06 18:17:58 +030018226 .tested = TEST_OK_PREWB,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018227 .probe = probe_spi_rdid,
18228 .probe_timing = TIMING_ZERO,
18229 .block_erasers =
18230 {
18231 {
18232 .eraseblocks = { {4 * 1024, 2048} },
18233 .block_erase = spi_block_erase_20,
18234 }, {
18235 .eraseblocks = { {32 * 1024, 256} },
18236 .block_erase = spi_block_erase_52,
18237 }, {
18238 .eraseblocks = { {64 * 1024, 128} },
18239 .block_erase = spi_block_erase_d8,
18240 }, {
18241 .eraseblocks = { {8 * 1024 * 1024, 1} },
18242 .block_erase = spi_block_erase_60,
18243 }, {
18244 .eraseblocks = { {8 * 1024 * 1024, 1} },
18245 .block_erase = spi_block_erase_c7,
18246 }
18247 },
18248 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18249 .unlock = spi_disable_blockprotect,
18250 .write = spi_chip_write_256,
18251 .read = spi_chip_read,
18252 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110018253 .reg_bits =
18254 {
18255 .srp = {STATUS1, 7, RW},
18256 .srl = {STATUS2, 0, RW},
18257 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
18258 .tb = {STATUS1, 5, RW},
18259 .sec = {STATUS1, 6, RW},
18260 .cmp = {STATUS2, 6, RW},
18261 },
18262 .decode_range = decode_range_spi25,
Antony Rheneus0fbba982011-05-26 14:28:51 +000018263 },
18264
18265 {
18266 .vendor = "Winbond",
Nikolai Artemiev5fa05052021-05-14 15:26:47 +100018267 .name = "W25Q64JW...M",
Scott Chao1bbc5012020-04-08 22:10:50 +080018268 .bustype = BUS_SPI,
18269 .manufacture_id = WINBOND_NEX_ID,
Nikolai Artemiev5fa05052021-05-14 15:26:47 +100018270 .model_id = WINBOND_NEX_W25Q64JW_M,
Scott Chao1bbc5012020-04-08 22:10:50 +080018271 .total_size = 8192,
18272 .page_size = 256,
18273 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
18274 /* QPI enable 0x38, disable 0xFF */
Evan Benn29c8b5d2022-09-13 16:01:10 +100018275 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_WRSR2 | FEATURE_WRSR3,
Scott Chao1bbc5012020-04-08 22:10:50 +080018276 .tested = TEST_OK_PREW,
18277 .probe = probe_spi_rdid,
18278 .probe_timing = TIMING_ZERO,
18279 .block_erasers =
18280 {
18281 {
18282 .eraseblocks = { {4 * 1024, 2048} },
18283 .block_erase = spi_block_erase_20,
18284 }, {
18285 .eraseblocks = { {32 * 1024, 256} },
18286 .block_erase = spi_block_erase_52,
18287 }, {
18288 .eraseblocks = { {64 * 1024, 128} },
18289 .block_erase = spi_block_erase_d8,
18290 }, {
18291 .eraseblocks = { {8 * 1024 * 1024, 1} },
18292 .block_erase = spi_block_erase_60,
18293 }, {
18294 .eraseblocks = { {8 * 1024 * 1024, 1} },
18295 .block_erase = spi_block_erase_c7,
18296 }
18297 },
18298 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18299 .unlock = spi_disable_blockprotect,
18300 .write = spi_chip_write_256,
18301 .read = spi_chip_read,
18302 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
Evan Benn29c8b5d2022-09-13 16:01:10 +100018303 .reg_bits =
18304 {
18305 .srp = {STATUS1, 7, RW},
18306 .srl = {STATUS2, 0, RW},
18307 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
18308 .tb = {STATUS1, 5, RW},
18309 .sec = {STATUS1, 6, RW},
18310 .cmp = {STATUS2, 6, RW},
18311 .wps = {STATUS3, 2, RW},
18312 },
18313 .decode_range = decode_range_spi25,
Scott Chao1bbc5012020-04-08 22:10:50 +080018314 },
18315
18316 {
18317 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018318 .name = "W25Q80.V",
Nico Huber70eed9f2017-04-24 22:19:27 +020018319 .bustype = BUS_SPI,
18320 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018321 .model_id = WINBOND_NEX_W25Q80_V,
18322 .total_size = 1024,
Nico Huber70eed9f2017-04-24 22:19:27 +020018323 .page_size = 256,
18324 /* supports SFDP */
18325 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Alan Green1f9cc7d2019-07-01 11:10:45 +100018326 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks48729d32017-12-08 14:44:07 -080018327 .tested = TEST_OK_PREW,
Nico Huber70eed9f2017-04-24 22:19:27 +020018328 .probe = probe_spi_rdid,
18329 .probe_timing = TIMING_ZERO,
18330 .block_erasers =
18331 {
18332 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100018333 .eraseblocks = { {4 * 1024, 256} },
Nico Huber70eed9f2017-04-24 22:19:27 +020018334 .block_erase = spi_block_erase_20,
18335 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100018336 .eraseblocks = { {32 * 1024, 32} },
Nico Huber70eed9f2017-04-24 22:19:27 +020018337 .block_erase = spi_block_erase_52,
18338 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100018339 .eraseblocks = { {64 * 1024, 16} },
Nico Huber70eed9f2017-04-24 22:19:27 +020018340 .block_erase = spi_block_erase_d8,
18341 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100018342 .eraseblocks = { {1024 * 1024, 1} },
Nico Huber70eed9f2017-04-24 22:19:27 +020018343 .block_erase = spi_block_erase_60,
18344 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100018345 .eraseblocks = { {1024 * 1024, 1} },
Nico Huber70eed9f2017-04-24 22:19:27 +020018346 .block_erase = spi_block_erase_c7,
18347 }
18348 },
18349 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18350 .unlock = spi_disable_blockprotect,
18351 .write = spi_chip_write_256,
18352 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018353 .voltage = {2700, 3600},
18354 },
18355
18356 {
18357 .vendor = "Winbond",
18358 .name = "W25Q80BW",
18359 .bustype = BUS_SPI,
18360 .manufacture_id = WINBOND_NEX_ID,
18361 .model_id = WINBOND_NEX_W25Q80BW,
18362 .total_size = 1024,
18363 .page_size = 256,
18364 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
18365 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
18366 .tested = TEST_OK_PREW,
18367 .probe = probe_spi_rdid,
18368 .probe_timing = TIMING_ZERO,
18369 .block_erasers =
18370 {
18371 {
18372 .eraseblocks = { {4 * 1024, 256} },
18373 .block_erase = spi_block_erase_20,
18374 }, {
18375 .eraseblocks = { {32 * 1024, 32} },
18376 .block_erase = spi_block_erase_52,
18377 }, {
18378 .eraseblocks = { {64 * 1024, 16} },
18379 .block_erase = spi_block_erase_d8,
18380 }, {
18381 .eraseblocks = { {1 * 1024 * 1024, 1} },
18382 .block_erase = spi_block_erase_60,
18383 }, {
18384 .eraseblocks = { {1 * 1024 * 1024, 1} },
18385 .block_erase = spi_block_erase_c7,
18386 }
18387 },
18388 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18389 .unlock = spi_disable_blockprotect,
18390 .write = spi_chip_write_256,
18391 .read = spi_chip_read,
18392 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
18393 },
18394
18395 {
18396 .vendor = "Winbond",
18397 .name = "W25Q80EW",
18398 .bustype = BUS_SPI,
18399 .manufacture_id = WINBOND_NEX_ID,
18400 .model_id = WINBOND_NEX_W25Q80EW,
18401 .total_size = 1024,
18402 .page_size = 256,
18403 /* OTP: 3*256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
18404 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
18405 .tested = TEST_OK_PREW,
18406 .probe = probe_spi_rdid,
18407 .probe_timing = TIMING_ZERO,
18408 .block_erasers =
18409 {
18410 {
18411 .eraseblocks = { {4 * 1024, 256} },
18412 .block_erase = spi_block_erase_20,
18413 }, {
18414 .eraseblocks = { {32 * 1024, 32} },
18415 .block_erase = spi_block_erase_52,
18416 }, {
18417 .eraseblocks = { {64 * 1024, 16} },
18418 .block_erase = spi_block_erase_d8,
18419 }, {
18420 .eraseblocks = { {1 * 1024 * 1024, 1} },
18421 .block_erase = spi_block_erase_60,
18422 }, {
18423 .eraseblocks = { {1 * 1024 * 1024, 1} },
18424 .block_erase = spi_block_erase_c7,
18425 }
18426 },
18427 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18428 .unlock = spi_disable_blockprotect,
18429 .write = spi_chip_write_256,
18430 .read = spi_chip_read,
18431 .voltage = {1650, 1950}, /* Fast read (0x0B) and multi I/O supported */
Nico Huber70eed9f2017-04-24 22:19:27 +020018432 },
18433
18434 {
18435 .vendor = "Winbond",
Jacob Appelbaumebbdc022019-09-02 09:10:43 -040018436 .name = "W25X05",
18437 .bustype = BUS_SPI,
18438 .manufacture_id = WINBOND_NEX_ID,
18439 .model_id = WINBOND_NEX_W25X05,
18440 .total_size = 64,
18441 .page_size = 256,
18442 .feature_bits = FEATURE_WRSR_WREN,
18443 .tested = TEST_OK_PREW,
18444 .probe = probe_spi_rdid,
18445 .probe_timing = TIMING_ZERO,
18446 .block_erasers =
18447 {
18448 {
18449 .eraseblocks = { {4 * 1024, 16} },
18450 .block_erase = spi_block_erase_20,
18451 }, {
18452 .eraseblocks = { {32 * 1024, 2} },
18453 .block_erase = spi_block_erase_52,
18454 }, {
18455 .eraseblocks = { {64 * 1024, 1} },
18456 .block_erase = spi_block_erase_d8,
18457 }
18458 },
18459 .printlock = spi_prettyprint_status_register_plain,
18460 .unlock = spi_disable_blockprotect,
18461 .write = spi_chip_write_256,
18462 .read = spi_chip_read,
18463 .voltage = {2300, 3600},
18464 },
18465
18466 {
18467 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000018468 .name = "W25X10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018469 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018470 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018471 .model_id = WINBOND_NEX_W25X10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018472 .total_size = 128,
18473 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000018474 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +000018475 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018476 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000018477 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018478 .block_erasers =
18479 {
18480 {
18481 .eraseblocks = { {4 * 1024, 32} },
18482 .block_erase = spi_block_erase_20,
18483 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018484 .eraseblocks = { {64 * 1024, 2} },
18485 .block_erase = spi_block_erase_d8,
18486 }, {
18487 .eraseblocks = { {128 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018488 .block_erase = spi_block_erase_c7,
18489 }
18490 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000018491 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000018492 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000018493 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018494 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018495 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000018496 },
18497
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018498 {
18499 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000018500 .name = "W25X16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018501 .bustype = BUS_SPI,
Hector Martina721ae22009-07-11 19:39:11 +000018502 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018503 .model_id = WINBOND_NEX_W25X16,
Hector Martina721ae22009-07-11 19:39:11 +000018504 .total_size = 2048,
18505 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000018506 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +000018507 .tested = TEST_OK_PREW,
Hector Martina721ae22009-07-11 19:39:11 +000018508 .probe = probe_spi_rdid,
18509 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018510 .block_erasers =
18511 {
18512 {
18513 .eraseblocks = { {4 * 1024, 512} },
18514 .block_erase = spi_block_erase_20,
18515 }, {
18516 .eraseblocks = { {32 * 1024, 64} },
18517 .block_erase = spi_block_erase_52,
18518 }, {
18519 .eraseblocks = { {64 * 1024, 32} },
18520 .block_erase = spi_block_erase_d8,
18521 }, {
18522 .eraseblocks = { {2 * 1024 * 1024, 1} },
18523 .block_erase = spi_block_erase_60,
18524 }, {
18525 .eraseblocks = { {2 * 1024 * 1024, 1} },
18526 .block_erase = spi_block_erase_c7,
18527 }
18528 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000018529 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000018530 .unlock = spi_disable_blockprotect,
Hector Martina721ae22009-07-11 19:39:11 +000018531 .write = spi_chip_write_256,
18532 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018533 .voltage = {2700, 3600},
Hector Martina721ae22009-07-11 19:39:11 +000018534 },
18535
18536 {
18537 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018538 .name = "W25X20",
18539 .bustype = BUS_SPI,
18540 .manufacture_id = WINBOND_NEX_ID,
18541 .model_id = WINBOND_NEX_W25X20,
18542 .total_size = 256,
18543 .page_size = 256,
18544 .feature_bits = FEATURE_WRSR_WREN,
18545 .tested = TEST_OK_PREW,
18546 .probe = probe_spi_rdid,
18547 .probe_timing = TIMING_ZERO,
18548 .block_erasers =
18549 {
18550 {
18551 .eraseblocks = { {4 * 1024, 64} },
18552 .block_erase = spi_block_erase_20,
18553 }, {
18554 .eraseblocks = { {64 * 1024, 4} },
18555 .block_erase = spi_block_erase_d8,
18556 }, {
18557 .eraseblocks = { {256 * 1024, 1} },
18558 .block_erase = spi_block_erase_c7,
18559 }
18560 },
18561 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18562 .unlock = spi_disable_blockprotect,
18563 .write = spi_chip_write_256,
18564 .read = spi_chip_read,
18565 .voltage = {2700, 3600},
18566 },
18567
18568 {
18569 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000018570 .name = "W25X32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018571 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000018572 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018573 .model_id = WINBOND_NEX_W25X32,
Zheng Bao1db2b752009-11-26 11:05:01 +000018574 .total_size = 4096,
18575 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000018576 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000018577 .tested = TEST_OK_PREW,
Zheng Bao1db2b752009-11-26 11:05:01 +000018578 .probe = probe_spi_rdid,
18579 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018580 .block_erasers =
18581 {
18582 {
18583 .eraseblocks = { {4 * 1024, 1024} },
18584 .block_erase = spi_block_erase_20,
18585 }, {
18586 .eraseblocks = { {32 * 1024, 128} },
18587 .block_erase = spi_block_erase_52,
18588 }, {
18589 .eraseblocks = { {64 * 1024, 64} },
18590 .block_erase = spi_block_erase_d8,
18591 }, {
18592 .eraseblocks = { {4 * 1024 * 1024, 1} },
18593 .block_erase = spi_block_erase_60,
18594 }, {
18595 .eraseblocks = { {4 * 1024 * 1024, 1} },
18596 .block_erase = spi_block_erase_c7,
18597 }
18598 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000018599 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000018600 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000018601 .write = spi_chip_write_256,
18602 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018603 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000018604 },
18605
18606 {
18607 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018608 .name = "W25X40",
18609 .bustype = BUS_SPI,
18610 .manufacture_id = WINBOND_NEX_ID,
18611 .model_id = WINBOND_NEX_W25X40,
18612 .total_size = 512,
18613 .page_size = 256,
18614 .feature_bits = FEATURE_WRSR_WREN,
18615 .tested = TEST_OK_PREW,
18616 .probe = probe_spi_rdid,
18617 .probe_timing = TIMING_ZERO,
18618 .block_erasers =
18619 {
18620 {
18621 .eraseblocks = { {4 * 1024, 128} },
18622 .block_erase = spi_block_erase_20,
18623 }, {
18624 .eraseblocks = { {64 * 1024, 8} },
18625 .block_erase = spi_block_erase_d8,
18626 }, {
18627 .eraseblocks = { {512 * 1024, 1} },
18628 .block_erase = spi_block_erase_c7,
18629 }
18630 },
18631 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18632 .unlock = spi_disable_blockprotect,
18633 .write = spi_chip_write_256,
18634 .read = spi_chip_read,
18635 .voltage = {2700, 3600},
18636 },
18637
18638 {
18639 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000018640 .name = "W25X64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018641 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000018642 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018643 .model_id = WINBOND_NEX_W25X64,
Zheng Bao1db2b752009-11-26 11:05:01 +000018644 .total_size = 8192,
18645 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000018646 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000018647 .tested = TEST_OK_PREW,
Zheng Bao1db2b752009-11-26 11:05:01 +000018648 .probe = probe_spi_rdid,
18649 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018650 .block_erasers =
18651 {
18652 {
18653 .eraseblocks = { {4 * 1024, 2048} },
18654 .block_erase = spi_block_erase_20,
18655 }, {
18656 .eraseblocks = { {32 * 1024, 256} },
18657 .block_erase = spi_block_erase_52,
18658 }, {
18659 .eraseblocks = { {64 * 1024, 128} },
18660 .block_erase = spi_block_erase_d8,
18661 }, {
18662 .eraseblocks = { {8 * 1024 * 1024, 1} },
18663 .block_erase = spi_block_erase_60,
18664 }, {
18665 .eraseblocks = { {8 * 1024 * 1024, 1} },
18666 .block_erase = spi_block_erase_c7,
18667 }
18668 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000018669 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000018670 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000018671 .write = spi_chip_write_256,
18672 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018673 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000018674 },
18675
18676 {
Alan Greenfa3fcd32019-06-27 15:41:50 +100018677 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018678 .name = "W25X80",
Alan Greenfa3fcd32019-06-27 15:41:50 +100018679 .bustype = BUS_SPI,
18680 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018681 .model_id = WINBOND_NEX_W25X80,
Alan Greenfa3fcd32019-06-27 15:41:50 +100018682 .total_size = 1024,
18683 .page_size = 256,
18684 .feature_bits = FEATURE_WRSR_WREN,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018685 .tested = TEST_OK_PREW,
Alan Greenfa3fcd32019-06-27 15:41:50 +100018686 .probe = probe_spi_rdid,
18687 .probe_timing = TIMING_ZERO,
18688 .block_erasers =
David Hendricksc9ee0ed2018-02-11 17:40:53 -080018689 {
18690 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100018691 .eraseblocks = { {4 * 1024, 256} },
18692 .block_erase = spi_block_erase_20,
18693 }, {
David Hendricksc9ee0ed2018-02-11 17:40:53 -080018694 .eraseblocks = { {64 * 1024, 16} },
18695 .block_erase = spi_block_erase_d8,
18696 }, {
18697 .eraseblocks = { {1024 * 1024, 1} },
18698 .block_erase = spi_block_erase_c7,
18699 }
18700 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100018701 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18702 .unlock = spi_disable_blockprotect,
18703 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018704 .read = spi_chip_read,
Alan Greenfa3fcd32019-06-27 15:41:50 +100018705 .voltage = {2700, 3600},
David Hendricksc9ee0ed2018-02-11 17:40:53 -080018706 },
18707
Alan Greenf29ea362019-06-27 17:14:02 +100018708 /* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */
18709 {
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000018710 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000018711 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018712 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018713 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018714 .model_id = WINBOND_W29C010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018715 .total_size = 128,
18716 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000018717 .feature_bits = FEATURE_LONG_RESET,
David Hendricks567b7b82011-05-18 01:31:03 +000018718 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018719 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000018720 .probe_timing = 10, /* used datasheet for the W29C011A */
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018721 .block_erasers =
18722 {
18723 {
18724 .eraseblocks = { {128 * 1024, 1} },
18725 .block_erase = erase_chip_block_jedec,
18726 }
18727 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018728 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018729 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000018730 },
18731
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018732 {
18733 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018734 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old",
18735 .bustype = BUS_PARALLEL,
18736 .manufacture_id = WINBOND_ID,
18737 .model_id = WINBOND_W29C010,
18738 .total_size = 128,
18739 .page_size = 128,
18740 .feature_bits = FEATURE_LONG_RESET,
18741 .tested = TEST_OK_PREW,
18742 .probe = probe_w29ee011,
18743 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */
18744 .block_erasers =
18745 {
18746 {
18747 .eraseblocks = { {128 * 1024, 1} },
18748 .block_erase = erase_chip_block_jedec,
18749 }
18750 },
18751 .write = write_jedec,
18752 .read = read_memmapped,
18753 },
18754
18755 {
18756 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000018757 .name = "W29C020(C)/W29C022",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018758 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018759 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018760 .model_id = WINBOND_W29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018761 .total_size = 256,
18762 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000018763 .feature_bits = FEATURE_LONG_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000018764 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018765 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000018766 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018767 .block_erasers =
18768 {
18769 {
18770 .eraseblocks = { {256 * 1024, 1} },
18771 .block_erase = erase_chip_block_jedec,
18772 }
18773 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018774 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018775 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018776 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000018777 },
18778
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018779 {
18780 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000018781 .name = "W29C040/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018782 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018783 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018784 .model_id = WINBOND_W29C040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018785 .total_size = 512,
18786 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000018787 .feature_bits = FEATURE_LONG_RESET,
18788 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018789 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000018790 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018791 .block_erasers =
18792 {
18793 {
18794 .eraseblocks = { {512 * 1024, 1} },
18795 .block_erase = erase_chip_block_jedec,
18796 }
18797 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018798 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018799 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018800 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000018801 },
18802
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018803 {
18804 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018805 .name = "W29C512A/W29EE512",
18806 .bustype = BUS_PARALLEL,
18807 .manufacture_id = WINBOND_ID,
18808 .model_id = WINBOND_W29C512A,
18809 .total_size = 64,
18810 .page_size = 128,
18811 .feature_bits = FEATURE_LONG_RESET,
18812 .tested = TEST_OK_PREW,
18813 .probe = probe_jedec,
18814 .probe_timing = 10,
18815 .block_erasers =
18816 {
18817 {
18818 .eraseblocks = { {64 * 1024, 1} },
18819 .block_erase = erase_chip_block_jedec,
18820 }
18821 },
18822 .write = write_jedec,
18823 .read = read_memmapped,
18824 .voltage = {4500, 5500},
18825 },
18826
18827 {
18828 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000018829 .name = "W29GL032CB",
18830 .bustype = BUS_PARALLEL,
18831 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
18832 .model_id = WINBOND_W29GL032CB,
18833 .total_size = 4096,
18834 .page_size = 128 * 1024, /* actual page size is 16 */
18835 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
18836 .tested = TEST_UNTESTED,
18837 .probe = probe_jedec_29gl,
18838 .probe_timing = TIMING_ZERO,
18839 .block_erasers =
18840 {
18841 {
18842 .eraseblocks = {
18843 {8 * 1024, 8},
18844 {64 * 1024, 63},
18845 },
18846 .block_erase = erase_sector_jedec,
18847 }, {
18848 .eraseblocks = { {4 * 1024 * 1024, 1} },
18849 .block_erase = erase_chip_block_jedec,
18850 },
18851 },
18852 .write = write_jedec_1,
18853 .read = read_memmapped,
18854 .voltage = {2700, 3600},
18855 },
18856
18857 {
18858 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018859 .name = "W29GL032CH/L",
18860 .bustype = BUS_PARALLEL,
18861 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
18862 .model_id = WINBOND_W29GL032CHL,
18863 .total_size = 4096,
18864 .page_size = 128 * 1024, /* actual page size is 16 */
18865 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
18866 .tested = TEST_UNTESTED,
18867 .probe = probe_jedec_29gl,
18868 .probe_timing = TIMING_ZERO,
18869 .block_erasers =
18870 {
18871 {
18872 .eraseblocks = { {64 * 1024, 64} },
18873 .block_erase = erase_sector_jedec,
18874 }, {
18875 .eraseblocks = { {4 * 1024 * 1024, 1} },
18876 .block_erase = erase_chip_block_jedec,
18877 },
18878 },
18879 .write = write_jedec_1,
18880 .read = read_memmapped,
18881 .voltage = {2700, 3600},
18882 },
18883
18884 {
18885 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000018886 .name = "W29GL032CT",
18887 .bustype = BUS_PARALLEL,
18888 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
18889 .model_id = WINBOND_W29GL032CT,
18890 .total_size = 4096,
18891 .page_size = 128 * 1024, /* actual page size is 16 */
18892 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
18893 .tested = TEST_UNTESTED,
18894 .probe = probe_jedec_29gl,
18895 .probe_timing = TIMING_ZERO,
18896 .block_erasers =
18897 {
18898 {
18899 .eraseblocks = {
18900 {64 * 1024, 63},
18901 {8 * 1024, 8},
18902 },
18903 .block_erase = erase_sector_jedec,
18904 }, {
18905 .eraseblocks = { {4 * 1024 * 1024, 1} },
18906 .block_erase = erase_chip_block_jedec,
18907 },
18908 },
18909 .write = write_jedec_1,
18910 .read = read_memmapped,
18911 .voltage = {2700, 3600},
18912 },
18913
18914 {
18915 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000018916 .name = "W29GL064CB",
18917 .bustype = BUS_PARALLEL,
18918 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
18919 .model_id = WINBOND_W29GL064CB,
18920 .total_size = 8192,
18921 .page_size = 128 * 1024, /* actual page size is 16 */
18922 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
18923 .tested = TEST_UNTESTED,
18924 .probe = probe_jedec_29gl,
18925 .probe_timing = TIMING_ZERO,
18926 .block_erasers =
18927 {
18928 {
18929 .eraseblocks = {
18930 {8 * 1024, 8},
18931 {64 * 1024, 127},
18932 },
18933 .block_erase = erase_sector_jedec,
18934 }, {
18935 .eraseblocks = { {8 * 1024 * 1024, 1} },
18936 .block_erase = erase_chip_block_jedec,
18937 },
18938 },
18939 .write = write_jedec_1,
18940 .read = read_memmapped,
18941 .voltage = {2700, 3600},
18942 },
18943
18944 {
18945 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018946 .name = "W29GL064CH/L",
18947 .bustype = BUS_PARALLEL,
18948 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
18949 .model_id = WINBOND_W29GL064CHL,
18950 .total_size = 8192,
18951 .page_size = 128 * 1024, /* actual page size is 16 */
18952 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
18953 .tested = TEST_UNTESTED,
18954 .probe = probe_jedec_29gl,
18955 .probe_timing = TIMING_ZERO,
18956 .block_erasers =
18957 {
18958 {
18959 .eraseblocks = { {64 * 1024, 128} },
18960 .block_erase = erase_sector_jedec,
18961 }, {
18962 .eraseblocks = { {8 * 1024 * 1024, 1} },
18963 .block_erase = erase_chip_block_jedec,
18964 },
18965 },
18966 .write = write_jedec_1,
18967 .read = read_memmapped,
18968 .voltage = {2700, 3600},
18969 },
18970
18971 {
18972 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000018973 .name = "W29GL064CT",
18974 .bustype = BUS_PARALLEL,
18975 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
18976 .model_id = WINBOND_W29GL064CT,
18977 .total_size = 8192,
18978 .page_size = 128 * 1024, /* actual page size is 16 */
18979 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
18980 .tested = TEST_UNTESTED,
18981 .probe = probe_jedec_29gl,
18982 .probe_timing = TIMING_ZERO,
18983 .block_erasers =
18984 {
18985 {
18986 .eraseblocks = {
18987 {64 * 1024, 127},
18988 {8 * 1024, 8},
18989 },
18990 .block_erase = erase_sector_jedec,
18991 }, {
18992 .eraseblocks = { {8 * 1024 * 1024, 1} },
18993 .block_erase = erase_chip_block_jedec,
18994 },
18995 },
18996 .write = write_jedec_1,
18997 .read = read_memmapped,
18998 .voltage = {2700, 3600},
18999 },
19000
19001 {
19002 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000019003 .name = "W29GL128C",
19004 .bustype = BUS_PARALLEL,
19005 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
19006 .model_id = WINBOND_W29GL128CHL,
19007 .total_size = 16384,
19008 .page_size = 128 * 1024, /* actual page size is 16 */
19009 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
19010 .tested = TEST_UNTESTED,
19011 .probe = probe_jedec_29gl,
19012 .probe_timing = TIMING_ZERO,
19013 .block_erasers =
19014 {
19015 {
19016 .eraseblocks = { {128 * 1024, 128} },
19017 .block_erase = erase_sector_jedec,
19018 }, {
19019 .eraseblocks = { {16 * 1024 * 1024, 1} },
19020 .block_erase = erase_chip_block_jedec,
19021 },
19022 },
19023 .write = write_jedec_1,
19024 .read = read_memmapped,
19025 .voltage = {2700, 3600},
19026 },
19027
19028 {
19029 .vendor = "Winbond",
Kyösti Mälkkic31243e2012-10-28 01:50:08 +000019030 .name = "W39F010",
19031 .bustype = BUS_PARALLEL,
19032 .manufacture_id = WINBOND_ID,
19033 .model_id = WINBOND_W39F010,
19034 .total_size = 128,
19035 .page_size = 4 * 1024,
19036 .feature_bits = FEATURE_EITHER_RESET,
19037 .tested = TEST_OK_PREW,
19038 .probe = probe_jedec,
19039 .probe_timing = 10,
19040 .block_erasers =
19041 {
19042 {
19043 .eraseblocks = { {4 * 1024, 32} },
19044 .block_erase = erase_block_jedec,
19045 }, {
19046 .eraseblocks = { {128 * 1024, 1} },
19047 .block_erase = erase_chip_block_jedec,
19048 }
19049 },
19050 .printlock = printlock_w39f010,
19051 .write = write_jedec_1,
19052 .read = read_memmapped,
19053 .voltage = {4500, 5500},
19054 },
19055
19056 {
19057 .vendor = "Winbond",
19058 .name = "W39L010",
19059 .bustype = BUS_PARALLEL,
19060 .manufacture_id = WINBOND_ID,
19061 .model_id = WINBOND_W39L010,
19062 .total_size = 128,
19063 .page_size = 4 * 1024,
19064 .feature_bits = FEATURE_EITHER_RESET,
19065 .tested = TEST_UNTESTED,
19066 .probe = probe_jedec,
19067 .probe_timing = 10,
19068 .block_erasers =
19069 {
19070 {
19071 .eraseblocks = { {4 * 1024, 32} },
19072 .block_erase = erase_block_jedec,
19073 }, {
19074 .eraseblocks = { {128 * 1024, 1} },
19075 .block_erase = erase_chip_block_jedec,
19076 }
19077 },
19078 .printlock = printlock_w39l010,
19079 .write = write_jedec_1,
19080 .read = read_memmapped,
19081 .voltage = {3000, 3600},
19082 },
19083
19084 {
19085 .vendor = "Winbond",
19086 .name = "W39L020",
19087 .bustype = BUS_PARALLEL,
19088 .manufacture_id = WINBOND_ID,
19089 .model_id = WINBOND_W39L020,
19090 .total_size = 256,
19091 .page_size = 4 * 1024,
19092 .feature_bits = FEATURE_EITHER_RESET,
19093 .tested = TEST_UNTESTED,
19094 .probe = probe_jedec,
19095 .probe_timing = 10,
19096 .block_erasers =
19097 {
19098 {
19099 .eraseblocks = { {4 * 1024, 64} },
19100 .block_erase = erase_block_jedec,
19101 }, {
19102 .eraseblocks = { {64 * 1024, 4} },
19103 .block_erase = erase_sector_jedec,
19104 }, {
19105 .eraseblocks = { {256 * 1024, 1} },
19106 .block_erase = erase_chip_block_jedec,
19107 }
19108 },
19109 .printlock = printlock_w39l020,
19110 .write = write_jedec_1,
19111 .read = read_memmapped,
19112 .voltage = {3000, 3600},
19113 },
19114
19115 {
19116 .vendor = "Winbond",
Michael Karcher19e0aac2011-03-06 17:58:05 +000019117 .name = "W39L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019118 .bustype = BUS_PARALLEL,
Michael Karcher19e0aac2011-03-06 17:58:05 +000019119 .manufacture_id = WINBOND_ID,
19120 .model_id = WINBOND_W39L040,
19121 .total_size = 512,
19122 .page_size = 64 * 1024,
19123 .feature_bits = FEATURE_EITHER_RESET,
19124 .tested = TEST_OK_PR,
19125 .probe = probe_jedec,
19126 .probe_timing = 10,
19127 .block_erasers =
19128 {
19129 {
19130 .eraseblocks = { {4 * 1024, 128} },
19131 .block_erase = erase_block_jedec,
19132 }, {
19133 .eraseblocks = { {64 * 1024, 8} },
19134 .block_erase = erase_sector_jedec,
19135 }, {
19136 .eraseblocks = { {512 * 1024, 1} },
19137 .block_erase = erase_chip_block_jedec,
19138 }
19139 },
19140 .printlock = printlock_w39l040,
19141 .write = write_jedec_1,
19142 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000019143 .voltage = {3000, 3600},
Michael Karcher19e0aac2011-03-06 17:58:05 +000019144 },
19145
19146 {
19147 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019148 .name = "W39V040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019149 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019150 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000019151 .model_id = WINBOND_W39V040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019152 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000019153 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000019154 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000019155 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019156 .probe = probe_jedec,
Stefan Tauner716e0982011-07-25 20:38:52 +000019157 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019158 .block_erasers =
19159 {
19160 {
19161 .eraseblocks = { {64 * 1024, 8} },
19162 .block_erase = erase_sector_jedec,
19163 }, {
19164 .eraseblocks = { {512 * 1024, 1} },
19165 .block_erase = erase_chip_block_jedec,
19166 }
19167 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000019168 .printlock = printlock_w39v040a,
Sean Nelson35727f72010-01-28 23:55:12 +000019169 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019170 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000019171 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000019172 },
19173
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019174 {
19175 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000019176 .name = "W39V040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019177 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019178 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000019179 .model_id = WINBOND_W39V040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019180 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000019181 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000019182 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000019183 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019184 .probe = probe_jedec,
Paul Menzel018d4822011-10-21 12:33:07 +000019185 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019186 .block_erasers =
19187 {
19188 {
19189 .eraseblocks = { {64 * 1024, 8} },
19190 .block_erase = erase_sector_jedec,
19191 }, {
19192 .eraseblocks = { {512 * 1024, 1} },
19193 .block_erase = erase_chip_block_jedec,
19194 }
19195 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000019196 .printlock = printlock_w39v040b,
Sean Nelson35727f72010-01-28 23:55:12 +000019197 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019198 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000019199 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000019200 },
19201
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019202 {
19203 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000019204 .name = "W39V040C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019205 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019206 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000019207 .model_id = WINBOND_W39V040C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019208 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000019209 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000019210 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000019211 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +000019212 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000019213 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019214 .block_erasers =
19215 {
19216 {
19217 .eraseblocks = { {64 * 1024, 8} },
19218 .block_erase = erase_sector_jedec,
19219 }, {
19220 .eraseblocks = { {512 * 1024, 1} },
19221 .block_erase = erase_chip_block_jedec,
19222 }
19223 },
Sean Nelson6e0b9122010-02-19 00:52:10 +000019224 .printlock = printlock_w39v040c,
Sean Nelson35727f72010-01-28 23:55:12 +000019225 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019226 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000019227 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000019228 },
19229
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019230 {
19231 .vendor = "Winbond",
19232 .name = "W39V040FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019233 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019234 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000019235 .model_id = WINBOND_W39V040FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019236 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000019237 .page_size = 64 * 1024,
Michael Karcherc9b63412010-05-30 16:55:18 +000019238 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner23e10b82016-01-23 16:16:49 +000019239 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019240 .probe = probe_jedec,
Antony Rheneus0fbba982011-05-26 14:28:51 +000019241 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019242 .block_erasers =
19243 {
19244 {
19245 .eraseblocks = { {4 * 1024, 128} },
19246 .block_erase = erase_block_jedec,
19247 }, {
19248 .eraseblocks = { {64 * 1024, 8} },
19249 .block_erase = erase_sector_jedec,
19250 }, {
19251 .eraseblocks = { {512 * 1024, 1} },
19252 .block_erase = erase_chip_block_jedec,
19253 }
19254 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000019255 .printlock = printlock_w39v040fa,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000019256 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000019257 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019258 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000019259 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000019260 },
19261
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019262 {
19263 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000019264 .name = "W39V040FB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019265 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000019266 .manufacture_id = WINBOND_ID,
19267 .model_id = WINBOND_W39V040B,
19268 .total_size = 512,
19269 .page_size = 64 * 1024,
19270 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner0be072c2016-03-13 15:16:30 +000019271 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000019272 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000019273 .probe_timing = 10,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000019274 .block_erasers =
19275 {
19276 {
19277 .eraseblocks = { {64 * 1024, 8} },
19278 .block_erase = erase_sector_jedec,
19279 }, {
19280 .eraseblocks = { {512 * 1024, 1} },
19281 .block_erase = erase_chip_block_jedec,
19282 }
19283 },
19284 .printlock = printlock_w39v040fb,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000019285 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000019286 .write = write_jedec_1,
19287 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000019288 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000019289 },
19290
19291 {
19292 .vendor = "Winbond",
19293 .name = "W39V040FC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019294 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000019295 .manufacture_id = WINBOND_ID,
19296 .model_id = WINBOND_W39V040C,
19297 .total_size = 512,
19298 .page_size = 64 * 1024,
19299 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +000019300 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000019301 .probe = probe_jedec,
19302 .probe_timing = 10,
19303 .block_erasers =
19304 {
19305 {
19306 .eraseblocks = { {64 * 1024, 8} },
19307 .block_erase = erase_sector_jedec,
19308 }, {
19309 .eraseblocks = { {512 * 1024, 1} },
19310 .block_erase = erase_chip_block_jedec,
19311 }
19312 },
19313 .printlock = printlock_w39v040fc,
19314 .write = write_jedec_1,
19315 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000019316 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000019317 },
19318
19319 {
19320 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019321 .name = "W39V080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019322 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019323 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000019324 .model_id = WINBOND_W39V080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019325 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000019326 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000019327 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +000019328 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019329 .probe = probe_jedec,
Paul Menzelac427b22012-02-16 21:07:07 +000019330 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019331 .block_erasers =
19332 {
19333 {
19334 .eraseblocks = { {64 * 1024, 16} },
19335 .block_erase = erase_sector_jedec,
19336 }, {
19337 .eraseblocks = { {1024 * 1024, 1} },
19338 .block_erase = erase_chip_block_jedec,
19339 }
19340 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000019341 .printlock = printlock_w39v080a,
Sean Nelson35727f72010-01-28 23:55:12 +000019342 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019343 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000019344 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000019345 },
19346
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019347 {
19348 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100019349 .name = "W39V080FA",
19350 .bustype = BUS_FWH,
19351 .manufacture_id = WINBOND_ID,
19352 .model_id = WINBOND_W39V080FA,
19353 .total_size = 1024,
19354 .page_size = 64 * 1024,
19355 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
19356 .tested = TEST_OK_PREW,
19357 .probe = probe_jedec,
19358 .probe_timing = 10,
19359 .block_erasers =
19360 {
19361 {
19362 .eraseblocks = { {64 * 1024, 16} },
19363 .block_erase = erase_sector_jedec,
19364 }, {
19365 .eraseblocks = { {1024 * 1024, 1} },
19366 .block_erase = erase_chip_block_jedec,
19367 }
19368 },
19369 .printlock = printlock_w39v080fa,
19370 .unlock = unlock_regspace2_uniform_64k,
19371 .write = write_jedec_1,
19372 .read = read_memmapped,
19373 .voltage = {3000, 3600}, /* Also has 12V fast program */
19374 },
19375
19376 {
19377 .vendor = "Winbond",
19378 .name = "W39V080FA (dual mode)",
19379 .bustype = BUS_FWH,
19380 .manufacture_id = WINBOND_ID,
19381 .model_id = WINBOND_W39V080FA_DM,
19382 .total_size = 512,
19383 .page_size = 64 * 1024,
19384 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
19385 .tested = TEST_UNTESTED,
19386 .probe = probe_jedec,
19387 .probe_timing = 10,
19388 .block_erasers =
19389 {
19390 {
19391 .eraseblocks = { {64 * 1024, 8} },
19392 .block_erase = erase_sector_jedec,
19393 }, {
19394 .eraseblocks = { {512 * 1024, 1} },
19395 .block_erase = erase_chip_block_jedec,
19396 }
19397 },
19398 .printlock = printlock_w39v080fa_dual,
19399 .write = write_jedec_1,
19400 .read = read_memmapped,
19401 .voltage = {3000, 3600}, /* Also has 12V fast program */
19402 },
19403
19404 {
19405 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000019406 .name = "W49F002U/N",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019407 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019408 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000019409 .model_id = WINBOND_W49F002U,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019410 .total_size = 256,
19411 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000019412 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000019413 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019414 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000019415 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019416 .block_erasers =
19417 {
19418 {
19419 .eraseblocks = {
19420 {128 * 1024, 1},
19421 {96 * 1024, 1},
19422 {8 * 1024, 2},
19423 {16 * 1024, 1},
19424 },
19425 .block_erase = erase_sector_jedec,
19426 }, {
19427 .eraseblocks = { {256 * 1024, 1} },
19428 .block_erase = erase_chip_block_jedec,
19429 }
19430 },
Sean Nelson35727f72010-01-28 23:55:12 +000019431 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019432 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000019433 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000019434 },
19435
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019436 {
19437 .vendor = "Winbond",
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000019438 .name = "W49F020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019439 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000019440 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000019441 .model_id = WINBOND_W49F020,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000019442 .total_size = 256,
19443 .page_size = 128,
19444 .feature_bits = FEATURE_EITHER_RESET,
19445 .tested = TEST_OK_PROBE,
19446 .probe = probe_jedec,
19447 .probe_timing = 10,
19448 .block_erasers =
19449 {
19450 {
19451 .eraseblocks = { {256 * 1024, 1} },
19452 .block_erase = erase_chip_block_jedec,
19453 }
19454 },
19455 .write = write_jedec_1,
19456 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000019457 .voltage = {4500, 5500},
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000019458 },
19459
19460 {
19461 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019462 .name = "W49V002A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019463 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019464 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000019465 .model_id = WINBOND_W49V002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019466 .total_size = 256,
19467 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000019468 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000019469 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019470 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000019471 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019472 .block_erasers =
19473 {
19474 {
19475 .eraseblocks = {
19476 {64 * 1024, 3},
19477 {32 * 1024, 1},
19478 {8 * 1024, 2},
19479 {16 * 1024, 1},
19480 },
19481 .block_erase = erase_sector_jedec,
19482 }, {
19483 .eraseblocks = { {256 * 1024, 1} },
19484 .block_erase = erase_chip_block_jedec,
19485 }
19486 },
Sean Nelson35727f72010-01-28 23:55:12 +000019487 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019488 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000019489 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000019490 },
19491
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019492 {
19493 .vendor = "Winbond",
19494 .name = "W49V002FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019495 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019496 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000019497 .model_id = WINBOND_W49V002FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019498 .total_size = 256,
19499 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000019500 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000019501 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019502 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000019503 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019504 .block_erasers =
19505 {
19506 {
19507 .eraseblocks = {
19508 {64 * 1024, 3},
19509 {32 * 1024, 1},
19510 {8 * 1024, 2},
19511 {16 * 1024, 1},
19512 },
19513 .block_erase = erase_sector_jedec,
19514 }, {
19515 .eraseblocks = { {256 * 1024, 1} },
19516 .block_erase = erase_chip_block_jedec,
19517 }
19518 },
Sean Nelson35727f72010-01-28 23:55:12 +000019519 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019520 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000019521 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000019522 },
19523
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019524 {
luke heef884232020-12-28 18:22:21 +080019525 .vendor = "XMC",
19526 .name = "XM25QH128C",
19527 .bustype = BUS_SPI,
19528 .manufacture_id = ST_ID,
19529 .model_id = XMC_XM25QH128C,
19530 .total_size = 16384,
19531 .page_size = 256,
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110019532 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_WRSR2,
luke heef884232020-12-28 18:22:21 +080019533 .tested = TEST_UNTESTED,
19534 .probe = probe_spi_rdid,
19535 .probe_timing = TIMING_ZERO,
19536 .block_erasers =
19537 {
19538 {
19539 .eraseblocks = { {4 * 1024, 4096} },
19540 .block_erase = spi_block_erase_20,
19541 }, {
19542 .eraseblocks = { {32 * 1024, 512} },
19543 .block_erase = spi_block_erase_52,
19544 }, {
19545 .eraseblocks = { {64 * 1024, 256} },
19546 .block_erase = spi_block_erase_d8,
19547 }, {
19548 .eraseblocks = { {16 * 1024 * 1024, 1} },
19549 .block_erase = spi_block_erase_60,
19550 }, {
19551 .eraseblocks = { {16 * 1024 * 1024, 1} },
19552 .block_erase = spi_block_erase_c7,
19553 }
19554 },
19555 .printlock = spi_prettyprint_status_register_plain,
19556 .unlock = spi_disable_blockprotect,
19557 .write = spi_chip_write_256,
19558 .read = spi_chip_read,
19559 .voltage = {2700, 3600},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110019560 .reg_bits =
19561 {
19562 .srp = {STATUS1, 7, RW},
19563 .srl = {STATUS2, 0, RW},
19564 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
19565 .tb = {STATUS1, 5, RW},
19566 .sec = {STATUS1, 6, RW},
19567 .cmp = {STATUS2, 6, RW},
19568 },
19569 .decode_range = decode_range_spi25,
luke heef884232020-12-28 18:22:21 +080019570 },
19571
19572 {
19573 .vendor = "XMC",
19574 .name = "XM25QH256C",
19575 .bustype = BUS_SPI,
19576 .manufacture_id = ST_ID,
19577 .model_id = XMC_XM25QH256C,
19578 .total_size = 32768,
19579 .page_size = 256,
19580 /* supports SFDP */
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110019581 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN | FEATURE_WRSR2,
luke heef884232020-12-28 18:22:21 +080019582 .tested = TEST_UNTESTED,
19583 .probe = probe_spi_rdid,
19584 .probe_timing = TIMING_ZERO,
19585 .block_erasers =
19586 {
19587 {
19588 .eraseblocks = { {4 * 1024, 8192} },
19589 .block_erase = spi_block_erase_21,
19590 }, {
19591 .eraseblocks = { {4 * 1024, 8192} },
19592 .block_erase = spi_block_erase_20,
19593 }, {
19594 .eraseblocks = { {32 * 1024, 1024} },
19595 .block_erase = spi_block_erase_52,
19596 }, {
19597 .eraseblocks = { {64 * 1024, 512} },
19598 .block_erase = spi_block_erase_dc,
19599 }, {
19600 .eraseblocks = { {64 * 1024, 512} },
19601 .block_erase = spi_block_erase_d8,
19602 }, {
19603 .eraseblocks = { {32 * 1024 * 1024, 1} },
19604 .block_erase = spi_block_erase_60,
19605 }, {
19606 .eraseblocks = { {32 * 1024 * 1024, 1} },
19607 .block_erase = spi_block_erase_c7,
19608 }
19609 },
19610 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19611 .unlock = spi_disable_blockprotect,
19612 .write = spi_chip_write_256,
19613 .read = spi_chip_read,
19614 .voltage = {2700, 3600},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110019615 .reg_bits =
19616 {
19617 .srp = {STATUS1, 7, RW},
19618 .srl = {STATUS2, 0, RW},
19619 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}},
19620 .tb = {STATUS1, 6, RW},
19621 },
19622 .decode_range = decode_range_spi25,
luke heef884232020-12-28 18:22:21 +080019623 },
19624
19625 {
19626 .vendor = "XMC",
19627 .name = "XM25QH64C",
19628 .bustype = BUS_SPI,
19629 .manufacture_id = ST_ID,
19630 .model_id = XMC_XM25QH64C,
19631 .total_size = 8192,
19632 .page_size = 256,
19633 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
19634 .tested = TEST_UNTESTED,
19635 .probe = probe_spi_rdid,
19636 .probe_timing = TIMING_ZERO,
19637 .block_erasers =
19638 {
19639 {
19640 .eraseblocks = { {4 * 1024, 2048} },
19641 .block_erase = spi_block_erase_20,
19642 }, {
19643 .eraseblocks = { {32 * 1024, 256} },
19644 .block_erase = spi_block_erase_52,
19645 }, {
19646 .eraseblocks = { {64 * 1024, 128} },
19647 .block_erase = spi_block_erase_d8,
19648 }, {
19649 .eraseblocks = { {8 * 1024 * 1024, 1} },
19650 .block_erase = spi_block_erase_60,
19651 }, {
19652 .eraseblocks = { {8 * 1024 * 1024, 1} },
19653 .block_erase = spi_block_erase_c7,
19654 }
19655 },
19656 .printlock = spi_prettyprint_status_register_plain,
19657 .unlock = spi_disable_blockprotect,
19658 .write = spi_chip_write_256,
19659 .read = spi_chip_read,
19660 .voltage = {2700, 3600},
19661 },
19662
19663 {
19664 .vendor = "XMC",
19665 .name = "XM25QU128C",
19666 .bustype = BUS_SPI,
19667 .manufacture_id = ST_ID,
19668 .model_id = XMC_XM25QU128C,
19669 .total_size = 16384,
19670 .page_size = 256,
19671 /* supports SFDP */
19672 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
19673 .tested = TEST_UNTESTED,
19674 .probe = probe_spi_rdid,
19675 .probe_timing = TIMING_ZERO,
19676 .block_erasers =
19677 {
19678 {
19679 .eraseblocks = { {4 * 1024, 4096} },
19680 .block_erase = spi_block_erase_20,
19681 }, {
19682 .eraseblocks = { {32 * 1024, 512} },
19683 .block_erase = spi_block_erase_52,
19684 }, {
19685 .eraseblocks = { {64 * 1024, 256} },
19686 .block_erase = spi_block_erase_d8,
19687 }, {
19688 .eraseblocks = { {16 * 1024 * 1024, 1} },
19689 .block_erase = spi_block_erase_60,
19690 }, {
19691 .eraseblocks = { {16 * 1024 * 1024, 1} },
19692 .block_erase = spi_block_erase_c7,
19693 }
19694 },
19695 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19696 .unlock = spi_disable_blockprotect,
19697 .write = spi_chip_write_256,
19698 .read = spi_chip_read,
19699 .voltage = {1650, 1950},
19700 },
19701
19702 {
19703 .vendor = "XMC",
19704 .name = "XM25QU256C",
19705 .bustype = BUS_SPI,
19706 .manufacture_id = ST_ID,
19707 .model_id = XMC_XM25QU256C,
19708 .total_size = 32768,
19709 .page_size = 256,
19710 /* supports SFDP */
19711 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
19712 .tested = TEST_UNTESTED,
19713 .probe = probe_spi_rdid,
19714 .probe_timing = TIMING_ZERO,
19715 .block_erasers =
19716 {
19717 {
19718 .eraseblocks = { {4 * 1024, 8192} },
19719 .block_erase = spi_block_erase_21,
19720 }, {
19721 .eraseblocks = { {4 * 1024, 8192} },
19722 .block_erase = spi_block_erase_20,
19723 }, {
19724 .eraseblocks = { {32 * 1024, 1024} },
19725 .block_erase = spi_block_erase_52,
19726 }, {
19727 .eraseblocks = { {64 * 1024, 512} },
19728 .block_erase = spi_block_erase_dc,
19729 }, {
19730 .eraseblocks = { {64 * 1024, 512} },
19731 .block_erase = spi_block_erase_d8,
19732 }, {
19733 .eraseblocks = { {32 * 1024 * 1024, 1} },
19734 .block_erase = spi_block_erase_60,
19735 }, {
19736 .eraseblocks = { {32 * 1024 * 1024, 1} },
19737 .block_erase = spi_block_erase_c7,
19738 }
19739 },
19740 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19741 .unlock = spi_disable_blockprotect,
19742 .write = spi_chip_write_256,
19743 .read = spi_chip_read,
19744 .voltage = {1650, 1950},
19745 },
19746
19747 {
19748 .vendor = "XMC",
19749 .name = "XM25QU64C",
19750 .bustype = BUS_SPI,
19751 .manufacture_id = ST_ID,
19752 .model_id = XMC_XM25QU64C,
19753 .total_size = 8192,
19754 .page_size = 256,
19755 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
19756 .tested = TEST_UNTESTED,
19757 .probe = probe_spi_rdid,
19758 .probe_timing = TIMING_ZERO,
19759 .block_erasers =
19760 {
19761 {
19762 .eraseblocks = { {4 * 1024, 2048} },
19763 .block_erase = spi_block_erase_20,
19764 }, {
19765 .eraseblocks = { {32 * 1024, 256} },
19766 .block_erase = spi_block_erase_52,
19767 }, {
19768 .eraseblocks = { {64 * 1024, 128} },
19769 .block_erase = spi_block_erase_d8,
19770 }, {
19771 .eraseblocks = { {8 * 1024 * 1024, 1} },
19772 .block_erase = spi_block_erase_60,
19773 }, {
19774 .eraseblocks = { {8 * 1024 * 1024, 1} },
19775 .block_erase = spi_block_erase_c7,
19776 }
19777 },
19778 .printlock = spi_prettyprint_status_register_plain,
19779 .unlock = spi_disable_blockprotect,
19780 .write = spi_chip_write_256,
19781 .read = spi_chip_read,
19782 .voltage = {1650, 1950},
19783 },
19784
19785 {
Alan Greenfa3fcd32019-06-27 15:41:50 +100019786 .vendor = "Zetta Device",
19787 .name = "ZD25D20",
19788 .bustype = BUS_SPI,
19789 .manufacture_id = ZETTADEVICE_ID,
19790 .model_id = ZETTADEVICE_ZD25D20,
19791 .total_size = 256,
19792 .page_size = 256,
19793 .feature_bits = FEATURE_WRSR_WREN,
19794 .tested = TEST_UNTESTED,
19795 .probe = probe_spi_rdid,
19796 .probe_timing = TIMING_ZERO,
19797 .block_erasers =
David Hendricksa72d5a92018-02-11 17:58:44 -080019798 {
19799 {
19800 .eraseblocks = { {4 * 1024, 64} },
19801 .block_erase = spi_block_erase_20,
19802 }, {
19803 .eraseblocks = { {32 * 1024, 8} },
19804 .block_erase = spi_block_erase_52,
19805 }, {
19806 .eraseblocks = { {64 * 1024, 4} },
19807 .block_erase = spi_block_erase_d8,
19808 }, {
19809 .eraseblocks = { {256 * 1024, 1} },
19810 .block_erase = spi_block_erase_60,
19811 }, {
19812 .eraseblocks = { {256 * 1024, 1} },
19813 .block_erase = spi_block_erase_c7,
19814 }
19815 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100019816 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19817 .unlock = spi_disable_blockprotect,
19818 .write = spi_chip_write_256,
19819 .read = spi_chip_read,
19820 .voltage = {2700, 3600},
David Hendricksa72d5a92018-02-11 17:58:44 -080019821 },
19822
19823 {
Alan Greenfa3fcd32019-06-27 15:41:50 +100019824 .vendor = "Zetta Device",
19825 .name = "ZD25D40",
19826 .bustype = BUS_SPI,
19827 .manufacture_id = ZETTADEVICE_ID,
19828 .model_id = ZETTADEVICE_ZD25D40,
19829 .total_size = 512,
19830 .page_size = 256,
19831 .feature_bits = FEATURE_WRSR_WREN,
19832 .tested = TEST_UNTESTED,
19833 .probe = probe_spi_rdid,
19834 .probe_timing = TIMING_ZERO,
19835 .block_erasers =
nybashcbb46e22018-02-11 17:53:49 -080019836 {
19837 {
19838 .eraseblocks = { {4 * 1024, 128} },
19839 .block_erase = spi_block_erase_20,
19840 }, {
19841 .eraseblocks = { {32 * 1024, 16} },
19842 .block_erase = spi_block_erase_52,
19843 }, {
19844 .eraseblocks = { {64 * 1024, 8} },
19845 .block_erase = spi_block_erase_d8,
19846 }, {
19847 .eraseblocks = { {512 * 1024, 1} },
19848 .block_erase = spi_block_erase_60,
19849 }, {
19850 .eraseblocks = { {512 * 1024, 1} },
19851 .block_erase = spi_block_erase_c7,
19852 }
19853 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100019854 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19855 .unlock = spi_disable_blockprotect,
19856 .write = spi_chip_write_256,
19857 .read = spi_chip_read,
19858 .voltage = {2700, 3600},
nybashcbb46e22018-02-11 17:53:49 -080019859 },
19860
Stefan Taunerac1b4c82012-02-17 14:51:04 +000019861 {
Alan Greendd592202019-08-23 10:11:37 +100019862 .vendor = "Unknown",
19863 .name = "SFDP-capable chip",
19864 .bustype = BUS_SPI,
19865 .manufacture_id = GENERIC_MANUF_ID,
19866 .model_id = SFDP_DEVICE_ID,
19867 .total_size = 0, /* set by probing function */
19868 .page_size = 0, /* set by probing function */
19869 .feature_bits = 0, /* set by probing function */
19870 /* We present our own "report this" text hence we do not */
19871 /* want the default "This flash part has status UNTESTED..." */
19872 /* text to be printed. */
19873 .tested = TEST_OK_PREW,
19874 .probe = probe_spi_sfdp,
19875 .block_erasers = {}, /* set by probing function */
19876 .unlock = spi_disable_blockprotect, /* is this safe? */
19877 .write = NULL, /* set by probing function */
19878 .read = spi_chip_read,
19879 /* FIXME: some vendor extensions define this */
19880 .voltage = {0},
19881 },
19882
19883 {
Carl-Daniel Hailfinger532c7172011-11-04 21:35:26 +000019884 .vendor = "Programmer",
19885 .name = "Opaque flash chip",
19886 .bustype = BUS_PROG,
19887 .manufacture_id = PROGMANUF_ID,
19888 .model_id = PROGDEV_ID,
19889 .total_size = 0,
19890 .page_size = 256,
19891 /* probe is assumed to work, rest will be filled in by probe */
19892 .tested = TEST_OK_PROBE,
19893 .probe = probe_opaque,
19894 /* eraseblock sizes will be set by the probing function */
19895 .block_erasers =
19896 {
19897 {
19898 .block_erase = erase_opaque,
19899 }
19900 },
19901 .write = write_opaque,
19902 .read = read_opaque,
19903 },
19904
19905 {
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000019906 .vendor = "AMIC",
19907 .name = "unknown AMIC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019908 .bustype = BUS_SPI,
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000019909 .manufacture_id = AMIC_ID,
19910 .model_id = GENERIC_DEVICE_ID,
19911 .total_size = 0,
19912 .page_size = 256,
19913 .tested = TEST_BAD_PREW,
19914 .probe = probe_spi_rdid4,
19915 .probe_timing = TIMING_ZERO,
19916 .write = NULL,
19917 .read = NULL,
19918 },
19919
19920 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019921 .vendor = "Atmel",
19922 .name = "unknown Atmel SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019923 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019924 .manufacture_id = ATMEL_ID,
19925 .model_id = GENERIC_DEVICE_ID,
19926 .total_size = 0,
19927 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000019928 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019929 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000019930 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019931 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019932 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000019933 },
19934
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019935 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +000019936 .vendor = "Eon",
19937 .name = "unknown Eon SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019938 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019939 .manufacture_id = EON_ID_NOPREFIX,
19940 .model_id = GENERIC_DEVICE_ID,
19941 .total_size = 0,
19942 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000019943 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019944 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000019945 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019946 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019947 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000019948 },
19949
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019950 {
19951 .vendor = "Macronix",
19952 .name = "unknown Macronix SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019953 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000019954 .manufacture_id = MACRONIX_ID,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019955 .model_id = GENERIC_DEVICE_ID,
19956 .total_size = 0,
19957 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000019958 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019959 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000019960 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019961 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019962 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000019963 },
19964
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019965 {
19966 .vendor = "PMC",
19967 .name = "unknown PMC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019968 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019969 .manufacture_id = PMC_ID,
19970 .model_id = GENERIC_DEVICE_ID,
19971 .total_size = 0,
19972 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000019973 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019974 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000019975 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019976 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019977 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000019978 },
19979
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019980 {
19981 .vendor = "SST",
19982 .name = "unknown SST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019983 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019984 .manufacture_id = SST_ID,
19985 .model_id = GENERIC_DEVICE_ID,
19986 .total_size = 0,
19987 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000019988 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019989 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000019990 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019991 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019992 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000019993 },
19994
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019995 {
19996 .vendor = "ST",
19997 .name = "unknown ST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019998 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019999 .manufacture_id = ST_ID,
20000 .model_id = GENERIC_DEVICE_ID,
20001 .total_size = 0,
20002 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000020003 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020004 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000020005 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020006 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000020007 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000020008 },
Uwe Hermannfc425e82008-03-16 02:06:25 +000020009
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000020010 {
Sean Nelson118e1d62009-11-24 02:08:11 +000020011 .vendor = "Sanyo",
20012 .name = "unknown Sanyo SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020013 .bustype = BUS_SPI,
Sean Nelson118e1d62009-11-24 02:08:11 +000020014 .manufacture_id = SANYO_ID,
20015 .model_id = GENERIC_DEVICE_ID,
20016 .total_size = 0,
20017 .page_size = 256,
20018 .tested = TEST_BAD_PREW,
20019 .probe = probe_spi_rdid,
20020 .probe_timing = TIMING_ZERO,
Sean Nelson118e1d62009-11-24 02:08:11 +000020021 .write = NULL,
20022 .read = NULL,
20023 },
20024
20025 {
Stefan Taunereb582572012-09-21 12:52:50 +000020026 .vendor = "Winbond",
20027 .name = "unknown Winbond (ex Nexcom) SPI chip",
20028 .bustype = BUS_SPI,
20029 .manufacture_id = WINBOND_NEX_ID,
20030 .model_id = GENERIC_DEVICE_ID,
20031 .total_size = 0,
20032 .page_size = 256,
20033 .tested = TEST_BAD_PREW,
20034 .probe = probe_spi_rdid,
20035 .probe_timing = TIMING_ZERO,
20036 .write = NULL,
20037 .read = NULL,
20038 },
20039
20040 {
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000020041 .vendor = "Generic",
20042 .name = "unknown SPI chip (RDID)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020043 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000020044 .manufacture_id = GENERIC_MANUF_ID,
20045 .model_id = GENERIC_DEVICE_ID,
20046 .total_size = 0,
20047 .page_size = 256,
20048 .tested = TEST_BAD_PREW,
20049 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000020050 .write = NULL,
20051 },
Stefan Tauneraf2db612011-12-02 21:48:17 +000020052
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000020053 {
20054 .vendor = "Generic",
20055 .name = "unknown SPI chip (REMS)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020056 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000020057 .manufacture_id = GENERIC_MANUF_ID,
20058 .model_id = GENERIC_DEVICE_ID,
20059 .total_size = 0,
20060 .page_size = 256,
20061 .tested = TEST_BAD_PREW,
20062 .probe = probe_spi_rems,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000020063 .write = NULL,
20064 },
20065
Stefan Tauner96658be2014-05-26 22:05:31 +000020066 {0}
Stephan Guilloux72cf5652009-04-21 01:46:07 +000020067};
Stefan Tauner96658be2014-05-26 22:05:31 +000020068
20069const unsigned int flashchips_size = ARRAY_SIZE(flashchips);