blob: 9bdf764837e93c2172905393bee0c88bc73390ed [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 */
2379 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
2380 .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},
2407 },
2408
2409 {
Stanislav Sedovf5775442018-03-07 14:16:51 -08002410 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002411 .name = "AT26DF041",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002412 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002413 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002414 .model_id = ATMEL_AT26DF041,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002415 .total_size = 512,
2416 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002417 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner94b39b42012-10-27 00:06:02 +00002418 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002419 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002420 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002421 .block_erasers =
2422 {
2423 {
Stefan Tauner94b39b42012-10-27 00:06:02 +00002424 .eraseblocks = { {256, 2048} },
2425 .block_erase = spi_block_erase_81,
2426 }, {
2427 .eraseblocks = { {2 * 1024, 256} },
2428 .block_erase = spi_block_erase_50,
2429 }, {
Sean Nelson89187292009-12-23 12:02:55 +00002430 .eraseblocks = { {4 * 1024, 128} },
2431 .block_erase = spi_block_erase_20,
2432 }
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002433 },
Stefan Taunercecb2c52013-06-20 22:55:41 +00002434 .printlock = spi_prettyprint_status_register_plain,
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002435 /* Supports also an incompatible page write (of exactly 256 B) and an auto-erasing write. */
Stefan Tauner94b39b42012-10-27 00:06:02 +00002436 .write = spi_chip_write_1,
2437 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002438 .voltage = {2700, 3600}, /* 3.0-3.6V for higher speed, 2.7-3.6V normal */
FENG yu ningff692fb2008-12-08 18:15:10 +00002439 },
2440
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002441 {
2442 .vendor = "Atmel",
2443 .name = "AT26DF081A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002444 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002445 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002446 .model_id = ATMEL_AT26DF081A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002447 .total_size = 1024,
2448 .page_size = 256,
Mathias Krause2c3afa32011-01-17 07:45:54 +00002449 .feature_bits = FEATURE_WRSR_WREN,
2450 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002451 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002452 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002453 .block_erasers =
2454 {
2455 {
2456 .eraseblocks = { {4 * 1024, 256} },
2457 .block_erase = spi_block_erase_20,
2458 }, {
2459 .eraseblocks = { {32 * 1024, 32} },
2460 .block_erase = spi_block_erase_52,
2461 }, {
2462 .eraseblocks = { {64 * 1024, 16} },
2463 .block_erase = spi_block_erase_d8,
2464 }, {
2465 .eraseblocks = { {1024 * 1024, 1} },
2466 .block_erase = spi_block_erase_60,
2467 }, {
2468 .eraseblocks = { {1024 * 1024, 1} },
2469 .block_erase = spi_block_erase_c7,
2470 }
2471 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002472 .printlock = spi_prettyprint_status_register_at26df081a,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002473 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002474 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002475 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002476 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002477 },
2478
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002479 {
2480 .vendor = "Atmel",
2481 .name = "AT26DF161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002482 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002483 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002484 .model_id = ATMEL_AT26DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002485 .total_size = 2048,
2486 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002487 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +00002488 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002489 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002490 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002491 .block_erasers =
2492 {
2493 {
2494 .eraseblocks = { {4 * 1024, 512} },
2495 .block_erase = spi_block_erase_20,
2496 }, {
2497 .eraseblocks = { {32 * 1024, 64} },
2498 .block_erase = spi_block_erase_52,
2499 }, {
2500 .eraseblocks = { {64 * 1024, 32} },
2501 .block_erase = spi_block_erase_d8,
2502 }, {
2503 .eraseblocks = { {2 * 1024 * 1024, 1} },
2504 .block_erase = spi_block_erase_60,
2505 }, {
2506 .eraseblocks = { {2 * 1024 * 1024, 1} },
2507 .block_erase = spi_block_erase_c7,
2508 }
2509 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00002510 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002511 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002512 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002513 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002514 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002515 },
2516
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002517 {
2518 .vendor = "Atmel",
2519 .name = "AT26DF161A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002520 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002521 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002522 .model_id = ATMEL_AT26DF161A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002523 .total_size = 2048,
2524 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002525 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002526 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002527 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002528 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002529 .block_erasers =
2530 {
2531 {
2532 .eraseblocks = { {4 * 1024, 512} },
2533 .block_erase = spi_block_erase_20,
2534 }, {
2535 .eraseblocks = { {32 * 1024, 64} },
2536 .block_erase = spi_block_erase_52,
2537 }, {
2538 .eraseblocks = { {64 * 1024, 32} },
2539 .block_erase = spi_block_erase_d8,
2540 }, {
2541 .eraseblocks = { {2 * 1024 * 1024, 1} },
2542 .block_erase = spi_block_erase_60,
2543 }, {
2544 .eraseblocks = { {2 * 1024 * 1024, 1} },
2545 .block_erase = spi_block_erase_c7,
2546 }
2547 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002548 .printlock = spi_prettyprint_status_register_at26df081a,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002549 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002550 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002551 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002552 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002553 },
2554
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002555 {
2556 .vendor = "Atmel",
2557 .name = "AT26F004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002558 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002559 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002560 .model_id = ATMEL_AT26F004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002561 .total_size = 512,
2562 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002563 .feature_bits = FEATURE_WRSR_WREN,
Alan Green908adf42019-07-03 15:34:06 +10002564 .tested = {.probe = NT, .read = NT, .erase = NT, .write = BAD},
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002565 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002566 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002567 .block_erasers =
2568 {
2569 {
2570 .eraseblocks = { {4 * 1024, 128} },
2571 .block_erase = spi_block_erase_20,
2572 }, {
2573 .eraseblocks = { {32 * 1024, 16} },
2574 .block_erase = spi_block_erase_52,
2575 }, {
2576 .eraseblocks = { {64 * 1024, 8} },
2577 .block_erase = spi_block_erase_d8,
2578 }, {
2579 .eraseblocks = { {512 * 1024, 1} },
2580 .block_erase = spi_block_erase_60,
2581 }, {
2582 .eraseblocks = { {512 * 1024, 1} },
2583 .block_erase = spi_block_erase_c7,
2584 }
2585 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002586 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Alan Greencbb85c02019-06-25 13:42:34 +10002587 .write = NULL, /* Incompatible Page write */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002588 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002589 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002590 },
2591
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002592 {
2593 .vendor = "Atmel",
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002594 .name = "AT29C010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002595 .bustype = BUS_PARALLEL,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002596 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002597 .model_id = ATMEL_AT29C010A,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002598 .total_size = 128,
2599 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00002600 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002601 .tested = TEST_OK_PRE,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002602 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00002603 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00002604 .block_erasers =
2605 {
2606 {
2607 .eraseblocks = { {128 * 1024, 1} },
2608 .block_erase = erase_chip_block_jedec,
2609 }
2610 },
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002611 .write = write_jedec, /* FIXME */
2612 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002613 .voltage = {4500, 5500},
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002614 },
2615
2616 {
2617 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002618 .name = "AT29C020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002619 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002620 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002621 .model_id = ATMEL_AT29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002622 .total_size = 256,
2623 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002624 .feature_bits = FEATURE_LONG_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00002625 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002626 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00002627 .probe_timing = 10000, /* 10ms */
Sean Nelson89187292009-12-23 12:02:55 +00002628 .block_erasers =
2629 {
2630 {
2631 .eraseblocks = { {256 * 1024, 1} },
2632 .block_erase = erase_chip_block_jedec,
2633 }
2634 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002635 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002636 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002637 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002638 },
2639
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002640 {
2641 .vendor = "Atmel",
2642 .name = "AT29C040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002643 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002644 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002645 .model_id = ATMEL_AT29C040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002646 .total_size = 512,
2647 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002648 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002649 .tested = TEST_UNTESTED,
2650 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00002651 .probe_timing = 10000, /* 10 ms */
Sean Nelson89187292009-12-23 12:02:55 +00002652 .block_erasers =
2653 {
2654 {
2655 .eraseblocks = { {512 * 1024, 1} },
2656 .block_erase = erase_chip_block_jedec,
2657 }
2658 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002659 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002660 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002661 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002662 },
2663
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002664 {
2665 .vendor = "Atmel",
Alan Green1f9cc7d2019-07-01 11:10:45 +10002666 .name = "AT29C512",
2667 .bustype = BUS_PARALLEL,
2668 .manufacture_id = ATMEL_ID,
2669 .model_id = ATMEL_AT29C512,
2670 .total_size = 64,
2671 .page_size = 128,
2672 .feature_bits = FEATURE_LONG_RESET,
2673 .tested = TEST_OK_PREW,
2674 .probe = probe_jedec,
2675 .probe_timing = 10000, /* 10mS, Enter=Exec */
2676 .block_erasers =
2677 {
2678 {
2679 .eraseblocks = { {64 * 1024, 1} },
2680 .block_erase = erase_chip_block_jedec,
2681 }
2682 },
2683 .write = write_jedec,
2684 .read = read_memmapped,
2685 .voltage = {4500, 5500},
2686 },
2687
2688 {
2689 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002690 .name = "AT45CS1282",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002691 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002692 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002693 .model_id = ATMEL_AT45CS1282,
Alan Greencbb85c02019-06-25 13:42:34 +10002694 .total_size = 16896, /* No power of two sizes */
2695 .page_size = 1056, /* No power of two sizes */
Steven Zakulec3603a282012-05-02 20:07:57 +00002696 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner1dd5d3a2013-08-27 18:02:19 +00002697 /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */
2698 .feature_bits = FEATURE_OTP,
2699 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002700 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002701 .probe_timing = TIMING_ZERO,
Stefan Tauner1dd5d3a2013-08-27 18:02:19 +00002702 .block_erasers =
2703 {
2704 {
2705 .eraseblocks = {
2706 {8 * 1056, 1}, /* sector 0a: opcode 50h */
2707 {248 * 1056, 1}, /* sector 0b: opcode 7Ch */
2708 {256 * 1056, 63}, /* sectors 1 - 63: opcode 7Ch */
2709 },
2710 .block_erase = spi_erase_at45cs_sector,
2711 }
2712 },
2713 .printlock = spi_prettyprint_status_register_plain,
Stefan Tauner1dd5d3a2013-08-27 18:02:19 +00002714 .write = spi_write_at45db,
2715 .read = spi_read_at45db,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002716 .voltage = {2700, 3600},
Alan Greenc1863ca2019-06-27 15:08:03 +10002717 .gran = write_gran_1056bytes,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002718 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002719
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002720 {
2721 .vendor = "Atmel",
2722 .name = "AT45DB011D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002723 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002724 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002725 .model_id = ATMEL_AT45DB011D,
Alan Greencbb85c02019-06-25 13:42:34 +10002726 .total_size = 128, /* or 132, determined from status register */
2727 .page_size = 256, /* or 264, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00002728 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002729 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2730 .feature_bits = FEATURE_OTP,
Stefan Tauner5c316f92015-02-08 21:57:52 +00002731 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002732 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002733 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002734 .block_erasers =
2735 {
2736 {
2737 .eraseblocks = { {256, 512} },
2738 .block_erase = spi_erase_at45db_page,
2739 }, {
2740 .eraseblocks = { {8 * 256, 512/8} },
2741 .block_erase = spi_erase_at45db_block,
2742 }, {
2743 .eraseblocks = {
2744 {8 * 256, 1},
2745 {120 * 256, 1},
2746 {128 * 256, 3},
2747 },
2748 .block_erase = spi_erase_at45db_sector
2749 }, {
2750 .eraseblocks = { {128 * 1024, 1} },
2751 .block_erase = spi_erase_at45db_chip,
2752 }
2753 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002754 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10002755 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002756 /* granularity will be set by the probing function. */
2757 .write = spi_write_at45db,
2758 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002759 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002760 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002761
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002762 {
2763 .vendor = "Atmel",
2764 .name = "AT45DB021D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002765 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002766 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002767 .model_id = ATMEL_AT45DB021D,
Alan Greencbb85c02019-06-25 13:42:34 +10002768 .total_size = 256, /* or 264, determined from status register */
2769 .page_size = 256, /* or 264, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00002770 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002771 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2772 .feature_bits = FEATURE_OTP,
Stefan Tauner6697f712014-08-06 15:09:15 +00002773 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002774 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002775 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002776 .block_erasers =
2777 {
2778 {
2779 .eraseblocks = { {256, 1024} },
2780 .block_erase = spi_erase_at45db_page,
2781 }, {
2782 .eraseblocks = { {8 * 256, 1024/8} },
2783 .block_erase = spi_erase_at45db_block,
2784 }, {
2785 .eraseblocks = {
2786 {8 * 256, 1},
2787 {120 * 256, 1},
2788 {128 * 256, 7},
2789 },
2790 .block_erase = spi_erase_at45db_sector
2791 }, {
2792 .eraseblocks = { {256 * 1024, 1} },
2793 .block_erase = spi_erase_at45db_chip,
2794 }
2795 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002796 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10002797 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002798 /* granularity will be set by the probing function. */
2799 .write = spi_write_at45db,
2800 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002801 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002802 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002803
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002804 {
2805 .vendor = "Atmel",
2806 .name = "AT45DB041D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002807 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002808 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002809 .model_id = ATMEL_AT45DB041D,
Alan Greencbb85c02019-06-25 13:42:34 +10002810 .total_size = 512, /* or 528, determined from status register */
2811 .page_size = 256, /* or 264, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00002812 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002813 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2814 .feature_bits = FEATURE_OTP,
2815 .tested = TEST_OK_PREW,
2816 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002817 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002818 .block_erasers =
2819 {
2820 {
2821 .eraseblocks = { {256, 2048} },
2822 .block_erase = spi_erase_at45db_page,
2823 }, {
2824 .eraseblocks = { {8 * 256, 2048/8} },
2825 .block_erase = spi_erase_at45db_block,
2826 }, {
2827 .eraseblocks = {
2828 {8 * 256, 1},
2829 {248 * 256, 1},
2830 {256 * 256, 7},
2831 },
2832 .block_erase = spi_erase_at45db_sector
2833 }, {
2834 .eraseblocks = { {512 * 1024, 1} },
2835 .block_erase = spi_erase_at45db_chip,
2836 }
2837 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002838 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10002839 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002840 /* granularity will be set by the probing function. */
2841 .write = spi_write_at45db,
2842 .read = spi_read_at45db, /* Fast read (0x0B) supported */
2843 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002844 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002845
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002846 {
2847 .vendor = "Atmel",
2848 .name = "AT45DB081D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002849 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002850 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002851 .model_id = ATMEL_AT45DB081D,
Alan Greencbb85c02019-06-25 13:42:34 +10002852 .total_size = 1024, /* or 1056, determined from status register */
2853 .page_size = 256, /* or 264, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00002854 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002855 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2856 .feature_bits = FEATURE_OTP,
Angel Pons250aeba2018-09-30 20:28:22 +02002857 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002858 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002859 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002860 .block_erasers =
2861 {
2862 {
2863 .eraseblocks = { {256, 4096} },
2864 .block_erase = spi_erase_at45db_page,
2865 }, {
2866 .eraseblocks = { {8 * 256, 4096/8} },
2867 .block_erase = spi_erase_at45db_block,
2868 }, {
2869 .eraseblocks = {
2870 {8 * 256, 1},
2871 {248 * 256, 1},
2872 {256 * 256, 15},
2873 },
2874 .block_erase = spi_erase_at45db_sector
2875 }, {
2876 .eraseblocks = { {1024 * 1024, 1} },
2877 .block_erase = spi_erase_at45db_chip,
2878 }
2879 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002880 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10002881 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002882 /* granularity will be set by the probing function. */
2883 .write = spi_write_at45db,
2884 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002885 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002886 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002887
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002888 {
2889 .vendor = "Atmel",
2890 .name = "AT45DB161D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002891 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002892 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002893 .model_id = ATMEL_AT45DB161D,
Alan Greencbb85c02019-06-25 13:42:34 +10002894 .total_size = 2048, /* or 2112, determined from status register */
2895 .page_size = 512, /* or 528, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00002896 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002897 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2898 .feature_bits = FEATURE_OTP,
2899 .tested = TEST_OK_PREW,
2900 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002901 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002902 .block_erasers =
2903 {
2904 {
2905 .eraseblocks = { {512, 4096} },
2906 .block_erase = spi_erase_at45db_page,
2907 }, {
2908 .eraseblocks = { {8 * 512, 4096/8} },
2909 .block_erase = spi_erase_at45db_block,
2910 }, {
2911 .eraseblocks = {
2912 {8 * 512, 1},
2913 {248 * 512, 1},
2914 {256 * 512, 15},
2915 },
2916 .block_erase = spi_erase_at45db_sector
2917 }, {
2918 .eraseblocks = { {2048 * 1024, 1} },
2919 .block_erase = spi_erase_at45db_chip,
2920 }
2921 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002922 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10002923 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002924 /* granularity will be set by the probing function. */
2925 .write = spi_write_at45db,
2926 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002927 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002928 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002929
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002930 {
2931 .vendor = "Atmel",
2932 .name = "AT45DB321C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002933 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002934 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002935 .model_id = ATMEL_AT45DB321C,
Alan Greencbb85c02019-06-25 13:42:34 +10002936 .total_size = 4224, /* No power of two sizes */
2937 .page_size = 528, /* No power of two sizes */
Steven Zakulec3603a282012-05-02 20:07:57 +00002938 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002939 /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */
2940 .feature_bits = FEATURE_OTP,
2941 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002942 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002943 .probe_timing = TIMING_ZERO,
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002944 .block_erasers =
2945 {
2946 {
2947 .eraseblocks = { {528, 8192} },
2948 .block_erase = spi_erase_at45db_page,
2949 }, {
2950 .eraseblocks = { {8 * 528, 8192/8} },
2951 .block_erase = spi_erase_at45db_block,
2952 }, /* Although the datasheets describes sectors (which can be write protected)
2953 * there seems to be no erase functions for them.
Stefan Tauner23e10b82016-01-23 16:16:49 +00002954 {
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002955 .eraseblocks = {
2956 {8 * 528, 1},
2957 {120 * 528, 1},
2958 {128 * 528, 63},
2959 },
2960 .block_erase = spi_erase_at45db_sector
2961 }, */ {
2962 .eraseblocks = { {4224 * 1024, 1} },
2963 .block_erase = spi_erase_at45db_chip,
2964 }
2965 },
2966 .printlock = spi_prettyprint_status_register_at45db, /* Bit 0 is undefined, no lockdown */
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002967 .write = spi_write_at45db,
2968 .read = spi_read_at45db_e8, /* 3 address and 4 dummy bytes */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002969 .voltage = {2700, 3600},
Alan Greenc1863ca2019-06-27 15:08:03 +10002970 .gran = write_gran_528bytes,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002971 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002972
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002973 {
2974 .vendor = "Atmel",
2975 .name = "AT45DB321D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002976 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002977 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002978 .model_id = ATMEL_AT45DB321D,
Alan Greencbb85c02019-06-25 13:42:34 +10002979 .total_size = 4096, /* or 4224, determined from status register */
2980 .page_size = 512, /* or 528, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00002981 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002982 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
Daniel Lenski65922a32012-02-15 23:40:23 +00002983 .feature_bits = FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +00002984 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002985 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002986 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002987 .block_erasers =
2988 {
2989 {
2990 .eraseblocks = { {512, 8192} },
2991 .block_erase = spi_erase_at45db_page,
2992 }, {
2993 .eraseblocks = { {8 * 512, 8192/8} },
2994 .block_erase = spi_erase_at45db_block,
2995 }, {
2996 .eraseblocks = {
2997 {8 * 512, 1},
2998 {120 * 512, 1},
2999 {128 * 512, 63},
3000 },
3001 .block_erase = spi_erase_at45db_sector
3002 }, {
3003 .eraseblocks = { {4096 * 1024, 1} },
3004 .block_erase = spi_erase_at45db_chip,
3005 }
3006 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003007 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10003008 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003009 /* granularity will be set by the probing function. */
3010 .write = spi_write_at45db,
3011 .read = spi_read_at45db, /* Fast read (0x0B) supported */
3012 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
3013 },
3014
3015 {
3016 .vendor = "Atmel",
3017 .name = "AT45DB321E",
3018 .bustype = BUS_SPI,
3019 .manufacture_id = ATMEL_ID,
3020 .model_id = ATMEL_AT45DB321C,
Alan Greencbb85c02019-06-25 13:42:34 +10003021 .total_size = 4096, /* or 4224, determined from status register */
3022 .page_size = 512, /* or 528, determined from status register */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003023 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
3024 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
3025 .feature_bits = FEATURE_OTP,
3026 .tested = TEST_UNTESTED,
3027 .probe = probe_spi_at45db,
3028 .probe_timing = TIMING_ZERO,
3029 .block_erasers =
3030 {
3031 {
3032 .eraseblocks = { {512, 8192} },
3033 .block_erase = spi_erase_at45db_page,
3034 }, {
3035 .eraseblocks = { {8 * 512, 8192/8} },
3036 .block_erase = spi_erase_at45db_block,
3037 }, {
3038 .eraseblocks = {
3039 {8 * 512, 1},
3040 {120 * 512, 1},
3041 {128 * 512, 63},
3042 },
3043 .block_erase = spi_erase_at45db_sector
3044 }, {
3045 .eraseblocks = { {4096 * 1024, 1} },
3046 .block_erase = spi_erase_at45db_chip,
3047 }
3048 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003049 .printlock = spi_prettyprint_status_register_at45db, /* has a 2nd status register */
Alan Greenc1863ca2019-06-27 15:08:03 +10003050 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003051 /* granularity will be set by the probing function. */
3052 .write = spi_write_at45db,
3053 .read = spi_read_at45db, /* Fast read (0x0B) supported */
3054 .voltage = {2500, 3600}, /* 2.3-3.6V & 2.5-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00003055 },
FENG yu ningff692fb2008-12-08 18:15:10 +00003056
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003057 {
3058 .vendor = "Atmel",
3059 .name = "AT45DB642D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003060 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003061 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003062 .model_id = ATMEL_AT45DB642D,
Alan Greencbb85c02019-06-25 13:42:34 +10003063 .total_size = 8192, /* or 8448, determined from status register */
3064 .page_size = 1024, /* or 1056, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00003065 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003066 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
3067 .feature_bits = FEATURE_OTP,
Stefan Tauner5c316f92015-02-08 21:57:52 +00003068 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003069 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003070 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003071 .block_erasers =
3072 {
3073 {
3074 .eraseblocks = { {1024, 8192} },
3075 .block_erase = spi_erase_at45db_page,
3076 }, {
3077 .eraseblocks = { {8 * 1024, 8192/8} },
3078 .block_erase = spi_erase_at45db_block,
3079 }, {
3080 .eraseblocks = {
3081 {8 * 1024, 1},
3082 {248 * 1024, 1},
3083 {256 * 1024, 31},
3084 },
3085 .block_erase = spi_erase_at45db_sector
3086 }, {
3087 .eraseblocks = { {8192 * 1024, 1} },
3088 .block_erase = spi_erase_at45db_chip,
3089 }
3090 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003091 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10003092 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003093 /* granularity will be set by the probing function. */
3094 .write = spi_write_at45db,
3095 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003096 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00003097 },
FENG yu ningff692fb2008-12-08 18:15:10 +00003098
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003099 {
3100 .vendor = "Atmel",
Alan Green1f9cc7d2019-07-01 11:10:45 +10003101 .name = "AT49(H)F010",
3102 .bustype = BUS_PARALLEL,
3103 .manufacture_id = ATMEL_ID,
3104 .model_id = ATMEL_AT49F010,
3105 .total_size = 128,
3106 .page_size = 0, /* unused */
3107 .feature_bits = FEATURE_EITHER_RESET,
3108 .tested = TEST_OK_PREW,
3109 .probe = probe_jedec,
3110 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3111 .block_erasers =
3112 {
3113 {
3114 .eraseblocks = { {128 * 1024, 1} },
3115 .block_erase = erase_chip_block_jedec,
3116 }
3117 },
3118 .printlock = printlock_at49f,
3119 .write = write_jedec_1,
3120 .read = read_memmapped,
3121 .voltage = {4500, 5500},
3122 },
3123
3124 {
3125 .vendor = "Atmel",
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003126 .name = "AT49BV512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003127 .bustype = BUS_PARALLEL,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003128 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003129 .model_id = ATMEL_AT49BV512,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003130 .total_size = 64,
3131 .page_size = 64,
Sean Nelson35727f72010-01-28 23:55:12 +00003132 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +00003133 .tested = TEST_OK_PREW,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003134 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003135 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00003136 .block_erasers =
3137 {
3138 {
3139 .eraseblocks = { {64 * 1024, 1} },
3140 .block_erase = erase_chip_block_jedec,
3141 }
3142 },
Sean Nelson35727f72010-01-28 23:55:12 +00003143 .write = write_jedec_1,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003144 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003145 .voltage = {2700, 3600},
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003146 },
3147
3148 {
3149 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003150 .name = "AT49F002(N)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003151 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003152 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003153 .model_id = ATMEL_AT49F002N,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003154 .total_size = 256,
3155 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00003156 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003157 .tested = TEST_UNTESTED,
3158 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003159 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00003160 .block_erasers =
3161 {
3162 {
3163 .eraseblocks = {
3164 {16 * 1024, 1},
3165 {8 * 1024, 2},
3166 {96 * 1024, 1},
3167 {128 * 1024, 1},
3168 },
3169 .block_erase = erase_sector_jedec,
3170 }, {
3171 .eraseblocks = { {256 * 1024, 1} },
3172 .block_erase = erase_chip_block_jedec,
3173 }
3174 },
Sean Nelson35727f72010-01-28 23:55:12 +00003175 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003176 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003177 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003178 },
3179
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003180 {
3181 .vendor = "Atmel",
3182 .name = "AT49F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003183 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003184 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003185 .model_id = ATMEL_AT49F002NT,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003186 .total_size = 256,
3187 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00003188 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003189 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003190 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003191 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00003192 .block_erasers =
3193 {
3194 {
3195 .eraseblocks = {
3196 {128 * 1024, 1},
3197 {96 * 1024, 1},
3198 {8 * 1024, 2},
3199 {16 * 1024, 1},
3200 },
3201 .block_erase = erase_sector_jedec,
3202 }, {
3203 .eraseblocks = { {256 * 1024, 1} },
3204 .block_erase = erase_chip_block_jedec,
3205 }
3206 },
Sean Nelson35727f72010-01-28 23:55:12 +00003207 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003208 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003209 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003210 },
3211
Daniel Lenskidf90d3a2010-07-22 11:44:38 +00003212 {
Uwe Hermannc74e9772011-09-08 19:55:18 +00003213 .vendor = "Atmel",
David Borgf5a30f62012-04-15 13:16:32 +00003214 .name = "AT49F020",
3215 .bustype = BUS_PARALLEL,
3216 .manufacture_id = ATMEL_ID,
3217 .model_id = ATMEL_AT49F020,
3218 .total_size = 256,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00003219 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00003220 .feature_bits = FEATURE_EITHER_RESET,
3221 .tested = TEST_OK_PRE,
3222 .probe = probe_jedec,
3223 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3224 .block_erasers =
3225 {
3226 {
3227 .eraseblocks = { {256 * 1024, 1} },
3228 .block_erase = erase_chip_block_jedec,
3229 }
3230 /* Chip features an optional permanent write protection
3231 * of the first 8 kB. The erase function is the same as
3232 * above, but 00000H to 01FFFH will not be erased.
3233 * FIXME: add another eraser when partial erasers are
3234 * supported.
3235 */
3236 },
3237 .printlock = printlock_at49f,
3238 .write = write_jedec_1,
3239 .read = read_memmapped,
3240 .voltage = {4500, 5500},
3241 },
3242
3243 {
3244 .vendor = "Atmel",
3245 .name = "AT49F040",
3246 .bustype = BUS_PARALLEL,
3247 .manufacture_id = ATMEL_ID,
3248 .model_id = ATMEL_AT49F040,
3249 .total_size = 512,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00003250 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00003251 .feature_bits = FEATURE_EITHER_RESET,
3252 .tested = TEST_UNTESTED,
3253 .probe = probe_jedec,
3254 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3255 .block_erasers =
3256 {
3257 {
3258 .eraseblocks = { {512 * 1024, 1} },
3259 .block_erase = erase_chip_block_jedec,
3260 }
3261 /* Chip features an optional permanent write protection
3262 * of the first 16 kB. The erase function is the same as
3263 * above, but 00000H to 03FFFH will not be erased.
3264 * FIXME: add another eraser when partial erasers are
3265 * supported.
3266 */
3267 },
3268 .printlock = printlock_at49f,
3269 .write = write_jedec_1,
3270 .read = read_memmapped,
3271 .voltage = {4500, 5500},
3272 },
3273
3274 {
3275 .vendor = "Atmel",
Andrew Morgan8dd97f92012-08-13 23:43:46 +00003276 .name = "AT49F080",
3277 .bustype = BUS_PARALLEL,
3278 .manufacture_id = ATMEL_ID,
3279 .model_id = ATMEL_AT49F080,
3280 .total_size = 1024,
3281 .page_size = 0, /* unused */
3282 .feature_bits = FEATURE_EITHER_RESET,
3283 .tested = TEST_UNTESTED,
3284 .probe = probe_jedec,
3285 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3286 .block_erasers =
3287 {
3288 {
3289 .eraseblocks = { {1024 * 1024, 1} },
3290 .block_erase = erase_chip_block_jedec,
3291 }
3292 /* Chip features an optional permanent write protection
3293 * of the first 16 kB. The erase function is the same as
3294 * above, but 00000H to 03FFFH will not be erased.
3295 * FIXME: add another eraser when partial erasers are
3296 * supported.
3297 */
3298 },
3299 .printlock = printlock_at49f,
3300 .write = write_jedec_1,
3301 .read = read_memmapped,
3302 .voltage = {4500, 5500},
3303 },
3304
3305 {
3306 /* 'top' version of AT49F080. equal in all aspects but the boot block address */
3307 .vendor = "Atmel",
3308 .name = "AT49F080T",
3309 .bustype = BUS_PARALLEL,
3310 .manufacture_id = ATMEL_ID,
3311 .model_id = ATMEL_AT49F080T,
3312 .total_size = 1024,
3313 .page_size = 0, /* unused */
3314 .feature_bits = FEATURE_EITHER_RESET,
3315 .tested = TEST_UNTESTED,
3316 .probe = probe_jedec,
3317 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3318 .block_erasers =
3319 {
3320 {
3321 .eraseblocks = { {1024 * 1024, 1} },
3322 .block_erase = erase_chip_block_jedec,
3323 }
3324 /* Chip features an optional permanent write protection
3325 * of the first 16 kB. The erase function is the same as
3326 * above, but FC000H to FFFFFH will not be erased.
3327 * FIXME: add another eraser when partial erasers are
3328 * supported.
3329 */
3330 },
3331 .printlock = printlock_at49f,
3332 .write = write_jedec_1,
3333 .read = read_memmapped,
3334 .voltage = {4500, 5500},
3335 },
3336
3337 {
3338 .vendor = "Atmel",
Uwe Hermannc74e9772011-09-08 19:55:18 +00003339 .name = "AT49LH002",
3340 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
3341 .manufacture_id = ATMEL_ID,
3342 .model_id = ATMEL_AT49LH002,
3343 .total_size = 256,
3344 .page_size = 0, /* unused */
Stefan Tauner7de93932014-08-03 13:05:45 +00003345 .feature_bits = FEATURE_REGISTERMAP,
Uwe Hermannc74e9772011-09-08 19:55:18 +00003346 .tested = TEST_UNTESTED,
Stefan Tauner7de93932014-08-03 13:05:45 +00003347 .probe = probe_82802ab,
3348 .probe_timing = TIMING_ZERO,
Uwe Hermannc74e9772011-09-08 19:55:18 +00003349 .block_erasers =
3350 {
3351 {
3352 .eraseblocks = {
3353 {64 * 1024, 3},
3354 {32 * 1024, 1},
3355 {8 * 1024, 2},
3356 {16 * 1024, 1},
3357 },
Stefan Tauner7de93932014-08-03 13:05:45 +00003358 .block_erase = NULL, /* TODO: Implement. */
Uwe Hermannc74e9772011-09-08 19:55:18 +00003359 }, {
3360 .eraseblocks = {
3361 {64 * 1024, 4},
3362 },
Stefan Tauner7de93932014-08-03 13:05:45 +00003363 .block_erase = erase_block_82802ab,
3364 },
3365 },
3366 .printlock = printlock_regspace2_block_eraser_0,
3367 .unlock = unlock_regspace2_block_eraser_0,
3368 .write = write_82802ab,
3369 .read = read_memmapped,
3370 .voltage = {3000, 3600},
3371 },
3372
3373 {
3374 .vendor = "Atmel",
Stefan Tauner7de93932014-08-03 13:05:45 +00003375 .name = "AT49LH004",
3376 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
3377 .manufacture_id = ATMEL_ID,
3378 .model_id = ATMEL_AT49LH004,
3379 .total_size = 512,
3380 .page_size = 0, /* unused */
3381 .feature_bits = FEATURE_REGISTERMAP,
3382 .tested = TEST_UNTESTED,
3383 .probe = probe_82802ab,
3384 .probe_timing = TIMING_ZERO,
3385 .block_erasers =
3386 {
3387 {
3388 .eraseblocks = {
3389 {64 * 1024, 7},
3390 {32 * 1024, 1},
3391 {8 * 1024, 2},
3392 {16 * 1024, 1},
3393 },
3394 .block_erase = erase_block_82802ab,
3395 }, {
3396 .eraseblocks = {
3397 {64 * 1024, 8},
3398 },
Uwe Hermannc74e9772011-09-08 19:55:18 +00003399 .block_erase = NULL, /* TODO: Implement. */
3400 },
3401 },
Stefan Tauner7de93932014-08-03 13:05:45 +00003402 .printlock = printlock_regspace2_block_eraser_0,
3403 .unlock = unlock_regspace2_block_eraser_0,
Uwe Hermannc74e9772011-09-08 19:55:18 +00003404 .write = write_82802ab,
3405 .read = read_memmapped,
3406 .voltage = {3000, 3600},
3407 },
3408
3409 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003410 .vendor = "Atmel",
3411 .name = "AT49LH00B4",
3412 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
3413 .manufacture_id = ATMEL_ID,
3414 .model_id = ATMEL_AT49LH00B4,
3415 .total_size = 512,
Andrew Morganca081462011-09-13 22:05:44 +00003416 .page_size = 0, /* unused */
Alan Green1f9cc7d2019-07-01 11:10:45 +10003417 .feature_bits = FEATURE_REGISTERMAP,
3418 .tested = TEST_UNTESTED,
3419 .probe = probe_82802ab,
Andrew Morganca081462011-09-13 22:05:44 +00003420 .probe_timing = TIMING_ZERO,
3421 .block_erasers =
3422 {
3423 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003424 .eraseblocks = {
3425 {8 * 1024, 2},
3426 {16 * 1024, 1},
3427 {32 * 1024, 1},
3428 {64 * 1024, 7},
3429 },
3430 .block_erase = NULL, /* TODO: Implement. */
3431 }, {
3432 .eraseblocks = {
3433 {64 * 1024, 8},
3434 },
3435 .block_erase = erase_block_82802ab,
Andrew Morganca081462011-09-13 22:05:44 +00003436 },
3437 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10003438 .printlock = printlock_regspace2_block_eraser_0,
3439 .unlock = unlock_regspace2_block_eraser_0,
3440 .write = write_82802ab,
Andrew Morganca081462011-09-13 22:05:44 +00003441 .read = read_memmapped,
Alan Green1f9cc7d2019-07-01 11:10:45 +10003442 .voltage = {3000, 3600},
Andrew Morganca081462011-09-13 22:05:44 +00003443 },
3444
3445 {
Angel Pons1ebda782021-04-20 21:39:11 +02003446 .vendor = "Boya/BoHong Microelectronics",
Christian Kudera475a7ee2021-04-20 22:50:01 +02003447 .name = "B.25D16A",
3448 .bustype = BUS_SPI,
3449 .manufacture_id = BOYA_BOHONG_ID,
3450 .model_id = BOYA_BOHONG_B_25D16A,
3451 .total_size = 2048,
3452 .page_size = 256,
3453 .feature_bits = FEATURE_WRSR_WREN,
3454 .tested = TEST_OK_PR,
3455 .probe = probe_spi_rdid,
3456 .probe_timing = TIMING_ZERO,
3457 .block_erasers =
3458 {
3459 {
3460 .eraseblocks = { {4 * 1024, 512} },
3461 .block_erase = spi_block_erase_20,
3462 }, {
3463 .eraseblocks = { {32 * 1024, 64} },
3464 .block_erase = spi_block_erase_52,
3465 }, {
3466 .eraseblocks = { {64 * 1024, 32} },
3467 .block_erase = spi_block_erase_d8,
3468 }, {
3469 .eraseblocks = { {2 * 1024 * 1024, 1} },
3470 .block_erase = spi_block_erase_60,
3471 }, {
3472 .eraseblocks = { {2 * 1024 * 1024, 1} },
3473 .block_erase = spi_block_erase_c7,
3474 }
3475 },
3476 .printlock = spi_prettyprint_status_register_bp2_srwd,
3477 .unlock = spi_disable_blockprotect_bp2_srwd,
3478 .write = spi_chip_write_256,
3479 .read = spi_chip_read,
3480 .voltage = {2700, 3600},
3481 },
3482
3483 {
3484 .vendor = "Boya/BoHong Microelectronics",
Angel Pons1ebda782021-04-20 21:39:11 +02003485 .name = "B.25Q128AS",
Jack Olsen73ae5ef2020-08-08 21:12:13 -05003486 .bustype = BUS_SPI,
Angel Pons1ebda782021-04-20 21:39:11 +02003487 .manufacture_id = BOYA_BOHONG_ID,
3488 .model_id = BOYA_BOHONG_B_25Q128AS,
Jack Olsen73ae5ef2020-08-08 21:12:13 -05003489 .total_size = 16384,
3490 .page_size = 256,
3491 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
3492 .tested = TEST_OK_PREW,
3493 .probe = probe_spi_rdid,
3494 .probe_timing = TIMING_ZERO,
3495 .block_erasers =
3496 {
3497 {
3498 .eraseblocks = { {4 * 1024, 4096} },
3499 .block_erase = spi_block_erase_20,
3500 }, {
3501 .eraseblocks = { {32 * 1024, 512} },
3502 .block_erase = spi_block_erase_52,
3503 }, {
3504 .eraseblocks = { {64 * 1024, 256} },
3505 .block_erase = spi_block_erase_d8,
3506 }, {
3507 .eraseblocks = { {16 * 1024 * 1024, 1} },
3508 .block_erase = spi_block_erase_60,
3509 }, {
3510 .eraseblocks = { {16 * 1024 * 1024, 1} },
3511 .block_erase = spi_block_erase_c7,
3512 }
3513 },
3514 .printlock = spi_prettyprint_status_register_plain,
3515 .unlock = spi_disable_blockprotect_at25fs040,
3516 .write = spi_chip_write_256,
3517 .read = spi_chip_read,
3518 .voltage = {2700, 3600},
3519 },
3520
3521 {
Joshua Roysf1324e02010-09-16 00:51:51 +00003522 .vendor = "Bright",
3523 .name = "BM29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003524 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00003525 .manufacture_id = BRIGHT_ID,
3526 .model_id = BRIGHT_BM29F040,
3527 .total_size = 512,
3528 .page_size = 64 * 1024,
3529 .feature_bits = FEATURE_EITHER_RESET,
3530 .tested = TEST_OK_PR,
3531 .probe = probe_jedec,
3532 .probe_timing = TIMING_ZERO,
3533 .block_erasers =
3534 {
3535 {
3536 .eraseblocks = { {64 * 1024, 8} },
3537 .block_erase = erase_sector_jedec,
3538 }, {
3539 .eraseblocks = { {512 * 1024, 1} },
3540 .block_erase = erase_chip_block_jedec,
3541 },
3542 },
3543 .write = write_jedec_1,
3544 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003545 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00003546 },
3547
3548 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003549 .vendor = "Catalyst",
3550 .name = "CAT28F512",
3551 .bustype = BUS_PARALLEL,
3552 .manufacture_id = CATALYST_ID,
3553 .model_id = CATALYST_CAT28F512,
3554 .total_size = 64,
3555 .page_size = 0, /* unused */
3556 .feature_bits = 0,
Alan Green908adf42019-07-03 15:34:06 +10003557 .tested = {.probe = OK, .read = OK, .erase = BAD, .write = BAD},
Alan Green1f9cc7d2019-07-01 11:10:45 +10003558 .probe = probe_jedec, /* FIXME! */
3559 .probe_timing = TIMING_ZERO,
3560 .block_erasers =
3561 {
3562 {
3563 .eraseblocks = { {64 * 1024, 1} },
3564 .block_erase = NULL, /* TODO */
3565 },
3566 },
3567 .write = NULL, /* TODO */
3568 .read = read_memmapped,
3569 .voltage = {4500, 5500},
3570 },
3571
3572 {
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003573 .vendor = "ENE",
3574 .name = "KB9012 (EDI)",
3575 .bustype = BUS_SPI,
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003576 .total_size = 128,
3577 .page_size = 128,
3578 .feature_bits = FEATURE_ERASED_ZERO,
3579 .tested = TEST_OK_PREW,
Alan Greenc1863ca2019-06-27 15:08:03 +10003580 .spi_cmd_set = SPI_EDI,
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003581 .probe = edi_probe_kb9012,
3582 .probe_timing = TIMING_ZERO,
3583 .block_erasers =
3584 {
3585 {
3586 .eraseblocks = { {128, 1024} },
3587 .block_erase = edi_chip_block_erase,
3588 },
3589 },
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003590 .write = edi_chip_write,
3591 .read = edi_chip_read,
3592 .voltage = {2700, 3600},
Alan Greenc1863ca2019-06-27 15:08:03 +10003593 .gran = write_gran_128bytes,
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003594 },
3595
3596 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003597 .vendor = "ESI",
3598 .name = "ES25P16",
3599 .bustype = BUS_SPI,
3600 .manufacture_id = EXCEL_ID_NOPREFIX,
3601 .model_id = EXCEL_ES25P16,
3602 .total_size = 2 * 1024,
3603 .page_size = 256,
3604 /* 256-byte parameter page separate from memory array:
3605 * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
3606 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003607 .tested = TEST_UNTESTED,
Alan Green1f9cc7d2019-07-01 11:10:45 +10003608 .probe = probe_spi_rdid,
3609 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003610 .block_erasers =
3611 {
3612 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003613 .eraseblocks = { {64 * 1024, 32} },
3614 .block_erase = spi_block_erase_d8,
Sean Nelson54596372010-01-09 05:30:14 +00003615 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003616 .eraseblocks = { {2 * 1024 * 1024, 1} },
3617 .block_erase = spi_block_erase_c7,
Sean Nelson54596372010-01-09 05:30:14 +00003618 }
3619 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10003620 .printlock = spi_prettyprint_status_register_bp2_srwd,
3621 .unlock = spi_disable_blockprotect_bp2_srwd,
3622 .write = spi_chip_write_256,
3623 .read = spi_chip_read, /* Fast Read (0x0B) supported */
3624 .voltage = {2700, 3600},
3625 },
3626
3627 {
3628 .vendor = "ESI",
3629 .name = "ES25P40",
3630 .bustype = BUS_SPI,
3631 .manufacture_id = EXCEL_ID_NOPREFIX,
3632 .model_id = EXCEL_ES25P40,
3633 .total_size = 512,
3634 .page_size = 256,
3635 /* 256-byte parameter page separate from memory array:
3636 * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
3637 .feature_bits = FEATURE_WRSR_WREN,
3638 .tested = TEST_UNTESTED,
3639 .probe = probe_spi_rdid,
3640 .probe_timing = TIMING_ZERO,
3641 .block_erasers =
3642 {
3643 {
3644 .eraseblocks = { {64 * 1024, 8} },
3645 .block_erase = spi_block_erase_d8,
3646 }, {
3647 .eraseblocks = { {512 * 1024, 1} },
3648 .block_erase = spi_block_erase_c7,
3649 }
3650 },
3651 .printlock = spi_prettyprint_status_register_bp2_srwd,
3652 .unlock = spi_disable_blockprotect_bp2_srwd,
3653 .write = spi_chip_write_256,
3654 .read = spi_chip_read, /* Fast Read (0x0B) supported */
3655 .voltage = {2700, 3600},
3656 },
3657
3658 {
3659 .vendor = "ESI",
3660 .name = "ES25P80",
3661 .bustype = BUS_SPI,
3662 .manufacture_id = EXCEL_ID_NOPREFIX,
3663 .model_id = EXCEL_ES25P80,
3664 .total_size = 1024,
3665 .page_size = 256,
3666 /* 256-byte parameter page separate from memory array:
3667 * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
3668 .feature_bits = FEATURE_WRSR_WREN,
3669 .tested = TEST_UNTESTED,
3670 .probe = probe_spi_rdid,
3671 .probe_timing = TIMING_ZERO,
3672 .block_erasers =
3673 {
3674 {
3675 .eraseblocks = { {64 * 1024, 16} },
3676 .block_erase = spi_block_erase_d8,
3677 }, {
3678 .eraseblocks = { {1024 * 1024, 1} },
3679 .block_erase = spi_block_erase_c7,
3680 }
3681 },
3682 .printlock = spi_prettyprint_status_register_bp2_srwd,
3683 .unlock = spi_disable_blockprotect_bp2_srwd,
3684 .write = spi_chip_write_256,
3685 .read = spi_chip_read, /* Fast Read (0x0B) supported */
3686 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00003687 },
3688
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003689 {
Stefan Tauner352e50b2013-02-22 15:58:45 +00003690 .vendor = "ESMT",
Michael Karcher80a59ea2010-06-19 22:06:35 +00003691 .name = "F25L008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003692 .bustype = BUS_SPI,
Stefan Tauner352e50b2013-02-22 15:58:45 +00003693 .manufacture_id = ESMT_ID,
3694 .model_id = ESMT_F25L008A,
Michael Karcher80a59ea2010-06-19 22:06:35 +00003695 .total_size = 1024,
3696 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003697 .feature_bits = FEATURE_WRSR_EITHER,
Stefan Taunereb582572012-09-21 12:52:50 +00003698 .tested = TEST_OK_PREW,
Michael Karcher80a59ea2010-06-19 22:06:35 +00003699 .probe = probe_spi_rdid,
3700 .probe_timing = TIMING_ZERO,
3701 .block_erasers =
3702 {
3703 {
3704 .eraseblocks = { {4 * 1024, 256} },
3705 .block_erase = spi_block_erase_20,
3706 }, {
3707 .eraseblocks = { {64 * 1024, 16} },
3708 .block_erase = spi_block_erase_d8,
3709 }, {
3710 .eraseblocks = { {1024 * 1024, 1} },
3711 .block_erase = spi_block_erase_60,
3712 }, {
3713 .eraseblocks = { {1024 * 1024, 1} },
3714 .block_erase = spi_block_erase_c7,
3715 }
3716 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003717 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003718 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger9a795d82010-07-14 16:19:05 +00003719 .write = spi_chip_write_1,
Michael Karcher4497e862010-07-10 19:34:15 +00003720 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003721 .voltage = {2700, 3600},
Michael Karcher80a59ea2010-06-19 22:06:35 +00003722 },
3723
3724 {
Stefan Tauner85f09f72014-05-27 21:27:14 +00003725 .vendor = "ESMT",
3726 .name = "F25L32PA",
3727 .bustype = BUS_SPI,
3728 .manufacture_id = ESMT_ID,
3729 .model_id = ESMT_F25L32PA,
3730 .total_size = 4096,
3731 .page_size = 256,
3732 .feature_bits = FEATURE_WRSR_EITHER | FEATURE_OTP,
3733 .tested = TEST_UNTESTED,
3734 .probe = probe_spi_rdid,
3735 .probe_timing = TIMING_ZERO,
3736 .block_erasers =
3737 {
3738 {
3739 .eraseblocks = { {4 * 1024, 1024} },
3740 .block_erase = spi_block_erase_20,
3741 }, {
3742 .eraseblocks = { {64 * 1024, 64} },
3743 .block_erase = spi_block_erase_d8,
3744 }, {
3745 .eraseblocks = { {4 * 1024 * 1024, 1} },
3746 .block_erase = spi_block_erase_60,
3747 }, {
3748 .eraseblocks = { {4 * 1024 * 1024, 1} },
3749 .block_erase = spi_block_erase_c7,
3750 }
3751 },
3752 .printlock = spi_prettyprint_status_register_bp2_bpl,
3753 .unlock = spi_disable_blockprotect,
3754 .write = spi_chip_write_256,
3755 .read = spi_chip_read,
3756 .voltage = {2700, 3600},
3757 },
3758
3759 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003760 .vendor = "ESMT",
3761 .name = "F49B002UA",
3762 .bustype = BUS_PARALLEL,
3763 .manufacture_id = ESMT_ID,
3764 .model_id = ESMT_F49B002UA,
3765 .total_size = 256,
3766 .page_size = 4096,
3767 .feature_bits = FEATURE_EITHER_RESET,
3768 .tested = TEST_UNTESTED,
3769 .probe = probe_jedec,
3770 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3771 .block_erasers =
3772 {
3773 {
3774 .eraseblocks = {
3775 {128 * 1024, 1},
3776 {96 * 1024, 1},
3777 {8 * 1024, 2},
3778 {16 * 1024, 1},
3779 },
3780 .block_erase = erase_sector_jedec,
3781 }, {
3782 .eraseblocks = { {256 * 1024, 1} },
3783 .block_erase = erase_chip_block_jedec,
3784 }
3785 },
3786 .write = write_jedec_1,
3787 .read = read_memmapped,
3788 .voltage = {4500, 5500},
3789 },
3790
3791 {
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003792 .vendor = "Eon",
3793 .name = "EN25B05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003794 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003795 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003796 .model_id = EON_EN25B05,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003797 .total_size = 64,
3798 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003799 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003800 .tested = TEST_UNTESTED,
3801 .probe = probe_spi_rdid,
3802 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003803 .block_erasers =
3804 {
3805 {
3806 .eraseblocks = {
3807 {4 * 1024, 2},
3808 {8 * 1024, 1},
3809 {16 * 1024, 1},
3810 {32 * 1024, 1},
3811 },
3812 .block_erase = spi_block_erase_d8,
3813 }, {
3814 .eraseblocks = { {64 * 1024, 1} },
3815 .block_erase = spi_block_erase_c7,
3816 }
3817 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003818 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003819 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003820 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003821 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003822 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003823 },
3824
3825 {
3826 .vendor = "Eon",
3827 .name = "EN25B05T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003828 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003829 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003830 .model_id = EON_EN25B05,
Sean Nelson54596372010-01-09 05:30:14 +00003831 .total_size = 64,
3832 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003833 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003834 .tested = TEST_UNTESTED,
3835 .probe = probe_spi_rdid,
3836 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003837 .block_erasers =
3838 {
3839 {
3840 .eraseblocks = {
3841 {32 * 1024, 1},
3842 {16 * 1024, 1},
3843 {8 * 1024, 1},
3844 {4 * 1024, 2},
3845 },
3846 .block_erase = spi_block_erase_d8,
3847 }, {
3848 .eraseblocks = { {64 * 1024, 1} },
3849 .block_erase = spi_block_erase_c7,
3850 }
3851 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003852 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003853 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003854 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003855 .read = spi_chip_read, /* Fast read (0x0B) supported */
3856 .voltage = {2700, 3600},
3857 },
3858
3859 {
3860 .vendor = "Eon",
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003861 .name = "EN25B10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003862 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003863 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003864 .model_id = EON_EN25B10,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003865 .total_size = 128,
3866 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003867 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003868 .tested = TEST_UNTESTED,
3869 .probe = probe_spi_rdid,
3870 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003871 .block_erasers =
3872 {
3873 {
3874 .eraseblocks = {
3875 {4 * 1024, 2},
3876 {8 * 1024, 1},
3877 {16 * 1024, 1},
3878 {32 * 1024, 3},
3879 },
3880 .block_erase = spi_block_erase_d8,
3881 }, {
3882 .eraseblocks = { {128 * 1024, 1} },
3883 .block_erase = spi_block_erase_c7,
3884 }
3885 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003886 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003887 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003888 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003889 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003890 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003891 },
3892
3893 {
3894 .vendor = "Eon",
3895 .name = "EN25B10T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003896 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003897 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003898 .model_id = EON_EN25B10,
Sean Nelson54596372010-01-09 05:30:14 +00003899 .total_size = 128,
3900 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003901 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00003902 .tested = TEST_OK_PREW,
Sean Nelson54596372010-01-09 05:30:14 +00003903 .probe = probe_spi_rdid,
3904 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003905 .block_erasers =
3906 {
3907 {
3908 .eraseblocks = {
3909 {32 * 1024, 3},
3910 {16 * 1024, 1},
3911 {8 * 1024, 1},
3912 {4 * 1024, 2},
3913 },
3914 .block_erase = spi_block_erase_d8,
3915 }, {
3916 .eraseblocks = { {128 * 1024, 1} },
3917 .block_erase = spi_block_erase_c7,
3918 }
3919 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003920 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003921 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003922 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003923 .read = spi_chip_read, /* Fast read (0x0B) supported */
3924 .voltage = {2700, 3600},
3925 },
3926
3927 {
3928 .vendor = "Eon",
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003929 .name = "EN25B16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003930 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003931 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003932 .model_id = EON_EN25B16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003933 .total_size = 2048,
3934 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003935 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003936 .tested = TEST_UNTESTED,
3937 .probe = probe_spi_rdid,
3938 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003939 .block_erasers =
3940 {
3941 {
3942 .eraseblocks = {
3943 {4 * 1024, 2},
3944 {8 * 1024, 1},
3945 {16 * 1024, 1},
3946 {32 * 1024, 1},
3947 {64 * 1024, 31},
3948 },
3949 .block_erase = spi_block_erase_d8,
3950 }, {
3951 .eraseblocks = { {2 * 1024 * 1024, 1} },
3952 .block_erase = spi_block_erase_c7,
3953 }
3954 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003955 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003956 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003957 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003958 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003959 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003960 },
3961
3962 {
3963 .vendor = "Eon",
3964 .name = "EN25B16T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003965 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003966 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003967 .model_id = EON_EN25B16,
Sean Nelson54596372010-01-09 05:30:14 +00003968 .total_size = 2048,
3969 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003970 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003971 .tested = TEST_UNTESTED,
3972 .probe = probe_spi_rdid,
3973 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003974 .block_erasers =
3975 {
3976 {
3977 .eraseblocks = {
3978 {64 * 1024, 31},
3979 {32 * 1024, 1},
3980 {16 * 1024, 1},
3981 {8 * 1024, 1},
3982 {4 * 1024, 2},
3983 },
3984 .block_erase = spi_block_erase_d8,
3985 }, {
3986 .eraseblocks = { {2 * 1024 * 1024, 1} },
3987 .block_erase = spi_block_erase_c7,
3988 }
3989 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003990 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003991 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003992 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003993 .read = spi_chip_read, /* Fast read (0x0B) supported */
3994 .voltage = {2700, 3600},
3995 },
3996
3997 {
3998 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10003999 .name = "EN25B20",
Stefan Taunerb175af52015-01-24 15:06:27 +00004000 .bustype = BUS_SPI,
4001 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004002 .model_id = EON_EN25B20,
4003 .total_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004004 .page_size = 256,
4005 .feature_bits = FEATURE_WRSR_WREN,
4006 .tested = TEST_UNTESTED,
4007 .probe = probe_spi_rdid,
4008 .probe_timing = TIMING_ZERO,
4009 .block_erasers =
4010 {
4011 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004012 .eraseblocks = {
4013 {4 * 1024, 2},
4014 {8 * 1024, 1},
4015 {16 * 1024, 1},
4016 {32 * 1024, 1},
4017 {64 * 1024, 3}
4018 },
Stefan Taunerb175af52015-01-24 15:06:27 +00004019 .block_erase = spi_block_erase_d8,
4020 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004021 .eraseblocks = { {256 * 1024, 1} },
4022 .block_erase = spi_block_erase_c7,
4023 }
4024 },
4025 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4026 .unlock = spi_disable_blockprotect,
4027 .write = spi_chip_write_256,
4028 .read = spi_chip_read, /* Fast read (0x0B) supported */
4029 .voltage = {2700, 3600},
4030 },
4031
4032 {
4033 .vendor = "Eon",
4034 .name = "EN25B20T",
4035 .bustype = BUS_SPI,
4036 .manufacture_id = EON_ID_NOPREFIX,
4037 .model_id = EON_EN25B20,
4038 .total_size = 256,
4039 .page_size = 256,
4040 .feature_bits = FEATURE_WRSR_WREN,
4041 .tested = TEST_UNTESTED,
4042 .probe = probe_spi_rdid,
4043 .probe_timing = TIMING_ZERO,
4044 .block_erasers =
4045 {
4046 {
4047 .eraseblocks = {
4048 {64 * 1024, 3},
4049 {32 * 1024, 1},
4050 {16 * 1024, 1},
4051 {8 * 1024, 1},
4052 {4 * 1024, 2},
4053 },
4054 .block_erase = spi_block_erase_d8,
4055 }, {
4056 .eraseblocks = { {256 * 1024, 1} },
Stefan Taunerb175af52015-01-24 15:06:27 +00004057 .block_erase = spi_block_erase_c7,
4058 }
4059 },
4060 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4061 .unlock = spi_disable_blockprotect,
4062 .write = spi_chip_write_256,
4063 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004064 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004065 },
4066
4067 {
4068 .vendor = "Eon",
4069 .name = "EN25B32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004070 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004071 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004072 .model_id = EON_EN25B32,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004073 .total_size = 4096,
4074 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004075 /* OTP: 512B total; enter 0x3A */
4076 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004077 .tested = TEST_UNTESTED,
4078 .probe = probe_spi_rdid,
4079 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004080 .block_erasers =
4081 {
4082 {
4083 .eraseblocks = {
4084 {4 * 1024, 2},
4085 {8 * 1024, 1},
4086 {16 * 1024, 1},
4087 {32 * 1024, 1},
4088 {64 * 1024, 63},
4089 },
4090 .block_erase = spi_block_erase_d8,
4091 }, {
4092 .eraseblocks = { {4 * 1024 * 1024, 1} },
4093 .block_erase = spi_block_erase_c7,
4094 }
4095 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004096 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004097 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00004098 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004099 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004100 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00004101 },
4102
4103 {
4104 .vendor = "Eon",
4105 .name = "EN25B32T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004106 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00004107 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004108 .model_id = EON_EN25B32,
Sean Nelson54596372010-01-09 05:30:14 +00004109 .total_size = 4096,
4110 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004111 /* OTP: 512B total; enter 0x3A */
4112 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Sean Nelson54596372010-01-09 05:30:14 +00004113 .tested = TEST_UNTESTED,
4114 .probe = probe_spi_rdid,
4115 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004116 .block_erasers =
4117 {
4118 {
4119 .eraseblocks = {
4120 {64 * 1024, 63},
4121 {32 * 1024, 1},
4122 {16 * 1024, 1},
4123 {8 * 1024, 1},
4124 {4 * 1024, 2},
4125 },
4126 .block_erase = spi_block_erase_d8,
4127 }, {
4128 .eraseblocks = { {4 * 1024 * 1024, 1} },
4129 .block_erase = spi_block_erase_c7,
4130 }
4131 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004132 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004133 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004134 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004135 .read = spi_chip_read, /* Fast read (0x0B) supported */
4136 .voltage = {2700, 3600},
4137 },
4138
4139 {
4140 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004141 .name = "EN25B40",
Stefan Taunerb175af52015-01-24 15:06:27 +00004142 .bustype = BUS_SPI,
4143 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004144 .model_id = EON_EN25B40,
4145 .total_size = 512,
Stefan Taunerb175af52015-01-24 15:06:27 +00004146 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004147 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerb175af52015-01-24 15:06:27 +00004148 .tested = TEST_UNTESTED,
4149 .probe = probe_spi_rdid,
4150 .probe_timing = TIMING_ZERO,
4151 .block_erasers =
4152 {
4153 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004154 .eraseblocks = {
4155 {4 * 1024, 2},
4156 {8 * 1024, 1},
4157 {16 * 1024, 1},
4158 {32 * 1024, 1},
4159 {64 * 1024, 7}
4160 },
Stefan Taunerb175af52015-01-24 15:06:27 +00004161 .block_erase = spi_block_erase_d8,
4162 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004163 .eraseblocks = { {512 * 1024, 1} },
4164 .block_erase = spi_block_erase_c7,
4165 }
4166 },
4167 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4168 .unlock = spi_disable_blockprotect,
4169 .write = spi_chip_write_256,
4170 .read = spi_chip_read, /* Fast read (0x0B) supported */
4171 .voltage = {2700, 3600},
4172 },
4173
4174 {
4175 .vendor = "Eon",
4176 .name = "EN25B40T",
4177 .bustype = BUS_SPI,
4178 .manufacture_id = EON_ID_NOPREFIX,
4179 .model_id = EON_EN25B40,
4180 .total_size = 512,
4181 .page_size = 256,
4182 .feature_bits = FEATURE_WRSR_WREN,
4183 .tested = TEST_UNTESTED,
4184 .probe = probe_spi_rdid,
4185 .probe_timing = TIMING_ZERO,
4186 .block_erasers =
4187 {
4188 {
4189 .eraseblocks = {
4190 {64 * 1024, 7},
4191 {32 * 1024, 1},
4192 {16 * 1024, 1},
4193 {8 * 1024, 1},
4194 {4 * 1024, 2},
4195 },
4196 .block_erase = spi_block_erase_d8,
4197 }, {
4198 .eraseblocks = { {512 * 1024, 1} },
Stefan Taunerb175af52015-01-24 15:06:27 +00004199 .block_erase = spi_block_erase_c7,
4200 }
4201 },
4202 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4203 .unlock = spi_disable_blockprotect,
4204 .write = spi_chip_write_256,
4205 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004206 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004207 },
4208
4209 {
4210 .vendor = "Eon",
4211 .name = "EN25B64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004212 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004213 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004214 .model_id = EON_EN25B64,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004215 .total_size = 8192,
4216 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004217 /* OTP: 512B total; enter 0x3A */
4218 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004219 .tested = TEST_UNTESTED,
4220 .probe = probe_spi_rdid,
4221 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004222 .block_erasers =
4223 {
4224 {
4225 .eraseblocks = {
4226 {4 * 1024, 2},
4227 {8 * 1024, 1},
4228 {16 * 1024, 1},
4229 {32 * 1024, 1},
4230 {64 * 1024, 127},
4231 },
4232 .block_erase = spi_block_erase_d8,
4233 }, {
4234 .eraseblocks = { {8 * 1024 * 1024, 1} },
4235 .block_erase = spi_block_erase_c7,
4236 }
4237 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004238 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004239 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00004240 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004241 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004242 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00004243 },
4244
4245 {
4246 .vendor = "Eon",
4247 .name = "EN25B64T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004248 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00004249 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004250 .model_id = EON_EN25B64,
Sean Nelson54596372010-01-09 05:30:14 +00004251 .total_size = 8192,
4252 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004253 /* OTP: 512B total; enter 0x3A */
4254 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Sean Nelson54596372010-01-09 05:30:14 +00004255 .tested = TEST_UNTESTED,
4256 .probe = probe_spi_rdid,
4257 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004258 .block_erasers =
4259 {
4260 {
4261 .eraseblocks = {
4262 {64 * 1024, 127},
4263 {32 * 1024, 1},
4264 {16 * 1024, 1},
4265 {8 * 1024, 1},
4266 {4 * 1024, 2},
4267 },
4268 .block_erase = spi_block_erase_d8,
4269 }, {
4270 .eraseblocks = { {8 * 1024 * 1024, 1} },
4271 .block_erase = spi_block_erase_c7,
4272 }
4273 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004274 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004275 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004276 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004277 .read = spi_chip_read, /* Fast read (0x0B) supported */
4278 .voltage = {2700, 3600},
4279 },
4280
4281 {
4282 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004283 .name = "EN25B80",
Stefan Taunerb175af52015-01-24 15:06:27 +00004284 .bustype = BUS_SPI,
4285 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004286 .model_id = EON_EN25B80,
4287 .total_size = 1024,
Stefan Taunerb175af52015-01-24 15:06:27 +00004288 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004289 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerb175af52015-01-24 15:06:27 +00004290 .tested = TEST_UNTESTED,
4291 .probe = probe_spi_rdid,
4292 .probe_timing = TIMING_ZERO,
4293 .block_erasers =
4294 {
4295 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004296 .eraseblocks = {
4297 {4 * 1024, 2},
4298 {8 * 1024, 1},
4299 {16 * 1024, 1},
4300 {32 * 1024, 1},
4301 {64 * 1024, 15}
4302 },
Stefan Taunerb175af52015-01-24 15:06:27 +00004303 .block_erase = spi_block_erase_d8,
4304 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004305 .eraseblocks = { {1024 * 1024, 1} },
4306 .block_erase = spi_block_erase_c7,
4307 }
4308 },
4309 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4310 .unlock = spi_disable_blockprotect,
4311 .write = spi_chip_write_256,
4312 .read = spi_chip_read, /* Fast read (0x0B) supported */
4313 .voltage = {2700, 3600},
4314 },
4315
4316 {
4317 .vendor = "Eon",
4318 .name = "EN25B80T",
4319 .bustype = BUS_SPI,
4320 .manufacture_id = EON_ID_NOPREFIX,
4321 .model_id = EON_EN25B80,
4322 .total_size = 1024,
4323 .page_size = 256,
4324 .feature_bits = FEATURE_WRSR_WREN,
4325 .tested = TEST_UNTESTED,
4326 .probe = probe_spi_rdid,
4327 .probe_timing = TIMING_ZERO,
4328 .block_erasers =
4329 {
4330 {
4331 .eraseblocks = {
4332 {64 * 1024, 15},
4333 {32 * 1024, 1},
4334 {16 * 1024, 1},
4335 {8 * 1024, 1},
4336 {4 * 1024, 2},
4337 },
4338 .block_erase = spi_block_erase_d8,
4339 }, {
4340 .eraseblocks = { {1024 * 1024, 1} },
Stefan Taunerb175af52015-01-24 15:06:27 +00004341 .block_erase = spi_block_erase_c7,
4342 }
4343 },
4344 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4345 .unlock = spi_disable_blockprotect,
4346 .write = spi_chip_write_256,
4347 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004348 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004349 },
4350
4351 {
4352 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004353 .name = "EN25F05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004354 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004355 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004356 .model_id = EON_EN25F05,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004357 .total_size = 64,
4358 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004359 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00004360 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004361 .probe = probe_spi_rdid,
4362 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004363 .block_erasers =
4364 {
4365 {
4366 .eraseblocks = { {4 * 1024, 16} },
4367 .block_erase = spi_block_erase_20,
4368 }, {
4369 .eraseblocks = { {32 * 1024, 2} },
4370 .block_erase = spi_block_erase_d8,
4371 }, {
4372 .eraseblocks = { {32 * 1024, 2} },
4373 .block_erase = spi_block_erase_52,
4374 }, {
4375 .eraseblocks = { {64 * 1024, 1} },
4376 .block_erase = spi_block_erase_60,
4377 }, {
4378 .eraseblocks = { {64 * 1024, 1} },
4379 .block_erase = spi_block_erase_c7,
4380 }
4381 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004382 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004383 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004384 .write = spi_chip_write_256,
4385 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004386 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004387 },
4388
4389 {
4390 .vendor = "Eon",
4391 .name = "EN25F10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004392 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004393 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004394 .model_id = EON_EN25F10,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004395 .total_size = 128,
4396 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004397 .feature_bits = FEATURE_WRSR_WREN,
Simon Buhrowd173ed42021-09-29 09:28:07 +02004398 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004399 .probe = probe_spi_rdid,
4400 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004401 .block_erasers =
4402 {
4403 {
4404 .eraseblocks = { {4 * 1024, 32} },
4405 .block_erase = spi_block_erase_20,
4406 }, {
4407 .eraseblocks = { {32 * 1024, 4} },
4408 .block_erase = spi_block_erase_d8,
4409 }, {
4410 .eraseblocks = { {32 * 1024, 4} },
4411 .block_erase = spi_block_erase_52,
4412 }, {
4413 .eraseblocks = { {128 * 1024, 1} },
4414 .block_erase = spi_block_erase_60,
4415 }, {
4416 .eraseblocks = { {128 * 1024, 1} },
4417 .block_erase = spi_block_erase_c7,
4418 }
4419 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004420 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004421 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004422 .write = spi_chip_write_256,
4423 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004424 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004425 },
4426
4427 {
4428 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004429 .name = "EN25F16",
4430 .bustype = BUS_SPI,
4431 .manufacture_id = EON_ID_NOPREFIX,
4432 .model_id = EON_EN25F16,
4433 .total_size = 2048,
4434 .page_size = 256,
4435 .feature_bits = FEATURE_WRSR_WREN,
4436 .tested = TEST_OK_PREW,
4437 .probe = probe_spi_rdid,
4438 .probe_timing = TIMING_ZERO,
4439 .block_erasers =
4440 {
4441 {
4442 .eraseblocks = { {4 * 1024, 512} },
4443 .block_erase = spi_block_erase_20,
4444 }, {
4445 .eraseblocks = { {64 * 1024, 32} },
4446 .block_erase = spi_block_erase_d8,
4447 }, {
4448 .eraseblocks = { {2 * 1024 * 1024, 1} },
4449 .block_erase = spi_block_erase_60,
4450 }, {
4451 .eraseblocks = { {2 * 1024 * 1024, 1} },
4452 .block_erase = spi_block_erase_c7,
4453 }
4454 },
4455 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4456 .unlock = spi_disable_blockprotect,
4457 .write = spi_chip_write_256,
4458 .read = spi_chip_read,
4459 .voltage = {2700, 3600},
4460 },
4461
4462 {
4463 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004464 .name = "EN25F20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004465 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004466 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004467 .model_id = EON_EN25F20,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004468 .total_size = 256,
4469 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004470 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004471 .tested = TEST_UNTESTED,
4472 .probe = probe_spi_rdid,
4473 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004474 .block_erasers =
4475 {
4476 {
4477 .eraseblocks = { {4 * 1024, 64} },
4478 .block_erase = spi_block_erase_20,
4479 }, {
4480 .eraseblocks = { {64 * 1024, 4} },
4481 .block_erase = spi_block_erase_d8,
4482 }, {
4483 .eraseblocks = { {64 * 1024, 4} },
4484 .block_erase = spi_block_erase_52,
4485 }, {
4486 .eraseblocks = { {256 * 1024, 1} },
4487 .block_erase = spi_block_erase_60,
4488 }, {
4489 .eraseblocks = { {256 * 1024, 1} },
4490 .block_erase = spi_block_erase_c7,
4491 }
4492 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004493 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004494 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004495 .write = spi_chip_write_256,
4496 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004497 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004498 },
4499
4500 {
4501 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004502 .name = "EN25F32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004503 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004504 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004505 .model_id = EON_EN25F32,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004506 .total_size = 4096,
4507 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004508 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +00004509 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004510 .probe = probe_spi_rdid,
4511 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004512 .block_erasers =
4513 {
4514 {
4515 .eraseblocks = { {4 * 1024, 1024} },
4516 .block_erase = spi_block_erase_20,
4517 }, {
4518 .eraseblocks = { {64 * 1024, 64} },
4519 .block_erase = spi_block_erase_d8,
4520 }, {
4521 .eraseblocks = { {4 * 1024 * 1024, 1} },
4522 .block_erase = spi_block_erase_60,
4523 }, {
4524 .eraseblocks = { {4 * 1024 * 1024, 1} },
4525 .block_erase = spi_block_erase_c7,
4526 }
4527 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004528 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004529 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004530 .write = spi_chip_write_256,
4531 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004532 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004533 },
4534
4535 {
Russ Dill3cd5a122010-03-05 08:44:11 +00004536 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004537 .name = "EN25F40",
4538 .bustype = BUS_SPI,
4539 .manufacture_id = EON_ID_NOPREFIX,
4540 .model_id = EON_EN25F40,
4541 .total_size = 512,
4542 .page_size = 256,
4543 .feature_bits = FEATURE_WRSR_WREN,
4544 .tested = TEST_OK_PREW,
4545 .probe = probe_spi_rdid,
4546 .probe_timing = TIMING_ZERO,
4547 .block_erasers =
4548 {
4549 {
4550 .eraseblocks = { {4 * 1024, 128} },
4551 .block_erase = spi_block_erase_20,
4552 }, {
4553 .eraseblocks = { {64 * 1024, 8} },
4554 .block_erase = spi_block_erase_d8,
4555 }, {
4556 .eraseblocks = { {512 * 1024, 1} },
4557 .block_erase = spi_block_erase_60,
4558 }, {
4559 .eraseblocks = { {512 * 1024, 1} },
4560 .block_erase = spi_block_erase_c7,
4561 },
4562 },
4563 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4564 .unlock = spi_disable_blockprotect,
4565 .write = spi_chip_write_256,
4566 .read = spi_chip_read,
4567 .voltage = {2700, 3600},
4568 },
4569
4570 {
4571 .vendor = "Eon",
Stefan Taunerd932fd02012-09-06 17:37:16 +00004572 .name = "EN25F64",
4573 .bustype = BUS_SPI,
4574 .manufacture_id = EON_ID_NOPREFIX,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00004575 .model_id = EON_EN25F64,
Stefan Taunerd932fd02012-09-06 17:37:16 +00004576 .total_size = 8192,
4577 .page_size = 256,
4578 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00004579 .tested = TEST_OK_PREW,
Stefan Taunerd932fd02012-09-06 17:37:16 +00004580 .probe = probe_spi_rdid,
4581 .probe_timing = TIMING_ZERO,
4582 .block_erasers =
4583 {
4584 {
4585 .eraseblocks = { {4 * 1024, 2048} },
4586 .block_erase = spi_block_erase_20,
4587 }, {
4588 .eraseblocks = { {64 * 1024, 128} },
4589 .block_erase = spi_block_erase_d8,
4590 }, {
4591 .eraseblocks = { {8 * 1024 * 1024, 1} },
4592 .block_erase = spi_block_erase_60,
4593 }, {
4594 .eraseblocks = { {8 * 1024 * 1024, 1} },
4595 .block_erase = spi_block_erase_c7,
4596 }
4597 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004598 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Stefan Taunerd932fd02012-09-06 17:37:16 +00004599 .unlock = spi_disable_blockprotect,
4600 .write = spi_chip_write_256,
4601 .read = spi_chip_read,
4602 .voltage = {2700, 3600},
4603 },
4604
4605 {
4606 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004607 .name = "EN25F80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004608 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004609 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004610 .model_id = EON_EN25F80,
David Hendricks6d715302011-07-24 22:21:57 +00004611 .total_size = 1024,
4612 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004613 .feature_bits = FEATURE_WRSR_WREN,
4614 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004615 .probe = probe_spi_rdid,
4616 .probe_timing = TIMING_ZERO,
4617 .block_erasers =
4618 {
4619 {
4620 .eraseblocks = { {4 * 1024, 256} },
4621 .block_erase = spi_block_erase_20,
4622 }, {
4623 .eraseblocks = { {64 * 1024, 16} },
4624 .block_erase = spi_block_erase_d8,
4625 }, {
4626 .eraseblocks = { {1024 * 1024, 1} },
4627 .block_erase = spi_block_erase_60,
4628 }, {
4629 .eraseblocks = { {1024 * 1024, 1} },
4630 .block_erase = spi_block_erase_c7,
4631 }
4632 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004633 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004634 .unlock = spi_disable_blockprotect,
4635 .write = spi_chip_write_256,
4636 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004637 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004638 },
4639
4640 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004641 .vendor = "Eon",
4642 .name = "EN25P05",
4643 .bustype = BUS_SPI,
4644 .manufacture_id = EON_ID_NOPREFIX,
4645 .model_id = EON_EN25B05,
4646 .total_size = 64,
4647 .page_size = 256,
4648 .feature_bits = FEATURE_WRSR_WREN,
4649 .tested = TEST_UNTESTED,
4650 .probe = probe_spi_rdid,
4651 .probe_timing = TIMING_ZERO,
4652 .block_erasers =
4653 {
4654 {
4655 .eraseblocks = {
4656 {32 * 1024, 2} },
4657 .block_erase = spi_block_erase_d8,
4658 }, {
4659 .eraseblocks = { {64 * 1024, 1} },
4660 .block_erase = spi_block_erase_c7,
4661 }
4662 },
4663 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4664 .unlock = spi_disable_blockprotect,
4665 .write = spi_chip_write_256,
4666 .read = spi_chip_read, /* Fast read (0x0B) supported */
4667 .voltage = {2700, 3600},
4668 },
4669
4670 {
4671 .vendor = "Eon",
4672 .name = "EN25P10",
4673 .bustype = BUS_SPI,
4674 .manufacture_id = EON_ID_NOPREFIX,
4675 .model_id = EON_EN25B10,
4676 .total_size = 128,
4677 .page_size = 256,
4678 .feature_bits = FEATURE_WRSR_WREN,
4679 .tested = TEST_UNTESTED,
4680 .probe = probe_spi_rdid,
4681 .probe_timing = TIMING_ZERO,
4682 .block_erasers =
4683 {
4684 {
4685 .eraseblocks = { {32 * 1024, 4} },
4686 .block_erase = spi_block_erase_d8,
4687 }, {
4688 .eraseblocks = { {128 * 1024, 1} },
4689 .block_erase = spi_block_erase_c7,
4690 }
4691 },
4692 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4693 .unlock = spi_disable_blockprotect,
4694 .write = spi_chip_write_256,
4695 .read = spi_chip_read, /* Fast read (0x0B) supported */
4696 .voltage = {2700, 3600},
4697 },
4698
4699 {
4700 .vendor = "Eon",
4701 .name = "EN25P16",
4702 .bustype = BUS_SPI,
4703 .manufacture_id = EON_ID_NOPREFIX,
4704 .model_id = EON_EN25B16,
4705 .total_size = 2048,
4706 .page_size = 256,
4707 .feature_bits = FEATURE_WRSR_WREN,
4708 .tested = TEST_UNTESTED,
4709 .probe = probe_spi_rdid,
4710 .probe_timing = TIMING_ZERO,
4711 .block_erasers =
4712 {
4713 {
4714 .eraseblocks = { {64 * 1024, 32} },
4715 .block_erase = spi_block_erase_d8,
4716 }, {
4717 .eraseblocks = { {2 * 1024 * 1024, 1} },
4718 .block_erase = spi_block_erase_c7,
4719 }
4720 },
4721 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4722 .unlock = spi_disable_blockprotect,
4723 .write = spi_chip_write_256,
4724 .read = spi_chip_read, /* Fast read (0x0B) supported */
4725 .voltage = {2700, 3600},
4726 },
4727
4728 {
4729 .vendor = "Eon",
4730 .name = "EN25P20",
4731 .bustype = BUS_SPI,
4732 .manufacture_id = EON_ID_NOPREFIX,
4733 .model_id = EON_EN25B20,
4734 .total_size = 256,
4735 .page_size = 256,
4736 .feature_bits = FEATURE_WRSR_WREN,
4737 .tested = TEST_UNTESTED,
4738 .probe = probe_spi_rdid,
4739 .probe_timing = TIMING_ZERO,
4740 .block_erasers =
4741 {
4742 {
4743 .eraseblocks = { {64 * 1024, 4} },
4744 .block_erase = spi_block_erase_d8,
4745 }, {
4746 .eraseblocks = { {256 * 1024, 1} },
4747 .block_erase = spi_block_erase_c7,
4748 }
4749 },
4750 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4751 .unlock = spi_disable_blockprotect,
4752 .write = spi_chip_write_256,
4753 .read = spi_chip_read, /* Fast read (0x0B) supported */
4754 .voltage = {2700, 3600},
4755 },
4756
4757 {
4758 .vendor = "Eon",
4759 .name = "EN25P32", /* Uniform version of EN25B32 */
4760 .bustype = BUS_SPI,
4761 .manufacture_id = EON_ID_NOPREFIX,
4762 .model_id = EON_EN25B32,
4763 .total_size = 4096,
4764 .page_size = 256,
4765 /* OTP: 512B total; enter 0x3A */
4766 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4767 .tested = TEST_UNTESTED,
4768 .probe = probe_spi_rdid,
4769 .probe_timing = TIMING_ZERO,
4770 .block_erasers =
4771 {
4772 {
4773 .eraseblocks = { {64 * 1024, 64} },
4774 .block_erase = spi_block_erase_d8,
4775 }, {
4776 .eraseblocks = { {4 * 1024 * 1024, 1} },
4777 .block_erase = spi_block_erase_c7,
4778 }
4779 },
4780 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4781 .unlock = spi_disable_blockprotect,
4782 .write = spi_chip_write_256,
4783 .read = spi_chip_read, /* Fast read (0x0B) supported */
4784 .voltage = {2700, 3600},
4785 },
4786
4787 {
4788 .vendor = "Eon",
4789 .name = "EN25P40",
4790 .bustype = BUS_SPI,
4791 .manufacture_id = EON_ID_NOPREFIX,
4792 .model_id = EON_EN25B40,
4793 .total_size = 512,
4794 .page_size = 256,
4795 .feature_bits = FEATURE_WRSR_WREN,
4796 .tested = TEST_UNTESTED,
4797 .probe = probe_spi_rdid,
4798 .probe_timing = TIMING_ZERO,
4799 .block_erasers =
4800 {
4801 {
4802 .eraseblocks = { {64 * 1024, 8} },
4803 .block_erase = spi_block_erase_d8,
4804 }, {
4805 .eraseblocks = { {512 * 1024, 1} },
4806 .block_erase = spi_block_erase_c7,
4807 }
4808 },
4809 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4810 .unlock = spi_disable_blockprotect,
4811 .write = spi_chip_write_256,
4812 .read = spi_chip_read, /* Fast read (0x0B) supported */
4813 .voltage = {2700, 3600},
4814 },
4815
4816 {
4817 .vendor = "Eon",
4818 .name = "EN25P64",
4819 .bustype = BUS_SPI,
4820 .manufacture_id = EON_ID_NOPREFIX,
4821 .model_id = EON_EN25B64,
4822 .total_size = 8192,
4823 .page_size = 256,
4824 /* OTP: 512B total; enter 0x3A */
4825 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4826 .tested = TEST_UNTESTED,
4827 .probe = probe_spi_rdid,
4828 .probe_timing = TIMING_ZERO,
4829 .block_erasers =
4830 {
4831 {
4832 .eraseblocks = { {64 * 1024, 128} },
4833 .block_erase = spi_block_erase_d8,
4834 }, {
4835 .eraseblocks = { {8 * 1024 * 1024, 1} },
4836 .block_erase = spi_block_erase_c7,
4837 }
4838 },
4839 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4840 .unlock = spi_disable_blockprotect,
4841 .write = spi_chip_write_256,
4842 .read = spi_chip_read, /* Fast read (0x0B) supported */
4843 .voltage = {2700, 3600},
4844 },
4845
4846 {
4847 .vendor = "Eon",
4848 .name = "EN25P80",
4849 .bustype = BUS_SPI,
4850 .manufacture_id = EON_ID_NOPREFIX,
4851 .model_id = EON_EN25B80,
4852 .total_size = 1024,
4853 .page_size = 256,
4854 .feature_bits = FEATURE_WRSR_WREN,
4855 .tested = TEST_UNTESTED,
4856 .probe = probe_spi_rdid,
4857 .probe_timing = TIMING_ZERO,
4858 .block_erasers =
4859 {
4860 {
4861 .eraseblocks = { {64 * 1024, 16} },
4862 .block_erase = spi_block_erase_d8,
4863 }, {
4864 .eraseblocks = { {1024 * 1024, 1} },
4865 .block_erase = spi_block_erase_c7,
4866 }
4867 },
4868 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4869 .unlock = spi_disable_blockprotect,
4870 .write = spi_chip_write_256,
4871 .read = spi_chip_read, /* Fast read (0x0B) supported */
4872 .voltage = {2700, 3600},
4873 },
4874
4875 {
4876 .vendor = "Eon",
4877 .name = "EN25Q128",
4878 .bustype = BUS_SPI,
4879 .manufacture_id = EON_ID_NOPREFIX,
4880 .model_id = EON_EN25Q128,
4881 .total_size = 16384,
4882 .page_size = 256,
4883 /* OTP: 512B total; enter 0x3A */
4884 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4885 .tested = TEST_OK_PREW,
4886 .probe = probe_spi_rdid,
4887 .probe_timing = TIMING_ZERO,
4888 .block_erasers =
4889 {
4890 {
4891 .eraseblocks = { {4 * 1024, 4096} },
4892 .block_erase = spi_block_erase_20,
4893 }, {
4894 .eraseblocks = { {64 * 1024, 256} },
4895 .block_erase = spi_block_erase_d8,
4896 }, {
4897 .eraseblocks = { {16 * 1024 * 1024, 1} },
4898 .block_erase = spi_block_erase_60,
4899 }, {
4900 .eraseblocks = { {16 * 1024 * 1024, 1} },
4901 .block_erase = spi_block_erase_c7,
4902 }
4903 },
4904 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4905 .unlock = spi_disable_blockprotect,
4906 .write = spi_chip_write_256,
4907 .read = spi_chip_read,
4908 },
4909
4910 {
David Hendricks6d715302011-07-24 22:21:57 +00004911 /* Note: EN25D16 is an evil twin which shares the model ID
4912 but has different write protection capabilities */
4913 .vendor = "Eon",
4914 .name = "EN25Q16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004915 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004916 .manufacture_id = EON_ID_NOPREFIX,
4917 .model_id = EON_EN25Q16,
4918 .total_size = 2048,
4919 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004920 /* OTP: D16 512B/Q16 128B total; enter 0x3A */
4921 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004922 .tested = TEST_UNTESTED,
4923 .probe = probe_spi_rdid,
4924 .probe_timing = TIMING_ZERO,
4925 .block_erasers =
4926 {
4927 {
4928 .eraseblocks = { {4 * 1024, 512} },
4929 .block_erase = spi_block_erase_20,
4930 }, {
4931 .eraseblocks = { {64 * 1024, 32} },
4932 .block_erase = spi_block_erase_d8,
4933 }, {
4934 /* not supported by Q16 version */
4935 .eraseblocks = { {64 * 1024, 32} },
4936 .block_erase = spi_block_erase_52,
4937 }, {
4938 .eraseblocks = { {2 * 1024 * 1024, 1} },
4939 .block_erase = spi_block_erase_60,
4940 }, {
4941 .eraseblocks = { {2 * 1024 * 1024, 1} },
4942 .block_erase = spi_block_erase_c7,
4943 }
4944 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004945 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004946 .unlock = spi_disable_blockprotect,
4947 .write = spi_chip_write_256,
4948 .read = spi_chip_read,
4949 .voltage = {2700, 3600},
4950 },
4951
4952 {
4953 .vendor = "Eon",
4954 .name = "EN25Q32(A/B)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004955 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004956 .manufacture_id = EON_ID_NOPREFIX,
4957 .model_id = EON_EN25Q32,
4958 .total_size = 4096,
4959 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004960 /* OTP: 512B total; enter 0x3A */
4961 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004962 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004963 .probe = probe_spi_rdid,
4964 .probe_timing = TIMING_ZERO,
4965 .block_erasers =
4966 {
4967 {
4968 .eraseblocks = { {4 * 1024, 1024} },
4969 .block_erase = spi_block_erase_20,
4970 }, {
4971 .eraseblocks = { {64 * 1024, 64} },
4972 .block_erase = spi_block_erase_d8,
4973 }, {
4974 .eraseblocks = { {4 * 1024 * 1024, 1} },
4975 .block_erase = spi_block_erase_60,
4976 }, {
4977 .eraseblocks = { {4 * 1024 * 1024, 1} },
4978 .block_erase = spi_block_erase_c7,
4979 }
4980 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004981 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004982 .unlock = spi_disable_blockprotect,
4983 .write = spi_chip_write_256,
4984 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004985 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004986 },
4987
4988 {
4989 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004990 .name = "EN25Q40",
4991 .bustype = BUS_SPI,
4992 .manufacture_id = EON_ID_NOPREFIX,
4993 .model_id = EON_EN25Q40,
4994 .total_size = 512,
4995 .page_size = 256,
4996 /* OTP: 256B total; enter 0x3A */
4997 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4998 .tested = TEST_UNTESTED,
4999 .probe = probe_spi_rdid,
5000 .probe_timing = TIMING_ZERO,
5001 .block_erasers =
5002 {
5003 {
5004 .eraseblocks = { {4 * 1024, 128} },
5005 .block_erase = spi_block_erase_20,
5006 }, {
5007 .eraseblocks = { {64 * 1024, 8} },
5008 .block_erase = spi_block_erase_d8,
5009 }, {
5010 .eraseblocks = { {512 * 1024, 1} },
5011 .block_erase = spi_block_erase_60,
5012 }, {
5013 .eraseblocks = { {512 * 1024, 1} },
5014 .block_erase = spi_block_erase_c7,
5015 }
5016 },
5017 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
5018 .unlock = spi_disable_blockprotect,
5019 .write = spi_chip_write_256,
5020 .read = spi_chip_read,
5021 .voltage = {2700, 3600},
5022 },
5023
5024 {
5025 .vendor = "Eon",
David Hendricks6d715302011-07-24 22:21:57 +00005026 .name = "EN25Q64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005027 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00005028 .manufacture_id = EON_ID_NOPREFIX,
5029 .model_id = EON_EN25Q64,
5030 .total_size = 8192,
5031 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00005032 /* OTP: 512B total; enter 0x3A */
5033 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005034 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00005035 .probe = probe_spi_rdid,
5036 .probe_timing = TIMING_ZERO,
5037 .block_erasers =
5038 {
5039 {
5040 .eraseblocks = { {4 * 1024, 2048} },
5041 .block_erase = spi_block_erase_20,
5042 }, {
5043 .eraseblocks = { {64 * 1024, 128} },
5044 .block_erase = spi_block_erase_d8,
5045 }, {
5046 .eraseblocks = { {8 * 1024 * 1024, 1} },
5047 .block_erase = spi_block_erase_60,
5048 }, {
5049 .eraseblocks = { {8 * 1024 * 1024, 1} },
5050 .block_erase = spi_block_erase_c7,
5051 }
5052 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00005053 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00005054 .unlock = spi_disable_blockprotect,
5055 .write = spi_chip_write_256,
5056 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00005057 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00005058 },
5059
5060 {
5061 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005062 .name = "EN25Q80(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005063 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00005064 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005065 .model_id = EON_EN25Q80,
5066 .total_size = 1024,
5067 .page_size = 256,
5068 /* OTP: 256B total; enter 0x3A */
5069 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5070 .tested = TEST_UNTESTED,
5071 .probe = probe_spi_rdid,
5072 .probe_timing = TIMING_ZERO,
5073 .block_erasers =
5074 {
5075 {
5076 .eraseblocks = { {4 * 1024, 256} },
5077 .block_erase = spi_block_erase_20,
5078 }, {
5079 .eraseblocks = { {64 * 1024, 16} },
5080 .block_erase = spi_block_erase_d8,
5081 }, {
5082 .eraseblocks = { {1024 * 1024, 1} },
5083 .block_erase = spi_block_erase_60,
5084 }, {
5085 .eraseblocks = { {1024 * 1024, 1} },
5086 .block_erase = spi_block_erase_c7,
5087 }
5088 },
5089 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
5090 .unlock = spi_disable_blockprotect,
5091 .write = spi_chip_write_256,
5092 .read = spi_chip_read,
5093 .voltage = {2700, 3600},
5094 },
5095
5096 {
5097 .vendor = "Eon",
5098 .name = "EN25QH128",
5099 .bustype = BUS_SPI,
5100 .manufacture_id = EON_ID_NOPREFIX,
5101 .model_id = EON_EN25QH128,
David Hendricks6d715302011-07-24 22:21:57 +00005102 .total_size = 16384,
5103 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005104 /* supports SFDP */
Daniel Lenski65922a32012-02-15 23:40:23 +00005105 /* OTP: 512B total; enter 0x3A */
Alan Green1f9cc7d2019-07-01 11:10:45 +10005106 /* QPI enable 0x38, disable 0xFF */
5107 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Tim Chenbfe149a2020-07-06 14:59:21 +08005108 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00005109 .probe = probe_spi_rdid,
5110 .probe_timing = TIMING_ZERO,
5111 .block_erasers =
5112 {
5113 {
5114 .eraseblocks = { {4 * 1024, 4096} },
5115 .block_erase = spi_block_erase_20,
5116 }, {
5117 .eraseblocks = { {64 * 1024, 256} },
5118 .block_erase = spi_block_erase_d8,
5119 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005120 .eraseblocks = { { 16384 * 1024, 1} },
David Hendricks6d715302011-07-24 22:21:57 +00005121 .block_erase = spi_block_erase_60,
5122 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005123 .eraseblocks = { { 16384 * 1024, 1} },
David Hendricks6d715302011-07-24 22:21:57 +00005124 .block_erase = spi_block_erase_c7,
5125 }
5126 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005127 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
5128 .unlock = spi_disable_blockprotect_bp3_srwd,
David Hendricks6d715302011-07-24 22:21:57 +00005129 .write = spi_chip_write_256,
5130 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005131 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00005132 },
5133
5134 {
5135 .vendor = "Eon",
5136 .name = "EN25QH16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005137 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00005138 .manufacture_id = EON_ID_NOPREFIX,
5139 .model_id = EON_EN25QH16,
5140 .total_size = 2048,
5141 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00005142 /* supports SFDP */
5143 /* OTP: 512B total; enter 0x3A */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005144 /* QPI enable 0x38, disable 0xFF */
5145 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner5c316f92015-02-08 21:57:52 +00005146 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00005147 .probe = probe_spi_rdid,
5148 .probe_timing = TIMING_ZERO,
5149 .block_erasers =
5150 {
5151 {
5152 .eraseblocks = { {4 * 1024, 512} },
5153 .block_erase = spi_block_erase_20,
5154 }, {
5155 .eraseblocks = { {64 * 1024, 32} },
5156 .block_erase = spi_block_erase_d8,
5157 }, {
5158 .eraseblocks = { {1024 * 2048, 1} },
5159 .block_erase = spi_block_erase_60,
5160 }, {
5161 .eraseblocks = { {1024 * 2048, 1} },
5162 .block_erase = spi_block_erase_c7,
5163 }
5164 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005165 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005166 .unlock = spi_disable_blockprotect_bp3_srwd,
David Hendricks6d715302011-07-24 22:21:57 +00005167 .write = spi_chip_write_256,
5168 .read = spi_chip_read,
Stefan Tauner2cef9162012-05-14 01:51:46 +00005169 .voltage = {2700, 3600},
5170 },
5171
5172 {
5173 .vendor = "Eon",
5174 .name = "EN25QH32",
5175 .bustype = BUS_SPI,
5176 .manufacture_id = EON_ID_NOPREFIX,
5177 .model_id = EON_EN25QH32,
5178 .total_size = 4096,
5179 .page_size = 256,
5180 /* supports SFDP */
5181 /* OTP: 512B total; enter 0x3A */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005182 /* QPI enable 0x38, disable 0xFF */
5183 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner23e10b82016-01-23 16:16:49 +00005184 .tested = TEST_OK_PREW,
Stefan Tauner2cef9162012-05-14 01:51:46 +00005185 .probe = probe_spi_rdid,
5186 .probe_timing = TIMING_ZERO,
5187 .block_erasers =
5188 {
5189 {
5190 .eraseblocks = { {4 * 1024, 1024} },
5191 .block_erase = spi_block_erase_20,
5192 }, {
5193 .eraseblocks = { {64 * 1024, 64} },
5194 .block_erase = spi_block_erase_d8,
5195 }, {
5196 .eraseblocks = { {1024 * 4096, 1} },
5197 .block_erase = spi_block_erase_60,
5198 }, {
5199 .eraseblocks = { {1024 * 4096, 1} },
5200 .block_erase = spi_block_erase_c7,
5201 }
5202 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005203 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005204 .unlock = spi_disable_blockprotect_bp3_srwd,
5205 .write = spi_chip_write_256,
5206 .read = spi_chip_read,
5207 .voltage = {2700, 3600},
5208 },
5209
5210 {
5211 .vendor = "Eon",
5212 .name = "EN25QH64",
5213 .bustype = BUS_SPI,
5214 .manufacture_id = EON_ID_NOPREFIX,
5215 .model_id = EON_EN25QH64,
5216 .total_size = 8192,
5217 .page_size = 256,
5218 /* supports SFDP */
5219 /* OTP: 512B total; enter 0x3A */
5220 /* QPI enable 0x38, disable 0xFF */
5221 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner23e10b82016-01-23 16:16:49 +00005222 .tested = TEST_OK_PREW,
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005223 .probe = probe_spi_rdid,
5224 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005225 .block_erasers =
5226 {
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005227 {
5228 .eraseblocks = { {4 * 1024, 2048} },
5229 .block_erase = spi_block_erase_20,
5230 }, {
5231 .eraseblocks = { {64 * 1024, 128} },
5232 .block_erase = spi_block_erase_d8,
5233 }, {
5234 .eraseblocks = { { 8192 * 1024, 1} },
5235 .block_erase = spi_block_erase_60,
5236 }, {
5237 .eraseblocks = { { 8192 * 1024, 1} },
5238 .block_erase = spi_block_erase_c7,
5239 }
5240 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005241 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005242 .unlock = spi_disable_blockprotect_bp3_srwd,
5243 .write = spi_chip_write_256,
5244 .read = spi_chip_read,
5245 .voltage = {2700, 3600},
5246 },
5247
5248 {
5249 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005250 .name = "EN25S10",
5251 .bustype = BUS_SPI,
5252 .manufacture_id = EON_ID_NOPREFIX,
5253 .model_id = EON_EN25S10,
5254 .total_size = 128,
5255 .page_size = 256,
5256 /* OTP: 256B total; enter 0x3A */
5257 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5258 .tested = TEST_UNTESTED,
5259 .probe = probe_spi_rdid,
5260 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005261 .block_erasers =
5262 {
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005263 {
5264 .eraseblocks = { {4 * 1024, 32} },
5265 .block_erase = spi_block_erase_20,
5266 }, {
5267 .eraseblocks = { {32 * 1024, 4} },
5268 .block_erase = spi_block_erase_52,
5269 }, {
5270 .eraseblocks = { {128 * 1024, 1} },
5271 .block_erase = spi_block_erase_60,
5272 }, {
5273 .eraseblocks = { {128 * 1024, 1} },
5274 .block_erase = spi_block_erase_c7,
5275 }
5276 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005277 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005278 .unlock = spi_disable_blockprotect,
5279 .write = spi_chip_write_256,
5280 .read = spi_chip_read,
5281 .voltage = {1650, 1950},
5282 },
5283
5284 {
5285 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005286 .name = "EN25S16",
5287 .bustype = BUS_SPI,
5288 .manufacture_id = EON_ID_NOPREFIX,
5289 .model_id = EON_EN25S16,
5290 .total_size = 2048,
5291 .page_size = 256,
5292 /* OTP: 512B total; enter 0x3A */
5293 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5294 .tested = TEST_UNTESTED,
5295 .probe = probe_spi_rdid,
5296 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005297 .block_erasers =
5298 {
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005299 {
5300 .eraseblocks = { {4 * 1024, 512} },
5301 .block_erase = spi_block_erase_20,
5302 }, {
5303 .eraseblocks = { {64 * 1024, 32} },
5304 .block_erase = spi_block_erase_52,
5305 }, {
5306 .eraseblocks = { {32 * 1024, 64} },
5307 .block_erase = spi_block_erase_d8,
5308 }, {
5309 .eraseblocks = { {2048 * 1024, 1} },
5310 .block_erase = spi_block_erase_60,
5311 }, {
5312 .eraseblocks = { {2048 * 1024, 1} },
5313 .block_erase = spi_block_erase_c7,
5314 }
5315 },
5316 .printlock = spi_prettyprint_status_register_en25s_wp,
5317 .unlock = spi_disable_blockprotect_bp3_srwd,
5318 .write = spi_chip_write_256,
5319 .read = spi_chip_read,
5320 .voltage = {1650, 1950},
5321 },
5322
5323 {
5324 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005325 .name = "EN25S20",
5326 .bustype = BUS_SPI,
5327 .manufacture_id = EON_ID_NOPREFIX,
5328 .model_id = EON_EN25S20,
5329 .total_size = 256,
5330 .page_size = 256,
5331 /* OTP: 256B total; enter 0x3A */
5332 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5333 .tested = TEST_UNTESTED,
5334 .probe = probe_spi_rdid,
5335 .probe_timing = TIMING_ZERO,
5336 .block_erasers =
5337 {
5338 {
5339 .eraseblocks = { {4 * 1024, 64} },
5340 .block_erase = spi_block_erase_20,
5341 }, {
5342 .eraseblocks = { {64 * 1024, 4} },
5343 .block_erase = spi_block_erase_d8,
5344 }, {
5345 .eraseblocks = { {256 * 1024, 1} },
5346 .block_erase = spi_block_erase_60,
5347 }, {
5348 .eraseblocks = { {256 * 1024, 1} },
5349 .block_erase = spi_block_erase_c7,
5350 }
5351 },
5352 .printlock = spi_prettyprint_status_register_bp2_srwd,
5353 .unlock = spi_disable_blockprotect,
5354 .write = spi_chip_write_256,
5355 .read = spi_chip_read,
5356 .voltage = {1650, 1950},
5357 },
5358
5359 {
5360 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005361 .name = "EN25S32",
5362 .bustype = BUS_SPI,
5363 .manufacture_id = EON_ID_NOPREFIX,
5364 .model_id = EON_EN25S32,
5365 .total_size = 4096,
5366 .page_size = 256,
5367 /* OTP: 512B total; enter 0x3A */
5368 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5369 .tested = TEST_UNTESTED,
5370 .probe = probe_spi_rdid,
5371 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005372 .block_erasers =
5373 {
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005374 {
5375 .eraseblocks = { {4 * 1024, 1024} },
5376 .block_erase = spi_block_erase_20,
5377 }, {
5378 .eraseblocks = { {32 * 1024, 128} },
5379 .block_erase = spi_block_erase_52,
5380 }, {
5381 .eraseblocks = { {64 * 1024, 64} },
5382 .block_erase = spi_block_erase_d8,
5383 }, {
5384 .eraseblocks = { {4096 * 1024, 1} },
5385 .block_erase = spi_block_erase_60,
5386 }, {
5387 .eraseblocks = { {4096 * 1024, 1} },
5388 .block_erase = spi_block_erase_c7,
5389 }
5390 },
5391 .printlock = spi_prettyprint_status_register_en25s_wp,
5392 .unlock = spi_disable_blockprotect_bp3_srwd,
5393 .write = spi_chip_write_256,
5394 .read = spi_chip_read,
5395 .voltage = {1650, 1950},
5396 },
5397
5398 {
5399 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005400 .name = "EN25S40",
5401 .bustype = BUS_SPI,
5402 .manufacture_id = EON_ID_NOPREFIX,
5403 .model_id = EON_EN25S40,
5404 .total_size = 512,
5405 .page_size = 256,
5406 /* OTP: 256B total; enter 0x3A */
5407 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5408 .tested = TEST_OK_PREW,
5409 .probe = probe_spi_rdid,
5410 .probe_timing = TIMING_ZERO,
5411 .block_erasers =
5412 {
5413 {
5414 .eraseblocks = { {4 * 1024, 128} },
5415 .block_erase = spi_block_erase_20,
5416 }, {
5417 .eraseblocks = { {64 * 1024, 8} },
5418 .block_erase = spi_block_erase_d8,
5419 }, {
5420 .eraseblocks = { {512 * 1024, 1} },
5421 .block_erase = spi_block_erase_60,
5422 }, {
5423 .eraseblocks = { {512 * 1024, 1} },
5424 .block_erase = spi_block_erase_c7,
5425 }
5426 },
5427 .printlock = spi_prettyprint_status_register_bp2_srwd,
5428 .unlock = spi_disable_blockprotect,
5429 .write = spi_chip_write_256,
5430 .read = spi_chip_read,
5431 .voltage = {1650, 1950},
5432 },
5433
5434 {
5435 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005436 .name = "EN25S64",
5437 .bustype = BUS_SPI,
5438 .manufacture_id = EON_ID_NOPREFIX,
5439 .model_id = EON_EN25S64,
5440 .total_size = 8192,
5441 .page_size = 256,
5442 /* OTP: 512B total; enter 0x3A */
5443 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Nikolai Artemievdf889fa2021-03-23 17:10:45 +11005444 .tested = TEST_OK_PREW,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005445 .probe = probe_spi_rdid,
5446 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005447 .block_erasers =
5448 {
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005449 {
5450 .eraseblocks = { {4 * 1024, 2048} },
5451 .block_erase = spi_block_erase_20,
5452 }, {
5453 .eraseblocks = { {64 * 1024, 128} },
5454 .block_erase = spi_block_erase_d8,
5455 }, {
5456 .eraseblocks = { {8192 * 1024, 1} },
5457 .block_erase = spi_block_erase_60,
5458 }, {
5459 .eraseblocks = { {8192 * 1024, 1} },
5460 .block_erase = spi_block_erase_c7,
5461 }
5462 },
5463 .printlock = spi_prettyprint_status_register_en25s_wp,
5464 .unlock = spi_disable_blockprotect_bp3_srwd,
5465 .write = spi_chip_write_256,
5466 .read = spi_chip_read,
5467 .voltage = {1650, 1950},
5468 },
5469
5470 {
5471 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005472 .name = "EN25S80",
5473 .bustype = BUS_SPI,
5474 .manufacture_id = EON_ID_NOPREFIX,
5475 .model_id = EON_EN25S80,
5476 .total_size = 1024,
5477 .page_size = 256,
5478 /* OTP: 256B total; enter 0x3A */
5479 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5480 .tested = TEST_UNTESTED,
5481 .probe = probe_spi_rdid,
5482 .probe_timing = TIMING_ZERO,
Russ Dill3cd5a122010-03-05 08:44:11 +00005483 .block_erasers =
5484 {
5485 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005486 .eraseblocks = { {4 * 1024, 256} },
5487 .block_erase = spi_block_erase_20,
5488 }, {
5489 .eraseblocks = { {64 * 1024, 16} },
5490 .block_erase = spi_block_erase_d8,
5491 }, {
5492 .eraseblocks = { {1024 * 1024, 1} },
5493 .block_erase = spi_block_erase_60,
5494 }, {
5495 .eraseblocks = { {1024 * 1024, 1} },
5496 .block_erase = spi_block_erase_c7,
5497 }
Russ Dill3cd5a122010-03-05 08:44:11 +00005498 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005499 .printlock = spi_prettyprint_status_register_bp2_srwd,
5500 .unlock = spi_disable_blockprotect,
5501 .write = spi_chip_write_256,
5502 .read = spi_chip_read,
5503 .voltage = {1650, 1950},
Russ Dill3cd5a122010-03-05 08:44:11 +00005504 },
5505
5506 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00005507 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005508 .name = "EN29F002(A)(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005509 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005510 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005511 .model_id = EON_EN29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005512 .total_size = 256,
5513 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00005514 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Alan Green4362e622019-08-26 15:02:12 +10005515 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005516 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005517 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005518 .block_erasers =
5519 {
5520 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005521 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005522 {16 * 1024, 1},
Michael Karchere3cb0a12010-03-13 23:47:09 +00005523 {8 * 1024, 2},
5524 {32 * 1024, 1},
5525 {64 * 1024, 3},
Sean Nelson6b11ad22009-12-23 17:05:59 +00005526 },
5527 .block_erase = erase_sector_jedec,
5528 }, {
5529 .eraseblocks = { {256 * 1024, 1} },
5530 .block_erase = erase_chip_block_jedec,
5531 },
5532 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005533 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005534 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005535 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005536 },
5537
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005538 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00005539 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005540 .name = "EN29F002(A)(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005541 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005542 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005543 .model_id = EON_EN29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005544 .total_size = 256,
5545 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00005546 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00005547 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005548 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005549 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005550 .block_erasers =
5551 {
5552 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005553 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005554 {64 * 1024, 3},
Michael Karchere3cb0a12010-03-13 23:47:09 +00005555 {32 * 1024, 1},
5556 {8 * 1024, 2},
5557 {16 * 1024, 1},
Sean Nelson6b11ad22009-12-23 17:05:59 +00005558 },
5559 .block_erase = erase_sector_jedec,
5560 }, {
5561 .eraseblocks = { {256 * 1024, 1} },
5562 .block_erase = erase_chip_block_jedec,
5563 },
5564 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005565 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005566 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005567 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005568 },
5569
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005570 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005571 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005572 .name = "EN29F010",
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005573 .bustype = BUS_PARALLEL,
5574 .manufacture_id = EON_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005575 .model_id = EON_EN29F010,
5576 .total_size = 128,
5577 .page_size = 128,
5578 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
5579 .tested = TEST_OK_PRE,
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005580 .probe = probe_jedec,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005581 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005582 .block_erasers =
5583 {
5584 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005585 .eraseblocks = { {16 * 1024, 8} },
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005586 .block_erase = erase_sector_jedec,
5587 },
5588 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005589 .eraseblocks = { {128 * 1024, 1} },
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005590 .block_erase = erase_chip_block_jedec,
5591 },
5592 },
5593 .write = write_jedec_1,
5594 .read = read_memmapped,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005595 .voltage = {4500, 5500},
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005596 },
5597
5598 {
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00005599 .vendor = "Eon",
5600 .name = "EN29GL064(A)B",
5601 .bustype = BUS_PARALLEL,
5602 .manufacture_id = EON_ID,
5603 .model_id = EON_EN29GL064B,
5604 .total_size = 8192,
5605 .page_size = 128 * 1024, /* actual page size is 16 */
5606 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5607 .tested = TEST_UNTESTED,
5608 .probe = probe_jedec_29gl,
5609 .probe_timing = TIMING_ZERO,
5610 .block_erasers =
5611 {
5612 {
5613 .eraseblocks = {
5614 {8 * 1024, 8},
5615 {64 * 1024, 127},
5616 },
5617 .block_erase = erase_sector_jedec,
5618 }, {
5619 .eraseblocks = { {8 * 1024 * 1024, 1} },
5620 .block_erase = erase_chip_block_jedec,
5621 },
5622 },
5623 .write = write_jedec_1,
5624 .read = read_memmapped,
5625 .voltage = {2700, 3600},
5626 },
5627
5628 {
5629 .vendor = "Eon",
5630 .name = "EN29GL064(A)T",
5631 .bustype = BUS_PARALLEL,
5632 .manufacture_id = EON_ID,
5633 .model_id = EON_EN29GL064T,
5634 .total_size = 8192,
5635 .page_size = 128 * 1024, /* actual page size is 16 */
5636 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5637 .tested = TEST_UNTESTED,
5638 .probe = probe_jedec_29gl,
5639 .probe_timing = TIMING_ZERO,
5640 .block_erasers =
5641 {
5642 {
5643 .eraseblocks = {
5644 {64 * 1024, 127},
5645 {8 * 1024, 8},
5646 },
5647 .block_erase = erase_sector_jedec,
5648 }, {
5649 .eraseblocks = { {8 * 1024 * 1024, 1} },
5650 .block_erase = erase_chip_block_jedec,
5651 },
5652 },
5653 .write = write_jedec_1,
5654 .read = read_memmapped,
5655 .voltage = {2700, 3600},
5656 },
5657
5658 {
5659 .vendor = "Eon",
5660 .name = "EN29GL064H/L",
5661 .bustype = BUS_PARALLEL,
5662 .manufacture_id = EON_ID,
5663 .model_id = EON_EN29GL064HL,
5664 .total_size = 8192,
5665 .page_size = 128 * 1024, /* actual page size is 16 */
5666 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5667 .tested = TEST_UNTESTED,
5668 .probe = probe_jedec_29gl,
5669 .probe_timing = TIMING_ZERO,
5670 .block_erasers =
5671 {
5672 {
5673 .eraseblocks = { {64 * 1024, 128} },
5674 .block_erase = erase_sector_jedec,
5675 }, {
5676 .eraseblocks = { {8 * 1024 * 1024, 1} },
5677 .block_erase = erase_chip_block_jedec,
5678 },
5679 },
5680 .write = write_jedec_1,
5681 .read = read_memmapped,
5682 .voltage = {2700, 3600},
5683 },
5684
5685 {
5686 .vendor = "Eon",
5687 .name = "EN29GL128",
5688 .bustype = BUS_PARALLEL,
5689 .manufacture_id = EON_ID,
5690 .model_id = EON_EN29GL128HL,
5691 .total_size = 16384,
5692 .page_size = 128 * 1024, /* actual page size is 16 */
5693 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5694 .tested = TEST_UNTESTED,
5695 .probe = probe_jedec_29gl,
5696 .probe_timing = TIMING_ZERO,
5697 .block_erasers =
5698 {
5699 {
5700 .eraseblocks = { {128 * 1024, 128} },
5701 .block_erase = erase_sector_jedec,
5702 }, {
5703 .eraseblocks = { {16 * 1024 * 1024, 1} },
5704 .block_erase = erase_chip_block_jedec,
5705 },
5706 },
5707 .write = write_jedec_1,
5708 .read = read_memmapped,
5709 .voltage = {2700, 3600},
5710 },
5711
5712 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005713 .vendor = "Eon",
5714 .name = "EN29LV040(A)",
5715 .bustype = BUS_PARALLEL,
5716 .manufacture_id = EON_ID,
5717 .model_id = EON_EN29LV040,
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005718 .total_size = 512,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005719 .page_size = 4 * 1024,
5720 .tested = TEST_OK_PREW,
5721 .probe = probe_jedec,
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005722 .probe_timing = TIMING_ZERO,
5723 .block_erasers =
5724 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00005725 {
5726 .eraseblocks = { {64 * 1024, 8} },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005727 .block_erase = erase_sector_jedec,
5728 },
5729 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00005730 .eraseblocks = { {512 * 1024, 1} },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005731 .block_erase = erase_chip_block_jedec,
5732 },
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005733 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005734 .write = write_jedec_1,
5735 .read = read_memmapped,
5736 .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R and 55R, others 2.7-3.6V */
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005737 },
5738
5739 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005740 .vendor = "Eon",
5741 .name = "EN29LV640B",
5742 .bustype = BUS_PARALLEL,
5743 .manufacture_id = EON_ID,
5744 .model_id = EON_EN29LV640B,
5745 .total_size = 8192,
5746 .page_size = 8192,
5747 .feature_bits = FEATURE_ADDR_SHIFTED,
5748 .tested = TEST_OK_PREW,
5749 .probe = probe_en29lv640b,
5750 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005751 .block_erasers =
5752 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00005753 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005754 .eraseblocks = {
5755 {8 * 1024, 8},
5756 {64 * 1024, 127},
5757 },
5758 .block_erase = erase_block_jedec,
Stefan Tauner0be072c2016-03-13 15:16:30 +00005759 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005760 .eraseblocks = { {8 * 1024 * 1024, 1} },
5761 .block_erase = erase_chip_block_jedec,
5762 },
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005763 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005764 .write = write_en29lv640b,
5765 .read = read_memmapped,
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005766 .voltage = {2700, 3600},
5767 },
5768
5769 {
Jakob Petersson0cf3e122019-02-18 01:55:43 +01005770 .vendor = "Fudan",
5771 .name = "FM25F005",
5772 .bustype = BUS_SPI,
5773 .manufacture_id = FUDAN_ID_NOPREFIX,
5774 .model_id = FUDAN_FM25F005,
5775 .total_size = 64,
5776 .page_size = 256,
5777 /* OTP: 256B total; enter 0x3A */
5778 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5779 .tested = TEST_UNTESTED,
5780 .probe = probe_spi_rdid,
5781 .probe_timing = TIMING_ZERO,
5782 .block_erasers = {
5783 {
5784 .eraseblocks = { {4 * 1024, 16} },
5785 .block_erase = spi_block_erase_20,
5786 }, {
5787 .eraseblocks = { {32 * 1024, 2} },
5788 .block_erase = spi_block_erase_52,
5789 }, {
5790 .eraseblocks = { {64 * 1024, 1} },
5791 .block_erase = spi_block_erase_d8,
5792 }, {
5793 .eraseblocks = { {64 * 1024, 1} },
5794 .block_erase = spi_block_erase_60,
5795 }, {
5796 .eraseblocks = { {64 * 1024, 1} },
5797 .block_erase = spi_block_erase_c7,
5798 }
5799 },
5800 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
5801 .unlock = spi_disable_blockprotect_bp2_srwd,
5802 .write = spi_chip_write_256,
5803 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
5804 .voltage = {2700, 3600}, /* 2.3-2.7V acceptable results in lower performance */
5805 },
5806
5807 {
5808 .vendor = "Fudan",
5809 .name = "FM25F01",
5810 .bustype = BUS_SPI,
5811 .manufacture_id = FUDAN_ID_NOPREFIX,
5812 .model_id = FUDAN_FM25F01,
5813 .total_size = 128,
5814 .page_size = 256,
5815 /* OTP: 256B total; enter 0x3A */
5816 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5817 .tested = TEST_UNTESTED,
5818 .probe = probe_spi_rdid,
5819 .probe_timing = TIMING_ZERO,
5820 .block_erasers = {
5821 {
5822 .eraseblocks = { {4 * 1024, 32} },
5823 .block_erase = spi_block_erase_20,
5824 }, {
5825 .eraseblocks = { {32 * 1024, 4} },
5826 .block_erase = spi_block_erase_52,
5827 }, {
5828 .eraseblocks = { {64 * 1024, 2} },
5829 .block_erase = spi_block_erase_d8,
5830 }, {
5831 .eraseblocks = { {128 * 1024, 1} },
5832 .block_erase = spi_block_erase_60,
5833 }, {
5834 .eraseblocks = { {128 * 1024, 1} },
5835 .block_erase = spi_block_erase_c7,
5836 }
5837 },
5838 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
5839 .unlock = spi_disable_blockprotect_bp2_srwd,
5840 .write = spi_chip_write_256,
5841 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
5842 .voltage = {2700, 3600}, /* 2.3-2.7V acceptable results in lower performance */
5843 },
5844
5845 {
5846 .vendor = "Fudan",
5847 .name = "FM25F02(A)",
5848 .bustype = BUS_SPI,
5849 .manufacture_id = FUDAN_ID_NOPREFIX,
5850 .model_id = FUDAN_FM25F02,
5851 .total_size = 256,
5852 .page_size = 256,
5853 /* OTP: 256B total; enter 0x3A, (A version only:) read ID 0x4B */
5854 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5855 .tested = TEST_UNTESTED,
5856 .probe = probe_spi_rdid,
5857 .probe_timing = TIMING_ZERO,
5858 .block_erasers = {
5859 {
5860 .eraseblocks = { {4 * 1024, 64} },
5861 .block_erase = spi_block_erase_20,
5862 }, {
5863 .eraseblocks = { {32 * 1024, 8} },
5864 .block_erase = spi_block_erase_52,
5865 }, {
5866 .eraseblocks = { {64 * 1024, 4} },
5867 .block_erase = spi_block_erase_d8,
5868 }, {
5869 .eraseblocks = { {1024 * 256, 1} },
5870 .block_erase = spi_block_erase_60,
5871 }, {
5872 .eraseblocks = { {1024 * 256, 1} },
5873 .block_erase = spi_block_erase_c7,
5874 },
5875 },
5876 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
5877 .unlock = spi_disable_blockprotect_bp2_srwd,
5878 .write = spi_chip_write_256,
5879 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
5880 .voltage = {2700, 3600}, /* 2.3-2.7V acceptable results in lower performance */
5881 },
5882
5883 {
5884 .vendor = "Fudan",
5885 .name = "FM25F04(A)",
5886 .bustype = BUS_SPI,
5887 .manufacture_id = FUDAN_ID_NOPREFIX,
5888 .model_id = FUDAN_FM25F04,
5889 .total_size = 512,
5890 .page_size = 256,
5891 /* OTP: 256B total; enter 0x3A, (A version only:) read ID 0x4B */
5892 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5893 .tested = TEST_UNTESTED,
5894 .probe = probe_spi_rdid,
5895 .probe_timing = TIMING_ZERO,
5896 .block_erasers = {
5897 {
5898 .eraseblocks = { {4 * 1024, 128} },
5899 .block_erase = spi_block_erase_20,
5900 }, {
5901 .eraseblocks = { {32 * 1024, 16} },
5902 .block_erase = spi_block_erase_52,
5903 }, {
5904 .eraseblocks = { {64 * 1024, 8} },
5905 .block_erase = spi_block_erase_d8,
5906 }, {
5907 .eraseblocks = { {1024 * 512, 1} },
5908 .block_erase = spi_block_erase_60,
5909 }, {
5910 .eraseblocks = { {1024 * 512, 1} },
5911 .block_erase = spi_block_erase_c7,
5912 },
5913 },
5914 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
5915 .unlock = spi_disable_blockprotect_bp2_srwd,
5916 .write = spi_chip_write_256,
5917 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
5918 .voltage = {2700, 3600},
5919 },
5920
5921 {
5922 .vendor = "Fudan",
5923 .name = "FM25Q08",
5924 .bustype = BUS_SPI,
5925 .manufacture_id = FUDAN_ID_NOPREFIX,
5926 .model_id = FUDAN_FM25Q08,
5927 .total_size = 1024,
5928 .page_size = 256,
5929 /* supports SFDP */
5930 /* OTP: 1024B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
5931 /* QPI enable 0x38, disable 0xFF */
5932 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5933 .tested = TEST_UNTESTED,
5934 .probe = probe_spi_rdid,
5935 .probe_timing = TIMING_ZERO,
5936 .block_erasers = {
5937 {
5938 .eraseblocks = { {4 * 1024, 256} },
5939 .block_erase = spi_block_erase_20,
5940 }, {
5941 .eraseblocks = { {32 * 1024, 32} },
5942 .block_erase = spi_block_erase_52,
5943 }, {
5944 .eraseblocks = { {64 * 1024, 16} },
5945 .block_erase = spi_block_erase_d8,
5946 }, {
5947 .eraseblocks = { {1024 * 1024, 1} },
5948 .block_erase = spi_block_erase_60,
5949 }, {
5950 .eraseblocks = { {1024 * 1024, 1} },
5951 .block_erase = spi_block_erase_c7,
5952 },
5953 },
5954 .printlock = spi_prettyprint_status_register_bp2_tb_bpl, /* bit6 selects size of protected blocks; TODO: SR2 */
5955 .unlock = spi_disable_blockprotect_bp2_srwd,
5956 .write = spi_chip_write_256,
5957 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5958 .voltage = {2700, 3600},
5959 },
5960
5961 {
5962 .vendor = "Fudan",
5963 .name = "FM25Q16",
5964 .bustype = BUS_SPI,
5965 .manufacture_id = FUDAN_ID_NOPREFIX,
5966 .model_id = FUDAN_FM25Q16,
5967 .total_size = 2048,
5968 .page_size = 256,
5969 /* supports SFDP */
5970 /* OTP: 1024B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
5971 /* QPI enable 0x38, disable 0xFF */
5972 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5973 .tested = TEST_UNTESTED,
5974 .probe = probe_spi_rdid,
5975 .probe_timing = TIMING_ZERO,
5976 .block_erasers = {
5977 {
5978 .eraseblocks = { {4 * 1024, 512} },
5979 .block_erase = spi_block_erase_20,
5980 }, {
5981 .eraseblocks = { {32 * 1024, 64} },
5982 .block_erase = spi_block_erase_52,
5983 }, {
5984 .eraseblocks = { {64 * 1024, 32} },
5985 .block_erase = spi_block_erase_d8,
5986 }, {
5987 .eraseblocks = { {2 * 1024 * 1024, 1} },
5988 .block_erase = spi_block_erase_60,
5989 }, {
5990 .eraseblocks = { {2 * 1024 * 1024, 1} },
5991 .block_erase = spi_block_erase_c7,
5992 }
5993 },
5994 .printlock = spi_prettyprint_status_register_bp2_tb_bpl, /* bit6 selects size of protected blocks; TODO: SR2 */
5995 .unlock = spi_disable_blockprotect_bp2_srwd,
5996 .write = spi_chip_write_256,
5997 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5998 .voltage = {2700, 3600},
5999 },
6000
6001 {
6002 .vendor = "Fudan",
6003 .name = "FM25Q32",
6004 .bustype = BUS_SPI,
6005 .manufacture_id = FUDAN_ID_NOPREFIX,
6006 .model_id = FUDAN_FM25Q32,
6007 .total_size = 4096,
6008 .page_size = 256,
6009 /* supports SFDP */
6010 /* OTP: 1024B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
6011 /* QPI enable 0x38, disable 0xFF */
6012 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6013 .tested = TEST_UNTESTED,
6014 .probe = probe_spi_rdid,
6015 .probe_timing = TIMING_ZERO,
6016 .block_erasers = {
6017 {
6018 .eraseblocks = { {4 * 1024, 1024} },
6019 .block_erase = spi_block_erase_20,
6020 }, {
6021 .eraseblocks = { {32 * 1024, 128} },
6022 .block_erase = spi_block_erase_52,
6023 }, {
6024 .eraseblocks = { {64 * 1024, 64} },
6025 .block_erase = spi_block_erase_d8,
6026 }, {
6027 .eraseblocks = { {4 * 1024 * 1024, 1} },
6028 .block_erase = spi_block_erase_60,
6029 }, {
6030 .eraseblocks = { {4 * 1024 * 1024, 1} },
6031 .block_erase = spi_block_erase_c7,
6032 },
6033 },
6034 .printlock = spi_prettyprint_status_register_bp2_tb_bpl, /* bit6 selects size of protected blocks; TODO: SR2 */
6035 .unlock = spi_disable_blockprotect_bp2_srwd,
6036 .write = spi_chip_write_256,
6037 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6038 .voltage = {2700, 3600},
6039 },
6040
6041 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006042 .vendor = "Fujitsu",
6043 .name = "MBM29F004BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006044 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006045 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006046 .model_id = FUJITSU_MBM29F004BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006047 .total_size = 512,
6048 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006049 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006050 .tested = TEST_UNTESTED,
6051 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006052 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00006053 .block_erasers =
6054 {
6055 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006056 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00006057 {16 * 1024, 1},
6058 {8 * 1024, 2},
6059 {32 * 1024, 1},
6060 {64 * 1024, 7},
6061 },
Sean Nelson35727f72010-01-28 23:55:12 +00006062 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006063 }, {
6064 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006065 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006066 },
6067 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006068 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006069 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006070 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006071 },
6072
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006073 {
6074 .vendor = "Fujitsu",
6075 .name = "MBM29F004TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006076 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006077 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006078 .model_id = FUJITSU_MBM29F004TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006079 .total_size = 512,
6080 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006081 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006082 .tested = TEST_UNTESTED,
6083 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006084 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00006085 .block_erasers =
6086 {
6087 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006088 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00006089 {64 * 1024, 7},
6090 {32 * 1024, 1},
6091 {8 * 1024, 2},
6092 {16 * 1024, 1},
6093 },
Sean Nelson35727f72010-01-28 23:55:12 +00006094 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006095 }, {
6096 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006097 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006098 },
6099 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006100 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006101 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006102 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006103 },
6104
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006105 {
Sean Nelson35727f72010-01-28 23:55:12 +00006106 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006107 .vendor = "Fujitsu",
6108 .name = "MBM29F400BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006109 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006110 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006111 .model_id = FUJITSU_MBM29F400BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006112 .total_size = 512,
6113 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006114 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00006115 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006116 .probe = probe_jedec,
6117 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson6b11ad22009-12-23 17:05:59 +00006118 .block_erasers =
6119 {
6120 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006121 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00006122 {16 * 1024, 1},
6123 {8 * 1024, 2},
6124 {32 * 1024, 1},
6125 {64 * 1024, 7},
6126 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006127 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006128 }, {
6129 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006130 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006131 },
6132 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006133 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006134 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006135 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00006136 },
6137
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006138 {
6139 .vendor = "Fujitsu",
6140 .name = "MBM29F400TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006141 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006142 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006143 .model_id = FUJITSU_MBM29F400TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006144 .total_size = 512,
6145 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006146 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006147 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006148 .probe = probe_jedec,
6149 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson6b11ad22009-12-23 17:05:59 +00006150 .block_erasers =
6151 {
6152 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006153 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00006154 {64 * 1024, 7},
6155 {32 * 1024, 1},
6156 {8 * 1024, 2},
6157 {16 * 1024, 1},
6158 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006159 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006160 }, {
6161 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006162 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006163 },
6164 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006165 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006166 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006167 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00006168 },
6169
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006170 {
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006171 .vendor = "Fujitsu",
6172 .name = "MBM29LV160BE",
6173 .bustype = BUS_PARALLEL,
6174 .manufacture_id = FUJITSU_ID,
6175 .model_id = FUJITSU_MBM29LV160BE,
6176 .total_size = 2 * 1024,
6177 .page_size = 0,
6178 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET,
6179 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006180 .probe = probe_jedec,
6181 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006182 .block_erasers =
6183 {
6184 {
6185 .eraseblocks = {
6186 {16 * 1024, 1},
6187 {8 * 1024, 2},
6188 {32 * 1024, 1},
6189 {64 * 1024, 31},
6190 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006191 .block_erase = erase_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006192 }, {
6193 .eraseblocks = { {2048 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006194 .block_erase = erase_chip_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006195 },
6196 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006197 .write = write_jedec_1, /* Supports a fast mode too */
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006198 .read = read_memmapped,
6199 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */
6200 },
6201
6202 {
6203 .vendor = "Fujitsu",
6204 .name = "MBM29LV160TE",
6205 .bustype = BUS_PARALLEL,
6206 .manufacture_id = FUJITSU_ID,
6207 .model_id = FUJITSU_MBM29LV160TE,
6208 .total_size = 2 * 1024,
6209 .page_size = 0,
6210 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET,
6211 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006212 .probe = probe_jedec,
6213 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006214 .block_erasers =
6215 {
6216 {
6217 .eraseblocks = {
6218 {64 * 1024, 31},
6219 {32 * 1024, 1},
6220 {8 * 1024, 2},
6221 {16 * 1024, 1},
6222 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006223 .block_erase = erase_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006224 }, {
6225 .eraseblocks = { {2048 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006226 .block_erase = erase_chip_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006227 },
6228 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006229 .write = write_jedec_1, /* Supports a fast mode too */
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006230 .read = read_memmapped,
6231 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */
6232 },
6233
6234 {
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006235 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006236 .name = "GD25B128B/GD25Q128B",
Roman Titov95edc892015-04-03 21:29:04 +00006237 .bustype = BUS_SPI,
6238 .manufacture_id = GIGADEVICE_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006239 .model_id = GIGADEVICE_GD25Q128,
6240 .total_size = 16384,
Roman Titov95edc892015-04-03 21:29:04 +00006241 .page_size = 256,
6242 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6243 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006244 .tested = TEST_OK_PREW,
Roman Titov95edc892015-04-03 21:29:04 +00006245 .probe = probe_spi_rdid,
6246 .probe_timing = TIMING_ZERO,
6247 .block_erasers =
6248 {
6249 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006250 .eraseblocks = { {4 * 1024, 4096} },
Roman Titov95edc892015-04-03 21:29:04 +00006251 .block_erase = spi_block_erase_20,
6252 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006253 .eraseblocks = { {32 * 1024, 512} },
Roman Titov95edc892015-04-03 21:29:04 +00006254 .block_erase = spi_block_erase_52,
6255 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006256 .eraseblocks = { {64 * 1024, 256} },
Roman Titov95edc892015-04-03 21:29:04 +00006257 .block_erase = spi_block_erase_d8,
6258 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006259 .eraseblocks = { {16 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00006260 .block_erase = spi_block_erase_60,
6261 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006262 .eraseblocks = { {16 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00006263 .block_erase = spi_block_erase_c7,
6264 }
6265 },
6266 .printlock = spi_prettyprint_status_register_bp4_srwd,
6267 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6268 .write = spi_chip_write_256,
6269 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Alan Green1f9cc7d2019-07-01 11:10:45 +10006270 .voltage = {2700, 3600},
Roman Titov95edc892015-04-03 21:29:04 +00006271 },
6272
6273 {
6274 .vendor = "GigaDevice",
Edward O'Callaghan981a3442021-06-22 11:16:55 +10006275 .name = "GD25LQ128C/GD25LQ128D/GD25LQ128E",
Roman Titov95edc892015-04-03 21:29:04 +00006276 .bustype = BUS_SPI,
6277 .manufacture_id = GIGADEVICE_ID,
Alan Green188127e2019-08-06 16:10:34 +10006278 .model_id = GIGADEVICE_GD25LQ128CD,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006279 .total_size = 16384,
Roman Titov95edc892015-04-03 21:29:04 +00006280 .page_size = 256,
6281 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Nikolai Artemiev9de3f872021-10-20 22:32:25 +11006282 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_WRSR_EXT,
Alan Green813a7e22021-01-08 08:48:17 +11006283 .tested = TEST_OK_PREW,
Roman Titov95edc892015-04-03 21:29:04 +00006284 .probe = probe_spi_rdid,
6285 .probe_timing = TIMING_ZERO,
6286 .block_erasers =
6287 {
6288 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006289 .eraseblocks = { {4 * 1024, 4096} },
Roman Titov95edc892015-04-03 21:29:04 +00006290 .block_erase = spi_block_erase_20,
6291 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006292 .eraseblocks = { {32 * 1024, 512} },
Roman Titov95edc892015-04-03 21:29:04 +00006293 .block_erase = spi_block_erase_52,
6294 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006295 .eraseblocks = { {64 * 1024, 256} },
Roman Titov95edc892015-04-03 21:29:04 +00006296 .block_erase = spi_block_erase_d8,
6297 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006298 .eraseblocks = { {16 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00006299 .block_erase = spi_block_erase_60,
6300 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006301 .eraseblocks = { {16 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00006302 .block_erase = spi_block_erase_c7,
6303 }
6304 },
6305 .printlock = spi_prettyprint_status_register_bp4_srwd,
6306 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6307 .write = spi_chip_write_256,
6308 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6309 .voltage = {1695, 1950},
Nikolai Artemievc6c3f282021-10-20 23:34:15 +11006310 .reg_bits =
6311 {
6312 .srp = {STATUS1, 7, RW},
6313 .srl = {STATUS2, 0, RW},
6314 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
6315 .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */
6316 .sec = {STATUS1, 6, RW}, /* Called BP4 in datasheet, acts like SEC */
6317 .cmp = {STATUS2, 6, RW},
6318 },
Nikolai Artemievc9feb1b2021-10-21 01:35:13 +11006319 .decode_range = decode_range_spi25,
Roman Titov95edc892015-04-03 21:29:04 +00006320 },
6321
6322 {
6323 .vendor = "GigaDevice",
6324 .name = "GD25LQ16",
6325 .bustype = BUS_SPI,
6326 .manufacture_id = GIGADEVICE_ID,
6327 .model_id = GIGADEVICE_GD25LQ16,
6328 .total_size = 2048,
6329 .page_size = 256,
6330 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6331 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6332 .tested = TEST_UNTESTED,
6333 .probe = probe_spi_rdid,
6334 .probe_timing = TIMING_ZERO,
6335 .block_erasers =
6336 {
6337 {
6338 .eraseblocks = { {4 * 1024, 512} },
6339 .block_erase = spi_block_erase_20,
6340 }, {
6341 .eraseblocks = { {32 * 1024, 64} },
6342 .block_erase = spi_block_erase_52,
6343 }, {
6344 .eraseblocks = { {64 * 1024, 32} },
6345 .block_erase = spi_block_erase_d8,
6346 }, {
6347 .eraseblocks = { {2 * 1024 * 1024, 1} },
6348 .block_erase = spi_block_erase_60,
6349 }, {
6350 .eraseblocks = { {2 * 1024 * 1024, 1} },
6351 .block_erase = spi_block_erase_c7,
6352 }
6353 },
6354 .printlock = spi_prettyprint_status_register_bp4_srwd,
6355 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6356 .write = spi_chip_write_256,
6357 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6358 .voltage = {1695, 1950},
6359 },
6360
6361 {
6362 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006363 .name = "GD25LQ32",
6364 .bustype = BUS_SPI,
6365 .manufacture_id = GIGADEVICE_ID,
6366 .model_id = GIGADEVICE_GD25LQ32,
6367 .total_size = 4096,
6368 .page_size = 256,
6369 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6370 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6371 .tested = TEST_OK_PREW,
6372 .probe = probe_spi_rdid,
6373 .probe_timing = TIMING_ZERO,
6374 .block_erasers =
6375 {
6376 {
6377 .eraseblocks = { {4 * 1024, 1024} },
6378 .block_erase = spi_block_erase_20,
6379 }, {
6380 .eraseblocks = { {32 * 1024, 128} },
6381 .block_erase = spi_block_erase_52,
6382 }, {
6383 .eraseblocks = { {64 * 1024, 64} },
6384 .block_erase = spi_block_erase_d8,
6385 }, {
6386 .eraseblocks = { {4 * 1024 * 1024, 1} },
6387 .block_erase = spi_block_erase_60,
6388 }, {
6389 .eraseblocks = { {4 * 1024 * 1024, 1} },
6390 .block_erase = spi_block_erase_c7,
6391 }
6392 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006393 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006394 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6395 .write = spi_chip_write_256,
Roman Titov95edc892015-04-03 21:29:04 +00006396 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6397 .voltage = {1695, 1950},
6398 },
6399
6400 {
6401 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006402 .name = "GD25LQ40",
6403 .bustype = BUS_SPI,
6404 .manufacture_id = GIGADEVICE_ID,
6405 .model_id = GIGADEVICE_GD25LQ40,
6406 .total_size = 512,
6407 .page_size = 256,
6408 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6409 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6410 .tested = TEST_UNTESTED,
6411 .probe = probe_spi_rdid,
6412 .probe_timing = TIMING_ZERO,
6413 .block_erasers =
6414 {
6415 {
6416 .eraseblocks = { {4 * 1024, 128} },
6417 .block_erase = spi_block_erase_20,
6418 }, {
6419 .eraseblocks = { {32 * 1024, 16} },
6420 .block_erase = spi_block_erase_52,
6421 }, {
6422 .eraseblocks = { {64 * 1024, 8} },
6423 .block_erase = spi_block_erase_d8,
6424 }, {
6425 .eraseblocks = { {512 * 1024, 1} },
6426 .block_erase = spi_block_erase_60,
6427 }, {
6428 .eraseblocks = { {512 * 1024, 1} },
6429 .block_erase = spi_block_erase_c7,
6430 }
6431 },
6432 .printlock = spi_prettyprint_status_register_bp4_srwd,
6433 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6434 .write = spi_chip_write_256,
6435 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6436 .voltage = {1695, 1950},
6437 },
6438
6439 {
6440 .vendor = "GigaDevice",
Roman Titov95edc892015-04-03 21:29:04 +00006441 .name = "GD25LQ64(B)",
6442 .bustype = BUS_SPI,
6443 .manufacture_id = GIGADEVICE_ID,
6444 .model_id = GIGADEVICE_GD25LQ64,
6445 .total_size = 8192,
6446 .page_size = 256,
6447 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6448 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +00006449 .tested = TEST_OK_PREW,
Roman Titov95edc892015-04-03 21:29:04 +00006450 .probe = probe_spi_rdid,
6451 .probe_timing = TIMING_ZERO,
6452 .block_erasers =
6453 {
6454 {
6455 .eraseblocks = { {4 * 1024, 2048} },
6456 .block_erase = spi_block_erase_20,
6457 }, {
6458 .eraseblocks = { {32 * 1024, 256} },
6459 .block_erase = spi_block_erase_52,
6460 }, {
6461 .eraseblocks = { {64 * 1024, 128} },
6462 .block_erase = spi_block_erase_d8,
6463 }, {
6464 .eraseblocks = { {8 * 1024 * 1024, 1} },
6465 .block_erase = spi_block_erase_60,
6466 }, {
6467 .eraseblocks = { {8 * 1024 * 1024, 1} },
6468 .block_erase = spi_block_erase_c7,
6469 }
6470 },
6471 .printlock = spi_prettyprint_status_register_bp4_srwd,
6472 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6473 .write = spi_chip_write_256,
6474 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6475 .voltage = {1695, 1950},
6476 },
6477
6478 {
6479 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006480 .name = "GD25LQ80",
Roman Titov95edc892015-04-03 21:29:04 +00006481 .bustype = BUS_SPI,
6482 .manufacture_id = GIGADEVICE_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006483 .model_id = GIGADEVICE_GD25LQ80,
6484 .total_size = 1024,
Roman Titov95edc892015-04-03 21:29:04 +00006485 .page_size = 256,
6486 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6487 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6488 .tested = TEST_UNTESTED,
6489 .probe = probe_spi_rdid,
6490 .probe_timing = TIMING_ZERO,
6491 .block_erasers =
6492 {
6493 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006494 .eraseblocks = { {4 * 1024, 256} },
Roman Titov95edc892015-04-03 21:29:04 +00006495 .block_erase = spi_block_erase_20,
6496 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006497 .eraseblocks = { {32 * 1024, 32} },
Roman Titov95edc892015-04-03 21:29:04 +00006498 .block_erase = spi_block_erase_52,
6499 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006500 .eraseblocks = { {64 * 1024, 16} },
Roman Titov95edc892015-04-03 21:29:04 +00006501 .block_erase = spi_block_erase_d8,
6502 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006503 .eraseblocks = { {1 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00006504 .block_erase = spi_block_erase_60,
6505 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006506 .eraseblocks = { {1 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00006507 .block_erase = spi_block_erase_c7,
6508 }
6509 },
6510 .printlock = spi_prettyprint_status_register_bp4_srwd,
6511 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6512 .write = spi_chip_write_256,
6513 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6514 .voltage = {1695, 1950},
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006515 },
6516
6517 {
6518 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006519 .name = "GD25Q10",
6520 .bustype = BUS_SPI,
6521 .manufacture_id = GIGADEVICE_ID,
6522 .model_id = GIGADEVICE_GD25Q10,
6523 .total_size = 128,
6524 .page_size = 256,
6525 .feature_bits = FEATURE_WRSR_WREN,
6526 .tested = TEST_UNTESTED,
6527 .probe = probe_spi_rdid,
6528 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10006529 .block_erasers =
6530 {
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006531 {
6532 .eraseblocks = { {4 * 1024, 32} },
6533 .block_erase = spi_block_erase_20,
6534 }, {
6535 .eraseblocks = { {32 * 1024, 4} },
6536 .block_erase = spi_block_erase_52,
6537 }, {
6538 .eraseblocks = { {64 * 1024, 2} },
6539 .block_erase = spi_block_erase_d8,
6540 }, {
6541 .eraseblocks = { {128 * 1024, 1} },
6542 .block_erase = spi_block_erase_60,
6543 }, {
6544 .eraseblocks = { {128 * 1024, 1} },
6545 .block_erase = spi_block_erase_c7,
6546 }
6547 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006548 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006549 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6550 .write = spi_chip_write_256,
6551 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6552 .voltage = {2700, 3600},
6553 },
6554
6555 {
6556 .vendor = "GigaDevice",
Alan Green4f009122019-08-26 10:45:18 +10006557 .name = "GD25Q127C/GD25Q128C",
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006558 .bustype = BUS_SPI,
6559 .manufacture_id = GIGADEVICE_ID,
6560 .model_id = GIGADEVICE_GD25Q128,
6561 .total_size = 16384,
6562 .page_size = 256,
6563 /* OTP: 1536B total; read 0x48; write 0x42, erase 0x44 */
6564 /* QPI: enable 0x38, disable 0xFF */
6565 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Angel Ponsbce364c2018-09-30 20:04:14 +02006566 .tested = TEST_OK_PREW,
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006567 .probe = probe_spi_rdid,
6568 .probe_timing = TIMING_ZERO,
6569 .block_erasers =
6570 {
6571 {
6572 .eraseblocks = { {4 * 1024, 4096} },
6573 .block_erase = spi_block_erase_20,
6574 }, {
6575 .eraseblocks = { {32 * 1024, 512} },
6576 .block_erase = spi_block_erase_52,
6577 }, {
6578 .eraseblocks = { {64 * 1024, 256} },
6579 .block_erase = spi_block_erase_d8,
6580 }, {
6581 .eraseblocks = { {16 * 1024 * 1024, 1} },
6582 .block_erase = spi_block_erase_60,
6583 }, {
6584 .eraseblocks = { {16 * 1024 * 1024, 1} },
6585 .block_erase = spi_block_erase_c7,
6586 }
6587 },
6588 /* TODO: 2nd status reg (read 0x35, write 0x31) and 3rd status reg (read 0x15, write 0x11) */
6589 .printlock = spi_prettyprint_status_register_bp4_srwd,
6590 .unlock = spi_disable_blockprotect_bp4_srwd,
6591 .write = spi_chip_write_256,
6592 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6593 .voltage = {2700, 3600},
6594 },
6595
6596 {
6597 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006598 .name = "GD25Q16(B)",
6599 .bustype = BUS_SPI,
6600 .manufacture_id = GIGADEVICE_ID,
6601 .model_id = GIGADEVICE_GD25Q16,
6602 .total_size = 2048,
6603 .page_size = 256,
6604 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
6605 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6606 .tested = TEST_OK_PREW,
6607 .probe = probe_spi_rdid,
6608 .probe_timing = TIMING_ZERO,
6609 .block_erasers =
6610 {
6611 {
6612 .eraseblocks = { {4 * 1024, 512} },
6613 .block_erase = spi_block_erase_20,
6614 }, {
6615 .eraseblocks = { {32 * 1024, 64} },
6616 .block_erase = spi_block_erase_52,
6617 }, {
6618 .eraseblocks = { {64 * 1024, 32} },
6619 .block_erase = spi_block_erase_d8,
6620 }, {
6621 .eraseblocks = { {2 * 1024 * 1024, 1} },
6622 .block_erase = spi_block_erase_60,
6623 }, {
6624 .eraseblocks = { {2 * 1024 * 1024, 1} },
6625 .block_erase = spi_block_erase_c7,
6626 }
6627 },
6628 .printlock = spi_prettyprint_status_register_bp4_srwd,
6629 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6630 .write = spi_chip_write_256,
6631 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6632 .voltage = {2700, 3600},
6633 },
6634
6635 {
6636 .vendor = "GigaDevice",
6637 .name = "GD25Q20(B)",
6638 .bustype = BUS_SPI,
6639 .manufacture_id = GIGADEVICE_ID,
6640 .model_id = GIGADEVICE_GD25Q20,
6641 .total_size = 256,
6642 .page_size = 256,
6643 .feature_bits = FEATURE_WRSR_WREN,
6644 .tested = TEST_OK_PREW,
6645 .probe = probe_spi_rdid,
6646 .probe_timing = TIMING_ZERO,
6647 .block_erasers =
6648 {
6649 {
6650 .eraseblocks = { {4 * 1024, 64} },
6651 .block_erase = spi_block_erase_20,
6652 }, {
6653 .eraseblocks = { {32 * 1024, 8} },
6654 .block_erase = spi_block_erase_52,
6655 }, {
6656 .eraseblocks = { {64 * 1024, 4} },
6657 .block_erase = spi_block_erase_d8,
6658 }, {
6659 .eraseblocks = { {256 * 1024, 1} },
6660 .block_erase = spi_block_erase_60,
6661 }, {
6662 .eraseblocks = { {256 * 1024, 1} },
6663 .block_erase = spi_block_erase_c7,
6664 }
6665 },
6666 .printlock = spi_prettyprint_status_register_bp4_srwd,
6667 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6668 .write = spi_chip_write_256,
6669 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6670 .voltage = {2700, 3600},
6671 },
6672
6673 {
6674 .vendor = "GigaDevice",
Alan Green86fc9cf2019-08-26 15:02:12 +10006675 .name = "GD25Q256D",
6676 .bustype = BUS_SPI,
6677 .manufacture_id = GIGADEVICE_ID,
6678 .model_id = GIGADEVICE_GD25Q256D,
6679 .total_size = 32768,
6680 .page_size = 256,
Nikolai Artemiev9de3f872021-10-20 22:32:25 +11006681 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN |
6682 FEATURE_WRSR_EXT | FEATURE_WRSR2,
Nikolai Artemieve64ef6d2021-03-23 17:15:40 +11006683 .tested = TEST_OK_PREW,
Alan Green86fc9cf2019-08-26 15:02:12 +10006684 .probe = probe_spi_rdid,
6685 .probe_timing = TIMING_ZERO,
6686 .block_erasers =
6687 {
6688 {
6689 .eraseblocks = { {4 * 1024, 8192} },
Nico Huber5374dc32019-10-04 16:16:15 +02006690 .block_erase = spi_block_erase_21,
6691 }, {
6692 .eraseblocks = { {4 * 1024, 8192} },
Alan Green86fc9cf2019-08-26 15:02:12 +10006693 .block_erase = spi_block_erase_20,
6694 }, {
6695 .eraseblocks = { {32 * 1024, 1024} },
Nico Huber5374dc32019-10-04 16:16:15 +02006696 .block_erase = spi_block_erase_5c,
6697 }, {
6698 .eraseblocks = { {32 * 1024, 1024} },
Alan Green86fc9cf2019-08-26 15:02:12 +10006699 .block_erase = spi_block_erase_52,
6700 }, {
6701 .eraseblocks = { {64 * 1024, 512} },
Nico Huber5374dc32019-10-04 16:16:15 +02006702 .block_erase = spi_block_erase_dc,
6703 }, {
6704 .eraseblocks = { {64 * 1024, 512} },
Alan Green86fc9cf2019-08-26 15:02:12 +10006705 .block_erase = spi_block_erase_d8,
6706 }, {
6707 .eraseblocks = { {32 * 1024 * 1024, 1} },
6708 .block_erase = spi_block_erase_60,
6709 }, {
6710 .eraseblocks = { {32 * 1024 * 1024, 1} },
6711 .block_erase = spi_block_erase_c7,
6712 }
6713 },
6714 .printlock = spi_prettyprint_status_register_bp3_srwd,
6715 .unlock = spi_disable_blockprotect,
6716 .write = spi_chip_write_256,
6717 .read = spi_chip_read,
6718 .voltage = {2700, 3600},
Nikolai Artemievc6c3f282021-10-20 23:34:15 +11006719 .reg_bits =
6720 {
6721 .srp = {STATUS1, 7, RW},
6722 .srl = {STATUS2, 6, RW},
6723 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}},
6724 .tb = {STATUS1, 6, RW},
6725 },
Nikolai Artemievc9feb1b2021-10-21 01:35:13 +11006726 .decode_range = decode_range_spi25,
Alan Green86fc9cf2019-08-26 15:02:12 +10006727 },
6728
6729 {
6730 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006731 .name = "GD25Q32(B)",
6732 .bustype = BUS_SPI,
6733 .manufacture_id = GIGADEVICE_ID,
6734 .model_id = GIGADEVICE_GD25Q32,
6735 .total_size = 4096,
6736 .page_size = 256,
6737 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Nikolai Artemiev9de3f872021-10-20 22:32:25 +11006738 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_WRSR2,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006739 .tested = TEST_OK_PREW,
6740 .probe = probe_spi_rdid,
6741 .probe_timing = TIMING_ZERO,
6742 .block_erasers =
6743 {
6744 {
6745 .eraseblocks = { {4 * 1024, 1024} },
6746 .block_erase = spi_block_erase_20,
6747 }, {
6748 .eraseblocks = { {32 * 1024, 128} },
6749 .block_erase = spi_block_erase_52,
6750 }, {
6751 .eraseblocks = { {64 * 1024, 64} },
6752 .block_erase = spi_block_erase_d8,
6753 }, {
6754 .eraseblocks = { {4 * 1024 * 1024, 1} },
6755 .block_erase = spi_block_erase_60,
6756 }, {
6757 .eraseblocks = { {4 * 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},
Nikolai Artemievc6c3f282021-10-20 23:34:15 +11006766 .reg_bits =
6767 {
6768 .srp = {STATUS1, 7, RW},
6769 .srl = {STATUS2, 0, RW},
6770 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
6771 .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */
6772 .sec = {STATUS1, 6, RW}, /* Called BP4 in datasheet, acts like SEC */
6773 .cmp = {STATUS2, 6, RW},
6774 },
Nikolai Artemievc9feb1b2021-10-21 01:35:13 +11006775 .decode_range = decode_range_spi25,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006776 },
6777
6778 {
6779 .vendor = "GigaDevice",
6780 .name = "GD25Q40(B)",
6781 .bustype = BUS_SPI,
6782 .manufacture_id = GIGADEVICE_ID,
6783 .model_id = GIGADEVICE_GD25Q40,
6784 .total_size = 512,
6785 .page_size = 256,
6786 .feature_bits = FEATURE_WRSR_WREN,
6787 .tested = TEST_UNTESTED,
6788 .probe = probe_spi_rdid,
6789 .probe_timing = TIMING_ZERO,
6790 .block_erasers =
6791 {
6792 {
6793 .eraseblocks = { {4 * 1024, 128} },
6794 .block_erase = spi_block_erase_20,
6795 }, {
6796 .eraseblocks = { {32 * 1024, 16} },
6797 .block_erase = spi_block_erase_52,
6798 }, {
6799 .eraseblocks = { {64 * 1024, 8} },
6800 .block_erase = spi_block_erase_d8,
6801 }, {
6802 .eraseblocks = { {512 * 1024, 1} },
6803 .block_erase = spi_block_erase_60,
6804 }, {
6805 .eraseblocks = { {512 * 1024, 1} },
6806 .block_erase = spi_block_erase_c7,
6807 }
6808 },
6809 .printlock = spi_prettyprint_status_register_bp4_srwd,
6810 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6811 .write = spi_chip_write_256,
6812 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6813 .voltage = {2700, 3600},
6814 },
6815
6816 {
6817 .vendor = "GigaDevice",
6818 .name = "GD25Q512",
6819 .bustype = BUS_SPI,
6820 .manufacture_id = GIGADEVICE_ID,
6821 .model_id = GIGADEVICE_GD25Q512,
6822 .total_size = 64,
6823 .page_size = 256,
6824 .feature_bits = FEATURE_WRSR_WREN,
6825 .tested = TEST_OK_PREW,
6826 .probe = probe_spi_rdid,
6827 .probe_timing = TIMING_ZERO,
6828 .block_erasers =
6829 {
6830 {
6831 .eraseblocks = { {4 * 1024, 16} },
6832 .block_erase = spi_block_erase_20,
6833 }, {
6834 .eraseblocks = { {32 * 1024, 2} },
6835 .block_erase = spi_block_erase_52,
6836 }, {
6837 .eraseblocks = { {64 * 1024, 1} },
6838 .block_erase = spi_block_erase_60,
6839 }, {
6840 .eraseblocks = { {64 * 1024, 1} },
6841 .block_erase = spi_block_erase_c7,
6842 }
6843 },
6844 .printlock = spi_prettyprint_status_register_bp4_srwd,
6845 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6846 .write = spi_chip_write_256,
6847 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6848 .voltage = {2700, 3600},
6849 },
6850
6851 {
6852 .vendor = "GigaDevice",
6853 .name = "GD25Q64(B)",
6854 .bustype = BUS_SPI,
6855 .manufacture_id = GIGADEVICE_ID,
6856 .model_id = GIGADEVICE_GD25Q64,
6857 .total_size = 8192,
6858 .page_size = 256,
6859 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6860 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6861 .tested = TEST_OK_PREW,
6862 .probe = probe_spi_rdid,
6863 .probe_timing = TIMING_ZERO,
6864 .block_erasers =
6865 {
6866 {
6867 .eraseblocks = { {4 * 1024, 2048} },
6868 .block_erase = spi_block_erase_20,
6869 }, {
6870 .eraseblocks = { {32 * 1024, 256} },
6871 .block_erase = spi_block_erase_52,
6872 }, {
6873 .eraseblocks = { {64 * 1024, 128} },
6874 .block_erase = spi_block_erase_d8,
6875 }, {
6876 .eraseblocks = { {8 * 1024 * 1024, 1} },
6877 .block_erase = spi_block_erase_60,
6878 }, {
6879 .eraseblocks = { {8 * 1024 * 1024, 1} },
6880 .block_erase = spi_block_erase_c7,
6881 }
6882 },
6883 .printlock = spi_prettyprint_status_register_bp4_srwd,
6884 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6885 .write = spi_chip_write_256,
6886 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6887 .voltage = {2700, 3600},
6888 },
6889
6890 {
6891 .vendor = "GigaDevice",
6892 .name = "GD25Q80(B)",
6893 .bustype = BUS_SPI,
6894 .manufacture_id = GIGADEVICE_ID,
6895 .model_id = GIGADEVICE_GD25Q80,
6896 .total_size = 1024,
6897 .page_size = 256,
6898 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
6899 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6900 .tested = TEST_OK_PREW,
6901 .probe = probe_spi_rdid,
6902 .probe_timing = TIMING_ZERO,
6903 .block_erasers =
6904 {
6905 {
6906 .eraseblocks = { {4 * 1024, 256} },
6907 .block_erase = spi_block_erase_20,
6908 }, {
6909 .eraseblocks = { {32 * 1024, 32} },
6910 .block_erase = spi_block_erase_52,
6911 }, {
6912 .eraseblocks = { {64 * 1024, 16} },
6913 .block_erase = spi_block_erase_d8,
6914 }, {
6915 .eraseblocks = { {1024 * 1024, 1} },
6916 .block_erase = spi_block_erase_60,
6917 }, {
6918 .eraseblocks = { {1024 * 1024, 1} },
6919 .block_erase = spi_block_erase_c7,
6920 }
6921 },
6922 .printlock = spi_prettyprint_status_register_bp4_srwd,
6923 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6924 .write = spi_chip_write_256,
6925 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6926 .voltage = {2700, 3600},
6927 },
6928
6929 {
6930 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006931 .name = "GD25T80",
6932 .bustype = BUS_SPI,
6933 .manufacture_id = GIGADEVICE_ID,
6934 .model_id = GIGADEVICE_GD25T80,
6935 .total_size = 1024,
6936 .page_size = 256,
6937 /* OTP: 256B total; enter 0x3A */
6938 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6939 .tested = TEST_UNTESTED,
6940 .probe = probe_spi_rdid,
6941 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10006942 .block_erasers =
6943 {
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006944 {
6945 .eraseblocks = { {4 * 1024, 256} },
6946 .block_erase = spi_block_erase_20,
6947 }, {
6948 .eraseblocks = { {64 * 1024, 16} },
6949 .block_erase = spi_block_erase_52,
6950 }, {
6951 .eraseblocks = { {64 * 1024, 16} },
6952 .block_erase = spi_block_erase_d8,
6953 }, {
6954 .eraseblocks = { {1024 * 1024, 1} },
6955 .block_erase = spi_block_erase_60,
6956 }, {
6957 .eraseblocks = { {1024 * 1024, 1} },
6958 .block_erase = spi_block_erase_c7,
6959 }
6960 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006961 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006962 .unlock = spi_disable_blockprotect,
6963 .write = spi_chip_write_256,
6964 .read = spi_chip_read,
Stefan Tauner352e50b2013-02-22 15:58:45 +00006965 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006966 },
6967
6968 {
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006969 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006970 .name = "GD25VQ16C",
6971 .bustype = BUS_SPI,
6972 .manufacture_id = GIGADEVICE_ID,
6973 .model_id = GIGADEVICE_GD25VQ16C,
6974 .total_size = 2 * 1024,
6975 .page_size = 256,
6976 /* Supports SFDP */
6977 /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */
6978 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6979 .tested = TEST_UNTESTED,
6980 .probe = probe_spi_rdid,
6981 .probe_timing = TIMING_ZERO,
6982 .block_erasers =
6983 {
6984 {
6985 .eraseblocks = { { 4 * 1024, 512} },
6986 .block_erase = spi_block_erase_20,
6987 }, {
6988 .eraseblocks = { { 32 * 1024, 64} },
6989 .block_erase = spi_block_erase_52,
6990 }, {
6991 .eraseblocks = { { 64 * 1024, 32} },
6992 .block_erase = spi_block_erase_d8,
6993 }, {
6994 .eraseblocks = { {2 * 1024 * 1024, 1} },
6995 .block_erase = spi_block_erase_60,
6996 }, {
6997 .eraseblocks = { {2 * 1024 * 1024, 1} },
6998 .block_erase = spi_block_erase_c7,
6999 }
7000 },
7001 .printlock = spi_prettyprint_status_register_bp4_srwd,
7002 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7003 .write = spi_chip_write_256,
7004 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7005 .voltage = {2300, 3600},
7006 },
7007
7008 {
7009 .vendor = "GigaDevice",
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007010 .name = "GD25VQ21B",
7011 .bustype = BUS_SPI,
7012 .manufacture_id = GIGADEVICE_ID,
7013 .model_id = GIGADEVICE_GD25VQ21B,
7014 .total_size = 256,
7015 .page_size = 256,
7016 /* OTP: 1536B total; read 0x48, write 0x42, erase 0x44 */
7017 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7018 .tested = TEST_UNTESTED,
7019 .probe = probe_spi_rdid,
7020 .probe_timing = TIMING_ZERO,
7021 .block_erasers =
7022 {
7023 {
7024 .eraseblocks = { { 4 * 1024, 64} },
7025 .block_erase = spi_block_erase_20,
7026 }, {
7027 .eraseblocks = { { 32 * 1024, 8} },
7028 .block_erase = spi_block_erase_52,
7029 }, {
7030 .eraseblocks = { { 64 * 1024, 4} },
7031 .block_erase = spi_block_erase_d8,
7032 }, {
7033 .eraseblocks = { {256 * 1024, 1} },
7034 .block_erase = spi_block_erase_60,
7035 }, {
7036 .eraseblocks = { {256 * 1024, 1} },
7037 .block_erase = spi_block_erase_c7,
7038 }
7039 },
7040 .printlock = spi_prettyprint_status_register_bp4_srwd,
7041 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7042 .write = spi_chip_write_256,
7043 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7044 .voltage = {2300, 3600},
7045 },
7046
7047 {
7048 .vendor = "GigaDevice",
7049 .name = "GD25VQ40C",
7050 .bustype = BUS_SPI,
7051 .manufacture_id = GIGADEVICE_ID,
7052 .model_id = GIGADEVICE_GD25VQ41B,
7053 .total_size = 512,
7054 .page_size = 256,
7055 /* Supports SFDP */
7056 /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */
7057 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7058 .tested = TEST_UNTESTED,
7059 .probe = probe_spi_rdid,
7060 .probe_timing = TIMING_ZERO,
7061 .block_erasers =
7062 {
7063 {
7064 .eraseblocks = { { 4 * 1024, 128} },
7065 .block_erase = spi_block_erase_20,
7066 }, {
7067 .eraseblocks = { { 32 * 1024, 16} },
7068 .block_erase = spi_block_erase_52,
7069 }, {
7070 .eraseblocks = { { 64 * 1024, 8} },
7071 .block_erase = spi_block_erase_d8,
7072 }, {
7073 .eraseblocks = { {512 * 1024, 1} },
7074 .block_erase = spi_block_erase_60,
7075 }, {
7076 .eraseblocks = { {512 * 1024, 1} },
7077 .block_erase = spi_block_erase_c7,
7078 }
7079 },
7080 .printlock = spi_prettyprint_status_register_bp4_srwd,
7081 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7082 .write = spi_chip_write_256,
7083 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7084 .voltage = {2300, 3600},
7085 },
7086
7087 {
7088 .vendor = "GigaDevice",
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007089 .name = "GD25VQ41B",
7090 .bustype = BUS_SPI,
7091 .manufacture_id = GIGADEVICE_ID,
7092 .model_id = GIGADEVICE_GD25VQ41B,
7093 .total_size = 512,
7094 .page_size = 256,
7095 /* OTP: 1536B total; read 0x48, write 0x42, erase 0x44 */
7096 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner0be072c2016-03-13 15:16:30 +00007097 .tested = TEST_OK_PREW,
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007098 .probe = probe_spi_rdid,
7099 .probe_timing = TIMING_ZERO,
Stefan Tauner0be072c2016-03-13 15:16:30 +00007100 .block_erasers =
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007101 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00007102 {
7103 .eraseblocks = { { 4 * 1024, 128} },
7104 .block_erase = spi_block_erase_20,
7105 }, {
7106 .eraseblocks = { { 32 * 1024, 16} },
7107 .block_erase = spi_block_erase_52,
7108 }, {
7109 .eraseblocks = { { 64 * 1024, 8} },
7110 .block_erase = spi_block_erase_d8,
7111 }, {
7112 .eraseblocks = { {512 * 1024, 1} },
7113 .block_erase = spi_block_erase_60,
7114 }, {
7115 .eraseblocks = { {512 * 1024, 1} },
7116 .block_erase = spi_block_erase_c7,
7117 }
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007118 },
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007119 .printlock = spi_prettyprint_status_register_bp4_srwd,
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007120 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7121 .write = spi_chip_write_256,
7122 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7123 .voltage = {2300, 3600},
7124 },
7125
7126 {
7127 .vendor = "GigaDevice",
7128 .name = "GD25VQ80C",
7129 .bustype = BUS_SPI,
7130 .manufacture_id = GIGADEVICE_ID,
7131 .model_id = GIGADEVICE_GD25VQ80C,
7132 .total_size = 1024,
7133 .page_size = 256,
7134 /* Supports SFDP */
7135 /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */
7136 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7137 .tested = TEST_UNTESTED,
7138 .probe = probe_spi_rdid,
7139 .probe_timing = TIMING_ZERO,
7140 .block_erasers =
7141 {
7142 {
7143 .eraseblocks = { { 4 * 1024, 256} },
7144 .block_erase = spi_block_erase_20,
7145 }, {
7146 .eraseblocks = { { 32 * 1024, 32} },
7147 .block_erase = spi_block_erase_52,
7148 }, {
7149 .eraseblocks = { { 64 * 1024, 16} },
7150 .block_erase = spi_block_erase_d8,
7151 }, {
7152 .eraseblocks = { {1024 * 1024, 1} },
7153 .block_erase = spi_block_erase_60,
7154 }, {
7155 .eraseblocks = { {1024 * 1024, 1} },
7156 .block_erase = spi_block_erase_c7,
7157 }
7158 },
7159 .printlock = spi_prettyprint_status_register_bp4_srwd,
7160 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7161 .write = spi_chip_write_256,
7162 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7163 .voltage = {2300, 3600},
7164 },
7165
7166 {
Dino Li3214f582020-03-25 17:39:53 +08007167 .vendor = "GigaDevice",
7168 .name = "GD25WQ80E",
7169 .bustype = BUS_SPI,
7170 .manufacture_id = GIGADEVICE_ID,
7171 .model_id = GIGADEVICE_GD25WQ80E,
7172 .total_size = 1024,
7173 .page_size = 256,
7174 .feature_bits = FEATURE_WRSR_WREN,
7175 .tested = TEST_OK_PREW,
7176 .probe = probe_spi_rdid,
7177 .probe_timing = TIMING_ZERO,
7178 .block_erasers =
7179 {
7180 {
7181 .eraseblocks = { {4 * 1024, 256} },
7182 .block_erase = spi_block_erase_20,
7183 }, {
7184 .eraseblocks = { {32 * 1024, 32} },
7185 .block_erase = spi_block_erase_52,
7186 }, {
7187 .eraseblocks = { {64 * 1024, 16} },
7188 .block_erase = spi_block_erase_d8,
7189 }, {
7190 .eraseblocks = { {1 * 1024 * 1024, 1} },
7191 .block_erase = spi_block_erase_60,
7192 }, {
7193 .eraseblocks = { {1 * 1024 * 1024, 1} },
7194 .block_erase = spi_block_erase_c7,
7195 }
7196 },
7197 .printlock = spi_prettyprint_status_register_bp4_srwd,
7198 .unlock = spi_disable_blockprotect_bp4_srwd,
7199 .write = spi_chip_write_256,
7200 .read = spi_chip_read,
7201 .voltage = {1650, 3600},
7202 },
7203
7204 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007205 .vendor = "Hyundai",
7206 .name = "HY29F002B",
7207 .bustype = BUS_PARALLEL,
7208 .manufacture_id = HYUNDAI_ID,
7209 .model_id = HYUNDAI_HY29F002B,
7210 .total_size = 256,
7211 .page_size = 256 * 1024,
7212 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007213 .tested = TEST_UNTESTED,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007214 .probe = probe_jedec,
7215 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007216 .block_erasers =
7217 {
7218 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007219 .eraseblocks = {
7220 {16 * 1024, 1},
7221 {8 * 1024, 2},
7222 {32 * 1024, 1},
7223 {64 * 1024, 3},
7224 },
7225 .block_erase = erase_sector_jedec,
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007226 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007227 .eraseblocks = { {256 * 1024, 1} },
7228 .block_erase = erase_chip_block_jedec,
7229 },
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007230 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10007231 .write = write_jedec_1,
7232 .read = read_memmapped,
7233 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007234 },
7235
7236 {
David Borgc96a8bd2010-06-21 16:12:22 +00007237 .vendor = "Hyundai",
7238 .name = "HY29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007239 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00007240 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007241 .model_id = HYUNDAI_HY29F002T,
David Borgc96a8bd2010-06-21 16:12:22 +00007242 .total_size = 256,
7243 .page_size = 256 * 1024,
7244 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007245 .tested = TEST_OK_PRE,
David Borgc96a8bd2010-06-21 16:12:22 +00007246 .probe = probe_jedec,
7247 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7248 .block_erasers =
7249 {
7250 {
7251 .eraseblocks = {
7252 {64 * 1024, 3},
7253 {32 * 1024, 1},
7254 {8 * 1024, 2},
7255 {16 * 1024, 1},
7256 },
7257 .block_erase = erase_sector_jedec,
7258 }, {
7259 .eraseblocks = { {256 * 1024, 1} },
7260 .block_erase = erase_chip_block_jedec,
7261 },
7262 },
7263 .write = write_jedec_1,
7264 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007265 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00007266 },
7267
7268 {
7269 .vendor = "Hyundai",
Joshua Roysf1324e02010-09-16 00:51:51 +00007270 .name = "HY29F040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007271 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00007272 .manufacture_id = HYUNDAI_ID,
7273 .model_id = HYUNDAI_HY29F040A,
7274 .total_size = 512,
7275 .page_size = 64 * 1024,
7276 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
7277 .tested = TEST_UNTESTED,
7278 .probe = probe_jedec,
7279 .probe_timing = TIMING_ZERO,
7280 .block_erasers =
7281 {
7282 {
7283 .eraseblocks = { {64 * 1024, 8} },
7284 .block_erase = erase_sector_jedec,
7285 }, {
7286 .eraseblocks = { {512 * 1024, 1} },
7287 .block_erase = erase_chip_block_jedec,
7288 },
7289 },
7290 .write = write_jedec_1,
7291 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007292 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00007293 },
7294
7295 {
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007296 .vendor = "ISSI",
Angel Pons2ef47f32018-09-30 16:47:30 +02007297 .name = "IS25LP064",
7298 .bustype = BUS_SPI,
7299 .manufacture_id = ISSI_ID_SPI,
7300 .model_id = ISSI_IS25LP064,
7301 .total_size = 8192,
7302 .page_size = 256,
7303 /* OTP: 1024B total; read 0x48; write 0x42 */
7304 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7305 .tested = TEST_UNTESTED,
7306 .probe = probe_spi_rdid,
7307 .probe_timing = TIMING_ZERO,
7308 .block_erasers =
7309 {
7310 {
7311 .eraseblocks = { {4 * 1024, 2048} },
7312 .block_erase = spi_block_erase_20,
7313 }, {
7314 .eraseblocks = { {4 * 1024, 2048} },
7315 .block_erase = spi_block_erase_d7,
7316 }, {
7317 .eraseblocks = { {32 * 1024, 256} },
7318 .block_erase = spi_block_erase_52,
7319 }, {
7320 .eraseblocks = { {64 * 1024, 128} },
7321 .block_erase = spi_block_erase_d8,
7322 }, {
7323 .eraseblocks = { {8 * 1024 * 1024, 1} },
7324 .block_erase = spi_block_erase_60,
7325 }, {
7326 .eraseblocks = { {8 * 1024 * 1024, 1} },
7327 .block_erase = spi_block_erase_c7,
7328 }
7329 },
7330 .unlock = spi_disable_blockprotect,
7331 .write = spi_chip_write_256,
7332 .read = spi_chip_read,
7333 .voltage = {2300, 3600},
7334 },
7335
7336 {
7337 .vendor = "ISSI",
David Hendricks3083ed92017-05-02 13:25:56 -07007338 .name = "IS25LP128",
7339 .bustype = BUS_SPI,
7340 .manufacture_id = ISSI_ID_SPI,
7341 .model_id = ISSI_IS25LP128,
7342 .total_size = 16384,
7343 .page_size = 256,
7344 /* OTP: 1024B total; read 0x48; write 0x42 */
7345 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7346 .tested = TEST_OK_PREW,
7347 .probe = probe_spi_rdid,
7348 .probe_timing = TIMING_ZERO,
7349 .block_erasers =
7350 {
7351 {
7352 .eraseblocks = { {4 * 1024, 4096} },
7353 .block_erase = spi_block_erase_20,
7354 }, {
7355 .eraseblocks = { {4 * 1024, 4096} },
7356 .block_erase = spi_block_erase_d7,
7357 }, {
7358 .eraseblocks = { {32 * 1024, 512} },
7359 .block_erase = spi_block_erase_52,
7360 }, {
7361 .eraseblocks = { {64 * 1024, 256} },
7362 .block_erase = spi_block_erase_d8,
7363 }, {
7364 .eraseblocks = { {16 * 1024 * 1024, 1} },
7365 .block_erase = spi_block_erase_60,
7366 }, {
7367 .eraseblocks = { {16 * 1024 * 1024, 1} },
7368 .block_erase = spi_block_erase_c7,
7369 }
7370 },
7371 .unlock = spi_disable_blockprotect,
7372 .write = spi_chip_write_256,
7373 .read = spi_chip_read,
7374 .voltage = {2300, 3600},
7375 },
7376
7377 {
7378 .vendor = "ISSI",
David Hendricks61818dc2018-10-28 01:02:21 +00007379 .name = "IS25LP256",
7380 .bustype = BUS_SPI,
7381 .manufacture_id = ISSI_ID_SPI,
7382 .model_id = ISSI_IS25LP256,
7383 .total_size = 32768,
7384 .page_size = 256,
7385 /* supports SFDP */
7386 /* OTP: 1024B total; read 0x68; write 0x62, erase 0x64, read ID 0x4B */
7387 /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */
7388 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA | FEATURE_4BA_ENTER_EAR7,
7389 .tested = TEST_OK_PREW,
7390 .probe = probe_spi_rdid,
7391 .probe_timing = TIMING_ZERO,
7392 .block_erasers =
7393 {
7394 {
7395 .eraseblocks = { {4 * 1024, 8192} },
7396 .block_erase = spi_block_erase_21,
7397 }, {
7398 .eraseblocks = { {4 * 1024, 8192} },
7399 .block_erase = spi_block_erase_20,
7400 /* could also use spi_block_erase_d7 */
7401 }, {
7402 .eraseblocks = { {32 * 1024, 1024} },
7403 .block_erase = spi_block_erase_5c,
7404 }, {
7405 .eraseblocks = { {32 * 1024, 1024} },
7406 .block_erase = spi_block_erase_52,
7407 }, {
7408 .eraseblocks = { {64 * 1024, 512} },
7409 .block_erase = spi_block_erase_dc,
7410 }, {
7411 .eraseblocks = { {64 * 1024, 512} },
7412 .block_erase = spi_block_erase_d8,
7413 }, {
7414 .eraseblocks = { {32 * 1024 * 1024, 1} },
7415 .block_erase = spi_block_erase_60,
7416 }, {
7417 .eraseblocks = { {32 * 1024 * 1024, 1} },
7418 .block_erase = spi_block_erase_c7,
7419 }
7420 },
7421 .unlock = spi_disable_blockprotect,
7422 .write = spi_chip_write_256,
7423 .read = spi_chip_read,
7424 .voltage = {2300, 3600},
7425 },
7426
7427 {
7428 .vendor = "ISSI",
Nico Huberb27b8d12018-10-02 20:46:21 +02007429 .name = "IS25WP032",
7430 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +10007431 .manufacture_id = ISSI_ID_SPI,
Nico Huberb27b8d12018-10-02 20:46:21 +02007432 .model_id = ISSI_IS25WP032,
7433 .total_size = 4096,
7434 .page_size = 256,
7435 /* OTP: 1024B total; read 0x48; write 0x42 */
7436 /* QPI enable 0x35, disable 0xF5 */
7437 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7438 .tested = TEST_UNTESTED,
7439 .probe = probe_spi_rdid,
7440 .probe_timing = TIMING_ZERO,
7441 .block_erasers =
7442 {
7443 {
7444 .eraseblocks = { {4 * 1024, 1024} },
7445 .block_erase = spi_block_erase_20,
7446 }, {
7447 .eraseblocks = { {4 * 1024, 1024} },
7448 .block_erase = spi_block_erase_d7,
7449 }, {
7450 .eraseblocks = { {32 * 1024, 128} },
7451 .block_erase = spi_block_erase_52,
7452 }, {
7453 .eraseblocks = { {64 * 1024, 64} },
7454 .block_erase = spi_block_erase_d8,
7455 }, {
7456 .eraseblocks = { {4 * 1024 * 1024, 1} },
7457 .block_erase = spi_block_erase_60,
7458 }, {
7459 .eraseblocks = { {4 * 1024 * 1024, 1} },
7460 .block_erase = spi_block_erase_c7,
7461 }
7462 },
7463 .unlock = spi_disable_blockprotect,
7464 .write = spi_chip_write_256,
7465 .read = spi_chip_read,
7466 .voltage = {1650, 1950},
7467 },
7468
7469 {
7470 .vendor = "ISSI",
7471 .name = "IS25WP064",
7472 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +10007473 .manufacture_id = ISSI_ID_SPI,
Nico Huberb27b8d12018-10-02 20:46:21 +02007474 .model_id = ISSI_IS25WP064,
7475 .total_size = 8192,
7476 .page_size = 256,
7477 /* OTP: 1024B total; read 0x48; write 0x42 */
7478 /* QPI enable 0x35, disable 0xF5 */
7479 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7480 .tested = TEST_OK_PREW,
7481 .probe = probe_spi_rdid,
7482 .probe_timing = TIMING_ZERO,
7483 .block_erasers =
7484 {
7485 {
7486 .eraseblocks = { {4 * 1024, 2048} },
7487 .block_erase = spi_block_erase_20,
7488 }, {
7489 .eraseblocks = { {4 * 1024, 2048} },
7490 .block_erase = spi_block_erase_d7,
7491 }, {
7492 .eraseblocks = { {32 * 1024, 256} },
7493 .block_erase = spi_block_erase_52,
7494 }, {
7495 .eraseblocks = { {64 * 1024, 128} },
7496 .block_erase = spi_block_erase_d8,
7497 }, {
7498 .eraseblocks = { {8 * 1024 * 1024, 1} },
7499 .block_erase = spi_block_erase_60,
7500 }, {
7501 .eraseblocks = { {8 * 1024 * 1024, 1} },
7502 .block_erase = spi_block_erase_c7,
7503 }
7504 },
7505 .unlock = spi_disable_blockprotect,
7506 .write = spi_chip_write_256,
7507 .read = spi_chip_read,
7508 .voltage = {1650, 1950},
7509 },
7510
7511 {
7512 .vendor = "ISSI",
David Hendricks3083ed92017-05-02 13:25:56 -07007513 .name = "IS25WP128",
7514 .bustype = BUS_SPI,
7515 .manufacture_id = ISSI_ID_SPI,
7516 .model_id = ISSI_IS25WP128,
7517 .total_size = 16384,
7518 .page_size = 256,
7519 /* OTP: 1024B total; read 0x48; write 0x42 */
Nico Huberb27b8d12018-10-02 20:46:21 +02007520 /* QPI enable 0x35, disable 0xF5 */
7521 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
David Hendricks3083ed92017-05-02 13:25:56 -07007522 .tested = TEST_OK_PREW,
7523 .probe = probe_spi_rdid,
7524 .probe_timing = TIMING_ZERO,
7525 .block_erasers =
7526 {
7527 {
7528 .eraseblocks = { {4 * 1024, 4096} },
7529 .block_erase = spi_block_erase_20,
7530 }, {
7531 .eraseblocks = { {4 * 1024, 4096} },
7532 .block_erase = spi_block_erase_d7,
7533 }, {
7534 .eraseblocks = { {32 * 1024, 512} },
7535 .block_erase = spi_block_erase_52,
7536 }, {
7537 .eraseblocks = { {64 * 1024, 256} },
7538 .block_erase = spi_block_erase_d8,
7539 }, {
7540 .eraseblocks = { {16 * 1024 * 1024, 1} },
7541 .block_erase = spi_block_erase_60,
7542 }, {
7543 .eraseblocks = { {16 * 1024 * 1024, 1} },
7544 .block_erase = spi_block_erase_c7,
7545 }
7546 },
7547 .unlock = spi_disable_blockprotect,
7548 .write = spi_chip_write_256,
7549 .read = spi_chip_read,
7550 .voltage = {1650, 1950},
7551 },
7552
7553 {
7554 .vendor = "ISSI",
David Hendricks61818dc2018-10-28 01:02:21 +00007555 .name = "IS25WP256",
7556 .bustype = BUS_SPI,
7557 .manufacture_id = ISSI_ID_SPI,
7558 .model_id = ISSI_IS25WP256,
7559 .total_size = 32768,
7560 .page_size = 256,
7561 /* supports SFDP */
7562 /* OTP: 1024B total; read 0x68; write 0x62, erase 0x64, read ID 0x4B */
7563 /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */
7564 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA | FEATURE_4BA_ENTER_EAR7,
7565 .tested = TEST_OK_PREW,
7566 .probe = probe_spi_rdid,
7567 .probe_timing = TIMING_ZERO,
7568 .block_erasers =
7569 {
7570 {
7571 .eraseblocks = { {4 * 1024, 8192} },
7572 .block_erase = spi_block_erase_21,
7573 }, {
7574 .eraseblocks = { {4 * 1024, 8192} },
7575 .block_erase = spi_block_erase_20,
7576 /* could also use spi_block_erase_d7 */
7577 }, {
7578 .eraseblocks = { {32 * 1024, 1024} },
7579 .block_erase = spi_block_erase_5c,
7580 }, {
7581 .eraseblocks = { {32 * 1024, 1024} },
7582 .block_erase = spi_block_erase_52,
7583 }, {
7584 .eraseblocks = { {64 * 1024, 512} },
7585 .block_erase = spi_block_erase_dc,
7586 }, {
7587 .eraseblocks = { {64 * 1024, 512} },
7588 .block_erase = spi_block_erase_d8,
7589 }, {
7590 .eraseblocks = { {32 * 1024 * 1024, 1} },
7591 .block_erase = spi_block_erase_60,
7592 }, {
7593 .eraseblocks = { {32 * 1024 * 1024, 1} },
7594 .block_erase = spi_block_erase_c7,
7595 }
7596 },
7597 .unlock = spi_disable_blockprotect,
7598 .write = spi_chip_write_256,
7599 .read = spi_chip_read,
7600 .voltage = {1650, 1950},
7601 },
7602
7603 {
7604 .vendor = "ISSI",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007605 .name = "IS29GL064B",
7606 .bustype = BUS_PARALLEL,
7607 .manufacture_id = ISSI_ID,
7608 .model_id = ISSI_PMC_IS29GL064B,
7609 .total_size = 8192,
7610 .page_size = 128 * 1024, /* actual page size is 16 */
7611 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7612 .tested = TEST_UNTESTED,
7613 .probe = probe_jedec_29gl,
7614 .probe_timing = TIMING_ZERO,
7615 .block_erasers =
7616 {
7617 {
7618 .eraseblocks = {
7619 {8 * 1024, 8},
7620 {64 * 1024, 127},
7621 },
7622 .block_erase = erase_sector_jedec,
7623 }, {
7624 .eraseblocks = { {8 * 1024 * 1024, 1} },
7625 .block_erase = erase_chip_block_jedec,
7626 },
7627 },
7628 .write = write_jedec_1,
7629 .read = read_memmapped,
7630 .voltage = {2700, 3600},
7631 },
7632
7633 {
7634 .vendor = "ISSI",
Alan Green1f9cc7d2019-07-01 11:10:45 +10007635 .name = "IS29GL064H/L",
7636 .bustype = BUS_PARALLEL,
7637 .manufacture_id = ISSI_ID,
7638 .model_id = ISSI_PMC_IS29GL064HL,
7639 .total_size = 8192,
7640 .page_size = 128 * 1024, /* actual page size is 16 */
7641 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7642 .tested = TEST_UNTESTED,
7643 .probe = probe_jedec_29gl,
7644 .probe_timing = TIMING_ZERO,
7645 .block_erasers =
7646 {
7647 {
7648 .eraseblocks = { {64 * 1024, 128} },
7649 .block_erase = erase_sector_jedec,
7650 }, {
7651 .eraseblocks = { {8 * 1024 * 1024, 1} },
7652 .block_erase = erase_chip_block_jedec,
7653 },
7654 },
7655 .write = write_jedec_1,
7656 .read = read_memmapped,
7657 .voltage = {2700, 3600},
7658 },
7659
7660 {
7661 .vendor = "ISSI",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007662 .name = "IS29GL064T",
7663 .bustype = BUS_PARALLEL,
7664 .manufacture_id = ISSI_ID,
7665 .model_id = ISSI_PMC_IS29GL064T,
7666 .total_size = 8192,
7667 .page_size = 128 * 1024, /* actual page size is 16 */
7668 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7669 .tested = TEST_UNTESTED,
7670 .probe = probe_jedec_29gl,
7671 .probe_timing = TIMING_ZERO,
7672 .block_erasers =
7673 {
7674 {
7675 .eraseblocks = {
7676 {64 * 1024, 127},
7677 {8 * 1024, 8},
7678 },
7679 .block_erase = erase_sector_jedec,
7680 }, {
7681 .eraseblocks = { {8 * 1024 * 1024, 1} },
7682 .block_erase = erase_chip_block_jedec,
7683 },
7684 },
7685 .write = write_jedec_1,
7686 .read = read_memmapped,
7687 .voltage = {2700, 3600},
7688 },
7689
7690 {
7691 .vendor = "ISSI",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007692 .name = "IS29GL128H/L",
7693 .bustype = BUS_PARALLEL,
7694 .manufacture_id = ISSI_ID,
7695 .model_id = ISSI_PMC_IS29GL128HL,
7696 .total_size = 16384,
7697 .page_size = 128 * 1024, /* actual page size is 16 */
7698 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7699 .tested = TEST_UNTESTED,
7700 .probe = probe_jedec_29gl,
7701 .probe_timing = TIMING_ZERO,
7702 .block_erasers =
7703 {
7704 {
7705 .eraseblocks = { {128 * 1024, 128} },
7706 .block_erase = erase_sector_jedec,
7707 }, {
7708 .eraseblocks = { {16 * 1024 * 1024, 1} },
7709 .block_erase = erase_chip_block_jedec,
7710 },
7711 },
7712 .write = write_jedec_1,
7713 .read = read_memmapped,
7714 .voltage = {2700, 3600},
7715 },
7716
7717 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007718 .vendor = "Intel",
7719 .name = "25F160S33B8",
7720 .bustype = BUS_SPI,
7721 .manufacture_id = INTEL_ID,
7722 .model_id = INTEL_25F160S33B8,
7723 .total_size = 2048,
7724 .page_size = 256,
7725 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
7726 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7727 .tested = TEST_UNTESTED,
7728 .probe = probe_spi_rdid,
7729 .probe_timing = TIMING_ZERO,
7730 .block_erasers =
7731 {
7732 {
7733 /* This chip supports erasing of the 8 so-called "parameter blocks" with
7734 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
7735 * have no effect on the memory contents, but sets a flag in the SR.
7736 .eraseblocks = {
7737 {8 * 1024, 8},
7738 {64 * 1024, 31} // inaccessible
7739 },
7740 .block_erase = spi_block_erase_40,
7741 }, { */
7742 .eraseblocks = { {64 * 1024, 32} },
7743 .block_erase = spi_block_erase_d8,
7744 }, {
7745 .eraseblocks = { {2 * 1024 * 1024, 1} },
7746 .block_erase = spi_block_erase_c7,
7747 }
7748 },
7749 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
7750 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
7751 .write = spi_chip_write_256,
7752 .read = spi_chip_read, /* also fast read 0x0B */
7753 .voltage = {2700, 3600},
7754 },
7755
7756 {
7757 .vendor = "Intel",
7758 .name = "25F160S33T8",
7759 .bustype = BUS_SPI,
7760 .manufacture_id = INTEL_ID,
7761 .model_id = INTEL_25F160S33T8,
7762 .total_size = 2048,
7763 .page_size = 256,
7764 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
7765 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7766 .tested = TEST_UNTESTED,
7767 .probe = probe_spi_rdid,
7768 .probe_timing = TIMING_ZERO,
7769 .block_erasers =
7770 {
7771 {
7772 /* This chip supports erasing of the 8 so-called "parameter blocks" with
7773 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
7774 * have no effect on the memory contents, but sets a flag in the SR.
7775 .eraseblocks = {
7776 {64 * 1024, 31}, // inaccessible
7777 {8 * 1024, 8}
7778 },
7779 .block_erase = spi_block_erase_40,
7780 }, { */
7781 .eraseblocks = { {64 * 1024, 32} },
7782 .block_erase = spi_block_erase_d8,
7783 }, {
7784 .eraseblocks = { {2 * 1024 * 1024, 1} },
7785 .block_erase = spi_block_erase_c7,
7786 }
7787 },
7788 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
7789 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
7790 .write = spi_chip_write_256,
7791 .read = spi_chip_read, /* also fast read 0x0B */
7792 .voltage = {2700, 3600},
7793 },
7794
7795 {
7796 .vendor = "Intel",
7797 .name = "25F320S33B8",
7798 .bustype = BUS_SPI,
7799 .manufacture_id = INTEL_ID,
7800 .model_id = INTEL_25F320S33B8,
7801 .total_size = 4096,
7802 .page_size = 256,
7803 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
7804 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7805 .tested = TEST_UNTESTED,
7806 .probe = probe_spi_rdid,
7807 .probe_timing = TIMING_ZERO,
7808 .block_erasers =
7809 {
7810 {
7811 /* This chip supports erasing of the 8 so-called "parameter blocks" with
7812 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
7813 * have no effect on the memory contents, but sets a flag in the SR.
7814 .eraseblocks = {
7815 {8 * 1024, 8},
7816 {64 * 1024, 63} // inaccessible
7817 },
7818 .block_erase = spi_block_erase_40,
7819 }, { */
7820 .eraseblocks = { {64 * 1024, 64} },
7821 .block_erase = spi_block_erase_d8,
7822 }, {
7823 .eraseblocks = { {4 * 1024 * 1024, 1} },
7824 .block_erase = spi_block_erase_c7,
7825 }
7826 },
7827 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
7828 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
7829 .write = spi_chip_write_256,
7830 .read = spi_chip_read, /* also fast read 0x0B */
7831 .voltage = {2700, 3600},
7832 },
7833
7834 {
7835 .vendor = "Intel",
7836 .name = "25F320S33T8",
7837 .bustype = BUS_SPI,
7838 .manufacture_id = INTEL_ID,
7839 .model_id = INTEL_25F320S33T8,
7840 .total_size = 4096,
7841 .page_size = 256,
7842 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
7843 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7844 .tested = TEST_UNTESTED,
7845 .probe = probe_spi_rdid,
7846 .probe_timing = TIMING_ZERO,
7847 .block_erasers =
7848 {
7849 {
7850 /* This chip supports erasing of the 8 so-called "parameter blocks" with
7851 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
7852 * have no effect on the memory contents, but sets a flag in the SR.
7853 .eraseblocks = {
7854 {64 * 1024, 63}, // inaccessible
7855 {8 * 1024, 8}
7856 },
7857 .block_erase = spi_block_erase_40,
7858 }, { */
7859 .eraseblocks = { {64 * 1024, 64} },
7860 .block_erase = spi_block_erase_d8,
7861 }, {
7862 .eraseblocks = { {4 * 1024 * 1024, 1} },
7863 .block_erase = spi_block_erase_c7,
7864 }
7865 },
7866 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
7867 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
7868 .write = spi_chip_write_256,
7869 .read = spi_chip_read, /* also fast read 0x0B */
7870 .voltage = {2700, 3600},
7871 },
7872
7873 {
7874 .vendor = "Intel",
7875 .name = "25F640S33B8",
7876 .bustype = BUS_SPI,
7877 .manufacture_id = INTEL_ID,
7878 .model_id = INTEL_25F640S33B8,
7879 .total_size = 8192,
7880 .page_size = 256,
7881 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
7882 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Zoltan HERPAIe0e8b2b2020-08-08 16:04:34 +02007883 .tested = TEST_OK_PREW,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007884 .probe = probe_spi_rdid,
7885 .probe_timing = TIMING_ZERO,
7886 .block_erasers =
7887 {
7888 {
7889 /* This chip supports erasing of the 8 so-called "parameter blocks" with
7890 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
7891 * have no effect on the memory contents, but sets a flag in the SR.
7892 .eraseblocks = {
7893 {8 * 1024, 8},
7894 {64 * 1024, 127} // inaccessible
7895 },
7896 .block_erase = spi_block_erase_40,
7897 }, { */
7898 .eraseblocks = { {64 * 1024, 128} },
7899 .block_erase = spi_block_erase_d8,
7900 }, {
7901 .eraseblocks = { {8 * 1024 * 1024, 1} },
7902 .block_erase = spi_block_erase_c7,
7903 }
7904 },
7905 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
7906 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
7907 .write = spi_chip_write_256,
7908 .read = spi_chip_read, /* also fast read 0x0B */
7909 .voltage = {2700, 3600},
7910 },
7911
7912 {
7913 .vendor = "Intel",
7914 .name = "25F640S33T8",
7915 .bustype = BUS_SPI,
7916 .manufacture_id = INTEL_ID,
7917 .model_id = INTEL_25F640S33T8,
7918 .total_size = 8192,
7919 .page_size = 256,
7920 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
7921 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7922 .tested = TEST_UNTESTED,
7923 .probe = probe_spi_rdid,
7924 .probe_timing = TIMING_ZERO,
7925 .block_erasers =
7926 {
7927 {
7928 /* This chip supports erasing of the 8 so-called "parameter blocks" with
7929 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
7930 * have no effect on the memory contents, but sets a flag in the SR.
7931 .eraseblocks = {
7932 {64 * 1024, 127}, // inaccessible
7933 {8 * 1024, 8}
7934 },
7935 .block_erase = spi_block_erase_40,
7936 }, { */
7937 .eraseblocks = { {64 * 1024, 128} },
7938 .block_erase = spi_block_erase_d8,
7939 }, {
7940 .eraseblocks = { {8 * 1024 * 1024, 1} },
7941 .block_erase = spi_block_erase_c7,
7942 }
7943 },
7944 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
7945 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
7946 .write = spi_chip_write_256,
7947 .read = spi_chip_read, /* also fast read 0x0B */
7948 .voltage = {2700, 3600},
7949 },
7950
7951 {
7952 .vendor = "Intel",
7953 .name = "28F001BN/BX-B",
7954 .bustype = BUS_PARALLEL,
7955 .manufacture_id = INTEL_ID,
7956 .model_id = INTEL_28F001B,
7957 .total_size = 128,
7958 .page_size = 128 * 1024, /* 8k + 2x4k + 112k */
7959 .tested = TEST_UNTESTED,
7960 .probe = probe_jedec,
7961 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7962 .block_erasers =
7963 {
7964 {
7965 .eraseblocks = {
7966 {8 * 1024, 1},
7967 {4 * 1024, 2},
7968 {112 * 1024, 1},
7969 },
7970 .block_erase = erase_block_82802ab,
7971 },
7972 },
7973 .write = write_82802ab,
7974 .read = read_memmapped,
7975 .voltage = {4500, 5500},
7976 },
7977
7978 {
7979 .vendor = "Intel",
7980 .name = "28F001BN/BX-T",
7981 .bustype = BUS_PARALLEL,
7982 .manufacture_id = INTEL_ID,
7983 .model_id = INTEL_28F001T,
7984 .total_size = 128,
7985 .page_size = 128 * 1024, /* 112k + 2x4k + 8k */
7986 .tested = TEST_OK_PREW,
7987 .probe = probe_jedec,
7988 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7989 .block_erasers =
7990 {
7991 {
7992 .eraseblocks = {
7993 {112 * 1024, 1},
7994 {4 * 1024, 2},
7995 {8 * 1024, 1},
7996 },
7997 .block_erase = erase_block_82802ab,
7998 },
7999 },
8000 .write = write_82802ab,
8001 .read = read_memmapped,
8002 .voltage = {4500, 5500},
8003 },
8004
8005 {
8006 .vendor = "Intel",
8007 .name = "28F002BC/BL/BV/BX-T",
8008 .bustype = BUS_PARALLEL,
8009 .manufacture_id = INTEL_ID,
8010 .model_id = INTEL_28F002T,
8011 .total_size = 256,
8012 .page_size = 256 * 1024,
8013 .tested = TEST_OK_PRE,
8014 .probe = probe_82802ab,
8015 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8016 .block_erasers =
8017 {
8018 {
8019 .eraseblocks = {
8020 {128 * 1024, 1},
8021 {96 * 1024, 1},
8022 {8 * 1024, 2},
8023 {16 * 1024, 1},
8024 },
8025 .block_erase = erase_block_82802ab,
8026 },
8027 },
8028 .write = write_82802ab,
8029 .read = read_memmapped,
8030 },
8031
8032 {
8033 .vendor = "Intel",
8034 .name = "28F004B5/BE/BV/BX-B",
8035 .bustype = BUS_PARALLEL,
8036 .manufacture_id = INTEL_ID,
8037 .model_id = INTEL_28F004B,
8038 .total_size = 512,
8039 .page_size = 128 * 1024, /* maximal block size */
8040 .tested = TEST_UNTESTED,
8041 .probe = probe_82802ab,
8042 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8043 .block_erasers =
8044 {
8045 {
8046 .eraseblocks = {
8047 {16 * 1024, 1},
8048 {8 * 1024, 2},
8049 {96 * 1024, 1},
8050 {128 * 1024, 3},
8051 },
8052 .block_erase = erase_block_82802ab,
8053 },
8054 },
8055 .write = write_82802ab,
8056 .read = read_memmapped,
8057 },
8058
8059 {
8060 .vendor = "Intel",
8061 .name = "28F004B5/BE/BV/BX-T",
8062 .bustype = BUS_PARALLEL,
8063 .manufacture_id = INTEL_ID,
8064 .model_id = INTEL_28F004T,
8065 .total_size = 512,
8066 .page_size = 128 * 1024, /* maximal block size */
8067 .tested = TEST_UNTESTED,
8068 .probe = probe_82802ab,
8069 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8070 .block_erasers =
8071 {
8072 {
8073 .eraseblocks = {
8074 {128 * 1024, 3},
8075 {96 * 1024, 1},
8076 {8 * 1024, 2},
8077 {16 * 1024, 1},
8078 },
8079 .block_erase = erase_block_82802ab,
8080 },
8081 },
8082 .write = write_82802ab,
8083 .read = read_memmapped,
8084 },
8085
8086 {
8087 .vendor = "Intel",
8088 .name = "28F008S3/S5/SC",
8089 .bustype = BUS_PARALLEL,
8090 .manufacture_id = INTEL_ID,
8091 .model_id = INTEL_28F004S3,
8092 .total_size = 512,
8093 .page_size = 256,
8094 .tested = TEST_UNTESTED,
8095 .probe = probe_82802ab,
8096 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8097 .block_erasers =
8098 {
8099 {
8100 .eraseblocks = { {64 * 1024, 8} },
8101 .block_erase = erase_block_82802ab,
8102 },
8103 },
8104 .unlock = unlock_28f004s5,
8105 .write = write_82802ab,
8106 .read = read_memmapped,
8107 },
8108
8109 {
8110 .vendor = "Intel",
8111 .name = "28F400BV/BX/CE/CV-B",
8112 .bustype = BUS_PARALLEL,
8113 .manufacture_id = INTEL_ID,
8114 .model_id = INTEL_28F400B,
8115 .total_size = 512,
8116 .page_size = 128 * 1024, /* maximal block size */
8117 .feature_bits = FEATURE_ADDR_SHIFTED,
8118 .tested = TEST_UNTESTED,
8119 .probe = probe_82802ab,
8120 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8121 .block_erasers =
8122 {
8123 {
8124 .eraseblocks = {
8125 {16 * 1024, 1},
8126 {8 * 1024, 2},
8127 {96 * 1024, 1},
8128 {128 * 1024, 3},
8129 },
8130 .block_erase = erase_block_82802ab,
8131 },
8132 },
8133 .write = write_82802ab,
8134 .read = read_memmapped,
8135 },
8136
8137 {
8138 .vendor = "Intel",
8139 .name = "28F400BV/BX/CE/CV-T",
8140 .bustype = BUS_PARALLEL,
8141 .manufacture_id = INTEL_ID,
8142 .model_id = INTEL_28F400T,
8143 .total_size = 512,
8144 .page_size = 128 * 1024, /* maximal block size */
8145 .feature_bits = FEATURE_ADDR_SHIFTED,
8146 .tested = TEST_UNTESTED,
8147 .probe = probe_82802ab,
8148 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8149 .block_erasers =
8150 {
8151 {
8152 .eraseblocks = {
8153 {128 * 1024, 3},
8154 {96 * 1024, 1},
8155 {8 * 1024, 2},
8156 {16 * 1024, 1},
8157 },
8158 .block_erase = erase_block_82802ab,
8159 },
8160 },
8161 .write = write_82802ab,
8162 .read = read_memmapped,
8163 },
8164
8165 {
8166 .vendor = "Intel",
8167 .name = "82802AB",
8168 .bustype = BUS_FWH,
8169 .manufacture_id = INTEL_ID,
8170 .model_id = INTEL_82802AB,
8171 .total_size = 512,
8172 .page_size = 64 * 1024,
8173 .feature_bits = FEATURE_REGISTERMAP,
Alan Green88552572019-07-24 13:56:06 +10008174 .tested = TEST_OK_PREW,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008175 .probe = probe_82802ab,
8176 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
8177 .block_erasers =
8178 {
8179 {
8180 .eraseblocks = { {64 * 1024, 8} },
8181 .block_erase = erase_block_82802ab,
8182 },
8183 },
8184 .unlock = unlock_regspace2_uniform_64k,
8185 .write = write_82802ab,
8186 .read = read_memmapped,
8187 .voltage = {3000, 3600},
8188 },
8189
8190 {
8191 .vendor = "Intel",
8192 .name = "82802AC",
8193 .bustype = BUS_FWH,
8194 .manufacture_id = INTEL_ID,
8195 .model_id = INTEL_82802AC,
8196 .total_size = 1024,
8197 .page_size = 64 * 1024,
8198 .feature_bits = FEATURE_REGISTERMAP,
8199 .tested = TEST_OK_PR,
8200 .probe = probe_82802ab,
8201 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
8202 .block_erasers =
8203 {
8204 {
8205 .eraseblocks = { {64 * 1024, 16} },
8206 .block_erase = erase_block_82802ab,
8207 },
8208 },
8209 .unlock = unlock_regspace2_uniform_64k,
8210 .write = write_82802ab,
8211 .read = read_memmapped,
8212 .voltage = {3000, 3600},
8213 },
8214
8215 {
8216 .vendor = "Macronix",
8217 .name = "MX23L12854",
8218 .bustype = BUS_SPI,
8219 .manufacture_id = MACRONIX_ID,
8220 .model_id = MACRONIX_MX23L12854,
8221 .total_size = 16384,
8222 .page_size = 256,
8223 .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA},
8224 .probe = probe_spi_rdid,
8225 .probe_timing = TIMING_ZERO,
8226 .write = NULL, /* MX23L12854 is a mask ROM, so it is read-only */
8227 .read = spi_chip_read, /* Fast read (0x0B) supported */
8228 .voltage = {3000, 3600},
8229 },
8230
8231 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008232 .vendor = "Macronix",
Michael Coppola583ea322014-08-20 18:56:35 +00008233 .name = "MX23L1654",
8234 .bustype = BUS_SPI,
8235 .manufacture_id = MACRONIX_ID,
8236 .model_id = MACRONIX_MX23L1654,
8237 .total_size = 2048,
8238 .page_size = 256,
8239 .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA},
8240 .probe = probe_spi_rdid,
8241 .probe_timing = TIMING_ZERO,
8242 .write = NULL, /* MX23L1654 is a mask ROM, so it is read-only */
8243 .read = spi_chip_read, /* Fast read (0x0B) supported */
8244 .voltage = {3000, 3600},
8245 },
8246
8247 {
8248 .vendor = "Macronix",
Michael Coppola4e7f36e2014-05-03 23:01:18 +00008249 .name = "MX23L3254",
8250 .bustype = BUS_SPI,
8251 .manufacture_id = MACRONIX_ID,
8252 .model_id = MACRONIX_MX23L3254,
8253 .total_size = 4096,
8254 .page_size = 256,
Stefan Tauner6455dff2014-05-26 00:36:24 +00008255 .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA},
Michael Coppola4e7f36e2014-05-03 23:01:18 +00008256 .probe = probe_spi_rdid,
8257 .probe_timing = TIMING_ZERO,
8258 .write = NULL, /* MX23L3254 is a mask ROM, so it is read-only */
8259 .read = spi_chip_read, /* Fast read (0x0B) supported */
8260 .voltage = {3000, 3600},
8261 },
8262
8263 {
8264 .vendor = "Macronix",
Michael Coppola583ea322014-08-20 18:56:35 +00008265 .name = "MX23L6454",
8266 .bustype = BUS_SPI,
8267 .manufacture_id = MACRONIX_ID,
8268 .model_id = MACRONIX_MX23L6454,
8269 .total_size = 8192,
8270 .page_size = 256,
Stefan Tauner23e10b82016-01-23 16:16:49 +00008271 .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA},
Michael Coppola583ea322014-08-20 18:56:35 +00008272 .probe = probe_spi_rdid,
8273 .probe_timing = TIMING_ZERO,
8274 .write = NULL, /* MX23L6454 is a mask ROM, so it is read-only */
8275 .read = spi_chip_read, /* Fast read (0x0B) supported */
8276 .voltage = {3000, 3600},
8277 },
8278
8279 {
8280 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00008281 .name = "MX25L1005(C)/MX25L1006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008282 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008283 .manufacture_id = MACRONIX_ID,
8284 .model_id = MACRONIX_MX25L1005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008285 .total_size = 128,
8286 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00008287 /* MX25L1006E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00008288 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00008289 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008290 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008291 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00008292 .block_erasers =
8293 {
8294 {
8295 .eraseblocks = { {4 * 1024, 32} },
8296 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008297 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00008298 .eraseblocks = { {64 * 1024, 2} },
8299 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008300 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00008301 .eraseblocks = { {128 * 1024, 1} },
8302 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008303 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00008304 .eraseblocks = { {128 * 1024, 1} },
8305 .block_erase = spi_block_erase_c7,
8306 },
8307 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008308 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008309 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008310 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00008311 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L1006E supports dual I/O */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008312 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008313 },
8314
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008315 {
8316 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008317 .name = "MX25L12805D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008318 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008319 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008320 .model_id = MACRONIX_MX25L12805D,
8321 .total_size = 16384,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008322 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008323 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8324 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008325 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008326 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008327 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008328 .block_erasers =
8329 {
8330 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008331 .eraseblocks = { {4 * 1024, 4096} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008332 .block_erase = spi_block_erase_20,
8333 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008334 .eraseblocks = { {64 * 1024, 256} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008335 .block_erase = spi_block_erase_d8,
8336 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008337 .eraseblocks = { {16 * 1024 * 1024, 1} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008338 .block_erase = spi_block_erase_60,
8339 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008340 .eraseblocks = { {16 * 1024 * 1024, 1} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008341 .block_erase = spi_block_erase_c7,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008342 }
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008343 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10008344 .printlock = spi_prettyprint_status_register_bp3_srwd,
8345 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008346 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00008347 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008348 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008349 },
8350
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008351 {
8352 .vendor = "Macronix",
Tao Xia571f6ad2021-07-21 16:41:53 +08008353 .name = "MX25L12833F/MX25L12835F/MX25L12845E/MX25L12865E/MX25L12873F",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008354 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008355 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008356 .model_id = MACRONIX_MX25L12805D,
8357 .total_size = 16384,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008358 .page_size = 256,
Tao Xia571f6ad2021-07-21 16:41:53 +08008359 /* OTP: MX25L12833F has 1KB total, others have 512B total; enter 0xB1, exit 0xC1 */
Alan Green1f9cc7d2019-07-01 11:10:45 +10008360 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner8179be52011-06-04 13:13:34 +00008361 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008362 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008363 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008364 .block_erasers =
8365 {
8366 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008367 .eraseblocks = { {4 * 1024, 4096} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008368 .block_erase = spi_block_erase_20,
8369 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008370 .eraseblocks = { {32 * 1024, 512} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008371 .block_erase = spi_block_erase_52,
8372 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008373 .eraseblocks = { {64 * 1024, 256} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008374 .block_erase = spi_block_erase_d8,
8375 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008376 .eraseblocks = { {16 * 1024 * 1024, 1} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008377 .block_erase = spi_block_erase_60,
8378 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008379 .eraseblocks = { {16 * 1024 * 1024, 1} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008380 .block_erase = spi_block_erase_c7,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008381 }
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008382 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10008383 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
8384 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8385 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008386 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00008387 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008388 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008389 },
8390
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008391 {
8392 .vendor = "Macronix",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008393 .name = "MX25L1605",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008394 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008395 .manufacture_id = MACRONIX_ID,
8396 .model_id = MACRONIX_MX25L1605,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008397 .total_size = 2048,
8398 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00008399 .feature_bits = FEATURE_WRSR_WREN,
Sven Schnelle4bd8a402011-03-07 10:59:06 +00008400 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008401 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008402 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008403 .block_erasers =
8404 {
8405 {
Stefan Tauner226037d2013-03-16 01:22:12 +00008406 .eraseblocks = { {64 * 1024, 32} },
8407 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008408 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00008409 .eraseblocks = { {64 * 1024, 32} },
8410 .block_erase = spi_block_erase_d8,
8411 }, {
8412 .eraseblocks = { {2 * 1024 * 1024, 1} },
8413 .block_erase = spi_block_erase_60,
8414 }, {
8415 .eraseblocks = { {2 * 1024 * 1024, 1} },
8416 .block_erase = spi_block_erase_c7,
8417 },
8418 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008419 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */
Stefan Tauner226037d2013-03-16 01:22:12 +00008420 .unlock = spi_disable_blockprotect,
8421 .write = spi_chip_write_256,
8422 .read = spi_chip_read, /* Fast read (0x0B) supported */
8423 .voltage = {2700, 3600},
8424 },
8425
8426 {
8427 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008428 .name = "MX25L1605A/MX25L1606E/MX25L1608E",
Stefan Tauner226037d2013-03-16 01:22:12 +00008429 .bustype = BUS_SPI,
8430 .manufacture_id = MACRONIX_ID,
8431 .model_id = MACRONIX_MX25L1605,
8432 .total_size = 2048,
8433 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008434 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L1606E and MX25L1608E only) */
Stefan Tauner226037d2013-03-16 01:22:12 +00008435 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8436 .tested = TEST_OK_PREW,
8437 .probe = probe_spi_rdid,
8438 .probe_timing = TIMING_ZERO,
8439 .block_erasers =
8440 {
8441 {
8442 .eraseblocks = { {4 * 1024, 512} },
8443 .block_erase = spi_block_erase_20,
8444 }, {
8445 .eraseblocks = { {64 * 1024, 32} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008446 .block_erase = spi_block_erase_52,
8447 }, {
8448 .eraseblocks = { {64 * 1024, 32} },
8449 .block_erase = spi_block_erase_d8,
8450 }, {
8451 .eraseblocks = { {2 * 1024 * 1024, 1} },
8452 .block_erase = spi_block_erase_60,
8453 }, {
8454 .eraseblocks = { {2 * 1024 * 1024, 1} },
8455 .block_erase = spi_block_erase_c7,
8456 },
8457 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008458 .printlock = spi_prettyprint_status_register_bp3_srwd, /* MX25L1605A bp2 only */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008459 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008460 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008461 .read = spi_chip_read, /* Fast read (0x0B) supported (MX25L1608E supports dual-I/O read) */
Stefan Tauner226037d2013-03-16 01:22:12 +00008462 .voltage = {2700, 3600},
8463 },
8464
8465 {
8466 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008467 .name = "MX25L1605D/MX25L1608D/MX25L1673E",
Stefan Tauner226037d2013-03-16 01:22:12 +00008468 .bustype = BUS_SPI,
8469 .manufacture_id = MACRONIX_ID,
8470 .model_id = MACRONIX_MX25L1605,
8471 .total_size = 2048,
8472 .page_size = 256,
8473 .feature_bits = FEATURE_WRSR_WREN,
8474 .tested = TEST_OK_PREW,
8475 .probe = probe_spi_rdid,
8476 .probe_timing = TIMING_ZERO,
8477 .block_erasers =
8478 {
8479 {
8480 .eraseblocks = { {4 * 1024, 512} },
8481 .block_erase = spi_block_erase_20,
8482 }, {
8483 .eraseblocks = { {64 * 1024, 32} },
8484 .block_erase = spi_block_erase_d8,
8485 }, {
8486 .eraseblocks = { {2 * 1024 * 1024, 1} },
8487 .block_erase = spi_block_erase_60,
8488 }, {
8489 .eraseblocks = { {2 * 1024 * 1024, 1} },
8490 .block_erase = spi_block_erase_c7,
8491 },
8492 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008493 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: Continuously Program (CP) mode, for 73E is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008494 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00008495 .write = spi_chip_write_256,
8496 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008497 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008498 },
8499
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008500 {
8501 .vendor = "Macronix",
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008502 .name = "MX25L1635D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008503 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008504 .manufacture_id = MACRONIX_ID,
8505 .model_id = MACRONIX_MX25L1635D,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008506 .total_size = 2048,
8507 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008508 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8509 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Angel Ponsc2054872021-01-15 18:57:32 +01008510 .tested = TEST_OK_PREW,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008511 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008512 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008513 .block_erasers =
8514 {
8515 {
8516 .eraseblocks = { {4 * 1024, 512} },
8517 .block_erase = spi_block_erase_20,
8518 }, {
8519 .eraseblocks = { {64 * 1024, 32} },
8520 .block_erase = spi_block_erase_d8,
8521 }, {
8522 .eraseblocks = { {2 * 1024 * 1024, 1} },
8523 .block_erase = spi_block_erase_60,
8524 }, {
8525 .eraseblocks = { {2 * 1024 * 1024, 1} },
8526 .block_erase = spi_block_erase_c7,
8527 }
8528 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008529 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008530 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008531 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008532 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008533 .voltage = {2700, 3600},
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008534 },
Stephan Guillouxfd315502009-04-20 22:54:13 +00008535
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008536 {
8537 .vendor = "Macronix",
Stephan Guilloux3611b802010-09-13 19:59:28 +00008538 .name = "MX25L1635E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008539 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008540 .manufacture_id = MACRONIX_ID,
8541 .model_id = MACRONIX_MX25L1635E,
Stephan Guilloux3611b802010-09-13 19:59:28 +00008542 .total_size = 2048,
8543 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008544 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8545 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux3611b802010-09-13 19:59:28 +00008546 .tested = TEST_UNTESTED,
8547 .probe = probe_spi_rdid,
8548 .probe_timing = TIMING_ZERO,
8549 .block_erasers =
8550 {
8551 {
8552 .eraseblocks = { {4 * 1024, 512} },
8553 .block_erase = spi_block_erase_20,
8554 }, {
8555 .eraseblocks = { {64 * 1024, 32} },
8556 .block_erase = spi_block_erase_d8,
8557 }, {
8558 .eraseblocks = { {2 * 1024 * 1024, 1} },
8559 .block_erase = spi_block_erase_60,
8560 }, {
8561 .eraseblocks = { {2 * 1024 * 1024, 1} },
8562 .block_erase = spi_block_erase_c7,
8563 }
8564 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008565 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008566 .unlock = spi_disable_blockprotect_bp3_srwd,
Stephan Guilloux3611b802010-09-13 19:59:28 +00008567 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008568 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00008569 .voltage = {2700, 3600},
Stephan Guilloux3611b802010-09-13 19:59:28 +00008570 },
8571
8572 {
8573 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008574 .name = "MX25L2005(C)/MX25L2006E",
8575 .bustype = BUS_SPI,
8576 .manufacture_id = MACRONIX_ID,
8577 .model_id = MACRONIX_MX25L2005,
8578 .total_size = 256,
8579 .page_size = 256,
8580 .feature_bits = FEATURE_WRSR_WREN,
8581 .tested = TEST_OK_PREW,
8582 .probe = probe_spi_rdid,
8583 .probe_timing = TIMING_ZERO,
8584 .block_erasers =
8585 {
8586 {
8587 .eraseblocks = { {4 * 1024, 64} },
8588 .block_erase = spi_block_erase_20,
8589 }, {
8590 .eraseblocks = { {64 * 1024, 4} },
8591 .block_erase = spi_block_erase_52,
8592 }, {
8593 .eraseblocks = { {64 * 1024, 4} },
8594 .block_erase = spi_block_erase_d8,
8595 }, {
8596 .eraseblocks = { {256 * 1024, 1} },
8597 .block_erase = spi_block_erase_60,
8598 }, {
8599 .eraseblocks = { {256 * 1024, 1} },
8600 .block_erase = spi_block_erase_c7,
8601 },
8602 },
8603 .printlock = spi_prettyprint_status_register_bp1_srwd,
8604 .unlock = spi_disable_blockprotect,
8605 .write = spi_chip_write_256,
8606 .read = spi_chip_read, /* Fast read (0x0B) supported */
8607 .voltage = {2700, 3600},
8608 },
8609
8610 {
8611 .vendor = "Macronix",
Alan Green03707302019-08-26 12:50:43 +10008612 .name = "MX25L25635F/MX25L25645G",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008613 .bustype = BUS_SPI,
8614 .manufacture_id = MACRONIX_ID,
8615 .model_id = MACRONIX_MX25L25635F,
8616 .total_size = 32768,
8617 .page_size = 256,
8618 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8619 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
8620 .tested = TEST_OK_PREW,
8621 .probe = probe_spi_rdid,
8622 .probe_timing = TIMING_ZERO,
8623 .block_erasers =
8624 {
8625 {
8626 .eraseblocks = { {4 * 1024, 8192} },
8627 .block_erase = spi_block_erase_21,
8628 }, {
8629 .eraseblocks = { {4 * 1024, 8192} },
8630 .block_erase = spi_block_erase_20,
8631 }, {
8632 .eraseblocks = { {32 * 1024, 1024} },
8633 .block_erase = spi_block_erase_5c,
8634 }, {
8635 .eraseblocks = { {32 * 1024, 1024} },
8636 .block_erase = spi_block_erase_52,
8637 }, {
8638 .eraseblocks = { {64 * 1024, 512} },
8639 .block_erase = spi_block_erase_dc,
8640 }, {
8641 .eraseblocks = { {64 * 1024, 512} },
8642 .block_erase = spi_block_erase_d8,
8643 }, {
8644 .eraseblocks = { {32 * 1024 * 1024, 1} },
8645 .block_erase = spi_block_erase_60,
8646 }, {
8647 .eraseblocks = { {32 * 1024 * 1024, 1} },
8648 .block_erase = spi_block_erase_c7,
8649 }
8650 },
8651 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
8652 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8653 .unlock = spi_disable_blockprotect_bp3_srwd,
8654 .write = spi_chip_write_256,
8655 .read = spi_chip_read, /* Fast read (0x0B) supported */
8656 .voltage = {2700, 3600},
8657 },
8658
8659 {
8660 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00008661 .name = "MX25L3205(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008662 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008663 .manufacture_id = MACRONIX_ID,
8664 .model_id = MACRONIX_MX25L3205,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008665 .total_size = 4096,
8666 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00008667 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00008668 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008669 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008670 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00008671 .block_erasers =
8672 {
8673 {
Stefan Tauner226037d2013-03-16 01:22:12 +00008674 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00008675 .block_erase = spi_block_erase_20,
8676 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00008677 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00008678 .block_erase = spi_block_erase_d8,
8679 }, {
8680 .eraseblocks = { {4 * 1024 * 1024, 1} },
8681 .block_erase = spi_block_erase_60,
8682 }, {
8683 .eraseblocks = { {4 * 1024 * 1024, 1} },
8684 .block_erase = spi_block_erase_c7,
8685 },
8686 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008687 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008688 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008689 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008690 .read = spi_chip_read, /* Fast read (0x0B) supported */
8691 .voltage = {2700, 3600},
8692 },
8693
8694 {
8695 .vendor = "Macronix",
8696 .name = "MX25L3205D/MX25L3208D",
8697 .bustype = BUS_SPI,
8698 .manufacture_id = MACRONIX_ID,
8699 .model_id = MACRONIX_MX25L3205,
8700 .total_size = 4096,
8701 .page_size = 256,
8702 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8703 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8704 .tested = TEST_OK_PREW,
8705 .probe = probe_spi_rdid,
8706 .probe_timing = TIMING_ZERO,
8707 .block_erasers =
8708 {
8709 {
8710 .eraseblocks = { {4 * 1024, 1024} },
8711 .block_erase = spi_block_erase_20,
8712 }, {
8713 .eraseblocks = { {64 * 1024, 64} },
8714 .block_erase = spi_block_erase_d8,
8715 }, {
8716 .eraseblocks = { {4 * 1024 * 1024, 1} },
8717 .block_erase = spi_block_erase_60,
8718 }, {
8719 .eraseblocks = { {4 * 1024 * 1024, 1} },
8720 .block_erase = spi_block_erase_c7,
8721 },
8722 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008723 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008724 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00008725 .write = spi_chip_write_256,
8726 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
8727 .voltage = {2700, 3600},
8728 },
8729
8730 {
8731 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008732 .name = "MX25L3206E/MX25L3208E",
Stefan Tauner226037d2013-03-16 01:22:12 +00008733 .bustype = BUS_SPI,
8734 .manufacture_id = MACRONIX_ID,
8735 .model_id = MACRONIX_MX25L3205,
8736 .total_size = 4096,
8737 .page_size = 256,
8738 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8739 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8740 .tested = TEST_OK_PREW,
8741 .probe = probe_spi_rdid,
8742 .probe_timing = TIMING_ZERO,
8743 .block_erasers =
8744 {
8745 {
8746 .eraseblocks = { {4 * 1024, 1024} },
8747 .block_erase = spi_block_erase_20,
8748 }, {
8749 .eraseblocks = { {64 * 1024, 64} },
8750 .block_erase = spi_block_erase_d8,
8751 }, {
8752 .eraseblocks = { {64 * 1024, 64} },
8753 .block_erase = spi_block_erase_52,
8754 }, {
8755 .eraseblocks = { {4 * 1024 * 1024, 1} },
8756 .block_erase = spi_block_erase_60,
8757 }, {
8758 .eraseblocks = { {4 * 1024 * 1024, 1} },
8759 .block_erase = spi_block_erase_c7,
8760 },
8761 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008762 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008763 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00008764 .write = spi_chip_write_256,
8765 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008766 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008767 },
8768
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008769 {
8770 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008771 .name = "MX25L3235D",
8772 .bustype = BUS_SPI,
8773 .manufacture_id = MACRONIX_ID,
8774 .model_id = MACRONIX_MX25L3235D,
8775 .total_size = 4096,
8776 .page_size = 256,
8777 /* OTP: 256B total; enter 0xB1, exit 0xC1 */
8778 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8779 .tested = TEST_UNTESTED,
8780 .probe = probe_spi_rdid,
8781 .probe_timing = TIMING_ZERO,
8782 .block_erasers =
8783 {
8784 {
8785 .eraseblocks = { {4 * 1024, 1024} },
8786 .block_erase = spi_block_erase_20,
8787 }, {
8788 .eraseblocks = { {64 * 1024, 64} },
8789 .block_erase = spi_block_erase_d8,
8790 }, {
8791 .eraseblocks = { {4 * 1024 * 1024, 1} },
8792 .block_erase = spi_block_erase_60,
8793 }, {
8794 .eraseblocks = { {4 * 1024 * 1024, 1} },
8795 .block_erase = spi_block_erase_c7,
8796 }
8797 },
8798 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8799 .unlock = spi_disable_blockprotect_bp3_srwd,
8800 .write = spi_chip_write_256,
8801 .read = spi_chip_read,
8802 .voltage = {2700, 3600},
8803 },
8804
8805 {
8806 .vendor = "Macronix",
Nico Huberb6683e02021-04-21 13:04:29 +02008807 .name = "MX25L3233F/MX25L3273E",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008808 .bustype = BUS_SPI,
8809 .manufacture_id = MACRONIX_ID,
8810 .model_id = MACRONIX_MX25L3205,
8811 .total_size = 4096,
8812 .page_size = 256,
Nico Huber6e69e2b2021-04-21 13:03:13 +02008813 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008814 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +00008815 .tested = TEST_OK_PREW,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008816 .probe = probe_spi_rdid,
8817 .probe_timing = TIMING_ZERO,
8818 .block_erasers =
8819 {
8820 {
8821 .eraseblocks = { {4 * 1024, 1024} },
8822 .block_erase = spi_block_erase_20,
8823 }, {
8824 .eraseblocks = { {32 * 1024, 128} },
8825 .block_erase = spi_block_erase_52,
8826 }, {
8827 .eraseblocks = { {64 * 1024, 64} },
8828 .block_erase = spi_block_erase_d8,
8829 }, {
8830 .eraseblocks = { {4 * 1024 * 1024, 1} },
8831 .block_erase = spi_block_erase_60,
8832 }, {
8833 .eraseblocks = { {4 * 1024 * 1024, 1} },
8834 .block_erase = spi_block_erase_c7,
8835 },
8836 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008837 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008838 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008839 .write = spi_chip_write_256,
8840 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
Nico Huberb6683e02021-04-21 13:04:29 +02008841 .voltage = {2700, 3600}, /* 33F 2.65V..3.6V */
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008842 },
8843
8844 {
8845 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008846 .name = "MX25L4005(A/C)/MX25L4006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008847 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008848 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008849 .model_id = MACRONIX_MX25L4005,
8850 .total_size = 512,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00008851 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008852 .feature_bits = FEATURE_WRSR_WREN,
8853 .tested = TEST_OK_PREW,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00008854 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008855 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008856 .block_erasers =
8857 {
8858 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008859 .eraseblocks = { {4 * 1024, 128} },
Sean Nelson54596372010-01-09 05:30:14 +00008860 .block_erase = spi_block_erase_20,
8861 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008862 .eraseblocks = { {64 * 1024, 8} },
8863 .block_erase = spi_block_erase_52,
8864 }, {
8865 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson54596372010-01-09 05:30:14 +00008866 .block_erase = spi_block_erase_d8,
8867 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008868 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00008869 .block_erase = spi_block_erase_60,
8870 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008871 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00008872 .block_erase = spi_block_erase_c7,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008873 },
Sean Nelson54596372010-01-09 05:30:14 +00008874 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10008875 .printlock = spi_prettyprint_status_register_bp2_srwd,
8876 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008877 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008878 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008879 .voltage = {2700, 3600},
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00008880 },
8881
8882 {
8883 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008884 .name = "MX25L512(E)/MX25V512(C)",
8885 .bustype = BUS_SPI,
8886 .manufacture_id = MACRONIX_ID,
8887 .model_id = MACRONIX_MX25L512,
8888 .total_size = 64,
8889 .page_size = 256,
8890 /* MX25L512E supports SFDP */
8891 .feature_bits = FEATURE_WRSR_WREN,
8892 .tested = TEST_OK_PREW,
8893 .probe = probe_spi_rdid,
8894 .probe_timing = TIMING_ZERO,
8895 .block_erasers =
8896 {
8897 {
8898 .eraseblocks = { {4 * 1024, 16} },
8899 .block_erase = spi_block_erase_20,
8900 }, {
8901 .eraseblocks = { {64 * 1024, 1} },
8902 .block_erase = spi_block_erase_52,
8903 }, {
8904 .eraseblocks = { {64 * 1024, 1} },
8905 .block_erase = spi_block_erase_d8,
8906 }, {
8907 .eraseblocks = { {64 * 1024, 1} },
8908 .block_erase = spi_block_erase_60,
8909 }, {
8910 .eraseblocks = { {64 * 1024, 1} },
8911 .block_erase = spi_block_erase_c7,
8912 },
8913 },
8914 .printlock = spi_prettyprint_status_register_bp1_srwd,
8915 .unlock = spi_disable_blockprotect,
8916 .write = spi_chip_write_256,
8917 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L512E supports dual I/O */
8918 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V512(C) */
8919 },
8920
8921 {
8922 .vendor = "Macronix",
Steve Markgraf7e6f3a72020-07-13 18:22:56 +02008923 .name = "MX25L5121E",
8924 .bustype = BUS_SPI,
8925 .manufacture_id = MACRONIX_ID,
8926 .model_id = MACRONIX_MX25L5121E,
8927 .total_size = 64,
8928 .page_size = 32,
8929 .feature_bits = FEATURE_WRSR_WREN,
8930 .tested = TEST_OK_PREW,
8931 .probe = probe_spi_rdid,
8932 .probe_timing = TIMING_ZERO,
8933 .block_erasers =
8934 {
8935 {
8936 .eraseblocks = { {4 * 1024, 16} },
8937 .block_erase = spi_block_erase_20,
8938 }, {
8939 .eraseblocks = { {64 * 1024, 1} },
8940 .block_erase = spi_block_erase_52,
8941 }, {
8942 .eraseblocks = { {64 * 1024, 1} },
8943 .block_erase = spi_block_erase_d8,
8944 }, {
8945 .eraseblocks = { {64 * 1024, 1} },
8946 .block_erase = spi_block_erase_60,
8947 }, {
8948 .eraseblocks = { {64 * 1024, 1} },
8949 .block_erase = spi_block_erase_c7,
8950 },
8951 },
8952 .printlock = spi_prettyprint_status_register_bp1_srwd,
8953 .unlock = spi_disable_blockprotect,
8954 .write = spi_chip_write_256,
8955 .read = spi_chip_read, /* Fast read (0x0B) supported */
8956 .voltage = {2700, 3600},
8957 },
8958
8959 {
8960 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008961 .name = "MX25L6405",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008962 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008963 .manufacture_id = MACRONIX_ID,
8964 .model_id = MACRONIX_MX25L6405,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008965 .total_size = 8192,
8966 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008967 /* Has an additional 512B EEPROM sector */
8968 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzelac427b22012-02-16 21:07:07 +00008969 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008970 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008971 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008972 .block_erasers =
8973 {
8974 {
8975 .eraseblocks = { {64 * 1024, 128} },
8976 .block_erase = spi_block_erase_20,
8977 }, {
8978 .eraseblocks = { {64 * 1024, 128} },
8979 .block_erase = spi_block_erase_d8,
8980 }, {
8981 .eraseblocks = { {8 * 1024 * 1024, 1} },
8982 .block_erase = spi_block_erase_60,
8983 }, {
8984 .eraseblocks = { {8 * 1024 * 1024, 1} },
8985 .block_erase = spi_block_erase_c7,
8986 }
8987 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008988 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: error flag */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008989 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008990 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008991 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008992 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008993 },
8994
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008995 {
8996 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008997 .name = "MX25L6405D",
Stefan Tauner226037d2013-03-16 01:22:12 +00008998 .bustype = BUS_SPI,
8999 .manufacture_id = MACRONIX_ID,
9000 .model_id = MACRONIX_MX25L6405,
9001 .total_size = 8192,
9002 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009003 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
Stefan Tauner226037d2013-03-16 01:22:12 +00009004 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9005 .tested = TEST_OK_PREW,
9006 .probe = probe_spi_rdid,
9007 .probe_timing = TIMING_ZERO,
9008 .block_erasers =
9009 {
9010 {
9011 .eraseblocks = { {4 * 1024, 2048} },
9012 .block_erase = spi_block_erase_20,
9013 }, {
9014 .eraseblocks = { {64 * 1024, 128} },
9015 .block_erase = spi_block_erase_d8,
9016 }, {
9017 .eraseblocks = { {8 * 1024 * 1024, 1} },
9018 .block_erase = spi_block_erase_60,
9019 }, {
9020 .eraseblocks = { {8 * 1024 * 1024, 1} },
9021 .block_erase = spi_block_erase_c7,
9022 }
9023 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009024 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009025 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00009026 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009027 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0xBB) supported */
Stefan Tauner226037d2013-03-16 01:22:12 +00009028 .voltage = {2700, 3600},
9029 },
9030
9031 {
9032 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009033 .name = "MX25L6406E/MX25L6408E",
9034 .bustype = BUS_SPI,
9035 .manufacture_id = MACRONIX_ID,
9036 .model_id = MACRONIX_MX25L6405,
9037 .total_size = 8192,
9038 .page_size = 256,
9039 /* MX25L6406E supports SFDP */
9040 /* OTP: 06E 64B total; enter 0xB1, exit 0xC1 */
9041 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9042 .tested = TEST_OK_PREW,
9043 .probe = probe_spi_rdid,
9044 .probe_timing = TIMING_ZERO,
9045 .block_erasers =
9046 {
9047 {
9048 .eraseblocks = { {4 * 1024, 2048} },
9049 .block_erase = spi_block_erase_20,
9050 }, {
9051 .eraseblocks = { {64 * 1024, 128} },
9052 .block_erase = spi_block_erase_52,
9053 }, {
9054 .eraseblocks = { {64 * 1024, 128} },
9055 .block_erase = spi_block_erase_d8,
9056 }, {
9057 .eraseblocks = { {8 * 1024 * 1024, 1} },
9058 .block_erase = spi_block_erase_60,
9059 }, {
9060 .eraseblocks = { {8 * 1024 * 1024, 1} },
9061 .block_erase = spi_block_erase_c7,
9062 }
9063 },
9064 .printlock = spi_prettyprint_status_register_bp3_srwd,
9065 .unlock = spi_disable_blockprotect_bp3_srwd,
9066 .write = spi_chip_write_256,
9067 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read supported */
9068 .voltage = {2700, 3600},
9069 },
9070
9071 {
9072 .vendor = "Macronix",
Nico Huberb0072782017-12-06 21:02:57 +01009073 .name = "MX25L6436E/MX25L6445E/MX25L6465E/MX25L6473E/MX25L6473F",
Stefan Tauner226037d2013-03-16 01:22:12 +00009074 .bustype = BUS_SPI,
9075 .manufacture_id = MACRONIX_ID,
9076 .model_id = MACRONIX_MX25L6405,
9077 .total_size = 8192,
9078 .page_size = 256,
9079 /* supports SFDP */
9080 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9081 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9082 .tested = TEST_OK_PREW,
9083 .probe = probe_spi_rdid,
9084 .probe_timing = TIMING_ZERO,
9085 .block_erasers =
9086 {
9087 {
9088 .eraseblocks = { {4 * 1024, 2048} },
9089 .block_erase = spi_block_erase_20,
9090 }, {
9091 .eraseblocks = { {32 * 1024, 256} },
9092 .block_erase = spi_block_erase_52,
9093 }, {
9094 .eraseblocks = { {64 * 1024, 128} },
9095 .block_erase = spi_block_erase_d8,
9096 }, {
9097 .eraseblocks = { {8 * 1024 * 1024, 1} },
9098 .block_erase = spi_block_erase_60,
9099 }, {
9100 .eraseblocks = { {8 * 1024 * 1024, 1} },
9101 .block_erase = spi_block_erase_c7,
9102 }
9103 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009104 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009105 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00009106 .write = spi_chip_write_256,
9107 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9108 .voltage = {2700, 3600},
9109 },
9110
9111 {
9112 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009113 .name = "MX25L6495F",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009114 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009115 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009116 .model_id = MACRONIX_MX25L6495F,
9117 .total_size = 8192,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00009118 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009119 /* OTP: 1024B total; enter 0xB1, exit 0xC1 */
Stefan Tauner226037d2013-03-16 01:22:12 +00009120 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +00009121 .tested = TEST_OK_PREW,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00009122 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009123 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00009124 .block_erasers =
9125 {
9126 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009127 .eraseblocks = { {4 * 1024, 2048} },
Sean Nelson54596372010-01-09 05:30:14 +00009128 .block_erase = spi_block_erase_20,
9129 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009130 .eraseblocks = { {64 * 1024, 128} },
Sean Nelson54596372010-01-09 05:30:14 +00009131 .block_erase = spi_block_erase_d8,
9132 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009133 .eraseblocks = { {32 * 1024, 256} },
9134 .block_erase = spi_block_erase_52,
9135 }, {
9136 .eraseblocks = { {8 * 1024 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00009137 .block_erase = spi_block_erase_60,
9138 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009139 .eraseblocks = { {8 * 1024 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00009140 .block_erase = spi_block_erase_c7,
9141 }
9142 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10009143 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009144 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009145 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009146 .voltage = {2700, 3600},
9147 },
9148
9149 {
9150 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009151 .name = "MX25L8005/MX25L8006E/MX25L8008E/MX25V8005",
Stefan Tauner5c316f92015-02-08 21:57:52 +00009152 .bustype = BUS_SPI,
9153 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009154 .model_id = MACRONIX_MX25L8005,
9155 .total_size = 1024,
9156 .page_size = 256,
9157 /* MX25L8006E, MX25L8008E support SFDP */
9158 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L8006E, MX25L8008E only) */
9159 .feature_bits = FEATURE_WRSR_WREN,
9160 .tested = TEST_OK_PREW,
9161 .probe = probe_spi_rdid,
9162 .probe_timing = TIMING_ZERO,
9163 .block_erasers =
9164 {
9165 {
9166 .eraseblocks = { {4 * 1024, 256} },
9167 .block_erase = spi_block_erase_20,
9168 }, {
9169 .eraseblocks = { {64 * 1024, 16} },
9170 .block_erase = spi_block_erase_52,
9171 }, {
9172 .eraseblocks = { {64 * 1024, 16} },
9173 .block_erase = spi_block_erase_d8,
9174 }, {
9175 .eraseblocks = { {1024 * 1024, 1} },
9176 .block_erase = spi_block_erase_60,
9177 }, {
9178 .eraseblocks = { {1024 * 1024, 1} },
9179 .block_erase = spi_block_erase_c7,
9180 },
9181 },
9182 .printlock = spi_prettyprint_status_register_bp2_srwd,
9183 .unlock = spi_disable_blockprotect,
9184 .write = spi_chip_write_256,
9185 .read = spi_chip_read, /* Fast read (0x0B) supported */
9186 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V8005 */
9187 },
9188
9189 {
9190 .vendor = "Macronix",
sibradzicf62623c2020-03-14 17:21:34 +09009191 .name = "MX25R3235F",
9192 .bustype = BUS_SPI,
9193 .manufacture_id = MACRONIX_ID,
9194 .model_id = MACRONIX_MX25R3235F,
9195 .total_size = 4096,
9196 .page_size = 256,
9197 /* OTP: 1024B total; enter 0xB1, exit 0xC1 */
9198 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9199 .tested = TEST_OK_PREW,
9200 .probe = probe_spi_rdid,
9201 .probe_timing = TIMING_ZERO,
9202 .block_erasers =
9203 {
9204 {
9205 .eraseblocks = { {4 * 1024, 1024} },
9206 .block_erase = spi_block_erase_20,
9207 }, {
9208 .eraseblocks = { {64 * 1024, 64} },
9209 .block_erase = spi_block_erase_d8,
9210 }, {
9211 .eraseblocks = { {32 * 1024, 128} },
9212 .block_erase = spi_block_erase_52,
9213 }, {
9214 .eraseblocks = { {4 * 1024 * 1024, 1} },
9215 .block_erase = spi_block_erase_60,
9216 }, {
9217 .eraseblocks = { {4 * 1024 * 1024, 1} },
9218 .block_erase = spi_block_erase_c7,
9219 }
9220 },
9221 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit 6 is quad enable */
9222 .unlock = spi_disable_blockprotect_bp3_srwd,
9223 .write = spi_chip_write_256,
9224 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9225 .voltage = {1650, 3600},
9226 },
9227
9228 {
9229 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009230 .name = "MX25R6435F",
9231 .bustype = BUS_SPI,
9232 .manufacture_id = MACRONIX_ID,
9233 .model_id = MACRONIX_MX25R6435F,
9234 .total_size = 8192,
9235 .page_size = 256,
9236 /* OTP: 1024B total; enter 0xB1, exit 0xC1 */
9237 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9238 .tested = TEST_OK_PREW,
9239 .probe = probe_spi_rdid,
9240 .probe_timing = TIMING_ZERO,
9241 .block_erasers =
9242 {
9243 {
9244 .eraseblocks = { {4 * 1024, 2048} },
9245 .block_erase = spi_block_erase_20,
9246 }, {
9247 .eraseblocks = { {64 * 1024, 128} },
9248 .block_erase = spi_block_erase_d8,
9249 }, {
9250 .eraseblocks = { {32 * 1024, 256} },
9251 .block_erase = spi_block_erase_52,
9252 }, {
9253 .eraseblocks = { {8 * 1024 * 1024, 1} },
9254 .block_erase = spi_block_erase_60,
9255 }, {
9256 .eraseblocks = { {8 * 1024 * 1024, 1} },
9257 .block_erase = spi_block_erase_c7,
9258 }
9259 },
9260 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9261 .unlock = spi_disable_blockprotect_bp3_srwd,
9262 .write = spi_chip_write_256,
9263 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9264 .voltage = {1650, 3600},
9265 },
9266
9267 {
9268 .vendor = "Macronix",
9269 .name = "MX25U12835F",
9270 .bustype = BUS_SPI,
9271 .manufacture_id = MACRONIX_ID,
9272 .model_id = MACRONIX_MX25U12835E,
Stefan Tauner5c316f92015-02-08 21:57:52 +00009273 .total_size = 16384,
9274 .page_size = 256,
9275 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
Alan Green1f9cc7d2019-07-01 11:10:45 +10009276 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner5c316f92015-02-08 21:57:52 +00009277 .tested = TEST_OK_PREW,
9278 .probe = probe_spi_rdid,
9279 .probe_timing = TIMING_ZERO,
9280 .block_erasers =
9281 {
9282 {
9283 .eraseblocks = { {4 * 1024, 4096} },
9284 .block_erase = spi_block_erase_20,
9285 }, {
9286 .eraseblocks = { {32 * 1024, 512} },
9287 .block_erase = spi_block_erase_52,
9288 }, {
9289 .eraseblocks = { {64 * 1024, 256} },
9290 .block_erase = spi_block_erase_d8,
9291 }, {
9292 .eraseblocks = { {16 * 1024 * 1024, 1} },
9293 .block_erase = spi_block_erase_60,
9294 }, {
9295 .eraseblocks = { {16 * 1024 * 1024, 1} },
9296 .block_erase = spi_block_erase_c7,
9297 }
9298 },
Angel Ponsf112e242018-09-30 20:14:17 +02009299 /* TODO: security register */
9300 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9301 .unlock = spi_disable_blockprotect_bp3_srwd,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009302 .write = spi_chip_write_256, /* Multi I/O supported */
Angel Ponsf112e242018-09-30 20:14:17 +02009303 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9304 .voltage = {1650, 2000},
9305 },
9306
9307 {
9308 .vendor = "Macronix",
Vincent Palatinf800f552013-03-15 02:03:16 +00009309 .name = "MX25U1635E",
9310 .bustype = BUS_SPI,
9311 .manufacture_id = MACRONIX_ID,
9312 .model_id = MACRONIX_MX25U1635E,
9313 .total_size = 2048,
9314 .page_size = 256,
9315 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9316 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
9317 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner5c316f92015-02-08 21:57:52 +00009318 .tested = TEST_OK_PR,
Vincent Palatinf800f552013-03-15 02:03:16 +00009319 .probe = probe_spi_rdid,
9320 .probe_timing = TIMING_ZERO,
9321 .block_erasers =
9322 {
9323 {
9324 .eraseblocks = { {4 * 1024, 512} },
9325 .block_erase = spi_block_erase_20,
9326 }, {
9327 .eraseblocks = { {32 * 1024, 64} },
9328 .block_erase = spi_block_erase_52,
9329 }, {
9330 .eraseblocks = { {64 * 1024, 32} },
9331 .block_erase = spi_block_erase_d8,
9332 }, {
9333 .eraseblocks = { {2 * 1024 * 1024, 1} },
9334 .block_erase = spi_block_erase_60,
9335 }, {
9336 .eraseblocks = { {2 * 1024 * 1024, 1} },
9337 .block_erase = spi_block_erase_c7,
9338 }
9339 },
9340 /* TODO: security register */
Stefan Tauner12f3d512014-05-27 21:27:27 +00009341 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009342 .unlock = spi_disable_blockprotect_bp3_srwd,
Vincent Palatinf800f552013-03-15 02:03:16 +00009343 .write = spi_chip_write_256,
9344 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9345 .voltage = {1650, 2000},
9346 },
9347
9348 {
9349 .vendor = "Macronix",
David Tomaschikf75d8c52019-06-20 09:49:01 -07009350 .name = "MX25U25635F",
9351 .bustype = BUS_SPI,
9352 .manufacture_id = MACRONIX_ID,
9353 .model_id = MACRONIX_MX25U25635F,
9354 .total_size = 32768,
9355 .page_size = 256,
9356 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9357 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_4BA,
Nikolai Artemiev148254b2021-03-23 17:21:10 +11009358 .tested = TEST_OK_PREW,
David Tomaschikf75d8c52019-06-20 09:49:01 -07009359 .probe = probe_spi_rdid,
9360 .probe_timing = TIMING_ZERO,
9361 .block_erasers =
9362 {
9363 {
9364 .eraseblocks = { {4 * 1024, 8192} },
9365 .block_erase = spi_block_erase_21,
9366 }, {
9367 .eraseblocks = { {4 * 1024, 8192} },
9368 .block_erase = spi_block_erase_20,
9369 }, {
9370 .eraseblocks = { {32 * 1024, 1024} },
9371 .block_erase = spi_block_erase_5c,
9372 }, {
9373 .eraseblocks = { {32 * 1024, 1024} },
9374 .block_erase = spi_block_erase_52,
9375 }, {
9376 .eraseblocks = { {64 * 1024, 512} },
9377 .block_erase = spi_block_erase_dc,
9378 }, {
9379 .eraseblocks = { {64 * 1024, 512} },
9380 .block_erase = spi_block_erase_d8,
9381 }, {
9382 .eraseblocks = { {32 * 1024 * 1024, 1} },
9383 .block_erase = spi_block_erase_60,
9384 }, {
9385 .eraseblocks = { {32 * 1024 * 1024, 1} },
9386 .block_erase = spi_block_erase_c7,
9387 }
9388 },
9389 /* TODO: security register */
9390 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9391 .unlock = spi_disable_blockprotect_bp3_srwd,
9392 .write = spi_chip_write_256, /* Multi I/O supported */
9393 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9394 .voltage = {1650, 2000},
9395 },
9396
9397 {
9398 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009399 .name = "MX25U3235E/F",
9400 .bustype = BUS_SPI,
9401 .manufacture_id = MACRONIX_ID,
9402 .model_id = MACRONIX_MX25U3235E,
9403 .total_size = 4096,
9404 .page_size = 256,
9405 /* F model supports SFDP */
9406 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9407 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
9408 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
9409 .tested = TEST_OK_PREW,
9410 .probe = probe_spi_rdid,
9411 .probe_timing = TIMING_ZERO,
9412 .block_erasers =
9413 {
9414 {
9415 .eraseblocks = { {4 * 1024, 1024} },
9416 .block_erase = spi_block_erase_20,
9417 }, {
9418 .eraseblocks = { {32 * 1024, 128} },
9419 .block_erase = spi_block_erase_52,
9420 }, {
9421 .eraseblocks = { {64 * 1024, 64} },
9422 .block_erase = spi_block_erase_d8,
9423 }, {
9424 .eraseblocks = { {4 * 1024 * 1024, 1} },
9425 .block_erase = spi_block_erase_60,
9426 }, {
9427 .eraseblocks = { {4 * 1024 * 1024, 1} },
9428 .block_erase = spi_block_erase_c7,
9429 }
9430 },
9431 /* TODO: security register */
9432 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9433 .unlock = spi_disable_blockprotect_bp3_srwd,
9434 .write = spi_chip_write_256,
9435 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9436 .voltage = {1650, 2000},
9437 },
9438
9439 {
9440 .vendor = "Macronix",
Daniel Thompsoncadd4202018-06-04 13:52:22 +01009441 .name = "MX25U51245G",
9442 .bustype = BUS_SPI,
9443 .manufacture_id = MACRONIX_ID,
9444 .model_id = MACRONIX_MX25U51245G,
9445 .total_size = 65536,
9446 .page_size = 256,
9447 /* OTP: 512B factory programmed and 512B customer programmed; enter 0xB1, exit 0xC1 */
9448 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_4BA,
9449 .tested = TEST_OK_PREW,
9450 .probe = probe_spi_rdid,
9451 .probe_timing = TIMING_ZERO,
9452 .block_erasers =
9453 {
9454 {
9455 .eraseblocks = { {4 * 1024, 16384} },
9456 .block_erase = spi_block_erase_21,
9457 }, {
9458 .eraseblocks = { {4 * 1024, 16384} },
9459 .block_erase = spi_block_erase_20,
9460 }, {
9461 .eraseblocks = { {32 * 1024, 2048} },
9462 .block_erase = spi_block_erase_5c,
9463 }, {
9464 .eraseblocks = { {32 * 1024, 2048} },
9465 .block_erase = spi_block_erase_52,
9466 }, {
9467 .eraseblocks = { {64 * 1024, 1024} },
9468 .block_erase = spi_block_erase_dc,
9469 }, {
9470 .eraseblocks = { {64 * 1024, 1024} },
9471 .block_erase = spi_block_erase_d8,
9472 }, {
9473 .eraseblocks = { {64 * 1024 * 1024, 1} },
9474 .block_erase = spi_block_erase_60,
9475 }, {
9476 .eraseblocks = { {64 * 1024 * 1024, 1} },
9477 .block_erase = spi_block_erase_c7,
9478 }
9479 },
9480 /* TODO: security register */
9481 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9482 .unlock = spi_disable_blockprotect_bp3_srwd,
9483 .write = spi_chip_write_256, /* Multi I/O supported */
9484 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9485 .voltage = {1650, 2000},
9486 },
9487
9488 {
9489 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009490 .name = "MX25U6435E/F",
Stefan Tauner40bc96f2015-01-10 09:33:14 +00009491 .bustype = BUS_SPI,
9492 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009493 .model_id = MACRONIX_MX25U6435E,
Stefan Tauner40bc96f2015-01-10 09:33:14 +00009494 .total_size = 8192,
9495 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009496 /* F model supports SFDP */
9497 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9498 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
9499 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner40bc96f2015-01-10 09:33:14 +00009500 .tested = TEST_OK_PREW,
9501 .probe = probe_spi_rdid,
9502 .probe_timing = TIMING_ZERO,
9503 .block_erasers =
9504 {
9505 {
9506 .eraseblocks = { {4 * 1024, 2048} },
9507 .block_erase = spi_block_erase_20,
9508 }, {
Stefan Tauner40bc96f2015-01-10 09:33:14 +00009509 .eraseblocks = { {32 * 1024, 256} },
9510 .block_erase = spi_block_erase_52,
9511 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009512 .eraseblocks = { {64 * 1024, 128} },
9513 .block_erase = spi_block_erase_d8,
9514 }, {
Stefan Tauner40bc96f2015-01-10 09:33:14 +00009515 .eraseblocks = { {8 * 1024 * 1024, 1} },
9516 .block_erase = spi_block_erase_60,
9517 }, {
9518 .eraseblocks = { {8 * 1024 * 1024, 1} },
9519 .block_erase = spi_block_erase_c7,
9520 }
9521 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10009522 /* TODO: security register */
Nathan Rennie-Waldock5a7f9422018-08-10 15:35:23 +01009523 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9524 .unlock = spi_disable_blockprotect_bp3_srwd,
9525 .write = spi_chip_write_256,
9526 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Alan Green1f9cc7d2019-07-01 11:10:45 +10009527 .voltage = {1650, 2000},
9528 },
9529
9530 {
9531 .vendor = "Macronix",
9532 .name = "MX25U8032E",
9533 .bustype = BUS_SPI,
9534 .manufacture_id = MACRONIX_ID,
9535 .model_id = MACRONIX_MX25U8032E,
9536 .total_size = 1024,
9537 .page_size = 256,
9538 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9539 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9540 .tested = TEST_OK_PREW,
9541 .probe = probe_spi_rdid,
9542 .probe_timing = TIMING_ZERO,
9543 .block_erasers =
9544 {
9545 {
9546 .eraseblocks = { {4 * 1024, 256} },
9547 .block_erase = spi_block_erase_20,
9548 }, {
9549 .eraseblocks = { {32 * 1024, 32} },
9550 .block_erase = spi_block_erase_52,
9551 }, {
9552 .eraseblocks = { {64 * 1024, 16} },
9553 .block_erase = spi_block_erase_d8,
9554 }, {
9555 .eraseblocks = { {1024 * 1024, 1} },
9556 .block_erase = spi_block_erase_60,
9557 }, {
9558 .eraseblocks = { {1024 * 1024, 1} },
9559 .block_erase = spi_block_erase_c7,
9560 }
9561 },
9562 /* TODO: security register */
9563 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9564 .unlock = spi_disable_blockprotect_bp3_srwd,
9565 .write = spi_chip_write_256,
9566 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9567 .voltage = {1650, 2000},
Nathan Rennie-Waldock5a7f9422018-08-10 15:35:23 +01009568 },
9569
9570 {
9571 .vendor = "Macronix",
Mark Panajotovic502a9132009-08-24 01:42:24 +00009572 .name = "MX29F001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009573 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009574 .manufacture_id = MACRONIX_ID,
9575 .model_id = MACRONIX_MX29F001B,
Mark Panajotovic502a9132009-08-24 01:42:24 +00009576 .total_size = 128,
9577 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009578 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9579 .tested = TEST_UNTESTED,
9580 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009581 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00009582 .block_erasers =
9583 {
9584 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00009585 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00009586 {8 * 1024, 1},
9587 {4 * 1024, 2},
9588 {8 * 1024, 2},
9589 {32 * 1024, 1},
9590 {64 * 1024, 1},
9591 },
Sean Nelson35727f72010-01-28 23:55:12 +00009592 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009593 }, {
9594 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009595 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009596 }
9597 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009598 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00009599 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009600 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00009601 },
9602
9603 {
9604 .vendor = "Macronix",
9605 .name = "MX29F001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009606 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009607 .manufacture_id = MACRONIX_ID,
9608 .model_id = MACRONIX_MX29F001T,
Mark Panajotovic502a9132009-08-24 01:42:24 +00009609 .total_size = 128,
9610 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009611 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stefan Tauner74c6ec62011-05-18 01:31:46 +00009612 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00009613 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009614 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00009615 .block_erasers =
9616 {
9617 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00009618 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00009619 {64 * 1024, 1},
9620 {32 * 1024, 1},
9621 {8 * 1024, 2},
9622 {4 * 1024, 2},
9623 {8 * 1024, 1},
9624 },
Sean Nelson35727f72010-01-28 23:55:12 +00009625 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009626 }, {
9627 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009628 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009629 }
9630 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009631 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00009632 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009633 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00009634 },
9635
9636 {
9637 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00009638 .name = "MX29F002(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009639 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009640 .manufacture_id = MACRONIX_ID,
9641 .model_id = MACRONIX_MX29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009642 .total_size = 256,
9643 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009644 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009645 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00009646 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009647 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009648 .block_erasers =
9649 {
9650 {
9651 .eraseblocks = {
9652 {16 * 1024, 1},
9653 {8 * 1024, 2},
9654 {32 * 1024, 1},
9655 {64 * 1024, 3},
9656 },
Sean Nelson35727f72010-01-28 23:55:12 +00009657 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009658 }, {
9659 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009660 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009661 },
9662 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009663 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009664 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009665 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009666 },
9667
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009668 {
9669 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00009670 .name = "MX29F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009671 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009672 .manufacture_id = MACRONIX_ID,
9673 .model_id = MACRONIX_MX29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009674 .total_size = 256,
9675 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009676 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00009677 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00009678 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009679 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009680 .block_erasers =
9681 {
9682 {
9683 .eraseblocks = {
9684 {64 * 1024, 3},
9685 {32 * 1024, 1},
9686 {8 * 1024, 2},
9687 {16 * 1024, 1},
9688 },
Sean Nelson35727f72010-01-28 23:55:12 +00009689 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009690 }, {
9691 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009692 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009693 },
9694 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009695 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009696 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009697 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009698 },
9699
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009700 {
9701 .vendor = "Macronix",
Daniele Forsi6a18a932014-07-13 14:53:45 +00009702 .name = "MX29F022(N)B",
9703 .bustype = BUS_PARALLEL,
9704 .manufacture_id = MACRONIX_ID,
9705 .model_id = MACRONIX_MX29F022B,
9706 .total_size = 256,
9707 .page_size = 0, /* unused */
9708 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9709 .tested = TEST_UNTESTED,
9710 .probe = probe_jedec,
9711 .probe_timing = TIMING_ZERO,
9712 .block_erasers =
9713 {
9714 {
9715 .eraseblocks = {
9716 {16 * 1024, 1},
9717 {8 * 1024, 2},
9718 {32 * 1024, 1},
9719 {64 * 1024, 3},
9720 },
9721 .block_erase = erase_sector_jedec,
9722 }, {
9723 .eraseblocks = { {256 * 1024, 1} },
9724 .block_erase = erase_chip_block_jedec,
9725 }
9726 },
9727 .write = write_jedec_1,
9728 .read = read_memmapped,
9729 .voltage = {4500, 5500},
9730 },
9731
9732 {
9733 .vendor = "Macronix",
9734 .name = "MX29F022(N)T",
9735 .bustype = BUS_PARALLEL,
9736 .manufacture_id = MACRONIX_ID,
9737 .model_id = MACRONIX_MX29F022T,
9738 .total_size = 256,
9739 .page_size = 0, /* unused */
9740 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9741 .tested = TEST_OK_PREW,
9742 .probe = probe_jedec,
9743 .probe_timing = TIMING_ZERO,
9744 .block_erasers =
9745 {
9746 {
9747 .eraseblocks = {
9748 {64 * 1024, 3},
9749 {32 * 1024, 1},
9750 {8 * 1024, 2},
9751 {16 * 1024, 1},
9752 },
9753 .block_erase = erase_sector_jedec,
9754 }, {
9755 .eraseblocks = { {256 * 1024, 1} },
9756 .block_erase = erase_chip_block_jedec,
9757 }
9758 },
9759 .write = write_jedec_1,
9760 .read = read_memmapped,
9761 .voltage = {4500, 5500},
9762 },
9763
9764 {
9765 .vendor = "Macronix",
Joshua Roysf1324e02010-09-16 00:51:51 +00009766 .name = "MX29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009767 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00009768 .manufacture_id = MACRONIX_ID,
9769 .model_id = MACRONIX_MX29F040,
9770 .total_size = 512,
9771 .page_size = 64 * 1024,
9772 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9773 .tested = TEST_UNTESTED,
9774 .probe = probe_jedec,
9775 .probe_timing = TIMING_ZERO,
9776 .block_erasers =
9777 {
9778 {
9779 .eraseblocks = { {64 * 1024, 8} },
9780 .block_erase = erase_sector_jedec,
9781 }, {
9782 .eraseblocks = { {512 * 1024, 1} },
9783 .block_erase = erase_chip_block_jedec,
9784 },
9785 },
9786 .write = write_jedec_1,
9787 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009788 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00009789 },
9790
9791 {
9792 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009793 .name = "MX29GL128F",
9794 .bustype = BUS_PARALLEL,
9795 .manufacture_id = MACRONIX_ID,
9796 .model_id = MACRONIX_MX29GL128F,
9797 .total_size = 16384,
9798 .page_size = 128 * 1024, /* actual page size is 16 */
9799 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9800 .tested = TEST_UNTESTED,
9801 .probe = probe_jedec_29gl,
9802 .probe_timing = TIMING_ZERO,
9803 .block_erasers =
9804 {
9805 {
9806 .eraseblocks = { {128 * 1024, 128} },
9807 .block_erase = erase_sector_jedec,
9808 }, {
9809 .eraseblocks = { {16 * 1024 * 1024, 1} },
9810 .block_erase = erase_chip_block_jedec,
9811 },
9812 },
9813 .write = write_jedec_1,
9814 .read = read_memmapped,
9815 .voltage = {2700, 3600},
9816 },
9817
9818 {
9819 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00009820 .name = "MX29GL320EB",
9821 .bustype = BUS_PARALLEL,
9822 .manufacture_id = MACRONIX_ID,
9823 .model_id = MACRONIX_MX29GL320EB,
9824 .total_size = 4096,
9825 .page_size = 128 * 1024, /* actual page size is 16 */
9826 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9827 .tested = TEST_UNTESTED,
9828 .probe = probe_jedec_29gl,
9829 .probe_timing = TIMING_ZERO,
9830 .block_erasers =
9831 {
9832 {
9833 .eraseblocks = {
9834 {8 * 1024, 8},
9835 {64 * 1024, 63},
9836 },
9837 .block_erase = erase_sector_jedec,
9838 }, {
9839 .eraseblocks = { {4 * 1024 * 1024, 1} },
9840 .block_erase = erase_chip_block_jedec,
9841 },
9842 },
9843 .write = write_jedec_1,
9844 .read = read_memmapped,
9845 .voltage = {2700, 3600},
9846 },
9847
9848 {
9849 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009850 .name = "MX29GL320EH/L",
9851 .bustype = BUS_PARALLEL,
9852 .manufacture_id = MACRONIX_ID,
9853 .model_id = MACRONIX_MX29GL320EHL,
9854 .total_size = 4096,
9855 .page_size = 128 * 1024, /* actual page size is 16 */
9856 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9857 .tested = TEST_UNTESTED,
9858 .probe = probe_jedec_29gl,
9859 .probe_timing = TIMING_ZERO,
9860 .block_erasers =
9861 {
9862 {
9863 .eraseblocks = { {64 * 1024, 64} },
9864 .block_erase = erase_sector_jedec,
9865 }, {
9866 .eraseblocks = { {4 * 1024 * 1024, 1} },
9867 .block_erase = erase_chip_block_jedec,
9868 },
9869 },
9870 .write = write_jedec_1,
9871 .read = read_memmapped,
9872 .voltage = {2700, 3600},
9873 },
9874
9875 {
9876 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00009877 .name = "MX29GL320ET",
9878 .bustype = BUS_PARALLEL,
9879 .manufacture_id = MACRONIX_ID,
9880 .model_id = MACRONIX_MX29GL320ET,
9881 .total_size = 4096,
9882 .page_size = 128 * 1024, /* actual page size is 16 */
9883 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9884 .tested = TEST_UNTESTED,
9885 .probe = probe_jedec_29gl,
9886 .probe_timing = TIMING_ZERO,
9887 .block_erasers =
9888 {
9889 {
9890 .eraseblocks = {
9891 {64 * 1024, 63},
9892 {8 * 1024, 8},
9893 },
9894 .block_erase = erase_sector_jedec,
9895 }, {
9896 .eraseblocks = { {4 * 1024 * 1024, 1} },
9897 .block_erase = erase_chip_block_jedec,
9898 },
9899 },
9900 .write = write_jedec_1,
9901 .read = read_memmapped,
9902 .voltage = {2700, 3600},
9903 },
9904
9905 {
9906 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00009907 .name = "MX29GL640EB",
9908 .bustype = BUS_PARALLEL,
9909 .manufacture_id = MACRONIX_ID,
9910 .model_id = MACRONIX_MX29GL640EB,
9911 .total_size = 8192,
9912 .page_size = 128 * 1024, /* actual page size is 16 */
9913 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9914 .tested = TEST_UNTESTED,
9915 .probe = probe_jedec_29gl,
9916 .probe_timing = TIMING_ZERO,
9917 .block_erasers =
9918 {
9919 {
9920 .eraseblocks = {
9921 {8 * 1024, 8},
9922 {64 * 1024, 127},
9923 },
9924 .block_erase = erase_sector_jedec,
9925 }, {
9926 .eraseblocks = { {8 * 1024 * 1024, 1} },
9927 .block_erase = erase_chip_block_jedec,
9928 },
9929 },
9930 .write = write_jedec_1,
9931 .read = read_memmapped,
9932 .voltage = {2700, 3600},
9933 },
9934
9935 {
9936 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009937 .name = "MX29GL640EH/L",
9938 .bustype = BUS_PARALLEL,
9939 .manufacture_id = MACRONIX_ID,
9940 .model_id = MACRONIX_MX29GL640EHL,
9941 .total_size = 8192,
9942 .page_size = 128 * 1024, /* actual page size is 16 */
9943 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9944 .tested = TEST_UNTESTED,
9945 .probe = probe_jedec_29gl,
9946 .probe_timing = TIMING_ZERO,
9947 .block_erasers =
9948 {
9949 {
9950 .eraseblocks = { {64 * 1024, 128} },
9951 .block_erase = erase_sector_jedec,
9952 }, {
9953 .eraseblocks = { {8 * 1024 * 1024, 1} },
9954 .block_erase = erase_chip_block_jedec,
9955 },
9956 },
9957 .write = write_jedec_1,
9958 .read = read_memmapped,
9959 .voltage = {2700, 3600},
9960 },
9961
9962 {
9963 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00009964 .name = "MX29GL640ET",
9965 .bustype = BUS_PARALLEL,
9966 .manufacture_id = MACRONIX_ID,
9967 .model_id = MACRONIX_MX29GL640ET,
9968 .total_size = 8192,
9969 .page_size = 128 * 1024, /* actual page size is 16 */
9970 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9971 .tested = TEST_UNTESTED,
9972 .probe = probe_jedec_29gl,
9973 .probe_timing = TIMING_ZERO,
9974 .block_erasers =
9975 {
9976 {
9977 .eraseblocks = {
9978 {64 * 1024, 127},
9979 {8 * 1024, 8},
9980 },
9981 .block_erase = erase_sector_jedec,
9982 }, {
9983 .eraseblocks = { {8 * 1024 * 1024, 1} },
9984 .block_erase = erase_chip_block_jedec,
9985 },
9986 },
9987 .write = write_jedec_1,
9988 .read = read_memmapped,
9989 .voltage = {2700, 3600},
9990 },
9991
9992 {
9993 .vendor = "Macronix",
Carl-Daniel Hailfinger350a0c32009-07-24 13:59:27 +00009994 .name = "MX29LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009995 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009996 .manufacture_id = MACRONIX_ID,
9997 .model_id = MACRONIX_MX29LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009998 .total_size = 512,
9999 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010000 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
10001 .tested = TEST_UNTESTED,
10002 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +000010003 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +000010004 .block_erasers =
10005 {
10006 {
Stefan Tauner6697f712014-08-06 15:09:15 +000010007 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +000010008 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +000010009 }, {
10010 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000010011 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +000010012 },
10013 },
Michael Karcher1c296ca2009-11-27 17:49:42 +000010014 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010015 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010016 .voltage = {2700, 3600},
Carl-Daniel Hailfinger7de86392008-12-10 10:32:05 +000010017 },
10018
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010019 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010020 .vendor = "Macronix",
Hemanth Guruva Reddya136d422019-07-11 11:08:27 +020010021 .name = "MX66L51235F/MX25L51245G",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010022 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010023 .manufacture_id = MACRONIX_ID,
10024 .model_id = MACRONIX_MX66L51235F,
10025 .total_size = 65536,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010026 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010027 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
10028 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010029 .tested = TEST_OK_PREW,
10030 .probe = probe_spi_rdid,
10031 .probe_timing = TIMING_ZERO,
10032 .block_erasers =
10033 {
10034 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010035 .eraseblocks = { {4 * 1024, 16384} },
10036 .block_erase = spi_block_erase_21,
10037 }, {
10038 .eraseblocks = { {4 * 1024, 16384} },
10039 .block_erase = spi_block_erase_20,
10040 }, {
10041 .eraseblocks = { {32 * 1024, 2048} },
10042 .block_erase = spi_block_erase_5c,
10043 }, {
10044 .eraseblocks = { {32 * 1024, 2048} },
10045 .block_erase = spi_block_erase_52,
10046 }, {
10047 .eraseblocks = { {64 * 1024, 1024} },
10048 .block_erase = spi_block_erase_dc,
10049 }, {
10050 .eraseblocks = { {64 * 1024, 1024} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010051 .block_erase = spi_block_erase_d8,
10052 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010053 .eraseblocks = { {64 * 1024 * 1024, 1} },
10054 .block_erase = spi_block_erase_60,
10055 }, {
10056 .eraseblocks = { {64 * 1024 * 1024, 1} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010057 .block_erase = spi_block_erase_c7,
10058 }
10059 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100010060 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
10061 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010062 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010063 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010064 .read = spi_chip_read, /* Fast read (0x0B) supported */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010065 .voltage = {2700, 3600},
10066 },
10067
Patrick Rudolph3ba83152021-06-08 10:52:19 +020010068 {
10069 .vendor = "Macronix",
10070 .name = "MX66L1G45G",
10071 .bustype = BUS_SPI,
10072 .manufacture_id = MACRONIX_ID,
10073 .model_id = MACRONIX_MX66L1G45G,
10074 .total_size = 131072,
10075 .page_size = 256,
10076 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
10077 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
10078 .tested = TEST_OK_PREW,
10079 .probe = probe_spi_rdid,
10080 .probe_timing = TIMING_ZERO,
10081 .block_erasers =
10082 {
10083 {
10084 .eraseblocks = { {4 * 1024, 32768} },
10085 .block_erase = spi_block_erase_21,
10086 }, {
10087 .eraseblocks = { {4 * 1024, 32768} },
10088 .block_erase = spi_block_erase_20,
10089 }, {
10090 .eraseblocks = { {32 * 1024, 4096} },
10091 .block_erase = spi_block_erase_5c,
10092 }, {
10093 .eraseblocks = { {32 * 1024, 4096} },
10094 .block_erase = spi_block_erase_52,
10095 }, {
10096 .eraseblocks = { {64 * 1024, 2048} },
10097 .block_erase = spi_block_erase_dc,
10098 }, {
10099 .eraseblocks = { {64 * 1024, 2048} },
10100 .block_erase = spi_block_erase_d8,
10101 }, {
10102 .eraseblocks = { {128 * 1024 * 1024, 1} },
10103 .block_erase = spi_block_erase_60,
10104 }, {
10105 .eraseblocks = { {128 * 1024 * 1024, 1} },
10106 .block_erase = spi_block_erase_c7,
10107 }
10108 },
10109 /* TODO: security register and SBLK/SBULK, configuration register */
10110 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
10111 .unlock = spi_disable_blockprotect_bp3_srwd,
10112 .write = spi_chip_write_256,
10113 .read = spi_chip_read, /* Fast read (0x0B) supported */
10114 .voltage = {2700, 3600},
10115 },
10116
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010117 /* The ST M25P05 is a bit of a problem. It has the same ID as the
10118 * ST M25P05-A in RES mode, but supports only 128 byte writes instead
10119 * of 256 byte writes. We rely heavily on the fact that probe_spi_res1
10120 * only is successful if RDID does not work.
10121 */
10122 {
10123 .vendor = "Micron/Numonyx/ST",
10124 .name = "M25P05",
10125 .bustype = BUS_SPI,
10126 .manufacture_id = 0, /* Not used. */
10127 .model_id = ST_M25P05_RES,
10128 .total_size = 64,
10129 .page_size = 256,
10130 .feature_bits = FEATURE_WRSR_WREN,
10131 .tested = TEST_UNTESTED,
10132 .probe = probe_spi_res1,
10133 .probe_timing = TIMING_ZERO,
10134 .block_erasers =
10135 {
10136 {
10137 .eraseblocks = { {32 * 1024, 2} },
10138 .block_erase = spi_block_erase_d8,
10139 }, {
10140 .eraseblocks = { {64 * 1024, 1} },
10141 .block_erase = spi_block_erase_c7,
10142 }
10143 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010144 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010145 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010146 .write = spi_chip_write_1, /* 128 */
10147 .read = spi_chip_read,
10148 .voltage = {2700, 3600},
10149 },
10150
10151 {
10152 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010153 .name = "M25P05-A",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010154 .bustype = BUS_SPI,
10155 .manufacture_id = ST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010156 .model_id = ST_M25P05A,
10157 .total_size = 64,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010158 .page_size = 256,
10159 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000010160 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010161 .probe = probe_spi_rdid,
10162 .probe_timing = TIMING_ZERO,
10163 .block_erasers =
10164 {
10165 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010166 .eraseblocks = { {32 * 1024, 2} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010167 .block_erase = spi_block_erase_d8,
10168 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010169 .eraseblocks = { {64 * 1024, 1} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010170 .block_erase = spi_block_erase_c7,
10171 }
10172 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010173 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010174 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010175 .write = spi_chip_write_256,
10176 .read = spi_chip_read,
10177 .voltage = {2700, 3600},
10178 },
10179
10180 /* The ST M25P10 has the same problem as the M25P05. */
10181 {
10182 .vendor = "Micron/Numonyx/ST",
10183 .name = "M25P10",
10184 .bustype = BUS_SPI,
10185 .manufacture_id = 0, /* Not used. */
10186 .model_id = ST_M25P10_RES,
10187 .total_size = 128,
10188 .page_size = 256,
10189 .feature_bits = FEATURE_WRSR_WREN,
10190 .tested = TEST_UNTESTED,
10191 .probe = probe_spi_res1,
10192 .probe_timing = TIMING_ZERO,
10193 .block_erasers =
10194 {
10195 {
10196 .eraseblocks = { {32 * 1024, 4} },
10197 .block_erase = spi_block_erase_d8,
10198 }, {
10199 .eraseblocks = { {128 * 1024, 1} },
10200 .block_erase = spi_block_erase_c7,
10201 }
10202 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010203 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010204 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010205 .write = spi_chip_write_1, /* 128 */
10206 .read = spi_chip_read,
10207 .voltage = {2700, 3600},
10208 },
10209
10210 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010211 .vendor = "Micron/Numonyx/ST",
10212 .name = "M25P10-A",
10213 .bustype = BUS_SPI,
10214 .manufacture_id = ST_ID,
10215 .model_id = ST_M25P10A,
10216 .total_size = 128,
10217 .page_size = 256,
10218 .feature_bits = FEATURE_WRSR_WREN,
10219 .tested = TEST_OK_PREW,
10220 .probe = probe_spi_rdid,
10221 .probe_timing = TIMING_ZERO,
10222 .block_erasers =
10223 {
10224 {
10225 .eraseblocks = { {32 * 1024, 4} },
10226 .block_erase = spi_block_erase_d8,
10227 }, {
10228 .eraseblocks = { {128 * 1024, 1} },
10229 .block_erase = spi_block_erase_c7,
10230 }
10231 },
10232 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
10233 .unlock = spi_disable_blockprotect_bp3_srwd,
10234 .write = spi_chip_write_256,
10235 .read = spi_chip_read,
10236 .voltage = {2700, 3600},
10237 },
10238
10239 {
10240 .vendor = "Micron/Numonyx/ST",
10241 .name = "M25P128",
10242 .bustype = BUS_SPI,
10243 .manufacture_id = ST_ID,
10244 .model_id = ST_M25P128,
10245 .total_size = 16384,
10246 .page_size = 256,
10247 .feature_bits = FEATURE_WRSR_WREN,
10248 .tested = TEST_OK_PREW,
10249 .probe = probe_spi_rdid,
10250 .probe_timing = TIMING_ZERO,
10251 .block_erasers =
10252 {
10253 {
10254 .eraseblocks = { {256 * 1024, 64} },
10255 .block_erase = spi_block_erase_d8,
10256 }, {
10257 .eraseblocks = { {16 * 1024 * 1024, 1} },
10258 .block_erase = spi_block_erase_c7,
10259 }
10260 },
10261 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
10262 .unlock = spi_disable_blockprotect_bp3_srwd,
10263 .write = spi_chip_write_256,
10264 .read = spi_chip_read,
10265 .voltage = {2700, 3600},
10266 },
10267
10268 {
10269 .vendor = "Micron/Numonyx/ST",
10270 .name = "M25P16",
10271 .bustype = BUS_SPI,
10272 .manufacture_id = ST_ID,
10273 .model_id = ST_M25P16,
10274 .total_size = 2048,
10275 .page_size = 256,
10276 .feature_bits = FEATURE_WRSR_WREN,
10277 .tested = TEST_OK_PREW,
10278 .probe = probe_spi_rdid,
10279 .probe_timing = TIMING_ZERO,
10280 .block_erasers =
10281 {
10282 {
10283 .eraseblocks = { {64 * 1024, 32} },
10284 .block_erase = spi_block_erase_d8,
10285 }, {
10286 .eraseblocks = { {2 * 1024 * 1024, 1} },
10287 .block_erase = spi_block_erase_c7,
10288 }
10289 },
10290 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
10291 .unlock = spi_disable_blockprotect_bp3_srwd,
10292 .write = spi_chip_write_256,
10293 .read = spi_chip_read,
10294 .voltage = {2700, 3600},
10295 },
10296
10297 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010298 .vendor = "Micron/Numonyx/ST", /* Numonyx */
10299 .name = "M25P20",
10300 .bustype = BUS_SPI,
10301 .manufacture_id = ST_ID,
10302 .model_id = ST_M25P20,
10303 .total_size = 256,
10304 .page_size = 256,
10305 .feature_bits = FEATURE_WRSR_WREN,
10306 .tested = TEST_UNTESTED,
10307 .probe = probe_spi_rdid,
10308 .probe_timing = TIMING_ZERO,
10309 .block_erasers =
10310 {
10311 {
10312 .eraseblocks = { {64 * 1024, 4} },
10313 .block_erase = spi_block_erase_d8,
10314 }, {
10315 .eraseblocks = { {256 * 1024, 1} },
10316 .block_erase = spi_block_erase_c7,
10317 }
10318 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010319 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010320 .unlock = spi_disable_blockprotect,
10321 .write = spi_chip_write_256,
10322 .read = spi_chip_read, /* Fast read (0x0B) supported */
10323 .voltage = {2700, 3600},
10324 },
10325
10326 {
10327 .vendor = "Micron/Numonyx/ST",
10328 .name = "M25P20-old",
10329 .bustype = BUS_SPI,
10330 .manufacture_id = 0, /* Not used. */
10331 .model_id = ST_M25P20_RES,
10332 .total_size = 256,
10333 .page_size = 256,
10334 .feature_bits = FEATURE_WRSR_WREN,
10335 .tested = TEST_OK_PREW,
10336 .probe = probe_spi_res1,
10337 .probe_timing = TIMING_ZERO,
10338 .block_erasers =
10339 {
10340 {
10341 .eraseblocks = { {64 * 1024, 4} },
10342 .block_erase = spi_block_erase_d8,
10343 }, {
10344 .eraseblocks = { {256 * 1024, 1} },
10345 .block_erase = spi_block_erase_c7,
10346 }
10347 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010348 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010349 .unlock = spi_disable_blockprotect,
10350 .write = spi_chip_write_256,
10351 .read = spi_chip_read, /* Fast read (0x0B) supported */
10352 .voltage = {2700, 3600},
10353 },
10354
10355 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010356 .vendor = "Micron/Numonyx/ST",
10357 .name = "M25P32",
10358 .bustype = BUS_SPI,
10359 .manufacture_id = ST_ID,
10360 .model_id = ST_M25P32,
10361 .total_size = 4096,
10362 .page_size = 256,
10363 .feature_bits = FEATURE_WRSR_WREN,
10364 .tested = TEST_OK_PREW,
10365 .probe = probe_spi_rdid,
10366 .probe_timing = TIMING_ZERO,
10367 .block_erasers =
10368 {
10369 {
10370 .eraseblocks = { {64 * 1024, 64} },
10371 .block_erase = spi_block_erase_d8,
10372 }, {
10373 .eraseblocks = { {4 * 1024 * 1024, 1} },
10374 .block_erase = spi_block_erase_c7,
10375 }
10376 },
10377 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
10378 .unlock = spi_disable_blockprotect_bp3_srwd,
10379 .write = spi_chip_write_256,
10380 .read = spi_chip_read,
10381 .voltage = {2700, 3600},
10382 },
10383
10384 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010385 .vendor = "Micron/Numonyx/ST", /* Numonyx */
10386 .name = "M25P40",
10387 .bustype = BUS_SPI,
10388 .manufacture_id = ST_ID,
10389 .model_id = ST_M25P40,
10390 .total_size = 512,
10391 .page_size = 256,
10392 .feature_bits = FEATURE_WRSR_WREN,
10393 .tested = TEST_OK_PREW,
10394 .probe = probe_spi_rdid,
10395 .probe_timing = TIMING_ZERO,
10396 .block_erasers =
10397 {
10398 {
10399 .eraseblocks = { {64 * 1024, 8} },
10400 .block_erase = spi_block_erase_d8,
10401 }, {
10402 .eraseblocks = { {512 * 1024, 1} },
10403 .block_erase = spi_block_erase_c7,
10404 }
10405 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010406 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010407 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010408 .write = spi_chip_write_256,
10409 .read = spi_chip_read,
10410 .voltage = {2700, 3600},
10411 },
10412
10413 {
10414 .vendor = "Micron/Numonyx/ST",
10415 .name = "M25P40-old",
10416 .bustype = BUS_SPI,
10417 .manufacture_id = 0, /* Not used. */
10418 .model_id = ST_M25P40_RES,
10419 .total_size = 512,
10420 .page_size = 256,
10421 .feature_bits = FEATURE_WRSR_WREN,
10422 .tested = TEST_UNTESTED,
10423 .probe = probe_spi_res1,
10424 .probe_timing = TIMING_ZERO,
10425 .block_erasers =
10426 {
10427 {
10428 .eraseblocks = { {64 * 1024, 8} },
10429 .block_erase = spi_block_erase_d8,
10430 }, {
10431 .eraseblocks = { {512 * 1024, 1} },
10432 .block_erase = spi_block_erase_c7,
10433 }
10434 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010435 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010436 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010437 .write = spi_chip_write_256,
10438 .read = spi_chip_read,
10439 },
10440
10441 {
10442 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010443 .name = "M25P64",
10444 .bustype = BUS_SPI,
10445 .manufacture_id = ST_ID,
10446 .model_id = ST_M25P64,
10447 .total_size = 8192,
10448 .page_size = 256,
10449 .feature_bits = FEATURE_WRSR_WREN,
10450 .tested = TEST_OK_PREW,
10451 .probe = probe_spi_rdid,
10452 .probe_timing = TIMING_ZERO,
10453 .block_erasers =
10454 {
10455 {
10456 .eraseblocks = { {64 * 1024, 128} },
10457 .block_erase = spi_block_erase_d8,
10458 }, {
10459 .eraseblocks = { {8 * 1024 * 1024, 1} },
10460 .block_erase = spi_block_erase_c7,
10461 }
10462 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010463 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010464 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010465 .write = spi_chip_write_256,
10466 .read = spi_chip_read,
10467 .voltage = {2700, 3600},
10468 },
10469
10470 {
10471 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010472 .name = "M25P80",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010473 .bustype = BUS_SPI,
10474 .manufacture_id = ST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010475 .model_id = ST_M25P80,
10476 .total_size = 1024,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010477 .page_size = 256,
10478 .feature_bits = FEATURE_WRSR_WREN,
10479 .tested = TEST_OK_PREW,
10480 .probe = probe_spi_rdid,
10481 .probe_timing = TIMING_ZERO,
10482 .block_erasers =
10483 {
10484 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010485 .eraseblocks = { {64 * 1024, 16} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010486 .block_erase = spi_block_erase_d8,
10487 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010488 .eraseblocks = { {1024 * 1024, 1} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010489 .block_erase = spi_block_erase_c7,
10490 }
10491 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010492 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010493 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010494 .write = spi_chip_write_256,
10495 .read = spi_chip_read,
10496 .voltage = {2700, 3600},
10497 },
10498
10499 {
10500 .vendor = "Micron/Numonyx/ST",
10501 .name = "M25PE10",
10502 .bustype = BUS_SPI,
10503 .manufacture_id = ST_ID,
10504 .model_id = ST_M25PE10,
10505 .total_size = 128,
10506 .page_size = 256,
10507 .feature_bits = FEATURE_WRSR_WREN,
10508 .tested = TEST_UNTESTED,
10509 .probe = probe_spi_rdid,
10510 .probe_timing = TIMING_ZERO,
10511 .block_erasers =
10512 {
10513 {
10514 .eraseblocks = { {4 * 1024, 32} },
10515 .block_erase = spi_block_erase_20,
10516 }, {
10517 .eraseblocks = { {64 * 1024, 2} },
10518 .block_erase = spi_block_erase_d8,
10519 }, {
10520 .eraseblocks = { {128 * 1024, 1} },
10521 .block_erase = spi_block_erase_c7,
10522 }
10523 },
10524 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10525 .unlock = spi_disable_blockprotect,
10526 .write = spi_chip_write_256,
10527 .read = spi_chip_read,
10528 .voltage = {2700, 3600},
10529 },
10530
10531 {
10532 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010533 .name = "M25PE16",
10534 .bustype = BUS_SPI,
10535 .manufacture_id = ST_ID,
10536 .model_id = ST_M25PE16,
10537 .total_size = 2048,
10538 .page_size = 256,
10539 .feature_bits = FEATURE_WRSR_WREN,
10540 .tested = TEST_UNTESTED,
10541 .probe = probe_spi_rdid,
10542 .probe_timing = TIMING_ZERO,
10543 .block_erasers =
10544 {
10545 {
10546 .eraseblocks = { {4 * 1024, 512} },
10547 .block_erase = spi_block_erase_20,
10548 }, {
10549 .eraseblocks = { {64 * 1024, 32} },
10550 .block_erase = spi_block_erase_d8,
10551 }, {
10552 .eraseblocks = { {2 * 1024 * 1024, 1} },
10553 .block_erase = spi_block_erase_c7,
10554 }
10555 },
10556 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10557 .unlock = spi_disable_blockprotect,
10558 .write = spi_chip_write_256,
10559 .read = spi_chip_read,
10560 .voltage = {2700, 3600},
10561 },
10562
10563 {
10564 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010565 .name = "M25PE20",
10566 .bustype = BUS_SPI,
10567 .manufacture_id = ST_ID,
10568 .model_id = ST_M25PE20,
10569 .total_size = 256,
10570 .page_size = 256,
10571 .feature_bits = FEATURE_WRSR_WREN,
10572 .tested = TEST_UNTESTED,
10573 .probe = probe_spi_rdid,
10574 .probe_timing = TIMING_ZERO,
10575 .block_erasers =
10576 {
10577 {
10578 .eraseblocks = { {4 * 1024, 64} },
10579 .block_erase = spi_block_erase_20,
10580 }, {
10581 .eraseblocks = { {64 * 1024, 4} },
10582 .block_erase = spi_block_erase_d8,
10583 }, {
10584 .eraseblocks = { {256 * 1024, 1} },
10585 .block_erase = spi_block_erase_c7,
10586 }
10587 },
10588 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10589 .unlock = spi_disable_blockprotect,
10590 .write = spi_chip_write_256,
10591 .read = spi_chip_read,
10592 .voltage = {2700, 3600},
10593 },
10594
10595 {
10596 .vendor = "Micron/Numonyx/ST",
10597 .name = "M25PE40",
10598 .bustype = BUS_SPI,
10599 .manufacture_id = ST_ID,
10600 .model_id = ST_M25PE40,
10601 .total_size = 512,
10602 .page_size = 256,
10603 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000010604 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010605 .probe = probe_spi_rdid,
10606 .probe_timing = TIMING_ZERO,
10607 .block_erasers =
10608 {
10609 {
10610 .eraseblocks = { {4 * 1024, 128} },
10611 .block_erase = spi_block_erase_20,
10612 }, {
10613 .eraseblocks = { {64 * 1024, 8} },
10614 .block_erase = spi_block_erase_d8,
10615 }, {
10616 .eraseblocks = { {512 * 1024, 1} },
10617 .block_erase = spi_block_erase_c7,
10618 }
10619 },
10620 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10621 .unlock = spi_disable_blockprotect,
10622 .write = spi_chip_write_256,
10623 .read = spi_chip_read,
10624 .voltage = {2700, 3600},
10625 },
10626
10627 {
10628 .vendor = "Micron/Numonyx/ST",
10629 .name = "M25PE80",
10630 .bustype = BUS_SPI,
10631 .manufacture_id = ST_ID,
10632 .model_id = ST_M25PE80,
10633 .total_size = 1024,
10634 .page_size = 256,
10635 .feature_bits = FEATURE_WRSR_WREN,
10636 .tested = TEST_OK_PREW,
10637 .probe = probe_spi_rdid,
10638 .probe_timing = TIMING_ZERO,
10639 .block_erasers =
10640 {
10641 {
10642 .eraseblocks = { {4 * 1024, 256} },
10643 .block_erase = spi_block_erase_20,
10644 }, {
10645 .eraseblocks = { {64 * 1024, 16} },
10646 .block_erase = spi_block_erase_d8,
10647 }, {
10648 .eraseblocks = { {1024 * 1024, 1} },
10649 .block_erase = spi_block_erase_c7,
10650 }
10651 },
10652 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10653 .unlock = spi_disable_blockprotect,
10654 .write = spi_chip_write_256,
10655 .read = spi_chip_read,
10656 .voltage = {2700, 3600},
10657 },
10658
10659 {
10660 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010661 .name = "M25PX16",
10662 .bustype = BUS_SPI,
10663 .manufacture_id = ST_ID,
10664 .model_id = ST_M25PX16,
10665 .total_size = 2048,
10666 .page_size = 256,
10667 /* OTP: 64B total; read 0x4B; write 0x42 */
10668 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10669 .tested = TEST_OK_PREW,
10670 .probe = probe_spi_rdid,
10671 .probe_timing = TIMING_ZERO,
10672 .block_erasers =
10673 {
10674 {
10675 .eraseblocks = { { 4 * 1024, 512 } },
10676 .block_erase = spi_block_erase_20,
10677 }, {
10678 .eraseblocks = { {64 * 1024, 32} },
10679 .block_erase = spi_block_erase_d8,
10680 }, {
10681 .eraseblocks = { {2 * 1024 * 1024, 1} },
10682 .block_erase = spi_block_erase_c7,
10683 }
10684 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010685 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010686 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
10687 .write = spi_chip_write_256,
10688 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000010689 .voltage = {2300, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010690 },
10691
10692 {
10693 .vendor = "Micron/Numonyx/ST",
10694 .name = "M25PX32",
10695 .bustype = BUS_SPI,
10696 .manufacture_id = ST_ID,
10697 .model_id = ST_M25PX32,
10698 .total_size = 4096,
10699 .page_size = 256,
10700 /* OTP: 64B total; read 0x4B; write 0x42 */
10701 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10702 .tested = TEST_OK_PRE,
10703 .probe = probe_spi_rdid,
10704 .probe_timing = TIMING_ZERO,
10705 .block_erasers =
10706 {
10707 {
10708 .eraseblocks = { { 4 * 1024, 1024 } },
10709 .block_erase = spi_block_erase_20,
10710 }, {
10711 .eraseblocks = { {64 * 1024, 64} },
10712 .block_erase = spi_block_erase_d8,
10713 }, {
10714 .eraseblocks = { {4 * 1024 * 1024, 1} },
10715 .block_erase = spi_block_erase_c7,
10716 }
10717 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010718 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010719 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
10720 .write = spi_chip_write_256,
10721 .read = spi_chip_read,
10722 .voltage = {2700, 3600},
10723 },
10724
10725 {
10726 .vendor = "Micron/Numonyx/ST",
10727 .name = "M25PX64",
10728 .bustype = BUS_SPI,
10729 .manufacture_id = ST_ID,
10730 .model_id = ST_M25PX64,
10731 .total_size = 8192,
10732 .page_size = 256,
10733 /* OTP: 64B total; read 0x4B; write 0x42 */
10734 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000010735 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010736 .probe = probe_spi_rdid,
10737 .probe_timing = TIMING_ZERO,
10738 .block_erasers =
10739 {
10740 {
10741 .eraseblocks = { { 4 * 1024, 2048 } },
10742 .block_erase = spi_block_erase_20,
10743 }, {
10744 .eraseblocks = { {64 * 1024, 128} },
10745 .block_erase = spi_block_erase_d8,
10746 }, {
10747 .eraseblocks = { {8 * 1024 * 1024, 1} },
10748 .block_erase = spi_block_erase_c7,
10749 }
10750 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010751 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010752 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
10753 .write = spi_chip_write_256,
10754 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000010755 .voltage = {2700, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010756 },
10757
10758 {
10759 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010760 .name = "M25PX80",
10761 .bustype = BUS_SPI,
10762 .manufacture_id = ST_ID,
10763 .model_id = ST_M25PX80,
10764 .total_size = 1024,
10765 .page_size = 256,
10766 /* OTP: 64B total; read 0x4B, write 0x42 */
10767 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10768 .tested = TEST_OK_PREW,
10769 .probe = probe_spi_rdid,
10770 .probe_timing = TIMING_ZERO,
10771 .block_erasers =
10772 {
10773 {
10774 .eraseblocks = { { 4 * 1024, 256 } },
10775 .block_erase = spi_block_erase_20,
10776 }, {
10777 .eraseblocks = { {64 * 1024, 16} },
10778 .block_erase = spi_block_erase_d8,
10779 }, {
10780 .eraseblocks = { {1024 * 1024, 1} },
10781 .block_erase = spi_block_erase_c7,
10782 }
10783 },
10784 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
10785 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
10786 .write = spi_chip_write_256,
10787 .read = spi_chip_read,
10788 .voltage = {2700, 3600},
10789 },
10790
10791 {
10792 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010793 .name = "M45PE10",
10794 .bustype = BUS_SPI,
10795 .manufacture_id = ST_ID,
10796 .model_id = ST_M45PE10,
10797 .total_size = 128,
10798 .page_size = 256,
10799 .tested = TEST_UNTESTED,
10800 .probe = probe_spi_rdid,
10801 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100010802 .block_erasers =
10803 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010804 {
10805 .eraseblocks = { {256, 512} },
10806 .block_erase = spi_block_erase_db,
10807 }, {
10808 .eraseblocks = { {64 * 1024, 2} },
10809 .block_erase = spi_block_erase_d8,
10810 }
10811 },
10812 .printlock = spi_prettyprint_status_register_default_welwip,
10813 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
10814 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
10815 .read = spi_chip_read, /* Fast read (0x0B) supported */
10816 .voltage = {2700, 3600},
10817 },
10818
10819 {
10820 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010821 .name = "M45PE16",
10822 .bustype = BUS_SPI,
10823 .manufacture_id = ST_ID,
10824 .model_id = ST_M45PE16,
10825 .total_size = 2048,
10826 .page_size = 256,
10827 .tested = TEST_UNTESTED,
10828 .probe = probe_spi_rdid,
10829 .probe_timing = TIMING_ZERO,
10830 .block_erasers =
10831 {
10832 {
10833 .eraseblocks = { {256, 8192} },
10834 .block_erase = spi_block_erase_db,
10835 }, {
10836 .eraseblocks = { {64 * 1024, 32} },
10837 .block_erase = spi_block_erase_d8,
10838 }
10839 },
10840 .printlock = spi_prettyprint_status_register_default_welwip,
10841 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
10842 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
10843 .read = spi_chip_read, /* Fast read (0x0B) supported */
10844 .voltage = {2700, 3600},
10845 },
10846
10847 {
10848 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010849 .name = "M45PE20",
10850 .bustype = BUS_SPI,
10851 .manufacture_id = ST_ID,
10852 .model_id = ST_M45PE20,
10853 .total_size = 256,
10854 .page_size = 256,
10855 .tested = TEST_UNTESTED,
10856 .probe = probe_spi_rdid,
10857 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100010858 .block_erasers =
10859 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010860 {
10861 .eraseblocks = { {256, 1024} },
10862 .block_erase = spi_block_erase_db,
10863 }, {
10864 .eraseblocks = { {64 * 1024, 4} },
10865 .block_erase = spi_block_erase_d8,
10866 }
10867 },
10868 .printlock = spi_prettyprint_status_register_default_welwip,
10869 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
10870 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
10871 .read = spi_chip_read, /* Fast read (0x0B) supported */
10872 .voltage = {2700, 3600},
10873 },
10874
10875 {
10876 .vendor = "Micron/Numonyx/ST",
10877 .name = "M45PE40",
10878 .bustype = BUS_SPI,
10879 .manufacture_id = ST_ID,
10880 .model_id = ST_M45PE40,
10881 .total_size = 512,
10882 .page_size = 256,
10883 .tested = TEST_UNTESTED,
10884 .probe = probe_spi_rdid,
10885 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100010886 .block_erasers =
10887 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010888 {
10889 .eraseblocks = { {256, 2048} },
10890 .block_erase = spi_block_erase_db,
10891 }, {
10892 .eraseblocks = { {64 * 1024, 8} },
10893 .block_erase = spi_block_erase_d8,
10894 }
10895 },
10896 .printlock = spi_prettyprint_status_register_default_welwip,
10897 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
Stefan Tauner23e10b82016-01-23 16:16:49 +000010898 .write = spi_chip_write_256, /* Page write supported (similar to PP but allows 0->1 changes) */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010899 .read = spi_chip_read, /* Fast read (0x0B) supported */
10900 .voltage = {2700, 3600},
10901 },
10902
10903 {
10904 .vendor = "Micron/Numonyx/ST",
10905 .name = "M45PE80",
10906 .bustype = BUS_SPI,
10907 .manufacture_id = ST_ID,
10908 .model_id = ST_M45PE80,
10909 .total_size = 1024,
10910 .page_size = 256,
10911 .tested = TEST_UNTESTED,
10912 .probe = probe_spi_rdid,
10913 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100010914 .block_erasers =
10915 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010916 {
10917 .eraseblocks = { {256, 4096} },
10918 .block_erase = spi_block_erase_db,
10919 }, {
10920 .eraseblocks = { {64 * 1024, 16} },
10921 .block_erase = spi_block_erase_d8,
10922 }
10923 },
10924 .printlock = spi_prettyprint_status_register_default_welwip,
10925 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
10926 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
10927 .read = spi_chip_read, /* Fast read (0x0B) supported */
10928 .voltage = {2700, 3600},
10929 },
10930
10931 {
10932 .vendor = "Micron/Numonyx/ST",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070010933 .name = "N25Q00A..1G", /* ..1G = 1.8V, uniform 64KB/4KB blocks/sectors */
10934 .bustype = BUS_SPI,
10935 .manufacture_id = ST_ID,
10936 .model_id = ST_N25Q00A__1G,
10937 .total_size = 131072,
10938 .page_size = 256,
10939 /* supports SFDP */
10940 /* OTP: 64B total; read 0x4B, write 0x42 */
10941 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
10942 .tested = TEST_UNTESTED,
10943 .probe = probe_spi_rdid,
10944 .probe_timing = TIMING_ZERO,
10945 .block_erasers =
10946 {
10947 {
10948 .eraseblocks = { {4 * 1024, 32768} },
10949 .block_erase = spi_block_erase_21,
10950 }, {
10951 .eraseblocks = { {4 * 1024, 32768} },
10952 .block_erase = spi_block_erase_20,
10953 }, {
10954 .eraseblocks = { {64 * 1024, 2048} },
10955 .block_erase = spi_block_erase_dc,
10956 }, {
10957 .eraseblocks = { {64 * 1024, 2048} },
10958 .block_erase = spi_block_erase_d8,
10959 }, {
10960 .eraseblocks = { {32768 * 1024, 4} },
10961 .block_erase = spi_block_erase_c4,
10962 }
10963 },
10964 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10965 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10966 .write = spi_chip_write_256, /* Multi I/O supported */
10967 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10968 .voltage = {1700, 2000},
10969 },
10970
10971 {
10972 .vendor = "Micron/Numonyx/ST",
10973 .name = "N25Q00A..3G", /* ..3G = 3V, uniform 64KB/4KB blocks/sectors */
10974 .bustype = BUS_SPI,
10975 .manufacture_id = ST_ID,
10976 .model_id = ST_N25Q00A__3G,
10977 .total_size = 131072,
10978 .page_size = 256,
10979 /* supports SFDP */
10980 /* OTP: 64B total; read 0x4B, write 0x42 */
10981 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
10982 .tested = TEST_UNTESTED,
10983 .probe = probe_spi_rdid,
10984 .probe_timing = TIMING_ZERO,
10985 .block_erasers =
10986 {
10987 {
10988 .eraseblocks = { {4 * 1024, 32768} },
10989 .block_erase = spi_block_erase_21,
10990 }, {
10991 .eraseblocks = { {4 * 1024, 32768} },
10992 .block_erase = spi_block_erase_20,
10993 }, {
10994 .eraseblocks = { {64 * 1024, 2048} },
10995 .block_erase = spi_block_erase_dc,
10996 }, {
10997 .eraseblocks = { {64 * 1024, 2048} },
10998 .block_erase = spi_block_erase_d8,
10999 }, {
11000 .eraseblocks = { {32768 * 1024, 4} },
11001 .block_erase = spi_block_erase_c4,
11002 }
11003 },
11004 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11005 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11006 .write = spi_chip_write_256, /* Multi I/O supported */
11007 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11008 .voltage = {2700, 3600},
11009 },
11010
11011 {
11012 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011013 .name = "N25Q016",
11014 .bustype = BUS_SPI,
11015 .manufacture_id = ST_ID,
11016 .model_id = ST_N25Q016__1E,
11017 .total_size = 2048,
11018 .page_size = 256,
11019 /* supports SFDP */
11020 /* OTP: 64B total; read 0x4B, write 0x42 */
11021 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11022 .tested = TEST_UNTESTED,
11023 .probe = probe_spi_rdid,
11024 .probe_timing = TIMING_ZERO,
11025 .block_erasers =
11026 {
11027 {
11028 .eraseblocks = { {4 * 1024, 512} },
11029 .block_erase = spi_block_erase_20,
11030 }, {
11031 .eraseblocks = { {32 * 1024, 64} },
11032 .block_erase = spi_block_erase_52,
11033 }, {
11034 .eraseblocks = { {64 * 1024, 32} },
11035 .block_erase = spi_block_erase_d8,
11036 }, {
11037 .eraseblocks = { {2 * 1024 * 1024, 1} },
11038 .block_erase = spi_block_erase_c7,
11039 }
11040 },
11041 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11042 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11043 .write = spi_chip_write_256, /* Multi I/O supported */
11044 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11045 .voltage = {1700, 2000},
11046 },
11047
11048 {
11049 .vendor = "Micron/Numonyx/ST",
11050 .name = "N25Q032..1E",
11051 .bustype = BUS_SPI,
11052 .manufacture_id = ST_ID,
11053 .model_id = ST_N25Q032__1E,
11054 .total_size = 4096,
11055 .page_size = 256,
11056 /* supports SFDP */
11057 /* OTP: 64B total; read 0x4B, write 0x42 */
11058 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11059 .tested = TEST_UNTESTED,
11060 .probe = probe_spi_rdid,
11061 .probe_timing = TIMING_ZERO,
11062 .block_erasers =
11063 {
11064 {
11065 .eraseblocks = { {4 * 1024, 1024} },
11066 .block_erase = spi_block_erase_20,
11067 }, {
11068 .eraseblocks = { {64 * 1024, 64} },
11069 .block_erase = spi_block_erase_d8,
11070 }, {
11071 .eraseblocks = { {4 * 1024 * 1024, 1} },
11072 .block_erase = spi_block_erase_c7,
11073 }
11074 },
11075 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11076 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11077 .write = spi_chip_write_256, /* Multi I/O supported */
11078 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11079 .voltage = {1700, 2000},
11080 },
11081
11082 {
11083 .vendor = "Micron/Numonyx/ST",
11084 .name = "N25Q032..3E",
11085 .bustype = BUS_SPI,
11086 .manufacture_id = ST_ID,
11087 .model_id = ST_N25Q032__3E,
11088 .total_size = 4096,
11089 .page_size = 256,
11090 /* supports SFDP */
11091 /* OTP: 64B total; read 0x4B, write 0x42 */
11092 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11093 .tested = TEST_OK_PREW,
11094 .probe = probe_spi_rdid,
11095 .probe_timing = TIMING_ZERO,
11096 .block_erasers =
11097 {
11098 {
11099 .eraseblocks = { {4 * 1024, 1024} },
11100 .block_erase = spi_block_erase_20,
11101 }, {
11102 .eraseblocks = { {64 * 1024, 64} },
11103 .block_erase = spi_block_erase_d8,
11104 }, {
11105 .eraseblocks = { {4 * 1024 * 1024, 1} },
11106 .block_erase = spi_block_erase_c7,
11107 }
11108 },
11109 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11110 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11111 .write = spi_chip_write_256, /* Multi I/O supported */
11112 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11113 .voltage = {2700, 3600},
11114 },
11115
11116 {
11117 .vendor = "Micron/Numonyx/ST",
11118 .name = "N25Q064..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
11119 .bustype = BUS_SPI,
11120 .manufacture_id = ST_ID,
11121 .model_id = ST_N25Q064__1E,
11122 .total_size = 8192,
11123 .page_size = 256,
11124 /* supports SFDP */
11125 /* OTP: 64B total; read 0x4B, write 0x42 */
11126 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000011127 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011128 .probe = probe_spi_rdid,
11129 .probe_timing = TIMING_ZERO,
11130 .block_erasers =
11131 {
11132 {
11133 .eraseblocks = { {4 * 1024, 2048 } },
11134 .block_erase = spi_block_erase_20,
11135 }, {
11136 .eraseblocks = { {64 * 1024, 128} },
11137 .block_erase = spi_block_erase_d8,
11138 }, {
11139 .eraseblocks = { {8 * 1024 * 1024, 1} },
11140 .block_erase = spi_block_erase_c7,
11141 }
11142 },
11143 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11144 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11145 .write = spi_chip_write_256, /* Multi I/O supported */
11146 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11147 .voltage = {1700, 2000},
11148 },
11149
11150 {
11151 .vendor = "Micron/Numonyx/ST",
11152 .name = "N25Q064..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
11153 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100011154 .manufacture_id = ST_ID,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011155 .model_id = ST_N25Q064__3E,
11156 .total_size = 8192,
11157 .page_size = 256,
11158 /* supports SFDP */
11159 /* OTP: 64B total; read 0x4B, write 0x42 */
11160 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11161 .tested = TEST_OK_PREW,
11162 .probe = probe_spi_rdid,
11163 .probe_timing = TIMING_ZERO,
11164 .block_erasers =
11165 {
11166 {
11167 .eraseblocks = { {4 * 1024, 2048 } },
11168 .block_erase = spi_block_erase_20,
11169 }, {
11170 .eraseblocks = { {64 * 1024, 128} },
11171 .block_erase = spi_block_erase_d8,
11172 }, {
11173 .eraseblocks = { {8 * 1024 * 1024, 1} },
11174 .block_erase = spi_block_erase_c7,
11175 }
11176 },
11177 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11178 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11179 .write = spi_chip_write_256, /* Multi I/O supported */
11180 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11181 .voltage = {2700, 3600},
11182 },
11183
11184 {
11185 .vendor = "Micron/Numonyx/ST",
11186 .name = "N25Q128..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
11187 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100011188 .manufacture_id = ST_ID,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011189 .model_id = ST_N25Q128__1E,
11190 .total_size = 16384,
11191 .page_size = 256,
11192 /* supports SFDP */
11193 /* OTP: 64B total; read 0x4B, write 0x42 */
11194 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011195 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011196 .probe = probe_spi_rdid,
11197 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011198 .block_erasers =
11199 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011200 {
11201 .eraseblocks = { {4 * 1024, 4096 } },
11202 .block_erase = spi_block_erase_20,
11203 }, {
11204 .eraseblocks = { {64 * 1024, 256} },
11205 .block_erase = spi_block_erase_d8,
11206 }, {
11207 .eraseblocks = { {16384 * 1024, 1} },
11208 .block_erase = spi_block_erase_c7,
11209 }
11210 },
11211 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11212 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11213 .write = spi_chip_write_256, /* Multi I/O supported */
11214 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11215 .voltage = {1700, 2000},
11216 },
11217
11218 {
11219 .vendor = "Micron/Numonyx/ST",
11220 .name = "N25Q128..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
11221 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100011222 .manufacture_id = ST_ID,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011223 .model_id = ST_N25Q128__3E,
11224 .total_size = 16384,
11225 .page_size = 256,
11226 /* supports SFDP */
11227 /* OTP: 64B total; read 0x4B, write 0x42 */
11228 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11229 .tested = TEST_OK_PREW,
11230 .probe = probe_spi_rdid,
11231 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011232 .block_erasers =
11233 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011234 {
11235 .eraseblocks = { {4 * 1024, 4096 } },
11236 .block_erase = spi_block_erase_20,
11237 }, {
11238 .eraseblocks = { {64 * 1024, 256} },
11239 .block_erase = spi_block_erase_d8,
11240 }, {
11241 .eraseblocks = { {16384 * 1024, 1} },
11242 .block_erase = spi_block_erase_c7,
11243 }
11244 },
11245 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11246 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11247 .write = spi_chip_write_256, /* Multi I/O supported */
11248 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11249 .voltage = {2700, 3600},
11250 },
11251
11252 {
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011253 .vendor = "Micron/Numonyx/ST",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011254 .name = "N25Q256..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
11255 .bustype = BUS_SPI,
11256 .manufacture_id = ST_ID,
11257 .model_id = ST_N25Q256__1E,
11258 .total_size = 32768,
11259 .page_size = 256,
11260 /* supports SFDP */
11261 /* OTP: 64B total; read 0x4B, write 0x42 */
11262 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11263 .tested = TEST_UNTESTED,
11264 .probe = probe_spi_rdid,
11265 .probe_timing = TIMING_ZERO,
11266 .block_erasers =
11267 {
11268 {
11269 .eraseblocks = { {4 * 1024, 8192} },
11270 .block_erase = spi_block_erase_21,
11271 }, {
11272 .eraseblocks = { {4 * 1024, 8192} },
11273 .block_erase = spi_block_erase_20,
11274 }, {
11275 .eraseblocks = { {64 * 1024, 512} },
11276 .block_erase = spi_block_erase_dc,
11277 }, {
11278 .eraseblocks = { {64 * 1024, 512} },
11279 .block_erase = spi_block_erase_d8,
11280 }, {
11281 .eraseblocks = { {32768 * 1024, 1} },
11282 .block_erase = spi_block_erase_c7,
11283 }
11284 },
11285 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11286 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11287 .write = spi_chip_write_256, /* Multi I/O supported */
11288 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11289 .voltage = {1700, 2000},
11290 },
11291
11292 {
11293 .vendor = "Micron/Numonyx/ST",
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011294 .name = "N25Q256..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
11295 .bustype = BUS_SPI,
11296 .manufacture_id = ST_ID,
11297 .model_id = ST_N25Q256__3E,
11298 .total_size = 32768,
11299 .page_size = 256,
11300 /* supports SFDP */
11301 /* OTP: 64B total; read 0x4B, write 0x42 */
11302 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11303 .tested = TEST_UNTESTED,
11304 .probe = probe_spi_rdid,
11305 .probe_timing = TIMING_ZERO,
11306 .block_erasers =
11307 {
11308 {
11309 .eraseblocks = { {4 * 1024, 8192} },
11310 .block_erase = spi_block_erase_21,
11311 }, {
11312 .eraseblocks = { {4 * 1024, 8192} },
11313 .block_erase = spi_block_erase_20,
11314 }, {
11315 .eraseblocks = { {64 * 1024, 512} },
11316 .block_erase = spi_block_erase_dc,
11317 }, {
11318 .eraseblocks = { {64 * 1024, 512} },
11319 .block_erase = spi_block_erase_d8,
11320 }, {
11321 .eraseblocks = { {32768 * 1024, 1} },
11322 .block_erase = spi_block_erase_c7,
11323 }
11324 },
11325 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11326 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11327 .write = spi_chip_write_256, /* Multi I/O supported */
11328 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11329 .voltage = {2700, 3600},
11330 },
11331
11332 {
11333 .vendor = "Micron/Numonyx/ST",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011334 .name = "N25Q512..1G", /* ..1G = 1.8V, uniform 64KB/4KB blocks/sectors */
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011335 .bustype = BUS_SPI,
11336 .manufacture_id = ST_ID,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011337 .model_id = ST_N25Q512__1G,
11338 .total_size = 65536,
11339 .page_size = 256,
11340 /* supports SFDP */
11341 /* OTP: 64B total; read 0x4B, write 0x42 */
11342 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11343 .tested = TEST_UNTESTED,
11344 .probe = probe_spi_rdid,
11345 .probe_timing = TIMING_ZERO,
11346 .block_erasers =
11347 {
11348 {
11349 .eraseblocks = { {4 * 1024, 16384} },
11350 .block_erase = spi_block_erase_21,
11351 }, {
11352 .eraseblocks = { {4 * 1024, 16384} },
11353 .block_erase = spi_block_erase_20,
11354 }, {
11355 .eraseblocks = { {64 * 1024, 1024} },
11356 .block_erase = spi_block_erase_dc,
11357 }, {
11358 .eraseblocks = { {64 * 1024, 1024} },
11359 .block_erase = spi_block_erase_d8,
11360 }, {
11361 .eraseblocks = { {32768 * 1024, 2} },
11362 .block_erase = spi_block_erase_c4,
11363 }
11364 },
11365 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11366 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11367 .write = spi_chip_write_256, /* Multi I/O supported */
11368 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11369 .voltage = {1700, 2000},
11370 },
11371
11372 {
11373 .vendor = "Micron/Numonyx/ST",
11374 .name = "N25Q512..3G", /* ..3G = 3V, uniform 64KB/4KB blocks/sectors */
11375 .bustype = BUS_SPI,
11376 .manufacture_id = ST_ID,
11377 .model_id = ST_N25Q512__3G,
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011378 .total_size = 65536,
11379 .page_size = 256,
11380 /* supports SFDP */
11381 /* OTP: 64B total; read 0x4B, write 0x42 */
11382 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11383 .tested = TEST_OK_PREW,
11384 .probe = probe_spi_rdid,
11385 .probe_timing = TIMING_ZERO,
11386 .block_erasers =
11387 {
11388 {
11389 .eraseblocks = { {4 * 1024, 16384} },
11390 .block_erase = spi_block_erase_21,
11391 }, {
11392 .eraseblocks = { {4 * 1024, 16384} },
11393 .block_erase = spi_block_erase_20,
11394 }, {
11395 .eraseblocks = { {64 * 1024, 1024} },
11396 .block_erase = spi_block_erase_dc,
11397 }, {
11398 .eraseblocks = { {64 * 1024, 1024} },
11399 .block_erase = spi_block_erase_d8,
11400 }, {
Jacob Creedone8e7b0e2019-07-22 12:21:22 -070011401 .eraseblocks = { {32768 * 1024, 2} },
11402 .block_erase = spi_block_erase_c4,
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011403 }
11404 },
11405 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11406 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11407 .write = spi_chip_write_256, /* Multi I/O supported */
11408 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11409 .voltage = {2700, 3600},
11410 },
11411
11412 {
Ed Swierk199ab392017-07-03 13:33:44 -070011413 .vendor = "Micron",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011414 .name = "MT25QL01G", /* L = 3V, uniform 64KB/4KB blocks/sectors */
11415 .bustype = BUS_SPI,
11416 .manufacture_id = ST_ID,
11417 .model_id = ST_N25Q00A__3G,
11418 .total_size = 131072,
11419 .page_size = 256,
11420 /* supports SFDP */
11421 /* OTP: 64B total; read 0x4B, write 0x42 */
11422 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11423 .tested = TEST_OK_PREW,
11424 .probe = probe_spi_rdid,
11425 .probe_timing = TIMING_ZERO,
11426 .block_erasers =
11427 {
11428 {
11429 .eraseblocks = { {4 * 1024, 32768} },
11430 .block_erase = spi_block_erase_21,
11431 }, {
11432 .eraseblocks = { {4 * 1024, 32768} },
11433 .block_erase = spi_block_erase_20,
11434 }, {
11435 .eraseblocks = { {32 * 1024, 4096} },
11436 .block_erase = spi_block_erase_5c,
11437 }, {
11438 .eraseblocks = { {32 * 1024, 4096} },
11439 .block_erase = spi_block_erase_52,
11440 }, {
11441 .eraseblocks = { {64 * 1024, 2048} },
11442 .block_erase = spi_block_erase_dc,
11443 }, {
11444 .eraseblocks = { {64 * 1024, 2048} },
11445 .block_erase = spi_block_erase_d8,
11446 }, {
11447 .eraseblocks = { {65536 * 1024, 2} },
11448 .block_erase = spi_block_erase_c4,
11449 }
11450 },
11451 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11452 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11453 .write = spi_chip_write_256, /* Multi I/O supported */
11454 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11455 .voltage = {2700, 3600},
11456 },
11457
11458 {
11459 .vendor = "Micron",
11460 .name = "MT25QU01G", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
11461 .bustype = BUS_SPI,
11462 .manufacture_id = ST_ID,
11463 .model_id = ST_N25Q00A__1G,
11464 .total_size = 131072,
11465 .page_size = 256,
11466 /* supports SFDP */
11467 /* OTP: 64B total; read 0x4B, write 0x42 */
11468 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11469 .tested = TEST_UNTESTED,
11470 .probe = probe_spi_rdid,
11471 .probe_timing = TIMING_ZERO,
11472 .block_erasers =
11473 {
11474 {
11475 .eraseblocks = { {4 * 1024, 32768} },
11476 .block_erase = spi_block_erase_21,
11477 }, {
11478 .eraseblocks = { {4 * 1024, 32768} },
11479 .block_erase = spi_block_erase_20,
11480 }, {
11481 .eraseblocks = { {32 * 1024, 4096} },
11482 .block_erase = spi_block_erase_5c,
11483 }, {
11484 .eraseblocks = { {32 * 1024, 4096} },
11485 .block_erase = spi_block_erase_52,
11486 }, {
11487 .eraseblocks = { {64 * 1024, 2048} },
11488 .block_erase = spi_block_erase_dc,
11489 }, {
11490 .eraseblocks = { {64 * 1024, 2048} },
11491 .block_erase = spi_block_erase_d8,
11492 }, {
11493 .eraseblocks = { {65536 * 1024, 2} },
11494 .block_erase = spi_block_erase_c4,
11495 }
11496 },
11497 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11498 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11499 .write = spi_chip_write_256, /* Multi I/O supported */
11500 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11501 .voltage = {1700, 2000},
11502 },
11503
11504 {
11505 .vendor = "Micron",
11506 .name = "MT25QL02G", /* L = 3V, uniform 64KB/4KB blocks/sectors */
11507 .bustype = BUS_SPI,
11508 .manufacture_id = ST_ID,
11509 .model_id = ST_MT25QL02G,
11510 .total_size = 262144,
11511 .page_size = 256,
11512 /* supports SFDP */
11513 /* OTP: 64B total; read 0x4B, write 0x42 */
11514 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11515 .tested = TEST_UNTESTED,
11516 .probe = probe_spi_rdid,
11517 .probe_timing = TIMING_ZERO,
11518 .block_erasers =
11519 {
11520 {
11521 .eraseblocks = { {4 * 1024, 65536} },
11522 .block_erase = spi_block_erase_21,
11523 }, {
11524 .eraseblocks = { {4 * 1024, 65536} },
11525 .block_erase = spi_block_erase_20,
11526 }, {
11527 .eraseblocks = { {32 * 1024, 8192} },
11528 .block_erase = spi_block_erase_5c,
11529 }, {
11530 .eraseblocks = { {32 * 1024, 8192} },
11531 .block_erase = spi_block_erase_52,
11532 }, {
11533 .eraseblocks = { {64 * 1024, 4096} },
11534 .block_erase = spi_block_erase_dc,
11535 }, {
11536 .eraseblocks = { {64 * 1024, 4096} },
11537 .block_erase = spi_block_erase_d8,
11538 }, {
11539 .eraseblocks = { {65536 * 1024, 4} },
11540 .block_erase = spi_block_erase_c4,
11541 }
11542 },
11543 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11544 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11545 .write = spi_chip_write_256, /* Multi I/O supported */
11546 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11547 .voltage = {2700, 3600},
11548 },
11549
11550 {
11551 .vendor = "Micron",
11552 .name = "MT25QU02G", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
11553 .bustype = BUS_SPI,
11554 .manufacture_id = ST_ID,
11555 .model_id = ST_MT25QU02G,
11556 .total_size = 262144,
11557 .page_size = 256,
11558 /* supports SFDP */
11559 /* OTP: 64B total; read 0x4B, write 0x42 */
11560 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11561 .tested = TEST_UNTESTED,
11562 .probe = probe_spi_rdid,
11563 .probe_timing = TIMING_ZERO,
11564 .block_erasers =
11565 {
11566 {
11567 .eraseblocks = { {4 * 1024, 65536} },
11568 .block_erase = spi_block_erase_21,
11569 }, {
11570 .eraseblocks = { {4 * 1024, 65536} },
11571 .block_erase = spi_block_erase_20,
11572 }, {
11573 .eraseblocks = { {32 * 1024, 8192} },
11574 .block_erase = spi_block_erase_5c,
11575 }, {
11576 .eraseblocks = { {32 * 1024, 8192} },
11577 .block_erase = spi_block_erase_52,
11578 }, {
11579 .eraseblocks = { {64 * 1024, 4096} },
11580 .block_erase = spi_block_erase_dc,
11581 }, {
11582 .eraseblocks = { {64 * 1024, 4096} },
11583 .block_erase = spi_block_erase_d8,
11584 }, {
11585 .eraseblocks = { {65536 * 1024, 4} },
11586 .block_erase = spi_block_erase_c4,
11587 }
11588 },
11589 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11590 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11591 .write = spi_chip_write_256, /* Multi I/O supported */
11592 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11593 .voltage = {1700, 2000},
11594 },
11595
11596 {
11597 .vendor = "Micron",
11598 .name = "MT25QU128", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
11599 .bustype = BUS_SPI,
11600 .manufacture_id = ST_ID,
11601 .model_id = ST_N25Q128__1E,
11602 .total_size = 16384,
11603 .page_size = 256,
11604 /* supports SFDP */
11605 /* OTP: 64B total; read 0x4B, write 0x42 */
11606 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11607 .tested = TEST_UNTESTED,
11608 .probe = probe_spi_rdid,
11609 .probe_timing = TIMING_ZERO,
11610 .block_erasers =
11611 {
11612 {
11613 .eraseblocks = { {4 * 1024, 4096} },
11614 .block_erase = spi_block_erase_20,
11615 }, {
11616 .eraseblocks = { {32 * 1024, 512} },
11617 .block_erase = spi_block_erase_52,
11618 }, {
11619 .eraseblocks = { {64 * 1024, 256} },
11620 .block_erase = spi_block_erase_d8,
11621 }, {
11622 .eraseblocks = { {16384 * 1024, 1} },
11623 .block_erase = spi_block_erase_c7,
11624 }, {
11625 .eraseblocks = { {16384 * 1024, 1} },
11626 .block_erase = spi_block_erase_60,
11627 }
11628 },
11629 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11630 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11631 .write = spi_chip_write_256, /* Multi I/O supported */
11632 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11633 .voltage = {1700, 2000},
11634 },
11635
11636 {
11637 .vendor = "Micron",
11638 .name = "MT25QL128", /* L = 3V, uniform 64KB/4KB blocks/sectors */
11639 .bustype = BUS_SPI,
11640 .manufacture_id = ST_ID,
11641 .model_id = ST_N25Q128__3E,
11642 .total_size = 16384,
11643 .page_size = 256,
11644 /* supports SFDP */
11645 /* OTP: 64B total; read 0x4B, write 0x42 */
11646 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11647 .tested = TEST_UNTESTED,
11648 .probe = probe_spi_rdid,
11649 .probe_timing = TIMING_ZERO,
11650 .block_erasers =
11651 {
11652 {
11653 .eraseblocks = { {4 * 1024, 4096} },
11654 .block_erase = spi_block_erase_20,
11655 }, {
11656 .eraseblocks = { {32 * 1024, 512} },
11657 .block_erase = spi_block_erase_52,
11658 }, {
11659 .eraseblocks = { {64 * 1024, 256} },
11660 .block_erase = spi_block_erase_d8,
11661 }, {
11662 .eraseblocks = { {16384 * 1024, 1} },
11663 .block_erase = spi_block_erase_c7,
11664 }, {
11665 .eraseblocks = { {16384 * 1024, 1} },
11666 .block_erase = spi_block_erase_60,
11667 }
11668 },
11669 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11670 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11671 .write = spi_chip_write_256, /* Multi I/O supported */
11672 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11673 .voltage = {2700, 3600},
11674 },
11675
11676 {
11677 .vendor = "Micron",
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011678 .name = "MT25QL256", /* L = 3V, uniform 64KB/4KB blocks/sectors */
Ed Swierk199ab392017-07-03 13:33:44 -070011679 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100011680 .manufacture_id = ST_ID,
Ed Swierk199ab392017-07-03 13:33:44 -070011681 .model_id = ST_N25Q256__3E,
11682 .total_size = 32768,
11683 .page_size = 256,
11684 /* supports SFDP */
11685 /* OTP: 64B total; read 0x4B, write 0x42 */
Nico Huberaac81422017-11-10 22:54:13 +010011686 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
Simon Buhrowb7014f92021-02-15 13:16:57 +010011687 .tested = TEST_OK_PREW,
Ed Swierk199ab392017-07-03 13:33:44 -070011688 .probe = probe_spi_rdid,
11689 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011690 .block_erasers =
11691 {
Ed Swierk199ab392017-07-03 13:33:44 -070011692 {
11693 .eraseblocks = { {4 * 1024, 8192} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020011694 .block_erase = spi_block_erase_21,
Ed Swierk199ab392017-07-03 13:33:44 -070011695 }, {
Nico Huberaac81422017-11-10 22:54:13 +010011696 .eraseblocks = { {4 * 1024, 8192} },
11697 .block_erase = spi_block_erase_20,
11698 }, {
Jacob Creedon045b97e2019-07-22 12:26:56 -070011699 .eraseblocks = { {32 * 1024, 1024} },
11700 .block_erase = spi_block_erase_5c,
11701 }, {
11702 .eraseblocks = { {32 * 1024, 1024} },
11703 .block_erase = spi_block_erase_52,
11704 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070011705 .eraseblocks = { {64 * 1024, 512} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020011706 .block_erase = spi_block_erase_dc,
Ed Swierk199ab392017-07-03 13:33:44 -070011707 }, {
Nico Huberaac81422017-11-10 22:54:13 +010011708 .eraseblocks = { {64 * 1024, 512} },
11709 .block_erase = spi_block_erase_d8,
11710 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070011711 .eraseblocks = { {32768 * 1024, 1} },
11712 .block_erase = spi_block_erase_c7,
Jacob Creedon045b97e2019-07-22 12:26:56 -070011713 }, {
11714 .eraseblocks = { {32768 * 1024, 1} },
11715 .block_erase = spi_block_erase_60,
Ed Swierk199ab392017-07-03 13:33:44 -070011716 }
11717 },
11718 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11719 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11720 .write = spi_chip_write_256, /* Multi I/O supported */
11721 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11722 .voltage = {2700, 3600},
11723 },
11724
11725 {
11726 .vendor = "Micron",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011727 .name = "MT25QU256", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
11728 .bustype = BUS_SPI,
11729 .manufacture_id = ST_ID,
11730 .model_id = ST_N25Q256__1E,
11731 .total_size = 32768,
11732 .page_size = 256,
11733 /* supports SFDP */
11734 /* OTP: 64B total; read 0x4B, write 0x42 */
11735 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11736 .tested = TEST_UNTESTED,
11737 .probe = probe_spi_rdid,
11738 .probe_timing = TIMING_ZERO,
11739 .block_erasers =
11740 {
11741 {
11742 .eraseblocks = { {4 * 1024, 8192} },
11743 .block_erase = spi_block_erase_21,
11744 }, {
11745 .eraseblocks = { {4 * 1024, 8192} },
11746 .block_erase = spi_block_erase_20,
11747 }, {
11748 .eraseblocks = { {32 * 1024, 1024} },
11749 .block_erase = spi_block_erase_5c,
11750 }, {
11751 .eraseblocks = { {32 * 1024, 1024} },
11752 .block_erase = spi_block_erase_52,
11753 }, {
11754 .eraseblocks = { {64 * 1024, 512} },
11755 .block_erase = spi_block_erase_dc,
11756 }, {
11757 .eraseblocks = { {64 * 1024, 512} },
11758 .block_erase = spi_block_erase_d8,
11759 }, {
11760 .eraseblocks = { {32768 * 1024, 1} },
11761 .block_erase = spi_block_erase_c7,
11762 }, {
11763 .eraseblocks = { {32768 * 1024, 1} },
11764 .block_erase = spi_block_erase_60,
11765 }
11766 },
11767 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11768 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11769 .write = spi_chip_write_256, /* Multi I/O supported */
11770 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11771 .voltage = {1700, 2000},
11772 },
11773
11774 {
11775 .vendor = "Micron",
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011776 .name = "MT25QL512", /* L = 3V, uniform 64KB/4KB blocks/sectors */
Ed Swierk199ab392017-07-03 13:33:44 -070011777 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100011778 .manufacture_id = ST_ID,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011779 .model_id = ST_N25Q512__3G,
Ed Swierk199ab392017-07-03 13:33:44 -070011780 .total_size = 65536,
11781 .page_size = 256,
11782 /* supports SFDP */
11783 /* OTP: 64B total; read 0x4B, write 0x42 */
Nico Huberaac81422017-11-10 22:54:13 +010011784 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
Angel Pons3ed5a352018-09-30 16:31:09 +020011785 .tested = TEST_OK_PREW,
Ed Swierk199ab392017-07-03 13:33:44 -070011786 .probe = probe_spi_rdid,
11787 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011788 .block_erasers =
11789 {
Ed Swierk199ab392017-07-03 13:33:44 -070011790 {
11791 .eraseblocks = { {4 * 1024, 16384} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020011792 .block_erase = spi_block_erase_21,
Ed Swierk199ab392017-07-03 13:33:44 -070011793 }, {
Nico Huberaac81422017-11-10 22:54:13 +010011794 .eraseblocks = { {4 * 1024, 16384} },
11795 .block_erase = spi_block_erase_20,
11796 }, {
Jacob Creedon045b97e2019-07-22 12:26:56 -070011797 .eraseblocks = { {32 * 1024, 2048} },
11798 .block_erase = spi_block_erase_5c,
11799 }, {
11800 .eraseblocks = { {32 * 1024, 2048} },
11801 .block_erase = spi_block_erase_52,
11802 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070011803 .eraseblocks = { {64 * 1024, 1024} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020011804 .block_erase = spi_block_erase_dc,
Ed Swierk199ab392017-07-03 13:33:44 -070011805 }, {
Nico Huberaac81422017-11-10 22:54:13 +010011806 .eraseblocks = { {64 * 1024, 1024} },
11807 .block_erase = spi_block_erase_d8,
11808 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070011809 .eraseblocks = { {65536 * 1024, 1} },
11810 .block_erase = spi_block_erase_c7,
Jacob Creedon045b97e2019-07-22 12:26:56 -070011811 }, {
11812 .eraseblocks = { {65536 * 1024, 1} },
11813 .block_erase = spi_block_erase_60,
Ed Swierk199ab392017-07-03 13:33:44 -070011814 }
11815 },
11816 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11817 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11818 .write = spi_chip_write_256, /* Multi I/O supported */
11819 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11820 .voltage = {2700, 3600},
11821 },
11822
11823 {
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011824 .vendor = "Micron",
11825 .name = "MT25QU512", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
11826 .bustype = BUS_SPI,
11827 .manufacture_id = ST_ID,
11828 .model_id = ST_N25Q512__1G,
11829 .total_size = 65536,
11830 .page_size = 256,
11831 /* supports SFDP */
11832 /* OTP: 64B total; read 0x4B, write 0x42 */
11833 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11834 .tested = TEST_OK_PREW,
11835 .probe = probe_spi_rdid,
11836 .probe_timing = TIMING_ZERO,
11837 .block_erasers =
11838 {
11839 {
11840 .eraseblocks = { {4 * 1024, 16384} },
11841 .block_erase = spi_block_erase_21,
11842 }, {
11843 .eraseblocks = { {4 * 1024, 16384} },
11844 .block_erase = spi_block_erase_20,
11845 }, {
11846 .eraseblocks = { {32 * 1024, 2048} },
11847 .block_erase = spi_block_erase_5c,
11848 }, {
11849 .eraseblocks = { {32 * 1024, 2048} },
11850 .block_erase = spi_block_erase_52,
11851 }, {
11852 .eraseblocks = { {64 * 1024, 1024} },
11853 .block_erase = spi_block_erase_dc,
11854 }, {
11855 .eraseblocks = { {64 * 1024, 1024} },
11856 .block_erase = spi_block_erase_d8,
11857 }, {
11858 .eraseblocks = { {65536 * 1024, 1} },
11859 .block_erase = spi_block_erase_c7,
11860 }, {
11861 .eraseblocks = { {65536 * 1024, 1} },
11862 .block_erase = spi_block_erase_60,
11863 }
11864 },
11865 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11866 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11867 .write = spi_chip_write_256, /* Multi I/O supported */
11868 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11869 .voltage = {1700, 2000},
11870 },
11871
11872 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000011873 .vendor = "MoselVitelic",
11874 .name = "V29C51000B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011875 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011876 .manufacture_id = SYNCMOS_MVC_ID,
11877 .model_id = MVC_V29C51000B,
11878 .total_size = 64,
11879 .page_size = 512,
11880 .feature_bits = FEATURE_EITHER_RESET,
11881 .tested = TEST_UNTESTED,
11882 .probe = probe_jedec,
11883 .probe_timing = TIMING_ZERO,
11884 .block_erasers =
11885 {
11886 {
11887 .eraseblocks = { {512, 128} },
11888 .block_erase = erase_sector_jedec,
11889 }, {
11890 .eraseblocks = { {64 * 1024, 1} },
11891 .block_erase = erase_chip_block_jedec,
11892 },
11893 },
11894 .write = write_jedec_1,
11895 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011896 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011897 },
11898
11899 {
11900 .vendor = "MoselVitelic",
11901 .name = "V29C51000T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011902 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011903 .manufacture_id = SYNCMOS_MVC_ID,
11904 .model_id = MVC_V29C51000T,
11905 .total_size = 64,
11906 .page_size = 512,
11907 .feature_bits = FEATURE_EITHER_RESET,
11908 .tested = TEST_UNTESTED,
11909 .probe = probe_jedec,
11910 .probe_timing = TIMING_ZERO,
11911 .block_erasers =
11912 {
11913 {
11914 .eraseblocks = { {512, 128} },
11915 .block_erase = erase_sector_jedec,
11916 }, {
11917 .eraseblocks = { {64 * 1024, 1} },
11918 .block_erase = erase_chip_block_jedec,
11919 },
11920 },
11921 .write = write_jedec_1,
11922 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011923 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011924 },
11925
11926 {
11927 .vendor = "MoselVitelic",
11928 .name = "V29C51400B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011929 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011930 .manufacture_id = SYNCMOS_MVC_ID,
11931 .model_id = MVC_V29C51400B,
11932 .total_size = 512,
11933 .page_size = 1024,
11934 .feature_bits = FEATURE_EITHER_RESET,
11935 .tested = TEST_UNTESTED,
11936 .probe = probe_jedec,
11937 .probe_timing = TIMING_ZERO,
11938 .block_erasers =
11939 {
11940 {
11941 .eraseblocks = { {1024, 512} },
11942 .block_erase = erase_sector_jedec,
11943 }, {
11944 .eraseblocks = { {512 * 1024, 1} },
11945 .block_erase = erase_chip_block_jedec,
11946 },
11947 },
11948 .write = write_jedec_1,
11949 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011950 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011951 },
11952
11953 {
11954 .vendor = "MoselVitelic",
11955 .name = "V29C51400T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011956 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011957 .manufacture_id = SYNCMOS_MVC_ID,
11958 .model_id = MVC_V29C51400T,
11959 .total_size = 512,
11960 .page_size = 1024,
11961 .feature_bits = FEATURE_EITHER_RESET,
11962 .tested = TEST_UNTESTED,
11963 .probe = probe_jedec,
11964 .probe_timing = TIMING_ZERO,
11965 .block_erasers =
11966 {
11967 {
11968 .eraseblocks = { {1024, 512} },
11969 .block_erase = erase_sector_jedec,
11970 }, {
11971 .eraseblocks = { {512 * 1024, 1} },
11972 .block_erase = erase_chip_block_jedec,
11973 },
11974 },
11975 .write = write_jedec_1,
11976 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011977 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011978 },
11979
11980 {
11981 .vendor = "MoselVitelic",
11982 .name = "V29LC51000",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011983 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011984 .manufacture_id = SYNCMOS_MVC_ID,
11985 .model_id = MVC_V29LC51000,
11986 .total_size = 64,
11987 .page_size = 512,
11988 .feature_bits = FEATURE_EITHER_RESET,
11989 .tested = TEST_UNTESTED,
11990 .probe = probe_jedec,
11991 .probe_timing = TIMING_ZERO,
11992 .block_erasers =
11993 {
11994 {
11995 .eraseblocks = { {512, 128} },
11996 .block_erase = erase_sector_jedec,
11997 }, {
11998 .eraseblocks = { {64 * 1024, 1} },
11999 .block_erase = erase_chip_block_jedec,
12000 },
12001 },
12002 .write = write_jedec_1,
12003 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012004 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000012005 },
12006
12007 {
12008 .vendor = "MoselVitelic",
12009 .name = "V29LC51001",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012010 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012011 .manufacture_id = SYNCMOS_MVC_ID,
12012 .model_id = MVC_V29LC51001,
12013 .total_size = 128,
12014 .page_size = 512,
12015 .feature_bits = FEATURE_EITHER_RESET,
12016 .tested = TEST_UNTESTED,
12017 .probe = probe_jedec,
12018 .probe_timing = TIMING_ZERO,
12019 .block_erasers =
12020 {
12021 {
12022 .eraseblocks = { {512, 256} },
12023 .block_erase = erase_sector_jedec,
12024 }, {
12025 .eraseblocks = { {128 * 1024, 1} },
12026 .block_erase = erase_chip_block_jedec,
12027 },
12028 },
12029 .write = write_jedec_1,
12030 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012031 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000012032 },
12033
12034 {
12035 .vendor = "MoselVitelic",
12036 .name = "V29LC51002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012037 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012038 .manufacture_id = SYNCMOS_MVC_ID,
12039 .model_id = MVC_V29LC51002,
12040 .total_size = 256,
12041 .page_size = 512,
12042 .feature_bits = FEATURE_EITHER_RESET,
12043 .tested = TEST_UNTESTED,
12044 .probe = probe_jedec,
12045 .probe_timing = TIMING_ZERO,
12046 .block_erasers =
12047 {
12048 {
12049 .eraseblocks = { {512, 512} },
12050 .block_erase = erase_sector_jedec,
12051 }, {
12052 .eraseblocks = { {256 * 1024, 1} },
12053 .block_erase = erase_chip_block_jedec,
12054 },
12055 },
12056 .write = write_jedec_1,
12057 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012058 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000012059 },
12060
12061 {
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012062 .vendor = "Nantronics",
12063 .name = "N25S10",
12064 .bustype = BUS_SPI,
12065 .manufacture_id = NANTRONICS_ID_NOPREFIX,
12066 .model_id = NANTRONICS_N25S10,
12067 .total_size = 128,
12068 .page_size = 256,
12069 .feature_bits = FEATURE_WRSR_WREN,
12070 .tested = TEST_UNTESTED,
12071 .probe = probe_spi_rdid,
12072 .probe_timing = TIMING_ZERO,
12073 .block_erasers =
12074 {
12075 {
12076 .eraseblocks = { {4 * 1024, 32} },
12077 .block_erase = spi_block_erase_20,
12078 }, {
12079 .eraseblocks = { {4 * 1024, 32} },
12080 .block_erase = spi_block_erase_d7,
12081 }, {
12082 .eraseblocks = { {32 * 1024, 4} },
12083 .block_erase = spi_block_erase_52,
12084 }, {
12085 .eraseblocks = { {64 * 1024, 2} },
12086 .block_erase = spi_block_erase_d8,
12087 }, {
12088 .eraseblocks = { {128 * 1024, 1} },
12089 .block_erase = spi_block_erase_60,
12090 }, {
12091 .eraseblocks = { {128 * 1024, 1} },
12092 .block_erase = spi_block_erase_c7,
12093 }
12094 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012095 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012096 .unlock = spi_disable_blockprotect_bp3_srwd,
12097 .write = spi_chip_write_256,
12098 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
12099 .voltage = {2700, 3600},
12100 },
12101
12102 {
12103 .vendor = "Nantronics",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012104 .name = "N25S16",
12105 .bustype = BUS_SPI,
12106 .manufacture_id = NANTRONICS_ID_NOPREFIX,
12107 .model_id = NANTRONICS_N25S16,
12108 .total_size = 2048,
12109 .page_size = 256,
12110 .feature_bits = FEATURE_WRSR_WREN,
12111 .tested = TEST_UNTESTED,
12112 .probe = probe_spi_rdid,
12113 .probe_timing = TIMING_ZERO,
12114 .block_erasers =
12115 {
12116 {
12117 .eraseblocks = { {4 * 1024, 512} },
12118 .block_erase = spi_block_erase_20,
12119 }, {
12120 .eraseblocks = { {64 * 1024, 32} },
12121 .block_erase = spi_block_erase_d8,
12122 }, {
12123 .eraseblocks = { {2048 * 1024, 1} },
12124 .block_erase = spi_block_erase_60,
12125 }, {
12126 .eraseblocks = { {2048 * 1024, 1} },
12127 .block_erase = spi_block_erase_c7,
12128 }
12129 },
12130 .printlock = spi_prettyprint_status_register_bp3_srwd,
12131 .unlock = spi_disable_blockprotect_bp3_srwd,
12132 .write = spi_chip_write_256,
12133 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
12134 .voltage = {2700, 3600},
12135 },
12136
12137 {
12138 .vendor = "Nantronics",
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012139 .name = "N25S20",
12140 .bustype = BUS_SPI,
12141 .manufacture_id = NANTRONICS_ID_NOPREFIX,
12142 .model_id = NANTRONICS_N25S20,
12143 .total_size = 256,
12144 .page_size = 256,
12145 .feature_bits = FEATURE_WRSR_WREN,
12146 .tested = TEST_UNTESTED,
12147 .probe = probe_spi_rdid,
12148 .probe_timing = TIMING_ZERO,
12149 .block_erasers =
12150 {
12151 {
12152 .eraseblocks = { {4 * 1024, 64} },
12153 .block_erase = spi_block_erase_20,
12154 }, {
12155 .eraseblocks = { {4 * 1024, 64} },
12156 .block_erase = spi_block_erase_d7,
12157 }, {
12158 .eraseblocks = { {32 * 1024, 8} },
12159 .block_erase = spi_block_erase_52,
12160 }, {
12161 .eraseblocks = { {64 * 1024, 4} },
12162 .block_erase = spi_block_erase_d8,
12163 }, {
12164 .eraseblocks = { {256 * 1024, 1} },
12165 .block_erase = spi_block_erase_60,
12166 }, {
12167 .eraseblocks = { {256 * 1024, 1} },
12168 .block_erase = spi_block_erase_c7,
12169 }
12170 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012171 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012172 .unlock = spi_disable_blockprotect_bp3_srwd,
12173 .write = spi_chip_write_256,
12174 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
12175 .voltage = {2700, 3600},
12176 },
12177
12178 {
12179 .vendor = "Nantronics",
12180 .name = "N25S40",
12181 .bustype = BUS_SPI,
12182 .manufacture_id = NANTRONICS_ID_NOPREFIX,
12183 .model_id = NANTRONICS_N25S40,
12184 .total_size = 512,
12185 .page_size = 256,
12186 .feature_bits = FEATURE_WRSR_WREN,
12187 .tested = TEST_UNTESTED,
12188 .probe = probe_spi_rdid,
12189 .probe_timing = TIMING_ZERO,
12190 .block_erasers =
12191 {
12192 {
12193 .eraseblocks = { {4 * 1024, 128} },
12194 .block_erase = spi_block_erase_20,
12195 }, {
12196 .eraseblocks = { {4 * 1024, 128} },
12197 .block_erase = spi_block_erase_d7,
12198 }, {
12199 .eraseblocks = { {32 * 1024, 16} },
12200 .block_erase = spi_block_erase_52,
12201 }, {
12202 .eraseblocks = { {64 * 1024, 8} },
12203 .block_erase = spi_block_erase_d8,
12204 }, {
12205 .eraseblocks = { {512 * 1024, 1} },
12206 .block_erase = spi_block_erase_60,
12207 }, {
12208 .eraseblocks = { {512 * 1024, 1} },
12209 .block_erase = spi_block_erase_c7,
12210 }
12211 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012212 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012213 .unlock = spi_disable_blockprotect_bp3_srwd,
12214 .write = spi_chip_write_256,
12215 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
12216 .voltage = {2700, 3600},
12217 },
12218
12219 {
12220 .vendor = "Nantronics",
12221 .name = "N25S80",
12222 .bustype = BUS_SPI,
12223 .manufacture_id = NANTRONICS_ID_NOPREFIX,
12224 .model_id = NANTRONICS_N25S80,
12225 .total_size = 1024,
12226 .page_size = 256,
12227 .feature_bits = FEATURE_WRSR_WREN,
12228 .tested = TEST_UNTESTED,
12229 .probe = probe_spi_rdid,
12230 .probe_timing = TIMING_ZERO,
12231 .block_erasers =
12232 {
12233 {
12234 .eraseblocks = { {4 * 1024, 256} },
12235 .block_erase = spi_block_erase_20,
12236 }, {
12237 .eraseblocks = { {32 * 1024, 32} },
12238 .block_erase = spi_block_erase_52,
12239 }, {
12240 .eraseblocks = { {64 * 1024, 16} },
12241 .block_erase = spi_block_erase_d8,
12242 }, {
12243 .eraseblocks = { {1024 * 1024, 1} },
12244 .block_erase = spi_block_erase_60,
12245 }, {
12246 .eraseblocks = { {1024 * 1024, 1} },
12247 .block_erase = spi_block_erase_c7,
12248 }
12249 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012250 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012251 .unlock = spi_disable_blockprotect_bp3_srwd,
12252 .write = spi_chip_write_256,
12253 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
12254 .voltage = {2700, 3600},
12255 },
12256
12257 {
Stefan Taunerf4451612013-04-19 01:59:15 +000012258 .vendor = "PMC",
12259 .name = "Pm25LD010(C)",
12260 .bustype = BUS_SPI,
12261 .manufacture_id = PMC_ID,
12262 .model_id = PMC_PM25LD010,
12263 .total_size = 128,
12264 .page_size = 256,
12265 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000012266 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +000012267 .probe = probe_spi_rdid,
12268 .probe_timing = TIMING_ZERO,
12269 .block_erasers =
12270 {
12271 {
12272 .eraseblocks = { {4 * 1024, 32} },
12273 .block_erase = spi_block_erase_20,
12274 }, {
12275 .eraseblocks = { {4 * 1024, 32} },
12276 .block_erase = spi_block_erase_d7,
12277 }, {
12278 .eraseblocks = { {32 * 1024, 4} },
12279 .block_erase = spi_block_erase_d8,
12280 }, {
12281 .eraseblocks = { {128 * 1024, 1} },
12282 .block_erase = spi_block_erase_60,
12283 }, {
12284 .eraseblocks = { {128 * 1024, 1} },
12285 .block_erase = spi_block_erase_c7,
12286 }
12287 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012288 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000012289 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
12290 .write = spi_chip_write_256,
12291 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
12292 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD010 */
12293 },
12294
12295 {
12296 .vendor = "PMC",
12297 .name = "Pm25LD020(C)",
12298 .bustype = BUS_SPI,
12299 .manufacture_id = PMC_ID,
12300 .model_id = PMC_PM25LD020,
12301 .total_size = 256,
12302 .page_size = 256,
12303 .feature_bits = FEATURE_WRSR_WREN,
Angel Ponsf5822a82018-09-30 20:09:58 +020012304 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +000012305 .probe = probe_spi_rdid,
12306 .probe_timing = TIMING_ZERO,
12307 .block_erasers =
12308 {
12309 {
12310 .eraseblocks = { {4 * 1024, 64} },
12311 .block_erase = spi_block_erase_20,
12312 }, {
12313 .eraseblocks = { {4 * 1024, 64} },
12314 .block_erase = spi_block_erase_d7,
12315 }, {
12316 .eraseblocks = { {64 * 1024, 4} },
12317 .block_erase = spi_block_erase_d8,
12318 }, {
12319 .eraseblocks = { {256 * 1024, 1} },
12320 .block_erase = spi_block_erase_60,
12321 }, {
12322 .eraseblocks = { {256 * 1024, 1} },
12323 .block_erase = spi_block_erase_c7,
12324 }
12325 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012326 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000012327 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
12328 .write = spi_chip_write_256,
12329 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
12330 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD020 */
12331 },
12332
12333 {
12334 .vendor = "PMC",
12335 .name = "Pm25LD040(C)",
12336 .bustype = BUS_SPI,
12337 .manufacture_id = PMC_ID,
12338 .model_id = PMC_PM25LV040,
12339 .total_size = 512,
12340 .page_size = 256,
12341 .feature_bits = FEATURE_WRSR_WREN,
Angel Pons05127bf2018-09-30 20:23:24 +020012342 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +000012343 .probe = probe_spi_rdid,
12344 .probe_timing = TIMING_ZERO,
12345 .block_erasers =
12346 {
12347 {
12348 .eraseblocks = { {4 * 1024, 128} },
12349 .block_erase = spi_block_erase_20,
12350 }, {
12351 .eraseblocks = { {4 * 1024, 128} },
12352 .block_erase = spi_block_erase_d7,
12353 }, {
12354 .eraseblocks = { {64 * 1024, 8} },
12355 .block_erase = spi_block_erase_d8,
12356 }, {
12357 .eraseblocks = { {512 * 1024, 1} },
12358 .block_erase = spi_block_erase_60,
12359 }, {
12360 .eraseblocks = { {512 * 1024, 1} },
12361 .block_erase = spi_block_erase_c7,
12362 }
12363 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012364 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000012365 .unlock = spi_disable_blockprotect,
12366 .write = spi_chip_write_256,
12367 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
12368 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD040 */
12369 },
12370
Steven Honeyman81a8fb72015-06-02 22:32:24 +000012371 {
12372 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012373 .name = "Pm25LD256C",
12374 .bustype = BUS_SPI,
12375 .manufacture_id = PMC_ID,
12376 .model_id = PMC_PM25LD256C,
12377 .total_size = 32,
12378 .page_size = 256,
12379 .feature_bits = FEATURE_WRSR_WREN,
12380 .tested = TEST_UNTESTED,
12381 .probe = probe_spi_rdid,
12382 .probe_timing = TIMING_ZERO,
12383 .block_erasers =
12384 {
12385 {
12386 .eraseblocks = { {4 * 1024, 8} },
12387 .block_erase = spi_block_erase_20,
12388 }, {
12389 .eraseblocks = { {4 * 1024, 8} },
12390 .block_erase = spi_block_erase_d7,
12391 }, {
12392 .eraseblocks = { {32 * 1024, 1} },
12393 .block_erase = spi_block_erase_d8,
12394 }, {
12395 .eraseblocks = { {32 * 1024, 1} },
12396 .block_erase = spi_block_erase_60,
12397 }, {
12398 .eraseblocks = { {32 * 1024, 1} },
12399 .block_erase = spi_block_erase_c7,
12400 }
12401 },
12402 .printlock = spi_prettyprint_status_register_bp2_srwd,
12403 .unlock = spi_disable_blockprotect,
12404 .write = spi_chip_write_256,
12405 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
12406 .voltage = {2700, 3600},
12407 },
12408
12409 {
12410 .vendor = "PMC",
12411 .name = "Pm25LD512(C)",
12412 .bustype = BUS_SPI,
12413 .manufacture_id = PMC_ID,
12414 .model_id = PMC_PM25LD512,
12415 .total_size = 64,
12416 .page_size = 256,
12417 .feature_bits = FEATURE_WRSR_WREN,
12418 .tested = TEST_OK_PREW,
12419 .probe = probe_spi_rdid,
12420 .probe_timing = TIMING_ZERO,
12421 .block_erasers =
12422 {
12423 {
12424 .eraseblocks = { {4 * 1024, 16} },
12425 .block_erase = spi_block_erase_20,
12426 }, {
12427 .eraseblocks = { {4 * 1024, 16} },
12428 .block_erase = spi_block_erase_d7,
12429 }, {
12430 .eraseblocks = { {32 * 1024, 2} },
12431 .block_erase = spi_block_erase_d8,
12432 }, {
12433 .eraseblocks = { {64 * 1024, 1} },
12434 .block_erase = spi_block_erase_60,
12435 }, {
12436 .eraseblocks = { {64 * 1024, 1} },
12437 .block_erase = spi_block_erase_c7,
12438 }
12439 },
12440 .printlock = spi_prettyprint_status_register_bp2_srwd,
12441 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
12442 .write = spi_chip_write_256,
12443 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
12444 .voltage = {2300, 3600},
12445 },
12446
12447 {
12448 .vendor = "PMC",
12449 .name = "Pm25LQ016",
12450 .bustype = BUS_SPI,
12451 .manufacture_id = PMC_ID,
12452 .model_id = PMC_PM25LQ016,
12453 .total_size = 2048,
12454 .page_size = 256,
12455 /* OTP: 256B total; read 0x4B, write 0xB1 */
12456 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12457 .tested = TEST_UNTESTED,
12458 .probe = probe_spi_rdid,
12459 .probe_timing = TIMING_ZERO,
12460 .block_erasers =
12461 {
12462 {
12463 .eraseblocks = { {4 * 1024, 512} },
12464 .block_erase = spi_block_erase_20,
12465 }, {
12466 .eraseblocks = { {4 * 1024, 512} },
12467 .block_erase = spi_block_erase_d7,
12468 }, {
12469 .eraseblocks = { {64 * 1024, 32} },
12470 .block_erase = spi_block_erase_d8,
12471 }, {
12472 .eraseblocks = { {2048 * 1024, 1} },
12473 .block_erase = spi_block_erase_60,
12474 }, {
12475 .eraseblocks = { {2048 * 1024, 1} },
12476 .block_erase = spi_block_erase_c7,
12477 }
12478 },
12479 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
12480 .unlock = spi_disable_blockprotect_bp3_srwd,
12481 .write = spi_chip_write_256,
12482 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12483 .voltage = {2300, 3600},
12484 },
12485
12486 {
12487 .vendor = "PMC",
Steven Honeyman81a8fb72015-06-02 22:32:24 +000012488 .name = "Pm25LQ020",
12489 .bustype = BUS_SPI,
12490 .manufacture_id = PMC_ID,
12491 .model_id = PMC_PM25LQ020,
12492 .total_size = 256,
12493 .page_size = 256,
12494 /* OTP: 256B total; read 0x4B, write 0xB1 */
12495 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12496 .tested = TEST_UNTESTED,
12497 .probe = probe_spi_rdid,
12498 .probe_timing = TIMING_ZERO,
12499 .block_erasers =
12500 {
12501 {
12502 .eraseblocks = { {4 * 1024, 64} },
12503 .block_erase = spi_block_erase_20,
12504 }, {
12505 .eraseblocks = { {4 * 1024, 64} },
12506 .block_erase = spi_block_erase_d7,
12507 }, {
12508 .eraseblocks = { {64 * 1024, 4} },
12509 .block_erase = spi_block_erase_d8,
12510 }, {
12511 .eraseblocks = { {256 * 1024, 1} },
12512 .block_erase = spi_block_erase_60,
12513 }, {
12514 .eraseblocks = { {256 * 1024, 1} },
12515 .block_erase = spi_block_erase_c7,
12516 }
12517 },
12518 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
12519 .unlock = spi_disable_blockprotect_bp3_srwd,
12520 .write = spi_chip_write_256,
12521 .read = spi_chip_read,
12522 .voltage = {2300, 3600},
12523 },
12524
12525 {
12526 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012527 .name = "Pm25LQ032C",
12528 .bustype = BUS_SPI,
12529 .manufacture_id = PMC_ID,
12530 .model_id = PMC_PM25LQ032C,
12531 .total_size = 4096,
12532 .page_size = 256,
12533 /* OTP: 64B total; read 0x4B, write 0xB1 */
12534 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12535 .tested = TEST_OK_PREW,
12536 .probe = probe_spi_rdid,
12537 .probe_timing = TIMING_ZERO,
12538 .block_erasers =
12539 {
12540 {
12541 .eraseblocks = { {4 * 1024, 1024} },
12542 .block_erase = spi_block_erase_20,
12543 }, {
12544 .eraseblocks = { {4 * 1024, 1024} },
12545 .block_erase = spi_block_erase_d7,
12546 }, {
12547 .eraseblocks = { {64 * 1024, 64} },
12548 .block_erase = spi_block_erase_d8,
12549 }, {
12550 .eraseblocks = { {4096 * 1024, 1} },
12551 .block_erase = spi_block_erase_60,
12552 }, {
12553 .eraseblocks = { {4096 * 1024, 1} },
12554 .block_erase = spi_block_erase_c7,
12555 }
12556 },
12557 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
12558 .unlock = spi_disable_blockprotect_bp3_srwd,
12559 .write = spi_chip_write_256,
12560 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12561 .voltage = {2700, 3600},
12562 },
12563
12564 {
12565 .vendor = "PMC",
Steven Honeyman81a8fb72015-06-02 22:32:24 +000012566 .name = "Pm25LQ040",
12567 .bustype = BUS_SPI,
12568 .manufacture_id = PMC_ID,
12569 .model_id = PMC_PM25LQ040,
12570 .total_size = 512,
12571 .page_size = 256,
12572 /* OTP: 256B total; read 0x4B, write 0xB1 */
12573 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12574 .tested = TEST_UNTESTED,
12575 .probe = probe_spi_rdid,
12576 .probe_timing = TIMING_ZERO,
12577 .block_erasers =
12578 {
12579 {
12580 .eraseblocks = { {4 * 1024, 128} },
12581 .block_erase = spi_block_erase_20,
12582 }, {
12583 .eraseblocks = { {4 * 1024, 128} },
12584 .block_erase = spi_block_erase_d7,
12585 }, {
12586 .eraseblocks = { {64 * 1024, 8} },
12587 .block_erase = spi_block_erase_d8,
12588 }, {
12589 .eraseblocks = { {512 * 1024, 1} },
12590 .block_erase = spi_block_erase_60,
12591 }, {
12592 .eraseblocks = { {512 * 1024, 1} },
12593 .block_erase = spi_block_erase_c7,
12594 }
12595 },
12596 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
12597 .unlock = spi_disable_blockprotect_bp3_srwd,
12598 .write = spi_chip_write_256,
12599 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12600 .voltage = {2300, 3600},
12601 },
12602
12603 {
12604 .vendor = "PMC",
12605 .name = "Pm25LQ080",
12606 .bustype = BUS_SPI,
12607 .manufacture_id = PMC_ID,
12608 .model_id = PMC_PM25LQ080,
12609 .total_size = 1024,
12610 .page_size = 256,
12611 /* OTP: 64B total; read 0x4B, write 0xB1 */
12612 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12613 .tested = TEST_UNTESTED,
12614 .probe = probe_spi_rdid,
12615 .probe_timing = TIMING_ZERO,
12616 .block_erasers =
12617 {
12618 {
12619 .eraseblocks = { {4 * 1024, 256} },
12620 .block_erase = spi_block_erase_20,
12621 }, {
12622 .eraseblocks = { {4 * 1024, 256} },
12623 .block_erase = spi_block_erase_d7,
12624 }, {
12625 .eraseblocks = { {64 * 1024, 16} },
12626 .block_erase = spi_block_erase_d8,
12627 }, {
12628 .eraseblocks = { {1024 * 1024, 1} },
12629 .block_erase = spi_block_erase_60,
12630 }, {
12631 .eraseblocks = { {1024 * 1024, 1} },
12632 .block_erase = spi_block_erase_c7,
12633 }
12634 },
12635 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
12636 .unlock = spi_disable_blockprotect_bp3_srwd,
12637 .write = spi_chip_write_256,
12638 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12639 .voltage = {2300, 3600},
12640 },
12641
12642 {
12643 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012644 .name = "Pm25LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012645 .bustype = BUS_SPI,
Stefan Taunerbecda742014-05-30 19:34:00 +000012646 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012647 .model_id = PMC_PM25LV010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012648 .total_size = 128,
12649 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012650 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerbecda742014-05-30 19:34:00 +000012651 .tested = TEST_OK_PREW,
12652 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000012653 .probe_timing = TIMING_ZERO,
12654 .block_erasers =
12655 {
12656 {
12657 .eraseblocks = { {4 * 1024, 32} },
12658 .block_erase = spi_block_erase_d7,
12659 }, {
12660 .eraseblocks = { {32 * 1024, 4} },
12661 .block_erase = spi_block_erase_d8,
12662 }, {
12663 .eraseblocks = { {128 * 1024, 1} },
12664 .block_erase = spi_block_erase_c7,
12665 }
12666 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012667 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000012668 .unlock = spi_disable_blockprotect,
12669 .write = spi_chip_write_256,
12670 .read = spi_chip_read, /* Fast read (0x0B) supported */
12671 .voltage = {2700, 3600},
12672 },
12673
12674 {
12675 .vendor = "PMC",
12676 .name = "Pm25LV010A",
12677 .bustype = BUS_SPI,
12678 .manufacture_id = PMC_ID,
12679 .model_id = PMC_PM25LV010,
12680 .total_size = 128,
12681 .page_size = 256,
12682 .feature_bits = FEATURE_WRSR_WREN,
12683 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012684 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012685 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000012686 .block_erasers =
12687 {
12688 {
12689 .eraseblocks = { {4 * 1024, 32} },
12690 .block_erase = spi_block_erase_d7,
12691 }, {
12692 .eraseblocks = { {32 * 1024, 4} },
12693 .block_erase = spi_block_erase_d8,
12694 }, {
12695 .eraseblocks = { {128 * 1024, 1} },
12696 .block_erase = spi_block_erase_c7,
12697 }
12698 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012699 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012700 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012701 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000012702 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +000012703 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012704 },
12705
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012706 {
12707 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012708 .name = "Pm25LV016B",
12709 .bustype = BUS_SPI,
12710 .manufacture_id = PMC_ID,
12711 .model_id = PMC_PM25LV016B,
12712 .total_size = 2048,
12713 .page_size = 256,
12714 .feature_bits = FEATURE_WRSR_WREN,
12715 .tested = TEST_UNTESTED,
12716 .probe = probe_spi_rdid,
12717 .probe_timing = TIMING_ZERO,
12718 .block_erasers =
12719 {
12720 {
12721 .eraseblocks = { {4 * 1024, 512} },
12722 .block_erase = spi_block_erase_d7,
12723 }, {
12724 .eraseblocks = { {4 * 1024, 512} },
12725 .block_erase = spi_block_erase_20,
12726 }, {
12727 .eraseblocks = { {64 * 1024, 32} },
12728 .block_erase = spi_block_erase_d8,
12729 }, {
12730 .eraseblocks = { {2 * 1024 * 1024, 1} },
12731 .block_erase = spi_block_erase_60,
12732 }, {
12733 .eraseblocks = { {2 * 1024 * 1024, 1} },
12734 .block_erase = spi_block_erase_c7,
12735 }
12736 },
12737 .printlock = spi_prettyprint_status_register_bp2_srwd,
12738 .unlock = spi_disable_blockprotect,
12739 .write = spi_chip_write_256,
12740 .read = spi_chip_read, /* Fast read (0x0B) supported */
12741 .voltage = {2700, 3600},
12742 },
12743
12744 {
12745 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012746 .name = "Pm25LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012747 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012748 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012749 .model_id = PMC_PM25LV020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012750 .total_size = 256,
12751 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012752 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012753 .tested = TEST_UNTESTED,
12754 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012755 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000012756 .block_erasers =
12757 {
12758 {
12759 .eraseblocks = { {4 * 1024, 64} },
12760 .block_erase = spi_block_erase_d7,
12761 }, {
12762 .eraseblocks = { {64 * 1024, 4} },
12763 .block_erase = spi_block_erase_d8,
12764 }, {
12765 .eraseblocks = { {256 * 1024, 1} },
12766 .block_erase = spi_block_erase_c7,
12767 }
12768 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012769 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012770 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012771 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012772 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012773 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012774 },
12775
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012776 {
12777 .vendor = "PMC",
12778 .name = "Pm25LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012779 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012780 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012781 .model_id = PMC_PM25LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012782 .total_size = 512,
12783 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012784 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +000012785 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012786 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012787 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000012788 .block_erasers =
12789 {
12790 {
12791 .eraseblocks = { {4 * 1024, 128} },
12792 .block_erase = spi_block_erase_d7,
12793 }, {
12794 .eraseblocks = { {64 * 1024, 8} },
12795 .block_erase = spi_block_erase_d8,
12796 }, {
12797 .eraseblocks = { {512 * 1024, 1} },
12798 .block_erase = spi_block_erase_c7,
12799 }
12800 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012801 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012802 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012803 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000012804 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012805 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012806 },
12807
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012808 {
12809 .vendor = "PMC",
12810 .name = "Pm25LV080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012811 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012812 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012813 .model_id = PMC_PM25LV080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012814 .total_size = 1024,
12815 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012816 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012817 .tested = TEST_UNTESTED,
12818 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012819 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000012820 .block_erasers =
12821 {
12822 {
12823 .eraseblocks = { {4 * 1024, 256} },
12824 .block_erase = spi_block_erase_d7,
12825 }, {
12826 .eraseblocks = { {4 * 1024, 256} },
12827 .block_erase = spi_block_erase_20,
12828 }, {
12829 .eraseblocks = { {64 * 1024, 16} },
12830 .block_erase = spi_block_erase_d8,
12831 }, {
12832 .eraseblocks = { {1024 * 1024, 1} },
12833 .block_erase = spi_block_erase_60,
12834 }, {
12835 .eraseblocks = { {1024 * 1024, 1} },
12836 .block_erase = spi_block_erase_c7,
12837 }
12838 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012839 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012840 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012841 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000012842 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012843 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012844 },
12845
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012846 {
12847 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012848 .name = "Pm25LV512(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012849 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +100012850 .manufacture_id = PMC_ID_NOPREFIX,
12851 .model_id = PMC_PM25LV512,
12852 .total_size = 64,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012853 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012854 .feature_bits = FEATURE_WRSR_WREN,
Alan Green1f9cc7d2019-07-01 11:10:45 +100012855 .tested = TEST_OK_PREW,
12856 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012857 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000012858 .block_erasers =
12859 {
12860 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100012861 .eraseblocks = { {4 * 1024, 16} },
Sean Nelson5643c072010-01-19 03:23:07 +000012862 .block_erase = spi_block_erase_d7,
12863 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100012864 .eraseblocks = { {32 * 1024, 2} },
Sean Nelson5643c072010-01-19 03:23:07 +000012865 .block_erase = spi_block_erase_d8,
12866 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100012867 .eraseblocks = { {64 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +000012868 .block_erase = spi_block_erase_c7,
12869 }
12870 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100012871 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012872 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012873 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000012874 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +000012875 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012876 },
12877
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012878 {
12879 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +000012880 .name = "Pm29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012881 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000012882 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012883 .model_id = PMC_PM29F002B,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000012884 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +000012885 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012886 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000012887 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000012888 .probe = probe_jedec,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000012889 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +000012890 .block_erasers =
12891 {
12892 {
12893 .eraseblocks = {
12894 {16 * 1024, 1},
12895 {8 * 1024, 2},
12896 {96 * 1024, 1},
12897 {128 * 1024, 1},
12898 },
Sean Nelson35727f72010-01-28 23:55:12 +000012899 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000012900 }, {
12901 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000012902 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000012903 },
12904 },
Sean Nelson35727f72010-01-28 23:55:12 +000012905 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000012906 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012907 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +000012908 },
12909
12910 {
12911 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012912 .name = "Pm29F002T",
12913 .bustype = BUS_PARALLEL,
12914 .manufacture_id = PMC_ID_NOPREFIX,
12915 .model_id = PMC_PM29F002T,
12916 .total_size = 256,
12917 .page_size = 8 * 1024,
12918 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
12919 .tested = TEST_OK_PREW,
12920 .probe = probe_jedec,
12921 .probe_timing = TIMING_FIXME,
12922 .block_erasers =
12923 {
12924 {
12925 .eraseblocks = {
12926 {128 * 1024, 1},
12927 {96 * 1024, 1},
12928 {8 * 1024, 2},
12929 {16 * 1024, 1},
12930 },
12931 .block_erase = erase_sector_jedec,
12932 }, {
12933 .eraseblocks = { {256 * 1024, 1} },
12934 .block_erase = erase_chip_block_jedec,
12935 },
12936 },
12937 .write = write_jedec_1,
12938 .read = read_memmapped,
12939 .voltage = {4500, 5500},
12940 },
12941
12942 {
12943 .vendor = "PMC",
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000012944 .name = "Pm39LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012945 .bustype = BUS_PARALLEL,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000012946 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012947 .model_id = PMC_PM39F010, /* Pm39LV010 and Pm39F010 have identical IDs but different voltage */
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000012948 .total_size = 128,
12949 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000012950 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000012951 .tested = TEST_OK_PREW,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000012952 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012953 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson5643c072010-01-19 03:23:07 +000012954 .block_erasers =
12955 {
12956 {
12957 .eraseblocks = { {4 * 1024, 32} },
12958 .block_erase = erase_sector_jedec,
12959 }, {
12960 .eraseblocks = { {64 * 1024, 2} },
12961 .block_erase = erase_block_jedec,
12962 }, {
12963 .eraseblocks = { {128 * 1024, 1} },
12964 .block_erase = erase_chip_block_jedec,
12965 }
12966 },
Sean Nelson35727f72010-01-28 23:55:12 +000012967 .write = write_jedec_1,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000012968 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012969 .voltage = {2700, 3600},
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000012970 },
12971
12972 {
12973 .vendor = "PMC",
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012974 .name = "Pm39LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012975 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012976 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012977 .model_id = PMC_PM39LV020,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012978 .total_size = 256,
12979 .page_size = 4096,
12980 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
12981 .tested = TEST_UNTESTED,
12982 .probe = probe_jedec,
12983 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Alan Greenfa3fcd32019-06-27 15:41:50 +100012984 .block_erasers =
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012985 {
12986 {
12987 .eraseblocks = { {4 * 1024, 64} },
12988 .block_erase = erase_sector_jedec,
12989 }, {
12990 .eraseblocks = { {64 * 1024, 4} },
12991 .block_erase = erase_block_jedec,
12992 }, {
12993 .eraseblocks = { {256 * 1024, 1} },
12994 .block_erase = erase_chip_block_jedec,
12995 }
12996 },
12997 .write = write_jedec_1,
12998 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012999 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013000 },
13001
13002 {
13003 .vendor = "PMC",
13004 .name = "Pm39LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013005 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013006 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013007 .model_id = PMC_PM39LV040,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013008 .total_size = 512,
13009 .page_size = 4096,
13010 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000013011 .tested = TEST_OK_PR,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013012 .probe = probe_jedec,
13013 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Alan Greenfa3fcd32019-06-27 15:41:50 +100013014 .block_erasers =
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013015 {
13016 {
13017 .eraseblocks = { {4 * 1024, 128} },
13018 .block_erase = erase_sector_jedec,
13019 }, {
13020 .eraseblocks = { {64 * 1024, 8} },
13021 .block_erase = erase_block_jedec,
13022 }, {
13023 .eraseblocks = { {512 * 1024, 1} },
13024 .block_erase = erase_chip_block_jedec,
13025 }
13026 },
13027 .write = write_jedec_1,
13028 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013029 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013030 },
Kyösti Mälkkiedab1d22012-05-20 23:32:33 +000013031
13032 {
13033 .vendor = "PMC",
13034 .name = "Pm39LV512",
13035 .bustype = BUS_PARALLEL,
13036 .manufacture_id = PMC_ID_NOPREFIX,
13037 .model_id = PMC_PM39LV512,
13038 .total_size = 64,
13039 .page_size = 4096,
13040 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
13041 .tested = TEST_OK_PREW,
13042 .probe = probe_jedec,
13043 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
13044 .block_erasers =
13045 {
13046 {
13047 .eraseblocks = { {4 * 1024, 16} },
13048 .block_erase = erase_sector_jedec,
13049 }, {
13050 .eraseblocks = { {64 * 1024, 1} },
13051 .block_erase = erase_block_jedec,
13052 }, {
13053 .eraseblocks = { {64 * 1024, 1} },
13054 .block_erase = erase_chip_block_jedec,
13055 }
13056 },
13057 .write = write_jedec_1,
13058 .read = read_memmapped,
13059 .voltage = {2700, 3600},
13060 },
13061
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013062 {
13063 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013064 .name = "Pm49FL002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013065 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013066 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013067 .model_id = PMC_PM49FL002,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013068 .total_size = 256,
13069 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013070 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013071 .tested = TEST_OK_PR,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000013072 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013073 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +000013074 .block_erasers =
13075 {
13076 {
13077 .eraseblocks = { {4 * 1024, 64} },
13078 .block_erase = erase_sector_jedec,
13079 }, {
13080 .eraseblocks = { {16 * 1024, 16} },
13081 .block_erase = erase_block_jedec,
13082 }, {
13083 .eraseblocks = { {256 * 1024, 1} },
13084 .block_erase = erase_chip_block_jedec,
13085 }
13086 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013087 .unlock = unlock_regspace2_uniform_32k,
Sean Nelson36172342010-02-27 18:01:15 +000013088 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013089 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013090 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013091 },
13092
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013093 {
13094 .vendor = "PMC",
13095 .name = "Pm49FL004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013096 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013097 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013098 .model_id = PMC_PM49FL004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013099 .total_size = 512,
13100 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013101 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner74dc73f2015-03-01 22:04:38 +000013102 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000013103 .probe = probe_jedec,
Stefan Tauner74dc73f2015-03-01 22:04:38 +000013104 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000013105 .block_erasers =
13106 {
13107 {
13108 .eraseblocks = { {4 * 1024, 128} },
13109 .block_erase = erase_sector_jedec,
13110 }, {
13111 .eraseblocks = { {64 * 1024, 8} },
13112 .block_erase = erase_block_jedec,
13113 }, {
13114 .eraseblocks = { {512 * 1024, 1} },
13115 .block_erase = erase_chip_block_jedec,
13116 }
13117 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013118 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson36172342010-02-27 18:01:15 +000013119 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013120 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013121 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013122 },
13123
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013124 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013125 .vendor = "SST",
Idwer Volleringf3607d12014-05-07 15:25:04 +000013126 .name = "SST25LF020A",
13127 .bustype = BUS_SPI,
13128 .manufacture_id = SST_ID,
13129 .model_id = SST_SST25VF020_REMS,
13130 .total_size = 256,
13131 .page_size = 256,
13132 .feature_bits = FEATURE_WRSR_EWSR,
13133 .tested = TEST_OK_PREW,
13134 .probe = probe_spi_rems,
13135 .probe_timing = TIMING_ZERO,
13136 .block_erasers =
13137 {
13138 {
13139 .eraseblocks = { {4 * 1024, 64} },
13140 .block_erase = spi_block_erase_20,
13141 }, {
13142 .eraseblocks = { {32 * 1024, 8} },
13143 .block_erase = spi_block_erase_52,
13144 }, {
13145 .eraseblocks = { {256 * 1024, 1} },
13146 .block_erase = spi_block_erase_60,
13147 },
13148 },
13149 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
13150 .unlock = spi_disable_blockprotect,
13151 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13152 .read = spi_chip_read, /* Fast read (0x0B) supported */
13153 .voltage = {2700, 3600},
13154 },
13155
13156 {
13157 .vendor = "SST",
Zeus Castro33670ba2011-08-17 09:50:11 +000013158 .name = "SST25LF040A",
13159 .bustype = BUS_SPI,
13160 .manufacture_id = SST_ID,
13161 .model_id = SST_SST25VF040_REMS,
13162 .total_size = 512,
13163 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000013164 .feature_bits = FEATURE_WRSR_EWSR,
Uwe Hermann4335ec82011-09-07 20:20:25 +000013165 .tested = TEST_OK_PREW,
Zeus Castro33670ba2011-08-17 09:50:11 +000013166 .probe = probe_spi_res2,
13167 .probe_timing = TIMING_ZERO,
13168 .block_erasers =
13169 {
13170 {
13171 .eraseblocks = { {4 * 1024, 128} },
13172 .block_erase = spi_block_erase_20,
13173 }, {
13174 .eraseblocks = { {32 * 1024, 16} },
13175 .block_erase = spi_block_erase_52,
13176 }, {
13177 .eraseblocks = { {512 * 1024, 1} },
13178 .block_erase = spi_block_erase_60,
13179 },
13180 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013181 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +000013182 .unlock = spi_disable_blockprotect,
13183 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13184 .read = spi_chip_read,
13185 .voltage = {3000, 3600},
13186 },
13187
13188 {
13189 .vendor = "SST",
Stefan Taunere34e3e82013-01-01 00:06:51 +000013190 .name = "SST25LF080(A)",
Zeus Castro33670ba2011-08-17 09:50:11 +000013191 .bustype = BUS_SPI,
13192 .manufacture_id = SST_ID,
13193 .model_id = SST_SST25VF080_REMS,
13194 .total_size = 1024,
13195 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000013196 .feature_bits = FEATURE_WRSR_EITHER,
Zeus Castro33670ba2011-08-17 09:50:11 +000013197 .tested = TEST_UNTESTED,
13198 .probe = probe_spi_res2,
13199 .probe_timing = TIMING_ZERO,
13200 .block_erasers =
13201 {
13202 {
13203 .eraseblocks = { {4 * 1024, 256} },
13204 .block_erase = spi_block_erase_20,
13205 }, {
13206 .eraseblocks = { {32 * 1024, 32} },
13207 .block_erase = spi_block_erase_52,
13208 }, {
13209 .eraseblocks = { {1024 * 1024, 1} },
13210 .block_erase = spi_block_erase_60,
13211 },
13212 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013213 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +000013214 .unlock = spi_disable_blockprotect,
13215 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13216 .read = spi_chip_read,
13217 .voltage = {3000, 3600},
13218 },
13219
13220 {
13221 .vendor = "SST",
Stefan Tauner6697f712014-08-06 15:09:15 +000013222 .name = "SST25VF010(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013223 .bustype = BUS_SPI,
Mark Marshall90021f22010-12-03 14:48:11 +000013224 .manufacture_id = SST_ID,
13225 .model_id = SST_SST25VF010_REMS,
13226 .total_size = 128,
13227 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000013228 .feature_bits = FEATURE_WRSR_EWSR,
Mark Marshall90021f22010-12-03 14:48:11 +000013229 .tested = TEST_OK_PREW,
13230 .probe = probe_spi_rems,
13231 .probe_timing = TIMING_ZERO,
13232 .block_erasers =
13233 {
13234 {
13235 .eraseblocks = { {4 * 1024, 32} },
13236 .block_erase = spi_block_erase_20,
13237 }, {
13238 .eraseblocks = { {32 * 1024, 4} },
13239 .block_erase = spi_block_erase_52,
13240 }, {
Cory Henderson370f5822013-10-19 23:09:16 +000013241 .eraseblocks = { {32 * 1024, 4} },
Stefan Tauner6697f712014-08-06 15:09:15 +000013242 .block_erase = spi_block_erase_d8, /* Supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000013243 }, {
Mark Marshall90021f22010-12-03 14:48:11 +000013244 .eraseblocks = { {128 * 1024, 1} },
13245 .block_erase = spi_block_erase_60,
Cory Henderson370f5822013-10-19 23:09:16 +000013246 }, {
13247 .eraseblocks = { {128 * 1024, 1} },
Stefan Tauner6697f712014-08-06 15:09:15 +000013248 .block_erase = spi_block_erase_c7, /* Supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000013249 },
13250 },
13251 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
13252 .unlock = spi_disable_blockprotect,
13253 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
Stefan Tauner6697f712014-08-06 15:09:15 +000013254 .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000013255 .voltage = {2700, 3600},
13256 },
13257
13258 {
13259 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013260 .name = "SST25VF016B",
13261 .bustype = BUS_SPI,
13262 .manufacture_id = SST_ID,
13263 .model_id = SST_SST25VF016B,
13264 .total_size = 2048,
13265 .page_size = 256,
13266 .feature_bits = FEATURE_WRSR_EITHER,
13267 .tested = TEST_OK_PREW,
13268 .probe = probe_spi_rdid,
13269 .probe_timing = TIMING_ZERO,
13270 .block_erasers =
13271 {
13272 {
13273 .eraseblocks = { {4 * 1024, 512} },
13274 .block_erase = spi_block_erase_20,
13275 }, {
13276 .eraseblocks = { {32 * 1024, 64} },
13277 .block_erase = spi_block_erase_52,
13278 }, {
13279 .eraseblocks = { {64 * 1024, 32} },
13280 .block_erase = spi_block_erase_d8,
13281 }, {
13282 .eraseblocks = { {2 * 1024 * 1024, 1} },
13283 .block_erase = spi_block_erase_60,
13284 }, {
13285 .eraseblocks = { {2 * 1024 * 1024, 1} },
13286 .block_erase = spi_block_erase_c7,
13287 },
13288 },
13289 .printlock = spi_prettyprint_status_register_sst25vf016,
13290 .unlock = spi_disable_blockprotect,
13291 .write = spi_aai_write,
13292 .read = spi_chip_read,
13293 .voltage = {2700, 3600},
13294 },
13295
13296 {
13297 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +000013298 .name = "SST25VF020",
13299 .bustype = BUS_SPI,
13300 .manufacture_id = SST_ID,
13301 .model_id = SST_SST25VF020_REMS,
13302 .total_size = 256,
13303 .page_size = 256,
13304 .feature_bits = FEATURE_WRSR_EWSR,
13305 .tested = TEST_UNTESTED,
13306 .probe = probe_spi_rems,
13307 .probe_timing = TIMING_ZERO,
13308 .block_erasers =
13309 {
13310 {
13311 .eraseblocks = { {4 * 1024, 64} },
13312 .block_erase = spi_block_erase_20,
13313 }, {
13314 .eraseblocks = { {32 * 1024, 8} },
13315 .block_erase = spi_block_erase_52,
13316 }, {
13317 .eraseblocks = { {256 * 1024, 1} },
13318 .block_erase = spi_block_erase_60,
13319 },
13320 },
13321 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
13322 .unlock = spi_disable_blockprotect,
13323 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13324 .read = spi_chip_read, /* only */
13325 .voltage = {2700, 3600},
13326 },
13327
13328 {
13329 .vendor = "SST",
13330 .name = "SST25VF020B",
13331 .bustype = BUS_SPI,
13332 .manufacture_id = SST_ID,
13333 .model_id = SST_SST25VF020B,
13334 .total_size = 256,
13335 .page_size = 256,
13336 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000013337 .tested = TEST_OK_PREW,
Cory Henderson370f5822013-10-19 23:09:16 +000013338 .probe = probe_spi_rdid,
13339 .probe_timing = TIMING_ZERO,
13340 .block_erasers =
13341 {
13342 {
13343 .eraseblocks = { {4 * 1024, 64} },
13344 .block_erase = spi_block_erase_20,
13345 }, {
13346 .eraseblocks = { {32 * 1024, 8} },
13347 .block_erase = spi_block_erase_52,
13348 }, {
13349 .eraseblocks = { {64 * 1024, 4} },
13350 .block_erase = spi_block_erase_d8,
13351 }, {
13352 .eraseblocks = { {256 * 1024, 1} },
13353 .block_erase = spi_block_erase_60,
13354 }, {
13355 .eraseblocks = { {256 * 1024, 1} },
13356 .block_erase = spi_block_erase_c7,
13357 },
13358 },
13359 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 and 2nd SR */
13360 .unlock = spi_disable_blockprotect, /* FIXME: 2nd SR */
13361 .write = spi_aai_write, /* AAI supported (0xAD) */
13362 .read = spi_chip_read, /* Fast read (0x0B) supported */
13363 .voltage = {2700, 3600},
13364 },
13365
13366 {
13367 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013368 .name = "SST25VF032B",
13369 .bustype = BUS_SPI,
13370 .manufacture_id = SST_ID,
13371 .model_id = SST_SST25VF032B,
13372 .total_size = 4096,
13373 .page_size = 256,
13374 .feature_bits = FEATURE_WRSR_EWSR,
13375 .tested = TEST_OK_PREW,
13376 .probe = probe_spi_rdid,
13377 .probe_timing = TIMING_ZERO,
13378 .block_erasers =
13379 {
13380 {
13381 .eraseblocks = { {4 * 1024, 1024} },
13382 .block_erase = spi_block_erase_20,
13383 }, {
13384 .eraseblocks = { {32 * 1024, 128} },
13385 .block_erase = spi_block_erase_52,
13386 }, {
13387 .eraseblocks = { {64 * 1024, 64} },
13388 .block_erase = spi_block_erase_d8,
13389 }, {
13390 .eraseblocks = { {4 * 1024 * 1024, 1} },
13391 .block_erase = spi_block_erase_60,
13392 }, {
13393 .eraseblocks = { {4 * 1024 * 1024, 1} },
13394 .block_erase = spi_block_erase_c7,
13395 },
13396 },
13397 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
13398 .unlock = spi_disable_blockprotect,
13399 .write = spi_aai_write,
13400 .read = spi_chip_read,
13401 .voltage = {2700, 3600},
13402 },
13403
13404 {
13405 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +000013406 .name = "SST25VF040",
13407 .bustype = BUS_SPI,
13408 .manufacture_id = SST_ID,
13409 .model_id = SST_SST25VF040_REMS,
13410 .total_size = 512,
13411 .page_size = 256,
13412 .feature_bits = FEATURE_WRSR_EWSR,
13413 .tested = TEST_OK_PR,
13414 .probe = probe_spi_rems,
13415 .probe_timing = TIMING_ZERO,
13416 .block_erasers =
13417 {
13418 {
13419 .eraseblocks = { {4 * 1024, 128} },
13420 .block_erase = spi_block_erase_20,
13421 }, {
13422 .eraseblocks = { {32 * 1024, 16} },
13423 .block_erase = spi_block_erase_52,
13424 }, {
13425 .eraseblocks = { {512 * 1024, 1} },
13426 .block_erase = spi_block_erase_60,
Mark Marshall90021f22010-12-03 14:48:11 +000013427 },
13428 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013429 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Mark Marshall90021f22010-12-03 14:48:11 +000013430 .unlock = spi_disable_blockprotect,
Cory Henderson370f5822013-10-19 23:09:16 +000013431 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13432 .read = spi_chip_read,
13433 .voltage = {2700, 3600},
13434 },
13435
13436 {
13437 .vendor = "SST",
13438 .name = "SST25VF040B",
13439 .bustype = BUS_SPI,
13440 .manufacture_id = SST_ID,
13441 .model_id = SST_SST25VF040B,
13442 .total_size = 512,
13443 .page_size = 256,
13444 .feature_bits = FEATURE_WRSR_EWSR,
13445 .tested = TEST_OK_PREW,
13446 .probe = probe_spi_rdid,
13447 .probe_timing = TIMING_ZERO,
13448 .block_erasers =
13449 {
13450 {
13451 .eraseblocks = { {4 * 1024, 128} },
13452 .block_erase = spi_block_erase_20,
13453 }, {
13454 .eraseblocks = { {32 * 1024, 16} },
13455 .block_erase = spi_block_erase_52,
13456 }, {
13457 .eraseblocks = { {64 * 1024, 8} },
13458 .block_erase = spi_block_erase_d8,
13459 }, {
13460 .eraseblocks = { {512 * 1024, 1} },
13461 .block_erase = spi_block_erase_60,
13462 }, {
13463 .eraseblocks = { {512 * 1024, 1} },
13464 .block_erase = spi_block_erase_c7,
13465 },
13466 },
13467 .printlock = spi_prettyprint_status_register_sst25vf040b,
13468 .unlock = spi_disable_blockprotect,
13469 .write = spi_aai_write, /* AAI supported (0xAD) */
13470 .read = spi_chip_read, /* Fast read (0x0B) supported */
13471 .voltage = {2700, 3600},
13472 },
13473
13474 {
13475 .vendor = "SST",
13476 .name = "SST25VF040B.REMS",
13477 .bustype = BUS_SPI,
13478 .manufacture_id = SST_ID,
13479 .model_id = SST_SST25VF040B_REMS,
13480 .total_size = 512,
13481 .page_size = 256,
13482 .feature_bits = FEATURE_WRSR_EWSR,
13483 .tested = TEST_OK_PREW,
13484 .probe = probe_spi_rems,
13485 .probe_timing = TIMING_ZERO,
13486 .block_erasers =
13487 {
13488 {
13489 .eraseblocks = { {4 * 1024, 128} },
13490 .block_erase = spi_block_erase_20,
13491 }, {
13492 .eraseblocks = { {32 * 1024, 16} },
13493 .block_erase = spi_block_erase_52,
13494 }, {
13495 .eraseblocks = { {64 * 1024, 8} },
13496 .block_erase = spi_block_erase_d8,
13497 }, {
13498 .eraseblocks = { {512 * 1024, 1} },
13499 .block_erase = spi_block_erase_60,
13500 }, {
13501 .eraseblocks = { {512 * 1024, 1} },
13502 .block_erase = spi_block_erase_c7,
13503 },
13504 },
13505 .printlock = spi_prettyprint_status_register_sst25vf040b,
13506 .unlock = spi_disable_blockprotect,
13507 .write = spi_aai_write,
13508 .read = spi_chip_read,
13509 .voltage = {2700, 3600},
13510 },
13511
13512 {
13513 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013514 .name = "SST25VF064C",
Ben Gardnerbcf61092015-11-22 02:23:31 +000013515 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013516 .manufacture_id = SST_ID,
13517 .model_id = SST_SST25VF064C,
13518 .total_size = 8192,
Ben Gardnerbcf61092015-11-22 02:23:31 +000013519 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013520 .feature_bits = FEATURE_WRSR_EWSR,
Ben Gardnerbcf61092015-11-22 02:23:31 +000013521 .tested = TEST_OK_PREW,
13522 .probe = probe_spi_rdid,
13523 .probe_timing = TIMING_ZERO,
13524 .block_erasers =
13525 {
13526 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013527 .eraseblocks = { {4 * 1024, 2048} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000013528 .block_erase = spi_block_erase_20,
13529 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013530 .eraseblocks = { {32 * 1024, 256} },
13531 .block_erase = spi_block_erase_52,
13532 }, {
13533 .eraseblocks = { {64 * 1024, 128} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000013534 .block_erase = spi_block_erase_d8,
13535 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013536 .eraseblocks = { {8 * 1024 * 1024, 1} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000013537 .block_erase = spi_block_erase_60,
13538 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013539 .eraseblocks = { {8 * 1024 * 1024, 1} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000013540 .block_erase = spi_block_erase_c7,
13541 },
13542 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100013543 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
13544 .unlock = spi_disable_blockprotect,
Ben Gardnerbcf61092015-11-22 02:23:31 +000013545 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013546 .read = spi_chip_read,
13547 .voltage = {2700, 3600},
Ben Gardnerbcf61092015-11-22 02:23:31 +000013548 },
13549
13550 {
13551 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +000013552 .name = "SST25VF080B",
13553 .bustype = BUS_SPI,
13554 .manufacture_id = SST_ID,
13555 .model_id = SST_SST25VF080B,
13556 .total_size = 1024,
13557 .page_size = 256,
13558 .feature_bits = FEATURE_WRSR_EWSR,
13559 .tested = TEST_OK_PREW,
13560 .probe = probe_spi_rdid,
13561 .probe_timing = TIMING_ZERO,
13562 .block_erasers =
13563 {
13564 {
13565 .eraseblocks = { {4 * 1024, 256} },
13566 .block_erase = spi_block_erase_20,
13567 }, {
13568 .eraseblocks = { {32 * 1024, 32} },
13569 .block_erase = spi_block_erase_52,
13570 }, {
13571 .eraseblocks = { {64 * 1024, 16} },
13572 .block_erase = spi_block_erase_d8,
13573 }, {
13574 .eraseblocks = { {1024 * 1024, 1} },
13575 .block_erase = spi_block_erase_60,
13576 }, {
13577 .eraseblocks = { {1024 * 1024, 1} },
13578 .block_erase = spi_block_erase_c7,
13579 },
13580 },
13581 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
13582 .unlock = spi_disable_blockprotect,
13583 .write = spi_aai_write,
Mark Marshall90021f22010-12-03 14:48:11 +000013584 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000013585 .voltage = {2700, 3600},
Mark Marshall90021f22010-12-03 14:48:11 +000013586 },
13587
13588 {
13589 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013590 .name = "SST25VF512(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013591 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013592 .manufacture_id = SST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013593 .model_id = SST_SST25VF512_REMS,
13594 .total_size = 64,
13595 .page_size = 256,
13596 .feature_bits = FEATURE_WRSR_EWSR,
13597 .tested = TEST_OK_PREW,
13598 .probe = probe_spi_rems,
13599 .probe_timing = TIMING_ZERO,
13600 .block_erasers =
13601 {
13602 {
13603 .eraseblocks = { {4 * 1024, 16} },
13604 .block_erase = spi_block_erase_20,
13605 }, {
13606 .eraseblocks = { {32 * 1024, 2} },
13607 .block_erase = spi_block_erase_52,
13608 }, {
13609 .eraseblocks = { {32 * 1024, 2} },
13610 .block_erase = spi_block_erase_d8, /* Supported by SST25VF512A only */
13611 }, {
13612 .eraseblocks = { {64 * 1024, 1} },
13613 .block_erase = spi_block_erase_60,
13614 }, {
13615 .eraseblocks = { {64 * 1024, 1} },
13616 .block_erase = spi_block_erase_c7, /* Supported by SST25VF512A only */
13617 },
13618 },
13619 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
13620 .unlock = spi_disable_blockprotect,
13621 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13622 .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF512A only */
13623 .voltage = {2700, 3600},
13624 },
13625
13626 {
13627 .vendor = "SST",
13628 .name = "SST25WF010",
13629 .bustype = BUS_SPI,
13630 .manufacture_id = SST_ID,
13631 .model_id = SST_SST25WF010,
13632 .total_size = 128,
13633 .page_size = 256,
13634 .feature_bits = FEATURE_WRSR_EITHER,
13635 .tested = TEST_UNTESTED,
13636 .probe = probe_spi_rdid,
13637 .probe_timing = TIMING_ZERO,
13638 .block_erasers =
13639 {
13640 {
13641 .eraseblocks = { {4 * 1024, 32} },
13642 .block_erase = spi_block_erase_20,
13643 }, {
13644 .eraseblocks = { {32 * 1024, 4} },
13645 .block_erase = spi_block_erase_52,
13646 }, {
13647 .eraseblocks = { {1024 * 128, 1} },
13648 .block_erase = spi_block_erase_60,
13649 }, {
13650 .eraseblocks = { {1024 * 128, 1} },
13651 .block_erase = spi_block_erase_c7,
13652 },
13653 },
13654 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
13655 .unlock = spi_disable_blockprotect_bp2_srwd,
13656 .write = spi_aai_write,
13657 .read = spi_chip_read, /* Fast read (0x0B) supported */
13658 .voltage = {1650, 1950},
13659 },
13660
13661 {
13662 .vendor = "SST",
13663 .name = "SST25WF020",
13664 .bustype = BUS_SPI,
13665 .manufacture_id = SST_ID,
13666 .model_id = SST_SST25WF020,
13667 .total_size = 256,
13668 .page_size = 256,
13669 .feature_bits = FEATURE_WRSR_EITHER,
13670 .tested = TEST_UNTESTED,
13671 .probe = probe_spi_rdid,
13672 .probe_timing = TIMING_ZERO,
13673 .block_erasers =
13674 {
13675 {
13676 .eraseblocks = { {4 * 1024, 64} },
13677 .block_erase = spi_block_erase_20,
13678 }, {
13679 .eraseblocks = { {32 * 1024, 8} },
13680 .block_erase = spi_block_erase_52,
13681 }, {
13682 .eraseblocks = { {64 * 1024, 4} },
13683 .block_erase = spi_block_erase_d8,
13684 }, {
13685 .eraseblocks = { {1024 * 256, 1} },
13686 .block_erase = spi_block_erase_60,
13687 }, {
13688 .eraseblocks = { {1024 * 256, 1} },
13689 .block_erase = spi_block_erase_c7,
13690 },
13691 },
13692 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
13693 .unlock = spi_disable_blockprotect_bp2_srwd,
13694 .write = spi_aai_write,
13695 .read = spi_chip_read, /* Fast read (0x0B) supported */
13696 .voltage = {1650, 1950},
13697 },
13698
13699 {
13700 .vendor = "SST",
13701 .name = "SST25WF020A",
13702 .bustype = BUS_SPI,
13703 .manufacture_id = SANYO_ID, /* See flashchips.h */
13704 .model_id = SST_SST25WF020A,
13705 .total_size = 256,
13706 .page_size = 256,
13707 .feature_bits = FEATURE_WRSR_WREN,
13708 .tested = TEST_UNTESTED,
13709 .probe = probe_spi_rdid,
13710 .probe_timing = TIMING_ZERO,
13711 .block_erasers =
13712 {
13713 {
13714 .eraseblocks = { {4 * 1024, 64} },
13715 .block_erase = spi_block_erase_20,
13716 }, {
13717 .eraseblocks = { {64 * 1024, 4} },
13718 .block_erase = spi_block_erase_d8,
13719 }, {
13720 .eraseblocks = { {256 * 1024, 1} },
13721 .block_erase = spi_block_erase_60,
13722 }, {
13723 .eraseblocks = { {256 * 1024, 1} },
13724 .block_erase = spi_block_erase_c7,
13725 },
13726 },
13727 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
13728 .unlock = spi_disable_blockprotect_bp2_srwd,
13729 .write = spi_chip_write_256,
13730 .read = spi_chip_read, /* Fast read (0x0B) supported */
13731 .voltage = {1650, 1950},
13732 },
13733
13734 {
13735 .vendor = "SST",
13736 .name = "SST25WF040",
13737 .bustype = BUS_SPI,
13738 .manufacture_id = SST_ID,
13739 .model_id = SST_SST25WF040,
13740 .total_size = 512,
13741 .page_size = 256,
13742 .feature_bits = FEATURE_WRSR_EITHER,
13743 .tested = TEST_UNTESTED,
13744 .probe = probe_spi_rdid,
13745 .probe_timing = TIMING_ZERO,
13746 .block_erasers =
13747 {
13748 {
13749 .eraseblocks = { {4 * 1024, 128} },
13750 .block_erase = spi_block_erase_20,
13751 }, {
13752 .eraseblocks = { {32 * 1024, 16} },
13753 .block_erase = spi_block_erase_52,
13754 }, {
13755 .eraseblocks = { {64 * 1024, 8} },
13756 .block_erase = spi_block_erase_d8,
13757 }, {
13758 .eraseblocks = { {1024 * 512, 1} },
13759 .block_erase = spi_block_erase_60,
13760 }, {
13761 .eraseblocks = { {1024 * 512, 1} },
13762 .block_erase = spi_block_erase_c7,
13763 },
13764 },
13765 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
13766 .unlock = spi_disable_blockprotect_bp2_srwd,
13767 .write = spi_aai_write,
13768 .read = spi_chip_read, /* Fast read (0x0B) supported */
13769 .voltage = {1650, 1950},
13770 },
13771
13772 {
13773 .vendor = "SST",
13774 .name = "SST25WF040B",
13775 .bustype = BUS_SPI,
13776 .manufacture_id = SANYO_ID, /* See flashchips.h */
13777 .model_id = SST_SST25WF040B,
13778 .total_size = 512,
13779 .page_size = 256,
13780 .feature_bits = FEATURE_WRSR_WREN,
13781 .tested = TEST_UNTESTED,
13782 .probe = probe_spi_rdid,
13783 .probe_timing = TIMING_ZERO,
13784 .block_erasers =
13785 {
13786 {
13787 .eraseblocks = { {4 * 1024, 128} },
13788 .block_erase = spi_block_erase_20,
13789 }, {
13790 .eraseblocks = { {64 * 1024, 8} },
13791 .block_erase = spi_block_erase_d8,
13792 }, {
13793 .eraseblocks = { {512 * 1024, 1} },
13794 .block_erase = spi_block_erase_60,
13795 }, {
13796 .eraseblocks = { {512 * 1024, 1} },
13797 .block_erase = spi_block_erase_c7,
13798 },
13799 },
13800 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
13801 .unlock = spi_disable_blockprotect_bp2_srwd,
13802 .write = spi_chip_write_256,
13803 .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */
13804 .voltage = {1650, 1950},
13805 },
13806
13807 {
13808 .vendor = "SST",
13809 .name = "SST25WF080",
13810 .bustype = BUS_SPI,
13811 .manufacture_id = SST_ID,
13812 .model_id = SST_SST25WF080,
13813 .total_size = 1024,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013814 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000013815 .feature_bits = FEATURE_WRSR_EITHER,
Mark Marshall90021f22010-12-03 14:48:11 +000013816 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013817 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013818 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013819 .block_erasers =
13820 {
13821 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013822 .eraseblocks = { {4 * 1024, 256} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013823 .block_erase = spi_block_erase_20,
13824 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013825 .eraseblocks = { {32 * 1024, 32} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013826 .block_erase = spi_block_erase_52,
13827 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013828 .eraseblocks = { {64 * 1024, 16} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013829 .block_erase = spi_block_erase_d8,
13830 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013831 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013832 .block_erase = spi_block_erase_60,
13833 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013834 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013835 .block_erase = spi_block_erase_c7,
13836 },
13837 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100013838 .printlock = spi_prettyprint_status_register_sst25, /* *does* have a BP3 but it is useless */
13839 .unlock = spi_disable_blockprotect_bp3_srwd,
Joshua Roys87955bf2011-08-01 18:39:28 +000013840 .write = spi_aai_write,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013841 .read = spi_chip_read, /* Fast read (0x0B) supported */
13842 .voltage = {1650, 1950},
FENG yu ningff692fb2008-12-08 18:15:10 +000013843 },
13844
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013845 {
13846 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013847 .name = "SST25WF080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013848 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013849 .manufacture_id = SANYO_ID, /* See flashchips.h */
13850 .model_id = SST_SST25WF080B,
13851 .total_size = 1024,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013852 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013853 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerfcf6a8c2011-05-18 01:32:00 +000013854 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013855 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013856 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013857 .block_erasers =
13858 {
13859 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013860 .eraseblocks = { {4 * 1024, 256} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013861 .block_erase = spi_block_erase_20,
13862 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013863 .eraseblocks = { {64 * 1024, 16} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013864 .block_erase = spi_block_erase_d8,
13865 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013866 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013867 .block_erase = spi_block_erase_60,
13868 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013869 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013870 .block_erase = spi_block_erase_c7,
13871 },
13872 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100013873 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
13874 .unlock = spi_disable_blockprotect_bp2_srwd,
Helge Wagner1db7a442010-10-05 22:29:08 +000013875 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013876 .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */
13877 .voltage = {1650, 1950},
13878 },
13879
13880 {
13881 .vendor = "SST",
13882 .name = "SST25WF512",
13883 .bustype = BUS_SPI,
13884 .manufacture_id = SST_ID,
13885 .model_id = SST_SST25WF512,
13886 .total_size = 64,
13887 .page_size = 256,
13888 .feature_bits = FEATURE_WRSR_EITHER,
13889 .tested = TEST_UNTESTED,
13890 .probe = probe_spi_rdid,
13891 .probe_timing = TIMING_ZERO,
13892 .block_erasers =
13893 {
13894 {
13895 .eraseblocks = { {4 * 1024, 16} },
13896 .block_erase = spi_block_erase_20,
13897 }, {
13898 .eraseblocks = { {32 * 1024, 2} },
13899 .block_erase = spi_block_erase_52,
13900 }, {
13901 .eraseblocks = { {1024 * 64, 1} },
13902 .block_erase = spi_block_erase_60,
13903 }, {
13904 .eraseblocks = { {1024 * 64, 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},
Ed Swierk86f4e6d2010-07-21 15:02:22 +000013913 },
13914
13915 {
13916 .vendor = "SST",
Wei Hu25584de2018-04-30 14:02:08 -070013917 .name = "SST26VF016B(A)",
13918 .bustype = BUS_SPI,
13919 .manufacture_id = SST_ID,
13920 .model_id = SST_SST26VF016B,
13921 .total_size = 2048,
13922 .page_size = 256,
13923 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
13924 .tested = TEST_OK_PREW,
13925 .probe = probe_spi_rdid,
13926 .probe_timing = TIMING_ZERO,
13927 .block_erasers =
13928 {
13929 {
13930 .eraseblocks = { {4 * 1024, 512} },
13931 .block_erase = spi_block_erase_20,
13932 }, {
13933 .eraseblocks = {
13934 {8 * 1024, 4},
13935 {32 * 1024, 1},
13936 {64 * 1024, 30},
13937 {32 * 1024, 1},
13938 {8 * 1024, 4},
13939 },
13940 .block_erase = spi_block_erase_d8,
13941 }, {
13942 .eraseblocks = { {2 * 1024 * 1024, 1} },
13943 .block_erase = spi_block_erase_c7,
13944 },
13945 },
13946 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
13947 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
13948 .write = spi_chip_write_256, /* Multi I/O supported */
13949 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
13950 .voltage = {2700, 3600},
13951 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100013952
Wei Hu25584de2018-04-30 14:02:08 -070013953 {
13954 .vendor = "SST",
13955 .name = "SST26VF032B(A)",
13956 .bustype = BUS_SPI,
13957 .manufacture_id = SST_ID,
13958 .model_id = SST_SST26VF032B,
13959 .total_size = 4096,
13960 .page_size = 256,
13961 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
13962 .tested = TEST_UNTESTED,
13963 .probe = probe_spi_rdid,
13964 .probe_timing = TIMING_ZERO,
13965 .block_erasers =
13966 {
13967 {
13968 .eraseblocks = { {4 * 1024, 1024} },
13969 .block_erase = spi_block_erase_20,
13970 }, {
13971 .eraseblocks = {
13972 {8 * 1024, 4},
13973 {32 * 1024, 1},
13974 {64 * 1024, 62},
13975 {32 * 1024, 1},
13976 {8 * 1024, 4},
13977 },
13978 .block_erase = spi_block_erase_d8,
13979 }, {
13980 .eraseblocks = { {4 * 1024 * 1024, 1} },
13981 .block_erase = spi_block_erase_c7,
13982 },
13983 },
13984 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
13985 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
13986 .write = spi_chip_write_256, /* Multi I/O supported */
13987 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
13988 .voltage = {2700, 3600},
13989 },
13990
Wei Hu25584de2018-04-30 14:02:08 -070013991 {
13992 .vendor = "SST",
13993 .name = "SST26VF064B(A)",
13994 .bustype = BUS_SPI,
13995 .manufacture_id = SST_ID,
13996 .model_id = SST_SST26VF064B,
13997 .total_size = 8192,
13998 .page_size = 256,
13999 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
14000 .tested = TEST_OK_PREW,
14001 .probe = probe_spi_rdid,
14002 .probe_timing = TIMING_ZERO,
14003 .block_erasers =
14004 {
14005 {
14006 .eraseblocks = { {4 * 1024, 2048} },
14007 .block_erase = spi_block_erase_20,
14008 }, {
14009 .eraseblocks = {
14010 {8 * 1024, 4},
14011 {32 * 1024, 1},
14012 {64 * 1024, 126},
14013 {32 * 1024, 1},
14014 {8 * 1024, 4},
14015 },
14016 .block_erase = spi_block_erase_d8,
14017 }, {
14018 .eraseblocks = { {8 * 1024 * 1024, 1} },
14019 .block_erase = spi_block_erase_c7,
14020 },
14021 },
14022 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14023 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
14024 .write = spi_chip_write_256, /* Multi I/O supported */
14025 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
14026 .voltage = {2700, 3600},
14027 },
14028
14029 {
14030 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014031 .name = "SST28SF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014032 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014033 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014034 .model_id = SST_SST28SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014035 .total_size = 512,
14036 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000014037 .feature_bits = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014038 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014039 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014040 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014041 .block_erasers =
14042 {
14043 {
14044 .eraseblocks = { {128, 4096} },
14045 .block_erase = erase_sector_28sf040,
14046 }, {
14047 .eraseblocks = { {512 * 1024, 1} },
14048 .block_erase = erase_chip_28sf040,
14049 }
14050 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014051 .unlock = unprotect_28sf040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014052 .write = write_28sf040,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014053 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014054 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014055 },
14056
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014057 {
14058 .vendor = "SST",
14059 .name = "SST29EE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014060 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014061 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014062 .model_id = SST_SST29EE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014063 .total_size = 128,
14064 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000014065 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000014066 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014067 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000014068 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014069 .block_erasers =
14070 {
14071 {
14072 .eraseblocks = { {128 * 1024, 1} },
14073 .block_erase = erase_chip_block_jedec,
14074 }
14075 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014076 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014077 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014078 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014079 },
14080
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014081 {
14082 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014083 .name = "SST29EE020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014084 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014085 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014086 .model_id = SST_SST29EE020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014087 .total_size = 256,
14088 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000014089 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000014090 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014091 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014092 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014093 .block_erasers =
14094 {
14095 {
14096 .eraseblocks = { {256 * 1024, 1} },
14097 .block_erase = erase_chip_block_jedec,
14098 }
14099 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014100 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014101 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014102 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014103 },
14104
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014105 {
14106 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100014107 .name = "SST29LE010",
14108 .bustype = BUS_PARALLEL,
14109 .manufacture_id = SST_ID,
14110 .model_id = SST_SST29LE010,
14111 .total_size = 128,
14112 .page_size = 128,
14113 .feature_bits = FEATURE_LONG_RESET,
14114 .tested = TEST_UNTESTED,
14115 .probe = probe_jedec,
14116 .probe_timing = 10,
14117 .block_erasers =
14118 {
14119 {
14120 .eraseblocks = { {128 * 1024, 1} },
14121 .block_erase = erase_chip_block_jedec,
14122 }
14123 },
14124 .write = write_jedec,
14125 .read = read_memmapped,
14126 .voltage = {3000, 3600},
14127 },
14128
14129 {
14130 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014131 .name = "SST29LE020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014132 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014133 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014134 .model_id = SST_SST29LE020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014135 .total_size = 256,
14136 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000014137 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000014138 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014139 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000014140 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014141 .block_erasers =
14142 {
14143 {
14144 .eraseblocks = { {256 * 1024, 1} },
14145 .block_erase = erase_chip_block_jedec,
14146 }
14147 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014148 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014149 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014150 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014151 },
14152
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014153 {
14154 .vendor = "SST",
14155 .name = "SST39SF010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014156 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014157 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014158 .model_id = SST_SST39SF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014159 .total_size = 128,
14160 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014161 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000014162 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014163 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000014164 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014165 .block_erasers =
14166 {
14167 {
14168 .eraseblocks = { {4 * 1024, 32} },
14169 .block_erase = erase_sector_jedec,
14170 }, {
14171 .eraseblocks = { {128 * 1024, 1} },
14172 .block_erase = erase_chip_block_jedec,
14173 }
14174 },
Sean Nelson35727f72010-01-28 23:55:12 +000014175 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014176 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014177 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014178 },
14179
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014180 {
14181 .vendor = "SST",
14182 .name = "SST39SF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014183 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014184 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014185 .model_id = SST_SST39SF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014186 .total_size = 256,
14187 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014188 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann19f46f22011-06-18 22:56:14 +000014189 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014190 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014191 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014192 .block_erasers =
14193 {
14194 {
14195 .eraseblocks = { {4 * 1024, 64} },
14196 .block_erase = erase_sector_jedec,
14197 }, {
14198 .eraseblocks = { {256 * 1024, 1} },
14199 .block_erase = erase_chip_block_jedec,
14200 }
14201 },
Sean Nelson35727f72010-01-28 23:55:12 +000014202 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014203 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014204 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014205 },
14206
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014207 {
14208 .vendor = "SST",
14209 .name = "SST39SF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014210 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014211 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014212 .model_id = SST_SST39SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014213 .total_size = 512,
14214 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014215 .feature_bits = FEATURE_EITHER_RESET,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +000014216 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014217 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014218 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014219 .block_erasers =
14220 {
14221 {
14222 .eraseblocks = { {4 * 1024, 128} },
14223 .block_erase = erase_sector_jedec,
14224 }, {
14225 .eraseblocks = { {512 * 1024, 1} },
14226 .block_erase = erase_chip_block_jedec,
14227 }
14228 },
Sean Nelson35727f72010-01-28 23:55:12 +000014229 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014230 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014231 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014232 },
14233
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014234 {
14235 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100014236 .name = "SST39SF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014237 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014238 .manufacture_id = SST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100014239 .model_id = SST_SST39SF512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014240 .total_size = 64,
14241 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014242 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd7d423b2012-10-20 09:13:16 +000014243 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014244 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014245 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014246 .block_erasers =
14247 {
14248 {
14249 .eraseblocks = { {4 * 1024, 16} },
14250 .block_erase = erase_sector_jedec,
14251 }, {
14252 .eraseblocks = { {64 * 1024, 1} },
14253 .block_erase = erase_chip_block_jedec,
14254 }
14255 },
Sean Nelson35727f72010-01-28 23:55:12 +000014256 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014257 .read = read_memmapped,
Alan Green1f9cc7d2019-07-01 11:10:45 +100014258 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014259 },
14260
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014261 {
14262 .vendor = "SST",
14263 .name = "SST39VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014264 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014265 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014266 .model_id = SST_SST39VF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014267 .total_size = 128,
14268 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014269 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd94d25d2012-07-28 03:17:15 +000014270 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014271 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014272 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014273 .block_erasers =
14274 {
14275 {
14276 .eraseblocks = { {4 * 1024, 32} },
14277 .block_erase = erase_sector_jedec,
14278 }, {
14279 .eraseblocks = { {128 * 1024, 1} },
14280 .block_erase = erase_chip_block_jedec,
14281 }
14282 },
Sean Nelson35727f72010-01-28 23:55:12 +000014283 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014284 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014285 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014286 },
14287
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014288 {
14289 .vendor = "SST",
14290 .name = "SST39VF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014291 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014292 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014293 .model_id = SST_SST39VF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014294 .total_size = 256,
14295 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014296 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner5c316f92015-02-08 21:57:52 +000014297 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014298 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014299 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014300 .block_erasers =
14301 {
14302 {
14303 .eraseblocks = { {4 * 1024, 64} },
14304 .block_erase = erase_sector_jedec,
14305 }, {
14306 .eraseblocks = { {256 * 1024, 1} },
14307 .block_erase = erase_chip_block_jedec,
14308 }
14309 },
Sean Nelson35727f72010-01-28 23:55:12 +000014310 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014311 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014312 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014313 },
14314
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014315 {
14316 .vendor = "SST",
14317 .name = "SST39VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014318 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014319 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014320 .model_id = SST_SST39VF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014321 .total_size = 512,
14322 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014323 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner23e10b82016-01-23 16:16:49 +000014324 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014325 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014326 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014327 .block_erasers =
14328 {
14329 {
14330 .eraseblocks = { {4 * 1024, 128} },
14331 .block_erase = erase_sector_jedec,
14332 }, {
14333 .eraseblocks = { {512 * 1024, 1} },
14334 .block_erase = erase_chip_block_jedec,
14335 }
14336 },
Sean Nelson35727f72010-01-28 23:55:12 +000014337 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014338 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014339 .voltage = {2700, 3600},
Carl-Daniel Hailfinger90eff152008-12-08 23:51:45 +000014340 },
FENG yu ningff692fb2008-12-08 18:15:10 +000014341
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014342 {
14343 .vendor = "SST",
Peter Stuge8440cc02009-01-25 23:55:12 +000014344 .name = "SST39VF080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014345 .bustype = BUS_PARALLEL,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000014346 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014347 .model_id = SST_SST39VF080,
Peter Stuge8440cc02009-01-25 23:55:12 +000014348 .total_size = 1024,
14349 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014350 .feature_bits = FEATURE_EITHER_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +000014351 .tested = TEST_UNTESTED,
14352 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014353 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014354 .block_erasers =
14355 {
14356 {
14357 .eraseblocks = { {4 * 1024, 256} },
14358 .block_erase = erase_sector_jedec,
14359 }, {
14360 .eraseblocks = { {64 * 1024, 16} },
14361 .block_erase = erase_block_jedec,
14362 }, {
14363 .eraseblocks = { {1024 * 1024, 1} },
14364 .block_erase = erase_chip_block_jedec,
14365 }
14366 },
Sean Nelson35727f72010-01-28 23:55:12 +000014367 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014368 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014369 .voltage = {2700, 3600},
Peter Stuge8440cc02009-01-25 23:55:12 +000014370 },
14371
14372 {
14373 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100014374 .name = "SST39VF512",
14375 .bustype = BUS_PARALLEL,
14376 .manufacture_id = SST_ID,
14377 .model_id = SST_SST39VF512,
14378 .total_size = 64,
14379 .page_size = 4096,
14380 .feature_bits = FEATURE_EITHER_RESET,
14381 .tested = TEST_OK_PREW,
14382 .probe = probe_jedec,
14383 .probe_timing = 1, /* 150 ns */
14384 .block_erasers =
14385 {
14386 {
14387 .eraseblocks = { {4 * 1024, 16} },
14388 .block_erase = erase_sector_jedec,
14389 }, {
14390 .eraseblocks = { {64 * 1024, 1} },
14391 .block_erase = erase_chip_block_jedec,
14392 }
14393 },
14394 .write = write_jedec_1,
14395 .read = read_memmapped,
14396 .voltage = {2700, 3600},
14397 },
14398
14399 {
14400 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014401 .name = "SST49LF002A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014402 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014403 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014404 .model_id = SST_SST49LF002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014405 .total_size = 256,
14406 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014407 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000014408 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014409 .probe = probe_jedec,
14410 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014411 .block_erasers =
14412 {
14413 {
14414 .eraseblocks = { {4 * 1024, 64} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014415 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014416 }, {
14417 .eraseblocks = { {16 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014418 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014419 }, {
14420 .eraseblocks = { {256 * 1024, 1} },
14421 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
14422 }
14423 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014424 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014425 .unlock = unlock_sst_fwhub,
14426 .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 = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014429 },
14430
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014431 {
14432 .vendor = "SST",
14433 .name = "SST49LF003A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014434 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014435 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014436 .model_id = SST_SST49LF003A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014437 .total_size = 384,
14438 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014439 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000014440 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014441 .probe = probe_jedec,
14442 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014443 .block_erasers =
14444 {
14445 {
14446 .eraseblocks = { {4 * 1024, 96} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014447 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014448 }, {
14449 .eraseblocks = { {64 * 1024, 6} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014450 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014451 }, {
14452 .eraseblocks = { {384 * 1024, 1} },
14453 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
14454 }
14455 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014456 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014457 .unlock = unlock_sst_fwhub,
14458 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014459 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014460 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014461 },
14462
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014463 {
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000014464 /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB)
14465 * and is only honored for 64k block erase, but not 4k sector erase.
14466 */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014467 .vendor = "SST",
14468 .name = "SST49LF004A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014469 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014470 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014471 .model_id = SST_SST49LF004A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014472 .total_size = 512,
14473 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014474 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000014475 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014476 .probe = probe_jedec,
14477 .probe_timing = 1, /* 150 ns */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000014478 .block_erasers =
14479 {
14480 {
14481 .eraseblocks = { {4 * 1024, 128} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014482 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000014483 }, {
14484 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014485 .block_erase = erase_block_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000014486 }, {
14487 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson51c83fb2010-01-20 20:55:53 +000014488 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000014489 },
14490 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014491 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014492 .unlock = unlock_sst_fwhub,
14493 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014494 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014495 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014496 },
14497
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014498 {
14499 .vendor = "SST",
14500 .name = "SST49LF004C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014501 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014502 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014503 .model_id = SST_SST49LF004C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014504 .total_size = 512,
14505 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014506 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014507 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014508 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014509 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014510 .block_erasers =
14511 {
14512 {
14513 .eraseblocks = { {4 * 1024, 128} },
14514 .block_erase = erase_sector_49lfxxxc,
14515 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000014516 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000014517 {64 * 1024, 7},
14518 {32 * 1024, 1},
14519 {8 * 1024, 2},
14520 {16 * 1024, 1},
14521 },
Sean Nelson69e58112010-03-23 17:10:28 +000014522 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014523 }
14524 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014525 .printlock = printlock_regspace2_block_eraser_1,
14526 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014527 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014528 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014529 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014530 },
14531
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014532 {
14533 .vendor = "SST",
14534 .name = "SST49LF008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014535 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014536 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014537 .model_id = SST_SST49LF008A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014538 .total_size = 1024,
14539 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014540 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000014541 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014542 .probe = probe_jedec,
14543 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014544 .block_erasers =
14545 {
14546 {
14547 .eraseblocks = { {4 * 1024, 256} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014548 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014549 }, {
14550 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014551 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014552 }, {
14553 .eraseblocks = { {1024 * 1024, 1} },
14554 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
14555 }
14556 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014557 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014558 .unlock = unlock_sst_fwhub,
14559 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014560 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014561 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014562 },
14563
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014564 {
14565 .vendor = "SST",
14566 .name = "SST49LF008C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014567 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014568 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014569 .model_id = SST_SST49LF008C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014570 .total_size = 1024,
14571 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014572 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014573 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014574 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014575 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014576 .block_erasers =
14577 {
14578 {
14579 .eraseblocks = { {4 * 1024, 256} },
14580 .block_erase = erase_sector_49lfxxxc,
14581 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000014582 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000014583 {64 * 1024, 15},
14584 {32 * 1024, 1},
14585 {8 * 1024, 2},
14586 {16 * 1024, 1},
14587 },
Sean Nelson69e58112010-03-23 17:10:28 +000014588 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014589 }
14590 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014591 .printlock = printlock_regspace2_block_eraser_1,
14592 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014593 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014594 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014595 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014596 },
14597
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014598 {
14599 .vendor = "SST",
14600 .name = "SST49LF016C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014601 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014602 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014603 .model_id = SST_SST49LF016C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014604 .total_size = 2048,
14605 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014606 .feature_bits = FEATURE_REGISTERMAP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000014607 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014608 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014609 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014610 .block_erasers =
14611 {
14612 {
14613 .eraseblocks = { {4 * 1024, 512} },
14614 .block_erase = erase_sector_49lfxxxc,
14615 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000014616 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000014617 {64 * 1024, 31},
14618 {32 * 1024, 1},
14619 {8 * 1024, 2},
14620 {16 * 1024, 1},
14621 },
Sean Nelson69e58112010-03-23 17:10:28 +000014622 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014623 }
14624 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014625 .printlock = printlock_regspace2_block_eraser_1,
14626 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014627 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014628 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014629 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014630 },
14631
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014632 {
14633 .vendor = "SST",
14634 .name = "SST49LF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014635 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014636 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014637 .model_id = SST_SST49LF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014638 .total_size = 256,
14639 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014640 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +000014641 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014642 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014643 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014644 .block_erasers =
14645 {
14646 {
14647 .eraseblocks = { {4 * 1024, 64} },
14648 .block_erase = erase_sector_jedec,
14649 }, {
14650 .eraseblocks = { {16 * 1024, 16} },
14651 .block_erase = erase_block_jedec,
14652 }, {
14653 .eraseblocks = { {256 * 1024, 1} },
14654 .block_erase = NULL,
14655 }
14656 },
Sean Nelson35727f72010-01-28 23:55:12 +000014657 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014658 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014659 .voltage = {3000, 3600},
Sven Schnellec208dfb2009-01-07 12:35:09 +000014660 },
14661
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014662 {
14663 .vendor = "SST",
14664 .name = "SST49LF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014665 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014666 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014667 .model_id = SST_SST49LF020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014668 .total_size = 256,
Carl-Daniel Hailfingerda654322009-07-23 01:44:38 +000014669 .page_size = 4 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014670 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000014671 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014672 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014673 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014674 .block_erasers =
14675 {
14676 {
14677 .eraseblocks = { {4 * 1024, 64} },
14678 .block_erase = erase_sector_jedec,
14679 }, {
14680 .eraseblocks = { {16 * 1024, 16} },
14681 .block_erase = erase_block_jedec,
14682 }, {
14683 .eraseblocks = { {256 * 1024, 1} },
14684 .block_erase = NULL,
14685 }
14686 },
Sean Nelson35727f72010-01-28 23:55:12 +000014687 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014688 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014689 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014690 },
14691
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014692 {
14693 .vendor = "SST",
14694 .name = "SST49LF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014695 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014696 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014697 .model_id = SST_SST49LF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014698 .total_size = 512,
14699 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014700 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000014701 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014702 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014703 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014704 .block_erasers =
14705 {
14706 {
14707 .eraseblocks = { {4 * 1024, 128} },
14708 .block_erase = erase_sector_jedec,
14709 }, {
14710 .eraseblocks = { {64 * 1024, 8} },
14711 .block_erase = erase_block_jedec,
14712 }, {
14713 .eraseblocks = { {512 * 1024, 1} },
14714 .block_erase = NULL,
14715 }
14716 },
Sean Nelson35727f72010-01-28 23:55:12 +000014717 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014718 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014719 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014720 },
14721
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014722 {
14723 .vendor = "SST",
14724 .name = "SST49LF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014725 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014726 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014727 .model_id = SST_SST49LF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014728 .total_size = 512,
14729 .page_size = 64 * 1024,
Joshua Roysa84b0bd2010-08-16 22:12:39 +000014730 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000014731 .tested = TEST_OK_PREW,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014732 .probe = probe_jedec,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014733 .probe_timing = 1, /* 150ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014734 .block_erasers =
14735 {
14736 {
14737 .eraseblocks = { {4 * 1024, 128} },
14738 .block_erase = erase_sector_jedec,
14739 }, {
14740 .eraseblocks = { {64 * 1024, 8} },
14741 .block_erase = erase_block_jedec,
14742 }, {
14743 .eraseblocks = { {512 * 1024, 1} },
14744 .block_erase = NULL,
14745 }
14746 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014747 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000014748 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014749 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014750 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014751 },
14752
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014753 {
14754 .vendor = "SST",
14755 .name = "SST49LF080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014756 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014757 .manufacture_id = SST_ID,
Elyes HAOUAS124ef382018-03-27 12:15:09 +020014758 .model_id = SST_SST49LF080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014759 .total_size = 1024,
14760 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014761 .feature_bits = FEATURE_EITHER_RESET,
Brandon Dowdyf07bf322011-03-06 18:31:11 +000014762 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014763 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000014764 .probe_timing = TIMING_FIXME,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014765 .block_erasers =
14766 {
14767 {
14768 .eraseblocks = { {4 * 1024, 256} },
14769 .block_erase = erase_sector_jedec,
14770 }, {
14771 .eraseblocks = { {64 * 1024, 16} },
14772 .block_erase = erase_block_jedec,
14773 }, {
14774 .eraseblocks = { {1024 * 1024, 1} },
14775 .block_erase = NULL,
14776 }
14777 },
Sean Nelson35727f72010-01-28 23:55:12 +000014778 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014779 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014780 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014781 },
14782
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014783 {
14784 .vendor = "SST",
14785 .name = "SST49LF160C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014786 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014787 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014788 .model_id = SST_SST49LF160C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014789 .total_size = 2048,
14790 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014791 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014792 .tested = TEST_OK_PR,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014793 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014794 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014795 .block_erasers =
14796 {
14797 {
14798 .eraseblocks = { {4 * 1024, 512} },
14799 .block_erase = erase_sector_49lfxxxc,
14800 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000014801 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000014802 {64 * 1024, 31},
14803 {32 * 1024, 1},
14804 {8 * 1024, 2},
14805 {16 * 1024, 1},
14806 },
Sean Nelson69e58112010-03-23 17:10:28 +000014807 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014808 }
14809 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014810 .printlock = printlock_regspace2_block_eraser_1,
14811 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014812 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014813 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014814 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014815 },
14816
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014817 {
14818 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014819 .name = "M29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014820 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014821 .manufacture_id = ST_ID,
14822 .model_id = ST_M29F002B,
14823 .total_size = 256,
14824 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014825 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014826 .tested = TEST_UNTESTED,
14827 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014828 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014829 .block_erasers =
14830 {
14831 {
14832 .eraseblocks = {
14833 {16 * 1024, 1},
14834 {8 * 1024, 2},
14835 {32 * 1024, 1},
14836 {64 * 1024, 3},
14837 },
14838 .block_erase = erase_sector_jedec,
14839 }, {
14840 .eraseblocks = { {256 * 1024, 1} },
14841 .block_erase = erase_chip_block_jedec,
14842 }
14843 },
Sean Nelson35727f72010-01-28 23:55:12 +000014844 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014845 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000014846 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000014847 },
14848
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014849 {
14850 .vendor = "ST",
14851 .name = "M29F002T/NT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014852 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014853 .manufacture_id = ST_ID,
14854 .model_id = ST_M29F002T,
14855 .total_size = 256,
14856 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014857 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stefan Taunere34e3e82013-01-01 00:06:51 +000014858 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014859 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014860 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014861 .block_erasers =
14862 {
14863 {
14864 .eraseblocks = {
14865 {64 * 1024, 3},
14866 {32 * 1024, 1},
14867 {8 * 1024, 2},
14868 {16 * 1024, 1},
14869 },
14870 .block_erase = erase_sector_jedec,
14871 }, {
14872 .eraseblocks = { {256 * 1024, 1} },
14873 .block_erase = erase_chip_block_jedec,
14874 }
14875 },
Sean Nelson35727f72010-01-28 23:55:12 +000014876 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014877 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000014878 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000014879 },
14880
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014881 {
14882 .vendor = "ST",
14883 .name = "M29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014884 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014885 .manufacture_id = ST_ID,
14886 .model_id = ST_M29F040B,
14887 .total_size = 512,
14888 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014889 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
14890 .tested = TEST_UNTESTED,
14891 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +000014892 .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */
Sean Nelson56358aa2010-01-19 16:08:51 +000014893 .block_erasers =
14894 {
14895 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014896 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +000014897 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000014898 }, {
14899 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000014900 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000014901 }
14902 },
Sean Nelson35727f72010-01-28 23:55:12 +000014903 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014904 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014905 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014906 },
14907
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014908 {
Sean Nelson35727f72010-01-28 23:55:12 +000014909 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014910 .vendor = "ST",
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014911 .name = "M29F400BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014912 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014913 .manufacture_id = ST_ID,
14914 .model_id = ST_M29F400BB,
14915 .total_size = 512,
14916 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014917 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014918 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014919 .probe = probe_jedec,
14920 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014921 .block_erasers =
14922 {
14923 {
14924 .eraseblocks = {
14925 {16 * 1024, 1},
14926 {8 * 1024, 2},
14927 {32 * 1024, 1},
14928 {64 * 1024, 7},
14929 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014930 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014931 }, {
14932 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014933 .block_erase = erase_chip_block_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014934 }
14935 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014936 .write = write_jedec_1,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014937 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014938 .voltage = {4500, 5500},
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014939 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100014940
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014941 {
14942 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
14943 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014944 .name = "M29F400BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014945 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014946 .manufacture_id = ST_ID,
14947 .model_id = ST_M29F400BT,
14948 .total_size = 512,
14949 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014950 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014951 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014952 .probe = probe_jedec,
14953 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson56358aa2010-01-19 16:08:51 +000014954 .block_erasers =
14955 {
14956 {
14957 .eraseblocks = {
14958 {64 * 1024, 7},
14959 {32 * 1024, 1},
14960 {8 * 1024, 2},
14961 {16 * 1024, 1},
14962 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014963 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000014964 }, {
14965 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014966 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000014967 }
14968 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014969 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014970 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014971 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014972 },
14973
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014974 {
14975 .vendor = "ST",
14976 .name = "M29W010B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014977 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014978 .manufacture_id = ST_ID,
14979 .model_id = ST_M29W010B,
14980 .total_size = 128,
14981 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014982 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014983 .tested = TEST_UNTESTED,
14984 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014985 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014986 .block_erasers =
14987 {
14988 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014989 .eraseblocks = { {16 * 1024, 8} },
Sean Nelson56358aa2010-01-19 16:08:51 +000014990 .block_erase = erase_sector_jedec,
14991 }, {
14992 .eraseblocks = { {128 * 1024, 1} },
14993 .block_erase = erase_chip_block_jedec,
14994 }
14995 },
Sean Nelson35727f72010-01-28 23:55:12 +000014996 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014997 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014998 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014999 },
15000
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015001 {
15002 .vendor = "ST",
15003 .name = "M29W040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015004 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015005 .manufacture_id = ST_ID,
15006 .model_id = ST_M29W040B,
15007 .total_size = 512,
15008 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015009 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015010 .tested = TEST_UNTESTED,
15011 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000015012 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000015013 .block_erasers =
15014 {
15015 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015016 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson56358aa2010-01-19 16:08:51 +000015017 .block_erase = erase_sector_jedec,
15018 }, {
15019 .eraseblocks = { {512 * 1024, 1} },
15020 .block_erase = erase_chip_block_jedec,
15021 }
15022 },
Sean Nelson35727f72010-01-28 23:55:12 +000015023 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015024 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015025 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000015026 },
15027
Stefan Taunereb582572012-09-21 12:52:50 +000015028 {
15029 .vendor = "ST",
15030 .name = "M29W512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015031 .bustype = BUS_PARALLEL,
Alan Greenfa3fcd32019-06-27 15:41:50 +100015032 .manufacture_id = ST_ID,
Stefan Taunereb582572012-09-21 12:52:50 +000015033 .model_id = ST_M29W512B,
15034 .total_size = 64,
15035 .page_size = 64 * 1024,
15036 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauner0554ca52013-07-25 22:54:25 +000015037 .tested = TEST_OK_PREW,
Stefan Taunereb582572012-09-21 12:52:50 +000015038 .probe = probe_jedec,
15039 .probe_timing = TIMING_ZERO,
15040 .block_erasers =
15041 {
15042 {
15043 .eraseblocks = { {64 * 1024, 1} },
15044 .block_erase = erase_chip_block_jedec,
15045 }
15046 },
15047 .write = write_jedec_1,
15048 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015049 .voltage = {2700, 3600},
Stefan Taunereb582572012-09-21 12:52:50 +000015050 },
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +000015051
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015052 {
15053 .vendor = "ST",
15054 .name = "M50FLW040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015055 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015056 .manufacture_id = ST_ID,
15057 .model_id = ST_M50FLW040A,
15058 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000015059 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015060 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015061 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000015062 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000015063 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000015064 .block_erasers =
15065 {
15066 {
Sean Nelson329bde72010-01-19 16:39:19 +000015067 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000015068 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000015069 {64 * 1024, 5}, /* block */
15070 {4 * 1024, 16}, /* sector */
15071 {4 * 1024, 16}, /* sector */
15072 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000015073 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000015074 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000015075 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000015076 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015077 }
15078 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015079 .unlock = unlock_regspace2_uniform_64k,
Alan Greenc1863ca2019-06-27 15:08:03 +100015080 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015081 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015082 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015083 },
15084
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015085 {
15086 .vendor = "ST",
15087 .name = "M50FLW040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015088 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015089 .manufacture_id = ST_ID,
15090 .model_id = ST_M50FLW040B,
15091 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000015092 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015093 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015094 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000015095 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000015096 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000015097 .block_erasers =
15098 {
15099 {
Sean Nelson329bde72010-01-19 16:39:19 +000015100 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000015101 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000015102 {4 * 1024, 16}, /* sector */
15103 {64 * 1024, 5}, /* block */
15104 {4 * 1024, 16}, /* sector */
15105 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000015106 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000015107 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000015108 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000015109 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015110 }
15111 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015112 .unlock = unlock_regspace2_uniform_64k,
Alan Greenc1863ca2019-06-27 15:08:03 +100015113 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015114 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015115 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015116 },
15117
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015118 {
15119 .vendor = "ST",
15120 .name = "M50FLW080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015121 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015122 .manufacture_id = ST_ID,
15123 .model_id = ST_M50FLW080A,
15124 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000015125 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015126 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015127 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +000015128 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000015129 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000015130 .block_erasers =
15131 {
15132 {
Sean Nelson329bde72010-01-19 16:39:19 +000015133 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000015134 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000015135 {64 * 1024, 13}, /* block */
15136 {4 * 1024, 16}, /* sector */
15137 {4 * 1024, 16}, /* sector */
15138 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000015139 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000015140 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000015141 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000015142 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015143 }
15144 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015145 .printlock = printlock_regspace2_block_eraser_0,
15146 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000015147 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015148 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015149 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015150 },
15151
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015152 {
15153 .vendor = "ST",
15154 .name = "M50FLW080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015155 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015156 .manufacture_id = ST_ID,
15157 .model_id = ST_M50FLW080B,
15158 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000015159 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015160 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015161 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000015162 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000015163 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000015164 .block_erasers =
15165 {
15166 {
Sean Nelson329bde72010-01-19 16:39:19 +000015167 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000015168 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000015169 {4 * 1024, 16}, /* sector */
15170 {64 * 1024, 13}, /* block */
15171 {4 * 1024, 16}, /* sector */
15172 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000015173 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000015174 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000015175 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000015176 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015177 }
15178 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015179 .printlock = printlock_regspace2_block_eraser_0,
15180 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000015181 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015182 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015183 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015184 },
15185
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015186 {
15187 .vendor = "ST",
15188 .name = "M50FW002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015189 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015190 .manufacture_id = ST_ID,
15191 .model_id = ST_M50FW002,
15192 .total_size = 256,
Stefan Tauner4404f732013-09-12 08:28:56 +000015193 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015194 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015195 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +000015196 .probe = probe_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015197 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000015198 .block_erasers =
15199 {
15200 {
15201 .eraseblocks = {
15202 {64 * 1024, 3},
15203 {32 * 1024, 1},
15204 {8 * 1024, 2},
15205 {16 * 1024, 1},
15206 },
Sean Nelson28accc22010-03-19 18:47:06 +000015207 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015208 }, {
Stefan Tauner5c316f92015-02-08 21:57:52 +000015209 .eraseblocks = { {256 * 1024, 1} },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015210 .block_erase = NULL, /* Only in A/A mux mode */
Sean Nelson56358aa2010-01-19 16:08:51 +000015211 }
15212 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015213 .printlock = printlock_regspace2_block_eraser_0,
15214 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000015215 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015216 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015217 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015218 },
15219
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015220 {
15221 .vendor = "ST",
15222 .name = "M50FW016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015223 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015224 .manufacture_id = ST_ID,
15225 .model_id = ST_M50FW016,
15226 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000015227 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015228 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015229 .tested = TEST_UNTESTED,
15230 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000015231 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000015232 .block_erasers =
15233 {
15234 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015235 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson28accc22010-03-19 18:47:06 +000015236 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015237 }
15238 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015239 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000015240 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015241 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015242 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015243 },
15244
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015245 {
15246 .vendor = "ST",
15247 .name = "M50FW040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015248 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015249 .manufacture_id = ST_ID,
15250 .model_id = ST_M50FW040,
15251 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000015252 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015253 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +000015254 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015255 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000015256 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000015257 .block_erasers =
15258 {
15259 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015260 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000015261 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015262 }
15263 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015264 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000015265 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015266 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015267 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015268 },
15269
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015270 {
15271 .vendor = "ST",
15272 .name = "M50FW080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015273 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015274 .manufacture_id = ST_ID,
15275 .model_id = ST_M50FW080,
15276 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000015277 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015278 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015279 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015280 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000015281 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000015282 .block_erasers =
15283 {
15284 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015285 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000015286 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015287 }
15288 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015289 .unlock = unlock_regspace2_uniform_64k,
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",
Stefan Tauner8c4602b2013-09-12 08:29:00 +000015297 .name = "M50LPW080",
15298 .bustype = BUS_LPC, /* A/A Mux */
15299 .manufacture_id = ST_ID,
15300 .model_id = ST_M50LPW080,
15301 .total_size = 1024,
15302 .page_size = 0,
15303 .feature_bits = FEATURE_REGISTERMAP,
15304 .tested = TEST_UNTESTED,
15305 .probe = probe_82802ab,
15306 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
15307 .block_erasers =
15308 {
15309 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015310 .eraseblocks = { {64 * 1024, 16} },
Stefan Tauner8c4602b2013-09-12 08:29:00 +000015311 .block_erase = erase_block_82802ab,
15312 }
15313 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015314 .unlock = unlock_regspace2_uniform_64k,
Stefan Tauner8c4602b2013-09-12 08:29:00 +000015315 .write = write_82802ab,
15316 .read = read_memmapped,
15317 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
15318 },
15319
15320 {
15321 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015322 .name = "M50LPW116",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015323 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015324 .manufacture_id = ST_ID,
15325 .model_id = ST_M50LPW116,
15326 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000015327 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015328 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015329 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000015330 .probe = probe_82802ab,
Udu Ogahc04ee222009-09-05 01:31:32 +000015331 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000015332 .block_erasers =
15333 {
15334 {
15335 .eraseblocks = {
15336 {4 * 1024, 16},
15337 {64 * 1024, 30},
15338 {32 * 1024, 1},
15339 {8 * 1024, 2},
15340 {16 * 1024, 1},
15341 },
Sean Nelson28accc22010-03-19 18:47:06 +000015342 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015343 }
15344 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015345 .printlock = printlock_regspace2_block_eraser_0,
15346 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000015347 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015348 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015349 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015350 },
15351
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015352 {
Konstantin Grudnev3d8868c2019-07-23 00:48:54 +030015353 .vendor = "ST",
15354 .name = "M95M02",
15355 .bustype = BUS_SPI,
15356 .manufacture_id = ST_ID,
15357 .model_id = ST_M95M02,
15358 .total_size = 256,
15359 .page_size = 256,
15360 .feature_bits = FEATURE_WRSR_WREN | FEATURE_NO_ERASE | FEATURE_ERASED_ZERO,
15361 .tested = TEST_OK_PREW,
15362 .probe = probe_spi_st95,
15363 .probe_timing = TIMING_ZERO,
15364 .block_erasers =
15365 {
15366 {
15367 .eraseblocks = { {256 * 1024, 1} },
15368 .block_erase = spi_block_erase_emulation,
15369 }
15370 },
15371
15372 .printlock = spi_prettyprint_status_register_bp1_srwd,
15373 .unlock = spi_disable_blockprotect_bp1_srwd,
15374 .write = spi_chip_write_256,
15375 .read = spi_chip_read,
15376 .voltage = {2500, 5500},
15377 },
15378
15379 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100015380 .vendor = "Sanyo",
15381 .name = "LE25FU106B",
15382 .bustype = BUS_SPI,
15383 .manufacture_id = SANYO_ID,
15384 .model_id = SANYO_LE25FU106B,
15385 .total_size = 128,
15386 .page_size = 256,
15387 .feature_bits = FEATURE_WRSR_WREN,
15388 .tested = TEST_UNTESTED,
15389 .probe = probe_spi_res2,
15390 .probe_timing = TIMING_ZERO,
15391 .block_erasers =
15392 {
15393 /* FIXME: Is this correct?
15394 {
15395 .eraseblocks = { {2 * 1024, 64} },
15396 .block_erase = spi_block_erase_d7,
15397 },*/
15398 {
15399 .eraseblocks = { {32 * 1024, 4} },
15400 .block_erase = spi_block_erase_d8,
15401 }, {
15402 .eraseblocks = { {128 * 1024, 1} },
15403 .block_erase = spi_block_erase_c7,
15404 }
15405 },
15406 .printlock = spi_prettyprint_status_register_bp1_srwd,
15407 .unlock = spi_disable_blockprotect_bp1_srwd,
15408 .write = spi_chip_write_256,
15409 .read = spi_chip_read,
15410 .voltage = {2300, 3600},
15411 },
15412
15413 {
15414 .vendor = "Sanyo",
15415 .name = "LE25FU206",
15416 .bustype = BUS_SPI,
15417 .manufacture_id = SANYO_ID,
15418 .model_id = SANYO_LE25FU206,
15419 .total_size = 256,
15420 .page_size = 256,
15421 .feature_bits = FEATURE_WRSR_WREN,
15422 .tested = TEST_UNTESTED,
15423 .probe = probe_spi_res2,
15424 .probe_timing = TIMING_ZERO,
15425 .block_erasers =
15426 {
15427 {
15428 .eraseblocks = { {4 * 1024, 64} },
15429 .block_erase = spi_block_erase_d7,
15430 }, {
15431 .eraseblocks = { {64 * 1024, 4} },
15432 .block_erase = spi_block_erase_d8,
15433 }, {
15434 .eraseblocks = { {256 * 1024, 1} },
15435 .block_erase = spi_block_erase_c7,
15436 }
15437 },
15438 .printlock = spi_prettyprint_status_register_bp1_srwd,
15439 .unlock = spi_disable_blockprotect_bp1_srwd,
15440 .write = spi_chip_write_256,
15441 .read = spi_chip_read,
15442 .voltage = {2300, 3600},
15443 },
15444
15445 {
15446 .vendor = "Sanyo",
15447 .name = "LE25FU206A",
15448 .bustype = BUS_SPI,
15449 .manufacture_id = SANYO_ID,
15450 .model_id = SANYO_LE25FU206A,
15451 .total_size = 256,
15452 .page_size = 256,
15453 .tested = TEST_UNTESTED,
15454 .probe = probe_spi_rdid,
15455 .probe_timing = TIMING_ZERO,
15456 .block_erasers =
15457 {
15458 {
15459 .eraseblocks = { {4 * 1024, 64} },
15460 .block_erase = spi_block_erase_20,
15461 }, {
15462 .eraseblocks = { {4 * 1024, 64} },
15463 .block_erase = spi_block_erase_d7,
15464 }, {
15465 .eraseblocks = { {64 * 1024, 4} },
15466 .block_erase = spi_block_erase_d8,
15467 }, {
15468 .eraseblocks = { {256 * 1024, 1} },
15469 .block_erase = spi_block_erase_60,
15470 }, {
15471 .eraseblocks = { {256 * 1024, 1} },
15472 .block_erase = spi_block_erase_c7,
15473 }
15474 },
15475 .printlock = spi_prettyprint_status_register_bp2_srwd,
15476 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
15477 .write = spi_chip_write_256,
15478 .read = spi_chip_read,
15479 .voltage = {2300, 3600},
15480 },
15481
15482 {
15483 .vendor = "Sanyo",
15484 .name = "LE25FU406B",
15485 .bustype = BUS_SPI,
15486 .manufacture_id = SANYO_ID,
15487 .model_id = SANYO_LE25FU406B,
15488 .total_size = 512,
15489 .page_size = 256,
15490 .feature_bits = FEATURE_WRSR_WREN,
15491 .tested = TEST_OK_PREW,
15492 .probe = probe_spi_res2,
15493 .probe_timing = TIMING_ZERO,
15494 .block_erasers =
15495 {
15496 {
15497 .eraseblocks = { {4 * 1024, 128} },
15498 .block_erase = spi_block_erase_d7,
15499 }, {
15500 .eraseblocks = { {64 * 1024, 8} },
15501 .block_erase = spi_block_erase_d8,
15502 }, {
15503 .eraseblocks = { {512 * 1024, 1} },
15504 .block_erase = spi_block_erase_c7,
15505 }
15506 },
15507 .printlock = spi_prettyprint_status_register_bp2_srwd,
15508 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
15509 .write = spi_chip_write_256,
15510 .read = spi_chip_read,
15511 .voltage = {2300, 3600},
15512 },
15513
15514 {
15515 .vendor = "Sanyo",
15516 .name = "LE25FU406C/LE25U40CMC",
15517 .bustype = BUS_SPI,
15518 .manufacture_id = SANYO_ID,
15519 .model_id = SANYO_LE25FU406C,
15520 .total_size = 512,
15521 .page_size = 256,
15522 .feature_bits = FEATURE_WRSR_WREN,
15523 .tested = TEST_OK_PREW,
15524 .probe = probe_spi_rdid,
15525 .probe_timing = TIMING_ZERO,
15526 .block_erasers =
15527 {
15528 {
15529 .eraseblocks = { {4 * 1024, 128} },
15530 .block_erase = spi_block_erase_20,
15531 }, {
15532 .eraseblocks = { {4 * 1024, 128} },
15533 .block_erase = spi_block_erase_d7,
15534 }, {
15535 .eraseblocks = { {64 * 1024, 8} },
15536 .block_erase = spi_block_erase_d8,
15537 }, {
15538 .eraseblocks = { {512 * 1024, 1} },
15539 .block_erase = spi_block_erase_60,
15540 }, {
15541 .eraseblocks = { {512 * 1024, 1} },
15542 .block_erase = spi_block_erase_c7,
15543 }
15544 },
15545 .printlock = spi_prettyprint_status_register_bp2_srwd,
15546 .unlock = spi_disable_blockprotect_bp2_srwd,
15547 .write = spi_chip_write_256,
15548 .read = spi_chip_read, /* Fast read (0x0B), dual read (0x3B) and dual I/O (0xBB) supported */
15549 .voltage = {2300, 3600},
15550 },
15551
15552 {
15553 .vendor = "Sanyo",
15554 .name = "LE25FW106",
15555 .bustype = BUS_SPI,
15556 .manufacture_id = SANYO_ID,
15557 .model_id = SANYO_LE25FW106,
15558 .total_size = 128,
15559 .page_size = 256,
15560 .feature_bits = FEATURE_WRSR_WREN,
15561 .tested = TEST_OK_PREW,
15562 .probe = probe_spi_res2,
15563 .probe_timing = TIMING_ZERO,
15564 .block_erasers =
15565 {
15566 {
15567 .eraseblocks = { {2 * 1024, 64} },
15568 .block_erase = spi_block_erase_d7,
15569 }, {
15570 .eraseblocks = { {32 * 1024, 4} },
15571 .block_erase = spi_block_erase_d8,
15572 }, {
15573 .eraseblocks = { {128 * 1024, 1} },
15574 .block_erase = spi_block_erase_c7,
15575 }
15576 },
15577 .printlock = spi_prettyprint_status_register_bp1_srwd, /* FIXME: Add ERSER error flag. */
15578 .unlock = spi_disable_blockprotect_bp1_srwd,
15579 .write = spi_chip_write_256,
15580 .read = spi_chip_read,
15581 .voltage = {2700, 3600},
15582 },
15583
15584 {
15585 .vendor = "Sanyo",
15586 .name = "LE25FW203A",
15587 .bustype = BUS_SPI,
15588 .manufacture_id = SANYO_ID,
15589 .model_id = SANYO_LE25FW203A,
15590 .total_size = 256,
15591 .page_size = 256,
15592 .tested = TEST_UNTESTED,
15593 .probe = probe_spi_rdid,
15594 .probe_timing = TIMING_ZERO,
15595 .block_erasers =
15596 {
15597 {
15598 .eraseblocks = { {256, 1024} },
15599 .block_erase = spi_block_erase_db,
15600 }, {
15601 .eraseblocks = { {64 * 1024, 4} },
15602 .block_erase = spi_block_erase_d8,
15603 }, {
15604 .eraseblocks = { {256 * 1024, 1} },
15605 .block_erase = spi_block_erase_c7,
15606 }
15607 },
15608 .printlock = spi_prettyprint_status_register_default_welwip,
15609 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
15610 .write = spi_chip_write_256,
15611 .read = spi_chip_read,
15612 .voltage = {2700, 3600},
15613 },
15614
15615 {
15616 .vendor = "Sanyo",
15617 .name = "LE25FW403A",
15618 .bustype = BUS_SPI,
15619 .manufacture_id = SANYO_ID,
15620 .model_id = SANYO_LE25FW403A,
15621 .total_size = 512,
15622 .page_size = 256,
15623 .tested = TEST_UNTESTED,
15624 .probe = probe_spi_rdid,
15625 .probe_timing = TIMING_ZERO,
15626 .block_erasers =
15627 {
15628 {
15629 .eraseblocks = { {256, 2 * 1024} },
15630 .block_erase = spi_block_erase_db,
15631 }, {
15632 .eraseblocks = { {64 * 1024, 8} },
15633 .block_erase = spi_block_erase_d8,
15634 }, {
15635 .eraseblocks = { {512 * 1024, 1} },
15636 .block_erase = spi_block_erase_c7,
15637 }
15638 },
15639 .printlock = spi_prettyprint_status_register_default_welwip,
15640 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
15641 .write = spi_chip_write_256,
15642 .read = spi_chip_read,
15643 .voltage = {2700, 3600},
15644 },
15645
15646 {
15647 .vendor = "Sanyo",
15648 .name = "LE25FW406A",
15649 .bustype = BUS_SPI,
15650 .manufacture_id = SANYO_ID,
15651 .model_id = SANYO_LE25FW406A,
15652 .total_size = 512,
15653 .page_size = 256,
15654 .feature_bits = FEATURE_WRSR_WREN,
15655 .tested = TEST_OK_PREW,
15656 .probe = probe_spi_res2,
15657 .probe_timing = TIMING_ZERO,
15658 .block_erasers =
15659 {
15660 {
15661 .eraseblocks = { {4 * 1024, 128} },
15662 .block_erase = spi_block_erase_d7,
15663 }, {
15664 .eraseblocks = { {64 * 1024, 8} },
15665 .block_erase = spi_block_erase_d8,
15666 }, {
15667 .eraseblocks = { {512 * 1024, 1} },
15668 .block_erase = spi_block_erase_c7,
15669 }
15670 },
15671 .printlock = spi_prettyprint_status_register_plain,
15672 .unlock = spi_disable_blockprotect,
15673 .write = spi_chip_write_256,
15674 .read = spi_chip_read,
15675 .voltage = {2700, 3600},
15676 },
15677
15678 {
15679 .vendor = "Sanyo",
15680 .name = "LE25FW418A",
15681 .bustype = BUS_SPI,
15682 .manufacture_id = SANYO_ID,
15683 .model_id = SANYO_LE25FW418A,
15684 .total_size = 512,
15685 .page_size = 256,
15686 .feature_bits = FEATURE_WRSR_WREN,
15687 .tested = TEST_UNTESTED,
15688 .probe = probe_spi_res2,
15689 .probe_timing = TIMING_ZERO,
15690 .block_erasers =
15691 {
15692 {
15693 .eraseblocks = { {4 * 1024, 128} },
15694 .block_erase = spi_block_erase_d7,
15695 }, {
15696 .eraseblocks = { {64 * 1024, 8} },
15697 .block_erase = spi_block_erase_d8,
15698 }, {
15699 .eraseblocks = { {512 * 1024, 1} },
15700 .block_erase = spi_block_erase_c7,
15701 }
15702 },
15703 .printlock = spi_prettyprint_status_register_bp2_srwd,
15704 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
15705 .write = spi_chip_write_256,
15706 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
15707 .voltage = {2700, 3600},
15708 },
15709
15710 {
15711 .vendor = "Sanyo",
15712 .name = "LE25FW806",
15713 .bustype = BUS_SPI,
15714 .manufacture_id = SANYO_ID,
15715 .model_id = SANYO_LE25FW806,
15716 .total_size = 1024,
15717 .page_size = 256,
15718 .feature_bits = FEATURE_WRSR_WREN,
15719 .tested = TEST_UNTESTED,
15720 .probe = probe_spi_res2,
15721 .probe_timing = TIMING_ZERO,
15722 .block_erasers =
15723 {
15724 {
15725 .eraseblocks = { {4 * 1024, 256} },
15726 .block_erase = spi_block_erase_20,
15727 }, {
15728 .eraseblocks = { {4 * 1024, 256} },
15729 .block_erase = spi_block_erase_d7,
15730 }, {
15731 .eraseblocks = { {64 * 1024, 16} },
15732 .block_erase = spi_block_erase_d8,
15733 }, {
15734 .eraseblocks = { {1024 * 1024, 1} },
15735 .block_erase = spi_block_erase_c7,
15736 }
15737 },
15738 .printlock = spi_prettyprint_status_register_bp2_srwd,
15739 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
15740 .write = spi_chip_write_256,
15741 .read = spi_chip_read,
15742 .voltage = {2700, 3600},
15743 },
15744
15745 {
15746 .vendor = "Sanyo",
15747 .name = "LE25FW808",
15748 .bustype = BUS_SPI,
15749 .manufacture_id = SANYO_ID,
15750 .model_id = SANYO_LE25FW808,
15751 .total_size = 1024,
15752 .page_size = 256,
15753 .feature_bits = FEATURE_WRSR_WREN,
15754 .tested = TEST_UNTESTED,
15755 .probe = probe_spi_res2,
15756 .probe_timing = TIMING_ZERO,
15757 .block_erasers =
15758 {
15759 {
15760 .eraseblocks = { {8 * 1024, 128} },
15761 .block_erase = spi_block_erase_d7,
15762 }, {
15763 .eraseblocks = { {64 * 1024, 16} },
15764 .block_erase = spi_block_erase_d8,
15765 }, {
15766 .eraseblocks = { {1024 * 1024, 1} },
15767 .block_erase = spi_block_erase_c7,
15768 }
15769 },
15770 .printlock = spi_prettyprint_status_register_bp2_srwd,
15771 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
15772 .write = spi_chip_write_256,
15773 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
15774 .voltage = {2700, 3600},
15775 },
15776
15777 {
15778 .vendor = "Sharp",
15779 .name = "LH28F008BJT-BTLZ1",
15780 .bustype = BUS_PARALLEL,
15781 .manufacture_id = SHARP_ID,
15782 .model_id = SHARP_LH28F008BJ__PB,
15783 .total_size = 1024,
15784 .page_size = 64 * 1024,
15785 .tested = TEST_OK_PREW,
15786 .probe = probe_82802ab,
15787 .probe_timing = TIMING_ZERO,
15788 .block_erasers =
15789 {
15790 {
15791 .eraseblocks = {
15792 {8 * 1024, 8},
15793 {64 * 1024, 15}
15794 },
15795 .block_erase = erase_block_82802ab,
15796 }, {
15797 .eraseblocks = { {1024 * 1024, 1} },
15798 .block_erase = erase_sector_49lfxxxc,
15799 }
15800 },
15801 .unlock = unlock_lh28f008bjt,
15802 .write = write_82802ab,
15803 .read = read_memmapped,
15804 .voltage = {2700, 3600},
15805 },
15806
15807 {
15808 .vendor = "Sharp",
15809 .name = "LHF00L04",
15810 .bustype = BUS_FWH, /* A/A Mux */
15811 .manufacture_id = SHARP_ID,
15812 .model_id = SHARP_LHF00L04,
15813 .total_size = 1024,
15814 .page_size = 64 * 1024,
15815 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
15816 .tested = TEST_UNTESTED,
15817 .probe = probe_82802ab,
15818 .probe_timing = TIMING_ZERO,
15819 .block_erasers =
15820 {
15821 {
15822 .eraseblocks = {
15823 {64 * 1024, 15},
15824 {8 * 1024, 8}
15825 },
15826 .block_erase = erase_block_82802ab,
15827 }, {
15828 .eraseblocks = {
15829 {1024 * 1024, 1}
15830 },
15831 .block_erase = NULL, /* 30 D0, only in A/A mux mode */
15832 },
15833 },
15834 .unlock = unlock_regspace2_uniform_64k,
15835 .write = write_82802ab,
15836 .read = read_memmapped,
15837 .voltage = {3000, 3600},
15838 },
15839
15840 {
15841 .vendor = "Spansion",
15842 .name = "S25FL004A",
15843 .bustype = BUS_SPI,
15844 .manufacture_id = SPANSION_ID,
15845 .model_id = SPANSION_S25FL004A,
15846 .total_size = 512,
15847 .page_size = 256,
15848 .feature_bits = FEATURE_WRSR_WREN,
15849 .tested = TEST_UNTESTED,
15850 .probe = probe_spi_rdid,
15851 .probe_timing = TIMING_ZERO,
15852 .block_erasers =
15853 {
15854 {
15855 .eraseblocks = { {64 * 1024, 8} },
15856 .block_erase = spi_block_erase_d8,
15857 }, {
15858 .eraseblocks = { {512 * 1024, 1} },
15859 .block_erase = spi_block_erase_c7,
15860 }
15861 },
15862 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15863 .unlock = spi_disable_blockprotect,
15864 .write = spi_chip_write_256,
15865 .read = spi_chip_read,
15866 .voltage = {2700, 3600},
15867 },
15868
15869 {
15870 .vendor = "Spansion",
15871 .name = "S25FL008A",
15872 .bustype = BUS_SPI,
15873 .manufacture_id = SPANSION_ID,
15874 .model_id = SPANSION_S25FL008A,
15875 .total_size = 1024,
15876 .page_size = 256,
15877 .feature_bits = FEATURE_WRSR_WREN,
15878 .tested = TEST_OK_PRE,
15879 .probe = probe_spi_rdid,
15880 .probe_timing = TIMING_ZERO,
15881 .block_erasers =
15882 {
15883 {
15884 .eraseblocks = { {64 * 1024, 16} },
15885 .block_erase = spi_block_erase_d8,
15886 }, {
15887 .eraseblocks = { {1024 * 1024, 1} },
15888 .block_erase = spi_block_erase_c7,
15889 }
15890 },
15891 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15892 .unlock = spi_disable_blockprotect,
15893 .write = spi_chip_write_256,
15894 .read = spi_chip_read,
15895 .voltage = {2700, 3600},
15896 },
15897
15898 {
15899 .vendor = "Spansion",
15900 .name = "S25FL016A",
15901 .bustype = BUS_SPI,
15902 .manufacture_id = SPANSION_ID,
15903 .model_id = SPANSION_S25FL016A,
15904 .total_size = 2048,
15905 .page_size = 256,
15906 .feature_bits = FEATURE_WRSR_WREN,
15907 .tested = TEST_OK_PREW,
15908 .probe = probe_spi_rdid,
15909 .probe_timing = TIMING_ZERO,
15910 .block_erasers =
15911 {
15912 {
15913 .eraseblocks = { {64 * 1024, 32} },
15914 .block_erase = spi_block_erase_d8,
15915 }, {
15916 .eraseblocks = { {2 * 1024 * 1024, 1} },
15917 .block_erase = spi_block_erase_c7,
15918 }
15919 },
15920 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15921 .unlock = spi_disable_blockprotect,
15922 .write = spi_chip_write_256,
15923 .read = spi_chip_read,
15924 .voltage = {2700, 3600},
15925 },
15926
15927 {
15928 .vendor = "Spansion",
15929 .name = "S25FL032A/P",
15930 .bustype = BUS_SPI,
15931 .manufacture_id = SPANSION_ID,
15932 .model_id = SPANSION_S25FL032A,
15933 .total_size = 4096,
15934 .page_size = 256,
15935 .feature_bits = FEATURE_WRSR_WREN,
15936 .tested = TEST_OK_PREW,
15937 .probe = probe_spi_rdid,
15938 .probe_timing = TIMING_ZERO,
15939 .block_erasers =
15940 {
15941 {
15942 .eraseblocks = { {64 * 1024, 64} },
15943 .block_erase = spi_block_erase_d8,
15944 }, {
15945 .eraseblocks = { {4 * 1024 * 1024, 1} },
15946 .block_erase = spi_block_erase_c7,
15947 }
15948 },
15949 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15950 .unlock = spi_disable_blockprotect,
15951 .write = spi_chip_write_256,
15952 .read = spi_chip_read,
15953 .voltage = {2700, 3600},
15954 },
15955
15956 {
15957 .vendor = "Spansion",
15958 .name = "S25FL064A/P",
15959 .bustype = BUS_SPI,
15960 .manufacture_id = SPANSION_ID,
15961 .model_id = SPANSION_S25FL064A,
15962 .total_size = 8192,
15963 .page_size = 256,
15964 .feature_bits = FEATURE_WRSR_WREN,
15965 .tested = TEST_OK_PREW,
15966 .probe = probe_spi_rdid,
15967 .probe_timing = TIMING_ZERO,
15968 .block_erasers =
15969 {
15970 {
15971 .eraseblocks = { {64 * 1024, 128} },
15972 .block_erase = spi_block_erase_d8,
15973 }, {
15974 .eraseblocks = { {8 * 1024 * 1024, 1} },
15975 .block_erase = spi_block_erase_c7,
15976 }
15977 },
15978 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15979 .unlock = spi_disable_blockprotect,
15980 .write = spi_chip_write_256,
15981 .read = spi_chip_read,
15982 .voltage = {2700, 3600},
15983 },
15984
15985 {
15986 .vendor = "Spansion",
15987 .name = "S25FL116K/S25FL216K", /* FIXME: separate them */
15988 .bustype = BUS_SPI,
15989 .manufacture_id = SPANSION_ID,
15990 .model_id = SPANSION_S25FL216,
15991 .total_size = 2048,
15992 .page_size = 256,
15993 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (S25FL116K only) */
15994 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
15995 .tested = TEST_UNTESTED,
15996 .probe = probe_spi_rdid,
15997 .probe_timing = TIMING_ZERO,
15998 .block_erasers =
15999 {
16000 {
16001 .eraseblocks = { {4 * 1024, 512} },
16002 .block_erase = spi_block_erase_20,
16003 }, {
16004 .eraseblocks = { {64 * 1024, 32} },
16005 .block_erase = spi_block_erase_d8,
16006 }, {
16007 .eraseblocks = { { 2048 * 1024, 1} },
16008 .block_erase = spi_block_erase_60,
16009 }, {
16010 .eraseblocks = { { 2048 * 1024, 1} },
16011 .block_erase = spi_block_erase_c7,
16012 }
16013 },
16014 .printlock = spi_prettyprint_status_register_bp3_srwd,
16015 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
16016 .write = spi_chip_write_256,
16017 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
16018 .voltage = {2700, 3600},
16019 },
16020
16021 {
16022 .vendor = "Spansion",
16023 .name = "S25FL127S-256kB", /* uniform 256kB sectors */
16024 .bustype = BUS_SPI,
16025 .manufacture_id = SPANSION_ID,
16026 .model_id = SPANSION_S25FL128,
16027 .total_size = 16384,
16028 .page_size = 512,
16029 /* supports 4B addressing */
16030 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
16031 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16032 .tested = TEST_UNTESTED,
16033 .probe = probe_spi_rdid,
16034 .probe_timing = TIMING_ZERO,
16035 .block_erasers =
16036 {
16037 {
16038 .eraseblocks = { {256 * 1024, 64} },
16039 .block_erase = spi_block_erase_d8,
16040 }, {
16041 .eraseblocks = { { 16384 * 1024, 1} },
16042 .block_erase = spi_block_erase_60,
16043 }, {
16044 .eraseblocks = { { 16384 * 1024, 1} },
16045 .block_erase = spi_block_erase_c7,
16046 }
16047 },
16048 .printlock = spi_prettyprint_status_register_bp2_srwd,
16049 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
16050 .write = spi_chip_write_256, /* Multi I/O supported */
16051 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16052 .voltage = {2700, 3600},
16053 },
16054
16055 {
16056 .vendor = "Spansion",
16057 .name = "S25FL127S-64kB", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
16058 .bustype = BUS_SPI,
16059 .manufacture_id = SPANSION_ID,
16060 .model_id = SPANSION_S25FL128,
16061 .total_size = 16384,
16062 .page_size = 256,
16063 /* supports 4B addressing */
16064 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
16065 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16066 .tested = TEST_OK_PREW,
16067 /* FIXME: we should distinguish the configuration on probing time like we do for AT45DB chips */
16068 .probe = probe_spi_rdid,
16069 .probe_timing = TIMING_ZERO,
16070 .block_erasers =
16071 {
16072 {
16073 /* This chip supports erasing of 32 so-called "parameter sectors" with
16074 * opcode 0x20 which may be configured to be on top or bottom of the address
16075 * space. Trying to access an address outside these 4kB blocks does have no
16076 * effect on the memory contents, e.g.
16077 .eraseblocks = {
16078 {4 * 1024, 32},
16079 {64 * 1024, 254} // inaccessible
16080 },
16081 .block_erase = spi_block_erase_20,
16082 }, { */
16083 .eraseblocks = { { 64 * 1024, 256} },
16084 .block_erase = spi_block_erase_d8,
16085 }, {
16086 .eraseblocks = { { 16384 * 1024, 1} },
16087 .block_erase = spi_block_erase_60,
16088 }, {
16089 .eraseblocks = { { 16384 * 1024, 1} },
16090 .block_erase = spi_block_erase_c7,
16091 }
16092 },
16093 .printlock = spi_prettyprint_status_register_bp2_srwd,
16094 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
16095 .write = spi_chip_write_256, /* Multi I/O supported */
16096 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16097 .voltage = {2700, 3600},
16098 },
16099
16100 {
16101 .vendor = "Spansion",
16102 .name = "S25FL128P......0", /* uniform 64 kB sectors */
16103 .bustype = BUS_SPI,
16104 .manufacture_id = SPANSION_ID,
16105 .model_id = SPANSION_S25FL128,
16106 .total_size = 16384,
16107 .page_size = 256,
16108 .feature_bits = FEATURE_WRSR_WREN,
16109 .tested = TEST_OK_PREW,
16110 .probe = probe_spi_rdid,
16111 .probe_timing = TIMING_ZERO,
16112 .block_erasers =
16113 {
16114 {
16115 .eraseblocks = { {64 * 1024, 256} },
16116 .block_erase = spi_block_erase_20,
16117 }, {
16118 .eraseblocks = { {64 * 1024, 256} },
16119 .block_erase = spi_block_erase_d8,
16120 }, {
16121 .eraseblocks = { { 16384 * 1024, 1} },
16122 .block_erase = spi_block_erase_60,
16123 }, {
16124 .eraseblocks = { { 16384 * 1024, 1} },
16125 .block_erase = spi_block_erase_c7,
16126 }
16127 },
16128 .printlock = spi_prettyprint_status_register_bp3_srwd,
16129 .unlock = spi_disable_blockprotect_bp3_srwd,
16130 .write = spi_chip_write_256,
16131 .read = spi_chip_read, /* Fast read (0x0B) supported */
16132 .voltage = {2700, 3600},
16133 },
16134
16135 {
16136 .vendor = "Spansion",
16137 .name = "S25FL128P......1", /* uniform 256kB sectors */
16138 .bustype = BUS_SPI,
16139 .manufacture_id = SPANSION_ID,
16140 .model_id = SPANSION_S25FL128,
16141 .total_size = 16384,
16142 .page_size = 256,
16143 .feature_bits = FEATURE_WRSR_WREN,
16144 .tested = TEST_UNTESTED,
16145 .probe = probe_spi_rdid,
16146 .probe_timing = TIMING_ZERO,
16147 .block_erasers =
16148 {
16149 {
16150 .eraseblocks = { {256 * 1024, 64} },
16151 .block_erase = spi_block_erase_d8,
16152 }, {
16153 .eraseblocks = { { 16384 * 1024, 1} },
16154 .block_erase = spi_block_erase_c7,
16155 }
16156 },
16157 .printlock = spi_prettyprint_status_register_bp2_srwd,
16158 .unlock = spi_disable_blockprotect_bp2_srwd,
16159 .write = spi_chip_write_256,
16160 .read = spi_chip_read, /* Fast read (0x0B) supported */
16161 .voltage = {2700, 3600},
16162 },
16163
16164 {
16165 .vendor = "Spansion",
16166 .name = "S25FL128S......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
16167 .bustype = BUS_SPI,
16168 .manufacture_id = SPANSION_ID,
16169 .model_id = SPANSION_S25FL128,
16170 .total_size = 16384,
16171 .page_size = 256,
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_OK_PREW,
16176 .probe = probe_spi_rdid,
16177 .probe_timing = TIMING_ZERO,
16178 .block_erasers =
16179 {
16180 {
16181 /* This chip supports erasing of the 32 so-called "parameter sectors" with
16182 * opcode 0x20. Trying to access an address outside these 4kB blocks does
16183 * have no effect on the memory contents, but sets a flag in the SR.
16184 .eraseblocks = {
16185 {4 * 1024, 32},
16186 {64 * 1024, 254} // inaccessible
16187 },
16188 .block_erase = spi_block_erase_20,
16189 }, { */
16190 .eraseblocks = { { 64 * 1024, 256} },
16191 .block_erase = spi_block_erase_d8,
16192 }, {
16193 .eraseblocks = { { 16384 * 1024, 1} },
16194 .block_erase = spi_block_erase_60,
16195 }, {
16196 .eraseblocks = { { 16384 * 1024, 1} },
16197 .block_erase = spi_block_erase_c7,
16198 }
16199 },
16200 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
16201 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
16202 .write = spi_chip_write_256, /* Multi I/O supported */
16203 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16204 .voltage = {2700, 3600},
16205 },
16206
16207 {
16208 .vendor = "Spansion",
16209 .name = "S25FL128S......1", /* uniform 256 kB sectors */
16210 .bustype = BUS_SPI,
16211 .manufacture_id = SPANSION_ID,
16212 .model_id = SPANSION_S25FL128,
16213 .total_size = 16384,
16214 .page_size = 512,
16215 /* supports 4B addressing */
16216 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
16217 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16218 .tested = TEST_UNTESTED,
16219 .probe = probe_spi_rdid,
16220 .probe_timing = TIMING_ZERO,
16221 .block_erasers =
16222 {
16223 {
16224 .eraseblocks = { {256 * 1024, 64} },
16225 .block_erase = spi_block_erase_d8,
16226 }, {
16227 .eraseblocks = { { 16384 * 1024, 1} },
16228 .block_erase = spi_block_erase_60,
16229 }, {
16230 .eraseblocks = { { 16384 * 1024, 1} },
16231 .block_erase = spi_block_erase_c7,
16232 }
16233 },
16234 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
16235 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
16236 .write = spi_chip_write_256, /* Multi I/O supported */
16237 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16238 .voltage = {2700, 3600},
16239 },
16240
16241 {
16242 .vendor = "Spansion",
16243 .name = "S25FL129P......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
16244 .bustype = BUS_SPI,
16245 .manufacture_id = SPANSION_ID,
16246 .model_id = SPANSION_S25FL128,
16247 .total_size = 16384,
16248 .page_size = 256,
16249 /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */
16250 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16251 .tested = TEST_OK_PREW,
16252 .probe = probe_spi_rdid,
16253 .probe_timing = TIMING_ZERO,
16254 .block_erasers =
16255 {
16256 {
16257 /* FIXME: This chip supports erasing of the 32 so-called "parameter sectors" with
16258 * opcode 0x20. Trying to access an address outside these 4kB blocks does have no
16259 * effect on the memory contents, but sets a flag in the SR.
16260 .eraseblocks = {
16261 {4 * 1024, 32},
16262 {64 * 1024, 254} // inaccessible
16263 },
16264 .block_erase = spi_block_erase_20,
16265 }, { */
16266 /* FIXME: Additionally it also supports erase opcode 40h for the respective 2*4 kB pairs
16267 .eraseblocks = {
16268 {8 * 1024, 16},
16269 {64 * 1024, 254} // inaccessible
16270 },
16271 .block_erase = spi_block_erase_40,
16272 }, { */
16273 .eraseblocks = { { 64 * 1024, 256} },
16274 .block_erase = spi_block_erase_d8,
16275 }, {
16276 .eraseblocks = { { 16384 * 1024, 1} },
16277 .block_erase = spi_block_erase_60,
16278 }, {
16279 .eraseblocks = { { 16384 * 1024, 1} },
16280 .block_erase = spi_block_erase_c7,
16281 }
16282 },
16283 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */
16284 .unlock = spi_disable_blockprotect_bp2_srwd,
16285 .write = spi_chip_write_256, /* Multi I/O supported */
16286 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16287 .voltage = {2700, 3600},
16288 },
16289
16290 {
16291 .vendor = "Spansion",
16292 .name = "S25FL129P......1", /* uniform 256 kB sectors */
16293 .bustype = BUS_SPI,
16294 .manufacture_id = SPANSION_ID,
16295 .model_id = SPANSION_S25FL128,
16296 .total_size = 16384,
16297 .page_size = 256,
16298 /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */
16299 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16300 .tested = TEST_UNTESTED,
16301 .probe = probe_spi_rdid,
16302 .probe_timing = TIMING_ZERO,
16303 .block_erasers =
16304 {
16305 {
16306 .eraseblocks = { {256 * 1024, 64} },
16307 .block_erase = spi_block_erase_d8,
16308 }, {
16309 .eraseblocks = { { 16384 * 1024, 1} },
16310 .block_erase = spi_block_erase_60,
16311 }, {
16312 .eraseblocks = { { 16384 * 1024, 1} },
16313 .block_erase = spi_block_erase_c7,
16314 }
16315 },
16316 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */
16317 .unlock = spi_disable_blockprotect_bp2_srwd,
16318 .write = spi_chip_write_256, /* Multi I/O supported */
16319 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16320 .voltage = {2700, 3600},
16321 },
16322
16323 {
16324 .vendor = "Spansion",
16325 .name = "S25FL132K",
16326 .bustype = BUS_SPI,
16327 .manufacture_id = SPANSION_ID,
16328 .model_id = SPANSION_S25FL132K,
16329 .total_size = 4096,
16330 .page_size = 256,
16331 /* OTP: 768B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
16332 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16333 .tested = TEST_UNTESTED,
16334 .probe = probe_spi_rdid,
16335 .probe_timing = TIMING_ZERO,
16336 .block_erasers =
16337 {
16338 {
16339 .eraseblocks = { {4 * 1024, 1024} },
16340 .block_erase = spi_block_erase_20,
16341 }, {
16342 .eraseblocks = { {64 * 1024, 64} },
16343 .block_erase = spi_block_erase_d8,
16344 }, {
16345 .eraseblocks = { { 4096 * 1024, 1} },
16346 .block_erase = spi_block_erase_60,
16347 }, {
16348 .eraseblocks = { { 4096 * 1024, 1} },
16349 .block_erase = spi_block_erase_c7,
16350 }
16351 },
16352 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
16353 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
16354 .write = spi_chip_write_256,
16355 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16356 .voltage = {2700, 3600},
16357 },
16358
16359 {
16360 .vendor = "Spansion",
16361 .name = "S25FL164K",
16362 .bustype = BUS_SPI,
16363 .manufacture_id = SPANSION_ID,
16364 .model_id = SPANSION_S25FL164K,
16365 .total_size = 8192,
16366 .page_size = 256,
16367 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
16368 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16369 .tested = TEST_OK_PREW,
16370 .probe = probe_spi_rdid,
16371 .probe_timing = TIMING_ZERO,
16372 .block_erasers =
16373 {
16374 {
16375 .eraseblocks = { {4 * 1024, 2048} },
16376 .block_erase = spi_block_erase_20,
16377 }, {
16378 .eraseblocks = { {64 * 1024, 128} },
16379 .block_erase = spi_block_erase_d8,
16380 }, {
16381 .eraseblocks = { { 8192 * 1024, 1} },
16382 .block_erase = spi_block_erase_60,
16383 }, {
16384 .eraseblocks = { { 8192 * 1024, 1} },
16385 .block_erase = spi_block_erase_c7,
16386 }
16387 },
16388 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
16389 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
16390 .write = spi_chip_write_256,
16391 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16392 .voltage = {2700, 3600},
16393 },
16394
16395 {
16396 .vendor = "Spansion",
16397 .name = "S25FL204K",
16398 .bustype = BUS_SPI,
16399 .manufacture_id = SPANSION_ID,
16400 .model_id = SPANSION_S25FL204,
16401 .total_size = 512,
16402 .page_size = 256,
16403 .feature_bits = FEATURE_WRSR_WREN,
16404 .tested = TEST_OK_PR,
16405 .probe = probe_spi_rdid,
16406 .probe_timing = TIMING_ZERO,
16407 .block_erasers =
16408 {
16409 {
16410 .eraseblocks = { {4 * 1024, 128} },
16411 .block_erase = spi_block_erase_20,
16412 }, {
16413 .eraseblocks = { {64 * 1024, 8} },
16414 .block_erase = spi_block_erase_d8,
16415 }, {
16416 .eraseblocks = { { 512 * 1024, 1} },
16417 .block_erase = spi_block_erase_60,
16418 }, {
16419 .eraseblocks = { { 512 * 1024, 1} },
16420 .block_erase = spi_block_erase_c7,
16421 }
16422 },
16423 .printlock = spi_prettyprint_status_register_bp3_srwd,
16424 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
16425 .write = spi_chip_write_256,
16426 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
16427 .voltage = {2700, 3600},
16428 },
16429
16430 {
16431 .vendor = "Spansion",
16432 .name = "S25FL208K",
16433 .bustype = BUS_SPI,
16434 .manufacture_id = SPANSION_ID,
16435 .model_id = SPANSION_S25FL208,
16436 .total_size = 1024,
16437 .page_size = 256,
16438 .feature_bits = FEATURE_WRSR_WREN,
16439 .tested = TEST_OK_PREW,
16440 .probe = probe_spi_rdid,
16441 .probe_timing = TIMING_ZERO,
16442 .block_erasers =
16443 {
16444 {
16445 .eraseblocks = { {4 * 1024, 256} },
16446 .block_erase = spi_block_erase_20,
16447 }, {
16448 .eraseblocks = { {64 * 1024, 16} },
16449 .block_erase = spi_block_erase_d8,
16450 }, {
16451 .eraseblocks = { { 1024 * 1024, 1} },
16452 .block_erase = spi_block_erase_60,
16453 }, {
16454 .eraseblocks = { { 1024 * 1024, 1} },
16455 .block_erase = spi_block_erase_c7,
16456 }
16457 },
16458 .printlock = spi_prettyprint_status_register_bp3_srwd,
16459 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
16460 .write = spi_chip_write_256,
16461 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
16462 .voltage = {2700, 3600},
16463 },
16464
16465 {
16466 .vendor = "Spansion",
16467 .name = "S25FL256S......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
16468 .bustype = BUS_SPI,
16469 .manufacture_id = SPANSION_ID,
16470 .model_id = SPANSION_S25FL256,
16471 .total_size = 32768,
16472 .page_size = 256,
16473 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
16474 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_EAR7,
16475 .tested = TEST_OK_PREW,
16476 .probe = probe_spi_rdid,
16477 .probe_timing = TIMING_ZERO,
16478 .block_erasers =
16479 {
16480 {
16481 /* This chip supports erasing of the 32 so-called "parameter sectors" with
16482 * opcode 0x20. Trying to access an address outside these 4kB blocks does
16483 * have no effect on the memory contents, but sets a flag in the SR.
16484 .eraseblocks = {
16485 {4 * 1024, 32},
16486 {64 * 1024, 254} // inaccessible
16487 },
16488 .block_erase = spi_block_erase_20,
16489 }, { */
16490 .eraseblocks = { { 64 * 1024, 512} },
16491 .block_erase = spi_block_erase_dc,
16492 }, {
16493 .eraseblocks = { { 64 * 1024, 512} },
16494 .block_erase = spi_block_erase_d8,
16495 }, {
16496 .eraseblocks = { { 32768 * 1024, 1} },
16497 .block_erase = spi_block_erase_60,
16498 }, {
16499 .eraseblocks = { { 32768 * 1024, 1} },
16500 .block_erase = spi_block_erase_c7,
16501 }
16502 },
16503 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
16504 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
16505 .write = spi_chip_write_256, /* Multi I/O supported */
16506 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16507 .voltage = {2700, 3600},
16508 .wrea_override = 0x17,
16509 },
16510
16511 {
Bernhard Urban-Forster05c629b2020-02-02 21:29:48 +010016512 .vendor = "Spansion",
16513 .name = "S25FL512S",
16514 .bustype = BUS_SPI,
16515 .manufacture_id = SPANSION_ID,
16516 .model_id = SPANSION_S25FL512,
16517 .total_size = 65536, /* 512 Mb (=> 64 MB)) */
16518 .page_size = 256,
16519 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
16520 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_NATIVE,
16521 .tested = TEST_OK_PREW,
16522 .probe = probe_spi_rdid,
16523 .probe_timing = TIMING_ZERO,
16524 .block_erasers =
16525 {
16526 {
16527 .eraseblocks = { { 256 * 1024, 256} },
16528 .block_erase = spi_block_erase_dc,
16529 }, {
16530 .eraseblocks = { { 65536 * 1024, 1} },
16531 .block_erase = spi_block_erase_60,
16532 }, {
16533 .eraseblocks = { { 65536 * 1024, 1} },
16534 .block_erase = spi_block_erase_c7,
16535 }
16536 },
16537 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
16538 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
16539 .write = spi_chip_write_256, /* Multi I/O supported, IGNORE for now */
16540 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16541 .voltage = {2700, 3600},
16542 },
16543
16544 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000016545 .vendor = "SyncMOS/MoselVitelic",
16546 .name = "{F,S,V}29C51001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016547 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016548 .manufacture_id = SYNCMOS_MVC_ID,
16549 .model_id = SM_MVC_29C51001B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016550 .total_size = 128,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016551 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000016552 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016553 .tested = TEST_UNTESTED,
16554 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000016555 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000016556 .block_erasers =
16557 {
16558 {
16559 .eraseblocks = { {512, 256} },
16560 .block_erase = erase_sector_jedec,
16561 }, {
16562 .eraseblocks = { {128 * 1024, 1} },
16563 .block_erase = erase_chip_block_jedec,
16564 },
16565 },
Sean Nelson35727f72010-01-28 23:55:12 +000016566 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016567 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016568 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000016569 },
16570
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016571 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000016572 .vendor = "SyncMOS/MoselVitelic",
16573 .name = "{F,S,V}29C51001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016574 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016575 .manufacture_id = SYNCMOS_MVC_ID,
16576 .model_id = SM_MVC_29C51001T,
16577 .total_size = 128,
16578 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000016579 .feature_bits = FEATURE_EITHER_RESET,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016580 .tested = TEST_UNTESTED,
16581 .probe = probe_jedec,
16582 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
16583 .block_erasers =
16584 {
16585 {
16586 .eraseblocks = { {512, 256} },
16587 .block_erase = erase_sector_jedec,
16588 }, {
16589 .eraseblocks = { {128 * 1024, 1} },
16590 .block_erase = erase_chip_block_jedec,
16591 },
16592 },
16593 .write = write_jedec_1,
16594 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016595 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000016596 },
16597
16598 {
16599 .vendor = "SyncMOS/MoselVitelic",
16600 .name = "{F,S,V}29C51002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016601 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016602 .manufacture_id = SYNCMOS_MVC_ID,
16603 .model_id = SM_MVC_29C51002B,
16604 .total_size = 256,
16605 .page_size = 512,
16606 .feature_bits = FEATURE_EITHER_RESET,
16607 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016608 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000016609 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000016610 .block_erasers =
16611 {
16612 {
16613 .eraseblocks = { {512, 512} },
16614 .block_erase = erase_sector_jedec,
16615 }, {
16616 .eraseblocks = { {256 * 1024, 1} },
16617 .block_erase = erase_chip_block_jedec,
16618 },
16619 },
Sean Nelson35727f72010-01-28 23:55:12 +000016620 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016621 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000016622 },
16623
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016624 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000016625 .vendor = "SyncMOS/MoselVitelic",
16626 .name = "{F,S,V}29C51002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016627 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016628 .manufacture_id = SYNCMOS_MVC_ID,
16629 .model_id = SM_MVC_29C51002T,
16630 .total_size = 256,
16631 .page_size = 512,
16632 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000016633 .tested = TEST_OK_PREW,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016634 .probe = probe_jedec,
16635 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
16636 .block_erasers =
16637 {
16638 {
16639 .eraseblocks = { {512, 512} },
16640 .block_erase = erase_sector_jedec,
16641 }, {
16642 .eraseblocks = { {256 * 1024, 1} },
16643 .block_erase = erase_chip_block_jedec,
16644 },
16645 },
16646 .write = write_jedec_1,
16647 .read = read_memmapped,
16648 },
16649
16650 {
16651 .vendor = "SyncMOS/MoselVitelic",
16652 .name = "{F,S,V}29C51004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016653 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016654 .manufacture_id = SYNCMOS_MVC_ID,
16655 .model_id = SM_MVC_29C51004B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016656 .total_size = 512,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016657 .page_size = 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000016658 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016659 .tested = TEST_UNTESTED,
16660 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000016661 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +000016662 .block_erasers =
16663 {
16664 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000016665 .eraseblocks = { {1024, 512} },
16666 .block_erase = erase_sector_jedec,
16667 }, {
16668 .eraseblocks = { {512 * 1024, 1} },
16669 .block_erase = erase_chip_block_jedec,
16670 },
16671 },
16672 .write = write_jedec_1,
16673 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016674 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000016675 },
16676
16677 {
16678 .vendor = "SyncMOS/MoselVitelic",
16679 .name = "{F,S,V}29C51004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016680 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016681 .manufacture_id = SYNCMOS_MVC_ID,
16682 .model_id = SM_MVC_29C51004T,
16683 .total_size = 512,
16684 .page_size = 1024,
16685 .feature_bits = FEATURE_EITHER_RESET,
16686 .tested = TEST_UNTESTED,
16687 .probe = probe_jedec,
16688 .probe_timing = TIMING_ZERO,
16689 .block_erasers =
16690 {
16691 {
16692 .eraseblocks = { {1024, 512} },
16693 .block_erase = erase_sector_jedec,
16694 }, {
16695 .eraseblocks = { {512 * 1024, 1} },
16696 .block_erase = erase_chip_block_jedec,
16697 },
16698 },
16699 .write = write_jedec_1,
16700 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016701 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000016702 },
16703
16704 {
16705 .vendor = "SyncMOS/MoselVitelic",
16706 .name = "{S,V}29C31004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016707 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016708 .manufacture_id = SYNCMOS_MVC_ID,
16709 .model_id = SM_MVC_29C31004B,
16710 .total_size = 512,
16711 .page_size = 1024,
16712 .feature_bits = FEATURE_EITHER_RESET,
16713 .tested = TEST_UNTESTED,
16714 .probe = probe_jedec,
16715 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
16716 .block_erasers =
16717 {
16718 {
16719 .eraseblocks = { {1024, 512} },
16720 .block_erase = erase_sector_jedec,
16721 }, {
16722 .eraseblocks = { {512 * 1024, 1} },
16723 .block_erase = erase_chip_block_jedec,
16724 },
16725 },
16726 .write = write_jedec_1,
16727 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016728 .voltage = {3000, 3600},
Mattias Mattsson4c066502010-07-29 20:01:13 +000016729 },
16730
16731 {
16732 .vendor = "SyncMOS/MoselVitelic",
16733 .name = "{S,V}29C31004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016734 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016735 .manufacture_id = SYNCMOS_MVC_ID,
16736 .model_id = SM_MVC_29C31004T,
16737 .total_size = 512,
16738 .page_size = 1024,
16739 .feature_bits = FEATURE_EITHER_RESET,
16740 .tested = TEST_UNTESTED,
16741 .probe = probe_jedec,
16742 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
16743 .block_erasers =
16744 {
16745 {
16746 .eraseblocks = { {1024, 512} },
Sean Nelson56358aa2010-01-19 16:08:51 +000016747 .block_erase = erase_sector_jedec,
16748 }, {
16749 .eraseblocks = { {512 * 1024, 1} },
16750 .block_erase = erase_chip_block_jedec,
16751 },
16752 },
Sean Nelson35727f72010-01-28 23:55:12 +000016753 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016754 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016755 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000016756 },
16757
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016758 {
Uwe Hermanna106d152009-05-27 23:17:40 +000016759 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016760 .name = "TMS29F002RB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016761 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016762 .manufacture_id = TI_OLD_ID,
16763 .model_id = TI_TMS29F002RB,
16764 .total_size = 256,
16765 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000016766 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016767 .tested = TEST_UNTESTED,
16768 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000016769 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000016770 .block_erasers =
16771 {
16772 {
16773 .eraseblocks = {
16774 {16 * 1024, 1},
16775 {8 * 1024, 2},
16776 {32 * 1024, 1},
16777 {64 * 1024, 3},
16778 },
16779 .block_erase = erase_sector_jedec,
16780 }, {
16781 .eraseblocks = { {256 * 1024, 1} },
16782 .block_erase = erase_chip_block_jedec,
16783 },
16784 },
Sean Nelson35727f72010-01-28 23:55:12 +000016785 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016786 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016787 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016788 },
16789
16790 {
Uwe Hermanna106d152009-05-27 23:17:40 +000016791 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016792 .name = "TMS29F002RT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016793 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016794 .manufacture_id = TI_OLD_ID,
16795 .model_id = TI_TMS29F002RT,
16796 .total_size = 256,
16797 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000016798 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016799 .tested = TEST_UNTESTED,
16800 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000016801 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000016802 .block_erasers =
16803 {
16804 {
16805 .eraseblocks = {
16806 {64 * 1024, 3},
16807 {32 * 1024, 1},
16808 {8 * 1024, 2},
16809 {16 * 1024, 1},
16810 },
16811 .block_erase = erase_sector_jedec,
16812 }, {
16813 .eraseblocks = { {256 * 1024, 1} },
16814 .block_erase = erase_chip_block_jedec,
16815 },
16816 },
Sean Nelson35727f72010-01-28 23:55:12 +000016817 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016818 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016819 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016820 },
16821
16822 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016823 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100016824 .name = "W25P16",
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000016825 .bustype = BUS_SPI,
16826 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016827 .model_id = WINBOND_NEX_W25P16,
16828 .total_size = 2048,
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000016829 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016830 .feature_bits = FEATURE_WRSR_WREN,
16831 .tested = TEST_UNTESTED,
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000016832 .probe = probe_spi_rdid,
16833 .probe_timing = TIMING_ZERO,
16834 .block_erasers =
16835 {
16836 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016837 .eraseblocks = { {64 * 1024, 32} },
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000016838 .block_erase = spi_block_erase_d8,
16839 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016840 .eraseblocks = { {2048 * 1024, 1} },
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000016841 .block_erase = spi_block_erase_c7,
16842 }
16843 },
16844 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16845 .unlock = spi_disable_blockprotect,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016846 .write = spi_chip_write_256,
16847 .read = spi_chip_read, /* Fast read (0x0B) supported */
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000016848 .voltage = {2700, 3600},
16849 },
16850
16851 {
16852 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100016853 .name = "W25P32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016854 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000016855 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016856 .model_id = WINBOND_NEX_W25P32,
16857 .total_size = 4096,
Rudolf Marekce1c7982010-04-20 19:34:31 +000016858 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016859 .feature_bits = FEATURE_WRSR_WREN,
16860 .tested = TEST_UNTESTED,
Rudolf Marekce1c7982010-04-20 19:34:31 +000016861 .probe = probe_spi_rdid,
16862 .probe_timing = TIMING_ZERO,
16863 .block_erasers =
16864 {
16865 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016866 .eraseblocks = { {64 * 1024, 64} },
16867 .block_erase = spi_block_erase_d8,
Rudolf Marekce1c7982010-04-20 19:34:31 +000016868 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016869 .eraseblocks = { {4096 * 1024, 1} },
16870 .block_erase = spi_block_erase_c7,
16871 }
16872 },
16873 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16874 .unlock = spi_disable_blockprotect,
16875 .write = spi_chip_write_256,
16876 .read = spi_chip_read, /* Fast read (0x0B) supported */
16877 .voltage = {2700, 3600},
16878 },
16879
16880 {
16881 .vendor = "Winbond",
16882 .name = "W25P80",
16883 .bustype = BUS_SPI,
16884 .manufacture_id = WINBOND_NEX_ID,
16885 .model_id = WINBOND_NEX_W25P80,
16886 .total_size = 1024,
16887 .page_size = 256,
16888 .feature_bits = FEATURE_WRSR_WREN,
16889 .tested = TEST_UNTESTED,
16890 .probe = probe_spi_rdid,
16891 .probe_timing = TIMING_ZERO,
16892 .block_erasers =
16893 {
16894 {
Rudolf Marekce1c7982010-04-20 19:34:31 +000016895 .eraseblocks = { {64 * 1024, 16} },
16896 .block_erase = spi_block_erase_d8,
16897 }, {
16898 .eraseblocks = { {1024 * 1024, 1} },
Rudolf Marekce1c7982010-04-20 19:34:31 +000016899 .block_erase = spi_block_erase_c7,
16900 }
16901 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000016902 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000016903 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000016904 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016905 .read = spi_chip_read, /* Fast read (0x0B) supported */
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016906 .voltage = {2700, 3600},
David Hendricksc4acec92010-06-24 11:39:57 +000016907 },
16908
16909 {
16910 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016911 .name = "W25Q128.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016912 .bustype = BUS_SPI,
Antony Rheneus0fbba982011-05-26 14:28:51 +000016913 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016914 .model_id = WINBOND_NEX_W25Q128_V,
Antony Rheneus0fbba982011-05-26 14:28:51 +000016915 .total_size = 16384,
16916 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016917 /* supports SFDP */
16918 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000016919 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +000016920 .tested = TEST_OK_PREW,
Antony Rheneus0fbba982011-05-26 14:28:51 +000016921 .probe = probe_spi_rdid,
16922 .probe_timing = TIMING_ZERO,
16923 .block_erasers =
16924 {
16925 {
16926 .eraseblocks = { {4 * 1024, 4096} },
16927 .block_erase = spi_block_erase_20,
16928 }, {
16929 .eraseblocks = { {32 * 1024, 512} },
16930 .block_erase = spi_block_erase_52,
16931 }, {
16932 .eraseblocks = { {64 * 1024, 256} },
16933 .block_erase = spi_block_erase_d8,
16934 }, {
16935 .eraseblocks = { {16 * 1024 * 1024, 1} },
16936 .block_erase = spi_block_erase_60,
16937 }, {
16938 .eraseblocks = { {16 * 1024 * 1024, 1} },
16939 .block_erase = spi_block_erase_c7,
16940 }
16941 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000016942 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Antony Rheneus0fbba982011-05-26 14:28:51 +000016943 .unlock = spi_disable_blockprotect,
16944 .write = spi_chip_write_256,
16945 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016946 .voltage = {2700, 3600},
16947 },
16948
16949 {
16950 .vendor = "Winbond",
Patrick Rudolph34323492018-10-04 14:59:40 +020016951 .name = "W25Q128.V..M",
16952 .bustype = BUS_SPI,
16953 .manufacture_id = WINBOND_NEX_ID,
16954 .model_id = WINBOND_NEX_W25Q128_V_M,
16955 .total_size = 16384,
16956 .page_size = 256,
16957 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
16958 .tested = TEST_OK_PREW,
16959 .probe = probe_spi_rdid,
16960 .probe_timing = TIMING_ZERO,
16961 .block_erasers =
16962 {
16963 {
16964 .eraseblocks = { {4 * 1024, 4096} },
16965 .block_erase = spi_block_erase_20,
16966 }, {
16967 .eraseblocks = { {32 * 1024, 512} },
16968 .block_erase = spi_block_erase_52,
16969 }, {
16970 .eraseblocks = { {64 * 1024, 256} },
16971 .block_erase = spi_block_erase_d8,
16972 }, {
16973 .eraseblocks = { {16 * 1024 * 1024, 1} },
16974 .block_erase = spi_block_erase_60,
16975 }, {
16976 .eraseblocks = { {16 * 1024 * 1024, 1} },
16977 .block_erase = spi_block_erase_c7,
16978 }
16979 },
Alan Greena1fc01d2019-09-23 17:12:44 +100016980 .printlock = spi_prettyprint_status_register_plain,
Patrick Rudolph34323492018-10-04 14:59:40 +020016981 .unlock = spi_disable_blockprotect,
16982 .write = spi_chip_write_256,
16983 .read = spi_chip_read,
16984 .voltage = {2700, 3600},
16985 },
16986
16987 {
16988 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100016989 .name = "W25Q128.W",
16990 .bustype = BUS_SPI,
16991 .manufacture_id = WINBOND_NEX_ID,
16992 .model_id = WINBOND_NEX_W25Q128_W,
16993 .total_size = 16384,
16994 .page_size = 256,
16995 /* supports SFDP */
16996 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
16997 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
16998 .tested = TEST_OK_PREW,
16999 .probe = probe_spi_rdid,
17000 .probe_timing = TIMING_ZERO,
17001 .block_erasers =
17002 {
17003 {
17004 .eraseblocks = { {4 * 1024, 4096} },
17005 .block_erase = spi_block_erase_20,
17006 }, {
17007 .eraseblocks = { {32 * 1024, 512} },
17008 .block_erase = spi_block_erase_52,
17009 }, {
17010 .eraseblocks = { {64 * 1024, 256} },
17011 .block_erase = spi_block_erase_d8,
17012 }, {
17013 .eraseblocks = { {16 * 1024 * 1024, 1} },
17014 .block_erase = spi_block_erase_60,
17015 }, {
17016 .eraseblocks = { {16 * 1024 * 1024, 1} },
17017 .block_erase = spi_block_erase_c7,
17018 }
17019 },
17020 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17021 .unlock = spi_disable_blockprotect,
17022 .write = spi_chip_write_256,
17023 .read = spi_chip_read,
17024 .voltage = {1650, 1950},
17025 },
17026
17027 {
17028 .vendor = "Winbond",
Peichao Wang1a119492019-11-11 15:26:41 +080017029 .name = "W25Q128.JW.DTR",
17030 .bustype = BUS_SPI,
17031 .manufacture_id = WINBOND_NEX_ID,
17032 .model_id = WINBOND_NEX_W25Q128_DTR,
17033 .total_size = 16384,
17034 .page_size = 256,
17035 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
17036 .tested = TEST_OK_PREW,
17037 .probe = probe_spi_rdid,
17038 .probe_timing = TIMING_ZERO,
17039 .block_erasers =
17040 {
17041 {
17042 .eraseblocks = { {4 * 1024, 4096} },
17043 .block_erase = spi_block_erase_20,
17044 }, {
17045 .eraseblocks = { {32 * 1024, 512} },
17046 .block_erase = spi_block_erase_52,
17047 }, {
17048 .eraseblocks = { {64 * 1024, 256} },
17049 .block_erase = spi_block_erase_d8,
17050 }, {
17051 .eraseblocks = { {16 * 1024 * 1024, 1} },
17052 .block_erase = spi_block_erase_60,
17053 }, {
17054 .eraseblocks = { {16 * 1024 * 1024, 1} },
17055 .block_erase = spi_block_erase_c7,
17056 }
17057 },
17058 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17059 .unlock = spi_disable_blockprotect,
17060 .write = spi_chip_write_256,
17061 .read = spi_chip_read,
17062 .voltage = {1650, 1950},
17063 },
17064
17065 {
17066 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017067 .name = "W25Q16.V",
17068 .bustype = BUS_SPI,
17069 .manufacture_id = WINBOND_NEX_ID,
17070 .model_id = WINBOND_NEX_W25Q16_V,
17071 .total_size = 2048,
17072 .page_size = 256,
17073 /* supports SFDP */
17074 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17075 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17076 .tested = TEST_OK_PREW,
17077 .probe = probe_spi_rdid,
17078 .probe_timing = TIMING_ZERO,
17079 .block_erasers =
17080 {
17081 {
17082 .eraseblocks = { {4 * 1024, 512} },
17083 .block_erase = spi_block_erase_20,
17084 }, {
17085 .eraseblocks = { {32 * 1024, 64} },
17086 .block_erase = spi_block_erase_52,
17087 }, {
17088 .eraseblocks = { {64 * 1024, 32} },
17089 .block_erase = spi_block_erase_d8,
17090 }, {
17091 .eraseblocks = { {2 * 1024 * 1024, 1} },
17092 .block_erase = spi_block_erase_60,
17093 }, {
17094 .eraseblocks = { {2 * 1024 * 1024, 1} },
17095 .block_erase = spi_block_erase_c7,
17096 }
17097 },
17098 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17099 .unlock = spi_disable_blockprotect,
17100 .write = spi_chip_write_256,
17101 .read = spi_chip_read,
17102 .voltage = {2700, 3600},
17103 },
17104
17105 {
17106 .vendor = "Winbond",
17107 .name = "W25Q16.W",
17108 .bustype = BUS_SPI,
17109 .manufacture_id = WINBOND_NEX_ID,
17110 .model_id = WINBOND_NEX_W25Q16_W,
17111 .total_size = 2048,
17112 .page_size = 256,
17113 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17114 /* QPI enable 0x38, disable 0xFF */
17115 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
17116 .tested = TEST_UNTESTED,
17117 .probe = probe_spi_rdid,
17118 .probe_timing = TIMING_ZERO,
17119 .block_erasers =
17120 {
17121 {
17122 .eraseblocks = { {4 * 1024, 512} },
17123 .block_erase = spi_block_erase_20,
17124 }, {
17125 .eraseblocks = { {32 * 1024, 64} },
17126 .block_erase = spi_block_erase_52,
17127 }, {
17128 .eraseblocks = { {64 * 1024, 32} },
17129 .block_erase = spi_block_erase_d8,
17130 }, {
17131 .eraseblocks = { {2 * 1024 * 1024, 1} },
17132 .block_erase = spi_block_erase_60,
17133 }, {
17134 .eraseblocks = { {2 * 1024 * 1024, 1} },
17135 .block_erase = spi_block_erase_c7,
17136 }
17137 },
17138 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17139 .unlock = spi_disable_blockprotect,
17140 .write = spi_chip_write_256,
17141 .read = spi_chip_read,
17142 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
17143 },
17144
17145 {
17146 .vendor = "Winbond",
17147 .name = "W25Q20.W",
17148 .bustype = BUS_SPI,
17149 .manufacture_id = WINBOND_NEX_ID,
17150 .model_id = WINBOND_NEX_W25Q20_W,
17151 .total_size = 256,
17152 .page_size = 256,
17153 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17154 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17155 .tested = TEST_UNTESTED,
17156 .probe = probe_spi_rdid,
17157 .probe_timing = TIMING_ZERO,
17158 .block_erasers =
17159 {
17160 {
17161 .eraseblocks = { {4 * 1024, 64} },
17162 .block_erase = spi_block_erase_20,
17163 }, {
17164 .eraseblocks = { {32 * 1024, 8} },
17165 .block_erase = spi_block_erase_52,
17166 }, {
17167 .eraseblocks = { {64 * 1024, 4} },
17168 .block_erase = spi_block_erase_d8,
17169 }, {
17170 .eraseblocks = { {256 * 1024, 1} },
17171 .block_erase = spi_block_erase_60,
17172 }, {
17173 .eraseblocks = { {256 * 1024, 1} },
17174 .block_erase = spi_block_erase_c7,
17175 }
17176 },
17177 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17178 .unlock = spi_disable_blockprotect,
17179 .write = spi_chip_write_256,
17180 .read = spi_chip_read,
17181 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
17182 },
17183
17184 {
17185 .vendor = "Winbond",
Boris Baykovaa6c3742016-06-11 18:29:01 +020017186 .name = "W25Q256.V",
17187 .bustype = BUS_SPI,
17188 .manufacture_id = WINBOND_NEX_ID,
17189 .model_id = WINBOND_NEX_W25Q256_V,
17190 .total_size = 32768,
17191 .page_size = 256,
17192 /* supports SFDP */
17193 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17194 /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */
Nico Huberaac81422017-11-10 22:54:13 +010017195 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_ENTER_WREN
17196 | FEATURE_4BA_EXT_ADDR | FEATURE_4BA_READ | FEATURE_4BA_FAST_READ,
Angel Pons3130cbd2018-09-30 19:32:30 +020017197 .tested = TEST_OK_PREW,
Boris Baykovaa6c3742016-06-11 18:29:01 +020017198 .probe = probe_spi_rdid,
17199 .probe_timing = TIMING_ZERO,
17200 .block_erasers =
17201 {
17202 {
17203 .eraseblocks = { {4 * 1024, 8192} },
Nico Huber7a077222017-10-14 18:18:30 +020017204 .block_erase = spi_block_erase_20,
Boris Baykovaa6c3742016-06-11 18:29:01 +020017205 }, {
17206 .eraseblocks = { {32 * 1024, 1024} },
Nico Huber7a077222017-10-14 18:18:30 +020017207 .block_erase = spi_block_erase_52,
Boris Baykovaa6c3742016-06-11 18:29:01 +020017208 }, {
17209 .eraseblocks = { {64 * 1024, 512} },
Nico Huber7a077222017-10-14 18:18:30 +020017210 .block_erase = spi_block_erase_d8,
Boris Baykovaa6c3742016-06-11 18:29:01 +020017211 }, {
17212 .eraseblocks = { {32 * 1024 * 1024, 1} },
17213 .block_erase = spi_block_erase_60,
17214 }, {
17215 .eraseblocks = { {32 * 1024 * 1024, 1} },
17216 .block_erase = spi_block_erase_c7,
17217 }
17218 },
17219 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17220 .unlock = spi_disable_blockprotect,
17221 .write = spi_chip_write_256,
17222 .read = spi_chip_read,
17223 .voltage = {2700, 3600},
17224 },
17225
17226 {
17227 .vendor = "Winbond",
David Hendricks49876792018-10-27 20:19:42 +000017228 .name = "W25Q256JV_M",
17229 .bustype = BUS_SPI,
17230 .manufacture_id = WINBOND_NEX_ID,
17231 .model_id = WINBOND_NEX_W25Q256JV_M,
17232 .total_size = 32768,
17233 .page_size = 256,
17234 /* supports SFDP */
17235 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17236 /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */
17237 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
17238 .tested = TEST_OK_PREW,
17239 .probe = probe_spi_rdid,
17240 .probe_timing = TIMING_ZERO,
17241 .block_erasers =
17242 {
17243 {
17244 .eraseblocks = { {4 * 1024, 8192} },
17245 .block_erase = spi_block_erase_21,
17246 }, {
17247 .eraseblocks = { {4 * 1024, 8192} },
17248 .block_erase = spi_block_erase_20,
17249 }, {
17250 .eraseblocks = { {32 * 1024, 1024} },
17251 .block_erase = spi_block_erase_52,
17252 }, {
17253 .eraseblocks = { {64 * 1024, 512} },
17254 .block_erase = spi_block_erase_dc,
17255 }, {
17256 .eraseblocks = { {64 * 1024, 512} },
17257 .block_erase = spi_block_erase_d8,
17258 }, {
17259 .eraseblocks = { {32 * 1024 * 1024, 1} },
17260 .block_erase = spi_block_erase_60,
17261 }, {
17262 .eraseblocks = { {32 * 1024 * 1024, 1} },
17263 .block_erase = spi_block_erase_c7,
17264 }
17265 },
17266 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17267 .unlock = spi_disable_blockprotect,
17268 .write = spi_chip_write_256,
17269 .read = spi_chip_read,
17270 .voltage = {2700, 3600},
17271 },
17272
17273 {
17274 .vendor = "Winbond",
el-coderon01209852020-04-29 12:12:53 +020017275 .name = "W25Q256.W",
17276 .bustype = BUS_SPI,
17277 .manufacture_id = WINBOND_NEX_ID,
17278 .model_id = WINBOND_NEX_W25Q256_W,
17279 .total_size = 32768,
17280 .page_size = 256,
17281 /* supports SFDP */
17282 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17283 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_ENTER_WREN
17284 | FEATURE_4BA_EXT_ADDR | FEATURE_4BA_READ | FEATURE_4BA_FAST_READ,
17285 .tested = TEST_OK_PREW,
17286 .probe = probe_spi_rdid,
17287 .probe_timing = TIMING_ZERO,
17288 .block_erasers =
17289 {
17290 {
17291 .eraseblocks = { {4 * 1024, 8192} },
17292 .block_erase = spi_block_erase_20,
17293 }, {
17294 .eraseblocks = { {32 * 1024, 1024} },
17295 .block_erase = spi_block_erase_52,
17296 }, {
17297 .eraseblocks = { {64 * 1024, 512} },
17298 .block_erase = spi_block_erase_d8,
17299 }, {
17300 .eraseblocks = { {32 * 1024 * 1024, 1} },
17301 .block_erase = spi_block_erase_60,
17302 }, {
17303 .eraseblocks = { {32 * 1024 * 1024, 1} },
17304 .block_erase = spi_block_erase_c7,
17305 }
17306 },
17307 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17308 .unlock = spi_disable_blockprotect,
17309 .write = spi_chip_write_256,
17310 .read = spi_chip_read,
17311 .voltage = {1650, 1950},
17312 },
17313
17314 {
17315 .vendor = "Winbond",
David Hendricks31532602020-08-16 17:14:56 -070017316 .name = "W25Q256JW_DTR",
17317 .bustype = BUS_SPI,
17318 .manufacture_id = WINBOND_NEX_ID,
17319 .model_id = WINBOND_NEX_W25Q256_DTR,
17320 .total_size = 32768,
17321 .page_size = 256,
17322 /* supports SFDP */
17323 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17324 /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */
17325 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
17326 .tested = TEST_OK_PREW,
17327 .probe = probe_spi_rdid,
17328 .probe_timing = TIMING_ZERO,
17329 .block_erasers =
17330 {
17331 {
17332 .eraseblocks = { {4 * 1024, 8192} },
17333 .block_erase = spi_block_erase_21,
17334 }, {
17335 .eraseblocks = { {4 * 1024, 8192} },
17336 .block_erase = spi_block_erase_20,
17337 }, {
17338 .eraseblocks = { {32 * 1024, 1024} },
17339 .block_erase = spi_block_erase_52,
17340 }, {
17341 .eraseblocks = { {64 * 1024, 512} },
17342 .block_erase = spi_block_erase_dc,
17343 }, {
17344 .eraseblocks = { {64 * 1024, 512} },
17345 .block_erase = spi_block_erase_d8,
17346 }, {
17347 .eraseblocks = { {32 * 1024 * 1024, 1} },
17348 .block_erase = spi_block_erase_60,
17349 }, {
17350 .eraseblocks = { {32 * 1024 * 1024, 1} },
17351 .block_erase = spi_block_erase_c7,
17352 }
17353 },
17354 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17355 .unlock = spi_disable_blockprotect,
17356 .write = spi_chip_write_256,
17357 .read = spi_chip_read,
17358 .voltage = {1700, 1950},
17359 },
17360
17361 {
17362 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017363 .name = "W25Q32.V",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017364 .bustype = BUS_SPI,
17365 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017366 .model_id = WINBOND_NEX_W25Q32_V,
17367 .total_size = 4096,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017368 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017369 /* supports SFDP */
17370 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017371 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017372 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017373 .probe = probe_spi_rdid,
17374 .probe_timing = TIMING_ZERO,
17375 .block_erasers =
17376 {
17377 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017378 .eraseblocks = { {4 * 1024, 1024} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017379 .block_erase = spi_block_erase_20,
17380 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017381 .eraseblocks = { {32 * 1024, 128} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017382 .block_erase = spi_block_erase_52,
17383 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017384 .eraseblocks = { {64 * 1024, 64} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017385 .block_erase = spi_block_erase_d8,
17386 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017387 .eraseblocks = { {4 * 1024 * 1024, 1} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017388 .block_erase = spi_block_erase_60,
17389 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017390 .eraseblocks = { {4 * 1024 * 1024, 1} },
17391 .block_erase = spi_block_erase_c7,
17392 }
17393 },
17394 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17395 .unlock = spi_disable_blockprotect,
17396 .write = spi_chip_write_256,
17397 .read = spi_chip_read,
17398 .voltage = {2700, 3600},
17399 },
17400
17401 {
17402 .vendor = "Winbond",
17403 .name = "W25Q32.W",
17404 .bustype = BUS_SPI,
17405 .manufacture_id = WINBOND_NEX_ID,
17406 .model_id = WINBOND_NEX_W25Q32_W,
17407 .total_size = 4096,
17408 .page_size = 256,
17409 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17410 /* QPI enable 0x38, disable 0xFF */
17411 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
17412 .tested = TEST_OK_PREW,
17413 .probe = probe_spi_rdid,
17414 .probe_timing = TIMING_ZERO,
17415 .block_erasers =
17416 {
17417 {
17418 .eraseblocks = { {4 * 1024, 1024} },
17419 .block_erase = spi_block_erase_20,
17420 }, {
17421 .eraseblocks = { {32 * 1024, 128} },
17422 .block_erase = spi_block_erase_52,
17423 }, {
17424 .eraseblocks = { {64 * 1024, 64} },
17425 .block_erase = spi_block_erase_d8,
17426 }, {
17427 .eraseblocks = { {4 * 1024 * 1024, 1} },
17428 .block_erase = spi_block_erase_60,
17429 }, {
17430 .eraseblocks = { {4 * 1024 * 1024, 1} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017431 .block_erase = spi_block_erase_c7,
17432 }
17433 },
17434 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17435 .unlock = spi_disable_blockprotect,
17436 .write = spi_chip_write_256,
17437 .read = spi_chip_read,
17438 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
17439 },
17440
17441 {
17442 .vendor = "Winbond",
Nikolai Artemiev6ae79b12021-05-08 17:31:23 +100017443 .name = "W25Q32JW...M",
17444 .bustype = BUS_SPI,
17445 .manufacture_id = WINBOND_NEX_ID,
17446 .model_id = WINBOND_NEX_W25Q32JW_M,
17447 .total_size = 4096,
17448 .page_size = 256,
17449 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17450 .tested = TEST_OK_PREW,
17451 .probe = probe_spi_rdid,
17452 .probe_timing = TIMING_ZERO,
17453 .block_erasers =
17454 {
17455 {
17456 .eraseblocks = { {4 * 1024, 1024} },
17457 .block_erase = spi_block_erase_20,
17458 }, {
17459 .eraseblocks = { {32 * 1024, 128} },
17460 .block_erase = spi_block_erase_52,
17461 }, {
17462 .eraseblocks = { {64 * 1024, 64} },
17463 .block_erase = spi_block_erase_d8,
17464 }, {
17465 .eraseblocks = { {4 * 1024 * 1024, 1} },
17466 .block_erase = spi_block_erase_60,
17467 }, {
17468 .eraseblocks = { {4 * 1024 * 1024, 1} },
17469 .block_erase = spi_block_erase_c7,
17470 }
17471 },
17472 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
17473 .unlock = spi_disable_blockprotect_bp2_srwd,
17474 .write = spi_chip_write_256,
17475 .read = spi_chip_read,
17476 .voltage = {1700, 1950},
17477 },
17478
17479 {
17480 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017481 .name = "W25Q40.V",
17482 .bustype = BUS_SPI,
17483 .manufacture_id = WINBOND_NEX_ID,
17484 .model_id = WINBOND_NEX_W25Q40_V,
17485 .total_size = 512,
17486 .page_size = 256,
17487 /* supports SFDP */
17488 /* OTP: 756B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17489 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17490 .tested = TEST_OK_PREW,
17491 .probe = probe_spi_rdid,
17492 .probe_timing = TIMING_ZERO,
17493 .block_erasers =
17494 {
17495 {
17496 .eraseblocks = { {4 * 1024, 128} },
17497 .block_erase = spi_block_erase_20,
17498 }, {
17499 .eraseblocks = { {32 * 1024, 16} },
17500 .block_erase = spi_block_erase_52,
17501 }, {
17502 .eraseblocks = { {64 * 1024, 8} },
17503 .block_erase = spi_block_erase_d8,
17504 }, {
17505 .eraseblocks = { {512 * 1024, 1} },
17506 .block_erase = spi_block_erase_60,
17507 }, {
17508 .eraseblocks = { {512 * 1024, 1} },
17509 .block_erase = spi_block_erase_c7,
17510 }
17511 },
17512 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17513 .unlock = spi_disable_blockprotect,
17514 .write = spi_chip_write_256, /* Multi I/O supported */
17515 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
17516 .voltage = {2700, 3600},
17517 },
17518
17519 {
17520 .vendor = "Winbond",
Nico Huber25683572018-03-30 13:50:13 +020017521 .name = "W25Q40BW",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017522 .bustype = BUS_SPI,
17523 .manufacture_id = WINBOND_NEX_ID,
Nico Huber25683572018-03-30 13:50:13 +020017524 .model_id = WINBOND_NEX_W25Q40BW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017525 .total_size = 512,
17526 .page_size = 256,
17527 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17528 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Angel Pons3164a0c2018-09-30 20:26:06 +020017529 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017530 .probe = probe_spi_rdid,
17531 .probe_timing = TIMING_ZERO,
17532 .block_erasers =
17533 {
17534 {
17535 .eraseblocks = { {4 * 1024, 128} },
17536 .block_erase = spi_block_erase_20,
17537 }, {
17538 .eraseblocks = { {32 * 1024, 16} },
17539 .block_erase = spi_block_erase_52,
17540 }, {
17541 .eraseblocks = { {64 * 1024, 8} },
17542 .block_erase = spi_block_erase_d8,
17543 }, {
17544 .eraseblocks = { {512 * 1024, 1} },
17545 .block_erase = spi_block_erase_60,
17546 }, {
17547 .eraseblocks = { {512 * 1024, 1} },
17548 .block_erase = spi_block_erase_c7,
17549 }
17550 },
17551 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17552 .unlock = spi_disable_blockprotect,
17553 .write = spi_chip_write_256,
17554 .read = spi_chip_read,
17555 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
17556 },
17557
17558 {
17559 .vendor = "Winbond",
Nico Huber25683572018-03-30 13:50:13 +020017560 .name = "W25Q40EW",
17561 .bustype = BUS_SPI,
17562 .manufacture_id = WINBOND_NEX_ID,
17563 .model_id = WINBOND_NEX_W25Q40EW,
17564 .total_size = 512,
17565 .page_size = 256,
17566 /* OTP: 3*256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17567 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Alan Green07b8a172019-09-23 16:47:05 +100017568 .tested = TEST_OK_PREW,
Nico Huber25683572018-03-30 13:50:13 +020017569 .probe = probe_spi_rdid,
17570 .probe_timing = TIMING_ZERO,
17571 .block_erasers =
17572 {
17573 {
17574 .eraseblocks = { {4 * 1024, 128} },
17575 .block_erase = spi_block_erase_20,
17576 }, {
17577 .eraseblocks = { {32 * 1024, 16} },
17578 .block_erase = spi_block_erase_52,
17579 }, {
17580 .eraseblocks = { {64 * 1024, 8} },
17581 .block_erase = spi_block_erase_d8,
17582 }, {
17583 .eraseblocks = { {512 * 1024, 1} },
17584 .block_erase = spi_block_erase_60,
17585 }, {
17586 .eraseblocks = { {512 * 1024, 1} },
17587 .block_erase = spi_block_erase_c7,
17588 }
17589 },
17590 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17591 .unlock = spi_disable_blockprotect,
17592 .write = spi_chip_write_256,
17593 .read = spi_chip_read,
17594 .voltage = {1650, 1950}, /* Fast read (0x0B) and multi I/O supported */
17595 },
17596
Stanislav Sedovf5775442018-03-07 14:16:51 -080017597 {
17598 .vendor = "Winbond",
Joel Stanley55439612019-07-27 19:25:35 +093017599 .name = "W25Q512JV",
17600 .bustype = BUS_SPI,
17601 .manufacture_id = WINBOND_NEX_ID,
17602 .model_id = WINBOND_NEX_W25Q512JV,
17603 .total_size = 64 * 1024,
17604 .page_size = 256,
17605 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
17606 .tested = TEST_OK_PREW,
17607 .probe = probe_spi_rdid,
17608 .probe_timing = TIMING_ZERO,
17609 .block_erasers =
17610 {
17611 {
17612 .eraseblocks = { {4 * 1024, 16384} },
17613 .block_erase = spi_block_erase_21,
17614 }, {
17615 .eraseblocks = { {4 * 1024, 16384} },
17616 .block_erase = spi_block_erase_20,
17617 }, {
17618 .eraseblocks = { {32 * 1024, 2048} },
17619 .block_erase = spi_block_erase_52,
17620 }, {
17621 .eraseblocks = { {64 * 1024, 1024} },
17622 .block_erase = spi_block_erase_dc,
17623 }, {
17624 .eraseblocks = { {64 * 1024, 1024} },
17625 .block_erase = spi_block_erase_d8,
17626 }, {
17627 .eraseblocks = { {64 * 1024 * 1024, 1} },
17628 .block_erase = spi_block_erase_60,
17629 }, {
17630 .eraseblocks = { {64 * 1024 * 1024, 1} },
17631 .block_erase = spi_block_erase_c7,
17632 }
17633 },
17634 .printlock = spi_prettyprint_status_register_plain,
17635 .unlock = spi_disable_blockprotect,
17636 .write = spi_chip_write_256,
17637 .read = spi_chip_read,
17638 .voltage = {2700, 3600},
17639 },
17640
17641 {
17642 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017643 .name = "W25Q64.V",
Stanislav Sedovf5775442018-03-07 14:16:51 -080017644 .bustype = BUS_SPI,
17645 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017646 .model_id = WINBOND_NEX_W25Q64_V,
17647 .total_size = 8192,
Stanislav Sedovf5775442018-03-07 14:16:51 -080017648 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017649 /* supports SFDP */
17650 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Stanislav Sedovf5775442018-03-07 14:16:51 -080017651 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17652 .tested = TEST_OK_PREW,
17653 .probe = probe_spi_rdid,
17654 .probe_timing = TIMING_ZERO,
17655 .block_erasers =
17656 {
17657 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017658 .eraseblocks = { {4 * 1024, 2048} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080017659 .block_erase = spi_block_erase_20,
17660 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017661 .eraseblocks = { {32 * 1024, 256} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080017662 .block_erase = spi_block_erase_52,
17663 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017664 .eraseblocks = { {64 * 1024, 128} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080017665 .block_erase = spi_block_erase_d8,
17666 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017667 .eraseblocks = { {8 * 1024 * 1024, 1} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080017668 .block_erase = spi_block_erase_60,
17669 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017670 .eraseblocks = { {8 * 1024 * 1024, 1} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080017671 .block_erase = spi_block_erase_c7,
17672 }
17673 },
17674 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17675 .unlock = spi_disable_blockprotect,
17676 .write = spi_chip_write_256,
17677 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017678 .voltage = {2700, 3600},
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017679 },
17680
17681 {
17682 .vendor = "Winbond",
Simon Buhrow236a38c2021-11-05 11:48:30 +010017683 .name = "W25Q64JV",
17684 .bustype = BUS_SPI,
17685 .manufacture_id = WINBOND_NEX_ID,
17686 .model_id = WINBOND_NEX_W25Q64JV,
17687 .total_size = 8192,
17688 .page_size = 256,
17689 /* supports SFDP */
17690 /* QPI enable 0x38 */
17691 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
17692 .tested = TEST_OK_PREW,
17693 .probe = probe_spi_rdid,
17694 .probe_timing = TIMING_ZERO,
17695 .block_erasers =
17696 {
17697 {
17698 .eraseblocks = { {4 * 1024, 2048} },
17699 .block_erase = spi_block_erase_20,
17700 }, {
17701 .eraseblocks = { {32 * 1024, 256} },
17702 .block_erase = spi_block_erase_52,
17703 }, {
17704 .eraseblocks = { {64 * 1024, 128} },
17705 .block_erase = spi_block_erase_d8,
17706 }, {
17707 .eraseblocks = { {8 * 1024 * 1024, 1} },
17708 .block_erase = spi_block_erase_60,
17709 }, {
17710 .eraseblocks = { {8 * 1024 * 1024, 1} },
17711 .block_erase = spi_block_erase_c7,
17712 }
17713 },
17714 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
17715 .unlock = spi_disable_blockprotect_bp2_srwd,
17716 .write = spi_chip_write_256,
17717 .read = spi_chip_read,
17718 .voltage = {2700, 3600},
17719 },
17720
17721 {
17722 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017723 .name = "W25Q64.W",
17724 .bustype = BUS_SPI,
17725 .manufacture_id = WINBOND_NEX_ID,
17726 .model_id = WINBOND_NEX_W25Q64_W,
17727 .total_size = 8192,
17728 .page_size = 256,
17729 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17730 /* QPI enable 0x38, disable 0xFF */
17731 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner0554ca52013-07-25 22:54:25 +000017732 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017733 .probe = probe_spi_rdid,
17734 .probe_timing = TIMING_ZERO,
17735 .block_erasers =
17736 {
17737 {
17738 .eraseblocks = { {4 * 1024, 2048} },
17739 .block_erase = spi_block_erase_20,
17740 }, {
17741 .eraseblocks = { {32 * 1024, 256} },
17742 .block_erase = spi_block_erase_52,
17743 }, {
17744 .eraseblocks = { {64 * 1024, 128} },
17745 .block_erase = spi_block_erase_d8,
17746 }, {
17747 .eraseblocks = { {8 * 1024 * 1024, 1} },
17748 .block_erase = spi_block_erase_60,
17749 }, {
17750 .eraseblocks = { {8 * 1024 * 1024, 1} },
17751 .block_erase = spi_block_erase_c7,
17752 }
17753 },
17754 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17755 .unlock = spi_disable_blockprotect,
17756 .write = spi_chip_write_256,
17757 .read = spi_chip_read,
17758 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
Antony Rheneus0fbba982011-05-26 14:28:51 +000017759 },
17760
17761 {
17762 .vendor = "Winbond",
Nikolai Artemiev5fa05052021-05-14 15:26:47 +100017763 .name = "W25Q64JW...M",
Scott Chao1bbc5012020-04-08 22:10:50 +080017764 .bustype = BUS_SPI,
17765 .manufacture_id = WINBOND_NEX_ID,
Nikolai Artemiev5fa05052021-05-14 15:26:47 +100017766 .model_id = WINBOND_NEX_W25Q64JW_M,
Scott Chao1bbc5012020-04-08 22:10:50 +080017767 .total_size = 8192,
17768 .page_size = 256,
17769 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17770 /* QPI enable 0x38, disable 0xFF */
17771 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
17772 .tested = TEST_OK_PREW,
17773 .probe = probe_spi_rdid,
17774 .probe_timing = TIMING_ZERO,
17775 .block_erasers =
17776 {
17777 {
17778 .eraseblocks = { {4 * 1024, 2048} },
17779 .block_erase = spi_block_erase_20,
17780 }, {
17781 .eraseblocks = { {32 * 1024, 256} },
17782 .block_erase = spi_block_erase_52,
17783 }, {
17784 .eraseblocks = { {64 * 1024, 128} },
17785 .block_erase = spi_block_erase_d8,
17786 }, {
17787 .eraseblocks = { {8 * 1024 * 1024, 1} },
17788 .block_erase = spi_block_erase_60,
17789 }, {
17790 .eraseblocks = { {8 * 1024 * 1024, 1} },
17791 .block_erase = spi_block_erase_c7,
17792 }
17793 },
17794 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17795 .unlock = spi_disable_blockprotect,
17796 .write = spi_chip_write_256,
17797 .read = spi_chip_read,
17798 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
17799 },
17800
17801 {
17802 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017803 .name = "W25Q80.V",
Nico Huber70eed9f2017-04-24 22:19:27 +020017804 .bustype = BUS_SPI,
17805 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017806 .model_id = WINBOND_NEX_W25Q80_V,
17807 .total_size = 1024,
Nico Huber70eed9f2017-04-24 22:19:27 +020017808 .page_size = 256,
17809 /* supports SFDP */
17810 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Alan Green1f9cc7d2019-07-01 11:10:45 +100017811 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks48729d32017-12-08 14:44:07 -080017812 .tested = TEST_OK_PREW,
Nico Huber70eed9f2017-04-24 22:19:27 +020017813 .probe = probe_spi_rdid,
17814 .probe_timing = TIMING_ZERO,
17815 .block_erasers =
17816 {
17817 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017818 .eraseblocks = { {4 * 1024, 256} },
Nico Huber70eed9f2017-04-24 22:19:27 +020017819 .block_erase = spi_block_erase_20,
17820 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017821 .eraseblocks = { {32 * 1024, 32} },
Nico Huber70eed9f2017-04-24 22:19:27 +020017822 .block_erase = spi_block_erase_52,
17823 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017824 .eraseblocks = { {64 * 1024, 16} },
Nico Huber70eed9f2017-04-24 22:19:27 +020017825 .block_erase = spi_block_erase_d8,
17826 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017827 .eraseblocks = { {1024 * 1024, 1} },
Nico Huber70eed9f2017-04-24 22:19:27 +020017828 .block_erase = spi_block_erase_60,
17829 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017830 .eraseblocks = { {1024 * 1024, 1} },
Nico Huber70eed9f2017-04-24 22:19:27 +020017831 .block_erase = spi_block_erase_c7,
17832 }
17833 },
17834 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17835 .unlock = spi_disable_blockprotect,
17836 .write = spi_chip_write_256,
17837 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017838 .voltage = {2700, 3600},
17839 },
17840
17841 {
17842 .vendor = "Winbond",
17843 .name = "W25Q80BW",
17844 .bustype = BUS_SPI,
17845 .manufacture_id = WINBOND_NEX_ID,
17846 .model_id = WINBOND_NEX_W25Q80BW,
17847 .total_size = 1024,
17848 .page_size = 256,
17849 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17850 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17851 .tested = TEST_OK_PREW,
17852 .probe = probe_spi_rdid,
17853 .probe_timing = TIMING_ZERO,
17854 .block_erasers =
17855 {
17856 {
17857 .eraseblocks = { {4 * 1024, 256} },
17858 .block_erase = spi_block_erase_20,
17859 }, {
17860 .eraseblocks = { {32 * 1024, 32} },
17861 .block_erase = spi_block_erase_52,
17862 }, {
17863 .eraseblocks = { {64 * 1024, 16} },
17864 .block_erase = spi_block_erase_d8,
17865 }, {
17866 .eraseblocks = { {1 * 1024 * 1024, 1} },
17867 .block_erase = spi_block_erase_60,
17868 }, {
17869 .eraseblocks = { {1 * 1024 * 1024, 1} },
17870 .block_erase = spi_block_erase_c7,
17871 }
17872 },
17873 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17874 .unlock = spi_disable_blockprotect,
17875 .write = spi_chip_write_256,
17876 .read = spi_chip_read,
17877 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
17878 },
17879
17880 {
17881 .vendor = "Winbond",
17882 .name = "W25Q80EW",
17883 .bustype = BUS_SPI,
17884 .manufacture_id = WINBOND_NEX_ID,
17885 .model_id = WINBOND_NEX_W25Q80EW,
17886 .total_size = 1024,
17887 .page_size = 256,
17888 /* OTP: 3*256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17889 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17890 .tested = TEST_OK_PREW,
17891 .probe = probe_spi_rdid,
17892 .probe_timing = TIMING_ZERO,
17893 .block_erasers =
17894 {
17895 {
17896 .eraseblocks = { {4 * 1024, 256} },
17897 .block_erase = spi_block_erase_20,
17898 }, {
17899 .eraseblocks = { {32 * 1024, 32} },
17900 .block_erase = spi_block_erase_52,
17901 }, {
17902 .eraseblocks = { {64 * 1024, 16} },
17903 .block_erase = spi_block_erase_d8,
17904 }, {
17905 .eraseblocks = { {1 * 1024 * 1024, 1} },
17906 .block_erase = spi_block_erase_60,
17907 }, {
17908 .eraseblocks = { {1 * 1024 * 1024, 1} },
17909 .block_erase = spi_block_erase_c7,
17910 }
17911 },
17912 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17913 .unlock = spi_disable_blockprotect,
17914 .write = spi_chip_write_256,
17915 .read = spi_chip_read,
17916 .voltage = {1650, 1950}, /* Fast read (0x0B) and multi I/O supported */
Nico Huber70eed9f2017-04-24 22:19:27 +020017917 },
17918
17919 {
17920 .vendor = "Winbond",
Jacob Appelbaumebbdc022019-09-02 09:10:43 -040017921 .name = "W25X05",
17922 .bustype = BUS_SPI,
17923 .manufacture_id = WINBOND_NEX_ID,
17924 .model_id = WINBOND_NEX_W25X05,
17925 .total_size = 64,
17926 .page_size = 256,
17927 .feature_bits = FEATURE_WRSR_WREN,
17928 .tested = TEST_OK_PREW,
17929 .probe = probe_spi_rdid,
17930 .probe_timing = TIMING_ZERO,
17931 .block_erasers =
17932 {
17933 {
17934 .eraseblocks = { {4 * 1024, 16} },
17935 .block_erase = spi_block_erase_20,
17936 }, {
17937 .eraseblocks = { {32 * 1024, 2} },
17938 .block_erase = spi_block_erase_52,
17939 }, {
17940 .eraseblocks = { {64 * 1024, 1} },
17941 .block_erase = spi_block_erase_d8,
17942 }
17943 },
17944 .printlock = spi_prettyprint_status_register_plain,
17945 .unlock = spi_disable_blockprotect,
17946 .write = spi_chip_write_256,
17947 .read = spi_chip_read,
17948 .voltage = {2300, 3600},
17949 },
17950
17951 {
17952 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000017953 .name = "W25X10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017954 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017955 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017956 .model_id = WINBOND_NEX_W25X10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017957 .total_size = 128,
17958 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000017959 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +000017960 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017961 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000017962 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017963 .block_erasers =
17964 {
17965 {
17966 .eraseblocks = { {4 * 1024, 32} },
17967 .block_erase = spi_block_erase_20,
17968 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017969 .eraseblocks = { {64 * 1024, 2} },
17970 .block_erase = spi_block_erase_d8,
17971 }, {
17972 .eraseblocks = { {128 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017973 .block_erase = spi_block_erase_c7,
17974 }
17975 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000017976 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000017977 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000017978 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017979 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017980 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000017981 },
17982
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017983 {
17984 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000017985 .name = "W25X16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017986 .bustype = BUS_SPI,
Hector Martina721ae22009-07-11 19:39:11 +000017987 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017988 .model_id = WINBOND_NEX_W25X16,
Hector Martina721ae22009-07-11 19:39:11 +000017989 .total_size = 2048,
17990 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000017991 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +000017992 .tested = TEST_OK_PREW,
Hector Martina721ae22009-07-11 19:39:11 +000017993 .probe = probe_spi_rdid,
17994 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017995 .block_erasers =
17996 {
17997 {
17998 .eraseblocks = { {4 * 1024, 512} },
17999 .block_erase = spi_block_erase_20,
18000 }, {
18001 .eraseblocks = { {32 * 1024, 64} },
18002 .block_erase = spi_block_erase_52,
18003 }, {
18004 .eraseblocks = { {64 * 1024, 32} },
18005 .block_erase = spi_block_erase_d8,
18006 }, {
18007 .eraseblocks = { {2 * 1024 * 1024, 1} },
18008 .block_erase = spi_block_erase_60,
18009 }, {
18010 .eraseblocks = { {2 * 1024 * 1024, 1} },
18011 .block_erase = spi_block_erase_c7,
18012 }
18013 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000018014 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000018015 .unlock = spi_disable_blockprotect,
Hector Martina721ae22009-07-11 19:39:11 +000018016 .write = spi_chip_write_256,
18017 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018018 .voltage = {2700, 3600},
Hector Martina721ae22009-07-11 19:39:11 +000018019 },
18020
18021 {
18022 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018023 .name = "W25X20",
18024 .bustype = BUS_SPI,
18025 .manufacture_id = WINBOND_NEX_ID,
18026 .model_id = WINBOND_NEX_W25X20,
18027 .total_size = 256,
18028 .page_size = 256,
18029 .feature_bits = FEATURE_WRSR_WREN,
18030 .tested = TEST_OK_PREW,
18031 .probe = probe_spi_rdid,
18032 .probe_timing = TIMING_ZERO,
18033 .block_erasers =
18034 {
18035 {
18036 .eraseblocks = { {4 * 1024, 64} },
18037 .block_erase = spi_block_erase_20,
18038 }, {
18039 .eraseblocks = { {64 * 1024, 4} },
18040 .block_erase = spi_block_erase_d8,
18041 }, {
18042 .eraseblocks = { {256 * 1024, 1} },
18043 .block_erase = spi_block_erase_c7,
18044 }
18045 },
18046 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18047 .unlock = spi_disable_blockprotect,
18048 .write = spi_chip_write_256,
18049 .read = spi_chip_read,
18050 .voltage = {2700, 3600},
18051 },
18052
18053 {
18054 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000018055 .name = "W25X32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018056 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000018057 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018058 .model_id = WINBOND_NEX_W25X32,
Zheng Bao1db2b752009-11-26 11:05:01 +000018059 .total_size = 4096,
18060 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000018061 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000018062 .tested = TEST_OK_PREW,
Zheng Bao1db2b752009-11-26 11:05:01 +000018063 .probe = probe_spi_rdid,
18064 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018065 .block_erasers =
18066 {
18067 {
18068 .eraseblocks = { {4 * 1024, 1024} },
18069 .block_erase = spi_block_erase_20,
18070 }, {
18071 .eraseblocks = { {32 * 1024, 128} },
18072 .block_erase = spi_block_erase_52,
18073 }, {
18074 .eraseblocks = { {64 * 1024, 64} },
18075 .block_erase = spi_block_erase_d8,
18076 }, {
18077 .eraseblocks = { {4 * 1024 * 1024, 1} },
18078 .block_erase = spi_block_erase_60,
18079 }, {
18080 .eraseblocks = { {4 * 1024 * 1024, 1} },
18081 .block_erase = spi_block_erase_c7,
18082 }
18083 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000018084 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000018085 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000018086 .write = spi_chip_write_256,
18087 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018088 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000018089 },
18090
18091 {
18092 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018093 .name = "W25X40",
18094 .bustype = BUS_SPI,
18095 .manufacture_id = WINBOND_NEX_ID,
18096 .model_id = WINBOND_NEX_W25X40,
18097 .total_size = 512,
18098 .page_size = 256,
18099 .feature_bits = FEATURE_WRSR_WREN,
18100 .tested = TEST_OK_PREW,
18101 .probe = probe_spi_rdid,
18102 .probe_timing = TIMING_ZERO,
18103 .block_erasers =
18104 {
18105 {
18106 .eraseblocks = { {4 * 1024, 128} },
18107 .block_erase = spi_block_erase_20,
18108 }, {
18109 .eraseblocks = { {64 * 1024, 8} },
18110 .block_erase = spi_block_erase_d8,
18111 }, {
18112 .eraseblocks = { {512 * 1024, 1} },
18113 .block_erase = spi_block_erase_c7,
18114 }
18115 },
18116 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18117 .unlock = spi_disable_blockprotect,
18118 .write = spi_chip_write_256,
18119 .read = spi_chip_read,
18120 .voltage = {2700, 3600},
18121 },
18122
18123 {
18124 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000018125 .name = "W25X64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018126 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000018127 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018128 .model_id = WINBOND_NEX_W25X64,
Zheng Bao1db2b752009-11-26 11:05:01 +000018129 .total_size = 8192,
18130 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000018131 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000018132 .tested = TEST_OK_PREW,
Zheng Bao1db2b752009-11-26 11:05:01 +000018133 .probe = probe_spi_rdid,
18134 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018135 .block_erasers =
18136 {
18137 {
18138 .eraseblocks = { {4 * 1024, 2048} },
18139 .block_erase = spi_block_erase_20,
18140 }, {
18141 .eraseblocks = { {32 * 1024, 256} },
18142 .block_erase = spi_block_erase_52,
18143 }, {
18144 .eraseblocks = { {64 * 1024, 128} },
18145 .block_erase = spi_block_erase_d8,
18146 }, {
18147 .eraseblocks = { {8 * 1024 * 1024, 1} },
18148 .block_erase = spi_block_erase_60,
18149 }, {
18150 .eraseblocks = { {8 * 1024 * 1024, 1} },
18151 .block_erase = spi_block_erase_c7,
18152 }
18153 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000018154 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000018155 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000018156 .write = spi_chip_write_256,
18157 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018158 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000018159 },
18160
18161 {
Alan Greenfa3fcd32019-06-27 15:41:50 +100018162 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018163 .name = "W25X80",
Alan Greenfa3fcd32019-06-27 15:41:50 +100018164 .bustype = BUS_SPI,
18165 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018166 .model_id = WINBOND_NEX_W25X80,
Alan Greenfa3fcd32019-06-27 15:41:50 +100018167 .total_size = 1024,
18168 .page_size = 256,
18169 .feature_bits = FEATURE_WRSR_WREN,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018170 .tested = TEST_OK_PREW,
Alan Greenfa3fcd32019-06-27 15:41:50 +100018171 .probe = probe_spi_rdid,
18172 .probe_timing = TIMING_ZERO,
18173 .block_erasers =
David Hendricksc9ee0ed2018-02-11 17:40:53 -080018174 {
18175 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100018176 .eraseblocks = { {4 * 1024, 256} },
18177 .block_erase = spi_block_erase_20,
18178 }, {
David Hendricksc9ee0ed2018-02-11 17:40:53 -080018179 .eraseblocks = { {64 * 1024, 16} },
18180 .block_erase = spi_block_erase_d8,
18181 }, {
18182 .eraseblocks = { {1024 * 1024, 1} },
18183 .block_erase = spi_block_erase_c7,
18184 }
18185 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100018186 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18187 .unlock = spi_disable_blockprotect,
18188 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018189 .read = spi_chip_read,
Alan Greenfa3fcd32019-06-27 15:41:50 +100018190 .voltage = {2700, 3600},
David Hendricksc9ee0ed2018-02-11 17:40:53 -080018191 },
18192
Alan Greenf29ea362019-06-27 17:14:02 +100018193 /* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */
18194 {
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000018195 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000018196 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018197 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018198 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018199 .model_id = WINBOND_W29C010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018200 .total_size = 128,
18201 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000018202 .feature_bits = FEATURE_LONG_RESET,
David Hendricks567b7b82011-05-18 01:31:03 +000018203 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018204 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000018205 .probe_timing = 10, /* used datasheet for the W29C011A */
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018206 .block_erasers =
18207 {
18208 {
18209 .eraseblocks = { {128 * 1024, 1} },
18210 .block_erase = erase_chip_block_jedec,
18211 }
18212 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018213 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018214 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000018215 },
18216
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018217 {
18218 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018219 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old",
18220 .bustype = BUS_PARALLEL,
18221 .manufacture_id = WINBOND_ID,
18222 .model_id = WINBOND_W29C010,
18223 .total_size = 128,
18224 .page_size = 128,
18225 .feature_bits = FEATURE_LONG_RESET,
18226 .tested = TEST_OK_PREW,
18227 .probe = probe_w29ee011,
18228 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */
18229 .block_erasers =
18230 {
18231 {
18232 .eraseblocks = { {128 * 1024, 1} },
18233 .block_erase = erase_chip_block_jedec,
18234 }
18235 },
18236 .write = write_jedec,
18237 .read = read_memmapped,
18238 },
18239
18240 {
18241 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000018242 .name = "W29C020(C)/W29C022",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018243 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018244 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018245 .model_id = WINBOND_W29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018246 .total_size = 256,
18247 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000018248 .feature_bits = FEATURE_LONG_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000018249 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018250 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000018251 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018252 .block_erasers =
18253 {
18254 {
18255 .eraseblocks = { {256 * 1024, 1} },
18256 .block_erase = erase_chip_block_jedec,
18257 }
18258 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018259 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018260 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018261 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000018262 },
18263
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018264 {
18265 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000018266 .name = "W29C040/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018267 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018268 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018269 .model_id = WINBOND_W29C040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018270 .total_size = 512,
18271 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000018272 .feature_bits = FEATURE_LONG_RESET,
18273 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018274 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000018275 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018276 .block_erasers =
18277 {
18278 {
18279 .eraseblocks = { {512 * 1024, 1} },
18280 .block_erase = erase_chip_block_jedec,
18281 }
18282 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018283 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018284 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018285 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000018286 },
18287
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018288 {
18289 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018290 .name = "W29C512A/W29EE512",
18291 .bustype = BUS_PARALLEL,
18292 .manufacture_id = WINBOND_ID,
18293 .model_id = WINBOND_W29C512A,
18294 .total_size = 64,
18295 .page_size = 128,
18296 .feature_bits = FEATURE_LONG_RESET,
18297 .tested = TEST_OK_PREW,
18298 .probe = probe_jedec,
18299 .probe_timing = 10,
18300 .block_erasers =
18301 {
18302 {
18303 .eraseblocks = { {64 * 1024, 1} },
18304 .block_erase = erase_chip_block_jedec,
18305 }
18306 },
18307 .write = write_jedec,
18308 .read = read_memmapped,
18309 .voltage = {4500, 5500},
18310 },
18311
18312 {
18313 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000018314 .name = "W29GL032CB",
18315 .bustype = BUS_PARALLEL,
18316 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
18317 .model_id = WINBOND_W29GL032CB,
18318 .total_size = 4096,
18319 .page_size = 128 * 1024, /* actual page size is 16 */
18320 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
18321 .tested = TEST_UNTESTED,
18322 .probe = probe_jedec_29gl,
18323 .probe_timing = TIMING_ZERO,
18324 .block_erasers =
18325 {
18326 {
18327 .eraseblocks = {
18328 {8 * 1024, 8},
18329 {64 * 1024, 63},
18330 },
18331 .block_erase = erase_sector_jedec,
18332 }, {
18333 .eraseblocks = { {4 * 1024 * 1024, 1} },
18334 .block_erase = erase_chip_block_jedec,
18335 },
18336 },
18337 .write = write_jedec_1,
18338 .read = read_memmapped,
18339 .voltage = {2700, 3600},
18340 },
18341
18342 {
18343 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018344 .name = "W29GL032CH/L",
18345 .bustype = BUS_PARALLEL,
18346 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
18347 .model_id = WINBOND_W29GL032CHL,
18348 .total_size = 4096,
18349 .page_size = 128 * 1024, /* actual page size is 16 */
18350 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
18351 .tested = TEST_UNTESTED,
18352 .probe = probe_jedec_29gl,
18353 .probe_timing = TIMING_ZERO,
18354 .block_erasers =
18355 {
18356 {
18357 .eraseblocks = { {64 * 1024, 64} },
18358 .block_erase = erase_sector_jedec,
18359 }, {
18360 .eraseblocks = { {4 * 1024 * 1024, 1} },
18361 .block_erase = erase_chip_block_jedec,
18362 },
18363 },
18364 .write = write_jedec_1,
18365 .read = read_memmapped,
18366 .voltage = {2700, 3600},
18367 },
18368
18369 {
18370 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000018371 .name = "W29GL032CT",
18372 .bustype = BUS_PARALLEL,
18373 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
18374 .model_id = WINBOND_W29GL032CT,
18375 .total_size = 4096,
18376 .page_size = 128 * 1024, /* actual page size is 16 */
18377 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
18378 .tested = TEST_UNTESTED,
18379 .probe = probe_jedec_29gl,
18380 .probe_timing = TIMING_ZERO,
18381 .block_erasers =
18382 {
18383 {
18384 .eraseblocks = {
18385 {64 * 1024, 63},
18386 {8 * 1024, 8},
18387 },
18388 .block_erase = erase_sector_jedec,
18389 }, {
18390 .eraseblocks = { {4 * 1024 * 1024, 1} },
18391 .block_erase = erase_chip_block_jedec,
18392 },
18393 },
18394 .write = write_jedec_1,
18395 .read = read_memmapped,
18396 .voltage = {2700, 3600},
18397 },
18398
18399 {
18400 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000018401 .name = "W29GL064CB",
18402 .bustype = BUS_PARALLEL,
18403 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
18404 .model_id = WINBOND_W29GL064CB,
18405 .total_size = 8192,
18406 .page_size = 128 * 1024, /* actual page size is 16 */
18407 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
18408 .tested = TEST_UNTESTED,
18409 .probe = probe_jedec_29gl,
18410 .probe_timing = TIMING_ZERO,
18411 .block_erasers =
18412 {
18413 {
18414 .eraseblocks = {
18415 {8 * 1024, 8},
18416 {64 * 1024, 127},
18417 },
18418 .block_erase = erase_sector_jedec,
18419 }, {
18420 .eraseblocks = { {8 * 1024 * 1024, 1} },
18421 .block_erase = erase_chip_block_jedec,
18422 },
18423 },
18424 .write = write_jedec_1,
18425 .read = read_memmapped,
18426 .voltage = {2700, 3600},
18427 },
18428
18429 {
18430 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018431 .name = "W29GL064CH/L",
18432 .bustype = BUS_PARALLEL,
18433 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
18434 .model_id = WINBOND_W29GL064CHL,
18435 .total_size = 8192,
18436 .page_size = 128 * 1024, /* actual page size is 16 */
18437 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
18438 .tested = TEST_UNTESTED,
18439 .probe = probe_jedec_29gl,
18440 .probe_timing = TIMING_ZERO,
18441 .block_erasers =
18442 {
18443 {
18444 .eraseblocks = { {64 * 1024, 128} },
18445 .block_erase = erase_sector_jedec,
18446 }, {
18447 .eraseblocks = { {8 * 1024 * 1024, 1} },
18448 .block_erase = erase_chip_block_jedec,
18449 },
18450 },
18451 .write = write_jedec_1,
18452 .read = read_memmapped,
18453 .voltage = {2700, 3600},
18454 },
18455
18456 {
18457 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000018458 .name = "W29GL064CT",
18459 .bustype = BUS_PARALLEL,
18460 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
18461 .model_id = WINBOND_W29GL064CT,
18462 .total_size = 8192,
18463 .page_size = 128 * 1024, /* actual page size is 16 */
18464 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
18465 .tested = TEST_UNTESTED,
18466 .probe = probe_jedec_29gl,
18467 .probe_timing = TIMING_ZERO,
18468 .block_erasers =
18469 {
18470 {
18471 .eraseblocks = {
18472 {64 * 1024, 127},
18473 {8 * 1024, 8},
18474 },
18475 .block_erase = erase_sector_jedec,
18476 }, {
18477 .eraseblocks = { {8 * 1024 * 1024, 1} },
18478 .block_erase = erase_chip_block_jedec,
18479 },
18480 },
18481 .write = write_jedec_1,
18482 .read = read_memmapped,
18483 .voltage = {2700, 3600},
18484 },
18485
18486 {
18487 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000018488 .name = "W29GL128C",
18489 .bustype = BUS_PARALLEL,
18490 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
18491 .model_id = WINBOND_W29GL128CHL,
18492 .total_size = 16384,
18493 .page_size = 128 * 1024, /* actual page size is 16 */
18494 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
18495 .tested = TEST_UNTESTED,
18496 .probe = probe_jedec_29gl,
18497 .probe_timing = TIMING_ZERO,
18498 .block_erasers =
18499 {
18500 {
18501 .eraseblocks = { {128 * 1024, 128} },
18502 .block_erase = erase_sector_jedec,
18503 }, {
18504 .eraseblocks = { {16 * 1024 * 1024, 1} },
18505 .block_erase = erase_chip_block_jedec,
18506 },
18507 },
18508 .write = write_jedec_1,
18509 .read = read_memmapped,
18510 .voltage = {2700, 3600},
18511 },
18512
18513 {
18514 .vendor = "Winbond",
Kyösti Mälkkic31243e2012-10-28 01:50:08 +000018515 .name = "W39F010",
18516 .bustype = BUS_PARALLEL,
18517 .manufacture_id = WINBOND_ID,
18518 .model_id = WINBOND_W39F010,
18519 .total_size = 128,
18520 .page_size = 4 * 1024,
18521 .feature_bits = FEATURE_EITHER_RESET,
18522 .tested = TEST_OK_PREW,
18523 .probe = probe_jedec,
18524 .probe_timing = 10,
18525 .block_erasers =
18526 {
18527 {
18528 .eraseblocks = { {4 * 1024, 32} },
18529 .block_erase = erase_block_jedec,
18530 }, {
18531 .eraseblocks = { {128 * 1024, 1} },
18532 .block_erase = erase_chip_block_jedec,
18533 }
18534 },
18535 .printlock = printlock_w39f010,
18536 .write = write_jedec_1,
18537 .read = read_memmapped,
18538 .voltage = {4500, 5500},
18539 },
18540
18541 {
18542 .vendor = "Winbond",
18543 .name = "W39L010",
18544 .bustype = BUS_PARALLEL,
18545 .manufacture_id = WINBOND_ID,
18546 .model_id = WINBOND_W39L010,
18547 .total_size = 128,
18548 .page_size = 4 * 1024,
18549 .feature_bits = FEATURE_EITHER_RESET,
18550 .tested = TEST_UNTESTED,
18551 .probe = probe_jedec,
18552 .probe_timing = 10,
18553 .block_erasers =
18554 {
18555 {
18556 .eraseblocks = { {4 * 1024, 32} },
18557 .block_erase = erase_block_jedec,
18558 }, {
18559 .eraseblocks = { {128 * 1024, 1} },
18560 .block_erase = erase_chip_block_jedec,
18561 }
18562 },
18563 .printlock = printlock_w39l010,
18564 .write = write_jedec_1,
18565 .read = read_memmapped,
18566 .voltage = {3000, 3600},
18567 },
18568
18569 {
18570 .vendor = "Winbond",
18571 .name = "W39L020",
18572 .bustype = BUS_PARALLEL,
18573 .manufacture_id = WINBOND_ID,
18574 .model_id = WINBOND_W39L020,
18575 .total_size = 256,
18576 .page_size = 4 * 1024,
18577 .feature_bits = FEATURE_EITHER_RESET,
18578 .tested = TEST_UNTESTED,
18579 .probe = probe_jedec,
18580 .probe_timing = 10,
18581 .block_erasers =
18582 {
18583 {
18584 .eraseblocks = { {4 * 1024, 64} },
18585 .block_erase = erase_block_jedec,
18586 }, {
18587 .eraseblocks = { {64 * 1024, 4} },
18588 .block_erase = erase_sector_jedec,
18589 }, {
18590 .eraseblocks = { {256 * 1024, 1} },
18591 .block_erase = erase_chip_block_jedec,
18592 }
18593 },
18594 .printlock = printlock_w39l020,
18595 .write = write_jedec_1,
18596 .read = read_memmapped,
18597 .voltage = {3000, 3600},
18598 },
18599
18600 {
18601 .vendor = "Winbond",
Michael Karcher19e0aac2011-03-06 17:58:05 +000018602 .name = "W39L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018603 .bustype = BUS_PARALLEL,
Michael Karcher19e0aac2011-03-06 17:58:05 +000018604 .manufacture_id = WINBOND_ID,
18605 .model_id = WINBOND_W39L040,
18606 .total_size = 512,
18607 .page_size = 64 * 1024,
18608 .feature_bits = FEATURE_EITHER_RESET,
18609 .tested = TEST_OK_PR,
18610 .probe = probe_jedec,
18611 .probe_timing = 10,
18612 .block_erasers =
18613 {
18614 {
18615 .eraseblocks = { {4 * 1024, 128} },
18616 .block_erase = erase_block_jedec,
18617 }, {
18618 .eraseblocks = { {64 * 1024, 8} },
18619 .block_erase = erase_sector_jedec,
18620 }, {
18621 .eraseblocks = { {512 * 1024, 1} },
18622 .block_erase = erase_chip_block_jedec,
18623 }
18624 },
18625 .printlock = printlock_w39l040,
18626 .write = write_jedec_1,
18627 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000018628 .voltage = {3000, 3600},
Michael Karcher19e0aac2011-03-06 17:58:05 +000018629 },
18630
18631 {
18632 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018633 .name = "W39V040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018634 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018635 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018636 .model_id = WINBOND_W39V040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018637 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000018638 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000018639 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000018640 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018641 .probe = probe_jedec,
Stefan Tauner716e0982011-07-25 20:38:52 +000018642 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018643 .block_erasers =
18644 {
18645 {
18646 .eraseblocks = { {64 * 1024, 8} },
18647 .block_erase = erase_sector_jedec,
18648 }, {
18649 .eraseblocks = { {512 * 1024, 1} },
18650 .block_erase = erase_chip_block_jedec,
18651 }
18652 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018653 .printlock = printlock_w39v040a,
Sean Nelson35727f72010-01-28 23:55:12 +000018654 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018655 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018656 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000018657 },
18658
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018659 {
18660 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018661 .name = "W39V040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018662 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018663 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018664 .model_id = WINBOND_W39V040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018665 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000018666 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000018667 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000018668 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018669 .probe = probe_jedec,
Paul Menzel018d4822011-10-21 12:33:07 +000018670 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018671 .block_erasers =
18672 {
18673 {
18674 .eraseblocks = { {64 * 1024, 8} },
18675 .block_erase = erase_sector_jedec,
18676 }, {
18677 .eraseblocks = { {512 * 1024, 1} },
18678 .block_erase = erase_chip_block_jedec,
18679 }
18680 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018681 .printlock = printlock_w39v040b,
Sean Nelson35727f72010-01-28 23:55:12 +000018682 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018683 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018684 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000018685 },
18686
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018687 {
18688 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018689 .name = "W39V040C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018690 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018691 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018692 .model_id = WINBOND_W39V040C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018693 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000018694 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000018695 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000018696 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +000018697 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018698 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018699 .block_erasers =
18700 {
18701 {
18702 .eraseblocks = { {64 * 1024, 8} },
18703 .block_erase = erase_sector_jedec,
18704 }, {
18705 .eraseblocks = { {512 * 1024, 1} },
18706 .block_erase = erase_chip_block_jedec,
18707 }
18708 },
Sean Nelson6e0b9122010-02-19 00:52:10 +000018709 .printlock = printlock_w39v040c,
Sean Nelson35727f72010-01-28 23:55:12 +000018710 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018711 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018712 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000018713 },
18714
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018715 {
18716 .vendor = "Winbond",
18717 .name = "W39V040FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018718 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018719 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018720 .model_id = WINBOND_W39V040FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018721 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000018722 .page_size = 64 * 1024,
Michael Karcherc9b63412010-05-30 16:55:18 +000018723 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner23e10b82016-01-23 16:16:49 +000018724 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018725 .probe = probe_jedec,
Antony Rheneus0fbba982011-05-26 14:28:51 +000018726 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018727 .block_erasers =
18728 {
18729 {
18730 .eraseblocks = { {4 * 1024, 128} },
18731 .block_erase = erase_block_jedec,
18732 }, {
18733 .eraseblocks = { {64 * 1024, 8} },
18734 .block_erase = erase_sector_jedec,
18735 }, {
18736 .eraseblocks = { {512 * 1024, 1} },
18737 .block_erase = erase_chip_block_jedec,
18738 }
18739 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018740 .printlock = printlock_w39v040fa,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000018741 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000018742 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018743 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018744 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000018745 },
18746
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018747 {
18748 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018749 .name = "W39V040FB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018750 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018751 .manufacture_id = WINBOND_ID,
18752 .model_id = WINBOND_W39V040B,
18753 .total_size = 512,
18754 .page_size = 64 * 1024,
18755 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner0be072c2016-03-13 15:16:30 +000018756 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018757 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000018758 .probe_timing = 10,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018759 .block_erasers =
18760 {
18761 {
18762 .eraseblocks = { {64 * 1024, 8} },
18763 .block_erase = erase_sector_jedec,
18764 }, {
18765 .eraseblocks = { {512 * 1024, 1} },
18766 .block_erase = erase_chip_block_jedec,
18767 }
18768 },
18769 .printlock = printlock_w39v040fb,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000018770 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018771 .write = write_jedec_1,
18772 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000018773 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018774 },
18775
18776 {
18777 .vendor = "Winbond",
18778 .name = "W39V040FC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018779 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018780 .manufacture_id = WINBOND_ID,
18781 .model_id = WINBOND_W39V040C,
18782 .total_size = 512,
18783 .page_size = 64 * 1024,
18784 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +000018785 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018786 .probe = probe_jedec,
18787 .probe_timing = 10,
18788 .block_erasers =
18789 {
18790 {
18791 .eraseblocks = { {64 * 1024, 8} },
18792 .block_erase = erase_sector_jedec,
18793 }, {
18794 .eraseblocks = { {512 * 1024, 1} },
18795 .block_erase = erase_chip_block_jedec,
18796 }
18797 },
18798 .printlock = printlock_w39v040fc,
18799 .write = write_jedec_1,
18800 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000018801 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018802 },
18803
18804 {
18805 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018806 .name = "W39V080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018807 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018808 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018809 .model_id = WINBOND_W39V080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018810 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000018811 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000018812 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +000018813 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018814 .probe = probe_jedec,
Paul Menzelac427b22012-02-16 21:07:07 +000018815 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018816 .block_erasers =
18817 {
18818 {
18819 .eraseblocks = { {64 * 1024, 16} },
18820 .block_erase = erase_sector_jedec,
18821 }, {
18822 .eraseblocks = { {1024 * 1024, 1} },
18823 .block_erase = erase_chip_block_jedec,
18824 }
18825 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018826 .printlock = printlock_w39v080a,
Sean Nelson35727f72010-01-28 23:55:12 +000018827 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018828 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018829 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000018830 },
18831
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018832 {
18833 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018834 .name = "W39V080FA",
18835 .bustype = BUS_FWH,
18836 .manufacture_id = WINBOND_ID,
18837 .model_id = WINBOND_W39V080FA,
18838 .total_size = 1024,
18839 .page_size = 64 * 1024,
18840 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
18841 .tested = TEST_OK_PREW,
18842 .probe = probe_jedec,
18843 .probe_timing = 10,
18844 .block_erasers =
18845 {
18846 {
18847 .eraseblocks = { {64 * 1024, 16} },
18848 .block_erase = erase_sector_jedec,
18849 }, {
18850 .eraseblocks = { {1024 * 1024, 1} },
18851 .block_erase = erase_chip_block_jedec,
18852 }
18853 },
18854 .printlock = printlock_w39v080fa,
18855 .unlock = unlock_regspace2_uniform_64k,
18856 .write = write_jedec_1,
18857 .read = read_memmapped,
18858 .voltage = {3000, 3600}, /* Also has 12V fast program */
18859 },
18860
18861 {
18862 .vendor = "Winbond",
18863 .name = "W39V080FA (dual mode)",
18864 .bustype = BUS_FWH,
18865 .manufacture_id = WINBOND_ID,
18866 .model_id = WINBOND_W39V080FA_DM,
18867 .total_size = 512,
18868 .page_size = 64 * 1024,
18869 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
18870 .tested = TEST_UNTESTED,
18871 .probe = probe_jedec,
18872 .probe_timing = 10,
18873 .block_erasers =
18874 {
18875 {
18876 .eraseblocks = { {64 * 1024, 8} },
18877 .block_erase = erase_sector_jedec,
18878 }, {
18879 .eraseblocks = { {512 * 1024, 1} },
18880 .block_erase = erase_chip_block_jedec,
18881 }
18882 },
18883 .printlock = printlock_w39v080fa_dual,
18884 .write = write_jedec_1,
18885 .read = read_memmapped,
18886 .voltage = {3000, 3600}, /* Also has 12V fast program */
18887 },
18888
18889 {
18890 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000018891 .name = "W49F002U/N",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018892 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018893 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018894 .model_id = WINBOND_W49F002U,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018895 .total_size = 256,
18896 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000018897 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000018898 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018899 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000018900 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018901 .block_erasers =
18902 {
18903 {
18904 .eraseblocks = {
18905 {128 * 1024, 1},
18906 {96 * 1024, 1},
18907 {8 * 1024, 2},
18908 {16 * 1024, 1},
18909 },
18910 .block_erase = erase_sector_jedec,
18911 }, {
18912 .eraseblocks = { {256 * 1024, 1} },
18913 .block_erase = erase_chip_block_jedec,
18914 }
18915 },
Sean Nelson35727f72010-01-28 23:55:12 +000018916 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018917 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018918 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000018919 },
18920
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018921 {
18922 .vendor = "Winbond",
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000018923 .name = "W49F020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018924 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000018925 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018926 .model_id = WINBOND_W49F020,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000018927 .total_size = 256,
18928 .page_size = 128,
18929 .feature_bits = FEATURE_EITHER_RESET,
18930 .tested = TEST_OK_PROBE,
18931 .probe = probe_jedec,
18932 .probe_timing = 10,
18933 .block_erasers =
18934 {
18935 {
18936 .eraseblocks = { {256 * 1024, 1} },
18937 .block_erase = erase_chip_block_jedec,
18938 }
18939 },
18940 .write = write_jedec_1,
18941 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018942 .voltage = {4500, 5500},
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000018943 },
18944
18945 {
18946 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018947 .name = "W49V002A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018948 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018949 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018950 .model_id = WINBOND_W49V002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018951 .total_size = 256,
18952 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000018953 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000018954 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018955 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000018956 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018957 .block_erasers =
18958 {
18959 {
18960 .eraseblocks = {
18961 {64 * 1024, 3},
18962 {32 * 1024, 1},
18963 {8 * 1024, 2},
18964 {16 * 1024, 1},
18965 },
18966 .block_erase = erase_sector_jedec,
18967 }, {
18968 .eraseblocks = { {256 * 1024, 1} },
18969 .block_erase = erase_chip_block_jedec,
18970 }
18971 },
Sean Nelson35727f72010-01-28 23:55:12 +000018972 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018973 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018974 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000018975 },
18976
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018977 {
18978 .vendor = "Winbond",
18979 .name = "W49V002FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018980 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018981 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018982 .model_id = WINBOND_W49V002FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018983 .total_size = 256,
18984 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000018985 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000018986 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018987 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000018988 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018989 .block_erasers =
18990 {
18991 {
18992 .eraseblocks = {
18993 {64 * 1024, 3},
18994 {32 * 1024, 1},
18995 {8 * 1024, 2},
18996 {16 * 1024, 1},
18997 },
18998 .block_erase = erase_sector_jedec,
18999 }, {
19000 .eraseblocks = { {256 * 1024, 1} },
19001 .block_erase = erase_chip_block_jedec,
19002 }
19003 },
Sean Nelson35727f72010-01-28 23:55:12 +000019004 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019005 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000019006 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000019007 },
19008
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019009 {
luke heef884232020-12-28 18:22:21 +080019010 .vendor = "XMC",
19011 .name = "XM25QH128C",
19012 .bustype = BUS_SPI,
19013 .manufacture_id = ST_ID,
19014 .model_id = XMC_XM25QH128C,
19015 .total_size = 16384,
19016 .page_size = 256,
19017 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
19018 .tested = TEST_UNTESTED,
19019 .probe = probe_spi_rdid,
19020 .probe_timing = TIMING_ZERO,
19021 .block_erasers =
19022 {
19023 {
19024 .eraseblocks = { {4 * 1024, 4096} },
19025 .block_erase = spi_block_erase_20,
19026 }, {
19027 .eraseblocks = { {32 * 1024, 512} },
19028 .block_erase = spi_block_erase_52,
19029 }, {
19030 .eraseblocks = { {64 * 1024, 256} },
19031 .block_erase = spi_block_erase_d8,
19032 }, {
19033 .eraseblocks = { {16 * 1024 * 1024, 1} },
19034 .block_erase = spi_block_erase_60,
19035 }, {
19036 .eraseblocks = { {16 * 1024 * 1024, 1} },
19037 .block_erase = spi_block_erase_c7,
19038 }
19039 },
19040 .printlock = spi_prettyprint_status_register_plain,
19041 .unlock = spi_disable_blockprotect,
19042 .write = spi_chip_write_256,
19043 .read = spi_chip_read,
19044 .voltage = {2700, 3600},
19045 },
19046
19047 {
19048 .vendor = "XMC",
19049 .name = "XM25QH256C",
19050 .bustype = BUS_SPI,
19051 .manufacture_id = ST_ID,
19052 .model_id = XMC_XM25QH256C,
19053 .total_size = 32768,
19054 .page_size = 256,
19055 /* supports SFDP */
19056 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
19057 .tested = TEST_UNTESTED,
19058 .probe = probe_spi_rdid,
19059 .probe_timing = TIMING_ZERO,
19060 .block_erasers =
19061 {
19062 {
19063 .eraseblocks = { {4 * 1024, 8192} },
19064 .block_erase = spi_block_erase_21,
19065 }, {
19066 .eraseblocks = { {4 * 1024, 8192} },
19067 .block_erase = spi_block_erase_20,
19068 }, {
19069 .eraseblocks = { {32 * 1024, 1024} },
19070 .block_erase = spi_block_erase_52,
19071 }, {
19072 .eraseblocks = { {64 * 1024, 512} },
19073 .block_erase = spi_block_erase_dc,
19074 }, {
19075 .eraseblocks = { {64 * 1024, 512} },
19076 .block_erase = spi_block_erase_d8,
19077 }, {
19078 .eraseblocks = { {32 * 1024 * 1024, 1} },
19079 .block_erase = spi_block_erase_60,
19080 }, {
19081 .eraseblocks = { {32 * 1024 * 1024, 1} },
19082 .block_erase = spi_block_erase_c7,
19083 }
19084 },
19085 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19086 .unlock = spi_disable_blockprotect,
19087 .write = spi_chip_write_256,
19088 .read = spi_chip_read,
19089 .voltage = {2700, 3600},
19090 },
19091
19092 {
19093 .vendor = "XMC",
19094 .name = "XM25QH64C",
19095 .bustype = BUS_SPI,
19096 .manufacture_id = ST_ID,
19097 .model_id = XMC_XM25QH64C,
19098 .total_size = 8192,
19099 .page_size = 256,
19100 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
19101 .tested = TEST_UNTESTED,
19102 .probe = probe_spi_rdid,
19103 .probe_timing = TIMING_ZERO,
19104 .block_erasers =
19105 {
19106 {
19107 .eraseblocks = { {4 * 1024, 2048} },
19108 .block_erase = spi_block_erase_20,
19109 }, {
19110 .eraseblocks = { {32 * 1024, 256} },
19111 .block_erase = spi_block_erase_52,
19112 }, {
19113 .eraseblocks = { {64 * 1024, 128} },
19114 .block_erase = spi_block_erase_d8,
19115 }, {
19116 .eraseblocks = { {8 * 1024 * 1024, 1} },
19117 .block_erase = spi_block_erase_60,
19118 }, {
19119 .eraseblocks = { {8 * 1024 * 1024, 1} },
19120 .block_erase = spi_block_erase_c7,
19121 }
19122 },
19123 .printlock = spi_prettyprint_status_register_plain,
19124 .unlock = spi_disable_blockprotect,
19125 .write = spi_chip_write_256,
19126 .read = spi_chip_read,
19127 .voltage = {2700, 3600},
19128 },
19129
19130 {
19131 .vendor = "XMC",
19132 .name = "XM25QU128C",
19133 .bustype = BUS_SPI,
19134 .manufacture_id = ST_ID,
19135 .model_id = XMC_XM25QU128C,
19136 .total_size = 16384,
19137 .page_size = 256,
19138 /* supports SFDP */
19139 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
19140 .tested = TEST_UNTESTED,
19141 .probe = probe_spi_rdid,
19142 .probe_timing = TIMING_ZERO,
19143 .block_erasers =
19144 {
19145 {
19146 .eraseblocks = { {4 * 1024, 4096} },
19147 .block_erase = spi_block_erase_20,
19148 }, {
19149 .eraseblocks = { {32 * 1024, 512} },
19150 .block_erase = spi_block_erase_52,
19151 }, {
19152 .eraseblocks = { {64 * 1024, 256} },
19153 .block_erase = spi_block_erase_d8,
19154 }, {
19155 .eraseblocks = { {16 * 1024 * 1024, 1} },
19156 .block_erase = spi_block_erase_60,
19157 }, {
19158 .eraseblocks = { {16 * 1024 * 1024, 1} },
19159 .block_erase = spi_block_erase_c7,
19160 }
19161 },
19162 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19163 .unlock = spi_disable_blockprotect,
19164 .write = spi_chip_write_256,
19165 .read = spi_chip_read,
19166 .voltage = {1650, 1950},
19167 },
19168
19169 {
19170 .vendor = "XMC",
19171 .name = "XM25QU256C",
19172 .bustype = BUS_SPI,
19173 .manufacture_id = ST_ID,
19174 .model_id = XMC_XM25QU256C,
19175 .total_size = 32768,
19176 .page_size = 256,
19177 /* supports SFDP */
19178 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
19179 .tested = TEST_UNTESTED,
19180 .probe = probe_spi_rdid,
19181 .probe_timing = TIMING_ZERO,
19182 .block_erasers =
19183 {
19184 {
19185 .eraseblocks = { {4 * 1024, 8192} },
19186 .block_erase = spi_block_erase_21,
19187 }, {
19188 .eraseblocks = { {4 * 1024, 8192} },
19189 .block_erase = spi_block_erase_20,
19190 }, {
19191 .eraseblocks = { {32 * 1024, 1024} },
19192 .block_erase = spi_block_erase_52,
19193 }, {
19194 .eraseblocks = { {64 * 1024, 512} },
19195 .block_erase = spi_block_erase_dc,
19196 }, {
19197 .eraseblocks = { {64 * 1024, 512} },
19198 .block_erase = spi_block_erase_d8,
19199 }, {
19200 .eraseblocks = { {32 * 1024 * 1024, 1} },
19201 .block_erase = spi_block_erase_60,
19202 }, {
19203 .eraseblocks = { {32 * 1024 * 1024, 1} },
19204 .block_erase = spi_block_erase_c7,
19205 }
19206 },
19207 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19208 .unlock = spi_disable_blockprotect,
19209 .write = spi_chip_write_256,
19210 .read = spi_chip_read,
19211 .voltage = {1650, 1950},
19212 },
19213
19214 {
19215 .vendor = "XMC",
19216 .name = "XM25QU64C",
19217 .bustype = BUS_SPI,
19218 .manufacture_id = ST_ID,
19219 .model_id = XMC_XM25QU64C,
19220 .total_size = 8192,
19221 .page_size = 256,
19222 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
19223 .tested = TEST_UNTESTED,
19224 .probe = probe_spi_rdid,
19225 .probe_timing = TIMING_ZERO,
19226 .block_erasers =
19227 {
19228 {
19229 .eraseblocks = { {4 * 1024, 2048} },
19230 .block_erase = spi_block_erase_20,
19231 }, {
19232 .eraseblocks = { {32 * 1024, 256} },
19233 .block_erase = spi_block_erase_52,
19234 }, {
19235 .eraseblocks = { {64 * 1024, 128} },
19236 .block_erase = spi_block_erase_d8,
19237 }, {
19238 .eraseblocks = { {8 * 1024 * 1024, 1} },
19239 .block_erase = spi_block_erase_60,
19240 }, {
19241 .eraseblocks = { {8 * 1024 * 1024, 1} },
19242 .block_erase = spi_block_erase_c7,
19243 }
19244 },
19245 .printlock = spi_prettyprint_status_register_plain,
19246 .unlock = spi_disable_blockprotect,
19247 .write = spi_chip_write_256,
19248 .read = spi_chip_read,
19249 .voltage = {1650, 1950},
19250 },
19251
19252 {
Alan Greenfa3fcd32019-06-27 15:41:50 +100019253 .vendor = "Zetta Device",
19254 .name = "ZD25D20",
19255 .bustype = BUS_SPI,
19256 .manufacture_id = ZETTADEVICE_ID,
19257 .model_id = ZETTADEVICE_ZD25D20,
19258 .total_size = 256,
19259 .page_size = 256,
19260 .feature_bits = FEATURE_WRSR_WREN,
19261 .tested = TEST_UNTESTED,
19262 .probe = probe_spi_rdid,
19263 .probe_timing = TIMING_ZERO,
19264 .block_erasers =
David Hendricksa72d5a92018-02-11 17:58:44 -080019265 {
19266 {
19267 .eraseblocks = { {4 * 1024, 64} },
19268 .block_erase = spi_block_erase_20,
19269 }, {
19270 .eraseblocks = { {32 * 1024, 8} },
19271 .block_erase = spi_block_erase_52,
19272 }, {
19273 .eraseblocks = { {64 * 1024, 4} },
19274 .block_erase = spi_block_erase_d8,
19275 }, {
19276 .eraseblocks = { {256 * 1024, 1} },
19277 .block_erase = spi_block_erase_60,
19278 }, {
19279 .eraseblocks = { {256 * 1024, 1} },
19280 .block_erase = spi_block_erase_c7,
19281 }
19282 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100019283 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19284 .unlock = spi_disable_blockprotect,
19285 .write = spi_chip_write_256,
19286 .read = spi_chip_read,
19287 .voltage = {2700, 3600},
David Hendricksa72d5a92018-02-11 17:58:44 -080019288 },
19289
19290 {
Alan Greenfa3fcd32019-06-27 15:41:50 +100019291 .vendor = "Zetta Device",
19292 .name = "ZD25D40",
19293 .bustype = BUS_SPI,
19294 .manufacture_id = ZETTADEVICE_ID,
19295 .model_id = ZETTADEVICE_ZD25D40,
19296 .total_size = 512,
19297 .page_size = 256,
19298 .feature_bits = FEATURE_WRSR_WREN,
19299 .tested = TEST_UNTESTED,
19300 .probe = probe_spi_rdid,
19301 .probe_timing = TIMING_ZERO,
19302 .block_erasers =
nybashcbb46e22018-02-11 17:53:49 -080019303 {
19304 {
19305 .eraseblocks = { {4 * 1024, 128} },
19306 .block_erase = spi_block_erase_20,
19307 }, {
19308 .eraseblocks = { {32 * 1024, 16} },
19309 .block_erase = spi_block_erase_52,
19310 }, {
19311 .eraseblocks = { {64 * 1024, 8} },
19312 .block_erase = spi_block_erase_d8,
19313 }, {
19314 .eraseblocks = { {512 * 1024, 1} },
19315 .block_erase = spi_block_erase_60,
19316 }, {
19317 .eraseblocks = { {512 * 1024, 1} },
19318 .block_erase = spi_block_erase_c7,
19319 }
19320 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100019321 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19322 .unlock = spi_disable_blockprotect,
19323 .write = spi_chip_write_256,
19324 .read = spi_chip_read,
19325 .voltage = {2700, 3600},
nybashcbb46e22018-02-11 17:53:49 -080019326 },
19327
Stefan Taunerac1b4c82012-02-17 14:51:04 +000019328 {
Alan Greendd592202019-08-23 10:11:37 +100019329 .vendor = "Unknown",
19330 .name = "SFDP-capable chip",
19331 .bustype = BUS_SPI,
19332 .manufacture_id = GENERIC_MANUF_ID,
19333 .model_id = SFDP_DEVICE_ID,
19334 .total_size = 0, /* set by probing function */
19335 .page_size = 0, /* set by probing function */
19336 .feature_bits = 0, /* set by probing function */
19337 /* We present our own "report this" text hence we do not */
19338 /* want the default "This flash part has status UNTESTED..." */
19339 /* text to be printed. */
19340 .tested = TEST_OK_PREW,
19341 .probe = probe_spi_sfdp,
19342 .block_erasers = {}, /* set by probing function */
19343 .unlock = spi_disable_blockprotect, /* is this safe? */
19344 .write = NULL, /* set by probing function */
19345 .read = spi_chip_read,
19346 /* FIXME: some vendor extensions define this */
19347 .voltage = {0},
19348 },
19349
19350 {
Carl-Daniel Hailfinger532c7172011-11-04 21:35:26 +000019351 .vendor = "Programmer",
19352 .name = "Opaque flash chip",
19353 .bustype = BUS_PROG,
19354 .manufacture_id = PROGMANUF_ID,
19355 .model_id = PROGDEV_ID,
19356 .total_size = 0,
19357 .page_size = 256,
19358 /* probe is assumed to work, rest will be filled in by probe */
19359 .tested = TEST_OK_PROBE,
19360 .probe = probe_opaque,
19361 /* eraseblock sizes will be set by the probing function */
19362 .block_erasers =
19363 {
19364 {
19365 .block_erase = erase_opaque,
19366 }
19367 },
19368 .write = write_opaque,
19369 .read = read_opaque,
19370 },
19371
19372 {
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000019373 .vendor = "AMIC",
19374 .name = "unknown AMIC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019375 .bustype = BUS_SPI,
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000019376 .manufacture_id = AMIC_ID,
19377 .model_id = GENERIC_DEVICE_ID,
19378 .total_size = 0,
19379 .page_size = 256,
19380 .tested = TEST_BAD_PREW,
19381 .probe = probe_spi_rdid4,
19382 .probe_timing = TIMING_ZERO,
19383 .write = NULL,
19384 .read = NULL,
19385 },
19386
19387 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019388 .vendor = "Atmel",
19389 .name = "unknown Atmel SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019390 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019391 .manufacture_id = ATMEL_ID,
19392 .model_id = GENERIC_DEVICE_ID,
19393 .total_size = 0,
19394 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000019395 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019396 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000019397 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019398 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019399 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000019400 },
19401
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019402 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +000019403 .vendor = "Eon",
19404 .name = "unknown Eon SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019405 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019406 .manufacture_id = EON_ID_NOPREFIX,
19407 .model_id = GENERIC_DEVICE_ID,
19408 .total_size = 0,
19409 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000019410 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019411 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000019412 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019413 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019414 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000019415 },
19416
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019417 {
19418 .vendor = "Macronix",
19419 .name = "unknown Macronix SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019420 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000019421 .manufacture_id = MACRONIX_ID,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019422 .model_id = GENERIC_DEVICE_ID,
19423 .total_size = 0,
19424 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000019425 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019426 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000019427 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019428 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019429 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000019430 },
19431
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019432 {
19433 .vendor = "PMC",
19434 .name = "unknown PMC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019435 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019436 .manufacture_id = PMC_ID,
19437 .model_id = GENERIC_DEVICE_ID,
19438 .total_size = 0,
19439 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000019440 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019441 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000019442 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019443 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019444 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000019445 },
19446
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019447 {
19448 .vendor = "SST",
19449 .name = "unknown SST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019450 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019451 .manufacture_id = SST_ID,
19452 .model_id = GENERIC_DEVICE_ID,
19453 .total_size = 0,
19454 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000019455 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019456 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000019457 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019458 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019459 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000019460 },
19461
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019462 {
19463 .vendor = "ST",
19464 .name = "unknown ST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019465 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019466 .manufacture_id = ST_ID,
19467 .model_id = GENERIC_DEVICE_ID,
19468 .total_size = 0,
19469 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000019470 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019471 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000019472 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019473 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019474 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000019475 },
Uwe Hermannfc425e82008-03-16 02:06:25 +000019476
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000019477 {
Sean Nelson118e1d62009-11-24 02:08:11 +000019478 .vendor = "Sanyo",
19479 .name = "unknown Sanyo SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019480 .bustype = BUS_SPI,
Sean Nelson118e1d62009-11-24 02:08:11 +000019481 .manufacture_id = SANYO_ID,
19482 .model_id = GENERIC_DEVICE_ID,
19483 .total_size = 0,
19484 .page_size = 256,
19485 .tested = TEST_BAD_PREW,
19486 .probe = probe_spi_rdid,
19487 .probe_timing = TIMING_ZERO,
Sean Nelson118e1d62009-11-24 02:08:11 +000019488 .write = NULL,
19489 .read = NULL,
19490 },
19491
19492 {
Stefan Taunereb582572012-09-21 12:52:50 +000019493 .vendor = "Winbond",
19494 .name = "unknown Winbond (ex Nexcom) SPI chip",
19495 .bustype = BUS_SPI,
19496 .manufacture_id = WINBOND_NEX_ID,
19497 .model_id = GENERIC_DEVICE_ID,
19498 .total_size = 0,
19499 .page_size = 256,
19500 .tested = TEST_BAD_PREW,
19501 .probe = probe_spi_rdid,
19502 .probe_timing = TIMING_ZERO,
19503 .write = NULL,
19504 .read = NULL,
19505 },
19506
19507 {
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000019508 .vendor = "Generic",
19509 .name = "unknown SPI chip (RDID)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019510 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000019511 .manufacture_id = GENERIC_MANUF_ID,
19512 .model_id = GENERIC_DEVICE_ID,
19513 .total_size = 0,
19514 .page_size = 256,
19515 .tested = TEST_BAD_PREW,
19516 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000019517 .write = NULL,
19518 },
Stefan Tauneraf2db612011-12-02 21:48:17 +000019519
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000019520 {
19521 .vendor = "Generic",
19522 .name = "unknown SPI chip (REMS)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019523 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000019524 .manufacture_id = GENERIC_MANUF_ID,
19525 .model_id = GENERIC_DEVICE_ID,
19526 .total_size = 0,
19527 .page_size = 256,
19528 .tested = TEST_BAD_PREW,
19529 .probe = probe_spi_rems,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000019530 .write = NULL,
19531 },
19532
Stefan Tauner96658be2014-05-26 22:05:31 +000019533 {0}
Stephan Guilloux72cf5652009-04-21 01:46:07 +000019534};
Stefan Tauner96658be2014-05-26 22:05:31 +000019535
19536const unsigned int flashchips_size = ARRAY_SIZE(flashchips);