blob: 65dda0ea05858988ce1e8af12a5deab6dfd48c72 [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 {
Joshua Roysf1324e02010-09-16 00:51:51 +00003446 .vendor = "Bright",
3447 .name = "BM29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003448 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00003449 .manufacture_id = BRIGHT_ID,
3450 .model_id = BRIGHT_BM29F040,
3451 .total_size = 512,
3452 .page_size = 64 * 1024,
3453 .feature_bits = FEATURE_EITHER_RESET,
3454 .tested = TEST_OK_PR,
3455 .probe = probe_jedec,
3456 .probe_timing = TIMING_ZERO,
3457 .block_erasers =
3458 {
3459 {
3460 .eraseblocks = { {64 * 1024, 8} },
3461 .block_erase = erase_sector_jedec,
3462 }, {
3463 .eraseblocks = { {512 * 1024, 1} },
3464 .block_erase = erase_chip_block_jedec,
3465 },
3466 },
3467 .write = write_jedec_1,
3468 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003469 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00003470 },
3471
3472 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003473 .vendor = "Catalyst",
3474 .name = "CAT28F512",
3475 .bustype = BUS_PARALLEL,
3476 .manufacture_id = CATALYST_ID,
3477 .model_id = CATALYST_CAT28F512,
3478 .total_size = 64,
3479 .page_size = 0, /* unused */
3480 .feature_bits = 0,
Alan Green908adf42019-07-03 15:34:06 +10003481 .tested = {.probe = OK, .read = OK, .erase = BAD, .write = BAD},
Alan Green1f9cc7d2019-07-01 11:10:45 +10003482 .probe = probe_jedec, /* FIXME! */
3483 .probe_timing = TIMING_ZERO,
3484 .block_erasers =
3485 {
3486 {
3487 .eraseblocks = { {64 * 1024, 1} },
3488 .block_erase = NULL, /* TODO */
3489 },
3490 },
3491 .write = NULL, /* TODO */
3492 .read = read_memmapped,
3493 .voltage = {4500, 5500},
3494 },
3495
3496 {
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003497 .vendor = "ENE",
3498 .name = "KB9012 (EDI)",
3499 .bustype = BUS_SPI,
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003500 .total_size = 128,
3501 .page_size = 128,
3502 .feature_bits = FEATURE_ERASED_ZERO,
3503 .tested = TEST_OK_PREW,
Alan Greenc1863ca2019-06-27 15:08:03 +10003504 .spi_cmd_set = SPI_EDI,
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003505 .probe = edi_probe_kb9012,
3506 .probe_timing = TIMING_ZERO,
3507 .block_erasers =
3508 {
3509 {
3510 .eraseblocks = { {128, 1024} },
3511 .block_erase = edi_chip_block_erase,
3512 },
3513 },
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003514 .write = edi_chip_write,
3515 .read = edi_chip_read,
3516 .voltage = {2700, 3600},
Alan Greenc1863ca2019-06-27 15:08:03 +10003517 .gran = write_gran_128bytes,
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003518 },
3519
3520 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003521 .vendor = "ESI",
3522 .name = "ES25P16",
3523 .bustype = BUS_SPI,
3524 .manufacture_id = EXCEL_ID_NOPREFIX,
3525 .model_id = EXCEL_ES25P16,
3526 .total_size = 2 * 1024,
3527 .page_size = 256,
3528 /* 256-byte parameter page separate from memory array:
3529 * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
3530 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003531 .tested = TEST_UNTESTED,
Alan Green1f9cc7d2019-07-01 11:10:45 +10003532 .probe = probe_spi_rdid,
3533 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003534 .block_erasers =
3535 {
3536 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003537 .eraseblocks = { {64 * 1024, 32} },
3538 .block_erase = spi_block_erase_d8,
Sean Nelson54596372010-01-09 05:30:14 +00003539 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003540 .eraseblocks = { {2 * 1024 * 1024, 1} },
3541 .block_erase = spi_block_erase_c7,
Sean Nelson54596372010-01-09 05:30:14 +00003542 }
3543 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10003544 .printlock = spi_prettyprint_status_register_bp2_srwd,
3545 .unlock = spi_disable_blockprotect_bp2_srwd,
3546 .write = spi_chip_write_256,
3547 .read = spi_chip_read, /* Fast Read (0x0B) supported */
3548 .voltage = {2700, 3600},
3549 },
3550
3551 {
3552 .vendor = "ESI",
3553 .name = "ES25P40",
3554 .bustype = BUS_SPI,
3555 .manufacture_id = EXCEL_ID_NOPREFIX,
3556 .model_id = EXCEL_ES25P40,
3557 .total_size = 512,
3558 .page_size = 256,
3559 /* 256-byte parameter page separate from memory array:
3560 * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
3561 .feature_bits = FEATURE_WRSR_WREN,
3562 .tested = TEST_UNTESTED,
3563 .probe = probe_spi_rdid,
3564 .probe_timing = TIMING_ZERO,
3565 .block_erasers =
3566 {
3567 {
3568 .eraseblocks = { {64 * 1024, 8} },
3569 .block_erase = spi_block_erase_d8,
3570 }, {
3571 .eraseblocks = { {512 * 1024, 1} },
3572 .block_erase = spi_block_erase_c7,
3573 }
3574 },
3575 .printlock = spi_prettyprint_status_register_bp2_srwd,
3576 .unlock = spi_disable_blockprotect_bp2_srwd,
3577 .write = spi_chip_write_256,
3578 .read = spi_chip_read, /* Fast Read (0x0B) supported */
3579 .voltage = {2700, 3600},
3580 },
3581
3582 {
3583 .vendor = "ESI",
3584 .name = "ES25P80",
3585 .bustype = BUS_SPI,
3586 .manufacture_id = EXCEL_ID_NOPREFIX,
3587 .model_id = EXCEL_ES25P80,
3588 .total_size = 1024,
3589 .page_size = 256,
3590 /* 256-byte parameter page separate from memory array:
3591 * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
3592 .feature_bits = FEATURE_WRSR_WREN,
3593 .tested = TEST_UNTESTED,
3594 .probe = probe_spi_rdid,
3595 .probe_timing = TIMING_ZERO,
3596 .block_erasers =
3597 {
3598 {
3599 .eraseblocks = { {64 * 1024, 16} },
3600 .block_erase = spi_block_erase_d8,
3601 }, {
3602 .eraseblocks = { {1024 * 1024, 1} },
3603 .block_erase = spi_block_erase_c7,
3604 }
3605 },
3606 .printlock = spi_prettyprint_status_register_bp2_srwd,
3607 .unlock = spi_disable_blockprotect_bp2_srwd,
3608 .write = spi_chip_write_256,
3609 .read = spi_chip_read, /* Fast Read (0x0B) supported */
3610 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00003611 },
3612
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003613 {
Stefan Tauner352e50b2013-02-22 15:58:45 +00003614 .vendor = "ESMT",
Michael Karcher80a59ea2010-06-19 22:06:35 +00003615 .name = "F25L008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003616 .bustype = BUS_SPI,
Stefan Tauner352e50b2013-02-22 15:58:45 +00003617 .manufacture_id = ESMT_ID,
3618 .model_id = ESMT_F25L008A,
Michael Karcher80a59ea2010-06-19 22:06:35 +00003619 .total_size = 1024,
3620 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003621 .feature_bits = FEATURE_WRSR_EITHER,
Stefan Taunereb582572012-09-21 12:52:50 +00003622 .tested = TEST_OK_PREW,
Michael Karcher80a59ea2010-06-19 22:06:35 +00003623 .probe = probe_spi_rdid,
3624 .probe_timing = TIMING_ZERO,
3625 .block_erasers =
3626 {
3627 {
3628 .eraseblocks = { {4 * 1024, 256} },
3629 .block_erase = spi_block_erase_20,
3630 }, {
3631 .eraseblocks = { {64 * 1024, 16} },
3632 .block_erase = spi_block_erase_d8,
3633 }, {
3634 .eraseblocks = { {1024 * 1024, 1} },
3635 .block_erase = spi_block_erase_60,
3636 }, {
3637 .eraseblocks = { {1024 * 1024, 1} },
3638 .block_erase = spi_block_erase_c7,
3639 }
3640 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003641 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003642 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger9a795d82010-07-14 16:19:05 +00003643 .write = spi_chip_write_1,
Michael Karcher4497e862010-07-10 19:34:15 +00003644 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003645 .voltage = {2700, 3600},
Michael Karcher80a59ea2010-06-19 22:06:35 +00003646 },
3647
3648 {
Stefan Tauner85f09f72014-05-27 21:27:14 +00003649 .vendor = "ESMT",
3650 .name = "F25L32PA",
3651 .bustype = BUS_SPI,
3652 .manufacture_id = ESMT_ID,
3653 .model_id = ESMT_F25L32PA,
3654 .total_size = 4096,
3655 .page_size = 256,
3656 .feature_bits = FEATURE_WRSR_EITHER | FEATURE_OTP,
3657 .tested = TEST_UNTESTED,
3658 .probe = probe_spi_rdid,
3659 .probe_timing = TIMING_ZERO,
3660 .block_erasers =
3661 {
3662 {
3663 .eraseblocks = { {4 * 1024, 1024} },
3664 .block_erase = spi_block_erase_20,
3665 }, {
3666 .eraseblocks = { {64 * 1024, 64} },
3667 .block_erase = spi_block_erase_d8,
3668 }, {
3669 .eraseblocks = { {4 * 1024 * 1024, 1} },
3670 .block_erase = spi_block_erase_60,
3671 }, {
3672 .eraseblocks = { {4 * 1024 * 1024, 1} },
3673 .block_erase = spi_block_erase_c7,
3674 }
3675 },
3676 .printlock = spi_prettyprint_status_register_bp2_bpl,
3677 .unlock = spi_disable_blockprotect,
3678 .write = spi_chip_write_256,
3679 .read = spi_chip_read,
3680 .voltage = {2700, 3600},
3681 },
3682
3683 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003684 .vendor = "ESMT",
3685 .name = "F49B002UA",
3686 .bustype = BUS_PARALLEL,
3687 .manufacture_id = ESMT_ID,
3688 .model_id = ESMT_F49B002UA,
3689 .total_size = 256,
3690 .page_size = 4096,
3691 .feature_bits = FEATURE_EITHER_RESET,
3692 .tested = TEST_UNTESTED,
3693 .probe = probe_jedec,
3694 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3695 .block_erasers =
3696 {
3697 {
3698 .eraseblocks = {
3699 {128 * 1024, 1},
3700 {96 * 1024, 1},
3701 {8 * 1024, 2},
3702 {16 * 1024, 1},
3703 },
3704 .block_erase = erase_sector_jedec,
3705 }, {
3706 .eraseblocks = { {256 * 1024, 1} },
3707 .block_erase = erase_chip_block_jedec,
3708 }
3709 },
3710 .write = write_jedec_1,
3711 .read = read_memmapped,
3712 .voltage = {4500, 5500},
3713 },
3714
3715 {
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003716 .vendor = "Eon",
3717 .name = "EN25B05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003718 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003719 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003720 .model_id = EON_EN25B05,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003721 .total_size = 64,
3722 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003723 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003724 .tested = TEST_UNTESTED,
3725 .probe = probe_spi_rdid,
3726 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003727 .block_erasers =
3728 {
3729 {
3730 .eraseblocks = {
3731 {4 * 1024, 2},
3732 {8 * 1024, 1},
3733 {16 * 1024, 1},
3734 {32 * 1024, 1},
3735 },
3736 .block_erase = spi_block_erase_d8,
3737 }, {
3738 .eraseblocks = { {64 * 1024, 1} },
3739 .block_erase = spi_block_erase_c7,
3740 }
3741 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003742 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003743 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003744 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003745 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003746 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003747 },
3748
3749 {
3750 .vendor = "Eon",
3751 .name = "EN25B05T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003752 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003753 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003754 .model_id = EON_EN25B05,
Sean Nelson54596372010-01-09 05:30:14 +00003755 .total_size = 64,
3756 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003757 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003758 .tested = TEST_UNTESTED,
3759 .probe = probe_spi_rdid,
3760 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003761 .block_erasers =
3762 {
3763 {
3764 .eraseblocks = {
3765 {32 * 1024, 1},
3766 {16 * 1024, 1},
3767 {8 * 1024, 1},
3768 {4 * 1024, 2},
3769 },
3770 .block_erase = spi_block_erase_d8,
3771 }, {
3772 .eraseblocks = { {64 * 1024, 1} },
3773 .block_erase = spi_block_erase_c7,
3774 }
3775 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003776 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003777 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003778 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003779 .read = spi_chip_read, /* Fast read (0x0B) supported */
3780 .voltage = {2700, 3600},
3781 },
3782
3783 {
3784 .vendor = "Eon",
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003785 .name = "EN25B10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003786 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003787 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003788 .model_id = EON_EN25B10,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003789 .total_size = 128,
3790 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003791 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003792 .tested = TEST_UNTESTED,
3793 .probe = probe_spi_rdid,
3794 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003795 .block_erasers =
3796 {
3797 {
3798 .eraseblocks = {
3799 {4 * 1024, 2},
3800 {8 * 1024, 1},
3801 {16 * 1024, 1},
3802 {32 * 1024, 3},
3803 },
3804 .block_erase = spi_block_erase_d8,
3805 }, {
3806 .eraseblocks = { {128 * 1024, 1} },
3807 .block_erase = spi_block_erase_c7,
3808 }
3809 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003810 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003811 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003812 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003813 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003814 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003815 },
3816
3817 {
3818 .vendor = "Eon",
3819 .name = "EN25B10T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003820 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003821 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003822 .model_id = EON_EN25B10,
Sean Nelson54596372010-01-09 05:30:14 +00003823 .total_size = 128,
3824 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003825 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00003826 .tested = TEST_OK_PREW,
Sean Nelson54596372010-01-09 05:30:14 +00003827 .probe = probe_spi_rdid,
3828 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003829 .block_erasers =
3830 {
3831 {
3832 .eraseblocks = {
3833 {32 * 1024, 3},
3834 {16 * 1024, 1},
3835 {8 * 1024, 1},
3836 {4 * 1024, 2},
3837 },
3838 .block_erase = spi_block_erase_d8,
3839 }, {
3840 .eraseblocks = { {128 * 1024, 1} },
3841 .block_erase = spi_block_erase_c7,
3842 }
3843 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003844 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003845 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003846 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003847 .read = spi_chip_read, /* Fast read (0x0B) supported */
3848 .voltage = {2700, 3600},
3849 },
3850
3851 {
3852 .vendor = "Eon",
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003853 .name = "EN25B16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003854 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003855 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003856 .model_id = EON_EN25B16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003857 .total_size = 2048,
3858 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003859 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003860 .tested = TEST_UNTESTED,
3861 .probe = probe_spi_rdid,
3862 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003863 .block_erasers =
3864 {
3865 {
3866 .eraseblocks = {
3867 {4 * 1024, 2},
3868 {8 * 1024, 1},
3869 {16 * 1024, 1},
3870 {32 * 1024, 1},
3871 {64 * 1024, 31},
3872 },
3873 .block_erase = spi_block_erase_d8,
3874 }, {
3875 .eraseblocks = { {2 * 1024 * 1024, 1} },
3876 .block_erase = spi_block_erase_c7,
3877 }
3878 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003879 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003880 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003881 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003882 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003883 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003884 },
3885
3886 {
3887 .vendor = "Eon",
3888 .name = "EN25B16T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003889 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003890 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003891 .model_id = EON_EN25B16,
Sean Nelson54596372010-01-09 05:30:14 +00003892 .total_size = 2048,
3893 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003894 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003895 .tested = TEST_UNTESTED,
3896 .probe = probe_spi_rdid,
3897 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003898 .block_erasers =
3899 {
3900 {
3901 .eraseblocks = {
3902 {64 * 1024, 31},
3903 {32 * 1024, 1},
3904 {16 * 1024, 1},
3905 {8 * 1024, 1},
3906 {4 * 1024, 2},
3907 },
3908 .block_erase = spi_block_erase_d8,
3909 }, {
3910 .eraseblocks = { {2 * 1024 * 1024, 1} },
3911 .block_erase = spi_block_erase_c7,
3912 }
3913 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003914 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003915 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003916 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003917 .read = spi_chip_read, /* Fast read (0x0B) supported */
3918 .voltage = {2700, 3600},
3919 },
3920
3921 {
3922 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10003923 .name = "EN25B20",
Stefan Taunerb175af52015-01-24 15:06:27 +00003924 .bustype = BUS_SPI,
3925 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10003926 .model_id = EON_EN25B20,
3927 .total_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003928 .page_size = 256,
3929 .feature_bits = FEATURE_WRSR_WREN,
3930 .tested = TEST_UNTESTED,
3931 .probe = probe_spi_rdid,
3932 .probe_timing = TIMING_ZERO,
3933 .block_erasers =
3934 {
3935 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003936 .eraseblocks = {
3937 {4 * 1024, 2},
3938 {8 * 1024, 1},
3939 {16 * 1024, 1},
3940 {32 * 1024, 1},
3941 {64 * 1024, 3}
3942 },
Stefan Taunerb175af52015-01-24 15:06:27 +00003943 .block_erase = spi_block_erase_d8,
3944 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003945 .eraseblocks = { {256 * 1024, 1} },
3946 .block_erase = spi_block_erase_c7,
3947 }
3948 },
3949 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
3950 .unlock = spi_disable_blockprotect,
3951 .write = spi_chip_write_256,
3952 .read = spi_chip_read, /* Fast read (0x0B) supported */
3953 .voltage = {2700, 3600},
3954 },
3955
3956 {
3957 .vendor = "Eon",
3958 .name = "EN25B20T",
3959 .bustype = BUS_SPI,
3960 .manufacture_id = EON_ID_NOPREFIX,
3961 .model_id = EON_EN25B20,
3962 .total_size = 256,
3963 .page_size = 256,
3964 .feature_bits = FEATURE_WRSR_WREN,
3965 .tested = TEST_UNTESTED,
3966 .probe = probe_spi_rdid,
3967 .probe_timing = TIMING_ZERO,
3968 .block_erasers =
3969 {
3970 {
3971 .eraseblocks = {
3972 {64 * 1024, 3},
3973 {32 * 1024, 1},
3974 {16 * 1024, 1},
3975 {8 * 1024, 1},
3976 {4 * 1024, 2},
3977 },
3978 .block_erase = spi_block_erase_d8,
3979 }, {
3980 .eraseblocks = { {256 * 1024, 1} },
Stefan Taunerb175af52015-01-24 15:06:27 +00003981 .block_erase = spi_block_erase_c7,
3982 }
3983 },
3984 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
3985 .unlock = spi_disable_blockprotect,
3986 .write = spi_chip_write_256,
3987 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003988 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003989 },
3990
3991 {
3992 .vendor = "Eon",
3993 .name = "EN25B32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003994 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003995 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003996 .model_id = EON_EN25B32,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003997 .total_size = 4096,
3998 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003999 /* OTP: 512B total; enter 0x3A */
4000 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004001 .tested = TEST_UNTESTED,
4002 .probe = probe_spi_rdid,
4003 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004004 .block_erasers =
4005 {
4006 {
4007 .eraseblocks = {
4008 {4 * 1024, 2},
4009 {8 * 1024, 1},
4010 {16 * 1024, 1},
4011 {32 * 1024, 1},
4012 {64 * 1024, 63},
4013 },
4014 .block_erase = spi_block_erase_d8,
4015 }, {
4016 .eraseblocks = { {4 * 1024 * 1024, 1} },
4017 .block_erase = spi_block_erase_c7,
4018 }
4019 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004020 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004021 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00004022 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004023 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004024 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00004025 },
4026
4027 {
4028 .vendor = "Eon",
4029 .name = "EN25B32T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004030 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00004031 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004032 .model_id = EON_EN25B32,
Sean Nelson54596372010-01-09 05:30:14 +00004033 .total_size = 4096,
4034 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004035 /* OTP: 512B total; enter 0x3A */
4036 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Sean Nelson54596372010-01-09 05:30:14 +00004037 .tested = TEST_UNTESTED,
4038 .probe = probe_spi_rdid,
4039 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004040 .block_erasers =
4041 {
4042 {
4043 .eraseblocks = {
4044 {64 * 1024, 63},
4045 {32 * 1024, 1},
4046 {16 * 1024, 1},
4047 {8 * 1024, 1},
4048 {4 * 1024, 2},
4049 },
4050 .block_erase = spi_block_erase_d8,
4051 }, {
4052 .eraseblocks = { {4 * 1024 * 1024, 1} },
4053 .block_erase = spi_block_erase_c7,
4054 }
4055 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004056 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004057 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004058 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004059 .read = spi_chip_read, /* Fast read (0x0B) supported */
4060 .voltage = {2700, 3600},
4061 },
4062
4063 {
4064 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004065 .name = "EN25B40",
Stefan Taunerb175af52015-01-24 15:06:27 +00004066 .bustype = BUS_SPI,
4067 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004068 .model_id = EON_EN25B40,
4069 .total_size = 512,
Stefan Taunerb175af52015-01-24 15:06:27 +00004070 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004071 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerb175af52015-01-24 15:06:27 +00004072 .tested = TEST_UNTESTED,
4073 .probe = probe_spi_rdid,
4074 .probe_timing = TIMING_ZERO,
4075 .block_erasers =
4076 {
4077 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004078 .eraseblocks = {
4079 {4 * 1024, 2},
4080 {8 * 1024, 1},
4081 {16 * 1024, 1},
4082 {32 * 1024, 1},
4083 {64 * 1024, 7}
4084 },
Stefan Taunerb175af52015-01-24 15:06:27 +00004085 .block_erase = spi_block_erase_d8,
4086 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004087 .eraseblocks = { {512 * 1024, 1} },
4088 .block_erase = spi_block_erase_c7,
4089 }
4090 },
4091 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4092 .unlock = spi_disable_blockprotect,
4093 .write = spi_chip_write_256,
4094 .read = spi_chip_read, /* Fast read (0x0B) supported */
4095 .voltage = {2700, 3600},
4096 },
4097
4098 {
4099 .vendor = "Eon",
4100 .name = "EN25B40T",
4101 .bustype = BUS_SPI,
4102 .manufacture_id = EON_ID_NOPREFIX,
4103 .model_id = EON_EN25B40,
4104 .total_size = 512,
4105 .page_size = 256,
4106 .feature_bits = FEATURE_WRSR_WREN,
4107 .tested = TEST_UNTESTED,
4108 .probe = probe_spi_rdid,
4109 .probe_timing = TIMING_ZERO,
4110 .block_erasers =
4111 {
4112 {
4113 .eraseblocks = {
4114 {64 * 1024, 7},
4115 {32 * 1024, 1},
4116 {16 * 1024, 1},
4117 {8 * 1024, 1},
4118 {4 * 1024, 2},
4119 },
4120 .block_erase = spi_block_erase_d8,
4121 }, {
4122 .eraseblocks = { {512 * 1024, 1} },
Stefan Taunerb175af52015-01-24 15:06:27 +00004123 .block_erase = spi_block_erase_c7,
4124 }
4125 },
4126 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4127 .unlock = spi_disable_blockprotect,
4128 .write = spi_chip_write_256,
4129 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004130 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004131 },
4132
4133 {
4134 .vendor = "Eon",
4135 .name = "EN25B64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004136 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004137 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004138 .model_id = EON_EN25B64,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004139 .total_size = 8192,
4140 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004141 /* OTP: 512B total; enter 0x3A */
4142 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004143 .tested = TEST_UNTESTED,
4144 .probe = probe_spi_rdid,
4145 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004146 .block_erasers =
4147 {
4148 {
4149 .eraseblocks = {
4150 {4 * 1024, 2},
4151 {8 * 1024, 1},
4152 {16 * 1024, 1},
4153 {32 * 1024, 1},
4154 {64 * 1024, 127},
4155 },
4156 .block_erase = spi_block_erase_d8,
4157 }, {
4158 .eraseblocks = { {8 * 1024 * 1024, 1} },
4159 .block_erase = spi_block_erase_c7,
4160 }
4161 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004162 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004163 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00004164 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004165 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004166 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00004167 },
4168
4169 {
4170 .vendor = "Eon",
4171 .name = "EN25B64T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004172 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00004173 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004174 .model_id = EON_EN25B64,
Sean Nelson54596372010-01-09 05:30:14 +00004175 .total_size = 8192,
4176 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004177 /* OTP: 512B total; enter 0x3A */
4178 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Sean Nelson54596372010-01-09 05:30:14 +00004179 .tested = TEST_UNTESTED,
4180 .probe = probe_spi_rdid,
4181 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004182 .block_erasers =
4183 {
4184 {
4185 .eraseblocks = {
4186 {64 * 1024, 127},
4187 {32 * 1024, 1},
4188 {16 * 1024, 1},
4189 {8 * 1024, 1},
4190 {4 * 1024, 2},
4191 },
4192 .block_erase = spi_block_erase_d8,
4193 }, {
4194 .eraseblocks = { {8 * 1024 * 1024, 1} },
4195 .block_erase = spi_block_erase_c7,
4196 }
4197 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004198 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004199 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004200 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004201 .read = spi_chip_read, /* Fast read (0x0B) supported */
4202 .voltage = {2700, 3600},
4203 },
4204
4205 {
4206 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004207 .name = "EN25B80",
Stefan Taunerb175af52015-01-24 15:06:27 +00004208 .bustype = BUS_SPI,
4209 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004210 .model_id = EON_EN25B80,
4211 .total_size = 1024,
Stefan Taunerb175af52015-01-24 15:06:27 +00004212 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004213 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerb175af52015-01-24 15:06:27 +00004214 .tested = TEST_UNTESTED,
4215 .probe = probe_spi_rdid,
4216 .probe_timing = TIMING_ZERO,
4217 .block_erasers =
4218 {
4219 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004220 .eraseblocks = {
4221 {4 * 1024, 2},
4222 {8 * 1024, 1},
4223 {16 * 1024, 1},
4224 {32 * 1024, 1},
4225 {64 * 1024, 15}
4226 },
Stefan Taunerb175af52015-01-24 15:06:27 +00004227 .block_erase = spi_block_erase_d8,
4228 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004229 .eraseblocks = { {1024 * 1024, 1} },
4230 .block_erase = spi_block_erase_c7,
4231 }
4232 },
4233 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4234 .unlock = spi_disable_blockprotect,
4235 .write = spi_chip_write_256,
4236 .read = spi_chip_read, /* Fast read (0x0B) supported */
4237 .voltage = {2700, 3600},
4238 },
4239
4240 {
4241 .vendor = "Eon",
4242 .name = "EN25B80T",
4243 .bustype = BUS_SPI,
4244 .manufacture_id = EON_ID_NOPREFIX,
4245 .model_id = EON_EN25B80,
4246 .total_size = 1024,
4247 .page_size = 256,
4248 .feature_bits = FEATURE_WRSR_WREN,
4249 .tested = TEST_UNTESTED,
4250 .probe = probe_spi_rdid,
4251 .probe_timing = TIMING_ZERO,
4252 .block_erasers =
4253 {
4254 {
4255 .eraseblocks = {
4256 {64 * 1024, 15},
4257 {32 * 1024, 1},
4258 {16 * 1024, 1},
4259 {8 * 1024, 1},
4260 {4 * 1024, 2},
4261 },
4262 .block_erase = spi_block_erase_d8,
4263 }, {
4264 .eraseblocks = { {1024 * 1024, 1} },
Stefan Taunerb175af52015-01-24 15:06:27 +00004265 .block_erase = spi_block_erase_c7,
4266 }
4267 },
4268 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4269 .unlock = spi_disable_blockprotect,
4270 .write = spi_chip_write_256,
4271 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004272 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004273 },
4274
4275 {
4276 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004277 .name = "EN25F05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004278 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004279 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004280 .model_id = EON_EN25F05,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004281 .total_size = 64,
4282 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004283 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00004284 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004285 .probe = probe_spi_rdid,
4286 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004287 .block_erasers =
4288 {
4289 {
4290 .eraseblocks = { {4 * 1024, 16} },
4291 .block_erase = spi_block_erase_20,
4292 }, {
4293 .eraseblocks = { {32 * 1024, 2} },
4294 .block_erase = spi_block_erase_d8,
4295 }, {
4296 .eraseblocks = { {32 * 1024, 2} },
4297 .block_erase = spi_block_erase_52,
4298 }, {
4299 .eraseblocks = { {64 * 1024, 1} },
4300 .block_erase = spi_block_erase_60,
4301 }, {
4302 .eraseblocks = { {64 * 1024, 1} },
4303 .block_erase = spi_block_erase_c7,
4304 }
4305 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004306 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004307 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004308 .write = spi_chip_write_256,
4309 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004310 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004311 },
4312
4313 {
4314 .vendor = "Eon",
4315 .name = "EN25F10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004316 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004317 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004318 .model_id = EON_EN25F10,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004319 .total_size = 128,
4320 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004321 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004322 .tested = TEST_UNTESTED,
4323 .probe = probe_spi_rdid,
4324 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004325 .block_erasers =
4326 {
4327 {
4328 .eraseblocks = { {4 * 1024, 32} },
4329 .block_erase = spi_block_erase_20,
4330 }, {
4331 .eraseblocks = { {32 * 1024, 4} },
4332 .block_erase = spi_block_erase_d8,
4333 }, {
4334 .eraseblocks = { {32 * 1024, 4} },
4335 .block_erase = spi_block_erase_52,
4336 }, {
4337 .eraseblocks = { {128 * 1024, 1} },
4338 .block_erase = spi_block_erase_60,
4339 }, {
4340 .eraseblocks = { {128 * 1024, 1} },
4341 .block_erase = spi_block_erase_c7,
4342 }
4343 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004344 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004345 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004346 .write = spi_chip_write_256,
4347 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004348 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004349 },
4350
4351 {
4352 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004353 .name = "EN25F16",
4354 .bustype = BUS_SPI,
4355 .manufacture_id = EON_ID_NOPREFIX,
4356 .model_id = EON_EN25F16,
4357 .total_size = 2048,
4358 .page_size = 256,
4359 .feature_bits = FEATURE_WRSR_WREN,
4360 .tested = TEST_OK_PREW,
4361 .probe = probe_spi_rdid,
4362 .probe_timing = TIMING_ZERO,
4363 .block_erasers =
4364 {
4365 {
4366 .eraseblocks = { {4 * 1024, 512} },
4367 .block_erase = spi_block_erase_20,
4368 }, {
4369 .eraseblocks = { {64 * 1024, 32} },
4370 .block_erase = spi_block_erase_d8,
4371 }, {
4372 .eraseblocks = { {2 * 1024 * 1024, 1} },
4373 .block_erase = spi_block_erase_60,
4374 }, {
4375 .eraseblocks = { {2 * 1024 * 1024, 1} },
4376 .block_erase = spi_block_erase_c7,
4377 }
4378 },
4379 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4380 .unlock = spi_disable_blockprotect,
4381 .write = spi_chip_write_256,
4382 .read = spi_chip_read,
4383 .voltage = {2700, 3600},
4384 },
4385
4386 {
4387 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004388 .name = "EN25F20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004389 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004390 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004391 .model_id = EON_EN25F20,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004392 .total_size = 256,
4393 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004394 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004395 .tested = TEST_UNTESTED,
4396 .probe = probe_spi_rdid,
4397 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004398 .block_erasers =
4399 {
4400 {
4401 .eraseblocks = { {4 * 1024, 64} },
4402 .block_erase = spi_block_erase_20,
4403 }, {
4404 .eraseblocks = { {64 * 1024, 4} },
4405 .block_erase = spi_block_erase_d8,
4406 }, {
4407 .eraseblocks = { {64 * 1024, 4} },
4408 .block_erase = spi_block_erase_52,
4409 }, {
4410 .eraseblocks = { {256 * 1024, 1} },
4411 .block_erase = spi_block_erase_60,
4412 }, {
4413 .eraseblocks = { {256 * 1024, 1} },
4414 .block_erase = spi_block_erase_c7,
4415 }
4416 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004417 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004418 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004419 .write = spi_chip_write_256,
4420 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004421 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004422 },
4423
4424 {
4425 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004426 .name = "EN25F32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004427 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004428 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004429 .model_id = EON_EN25F32,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004430 .total_size = 4096,
4431 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004432 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +00004433 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004434 .probe = probe_spi_rdid,
4435 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004436 .block_erasers =
4437 {
4438 {
4439 .eraseblocks = { {4 * 1024, 1024} },
4440 .block_erase = spi_block_erase_20,
4441 }, {
4442 .eraseblocks = { {64 * 1024, 64} },
4443 .block_erase = spi_block_erase_d8,
4444 }, {
4445 .eraseblocks = { {4 * 1024 * 1024, 1} },
4446 .block_erase = spi_block_erase_60,
4447 }, {
4448 .eraseblocks = { {4 * 1024 * 1024, 1} },
4449 .block_erase = spi_block_erase_c7,
4450 }
4451 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004452 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004453 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004454 .write = spi_chip_write_256,
4455 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004456 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004457 },
4458
4459 {
Russ Dill3cd5a122010-03-05 08:44:11 +00004460 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004461 .name = "EN25F40",
4462 .bustype = BUS_SPI,
4463 .manufacture_id = EON_ID_NOPREFIX,
4464 .model_id = EON_EN25F40,
4465 .total_size = 512,
4466 .page_size = 256,
4467 .feature_bits = FEATURE_WRSR_WREN,
4468 .tested = TEST_OK_PREW,
4469 .probe = probe_spi_rdid,
4470 .probe_timing = TIMING_ZERO,
4471 .block_erasers =
4472 {
4473 {
4474 .eraseblocks = { {4 * 1024, 128} },
4475 .block_erase = spi_block_erase_20,
4476 }, {
4477 .eraseblocks = { {64 * 1024, 8} },
4478 .block_erase = spi_block_erase_d8,
4479 }, {
4480 .eraseblocks = { {512 * 1024, 1} },
4481 .block_erase = spi_block_erase_60,
4482 }, {
4483 .eraseblocks = { {512 * 1024, 1} },
4484 .block_erase = spi_block_erase_c7,
4485 },
4486 },
4487 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4488 .unlock = spi_disable_blockprotect,
4489 .write = spi_chip_write_256,
4490 .read = spi_chip_read,
4491 .voltage = {2700, 3600},
4492 },
4493
4494 {
4495 .vendor = "Eon",
Stefan Taunerd932fd02012-09-06 17:37:16 +00004496 .name = "EN25F64",
4497 .bustype = BUS_SPI,
4498 .manufacture_id = EON_ID_NOPREFIX,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00004499 .model_id = EON_EN25F64,
Stefan Taunerd932fd02012-09-06 17:37:16 +00004500 .total_size = 8192,
4501 .page_size = 256,
4502 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00004503 .tested = TEST_OK_PREW,
Stefan Taunerd932fd02012-09-06 17:37:16 +00004504 .probe = probe_spi_rdid,
4505 .probe_timing = TIMING_ZERO,
4506 .block_erasers =
4507 {
4508 {
4509 .eraseblocks = { {4 * 1024, 2048} },
4510 .block_erase = spi_block_erase_20,
4511 }, {
4512 .eraseblocks = { {64 * 1024, 128} },
4513 .block_erase = spi_block_erase_d8,
4514 }, {
4515 .eraseblocks = { {8 * 1024 * 1024, 1} },
4516 .block_erase = spi_block_erase_60,
4517 }, {
4518 .eraseblocks = { {8 * 1024 * 1024, 1} },
4519 .block_erase = spi_block_erase_c7,
4520 }
4521 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004522 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Stefan Taunerd932fd02012-09-06 17:37:16 +00004523 .unlock = spi_disable_blockprotect,
4524 .write = spi_chip_write_256,
4525 .read = spi_chip_read,
4526 .voltage = {2700, 3600},
4527 },
4528
4529 {
4530 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004531 .name = "EN25F80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004532 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004533 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004534 .model_id = EON_EN25F80,
David Hendricks6d715302011-07-24 22:21:57 +00004535 .total_size = 1024,
4536 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004537 .feature_bits = FEATURE_WRSR_WREN,
4538 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004539 .probe = probe_spi_rdid,
4540 .probe_timing = TIMING_ZERO,
4541 .block_erasers =
4542 {
4543 {
4544 .eraseblocks = { {4 * 1024, 256} },
4545 .block_erase = spi_block_erase_20,
4546 }, {
4547 .eraseblocks = { {64 * 1024, 16} },
4548 .block_erase = spi_block_erase_d8,
4549 }, {
4550 .eraseblocks = { {1024 * 1024, 1} },
4551 .block_erase = spi_block_erase_60,
4552 }, {
4553 .eraseblocks = { {1024 * 1024, 1} },
4554 .block_erase = spi_block_erase_c7,
4555 }
4556 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004557 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004558 .unlock = spi_disable_blockprotect,
4559 .write = spi_chip_write_256,
4560 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004561 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004562 },
4563
4564 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004565 .vendor = "Eon",
4566 .name = "EN25P05",
4567 .bustype = BUS_SPI,
4568 .manufacture_id = EON_ID_NOPREFIX,
4569 .model_id = EON_EN25B05,
4570 .total_size = 64,
4571 .page_size = 256,
4572 .feature_bits = FEATURE_WRSR_WREN,
4573 .tested = TEST_UNTESTED,
4574 .probe = probe_spi_rdid,
4575 .probe_timing = TIMING_ZERO,
4576 .block_erasers =
4577 {
4578 {
4579 .eraseblocks = {
4580 {32 * 1024, 2} },
4581 .block_erase = spi_block_erase_d8,
4582 }, {
4583 .eraseblocks = { {64 * 1024, 1} },
4584 .block_erase = spi_block_erase_c7,
4585 }
4586 },
4587 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4588 .unlock = spi_disable_blockprotect,
4589 .write = spi_chip_write_256,
4590 .read = spi_chip_read, /* Fast read (0x0B) supported */
4591 .voltage = {2700, 3600},
4592 },
4593
4594 {
4595 .vendor = "Eon",
4596 .name = "EN25P10",
4597 .bustype = BUS_SPI,
4598 .manufacture_id = EON_ID_NOPREFIX,
4599 .model_id = EON_EN25B10,
4600 .total_size = 128,
4601 .page_size = 256,
4602 .feature_bits = FEATURE_WRSR_WREN,
4603 .tested = TEST_UNTESTED,
4604 .probe = probe_spi_rdid,
4605 .probe_timing = TIMING_ZERO,
4606 .block_erasers =
4607 {
4608 {
4609 .eraseblocks = { {32 * 1024, 4} },
4610 .block_erase = spi_block_erase_d8,
4611 }, {
4612 .eraseblocks = { {128 * 1024, 1} },
4613 .block_erase = spi_block_erase_c7,
4614 }
4615 },
4616 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4617 .unlock = spi_disable_blockprotect,
4618 .write = spi_chip_write_256,
4619 .read = spi_chip_read, /* Fast read (0x0B) supported */
4620 .voltage = {2700, 3600},
4621 },
4622
4623 {
4624 .vendor = "Eon",
4625 .name = "EN25P16",
4626 .bustype = BUS_SPI,
4627 .manufacture_id = EON_ID_NOPREFIX,
4628 .model_id = EON_EN25B16,
4629 .total_size = 2048,
4630 .page_size = 256,
4631 .feature_bits = FEATURE_WRSR_WREN,
4632 .tested = TEST_UNTESTED,
4633 .probe = probe_spi_rdid,
4634 .probe_timing = TIMING_ZERO,
4635 .block_erasers =
4636 {
4637 {
4638 .eraseblocks = { {64 * 1024, 32} },
4639 .block_erase = spi_block_erase_d8,
4640 }, {
4641 .eraseblocks = { {2 * 1024 * 1024, 1} },
4642 .block_erase = spi_block_erase_c7,
4643 }
4644 },
4645 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4646 .unlock = spi_disable_blockprotect,
4647 .write = spi_chip_write_256,
4648 .read = spi_chip_read, /* Fast read (0x0B) supported */
4649 .voltage = {2700, 3600},
4650 },
4651
4652 {
4653 .vendor = "Eon",
4654 .name = "EN25P20",
4655 .bustype = BUS_SPI,
4656 .manufacture_id = EON_ID_NOPREFIX,
4657 .model_id = EON_EN25B20,
4658 .total_size = 256,
4659 .page_size = 256,
4660 .feature_bits = FEATURE_WRSR_WREN,
4661 .tested = TEST_UNTESTED,
4662 .probe = probe_spi_rdid,
4663 .probe_timing = TIMING_ZERO,
4664 .block_erasers =
4665 {
4666 {
4667 .eraseblocks = { {64 * 1024, 4} },
4668 .block_erase = spi_block_erase_d8,
4669 }, {
4670 .eraseblocks = { {256 * 1024, 1} },
4671 .block_erase = spi_block_erase_c7,
4672 }
4673 },
4674 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4675 .unlock = spi_disable_blockprotect,
4676 .write = spi_chip_write_256,
4677 .read = spi_chip_read, /* Fast read (0x0B) supported */
4678 .voltage = {2700, 3600},
4679 },
4680
4681 {
4682 .vendor = "Eon",
4683 .name = "EN25P32", /* Uniform version of EN25B32 */
4684 .bustype = BUS_SPI,
4685 .manufacture_id = EON_ID_NOPREFIX,
4686 .model_id = EON_EN25B32,
4687 .total_size = 4096,
4688 .page_size = 256,
4689 /* OTP: 512B total; enter 0x3A */
4690 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4691 .tested = TEST_UNTESTED,
4692 .probe = probe_spi_rdid,
4693 .probe_timing = TIMING_ZERO,
4694 .block_erasers =
4695 {
4696 {
4697 .eraseblocks = { {64 * 1024, 64} },
4698 .block_erase = spi_block_erase_d8,
4699 }, {
4700 .eraseblocks = { {4 * 1024 * 1024, 1} },
4701 .block_erase = spi_block_erase_c7,
4702 }
4703 },
4704 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4705 .unlock = spi_disable_blockprotect,
4706 .write = spi_chip_write_256,
4707 .read = spi_chip_read, /* Fast read (0x0B) supported */
4708 .voltage = {2700, 3600},
4709 },
4710
4711 {
4712 .vendor = "Eon",
4713 .name = "EN25P40",
4714 .bustype = BUS_SPI,
4715 .manufacture_id = EON_ID_NOPREFIX,
4716 .model_id = EON_EN25B40,
4717 .total_size = 512,
4718 .page_size = 256,
4719 .feature_bits = FEATURE_WRSR_WREN,
4720 .tested = TEST_UNTESTED,
4721 .probe = probe_spi_rdid,
4722 .probe_timing = TIMING_ZERO,
4723 .block_erasers =
4724 {
4725 {
4726 .eraseblocks = { {64 * 1024, 8} },
4727 .block_erase = spi_block_erase_d8,
4728 }, {
4729 .eraseblocks = { {512 * 1024, 1} },
4730 .block_erase = spi_block_erase_c7,
4731 }
4732 },
4733 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4734 .unlock = spi_disable_blockprotect,
4735 .write = spi_chip_write_256,
4736 .read = spi_chip_read, /* Fast read (0x0B) supported */
4737 .voltage = {2700, 3600},
4738 },
4739
4740 {
4741 .vendor = "Eon",
4742 .name = "EN25P64",
4743 .bustype = BUS_SPI,
4744 .manufacture_id = EON_ID_NOPREFIX,
4745 .model_id = EON_EN25B64,
4746 .total_size = 8192,
4747 .page_size = 256,
4748 /* OTP: 512B total; enter 0x3A */
4749 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4750 .tested = TEST_UNTESTED,
4751 .probe = probe_spi_rdid,
4752 .probe_timing = TIMING_ZERO,
4753 .block_erasers =
4754 {
4755 {
4756 .eraseblocks = { {64 * 1024, 128} },
4757 .block_erase = spi_block_erase_d8,
4758 }, {
4759 .eraseblocks = { {8 * 1024 * 1024, 1} },
4760 .block_erase = spi_block_erase_c7,
4761 }
4762 },
4763 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4764 .unlock = spi_disable_blockprotect,
4765 .write = spi_chip_write_256,
4766 .read = spi_chip_read, /* Fast read (0x0B) supported */
4767 .voltage = {2700, 3600},
4768 },
4769
4770 {
4771 .vendor = "Eon",
4772 .name = "EN25P80",
4773 .bustype = BUS_SPI,
4774 .manufacture_id = EON_ID_NOPREFIX,
4775 .model_id = EON_EN25B80,
4776 .total_size = 1024,
4777 .page_size = 256,
4778 .feature_bits = FEATURE_WRSR_WREN,
4779 .tested = TEST_UNTESTED,
4780 .probe = probe_spi_rdid,
4781 .probe_timing = TIMING_ZERO,
4782 .block_erasers =
4783 {
4784 {
4785 .eraseblocks = { {64 * 1024, 16} },
4786 .block_erase = spi_block_erase_d8,
4787 }, {
4788 .eraseblocks = { {1024 * 1024, 1} },
4789 .block_erase = spi_block_erase_c7,
4790 }
4791 },
4792 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4793 .unlock = spi_disable_blockprotect,
4794 .write = spi_chip_write_256,
4795 .read = spi_chip_read, /* Fast read (0x0B) supported */
4796 .voltage = {2700, 3600},
4797 },
4798
4799 {
4800 .vendor = "Eon",
4801 .name = "EN25Q128",
4802 .bustype = BUS_SPI,
4803 .manufacture_id = EON_ID_NOPREFIX,
4804 .model_id = EON_EN25Q128,
4805 .total_size = 16384,
4806 .page_size = 256,
4807 /* OTP: 512B total; enter 0x3A */
4808 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4809 .tested = TEST_OK_PREW,
4810 .probe = probe_spi_rdid,
4811 .probe_timing = TIMING_ZERO,
4812 .block_erasers =
4813 {
4814 {
4815 .eraseblocks = { {4 * 1024, 4096} },
4816 .block_erase = spi_block_erase_20,
4817 }, {
4818 .eraseblocks = { {64 * 1024, 256} },
4819 .block_erase = spi_block_erase_d8,
4820 }, {
4821 .eraseblocks = { {16 * 1024 * 1024, 1} },
4822 .block_erase = spi_block_erase_60,
4823 }, {
4824 .eraseblocks = { {16 * 1024 * 1024, 1} },
4825 .block_erase = spi_block_erase_c7,
4826 }
4827 },
4828 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4829 .unlock = spi_disable_blockprotect,
4830 .write = spi_chip_write_256,
4831 .read = spi_chip_read,
4832 },
4833
4834 {
David Hendricks6d715302011-07-24 22:21:57 +00004835 /* Note: EN25D16 is an evil twin which shares the model ID
4836 but has different write protection capabilities */
4837 .vendor = "Eon",
4838 .name = "EN25Q16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004839 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004840 .manufacture_id = EON_ID_NOPREFIX,
4841 .model_id = EON_EN25Q16,
4842 .total_size = 2048,
4843 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004844 /* OTP: D16 512B/Q16 128B total; enter 0x3A */
4845 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004846 .tested = TEST_UNTESTED,
4847 .probe = probe_spi_rdid,
4848 .probe_timing = TIMING_ZERO,
4849 .block_erasers =
4850 {
4851 {
4852 .eraseblocks = { {4 * 1024, 512} },
4853 .block_erase = spi_block_erase_20,
4854 }, {
4855 .eraseblocks = { {64 * 1024, 32} },
4856 .block_erase = spi_block_erase_d8,
4857 }, {
4858 /* not supported by Q16 version */
4859 .eraseblocks = { {64 * 1024, 32} },
4860 .block_erase = spi_block_erase_52,
4861 }, {
4862 .eraseblocks = { {2 * 1024 * 1024, 1} },
4863 .block_erase = spi_block_erase_60,
4864 }, {
4865 .eraseblocks = { {2 * 1024 * 1024, 1} },
4866 .block_erase = spi_block_erase_c7,
4867 }
4868 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004869 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004870 .unlock = spi_disable_blockprotect,
4871 .write = spi_chip_write_256,
4872 .read = spi_chip_read,
4873 .voltage = {2700, 3600},
4874 },
4875
4876 {
4877 .vendor = "Eon",
4878 .name = "EN25Q32(A/B)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004879 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004880 .manufacture_id = EON_ID_NOPREFIX,
4881 .model_id = EON_EN25Q32,
4882 .total_size = 4096,
4883 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004884 /* OTP: 512B total; enter 0x3A */
4885 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004886 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004887 .probe = probe_spi_rdid,
4888 .probe_timing = TIMING_ZERO,
4889 .block_erasers =
4890 {
4891 {
4892 .eraseblocks = { {4 * 1024, 1024} },
4893 .block_erase = spi_block_erase_20,
4894 }, {
4895 .eraseblocks = { {64 * 1024, 64} },
4896 .block_erase = spi_block_erase_d8,
4897 }, {
4898 .eraseblocks = { {4 * 1024 * 1024, 1} },
4899 .block_erase = spi_block_erase_60,
4900 }, {
4901 .eraseblocks = { {4 * 1024 * 1024, 1} },
4902 .block_erase = spi_block_erase_c7,
4903 }
4904 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004905 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004906 .unlock = spi_disable_blockprotect,
4907 .write = spi_chip_write_256,
4908 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004909 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004910 },
4911
4912 {
4913 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004914 .name = "EN25Q40",
4915 .bustype = BUS_SPI,
4916 .manufacture_id = EON_ID_NOPREFIX,
4917 .model_id = EON_EN25Q40,
4918 .total_size = 512,
4919 .page_size = 256,
4920 /* OTP: 256B total; enter 0x3A */
4921 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4922 .tested = TEST_UNTESTED,
4923 .probe = probe_spi_rdid,
4924 .probe_timing = TIMING_ZERO,
4925 .block_erasers =
4926 {
4927 {
4928 .eraseblocks = { {4 * 1024, 128} },
4929 .block_erase = spi_block_erase_20,
4930 }, {
4931 .eraseblocks = { {64 * 1024, 8} },
4932 .block_erase = spi_block_erase_d8,
4933 }, {
4934 .eraseblocks = { {512 * 1024, 1} },
4935 .block_erase = spi_block_erase_60,
4936 }, {
4937 .eraseblocks = { {512 * 1024, 1} },
4938 .block_erase = spi_block_erase_c7,
4939 }
4940 },
4941 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4942 .unlock = spi_disable_blockprotect,
4943 .write = spi_chip_write_256,
4944 .read = spi_chip_read,
4945 .voltage = {2700, 3600},
4946 },
4947
4948 {
4949 .vendor = "Eon",
David Hendricks6d715302011-07-24 22:21:57 +00004950 .name = "EN25Q64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004951 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004952 .manufacture_id = EON_ID_NOPREFIX,
4953 .model_id = EON_EN25Q64,
4954 .total_size = 8192,
4955 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004956 /* OTP: 512B total; enter 0x3A */
4957 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004958 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004959 .probe = probe_spi_rdid,
4960 .probe_timing = TIMING_ZERO,
4961 .block_erasers =
4962 {
4963 {
4964 .eraseblocks = { {4 * 1024, 2048} },
4965 .block_erase = spi_block_erase_20,
4966 }, {
4967 .eraseblocks = { {64 * 1024, 128} },
4968 .block_erase = spi_block_erase_d8,
4969 }, {
4970 .eraseblocks = { {8 * 1024 * 1024, 1} },
4971 .block_erase = spi_block_erase_60,
4972 }, {
4973 .eraseblocks = { {8 * 1024 * 1024, 1} },
4974 .block_erase = spi_block_erase_c7,
4975 }
4976 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004977 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004978 .unlock = spi_disable_blockprotect,
4979 .write = spi_chip_write_256,
4980 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004981 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004982 },
4983
4984 {
4985 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004986 .name = "EN25Q80(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004987 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004988 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004989 .model_id = EON_EN25Q80,
4990 .total_size = 1024,
4991 .page_size = 256,
4992 /* OTP: 256B total; enter 0x3A */
4993 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4994 .tested = TEST_UNTESTED,
4995 .probe = probe_spi_rdid,
4996 .probe_timing = TIMING_ZERO,
4997 .block_erasers =
4998 {
4999 {
5000 .eraseblocks = { {4 * 1024, 256} },
5001 .block_erase = spi_block_erase_20,
5002 }, {
5003 .eraseblocks = { {64 * 1024, 16} },
5004 .block_erase = spi_block_erase_d8,
5005 }, {
5006 .eraseblocks = { {1024 * 1024, 1} },
5007 .block_erase = spi_block_erase_60,
5008 }, {
5009 .eraseblocks = { {1024 * 1024, 1} },
5010 .block_erase = spi_block_erase_c7,
5011 }
5012 },
5013 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
5014 .unlock = spi_disable_blockprotect,
5015 .write = spi_chip_write_256,
5016 .read = spi_chip_read,
5017 .voltage = {2700, 3600},
5018 },
5019
5020 {
5021 .vendor = "Eon",
5022 .name = "EN25QH128",
5023 .bustype = BUS_SPI,
5024 .manufacture_id = EON_ID_NOPREFIX,
5025 .model_id = EON_EN25QH128,
David Hendricks6d715302011-07-24 22:21:57 +00005026 .total_size = 16384,
5027 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005028 /* supports SFDP */
Daniel Lenski65922a32012-02-15 23:40:23 +00005029 /* OTP: 512B total; enter 0x3A */
Alan Green1f9cc7d2019-07-01 11:10:45 +10005030 /* QPI enable 0x38, disable 0xFF */
5031 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5032 .tested = TEST_UNTESTED,
David Hendricks6d715302011-07-24 22:21:57 +00005033 .probe = probe_spi_rdid,
5034 .probe_timing = TIMING_ZERO,
5035 .block_erasers =
5036 {
5037 {
5038 .eraseblocks = { {4 * 1024, 4096} },
5039 .block_erase = spi_block_erase_20,
5040 }, {
5041 .eraseblocks = { {64 * 1024, 256} },
5042 .block_erase = spi_block_erase_d8,
5043 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005044 .eraseblocks = { { 16384 * 1024, 1} },
David Hendricks6d715302011-07-24 22:21:57 +00005045 .block_erase = spi_block_erase_60,
5046 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005047 .eraseblocks = { { 16384 * 1024, 1} },
David Hendricks6d715302011-07-24 22:21:57 +00005048 .block_erase = spi_block_erase_c7,
5049 }
5050 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005051 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
5052 .unlock = spi_disable_blockprotect_bp3_srwd,
David Hendricks6d715302011-07-24 22:21:57 +00005053 .write = spi_chip_write_256,
5054 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005055 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00005056 },
5057
5058 {
5059 .vendor = "Eon",
5060 .name = "EN25QH16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005061 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00005062 .manufacture_id = EON_ID_NOPREFIX,
5063 .model_id = EON_EN25QH16,
5064 .total_size = 2048,
5065 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00005066 /* supports SFDP */
5067 /* OTP: 512B total; enter 0x3A */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005068 /* QPI enable 0x38, disable 0xFF */
5069 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner5c316f92015-02-08 21:57:52 +00005070 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00005071 .probe = probe_spi_rdid,
5072 .probe_timing = TIMING_ZERO,
5073 .block_erasers =
5074 {
5075 {
5076 .eraseblocks = { {4 * 1024, 512} },
5077 .block_erase = spi_block_erase_20,
5078 }, {
5079 .eraseblocks = { {64 * 1024, 32} },
5080 .block_erase = spi_block_erase_d8,
5081 }, {
5082 .eraseblocks = { {1024 * 2048, 1} },
5083 .block_erase = spi_block_erase_60,
5084 }, {
5085 .eraseblocks = { {1024 * 2048, 1} },
5086 .block_erase = spi_block_erase_c7,
5087 }
5088 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005089 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005090 .unlock = spi_disable_blockprotect_bp3_srwd,
David Hendricks6d715302011-07-24 22:21:57 +00005091 .write = spi_chip_write_256,
5092 .read = spi_chip_read,
Stefan Tauner2cef9162012-05-14 01:51:46 +00005093 .voltage = {2700, 3600},
5094 },
5095
5096 {
5097 .vendor = "Eon",
5098 .name = "EN25QH32",
5099 .bustype = BUS_SPI,
5100 .manufacture_id = EON_ID_NOPREFIX,
5101 .model_id = EON_EN25QH32,
5102 .total_size = 4096,
5103 .page_size = 256,
5104 /* supports SFDP */
5105 /* OTP: 512B total; enter 0x3A */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005106 /* QPI enable 0x38, disable 0xFF */
5107 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner23e10b82016-01-23 16:16:49 +00005108 .tested = TEST_OK_PREW,
Stefan Tauner2cef9162012-05-14 01:51:46 +00005109 .probe = probe_spi_rdid,
5110 .probe_timing = TIMING_ZERO,
5111 .block_erasers =
5112 {
5113 {
5114 .eraseblocks = { {4 * 1024, 1024} },
5115 .block_erase = spi_block_erase_20,
5116 }, {
5117 .eraseblocks = { {64 * 1024, 64} },
5118 .block_erase = spi_block_erase_d8,
5119 }, {
5120 .eraseblocks = { {1024 * 4096, 1} },
5121 .block_erase = spi_block_erase_60,
5122 }, {
5123 .eraseblocks = { {1024 * 4096, 1} },
5124 .block_erase = spi_block_erase_c7,
5125 }
5126 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005127 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005128 .unlock = spi_disable_blockprotect_bp3_srwd,
5129 .write = spi_chip_write_256,
5130 .read = spi_chip_read,
5131 .voltage = {2700, 3600},
5132 },
5133
5134 {
5135 .vendor = "Eon",
5136 .name = "EN25QH64",
5137 .bustype = BUS_SPI,
5138 .manufacture_id = EON_ID_NOPREFIX,
5139 .model_id = EON_EN25QH64,
5140 .total_size = 8192,
5141 .page_size = 256,
5142 /* supports SFDP */
5143 /* OTP: 512B total; enter 0x3A */
5144 /* QPI enable 0x38, disable 0xFF */
5145 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner23e10b82016-01-23 16:16:49 +00005146 .tested = TEST_OK_PREW,
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005147 .probe = probe_spi_rdid,
5148 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005149 .block_erasers =
5150 {
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005151 {
5152 .eraseblocks = { {4 * 1024, 2048} },
5153 .block_erase = spi_block_erase_20,
5154 }, {
5155 .eraseblocks = { {64 * 1024, 128} },
5156 .block_erase = spi_block_erase_d8,
5157 }, {
5158 .eraseblocks = { { 8192 * 1024, 1} },
5159 .block_erase = spi_block_erase_60,
5160 }, {
5161 .eraseblocks = { { 8192 * 1024, 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,
5167 .write = spi_chip_write_256,
5168 .read = spi_chip_read,
5169 .voltage = {2700, 3600},
5170 },
5171
5172 {
5173 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005174 .name = "EN25S10",
5175 .bustype = BUS_SPI,
5176 .manufacture_id = EON_ID_NOPREFIX,
5177 .model_id = EON_EN25S10,
5178 .total_size = 128,
5179 .page_size = 256,
5180 /* OTP: 256B total; enter 0x3A */
5181 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5182 .tested = TEST_UNTESTED,
5183 .probe = probe_spi_rdid,
5184 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005185 .block_erasers =
5186 {
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005187 {
5188 .eraseblocks = { {4 * 1024, 32} },
5189 .block_erase = spi_block_erase_20,
5190 }, {
5191 .eraseblocks = { {32 * 1024, 4} },
5192 .block_erase = spi_block_erase_52,
5193 }, {
5194 .eraseblocks = { {128 * 1024, 1} },
5195 .block_erase = spi_block_erase_60,
5196 }, {
5197 .eraseblocks = { {128 * 1024, 1} },
5198 .block_erase = spi_block_erase_c7,
5199 }
5200 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005201 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005202 .unlock = spi_disable_blockprotect,
5203 .write = spi_chip_write_256,
5204 .read = spi_chip_read,
5205 .voltage = {1650, 1950},
5206 },
5207
5208 {
5209 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005210 .name = "EN25S16",
5211 .bustype = BUS_SPI,
5212 .manufacture_id = EON_ID_NOPREFIX,
5213 .model_id = EON_EN25S16,
5214 .total_size = 2048,
5215 .page_size = 256,
5216 /* OTP: 512B total; enter 0x3A */
5217 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5218 .tested = TEST_UNTESTED,
5219 .probe = probe_spi_rdid,
5220 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005221 .block_erasers =
5222 {
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005223 {
5224 .eraseblocks = { {4 * 1024, 512} },
5225 .block_erase = spi_block_erase_20,
5226 }, {
5227 .eraseblocks = { {64 * 1024, 32} },
5228 .block_erase = spi_block_erase_52,
5229 }, {
5230 .eraseblocks = { {32 * 1024, 64} },
5231 .block_erase = spi_block_erase_d8,
5232 }, {
5233 .eraseblocks = { {2048 * 1024, 1} },
5234 .block_erase = spi_block_erase_60,
5235 }, {
5236 .eraseblocks = { {2048 * 1024, 1} },
5237 .block_erase = spi_block_erase_c7,
5238 }
5239 },
5240 .printlock = spi_prettyprint_status_register_en25s_wp,
5241 .unlock = spi_disable_blockprotect_bp3_srwd,
5242 .write = spi_chip_write_256,
5243 .read = spi_chip_read,
5244 .voltage = {1650, 1950},
5245 },
5246
5247 {
5248 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005249 .name = "EN25S20",
5250 .bustype = BUS_SPI,
5251 .manufacture_id = EON_ID_NOPREFIX,
5252 .model_id = EON_EN25S20,
5253 .total_size = 256,
5254 .page_size = 256,
5255 /* OTP: 256B total; enter 0x3A */
5256 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5257 .tested = TEST_UNTESTED,
5258 .probe = probe_spi_rdid,
5259 .probe_timing = TIMING_ZERO,
5260 .block_erasers =
5261 {
5262 {
5263 .eraseblocks = { {4 * 1024, 64} },
5264 .block_erase = spi_block_erase_20,
5265 }, {
5266 .eraseblocks = { {64 * 1024, 4} },
5267 .block_erase = spi_block_erase_d8,
5268 }, {
5269 .eraseblocks = { {256 * 1024, 1} },
5270 .block_erase = spi_block_erase_60,
5271 }, {
5272 .eraseblocks = { {256 * 1024, 1} },
5273 .block_erase = spi_block_erase_c7,
5274 }
5275 },
5276 .printlock = spi_prettyprint_status_register_bp2_srwd,
5277 .unlock = spi_disable_blockprotect,
5278 .write = spi_chip_write_256,
5279 .read = spi_chip_read,
5280 .voltage = {1650, 1950},
5281 },
5282
5283 {
5284 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005285 .name = "EN25S32",
5286 .bustype = BUS_SPI,
5287 .manufacture_id = EON_ID_NOPREFIX,
5288 .model_id = EON_EN25S32,
5289 .total_size = 4096,
5290 .page_size = 256,
5291 /* OTP: 512B total; enter 0x3A */
5292 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5293 .tested = TEST_UNTESTED,
5294 .probe = probe_spi_rdid,
5295 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005296 .block_erasers =
5297 {
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005298 {
5299 .eraseblocks = { {4 * 1024, 1024} },
5300 .block_erase = spi_block_erase_20,
5301 }, {
5302 .eraseblocks = { {32 * 1024, 128} },
5303 .block_erase = spi_block_erase_52,
5304 }, {
5305 .eraseblocks = { {64 * 1024, 64} },
5306 .block_erase = spi_block_erase_d8,
5307 }, {
5308 .eraseblocks = { {4096 * 1024, 1} },
5309 .block_erase = spi_block_erase_60,
5310 }, {
5311 .eraseblocks = { {4096 * 1024, 1} },
5312 .block_erase = spi_block_erase_c7,
5313 }
5314 },
5315 .printlock = spi_prettyprint_status_register_en25s_wp,
5316 .unlock = spi_disable_blockprotect_bp3_srwd,
5317 .write = spi_chip_write_256,
5318 .read = spi_chip_read,
5319 .voltage = {1650, 1950},
5320 },
5321
5322 {
5323 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005324 .name = "EN25S40",
5325 .bustype = BUS_SPI,
5326 .manufacture_id = EON_ID_NOPREFIX,
5327 .model_id = EON_EN25S40,
5328 .total_size = 512,
5329 .page_size = 256,
5330 /* OTP: 256B total; enter 0x3A */
5331 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5332 .tested = TEST_OK_PREW,
5333 .probe = probe_spi_rdid,
5334 .probe_timing = TIMING_ZERO,
5335 .block_erasers =
5336 {
5337 {
5338 .eraseblocks = { {4 * 1024, 128} },
5339 .block_erase = spi_block_erase_20,
5340 }, {
5341 .eraseblocks = { {64 * 1024, 8} },
5342 .block_erase = spi_block_erase_d8,
5343 }, {
5344 .eraseblocks = { {512 * 1024, 1} },
5345 .block_erase = spi_block_erase_60,
5346 }, {
5347 .eraseblocks = { {512 * 1024, 1} },
5348 .block_erase = spi_block_erase_c7,
5349 }
5350 },
5351 .printlock = spi_prettyprint_status_register_bp2_srwd,
5352 .unlock = spi_disable_blockprotect,
5353 .write = spi_chip_write_256,
5354 .read = spi_chip_read,
5355 .voltage = {1650, 1950},
5356 },
5357
5358 {
5359 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005360 .name = "EN25S64",
5361 .bustype = BUS_SPI,
5362 .manufacture_id = EON_ID_NOPREFIX,
5363 .model_id = EON_EN25S64,
5364 .total_size = 8192,
5365 .page_size = 256,
5366 /* OTP: 512B total; enter 0x3A */
5367 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5368 .tested = TEST_UNTESTED,
5369 .probe = probe_spi_rdid,
5370 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005371 .block_erasers =
5372 {
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005373 {
5374 .eraseblocks = { {4 * 1024, 2048} },
5375 .block_erase = spi_block_erase_20,
5376 }, {
5377 .eraseblocks = { {64 * 1024, 128} },
5378 .block_erase = spi_block_erase_d8,
5379 }, {
5380 .eraseblocks = { {8192 * 1024, 1} },
5381 .block_erase = spi_block_erase_60,
5382 }, {
5383 .eraseblocks = { {8192 * 1024, 1} },
5384 .block_erase = spi_block_erase_c7,
5385 }
5386 },
5387 .printlock = spi_prettyprint_status_register_en25s_wp,
5388 .unlock = spi_disable_blockprotect_bp3_srwd,
5389 .write = spi_chip_write_256,
5390 .read = spi_chip_read,
5391 .voltage = {1650, 1950},
5392 },
5393
5394 {
5395 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005396 .name = "EN25S80",
5397 .bustype = BUS_SPI,
5398 .manufacture_id = EON_ID_NOPREFIX,
5399 .model_id = EON_EN25S80,
5400 .total_size = 1024,
5401 .page_size = 256,
5402 /* OTP: 256B total; enter 0x3A */
5403 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5404 .tested = TEST_UNTESTED,
5405 .probe = probe_spi_rdid,
5406 .probe_timing = TIMING_ZERO,
Russ Dill3cd5a122010-03-05 08:44:11 +00005407 .block_erasers =
5408 {
5409 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005410 .eraseblocks = { {4 * 1024, 256} },
5411 .block_erase = spi_block_erase_20,
5412 }, {
5413 .eraseblocks = { {64 * 1024, 16} },
5414 .block_erase = spi_block_erase_d8,
5415 }, {
5416 .eraseblocks = { {1024 * 1024, 1} },
5417 .block_erase = spi_block_erase_60,
5418 }, {
5419 .eraseblocks = { {1024 * 1024, 1} },
5420 .block_erase = spi_block_erase_c7,
5421 }
Russ Dill3cd5a122010-03-05 08:44:11 +00005422 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005423 .printlock = spi_prettyprint_status_register_bp2_srwd,
5424 .unlock = spi_disable_blockprotect,
5425 .write = spi_chip_write_256,
5426 .read = spi_chip_read,
5427 .voltage = {1650, 1950},
Russ Dill3cd5a122010-03-05 08:44:11 +00005428 },
5429
5430 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00005431 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005432 .name = "EN29F002(A)(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005433 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005434 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005435 .model_id = EON_EN29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005436 .total_size = 256,
5437 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00005438 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Alan Green4362e622019-08-26 15:02:12 +10005439 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005440 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005441 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005442 .block_erasers =
5443 {
5444 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005445 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005446 {16 * 1024, 1},
Michael Karchere3cb0a12010-03-13 23:47:09 +00005447 {8 * 1024, 2},
5448 {32 * 1024, 1},
5449 {64 * 1024, 3},
Sean Nelson6b11ad22009-12-23 17:05:59 +00005450 },
5451 .block_erase = erase_sector_jedec,
5452 }, {
5453 .eraseblocks = { {256 * 1024, 1} },
5454 .block_erase = erase_chip_block_jedec,
5455 },
5456 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005457 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005458 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005459 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005460 },
5461
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005462 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00005463 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005464 .name = "EN29F002(A)(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005465 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005466 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005467 .model_id = EON_EN29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005468 .total_size = 256,
5469 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00005470 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00005471 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005472 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005473 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005474 .block_erasers =
5475 {
5476 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005477 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005478 {64 * 1024, 3},
Michael Karchere3cb0a12010-03-13 23:47:09 +00005479 {32 * 1024, 1},
5480 {8 * 1024, 2},
5481 {16 * 1024, 1},
Sean Nelson6b11ad22009-12-23 17:05:59 +00005482 },
5483 .block_erase = erase_sector_jedec,
5484 }, {
5485 .eraseblocks = { {256 * 1024, 1} },
5486 .block_erase = erase_chip_block_jedec,
5487 },
5488 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005489 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005490 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005491 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005492 },
5493
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005494 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005495 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005496 .name = "EN29F010",
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005497 .bustype = BUS_PARALLEL,
5498 .manufacture_id = EON_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005499 .model_id = EON_EN29F010,
5500 .total_size = 128,
5501 .page_size = 128,
5502 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
5503 .tested = TEST_OK_PRE,
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005504 .probe = probe_jedec,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005505 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005506 .block_erasers =
5507 {
5508 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005509 .eraseblocks = { {16 * 1024, 8} },
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005510 .block_erase = erase_sector_jedec,
5511 },
5512 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005513 .eraseblocks = { {128 * 1024, 1} },
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005514 .block_erase = erase_chip_block_jedec,
5515 },
5516 },
5517 .write = write_jedec_1,
5518 .read = read_memmapped,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005519 .voltage = {4500, 5500},
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005520 },
5521
5522 {
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00005523 .vendor = "Eon",
5524 .name = "EN29GL064(A)B",
5525 .bustype = BUS_PARALLEL,
5526 .manufacture_id = EON_ID,
5527 .model_id = EON_EN29GL064B,
5528 .total_size = 8192,
5529 .page_size = 128 * 1024, /* actual page size is 16 */
5530 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5531 .tested = TEST_UNTESTED,
5532 .probe = probe_jedec_29gl,
5533 .probe_timing = TIMING_ZERO,
5534 .block_erasers =
5535 {
5536 {
5537 .eraseblocks = {
5538 {8 * 1024, 8},
5539 {64 * 1024, 127},
5540 },
5541 .block_erase = erase_sector_jedec,
5542 }, {
5543 .eraseblocks = { {8 * 1024 * 1024, 1} },
5544 .block_erase = erase_chip_block_jedec,
5545 },
5546 },
5547 .write = write_jedec_1,
5548 .read = read_memmapped,
5549 .voltage = {2700, 3600},
5550 },
5551
5552 {
5553 .vendor = "Eon",
5554 .name = "EN29GL064(A)T",
5555 .bustype = BUS_PARALLEL,
5556 .manufacture_id = EON_ID,
5557 .model_id = EON_EN29GL064T,
5558 .total_size = 8192,
5559 .page_size = 128 * 1024, /* actual page size is 16 */
5560 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5561 .tested = TEST_UNTESTED,
5562 .probe = probe_jedec_29gl,
5563 .probe_timing = TIMING_ZERO,
5564 .block_erasers =
5565 {
5566 {
5567 .eraseblocks = {
5568 {64 * 1024, 127},
5569 {8 * 1024, 8},
5570 },
5571 .block_erase = erase_sector_jedec,
5572 }, {
5573 .eraseblocks = { {8 * 1024 * 1024, 1} },
5574 .block_erase = erase_chip_block_jedec,
5575 },
5576 },
5577 .write = write_jedec_1,
5578 .read = read_memmapped,
5579 .voltage = {2700, 3600},
5580 },
5581
5582 {
5583 .vendor = "Eon",
5584 .name = "EN29GL064H/L",
5585 .bustype = BUS_PARALLEL,
5586 .manufacture_id = EON_ID,
5587 .model_id = EON_EN29GL064HL,
5588 .total_size = 8192,
5589 .page_size = 128 * 1024, /* actual page size is 16 */
5590 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5591 .tested = TEST_UNTESTED,
5592 .probe = probe_jedec_29gl,
5593 .probe_timing = TIMING_ZERO,
5594 .block_erasers =
5595 {
5596 {
5597 .eraseblocks = { {64 * 1024, 128} },
5598 .block_erase = erase_sector_jedec,
5599 }, {
5600 .eraseblocks = { {8 * 1024 * 1024, 1} },
5601 .block_erase = erase_chip_block_jedec,
5602 },
5603 },
5604 .write = write_jedec_1,
5605 .read = read_memmapped,
5606 .voltage = {2700, 3600},
5607 },
5608
5609 {
5610 .vendor = "Eon",
5611 .name = "EN29GL128",
5612 .bustype = BUS_PARALLEL,
5613 .manufacture_id = EON_ID,
5614 .model_id = EON_EN29GL128HL,
5615 .total_size = 16384,
5616 .page_size = 128 * 1024, /* actual page size is 16 */
5617 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5618 .tested = TEST_UNTESTED,
5619 .probe = probe_jedec_29gl,
5620 .probe_timing = TIMING_ZERO,
5621 .block_erasers =
5622 {
5623 {
5624 .eraseblocks = { {128 * 1024, 128} },
5625 .block_erase = erase_sector_jedec,
5626 }, {
5627 .eraseblocks = { {16 * 1024 * 1024, 1} },
5628 .block_erase = erase_chip_block_jedec,
5629 },
5630 },
5631 .write = write_jedec_1,
5632 .read = read_memmapped,
5633 .voltage = {2700, 3600},
5634 },
5635
5636 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005637 .vendor = "Eon",
5638 .name = "EN29LV040(A)",
5639 .bustype = BUS_PARALLEL,
5640 .manufacture_id = EON_ID,
5641 .model_id = EON_EN29LV040,
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005642 .total_size = 512,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005643 .page_size = 4 * 1024,
5644 .tested = TEST_OK_PREW,
5645 .probe = probe_jedec,
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005646 .probe_timing = TIMING_ZERO,
5647 .block_erasers =
5648 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00005649 {
5650 .eraseblocks = { {64 * 1024, 8} },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005651 .block_erase = erase_sector_jedec,
5652 },
5653 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00005654 .eraseblocks = { {512 * 1024, 1} },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005655 .block_erase = erase_chip_block_jedec,
5656 },
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005657 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005658 .write = write_jedec_1,
5659 .read = read_memmapped,
5660 .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R and 55R, others 2.7-3.6V */
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005661 },
5662
5663 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005664 .vendor = "Eon",
5665 .name = "EN29LV640B",
5666 .bustype = BUS_PARALLEL,
5667 .manufacture_id = EON_ID,
5668 .model_id = EON_EN29LV640B,
5669 .total_size = 8192,
5670 .page_size = 8192,
5671 .feature_bits = FEATURE_ADDR_SHIFTED,
5672 .tested = TEST_OK_PREW,
5673 .probe = probe_en29lv640b,
5674 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005675 .block_erasers =
5676 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00005677 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005678 .eraseblocks = {
5679 {8 * 1024, 8},
5680 {64 * 1024, 127},
5681 },
5682 .block_erase = erase_block_jedec,
Stefan Tauner0be072c2016-03-13 15:16:30 +00005683 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005684 .eraseblocks = { {8 * 1024 * 1024, 1} },
5685 .block_erase = erase_chip_block_jedec,
5686 },
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005687 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005688 .write = write_en29lv640b,
5689 .read = read_memmapped,
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005690 .voltage = {2700, 3600},
5691 },
5692
5693 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005694 .vendor = "Fujitsu",
5695 .name = "MBM29F004BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005696 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005697 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005698 .model_id = FUJITSU_MBM29F004BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005699 .total_size = 512,
5700 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005701 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005702 .tested = TEST_UNTESTED,
5703 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005704 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005705 .block_erasers =
5706 {
5707 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005708 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005709 {16 * 1024, 1},
5710 {8 * 1024, 2},
5711 {32 * 1024, 1},
5712 {64 * 1024, 7},
5713 },
Sean Nelson35727f72010-01-28 23:55:12 +00005714 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005715 }, {
5716 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005717 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005718 },
5719 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005720 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005721 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005722 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005723 },
5724
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005725 {
5726 .vendor = "Fujitsu",
5727 .name = "MBM29F004TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005728 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005729 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005730 .model_id = FUJITSU_MBM29F004TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005731 .total_size = 512,
5732 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005733 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005734 .tested = TEST_UNTESTED,
5735 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005736 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005737 .block_erasers =
5738 {
5739 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005740 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005741 {64 * 1024, 7},
5742 {32 * 1024, 1},
5743 {8 * 1024, 2},
5744 {16 * 1024, 1},
5745 },
Sean Nelson35727f72010-01-28 23:55:12 +00005746 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005747 }, {
5748 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005749 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005750 },
5751 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005752 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005753 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005754 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005755 },
5756
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005757 {
Sean Nelson35727f72010-01-28 23:55:12 +00005758 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005759 .vendor = "Fujitsu",
5760 .name = "MBM29F400BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005761 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005762 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005763 .model_id = FUJITSU_MBM29F400BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005764 .total_size = 512,
5765 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005766 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00005767 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005768 .probe = probe_jedec,
5769 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson6b11ad22009-12-23 17:05:59 +00005770 .block_erasers =
5771 {
5772 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005773 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005774 {16 * 1024, 1},
5775 {8 * 1024, 2},
5776 {32 * 1024, 1},
5777 {64 * 1024, 7},
5778 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005779 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005780 }, {
5781 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005782 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005783 },
5784 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005785 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005786 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005787 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00005788 },
5789
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005790 {
5791 .vendor = "Fujitsu",
5792 .name = "MBM29F400TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005793 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005794 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005795 .model_id = FUJITSU_MBM29F400TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005796 .total_size = 512,
5797 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005798 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005799 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005800 .probe = probe_jedec,
5801 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson6b11ad22009-12-23 17:05:59 +00005802 .block_erasers =
5803 {
5804 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005805 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005806 {64 * 1024, 7},
5807 {32 * 1024, 1},
5808 {8 * 1024, 2},
5809 {16 * 1024, 1},
5810 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005811 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005812 }, {
5813 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005814 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005815 },
5816 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005817 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005818 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005819 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00005820 },
5821
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005822 {
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005823 .vendor = "Fujitsu",
5824 .name = "MBM29LV160BE",
5825 .bustype = BUS_PARALLEL,
5826 .manufacture_id = FUJITSU_ID,
5827 .model_id = FUJITSU_MBM29LV160BE,
5828 .total_size = 2 * 1024,
5829 .page_size = 0,
5830 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET,
5831 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005832 .probe = probe_jedec,
5833 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005834 .block_erasers =
5835 {
5836 {
5837 .eraseblocks = {
5838 {16 * 1024, 1},
5839 {8 * 1024, 2},
5840 {32 * 1024, 1},
5841 {64 * 1024, 31},
5842 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005843 .block_erase = erase_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005844 }, {
5845 .eraseblocks = { {2048 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005846 .block_erase = erase_chip_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005847 },
5848 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005849 .write = write_jedec_1, /* Supports a fast mode too */
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005850 .read = read_memmapped,
5851 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */
5852 },
5853
5854 {
5855 .vendor = "Fujitsu",
5856 .name = "MBM29LV160TE",
5857 .bustype = BUS_PARALLEL,
5858 .manufacture_id = FUJITSU_ID,
5859 .model_id = FUJITSU_MBM29LV160TE,
5860 .total_size = 2 * 1024,
5861 .page_size = 0,
5862 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET,
5863 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005864 .probe = probe_jedec,
5865 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005866 .block_erasers =
5867 {
5868 {
5869 .eraseblocks = {
5870 {64 * 1024, 31},
5871 {32 * 1024, 1},
5872 {8 * 1024, 2},
5873 {16 * 1024, 1},
5874 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005875 .block_erase = erase_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005876 }, {
5877 .eraseblocks = { {2048 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005878 .block_erase = erase_chip_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005879 },
5880 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005881 .write = write_jedec_1, /* Supports a fast mode too */
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005882 .read = read_memmapped,
5883 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */
5884 },
5885
5886 {
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005887 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005888 .name = "GD25B128B/GD25Q128B",
Roman Titov95edc892015-04-03 21:29:04 +00005889 .bustype = BUS_SPI,
5890 .manufacture_id = GIGADEVICE_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005891 .model_id = GIGADEVICE_GD25Q128,
5892 .total_size = 16384,
Roman Titov95edc892015-04-03 21:29:04 +00005893 .page_size = 256,
5894 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
5895 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005896 .tested = TEST_OK_PREW,
Roman Titov95edc892015-04-03 21:29:04 +00005897 .probe = probe_spi_rdid,
5898 .probe_timing = TIMING_ZERO,
5899 .block_erasers =
5900 {
5901 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005902 .eraseblocks = { {4 * 1024, 4096} },
Roman Titov95edc892015-04-03 21:29:04 +00005903 .block_erase = spi_block_erase_20,
5904 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005905 .eraseblocks = { {32 * 1024, 512} },
Roman Titov95edc892015-04-03 21:29:04 +00005906 .block_erase = spi_block_erase_52,
5907 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005908 .eraseblocks = { {64 * 1024, 256} },
Roman Titov95edc892015-04-03 21:29:04 +00005909 .block_erase = spi_block_erase_d8,
5910 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005911 .eraseblocks = { {16 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00005912 .block_erase = spi_block_erase_60,
5913 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005914 .eraseblocks = { {16 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00005915 .block_erase = spi_block_erase_c7,
5916 }
5917 },
5918 .printlock = spi_prettyprint_status_register_bp4_srwd,
5919 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5920 .write = spi_chip_write_256,
5921 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Alan Green1f9cc7d2019-07-01 11:10:45 +10005922 .voltage = {2700, 3600},
Roman Titov95edc892015-04-03 21:29:04 +00005923 },
5924
5925 {
5926 .vendor = "GigaDevice",
Alan Green188127e2019-08-06 16:10:34 +10005927 .name = "GD25LQ128C/GD25LQ128D",
Roman Titov95edc892015-04-03 21:29:04 +00005928 .bustype = BUS_SPI,
5929 .manufacture_id = GIGADEVICE_ID,
Alan Green188127e2019-08-06 16:10:34 +10005930 .model_id = GIGADEVICE_GD25LQ128CD,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005931 .total_size = 16384,
Roman Titov95edc892015-04-03 21:29:04 +00005932 .page_size = 256,
5933 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
5934 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5935 .tested = TEST_UNTESTED,
5936 .probe = probe_spi_rdid,
5937 .probe_timing = TIMING_ZERO,
5938 .block_erasers =
5939 {
5940 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005941 .eraseblocks = { {4 * 1024, 4096} },
Roman Titov95edc892015-04-03 21:29:04 +00005942 .block_erase = spi_block_erase_20,
5943 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005944 .eraseblocks = { {32 * 1024, 512} },
Roman Titov95edc892015-04-03 21:29:04 +00005945 .block_erase = spi_block_erase_52,
5946 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005947 .eraseblocks = { {64 * 1024, 256} },
Roman Titov95edc892015-04-03 21:29:04 +00005948 .block_erase = spi_block_erase_d8,
5949 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005950 .eraseblocks = { {16 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00005951 .block_erase = spi_block_erase_60,
5952 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005953 .eraseblocks = { {16 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00005954 .block_erase = spi_block_erase_c7,
5955 }
5956 },
5957 .printlock = spi_prettyprint_status_register_bp4_srwd,
5958 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5959 .write = spi_chip_write_256,
5960 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5961 .voltage = {1695, 1950},
5962 },
5963
5964 {
5965 .vendor = "GigaDevice",
5966 .name = "GD25LQ16",
5967 .bustype = BUS_SPI,
5968 .manufacture_id = GIGADEVICE_ID,
5969 .model_id = GIGADEVICE_GD25LQ16,
5970 .total_size = 2048,
5971 .page_size = 256,
5972 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
5973 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5974 .tested = TEST_UNTESTED,
5975 .probe = probe_spi_rdid,
5976 .probe_timing = TIMING_ZERO,
5977 .block_erasers =
5978 {
5979 {
5980 .eraseblocks = { {4 * 1024, 512} },
5981 .block_erase = spi_block_erase_20,
5982 }, {
5983 .eraseblocks = { {32 * 1024, 64} },
5984 .block_erase = spi_block_erase_52,
5985 }, {
5986 .eraseblocks = { {64 * 1024, 32} },
5987 .block_erase = spi_block_erase_d8,
5988 }, {
5989 .eraseblocks = { {2 * 1024 * 1024, 1} },
5990 .block_erase = spi_block_erase_60,
5991 }, {
5992 .eraseblocks = { {2 * 1024 * 1024, 1} },
5993 .block_erase = spi_block_erase_c7,
5994 }
5995 },
5996 .printlock = spi_prettyprint_status_register_bp4_srwd,
5997 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5998 .write = spi_chip_write_256,
5999 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6000 .voltage = {1695, 1950},
6001 },
6002
6003 {
6004 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006005 .name = "GD25LQ32",
6006 .bustype = BUS_SPI,
6007 .manufacture_id = GIGADEVICE_ID,
6008 .model_id = GIGADEVICE_GD25LQ32,
6009 .total_size = 4096,
6010 .page_size = 256,
6011 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6012 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6013 .tested = TEST_OK_PREW,
6014 .probe = probe_spi_rdid,
6015 .probe_timing = TIMING_ZERO,
6016 .block_erasers =
6017 {
6018 {
6019 .eraseblocks = { {4 * 1024, 1024} },
6020 .block_erase = spi_block_erase_20,
6021 }, {
6022 .eraseblocks = { {32 * 1024, 128} },
6023 .block_erase = spi_block_erase_52,
6024 }, {
6025 .eraseblocks = { {64 * 1024, 64} },
6026 .block_erase = spi_block_erase_d8,
6027 }, {
6028 .eraseblocks = { {4 * 1024 * 1024, 1} },
6029 .block_erase = spi_block_erase_60,
6030 }, {
6031 .eraseblocks = { {4 * 1024 * 1024, 1} },
6032 .block_erase = spi_block_erase_c7,
6033 }
6034 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006035 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006036 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6037 .write = spi_chip_write_256,
Roman Titov95edc892015-04-03 21:29:04 +00006038 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6039 .voltage = {1695, 1950},
6040 },
6041
6042 {
6043 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006044 .name = "GD25LQ40",
6045 .bustype = BUS_SPI,
6046 .manufacture_id = GIGADEVICE_ID,
6047 .model_id = GIGADEVICE_GD25LQ40,
6048 .total_size = 512,
6049 .page_size = 256,
6050 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6051 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6052 .tested = TEST_UNTESTED,
6053 .probe = probe_spi_rdid,
6054 .probe_timing = TIMING_ZERO,
6055 .block_erasers =
6056 {
6057 {
6058 .eraseblocks = { {4 * 1024, 128} },
6059 .block_erase = spi_block_erase_20,
6060 }, {
6061 .eraseblocks = { {32 * 1024, 16} },
6062 .block_erase = spi_block_erase_52,
6063 }, {
6064 .eraseblocks = { {64 * 1024, 8} },
6065 .block_erase = spi_block_erase_d8,
6066 }, {
6067 .eraseblocks = { {512 * 1024, 1} },
6068 .block_erase = spi_block_erase_60,
6069 }, {
6070 .eraseblocks = { {512 * 1024, 1} },
6071 .block_erase = spi_block_erase_c7,
6072 }
6073 },
6074 .printlock = spi_prettyprint_status_register_bp4_srwd,
6075 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6076 .write = spi_chip_write_256,
6077 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6078 .voltage = {1695, 1950},
6079 },
6080
6081 {
6082 .vendor = "GigaDevice",
Roman Titov95edc892015-04-03 21:29:04 +00006083 .name = "GD25LQ64(B)",
6084 .bustype = BUS_SPI,
6085 .manufacture_id = GIGADEVICE_ID,
6086 .model_id = GIGADEVICE_GD25LQ64,
6087 .total_size = 8192,
6088 .page_size = 256,
6089 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6090 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +00006091 .tested = TEST_OK_PREW,
Roman Titov95edc892015-04-03 21:29:04 +00006092 .probe = probe_spi_rdid,
6093 .probe_timing = TIMING_ZERO,
6094 .block_erasers =
6095 {
6096 {
6097 .eraseblocks = { {4 * 1024, 2048} },
6098 .block_erase = spi_block_erase_20,
6099 }, {
6100 .eraseblocks = { {32 * 1024, 256} },
6101 .block_erase = spi_block_erase_52,
6102 }, {
6103 .eraseblocks = { {64 * 1024, 128} },
6104 .block_erase = spi_block_erase_d8,
6105 }, {
6106 .eraseblocks = { {8 * 1024 * 1024, 1} },
6107 .block_erase = spi_block_erase_60,
6108 }, {
6109 .eraseblocks = { {8 * 1024 * 1024, 1} },
6110 .block_erase = spi_block_erase_c7,
6111 }
6112 },
6113 .printlock = spi_prettyprint_status_register_bp4_srwd,
6114 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6115 .write = spi_chip_write_256,
6116 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6117 .voltage = {1695, 1950},
6118 },
6119
6120 {
6121 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006122 .name = "GD25LQ80",
Roman Titov95edc892015-04-03 21:29:04 +00006123 .bustype = BUS_SPI,
6124 .manufacture_id = GIGADEVICE_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006125 .model_id = GIGADEVICE_GD25LQ80,
6126 .total_size = 1024,
Roman Titov95edc892015-04-03 21:29:04 +00006127 .page_size = 256,
6128 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6129 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6130 .tested = TEST_UNTESTED,
6131 .probe = probe_spi_rdid,
6132 .probe_timing = TIMING_ZERO,
6133 .block_erasers =
6134 {
6135 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006136 .eraseblocks = { {4 * 1024, 256} },
Roman Titov95edc892015-04-03 21:29:04 +00006137 .block_erase = spi_block_erase_20,
6138 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006139 .eraseblocks = { {32 * 1024, 32} },
Roman Titov95edc892015-04-03 21:29:04 +00006140 .block_erase = spi_block_erase_52,
6141 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006142 .eraseblocks = { {64 * 1024, 16} },
Roman Titov95edc892015-04-03 21:29:04 +00006143 .block_erase = spi_block_erase_d8,
6144 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006145 .eraseblocks = { {1 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00006146 .block_erase = spi_block_erase_60,
6147 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006148 .eraseblocks = { {1 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00006149 .block_erase = spi_block_erase_c7,
6150 }
6151 },
6152 .printlock = spi_prettyprint_status_register_bp4_srwd,
6153 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6154 .write = spi_chip_write_256,
6155 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6156 .voltage = {1695, 1950},
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006157 },
6158
6159 {
6160 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006161 .name = "GD25Q10",
6162 .bustype = BUS_SPI,
6163 .manufacture_id = GIGADEVICE_ID,
6164 .model_id = GIGADEVICE_GD25Q10,
6165 .total_size = 128,
6166 .page_size = 256,
6167 .feature_bits = FEATURE_WRSR_WREN,
6168 .tested = TEST_UNTESTED,
6169 .probe = probe_spi_rdid,
6170 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10006171 .block_erasers =
6172 {
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006173 {
6174 .eraseblocks = { {4 * 1024, 32} },
6175 .block_erase = spi_block_erase_20,
6176 }, {
6177 .eraseblocks = { {32 * 1024, 4} },
6178 .block_erase = spi_block_erase_52,
6179 }, {
6180 .eraseblocks = { {64 * 1024, 2} },
6181 .block_erase = spi_block_erase_d8,
6182 }, {
6183 .eraseblocks = { {128 * 1024, 1} },
6184 .block_erase = spi_block_erase_60,
6185 }, {
6186 .eraseblocks = { {128 * 1024, 1} },
6187 .block_erase = spi_block_erase_c7,
6188 }
6189 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006190 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006191 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6192 .write = spi_chip_write_256,
6193 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6194 .voltage = {2700, 3600},
6195 },
6196
6197 {
6198 .vendor = "GigaDevice",
Alan Green4f009122019-08-26 10:45:18 +10006199 .name = "GD25Q127C/GD25Q128C",
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006200 .bustype = BUS_SPI,
6201 .manufacture_id = GIGADEVICE_ID,
6202 .model_id = GIGADEVICE_GD25Q128,
6203 .total_size = 16384,
6204 .page_size = 256,
6205 /* OTP: 1536B total; read 0x48; write 0x42, erase 0x44 */
6206 /* QPI: enable 0x38, disable 0xFF */
6207 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Angel Ponsbce364c2018-09-30 20:04:14 +02006208 .tested = TEST_OK_PREW,
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006209 .probe = probe_spi_rdid,
6210 .probe_timing = TIMING_ZERO,
6211 .block_erasers =
6212 {
6213 {
6214 .eraseblocks = { {4 * 1024, 4096} },
6215 .block_erase = spi_block_erase_20,
6216 }, {
6217 .eraseblocks = { {32 * 1024, 512} },
6218 .block_erase = spi_block_erase_52,
6219 }, {
6220 .eraseblocks = { {64 * 1024, 256} },
6221 .block_erase = spi_block_erase_d8,
6222 }, {
6223 .eraseblocks = { {16 * 1024 * 1024, 1} },
6224 .block_erase = spi_block_erase_60,
6225 }, {
6226 .eraseblocks = { {16 * 1024 * 1024, 1} },
6227 .block_erase = spi_block_erase_c7,
6228 }
6229 },
6230 /* TODO: 2nd status reg (read 0x35, write 0x31) and 3rd status reg (read 0x15, write 0x11) */
6231 .printlock = spi_prettyprint_status_register_bp4_srwd,
6232 .unlock = spi_disable_blockprotect_bp4_srwd,
6233 .write = spi_chip_write_256,
6234 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6235 .voltage = {2700, 3600},
6236 },
6237
6238 {
6239 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006240 .name = "GD25Q16(B)",
6241 .bustype = BUS_SPI,
6242 .manufacture_id = GIGADEVICE_ID,
6243 .model_id = GIGADEVICE_GD25Q16,
6244 .total_size = 2048,
6245 .page_size = 256,
6246 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
6247 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6248 .tested = TEST_OK_PREW,
6249 .probe = probe_spi_rdid,
6250 .probe_timing = TIMING_ZERO,
6251 .block_erasers =
6252 {
6253 {
6254 .eraseblocks = { {4 * 1024, 512} },
6255 .block_erase = spi_block_erase_20,
6256 }, {
6257 .eraseblocks = { {32 * 1024, 64} },
6258 .block_erase = spi_block_erase_52,
6259 }, {
6260 .eraseblocks = { {64 * 1024, 32} },
6261 .block_erase = spi_block_erase_d8,
6262 }, {
6263 .eraseblocks = { {2 * 1024 * 1024, 1} },
6264 .block_erase = spi_block_erase_60,
6265 }, {
6266 .eraseblocks = { {2 * 1024 * 1024, 1} },
6267 .block_erase = spi_block_erase_c7,
6268 }
6269 },
6270 .printlock = spi_prettyprint_status_register_bp4_srwd,
6271 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6272 .write = spi_chip_write_256,
6273 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6274 .voltage = {2700, 3600},
6275 },
6276
6277 {
6278 .vendor = "GigaDevice",
6279 .name = "GD25Q20(B)",
6280 .bustype = BUS_SPI,
6281 .manufacture_id = GIGADEVICE_ID,
6282 .model_id = GIGADEVICE_GD25Q20,
6283 .total_size = 256,
6284 .page_size = 256,
6285 .feature_bits = FEATURE_WRSR_WREN,
6286 .tested = TEST_OK_PREW,
6287 .probe = probe_spi_rdid,
6288 .probe_timing = TIMING_ZERO,
6289 .block_erasers =
6290 {
6291 {
6292 .eraseblocks = { {4 * 1024, 64} },
6293 .block_erase = spi_block_erase_20,
6294 }, {
6295 .eraseblocks = { {32 * 1024, 8} },
6296 .block_erase = spi_block_erase_52,
6297 }, {
6298 .eraseblocks = { {64 * 1024, 4} },
6299 .block_erase = spi_block_erase_d8,
6300 }, {
6301 .eraseblocks = { {256 * 1024, 1} },
6302 .block_erase = spi_block_erase_60,
6303 }, {
6304 .eraseblocks = { {256 * 1024, 1} },
6305 .block_erase = spi_block_erase_c7,
6306 }
6307 },
6308 .printlock = spi_prettyprint_status_register_bp4_srwd,
6309 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6310 .write = spi_chip_write_256,
6311 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6312 .voltage = {2700, 3600},
6313 },
6314
6315 {
6316 .vendor = "GigaDevice",
Alan Green86fc9cf2019-08-26 15:02:12 +10006317 .name = "GD25Q256D",
6318 .bustype = BUS_SPI,
6319 .manufacture_id = GIGADEVICE_ID,
6320 .model_id = GIGADEVICE_GD25Q256D,
6321 .total_size = 32768,
6322 .page_size = 256,
6323 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
6324 .tested = TEST_UNTESTED,
6325 .probe = probe_spi_rdid,
6326 .probe_timing = TIMING_ZERO,
6327 .block_erasers =
6328 {
6329 {
6330 .eraseblocks = { {4 * 1024, 8192} },
Nico Huber5374dc32019-10-04 16:16:15 +02006331 .block_erase = spi_block_erase_21,
6332 }, {
6333 .eraseblocks = { {4 * 1024, 8192} },
Alan Green86fc9cf2019-08-26 15:02:12 +10006334 .block_erase = spi_block_erase_20,
6335 }, {
6336 .eraseblocks = { {32 * 1024, 1024} },
Nico Huber5374dc32019-10-04 16:16:15 +02006337 .block_erase = spi_block_erase_5c,
6338 }, {
6339 .eraseblocks = { {32 * 1024, 1024} },
Alan Green86fc9cf2019-08-26 15:02:12 +10006340 .block_erase = spi_block_erase_52,
6341 }, {
6342 .eraseblocks = { {64 * 1024, 512} },
Nico Huber5374dc32019-10-04 16:16:15 +02006343 .block_erase = spi_block_erase_dc,
6344 }, {
6345 .eraseblocks = { {64 * 1024, 512} },
Alan Green86fc9cf2019-08-26 15:02:12 +10006346 .block_erase = spi_block_erase_d8,
6347 }, {
6348 .eraseblocks = { {32 * 1024 * 1024, 1} },
6349 .block_erase = spi_block_erase_60,
6350 }, {
6351 .eraseblocks = { {32 * 1024 * 1024, 1} },
6352 .block_erase = spi_block_erase_c7,
6353 }
6354 },
6355 .printlock = spi_prettyprint_status_register_bp3_srwd,
6356 .unlock = spi_disable_blockprotect,
6357 .write = spi_chip_write_256,
6358 .read = spi_chip_read,
6359 .voltage = {2700, 3600},
6360 },
6361
6362 {
6363 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006364 .name = "GD25Q32(B)",
6365 .bustype = BUS_SPI,
6366 .manufacture_id = GIGADEVICE_ID,
6367 .model_id = GIGADEVICE_GD25Q32,
6368 .total_size = 4096,
6369 .page_size = 256,
6370 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6371 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6372 .tested = TEST_OK_PREW,
6373 .probe = probe_spi_rdid,
6374 .probe_timing = TIMING_ZERO,
6375 .block_erasers =
6376 {
6377 {
6378 .eraseblocks = { {4 * 1024, 1024} },
6379 .block_erase = spi_block_erase_20,
6380 }, {
6381 .eraseblocks = { {32 * 1024, 128} },
6382 .block_erase = spi_block_erase_52,
6383 }, {
6384 .eraseblocks = { {64 * 1024, 64} },
6385 .block_erase = spi_block_erase_d8,
6386 }, {
6387 .eraseblocks = { {4 * 1024 * 1024, 1} },
6388 .block_erase = spi_block_erase_60,
6389 }, {
6390 .eraseblocks = { {4 * 1024 * 1024, 1} },
6391 .block_erase = spi_block_erase_c7,
6392 }
6393 },
6394 .printlock = spi_prettyprint_status_register_bp4_srwd,
6395 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6396 .write = spi_chip_write_256,
6397 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6398 .voltage = {2700, 3600},
6399 },
6400
6401 {
6402 .vendor = "GigaDevice",
6403 .name = "GD25Q40(B)",
6404 .bustype = BUS_SPI,
6405 .manufacture_id = GIGADEVICE_ID,
6406 .model_id = GIGADEVICE_GD25Q40,
6407 .total_size = 512,
6408 .page_size = 256,
6409 .feature_bits = FEATURE_WRSR_WREN,
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 = {2700, 3600},
6437 },
6438
6439 {
6440 .vendor = "GigaDevice",
6441 .name = "GD25Q512",
6442 .bustype = BUS_SPI,
6443 .manufacture_id = GIGADEVICE_ID,
6444 .model_id = GIGADEVICE_GD25Q512,
6445 .total_size = 64,
6446 .page_size = 256,
6447 .feature_bits = FEATURE_WRSR_WREN,
6448 .tested = TEST_OK_PREW,
6449 .probe = probe_spi_rdid,
6450 .probe_timing = TIMING_ZERO,
6451 .block_erasers =
6452 {
6453 {
6454 .eraseblocks = { {4 * 1024, 16} },
6455 .block_erase = spi_block_erase_20,
6456 }, {
6457 .eraseblocks = { {32 * 1024, 2} },
6458 .block_erase = spi_block_erase_52,
6459 }, {
6460 .eraseblocks = { {64 * 1024, 1} },
6461 .block_erase = spi_block_erase_60,
6462 }, {
6463 .eraseblocks = { {64 * 1024, 1} },
6464 .block_erase = spi_block_erase_c7,
6465 }
6466 },
6467 .printlock = spi_prettyprint_status_register_bp4_srwd,
6468 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6469 .write = spi_chip_write_256,
6470 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6471 .voltage = {2700, 3600},
6472 },
6473
6474 {
6475 .vendor = "GigaDevice",
6476 .name = "GD25Q64(B)",
6477 .bustype = BUS_SPI,
6478 .manufacture_id = GIGADEVICE_ID,
6479 .model_id = GIGADEVICE_GD25Q64,
6480 .total_size = 8192,
6481 .page_size = 256,
6482 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6483 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6484 .tested = TEST_OK_PREW,
6485 .probe = probe_spi_rdid,
6486 .probe_timing = TIMING_ZERO,
6487 .block_erasers =
6488 {
6489 {
6490 .eraseblocks = { {4 * 1024, 2048} },
6491 .block_erase = spi_block_erase_20,
6492 }, {
6493 .eraseblocks = { {32 * 1024, 256} },
6494 .block_erase = spi_block_erase_52,
6495 }, {
6496 .eraseblocks = { {64 * 1024, 128} },
6497 .block_erase = spi_block_erase_d8,
6498 }, {
6499 .eraseblocks = { {8 * 1024 * 1024, 1} },
6500 .block_erase = spi_block_erase_60,
6501 }, {
6502 .eraseblocks = { {8 * 1024 * 1024, 1} },
6503 .block_erase = spi_block_erase_c7,
6504 }
6505 },
6506 .printlock = spi_prettyprint_status_register_bp4_srwd,
6507 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6508 .write = spi_chip_write_256,
6509 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6510 .voltage = {2700, 3600},
6511 },
6512
6513 {
6514 .vendor = "GigaDevice",
6515 .name = "GD25Q80(B)",
6516 .bustype = BUS_SPI,
6517 .manufacture_id = GIGADEVICE_ID,
6518 .model_id = GIGADEVICE_GD25Q80,
6519 .total_size = 1024,
6520 .page_size = 256,
6521 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
6522 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6523 .tested = TEST_OK_PREW,
6524 .probe = probe_spi_rdid,
6525 .probe_timing = TIMING_ZERO,
6526 .block_erasers =
6527 {
6528 {
6529 .eraseblocks = { {4 * 1024, 256} },
6530 .block_erase = spi_block_erase_20,
6531 }, {
6532 .eraseblocks = { {32 * 1024, 32} },
6533 .block_erase = spi_block_erase_52,
6534 }, {
6535 .eraseblocks = { {64 * 1024, 16} },
6536 .block_erase = spi_block_erase_d8,
6537 }, {
6538 .eraseblocks = { {1024 * 1024, 1} },
6539 .block_erase = spi_block_erase_60,
6540 }, {
6541 .eraseblocks = { {1024 * 1024, 1} },
6542 .block_erase = spi_block_erase_c7,
6543 }
6544 },
6545 .printlock = spi_prettyprint_status_register_bp4_srwd,
6546 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6547 .write = spi_chip_write_256,
6548 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6549 .voltage = {2700, 3600},
6550 },
6551
6552 {
6553 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006554 .name = "GD25T80",
6555 .bustype = BUS_SPI,
6556 .manufacture_id = GIGADEVICE_ID,
6557 .model_id = GIGADEVICE_GD25T80,
6558 .total_size = 1024,
6559 .page_size = 256,
6560 /* OTP: 256B total; enter 0x3A */
6561 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6562 .tested = TEST_UNTESTED,
6563 .probe = probe_spi_rdid,
6564 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10006565 .block_erasers =
6566 {
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006567 {
6568 .eraseblocks = { {4 * 1024, 256} },
6569 .block_erase = spi_block_erase_20,
6570 }, {
6571 .eraseblocks = { {64 * 1024, 16} },
6572 .block_erase = spi_block_erase_52,
6573 }, {
6574 .eraseblocks = { {64 * 1024, 16} },
6575 .block_erase = spi_block_erase_d8,
6576 }, {
6577 .eraseblocks = { {1024 * 1024, 1} },
6578 .block_erase = spi_block_erase_60,
6579 }, {
6580 .eraseblocks = { {1024 * 1024, 1} },
6581 .block_erase = spi_block_erase_c7,
6582 }
6583 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006584 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006585 .unlock = spi_disable_blockprotect,
6586 .write = spi_chip_write_256,
6587 .read = spi_chip_read,
Stefan Tauner352e50b2013-02-22 15:58:45 +00006588 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006589 },
6590
6591 {
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006592 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006593 .name = "GD25VQ16C",
6594 .bustype = BUS_SPI,
6595 .manufacture_id = GIGADEVICE_ID,
6596 .model_id = GIGADEVICE_GD25VQ16C,
6597 .total_size = 2 * 1024,
6598 .page_size = 256,
6599 /* Supports SFDP */
6600 /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */
6601 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6602 .tested = TEST_UNTESTED,
6603 .probe = probe_spi_rdid,
6604 .probe_timing = TIMING_ZERO,
6605 .block_erasers =
6606 {
6607 {
6608 .eraseblocks = { { 4 * 1024, 512} },
6609 .block_erase = spi_block_erase_20,
6610 }, {
6611 .eraseblocks = { { 32 * 1024, 64} },
6612 .block_erase = spi_block_erase_52,
6613 }, {
6614 .eraseblocks = { { 64 * 1024, 32} },
6615 .block_erase = spi_block_erase_d8,
6616 }, {
6617 .eraseblocks = { {2 * 1024 * 1024, 1} },
6618 .block_erase = spi_block_erase_60,
6619 }, {
6620 .eraseblocks = { {2 * 1024 * 1024, 1} },
6621 .block_erase = spi_block_erase_c7,
6622 }
6623 },
6624 .printlock = spi_prettyprint_status_register_bp4_srwd,
6625 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6626 .write = spi_chip_write_256,
6627 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6628 .voltage = {2300, 3600},
6629 },
6630
6631 {
6632 .vendor = "GigaDevice",
Hatim Kanchwalad0595352016-03-06 14:33:49 +00006633 .name = "GD25VQ21B",
6634 .bustype = BUS_SPI,
6635 .manufacture_id = GIGADEVICE_ID,
6636 .model_id = GIGADEVICE_GD25VQ21B,
6637 .total_size = 256,
6638 .page_size = 256,
6639 /* OTP: 1536B total; read 0x48, write 0x42, erase 0x44 */
6640 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6641 .tested = TEST_UNTESTED,
6642 .probe = probe_spi_rdid,
6643 .probe_timing = TIMING_ZERO,
6644 .block_erasers =
6645 {
6646 {
6647 .eraseblocks = { { 4 * 1024, 64} },
6648 .block_erase = spi_block_erase_20,
6649 }, {
6650 .eraseblocks = { { 32 * 1024, 8} },
6651 .block_erase = spi_block_erase_52,
6652 }, {
6653 .eraseblocks = { { 64 * 1024, 4} },
6654 .block_erase = spi_block_erase_d8,
6655 }, {
6656 .eraseblocks = { {256 * 1024, 1} },
6657 .block_erase = spi_block_erase_60,
6658 }, {
6659 .eraseblocks = { {256 * 1024, 1} },
6660 .block_erase = spi_block_erase_c7,
6661 }
6662 },
6663 .printlock = spi_prettyprint_status_register_bp4_srwd,
6664 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6665 .write = spi_chip_write_256,
6666 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6667 .voltage = {2300, 3600},
6668 },
6669
6670 {
6671 .vendor = "GigaDevice",
6672 .name = "GD25VQ40C",
6673 .bustype = BUS_SPI,
6674 .manufacture_id = GIGADEVICE_ID,
6675 .model_id = GIGADEVICE_GD25VQ41B,
6676 .total_size = 512,
6677 .page_size = 256,
6678 /* Supports SFDP */
6679 /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */
6680 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6681 .tested = TEST_UNTESTED,
6682 .probe = probe_spi_rdid,
6683 .probe_timing = TIMING_ZERO,
6684 .block_erasers =
6685 {
6686 {
6687 .eraseblocks = { { 4 * 1024, 128} },
6688 .block_erase = spi_block_erase_20,
6689 }, {
6690 .eraseblocks = { { 32 * 1024, 16} },
6691 .block_erase = spi_block_erase_52,
6692 }, {
6693 .eraseblocks = { { 64 * 1024, 8} },
6694 .block_erase = spi_block_erase_d8,
6695 }, {
6696 .eraseblocks = { {512 * 1024, 1} },
6697 .block_erase = spi_block_erase_60,
6698 }, {
6699 .eraseblocks = { {512 * 1024, 1} },
6700 .block_erase = spi_block_erase_c7,
6701 }
6702 },
6703 .printlock = spi_prettyprint_status_register_bp4_srwd,
6704 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6705 .write = spi_chip_write_256,
6706 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6707 .voltage = {2300, 3600},
6708 },
6709
6710 {
6711 .vendor = "GigaDevice",
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006712 .name = "GD25VQ41B",
6713 .bustype = BUS_SPI,
6714 .manufacture_id = GIGADEVICE_ID,
6715 .model_id = GIGADEVICE_GD25VQ41B,
6716 .total_size = 512,
6717 .page_size = 256,
6718 /* OTP: 1536B total; read 0x48, write 0x42, erase 0x44 */
6719 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner0be072c2016-03-13 15:16:30 +00006720 .tested = TEST_OK_PREW,
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006721 .probe = probe_spi_rdid,
6722 .probe_timing = TIMING_ZERO,
Stefan Tauner0be072c2016-03-13 15:16:30 +00006723 .block_erasers =
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006724 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00006725 {
6726 .eraseblocks = { { 4 * 1024, 128} },
6727 .block_erase = spi_block_erase_20,
6728 }, {
6729 .eraseblocks = { { 32 * 1024, 16} },
6730 .block_erase = spi_block_erase_52,
6731 }, {
6732 .eraseblocks = { { 64 * 1024, 8} },
6733 .block_erase = spi_block_erase_d8,
6734 }, {
6735 .eraseblocks = { {512 * 1024, 1} },
6736 .block_erase = spi_block_erase_60,
6737 }, {
6738 .eraseblocks = { {512 * 1024, 1} },
6739 .block_erase = spi_block_erase_c7,
6740 }
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006741 },
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006742 .printlock = spi_prettyprint_status_register_bp4_srwd,
Hatim Kanchwalad0595352016-03-06 14:33:49 +00006743 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6744 .write = spi_chip_write_256,
6745 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6746 .voltage = {2300, 3600},
6747 },
6748
6749 {
6750 .vendor = "GigaDevice",
6751 .name = "GD25VQ80C",
6752 .bustype = BUS_SPI,
6753 .manufacture_id = GIGADEVICE_ID,
6754 .model_id = GIGADEVICE_GD25VQ80C,
6755 .total_size = 1024,
6756 .page_size = 256,
6757 /* Supports SFDP */
6758 /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */
6759 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6760 .tested = TEST_UNTESTED,
6761 .probe = probe_spi_rdid,
6762 .probe_timing = TIMING_ZERO,
6763 .block_erasers =
6764 {
6765 {
6766 .eraseblocks = { { 4 * 1024, 256} },
6767 .block_erase = spi_block_erase_20,
6768 }, {
6769 .eraseblocks = { { 32 * 1024, 32} },
6770 .block_erase = spi_block_erase_52,
6771 }, {
6772 .eraseblocks = { { 64 * 1024, 16} },
6773 .block_erase = spi_block_erase_d8,
6774 }, {
6775 .eraseblocks = { {1024 * 1024, 1} },
6776 .block_erase = spi_block_erase_60,
6777 }, {
6778 .eraseblocks = { {1024 * 1024, 1} },
6779 .block_erase = spi_block_erase_c7,
6780 }
6781 },
6782 .printlock = spi_prettyprint_status_register_bp4_srwd,
6783 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6784 .write = spi_chip_write_256,
6785 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6786 .voltage = {2300, 3600},
6787 },
6788
6789 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006790 .vendor = "Hyundai",
6791 .name = "HY29F002B",
6792 .bustype = BUS_PARALLEL,
6793 .manufacture_id = HYUNDAI_ID,
6794 .model_id = HYUNDAI_HY29F002B,
6795 .total_size = 256,
6796 .page_size = 256 * 1024,
6797 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Hatim Kanchwalad0595352016-03-06 14:33:49 +00006798 .tested = TEST_UNTESTED,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006799 .probe = probe_jedec,
6800 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Hatim Kanchwalad0595352016-03-06 14:33:49 +00006801 .block_erasers =
6802 {
6803 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006804 .eraseblocks = {
6805 {16 * 1024, 1},
6806 {8 * 1024, 2},
6807 {32 * 1024, 1},
6808 {64 * 1024, 3},
6809 },
6810 .block_erase = erase_sector_jedec,
Hatim Kanchwalad0595352016-03-06 14:33:49 +00006811 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006812 .eraseblocks = { {256 * 1024, 1} },
6813 .block_erase = erase_chip_block_jedec,
6814 },
Hatim Kanchwalad0595352016-03-06 14:33:49 +00006815 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10006816 .write = write_jedec_1,
6817 .read = read_memmapped,
6818 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006819 },
6820
6821 {
David Borgc96a8bd2010-06-21 16:12:22 +00006822 .vendor = "Hyundai",
6823 .name = "HY29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006824 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00006825 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006826 .model_id = HYUNDAI_HY29F002T,
David Borgc96a8bd2010-06-21 16:12:22 +00006827 .total_size = 256,
6828 .page_size = 256 * 1024,
6829 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006830 .tested = TEST_OK_PRE,
David Borgc96a8bd2010-06-21 16:12:22 +00006831 .probe = probe_jedec,
6832 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6833 .block_erasers =
6834 {
6835 {
6836 .eraseblocks = {
6837 {64 * 1024, 3},
6838 {32 * 1024, 1},
6839 {8 * 1024, 2},
6840 {16 * 1024, 1},
6841 },
6842 .block_erase = erase_sector_jedec,
6843 }, {
6844 .eraseblocks = { {256 * 1024, 1} },
6845 .block_erase = erase_chip_block_jedec,
6846 },
6847 },
6848 .write = write_jedec_1,
6849 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006850 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00006851 },
6852
6853 {
6854 .vendor = "Hyundai",
Joshua Roysf1324e02010-09-16 00:51:51 +00006855 .name = "HY29F040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006856 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00006857 .manufacture_id = HYUNDAI_ID,
6858 .model_id = HYUNDAI_HY29F040A,
6859 .total_size = 512,
6860 .page_size = 64 * 1024,
6861 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
6862 .tested = TEST_UNTESTED,
6863 .probe = probe_jedec,
6864 .probe_timing = TIMING_ZERO,
6865 .block_erasers =
6866 {
6867 {
6868 .eraseblocks = { {64 * 1024, 8} },
6869 .block_erase = erase_sector_jedec,
6870 }, {
6871 .eraseblocks = { {512 * 1024, 1} },
6872 .block_erase = erase_chip_block_jedec,
6873 },
6874 },
6875 .write = write_jedec_1,
6876 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006877 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00006878 },
6879
6880 {
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00006881 .vendor = "ISSI",
Angel Pons2ef47f32018-09-30 16:47:30 +02006882 .name = "IS25LP064",
6883 .bustype = BUS_SPI,
6884 .manufacture_id = ISSI_ID_SPI,
6885 .model_id = ISSI_IS25LP064,
6886 .total_size = 8192,
6887 .page_size = 256,
6888 /* OTP: 1024B total; read 0x48; write 0x42 */
6889 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6890 .tested = TEST_UNTESTED,
6891 .probe = probe_spi_rdid,
6892 .probe_timing = TIMING_ZERO,
6893 .block_erasers =
6894 {
6895 {
6896 .eraseblocks = { {4 * 1024, 2048} },
6897 .block_erase = spi_block_erase_20,
6898 }, {
6899 .eraseblocks = { {4 * 1024, 2048} },
6900 .block_erase = spi_block_erase_d7,
6901 }, {
6902 .eraseblocks = { {32 * 1024, 256} },
6903 .block_erase = spi_block_erase_52,
6904 }, {
6905 .eraseblocks = { {64 * 1024, 128} },
6906 .block_erase = spi_block_erase_d8,
6907 }, {
6908 .eraseblocks = { {8 * 1024 * 1024, 1} },
6909 .block_erase = spi_block_erase_60,
6910 }, {
6911 .eraseblocks = { {8 * 1024 * 1024, 1} },
6912 .block_erase = spi_block_erase_c7,
6913 }
6914 },
6915 .unlock = spi_disable_blockprotect,
6916 .write = spi_chip_write_256,
6917 .read = spi_chip_read,
6918 .voltage = {2300, 3600},
6919 },
6920
6921 {
6922 .vendor = "ISSI",
David Hendricks3083ed92017-05-02 13:25:56 -07006923 .name = "IS25LP128",
6924 .bustype = BUS_SPI,
6925 .manufacture_id = ISSI_ID_SPI,
6926 .model_id = ISSI_IS25LP128,
6927 .total_size = 16384,
6928 .page_size = 256,
6929 /* OTP: 1024B total; read 0x48; write 0x42 */
6930 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6931 .tested = TEST_OK_PREW,
6932 .probe = probe_spi_rdid,
6933 .probe_timing = TIMING_ZERO,
6934 .block_erasers =
6935 {
6936 {
6937 .eraseblocks = { {4 * 1024, 4096} },
6938 .block_erase = spi_block_erase_20,
6939 }, {
6940 .eraseblocks = { {4 * 1024, 4096} },
6941 .block_erase = spi_block_erase_d7,
6942 }, {
6943 .eraseblocks = { {32 * 1024, 512} },
6944 .block_erase = spi_block_erase_52,
6945 }, {
6946 .eraseblocks = { {64 * 1024, 256} },
6947 .block_erase = spi_block_erase_d8,
6948 }, {
6949 .eraseblocks = { {16 * 1024 * 1024, 1} },
6950 .block_erase = spi_block_erase_60,
6951 }, {
6952 .eraseblocks = { {16 * 1024 * 1024, 1} },
6953 .block_erase = spi_block_erase_c7,
6954 }
6955 },
6956 .unlock = spi_disable_blockprotect,
6957 .write = spi_chip_write_256,
6958 .read = spi_chip_read,
6959 .voltage = {2300, 3600},
6960 },
6961
6962 {
6963 .vendor = "ISSI",
David Hendricks61818dc2018-10-28 01:02:21 +00006964 .name = "IS25LP256",
6965 .bustype = BUS_SPI,
6966 .manufacture_id = ISSI_ID_SPI,
6967 .model_id = ISSI_IS25LP256,
6968 .total_size = 32768,
6969 .page_size = 256,
6970 /* supports SFDP */
6971 /* OTP: 1024B total; read 0x68; write 0x62, erase 0x64, read ID 0x4B */
6972 /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */
6973 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA | FEATURE_4BA_ENTER_EAR7,
6974 .tested = TEST_OK_PREW,
6975 .probe = probe_spi_rdid,
6976 .probe_timing = TIMING_ZERO,
6977 .block_erasers =
6978 {
6979 {
6980 .eraseblocks = { {4 * 1024, 8192} },
6981 .block_erase = spi_block_erase_21,
6982 }, {
6983 .eraseblocks = { {4 * 1024, 8192} },
6984 .block_erase = spi_block_erase_20,
6985 /* could also use spi_block_erase_d7 */
6986 }, {
6987 .eraseblocks = { {32 * 1024, 1024} },
6988 .block_erase = spi_block_erase_5c,
6989 }, {
6990 .eraseblocks = { {32 * 1024, 1024} },
6991 .block_erase = spi_block_erase_52,
6992 }, {
6993 .eraseblocks = { {64 * 1024, 512} },
6994 .block_erase = spi_block_erase_dc,
6995 }, {
6996 .eraseblocks = { {64 * 1024, 512} },
6997 .block_erase = spi_block_erase_d8,
6998 }, {
6999 .eraseblocks = { {32 * 1024 * 1024, 1} },
7000 .block_erase = spi_block_erase_60,
7001 }, {
7002 .eraseblocks = { {32 * 1024 * 1024, 1} },
7003 .block_erase = spi_block_erase_c7,
7004 }
7005 },
7006 .unlock = spi_disable_blockprotect,
7007 .write = spi_chip_write_256,
7008 .read = spi_chip_read,
7009 .voltage = {2300, 3600},
7010 },
7011
7012 {
7013 .vendor = "ISSI",
Nico Huberb27b8d12018-10-02 20:46:21 +02007014 .name = "IS25WP032",
7015 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +10007016 .manufacture_id = ISSI_ID_SPI,
Nico Huberb27b8d12018-10-02 20:46:21 +02007017 .model_id = ISSI_IS25WP032,
7018 .total_size = 4096,
7019 .page_size = 256,
7020 /* OTP: 1024B total; read 0x48; write 0x42 */
7021 /* QPI enable 0x35, disable 0xF5 */
7022 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7023 .tested = TEST_UNTESTED,
7024 .probe = probe_spi_rdid,
7025 .probe_timing = TIMING_ZERO,
7026 .block_erasers =
7027 {
7028 {
7029 .eraseblocks = { {4 * 1024, 1024} },
7030 .block_erase = spi_block_erase_20,
7031 }, {
7032 .eraseblocks = { {4 * 1024, 1024} },
7033 .block_erase = spi_block_erase_d7,
7034 }, {
7035 .eraseblocks = { {32 * 1024, 128} },
7036 .block_erase = spi_block_erase_52,
7037 }, {
7038 .eraseblocks = { {64 * 1024, 64} },
7039 .block_erase = spi_block_erase_d8,
7040 }, {
7041 .eraseblocks = { {4 * 1024 * 1024, 1} },
7042 .block_erase = spi_block_erase_60,
7043 }, {
7044 .eraseblocks = { {4 * 1024 * 1024, 1} },
7045 .block_erase = spi_block_erase_c7,
7046 }
7047 },
7048 .unlock = spi_disable_blockprotect,
7049 .write = spi_chip_write_256,
7050 .read = spi_chip_read,
7051 .voltage = {1650, 1950},
7052 },
7053
7054 {
7055 .vendor = "ISSI",
7056 .name = "IS25WP064",
7057 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +10007058 .manufacture_id = ISSI_ID_SPI,
Nico Huberb27b8d12018-10-02 20:46:21 +02007059 .model_id = ISSI_IS25WP064,
7060 .total_size = 8192,
7061 .page_size = 256,
7062 /* OTP: 1024B total; read 0x48; write 0x42 */
7063 /* QPI enable 0x35, disable 0xF5 */
7064 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7065 .tested = TEST_OK_PREW,
7066 .probe = probe_spi_rdid,
7067 .probe_timing = TIMING_ZERO,
7068 .block_erasers =
7069 {
7070 {
7071 .eraseblocks = { {4 * 1024, 2048} },
7072 .block_erase = spi_block_erase_20,
7073 }, {
7074 .eraseblocks = { {4 * 1024, 2048} },
7075 .block_erase = spi_block_erase_d7,
7076 }, {
7077 .eraseblocks = { {32 * 1024, 256} },
7078 .block_erase = spi_block_erase_52,
7079 }, {
7080 .eraseblocks = { {64 * 1024, 128} },
7081 .block_erase = spi_block_erase_d8,
7082 }, {
7083 .eraseblocks = { {8 * 1024 * 1024, 1} },
7084 .block_erase = spi_block_erase_60,
7085 }, {
7086 .eraseblocks = { {8 * 1024 * 1024, 1} },
7087 .block_erase = spi_block_erase_c7,
7088 }
7089 },
7090 .unlock = spi_disable_blockprotect,
7091 .write = spi_chip_write_256,
7092 .read = spi_chip_read,
7093 .voltage = {1650, 1950},
7094 },
7095
7096 {
7097 .vendor = "ISSI",
David Hendricks3083ed92017-05-02 13:25:56 -07007098 .name = "IS25WP128",
7099 .bustype = BUS_SPI,
7100 .manufacture_id = ISSI_ID_SPI,
7101 .model_id = ISSI_IS25WP128,
7102 .total_size = 16384,
7103 .page_size = 256,
7104 /* OTP: 1024B total; read 0x48; write 0x42 */
Nico Huberb27b8d12018-10-02 20:46:21 +02007105 /* QPI enable 0x35, disable 0xF5 */
7106 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
David Hendricks3083ed92017-05-02 13:25:56 -07007107 .tested = TEST_OK_PREW,
7108 .probe = probe_spi_rdid,
7109 .probe_timing = TIMING_ZERO,
7110 .block_erasers =
7111 {
7112 {
7113 .eraseblocks = { {4 * 1024, 4096} },
7114 .block_erase = spi_block_erase_20,
7115 }, {
7116 .eraseblocks = { {4 * 1024, 4096} },
7117 .block_erase = spi_block_erase_d7,
7118 }, {
7119 .eraseblocks = { {32 * 1024, 512} },
7120 .block_erase = spi_block_erase_52,
7121 }, {
7122 .eraseblocks = { {64 * 1024, 256} },
7123 .block_erase = spi_block_erase_d8,
7124 }, {
7125 .eraseblocks = { {16 * 1024 * 1024, 1} },
7126 .block_erase = spi_block_erase_60,
7127 }, {
7128 .eraseblocks = { {16 * 1024 * 1024, 1} },
7129 .block_erase = spi_block_erase_c7,
7130 }
7131 },
7132 .unlock = spi_disable_blockprotect,
7133 .write = spi_chip_write_256,
7134 .read = spi_chip_read,
7135 .voltage = {1650, 1950},
7136 },
7137
7138 {
7139 .vendor = "ISSI",
David Hendricks61818dc2018-10-28 01:02:21 +00007140 .name = "IS25WP256",
7141 .bustype = BUS_SPI,
7142 .manufacture_id = ISSI_ID_SPI,
7143 .model_id = ISSI_IS25WP256,
7144 .total_size = 32768,
7145 .page_size = 256,
7146 /* supports SFDP */
7147 /* OTP: 1024B total; read 0x68; write 0x62, erase 0x64, read ID 0x4B */
7148 /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */
7149 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA | FEATURE_4BA_ENTER_EAR7,
7150 .tested = TEST_OK_PREW,
7151 .probe = probe_spi_rdid,
7152 .probe_timing = TIMING_ZERO,
7153 .block_erasers =
7154 {
7155 {
7156 .eraseblocks = { {4 * 1024, 8192} },
7157 .block_erase = spi_block_erase_21,
7158 }, {
7159 .eraseblocks = { {4 * 1024, 8192} },
7160 .block_erase = spi_block_erase_20,
7161 /* could also use spi_block_erase_d7 */
7162 }, {
7163 .eraseblocks = { {32 * 1024, 1024} },
7164 .block_erase = spi_block_erase_5c,
7165 }, {
7166 .eraseblocks = { {32 * 1024, 1024} },
7167 .block_erase = spi_block_erase_52,
7168 }, {
7169 .eraseblocks = { {64 * 1024, 512} },
7170 .block_erase = spi_block_erase_dc,
7171 }, {
7172 .eraseblocks = { {64 * 1024, 512} },
7173 .block_erase = spi_block_erase_d8,
7174 }, {
7175 .eraseblocks = { {32 * 1024 * 1024, 1} },
7176 .block_erase = spi_block_erase_60,
7177 }, {
7178 .eraseblocks = { {32 * 1024 * 1024, 1} },
7179 .block_erase = spi_block_erase_c7,
7180 }
7181 },
7182 .unlock = spi_disable_blockprotect,
7183 .write = spi_chip_write_256,
7184 .read = spi_chip_read,
7185 .voltage = {1650, 1950},
7186 },
7187
7188 {
7189 .vendor = "ISSI",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007190 .name = "IS29GL064B",
7191 .bustype = BUS_PARALLEL,
7192 .manufacture_id = ISSI_ID,
7193 .model_id = ISSI_PMC_IS29GL064B,
7194 .total_size = 8192,
7195 .page_size = 128 * 1024, /* actual page size is 16 */
7196 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7197 .tested = TEST_UNTESTED,
7198 .probe = probe_jedec_29gl,
7199 .probe_timing = TIMING_ZERO,
7200 .block_erasers =
7201 {
7202 {
7203 .eraseblocks = {
7204 {8 * 1024, 8},
7205 {64 * 1024, 127},
7206 },
7207 .block_erase = erase_sector_jedec,
7208 }, {
7209 .eraseblocks = { {8 * 1024 * 1024, 1} },
7210 .block_erase = erase_chip_block_jedec,
7211 },
7212 },
7213 .write = write_jedec_1,
7214 .read = read_memmapped,
7215 .voltage = {2700, 3600},
7216 },
7217
7218 {
7219 .vendor = "ISSI",
Alan Green1f9cc7d2019-07-01 11:10:45 +10007220 .name = "IS29GL064H/L",
7221 .bustype = BUS_PARALLEL,
7222 .manufacture_id = ISSI_ID,
7223 .model_id = ISSI_PMC_IS29GL064HL,
7224 .total_size = 8192,
7225 .page_size = 128 * 1024, /* actual page size is 16 */
7226 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7227 .tested = TEST_UNTESTED,
7228 .probe = probe_jedec_29gl,
7229 .probe_timing = TIMING_ZERO,
7230 .block_erasers =
7231 {
7232 {
7233 .eraseblocks = { {64 * 1024, 128} },
7234 .block_erase = erase_sector_jedec,
7235 }, {
7236 .eraseblocks = { {8 * 1024 * 1024, 1} },
7237 .block_erase = erase_chip_block_jedec,
7238 },
7239 },
7240 .write = write_jedec_1,
7241 .read = read_memmapped,
7242 .voltage = {2700, 3600},
7243 },
7244
7245 {
7246 .vendor = "ISSI",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007247 .name = "IS29GL064T",
7248 .bustype = BUS_PARALLEL,
7249 .manufacture_id = ISSI_ID,
7250 .model_id = ISSI_PMC_IS29GL064T,
7251 .total_size = 8192,
7252 .page_size = 128 * 1024, /* actual page size is 16 */
7253 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7254 .tested = TEST_UNTESTED,
7255 .probe = probe_jedec_29gl,
7256 .probe_timing = TIMING_ZERO,
7257 .block_erasers =
7258 {
7259 {
7260 .eraseblocks = {
7261 {64 * 1024, 127},
7262 {8 * 1024, 8},
7263 },
7264 .block_erase = erase_sector_jedec,
7265 }, {
7266 .eraseblocks = { {8 * 1024 * 1024, 1} },
7267 .block_erase = erase_chip_block_jedec,
7268 },
7269 },
7270 .write = write_jedec_1,
7271 .read = read_memmapped,
7272 .voltage = {2700, 3600},
7273 },
7274
7275 {
7276 .vendor = "ISSI",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007277 .name = "IS29GL128H/L",
7278 .bustype = BUS_PARALLEL,
7279 .manufacture_id = ISSI_ID,
7280 .model_id = ISSI_PMC_IS29GL128HL,
7281 .total_size = 16384,
7282 .page_size = 128 * 1024, /* actual page size is 16 */
7283 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7284 .tested = TEST_UNTESTED,
7285 .probe = probe_jedec_29gl,
7286 .probe_timing = TIMING_ZERO,
7287 .block_erasers =
7288 {
7289 {
7290 .eraseblocks = { {128 * 1024, 128} },
7291 .block_erase = erase_sector_jedec,
7292 }, {
7293 .eraseblocks = { {16 * 1024 * 1024, 1} },
7294 .block_erase = erase_chip_block_jedec,
7295 },
7296 },
7297 .write = write_jedec_1,
7298 .read = read_memmapped,
7299 .voltage = {2700, 3600},
7300 },
7301
7302 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007303 .vendor = "Intel",
7304 .name = "25F160S33B8",
7305 .bustype = BUS_SPI,
7306 .manufacture_id = INTEL_ID,
7307 .model_id = INTEL_25F160S33B8,
7308 .total_size = 2048,
7309 .page_size = 256,
7310 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
7311 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7312 .tested = TEST_UNTESTED,
7313 .probe = probe_spi_rdid,
7314 .probe_timing = TIMING_ZERO,
7315 .block_erasers =
7316 {
7317 {
7318 /* This chip supports erasing of the 8 so-called "parameter blocks" with
7319 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
7320 * have no effect on the memory contents, but sets a flag in the SR.
7321 .eraseblocks = {
7322 {8 * 1024, 8},
7323 {64 * 1024, 31} // inaccessible
7324 },
7325 .block_erase = spi_block_erase_40,
7326 }, { */
7327 .eraseblocks = { {64 * 1024, 32} },
7328 .block_erase = spi_block_erase_d8,
7329 }, {
7330 .eraseblocks = { {2 * 1024 * 1024, 1} },
7331 .block_erase = spi_block_erase_c7,
7332 }
7333 },
7334 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
7335 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
7336 .write = spi_chip_write_256,
7337 .read = spi_chip_read, /* also fast read 0x0B */
7338 .voltage = {2700, 3600},
7339 },
7340
7341 {
7342 .vendor = "Intel",
7343 .name = "25F160S33T8",
7344 .bustype = BUS_SPI,
7345 .manufacture_id = INTEL_ID,
7346 .model_id = INTEL_25F160S33T8,
7347 .total_size = 2048,
7348 .page_size = 256,
7349 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
7350 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7351 .tested = TEST_UNTESTED,
7352 .probe = probe_spi_rdid,
7353 .probe_timing = TIMING_ZERO,
7354 .block_erasers =
7355 {
7356 {
7357 /* This chip supports erasing of the 8 so-called "parameter blocks" with
7358 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
7359 * have no effect on the memory contents, but sets a flag in the SR.
7360 .eraseblocks = {
7361 {64 * 1024, 31}, // inaccessible
7362 {8 * 1024, 8}
7363 },
7364 .block_erase = spi_block_erase_40,
7365 }, { */
7366 .eraseblocks = { {64 * 1024, 32} },
7367 .block_erase = spi_block_erase_d8,
7368 }, {
7369 .eraseblocks = { {2 * 1024 * 1024, 1} },
7370 .block_erase = spi_block_erase_c7,
7371 }
7372 },
7373 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
7374 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
7375 .write = spi_chip_write_256,
7376 .read = spi_chip_read, /* also fast read 0x0B */
7377 .voltage = {2700, 3600},
7378 },
7379
7380 {
7381 .vendor = "Intel",
7382 .name = "25F320S33B8",
7383 .bustype = BUS_SPI,
7384 .manufacture_id = INTEL_ID,
7385 .model_id = INTEL_25F320S33B8,
7386 .total_size = 4096,
7387 .page_size = 256,
7388 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
7389 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7390 .tested = TEST_UNTESTED,
7391 .probe = probe_spi_rdid,
7392 .probe_timing = TIMING_ZERO,
7393 .block_erasers =
7394 {
7395 {
7396 /* This chip supports erasing of the 8 so-called "parameter blocks" with
7397 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
7398 * have no effect on the memory contents, but sets a flag in the SR.
7399 .eraseblocks = {
7400 {8 * 1024, 8},
7401 {64 * 1024, 63} // inaccessible
7402 },
7403 .block_erase = spi_block_erase_40,
7404 }, { */
7405 .eraseblocks = { {64 * 1024, 64} },
7406 .block_erase = spi_block_erase_d8,
7407 }, {
7408 .eraseblocks = { {4 * 1024 * 1024, 1} },
7409 .block_erase = spi_block_erase_c7,
7410 }
7411 },
7412 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
7413 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
7414 .write = spi_chip_write_256,
7415 .read = spi_chip_read, /* also fast read 0x0B */
7416 .voltage = {2700, 3600},
7417 },
7418
7419 {
7420 .vendor = "Intel",
7421 .name = "25F320S33T8",
7422 .bustype = BUS_SPI,
7423 .manufacture_id = INTEL_ID,
7424 .model_id = INTEL_25F320S33T8,
7425 .total_size = 4096,
7426 .page_size = 256,
7427 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
7428 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7429 .tested = TEST_UNTESTED,
7430 .probe = probe_spi_rdid,
7431 .probe_timing = TIMING_ZERO,
7432 .block_erasers =
7433 {
7434 {
7435 /* This chip supports erasing of the 8 so-called "parameter blocks" with
7436 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
7437 * have no effect on the memory contents, but sets a flag in the SR.
7438 .eraseblocks = {
7439 {64 * 1024, 63}, // inaccessible
7440 {8 * 1024, 8}
7441 },
7442 .block_erase = spi_block_erase_40,
7443 }, { */
7444 .eraseblocks = { {64 * 1024, 64} },
7445 .block_erase = spi_block_erase_d8,
7446 }, {
7447 .eraseblocks = { {4 * 1024 * 1024, 1} },
7448 .block_erase = spi_block_erase_c7,
7449 }
7450 },
7451 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
7452 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
7453 .write = spi_chip_write_256,
7454 .read = spi_chip_read, /* also fast read 0x0B */
7455 .voltage = {2700, 3600},
7456 },
7457
7458 {
7459 .vendor = "Intel",
7460 .name = "25F640S33B8",
7461 .bustype = BUS_SPI,
7462 .manufacture_id = INTEL_ID,
7463 .model_id = INTEL_25F640S33B8,
7464 .total_size = 8192,
7465 .page_size = 256,
7466 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
7467 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7468 .tested = TEST_UNTESTED,
7469 .probe = probe_spi_rdid,
7470 .probe_timing = TIMING_ZERO,
7471 .block_erasers =
7472 {
7473 {
7474 /* This chip supports erasing of the 8 so-called "parameter blocks" with
7475 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
7476 * have no effect on the memory contents, but sets a flag in the SR.
7477 .eraseblocks = {
7478 {8 * 1024, 8},
7479 {64 * 1024, 127} // inaccessible
7480 },
7481 .block_erase = spi_block_erase_40,
7482 }, { */
7483 .eraseblocks = { {64 * 1024, 128} },
7484 .block_erase = spi_block_erase_d8,
7485 }, {
7486 .eraseblocks = { {8 * 1024 * 1024, 1} },
7487 .block_erase = spi_block_erase_c7,
7488 }
7489 },
7490 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
7491 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
7492 .write = spi_chip_write_256,
7493 .read = spi_chip_read, /* also fast read 0x0B */
7494 .voltage = {2700, 3600},
7495 },
7496
7497 {
7498 .vendor = "Intel",
7499 .name = "25F640S33T8",
7500 .bustype = BUS_SPI,
7501 .manufacture_id = INTEL_ID,
7502 .model_id = INTEL_25F640S33T8,
7503 .total_size = 8192,
7504 .page_size = 256,
7505 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
7506 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7507 .tested = TEST_UNTESTED,
7508 .probe = probe_spi_rdid,
7509 .probe_timing = TIMING_ZERO,
7510 .block_erasers =
7511 {
7512 {
7513 /* This chip supports erasing of the 8 so-called "parameter blocks" with
7514 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
7515 * have no effect on the memory contents, but sets a flag in the SR.
7516 .eraseblocks = {
7517 {64 * 1024, 127}, // inaccessible
7518 {8 * 1024, 8}
7519 },
7520 .block_erase = spi_block_erase_40,
7521 }, { */
7522 .eraseblocks = { {64 * 1024, 128} },
7523 .block_erase = spi_block_erase_d8,
7524 }, {
7525 .eraseblocks = { {8 * 1024 * 1024, 1} },
7526 .block_erase = spi_block_erase_c7,
7527 }
7528 },
7529 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
7530 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
7531 .write = spi_chip_write_256,
7532 .read = spi_chip_read, /* also fast read 0x0B */
7533 .voltage = {2700, 3600},
7534 },
7535
7536 {
7537 .vendor = "Intel",
7538 .name = "28F001BN/BX-B",
7539 .bustype = BUS_PARALLEL,
7540 .manufacture_id = INTEL_ID,
7541 .model_id = INTEL_28F001B,
7542 .total_size = 128,
7543 .page_size = 128 * 1024, /* 8k + 2x4k + 112k */
7544 .tested = TEST_UNTESTED,
7545 .probe = probe_jedec,
7546 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7547 .block_erasers =
7548 {
7549 {
7550 .eraseblocks = {
7551 {8 * 1024, 1},
7552 {4 * 1024, 2},
7553 {112 * 1024, 1},
7554 },
7555 .block_erase = erase_block_82802ab,
7556 },
7557 },
7558 .write = write_82802ab,
7559 .read = read_memmapped,
7560 .voltage = {4500, 5500},
7561 },
7562
7563 {
7564 .vendor = "Intel",
7565 .name = "28F001BN/BX-T",
7566 .bustype = BUS_PARALLEL,
7567 .manufacture_id = INTEL_ID,
7568 .model_id = INTEL_28F001T,
7569 .total_size = 128,
7570 .page_size = 128 * 1024, /* 112k + 2x4k + 8k */
7571 .tested = TEST_OK_PREW,
7572 .probe = probe_jedec,
7573 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7574 .block_erasers =
7575 {
7576 {
7577 .eraseblocks = {
7578 {112 * 1024, 1},
7579 {4 * 1024, 2},
7580 {8 * 1024, 1},
7581 },
7582 .block_erase = erase_block_82802ab,
7583 },
7584 },
7585 .write = write_82802ab,
7586 .read = read_memmapped,
7587 .voltage = {4500, 5500},
7588 },
7589
7590 {
7591 .vendor = "Intel",
7592 .name = "28F002BC/BL/BV/BX-T",
7593 .bustype = BUS_PARALLEL,
7594 .manufacture_id = INTEL_ID,
7595 .model_id = INTEL_28F002T,
7596 .total_size = 256,
7597 .page_size = 256 * 1024,
7598 .tested = TEST_OK_PRE,
7599 .probe = probe_82802ab,
7600 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7601 .block_erasers =
7602 {
7603 {
7604 .eraseblocks = {
7605 {128 * 1024, 1},
7606 {96 * 1024, 1},
7607 {8 * 1024, 2},
7608 {16 * 1024, 1},
7609 },
7610 .block_erase = erase_block_82802ab,
7611 },
7612 },
7613 .write = write_82802ab,
7614 .read = read_memmapped,
7615 },
7616
7617 {
7618 .vendor = "Intel",
7619 .name = "28F004B5/BE/BV/BX-B",
7620 .bustype = BUS_PARALLEL,
7621 .manufacture_id = INTEL_ID,
7622 .model_id = INTEL_28F004B,
7623 .total_size = 512,
7624 .page_size = 128 * 1024, /* maximal block size */
7625 .tested = TEST_UNTESTED,
7626 .probe = probe_82802ab,
7627 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7628 .block_erasers =
7629 {
7630 {
7631 .eraseblocks = {
7632 {16 * 1024, 1},
7633 {8 * 1024, 2},
7634 {96 * 1024, 1},
7635 {128 * 1024, 3},
7636 },
7637 .block_erase = erase_block_82802ab,
7638 },
7639 },
7640 .write = write_82802ab,
7641 .read = read_memmapped,
7642 },
7643
7644 {
7645 .vendor = "Intel",
7646 .name = "28F004B5/BE/BV/BX-T",
7647 .bustype = BUS_PARALLEL,
7648 .manufacture_id = INTEL_ID,
7649 .model_id = INTEL_28F004T,
7650 .total_size = 512,
7651 .page_size = 128 * 1024, /* maximal block size */
7652 .tested = TEST_UNTESTED,
7653 .probe = probe_82802ab,
7654 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7655 .block_erasers =
7656 {
7657 {
7658 .eraseblocks = {
7659 {128 * 1024, 3},
7660 {96 * 1024, 1},
7661 {8 * 1024, 2},
7662 {16 * 1024, 1},
7663 },
7664 .block_erase = erase_block_82802ab,
7665 },
7666 },
7667 .write = write_82802ab,
7668 .read = read_memmapped,
7669 },
7670
7671 {
7672 .vendor = "Intel",
7673 .name = "28F008S3/S5/SC",
7674 .bustype = BUS_PARALLEL,
7675 .manufacture_id = INTEL_ID,
7676 .model_id = INTEL_28F004S3,
7677 .total_size = 512,
7678 .page_size = 256,
7679 .tested = TEST_UNTESTED,
7680 .probe = probe_82802ab,
7681 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7682 .block_erasers =
7683 {
7684 {
7685 .eraseblocks = { {64 * 1024, 8} },
7686 .block_erase = erase_block_82802ab,
7687 },
7688 },
7689 .unlock = unlock_28f004s5,
7690 .write = write_82802ab,
7691 .read = read_memmapped,
7692 },
7693
7694 {
7695 .vendor = "Intel",
7696 .name = "28F400BV/BX/CE/CV-B",
7697 .bustype = BUS_PARALLEL,
7698 .manufacture_id = INTEL_ID,
7699 .model_id = INTEL_28F400B,
7700 .total_size = 512,
7701 .page_size = 128 * 1024, /* maximal block size */
7702 .feature_bits = FEATURE_ADDR_SHIFTED,
7703 .tested = TEST_UNTESTED,
7704 .probe = probe_82802ab,
7705 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7706 .block_erasers =
7707 {
7708 {
7709 .eraseblocks = {
7710 {16 * 1024, 1},
7711 {8 * 1024, 2},
7712 {96 * 1024, 1},
7713 {128 * 1024, 3},
7714 },
7715 .block_erase = erase_block_82802ab,
7716 },
7717 },
7718 .write = write_82802ab,
7719 .read = read_memmapped,
7720 },
7721
7722 {
7723 .vendor = "Intel",
7724 .name = "28F400BV/BX/CE/CV-T",
7725 .bustype = BUS_PARALLEL,
7726 .manufacture_id = INTEL_ID,
7727 .model_id = INTEL_28F400T,
7728 .total_size = 512,
7729 .page_size = 128 * 1024, /* maximal block size */
7730 .feature_bits = FEATURE_ADDR_SHIFTED,
7731 .tested = TEST_UNTESTED,
7732 .probe = probe_82802ab,
7733 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7734 .block_erasers =
7735 {
7736 {
7737 .eraseblocks = {
7738 {128 * 1024, 3},
7739 {96 * 1024, 1},
7740 {8 * 1024, 2},
7741 {16 * 1024, 1},
7742 },
7743 .block_erase = erase_block_82802ab,
7744 },
7745 },
7746 .write = write_82802ab,
7747 .read = read_memmapped,
7748 },
7749
7750 {
7751 .vendor = "Intel",
7752 .name = "82802AB",
7753 .bustype = BUS_FWH,
7754 .manufacture_id = INTEL_ID,
7755 .model_id = INTEL_82802AB,
7756 .total_size = 512,
7757 .page_size = 64 * 1024,
7758 .feature_bits = FEATURE_REGISTERMAP,
Alan Green88552572019-07-24 13:56:06 +10007759 .tested = TEST_OK_PREW,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007760 .probe = probe_82802ab,
7761 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
7762 .block_erasers =
7763 {
7764 {
7765 .eraseblocks = { {64 * 1024, 8} },
7766 .block_erase = erase_block_82802ab,
7767 },
7768 },
7769 .unlock = unlock_regspace2_uniform_64k,
7770 .write = write_82802ab,
7771 .read = read_memmapped,
7772 .voltage = {3000, 3600},
7773 },
7774
7775 {
7776 .vendor = "Intel",
7777 .name = "82802AC",
7778 .bustype = BUS_FWH,
7779 .manufacture_id = INTEL_ID,
7780 .model_id = INTEL_82802AC,
7781 .total_size = 1024,
7782 .page_size = 64 * 1024,
7783 .feature_bits = FEATURE_REGISTERMAP,
7784 .tested = TEST_OK_PR,
7785 .probe = probe_82802ab,
7786 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
7787 .block_erasers =
7788 {
7789 {
7790 .eraseblocks = { {64 * 1024, 16} },
7791 .block_erase = erase_block_82802ab,
7792 },
7793 },
7794 .unlock = unlock_regspace2_uniform_64k,
7795 .write = write_82802ab,
7796 .read = read_memmapped,
7797 .voltage = {3000, 3600},
7798 },
7799
7800 {
7801 .vendor = "Macronix",
7802 .name = "MX23L12854",
7803 .bustype = BUS_SPI,
7804 .manufacture_id = MACRONIX_ID,
7805 .model_id = MACRONIX_MX23L12854,
7806 .total_size = 16384,
7807 .page_size = 256,
7808 .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA},
7809 .probe = probe_spi_rdid,
7810 .probe_timing = TIMING_ZERO,
7811 .write = NULL, /* MX23L12854 is a mask ROM, so it is read-only */
7812 .read = spi_chip_read, /* Fast read (0x0B) supported */
7813 .voltage = {3000, 3600},
7814 },
7815
7816 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007817 .vendor = "Macronix",
Michael Coppola583ea322014-08-20 18:56:35 +00007818 .name = "MX23L1654",
7819 .bustype = BUS_SPI,
7820 .manufacture_id = MACRONIX_ID,
7821 .model_id = MACRONIX_MX23L1654,
7822 .total_size = 2048,
7823 .page_size = 256,
7824 .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA},
7825 .probe = probe_spi_rdid,
7826 .probe_timing = TIMING_ZERO,
7827 .write = NULL, /* MX23L1654 is a mask ROM, so it is read-only */
7828 .read = spi_chip_read, /* Fast read (0x0B) supported */
7829 .voltage = {3000, 3600},
7830 },
7831
7832 {
7833 .vendor = "Macronix",
Michael Coppola4e7f36e2014-05-03 23:01:18 +00007834 .name = "MX23L3254",
7835 .bustype = BUS_SPI,
7836 .manufacture_id = MACRONIX_ID,
7837 .model_id = MACRONIX_MX23L3254,
7838 .total_size = 4096,
7839 .page_size = 256,
Stefan Tauner6455dff2014-05-26 00:36:24 +00007840 .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA},
Michael Coppola4e7f36e2014-05-03 23:01:18 +00007841 .probe = probe_spi_rdid,
7842 .probe_timing = TIMING_ZERO,
7843 .write = NULL, /* MX23L3254 is a mask ROM, so it is read-only */
7844 .read = spi_chip_read, /* Fast read (0x0B) supported */
7845 .voltage = {3000, 3600},
7846 },
7847
7848 {
7849 .vendor = "Macronix",
Michael Coppola583ea322014-08-20 18:56:35 +00007850 .name = "MX23L6454",
7851 .bustype = BUS_SPI,
7852 .manufacture_id = MACRONIX_ID,
7853 .model_id = MACRONIX_MX23L6454,
7854 .total_size = 8192,
7855 .page_size = 256,
Stefan Tauner23e10b82016-01-23 16:16:49 +00007856 .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA},
Michael Coppola583ea322014-08-20 18:56:35 +00007857 .probe = probe_spi_rdid,
7858 .probe_timing = TIMING_ZERO,
7859 .write = NULL, /* MX23L6454 is a mask ROM, so it is read-only */
7860 .read = spi_chip_read, /* Fast read (0x0B) supported */
7861 .voltage = {3000, 3600},
7862 },
7863
7864 {
7865 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00007866 .name = "MX25L1005(C)/MX25L1006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007867 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007868 .manufacture_id = MACRONIX_ID,
7869 .model_id = MACRONIX_MX25L1005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007870 .total_size = 128,
7871 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007872 /* MX25L1006E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00007873 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00007874 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007875 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007876 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007877 .block_erasers =
7878 {
7879 {
7880 .eraseblocks = { {4 * 1024, 32} },
7881 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007882 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007883 .eraseblocks = { {64 * 1024, 2} },
7884 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007885 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007886 .eraseblocks = { {128 * 1024, 1} },
7887 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007888 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007889 .eraseblocks = { {128 * 1024, 1} },
7890 .block_erase = spi_block_erase_c7,
7891 },
7892 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007893 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007894 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007895 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007896 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L1006E supports dual I/O */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007897 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007898 },
7899
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007900 {
7901 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10007902 .name = "MX25L12805D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007903 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007904 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007905 .model_id = MACRONIX_MX25L12805D,
7906 .total_size = 16384,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007907 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007908 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
7909 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007910 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007911 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007912 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007913 .block_erasers =
7914 {
7915 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007916 .eraseblocks = { {4 * 1024, 4096} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007917 .block_erase = spi_block_erase_20,
7918 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007919 .eraseblocks = { {64 * 1024, 256} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007920 .block_erase = spi_block_erase_d8,
7921 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007922 .eraseblocks = { {16 * 1024 * 1024, 1} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007923 .block_erase = spi_block_erase_60,
7924 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007925 .eraseblocks = { {16 * 1024 * 1024, 1} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007926 .block_erase = spi_block_erase_c7,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007927 }
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007928 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10007929 .printlock = spi_prettyprint_status_register_bp3_srwd,
7930 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007931 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007932 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007933 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007934 },
7935
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007936 {
7937 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10007938 .name = "MX25L12835F/MX25L12845E/MX25L12865E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007939 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007940 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007941 .model_id = MACRONIX_MX25L12805D,
7942 .total_size = 16384,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007943 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007944 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
7945 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner8179be52011-06-04 13:13:34 +00007946 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007947 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007948 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007949 .block_erasers =
7950 {
7951 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007952 .eraseblocks = { {4 * 1024, 4096} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007953 .block_erase = spi_block_erase_20,
7954 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007955 .eraseblocks = { {32 * 1024, 512} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007956 .block_erase = spi_block_erase_52,
7957 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007958 .eraseblocks = { {64 * 1024, 256} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007959 .block_erase = spi_block_erase_d8,
7960 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007961 .eraseblocks = { {16 * 1024 * 1024, 1} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007962 .block_erase = spi_block_erase_60,
7963 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007964 .eraseblocks = { {16 * 1024 * 1024, 1} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007965 .block_erase = spi_block_erase_c7,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007966 }
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007967 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10007968 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
7969 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
7970 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007971 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007972 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007973 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007974 },
7975
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007976 {
7977 .vendor = "Macronix",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007978 .name = "MX25L1605",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007979 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007980 .manufacture_id = MACRONIX_ID,
7981 .model_id = MACRONIX_MX25L1605,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007982 .total_size = 2048,
7983 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00007984 .feature_bits = FEATURE_WRSR_WREN,
Sven Schnelle4bd8a402011-03-07 10:59:06 +00007985 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007986 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007987 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007988 .block_erasers =
7989 {
7990 {
Stefan Tauner226037d2013-03-16 01:22:12 +00007991 .eraseblocks = { {64 * 1024, 32} },
7992 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007993 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00007994 .eraseblocks = { {64 * 1024, 32} },
7995 .block_erase = spi_block_erase_d8,
7996 }, {
7997 .eraseblocks = { {2 * 1024 * 1024, 1} },
7998 .block_erase = spi_block_erase_60,
7999 }, {
8000 .eraseblocks = { {2 * 1024 * 1024, 1} },
8001 .block_erase = spi_block_erase_c7,
8002 },
8003 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008004 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */
Stefan Tauner226037d2013-03-16 01:22:12 +00008005 .unlock = spi_disable_blockprotect,
8006 .write = spi_chip_write_256,
8007 .read = spi_chip_read, /* Fast read (0x0B) supported */
8008 .voltage = {2700, 3600},
8009 },
8010
8011 {
8012 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008013 .name = "MX25L1605A/MX25L1606E/MX25L1608E",
Stefan Tauner226037d2013-03-16 01:22:12 +00008014 .bustype = BUS_SPI,
8015 .manufacture_id = MACRONIX_ID,
8016 .model_id = MACRONIX_MX25L1605,
8017 .total_size = 2048,
8018 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008019 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L1606E and MX25L1608E only) */
Stefan Tauner226037d2013-03-16 01:22:12 +00008020 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8021 .tested = TEST_OK_PREW,
8022 .probe = probe_spi_rdid,
8023 .probe_timing = TIMING_ZERO,
8024 .block_erasers =
8025 {
8026 {
8027 .eraseblocks = { {4 * 1024, 512} },
8028 .block_erase = spi_block_erase_20,
8029 }, {
8030 .eraseblocks = { {64 * 1024, 32} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008031 .block_erase = spi_block_erase_52,
8032 }, {
8033 .eraseblocks = { {64 * 1024, 32} },
8034 .block_erase = spi_block_erase_d8,
8035 }, {
8036 .eraseblocks = { {2 * 1024 * 1024, 1} },
8037 .block_erase = spi_block_erase_60,
8038 }, {
8039 .eraseblocks = { {2 * 1024 * 1024, 1} },
8040 .block_erase = spi_block_erase_c7,
8041 },
8042 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008043 .printlock = spi_prettyprint_status_register_bp3_srwd, /* MX25L1605A bp2 only */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008044 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008045 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008046 .read = spi_chip_read, /* Fast read (0x0B) supported (MX25L1608E supports dual-I/O read) */
Stefan Tauner226037d2013-03-16 01:22:12 +00008047 .voltage = {2700, 3600},
8048 },
8049
8050 {
8051 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008052 .name = "MX25L1605D/MX25L1608D/MX25L1673E",
Stefan Tauner226037d2013-03-16 01:22:12 +00008053 .bustype = BUS_SPI,
8054 .manufacture_id = MACRONIX_ID,
8055 .model_id = MACRONIX_MX25L1605,
8056 .total_size = 2048,
8057 .page_size = 256,
8058 .feature_bits = FEATURE_WRSR_WREN,
8059 .tested = TEST_OK_PREW,
8060 .probe = probe_spi_rdid,
8061 .probe_timing = TIMING_ZERO,
8062 .block_erasers =
8063 {
8064 {
8065 .eraseblocks = { {4 * 1024, 512} },
8066 .block_erase = spi_block_erase_20,
8067 }, {
8068 .eraseblocks = { {64 * 1024, 32} },
8069 .block_erase = spi_block_erase_d8,
8070 }, {
8071 .eraseblocks = { {2 * 1024 * 1024, 1} },
8072 .block_erase = spi_block_erase_60,
8073 }, {
8074 .eraseblocks = { {2 * 1024 * 1024, 1} },
8075 .block_erase = spi_block_erase_c7,
8076 },
8077 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008078 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: Continuously Program (CP) mode, for 73E is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008079 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00008080 .write = spi_chip_write_256,
8081 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008082 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008083 },
8084
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008085 {
8086 .vendor = "Macronix",
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008087 .name = "MX25L1635D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008088 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008089 .manufacture_id = MACRONIX_ID,
8090 .model_id = MACRONIX_MX25L1635D,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008091 .total_size = 2048,
8092 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008093 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8094 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008095 .tested = TEST_UNTESTED,
8096 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008097 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008098 .block_erasers =
8099 {
8100 {
8101 .eraseblocks = { {4 * 1024, 512} },
8102 .block_erase = spi_block_erase_20,
8103 }, {
8104 .eraseblocks = { {64 * 1024, 32} },
8105 .block_erase = spi_block_erase_d8,
8106 }, {
8107 .eraseblocks = { {2 * 1024 * 1024, 1} },
8108 .block_erase = spi_block_erase_60,
8109 }, {
8110 .eraseblocks = { {2 * 1024 * 1024, 1} },
8111 .block_erase = spi_block_erase_c7,
8112 }
8113 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008114 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008115 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008116 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008117 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008118 .voltage = {2700, 3600},
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008119 },
Stephan Guillouxfd315502009-04-20 22:54:13 +00008120
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008121 {
8122 .vendor = "Macronix",
Stephan Guilloux3611b802010-09-13 19:59:28 +00008123 .name = "MX25L1635E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008124 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008125 .manufacture_id = MACRONIX_ID,
8126 .model_id = MACRONIX_MX25L1635E,
Stephan Guilloux3611b802010-09-13 19:59:28 +00008127 .total_size = 2048,
8128 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008129 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8130 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux3611b802010-09-13 19:59:28 +00008131 .tested = TEST_UNTESTED,
8132 .probe = probe_spi_rdid,
8133 .probe_timing = TIMING_ZERO,
8134 .block_erasers =
8135 {
8136 {
8137 .eraseblocks = { {4 * 1024, 512} },
8138 .block_erase = spi_block_erase_20,
8139 }, {
8140 .eraseblocks = { {64 * 1024, 32} },
8141 .block_erase = spi_block_erase_d8,
8142 }, {
8143 .eraseblocks = { {2 * 1024 * 1024, 1} },
8144 .block_erase = spi_block_erase_60,
8145 }, {
8146 .eraseblocks = { {2 * 1024 * 1024, 1} },
8147 .block_erase = spi_block_erase_c7,
8148 }
8149 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008150 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008151 .unlock = spi_disable_blockprotect_bp3_srwd,
Stephan Guilloux3611b802010-09-13 19:59:28 +00008152 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008153 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00008154 .voltage = {2700, 3600},
Stephan Guilloux3611b802010-09-13 19:59:28 +00008155 },
8156
8157 {
8158 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008159 .name = "MX25L2005(C)/MX25L2006E",
8160 .bustype = BUS_SPI,
8161 .manufacture_id = MACRONIX_ID,
8162 .model_id = MACRONIX_MX25L2005,
8163 .total_size = 256,
8164 .page_size = 256,
8165 .feature_bits = FEATURE_WRSR_WREN,
8166 .tested = TEST_OK_PREW,
8167 .probe = probe_spi_rdid,
8168 .probe_timing = TIMING_ZERO,
8169 .block_erasers =
8170 {
8171 {
8172 .eraseblocks = { {4 * 1024, 64} },
8173 .block_erase = spi_block_erase_20,
8174 }, {
8175 .eraseblocks = { {64 * 1024, 4} },
8176 .block_erase = spi_block_erase_52,
8177 }, {
8178 .eraseblocks = { {64 * 1024, 4} },
8179 .block_erase = spi_block_erase_d8,
8180 }, {
8181 .eraseblocks = { {256 * 1024, 1} },
8182 .block_erase = spi_block_erase_60,
8183 }, {
8184 .eraseblocks = { {256 * 1024, 1} },
8185 .block_erase = spi_block_erase_c7,
8186 },
8187 },
8188 .printlock = spi_prettyprint_status_register_bp1_srwd,
8189 .unlock = spi_disable_blockprotect,
8190 .write = spi_chip_write_256,
8191 .read = spi_chip_read, /* Fast read (0x0B) supported */
8192 .voltage = {2700, 3600},
8193 },
8194
8195 {
8196 .vendor = "Macronix",
Alan Green03707302019-08-26 12:50:43 +10008197 .name = "MX25L25635F/MX25L25645G",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008198 .bustype = BUS_SPI,
8199 .manufacture_id = MACRONIX_ID,
8200 .model_id = MACRONIX_MX25L25635F,
8201 .total_size = 32768,
8202 .page_size = 256,
8203 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8204 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
8205 .tested = TEST_OK_PREW,
8206 .probe = probe_spi_rdid,
8207 .probe_timing = TIMING_ZERO,
8208 .block_erasers =
8209 {
8210 {
8211 .eraseblocks = { {4 * 1024, 8192} },
8212 .block_erase = spi_block_erase_21,
8213 }, {
8214 .eraseblocks = { {4 * 1024, 8192} },
8215 .block_erase = spi_block_erase_20,
8216 }, {
8217 .eraseblocks = { {32 * 1024, 1024} },
8218 .block_erase = spi_block_erase_5c,
8219 }, {
8220 .eraseblocks = { {32 * 1024, 1024} },
8221 .block_erase = spi_block_erase_52,
8222 }, {
8223 .eraseblocks = { {64 * 1024, 512} },
8224 .block_erase = spi_block_erase_dc,
8225 }, {
8226 .eraseblocks = { {64 * 1024, 512} },
8227 .block_erase = spi_block_erase_d8,
8228 }, {
8229 .eraseblocks = { {32 * 1024 * 1024, 1} },
8230 .block_erase = spi_block_erase_60,
8231 }, {
8232 .eraseblocks = { {32 * 1024 * 1024, 1} },
8233 .block_erase = spi_block_erase_c7,
8234 }
8235 },
8236 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
8237 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8238 .unlock = spi_disable_blockprotect_bp3_srwd,
8239 .write = spi_chip_write_256,
8240 .read = spi_chip_read, /* Fast read (0x0B) supported */
8241 .voltage = {2700, 3600},
8242 },
8243
8244 {
8245 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00008246 .name = "MX25L3205(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008247 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008248 .manufacture_id = MACRONIX_ID,
8249 .model_id = MACRONIX_MX25L3205,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008250 .total_size = 4096,
8251 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00008252 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00008253 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008254 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008255 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00008256 .block_erasers =
8257 {
8258 {
Stefan Tauner226037d2013-03-16 01:22:12 +00008259 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00008260 .block_erase = spi_block_erase_20,
8261 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00008262 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00008263 .block_erase = spi_block_erase_d8,
8264 }, {
8265 .eraseblocks = { {4 * 1024 * 1024, 1} },
8266 .block_erase = spi_block_erase_60,
8267 }, {
8268 .eraseblocks = { {4 * 1024 * 1024, 1} },
8269 .block_erase = spi_block_erase_c7,
8270 },
8271 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008272 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008273 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008274 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008275 .read = spi_chip_read, /* Fast read (0x0B) supported */
8276 .voltage = {2700, 3600},
8277 },
8278
8279 {
8280 .vendor = "Macronix",
8281 .name = "MX25L3205D/MX25L3208D",
8282 .bustype = BUS_SPI,
8283 .manufacture_id = MACRONIX_ID,
8284 .model_id = MACRONIX_MX25L3205,
8285 .total_size = 4096,
8286 .page_size = 256,
8287 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8288 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8289 .tested = TEST_OK_PREW,
8290 .probe = probe_spi_rdid,
8291 .probe_timing = TIMING_ZERO,
8292 .block_erasers =
8293 {
8294 {
8295 .eraseblocks = { {4 * 1024, 1024} },
8296 .block_erase = spi_block_erase_20,
8297 }, {
8298 .eraseblocks = { {64 * 1024, 64} },
8299 .block_erase = spi_block_erase_d8,
8300 }, {
8301 .eraseblocks = { {4 * 1024 * 1024, 1} },
8302 .block_erase = spi_block_erase_60,
8303 }, {
8304 .eraseblocks = { {4 * 1024 * 1024, 1} },
8305 .block_erase = spi_block_erase_c7,
8306 },
8307 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008308 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008309 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00008310 .write = spi_chip_write_256,
8311 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
8312 .voltage = {2700, 3600},
8313 },
8314
8315 {
8316 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008317 .name = "MX25L3206E/MX25L3208E",
Stefan Tauner226037d2013-03-16 01:22:12 +00008318 .bustype = BUS_SPI,
8319 .manufacture_id = MACRONIX_ID,
8320 .model_id = MACRONIX_MX25L3205,
8321 .total_size = 4096,
8322 .page_size = 256,
8323 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8324 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8325 .tested = TEST_OK_PREW,
8326 .probe = probe_spi_rdid,
8327 .probe_timing = TIMING_ZERO,
8328 .block_erasers =
8329 {
8330 {
8331 .eraseblocks = { {4 * 1024, 1024} },
8332 .block_erase = spi_block_erase_20,
8333 }, {
8334 .eraseblocks = { {64 * 1024, 64} },
8335 .block_erase = spi_block_erase_d8,
8336 }, {
8337 .eraseblocks = { {64 * 1024, 64} },
8338 .block_erase = spi_block_erase_52,
8339 }, {
8340 .eraseblocks = { {4 * 1024 * 1024, 1} },
8341 .block_erase = spi_block_erase_60,
8342 }, {
8343 .eraseblocks = { {4 * 1024 * 1024, 1} },
8344 .block_erase = spi_block_erase_c7,
8345 },
8346 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008347 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008348 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00008349 .write = spi_chip_write_256,
8350 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008351 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008352 },
8353
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008354 {
8355 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008356 .name = "MX25L3235D",
8357 .bustype = BUS_SPI,
8358 .manufacture_id = MACRONIX_ID,
8359 .model_id = MACRONIX_MX25L3235D,
8360 .total_size = 4096,
8361 .page_size = 256,
8362 /* OTP: 256B total; enter 0xB1, exit 0xC1 */
8363 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8364 .tested = TEST_UNTESTED,
8365 .probe = probe_spi_rdid,
8366 .probe_timing = TIMING_ZERO,
8367 .block_erasers =
8368 {
8369 {
8370 .eraseblocks = { {4 * 1024, 1024} },
8371 .block_erase = spi_block_erase_20,
8372 }, {
8373 .eraseblocks = { {64 * 1024, 64} },
8374 .block_erase = spi_block_erase_d8,
8375 }, {
8376 .eraseblocks = { {4 * 1024 * 1024, 1} },
8377 .block_erase = spi_block_erase_60,
8378 }, {
8379 .eraseblocks = { {4 * 1024 * 1024, 1} },
8380 .block_erase = spi_block_erase_c7,
8381 }
8382 },
8383 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8384 .unlock = spi_disable_blockprotect_bp3_srwd,
8385 .write = spi_chip_write_256,
8386 .read = spi_chip_read,
8387 .voltage = {2700, 3600},
8388 },
8389
8390 {
8391 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008392 .name = "MX25L3273E",
8393 .bustype = BUS_SPI,
8394 .manufacture_id = MACRONIX_ID,
8395 .model_id = MACRONIX_MX25L3205,
8396 .total_size = 4096,
8397 .page_size = 256,
8398 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8399 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +00008400 .tested = TEST_OK_PREW,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008401 .probe = probe_spi_rdid,
8402 .probe_timing = TIMING_ZERO,
8403 .block_erasers =
8404 {
8405 {
8406 .eraseblocks = { {4 * 1024, 1024} },
8407 .block_erase = spi_block_erase_20,
8408 }, {
8409 .eraseblocks = { {32 * 1024, 128} },
8410 .block_erase = spi_block_erase_52,
8411 }, {
8412 .eraseblocks = { {64 * 1024, 64} },
8413 .block_erase = spi_block_erase_d8,
8414 }, {
8415 .eraseblocks = { {4 * 1024 * 1024, 1} },
8416 .block_erase = spi_block_erase_60,
8417 }, {
8418 .eraseblocks = { {4 * 1024 * 1024, 1} },
8419 .block_erase = spi_block_erase_c7,
8420 },
8421 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008422 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008423 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008424 .write = spi_chip_write_256,
8425 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
8426 .voltage = {2700, 3600},
8427 },
8428
8429 {
8430 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008431 .name = "MX25L4005(A/C)/MX25L4006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008432 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008433 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008434 .model_id = MACRONIX_MX25L4005,
8435 .total_size = 512,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00008436 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008437 .feature_bits = FEATURE_WRSR_WREN,
8438 .tested = TEST_OK_PREW,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00008439 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008440 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008441 .block_erasers =
8442 {
8443 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008444 .eraseblocks = { {4 * 1024, 128} },
Sean Nelson54596372010-01-09 05:30:14 +00008445 .block_erase = spi_block_erase_20,
8446 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008447 .eraseblocks = { {64 * 1024, 8} },
8448 .block_erase = spi_block_erase_52,
8449 }, {
8450 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson54596372010-01-09 05:30:14 +00008451 .block_erase = spi_block_erase_d8,
8452 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008453 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00008454 .block_erase = spi_block_erase_60,
8455 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008456 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00008457 .block_erase = spi_block_erase_c7,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008458 },
Sean Nelson54596372010-01-09 05:30:14 +00008459 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10008460 .printlock = spi_prettyprint_status_register_bp2_srwd,
8461 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008462 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008463 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008464 .voltage = {2700, 3600},
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00008465 },
8466
8467 {
8468 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008469 .name = "MX25L512(E)/MX25V512(C)",
8470 .bustype = BUS_SPI,
8471 .manufacture_id = MACRONIX_ID,
8472 .model_id = MACRONIX_MX25L512,
8473 .total_size = 64,
8474 .page_size = 256,
8475 /* MX25L512E supports SFDP */
8476 .feature_bits = FEATURE_WRSR_WREN,
8477 .tested = TEST_OK_PREW,
8478 .probe = probe_spi_rdid,
8479 .probe_timing = TIMING_ZERO,
8480 .block_erasers =
8481 {
8482 {
8483 .eraseblocks = { {4 * 1024, 16} },
8484 .block_erase = spi_block_erase_20,
8485 }, {
8486 .eraseblocks = { {64 * 1024, 1} },
8487 .block_erase = spi_block_erase_52,
8488 }, {
8489 .eraseblocks = { {64 * 1024, 1} },
8490 .block_erase = spi_block_erase_d8,
8491 }, {
8492 .eraseblocks = { {64 * 1024, 1} },
8493 .block_erase = spi_block_erase_60,
8494 }, {
8495 .eraseblocks = { {64 * 1024, 1} },
8496 .block_erase = spi_block_erase_c7,
8497 },
8498 },
8499 .printlock = spi_prettyprint_status_register_bp1_srwd,
8500 .unlock = spi_disable_blockprotect,
8501 .write = spi_chip_write_256,
8502 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L512E supports dual I/O */
8503 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V512(C) */
8504 },
8505
8506 {
8507 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008508 .name = "MX25L6405",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008509 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008510 .manufacture_id = MACRONIX_ID,
8511 .model_id = MACRONIX_MX25L6405,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008512 .total_size = 8192,
8513 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008514 /* Has an additional 512B EEPROM sector */
8515 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzelac427b22012-02-16 21:07:07 +00008516 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008517 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008518 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008519 .block_erasers =
8520 {
8521 {
8522 .eraseblocks = { {64 * 1024, 128} },
8523 .block_erase = spi_block_erase_20,
8524 }, {
8525 .eraseblocks = { {64 * 1024, 128} },
8526 .block_erase = spi_block_erase_d8,
8527 }, {
8528 .eraseblocks = { {8 * 1024 * 1024, 1} },
8529 .block_erase = spi_block_erase_60,
8530 }, {
8531 .eraseblocks = { {8 * 1024 * 1024, 1} },
8532 .block_erase = spi_block_erase_c7,
8533 }
8534 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008535 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: error flag */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008536 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008537 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008538 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008539 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008540 },
8541
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008542 {
8543 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008544 .name = "MX25L6405D",
Stefan Tauner226037d2013-03-16 01:22:12 +00008545 .bustype = BUS_SPI,
8546 .manufacture_id = MACRONIX_ID,
8547 .model_id = MACRONIX_MX25L6405,
8548 .total_size = 8192,
8549 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008550 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
Stefan Tauner226037d2013-03-16 01:22:12 +00008551 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8552 .tested = TEST_OK_PREW,
8553 .probe = probe_spi_rdid,
8554 .probe_timing = TIMING_ZERO,
8555 .block_erasers =
8556 {
8557 {
8558 .eraseblocks = { {4 * 1024, 2048} },
8559 .block_erase = spi_block_erase_20,
8560 }, {
8561 .eraseblocks = { {64 * 1024, 128} },
8562 .block_erase = spi_block_erase_d8,
8563 }, {
8564 .eraseblocks = { {8 * 1024 * 1024, 1} },
8565 .block_erase = spi_block_erase_60,
8566 }, {
8567 .eraseblocks = { {8 * 1024 * 1024, 1} },
8568 .block_erase = spi_block_erase_c7,
8569 }
8570 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008571 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008572 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00008573 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008574 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0xBB) supported */
Stefan Tauner226037d2013-03-16 01:22:12 +00008575 .voltage = {2700, 3600},
8576 },
8577
8578 {
8579 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008580 .name = "MX25L6406E/MX25L6408E",
8581 .bustype = BUS_SPI,
8582 .manufacture_id = MACRONIX_ID,
8583 .model_id = MACRONIX_MX25L6405,
8584 .total_size = 8192,
8585 .page_size = 256,
8586 /* MX25L6406E supports SFDP */
8587 /* OTP: 06E 64B total; enter 0xB1, exit 0xC1 */
8588 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8589 .tested = TEST_OK_PREW,
8590 .probe = probe_spi_rdid,
8591 .probe_timing = TIMING_ZERO,
8592 .block_erasers =
8593 {
8594 {
8595 .eraseblocks = { {4 * 1024, 2048} },
8596 .block_erase = spi_block_erase_20,
8597 }, {
8598 .eraseblocks = { {64 * 1024, 128} },
8599 .block_erase = spi_block_erase_52,
8600 }, {
8601 .eraseblocks = { {64 * 1024, 128} },
8602 .block_erase = spi_block_erase_d8,
8603 }, {
8604 .eraseblocks = { {8 * 1024 * 1024, 1} },
8605 .block_erase = spi_block_erase_60,
8606 }, {
8607 .eraseblocks = { {8 * 1024 * 1024, 1} },
8608 .block_erase = spi_block_erase_c7,
8609 }
8610 },
8611 .printlock = spi_prettyprint_status_register_bp3_srwd,
8612 .unlock = spi_disable_blockprotect_bp3_srwd,
8613 .write = spi_chip_write_256,
8614 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read supported */
8615 .voltage = {2700, 3600},
8616 },
8617
8618 {
8619 .vendor = "Macronix",
Nico Huberb0072782017-12-06 21:02:57 +01008620 .name = "MX25L6436E/MX25L6445E/MX25L6465E/MX25L6473E/MX25L6473F",
Stefan Tauner226037d2013-03-16 01:22:12 +00008621 .bustype = BUS_SPI,
8622 .manufacture_id = MACRONIX_ID,
8623 .model_id = MACRONIX_MX25L6405,
8624 .total_size = 8192,
8625 .page_size = 256,
8626 /* supports SFDP */
8627 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8628 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8629 .tested = TEST_OK_PREW,
8630 .probe = probe_spi_rdid,
8631 .probe_timing = TIMING_ZERO,
8632 .block_erasers =
8633 {
8634 {
8635 .eraseblocks = { {4 * 1024, 2048} },
8636 .block_erase = spi_block_erase_20,
8637 }, {
8638 .eraseblocks = { {32 * 1024, 256} },
8639 .block_erase = spi_block_erase_52,
8640 }, {
8641 .eraseblocks = { {64 * 1024, 128} },
8642 .block_erase = spi_block_erase_d8,
8643 }, {
8644 .eraseblocks = { {8 * 1024 * 1024, 1} },
8645 .block_erase = spi_block_erase_60,
8646 }, {
8647 .eraseblocks = { {8 * 1024 * 1024, 1} },
8648 .block_erase = spi_block_erase_c7,
8649 }
8650 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008651 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008652 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00008653 .write = spi_chip_write_256,
8654 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8655 .voltage = {2700, 3600},
8656 },
8657
8658 {
8659 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008660 .name = "MX25L6495F",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008661 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008662 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008663 .model_id = MACRONIX_MX25L6495F,
8664 .total_size = 8192,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00008665 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008666 /* OTP: 1024B total; enter 0xB1, exit 0xC1 */
Stefan Tauner226037d2013-03-16 01:22:12 +00008667 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +00008668 .tested = TEST_OK_PREW,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00008669 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008670 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008671 .block_erasers =
8672 {
8673 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008674 .eraseblocks = { {4 * 1024, 2048} },
Sean Nelson54596372010-01-09 05:30:14 +00008675 .block_erase = spi_block_erase_20,
8676 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008677 .eraseblocks = { {64 * 1024, 128} },
Sean Nelson54596372010-01-09 05:30:14 +00008678 .block_erase = spi_block_erase_d8,
8679 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008680 .eraseblocks = { {32 * 1024, 256} },
8681 .block_erase = spi_block_erase_52,
8682 }, {
8683 .eraseblocks = { {8 * 1024 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00008684 .block_erase = spi_block_erase_60,
8685 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008686 .eraseblocks = { {8 * 1024 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00008687 .block_erase = spi_block_erase_c7,
8688 }
8689 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10008690 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008691 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008692 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008693 .voltage = {2700, 3600},
8694 },
8695
8696 {
8697 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008698 .name = "MX25L8005/MX25L8006E/MX25L8008E/MX25V8005",
Stefan Tauner5c316f92015-02-08 21:57:52 +00008699 .bustype = BUS_SPI,
8700 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008701 .model_id = MACRONIX_MX25L8005,
8702 .total_size = 1024,
8703 .page_size = 256,
8704 /* MX25L8006E, MX25L8008E support SFDP */
8705 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L8006E, MX25L8008E only) */
8706 .feature_bits = FEATURE_WRSR_WREN,
8707 .tested = TEST_OK_PREW,
8708 .probe = probe_spi_rdid,
8709 .probe_timing = TIMING_ZERO,
8710 .block_erasers =
8711 {
8712 {
8713 .eraseblocks = { {4 * 1024, 256} },
8714 .block_erase = spi_block_erase_20,
8715 }, {
8716 .eraseblocks = { {64 * 1024, 16} },
8717 .block_erase = spi_block_erase_52,
8718 }, {
8719 .eraseblocks = { {64 * 1024, 16} },
8720 .block_erase = spi_block_erase_d8,
8721 }, {
8722 .eraseblocks = { {1024 * 1024, 1} },
8723 .block_erase = spi_block_erase_60,
8724 }, {
8725 .eraseblocks = { {1024 * 1024, 1} },
8726 .block_erase = spi_block_erase_c7,
8727 },
8728 },
8729 .printlock = spi_prettyprint_status_register_bp2_srwd,
8730 .unlock = spi_disable_blockprotect,
8731 .write = spi_chip_write_256,
8732 .read = spi_chip_read, /* Fast read (0x0B) supported */
8733 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V8005 */
8734 },
8735
8736 {
8737 .vendor = "Macronix",
8738 .name = "MX25R6435F",
8739 .bustype = BUS_SPI,
8740 .manufacture_id = MACRONIX_ID,
8741 .model_id = MACRONIX_MX25R6435F,
8742 .total_size = 8192,
8743 .page_size = 256,
8744 /* OTP: 1024B total; enter 0xB1, exit 0xC1 */
8745 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8746 .tested = TEST_OK_PREW,
8747 .probe = probe_spi_rdid,
8748 .probe_timing = TIMING_ZERO,
8749 .block_erasers =
8750 {
8751 {
8752 .eraseblocks = { {4 * 1024, 2048} },
8753 .block_erase = spi_block_erase_20,
8754 }, {
8755 .eraseblocks = { {64 * 1024, 128} },
8756 .block_erase = spi_block_erase_d8,
8757 }, {
8758 .eraseblocks = { {32 * 1024, 256} },
8759 .block_erase = spi_block_erase_52,
8760 }, {
8761 .eraseblocks = { {8 * 1024 * 1024, 1} },
8762 .block_erase = spi_block_erase_60,
8763 }, {
8764 .eraseblocks = { {8 * 1024 * 1024, 1} },
8765 .block_erase = spi_block_erase_c7,
8766 }
8767 },
8768 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8769 .unlock = spi_disable_blockprotect_bp3_srwd,
8770 .write = spi_chip_write_256,
8771 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8772 .voltage = {1650, 3600},
8773 },
8774
8775 {
8776 .vendor = "Macronix",
8777 .name = "MX25U12835F",
8778 .bustype = BUS_SPI,
8779 .manufacture_id = MACRONIX_ID,
8780 .model_id = MACRONIX_MX25U12835E,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008781 .total_size = 16384,
8782 .page_size = 256,
8783 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
Alan Green1f9cc7d2019-07-01 11:10:45 +10008784 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008785 .tested = TEST_OK_PREW,
8786 .probe = probe_spi_rdid,
8787 .probe_timing = TIMING_ZERO,
8788 .block_erasers =
8789 {
8790 {
8791 .eraseblocks = { {4 * 1024, 4096} },
8792 .block_erase = spi_block_erase_20,
8793 }, {
8794 .eraseblocks = { {32 * 1024, 512} },
8795 .block_erase = spi_block_erase_52,
8796 }, {
8797 .eraseblocks = { {64 * 1024, 256} },
8798 .block_erase = spi_block_erase_d8,
8799 }, {
8800 .eraseblocks = { {16 * 1024 * 1024, 1} },
8801 .block_erase = spi_block_erase_60,
8802 }, {
8803 .eraseblocks = { {16 * 1024 * 1024, 1} },
8804 .block_erase = spi_block_erase_c7,
8805 }
8806 },
Angel Ponsf112e242018-09-30 20:14:17 +02008807 /* TODO: security register */
8808 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8809 .unlock = spi_disable_blockprotect_bp3_srwd,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008810 .write = spi_chip_write_256, /* Multi I/O supported */
Angel Ponsf112e242018-09-30 20:14:17 +02008811 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8812 .voltage = {1650, 2000},
8813 },
8814
8815 {
8816 .vendor = "Macronix",
Vincent Palatinf800f552013-03-15 02:03:16 +00008817 .name = "MX25U1635E",
8818 .bustype = BUS_SPI,
8819 .manufacture_id = MACRONIX_ID,
8820 .model_id = MACRONIX_MX25U1635E,
8821 .total_size = 2048,
8822 .page_size = 256,
8823 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8824 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
8825 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008826 .tested = TEST_OK_PR,
Vincent Palatinf800f552013-03-15 02:03:16 +00008827 .probe = probe_spi_rdid,
8828 .probe_timing = TIMING_ZERO,
8829 .block_erasers =
8830 {
8831 {
8832 .eraseblocks = { {4 * 1024, 512} },
8833 .block_erase = spi_block_erase_20,
8834 }, {
8835 .eraseblocks = { {32 * 1024, 64} },
8836 .block_erase = spi_block_erase_52,
8837 }, {
8838 .eraseblocks = { {64 * 1024, 32} },
8839 .block_erase = spi_block_erase_d8,
8840 }, {
8841 .eraseblocks = { {2 * 1024 * 1024, 1} },
8842 .block_erase = spi_block_erase_60,
8843 }, {
8844 .eraseblocks = { {2 * 1024 * 1024, 1} },
8845 .block_erase = spi_block_erase_c7,
8846 }
8847 },
8848 /* TODO: security register */
Stefan Tauner12f3d512014-05-27 21:27:27 +00008849 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008850 .unlock = spi_disable_blockprotect_bp3_srwd,
Vincent Palatinf800f552013-03-15 02:03:16 +00008851 .write = spi_chip_write_256,
8852 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8853 .voltage = {1650, 2000},
8854 },
8855
8856 {
8857 .vendor = "Macronix",
David Tomaschikf75d8c52019-06-20 09:49:01 -07008858 .name = "MX25U25635F",
8859 .bustype = BUS_SPI,
8860 .manufacture_id = MACRONIX_ID,
8861 .model_id = MACRONIX_MX25U25635F,
8862 .total_size = 32768,
8863 .page_size = 256,
8864 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8865 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_4BA,
8866 .tested = TEST_OK_PR,
8867 .probe = probe_spi_rdid,
8868 .probe_timing = TIMING_ZERO,
8869 .block_erasers =
8870 {
8871 {
8872 .eraseblocks = { {4 * 1024, 8192} },
8873 .block_erase = spi_block_erase_21,
8874 }, {
8875 .eraseblocks = { {4 * 1024, 8192} },
8876 .block_erase = spi_block_erase_20,
8877 }, {
8878 .eraseblocks = { {32 * 1024, 1024} },
8879 .block_erase = spi_block_erase_5c,
8880 }, {
8881 .eraseblocks = { {32 * 1024, 1024} },
8882 .block_erase = spi_block_erase_52,
8883 }, {
8884 .eraseblocks = { {64 * 1024, 512} },
8885 .block_erase = spi_block_erase_dc,
8886 }, {
8887 .eraseblocks = { {64 * 1024, 512} },
8888 .block_erase = spi_block_erase_d8,
8889 }, {
8890 .eraseblocks = { {32 * 1024 * 1024, 1} },
8891 .block_erase = spi_block_erase_60,
8892 }, {
8893 .eraseblocks = { {32 * 1024 * 1024, 1} },
8894 .block_erase = spi_block_erase_c7,
8895 }
8896 },
8897 /* TODO: security register */
8898 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8899 .unlock = spi_disable_blockprotect_bp3_srwd,
8900 .write = spi_chip_write_256, /* Multi I/O supported */
8901 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8902 .voltage = {1650, 2000},
8903 },
8904
8905 {
8906 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008907 .name = "MX25U3235E/F",
8908 .bustype = BUS_SPI,
8909 .manufacture_id = MACRONIX_ID,
8910 .model_id = MACRONIX_MX25U3235E,
8911 .total_size = 4096,
8912 .page_size = 256,
8913 /* F model supports SFDP */
8914 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8915 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
8916 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
8917 .tested = TEST_OK_PREW,
8918 .probe = probe_spi_rdid,
8919 .probe_timing = TIMING_ZERO,
8920 .block_erasers =
8921 {
8922 {
8923 .eraseblocks = { {4 * 1024, 1024} },
8924 .block_erase = spi_block_erase_20,
8925 }, {
8926 .eraseblocks = { {32 * 1024, 128} },
8927 .block_erase = spi_block_erase_52,
8928 }, {
8929 .eraseblocks = { {64 * 1024, 64} },
8930 .block_erase = spi_block_erase_d8,
8931 }, {
8932 .eraseblocks = { {4 * 1024 * 1024, 1} },
8933 .block_erase = spi_block_erase_60,
8934 }, {
8935 .eraseblocks = { {4 * 1024 * 1024, 1} },
8936 .block_erase = spi_block_erase_c7,
8937 }
8938 },
8939 /* TODO: security register */
8940 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8941 .unlock = spi_disable_blockprotect_bp3_srwd,
8942 .write = spi_chip_write_256,
8943 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8944 .voltage = {1650, 2000},
8945 },
8946
8947 {
8948 .vendor = "Macronix",
Daniel Thompsoncadd4202018-06-04 13:52:22 +01008949 .name = "MX25U51245G",
8950 .bustype = BUS_SPI,
8951 .manufacture_id = MACRONIX_ID,
8952 .model_id = MACRONIX_MX25U51245G,
8953 .total_size = 65536,
8954 .page_size = 256,
8955 /* OTP: 512B factory programmed and 512B customer programmed; enter 0xB1, exit 0xC1 */
8956 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_4BA,
8957 .tested = TEST_OK_PREW,
8958 .probe = probe_spi_rdid,
8959 .probe_timing = TIMING_ZERO,
8960 .block_erasers =
8961 {
8962 {
8963 .eraseblocks = { {4 * 1024, 16384} },
8964 .block_erase = spi_block_erase_21,
8965 }, {
8966 .eraseblocks = { {4 * 1024, 16384} },
8967 .block_erase = spi_block_erase_20,
8968 }, {
8969 .eraseblocks = { {32 * 1024, 2048} },
8970 .block_erase = spi_block_erase_5c,
8971 }, {
8972 .eraseblocks = { {32 * 1024, 2048} },
8973 .block_erase = spi_block_erase_52,
8974 }, {
8975 .eraseblocks = { {64 * 1024, 1024} },
8976 .block_erase = spi_block_erase_dc,
8977 }, {
8978 .eraseblocks = { {64 * 1024, 1024} },
8979 .block_erase = spi_block_erase_d8,
8980 }, {
8981 .eraseblocks = { {64 * 1024 * 1024, 1} },
8982 .block_erase = spi_block_erase_60,
8983 }, {
8984 .eraseblocks = { {64 * 1024 * 1024, 1} },
8985 .block_erase = spi_block_erase_c7,
8986 }
8987 },
8988 /* TODO: security register */
8989 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8990 .unlock = spi_disable_blockprotect_bp3_srwd,
8991 .write = spi_chip_write_256, /* Multi I/O supported */
8992 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8993 .voltage = {1650, 2000},
8994 },
8995
8996 {
8997 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008998 .name = "MX25U6435E/F",
Stefan Tauner40bc96f2015-01-10 09:33:14 +00008999 .bustype = BUS_SPI,
9000 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009001 .model_id = MACRONIX_MX25U6435E,
Stefan Tauner40bc96f2015-01-10 09:33:14 +00009002 .total_size = 8192,
9003 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009004 /* F model supports SFDP */
9005 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9006 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
9007 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner40bc96f2015-01-10 09:33:14 +00009008 .tested = TEST_OK_PREW,
9009 .probe = probe_spi_rdid,
9010 .probe_timing = TIMING_ZERO,
9011 .block_erasers =
9012 {
9013 {
9014 .eraseblocks = { {4 * 1024, 2048} },
9015 .block_erase = spi_block_erase_20,
9016 }, {
Stefan Tauner40bc96f2015-01-10 09:33:14 +00009017 .eraseblocks = { {32 * 1024, 256} },
9018 .block_erase = spi_block_erase_52,
9019 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009020 .eraseblocks = { {64 * 1024, 128} },
9021 .block_erase = spi_block_erase_d8,
9022 }, {
Stefan Tauner40bc96f2015-01-10 09:33:14 +00009023 .eraseblocks = { {8 * 1024 * 1024, 1} },
9024 .block_erase = spi_block_erase_60,
9025 }, {
9026 .eraseblocks = { {8 * 1024 * 1024, 1} },
9027 .block_erase = spi_block_erase_c7,
9028 }
9029 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10009030 /* TODO: security register */
Nathan Rennie-Waldock5a7f9422018-08-10 15:35:23 +01009031 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9032 .unlock = spi_disable_blockprotect_bp3_srwd,
9033 .write = spi_chip_write_256,
9034 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Alan Green1f9cc7d2019-07-01 11:10:45 +10009035 .voltage = {1650, 2000},
9036 },
9037
9038 {
9039 .vendor = "Macronix",
9040 .name = "MX25U8032E",
9041 .bustype = BUS_SPI,
9042 .manufacture_id = MACRONIX_ID,
9043 .model_id = MACRONIX_MX25U8032E,
9044 .total_size = 1024,
9045 .page_size = 256,
9046 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9047 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9048 .tested = TEST_OK_PREW,
9049 .probe = probe_spi_rdid,
9050 .probe_timing = TIMING_ZERO,
9051 .block_erasers =
9052 {
9053 {
9054 .eraseblocks = { {4 * 1024, 256} },
9055 .block_erase = spi_block_erase_20,
9056 }, {
9057 .eraseblocks = { {32 * 1024, 32} },
9058 .block_erase = spi_block_erase_52,
9059 }, {
9060 .eraseblocks = { {64 * 1024, 16} },
9061 .block_erase = spi_block_erase_d8,
9062 }, {
9063 .eraseblocks = { {1024 * 1024, 1} },
9064 .block_erase = spi_block_erase_60,
9065 }, {
9066 .eraseblocks = { {1024 * 1024, 1} },
9067 .block_erase = spi_block_erase_c7,
9068 }
9069 },
9070 /* TODO: security register */
9071 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9072 .unlock = spi_disable_blockprotect_bp3_srwd,
9073 .write = spi_chip_write_256,
9074 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9075 .voltage = {1650, 2000},
Nathan Rennie-Waldock5a7f9422018-08-10 15:35:23 +01009076 },
9077
9078 {
9079 .vendor = "Macronix",
Mark Panajotovic502a9132009-08-24 01:42:24 +00009080 .name = "MX29F001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009081 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009082 .manufacture_id = MACRONIX_ID,
9083 .model_id = MACRONIX_MX29F001B,
Mark Panajotovic502a9132009-08-24 01:42:24 +00009084 .total_size = 128,
9085 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009086 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9087 .tested = TEST_UNTESTED,
9088 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009089 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00009090 .block_erasers =
9091 {
9092 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00009093 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00009094 {8 * 1024, 1},
9095 {4 * 1024, 2},
9096 {8 * 1024, 2},
9097 {32 * 1024, 1},
9098 {64 * 1024, 1},
9099 },
Sean Nelson35727f72010-01-28 23:55:12 +00009100 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009101 }, {
9102 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009103 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009104 }
9105 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009106 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00009107 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009108 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00009109 },
9110
9111 {
9112 .vendor = "Macronix",
9113 .name = "MX29F001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009114 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009115 .manufacture_id = MACRONIX_ID,
9116 .model_id = MACRONIX_MX29F001T,
Mark Panajotovic502a9132009-08-24 01:42:24 +00009117 .total_size = 128,
9118 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009119 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stefan Tauner74c6ec62011-05-18 01:31:46 +00009120 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00009121 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009122 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00009123 .block_erasers =
9124 {
9125 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00009126 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00009127 {64 * 1024, 1},
9128 {32 * 1024, 1},
9129 {8 * 1024, 2},
9130 {4 * 1024, 2},
9131 {8 * 1024, 1},
9132 },
Sean Nelson35727f72010-01-28 23:55:12 +00009133 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009134 }, {
9135 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009136 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009137 }
9138 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009139 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00009140 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009141 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00009142 },
9143
9144 {
9145 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00009146 .name = "MX29F002(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009147 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009148 .manufacture_id = MACRONIX_ID,
9149 .model_id = MACRONIX_MX29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009150 .total_size = 256,
9151 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009152 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009153 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00009154 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009155 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009156 .block_erasers =
9157 {
9158 {
9159 .eraseblocks = {
9160 {16 * 1024, 1},
9161 {8 * 1024, 2},
9162 {32 * 1024, 1},
9163 {64 * 1024, 3},
9164 },
Sean Nelson35727f72010-01-28 23:55:12 +00009165 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009166 }, {
9167 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009168 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009169 },
9170 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009171 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009172 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009173 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009174 },
9175
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009176 {
9177 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00009178 .name = "MX29F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009179 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009180 .manufacture_id = MACRONIX_ID,
9181 .model_id = MACRONIX_MX29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009182 .total_size = 256,
9183 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009184 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00009185 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00009186 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009187 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009188 .block_erasers =
9189 {
9190 {
9191 .eraseblocks = {
9192 {64 * 1024, 3},
9193 {32 * 1024, 1},
9194 {8 * 1024, 2},
9195 {16 * 1024, 1},
9196 },
Sean Nelson35727f72010-01-28 23:55:12 +00009197 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009198 }, {
9199 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009200 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009201 },
9202 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009203 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009204 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009205 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009206 },
9207
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009208 {
9209 .vendor = "Macronix",
Daniele Forsi6a18a932014-07-13 14:53:45 +00009210 .name = "MX29F022(N)B",
9211 .bustype = BUS_PARALLEL,
9212 .manufacture_id = MACRONIX_ID,
9213 .model_id = MACRONIX_MX29F022B,
9214 .total_size = 256,
9215 .page_size = 0, /* unused */
9216 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9217 .tested = TEST_UNTESTED,
9218 .probe = probe_jedec,
9219 .probe_timing = TIMING_ZERO,
9220 .block_erasers =
9221 {
9222 {
9223 .eraseblocks = {
9224 {16 * 1024, 1},
9225 {8 * 1024, 2},
9226 {32 * 1024, 1},
9227 {64 * 1024, 3},
9228 },
9229 .block_erase = erase_sector_jedec,
9230 }, {
9231 .eraseblocks = { {256 * 1024, 1} },
9232 .block_erase = erase_chip_block_jedec,
9233 }
9234 },
9235 .write = write_jedec_1,
9236 .read = read_memmapped,
9237 .voltage = {4500, 5500},
9238 },
9239
9240 {
9241 .vendor = "Macronix",
9242 .name = "MX29F022(N)T",
9243 .bustype = BUS_PARALLEL,
9244 .manufacture_id = MACRONIX_ID,
9245 .model_id = MACRONIX_MX29F022T,
9246 .total_size = 256,
9247 .page_size = 0, /* unused */
9248 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9249 .tested = TEST_OK_PREW,
9250 .probe = probe_jedec,
9251 .probe_timing = TIMING_ZERO,
9252 .block_erasers =
9253 {
9254 {
9255 .eraseblocks = {
9256 {64 * 1024, 3},
9257 {32 * 1024, 1},
9258 {8 * 1024, 2},
9259 {16 * 1024, 1},
9260 },
9261 .block_erase = erase_sector_jedec,
9262 }, {
9263 .eraseblocks = { {256 * 1024, 1} },
9264 .block_erase = erase_chip_block_jedec,
9265 }
9266 },
9267 .write = write_jedec_1,
9268 .read = read_memmapped,
9269 .voltage = {4500, 5500},
9270 },
9271
9272 {
9273 .vendor = "Macronix",
Joshua Roysf1324e02010-09-16 00:51:51 +00009274 .name = "MX29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009275 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00009276 .manufacture_id = MACRONIX_ID,
9277 .model_id = MACRONIX_MX29F040,
9278 .total_size = 512,
9279 .page_size = 64 * 1024,
9280 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9281 .tested = TEST_UNTESTED,
9282 .probe = probe_jedec,
9283 .probe_timing = TIMING_ZERO,
9284 .block_erasers =
9285 {
9286 {
9287 .eraseblocks = { {64 * 1024, 8} },
9288 .block_erase = erase_sector_jedec,
9289 }, {
9290 .eraseblocks = { {512 * 1024, 1} },
9291 .block_erase = erase_chip_block_jedec,
9292 },
9293 },
9294 .write = write_jedec_1,
9295 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009296 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00009297 },
9298
9299 {
9300 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009301 .name = "MX29GL128F",
9302 .bustype = BUS_PARALLEL,
9303 .manufacture_id = MACRONIX_ID,
9304 .model_id = MACRONIX_MX29GL128F,
9305 .total_size = 16384,
9306 .page_size = 128 * 1024, /* actual page size is 16 */
9307 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9308 .tested = TEST_UNTESTED,
9309 .probe = probe_jedec_29gl,
9310 .probe_timing = TIMING_ZERO,
9311 .block_erasers =
9312 {
9313 {
9314 .eraseblocks = { {128 * 1024, 128} },
9315 .block_erase = erase_sector_jedec,
9316 }, {
9317 .eraseblocks = { {16 * 1024 * 1024, 1} },
9318 .block_erase = erase_chip_block_jedec,
9319 },
9320 },
9321 .write = write_jedec_1,
9322 .read = read_memmapped,
9323 .voltage = {2700, 3600},
9324 },
9325
9326 {
9327 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00009328 .name = "MX29GL320EB",
9329 .bustype = BUS_PARALLEL,
9330 .manufacture_id = MACRONIX_ID,
9331 .model_id = MACRONIX_MX29GL320EB,
9332 .total_size = 4096,
9333 .page_size = 128 * 1024, /* actual page size is 16 */
9334 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9335 .tested = TEST_UNTESTED,
9336 .probe = probe_jedec_29gl,
9337 .probe_timing = TIMING_ZERO,
9338 .block_erasers =
9339 {
9340 {
9341 .eraseblocks = {
9342 {8 * 1024, 8},
9343 {64 * 1024, 63},
9344 },
9345 .block_erase = erase_sector_jedec,
9346 }, {
9347 .eraseblocks = { {4 * 1024 * 1024, 1} },
9348 .block_erase = erase_chip_block_jedec,
9349 },
9350 },
9351 .write = write_jedec_1,
9352 .read = read_memmapped,
9353 .voltage = {2700, 3600},
9354 },
9355
9356 {
9357 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009358 .name = "MX29GL320EH/L",
9359 .bustype = BUS_PARALLEL,
9360 .manufacture_id = MACRONIX_ID,
9361 .model_id = MACRONIX_MX29GL320EHL,
9362 .total_size = 4096,
9363 .page_size = 128 * 1024, /* actual page size is 16 */
9364 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9365 .tested = TEST_UNTESTED,
9366 .probe = probe_jedec_29gl,
9367 .probe_timing = TIMING_ZERO,
9368 .block_erasers =
9369 {
9370 {
9371 .eraseblocks = { {64 * 1024, 64} },
9372 .block_erase = erase_sector_jedec,
9373 }, {
9374 .eraseblocks = { {4 * 1024 * 1024, 1} },
9375 .block_erase = erase_chip_block_jedec,
9376 },
9377 },
9378 .write = write_jedec_1,
9379 .read = read_memmapped,
9380 .voltage = {2700, 3600},
9381 },
9382
9383 {
9384 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00009385 .name = "MX29GL320ET",
9386 .bustype = BUS_PARALLEL,
9387 .manufacture_id = MACRONIX_ID,
9388 .model_id = MACRONIX_MX29GL320ET,
9389 .total_size = 4096,
9390 .page_size = 128 * 1024, /* actual page size is 16 */
9391 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9392 .tested = TEST_UNTESTED,
9393 .probe = probe_jedec_29gl,
9394 .probe_timing = TIMING_ZERO,
9395 .block_erasers =
9396 {
9397 {
9398 .eraseblocks = {
9399 {64 * 1024, 63},
9400 {8 * 1024, 8},
9401 },
9402 .block_erase = erase_sector_jedec,
9403 }, {
9404 .eraseblocks = { {4 * 1024 * 1024, 1} },
9405 .block_erase = erase_chip_block_jedec,
9406 },
9407 },
9408 .write = write_jedec_1,
9409 .read = read_memmapped,
9410 .voltage = {2700, 3600},
9411 },
9412
9413 {
9414 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00009415 .name = "MX29GL640EB",
9416 .bustype = BUS_PARALLEL,
9417 .manufacture_id = MACRONIX_ID,
9418 .model_id = MACRONIX_MX29GL640EB,
9419 .total_size = 8192,
9420 .page_size = 128 * 1024, /* actual page size is 16 */
9421 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9422 .tested = TEST_UNTESTED,
9423 .probe = probe_jedec_29gl,
9424 .probe_timing = TIMING_ZERO,
9425 .block_erasers =
9426 {
9427 {
9428 .eraseblocks = {
9429 {8 * 1024, 8},
9430 {64 * 1024, 127},
9431 },
9432 .block_erase = erase_sector_jedec,
9433 }, {
9434 .eraseblocks = { {8 * 1024 * 1024, 1} },
9435 .block_erase = erase_chip_block_jedec,
9436 },
9437 },
9438 .write = write_jedec_1,
9439 .read = read_memmapped,
9440 .voltage = {2700, 3600},
9441 },
9442
9443 {
9444 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009445 .name = "MX29GL640EH/L",
9446 .bustype = BUS_PARALLEL,
9447 .manufacture_id = MACRONIX_ID,
9448 .model_id = MACRONIX_MX29GL640EHL,
9449 .total_size = 8192,
9450 .page_size = 128 * 1024, /* actual page size is 16 */
9451 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9452 .tested = TEST_UNTESTED,
9453 .probe = probe_jedec_29gl,
9454 .probe_timing = TIMING_ZERO,
9455 .block_erasers =
9456 {
9457 {
9458 .eraseblocks = { {64 * 1024, 128} },
9459 .block_erase = erase_sector_jedec,
9460 }, {
9461 .eraseblocks = { {8 * 1024 * 1024, 1} },
9462 .block_erase = erase_chip_block_jedec,
9463 },
9464 },
9465 .write = write_jedec_1,
9466 .read = read_memmapped,
9467 .voltage = {2700, 3600},
9468 },
9469
9470 {
9471 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00009472 .name = "MX29GL640ET",
9473 .bustype = BUS_PARALLEL,
9474 .manufacture_id = MACRONIX_ID,
9475 .model_id = MACRONIX_MX29GL640ET,
9476 .total_size = 8192,
9477 .page_size = 128 * 1024, /* actual page size is 16 */
9478 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9479 .tested = TEST_UNTESTED,
9480 .probe = probe_jedec_29gl,
9481 .probe_timing = TIMING_ZERO,
9482 .block_erasers =
9483 {
9484 {
9485 .eraseblocks = {
9486 {64 * 1024, 127},
9487 {8 * 1024, 8},
9488 },
9489 .block_erase = erase_sector_jedec,
9490 }, {
9491 .eraseblocks = { {8 * 1024 * 1024, 1} },
9492 .block_erase = erase_chip_block_jedec,
9493 },
9494 },
9495 .write = write_jedec_1,
9496 .read = read_memmapped,
9497 .voltage = {2700, 3600},
9498 },
9499
9500 {
9501 .vendor = "Macronix",
Carl-Daniel Hailfinger350a0c32009-07-24 13:59:27 +00009502 .name = "MX29LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009503 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009504 .manufacture_id = MACRONIX_ID,
9505 .model_id = MACRONIX_MX29LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009506 .total_size = 512,
9507 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009508 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9509 .tested = TEST_UNTESTED,
9510 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009511 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00009512 .block_erasers =
9513 {
9514 {
Stefan Tauner6697f712014-08-06 15:09:15 +00009515 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +00009516 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009517 }, {
9518 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009519 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009520 },
9521 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009522 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009523 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009524 .voltage = {2700, 3600},
Carl-Daniel Hailfinger7de86392008-12-10 10:32:05 +00009525 },
9526
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009527 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009528 .vendor = "Macronix",
Hemanth Guruva Reddya136d422019-07-11 11:08:27 +02009529 .name = "MX66L51235F/MX25L51245G",
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009530 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009531 .manufacture_id = MACRONIX_ID,
9532 .model_id = MACRONIX_MX66L51235F,
9533 .total_size = 65536,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009534 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009535 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9536 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009537 .tested = TEST_OK_PREW,
9538 .probe = probe_spi_rdid,
9539 .probe_timing = TIMING_ZERO,
9540 .block_erasers =
9541 {
9542 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009543 .eraseblocks = { {4 * 1024, 16384} },
9544 .block_erase = spi_block_erase_21,
9545 }, {
9546 .eraseblocks = { {4 * 1024, 16384} },
9547 .block_erase = spi_block_erase_20,
9548 }, {
9549 .eraseblocks = { {32 * 1024, 2048} },
9550 .block_erase = spi_block_erase_5c,
9551 }, {
9552 .eraseblocks = { {32 * 1024, 2048} },
9553 .block_erase = spi_block_erase_52,
9554 }, {
9555 .eraseblocks = { {64 * 1024, 1024} },
9556 .block_erase = spi_block_erase_dc,
9557 }, {
9558 .eraseblocks = { {64 * 1024, 1024} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009559 .block_erase = spi_block_erase_d8,
9560 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009561 .eraseblocks = { {64 * 1024 * 1024, 1} },
9562 .block_erase = spi_block_erase_60,
9563 }, {
9564 .eraseblocks = { {64 * 1024 * 1024, 1} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009565 .block_erase = spi_block_erase_c7,
9566 }
9567 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10009568 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
9569 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009570 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009571 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009572 .read = spi_chip_read, /* Fast read (0x0B) supported */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009573 .voltage = {2700, 3600},
9574 },
9575
9576 /* The ST M25P05 is a bit of a problem. It has the same ID as the
9577 * ST M25P05-A in RES mode, but supports only 128 byte writes instead
9578 * of 256 byte writes. We rely heavily on the fact that probe_spi_res1
9579 * only is successful if RDID does not work.
9580 */
9581 {
9582 .vendor = "Micron/Numonyx/ST",
9583 .name = "M25P05",
9584 .bustype = BUS_SPI,
9585 .manufacture_id = 0, /* Not used. */
9586 .model_id = ST_M25P05_RES,
9587 .total_size = 64,
9588 .page_size = 256,
9589 .feature_bits = FEATURE_WRSR_WREN,
9590 .tested = TEST_UNTESTED,
9591 .probe = probe_spi_res1,
9592 .probe_timing = TIMING_ZERO,
9593 .block_erasers =
9594 {
9595 {
9596 .eraseblocks = { {32 * 1024, 2} },
9597 .block_erase = spi_block_erase_d8,
9598 }, {
9599 .eraseblocks = { {64 * 1024, 1} },
9600 .block_erase = spi_block_erase_c7,
9601 }
9602 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009603 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009604 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009605 .write = spi_chip_write_1, /* 128 */
9606 .read = spi_chip_read,
9607 .voltage = {2700, 3600},
9608 },
9609
9610 {
9611 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009612 .name = "M25P05-A",
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009613 .bustype = BUS_SPI,
9614 .manufacture_id = ST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009615 .model_id = ST_M25P05A,
9616 .total_size = 64,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009617 .page_size = 256,
9618 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +00009619 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009620 .probe = probe_spi_rdid,
9621 .probe_timing = TIMING_ZERO,
9622 .block_erasers =
9623 {
9624 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009625 .eraseblocks = { {32 * 1024, 2} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009626 .block_erase = spi_block_erase_d8,
9627 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009628 .eraseblocks = { {64 * 1024, 1} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009629 .block_erase = spi_block_erase_c7,
9630 }
9631 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009632 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009633 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009634 .write = spi_chip_write_256,
9635 .read = spi_chip_read,
9636 .voltage = {2700, 3600},
9637 },
9638
9639 /* The ST M25P10 has the same problem as the M25P05. */
9640 {
9641 .vendor = "Micron/Numonyx/ST",
9642 .name = "M25P10",
9643 .bustype = BUS_SPI,
9644 .manufacture_id = 0, /* Not used. */
9645 .model_id = ST_M25P10_RES,
9646 .total_size = 128,
9647 .page_size = 256,
9648 .feature_bits = FEATURE_WRSR_WREN,
9649 .tested = TEST_UNTESTED,
9650 .probe = probe_spi_res1,
9651 .probe_timing = TIMING_ZERO,
9652 .block_erasers =
9653 {
9654 {
9655 .eraseblocks = { {32 * 1024, 4} },
9656 .block_erase = spi_block_erase_d8,
9657 }, {
9658 .eraseblocks = { {128 * 1024, 1} },
9659 .block_erase = spi_block_erase_c7,
9660 }
9661 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009662 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009663 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009664 .write = spi_chip_write_1, /* 128 */
9665 .read = spi_chip_read,
9666 .voltage = {2700, 3600},
9667 },
9668
9669 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009670 .vendor = "Micron/Numonyx/ST",
9671 .name = "M25P10-A",
9672 .bustype = BUS_SPI,
9673 .manufacture_id = ST_ID,
9674 .model_id = ST_M25P10A,
9675 .total_size = 128,
9676 .page_size = 256,
9677 .feature_bits = FEATURE_WRSR_WREN,
9678 .tested = TEST_OK_PREW,
9679 .probe = probe_spi_rdid,
9680 .probe_timing = TIMING_ZERO,
9681 .block_erasers =
9682 {
9683 {
9684 .eraseblocks = { {32 * 1024, 4} },
9685 .block_erase = spi_block_erase_d8,
9686 }, {
9687 .eraseblocks = { {128 * 1024, 1} },
9688 .block_erase = spi_block_erase_c7,
9689 }
9690 },
9691 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
9692 .unlock = spi_disable_blockprotect_bp3_srwd,
9693 .write = spi_chip_write_256,
9694 .read = spi_chip_read,
9695 .voltage = {2700, 3600},
9696 },
9697
9698 {
9699 .vendor = "Micron/Numonyx/ST",
9700 .name = "M25P128",
9701 .bustype = BUS_SPI,
9702 .manufacture_id = ST_ID,
9703 .model_id = ST_M25P128,
9704 .total_size = 16384,
9705 .page_size = 256,
9706 .feature_bits = FEATURE_WRSR_WREN,
9707 .tested = TEST_OK_PREW,
9708 .probe = probe_spi_rdid,
9709 .probe_timing = TIMING_ZERO,
9710 .block_erasers =
9711 {
9712 {
9713 .eraseblocks = { {256 * 1024, 64} },
9714 .block_erase = spi_block_erase_d8,
9715 }, {
9716 .eraseblocks = { {16 * 1024 * 1024, 1} },
9717 .block_erase = spi_block_erase_c7,
9718 }
9719 },
9720 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
9721 .unlock = spi_disable_blockprotect_bp3_srwd,
9722 .write = spi_chip_write_256,
9723 .read = spi_chip_read,
9724 .voltage = {2700, 3600},
9725 },
9726
9727 {
9728 .vendor = "Micron/Numonyx/ST",
9729 .name = "M25P16",
9730 .bustype = BUS_SPI,
9731 .manufacture_id = ST_ID,
9732 .model_id = ST_M25P16,
9733 .total_size = 2048,
9734 .page_size = 256,
9735 .feature_bits = FEATURE_WRSR_WREN,
9736 .tested = TEST_OK_PREW,
9737 .probe = probe_spi_rdid,
9738 .probe_timing = TIMING_ZERO,
9739 .block_erasers =
9740 {
9741 {
9742 .eraseblocks = { {64 * 1024, 32} },
9743 .block_erase = spi_block_erase_d8,
9744 }, {
9745 .eraseblocks = { {2 * 1024 * 1024, 1} },
9746 .block_erase = spi_block_erase_c7,
9747 }
9748 },
9749 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
9750 .unlock = spi_disable_blockprotect_bp3_srwd,
9751 .write = spi_chip_write_256,
9752 .read = spi_chip_read,
9753 .voltage = {2700, 3600},
9754 },
9755
9756 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009757 .vendor = "Micron/Numonyx/ST", /* Numonyx */
9758 .name = "M25P20",
9759 .bustype = BUS_SPI,
9760 .manufacture_id = ST_ID,
9761 .model_id = ST_M25P20,
9762 .total_size = 256,
9763 .page_size = 256,
9764 .feature_bits = FEATURE_WRSR_WREN,
9765 .tested = TEST_UNTESTED,
9766 .probe = probe_spi_rdid,
9767 .probe_timing = TIMING_ZERO,
9768 .block_erasers =
9769 {
9770 {
9771 .eraseblocks = { {64 * 1024, 4} },
9772 .block_erase = spi_block_erase_d8,
9773 }, {
9774 .eraseblocks = { {256 * 1024, 1} },
9775 .block_erase = spi_block_erase_c7,
9776 }
9777 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009778 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009779 .unlock = spi_disable_blockprotect,
9780 .write = spi_chip_write_256,
9781 .read = spi_chip_read, /* Fast read (0x0B) supported */
9782 .voltage = {2700, 3600},
9783 },
9784
9785 {
9786 .vendor = "Micron/Numonyx/ST",
9787 .name = "M25P20-old",
9788 .bustype = BUS_SPI,
9789 .manufacture_id = 0, /* Not used. */
9790 .model_id = ST_M25P20_RES,
9791 .total_size = 256,
9792 .page_size = 256,
9793 .feature_bits = FEATURE_WRSR_WREN,
9794 .tested = TEST_OK_PREW,
9795 .probe = probe_spi_res1,
9796 .probe_timing = TIMING_ZERO,
9797 .block_erasers =
9798 {
9799 {
9800 .eraseblocks = { {64 * 1024, 4} },
9801 .block_erase = spi_block_erase_d8,
9802 }, {
9803 .eraseblocks = { {256 * 1024, 1} },
9804 .block_erase = spi_block_erase_c7,
9805 }
9806 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009807 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009808 .unlock = spi_disable_blockprotect,
9809 .write = spi_chip_write_256,
9810 .read = spi_chip_read, /* Fast read (0x0B) supported */
9811 .voltage = {2700, 3600},
9812 },
9813
9814 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009815 .vendor = "Micron/Numonyx/ST",
9816 .name = "M25P32",
9817 .bustype = BUS_SPI,
9818 .manufacture_id = ST_ID,
9819 .model_id = ST_M25P32,
9820 .total_size = 4096,
9821 .page_size = 256,
9822 .feature_bits = FEATURE_WRSR_WREN,
9823 .tested = TEST_OK_PREW,
9824 .probe = probe_spi_rdid,
9825 .probe_timing = TIMING_ZERO,
9826 .block_erasers =
9827 {
9828 {
9829 .eraseblocks = { {64 * 1024, 64} },
9830 .block_erase = spi_block_erase_d8,
9831 }, {
9832 .eraseblocks = { {4 * 1024 * 1024, 1} },
9833 .block_erase = spi_block_erase_c7,
9834 }
9835 },
9836 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
9837 .unlock = spi_disable_blockprotect_bp3_srwd,
9838 .write = spi_chip_write_256,
9839 .read = spi_chip_read,
9840 .voltage = {2700, 3600},
9841 },
9842
9843 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009844 .vendor = "Micron/Numonyx/ST", /* Numonyx */
9845 .name = "M25P40",
9846 .bustype = BUS_SPI,
9847 .manufacture_id = ST_ID,
9848 .model_id = ST_M25P40,
9849 .total_size = 512,
9850 .page_size = 256,
9851 .feature_bits = FEATURE_WRSR_WREN,
9852 .tested = TEST_OK_PREW,
9853 .probe = probe_spi_rdid,
9854 .probe_timing = TIMING_ZERO,
9855 .block_erasers =
9856 {
9857 {
9858 .eraseblocks = { {64 * 1024, 8} },
9859 .block_erase = spi_block_erase_d8,
9860 }, {
9861 .eraseblocks = { {512 * 1024, 1} },
9862 .block_erase = spi_block_erase_c7,
9863 }
9864 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009865 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009866 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009867 .write = spi_chip_write_256,
9868 .read = spi_chip_read,
9869 .voltage = {2700, 3600},
9870 },
9871
9872 {
9873 .vendor = "Micron/Numonyx/ST",
9874 .name = "M25P40-old",
9875 .bustype = BUS_SPI,
9876 .manufacture_id = 0, /* Not used. */
9877 .model_id = ST_M25P40_RES,
9878 .total_size = 512,
9879 .page_size = 256,
9880 .feature_bits = FEATURE_WRSR_WREN,
9881 .tested = TEST_UNTESTED,
9882 .probe = probe_spi_res1,
9883 .probe_timing = TIMING_ZERO,
9884 .block_erasers =
9885 {
9886 {
9887 .eraseblocks = { {64 * 1024, 8} },
9888 .block_erase = spi_block_erase_d8,
9889 }, {
9890 .eraseblocks = { {512 * 1024, 1} },
9891 .block_erase = spi_block_erase_c7,
9892 }
9893 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009894 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009895 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009896 .write = spi_chip_write_256,
9897 .read = spi_chip_read,
9898 },
9899
9900 {
9901 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009902 .name = "M25P64",
9903 .bustype = BUS_SPI,
9904 .manufacture_id = ST_ID,
9905 .model_id = ST_M25P64,
9906 .total_size = 8192,
9907 .page_size = 256,
9908 .feature_bits = FEATURE_WRSR_WREN,
9909 .tested = TEST_OK_PREW,
9910 .probe = probe_spi_rdid,
9911 .probe_timing = TIMING_ZERO,
9912 .block_erasers =
9913 {
9914 {
9915 .eraseblocks = { {64 * 1024, 128} },
9916 .block_erase = spi_block_erase_d8,
9917 }, {
9918 .eraseblocks = { {8 * 1024 * 1024, 1} },
9919 .block_erase = spi_block_erase_c7,
9920 }
9921 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009922 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009923 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009924 .write = spi_chip_write_256,
9925 .read = spi_chip_read,
9926 .voltage = {2700, 3600},
9927 },
9928
9929 {
9930 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009931 .name = "M25P80",
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009932 .bustype = BUS_SPI,
9933 .manufacture_id = ST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009934 .model_id = ST_M25P80,
9935 .total_size = 1024,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009936 .page_size = 256,
9937 .feature_bits = FEATURE_WRSR_WREN,
9938 .tested = TEST_OK_PREW,
9939 .probe = probe_spi_rdid,
9940 .probe_timing = TIMING_ZERO,
9941 .block_erasers =
9942 {
9943 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009944 .eraseblocks = { {64 * 1024, 16} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009945 .block_erase = spi_block_erase_d8,
9946 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009947 .eraseblocks = { {1024 * 1024, 1} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009948 .block_erase = spi_block_erase_c7,
9949 }
9950 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009951 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009952 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009953 .write = spi_chip_write_256,
9954 .read = spi_chip_read,
9955 .voltage = {2700, 3600},
9956 },
9957
9958 {
9959 .vendor = "Micron/Numonyx/ST",
9960 .name = "M25PE10",
9961 .bustype = BUS_SPI,
9962 .manufacture_id = ST_ID,
9963 .model_id = ST_M25PE10,
9964 .total_size = 128,
9965 .page_size = 256,
9966 .feature_bits = FEATURE_WRSR_WREN,
9967 .tested = TEST_UNTESTED,
9968 .probe = probe_spi_rdid,
9969 .probe_timing = TIMING_ZERO,
9970 .block_erasers =
9971 {
9972 {
9973 .eraseblocks = { {4 * 1024, 32} },
9974 .block_erase = spi_block_erase_20,
9975 }, {
9976 .eraseblocks = { {64 * 1024, 2} },
9977 .block_erase = spi_block_erase_d8,
9978 }, {
9979 .eraseblocks = { {128 * 1024, 1} },
9980 .block_erase = spi_block_erase_c7,
9981 }
9982 },
9983 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
9984 .unlock = spi_disable_blockprotect,
9985 .write = spi_chip_write_256,
9986 .read = spi_chip_read,
9987 .voltage = {2700, 3600},
9988 },
9989
9990 {
9991 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009992 .name = "M25PE16",
9993 .bustype = BUS_SPI,
9994 .manufacture_id = ST_ID,
9995 .model_id = ST_M25PE16,
9996 .total_size = 2048,
9997 .page_size = 256,
9998 .feature_bits = FEATURE_WRSR_WREN,
9999 .tested = TEST_UNTESTED,
10000 .probe = probe_spi_rdid,
10001 .probe_timing = TIMING_ZERO,
10002 .block_erasers =
10003 {
10004 {
10005 .eraseblocks = { {4 * 1024, 512} },
10006 .block_erase = spi_block_erase_20,
10007 }, {
10008 .eraseblocks = { {64 * 1024, 32} },
10009 .block_erase = spi_block_erase_d8,
10010 }, {
10011 .eraseblocks = { {2 * 1024 * 1024, 1} },
10012 .block_erase = spi_block_erase_c7,
10013 }
10014 },
10015 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10016 .unlock = spi_disable_blockprotect,
10017 .write = spi_chip_write_256,
10018 .read = spi_chip_read,
10019 .voltage = {2700, 3600},
10020 },
10021
10022 {
10023 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010024 .name = "M25PE20",
10025 .bustype = BUS_SPI,
10026 .manufacture_id = ST_ID,
10027 .model_id = ST_M25PE20,
10028 .total_size = 256,
10029 .page_size = 256,
10030 .feature_bits = FEATURE_WRSR_WREN,
10031 .tested = TEST_UNTESTED,
10032 .probe = probe_spi_rdid,
10033 .probe_timing = TIMING_ZERO,
10034 .block_erasers =
10035 {
10036 {
10037 .eraseblocks = { {4 * 1024, 64} },
10038 .block_erase = spi_block_erase_20,
10039 }, {
10040 .eraseblocks = { {64 * 1024, 4} },
10041 .block_erase = spi_block_erase_d8,
10042 }, {
10043 .eraseblocks = { {256 * 1024, 1} },
10044 .block_erase = spi_block_erase_c7,
10045 }
10046 },
10047 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10048 .unlock = spi_disable_blockprotect,
10049 .write = spi_chip_write_256,
10050 .read = spi_chip_read,
10051 .voltage = {2700, 3600},
10052 },
10053
10054 {
10055 .vendor = "Micron/Numonyx/ST",
10056 .name = "M25PE40",
10057 .bustype = BUS_SPI,
10058 .manufacture_id = ST_ID,
10059 .model_id = ST_M25PE40,
10060 .total_size = 512,
10061 .page_size = 256,
10062 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000010063 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010064 .probe = probe_spi_rdid,
10065 .probe_timing = TIMING_ZERO,
10066 .block_erasers =
10067 {
10068 {
10069 .eraseblocks = { {4 * 1024, 128} },
10070 .block_erase = spi_block_erase_20,
10071 }, {
10072 .eraseblocks = { {64 * 1024, 8} },
10073 .block_erase = spi_block_erase_d8,
10074 }, {
10075 .eraseblocks = { {512 * 1024, 1} },
10076 .block_erase = spi_block_erase_c7,
10077 }
10078 },
10079 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10080 .unlock = spi_disable_blockprotect,
10081 .write = spi_chip_write_256,
10082 .read = spi_chip_read,
10083 .voltage = {2700, 3600},
10084 },
10085
10086 {
10087 .vendor = "Micron/Numonyx/ST",
10088 .name = "M25PE80",
10089 .bustype = BUS_SPI,
10090 .manufacture_id = ST_ID,
10091 .model_id = ST_M25PE80,
10092 .total_size = 1024,
10093 .page_size = 256,
10094 .feature_bits = FEATURE_WRSR_WREN,
10095 .tested = TEST_OK_PREW,
10096 .probe = probe_spi_rdid,
10097 .probe_timing = TIMING_ZERO,
10098 .block_erasers =
10099 {
10100 {
10101 .eraseblocks = { {4 * 1024, 256} },
10102 .block_erase = spi_block_erase_20,
10103 }, {
10104 .eraseblocks = { {64 * 1024, 16} },
10105 .block_erase = spi_block_erase_d8,
10106 }, {
10107 .eraseblocks = { {1024 * 1024, 1} },
10108 .block_erase = spi_block_erase_c7,
10109 }
10110 },
10111 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10112 .unlock = spi_disable_blockprotect,
10113 .write = spi_chip_write_256,
10114 .read = spi_chip_read,
10115 .voltage = {2700, 3600},
10116 },
10117
10118 {
10119 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010120 .name = "M25PX16",
10121 .bustype = BUS_SPI,
10122 .manufacture_id = ST_ID,
10123 .model_id = ST_M25PX16,
10124 .total_size = 2048,
10125 .page_size = 256,
10126 /* OTP: 64B total; read 0x4B; write 0x42 */
10127 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10128 .tested = TEST_OK_PREW,
10129 .probe = probe_spi_rdid,
10130 .probe_timing = TIMING_ZERO,
10131 .block_erasers =
10132 {
10133 {
10134 .eraseblocks = { { 4 * 1024, 512 } },
10135 .block_erase = spi_block_erase_20,
10136 }, {
10137 .eraseblocks = { {64 * 1024, 32} },
10138 .block_erase = spi_block_erase_d8,
10139 }, {
10140 .eraseblocks = { {2 * 1024 * 1024, 1} },
10141 .block_erase = spi_block_erase_c7,
10142 }
10143 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010144 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010145 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
10146 .write = spi_chip_write_256,
10147 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000010148 .voltage = {2300, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010149 },
10150
10151 {
10152 .vendor = "Micron/Numonyx/ST",
10153 .name = "M25PX32",
10154 .bustype = BUS_SPI,
10155 .manufacture_id = ST_ID,
10156 .model_id = ST_M25PX32,
10157 .total_size = 4096,
10158 .page_size = 256,
10159 /* OTP: 64B total; read 0x4B; write 0x42 */
10160 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10161 .tested = TEST_OK_PRE,
10162 .probe = probe_spi_rdid,
10163 .probe_timing = TIMING_ZERO,
10164 .block_erasers =
10165 {
10166 {
10167 .eraseblocks = { { 4 * 1024, 1024 } },
10168 .block_erase = spi_block_erase_20,
10169 }, {
10170 .eraseblocks = { {64 * 1024, 64} },
10171 .block_erase = spi_block_erase_d8,
10172 }, {
10173 .eraseblocks = { {4 * 1024 * 1024, 1} },
10174 .block_erase = spi_block_erase_c7,
10175 }
10176 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010177 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010178 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
10179 .write = spi_chip_write_256,
10180 .read = spi_chip_read,
10181 .voltage = {2700, 3600},
10182 },
10183
10184 {
10185 .vendor = "Micron/Numonyx/ST",
10186 .name = "M25PX64",
10187 .bustype = BUS_SPI,
10188 .manufacture_id = ST_ID,
10189 .model_id = ST_M25PX64,
10190 .total_size = 8192,
10191 .page_size = 256,
10192 /* OTP: 64B total; read 0x4B; write 0x42 */
10193 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000010194 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010195 .probe = probe_spi_rdid,
10196 .probe_timing = TIMING_ZERO,
10197 .block_erasers =
10198 {
10199 {
10200 .eraseblocks = { { 4 * 1024, 2048 } },
10201 .block_erase = spi_block_erase_20,
10202 }, {
10203 .eraseblocks = { {64 * 1024, 128} },
10204 .block_erase = spi_block_erase_d8,
10205 }, {
10206 .eraseblocks = { {8 * 1024 * 1024, 1} },
10207 .block_erase = spi_block_erase_c7,
10208 }
10209 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010210 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010211 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
10212 .write = spi_chip_write_256,
10213 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000010214 .voltage = {2700, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010215 },
10216
10217 {
10218 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010219 .name = "M25PX80",
10220 .bustype = BUS_SPI,
10221 .manufacture_id = ST_ID,
10222 .model_id = ST_M25PX80,
10223 .total_size = 1024,
10224 .page_size = 256,
10225 /* OTP: 64B total; read 0x4B, write 0x42 */
10226 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10227 .tested = TEST_OK_PREW,
10228 .probe = probe_spi_rdid,
10229 .probe_timing = TIMING_ZERO,
10230 .block_erasers =
10231 {
10232 {
10233 .eraseblocks = { { 4 * 1024, 256 } },
10234 .block_erase = spi_block_erase_20,
10235 }, {
10236 .eraseblocks = { {64 * 1024, 16} },
10237 .block_erase = spi_block_erase_d8,
10238 }, {
10239 .eraseblocks = { {1024 * 1024, 1} },
10240 .block_erase = spi_block_erase_c7,
10241 }
10242 },
10243 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
10244 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
10245 .write = spi_chip_write_256,
10246 .read = spi_chip_read,
10247 .voltage = {2700, 3600},
10248 },
10249
10250 {
10251 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010252 .name = "M45PE10",
10253 .bustype = BUS_SPI,
10254 .manufacture_id = ST_ID,
10255 .model_id = ST_M45PE10,
10256 .total_size = 128,
10257 .page_size = 256,
10258 .tested = TEST_UNTESTED,
10259 .probe = probe_spi_rdid,
10260 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100010261 .block_erasers =
10262 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010263 {
10264 .eraseblocks = { {256, 512} },
10265 .block_erase = spi_block_erase_db,
10266 }, {
10267 .eraseblocks = { {64 * 1024, 2} },
10268 .block_erase = spi_block_erase_d8,
10269 }
10270 },
10271 .printlock = spi_prettyprint_status_register_default_welwip,
10272 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
10273 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
10274 .read = spi_chip_read, /* Fast read (0x0B) supported */
10275 .voltage = {2700, 3600},
10276 },
10277
10278 {
10279 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010280 .name = "M45PE16",
10281 .bustype = BUS_SPI,
10282 .manufacture_id = ST_ID,
10283 .model_id = ST_M45PE16,
10284 .total_size = 2048,
10285 .page_size = 256,
10286 .tested = TEST_UNTESTED,
10287 .probe = probe_spi_rdid,
10288 .probe_timing = TIMING_ZERO,
10289 .block_erasers =
10290 {
10291 {
10292 .eraseblocks = { {256, 8192} },
10293 .block_erase = spi_block_erase_db,
10294 }, {
10295 .eraseblocks = { {64 * 1024, 32} },
10296 .block_erase = spi_block_erase_d8,
10297 }
10298 },
10299 .printlock = spi_prettyprint_status_register_default_welwip,
10300 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
10301 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
10302 .read = spi_chip_read, /* Fast read (0x0B) supported */
10303 .voltage = {2700, 3600},
10304 },
10305
10306 {
10307 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010308 .name = "M45PE20",
10309 .bustype = BUS_SPI,
10310 .manufacture_id = ST_ID,
10311 .model_id = ST_M45PE20,
10312 .total_size = 256,
10313 .page_size = 256,
10314 .tested = TEST_UNTESTED,
10315 .probe = probe_spi_rdid,
10316 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100010317 .block_erasers =
10318 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010319 {
10320 .eraseblocks = { {256, 1024} },
10321 .block_erase = spi_block_erase_db,
10322 }, {
10323 .eraseblocks = { {64 * 1024, 4} },
10324 .block_erase = spi_block_erase_d8,
10325 }
10326 },
10327 .printlock = spi_prettyprint_status_register_default_welwip,
10328 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
10329 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
10330 .read = spi_chip_read, /* Fast read (0x0B) supported */
10331 .voltage = {2700, 3600},
10332 },
10333
10334 {
10335 .vendor = "Micron/Numonyx/ST",
10336 .name = "M45PE40",
10337 .bustype = BUS_SPI,
10338 .manufacture_id = ST_ID,
10339 .model_id = ST_M45PE40,
10340 .total_size = 512,
10341 .page_size = 256,
10342 .tested = TEST_UNTESTED,
10343 .probe = probe_spi_rdid,
10344 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100010345 .block_erasers =
10346 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010347 {
10348 .eraseblocks = { {256, 2048} },
10349 .block_erase = spi_block_erase_db,
10350 }, {
10351 .eraseblocks = { {64 * 1024, 8} },
10352 .block_erase = spi_block_erase_d8,
10353 }
10354 },
10355 .printlock = spi_prettyprint_status_register_default_welwip,
10356 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
Stefan Tauner23e10b82016-01-23 16:16:49 +000010357 .write = spi_chip_write_256, /* Page write supported (similar to PP but allows 0->1 changes) */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010358 .read = spi_chip_read, /* Fast read (0x0B) supported */
10359 .voltage = {2700, 3600},
10360 },
10361
10362 {
10363 .vendor = "Micron/Numonyx/ST",
10364 .name = "M45PE80",
10365 .bustype = BUS_SPI,
10366 .manufacture_id = ST_ID,
10367 .model_id = ST_M45PE80,
10368 .total_size = 1024,
10369 .page_size = 256,
10370 .tested = TEST_UNTESTED,
10371 .probe = probe_spi_rdid,
10372 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100010373 .block_erasers =
10374 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010375 {
10376 .eraseblocks = { {256, 4096} },
10377 .block_erase = spi_block_erase_db,
10378 }, {
10379 .eraseblocks = { {64 * 1024, 16} },
10380 .block_erase = spi_block_erase_d8,
10381 }
10382 },
10383 .printlock = spi_prettyprint_status_register_default_welwip,
10384 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
10385 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
10386 .read = spi_chip_read, /* Fast read (0x0B) supported */
10387 .voltage = {2700, 3600},
10388 },
10389
10390 {
10391 .vendor = "Micron/Numonyx/ST",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070010392 .name = "N25Q00A..1G", /* ..1G = 1.8V, uniform 64KB/4KB blocks/sectors */
10393 .bustype = BUS_SPI,
10394 .manufacture_id = ST_ID,
10395 .model_id = ST_N25Q00A__1G,
10396 .total_size = 131072,
10397 .page_size = 256,
10398 /* supports SFDP */
10399 /* OTP: 64B total; read 0x4B, write 0x42 */
10400 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
10401 .tested = TEST_UNTESTED,
10402 .probe = probe_spi_rdid,
10403 .probe_timing = TIMING_ZERO,
10404 .block_erasers =
10405 {
10406 {
10407 .eraseblocks = { {4 * 1024, 32768} },
10408 .block_erase = spi_block_erase_21,
10409 }, {
10410 .eraseblocks = { {4 * 1024, 32768} },
10411 .block_erase = spi_block_erase_20,
10412 }, {
10413 .eraseblocks = { {64 * 1024, 2048} },
10414 .block_erase = spi_block_erase_dc,
10415 }, {
10416 .eraseblocks = { {64 * 1024, 2048} },
10417 .block_erase = spi_block_erase_d8,
10418 }, {
10419 .eraseblocks = { {32768 * 1024, 4} },
10420 .block_erase = spi_block_erase_c4,
10421 }
10422 },
10423 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10424 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10425 .write = spi_chip_write_256, /* Multi I/O supported */
10426 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10427 .voltage = {1700, 2000},
10428 },
10429
10430 {
10431 .vendor = "Micron/Numonyx/ST",
10432 .name = "N25Q00A..3G", /* ..3G = 3V, uniform 64KB/4KB blocks/sectors */
10433 .bustype = BUS_SPI,
10434 .manufacture_id = ST_ID,
10435 .model_id = ST_N25Q00A__3G,
10436 .total_size = 131072,
10437 .page_size = 256,
10438 /* supports SFDP */
10439 /* OTP: 64B total; read 0x4B, write 0x42 */
10440 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
10441 .tested = TEST_UNTESTED,
10442 .probe = probe_spi_rdid,
10443 .probe_timing = TIMING_ZERO,
10444 .block_erasers =
10445 {
10446 {
10447 .eraseblocks = { {4 * 1024, 32768} },
10448 .block_erase = spi_block_erase_21,
10449 }, {
10450 .eraseblocks = { {4 * 1024, 32768} },
10451 .block_erase = spi_block_erase_20,
10452 }, {
10453 .eraseblocks = { {64 * 1024, 2048} },
10454 .block_erase = spi_block_erase_dc,
10455 }, {
10456 .eraseblocks = { {64 * 1024, 2048} },
10457 .block_erase = spi_block_erase_d8,
10458 }, {
10459 .eraseblocks = { {32768 * 1024, 4} },
10460 .block_erase = spi_block_erase_c4,
10461 }
10462 },
10463 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10464 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10465 .write = spi_chip_write_256, /* Multi I/O supported */
10466 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10467 .voltage = {2700, 3600},
10468 },
10469
10470 {
10471 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010472 .name = "N25Q016",
10473 .bustype = BUS_SPI,
10474 .manufacture_id = ST_ID,
10475 .model_id = ST_N25Q016__1E,
10476 .total_size = 2048,
10477 .page_size = 256,
10478 /* supports SFDP */
10479 /* OTP: 64B total; read 0x4B, write 0x42 */
10480 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10481 .tested = TEST_UNTESTED,
10482 .probe = probe_spi_rdid,
10483 .probe_timing = TIMING_ZERO,
10484 .block_erasers =
10485 {
10486 {
10487 .eraseblocks = { {4 * 1024, 512} },
10488 .block_erase = spi_block_erase_20,
10489 }, {
10490 .eraseblocks = { {32 * 1024, 64} },
10491 .block_erase = spi_block_erase_52,
10492 }, {
10493 .eraseblocks = { {64 * 1024, 32} },
10494 .block_erase = spi_block_erase_d8,
10495 }, {
10496 .eraseblocks = { {2 * 1024 * 1024, 1} },
10497 .block_erase = spi_block_erase_c7,
10498 }
10499 },
10500 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10501 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10502 .write = spi_chip_write_256, /* Multi I/O supported */
10503 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10504 .voltage = {1700, 2000},
10505 },
10506
10507 {
10508 .vendor = "Micron/Numonyx/ST",
10509 .name = "N25Q032..1E",
10510 .bustype = BUS_SPI,
10511 .manufacture_id = ST_ID,
10512 .model_id = ST_N25Q032__1E,
10513 .total_size = 4096,
10514 .page_size = 256,
10515 /* supports SFDP */
10516 /* OTP: 64B total; read 0x4B, write 0x42 */
10517 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10518 .tested = TEST_UNTESTED,
10519 .probe = probe_spi_rdid,
10520 .probe_timing = TIMING_ZERO,
10521 .block_erasers =
10522 {
10523 {
10524 .eraseblocks = { {4 * 1024, 1024} },
10525 .block_erase = spi_block_erase_20,
10526 }, {
10527 .eraseblocks = { {64 * 1024, 64} },
10528 .block_erase = spi_block_erase_d8,
10529 }, {
10530 .eraseblocks = { {4 * 1024 * 1024, 1} },
10531 .block_erase = spi_block_erase_c7,
10532 }
10533 },
10534 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10535 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10536 .write = spi_chip_write_256, /* Multi I/O supported */
10537 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10538 .voltage = {1700, 2000},
10539 },
10540
10541 {
10542 .vendor = "Micron/Numonyx/ST",
10543 .name = "N25Q032..3E",
10544 .bustype = BUS_SPI,
10545 .manufacture_id = ST_ID,
10546 .model_id = ST_N25Q032__3E,
10547 .total_size = 4096,
10548 .page_size = 256,
10549 /* supports SFDP */
10550 /* OTP: 64B total; read 0x4B, write 0x42 */
10551 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10552 .tested = TEST_OK_PREW,
10553 .probe = probe_spi_rdid,
10554 .probe_timing = TIMING_ZERO,
10555 .block_erasers =
10556 {
10557 {
10558 .eraseblocks = { {4 * 1024, 1024} },
10559 .block_erase = spi_block_erase_20,
10560 }, {
10561 .eraseblocks = { {64 * 1024, 64} },
10562 .block_erase = spi_block_erase_d8,
10563 }, {
10564 .eraseblocks = { {4 * 1024 * 1024, 1} },
10565 .block_erase = spi_block_erase_c7,
10566 }
10567 },
10568 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10569 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10570 .write = spi_chip_write_256, /* Multi I/O supported */
10571 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10572 .voltage = {2700, 3600},
10573 },
10574
10575 {
10576 .vendor = "Micron/Numonyx/ST",
10577 .name = "N25Q064..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
10578 .bustype = BUS_SPI,
10579 .manufacture_id = ST_ID,
10580 .model_id = ST_N25Q064__1E,
10581 .total_size = 8192,
10582 .page_size = 256,
10583 /* supports SFDP */
10584 /* OTP: 64B total; read 0x4B, write 0x42 */
10585 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000010586 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010587 .probe = probe_spi_rdid,
10588 .probe_timing = TIMING_ZERO,
10589 .block_erasers =
10590 {
10591 {
10592 .eraseblocks = { {4 * 1024, 2048 } },
10593 .block_erase = spi_block_erase_20,
10594 }, {
10595 .eraseblocks = { {64 * 1024, 128} },
10596 .block_erase = spi_block_erase_d8,
10597 }, {
10598 .eraseblocks = { {8 * 1024 * 1024, 1} },
10599 .block_erase = spi_block_erase_c7,
10600 }
10601 },
10602 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10603 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10604 .write = spi_chip_write_256, /* Multi I/O supported */
10605 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10606 .voltage = {1700, 2000},
10607 },
10608
10609 {
10610 .vendor = "Micron/Numonyx/ST",
10611 .name = "N25Q064..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
10612 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100010613 .manufacture_id = ST_ID,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010614 .model_id = ST_N25Q064__3E,
10615 .total_size = 8192,
10616 .page_size = 256,
10617 /* supports SFDP */
10618 /* OTP: 64B total; read 0x4B, write 0x42 */
10619 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10620 .tested = TEST_OK_PREW,
10621 .probe = probe_spi_rdid,
10622 .probe_timing = TIMING_ZERO,
10623 .block_erasers =
10624 {
10625 {
10626 .eraseblocks = { {4 * 1024, 2048 } },
10627 .block_erase = spi_block_erase_20,
10628 }, {
10629 .eraseblocks = { {64 * 1024, 128} },
10630 .block_erase = spi_block_erase_d8,
10631 }, {
10632 .eraseblocks = { {8 * 1024 * 1024, 1} },
10633 .block_erase = spi_block_erase_c7,
10634 }
10635 },
10636 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10637 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10638 .write = spi_chip_write_256, /* Multi I/O supported */
10639 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10640 .voltage = {2700, 3600},
10641 },
10642
10643 {
10644 .vendor = "Micron/Numonyx/ST",
10645 .name = "N25Q128..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
10646 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100010647 .manufacture_id = ST_ID,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010648 .model_id = ST_N25Q128__1E,
10649 .total_size = 16384,
10650 .page_size = 256,
10651 /* supports SFDP */
10652 /* OTP: 64B total; read 0x4B, write 0x42 */
10653 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000010654 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010655 .probe = probe_spi_rdid,
10656 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100010657 .block_erasers =
10658 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010659 {
10660 .eraseblocks = { {4 * 1024, 4096 } },
10661 .block_erase = spi_block_erase_20,
10662 }, {
10663 .eraseblocks = { {64 * 1024, 256} },
10664 .block_erase = spi_block_erase_d8,
10665 }, {
10666 .eraseblocks = { {16384 * 1024, 1} },
10667 .block_erase = spi_block_erase_c7,
10668 }
10669 },
10670 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10671 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10672 .write = spi_chip_write_256, /* Multi I/O supported */
10673 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10674 .voltage = {1700, 2000},
10675 },
10676
10677 {
10678 .vendor = "Micron/Numonyx/ST",
10679 .name = "N25Q128..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
10680 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100010681 .manufacture_id = ST_ID,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010682 .model_id = ST_N25Q128__3E,
10683 .total_size = 16384,
10684 .page_size = 256,
10685 /* supports SFDP */
10686 /* OTP: 64B total; read 0x4B, write 0x42 */
10687 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10688 .tested = TEST_OK_PREW,
10689 .probe = probe_spi_rdid,
10690 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100010691 .block_erasers =
10692 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010693 {
10694 .eraseblocks = { {4 * 1024, 4096 } },
10695 .block_erase = spi_block_erase_20,
10696 }, {
10697 .eraseblocks = { {64 * 1024, 256} },
10698 .block_erase = spi_block_erase_d8,
10699 }, {
10700 .eraseblocks = { {16384 * 1024, 1} },
10701 .block_erase = spi_block_erase_c7,
10702 }
10703 },
10704 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10705 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10706 .write = spi_chip_write_256, /* Multi I/O supported */
10707 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10708 .voltage = {2700, 3600},
10709 },
10710
10711 {
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070010712 .vendor = "Micron/Numonyx/ST",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070010713 .name = "N25Q256..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
10714 .bustype = BUS_SPI,
10715 .manufacture_id = ST_ID,
10716 .model_id = ST_N25Q256__1E,
10717 .total_size = 32768,
10718 .page_size = 256,
10719 /* supports SFDP */
10720 /* OTP: 64B total; read 0x4B, write 0x42 */
10721 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
10722 .tested = TEST_UNTESTED,
10723 .probe = probe_spi_rdid,
10724 .probe_timing = TIMING_ZERO,
10725 .block_erasers =
10726 {
10727 {
10728 .eraseblocks = { {4 * 1024, 8192} },
10729 .block_erase = spi_block_erase_21,
10730 }, {
10731 .eraseblocks = { {4 * 1024, 8192} },
10732 .block_erase = spi_block_erase_20,
10733 }, {
10734 .eraseblocks = { {64 * 1024, 512} },
10735 .block_erase = spi_block_erase_dc,
10736 }, {
10737 .eraseblocks = { {64 * 1024, 512} },
10738 .block_erase = spi_block_erase_d8,
10739 }, {
10740 .eraseblocks = { {32768 * 1024, 1} },
10741 .block_erase = spi_block_erase_c7,
10742 }
10743 },
10744 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10745 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10746 .write = spi_chip_write_256, /* Multi I/O supported */
10747 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10748 .voltage = {1700, 2000},
10749 },
10750
10751 {
10752 .vendor = "Micron/Numonyx/ST",
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070010753 .name = "N25Q256..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
10754 .bustype = BUS_SPI,
10755 .manufacture_id = ST_ID,
10756 .model_id = ST_N25Q256__3E,
10757 .total_size = 32768,
10758 .page_size = 256,
10759 /* supports SFDP */
10760 /* OTP: 64B total; read 0x4B, write 0x42 */
10761 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
10762 .tested = TEST_UNTESTED,
10763 .probe = probe_spi_rdid,
10764 .probe_timing = TIMING_ZERO,
10765 .block_erasers =
10766 {
10767 {
10768 .eraseblocks = { {4 * 1024, 8192} },
10769 .block_erase = spi_block_erase_21,
10770 }, {
10771 .eraseblocks = { {4 * 1024, 8192} },
10772 .block_erase = spi_block_erase_20,
10773 }, {
10774 .eraseblocks = { {64 * 1024, 512} },
10775 .block_erase = spi_block_erase_dc,
10776 }, {
10777 .eraseblocks = { {64 * 1024, 512} },
10778 .block_erase = spi_block_erase_d8,
10779 }, {
10780 .eraseblocks = { {32768 * 1024, 1} },
10781 .block_erase = spi_block_erase_c7,
10782 }
10783 },
10784 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10785 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10786 .write = spi_chip_write_256, /* Multi I/O supported */
10787 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10788 .voltage = {2700, 3600},
10789 },
10790
10791 {
10792 .vendor = "Micron/Numonyx/ST",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070010793 .name = "N25Q512..1G", /* ..1G = 1.8V, uniform 64KB/4KB blocks/sectors */
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070010794 .bustype = BUS_SPI,
10795 .manufacture_id = ST_ID,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070010796 .model_id = ST_N25Q512__1G,
10797 .total_size = 65536,
10798 .page_size = 256,
10799 /* supports SFDP */
10800 /* OTP: 64B total; read 0x4B, write 0x42 */
10801 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
10802 .tested = TEST_UNTESTED,
10803 .probe = probe_spi_rdid,
10804 .probe_timing = TIMING_ZERO,
10805 .block_erasers =
10806 {
10807 {
10808 .eraseblocks = { {4 * 1024, 16384} },
10809 .block_erase = spi_block_erase_21,
10810 }, {
10811 .eraseblocks = { {4 * 1024, 16384} },
10812 .block_erase = spi_block_erase_20,
10813 }, {
10814 .eraseblocks = { {64 * 1024, 1024} },
10815 .block_erase = spi_block_erase_dc,
10816 }, {
10817 .eraseblocks = { {64 * 1024, 1024} },
10818 .block_erase = spi_block_erase_d8,
10819 }, {
10820 .eraseblocks = { {32768 * 1024, 2} },
10821 .block_erase = spi_block_erase_c4,
10822 }
10823 },
10824 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10825 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10826 .write = spi_chip_write_256, /* Multi I/O supported */
10827 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10828 .voltage = {1700, 2000},
10829 },
10830
10831 {
10832 .vendor = "Micron/Numonyx/ST",
10833 .name = "N25Q512..3G", /* ..3G = 3V, uniform 64KB/4KB blocks/sectors */
10834 .bustype = BUS_SPI,
10835 .manufacture_id = ST_ID,
10836 .model_id = ST_N25Q512__3G,
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070010837 .total_size = 65536,
10838 .page_size = 256,
10839 /* supports SFDP */
10840 /* OTP: 64B total; read 0x4B, write 0x42 */
10841 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
10842 .tested = TEST_OK_PREW,
10843 .probe = probe_spi_rdid,
10844 .probe_timing = TIMING_ZERO,
10845 .block_erasers =
10846 {
10847 {
10848 .eraseblocks = { {4 * 1024, 16384} },
10849 .block_erase = spi_block_erase_21,
10850 }, {
10851 .eraseblocks = { {4 * 1024, 16384} },
10852 .block_erase = spi_block_erase_20,
10853 }, {
10854 .eraseblocks = { {64 * 1024, 1024} },
10855 .block_erase = spi_block_erase_dc,
10856 }, {
10857 .eraseblocks = { {64 * 1024, 1024} },
10858 .block_erase = spi_block_erase_d8,
10859 }, {
Jacob Creedone8e7b0e2019-07-22 12:21:22 -070010860 .eraseblocks = { {32768 * 1024, 2} },
10861 .block_erase = spi_block_erase_c4,
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070010862 }
10863 },
10864 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10865 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10866 .write = spi_chip_write_256, /* Multi I/O supported */
10867 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10868 .voltage = {2700, 3600},
10869 },
10870
10871 {
Ed Swierk199ab392017-07-03 13:33:44 -070010872 .vendor = "Micron",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070010873 .name = "MT25QL01G", /* L = 3V, uniform 64KB/4KB blocks/sectors */
10874 .bustype = BUS_SPI,
10875 .manufacture_id = ST_ID,
10876 .model_id = ST_N25Q00A__3G,
10877 .total_size = 131072,
10878 .page_size = 256,
10879 /* supports SFDP */
10880 /* OTP: 64B total; read 0x4B, write 0x42 */
10881 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
10882 .tested = TEST_OK_PREW,
10883 .probe = probe_spi_rdid,
10884 .probe_timing = TIMING_ZERO,
10885 .block_erasers =
10886 {
10887 {
10888 .eraseblocks = { {4 * 1024, 32768} },
10889 .block_erase = spi_block_erase_21,
10890 }, {
10891 .eraseblocks = { {4 * 1024, 32768} },
10892 .block_erase = spi_block_erase_20,
10893 }, {
10894 .eraseblocks = { {32 * 1024, 4096} },
10895 .block_erase = spi_block_erase_5c,
10896 }, {
10897 .eraseblocks = { {32 * 1024, 4096} },
10898 .block_erase = spi_block_erase_52,
10899 }, {
10900 .eraseblocks = { {64 * 1024, 2048} },
10901 .block_erase = spi_block_erase_dc,
10902 }, {
10903 .eraseblocks = { {64 * 1024, 2048} },
10904 .block_erase = spi_block_erase_d8,
10905 }, {
10906 .eraseblocks = { {65536 * 1024, 2} },
10907 .block_erase = spi_block_erase_c4,
10908 }
10909 },
10910 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10911 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10912 .write = spi_chip_write_256, /* Multi I/O supported */
10913 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10914 .voltage = {2700, 3600},
10915 },
10916
10917 {
10918 .vendor = "Micron",
10919 .name = "MT25QU01G", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
10920 .bustype = BUS_SPI,
10921 .manufacture_id = ST_ID,
10922 .model_id = ST_N25Q00A__1G,
10923 .total_size = 131072,
10924 .page_size = 256,
10925 /* supports SFDP */
10926 /* OTP: 64B total; read 0x4B, write 0x42 */
10927 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
10928 .tested = TEST_UNTESTED,
10929 .probe = probe_spi_rdid,
10930 .probe_timing = TIMING_ZERO,
10931 .block_erasers =
10932 {
10933 {
10934 .eraseblocks = { {4 * 1024, 32768} },
10935 .block_erase = spi_block_erase_21,
10936 }, {
10937 .eraseblocks = { {4 * 1024, 32768} },
10938 .block_erase = spi_block_erase_20,
10939 }, {
10940 .eraseblocks = { {32 * 1024, 4096} },
10941 .block_erase = spi_block_erase_5c,
10942 }, {
10943 .eraseblocks = { {32 * 1024, 4096} },
10944 .block_erase = spi_block_erase_52,
10945 }, {
10946 .eraseblocks = { {64 * 1024, 2048} },
10947 .block_erase = spi_block_erase_dc,
10948 }, {
10949 .eraseblocks = { {64 * 1024, 2048} },
10950 .block_erase = spi_block_erase_d8,
10951 }, {
10952 .eraseblocks = { {65536 * 1024, 2} },
10953 .block_erase = spi_block_erase_c4,
10954 }
10955 },
10956 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10957 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10958 .write = spi_chip_write_256, /* Multi I/O supported */
10959 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10960 .voltage = {1700, 2000},
10961 },
10962
10963 {
10964 .vendor = "Micron",
10965 .name = "MT25QL02G", /* L = 3V, uniform 64KB/4KB blocks/sectors */
10966 .bustype = BUS_SPI,
10967 .manufacture_id = ST_ID,
10968 .model_id = ST_MT25QL02G,
10969 .total_size = 262144,
10970 .page_size = 256,
10971 /* supports SFDP */
10972 /* OTP: 64B total; read 0x4B, write 0x42 */
10973 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
10974 .tested = TEST_UNTESTED,
10975 .probe = probe_spi_rdid,
10976 .probe_timing = TIMING_ZERO,
10977 .block_erasers =
10978 {
10979 {
10980 .eraseblocks = { {4 * 1024, 65536} },
10981 .block_erase = spi_block_erase_21,
10982 }, {
10983 .eraseblocks = { {4 * 1024, 65536} },
10984 .block_erase = spi_block_erase_20,
10985 }, {
10986 .eraseblocks = { {32 * 1024, 8192} },
10987 .block_erase = spi_block_erase_5c,
10988 }, {
10989 .eraseblocks = { {32 * 1024, 8192} },
10990 .block_erase = spi_block_erase_52,
10991 }, {
10992 .eraseblocks = { {64 * 1024, 4096} },
10993 .block_erase = spi_block_erase_dc,
10994 }, {
10995 .eraseblocks = { {64 * 1024, 4096} },
10996 .block_erase = spi_block_erase_d8,
10997 }, {
10998 .eraseblocks = { {65536 * 1024, 4} },
10999 .block_erase = spi_block_erase_c4,
11000 }
11001 },
11002 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11003 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11004 .write = spi_chip_write_256, /* Multi I/O supported */
11005 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11006 .voltage = {2700, 3600},
11007 },
11008
11009 {
11010 .vendor = "Micron",
11011 .name = "MT25QU02G", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
11012 .bustype = BUS_SPI,
11013 .manufacture_id = ST_ID,
11014 .model_id = ST_MT25QU02G,
11015 .total_size = 262144,
11016 .page_size = 256,
11017 /* supports SFDP */
11018 /* OTP: 64B total; read 0x4B, write 0x42 */
11019 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11020 .tested = TEST_UNTESTED,
11021 .probe = probe_spi_rdid,
11022 .probe_timing = TIMING_ZERO,
11023 .block_erasers =
11024 {
11025 {
11026 .eraseblocks = { {4 * 1024, 65536} },
11027 .block_erase = spi_block_erase_21,
11028 }, {
11029 .eraseblocks = { {4 * 1024, 65536} },
11030 .block_erase = spi_block_erase_20,
11031 }, {
11032 .eraseblocks = { {32 * 1024, 8192} },
11033 .block_erase = spi_block_erase_5c,
11034 }, {
11035 .eraseblocks = { {32 * 1024, 8192} },
11036 .block_erase = spi_block_erase_52,
11037 }, {
11038 .eraseblocks = { {64 * 1024, 4096} },
11039 .block_erase = spi_block_erase_dc,
11040 }, {
11041 .eraseblocks = { {64 * 1024, 4096} },
11042 .block_erase = spi_block_erase_d8,
11043 }, {
11044 .eraseblocks = { {65536 * 1024, 4} },
11045 .block_erase = spi_block_erase_c4,
11046 }
11047 },
11048 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11049 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11050 .write = spi_chip_write_256, /* Multi I/O supported */
11051 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11052 .voltage = {1700, 2000},
11053 },
11054
11055 {
11056 .vendor = "Micron",
11057 .name = "MT25QU128", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
11058 .bustype = BUS_SPI,
11059 .manufacture_id = ST_ID,
11060 .model_id = ST_N25Q128__1E,
11061 .total_size = 16384,
11062 .page_size = 256,
11063 /* supports SFDP */
11064 /* OTP: 64B total; read 0x4B, write 0x42 */
11065 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11066 .tested = TEST_UNTESTED,
11067 .probe = probe_spi_rdid,
11068 .probe_timing = TIMING_ZERO,
11069 .block_erasers =
11070 {
11071 {
11072 .eraseblocks = { {4 * 1024, 4096} },
11073 .block_erase = spi_block_erase_20,
11074 }, {
11075 .eraseblocks = { {32 * 1024, 512} },
11076 .block_erase = spi_block_erase_52,
11077 }, {
11078 .eraseblocks = { {64 * 1024, 256} },
11079 .block_erase = spi_block_erase_d8,
11080 }, {
11081 .eraseblocks = { {16384 * 1024, 1} },
11082 .block_erase = spi_block_erase_c7,
11083 }, {
11084 .eraseblocks = { {16384 * 1024, 1} },
11085 .block_erase = spi_block_erase_60,
11086 }
11087 },
11088 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11089 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11090 .write = spi_chip_write_256, /* Multi I/O supported */
11091 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11092 .voltage = {1700, 2000},
11093 },
11094
11095 {
11096 .vendor = "Micron",
11097 .name = "MT25QL128", /* L = 3V, uniform 64KB/4KB blocks/sectors */
11098 .bustype = BUS_SPI,
11099 .manufacture_id = ST_ID,
11100 .model_id = ST_N25Q128__3E,
11101 .total_size = 16384,
11102 .page_size = 256,
11103 /* supports SFDP */
11104 /* OTP: 64B total; read 0x4B, write 0x42 */
11105 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11106 .tested = TEST_UNTESTED,
11107 .probe = probe_spi_rdid,
11108 .probe_timing = TIMING_ZERO,
11109 .block_erasers =
11110 {
11111 {
11112 .eraseblocks = { {4 * 1024, 4096} },
11113 .block_erase = spi_block_erase_20,
11114 }, {
11115 .eraseblocks = { {32 * 1024, 512} },
11116 .block_erase = spi_block_erase_52,
11117 }, {
11118 .eraseblocks = { {64 * 1024, 256} },
11119 .block_erase = spi_block_erase_d8,
11120 }, {
11121 .eraseblocks = { {16384 * 1024, 1} },
11122 .block_erase = spi_block_erase_c7,
11123 }, {
11124 .eraseblocks = { {16384 * 1024, 1} },
11125 .block_erase = spi_block_erase_60,
11126 }
11127 },
11128 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11129 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11130 .write = spi_chip_write_256, /* Multi I/O supported */
11131 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11132 .voltage = {2700, 3600},
11133 },
11134
11135 {
11136 .vendor = "Micron",
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011137 .name = "MT25QL256", /* L = 3V, uniform 64KB/4KB blocks/sectors */
Ed Swierk199ab392017-07-03 13:33:44 -070011138 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100011139 .manufacture_id = ST_ID,
Ed Swierk199ab392017-07-03 13:33:44 -070011140 .model_id = ST_N25Q256__3E,
11141 .total_size = 32768,
11142 .page_size = 256,
11143 /* supports SFDP */
11144 /* OTP: 64B total; read 0x4B, write 0x42 */
Nico Huberaac81422017-11-10 22:54:13 +010011145 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11146 .tested = TEST_UNTESTED,
Ed Swierk199ab392017-07-03 13:33:44 -070011147 .probe = probe_spi_rdid,
11148 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011149 .block_erasers =
11150 {
Ed Swierk199ab392017-07-03 13:33:44 -070011151 {
11152 .eraseblocks = { {4 * 1024, 8192} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020011153 .block_erase = spi_block_erase_21,
Ed Swierk199ab392017-07-03 13:33:44 -070011154 }, {
Nico Huberaac81422017-11-10 22:54:13 +010011155 .eraseblocks = { {4 * 1024, 8192} },
11156 .block_erase = spi_block_erase_20,
11157 }, {
Jacob Creedon045b97e2019-07-22 12:26:56 -070011158 .eraseblocks = { {32 * 1024, 1024} },
11159 .block_erase = spi_block_erase_5c,
11160 }, {
11161 .eraseblocks = { {32 * 1024, 1024} },
11162 .block_erase = spi_block_erase_52,
11163 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070011164 .eraseblocks = { {64 * 1024, 512} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020011165 .block_erase = spi_block_erase_dc,
Ed Swierk199ab392017-07-03 13:33:44 -070011166 }, {
Nico Huberaac81422017-11-10 22:54:13 +010011167 .eraseblocks = { {64 * 1024, 512} },
11168 .block_erase = spi_block_erase_d8,
11169 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070011170 .eraseblocks = { {32768 * 1024, 1} },
11171 .block_erase = spi_block_erase_c7,
Jacob Creedon045b97e2019-07-22 12:26:56 -070011172 }, {
11173 .eraseblocks = { {32768 * 1024, 1} },
11174 .block_erase = spi_block_erase_60,
Ed Swierk199ab392017-07-03 13:33:44 -070011175 }
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",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011186 .name = "MT25QU256", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
11187 .bustype = BUS_SPI,
11188 .manufacture_id = ST_ID,
11189 .model_id = ST_N25Q256__1E,
11190 .total_size = 32768,
11191 .page_size = 256,
11192 /* supports SFDP */
11193 /* OTP: 64B total; read 0x4B, write 0x42 */
11194 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11195 .tested = TEST_UNTESTED,
11196 .probe = probe_spi_rdid,
11197 .probe_timing = TIMING_ZERO,
11198 .block_erasers =
11199 {
11200 {
11201 .eraseblocks = { {4 * 1024, 8192} },
11202 .block_erase = spi_block_erase_21,
11203 }, {
11204 .eraseblocks = { {4 * 1024, 8192} },
11205 .block_erase = spi_block_erase_20,
11206 }, {
11207 .eraseblocks = { {32 * 1024, 1024} },
11208 .block_erase = spi_block_erase_5c,
11209 }, {
11210 .eraseblocks = { {32 * 1024, 1024} },
11211 .block_erase = spi_block_erase_52,
11212 }, {
11213 .eraseblocks = { {64 * 1024, 512} },
11214 .block_erase = spi_block_erase_dc,
11215 }, {
11216 .eraseblocks = { {64 * 1024, 512} },
11217 .block_erase = spi_block_erase_d8,
11218 }, {
11219 .eraseblocks = { {32768 * 1024, 1} },
11220 .block_erase = spi_block_erase_c7,
11221 }, {
11222 .eraseblocks = { {32768 * 1024, 1} },
11223 .block_erase = spi_block_erase_60,
11224 }
11225 },
11226 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11227 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11228 .write = spi_chip_write_256, /* Multi I/O supported */
11229 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11230 .voltage = {1700, 2000},
11231 },
11232
11233 {
11234 .vendor = "Micron",
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011235 .name = "MT25QL512", /* L = 3V, uniform 64KB/4KB blocks/sectors */
Ed Swierk199ab392017-07-03 13:33:44 -070011236 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100011237 .manufacture_id = ST_ID,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011238 .model_id = ST_N25Q512__3G,
Ed Swierk199ab392017-07-03 13:33:44 -070011239 .total_size = 65536,
11240 .page_size = 256,
11241 /* supports SFDP */
11242 /* OTP: 64B total; read 0x4B, write 0x42 */
Nico Huberaac81422017-11-10 22:54:13 +010011243 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
Angel Pons3ed5a352018-09-30 16:31:09 +020011244 .tested = TEST_OK_PREW,
Ed Swierk199ab392017-07-03 13:33:44 -070011245 .probe = probe_spi_rdid,
11246 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011247 .block_erasers =
11248 {
Ed Swierk199ab392017-07-03 13:33:44 -070011249 {
11250 .eraseblocks = { {4 * 1024, 16384} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020011251 .block_erase = spi_block_erase_21,
Ed Swierk199ab392017-07-03 13:33:44 -070011252 }, {
Nico Huberaac81422017-11-10 22:54:13 +010011253 .eraseblocks = { {4 * 1024, 16384} },
11254 .block_erase = spi_block_erase_20,
11255 }, {
Jacob Creedon045b97e2019-07-22 12:26:56 -070011256 .eraseblocks = { {32 * 1024, 2048} },
11257 .block_erase = spi_block_erase_5c,
11258 }, {
11259 .eraseblocks = { {32 * 1024, 2048} },
11260 .block_erase = spi_block_erase_52,
11261 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070011262 .eraseblocks = { {64 * 1024, 1024} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020011263 .block_erase = spi_block_erase_dc,
Ed Swierk199ab392017-07-03 13:33:44 -070011264 }, {
Nico Huberaac81422017-11-10 22:54:13 +010011265 .eraseblocks = { {64 * 1024, 1024} },
11266 .block_erase = spi_block_erase_d8,
11267 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070011268 .eraseblocks = { {65536 * 1024, 1} },
11269 .block_erase = spi_block_erase_c7,
Jacob Creedon045b97e2019-07-22 12:26:56 -070011270 }, {
11271 .eraseblocks = { {65536 * 1024, 1} },
11272 .block_erase = spi_block_erase_60,
Ed Swierk199ab392017-07-03 13:33:44 -070011273 }
11274 },
11275 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11276 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11277 .write = spi_chip_write_256, /* Multi I/O supported */
11278 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11279 .voltage = {2700, 3600},
11280 },
11281
11282 {
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011283 .vendor = "Micron",
11284 .name = "MT25QU512", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
11285 .bustype = BUS_SPI,
11286 .manufacture_id = ST_ID,
11287 .model_id = ST_N25Q512__1G,
11288 .total_size = 65536,
11289 .page_size = 256,
11290 /* supports SFDP */
11291 /* OTP: 64B total; read 0x4B, write 0x42 */
11292 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11293 .tested = TEST_OK_PREW,
11294 .probe = probe_spi_rdid,
11295 .probe_timing = TIMING_ZERO,
11296 .block_erasers =
11297 {
11298 {
11299 .eraseblocks = { {4 * 1024, 16384} },
11300 .block_erase = spi_block_erase_21,
11301 }, {
11302 .eraseblocks = { {4 * 1024, 16384} },
11303 .block_erase = spi_block_erase_20,
11304 }, {
11305 .eraseblocks = { {32 * 1024, 2048} },
11306 .block_erase = spi_block_erase_5c,
11307 }, {
11308 .eraseblocks = { {32 * 1024, 2048} },
11309 .block_erase = spi_block_erase_52,
11310 }, {
11311 .eraseblocks = { {64 * 1024, 1024} },
11312 .block_erase = spi_block_erase_dc,
11313 }, {
11314 .eraseblocks = { {64 * 1024, 1024} },
11315 .block_erase = spi_block_erase_d8,
11316 }, {
11317 .eraseblocks = { {65536 * 1024, 1} },
11318 .block_erase = spi_block_erase_c7,
11319 }, {
11320 .eraseblocks = { {65536 * 1024, 1} },
11321 .block_erase = spi_block_erase_60,
11322 }
11323 },
11324 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11325 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11326 .write = spi_chip_write_256, /* Multi I/O supported */
11327 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11328 .voltage = {1700, 2000},
11329 },
11330
11331 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000011332 .vendor = "MoselVitelic",
11333 .name = "V29C51000B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011334 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011335 .manufacture_id = SYNCMOS_MVC_ID,
11336 .model_id = MVC_V29C51000B,
11337 .total_size = 64,
11338 .page_size = 512,
11339 .feature_bits = FEATURE_EITHER_RESET,
11340 .tested = TEST_UNTESTED,
11341 .probe = probe_jedec,
11342 .probe_timing = TIMING_ZERO,
11343 .block_erasers =
11344 {
11345 {
11346 .eraseblocks = { {512, 128} },
11347 .block_erase = erase_sector_jedec,
11348 }, {
11349 .eraseblocks = { {64 * 1024, 1} },
11350 .block_erase = erase_chip_block_jedec,
11351 },
11352 },
11353 .write = write_jedec_1,
11354 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011355 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011356 },
11357
11358 {
11359 .vendor = "MoselVitelic",
11360 .name = "V29C51000T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011361 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011362 .manufacture_id = SYNCMOS_MVC_ID,
11363 .model_id = MVC_V29C51000T,
11364 .total_size = 64,
11365 .page_size = 512,
11366 .feature_bits = FEATURE_EITHER_RESET,
11367 .tested = TEST_UNTESTED,
11368 .probe = probe_jedec,
11369 .probe_timing = TIMING_ZERO,
11370 .block_erasers =
11371 {
11372 {
11373 .eraseblocks = { {512, 128} },
11374 .block_erase = erase_sector_jedec,
11375 }, {
11376 .eraseblocks = { {64 * 1024, 1} },
11377 .block_erase = erase_chip_block_jedec,
11378 },
11379 },
11380 .write = write_jedec_1,
11381 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011382 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011383 },
11384
11385 {
11386 .vendor = "MoselVitelic",
11387 .name = "V29C51400B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011388 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011389 .manufacture_id = SYNCMOS_MVC_ID,
11390 .model_id = MVC_V29C51400B,
11391 .total_size = 512,
11392 .page_size = 1024,
11393 .feature_bits = FEATURE_EITHER_RESET,
11394 .tested = TEST_UNTESTED,
11395 .probe = probe_jedec,
11396 .probe_timing = TIMING_ZERO,
11397 .block_erasers =
11398 {
11399 {
11400 .eraseblocks = { {1024, 512} },
11401 .block_erase = erase_sector_jedec,
11402 }, {
11403 .eraseblocks = { {512 * 1024, 1} },
11404 .block_erase = erase_chip_block_jedec,
11405 },
11406 },
11407 .write = write_jedec_1,
11408 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011409 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011410 },
11411
11412 {
11413 .vendor = "MoselVitelic",
11414 .name = "V29C51400T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011415 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011416 .manufacture_id = SYNCMOS_MVC_ID,
11417 .model_id = MVC_V29C51400T,
11418 .total_size = 512,
11419 .page_size = 1024,
11420 .feature_bits = FEATURE_EITHER_RESET,
11421 .tested = TEST_UNTESTED,
11422 .probe = probe_jedec,
11423 .probe_timing = TIMING_ZERO,
11424 .block_erasers =
11425 {
11426 {
11427 .eraseblocks = { {1024, 512} },
11428 .block_erase = erase_sector_jedec,
11429 }, {
11430 .eraseblocks = { {512 * 1024, 1} },
11431 .block_erase = erase_chip_block_jedec,
11432 },
11433 },
11434 .write = write_jedec_1,
11435 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011436 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011437 },
11438
11439 {
11440 .vendor = "MoselVitelic",
11441 .name = "V29LC51000",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011442 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011443 .manufacture_id = SYNCMOS_MVC_ID,
11444 .model_id = MVC_V29LC51000,
11445 .total_size = 64,
11446 .page_size = 512,
11447 .feature_bits = FEATURE_EITHER_RESET,
11448 .tested = TEST_UNTESTED,
11449 .probe = probe_jedec,
11450 .probe_timing = TIMING_ZERO,
11451 .block_erasers =
11452 {
11453 {
11454 .eraseblocks = { {512, 128} },
11455 .block_erase = erase_sector_jedec,
11456 }, {
11457 .eraseblocks = { {64 * 1024, 1} },
11458 .block_erase = erase_chip_block_jedec,
11459 },
11460 },
11461 .write = write_jedec_1,
11462 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011463 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011464 },
11465
11466 {
11467 .vendor = "MoselVitelic",
11468 .name = "V29LC51001",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011469 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011470 .manufacture_id = SYNCMOS_MVC_ID,
11471 .model_id = MVC_V29LC51001,
11472 .total_size = 128,
11473 .page_size = 512,
11474 .feature_bits = FEATURE_EITHER_RESET,
11475 .tested = TEST_UNTESTED,
11476 .probe = probe_jedec,
11477 .probe_timing = TIMING_ZERO,
11478 .block_erasers =
11479 {
11480 {
11481 .eraseblocks = { {512, 256} },
11482 .block_erase = erase_sector_jedec,
11483 }, {
11484 .eraseblocks = { {128 * 1024, 1} },
11485 .block_erase = erase_chip_block_jedec,
11486 },
11487 },
11488 .write = write_jedec_1,
11489 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011490 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011491 },
11492
11493 {
11494 .vendor = "MoselVitelic",
11495 .name = "V29LC51002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011496 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011497 .manufacture_id = SYNCMOS_MVC_ID,
11498 .model_id = MVC_V29LC51002,
11499 .total_size = 256,
11500 .page_size = 512,
11501 .feature_bits = FEATURE_EITHER_RESET,
11502 .tested = TEST_UNTESTED,
11503 .probe = probe_jedec,
11504 .probe_timing = TIMING_ZERO,
11505 .block_erasers =
11506 {
11507 {
11508 .eraseblocks = { {512, 512} },
11509 .block_erase = erase_sector_jedec,
11510 }, {
11511 .eraseblocks = { {256 * 1024, 1} },
11512 .block_erase = erase_chip_block_jedec,
11513 },
11514 },
11515 .write = write_jedec_1,
11516 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011517 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011518 },
11519
11520 {
Stefan Taunerb6b00e92013-06-28 21:28:43 +000011521 .vendor = "Nantronics",
11522 .name = "N25S10",
11523 .bustype = BUS_SPI,
11524 .manufacture_id = NANTRONICS_ID_NOPREFIX,
11525 .model_id = NANTRONICS_N25S10,
11526 .total_size = 128,
11527 .page_size = 256,
11528 .feature_bits = FEATURE_WRSR_WREN,
11529 .tested = TEST_UNTESTED,
11530 .probe = probe_spi_rdid,
11531 .probe_timing = TIMING_ZERO,
11532 .block_erasers =
11533 {
11534 {
11535 .eraseblocks = { {4 * 1024, 32} },
11536 .block_erase = spi_block_erase_20,
11537 }, {
11538 .eraseblocks = { {4 * 1024, 32} },
11539 .block_erase = spi_block_erase_d7,
11540 }, {
11541 .eraseblocks = { {32 * 1024, 4} },
11542 .block_erase = spi_block_erase_52,
11543 }, {
11544 .eraseblocks = { {64 * 1024, 2} },
11545 .block_erase = spi_block_erase_d8,
11546 }, {
11547 .eraseblocks = { {128 * 1024, 1} },
11548 .block_erase = spi_block_erase_60,
11549 }, {
11550 .eraseblocks = { {128 * 1024, 1} },
11551 .block_erase = spi_block_erase_c7,
11552 }
11553 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011554 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000011555 .unlock = spi_disable_blockprotect_bp3_srwd,
11556 .write = spi_chip_write_256,
11557 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
11558 .voltage = {2700, 3600},
11559 },
11560
11561 {
11562 .vendor = "Nantronics",
Alan Green1f9cc7d2019-07-01 11:10:45 +100011563 .name = "N25S16",
11564 .bustype = BUS_SPI,
11565 .manufacture_id = NANTRONICS_ID_NOPREFIX,
11566 .model_id = NANTRONICS_N25S16,
11567 .total_size = 2048,
11568 .page_size = 256,
11569 .feature_bits = FEATURE_WRSR_WREN,
11570 .tested = TEST_UNTESTED,
11571 .probe = probe_spi_rdid,
11572 .probe_timing = TIMING_ZERO,
11573 .block_erasers =
11574 {
11575 {
11576 .eraseblocks = { {4 * 1024, 512} },
11577 .block_erase = spi_block_erase_20,
11578 }, {
11579 .eraseblocks = { {64 * 1024, 32} },
11580 .block_erase = spi_block_erase_d8,
11581 }, {
11582 .eraseblocks = { {2048 * 1024, 1} },
11583 .block_erase = spi_block_erase_60,
11584 }, {
11585 .eraseblocks = { {2048 * 1024, 1} },
11586 .block_erase = spi_block_erase_c7,
11587 }
11588 },
11589 .printlock = spi_prettyprint_status_register_bp3_srwd,
11590 .unlock = spi_disable_blockprotect_bp3_srwd,
11591 .write = spi_chip_write_256,
11592 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
11593 .voltage = {2700, 3600},
11594 },
11595
11596 {
11597 .vendor = "Nantronics",
Stefan Taunerb6b00e92013-06-28 21:28:43 +000011598 .name = "N25S20",
11599 .bustype = BUS_SPI,
11600 .manufacture_id = NANTRONICS_ID_NOPREFIX,
11601 .model_id = NANTRONICS_N25S20,
11602 .total_size = 256,
11603 .page_size = 256,
11604 .feature_bits = FEATURE_WRSR_WREN,
11605 .tested = TEST_UNTESTED,
11606 .probe = probe_spi_rdid,
11607 .probe_timing = TIMING_ZERO,
11608 .block_erasers =
11609 {
11610 {
11611 .eraseblocks = { {4 * 1024, 64} },
11612 .block_erase = spi_block_erase_20,
11613 }, {
11614 .eraseblocks = { {4 * 1024, 64} },
11615 .block_erase = spi_block_erase_d7,
11616 }, {
11617 .eraseblocks = { {32 * 1024, 8} },
11618 .block_erase = spi_block_erase_52,
11619 }, {
11620 .eraseblocks = { {64 * 1024, 4} },
11621 .block_erase = spi_block_erase_d8,
11622 }, {
11623 .eraseblocks = { {256 * 1024, 1} },
11624 .block_erase = spi_block_erase_60,
11625 }, {
11626 .eraseblocks = { {256 * 1024, 1} },
11627 .block_erase = spi_block_erase_c7,
11628 }
11629 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011630 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000011631 .unlock = spi_disable_blockprotect_bp3_srwd,
11632 .write = spi_chip_write_256,
11633 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
11634 .voltage = {2700, 3600},
11635 },
11636
11637 {
11638 .vendor = "Nantronics",
11639 .name = "N25S40",
11640 .bustype = BUS_SPI,
11641 .manufacture_id = NANTRONICS_ID_NOPREFIX,
11642 .model_id = NANTRONICS_N25S40,
11643 .total_size = 512,
11644 .page_size = 256,
11645 .feature_bits = FEATURE_WRSR_WREN,
11646 .tested = TEST_UNTESTED,
11647 .probe = probe_spi_rdid,
11648 .probe_timing = TIMING_ZERO,
11649 .block_erasers =
11650 {
11651 {
11652 .eraseblocks = { {4 * 1024, 128} },
11653 .block_erase = spi_block_erase_20,
11654 }, {
11655 .eraseblocks = { {4 * 1024, 128} },
11656 .block_erase = spi_block_erase_d7,
11657 }, {
11658 .eraseblocks = { {32 * 1024, 16} },
11659 .block_erase = spi_block_erase_52,
11660 }, {
11661 .eraseblocks = { {64 * 1024, 8} },
11662 .block_erase = spi_block_erase_d8,
11663 }, {
11664 .eraseblocks = { {512 * 1024, 1} },
11665 .block_erase = spi_block_erase_60,
11666 }, {
11667 .eraseblocks = { {512 * 1024, 1} },
11668 .block_erase = spi_block_erase_c7,
11669 }
11670 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011671 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000011672 .unlock = spi_disable_blockprotect_bp3_srwd,
11673 .write = spi_chip_write_256,
11674 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
11675 .voltage = {2700, 3600},
11676 },
11677
11678 {
11679 .vendor = "Nantronics",
11680 .name = "N25S80",
11681 .bustype = BUS_SPI,
11682 .manufacture_id = NANTRONICS_ID_NOPREFIX,
11683 .model_id = NANTRONICS_N25S80,
11684 .total_size = 1024,
11685 .page_size = 256,
11686 .feature_bits = FEATURE_WRSR_WREN,
11687 .tested = TEST_UNTESTED,
11688 .probe = probe_spi_rdid,
11689 .probe_timing = TIMING_ZERO,
11690 .block_erasers =
11691 {
11692 {
11693 .eraseblocks = { {4 * 1024, 256} },
11694 .block_erase = spi_block_erase_20,
11695 }, {
11696 .eraseblocks = { {32 * 1024, 32} },
11697 .block_erase = spi_block_erase_52,
11698 }, {
11699 .eraseblocks = { {64 * 1024, 16} },
11700 .block_erase = spi_block_erase_d8,
11701 }, {
11702 .eraseblocks = { {1024 * 1024, 1} },
11703 .block_erase = spi_block_erase_60,
11704 }, {
11705 .eraseblocks = { {1024 * 1024, 1} },
11706 .block_erase = spi_block_erase_c7,
11707 }
11708 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011709 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000011710 .unlock = spi_disable_blockprotect_bp3_srwd,
11711 .write = spi_chip_write_256,
11712 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
11713 .voltage = {2700, 3600},
11714 },
11715
11716 {
Stefan Taunerf4451612013-04-19 01:59:15 +000011717 .vendor = "PMC",
11718 .name = "Pm25LD010(C)",
11719 .bustype = BUS_SPI,
11720 .manufacture_id = PMC_ID,
11721 .model_id = PMC_PM25LD010,
11722 .total_size = 128,
11723 .page_size = 256,
11724 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000011725 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +000011726 .probe = probe_spi_rdid,
11727 .probe_timing = TIMING_ZERO,
11728 .block_erasers =
11729 {
11730 {
11731 .eraseblocks = { {4 * 1024, 32} },
11732 .block_erase = spi_block_erase_20,
11733 }, {
11734 .eraseblocks = { {4 * 1024, 32} },
11735 .block_erase = spi_block_erase_d7,
11736 }, {
11737 .eraseblocks = { {32 * 1024, 4} },
11738 .block_erase = spi_block_erase_d8,
11739 }, {
11740 .eraseblocks = { {128 * 1024, 1} },
11741 .block_erase = spi_block_erase_60,
11742 }, {
11743 .eraseblocks = { {128 * 1024, 1} },
11744 .block_erase = spi_block_erase_c7,
11745 }
11746 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011747 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000011748 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
11749 .write = spi_chip_write_256,
11750 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
11751 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD010 */
11752 },
11753
11754 {
11755 .vendor = "PMC",
11756 .name = "Pm25LD020(C)",
11757 .bustype = BUS_SPI,
11758 .manufacture_id = PMC_ID,
11759 .model_id = PMC_PM25LD020,
11760 .total_size = 256,
11761 .page_size = 256,
11762 .feature_bits = FEATURE_WRSR_WREN,
Angel Ponsf5822a82018-09-30 20:09:58 +020011763 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +000011764 .probe = probe_spi_rdid,
11765 .probe_timing = TIMING_ZERO,
11766 .block_erasers =
11767 {
11768 {
11769 .eraseblocks = { {4 * 1024, 64} },
11770 .block_erase = spi_block_erase_20,
11771 }, {
11772 .eraseblocks = { {4 * 1024, 64} },
11773 .block_erase = spi_block_erase_d7,
11774 }, {
11775 .eraseblocks = { {64 * 1024, 4} },
11776 .block_erase = spi_block_erase_d8,
11777 }, {
11778 .eraseblocks = { {256 * 1024, 1} },
11779 .block_erase = spi_block_erase_60,
11780 }, {
11781 .eraseblocks = { {256 * 1024, 1} },
11782 .block_erase = spi_block_erase_c7,
11783 }
11784 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011785 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000011786 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
11787 .write = spi_chip_write_256,
11788 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
11789 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD020 */
11790 },
11791
11792 {
11793 .vendor = "PMC",
11794 .name = "Pm25LD040(C)",
11795 .bustype = BUS_SPI,
11796 .manufacture_id = PMC_ID,
11797 .model_id = PMC_PM25LV040,
11798 .total_size = 512,
11799 .page_size = 256,
11800 .feature_bits = FEATURE_WRSR_WREN,
Angel Pons05127bf2018-09-30 20:23:24 +020011801 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +000011802 .probe = probe_spi_rdid,
11803 .probe_timing = TIMING_ZERO,
11804 .block_erasers =
11805 {
11806 {
11807 .eraseblocks = { {4 * 1024, 128} },
11808 .block_erase = spi_block_erase_20,
11809 }, {
11810 .eraseblocks = { {4 * 1024, 128} },
11811 .block_erase = spi_block_erase_d7,
11812 }, {
11813 .eraseblocks = { {64 * 1024, 8} },
11814 .block_erase = spi_block_erase_d8,
11815 }, {
11816 .eraseblocks = { {512 * 1024, 1} },
11817 .block_erase = spi_block_erase_60,
11818 }, {
11819 .eraseblocks = { {512 * 1024, 1} },
11820 .block_erase = spi_block_erase_c7,
11821 }
11822 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011823 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000011824 .unlock = spi_disable_blockprotect,
11825 .write = spi_chip_write_256,
11826 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
11827 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD040 */
11828 },
11829
Steven Honeyman81a8fb72015-06-02 22:32:24 +000011830 {
11831 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100011832 .name = "Pm25LD256C",
11833 .bustype = BUS_SPI,
11834 .manufacture_id = PMC_ID,
11835 .model_id = PMC_PM25LD256C,
11836 .total_size = 32,
11837 .page_size = 256,
11838 .feature_bits = FEATURE_WRSR_WREN,
11839 .tested = TEST_UNTESTED,
11840 .probe = probe_spi_rdid,
11841 .probe_timing = TIMING_ZERO,
11842 .block_erasers =
11843 {
11844 {
11845 .eraseblocks = { {4 * 1024, 8} },
11846 .block_erase = spi_block_erase_20,
11847 }, {
11848 .eraseblocks = { {4 * 1024, 8} },
11849 .block_erase = spi_block_erase_d7,
11850 }, {
11851 .eraseblocks = { {32 * 1024, 1} },
11852 .block_erase = spi_block_erase_d8,
11853 }, {
11854 .eraseblocks = { {32 * 1024, 1} },
11855 .block_erase = spi_block_erase_60,
11856 }, {
11857 .eraseblocks = { {32 * 1024, 1} },
11858 .block_erase = spi_block_erase_c7,
11859 }
11860 },
11861 .printlock = spi_prettyprint_status_register_bp2_srwd,
11862 .unlock = spi_disable_blockprotect,
11863 .write = spi_chip_write_256,
11864 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
11865 .voltage = {2700, 3600},
11866 },
11867
11868 {
11869 .vendor = "PMC",
11870 .name = "Pm25LD512(C)",
11871 .bustype = BUS_SPI,
11872 .manufacture_id = PMC_ID,
11873 .model_id = PMC_PM25LD512,
11874 .total_size = 64,
11875 .page_size = 256,
11876 .feature_bits = FEATURE_WRSR_WREN,
11877 .tested = TEST_OK_PREW,
11878 .probe = probe_spi_rdid,
11879 .probe_timing = TIMING_ZERO,
11880 .block_erasers =
11881 {
11882 {
11883 .eraseblocks = { {4 * 1024, 16} },
11884 .block_erase = spi_block_erase_20,
11885 }, {
11886 .eraseblocks = { {4 * 1024, 16} },
11887 .block_erase = spi_block_erase_d7,
11888 }, {
11889 .eraseblocks = { {32 * 1024, 2} },
11890 .block_erase = spi_block_erase_d8,
11891 }, {
11892 .eraseblocks = { {64 * 1024, 1} },
11893 .block_erase = spi_block_erase_60,
11894 }, {
11895 .eraseblocks = { {64 * 1024, 1} },
11896 .block_erase = spi_block_erase_c7,
11897 }
11898 },
11899 .printlock = spi_prettyprint_status_register_bp2_srwd,
11900 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
11901 .write = spi_chip_write_256,
11902 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
11903 .voltage = {2300, 3600},
11904 },
11905
11906 {
11907 .vendor = "PMC",
11908 .name = "Pm25LQ016",
11909 .bustype = BUS_SPI,
11910 .manufacture_id = PMC_ID,
11911 .model_id = PMC_PM25LQ016,
11912 .total_size = 2048,
11913 .page_size = 256,
11914 /* OTP: 256B total; read 0x4B, write 0xB1 */
11915 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11916 .tested = TEST_UNTESTED,
11917 .probe = probe_spi_rdid,
11918 .probe_timing = TIMING_ZERO,
11919 .block_erasers =
11920 {
11921 {
11922 .eraseblocks = { {4 * 1024, 512} },
11923 .block_erase = spi_block_erase_20,
11924 }, {
11925 .eraseblocks = { {4 * 1024, 512} },
11926 .block_erase = spi_block_erase_d7,
11927 }, {
11928 .eraseblocks = { {64 * 1024, 32} },
11929 .block_erase = spi_block_erase_d8,
11930 }, {
11931 .eraseblocks = { {2048 * 1024, 1} },
11932 .block_erase = spi_block_erase_60,
11933 }, {
11934 .eraseblocks = { {2048 * 1024, 1} },
11935 .block_erase = spi_block_erase_c7,
11936 }
11937 },
11938 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
11939 .unlock = spi_disable_blockprotect_bp3_srwd,
11940 .write = spi_chip_write_256,
11941 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11942 .voltage = {2300, 3600},
11943 },
11944
11945 {
11946 .vendor = "PMC",
Steven Honeyman81a8fb72015-06-02 22:32:24 +000011947 .name = "Pm25LQ020",
11948 .bustype = BUS_SPI,
11949 .manufacture_id = PMC_ID,
11950 .model_id = PMC_PM25LQ020,
11951 .total_size = 256,
11952 .page_size = 256,
11953 /* OTP: 256B total; read 0x4B, write 0xB1 */
11954 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11955 .tested = TEST_UNTESTED,
11956 .probe = probe_spi_rdid,
11957 .probe_timing = TIMING_ZERO,
11958 .block_erasers =
11959 {
11960 {
11961 .eraseblocks = { {4 * 1024, 64} },
11962 .block_erase = spi_block_erase_20,
11963 }, {
11964 .eraseblocks = { {4 * 1024, 64} },
11965 .block_erase = spi_block_erase_d7,
11966 }, {
11967 .eraseblocks = { {64 * 1024, 4} },
11968 .block_erase = spi_block_erase_d8,
11969 }, {
11970 .eraseblocks = { {256 * 1024, 1} },
11971 .block_erase = spi_block_erase_60,
11972 }, {
11973 .eraseblocks = { {256 * 1024, 1} },
11974 .block_erase = spi_block_erase_c7,
11975 }
11976 },
11977 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
11978 .unlock = spi_disable_blockprotect_bp3_srwd,
11979 .write = spi_chip_write_256,
11980 .read = spi_chip_read,
11981 .voltage = {2300, 3600},
11982 },
11983
11984 {
11985 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100011986 .name = "Pm25LQ032C",
11987 .bustype = BUS_SPI,
11988 .manufacture_id = PMC_ID,
11989 .model_id = PMC_PM25LQ032C,
11990 .total_size = 4096,
11991 .page_size = 256,
11992 /* OTP: 64B total; read 0x4B, write 0xB1 */
11993 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11994 .tested = TEST_OK_PREW,
11995 .probe = probe_spi_rdid,
11996 .probe_timing = TIMING_ZERO,
11997 .block_erasers =
11998 {
11999 {
12000 .eraseblocks = { {4 * 1024, 1024} },
12001 .block_erase = spi_block_erase_20,
12002 }, {
12003 .eraseblocks = { {4 * 1024, 1024} },
12004 .block_erase = spi_block_erase_d7,
12005 }, {
12006 .eraseblocks = { {64 * 1024, 64} },
12007 .block_erase = spi_block_erase_d8,
12008 }, {
12009 .eraseblocks = { {4096 * 1024, 1} },
12010 .block_erase = spi_block_erase_60,
12011 }, {
12012 .eraseblocks = { {4096 * 1024, 1} },
12013 .block_erase = spi_block_erase_c7,
12014 }
12015 },
12016 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
12017 .unlock = spi_disable_blockprotect_bp3_srwd,
12018 .write = spi_chip_write_256,
12019 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12020 .voltage = {2700, 3600},
12021 },
12022
12023 {
12024 .vendor = "PMC",
Steven Honeyman81a8fb72015-06-02 22:32:24 +000012025 .name = "Pm25LQ040",
12026 .bustype = BUS_SPI,
12027 .manufacture_id = PMC_ID,
12028 .model_id = PMC_PM25LQ040,
12029 .total_size = 512,
12030 .page_size = 256,
12031 /* OTP: 256B total; read 0x4B, write 0xB1 */
12032 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12033 .tested = TEST_UNTESTED,
12034 .probe = probe_spi_rdid,
12035 .probe_timing = TIMING_ZERO,
12036 .block_erasers =
12037 {
12038 {
12039 .eraseblocks = { {4 * 1024, 128} },
12040 .block_erase = spi_block_erase_20,
12041 }, {
12042 .eraseblocks = { {4 * 1024, 128} },
12043 .block_erase = spi_block_erase_d7,
12044 }, {
12045 .eraseblocks = { {64 * 1024, 8} },
12046 .block_erase = spi_block_erase_d8,
12047 }, {
12048 .eraseblocks = { {512 * 1024, 1} },
12049 .block_erase = spi_block_erase_60,
12050 }, {
12051 .eraseblocks = { {512 * 1024, 1} },
12052 .block_erase = spi_block_erase_c7,
12053 }
12054 },
12055 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
12056 .unlock = spi_disable_blockprotect_bp3_srwd,
12057 .write = spi_chip_write_256,
12058 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12059 .voltage = {2300, 3600},
12060 },
12061
12062 {
12063 .vendor = "PMC",
12064 .name = "Pm25LQ080",
12065 .bustype = BUS_SPI,
12066 .manufacture_id = PMC_ID,
12067 .model_id = PMC_PM25LQ080,
12068 .total_size = 1024,
12069 .page_size = 256,
12070 /* OTP: 64B total; read 0x4B, write 0xB1 */
12071 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12072 .tested = TEST_UNTESTED,
12073 .probe = probe_spi_rdid,
12074 .probe_timing = TIMING_ZERO,
12075 .block_erasers =
12076 {
12077 {
12078 .eraseblocks = { {4 * 1024, 256} },
12079 .block_erase = spi_block_erase_20,
12080 }, {
12081 .eraseblocks = { {4 * 1024, 256} },
12082 .block_erase = spi_block_erase_d7,
12083 }, {
12084 .eraseblocks = { {64 * 1024, 16} },
12085 .block_erase = spi_block_erase_d8,
12086 }, {
12087 .eraseblocks = { {1024 * 1024, 1} },
12088 .block_erase = spi_block_erase_60,
12089 }, {
12090 .eraseblocks = { {1024 * 1024, 1} },
12091 .block_erase = spi_block_erase_c7,
12092 }
12093 },
12094 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
12095 .unlock = spi_disable_blockprotect_bp3_srwd,
12096 .write = spi_chip_write_256,
12097 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12098 .voltage = {2300, 3600},
12099 },
12100
12101 {
12102 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012103 .name = "Pm25LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012104 .bustype = BUS_SPI,
Stefan Taunerbecda742014-05-30 19:34:00 +000012105 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012106 .model_id = PMC_PM25LV010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012107 .total_size = 128,
12108 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012109 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerbecda742014-05-30 19:34:00 +000012110 .tested = TEST_OK_PREW,
12111 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000012112 .probe_timing = TIMING_ZERO,
12113 .block_erasers =
12114 {
12115 {
12116 .eraseblocks = { {4 * 1024, 32} },
12117 .block_erase = spi_block_erase_d7,
12118 }, {
12119 .eraseblocks = { {32 * 1024, 4} },
12120 .block_erase = spi_block_erase_d8,
12121 }, {
12122 .eraseblocks = { {128 * 1024, 1} },
12123 .block_erase = spi_block_erase_c7,
12124 }
12125 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012126 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000012127 .unlock = spi_disable_blockprotect,
12128 .write = spi_chip_write_256,
12129 .read = spi_chip_read, /* Fast read (0x0B) supported */
12130 .voltage = {2700, 3600},
12131 },
12132
12133 {
12134 .vendor = "PMC",
12135 .name = "Pm25LV010A",
12136 .bustype = BUS_SPI,
12137 .manufacture_id = PMC_ID,
12138 .model_id = PMC_PM25LV010,
12139 .total_size = 128,
12140 .page_size = 256,
12141 .feature_bits = FEATURE_WRSR_WREN,
12142 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012143 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012144 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000012145 .block_erasers =
12146 {
12147 {
12148 .eraseblocks = { {4 * 1024, 32} },
12149 .block_erase = spi_block_erase_d7,
12150 }, {
12151 .eraseblocks = { {32 * 1024, 4} },
12152 .block_erase = spi_block_erase_d8,
12153 }, {
12154 .eraseblocks = { {128 * 1024, 1} },
12155 .block_erase = spi_block_erase_c7,
12156 }
12157 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012158 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012159 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012160 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000012161 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +000012162 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012163 },
12164
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012165 {
12166 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012167 .name = "Pm25LV016B",
12168 .bustype = BUS_SPI,
12169 .manufacture_id = PMC_ID,
12170 .model_id = PMC_PM25LV016B,
12171 .total_size = 2048,
12172 .page_size = 256,
12173 .feature_bits = FEATURE_WRSR_WREN,
12174 .tested = TEST_UNTESTED,
12175 .probe = probe_spi_rdid,
12176 .probe_timing = TIMING_ZERO,
12177 .block_erasers =
12178 {
12179 {
12180 .eraseblocks = { {4 * 1024, 512} },
12181 .block_erase = spi_block_erase_d7,
12182 }, {
12183 .eraseblocks = { {4 * 1024, 512} },
12184 .block_erase = spi_block_erase_20,
12185 }, {
12186 .eraseblocks = { {64 * 1024, 32} },
12187 .block_erase = spi_block_erase_d8,
12188 }, {
12189 .eraseblocks = { {2 * 1024 * 1024, 1} },
12190 .block_erase = spi_block_erase_60,
12191 }, {
12192 .eraseblocks = { {2 * 1024 * 1024, 1} },
12193 .block_erase = spi_block_erase_c7,
12194 }
12195 },
12196 .printlock = spi_prettyprint_status_register_bp2_srwd,
12197 .unlock = spi_disable_blockprotect,
12198 .write = spi_chip_write_256,
12199 .read = spi_chip_read, /* Fast read (0x0B) supported */
12200 .voltage = {2700, 3600},
12201 },
12202
12203 {
12204 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012205 .name = "Pm25LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012206 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012207 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012208 .model_id = PMC_PM25LV020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012209 .total_size = 256,
12210 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012211 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012212 .tested = TEST_UNTESTED,
12213 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012214 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000012215 .block_erasers =
12216 {
12217 {
12218 .eraseblocks = { {4 * 1024, 64} },
12219 .block_erase = spi_block_erase_d7,
12220 }, {
12221 .eraseblocks = { {64 * 1024, 4} },
12222 .block_erase = spi_block_erase_d8,
12223 }, {
12224 .eraseblocks = { {256 * 1024, 1} },
12225 .block_erase = spi_block_erase_c7,
12226 }
12227 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012228 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012229 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012230 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012231 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012232 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012233 },
12234
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012235 {
12236 .vendor = "PMC",
12237 .name = "Pm25LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012238 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012239 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012240 .model_id = PMC_PM25LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012241 .total_size = 512,
12242 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012243 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +000012244 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012245 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012246 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000012247 .block_erasers =
12248 {
12249 {
12250 .eraseblocks = { {4 * 1024, 128} },
12251 .block_erase = spi_block_erase_d7,
12252 }, {
12253 .eraseblocks = { {64 * 1024, 8} },
12254 .block_erase = spi_block_erase_d8,
12255 }, {
12256 .eraseblocks = { {512 * 1024, 1} },
12257 .block_erase = spi_block_erase_c7,
12258 }
12259 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012260 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012261 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012262 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000012263 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012264 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012265 },
12266
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012267 {
12268 .vendor = "PMC",
12269 .name = "Pm25LV080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012270 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012271 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012272 .model_id = PMC_PM25LV080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012273 .total_size = 1024,
12274 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012275 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012276 .tested = TEST_UNTESTED,
12277 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012278 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000012279 .block_erasers =
12280 {
12281 {
12282 .eraseblocks = { {4 * 1024, 256} },
12283 .block_erase = spi_block_erase_d7,
12284 }, {
12285 .eraseblocks = { {4 * 1024, 256} },
12286 .block_erase = spi_block_erase_20,
12287 }, {
12288 .eraseblocks = { {64 * 1024, 16} },
12289 .block_erase = spi_block_erase_d8,
12290 }, {
12291 .eraseblocks = { {1024 * 1024, 1} },
12292 .block_erase = spi_block_erase_60,
12293 }, {
12294 .eraseblocks = { {1024 * 1024, 1} },
12295 .block_erase = spi_block_erase_c7,
12296 }
12297 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012298 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012299 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012300 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000012301 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012302 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012303 },
12304
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012305 {
12306 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012307 .name = "Pm25LV512(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012308 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +100012309 .manufacture_id = PMC_ID_NOPREFIX,
12310 .model_id = PMC_PM25LV512,
12311 .total_size = 64,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012312 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012313 .feature_bits = FEATURE_WRSR_WREN,
Alan Green1f9cc7d2019-07-01 11:10:45 +100012314 .tested = TEST_OK_PREW,
12315 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012316 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000012317 .block_erasers =
12318 {
12319 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100012320 .eraseblocks = { {4 * 1024, 16} },
Sean Nelson5643c072010-01-19 03:23:07 +000012321 .block_erase = spi_block_erase_d7,
12322 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100012323 .eraseblocks = { {32 * 1024, 2} },
Sean Nelson5643c072010-01-19 03:23:07 +000012324 .block_erase = spi_block_erase_d8,
12325 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100012326 .eraseblocks = { {64 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +000012327 .block_erase = spi_block_erase_c7,
12328 }
12329 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100012330 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012331 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012332 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000012333 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +000012334 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012335 },
12336
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012337 {
12338 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +000012339 .name = "Pm29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012340 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000012341 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012342 .model_id = PMC_PM29F002B,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000012343 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +000012344 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012345 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000012346 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000012347 .probe = probe_jedec,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000012348 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +000012349 .block_erasers =
12350 {
12351 {
12352 .eraseblocks = {
12353 {16 * 1024, 1},
12354 {8 * 1024, 2},
12355 {96 * 1024, 1},
12356 {128 * 1024, 1},
12357 },
Sean Nelson35727f72010-01-28 23:55:12 +000012358 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000012359 }, {
12360 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000012361 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000012362 },
12363 },
Sean Nelson35727f72010-01-28 23:55:12 +000012364 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000012365 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012366 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +000012367 },
12368
12369 {
12370 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012371 .name = "Pm29F002T",
12372 .bustype = BUS_PARALLEL,
12373 .manufacture_id = PMC_ID_NOPREFIX,
12374 .model_id = PMC_PM29F002T,
12375 .total_size = 256,
12376 .page_size = 8 * 1024,
12377 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
12378 .tested = TEST_OK_PREW,
12379 .probe = probe_jedec,
12380 .probe_timing = TIMING_FIXME,
12381 .block_erasers =
12382 {
12383 {
12384 .eraseblocks = {
12385 {128 * 1024, 1},
12386 {96 * 1024, 1},
12387 {8 * 1024, 2},
12388 {16 * 1024, 1},
12389 },
12390 .block_erase = erase_sector_jedec,
12391 }, {
12392 .eraseblocks = { {256 * 1024, 1} },
12393 .block_erase = erase_chip_block_jedec,
12394 },
12395 },
12396 .write = write_jedec_1,
12397 .read = read_memmapped,
12398 .voltage = {4500, 5500},
12399 },
12400
12401 {
12402 .vendor = "PMC",
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000012403 .name = "Pm39LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012404 .bustype = BUS_PARALLEL,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000012405 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012406 .model_id = PMC_PM39F010, /* Pm39LV010 and Pm39F010 have identical IDs but different voltage */
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000012407 .total_size = 128,
12408 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000012409 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000012410 .tested = TEST_OK_PREW,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000012411 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012412 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson5643c072010-01-19 03:23:07 +000012413 .block_erasers =
12414 {
12415 {
12416 .eraseblocks = { {4 * 1024, 32} },
12417 .block_erase = erase_sector_jedec,
12418 }, {
12419 .eraseblocks = { {64 * 1024, 2} },
12420 .block_erase = erase_block_jedec,
12421 }, {
12422 .eraseblocks = { {128 * 1024, 1} },
12423 .block_erase = erase_chip_block_jedec,
12424 }
12425 },
Sean Nelson35727f72010-01-28 23:55:12 +000012426 .write = write_jedec_1,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000012427 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012428 .voltage = {2700, 3600},
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000012429 },
12430
12431 {
12432 .vendor = "PMC",
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012433 .name = "Pm39LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012434 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012435 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012436 .model_id = PMC_PM39LV020,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012437 .total_size = 256,
12438 .page_size = 4096,
12439 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
12440 .tested = TEST_UNTESTED,
12441 .probe = probe_jedec,
12442 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Alan Greenfa3fcd32019-06-27 15:41:50 +100012443 .block_erasers =
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012444 {
12445 {
12446 .eraseblocks = { {4 * 1024, 64} },
12447 .block_erase = erase_sector_jedec,
12448 }, {
12449 .eraseblocks = { {64 * 1024, 4} },
12450 .block_erase = erase_block_jedec,
12451 }, {
12452 .eraseblocks = { {256 * 1024, 1} },
12453 .block_erase = erase_chip_block_jedec,
12454 }
12455 },
12456 .write = write_jedec_1,
12457 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012458 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012459 },
12460
12461 {
12462 .vendor = "PMC",
12463 .name = "Pm39LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012464 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012465 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012466 .model_id = PMC_PM39LV040,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012467 .total_size = 512,
12468 .page_size = 4096,
12469 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000012470 .tested = TEST_OK_PR,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012471 .probe = probe_jedec,
12472 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Alan Greenfa3fcd32019-06-27 15:41:50 +100012473 .block_erasers =
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012474 {
12475 {
12476 .eraseblocks = { {4 * 1024, 128} },
12477 .block_erase = erase_sector_jedec,
12478 }, {
12479 .eraseblocks = { {64 * 1024, 8} },
12480 .block_erase = erase_block_jedec,
12481 }, {
12482 .eraseblocks = { {512 * 1024, 1} },
12483 .block_erase = erase_chip_block_jedec,
12484 }
12485 },
12486 .write = write_jedec_1,
12487 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012488 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012489 },
Kyösti Mälkkiedab1d22012-05-20 23:32:33 +000012490
12491 {
12492 .vendor = "PMC",
12493 .name = "Pm39LV512",
12494 .bustype = BUS_PARALLEL,
12495 .manufacture_id = PMC_ID_NOPREFIX,
12496 .model_id = PMC_PM39LV512,
12497 .total_size = 64,
12498 .page_size = 4096,
12499 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
12500 .tested = TEST_OK_PREW,
12501 .probe = probe_jedec,
12502 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
12503 .block_erasers =
12504 {
12505 {
12506 .eraseblocks = { {4 * 1024, 16} },
12507 .block_erase = erase_sector_jedec,
12508 }, {
12509 .eraseblocks = { {64 * 1024, 1} },
12510 .block_erase = erase_block_jedec,
12511 }, {
12512 .eraseblocks = { {64 * 1024, 1} },
12513 .block_erase = erase_chip_block_jedec,
12514 }
12515 },
12516 .write = write_jedec_1,
12517 .read = read_memmapped,
12518 .voltage = {2700, 3600},
12519 },
12520
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012521 {
12522 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012523 .name = "Pm49FL002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012524 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012525 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012526 .model_id = PMC_PM49FL002,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012527 .total_size = 256,
12528 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012529 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012530 .tested = TEST_OK_PR,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000012531 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012532 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +000012533 .block_erasers =
12534 {
12535 {
12536 .eraseblocks = { {4 * 1024, 64} },
12537 .block_erase = erase_sector_jedec,
12538 }, {
12539 .eraseblocks = { {16 * 1024, 16} },
12540 .block_erase = erase_block_jedec,
12541 }, {
12542 .eraseblocks = { {256 * 1024, 1} },
12543 .block_erase = erase_chip_block_jedec,
12544 }
12545 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012546 .unlock = unlock_regspace2_uniform_32k,
Sean Nelson36172342010-02-27 18:01:15 +000012547 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012548 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012549 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012550 },
12551
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012552 {
12553 .vendor = "PMC",
12554 .name = "Pm49FL004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012555 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012556 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012557 .model_id = PMC_PM49FL004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012558 .total_size = 512,
12559 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012560 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner74dc73f2015-03-01 22:04:38 +000012561 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000012562 .probe = probe_jedec,
Stefan Tauner74dc73f2015-03-01 22:04:38 +000012563 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000012564 .block_erasers =
12565 {
12566 {
12567 .eraseblocks = { {4 * 1024, 128} },
12568 .block_erase = erase_sector_jedec,
12569 }, {
12570 .eraseblocks = { {64 * 1024, 8} },
12571 .block_erase = erase_block_jedec,
12572 }, {
12573 .eraseblocks = { {512 * 1024, 1} },
12574 .block_erase = erase_chip_block_jedec,
12575 }
12576 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000012577 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson36172342010-02-27 18:01:15 +000012578 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012579 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012580 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012581 },
12582
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012583 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012584 .vendor = "SST",
Idwer Volleringf3607d12014-05-07 15:25:04 +000012585 .name = "SST25LF020A",
12586 .bustype = BUS_SPI,
12587 .manufacture_id = SST_ID,
12588 .model_id = SST_SST25VF020_REMS,
12589 .total_size = 256,
12590 .page_size = 256,
12591 .feature_bits = FEATURE_WRSR_EWSR,
12592 .tested = TEST_OK_PREW,
12593 .probe = probe_spi_rems,
12594 .probe_timing = TIMING_ZERO,
12595 .block_erasers =
12596 {
12597 {
12598 .eraseblocks = { {4 * 1024, 64} },
12599 .block_erase = spi_block_erase_20,
12600 }, {
12601 .eraseblocks = { {32 * 1024, 8} },
12602 .block_erase = spi_block_erase_52,
12603 }, {
12604 .eraseblocks = { {256 * 1024, 1} },
12605 .block_erase = spi_block_erase_60,
12606 },
12607 },
12608 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
12609 .unlock = spi_disable_blockprotect,
12610 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
12611 .read = spi_chip_read, /* Fast read (0x0B) supported */
12612 .voltage = {2700, 3600},
12613 },
12614
12615 {
12616 .vendor = "SST",
Zeus Castro33670ba2011-08-17 09:50:11 +000012617 .name = "SST25LF040A",
12618 .bustype = BUS_SPI,
12619 .manufacture_id = SST_ID,
12620 .model_id = SST_SST25VF040_REMS,
12621 .total_size = 512,
12622 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012623 .feature_bits = FEATURE_WRSR_EWSR,
Uwe Hermann4335ec82011-09-07 20:20:25 +000012624 .tested = TEST_OK_PREW,
Zeus Castro33670ba2011-08-17 09:50:11 +000012625 .probe = probe_spi_res2,
12626 .probe_timing = TIMING_ZERO,
12627 .block_erasers =
12628 {
12629 {
12630 .eraseblocks = { {4 * 1024, 128} },
12631 .block_erase = spi_block_erase_20,
12632 }, {
12633 .eraseblocks = { {32 * 1024, 16} },
12634 .block_erase = spi_block_erase_52,
12635 }, {
12636 .eraseblocks = { {512 * 1024, 1} },
12637 .block_erase = spi_block_erase_60,
12638 },
12639 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012640 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +000012641 .unlock = spi_disable_blockprotect,
12642 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
12643 .read = spi_chip_read,
12644 .voltage = {3000, 3600},
12645 },
12646
12647 {
12648 .vendor = "SST",
Stefan Taunere34e3e82013-01-01 00:06:51 +000012649 .name = "SST25LF080(A)",
Zeus Castro33670ba2011-08-17 09:50:11 +000012650 .bustype = BUS_SPI,
12651 .manufacture_id = SST_ID,
12652 .model_id = SST_SST25VF080_REMS,
12653 .total_size = 1024,
12654 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000012655 .feature_bits = FEATURE_WRSR_EITHER,
Zeus Castro33670ba2011-08-17 09:50:11 +000012656 .tested = TEST_UNTESTED,
12657 .probe = probe_spi_res2,
12658 .probe_timing = TIMING_ZERO,
12659 .block_erasers =
12660 {
12661 {
12662 .eraseblocks = { {4 * 1024, 256} },
12663 .block_erase = spi_block_erase_20,
12664 }, {
12665 .eraseblocks = { {32 * 1024, 32} },
12666 .block_erase = spi_block_erase_52,
12667 }, {
12668 .eraseblocks = { {1024 * 1024, 1} },
12669 .block_erase = spi_block_erase_60,
12670 },
12671 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012672 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +000012673 .unlock = spi_disable_blockprotect,
12674 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
12675 .read = spi_chip_read,
12676 .voltage = {3000, 3600},
12677 },
12678
12679 {
12680 .vendor = "SST",
Stefan Tauner6697f712014-08-06 15:09:15 +000012681 .name = "SST25VF010(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012682 .bustype = BUS_SPI,
Mark Marshall90021f22010-12-03 14:48:11 +000012683 .manufacture_id = SST_ID,
12684 .model_id = SST_SST25VF010_REMS,
12685 .total_size = 128,
12686 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012687 .feature_bits = FEATURE_WRSR_EWSR,
Mark Marshall90021f22010-12-03 14:48:11 +000012688 .tested = TEST_OK_PREW,
12689 .probe = probe_spi_rems,
12690 .probe_timing = TIMING_ZERO,
12691 .block_erasers =
12692 {
12693 {
12694 .eraseblocks = { {4 * 1024, 32} },
12695 .block_erase = spi_block_erase_20,
12696 }, {
12697 .eraseblocks = { {32 * 1024, 4} },
12698 .block_erase = spi_block_erase_52,
12699 }, {
Cory Henderson370f5822013-10-19 23:09:16 +000012700 .eraseblocks = { {32 * 1024, 4} },
Stefan Tauner6697f712014-08-06 15:09:15 +000012701 .block_erase = spi_block_erase_d8, /* Supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000012702 }, {
Mark Marshall90021f22010-12-03 14:48:11 +000012703 .eraseblocks = { {128 * 1024, 1} },
12704 .block_erase = spi_block_erase_60,
Cory Henderson370f5822013-10-19 23:09:16 +000012705 }, {
12706 .eraseblocks = { {128 * 1024, 1} },
Stefan Tauner6697f712014-08-06 15:09:15 +000012707 .block_erase = spi_block_erase_c7, /* Supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000012708 },
12709 },
12710 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
12711 .unlock = spi_disable_blockprotect,
12712 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
Stefan Tauner6697f712014-08-06 15:09:15 +000012713 .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000012714 .voltage = {2700, 3600},
12715 },
12716
12717 {
12718 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012719 .name = "SST25VF016B",
12720 .bustype = BUS_SPI,
12721 .manufacture_id = SST_ID,
12722 .model_id = SST_SST25VF016B,
12723 .total_size = 2048,
12724 .page_size = 256,
12725 .feature_bits = FEATURE_WRSR_EITHER,
12726 .tested = TEST_OK_PREW,
12727 .probe = probe_spi_rdid,
12728 .probe_timing = TIMING_ZERO,
12729 .block_erasers =
12730 {
12731 {
12732 .eraseblocks = { {4 * 1024, 512} },
12733 .block_erase = spi_block_erase_20,
12734 }, {
12735 .eraseblocks = { {32 * 1024, 64} },
12736 .block_erase = spi_block_erase_52,
12737 }, {
12738 .eraseblocks = { {64 * 1024, 32} },
12739 .block_erase = spi_block_erase_d8,
12740 }, {
12741 .eraseblocks = { {2 * 1024 * 1024, 1} },
12742 .block_erase = spi_block_erase_60,
12743 }, {
12744 .eraseblocks = { {2 * 1024 * 1024, 1} },
12745 .block_erase = spi_block_erase_c7,
12746 },
12747 },
12748 .printlock = spi_prettyprint_status_register_sst25vf016,
12749 .unlock = spi_disable_blockprotect,
12750 .write = spi_aai_write,
12751 .read = spi_chip_read,
12752 .voltage = {2700, 3600},
12753 },
12754
12755 {
12756 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +000012757 .name = "SST25VF020",
12758 .bustype = BUS_SPI,
12759 .manufacture_id = SST_ID,
12760 .model_id = SST_SST25VF020_REMS,
12761 .total_size = 256,
12762 .page_size = 256,
12763 .feature_bits = FEATURE_WRSR_EWSR,
12764 .tested = TEST_UNTESTED,
12765 .probe = probe_spi_rems,
12766 .probe_timing = TIMING_ZERO,
12767 .block_erasers =
12768 {
12769 {
12770 .eraseblocks = { {4 * 1024, 64} },
12771 .block_erase = spi_block_erase_20,
12772 }, {
12773 .eraseblocks = { {32 * 1024, 8} },
12774 .block_erase = spi_block_erase_52,
12775 }, {
12776 .eraseblocks = { {256 * 1024, 1} },
12777 .block_erase = spi_block_erase_60,
12778 },
12779 },
12780 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
12781 .unlock = spi_disable_blockprotect,
12782 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
12783 .read = spi_chip_read, /* only */
12784 .voltage = {2700, 3600},
12785 },
12786
12787 {
12788 .vendor = "SST",
12789 .name = "SST25VF020B",
12790 .bustype = BUS_SPI,
12791 .manufacture_id = SST_ID,
12792 .model_id = SST_SST25VF020B,
12793 .total_size = 256,
12794 .page_size = 256,
12795 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000012796 .tested = TEST_OK_PREW,
Cory Henderson370f5822013-10-19 23:09:16 +000012797 .probe = probe_spi_rdid,
12798 .probe_timing = TIMING_ZERO,
12799 .block_erasers =
12800 {
12801 {
12802 .eraseblocks = { {4 * 1024, 64} },
12803 .block_erase = spi_block_erase_20,
12804 }, {
12805 .eraseblocks = { {32 * 1024, 8} },
12806 .block_erase = spi_block_erase_52,
12807 }, {
12808 .eraseblocks = { {64 * 1024, 4} },
12809 .block_erase = spi_block_erase_d8,
12810 }, {
12811 .eraseblocks = { {256 * 1024, 1} },
12812 .block_erase = spi_block_erase_60,
12813 }, {
12814 .eraseblocks = { {256 * 1024, 1} },
12815 .block_erase = spi_block_erase_c7,
12816 },
12817 },
12818 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 and 2nd SR */
12819 .unlock = spi_disable_blockprotect, /* FIXME: 2nd SR */
12820 .write = spi_aai_write, /* AAI supported (0xAD) */
12821 .read = spi_chip_read, /* Fast read (0x0B) supported */
12822 .voltage = {2700, 3600},
12823 },
12824
12825 {
12826 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012827 .name = "SST25VF032B",
12828 .bustype = BUS_SPI,
12829 .manufacture_id = SST_ID,
12830 .model_id = SST_SST25VF032B,
12831 .total_size = 4096,
12832 .page_size = 256,
12833 .feature_bits = FEATURE_WRSR_EWSR,
12834 .tested = TEST_OK_PREW,
12835 .probe = probe_spi_rdid,
12836 .probe_timing = TIMING_ZERO,
12837 .block_erasers =
12838 {
12839 {
12840 .eraseblocks = { {4 * 1024, 1024} },
12841 .block_erase = spi_block_erase_20,
12842 }, {
12843 .eraseblocks = { {32 * 1024, 128} },
12844 .block_erase = spi_block_erase_52,
12845 }, {
12846 .eraseblocks = { {64 * 1024, 64} },
12847 .block_erase = spi_block_erase_d8,
12848 }, {
12849 .eraseblocks = { {4 * 1024 * 1024, 1} },
12850 .block_erase = spi_block_erase_60,
12851 }, {
12852 .eraseblocks = { {4 * 1024 * 1024, 1} },
12853 .block_erase = spi_block_erase_c7,
12854 },
12855 },
12856 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
12857 .unlock = spi_disable_blockprotect,
12858 .write = spi_aai_write,
12859 .read = spi_chip_read,
12860 .voltage = {2700, 3600},
12861 },
12862
12863 {
12864 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +000012865 .name = "SST25VF040",
12866 .bustype = BUS_SPI,
12867 .manufacture_id = SST_ID,
12868 .model_id = SST_SST25VF040_REMS,
12869 .total_size = 512,
12870 .page_size = 256,
12871 .feature_bits = FEATURE_WRSR_EWSR,
12872 .tested = TEST_OK_PR,
12873 .probe = probe_spi_rems,
12874 .probe_timing = TIMING_ZERO,
12875 .block_erasers =
12876 {
12877 {
12878 .eraseblocks = { {4 * 1024, 128} },
12879 .block_erase = spi_block_erase_20,
12880 }, {
12881 .eraseblocks = { {32 * 1024, 16} },
12882 .block_erase = spi_block_erase_52,
12883 }, {
12884 .eraseblocks = { {512 * 1024, 1} },
12885 .block_erase = spi_block_erase_60,
Mark Marshall90021f22010-12-03 14:48:11 +000012886 },
12887 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012888 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Mark Marshall90021f22010-12-03 14:48:11 +000012889 .unlock = spi_disable_blockprotect,
Cory Henderson370f5822013-10-19 23:09:16 +000012890 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
12891 .read = spi_chip_read,
12892 .voltage = {2700, 3600},
12893 },
12894
12895 {
12896 .vendor = "SST",
12897 .name = "SST25VF040B",
12898 .bustype = BUS_SPI,
12899 .manufacture_id = SST_ID,
12900 .model_id = SST_SST25VF040B,
12901 .total_size = 512,
12902 .page_size = 256,
12903 .feature_bits = FEATURE_WRSR_EWSR,
12904 .tested = TEST_OK_PREW,
12905 .probe = probe_spi_rdid,
12906 .probe_timing = TIMING_ZERO,
12907 .block_erasers =
12908 {
12909 {
12910 .eraseblocks = { {4 * 1024, 128} },
12911 .block_erase = spi_block_erase_20,
12912 }, {
12913 .eraseblocks = { {32 * 1024, 16} },
12914 .block_erase = spi_block_erase_52,
12915 }, {
12916 .eraseblocks = { {64 * 1024, 8} },
12917 .block_erase = spi_block_erase_d8,
12918 }, {
12919 .eraseblocks = { {512 * 1024, 1} },
12920 .block_erase = spi_block_erase_60,
12921 }, {
12922 .eraseblocks = { {512 * 1024, 1} },
12923 .block_erase = spi_block_erase_c7,
12924 },
12925 },
12926 .printlock = spi_prettyprint_status_register_sst25vf040b,
12927 .unlock = spi_disable_blockprotect,
12928 .write = spi_aai_write, /* AAI supported (0xAD) */
12929 .read = spi_chip_read, /* Fast read (0x0B) supported */
12930 .voltage = {2700, 3600},
12931 },
12932
12933 {
12934 .vendor = "SST",
12935 .name = "SST25VF040B.REMS",
12936 .bustype = BUS_SPI,
12937 .manufacture_id = SST_ID,
12938 .model_id = SST_SST25VF040B_REMS,
12939 .total_size = 512,
12940 .page_size = 256,
12941 .feature_bits = FEATURE_WRSR_EWSR,
12942 .tested = TEST_OK_PREW,
12943 .probe = probe_spi_rems,
12944 .probe_timing = TIMING_ZERO,
12945 .block_erasers =
12946 {
12947 {
12948 .eraseblocks = { {4 * 1024, 128} },
12949 .block_erase = spi_block_erase_20,
12950 }, {
12951 .eraseblocks = { {32 * 1024, 16} },
12952 .block_erase = spi_block_erase_52,
12953 }, {
12954 .eraseblocks = { {64 * 1024, 8} },
12955 .block_erase = spi_block_erase_d8,
12956 }, {
12957 .eraseblocks = { {512 * 1024, 1} },
12958 .block_erase = spi_block_erase_60,
12959 }, {
12960 .eraseblocks = { {512 * 1024, 1} },
12961 .block_erase = spi_block_erase_c7,
12962 },
12963 },
12964 .printlock = spi_prettyprint_status_register_sst25vf040b,
12965 .unlock = spi_disable_blockprotect,
12966 .write = spi_aai_write,
12967 .read = spi_chip_read,
12968 .voltage = {2700, 3600},
12969 },
12970
12971 {
12972 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012973 .name = "SST25VF064C",
Ben Gardnerbcf61092015-11-22 02:23:31 +000012974 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +100012975 .manufacture_id = SST_ID,
12976 .model_id = SST_SST25VF064C,
12977 .total_size = 8192,
Ben Gardnerbcf61092015-11-22 02:23:31 +000012978 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100012979 .feature_bits = FEATURE_WRSR_EWSR,
Ben Gardnerbcf61092015-11-22 02:23:31 +000012980 .tested = TEST_OK_PREW,
12981 .probe = probe_spi_rdid,
12982 .probe_timing = TIMING_ZERO,
12983 .block_erasers =
12984 {
12985 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100012986 .eraseblocks = { {4 * 1024, 2048} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000012987 .block_erase = spi_block_erase_20,
12988 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100012989 .eraseblocks = { {32 * 1024, 256} },
12990 .block_erase = spi_block_erase_52,
12991 }, {
12992 .eraseblocks = { {64 * 1024, 128} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000012993 .block_erase = spi_block_erase_d8,
12994 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100012995 .eraseblocks = { {8 * 1024 * 1024, 1} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000012996 .block_erase = spi_block_erase_60,
12997 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100012998 .eraseblocks = { {8 * 1024 * 1024, 1} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000012999 .block_erase = spi_block_erase_c7,
13000 },
13001 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100013002 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
13003 .unlock = spi_disable_blockprotect,
Ben Gardnerbcf61092015-11-22 02:23:31 +000013004 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013005 .read = spi_chip_read,
13006 .voltage = {2700, 3600},
Ben Gardnerbcf61092015-11-22 02:23:31 +000013007 },
13008
13009 {
13010 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +000013011 .name = "SST25VF080B",
13012 .bustype = BUS_SPI,
13013 .manufacture_id = SST_ID,
13014 .model_id = SST_SST25VF080B,
13015 .total_size = 1024,
13016 .page_size = 256,
13017 .feature_bits = FEATURE_WRSR_EWSR,
13018 .tested = TEST_OK_PREW,
13019 .probe = probe_spi_rdid,
13020 .probe_timing = TIMING_ZERO,
13021 .block_erasers =
13022 {
13023 {
13024 .eraseblocks = { {4 * 1024, 256} },
13025 .block_erase = spi_block_erase_20,
13026 }, {
13027 .eraseblocks = { {32 * 1024, 32} },
13028 .block_erase = spi_block_erase_52,
13029 }, {
13030 .eraseblocks = { {64 * 1024, 16} },
13031 .block_erase = spi_block_erase_d8,
13032 }, {
13033 .eraseblocks = { {1024 * 1024, 1} },
13034 .block_erase = spi_block_erase_60,
13035 }, {
13036 .eraseblocks = { {1024 * 1024, 1} },
13037 .block_erase = spi_block_erase_c7,
13038 },
13039 },
13040 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
13041 .unlock = spi_disable_blockprotect,
13042 .write = spi_aai_write,
Mark Marshall90021f22010-12-03 14:48:11 +000013043 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000013044 .voltage = {2700, 3600},
Mark Marshall90021f22010-12-03 14:48:11 +000013045 },
13046
13047 {
13048 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013049 .name = "SST25VF512(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013050 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013051 .manufacture_id = SST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013052 .model_id = SST_SST25VF512_REMS,
13053 .total_size = 64,
13054 .page_size = 256,
13055 .feature_bits = FEATURE_WRSR_EWSR,
13056 .tested = TEST_OK_PREW,
13057 .probe = probe_spi_rems,
13058 .probe_timing = TIMING_ZERO,
13059 .block_erasers =
13060 {
13061 {
13062 .eraseblocks = { {4 * 1024, 16} },
13063 .block_erase = spi_block_erase_20,
13064 }, {
13065 .eraseblocks = { {32 * 1024, 2} },
13066 .block_erase = spi_block_erase_52,
13067 }, {
13068 .eraseblocks = { {32 * 1024, 2} },
13069 .block_erase = spi_block_erase_d8, /* Supported by SST25VF512A only */
13070 }, {
13071 .eraseblocks = { {64 * 1024, 1} },
13072 .block_erase = spi_block_erase_60,
13073 }, {
13074 .eraseblocks = { {64 * 1024, 1} },
13075 .block_erase = spi_block_erase_c7, /* Supported by SST25VF512A only */
13076 },
13077 },
13078 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
13079 .unlock = spi_disable_blockprotect,
13080 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13081 .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF512A only */
13082 .voltage = {2700, 3600},
13083 },
13084
13085 {
13086 .vendor = "SST",
13087 .name = "SST25WF010",
13088 .bustype = BUS_SPI,
13089 .manufacture_id = SST_ID,
13090 .model_id = SST_SST25WF010,
13091 .total_size = 128,
13092 .page_size = 256,
13093 .feature_bits = FEATURE_WRSR_EITHER,
13094 .tested = TEST_UNTESTED,
13095 .probe = probe_spi_rdid,
13096 .probe_timing = TIMING_ZERO,
13097 .block_erasers =
13098 {
13099 {
13100 .eraseblocks = { {4 * 1024, 32} },
13101 .block_erase = spi_block_erase_20,
13102 }, {
13103 .eraseblocks = { {32 * 1024, 4} },
13104 .block_erase = spi_block_erase_52,
13105 }, {
13106 .eraseblocks = { {1024 * 128, 1} },
13107 .block_erase = spi_block_erase_60,
13108 }, {
13109 .eraseblocks = { {1024 * 128, 1} },
13110 .block_erase = spi_block_erase_c7,
13111 },
13112 },
13113 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
13114 .unlock = spi_disable_blockprotect_bp2_srwd,
13115 .write = spi_aai_write,
13116 .read = spi_chip_read, /* Fast read (0x0B) supported */
13117 .voltage = {1650, 1950},
13118 },
13119
13120 {
13121 .vendor = "SST",
13122 .name = "SST25WF020",
13123 .bustype = BUS_SPI,
13124 .manufacture_id = SST_ID,
13125 .model_id = SST_SST25WF020,
13126 .total_size = 256,
13127 .page_size = 256,
13128 .feature_bits = FEATURE_WRSR_EITHER,
13129 .tested = TEST_UNTESTED,
13130 .probe = probe_spi_rdid,
13131 .probe_timing = TIMING_ZERO,
13132 .block_erasers =
13133 {
13134 {
13135 .eraseblocks = { {4 * 1024, 64} },
13136 .block_erase = spi_block_erase_20,
13137 }, {
13138 .eraseblocks = { {32 * 1024, 8} },
13139 .block_erase = spi_block_erase_52,
13140 }, {
13141 .eraseblocks = { {64 * 1024, 4} },
13142 .block_erase = spi_block_erase_d8,
13143 }, {
13144 .eraseblocks = { {1024 * 256, 1} },
13145 .block_erase = spi_block_erase_60,
13146 }, {
13147 .eraseblocks = { {1024 * 256, 1} },
13148 .block_erase = spi_block_erase_c7,
13149 },
13150 },
13151 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
13152 .unlock = spi_disable_blockprotect_bp2_srwd,
13153 .write = spi_aai_write,
13154 .read = spi_chip_read, /* Fast read (0x0B) supported */
13155 .voltage = {1650, 1950},
13156 },
13157
13158 {
13159 .vendor = "SST",
13160 .name = "SST25WF020A",
13161 .bustype = BUS_SPI,
13162 .manufacture_id = SANYO_ID, /* See flashchips.h */
13163 .model_id = SST_SST25WF020A,
13164 .total_size = 256,
13165 .page_size = 256,
13166 .feature_bits = FEATURE_WRSR_WREN,
13167 .tested = TEST_UNTESTED,
13168 .probe = probe_spi_rdid,
13169 .probe_timing = TIMING_ZERO,
13170 .block_erasers =
13171 {
13172 {
13173 .eraseblocks = { {4 * 1024, 64} },
13174 .block_erase = spi_block_erase_20,
13175 }, {
13176 .eraseblocks = { {64 * 1024, 4} },
13177 .block_erase = spi_block_erase_d8,
13178 }, {
13179 .eraseblocks = { {256 * 1024, 1} },
13180 .block_erase = spi_block_erase_60,
13181 }, {
13182 .eraseblocks = { {256 * 1024, 1} },
13183 .block_erase = spi_block_erase_c7,
13184 },
13185 },
13186 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
13187 .unlock = spi_disable_blockprotect_bp2_srwd,
13188 .write = spi_chip_write_256,
13189 .read = spi_chip_read, /* Fast read (0x0B) supported */
13190 .voltage = {1650, 1950},
13191 },
13192
13193 {
13194 .vendor = "SST",
13195 .name = "SST25WF040",
13196 .bustype = BUS_SPI,
13197 .manufacture_id = SST_ID,
13198 .model_id = SST_SST25WF040,
13199 .total_size = 512,
13200 .page_size = 256,
13201 .feature_bits = FEATURE_WRSR_EITHER,
13202 .tested = TEST_UNTESTED,
13203 .probe = probe_spi_rdid,
13204 .probe_timing = TIMING_ZERO,
13205 .block_erasers =
13206 {
13207 {
13208 .eraseblocks = { {4 * 1024, 128} },
13209 .block_erase = spi_block_erase_20,
13210 }, {
13211 .eraseblocks = { {32 * 1024, 16} },
13212 .block_erase = spi_block_erase_52,
13213 }, {
13214 .eraseblocks = { {64 * 1024, 8} },
13215 .block_erase = spi_block_erase_d8,
13216 }, {
13217 .eraseblocks = { {1024 * 512, 1} },
13218 .block_erase = spi_block_erase_60,
13219 }, {
13220 .eraseblocks = { {1024 * 512, 1} },
13221 .block_erase = spi_block_erase_c7,
13222 },
13223 },
13224 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
13225 .unlock = spi_disable_blockprotect_bp2_srwd,
13226 .write = spi_aai_write,
13227 .read = spi_chip_read, /* Fast read (0x0B) supported */
13228 .voltage = {1650, 1950},
13229 },
13230
13231 {
13232 .vendor = "SST",
13233 .name = "SST25WF040B",
13234 .bustype = BUS_SPI,
13235 .manufacture_id = SANYO_ID, /* See flashchips.h */
13236 .model_id = SST_SST25WF040B,
13237 .total_size = 512,
13238 .page_size = 256,
13239 .feature_bits = FEATURE_WRSR_WREN,
13240 .tested = TEST_UNTESTED,
13241 .probe = probe_spi_rdid,
13242 .probe_timing = TIMING_ZERO,
13243 .block_erasers =
13244 {
13245 {
13246 .eraseblocks = { {4 * 1024, 128} },
13247 .block_erase = spi_block_erase_20,
13248 }, {
13249 .eraseblocks = { {64 * 1024, 8} },
13250 .block_erase = spi_block_erase_d8,
13251 }, {
13252 .eraseblocks = { {512 * 1024, 1} },
13253 .block_erase = spi_block_erase_60,
13254 }, {
13255 .eraseblocks = { {512 * 1024, 1} },
13256 .block_erase = spi_block_erase_c7,
13257 },
13258 },
13259 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
13260 .unlock = spi_disable_blockprotect_bp2_srwd,
13261 .write = spi_chip_write_256,
13262 .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */
13263 .voltage = {1650, 1950},
13264 },
13265
13266 {
13267 .vendor = "SST",
13268 .name = "SST25WF080",
13269 .bustype = BUS_SPI,
13270 .manufacture_id = SST_ID,
13271 .model_id = SST_SST25WF080,
13272 .total_size = 1024,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013273 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000013274 .feature_bits = FEATURE_WRSR_EITHER,
Mark Marshall90021f22010-12-03 14:48:11 +000013275 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013276 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013277 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013278 .block_erasers =
13279 {
13280 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013281 .eraseblocks = { {4 * 1024, 256} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013282 .block_erase = spi_block_erase_20,
13283 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013284 .eraseblocks = { {32 * 1024, 32} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013285 .block_erase = spi_block_erase_52,
13286 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013287 .eraseblocks = { {64 * 1024, 16} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013288 .block_erase = spi_block_erase_d8,
13289 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013290 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013291 .block_erase = spi_block_erase_60,
13292 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013293 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013294 .block_erase = spi_block_erase_c7,
13295 },
13296 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100013297 .printlock = spi_prettyprint_status_register_sst25, /* *does* have a BP3 but it is useless */
13298 .unlock = spi_disable_blockprotect_bp3_srwd,
Joshua Roys87955bf2011-08-01 18:39:28 +000013299 .write = spi_aai_write,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013300 .read = spi_chip_read, /* Fast read (0x0B) supported */
13301 .voltage = {1650, 1950},
FENG yu ningff692fb2008-12-08 18:15:10 +000013302 },
13303
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013304 {
13305 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013306 .name = "SST25WF080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013307 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013308 .manufacture_id = SANYO_ID, /* See flashchips.h */
13309 .model_id = SST_SST25WF080B,
13310 .total_size = 1024,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013311 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013312 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerfcf6a8c2011-05-18 01:32:00 +000013313 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013314 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013315 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013316 .block_erasers =
13317 {
13318 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013319 .eraseblocks = { {4 * 1024, 256} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013320 .block_erase = spi_block_erase_20,
13321 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013322 .eraseblocks = { {64 * 1024, 16} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013323 .block_erase = spi_block_erase_d8,
13324 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013325 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013326 .block_erase = spi_block_erase_60,
13327 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013328 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013329 .block_erase = spi_block_erase_c7,
13330 },
13331 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100013332 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
13333 .unlock = spi_disable_blockprotect_bp2_srwd,
Helge Wagner1db7a442010-10-05 22:29:08 +000013334 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013335 .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */
13336 .voltage = {1650, 1950},
13337 },
13338
13339 {
13340 .vendor = "SST",
13341 .name = "SST25WF512",
13342 .bustype = BUS_SPI,
13343 .manufacture_id = SST_ID,
13344 .model_id = SST_SST25WF512,
13345 .total_size = 64,
13346 .page_size = 256,
13347 .feature_bits = FEATURE_WRSR_EITHER,
13348 .tested = TEST_UNTESTED,
13349 .probe = probe_spi_rdid,
13350 .probe_timing = TIMING_ZERO,
13351 .block_erasers =
13352 {
13353 {
13354 .eraseblocks = { {4 * 1024, 16} },
13355 .block_erase = spi_block_erase_20,
13356 }, {
13357 .eraseblocks = { {32 * 1024, 2} },
13358 .block_erase = spi_block_erase_52,
13359 }, {
13360 .eraseblocks = { {1024 * 64, 1} },
13361 .block_erase = spi_block_erase_60,
13362 }, {
13363 .eraseblocks = { {1024 * 64, 1} },
13364 .block_erase = spi_block_erase_c7,
13365 },
13366 },
13367 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
13368 .unlock = spi_disable_blockprotect_bp2_srwd,
13369 .write = spi_aai_write,
13370 .read = spi_chip_read, /* Fast read (0x0B) supported */
13371 .voltage = {1650, 1950},
Ed Swierk86f4e6d2010-07-21 15:02:22 +000013372 },
13373
13374 {
13375 .vendor = "SST",
Wei Hu25584de2018-04-30 14:02:08 -070013376 .name = "SST26VF016B(A)",
13377 .bustype = BUS_SPI,
13378 .manufacture_id = SST_ID,
13379 .model_id = SST_SST26VF016B,
13380 .total_size = 2048,
13381 .page_size = 256,
13382 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
13383 .tested = TEST_OK_PREW,
13384 .probe = probe_spi_rdid,
13385 .probe_timing = TIMING_ZERO,
13386 .block_erasers =
13387 {
13388 {
13389 .eraseblocks = { {4 * 1024, 512} },
13390 .block_erase = spi_block_erase_20,
13391 }, {
13392 .eraseblocks = {
13393 {8 * 1024, 4},
13394 {32 * 1024, 1},
13395 {64 * 1024, 30},
13396 {32 * 1024, 1},
13397 {8 * 1024, 4},
13398 },
13399 .block_erase = spi_block_erase_d8,
13400 }, {
13401 .eraseblocks = { {2 * 1024 * 1024, 1} },
13402 .block_erase = spi_block_erase_c7,
13403 },
13404 },
13405 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
13406 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
13407 .write = spi_chip_write_256, /* Multi I/O supported */
13408 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
13409 .voltage = {2700, 3600},
13410 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100013411
Wei Hu25584de2018-04-30 14:02:08 -070013412 {
13413 .vendor = "SST",
13414 .name = "SST26VF032B(A)",
13415 .bustype = BUS_SPI,
13416 .manufacture_id = SST_ID,
13417 .model_id = SST_SST26VF032B,
13418 .total_size = 4096,
13419 .page_size = 256,
13420 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
13421 .tested = TEST_UNTESTED,
13422 .probe = probe_spi_rdid,
13423 .probe_timing = TIMING_ZERO,
13424 .block_erasers =
13425 {
13426 {
13427 .eraseblocks = { {4 * 1024, 1024} },
13428 .block_erase = spi_block_erase_20,
13429 }, {
13430 .eraseblocks = {
13431 {8 * 1024, 4},
13432 {32 * 1024, 1},
13433 {64 * 1024, 62},
13434 {32 * 1024, 1},
13435 {8 * 1024, 4},
13436 },
13437 .block_erase = spi_block_erase_d8,
13438 }, {
13439 .eraseblocks = { {4 * 1024 * 1024, 1} },
13440 .block_erase = spi_block_erase_c7,
13441 },
13442 },
13443 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
13444 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
13445 .write = spi_chip_write_256, /* Multi I/O supported */
13446 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
13447 .voltage = {2700, 3600},
13448 },
13449
Wei Hu25584de2018-04-30 14:02:08 -070013450 {
13451 .vendor = "SST",
13452 .name = "SST26VF064B(A)",
13453 .bustype = BUS_SPI,
13454 .manufacture_id = SST_ID,
13455 .model_id = SST_SST26VF064B,
13456 .total_size = 8192,
13457 .page_size = 256,
13458 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
13459 .tested = TEST_OK_PREW,
13460 .probe = probe_spi_rdid,
13461 .probe_timing = TIMING_ZERO,
13462 .block_erasers =
13463 {
13464 {
13465 .eraseblocks = { {4 * 1024, 2048} },
13466 .block_erase = spi_block_erase_20,
13467 }, {
13468 .eraseblocks = {
13469 {8 * 1024, 4},
13470 {32 * 1024, 1},
13471 {64 * 1024, 126},
13472 {32 * 1024, 1},
13473 {8 * 1024, 4},
13474 },
13475 .block_erase = spi_block_erase_d8,
13476 }, {
13477 .eraseblocks = { {8 * 1024 * 1024, 1} },
13478 .block_erase = spi_block_erase_c7,
13479 },
13480 },
13481 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
13482 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
13483 .write = spi_chip_write_256, /* Multi I/O supported */
13484 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
13485 .voltage = {2700, 3600},
13486 },
13487
13488 {
13489 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013490 .name = "SST28SF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013491 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013492 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013493 .model_id = SST_SST28SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013494 .total_size = 512,
13495 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000013496 .feature_bits = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013497 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013498 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000013499 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013500 .block_erasers =
13501 {
13502 {
13503 .eraseblocks = { {128, 4096} },
13504 .block_erase = erase_sector_28sf040,
13505 }, {
13506 .eraseblocks = { {512 * 1024, 1} },
13507 .block_erase = erase_chip_28sf040,
13508 }
13509 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000013510 .unlock = unprotect_28sf040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013511 .write = write_28sf040,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013512 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013513 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013514 },
13515
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013516 {
13517 .vendor = "SST",
13518 .name = "SST29EE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013519 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013520 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013521 .model_id = SST_SST29EE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013522 .total_size = 128,
13523 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000013524 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000013525 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013526 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000013527 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013528 .block_erasers =
13529 {
13530 {
13531 .eraseblocks = { {128 * 1024, 1} },
13532 .block_erase = erase_chip_block_jedec,
13533 }
13534 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013535 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013536 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013537 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013538 },
13539
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013540 {
13541 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013542 .name = "SST29EE020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013543 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013544 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013545 .model_id = SST_SST29EE020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013546 .total_size = 256,
13547 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000013548 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000013549 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013550 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013551 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013552 .block_erasers =
13553 {
13554 {
13555 .eraseblocks = { {256 * 1024, 1} },
13556 .block_erase = erase_chip_block_jedec,
13557 }
13558 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013559 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013560 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013561 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013562 },
13563
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013564 {
13565 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013566 .name = "SST29LE010",
13567 .bustype = BUS_PARALLEL,
13568 .manufacture_id = SST_ID,
13569 .model_id = SST_SST29LE010,
13570 .total_size = 128,
13571 .page_size = 128,
13572 .feature_bits = FEATURE_LONG_RESET,
13573 .tested = TEST_UNTESTED,
13574 .probe = probe_jedec,
13575 .probe_timing = 10,
13576 .block_erasers =
13577 {
13578 {
13579 .eraseblocks = { {128 * 1024, 1} },
13580 .block_erase = erase_chip_block_jedec,
13581 }
13582 },
13583 .write = write_jedec,
13584 .read = read_memmapped,
13585 .voltage = {3000, 3600},
13586 },
13587
13588 {
13589 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013590 .name = "SST29LE020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013591 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013592 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013593 .model_id = SST_SST29LE020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013594 .total_size = 256,
13595 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000013596 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000013597 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013598 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000013599 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013600 .block_erasers =
13601 {
13602 {
13603 .eraseblocks = { {256 * 1024, 1} },
13604 .block_erase = erase_chip_block_jedec,
13605 }
13606 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013607 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013608 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013609 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013610 },
13611
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013612 {
13613 .vendor = "SST",
13614 .name = "SST39SF010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013615 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013616 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013617 .model_id = SST_SST39SF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013618 .total_size = 128,
13619 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013620 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000013621 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013622 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000013623 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013624 .block_erasers =
13625 {
13626 {
13627 .eraseblocks = { {4 * 1024, 32} },
13628 .block_erase = erase_sector_jedec,
13629 }, {
13630 .eraseblocks = { {128 * 1024, 1} },
13631 .block_erase = erase_chip_block_jedec,
13632 }
13633 },
Sean Nelson35727f72010-01-28 23:55:12 +000013634 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013635 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013636 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013637 },
13638
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013639 {
13640 .vendor = "SST",
13641 .name = "SST39SF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013642 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013643 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013644 .model_id = SST_SST39SF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013645 .total_size = 256,
13646 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013647 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann19f46f22011-06-18 22:56:14 +000013648 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013649 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013650 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013651 .block_erasers =
13652 {
13653 {
13654 .eraseblocks = { {4 * 1024, 64} },
13655 .block_erase = erase_sector_jedec,
13656 }, {
13657 .eraseblocks = { {256 * 1024, 1} },
13658 .block_erase = erase_chip_block_jedec,
13659 }
13660 },
Sean Nelson35727f72010-01-28 23:55:12 +000013661 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013662 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013663 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013664 },
13665
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013666 {
13667 .vendor = "SST",
13668 .name = "SST39SF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013669 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013670 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013671 .model_id = SST_SST39SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013672 .total_size = 512,
13673 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013674 .feature_bits = FEATURE_EITHER_RESET,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +000013675 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013676 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013677 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013678 .block_erasers =
13679 {
13680 {
13681 .eraseblocks = { {4 * 1024, 128} },
13682 .block_erase = erase_sector_jedec,
13683 }, {
13684 .eraseblocks = { {512 * 1024, 1} },
13685 .block_erase = erase_chip_block_jedec,
13686 }
13687 },
Sean Nelson35727f72010-01-28 23:55:12 +000013688 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013689 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013690 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013691 },
13692
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013693 {
13694 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013695 .name = "SST39SF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013696 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013697 .manufacture_id = SST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013698 .model_id = SST_SST39SF512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013699 .total_size = 64,
13700 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013701 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd7d423b2012-10-20 09:13:16 +000013702 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013703 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013704 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013705 .block_erasers =
13706 {
13707 {
13708 .eraseblocks = { {4 * 1024, 16} },
13709 .block_erase = erase_sector_jedec,
13710 }, {
13711 .eraseblocks = { {64 * 1024, 1} },
13712 .block_erase = erase_chip_block_jedec,
13713 }
13714 },
Sean Nelson35727f72010-01-28 23:55:12 +000013715 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013716 .read = read_memmapped,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013717 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013718 },
13719
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013720 {
13721 .vendor = "SST",
13722 .name = "SST39VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013723 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013724 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013725 .model_id = SST_SST39VF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013726 .total_size = 128,
13727 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013728 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd94d25d2012-07-28 03:17:15 +000013729 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013730 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013731 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013732 .block_erasers =
13733 {
13734 {
13735 .eraseblocks = { {4 * 1024, 32} },
13736 .block_erase = erase_sector_jedec,
13737 }, {
13738 .eraseblocks = { {128 * 1024, 1} },
13739 .block_erase = erase_chip_block_jedec,
13740 }
13741 },
Sean Nelson35727f72010-01-28 23:55:12 +000013742 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013743 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013744 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013745 },
13746
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013747 {
13748 .vendor = "SST",
13749 .name = "SST39VF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013750 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013751 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013752 .model_id = SST_SST39VF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013753 .total_size = 256,
13754 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013755 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner5c316f92015-02-08 21:57:52 +000013756 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013757 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013758 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013759 .block_erasers =
13760 {
13761 {
13762 .eraseblocks = { {4 * 1024, 64} },
13763 .block_erase = erase_sector_jedec,
13764 }, {
13765 .eraseblocks = { {256 * 1024, 1} },
13766 .block_erase = erase_chip_block_jedec,
13767 }
13768 },
Sean Nelson35727f72010-01-28 23:55:12 +000013769 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013770 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013771 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013772 },
13773
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013774 {
13775 .vendor = "SST",
13776 .name = "SST39VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013777 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013778 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013779 .model_id = SST_SST39VF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013780 .total_size = 512,
13781 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013782 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner23e10b82016-01-23 16:16:49 +000013783 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013784 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013785 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013786 .block_erasers =
13787 {
13788 {
13789 .eraseblocks = { {4 * 1024, 128} },
13790 .block_erase = erase_sector_jedec,
13791 }, {
13792 .eraseblocks = { {512 * 1024, 1} },
13793 .block_erase = erase_chip_block_jedec,
13794 }
13795 },
Sean Nelson35727f72010-01-28 23:55:12 +000013796 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013797 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013798 .voltage = {2700, 3600},
Carl-Daniel Hailfinger90eff152008-12-08 23:51:45 +000013799 },
FENG yu ningff692fb2008-12-08 18:15:10 +000013800
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013801 {
13802 .vendor = "SST",
Peter Stuge8440cc02009-01-25 23:55:12 +000013803 .name = "SST39VF080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013804 .bustype = BUS_PARALLEL,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000013805 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013806 .model_id = SST_SST39VF080,
Peter Stuge8440cc02009-01-25 23:55:12 +000013807 .total_size = 1024,
13808 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013809 .feature_bits = FEATURE_EITHER_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +000013810 .tested = TEST_UNTESTED,
13811 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013812 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013813 .block_erasers =
13814 {
13815 {
13816 .eraseblocks = { {4 * 1024, 256} },
13817 .block_erase = erase_sector_jedec,
13818 }, {
13819 .eraseblocks = { {64 * 1024, 16} },
13820 .block_erase = erase_block_jedec,
13821 }, {
13822 .eraseblocks = { {1024 * 1024, 1} },
13823 .block_erase = erase_chip_block_jedec,
13824 }
13825 },
Sean Nelson35727f72010-01-28 23:55:12 +000013826 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013827 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013828 .voltage = {2700, 3600},
Peter Stuge8440cc02009-01-25 23:55:12 +000013829 },
13830
13831 {
13832 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013833 .name = "SST39VF512",
13834 .bustype = BUS_PARALLEL,
13835 .manufacture_id = SST_ID,
13836 .model_id = SST_SST39VF512,
13837 .total_size = 64,
13838 .page_size = 4096,
13839 .feature_bits = FEATURE_EITHER_RESET,
13840 .tested = TEST_OK_PREW,
13841 .probe = probe_jedec,
13842 .probe_timing = 1, /* 150 ns */
13843 .block_erasers =
13844 {
13845 {
13846 .eraseblocks = { {4 * 1024, 16} },
13847 .block_erase = erase_sector_jedec,
13848 }, {
13849 .eraseblocks = { {64 * 1024, 1} },
13850 .block_erase = erase_chip_block_jedec,
13851 }
13852 },
13853 .write = write_jedec_1,
13854 .read = read_memmapped,
13855 .voltage = {2700, 3600},
13856 },
13857
13858 {
13859 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013860 .name = "SST49LF002A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013861 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013862 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013863 .model_id = SST_SST49LF002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013864 .total_size = 256,
13865 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013866 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000013867 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013868 .probe = probe_jedec,
13869 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013870 .block_erasers =
13871 {
13872 {
13873 .eraseblocks = { {4 * 1024, 64} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013874 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013875 }, {
13876 .eraseblocks = { {16 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013877 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013878 }, {
13879 .eraseblocks = { {256 * 1024, 1} },
13880 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
13881 }
13882 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013883 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013884 .unlock = unlock_sst_fwhub,
13885 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013886 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013887 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013888 },
13889
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013890 {
13891 .vendor = "SST",
13892 .name = "SST49LF003A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013893 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013894 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013895 .model_id = SST_SST49LF003A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013896 .total_size = 384,
13897 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013898 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000013899 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013900 .probe = probe_jedec,
13901 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013902 .block_erasers =
13903 {
13904 {
13905 .eraseblocks = { {4 * 1024, 96} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013906 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013907 }, {
13908 .eraseblocks = { {64 * 1024, 6} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013909 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013910 }, {
13911 .eraseblocks = { {384 * 1024, 1} },
13912 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
13913 }
13914 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013915 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013916 .unlock = unlock_sst_fwhub,
13917 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013918 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013919 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013920 },
13921
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013922 {
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000013923 /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB)
13924 * and is only honored for 64k block erase, but not 4k sector erase.
13925 */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013926 .vendor = "SST",
13927 .name = "SST49LF004A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013928 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013929 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013930 .model_id = SST_SST49LF004A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013931 .total_size = 512,
13932 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013933 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000013934 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013935 .probe = probe_jedec,
13936 .probe_timing = 1, /* 150 ns */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000013937 .block_erasers =
13938 {
13939 {
13940 .eraseblocks = { {4 * 1024, 128} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013941 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000013942 }, {
13943 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013944 .block_erase = erase_block_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000013945 }, {
13946 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson51c83fb2010-01-20 20:55:53 +000013947 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000013948 },
13949 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013950 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013951 .unlock = unlock_sst_fwhub,
13952 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013953 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013954 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013955 },
13956
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013957 {
13958 .vendor = "SST",
13959 .name = "SST49LF004C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013960 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013961 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013962 .model_id = SST_SST49LF004C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013963 .total_size = 512,
13964 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013965 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013966 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013967 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000013968 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013969 .block_erasers =
13970 {
13971 {
13972 .eraseblocks = { {4 * 1024, 128} },
13973 .block_erase = erase_sector_49lfxxxc,
13974 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000013975 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000013976 {64 * 1024, 7},
13977 {32 * 1024, 1},
13978 {8 * 1024, 2},
13979 {16 * 1024, 1},
13980 },
Sean Nelson69e58112010-03-23 17:10:28 +000013981 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013982 }
13983 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013984 .printlock = printlock_regspace2_block_eraser_1,
13985 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000013986 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013987 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013988 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013989 },
13990
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013991 {
13992 .vendor = "SST",
13993 .name = "SST49LF008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013994 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013995 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013996 .model_id = SST_SST49LF008A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013997 .total_size = 1024,
13998 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013999 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000014000 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014001 .probe = probe_jedec,
14002 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014003 .block_erasers =
14004 {
14005 {
14006 .eraseblocks = { {4 * 1024, 256} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014007 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014008 }, {
14009 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014010 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014011 }, {
14012 .eraseblocks = { {1024 * 1024, 1} },
14013 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
14014 }
14015 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014016 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014017 .unlock = unlock_sst_fwhub,
14018 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014019 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014020 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014021 },
14022
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014023 {
14024 .vendor = "SST",
14025 .name = "SST49LF008C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014026 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014027 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014028 .model_id = SST_SST49LF008C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014029 .total_size = 1024,
14030 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014031 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014032 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014033 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014034 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014035 .block_erasers =
14036 {
14037 {
14038 .eraseblocks = { {4 * 1024, 256} },
14039 .block_erase = erase_sector_49lfxxxc,
14040 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000014041 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000014042 {64 * 1024, 15},
14043 {32 * 1024, 1},
14044 {8 * 1024, 2},
14045 {16 * 1024, 1},
14046 },
Sean Nelson69e58112010-03-23 17:10:28 +000014047 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014048 }
14049 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014050 .printlock = printlock_regspace2_block_eraser_1,
14051 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014052 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014053 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014054 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014055 },
14056
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014057 {
14058 .vendor = "SST",
14059 .name = "SST49LF016C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014060 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014061 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014062 .model_id = SST_SST49LF016C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014063 .total_size = 2048,
14064 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014065 .feature_bits = FEATURE_REGISTERMAP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000014066 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014067 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014068 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014069 .block_erasers =
14070 {
14071 {
14072 .eraseblocks = { {4 * 1024, 512} },
14073 .block_erase = erase_sector_49lfxxxc,
14074 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000014075 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000014076 {64 * 1024, 31},
14077 {32 * 1024, 1},
14078 {8 * 1024, 2},
14079 {16 * 1024, 1},
14080 },
Sean Nelson69e58112010-03-23 17:10:28 +000014081 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014082 }
14083 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014084 .printlock = printlock_regspace2_block_eraser_1,
14085 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014086 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014087 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014088 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014089 },
14090
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014091 {
14092 .vendor = "SST",
14093 .name = "SST49LF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014094 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014095 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014096 .model_id = SST_SST49LF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014097 .total_size = 256,
14098 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014099 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +000014100 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014101 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014102 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014103 .block_erasers =
14104 {
14105 {
14106 .eraseblocks = { {4 * 1024, 64} },
14107 .block_erase = erase_sector_jedec,
14108 }, {
14109 .eraseblocks = { {16 * 1024, 16} },
14110 .block_erase = erase_block_jedec,
14111 }, {
14112 .eraseblocks = { {256 * 1024, 1} },
14113 .block_erase = NULL,
14114 }
14115 },
Sean Nelson35727f72010-01-28 23:55:12 +000014116 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014117 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014118 .voltage = {3000, 3600},
Sven Schnellec208dfb2009-01-07 12:35:09 +000014119 },
14120
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014121 {
14122 .vendor = "SST",
14123 .name = "SST49LF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014124 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014125 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014126 .model_id = SST_SST49LF020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014127 .total_size = 256,
Carl-Daniel Hailfingerda654322009-07-23 01:44:38 +000014128 .page_size = 4 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014129 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000014130 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014131 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014132 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014133 .block_erasers =
14134 {
14135 {
14136 .eraseblocks = { {4 * 1024, 64} },
14137 .block_erase = erase_sector_jedec,
14138 }, {
14139 .eraseblocks = { {16 * 1024, 16} },
14140 .block_erase = erase_block_jedec,
14141 }, {
14142 .eraseblocks = { {256 * 1024, 1} },
14143 .block_erase = NULL,
14144 }
14145 },
Sean Nelson35727f72010-01-28 23:55:12 +000014146 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014147 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014148 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014149 },
14150
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014151 {
14152 .vendor = "SST",
14153 .name = "SST49LF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014154 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014155 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014156 .model_id = SST_SST49LF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014157 .total_size = 512,
14158 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014159 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000014160 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014161 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014162 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014163 .block_erasers =
14164 {
14165 {
14166 .eraseblocks = { {4 * 1024, 128} },
14167 .block_erase = erase_sector_jedec,
14168 }, {
14169 .eraseblocks = { {64 * 1024, 8} },
14170 .block_erase = erase_block_jedec,
14171 }, {
14172 .eraseblocks = { {512 * 1024, 1} },
14173 .block_erase = NULL,
14174 }
14175 },
Sean Nelson35727f72010-01-28 23:55:12 +000014176 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014177 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014178 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014179 },
14180
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014181 {
14182 .vendor = "SST",
14183 .name = "SST49LF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014184 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014185 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014186 .model_id = SST_SST49LF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014187 .total_size = 512,
14188 .page_size = 64 * 1024,
Joshua Roysa84b0bd2010-08-16 22:12:39 +000014189 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000014190 .tested = TEST_OK_PREW,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014191 .probe = probe_jedec,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014192 .probe_timing = 1, /* 150ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014193 .block_erasers =
14194 {
14195 {
14196 .eraseblocks = { {4 * 1024, 128} },
14197 .block_erase = erase_sector_jedec,
14198 }, {
14199 .eraseblocks = { {64 * 1024, 8} },
14200 .block_erase = erase_block_jedec,
14201 }, {
14202 .eraseblocks = { {512 * 1024, 1} },
14203 .block_erase = NULL,
14204 }
14205 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014206 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000014207 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014208 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014209 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014210 },
14211
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014212 {
14213 .vendor = "SST",
14214 .name = "SST49LF080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014215 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014216 .manufacture_id = SST_ID,
Elyes HAOUAS124ef382018-03-27 12:15:09 +020014217 .model_id = SST_SST49LF080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014218 .total_size = 1024,
14219 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014220 .feature_bits = FEATURE_EITHER_RESET,
Brandon Dowdyf07bf322011-03-06 18:31:11 +000014221 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014222 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000014223 .probe_timing = TIMING_FIXME,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014224 .block_erasers =
14225 {
14226 {
14227 .eraseblocks = { {4 * 1024, 256} },
14228 .block_erase = erase_sector_jedec,
14229 }, {
14230 .eraseblocks = { {64 * 1024, 16} },
14231 .block_erase = erase_block_jedec,
14232 }, {
14233 .eraseblocks = { {1024 * 1024, 1} },
14234 .block_erase = NULL,
14235 }
14236 },
Sean Nelson35727f72010-01-28 23:55:12 +000014237 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014238 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014239 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014240 },
14241
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014242 {
14243 .vendor = "SST",
14244 .name = "SST49LF160C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014245 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014246 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014247 .model_id = SST_SST49LF160C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014248 .total_size = 2048,
14249 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014250 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014251 .tested = TEST_OK_PR,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014252 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014253 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014254 .block_erasers =
14255 {
14256 {
14257 .eraseblocks = { {4 * 1024, 512} },
14258 .block_erase = erase_sector_49lfxxxc,
14259 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000014260 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000014261 {64 * 1024, 31},
14262 {32 * 1024, 1},
14263 {8 * 1024, 2},
14264 {16 * 1024, 1},
14265 },
Sean Nelson69e58112010-03-23 17:10:28 +000014266 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014267 }
14268 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014269 .printlock = printlock_regspace2_block_eraser_1,
14270 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014271 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014272 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014273 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014274 },
14275
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014276 {
14277 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014278 .name = "M29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014279 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014280 .manufacture_id = ST_ID,
14281 .model_id = ST_M29F002B,
14282 .total_size = 256,
14283 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014284 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014285 .tested = TEST_UNTESTED,
14286 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014287 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014288 .block_erasers =
14289 {
14290 {
14291 .eraseblocks = {
14292 {16 * 1024, 1},
14293 {8 * 1024, 2},
14294 {32 * 1024, 1},
14295 {64 * 1024, 3},
14296 },
14297 .block_erase = erase_sector_jedec,
14298 }, {
14299 .eraseblocks = { {256 * 1024, 1} },
14300 .block_erase = erase_chip_block_jedec,
14301 }
14302 },
Sean Nelson35727f72010-01-28 23:55:12 +000014303 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014304 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000014305 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000014306 },
14307
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014308 {
14309 .vendor = "ST",
14310 .name = "M29F002T/NT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014311 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014312 .manufacture_id = ST_ID,
14313 .model_id = ST_M29F002T,
14314 .total_size = 256,
14315 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014316 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stefan Taunere34e3e82013-01-01 00:06:51 +000014317 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014318 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014319 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014320 .block_erasers =
14321 {
14322 {
14323 .eraseblocks = {
14324 {64 * 1024, 3},
14325 {32 * 1024, 1},
14326 {8 * 1024, 2},
14327 {16 * 1024, 1},
14328 },
14329 .block_erase = erase_sector_jedec,
14330 }, {
14331 .eraseblocks = { {256 * 1024, 1} },
14332 .block_erase = erase_chip_block_jedec,
14333 }
14334 },
Sean Nelson35727f72010-01-28 23:55:12 +000014335 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014336 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000014337 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000014338 },
14339
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014340 {
14341 .vendor = "ST",
14342 .name = "M29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014343 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014344 .manufacture_id = ST_ID,
14345 .model_id = ST_M29F040B,
14346 .total_size = 512,
14347 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014348 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
14349 .tested = TEST_UNTESTED,
14350 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +000014351 .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */
Sean Nelson56358aa2010-01-19 16:08:51 +000014352 .block_erasers =
14353 {
14354 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014355 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +000014356 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000014357 }, {
14358 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000014359 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000014360 }
14361 },
Sean Nelson35727f72010-01-28 23:55:12 +000014362 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014363 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014364 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014365 },
14366
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014367 {
Sean Nelson35727f72010-01-28 23:55:12 +000014368 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014369 .vendor = "ST",
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014370 .name = "M29F400BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014371 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014372 .manufacture_id = ST_ID,
14373 .model_id = ST_M29F400BB,
14374 .total_size = 512,
14375 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014376 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014377 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014378 .probe = probe_jedec,
14379 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014380 .block_erasers =
14381 {
14382 {
14383 .eraseblocks = {
14384 {16 * 1024, 1},
14385 {8 * 1024, 2},
14386 {32 * 1024, 1},
14387 {64 * 1024, 7},
14388 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014389 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014390 }, {
14391 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014392 .block_erase = erase_chip_block_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014393 }
14394 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014395 .write = write_jedec_1,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014396 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014397 .voltage = {4500, 5500},
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014398 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100014399
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014400 {
14401 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
14402 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014403 .name = "M29F400BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014404 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014405 .manufacture_id = ST_ID,
14406 .model_id = ST_M29F400BT,
14407 .total_size = 512,
14408 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014409 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014410 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014411 .probe = probe_jedec,
14412 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson56358aa2010-01-19 16:08:51 +000014413 .block_erasers =
14414 {
14415 {
14416 .eraseblocks = {
14417 {64 * 1024, 7},
14418 {32 * 1024, 1},
14419 {8 * 1024, 2},
14420 {16 * 1024, 1},
14421 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014422 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000014423 }, {
14424 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014425 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000014426 }
14427 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014428 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014429 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014430 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014431 },
14432
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014433 {
14434 .vendor = "ST",
14435 .name = "M29W010B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014436 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014437 .manufacture_id = ST_ID,
14438 .model_id = ST_M29W010B,
14439 .total_size = 128,
14440 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014441 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014442 .tested = TEST_UNTESTED,
14443 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014444 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014445 .block_erasers =
14446 {
14447 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014448 .eraseblocks = { {16 * 1024, 8} },
Sean Nelson56358aa2010-01-19 16:08:51 +000014449 .block_erase = erase_sector_jedec,
14450 }, {
14451 .eraseblocks = { {128 * 1024, 1} },
14452 .block_erase = erase_chip_block_jedec,
14453 }
14454 },
Sean Nelson35727f72010-01-28 23:55:12 +000014455 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014456 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014457 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014458 },
14459
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014460 {
14461 .vendor = "ST",
14462 .name = "M29W040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014463 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014464 .manufacture_id = ST_ID,
14465 .model_id = ST_M29W040B,
14466 .total_size = 512,
14467 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014468 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014469 .tested = TEST_UNTESTED,
14470 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014471 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014472 .block_erasers =
14473 {
14474 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014475 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson56358aa2010-01-19 16:08:51 +000014476 .block_erase = erase_sector_jedec,
14477 }, {
14478 .eraseblocks = { {512 * 1024, 1} },
14479 .block_erase = erase_chip_block_jedec,
14480 }
14481 },
Sean Nelson35727f72010-01-28 23:55:12 +000014482 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014483 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014484 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014485 },
14486
Stefan Taunereb582572012-09-21 12:52:50 +000014487 {
14488 .vendor = "ST",
14489 .name = "M29W512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014490 .bustype = BUS_PARALLEL,
Alan Greenfa3fcd32019-06-27 15:41:50 +100014491 .manufacture_id = ST_ID,
Stefan Taunereb582572012-09-21 12:52:50 +000014492 .model_id = ST_M29W512B,
14493 .total_size = 64,
14494 .page_size = 64 * 1024,
14495 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauner0554ca52013-07-25 22:54:25 +000014496 .tested = TEST_OK_PREW,
Stefan Taunereb582572012-09-21 12:52:50 +000014497 .probe = probe_jedec,
14498 .probe_timing = TIMING_ZERO,
14499 .block_erasers =
14500 {
14501 {
14502 .eraseblocks = { {64 * 1024, 1} },
14503 .block_erase = erase_chip_block_jedec,
14504 }
14505 },
14506 .write = write_jedec_1,
14507 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014508 .voltage = {2700, 3600},
Stefan Taunereb582572012-09-21 12:52:50 +000014509 },
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +000014510
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014511 {
14512 .vendor = "ST",
14513 .name = "M50FLW040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014514 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014515 .manufacture_id = ST_ID,
14516 .model_id = ST_M50FLW040A,
14517 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000014518 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014519 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014520 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000014521 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000014522 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000014523 .block_erasers =
14524 {
14525 {
Sean Nelson329bde72010-01-19 16:39:19 +000014526 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000014527 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000014528 {64 * 1024, 5}, /* block */
14529 {4 * 1024, 16}, /* sector */
14530 {4 * 1024, 16}, /* sector */
14531 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000014532 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000014533 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000014534 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000014535 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014536 }
14537 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014538 .unlock = unlock_regspace2_uniform_64k,
Alan Greenc1863ca2019-06-27 15:08:03 +100014539 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014540 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014541 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014542 },
14543
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014544 {
14545 .vendor = "ST",
14546 .name = "M50FLW040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014547 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014548 .manufacture_id = ST_ID,
14549 .model_id = ST_M50FLW040B,
14550 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000014551 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014552 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014553 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000014554 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000014555 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000014556 .block_erasers =
14557 {
14558 {
Sean Nelson329bde72010-01-19 16:39:19 +000014559 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000014560 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000014561 {4 * 1024, 16}, /* sector */
14562 {64 * 1024, 5}, /* block */
14563 {4 * 1024, 16}, /* sector */
14564 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000014565 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000014566 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000014567 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000014568 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014569 }
14570 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014571 .unlock = unlock_regspace2_uniform_64k,
Alan Greenc1863ca2019-06-27 15:08:03 +100014572 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014573 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014574 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014575 },
14576
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014577 {
14578 .vendor = "ST",
14579 .name = "M50FLW080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014580 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014581 .manufacture_id = ST_ID,
14582 .model_id = ST_M50FLW080A,
14583 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000014584 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014585 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014586 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +000014587 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000014588 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000014589 .block_erasers =
14590 {
14591 {
Sean Nelson329bde72010-01-19 16:39:19 +000014592 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000014593 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000014594 {64 * 1024, 13}, /* block */
14595 {4 * 1024, 16}, /* sector */
14596 {4 * 1024, 16}, /* sector */
14597 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000014598 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000014599 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000014600 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000014601 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014602 }
14603 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014604 .printlock = printlock_regspace2_block_eraser_0,
14605 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000014606 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014607 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014608 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014609 },
14610
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014611 {
14612 .vendor = "ST",
14613 .name = "M50FLW080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014614 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014615 .manufacture_id = ST_ID,
14616 .model_id = ST_M50FLW080B,
14617 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000014618 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014619 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014620 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000014621 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000014622 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000014623 .block_erasers =
14624 {
14625 {
Sean Nelson329bde72010-01-19 16:39:19 +000014626 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000014627 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000014628 {4 * 1024, 16}, /* sector */
14629 {64 * 1024, 13}, /* block */
14630 {4 * 1024, 16}, /* sector */
14631 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000014632 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000014633 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000014634 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000014635 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014636 }
14637 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014638 .printlock = printlock_regspace2_block_eraser_0,
14639 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000014640 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014641 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014642 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014643 },
14644
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014645 {
14646 .vendor = "ST",
14647 .name = "M50FW002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014648 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014649 .manufacture_id = ST_ID,
14650 .model_id = ST_M50FW002,
14651 .total_size = 256,
Stefan Tauner4404f732013-09-12 08:28:56 +000014652 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014653 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014654 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +000014655 .probe = probe_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014656 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000014657 .block_erasers =
14658 {
14659 {
14660 .eraseblocks = {
14661 {64 * 1024, 3},
14662 {32 * 1024, 1},
14663 {8 * 1024, 2},
14664 {16 * 1024, 1},
14665 },
Sean Nelson28accc22010-03-19 18:47:06 +000014666 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014667 }, {
Stefan Tauner5c316f92015-02-08 21:57:52 +000014668 .eraseblocks = { {256 * 1024, 1} },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014669 .block_erase = NULL, /* Only in A/A mux mode */
Sean Nelson56358aa2010-01-19 16:08:51 +000014670 }
14671 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014672 .printlock = printlock_regspace2_block_eraser_0,
14673 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000014674 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014675 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014676 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014677 },
14678
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014679 {
14680 .vendor = "ST",
14681 .name = "M50FW016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014682 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014683 .manufacture_id = ST_ID,
14684 .model_id = ST_M50FW016,
14685 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000014686 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014687 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014688 .tested = TEST_UNTESTED,
14689 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014690 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000014691 .block_erasers =
14692 {
14693 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014694 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson28accc22010-03-19 18:47:06 +000014695 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014696 }
14697 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014698 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000014699 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014700 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014701 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014702 },
14703
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014704 {
14705 .vendor = "ST",
14706 .name = "M50FW040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014707 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014708 .manufacture_id = ST_ID,
14709 .model_id = ST_M50FW040,
14710 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000014711 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014712 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +000014713 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014714 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014715 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000014716 .block_erasers =
14717 {
14718 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014719 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000014720 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014721 }
14722 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014723 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000014724 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014725 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014726 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014727 },
14728
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014729 {
14730 .vendor = "ST",
14731 .name = "M50FW080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014732 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014733 .manufacture_id = ST_ID,
14734 .model_id = ST_M50FW080,
14735 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000014736 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014737 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014738 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014739 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014740 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000014741 .block_erasers =
14742 {
14743 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014744 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000014745 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014746 }
14747 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014748 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000014749 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014750 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014751 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014752 },
14753
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014754 {
14755 .vendor = "ST",
Stefan Tauner8c4602b2013-09-12 08:29:00 +000014756 .name = "M50LPW080",
14757 .bustype = BUS_LPC, /* A/A Mux */
14758 .manufacture_id = ST_ID,
14759 .model_id = ST_M50LPW080,
14760 .total_size = 1024,
14761 .page_size = 0,
14762 .feature_bits = FEATURE_REGISTERMAP,
14763 .tested = TEST_UNTESTED,
14764 .probe = probe_82802ab,
14765 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
14766 .block_erasers =
14767 {
14768 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014769 .eraseblocks = { {64 * 1024, 16} },
Stefan Tauner8c4602b2013-09-12 08:29:00 +000014770 .block_erase = erase_block_82802ab,
14771 }
14772 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014773 .unlock = unlock_regspace2_uniform_64k,
Stefan Tauner8c4602b2013-09-12 08:29:00 +000014774 .write = write_82802ab,
14775 .read = read_memmapped,
14776 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
14777 },
14778
14779 {
14780 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014781 .name = "M50LPW116",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014782 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014783 .manufacture_id = ST_ID,
14784 .model_id = ST_M50LPW116,
14785 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000014786 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014787 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014788 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000014789 .probe = probe_82802ab,
Udu Ogahc04ee222009-09-05 01:31:32 +000014790 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014791 .block_erasers =
14792 {
14793 {
14794 .eraseblocks = {
14795 {4 * 1024, 16},
14796 {64 * 1024, 30},
14797 {32 * 1024, 1},
14798 {8 * 1024, 2},
14799 {16 * 1024, 1},
14800 },
Sean Nelson28accc22010-03-19 18:47:06 +000014801 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014802 }
14803 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014804 .printlock = printlock_regspace2_block_eraser_0,
14805 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000014806 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014807 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014808 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014809 },
14810
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014811 {
Konstantin Grudnev3d8868c2019-07-23 00:48:54 +030014812 .vendor = "ST",
14813 .name = "M95M02",
14814 .bustype = BUS_SPI,
14815 .manufacture_id = ST_ID,
14816 .model_id = ST_M95M02,
14817 .total_size = 256,
14818 .page_size = 256,
14819 .feature_bits = FEATURE_WRSR_WREN | FEATURE_NO_ERASE | FEATURE_ERASED_ZERO,
14820 .tested = TEST_OK_PREW,
14821 .probe = probe_spi_st95,
14822 .probe_timing = TIMING_ZERO,
14823 .block_erasers =
14824 {
14825 {
14826 .eraseblocks = { {256 * 1024, 1} },
14827 .block_erase = spi_block_erase_emulation,
14828 }
14829 },
14830
14831 .printlock = spi_prettyprint_status_register_bp1_srwd,
14832 .unlock = spi_disable_blockprotect_bp1_srwd,
14833 .write = spi_chip_write_256,
14834 .read = spi_chip_read,
14835 .voltage = {2500, 5500},
14836 },
14837
14838 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014839 .vendor = "Sanyo",
14840 .name = "LE25FU106B",
14841 .bustype = BUS_SPI,
14842 .manufacture_id = SANYO_ID,
14843 .model_id = SANYO_LE25FU106B,
14844 .total_size = 128,
14845 .page_size = 256,
14846 .feature_bits = FEATURE_WRSR_WREN,
14847 .tested = TEST_UNTESTED,
14848 .probe = probe_spi_res2,
14849 .probe_timing = TIMING_ZERO,
14850 .block_erasers =
14851 {
14852 /* FIXME: Is this correct?
14853 {
14854 .eraseblocks = { {2 * 1024, 64} },
14855 .block_erase = spi_block_erase_d7,
14856 },*/
14857 {
14858 .eraseblocks = { {32 * 1024, 4} },
14859 .block_erase = spi_block_erase_d8,
14860 }, {
14861 .eraseblocks = { {128 * 1024, 1} },
14862 .block_erase = spi_block_erase_c7,
14863 }
14864 },
14865 .printlock = spi_prettyprint_status_register_bp1_srwd,
14866 .unlock = spi_disable_blockprotect_bp1_srwd,
14867 .write = spi_chip_write_256,
14868 .read = spi_chip_read,
14869 .voltage = {2300, 3600},
14870 },
14871
14872 {
14873 .vendor = "Sanyo",
14874 .name = "LE25FU206",
14875 .bustype = BUS_SPI,
14876 .manufacture_id = SANYO_ID,
14877 .model_id = SANYO_LE25FU206,
14878 .total_size = 256,
14879 .page_size = 256,
14880 .feature_bits = FEATURE_WRSR_WREN,
14881 .tested = TEST_UNTESTED,
14882 .probe = probe_spi_res2,
14883 .probe_timing = TIMING_ZERO,
14884 .block_erasers =
14885 {
14886 {
14887 .eraseblocks = { {4 * 1024, 64} },
14888 .block_erase = spi_block_erase_d7,
14889 }, {
14890 .eraseblocks = { {64 * 1024, 4} },
14891 .block_erase = spi_block_erase_d8,
14892 }, {
14893 .eraseblocks = { {256 * 1024, 1} },
14894 .block_erase = spi_block_erase_c7,
14895 }
14896 },
14897 .printlock = spi_prettyprint_status_register_bp1_srwd,
14898 .unlock = spi_disable_blockprotect_bp1_srwd,
14899 .write = spi_chip_write_256,
14900 .read = spi_chip_read,
14901 .voltage = {2300, 3600},
14902 },
14903
14904 {
14905 .vendor = "Sanyo",
14906 .name = "LE25FU206A",
14907 .bustype = BUS_SPI,
14908 .manufacture_id = SANYO_ID,
14909 .model_id = SANYO_LE25FU206A,
14910 .total_size = 256,
14911 .page_size = 256,
14912 .tested = TEST_UNTESTED,
14913 .probe = probe_spi_rdid,
14914 .probe_timing = TIMING_ZERO,
14915 .block_erasers =
14916 {
14917 {
14918 .eraseblocks = { {4 * 1024, 64} },
14919 .block_erase = spi_block_erase_20,
14920 }, {
14921 .eraseblocks = { {4 * 1024, 64} },
14922 .block_erase = spi_block_erase_d7,
14923 }, {
14924 .eraseblocks = { {64 * 1024, 4} },
14925 .block_erase = spi_block_erase_d8,
14926 }, {
14927 .eraseblocks = { {256 * 1024, 1} },
14928 .block_erase = spi_block_erase_60,
14929 }, {
14930 .eraseblocks = { {256 * 1024, 1} },
14931 .block_erase = spi_block_erase_c7,
14932 }
14933 },
14934 .printlock = spi_prettyprint_status_register_bp2_srwd,
14935 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
14936 .write = spi_chip_write_256,
14937 .read = spi_chip_read,
14938 .voltage = {2300, 3600},
14939 },
14940
14941 {
14942 .vendor = "Sanyo",
14943 .name = "LE25FU406B",
14944 .bustype = BUS_SPI,
14945 .manufacture_id = SANYO_ID,
14946 .model_id = SANYO_LE25FU406B,
14947 .total_size = 512,
14948 .page_size = 256,
14949 .feature_bits = FEATURE_WRSR_WREN,
14950 .tested = TEST_OK_PREW,
14951 .probe = probe_spi_res2,
14952 .probe_timing = TIMING_ZERO,
14953 .block_erasers =
14954 {
14955 {
14956 .eraseblocks = { {4 * 1024, 128} },
14957 .block_erase = spi_block_erase_d7,
14958 }, {
14959 .eraseblocks = { {64 * 1024, 8} },
14960 .block_erase = spi_block_erase_d8,
14961 }, {
14962 .eraseblocks = { {512 * 1024, 1} },
14963 .block_erase = spi_block_erase_c7,
14964 }
14965 },
14966 .printlock = spi_prettyprint_status_register_bp2_srwd,
14967 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
14968 .write = spi_chip_write_256,
14969 .read = spi_chip_read,
14970 .voltage = {2300, 3600},
14971 },
14972
14973 {
14974 .vendor = "Sanyo",
14975 .name = "LE25FU406C/LE25U40CMC",
14976 .bustype = BUS_SPI,
14977 .manufacture_id = SANYO_ID,
14978 .model_id = SANYO_LE25FU406C,
14979 .total_size = 512,
14980 .page_size = 256,
14981 .feature_bits = FEATURE_WRSR_WREN,
14982 .tested = TEST_OK_PREW,
14983 .probe = probe_spi_rdid,
14984 .probe_timing = TIMING_ZERO,
14985 .block_erasers =
14986 {
14987 {
14988 .eraseblocks = { {4 * 1024, 128} },
14989 .block_erase = spi_block_erase_20,
14990 }, {
14991 .eraseblocks = { {4 * 1024, 128} },
14992 .block_erase = spi_block_erase_d7,
14993 }, {
14994 .eraseblocks = { {64 * 1024, 8} },
14995 .block_erase = spi_block_erase_d8,
14996 }, {
14997 .eraseblocks = { {512 * 1024, 1} },
14998 .block_erase = spi_block_erase_60,
14999 }, {
15000 .eraseblocks = { {512 * 1024, 1} },
15001 .block_erase = spi_block_erase_c7,
15002 }
15003 },
15004 .printlock = spi_prettyprint_status_register_bp2_srwd,
15005 .unlock = spi_disable_blockprotect_bp2_srwd,
15006 .write = spi_chip_write_256,
15007 .read = spi_chip_read, /* Fast read (0x0B), dual read (0x3B) and dual I/O (0xBB) supported */
15008 .voltage = {2300, 3600},
15009 },
15010
15011 {
15012 .vendor = "Sanyo",
15013 .name = "LE25FW106",
15014 .bustype = BUS_SPI,
15015 .manufacture_id = SANYO_ID,
15016 .model_id = SANYO_LE25FW106,
15017 .total_size = 128,
15018 .page_size = 256,
15019 .feature_bits = FEATURE_WRSR_WREN,
15020 .tested = TEST_OK_PREW,
15021 .probe = probe_spi_res2,
15022 .probe_timing = TIMING_ZERO,
15023 .block_erasers =
15024 {
15025 {
15026 .eraseblocks = { {2 * 1024, 64} },
15027 .block_erase = spi_block_erase_d7,
15028 }, {
15029 .eraseblocks = { {32 * 1024, 4} },
15030 .block_erase = spi_block_erase_d8,
15031 }, {
15032 .eraseblocks = { {128 * 1024, 1} },
15033 .block_erase = spi_block_erase_c7,
15034 }
15035 },
15036 .printlock = spi_prettyprint_status_register_bp1_srwd, /* FIXME: Add ERSER error flag. */
15037 .unlock = spi_disable_blockprotect_bp1_srwd,
15038 .write = spi_chip_write_256,
15039 .read = spi_chip_read,
15040 .voltage = {2700, 3600},
15041 },
15042
15043 {
15044 .vendor = "Sanyo",
15045 .name = "LE25FW203A",
15046 .bustype = BUS_SPI,
15047 .manufacture_id = SANYO_ID,
15048 .model_id = SANYO_LE25FW203A,
15049 .total_size = 256,
15050 .page_size = 256,
15051 .tested = TEST_UNTESTED,
15052 .probe = probe_spi_rdid,
15053 .probe_timing = TIMING_ZERO,
15054 .block_erasers =
15055 {
15056 {
15057 .eraseblocks = { {256, 1024} },
15058 .block_erase = spi_block_erase_db,
15059 }, {
15060 .eraseblocks = { {64 * 1024, 4} },
15061 .block_erase = spi_block_erase_d8,
15062 }, {
15063 .eraseblocks = { {256 * 1024, 1} },
15064 .block_erase = spi_block_erase_c7,
15065 }
15066 },
15067 .printlock = spi_prettyprint_status_register_default_welwip,
15068 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
15069 .write = spi_chip_write_256,
15070 .read = spi_chip_read,
15071 .voltage = {2700, 3600},
15072 },
15073
15074 {
15075 .vendor = "Sanyo",
15076 .name = "LE25FW403A",
15077 .bustype = BUS_SPI,
15078 .manufacture_id = SANYO_ID,
15079 .model_id = SANYO_LE25FW403A,
15080 .total_size = 512,
15081 .page_size = 256,
15082 .tested = TEST_UNTESTED,
15083 .probe = probe_spi_rdid,
15084 .probe_timing = TIMING_ZERO,
15085 .block_erasers =
15086 {
15087 {
15088 .eraseblocks = { {256, 2 * 1024} },
15089 .block_erase = spi_block_erase_db,
15090 }, {
15091 .eraseblocks = { {64 * 1024, 8} },
15092 .block_erase = spi_block_erase_d8,
15093 }, {
15094 .eraseblocks = { {512 * 1024, 1} },
15095 .block_erase = spi_block_erase_c7,
15096 }
15097 },
15098 .printlock = spi_prettyprint_status_register_default_welwip,
15099 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
15100 .write = spi_chip_write_256,
15101 .read = spi_chip_read,
15102 .voltage = {2700, 3600},
15103 },
15104
15105 {
15106 .vendor = "Sanyo",
15107 .name = "LE25FW406A",
15108 .bustype = BUS_SPI,
15109 .manufacture_id = SANYO_ID,
15110 .model_id = SANYO_LE25FW406A,
15111 .total_size = 512,
15112 .page_size = 256,
15113 .feature_bits = FEATURE_WRSR_WREN,
15114 .tested = TEST_OK_PREW,
15115 .probe = probe_spi_res2,
15116 .probe_timing = TIMING_ZERO,
15117 .block_erasers =
15118 {
15119 {
15120 .eraseblocks = { {4 * 1024, 128} },
15121 .block_erase = spi_block_erase_d7,
15122 }, {
15123 .eraseblocks = { {64 * 1024, 8} },
15124 .block_erase = spi_block_erase_d8,
15125 }, {
15126 .eraseblocks = { {512 * 1024, 1} },
15127 .block_erase = spi_block_erase_c7,
15128 }
15129 },
15130 .printlock = spi_prettyprint_status_register_plain,
15131 .unlock = spi_disable_blockprotect,
15132 .write = spi_chip_write_256,
15133 .read = spi_chip_read,
15134 .voltage = {2700, 3600},
15135 },
15136
15137 {
15138 .vendor = "Sanyo",
15139 .name = "LE25FW418A",
15140 .bustype = BUS_SPI,
15141 .manufacture_id = SANYO_ID,
15142 .model_id = SANYO_LE25FW418A,
15143 .total_size = 512,
15144 .page_size = 256,
15145 .feature_bits = FEATURE_WRSR_WREN,
15146 .tested = TEST_UNTESTED,
15147 .probe = probe_spi_res2,
15148 .probe_timing = TIMING_ZERO,
15149 .block_erasers =
15150 {
15151 {
15152 .eraseblocks = { {4 * 1024, 128} },
15153 .block_erase = spi_block_erase_d7,
15154 }, {
15155 .eraseblocks = { {64 * 1024, 8} },
15156 .block_erase = spi_block_erase_d8,
15157 }, {
15158 .eraseblocks = { {512 * 1024, 1} },
15159 .block_erase = spi_block_erase_c7,
15160 }
15161 },
15162 .printlock = spi_prettyprint_status_register_bp2_srwd,
15163 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
15164 .write = spi_chip_write_256,
15165 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
15166 .voltage = {2700, 3600},
15167 },
15168
15169 {
15170 .vendor = "Sanyo",
15171 .name = "LE25FW806",
15172 .bustype = BUS_SPI,
15173 .manufacture_id = SANYO_ID,
15174 .model_id = SANYO_LE25FW806,
15175 .total_size = 1024,
15176 .page_size = 256,
15177 .feature_bits = FEATURE_WRSR_WREN,
15178 .tested = TEST_UNTESTED,
15179 .probe = probe_spi_res2,
15180 .probe_timing = TIMING_ZERO,
15181 .block_erasers =
15182 {
15183 {
15184 .eraseblocks = { {4 * 1024, 256} },
15185 .block_erase = spi_block_erase_20,
15186 }, {
15187 .eraseblocks = { {4 * 1024, 256} },
15188 .block_erase = spi_block_erase_d7,
15189 }, {
15190 .eraseblocks = { {64 * 1024, 16} },
15191 .block_erase = spi_block_erase_d8,
15192 }, {
15193 .eraseblocks = { {1024 * 1024, 1} },
15194 .block_erase = spi_block_erase_c7,
15195 }
15196 },
15197 .printlock = spi_prettyprint_status_register_bp2_srwd,
15198 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
15199 .write = spi_chip_write_256,
15200 .read = spi_chip_read,
15201 .voltage = {2700, 3600},
15202 },
15203
15204 {
15205 .vendor = "Sanyo",
15206 .name = "LE25FW808",
15207 .bustype = BUS_SPI,
15208 .manufacture_id = SANYO_ID,
15209 .model_id = SANYO_LE25FW808,
15210 .total_size = 1024,
15211 .page_size = 256,
15212 .feature_bits = FEATURE_WRSR_WREN,
15213 .tested = TEST_UNTESTED,
15214 .probe = probe_spi_res2,
15215 .probe_timing = TIMING_ZERO,
15216 .block_erasers =
15217 {
15218 {
15219 .eraseblocks = { {8 * 1024, 128} },
15220 .block_erase = spi_block_erase_d7,
15221 }, {
15222 .eraseblocks = { {64 * 1024, 16} },
15223 .block_erase = spi_block_erase_d8,
15224 }, {
15225 .eraseblocks = { {1024 * 1024, 1} },
15226 .block_erase = spi_block_erase_c7,
15227 }
15228 },
15229 .printlock = spi_prettyprint_status_register_bp2_srwd,
15230 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
15231 .write = spi_chip_write_256,
15232 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
15233 .voltage = {2700, 3600},
15234 },
15235
15236 {
15237 .vendor = "Sharp",
15238 .name = "LH28F008BJT-BTLZ1",
15239 .bustype = BUS_PARALLEL,
15240 .manufacture_id = SHARP_ID,
15241 .model_id = SHARP_LH28F008BJ__PB,
15242 .total_size = 1024,
15243 .page_size = 64 * 1024,
15244 .tested = TEST_OK_PREW,
15245 .probe = probe_82802ab,
15246 .probe_timing = TIMING_ZERO,
15247 .block_erasers =
15248 {
15249 {
15250 .eraseblocks = {
15251 {8 * 1024, 8},
15252 {64 * 1024, 15}
15253 },
15254 .block_erase = erase_block_82802ab,
15255 }, {
15256 .eraseblocks = { {1024 * 1024, 1} },
15257 .block_erase = erase_sector_49lfxxxc,
15258 }
15259 },
15260 .unlock = unlock_lh28f008bjt,
15261 .write = write_82802ab,
15262 .read = read_memmapped,
15263 .voltage = {2700, 3600},
15264 },
15265
15266 {
15267 .vendor = "Sharp",
15268 .name = "LHF00L04",
15269 .bustype = BUS_FWH, /* A/A Mux */
15270 .manufacture_id = SHARP_ID,
15271 .model_id = SHARP_LHF00L04,
15272 .total_size = 1024,
15273 .page_size = 64 * 1024,
15274 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
15275 .tested = TEST_UNTESTED,
15276 .probe = probe_82802ab,
15277 .probe_timing = TIMING_ZERO,
15278 .block_erasers =
15279 {
15280 {
15281 .eraseblocks = {
15282 {64 * 1024, 15},
15283 {8 * 1024, 8}
15284 },
15285 .block_erase = erase_block_82802ab,
15286 }, {
15287 .eraseblocks = {
15288 {1024 * 1024, 1}
15289 },
15290 .block_erase = NULL, /* 30 D0, only in A/A mux mode */
15291 },
15292 },
15293 .unlock = unlock_regspace2_uniform_64k,
15294 .write = write_82802ab,
15295 .read = read_memmapped,
15296 .voltage = {3000, 3600},
15297 },
15298
15299 {
15300 .vendor = "Spansion",
15301 .name = "S25FL004A",
15302 .bustype = BUS_SPI,
15303 .manufacture_id = SPANSION_ID,
15304 .model_id = SPANSION_S25FL004A,
15305 .total_size = 512,
15306 .page_size = 256,
15307 .feature_bits = FEATURE_WRSR_WREN,
15308 .tested = TEST_UNTESTED,
15309 .probe = probe_spi_rdid,
15310 .probe_timing = TIMING_ZERO,
15311 .block_erasers =
15312 {
15313 {
15314 .eraseblocks = { {64 * 1024, 8} },
15315 .block_erase = spi_block_erase_d8,
15316 }, {
15317 .eraseblocks = { {512 * 1024, 1} },
15318 .block_erase = spi_block_erase_c7,
15319 }
15320 },
15321 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15322 .unlock = spi_disable_blockprotect,
15323 .write = spi_chip_write_256,
15324 .read = spi_chip_read,
15325 .voltage = {2700, 3600},
15326 },
15327
15328 {
15329 .vendor = "Spansion",
15330 .name = "S25FL008A",
15331 .bustype = BUS_SPI,
15332 .manufacture_id = SPANSION_ID,
15333 .model_id = SPANSION_S25FL008A,
15334 .total_size = 1024,
15335 .page_size = 256,
15336 .feature_bits = FEATURE_WRSR_WREN,
15337 .tested = TEST_OK_PRE,
15338 .probe = probe_spi_rdid,
15339 .probe_timing = TIMING_ZERO,
15340 .block_erasers =
15341 {
15342 {
15343 .eraseblocks = { {64 * 1024, 16} },
15344 .block_erase = spi_block_erase_d8,
15345 }, {
15346 .eraseblocks = { {1024 * 1024, 1} },
15347 .block_erase = spi_block_erase_c7,
15348 }
15349 },
15350 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15351 .unlock = spi_disable_blockprotect,
15352 .write = spi_chip_write_256,
15353 .read = spi_chip_read,
15354 .voltage = {2700, 3600},
15355 },
15356
15357 {
15358 .vendor = "Spansion",
15359 .name = "S25FL016A",
15360 .bustype = BUS_SPI,
15361 .manufacture_id = SPANSION_ID,
15362 .model_id = SPANSION_S25FL016A,
15363 .total_size = 2048,
15364 .page_size = 256,
15365 .feature_bits = FEATURE_WRSR_WREN,
15366 .tested = TEST_OK_PREW,
15367 .probe = probe_spi_rdid,
15368 .probe_timing = TIMING_ZERO,
15369 .block_erasers =
15370 {
15371 {
15372 .eraseblocks = { {64 * 1024, 32} },
15373 .block_erase = spi_block_erase_d8,
15374 }, {
15375 .eraseblocks = { {2 * 1024 * 1024, 1} },
15376 .block_erase = spi_block_erase_c7,
15377 }
15378 },
15379 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15380 .unlock = spi_disable_blockprotect,
15381 .write = spi_chip_write_256,
15382 .read = spi_chip_read,
15383 .voltage = {2700, 3600},
15384 },
15385
15386 {
15387 .vendor = "Spansion",
15388 .name = "S25FL032A/P",
15389 .bustype = BUS_SPI,
15390 .manufacture_id = SPANSION_ID,
15391 .model_id = SPANSION_S25FL032A,
15392 .total_size = 4096,
15393 .page_size = 256,
15394 .feature_bits = FEATURE_WRSR_WREN,
15395 .tested = TEST_OK_PREW,
15396 .probe = probe_spi_rdid,
15397 .probe_timing = TIMING_ZERO,
15398 .block_erasers =
15399 {
15400 {
15401 .eraseblocks = { {64 * 1024, 64} },
15402 .block_erase = spi_block_erase_d8,
15403 }, {
15404 .eraseblocks = { {4 * 1024 * 1024, 1} },
15405 .block_erase = spi_block_erase_c7,
15406 }
15407 },
15408 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15409 .unlock = spi_disable_blockprotect,
15410 .write = spi_chip_write_256,
15411 .read = spi_chip_read,
15412 .voltage = {2700, 3600},
15413 },
15414
15415 {
15416 .vendor = "Spansion",
15417 .name = "S25FL064A/P",
15418 .bustype = BUS_SPI,
15419 .manufacture_id = SPANSION_ID,
15420 .model_id = SPANSION_S25FL064A,
15421 .total_size = 8192,
15422 .page_size = 256,
15423 .feature_bits = FEATURE_WRSR_WREN,
15424 .tested = TEST_OK_PREW,
15425 .probe = probe_spi_rdid,
15426 .probe_timing = TIMING_ZERO,
15427 .block_erasers =
15428 {
15429 {
15430 .eraseblocks = { {64 * 1024, 128} },
15431 .block_erase = spi_block_erase_d8,
15432 }, {
15433 .eraseblocks = { {8 * 1024 * 1024, 1} },
15434 .block_erase = spi_block_erase_c7,
15435 }
15436 },
15437 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15438 .unlock = spi_disable_blockprotect,
15439 .write = spi_chip_write_256,
15440 .read = spi_chip_read,
15441 .voltage = {2700, 3600},
15442 },
15443
15444 {
15445 .vendor = "Spansion",
15446 .name = "S25FL116K/S25FL216K", /* FIXME: separate them */
15447 .bustype = BUS_SPI,
15448 .manufacture_id = SPANSION_ID,
15449 .model_id = SPANSION_S25FL216,
15450 .total_size = 2048,
15451 .page_size = 256,
15452 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (S25FL116K only) */
15453 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
15454 .tested = TEST_UNTESTED,
15455 .probe = probe_spi_rdid,
15456 .probe_timing = TIMING_ZERO,
15457 .block_erasers =
15458 {
15459 {
15460 .eraseblocks = { {4 * 1024, 512} },
15461 .block_erase = spi_block_erase_20,
15462 }, {
15463 .eraseblocks = { {64 * 1024, 32} },
15464 .block_erase = spi_block_erase_d8,
15465 }, {
15466 .eraseblocks = { { 2048 * 1024, 1} },
15467 .block_erase = spi_block_erase_60,
15468 }, {
15469 .eraseblocks = { { 2048 * 1024, 1} },
15470 .block_erase = spi_block_erase_c7,
15471 }
15472 },
15473 .printlock = spi_prettyprint_status_register_bp3_srwd,
15474 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
15475 .write = spi_chip_write_256,
15476 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
15477 .voltage = {2700, 3600},
15478 },
15479
15480 {
15481 .vendor = "Spansion",
15482 .name = "S25FL127S-256kB", /* uniform 256kB sectors */
15483 .bustype = BUS_SPI,
15484 .manufacture_id = SPANSION_ID,
15485 .model_id = SPANSION_S25FL128,
15486 .total_size = 16384,
15487 .page_size = 512,
15488 /* supports 4B addressing */
15489 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
15490 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
15491 .tested = TEST_UNTESTED,
15492 .probe = probe_spi_rdid,
15493 .probe_timing = TIMING_ZERO,
15494 .block_erasers =
15495 {
15496 {
15497 .eraseblocks = { {256 * 1024, 64} },
15498 .block_erase = spi_block_erase_d8,
15499 }, {
15500 .eraseblocks = { { 16384 * 1024, 1} },
15501 .block_erase = spi_block_erase_60,
15502 }, {
15503 .eraseblocks = { { 16384 * 1024, 1} },
15504 .block_erase = spi_block_erase_c7,
15505 }
15506 },
15507 .printlock = spi_prettyprint_status_register_bp2_srwd,
15508 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
15509 .write = spi_chip_write_256, /* Multi I/O supported */
15510 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
15511 .voltage = {2700, 3600},
15512 },
15513
15514 {
15515 .vendor = "Spansion",
15516 .name = "S25FL127S-64kB", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
15517 .bustype = BUS_SPI,
15518 .manufacture_id = SPANSION_ID,
15519 .model_id = SPANSION_S25FL128,
15520 .total_size = 16384,
15521 .page_size = 256,
15522 /* supports 4B addressing */
15523 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
15524 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
15525 .tested = TEST_OK_PREW,
15526 /* FIXME: we should distinguish the configuration on probing time like we do for AT45DB chips */
15527 .probe = probe_spi_rdid,
15528 .probe_timing = TIMING_ZERO,
15529 .block_erasers =
15530 {
15531 {
15532 /* This chip supports erasing of 32 so-called "parameter sectors" with
15533 * opcode 0x20 which may be configured to be on top or bottom of the address
15534 * space. Trying to access an address outside these 4kB blocks does have no
15535 * effect on the memory contents, e.g.
15536 .eraseblocks = {
15537 {4 * 1024, 32},
15538 {64 * 1024, 254} // inaccessible
15539 },
15540 .block_erase = spi_block_erase_20,
15541 }, { */
15542 .eraseblocks = { { 64 * 1024, 256} },
15543 .block_erase = spi_block_erase_d8,
15544 }, {
15545 .eraseblocks = { { 16384 * 1024, 1} },
15546 .block_erase = spi_block_erase_60,
15547 }, {
15548 .eraseblocks = { { 16384 * 1024, 1} },
15549 .block_erase = spi_block_erase_c7,
15550 }
15551 },
15552 .printlock = spi_prettyprint_status_register_bp2_srwd,
15553 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
15554 .write = spi_chip_write_256, /* Multi I/O supported */
15555 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
15556 .voltage = {2700, 3600},
15557 },
15558
15559 {
15560 .vendor = "Spansion",
15561 .name = "S25FL128P......0", /* uniform 64 kB sectors */
15562 .bustype = BUS_SPI,
15563 .manufacture_id = SPANSION_ID,
15564 .model_id = SPANSION_S25FL128,
15565 .total_size = 16384,
15566 .page_size = 256,
15567 .feature_bits = FEATURE_WRSR_WREN,
15568 .tested = TEST_OK_PREW,
15569 .probe = probe_spi_rdid,
15570 .probe_timing = TIMING_ZERO,
15571 .block_erasers =
15572 {
15573 {
15574 .eraseblocks = { {64 * 1024, 256} },
15575 .block_erase = spi_block_erase_20,
15576 }, {
15577 .eraseblocks = { {64 * 1024, 256} },
15578 .block_erase = spi_block_erase_d8,
15579 }, {
15580 .eraseblocks = { { 16384 * 1024, 1} },
15581 .block_erase = spi_block_erase_60,
15582 }, {
15583 .eraseblocks = { { 16384 * 1024, 1} },
15584 .block_erase = spi_block_erase_c7,
15585 }
15586 },
15587 .printlock = spi_prettyprint_status_register_bp3_srwd,
15588 .unlock = spi_disable_blockprotect_bp3_srwd,
15589 .write = spi_chip_write_256,
15590 .read = spi_chip_read, /* Fast read (0x0B) supported */
15591 .voltage = {2700, 3600},
15592 },
15593
15594 {
15595 .vendor = "Spansion",
15596 .name = "S25FL128P......1", /* uniform 256kB sectors */
15597 .bustype = BUS_SPI,
15598 .manufacture_id = SPANSION_ID,
15599 .model_id = SPANSION_S25FL128,
15600 .total_size = 16384,
15601 .page_size = 256,
15602 .feature_bits = FEATURE_WRSR_WREN,
15603 .tested = TEST_UNTESTED,
15604 .probe = probe_spi_rdid,
15605 .probe_timing = TIMING_ZERO,
15606 .block_erasers =
15607 {
15608 {
15609 .eraseblocks = { {256 * 1024, 64} },
15610 .block_erase = spi_block_erase_d8,
15611 }, {
15612 .eraseblocks = { { 16384 * 1024, 1} },
15613 .block_erase = spi_block_erase_c7,
15614 }
15615 },
15616 .printlock = spi_prettyprint_status_register_bp2_srwd,
15617 .unlock = spi_disable_blockprotect_bp2_srwd,
15618 .write = spi_chip_write_256,
15619 .read = spi_chip_read, /* Fast read (0x0B) supported */
15620 .voltage = {2700, 3600},
15621 },
15622
15623 {
15624 .vendor = "Spansion",
15625 .name = "S25FL128S......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
15626 .bustype = BUS_SPI,
15627 .manufacture_id = SPANSION_ID,
15628 .model_id = SPANSION_S25FL128,
15629 .total_size = 16384,
15630 .page_size = 256,
15631 /* supports 4B addressing */
15632 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
15633 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
15634 .tested = TEST_OK_PREW,
15635 .probe = probe_spi_rdid,
15636 .probe_timing = TIMING_ZERO,
15637 .block_erasers =
15638 {
15639 {
15640 /* This chip supports erasing of the 32 so-called "parameter sectors" with
15641 * opcode 0x20. Trying to access an address outside these 4kB blocks does
15642 * have no effect on the memory contents, but sets a flag in the SR.
15643 .eraseblocks = {
15644 {4 * 1024, 32},
15645 {64 * 1024, 254} // inaccessible
15646 },
15647 .block_erase = spi_block_erase_20,
15648 }, { */
15649 .eraseblocks = { { 64 * 1024, 256} },
15650 .block_erase = spi_block_erase_d8,
15651 }, {
15652 .eraseblocks = { { 16384 * 1024, 1} },
15653 .block_erase = spi_block_erase_60,
15654 }, {
15655 .eraseblocks = { { 16384 * 1024, 1} },
15656 .block_erase = spi_block_erase_c7,
15657 }
15658 },
15659 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
15660 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
15661 .write = spi_chip_write_256, /* Multi I/O supported */
15662 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
15663 .voltage = {2700, 3600},
15664 },
15665
15666 {
15667 .vendor = "Spansion",
15668 .name = "S25FL128S......1", /* uniform 256 kB sectors */
15669 .bustype = BUS_SPI,
15670 .manufacture_id = SPANSION_ID,
15671 .model_id = SPANSION_S25FL128,
15672 .total_size = 16384,
15673 .page_size = 512,
15674 /* supports 4B addressing */
15675 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
15676 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
15677 .tested = TEST_UNTESTED,
15678 .probe = probe_spi_rdid,
15679 .probe_timing = TIMING_ZERO,
15680 .block_erasers =
15681 {
15682 {
15683 .eraseblocks = { {256 * 1024, 64} },
15684 .block_erase = spi_block_erase_d8,
15685 }, {
15686 .eraseblocks = { { 16384 * 1024, 1} },
15687 .block_erase = spi_block_erase_60,
15688 }, {
15689 .eraseblocks = { { 16384 * 1024, 1} },
15690 .block_erase = spi_block_erase_c7,
15691 }
15692 },
15693 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
15694 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
15695 .write = spi_chip_write_256, /* Multi I/O supported */
15696 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
15697 .voltage = {2700, 3600},
15698 },
15699
15700 {
15701 .vendor = "Spansion",
15702 .name = "S25FL129P......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
15703 .bustype = BUS_SPI,
15704 .manufacture_id = SPANSION_ID,
15705 .model_id = SPANSION_S25FL128,
15706 .total_size = 16384,
15707 .page_size = 256,
15708 /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */
15709 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
15710 .tested = TEST_OK_PREW,
15711 .probe = probe_spi_rdid,
15712 .probe_timing = TIMING_ZERO,
15713 .block_erasers =
15714 {
15715 {
15716 /* FIXME: This chip supports erasing of the 32 so-called "parameter sectors" with
15717 * opcode 0x20. Trying to access an address outside these 4kB blocks does have no
15718 * effect on the memory contents, but sets a flag in the SR.
15719 .eraseblocks = {
15720 {4 * 1024, 32},
15721 {64 * 1024, 254} // inaccessible
15722 },
15723 .block_erase = spi_block_erase_20,
15724 }, { */
15725 /* FIXME: Additionally it also supports erase opcode 40h for the respective 2*4 kB pairs
15726 .eraseblocks = {
15727 {8 * 1024, 16},
15728 {64 * 1024, 254} // inaccessible
15729 },
15730 .block_erase = spi_block_erase_40,
15731 }, { */
15732 .eraseblocks = { { 64 * 1024, 256} },
15733 .block_erase = spi_block_erase_d8,
15734 }, {
15735 .eraseblocks = { { 16384 * 1024, 1} },
15736 .block_erase = spi_block_erase_60,
15737 }, {
15738 .eraseblocks = { { 16384 * 1024, 1} },
15739 .block_erase = spi_block_erase_c7,
15740 }
15741 },
15742 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */
15743 .unlock = spi_disable_blockprotect_bp2_srwd,
15744 .write = spi_chip_write_256, /* Multi I/O supported */
15745 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
15746 .voltage = {2700, 3600},
15747 },
15748
15749 {
15750 .vendor = "Spansion",
15751 .name = "S25FL129P......1", /* uniform 256 kB sectors */
15752 .bustype = BUS_SPI,
15753 .manufacture_id = SPANSION_ID,
15754 .model_id = SPANSION_S25FL128,
15755 .total_size = 16384,
15756 .page_size = 256,
15757 /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */
15758 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
15759 .tested = TEST_UNTESTED,
15760 .probe = probe_spi_rdid,
15761 .probe_timing = TIMING_ZERO,
15762 .block_erasers =
15763 {
15764 {
15765 .eraseblocks = { {256 * 1024, 64} },
15766 .block_erase = spi_block_erase_d8,
15767 }, {
15768 .eraseblocks = { { 16384 * 1024, 1} },
15769 .block_erase = spi_block_erase_60,
15770 }, {
15771 .eraseblocks = { { 16384 * 1024, 1} },
15772 .block_erase = spi_block_erase_c7,
15773 }
15774 },
15775 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */
15776 .unlock = spi_disable_blockprotect_bp2_srwd,
15777 .write = spi_chip_write_256, /* Multi I/O supported */
15778 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
15779 .voltage = {2700, 3600},
15780 },
15781
15782 {
15783 .vendor = "Spansion",
15784 .name = "S25FL132K",
15785 .bustype = BUS_SPI,
15786 .manufacture_id = SPANSION_ID,
15787 .model_id = SPANSION_S25FL132K,
15788 .total_size = 4096,
15789 .page_size = 256,
15790 /* OTP: 768B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
15791 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
15792 .tested = TEST_UNTESTED,
15793 .probe = probe_spi_rdid,
15794 .probe_timing = TIMING_ZERO,
15795 .block_erasers =
15796 {
15797 {
15798 .eraseblocks = { {4 * 1024, 1024} },
15799 .block_erase = spi_block_erase_20,
15800 }, {
15801 .eraseblocks = { {64 * 1024, 64} },
15802 .block_erase = spi_block_erase_d8,
15803 }, {
15804 .eraseblocks = { { 4096 * 1024, 1} },
15805 .block_erase = spi_block_erase_60,
15806 }, {
15807 .eraseblocks = { { 4096 * 1024, 1} },
15808 .block_erase = spi_block_erase_c7,
15809 }
15810 },
15811 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
15812 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
15813 .write = spi_chip_write_256,
15814 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
15815 .voltage = {2700, 3600},
15816 },
15817
15818 {
15819 .vendor = "Spansion",
15820 .name = "S25FL164K",
15821 .bustype = BUS_SPI,
15822 .manufacture_id = SPANSION_ID,
15823 .model_id = SPANSION_S25FL164K,
15824 .total_size = 8192,
15825 .page_size = 256,
15826 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
15827 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
15828 .tested = TEST_OK_PREW,
15829 .probe = probe_spi_rdid,
15830 .probe_timing = TIMING_ZERO,
15831 .block_erasers =
15832 {
15833 {
15834 .eraseblocks = { {4 * 1024, 2048} },
15835 .block_erase = spi_block_erase_20,
15836 }, {
15837 .eraseblocks = { {64 * 1024, 128} },
15838 .block_erase = spi_block_erase_d8,
15839 }, {
15840 .eraseblocks = { { 8192 * 1024, 1} },
15841 .block_erase = spi_block_erase_60,
15842 }, {
15843 .eraseblocks = { { 8192 * 1024, 1} },
15844 .block_erase = spi_block_erase_c7,
15845 }
15846 },
15847 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
15848 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
15849 .write = spi_chip_write_256,
15850 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
15851 .voltage = {2700, 3600},
15852 },
15853
15854 {
15855 .vendor = "Spansion",
15856 .name = "S25FL204K",
15857 .bustype = BUS_SPI,
15858 .manufacture_id = SPANSION_ID,
15859 .model_id = SPANSION_S25FL204,
15860 .total_size = 512,
15861 .page_size = 256,
15862 .feature_bits = FEATURE_WRSR_WREN,
15863 .tested = TEST_OK_PR,
15864 .probe = probe_spi_rdid,
15865 .probe_timing = TIMING_ZERO,
15866 .block_erasers =
15867 {
15868 {
15869 .eraseblocks = { {4 * 1024, 128} },
15870 .block_erase = spi_block_erase_20,
15871 }, {
15872 .eraseblocks = { {64 * 1024, 8} },
15873 .block_erase = spi_block_erase_d8,
15874 }, {
15875 .eraseblocks = { { 512 * 1024, 1} },
15876 .block_erase = spi_block_erase_60,
15877 }, {
15878 .eraseblocks = { { 512 * 1024, 1} },
15879 .block_erase = spi_block_erase_c7,
15880 }
15881 },
15882 .printlock = spi_prettyprint_status_register_bp3_srwd,
15883 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
15884 .write = spi_chip_write_256,
15885 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
15886 .voltage = {2700, 3600},
15887 },
15888
15889 {
15890 .vendor = "Spansion",
15891 .name = "S25FL208K",
15892 .bustype = BUS_SPI,
15893 .manufacture_id = SPANSION_ID,
15894 .model_id = SPANSION_S25FL208,
15895 .total_size = 1024,
15896 .page_size = 256,
15897 .feature_bits = FEATURE_WRSR_WREN,
15898 .tested = TEST_OK_PREW,
15899 .probe = probe_spi_rdid,
15900 .probe_timing = TIMING_ZERO,
15901 .block_erasers =
15902 {
15903 {
15904 .eraseblocks = { {4 * 1024, 256} },
15905 .block_erase = spi_block_erase_20,
15906 }, {
15907 .eraseblocks = { {64 * 1024, 16} },
15908 .block_erase = spi_block_erase_d8,
15909 }, {
15910 .eraseblocks = { { 1024 * 1024, 1} },
15911 .block_erase = spi_block_erase_60,
15912 }, {
15913 .eraseblocks = { { 1024 * 1024, 1} },
15914 .block_erase = spi_block_erase_c7,
15915 }
15916 },
15917 .printlock = spi_prettyprint_status_register_bp3_srwd,
15918 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
15919 .write = spi_chip_write_256,
15920 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
15921 .voltage = {2700, 3600},
15922 },
15923
15924 {
15925 .vendor = "Spansion",
15926 .name = "S25FL256S......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
15927 .bustype = BUS_SPI,
15928 .manufacture_id = SPANSION_ID,
15929 .model_id = SPANSION_S25FL256,
15930 .total_size = 32768,
15931 .page_size = 256,
15932 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
15933 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_EAR7,
15934 .tested = TEST_OK_PREW,
15935 .probe = probe_spi_rdid,
15936 .probe_timing = TIMING_ZERO,
15937 .block_erasers =
15938 {
15939 {
15940 /* This chip supports erasing of the 32 so-called "parameter sectors" with
15941 * opcode 0x20. Trying to access an address outside these 4kB blocks does
15942 * have no effect on the memory contents, but sets a flag in the SR.
15943 .eraseblocks = {
15944 {4 * 1024, 32},
15945 {64 * 1024, 254} // inaccessible
15946 },
15947 .block_erase = spi_block_erase_20,
15948 }, { */
15949 .eraseblocks = { { 64 * 1024, 512} },
15950 .block_erase = spi_block_erase_dc,
15951 }, {
15952 .eraseblocks = { { 64 * 1024, 512} },
15953 .block_erase = spi_block_erase_d8,
15954 }, {
15955 .eraseblocks = { { 32768 * 1024, 1} },
15956 .block_erase = spi_block_erase_60,
15957 }, {
15958 .eraseblocks = { { 32768 * 1024, 1} },
15959 .block_erase = spi_block_erase_c7,
15960 }
15961 },
15962 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
15963 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
15964 .write = spi_chip_write_256, /* Multi I/O supported */
15965 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
15966 .voltage = {2700, 3600},
15967 .wrea_override = 0x17,
15968 },
15969
15970 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000015971 .vendor = "SyncMOS/MoselVitelic",
15972 .name = "{F,S,V}29C51001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015973 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000015974 .manufacture_id = SYNCMOS_MVC_ID,
15975 .model_id = SM_MVC_29C51001B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015976 .total_size = 128,
Mattias Mattsson4c066502010-07-29 20:01:13 +000015977 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000015978 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015979 .tested = TEST_UNTESTED,
15980 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000015981 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000015982 .block_erasers =
15983 {
15984 {
15985 .eraseblocks = { {512, 256} },
15986 .block_erase = erase_sector_jedec,
15987 }, {
15988 .eraseblocks = { {128 * 1024, 1} },
15989 .block_erase = erase_chip_block_jedec,
15990 },
15991 },
Sean Nelson35727f72010-01-28 23:55:12 +000015992 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015993 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015994 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000015995 },
15996
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015997 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000015998 .vendor = "SyncMOS/MoselVitelic",
15999 .name = "{F,S,V}29C51001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016000 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016001 .manufacture_id = SYNCMOS_MVC_ID,
16002 .model_id = SM_MVC_29C51001T,
16003 .total_size = 128,
16004 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000016005 .feature_bits = FEATURE_EITHER_RESET,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016006 .tested = TEST_UNTESTED,
16007 .probe = probe_jedec,
16008 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
16009 .block_erasers =
16010 {
16011 {
16012 .eraseblocks = { {512, 256} },
16013 .block_erase = erase_sector_jedec,
16014 }, {
16015 .eraseblocks = { {128 * 1024, 1} },
16016 .block_erase = erase_chip_block_jedec,
16017 },
16018 },
16019 .write = write_jedec_1,
16020 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016021 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000016022 },
16023
16024 {
16025 .vendor = "SyncMOS/MoselVitelic",
16026 .name = "{F,S,V}29C51002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016027 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016028 .manufacture_id = SYNCMOS_MVC_ID,
16029 .model_id = SM_MVC_29C51002B,
16030 .total_size = 256,
16031 .page_size = 512,
16032 .feature_bits = FEATURE_EITHER_RESET,
16033 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016034 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000016035 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000016036 .block_erasers =
16037 {
16038 {
16039 .eraseblocks = { {512, 512} },
16040 .block_erase = erase_sector_jedec,
16041 }, {
16042 .eraseblocks = { {256 * 1024, 1} },
16043 .block_erase = erase_chip_block_jedec,
16044 },
16045 },
Sean Nelson35727f72010-01-28 23:55:12 +000016046 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016047 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000016048 },
16049
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016050 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000016051 .vendor = "SyncMOS/MoselVitelic",
16052 .name = "{F,S,V}29C51002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016053 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016054 .manufacture_id = SYNCMOS_MVC_ID,
16055 .model_id = SM_MVC_29C51002T,
16056 .total_size = 256,
16057 .page_size = 512,
16058 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000016059 .tested = TEST_OK_PREW,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016060 .probe = probe_jedec,
16061 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
16062 .block_erasers =
16063 {
16064 {
16065 .eraseblocks = { {512, 512} },
16066 .block_erase = erase_sector_jedec,
16067 }, {
16068 .eraseblocks = { {256 * 1024, 1} },
16069 .block_erase = erase_chip_block_jedec,
16070 },
16071 },
16072 .write = write_jedec_1,
16073 .read = read_memmapped,
16074 },
16075
16076 {
16077 .vendor = "SyncMOS/MoselVitelic",
16078 .name = "{F,S,V}29C51004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016079 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016080 .manufacture_id = SYNCMOS_MVC_ID,
16081 .model_id = SM_MVC_29C51004B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016082 .total_size = 512,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016083 .page_size = 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000016084 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016085 .tested = TEST_UNTESTED,
16086 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000016087 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +000016088 .block_erasers =
16089 {
16090 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000016091 .eraseblocks = { {1024, 512} },
16092 .block_erase = erase_sector_jedec,
16093 }, {
16094 .eraseblocks = { {512 * 1024, 1} },
16095 .block_erase = erase_chip_block_jedec,
16096 },
16097 },
16098 .write = write_jedec_1,
16099 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016100 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000016101 },
16102
16103 {
16104 .vendor = "SyncMOS/MoselVitelic",
16105 .name = "{F,S,V}29C51004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016106 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016107 .manufacture_id = SYNCMOS_MVC_ID,
16108 .model_id = SM_MVC_29C51004T,
16109 .total_size = 512,
16110 .page_size = 1024,
16111 .feature_bits = FEATURE_EITHER_RESET,
16112 .tested = TEST_UNTESTED,
16113 .probe = probe_jedec,
16114 .probe_timing = TIMING_ZERO,
16115 .block_erasers =
16116 {
16117 {
16118 .eraseblocks = { {1024, 512} },
16119 .block_erase = erase_sector_jedec,
16120 }, {
16121 .eraseblocks = { {512 * 1024, 1} },
16122 .block_erase = erase_chip_block_jedec,
16123 },
16124 },
16125 .write = write_jedec_1,
16126 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016127 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000016128 },
16129
16130 {
16131 .vendor = "SyncMOS/MoselVitelic",
16132 .name = "{S,V}29C31004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016133 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016134 .manufacture_id = SYNCMOS_MVC_ID,
16135 .model_id = SM_MVC_29C31004B,
16136 .total_size = 512,
16137 .page_size = 1024,
16138 .feature_bits = FEATURE_EITHER_RESET,
16139 .tested = TEST_UNTESTED,
16140 .probe = probe_jedec,
16141 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
16142 .block_erasers =
16143 {
16144 {
16145 .eraseblocks = { {1024, 512} },
16146 .block_erase = erase_sector_jedec,
16147 }, {
16148 .eraseblocks = { {512 * 1024, 1} },
16149 .block_erase = erase_chip_block_jedec,
16150 },
16151 },
16152 .write = write_jedec_1,
16153 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016154 .voltage = {3000, 3600},
Mattias Mattsson4c066502010-07-29 20:01:13 +000016155 },
16156
16157 {
16158 .vendor = "SyncMOS/MoselVitelic",
16159 .name = "{S,V}29C31004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016160 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016161 .manufacture_id = SYNCMOS_MVC_ID,
16162 .model_id = SM_MVC_29C31004T,
16163 .total_size = 512,
16164 .page_size = 1024,
16165 .feature_bits = FEATURE_EITHER_RESET,
16166 .tested = TEST_UNTESTED,
16167 .probe = probe_jedec,
16168 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
16169 .block_erasers =
16170 {
16171 {
16172 .eraseblocks = { {1024, 512} },
Sean Nelson56358aa2010-01-19 16:08:51 +000016173 .block_erase = erase_sector_jedec,
16174 }, {
16175 .eraseblocks = { {512 * 1024, 1} },
16176 .block_erase = erase_chip_block_jedec,
16177 },
16178 },
Sean Nelson35727f72010-01-28 23:55:12 +000016179 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016180 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016181 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000016182 },
16183
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016184 {
Uwe Hermanna106d152009-05-27 23:17:40 +000016185 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016186 .name = "TMS29F002RB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016187 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016188 .manufacture_id = TI_OLD_ID,
16189 .model_id = TI_TMS29F002RB,
16190 .total_size = 256,
16191 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000016192 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016193 .tested = TEST_UNTESTED,
16194 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000016195 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000016196 .block_erasers =
16197 {
16198 {
16199 .eraseblocks = {
16200 {16 * 1024, 1},
16201 {8 * 1024, 2},
16202 {32 * 1024, 1},
16203 {64 * 1024, 3},
16204 },
16205 .block_erase = erase_sector_jedec,
16206 }, {
16207 .eraseblocks = { {256 * 1024, 1} },
16208 .block_erase = erase_chip_block_jedec,
16209 },
16210 },
Sean Nelson35727f72010-01-28 23:55:12 +000016211 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016212 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016213 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016214 },
16215
16216 {
Uwe Hermanna106d152009-05-27 23:17:40 +000016217 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016218 .name = "TMS29F002RT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016219 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016220 .manufacture_id = TI_OLD_ID,
16221 .model_id = TI_TMS29F002RT,
16222 .total_size = 256,
16223 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000016224 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016225 .tested = TEST_UNTESTED,
16226 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000016227 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000016228 .block_erasers =
16229 {
16230 {
16231 .eraseblocks = {
16232 {64 * 1024, 3},
16233 {32 * 1024, 1},
16234 {8 * 1024, 2},
16235 {16 * 1024, 1},
16236 },
16237 .block_erase = erase_sector_jedec,
16238 }, {
16239 .eraseblocks = { {256 * 1024, 1} },
16240 .block_erase = erase_chip_block_jedec,
16241 },
16242 },
Sean Nelson35727f72010-01-28 23:55:12 +000016243 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016244 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016245 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016246 },
16247
16248 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016249 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100016250 .name = "W25P16",
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000016251 .bustype = BUS_SPI,
16252 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016253 .model_id = WINBOND_NEX_W25P16,
16254 .total_size = 2048,
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000016255 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016256 .feature_bits = FEATURE_WRSR_WREN,
16257 .tested = TEST_UNTESTED,
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000016258 .probe = probe_spi_rdid,
16259 .probe_timing = TIMING_ZERO,
16260 .block_erasers =
16261 {
16262 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016263 .eraseblocks = { {64 * 1024, 32} },
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000016264 .block_erase = spi_block_erase_d8,
16265 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016266 .eraseblocks = { {2048 * 1024, 1} },
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000016267 .block_erase = spi_block_erase_c7,
16268 }
16269 },
16270 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16271 .unlock = spi_disable_blockprotect,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016272 .write = spi_chip_write_256,
16273 .read = spi_chip_read, /* Fast read (0x0B) supported */
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000016274 .voltage = {2700, 3600},
16275 },
16276
16277 {
16278 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100016279 .name = "W25P32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016280 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000016281 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016282 .model_id = WINBOND_NEX_W25P32,
16283 .total_size = 4096,
Rudolf Marekce1c7982010-04-20 19:34:31 +000016284 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016285 .feature_bits = FEATURE_WRSR_WREN,
16286 .tested = TEST_UNTESTED,
Rudolf Marekce1c7982010-04-20 19:34:31 +000016287 .probe = probe_spi_rdid,
16288 .probe_timing = TIMING_ZERO,
16289 .block_erasers =
16290 {
16291 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016292 .eraseblocks = { {64 * 1024, 64} },
16293 .block_erase = spi_block_erase_d8,
Rudolf Marekce1c7982010-04-20 19:34:31 +000016294 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016295 .eraseblocks = { {4096 * 1024, 1} },
16296 .block_erase = spi_block_erase_c7,
16297 }
16298 },
16299 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16300 .unlock = spi_disable_blockprotect,
16301 .write = spi_chip_write_256,
16302 .read = spi_chip_read, /* Fast read (0x0B) supported */
16303 .voltage = {2700, 3600},
16304 },
16305
16306 {
16307 .vendor = "Winbond",
16308 .name = "W25P80",
16309 .bustype = BUS_SPI,
16310 .manufacture_id = WINBOND_NEX_ID,
16311 .model_id = WINBOND_NEX_W25P80,
16312 .total_size = 1024,
16313 .page_size = 256,
16314 .feature_bits = FEATURE_WRSR_WREN,
16315 .tested = TEST_UNTESTED,
16316 .probe = probe_spi_rdid,
16317 .probe_timing = TIMING_ZERO,
16318 .block_erasers =
16319 {
16320 {
Rudolf Marekce1c7982010-04-20 19:34:31 +000016321 .eraseblocks = { {64 * 1024, 16} },
16322 .block_erase = spi_block_erase_d8,
16323 }, {
16324 .eraseblocks = { {1024 * 1024, 1} },
Rudolf Marekce1c7982010-04-20 19:34:31 +000016325 .block_erase = spi_block_erase_c7,
16326 }
16327 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000016328 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000016329 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000016330 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016331 .read = spi_chip_read, /* Fast read (0x0B) supported */
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016332 .voltage = {2700, 3600},
David Hendricksc4acec92010-06-24 11:39:57 +000016333 },
16334
16335 {
16336 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016337 .name = "W25Q128.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016338 .bustype = BUS_SPI,
Antony Rheneus0fbba982011-05-26 14:28:51 +000016339 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016340 .model_id = WINBOND_NEX_W25Q128_V,
Antony Rheneus0fbba982011-05-26 14:28:51 +000016341 .total_size = 16384,
16342 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016343 /* supports SFDP */
16344 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000016345 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +000016346 .tested = TEST_OK_PREW,
Antony Rheneus0fbba982011-05-26 14:28:51 +000016347 .probe = probe_spi_rdid,
16348 .probe_timing = TIMING_ZERO,
16349 .block_erasers =
16350 {
16351 {
16352 .eraseblocks = { {4 * 1024, 4096} },
16353 .block_erase = spi_block_erase_20,
16354 }, {
16355 .eraseblocks = { {32 * 1024, 512} },
16356 .block_erase = spi_block_erase_52,
16357 }, {
16358 .eraseblocks = { {64 * 1024, 256} },
16359 .block_erase = spi_block_erase_d8,
16360 }, {
16361 .eraseblocks = { {16 * 1024 * 1024, 1} },
16362 .block_erase = spi_block_erase_60,
16363 }, {
16364 .eraseblocks = { {16 * 1024 * 1024, 1} },
16365 .block_erase = spi_block_erase_c7,
16366 }
16367 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000016368 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Antony Rheneus0fbba982011-05-26 14:28:51 +000016369 .unlock = spi_disable_blockprotect,
16370 .write = spi_chip_write_256,
16371 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016372 .voltage = {2700, 3600},
16373 },
16374
16375 {
16376 .vendor = "Winbond",
Patrick Rudolph34323492018-10-04 14:59:40 +020016377 .name = "W25Q128.V..M",
16378 .bustype = BUS_SPI,
16379 .manufacture_id = WINBOND_NEX_ID,
16380 .model_id = WINBOND_NEX_W25Q128_V_M,
16381 .total_size = 16384,
16382 .page_size = 256,
16383 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
16384 .tested = TEST_OK_PREW,
16385 .probe = probe_spi_rdid,
16386 .probe_timing = TIMING_ZERO,
16387 .block_erasers =
16388 {
16389 {
16390 .eraseblocks = { {4 * 1024, 4096} },
16391 .block_erase = spi_block_erase_20,
16392 }, {
16393 .eraseblocks = { {32 * 1024, 512} },
16394 .block_erase = spi_block_erase_52,
16395 }, {
16396 .eraseblocks = { {64 * 1024, 256} },
16397 .block_erase = spi_block_erase_d8,
16398 }, {
16399 .eraseblocks = { {16 * 1024 * 1024, 1} },
16400 .block_erase = spi_block_erase_60,
16401 }, {
16402 .eraseblocks = { {16 * 1024 * 1024, 1} },
16403 .block_erase = spi_block_erase_c7,
16404 }
16405 },
Alan Greena1fc01d2019-09-23 17:12:44 +100016406 .printlock = spi_prettyprint_status_register_plain,
Patrick Rudolph34323492018-10-04 14:59:40 +020016407 .unlock = spi_disable_blockprotect,
16408 .write = spi_chip_write_256,
16409 .read = spi_chip_read,
16410 .voltage = {2700, 3600},
16411 },
16412
16413 {
16414 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100016415 .name = "W25Q128.W",
16416 .bustype = BUS_SPI,
16417 .manufacture_id = WINBOND_NEX_ID,
16418 .model_id = WINBOND_NEX_W25Q128_W,
16419 .total_size = 16384,
16420 .page_size = 256,
16421 /* supports SFDP */
16422 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
16423 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
16424 .tested = TEST_OK_PREW,
16425 .probe = probe_spi_rdid,
16426 .probe_timing = TIMING_ZERO,
16427 .block_erasers =
16428 {
16429 {
16430 .eraseblocks = { {4 * 1024, 4096} },
16431 .block_erase = spi_block_erase_20,
16432 }, {
16433 .eraseblocks = { {32 * 1024, 512} },
16434 .block_erase = spi_block_erase_52,
16435 }, {
16436 .eraseblocks = { {64 * 1024, 256} },
16437 .block_erase = spi_block_erase_d8,
16438 }, {
16439 .eraseblocks = { {16 * 1024 * 1024, 1} },
16440 .block_erase = spi_block_erase_60,
16441 }, {
16442 .eraseblocks = { {16 * 1024 * 1024, 1} },
16443 .block_erase = spi_block_erase_c7,
16444 }
16445 },
16446 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16447 .unlock = spi_disable_blockprotect,
16448 .write = spi_chip_write_256,
16449 .read = spi_chip_read,
16450 .voltage = {1650, 1950},
16451 },
16452
16453 {
16454 .vendor = "Winbond",
Peichao Wang1a119492019-11-11 15:26:41 +080016455 .name = "W25Q128.JW.DTR",
16456 .bustype = BUS_SPI,
16457 .manufacture_id = WINBOND_NEX_ID,
16458 .model_id = WINBOND_NEX_W25Q128_DTR,
16459 .total_size = 16384,
16460 .page_size = 256,
16461 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
16462 .tested = TEST_OK_PREW,
16463 .probe = probe_spi_rdid,
16464 .probe_timing = TIMING_ZERO,
16465 .block_erasers =
16466 {
16467 {
16468 .eraseblocks = { {4 * 1024, 4096} },
16469 .block_erase = spi_block_erase_20,
16470 }, {
16471 .eraseblocks = { {32 * 1024, 512} },
16472 .block_erase = spi_block_erase_52,
16473 }, {
16474 .eraseblocks = { {64 * 1024, 256} },
16475 .block_erase = spi_block_erase_d8,
16476 }, {
16477 .eraseblocks = { {16 * 1024 * 1024, 1} },
16478 .block_erase = spi_block_erase_60,
16479 }, {
16480 .eraseblocks = { {16 * 1024 * 1024, 1} },
16481 .block_erase = spi_block_erase_c7,
16482 }
16483 },
16484 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16485 .unlock = spi_disable_blockprotect,
16486 .write = spi_chip_write_256,
16487 .read = spi_chip_read,
16488 .voltage = {1650, 1950},
16489 },
16490
16491 {
16492 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100016493 .name = "W25Q16.V",
16494 .bustype = BUS_SPI,
16495 .manufacture_id = WINBOND_NEX_ID,
16496 .model_id = WINBOND_NEX_W25Q16_V,
16497 .total_size = 2048,
16498 .page_size = 256,
16499 /* supports SFDP */
16500 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
16501 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16502 .tested = TEST_OK_PREW,
16503 .probe = probe_spi_rdid,
16504 .probe_timing = TIMING_ZERO,
16505 .block_erasers =
16506 {
16507 {
16508 .eraseblocks = { {4 * 1024, 512} },
16509 .block_erase = spi_block_erase_20,
16510 }, {
16511 .eraseblocks = { {32 * 1024, 64} },
16512 .block_erase = spi_block_erase_52,
16513 }, {
16514 .eraseblocks = { {64 * 1024, 32} },
16515 .block_erase = spi_block_erase_d8,
16516 }, {
16517 .eraseblocks = { {2 * 1024 * 1024, 1} },
16518 .block_erase = spi_block_erase_60,
16519 }, {
16520 .eraseblocks = { {2 * 1024 * 1024, 1} },
16521 .block_erase = spi_block_erase_c7,
16522 }
16523 },
16524 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16525 .unlock = spi_disable_blockprotect,
16526 .write = spi_chip_write_256,
16527 .read = spi_chip_read,
16528 .voltage = {2700, 3600},
16529 },
16530
16531 {
16532 .vendor = "Winbond",
16533 .name = "W25Q16.W",
16534 .bustype = BUS_SPI,
16535 .manufacture_id = WINBOND_NEX_ID,
16536 .model_id = WINBOND_NEX_W25Q16_W,
16537 .total_size = 2048,
16538 .page_size = 256,
16539 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
16540 /* QPI enable 0x38, disable 0xFF */
16541 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
16542 .tested = TEST_UNTESTED,
16543 .probe = probe_spi_rdid,
16544 .probe_timing = TIMING_ZERO,
16545 .block_erasers =
16546 {
16547 {
16548 .eraseblocks = { {4 * 1024, 512} },
16549 .block_erase = spi_block_erase_20,
16550 }, {
16551 .eraseblocks = { {32 * 1024, 64} },
16552 .block_erase = spi_block_erase_52,
16553 }, {
16554 .eraseblocks = { {64 * 1024, 32} },
16555 .block_erase = spi_block_erase_d8,
16556 }, {
16557 .eraseblocks = { {2 * 1024 * 1024, 1} },
16558 .block_erase = spi_block_erase_60,
16559 }, {
16560 .eraseblocks = { {2 * 1024 * 1024, 1} },
16561 .block_erase = spi_block_erase_c7,
16562 }
16563 },
16564 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16565 .unlock = spi_disable_blockprotect,
16566 .write = spi_chip_write_256,
16567 .read = spi_chip_read,
16568 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
16569 },
16570
16571 {
16572 .vendor = "Winbond",
16573 .name = "W25Q20.W",
16574 .bustype = BUS_SPI,
16575 .manufacture_id = WINBOND_NEX_ID,
16576 .model_id = WINBOND_NEX_W25Q20_W,
16577 .total_size = 256,
16578 .page_size = 256,
16579 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
16580 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16581 .tested = TEST_UNTESTED,
16582 .probe = probe_spi_rdid,
16583 .probe_timing = TIMING_ZERO,
16584 .block_erasers =
16585 {
16586 {
16587 .eraseblocks = { {4 * 1024, 64} },
16588 .block_erase = spi_block_erase_20,
16589 }, {
16590 .eraseblocks = { {32 * 1024, 8} },
16591 .block_erase = spi_block_erase_52,
16592 }, {
16593 .eraseblocks = { {64 * 1024, 4} },
16594 .block_erase = spi_block_erase_d8,
16595 }, {
16596 .eraseblocks = { {256 * 1024, 1} },
16597 .block_erase = spi_block_erase_60,
16598 }, {
16599 .eraseblocks = { {256 * 1024, 1} },
16600 .block_erase = spi_block_erase_c7,
16601 }
16602 },
16603 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16604 .unlock = spi_disable_blockprotect,
16605 .write = spi_chip_write_256,
16606 .read = spi_chip_read,
16607 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
16608 },
16609
16610 {
16611 .vendor = "Winbond",
Boris Baykovaa6c3742016-06-11 18:29:01 +020016612 .name = "W25Q256.V",
16613 .bustype = BUS_SPI,
16614 .manufacture_id = WINBOND_NEX_ID,
16615 .model_id = WINBOND_NEX_W25Q256_V,
16616 .total_size = 32768,
16617 .page_size = 256,
16618 /* supports SFDP */
16619 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
16620 /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */
Nico Huberaac81422017-11-10 22:54:13 +010016621 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_ENTER_WREN
16622 | FEATURE_4BA_EXT_ADDR | FEATURE_4BA_READ | FEATURE_4BA_FAST_READ,
Angel Pons3130cbd2018-09-30 19:32:30 +020016623 .tested = TEST_OK_PREW,
Boris Baykovaa6c3742016-06-11 18:29:01 +020016624 .probe = probe_spi_rdid,
16625 .probe_timing = TIMING_ZERO,
16626 .block_erasers =
16627 {
16628 {
16629 .eraseblocks = { {4 * 1024, 8192} },
Nico Huber7a077222017-10-14 18:18:30 +020016630 .block_erase = spi_block_erase_20,
Boris Baykovaa6c3742016-06-11 18:29:01 +020016631 }, {
16632 .eraseblocks = { {32 * 1024, 1024} },
Nico Huber7a077222017-10-14 18:18:30 +020016633 .block_erase = spi_block_erase_52,
Boris Baykovaa6c3742016-06-11 18:29:01 +020016634 }, {
16635 .eraseblocks = { {64 * 1024, 512} },
Nico Huber7a077222017-10-14 18:18:30 +020016636 .block_erase = spi_block_erase_d8,
Boris Baykovaa6c3742016-06-11 18:29:01 +020016637 }, {
16638 .eraseblocks = { {32 * 1024 * 1024, 1} },
16639 .block_erase = spi_block_erase_60,
16640 }, {
16641 .eraseblocks = { {32 * 1024 * 1024, 1} },
16642 .block_erase = spi_block_erase_c7,
16643 }
16644 },
16645 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16646 .unlock = spi_disable_blockprotect,
16647 .write = spi_chip_write_256,
16648 .read = spi_chip_read,
16649 .voltage = {2700, 3600},
16650 },
16651
16652 {
16653 .vendor = "Winbond",
David Hendricks49876792018-10-27 20:19:42 +000016654 .name = "W25Q256JV_M",
16655 .bustype = BUS_SPI,
16656 .manufacture_id = WINBOND_NEX_ID,
16657 .model_id = WINBOND_NEX_W25Q256JV_M,
16658 .total_size = 32768,
16659 .page_size = 256,
16660 /* supports SFDP */
16661 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
16662 /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */
16663 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
16664 .tested = TEST_OK_PREW,
16665 .probe = probe_spi_rdid,
16666 .probe_timing = TIMING_ZERO,
16667 .block_erasers =
16668 {
16669 {
16670 .eraseblocks = { {4 * 1024, 8192} },
16671 .block_erase = spi_block_erase_21,
16672 }, {
16673 .eraseblocks = { {4 * 1024, 8192} },
16674 .block_erase = spi_block_erase_20,
16675 }, {
16676 .eraseblocks = { {32 * 1024, 1024} },
16677 .block_erase = spi_block_erase_52,
16678 }, {
16679 .eraseblocks = { {64 * 1024, 512} },
16680 .block_erase = spi_block_erase_dc,
16681 }, {
16682 .eraseblocks = { {64 * 1024, 512} },
16683 .block_erase = spi_block_erase_d8,
16684 }, {
16685 .eraseblocks = { {32 * 1024 * 1024, 1} },
16686 .block_erase = spi_block_erase_60,
16687 }, {
16688 .eraseblocks = { {32 * 1024 * 1024, 1} },
16689 .block_erase = spi_block_erase_c7,
16690 }
16691 },
16692 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16693 .unlock = spi_disable_blockprotect,
16694 .write = spi_chip_write_256,
16695 .read = spi_chip_read,
16696 .voltage = {2700, 3600},
16697 },
16698
16699 {
16700 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100016701 .name = "W25Q32.V",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016702 .bustype = BUS_SPI,
16703 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016704 .model_id = WINBOND_NEX_W25Q32_V,
16705 .total_size = 4096,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016706 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016707 /* supports SFDP */
16708 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016709 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016710 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016711 .probe = probe_spi_rdid,
16712 .probe_timing = TIMING_ZERO,
16713 .block_erasers =
16714 {
16715 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016716 .eraseblocks = { {4 * 1024, 1024} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016717 .block_erase = spi_block_erase_20,
16718 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016719 .eraseblocks = { {32 * 1024, 128} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016720 .block_erase = spi_block_erase_52,
16721 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016722 .eraseblocks = { {64 * 1024, 64} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016723 .block_erase = spi_block_erase_d8,
16724 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016725 .eraseblocks = { {4 * 1024 * 1024, 1} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016726 .block_erase = spi_block_erase_60,
16727 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016728 .eraseblocks = { {4 * 1024 * 1024, 1} },
16729 .block_erase = spi_block_erase_c7,
16730 }
16731 },
16732 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16733 .unlock = spi_disable_blockprotect,
16734 .write = spi_chip_write_256,
16735 .read = spi_chip_read,
16736 .voltage = {2700, 3600},
16737 },
16738
16739 {
16740 .vendor = "Winbond",
16741 .name = "W25Q32.W",
16742 .bustype = BUS_SPI,
16743 .manufacture_id = WINBOND_NEX_ID,
16744 .model_id = WINBOND_NEX_W25Q32_W,
16745 .total_size = 4096,
16746 .page_size = 256,
16747 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
16748 /* QPI enable 0x38, disable 0xFF */
16749 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
16750 .tested = TEST_OK_PREW,
16751 .probe = probe_spi_rdid,
16752 .probe_timing = TIMING_ZERO,
16753 .block_erasers =
16754 {
16755 {
16756 .eraseblocks = { {4 * 1024, 1024} },
16757 .block_erase = spi_block_erase_20,
16758 }, {
16759 .eraseblocks = { {32 * 1024, 128} },
16760 .block_erase = spi_block_erase_52,
16761 }, {
16762 .eraseblocks = { {64 * 1024, 64} },
16763 .block_erase = spi_block_erase_d8,
16764 }, {
16765 .eraseblocks = { {4 * 1024 * 1024, 1} },
16766 .block_erase = spi_block_erase_60,
16767 }, {
16768 .eraseblocks = { {4 * 1024 * 1024, 1} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016769 .block_erase = spi_block_erase_c7,
16770 }
16771 },
16772 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16773 .unlock = spi_disable_blockprotect,
16774 .write = spi_chip_write_256,
16775 .read = spi_chip_read,
16776 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
16777 },
16778
16779 {
16780 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100016781 .name = "W25Q40.V",
16782 .bustype = BUS_SPI,
16783 .manufacture_id = WINBOND_NEX_ID,
16784 .model_id = WINBOND_NEX_W25Q40_V,
16785 .total_size = 512,
16786 .page_size = 256,
16787 /* supports SFDP */
16788 /* OTP: 756B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
16789 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16790 .tested = TEST_OK_PREW,
16791 .probe = probe_spi_rdid,
16792 .probe_timing = TIMING_ZERO,
16793 .block_erasers =
16794 {
16795 {
16796 .eraseblocks = { {4 * 1024, 128} },
16797 .block_erase = spi_block_erase_20,
16798 }, {
16799 .eraseblocks = { {32 * 1024, 16} },
16800 .block_erase = spi_block_erase_52,
16801 }, {
16802 .eraseblocks = { {64 * 1024, 8} },
16803 .block_erase = spi_block_erase_d8,
16804 }, {
16805 .eraseblocks = { {512 * 1024, 1} },
16806 .block_erase = spi_block_erase_60,
16807 }, {
16808 .eraseblocks = { {512 * 1024, 1} },
16809 .block_erase = spi_block_erase_c7,
16810 }
16811 },
16812 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16813 .unlock = spi_disable_blockprotect,
16814 .write = spi_chip_write_256, /* Multi I/O supported */
16815 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16816 .voltage = {2700, 3600},
16817 },
16818
16819 {
16820 .vendor = "Winbond",
Nico Huber25683572018-03-30 13:50:13 +020016821 .name = "W25Q40BW",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016822 .bustype = BUS_SPI,
16823 .manufacture_id = WINBOND_NEX_ID,
Nico Huber25683572018-03-30 13:50:13 +020016824 .model_id = WINBOND_NEX_W25Q40BW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016825 .total_size = 512,
16826 .page_size = 256,
16827 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
16828 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Angel Pons3164a0c2018-09-30 20:26:06 +020016829 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016830 .probe = probe_spi_rdid,
16831 .probe_timing = TIMING_ZERO,
16832 .block_erasers =
16833 {
16834 {
16835 .eraseblocks = { {4 * 1024, 128} },
16836 .block_erase = spi_block_erase_20,
16837 }, {
16838 .eraseblocks = { {32 * 1024, 16} },
16839 .block_erase = spi_block_erase_52,
16840 }, {
16841 .eraseblocks = { {64 * 1024, 8} },
16842 .block_erase = spi_block_erase_d8,
16843 }, {
16844 .eraseblocks = { {512 * 1024, 1} },
16845 .block_erase = spi_block_erase_60,
16846 }, {
16847 .eraseblocks = { {512 * 1024, 1} },
16848 .block_erase = spi_block_erase_c7,
16849 }
16850 },
16851 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16852 .unlock = spi_disable_blockprotect,
16853 .write = spi_chip_write_256,
16854 .read = spi_chip_read,
16855 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
16856 },
16857
16858 {
16859 .vendor = "Winbond",
Nico Huber25683572018-03-30 13:50:13 +020016860 .name = "W25Q40EW",
16861 .bustype = BUS_SPI,
16862 .manufacture_id = WINBOND_NEX_ID,
16863 .model_id = WINBOND_NEX_W25Q40EW,
16864 .total_size = 512,
16865 .page_size = 256,
16866 /* OTP: 3*256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
16867 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Alan Green07b8a172019-09-23 16:47:05 +100016868 .tested = TEST_OK_PREW,
Nico Huber25683572018-03-30 13:50:13 +020016869 .probe = probe_spi_rdid,
16870 .probe_timing = TIMING_ZERO,
16871 .block_erasers =
16872 {
16873 {
16874 .eraseblocks = { {4 * 1024, 128} },
16875 .block_erase = spi_block_erase_20,
16876 }, {
16877 .eraseblocks = { {32 * 1024, 16} },
16878 .block_erase = spi_block_erase_52,
16879 }, {
16880 .eraseblocks = { {64 * 1024, 8} },
16881 .block_erase = spi_block_erase_d8,
16882 }, {
16883 .eraseblocks = { {512 * 1024, 1} },
16884 .block_erase = spi_block_erase_60,
16885 }, {
16886 .eraseblocks = { {512 * 1024, 1} },
16887 .block_erase = spi_block_erase_c7,
16888 }
16889 },
16890 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16891 .unlock = spi_disable_blockprotect,
16892 .write = spi_chip_write_256,
16893 .read = spi_chip_read,
16894 .voltage = {1650, 1950}, /* Fast read (0x0B) and multi I/O supported */
16895 },
16896
Stanislav Sedovf5775442018-03-07 14:16:51 -080016897 {
16898 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100016899 .name = "W25Q64.V",
Stanislav Sedovf5775442018-03-07 14:16:51 -080016900 .bustype = BUS_SPI,
16901 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016902 .model_id = WINBOND_NEX_W25Q64_V,
16903 .total_size = 8192,
Stanislav Sedovf5775442018-03-07 14:16:51 -080016904 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016905 /* supports SFDP */
16906 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Stanislav Sedovf5775442018-03-07 14:16:51 -080016907 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16908 .tested = TEST_OK_PREW,
16909 .probe = probe_spi_rdid,
16910 .probe_timing = TIMING_ZERO,
16911 .block_erasers =
16912 {
16913 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016914 .eraseblocks = { {4 * 1024, 2048} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080016915 .block_erase = spi_block_erase_20,
16916 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016917 .eraseblocks = { {32 * 1024, 256} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080016918 .block_erase = spi_block_erase_52,
16919 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016920 .eraseblocks = { {64 * 1024, 128} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080016921 .block_erase = spi_block_erase_d8,
16922 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016923 .eraseblocks = { {8 * 1024 * 1024, 1} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080016924 .block_erase = spi_block_erase_60,
16925 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016926 .eraseblocks = { {8 * 1024 * 1024, 1} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080016927 .block_erase = spi_block_erase_c7,
16928 }
16929 },
16930 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16931 .unlock = spi_disable_blockprotect,
16932 .write = spi_chip_write_256,
16933 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016934 .voltage = {2700, 3600},
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016935 },
16936
16937 {
16938 .vendor = "Winbond",
16939 .name = "W25Q64.W",
16940 .bustype = BUS_SPI,
16941 .manufacture_id = WINBOND_NEX_ID,
16942 .model_id = WINBOND_NEX_W25Q64_W,
16943 .total_size = 8192,
16944 .page_size = 256,
16945 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
16946 /* QPI enable 0x38, disable 0xFF */
16947 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner0554ca52013-07-25 22:54:25 +000016948 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016949 .probe = probe_spi_rdid,
16950 .probe_timing = TIMING_ZERO,
16951 .block_erasers =
16952 {
16953 {
16954 .eraseblocks = { {4 * 1024, 2048} },
16955 .block_erase = spi_block_erase_20,
16956 }, {
16957 .eraseblocks = { {32 * 1024, 256} },
16958 .block_erase = spi_block_erase_52,
16959 }, {
16960 .eraseblocks = { {64 * 1024, 128} },
16961 .block_erase = spi_block_erase_d8,
16962 }, {
16963 .eraseblocks = { {8 * 1024 * 1024, 1} },
16964 .block_erase = spi_block_erase_60,
16965 }, {
16966 .eraseblocks = { {8 * 1024 * 1024, 1} },
16967 .block_erase = spi_block_erase_c7,
16968 }
16969 },
16970 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16971 .unlock = spi_disable_blockprotect,
16972 .write = spi_chip_write_256,
16973 .read = spi_chip_read,
16974 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
Antony Rheneus0fbba982011-05-26 14:28:51 +000016975 },
16976
16977 {
16978 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100016979 .name = "W25Q80.V",
Nico Huber70eed9f2017-04-24 22:19:27 +020016980 .bustype = BUS_SPI,
16981 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016982 .model_id = WINBOND_NEX_W25Q80_V,
16983 .total_size = 1024,
Nico Huber70eed9f2017-04-24 22:19:27 +020016984 .page_size = 256,
16985 /* supports SFDP */
16986 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Alan Green1f9cc7d2019-07-01 11:10:45 +100016987 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks48729d32017-12-08 14:44:07 -080016988 .tested = TEST_OK_PREW,
Nico Huber70eed9f2017-04-24 22:19:27 +020016989 .probe = probe_spi_rdid,
16990 .probe_timing = TIMING_ZERO,
16991 .block_erasers =
16992 {
16993 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016994 .eraseblocks = { {4 * 1024, 256} },
Nico Huber70eed9f2017-04-24 22:19:27 +020016995 .block_erase = spi_block_erase_20,
16996 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016997 .eraseblocks = { {32 * 1024, 32} },
Nico Huber70eed9f2017-04-24 22:19:27 +020016998 .block_erase = spi_block_erase_52,
16999 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017000 .eraseblocks = { {64 * 1024, 16} },
Nico Huber70eed9f2017-04-24 22:19:27 +020017001 .block_erase = spi_block_erase_d8,
17002 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017003 .eraseblocks = { {1024 * 1024, 1} },
Nico Huber70eed9f2017-04-24 22:19:27 +020017004 .block_erase = spi_block_erase_60,
17005 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017006 .eraseblocks = { {1024 * 1024, 1} },
Nico Huber70eed9f2017-04-24 22:19:27 +020017007 .block_erase = spi_block_erase_c7,
17008 }
17009 },
17010 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17011 .unlock = spi_disable_blockprotect,
17012 .write = spi_chip_write_256,
17013 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017014 .voltage = {2700, 3600},
17015 },
17016
17017 {
17018 .vendor = "Winbond",
17019 .name = "W25Q80BW",
17020 .bustype = BUS_SPI,
17021 .manufacture_id = WINBOND_NEX_ID,
17022 .model_id = WINBOND_NEX_W25Q80BW,
17023 .total_size = 1024,
17024 .page_size = 256,
17025 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17026 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17027 .tested = TEST_OK_PREW,
17028 .probe = probe_spi_rdid,
17029 .probe_timing = TIMING_ZERO,
17030 .block_erasers =
17031 {
17032 {
17033 .eraseblocks = { {4 * 1024, 256} },
17034 .block_erase = spi_block_erase_20,
17035 }, {
17036 .eraseblocks = { {32 * 1024, 32} },
17037 .block_erase = spi_block_erase_52,
17038 }, {
17039 .eraseblocks = { {64 * 1024, 16} },
17040 .block_erase = spi_block_erase_d8,
17041 }, {
17042 .eraseblocks = { {1 * 1024 * 1024, 1} },
17043 .block_erase = spi_block_erase_60,
17044 }, {
17045 .eraseblocks = { {1 * 1024 * 1024, 1} },
17046 .block_erase = spi_block_erase_c7,
17047 }
17048 },
17049 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17050 .unlock = spi_disable_blockprotect,
17051 .write = spi_chip_write_256,
17052 .read = spi_chip_read,
17053 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
17054 },
17055
17056 {
17057 .vendor = "Winbond",
17058 .name = "W25Q80EW",
17059 .bustype = BUS_SPI,
17060 .manufacture_id = WINBOND_NEX_ID,
17061 .model_id = WINBOND_NEX_W25Q80EW,
17062 .total_size = 1024,
17063 .page_size = 256,
17064 /* OTP: 3*256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17065 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17066 .tested = TEST_OK_PREW,
17067 .probe = probe_spi_rdid,
17068 .probe_timing = TIMING_ZERO,
17069 .block_erasers =
17070 {
17071 {
17072 .eraseblocks = { {4 * 1024, 256} },
17073 .block_erase = spi_block_erase_20,
17074 }, {
17075 .eraseblocks = { {32 * 1024, 32} },
17076 .block_erase = spi_block_erase_52,
17077 }, {
17078 .eraseblocks = { {64 * 1024, 16} },
17079 .block_erase = spi_block_erase_d8,
17080 }, {
17081 .eraseblocks = { {1 * 1024 * 1024, 1} },
17082 .block_erase = spi_block_erase_60,
17083 }, {
17084 .eraseblocks = { {1 * 1024 * 1024, 1} },
17085 .block_erase = spi_block_erase_c7,
17086 }
17087 },
17088 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17089 .unlock = spi_disable_blockprotect,
17090 .write = spi_chip_write_256,
17091 .read = spi_chip_read,
17092 .voltage = {1650, 1950}, /* Fast read (0x0B) and multi I/O supported */
Nico Huber70eed9f2017-04-24 22:19:27 +020017093 },
17094
17095 {
17096 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000017097 .name = "W25X10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017098 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017099 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017100 .model_id = WINBOND_NEX_W25X10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017101 .total_size = 128,
17102 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000017103 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +000017104 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017105 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000017106 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017107 .block_erasers =
17108 {
17109 {
17110 .eraseblocks = { {4 * 1024, 32} },
17111 .block_erase = spi_block_erase_20,
17112 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017113 .eraseblocks = { {64 * 1024, 2} },
17114 .block_erase = spi_block_erase_d8,
17115 }, {
17116 .eraseblocks = { {128 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017117 .block_erase = spi_block_erase_c7,
17118 }
17119 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000017120 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000017121 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000017122 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017123 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017124 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000017125 },
17126
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017127 {
17128 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000017129 .name = "W25X16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017130 .bustype = BUS_SPI,
Hector Martina721ae22009-07-11 19:39:11 +000017131 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017132 .model_id = WINBOND_NEX_W25X16,
Hector Martina721ae22009-07-11 19:39:11 +000017133 .total_size = 2048,
17134 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000017135 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +000017136 .tested = TEST_OK_PREW,
Hector Martina721ae22009-07-11 19:39:11 +000017137 .probe = probe_spi_rdid,
17138 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017139 .block_erasers =
17140 {
17141 {
17142 .eraseblocks = { {4 * 1024, 512} },
17143 .block_erase = spi_block_erase_20,
17144 }, {
17145 .eraseblocks = { {32 * 1024, 64} },
17146 .block_erase = spi_block_erase_52,
17147 }, {
17148 .eraseblocks = { {64 * 1024, 32} },
17149 .block_erase = spi_block_erase_d8,
17150 }, {
17151 .eraseblocks = { {2 * 1024 * 1024, 1} },
17152 .block_erase = spi_block_erase_60,
17153 }, {
17154 .eraseblocks = { {2 * 1024 * 1024, 1} },
17155 .block_erase = spi_block_erase_c7,
17156 }
17157 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000017158 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000017159 .unlock = spi_disable_blockprotect,
Hector Martina721ae22009-07-11 19:39:11 +000017160 .write = spi_chip_write_256,
17161 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017162 .voltage = {2700, 3600},
Hector Martina721ae22009-07-11 19:39:11 +000017163 },
17164
17165 {
17166 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017167 .name = "W25X20",
17168 .bustype = BUS_SPI,
17169 .manufacture_id = WINBOND_NEX_ID,
17170 .model_id = WINBOND_NEX_W25X20,
17171 .total_size = 256,
17172 .page_size = 256,
17173 .feature_bits = FEATURE_WRSR_WREN,
17174 .tested = TEST_OK_PREW,
17175 .probe = probe_spi_rdid,
17176 .probe_timing = TIMING_ZERO,
17177 .block_erasers =
17178 {
17179 {
17180 .eraseblocks = { {4 * 1024, 64} },
17181 .block_erase = spi_block_erase_20,
17182 }, {
17183 .eraseblocks = { {64 * 1024, 4} },
17184 .block_erase = spi_block_erase_d8,
17185 }, {
17186 .eraseblocks = { {256 * 1024, 1} },
17187 .block_erase = spi_block_erase_c7,
17188 }
17189 },
17190 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17191 .unlock = spi_disable_blockprotect,
17192 .write = spi_chip_write_256,
17193 .read = spi_chip_read,
17194 .voltage = {2700, 3600},
17195 },
17196
17197 {
17198 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000017199 .name = "W25X32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017200 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000017201 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017202 .model_id = WINBOND_NEX_W25X32,
Zheng Bao1db2b752009-11-26 11:05:01 +000017203 .total_size = 4096,
17204 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000017205 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000017206 .tested = TEST_OK_PREW,
Zheng Bao1db2b752009-11-26 11:05:01 +000017207 .probe = probe_spi_rdid,
17208 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017209 .block_erasers =
17210 {
17211 {
17212 .eraseblocks = { {4 * 1024, 1024} },
17213 .block_erase = spi_block_erase_20,
17214 }, {
17215 .eraseblocks = { {32 * 1024, 128} },
17216 .block_erase = spi_block_erase_52,
17217 }, {
17218 .eraseblocks = { {64 * 1024, 64} },
17219 .block_erase = spi_block_erase_d8,
17220 }, {
17221 .eraseblocks = { {4 * 1024 * 1024, 1} },
17222 .block_erase = spi_block_erase_60,
17223 }, {
17224 .eraseblocks = { {4 * 1024 * 1024, 1} },
17225 .block_erase = spi_block_erase_c7,
17226 }
17227 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000017228 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000017229 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000017230 .write = spi_chip_write_256,
17231 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017232 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000017233 },
17234
17235 {
17236 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017237 .name = "W25X40",
17238 .bustype = BUS_SPI,
17239 .manufacture_id = WINBOND_NEX_ID,
17240 .model_id = WINBOND_NEX_W25X40,
17241 .total_size = 512,
17242 .page_size = 256,
17243 .feature_bits = FEATURE_WRSR_WREN,
17244 .tested = TEST_OK_PREW,
17245 .probe = probe_spi_rdid,
17246 .probe_timing = TIMING_ZERO,
17247 .block_erasers =
17248 {
17249 {
17250 .eraseblocks = { {4 * 1024, 128} },
17251 .block_erase = spi_block_erase_20,
17252 }, {
17253 .eraseblocks = { {64 * 1024, 8} },
17254 .block_erase = spi_block_erase_d8,
17255 }, {
17256 .eraseblocks = { {512 * 1024, 1} },
17257 .block_erase = spi_block_erase_c7,
17258 }
17259 },
17260 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17261 .unlock = spi_disable_blockprotect,
17262 .write = spi_chip_write_256,
17263 .read = spi_chip_read,
17264 .voltage = {2700, 3600},
17265 },
17266
17267 {
17268 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000017269 .name = "W25X64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017270 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000017271 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017272 .model_id = WINBOND_NEX_W25X64,
Zheng Bao1db2b752009-11-26 11:05:01 +000017273 .total_size = 8192,
17274 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000017275 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000017276 .tested = TEST_OK_PREW,
Zheng Bao1db2b752009-11-26 11:05:01 +000017277 .probe = probe_spi_rdid,
17278 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017279 .block_erasers =
17280 {
17281 {
17282 .eraseblocks = { {4 * 1024, 2048} },
17283 .block_erase = spi_block_erase_20,
17284 }, {
17285 .eraseblocks = { {32 * 1024, 256} },
17286 .block_erase = spi_block_erase_52,
17287 }, {
17288 .eraseblocks = { {64 * 1024, 128} },
17289 .block_erase = spi_block_erase_d8,
17290 }, {
17291 .eraseblocks = { {8 * 1024 * 1024, 1} },
17292 .block_erase = spi_block_erase_60,
17293 }, {
17294 .eraseblocks = { {8 * 1024 * 1024, 1} },
17295 .block_erase = spi_block_erase_c7,
17296 }
17297 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000017298 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000017299 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000017300 .write = spi_chip_write_256,
17301 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017302 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000017303 },
17304
17305 {
Alan Greenfa3fcd32019-06-27 15:41:50 +100017306 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017307 .name = "W25X80",
Alan Greenfa3fcd32019-06-27 15:41:50 +100017308 .bustype = BUS_SPI,
17309 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017310 .model_id = WINBOND_NEX_W25X80,
Alan Greenfa3fcd32019-06-27 15:41:50 +100017311 .total_size = 1024,
17312 .page_size = 256,
17313 .feature_bits = FEATURE_WRSR_WREN,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017314 .tested = TEST_OK_PREW,
Alan Greenfa3fcd32019-06-27 15:41:50 +100017315 .probe = probe_spi_rdid,
17316 .probe_timing = TIMING_ZERO,
17317 .block_erasers =
David Hendricksc9ee0ed2018-02-11 17:40:53 -080017318 {
17319 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017320 .eraseblocks = { {4 * 1024, 256} },
17321 .block_erase = spi_block_erase_20,
17322 }, {
David Hendricksc9ee0ed2018-02-11 17:40:53 -080017323 .eraseblocks = { {64 * 1024, 16} },
17324 .block_erase = spi_block_erase_d8,
17325 }, {
17326 .eraseblocks = { {1024 * 1024, 1} },
17327 .block_erase = spi_block_erase_c7,
17328 }
17329 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100017330 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17331 .unlock = spi_disable_blockprotect,
17332 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017333 .read = spi_chip_read,
Alan Greenfa3fcd32019-06-27 15:41:50 +100017334 .voltage = {2700, 3600},
David Hendricksc9ee0ed2018-02-11 17:40:53 -080017335 },
17336
Alan Greenf29ea362019-06-27 17:14:02 +100017337 /* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */
17338 {
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000017339 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000017340 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017341 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017342 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017343 .model_id = WINBOND_W29C010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017344 .total_size = 128,
17345 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000017346 .feature_bits = FEATURE_LONG_RESET,
David Hendricks567b7b82011-05-18 01:31:03 +000017347 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017348 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000017349 .probe_timing = 10, /* used datasheet for the W29C011A */
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017350 .block_erasers =
17351 {
17352 {
17353 .eraseblocks = { {128 * 1024, 1} },
17354 .block_erase = erase_chip_block_jedec,
17355 }
17356 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017357 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017358 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000017359 },
17360
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017361 {
17362 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017363 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old",
17364 .bustype = BUS_PARALLEL,
17365 .manufacture_id = WINBOND_ID,
17366 .model_id = WINBOND_W29C010,
17367 .total_size = 128,
17368 .page_size = 128,
17369 .feature_bits = FEATURE_LONG_RESET,
17370 .tested = TEST_OK_PREW,
17371 .probe = probe_w29ee011,
17372 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */
17373 .block_erasers =
17374 {
17375 {
17376 .eraseblocks = { {128 * 1024, 1} },
17377 .block_erase = erase_chip_block_jedec,
17378 }
17379 },
17380 .write = write_jedec,
17381 .read = read_memmapped,
17382 },
17383
17384 {
17385 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000017386 .name = "W29C020(C)/W29C022",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017387 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017388 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017389 .model_id = WINBOND_W29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017390 .total_size = 256,
17391 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000017392 .feature_bits = FEATURE_LONG_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000017393 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017394 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000017395 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017396 .block_erasers =
17397 {
17398 {
17399 .eraseblocks = { {256 * 1024, 1} },
17400 .block_erase = erase_chip_block_jedec,
17401 }
17402 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017403 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017404 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017405 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000017406 },
17407
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017408 {
17409 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000017410 .name = "W29C040/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017411 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017412 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017413 .model_id = WINBOND_W29C040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017414 .total_size = 512,
17415 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000017416 .feature_bits = FEATURE_LONG_RESET,
17417 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017418 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000017419 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017420 .block_erasers =
17421 {
17422 {
17423 .eraseblocks = { {512 * 1024, 1} },
17424 .block_erase = erase_chip_block_jedec,
17425 }
17426 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017427 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017428 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017429 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000017430 },
17431
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017432 {
17433 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017434 .name = "W29C512A/W29EE512",
17435 .bustype = BUS_PARALLEL,
17436 .manufacture_id = WINBOND_ID,
17437 .model_id = WINBOND_W29C512A,
17438 .total_size = 64,
17439 .page_size = 128,
17440 .feature_bits = FEATURE_LONG_RESET,
17441 .tested = TEST_OK_PREW,
17442 .probe = probe_jedec,
17443 .probe_timing = 10,
17444 .block_erasers =
17445 {
17446 {
17447 .eraseblocks = { {64 * 1024, 1} },
17448 .block_erase = erase_chip_block_jedec,
17449 }
17450 },
17451 .write = write_jedec,
17452 .read = read_memmapped,
17453 .voltage = {4500, 5500},
17454 },
17455
17456 {
17457 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000017458 .name = "W29GL032CB",
17459 .bustype = BUS_PARALLEL,
17460 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
17461 .model_id = WINBOND_W29GL032CB,
17462 .total_size = 4096,
17463 .page_size = 128 * 1024, /* actual page size is 16 */
17464 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
17465 .tested = TEST_UNTESTED,
17466 .probe = probe_jedec_29gl,
17467 .probe_timing = TIMING_ZERO,
17468 .block_erasers =
17469 {
17470 {
17471 .eraseblocks = {
17472 {8 * 1024, 8},
17473 {64 * 1024, 63},
17474 },
17475 .block_erase = erase_sector_jedec,
17476 }, {
17477 .eraseblocks = { {4 * 1024 * 1024, 1} },
17478 .block_erase = erase_chip_block_jedec,
17479 },
17480 },
17481 .write = write_jedec_1,
17482 .read = read_memmapped,
17483 .voltage = {2700, 3600},
17484 },
17485
17486 {
17487 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017488 .name = "W29GL032CH/L",
17489 .bustype = BUS_PARALLEL,
17490 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
17491 .model_id = WINBOND_W29GL032CHL,
17492 .total_size = 4096,
17493 .page_size = 128 * 1024, /* actual page size is 16 */
17494 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
17495 .tested = TEST_UNTESTED,
17496 .probe = probe_jedec_29gl,
17497 .probe_timing = TIMING_ZERO,
17498 .block_erasers =
17499 {
17500 {
17501 .eraseblocks = { {64 * 1024, 64} },
17502 .block_erase = erase_sector_jedec,
17503 }, {
17504 .eraseblocks = { {4 * 1024 * 1024, 1} },
17505 .block_erase = erase_chip_block_jedec,
17506 },
17507 },
17508 .write = write_jedec_1,
17509 .read = read_memmapped,
17510 .voltage = {2700, 3600},
17511 },
17512
17513 {
17514 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000017515 .name = "W29GL032CT",
17516 .bustype = BUS_PARALLEL,
17517 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
17518 .model_id = WINBOND_W29GL032CT,
17519 .total_size = 4096,
17520 .page_size = 128 * 1024, /* actual page size is 16 */
17521 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
17522 .tested = TEST_UNTESTED,
17523 .probe = probe_jedec_29gl,
17524 .probe_timing = TIMING_ZERO,
17525 .block_erasers =
17526 {
17527 {
17528 .eraseblocks = {
17529 {64 * 1024, 63},
17530 {8 * 1024, 8},
17531 },
17532 .block_erase = erase_sector_jedec,
17533 }, {
17534 .eraseblocks = { {4 * 1024 * 1024, 1} },
17535 .block_erase = erase_chip_block_jedec,
17536 },
17537 },
17538 .write = write_jedec_1,
17539 .read = read_memmapped,
17540 .voltage = {2700, 3600},
17541 },
17542
17543 {
17544 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000017545 .name = "W29GL064CB",
17546 .bustype = BUS_PARALLEL,
17547 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
17548 .model_id = WINBOND_W29GL064CB,
17549 .total_size = 8192,
17550 .page_size = 128 * 1024, /* actual page size is 16 */
17551 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
17552 .tested = TEST_UNTESTED,
17553 .probe = probe_jedec_29gl,
17554 .probe_timing = TIMING_ZERO,
17555 .block_erasers =
17556 {
17557 {
17558 .eraseblocks = {
17559 {8 * 1024, 8},
17560 {64 * 1024, 127},
17561 },
17562 .block_erase = erase_sector_jedec,
17563 }, {
17564 .eraseblocks = { {8 * 1024 * 1024, 1} },
17565 .block_erase = erase_chip_block_jedec,
17566 },
17567 },
17568 .write = write_jedec_1,
17569 .read = read_memmapped,
17570 .voltage = {2700, 3600},
17571 },
17572
17573 {
17574 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017575 .name = "W29GL064CH/L",
17576 .bustype = BUS_PARALLEL,
17577 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
17578 .model_id = WINBOND_W29GL064CHL,
17579 .total_size = 8192,
17580 .page_size = 128 * 1024, /* actual page size is 16 */
17581 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
17582 .tested = TEST_UNTESTED,
17583 .probe = probe_jedec_29gl,
17584 .probe_timing = TIMING_ZERO,
17585 .block_erasers =
17586 {
17587 {
17588 .eraseblocks = { {64 * 1024, 128} },
17589 .block_erase = erase_sector_jedec,
17590 }, {
17591 .eraseblocks = { {8 * 1024 * 1024, 1} },
17592 .block_erase = erase_chip_block_jedec,
17593 },
17594 },
17595 .write = write_jedec_1,
17596 .read = read_memmapped,
17597 .voltage = {2700, 3600},
17598 },
17599
17600 {
17601 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000017602 .name = "W29GL064CT",
17603 .bustype = BUS_PARALLEL,
17604 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
17605 .model_id = WINBOND_W29GL064CT,
17606 .total_size = 8192,
17607 .page_size = 128 * 1024, /* actual page size is 16 */
17608 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
17609 .tested = TEST_UNTESTED,
17610 .probe = probe_jedec_29gl,
17611 .probe_timing = TIMING_ZERO,
17612 .block_erasers =
17613 {
17614 {
17615 .eraseblocks = {
17616 {64 * 1024, 127},
17617 {8 * 1024, 8},
17618 },
17619 .block_erase = erase_sector_jedec,
17620 }, {
17621 .eraseblocks = { {8 * 1024 * 1024, 1} },
17622 .block_erase = erase_chip_block_jedec,
17623 },
17624 },
17625 .write = write_jedec_1,
17626 .read = read_memmapped,
17627 .voltage = {2700, 3600},
17628 },
17629
17630 {
17631 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000017632 .name = "W29GL128C",
17633 .bustype = BUS_PARALLEL,
17634 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
17635 .model_id = WINBOND_W29GL128CHL,
17636 .total_size = 16384,
17637 .page_size = 128 * 1024, /* actual page size is 16 */
17638 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
17639 .tested = TEST_UNTESTED,
17640 .probe = probe_jedec_29gl,
17641 .probe_timing = TIMING_ZERO,
17642 .block_erasers =
17643 {
17644 {
17645 .eraseblocks = { {128 * 1024, 128} },
17646 .block_erase = erase_sector_jedec,
17647 }, {
17648 .eraseblocks = { {16 * 1024 * 1024, 1} },
17649 .block_erase = erase_chip_block_jedec,
17650 },
17651 },
17652 .write = write_jedec_1,
17653 .read = read_memmapped,
17654 .voltage = {2700, 3600},
17655 },
17656
17657 {
17658 .vendor = "Winbond",
Kyösti Mälkkic31243e2012-10-28 01:50:08 +000017659 .name = "W39F010",
17660 .bustype = BUS_PARALLEL,
17661 .manufacture_id = WINBOND_ID,
17662 .model_id = WINBOND_W39F010,
17663 .total_size = 128,
17664 .page_size = 4 * 1024,
17665 .feature_bits = FEATURE_EITHER_RESET,
17666 .tested = TEST_OK_PREW,
17667 .probe = probe_jedec,
17668 .probe_timing = 10,
17669 .block_erasers =
17670 {
17671 {
17672 .eraseblocks = { {4 * 1024, 32} },
17673 .block_erase = erase_block_jedec,
17674 }, {
17675 .eraseblocks = { {128 * 1024, 1} },
17676 .block_erase = erase_chip_block_jedec,
17677 }
17678 },
17679 .printlock = printlock_w39f010,
17680 .write = write_jedec_1,
17681 .read = read_memmapped,
17682 .voltage = {4500, 5500},
17683 },
17684
17685 {
17686 .vendor = "Winbond",
17687 .name = "W39L010",
17688 .bustype = BUS_PARALLEL,
17689 .manufacture_id = WINBOND_ID,
17690 .model_id = WINBOND_W39L010,
17691 .total_size = 128,
17692 .page_size = 4 * 1024,
17693 .feature_bits = FEATURE_EITHER_RESET,
17694 .tested = TEST_UNTESTED,
17695 .probe = probe_jedec,
17696 .probe_timing = 10,
17697 .block_erasers =
17698 {
17699 {
17700 .eraseblocks = { {4 * 1024, 32} },
17701 .block_erase = erase_block_jedec,
17702 }, {
17703 .eraseblocks = { {128 * 1024, 1} },
17704 .block_erase = erase_chip_block_jedec,
17705 }
17706 },
17707 .printlock = printlock_w39l010,
17708 .write = write_jedec_1,
17709 .read = read_memmapped,
17710 .voltage = {3000, 3600},
17711 },
17712
17713 {
17714 .vendor = "Winbond",
17715 .name = "W39L020",
17716 .bustype = BUS_PARALLEL,
17717 .manufacture_id = WINBOND_ID,
17718 .model_id = WINBOND_W39L020,
17719 .total_size = 256,
17720 .page_size = 4 * 1024,
17721 .feature_bits = FEATURE_EITHER_RESET,
17722 .tested = TEST_UNTESTED,
17723 .probe = probe_jedec,
17724 .probe_timing = 10,
17725 .block_erasers =
17726 {
17727 {
17728 .eraseblocks = { {4 * 1024, 64} },
17729 .block_erase = erase_block_jedec,
17730 }, {
17731 .eraseblocks = { {64 * 1024, 4} },
17732 .block_erase = erase_sector_jedec,
17733 }, {
17734 .eraseblocks = { {256 * 1024, 1} },
17735 .block_erase = erase_chip_block_jedec,
17736 }
17737 },
17738 .printlock = printlock_w39l020,
17739 .write = write_jedec_1,
17740 .read = read_memmapped,
17741 .voltage = {3000, 3600},
17742 },
17743
17744 {
17745 .vendor = "Winbond",
Michael Karcher19e0aac2011-03-06 17:58:05 +000017746 .name = "W39L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017747 .bustype = BUS_PARALLEL,
Michael Karcher19e0aac2011-03-06 17:58:05 +000017748 .manufacture_id = WINBOND_ID,
17749 .model_id = WINBOND_W39L040,
17750 .total_size = 512,
17751 .page_size = 64 * 1024,
17752 .feature_bits = FEATURE_EITHER_RESET,
17753 .tested = TEST_OK_PR,
17754 .probe = probe_jedec,
17755 .probe_timing = 10,
17756 .block_erasers =
17757 {
17758 {
17759 .eraseblocks = { {4 * 1024, 128} },
17760 .block_erase = erase_block_jedec,
17761 }, {
17762 .eraseblocks = { {64 * 1024, 8} },
17763 .block_erase = erase_sector_jedec,
17764 }, {
17765 .eraseblocks = { {512 * 1024, 1} },
17766 .block_erase = erase_chip_block_jedec,
17767 }
17768 },
17769 .printlock = printlock_w39l040,
17770 .write = write_jedec_1,
17771 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000017772 .voltage = {3000, 3600},
Michael Karcher19e0aac2011-03-06 17:58:05 +000017773 },
17774
17775 {
17776 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017777 .name = "W39V040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017778 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017779 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017780 .model_id = WINBOND_W39V040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017781 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000017782 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000017783 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000017784 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017785 .probe = probe_jedec,
Stefan Tauner716e0982011-07-25 20:38:52 +000017786 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017787 .block_erasers =
17788 {
17789 {
17790 .eraseblocks = { {64 * 1024, 8} },
17791 .block_erase = erase_sector_jedec,
17792 }, {
17793 .eraseblocks = { {512 * 1024, 1} },
17794 .block_erase = erase_chip_block_jedec,
17795 }
17796 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017797 .printlock = printlock_w39v040a,
Sean Nelson35727f72010-01-28 23:55:12 +000017798 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017799 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017800 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000017801 },
17802
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017803 {
17804 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017805 .name = "W39V040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017806 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017807 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017808 .model_id = WINBOND_W39V040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017809 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000017810 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000017811 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000017812 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017813 .probe = probe_jedec,
Paul Menzel018d4822011-10-21 12:33:07 +000017814 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017815 .block_erasers =
17816 {
17817 {
17818 .eraseblocks = { {64 * 1024, 8} },
17819 .block_erase = erase_sector_jedec,
17820 }, {
17821 .eraseblocks = { {512 * 1024, 1} },
17822 .block_erase = erase_chip_block_jedec,
17823 }
17824 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017825 .printlock = printlock_w39v040b,
Sean Nelson35727f72010-01-28 23:55:12 +000017826 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017827 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017828 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000017829 },
17830
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017831 {
17832 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017833 .name = "W39V040C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017834 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017835 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017836 .model_id = WINBOND_W39V040C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017837 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000017838 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000017839 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000017840 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +000017841 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017842 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017843 .block_erasers =
17844 {
17845 {
17846 .eraseblocks = { {64 * 1024, 8} },
17847 .block_erase = erase_sector_jedec,
17848 }, {
17849 .eraseblocks = { {512 * 1024, 1} },
17850 .block_erase = erase_chip_block_jedec,
17851 }
17852 },
Sean Nelson6e0b9122010-02-19 00:52:10 +000017853 .printlock = printlock_w39v040c,
Sean Nelson35727f72010-01-28 23:55:12 +000017854 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017855 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017856 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000017857 },
17858
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017859 {
17860 .vendor = "Winbond",
17861 .name = "W39V040FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017862 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017863 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017864 .model_id = WINBOND_W39V040FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017865 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000017866 .page_size = 64 * 1024,
Michael Karcherc9b63412010-05-30 16:55:18 +000017867 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner23e10b82016-01-23 16:16:49 +000017868 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017869 .probe = probe_jedec,
Antony Rheneus0fbba982011-05-26 14:28:51 +000017870 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017871 .block_erasers =
17872 {
17873 {
17874 .eraseblocks = { {4 * 1024, 128} },
17875 .block_erase = erase_block_jedec,
17876 }, {
17877 .eraseblocks = { {64 * 1024, 8} },
17878 .block_erase = erase_sector_jedec,
17879 }, {
17880 .eraseblocks = { {512 * 1024, 1} },
17881 .block_erase = erase_chip_block_jedec,
17882 }
17883 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017884 .printlock = printlock_w39v040fa,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000017885 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000017886 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017887 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017888 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000017889 },
17890
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017891 {
17892 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017893 .name = "W39V040FB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017894 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017895 .manufacture_id = WINBOND_ID,
17896 .model_id = WINBOND_W39V040B,
17897 .total_size = 512,
17898 .page_size = 64 * 1024,
17899 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner0be072c2016-03-13 15:16:30 +000017900 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017901 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000017902 .probe_timing = 10,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017903 .block_erasers =
17904 {
17905 {
17906 .eraseblocks = { {64 * 1024, 8} },
17907 .block_erase = erase_sector_jedec,
17908 }, {
17909 .eraseblocks = { {512 * 1024, 1} },
17910 .block_erase = erase_chip_block_jedec,
17911 }
17912 },
17913 .printlock = printlock_w39v040fb,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000017914 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017915 .write = write_jedec_1,
17916 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000017917 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017918 },
17919
17920 {
17921 .vendor = "Winbond",
17922 .name = "W39V040FC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017923 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017924 .manufacture_id = WINBOND_ID,
17925 .model_id = WINBOND_W39V040C,
17926 .total_size = 512,
17927 .page_size = 64 * 1024,
17928 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +000017929 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017930 .probe = probe_jedec,
17931 .probe_timing = 10,
17932 .block_erasers =
17933 {
17934 {
17935 .eraseblocks = { {64 * 1024, 8} },
17936 .block_erase = erase_sector_jedec,
17937 }, {
17938 .eraseblocks = { {512 * 1024, 1} },
17939 .block_erase = erase_chip_block_jedec,
17940 }
17941 },
17942 .printlock = printlock_w39v040fc,
17943 .write = write_jedec_1,
17944 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000017945 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017946 },
17947
17948 {
17949 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017950 .name = "W39V080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017951 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017952 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017953 .model_id = WINBOND_W39V080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017954 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000017955 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000017956 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +000017957 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017958 .probe = probe_jedec,
Paul Menzelac427b22012-02-16 21:07:07 +000017959 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017960 .block_erasers =
17961 {
17962 {
17963 .eraseblocks = { {64 * 1024, 16} },
17964 .block_erase = erase_sector_jedec,
17965 }, {
17966 .eraseblocks = { {1024 * 1024, 1} },
17967 .block_erase = erase_chip_block_jedec,
17968 }
17969 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017970 .printlock = printlock_w39v080a,
Sean Nelson35727f72010-01-28 23:55:12 +000017971 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017972 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017973 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000017974 },
17975
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017976 {
17977 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017978 .name = "W39V080FA",
17979 .bustype = BUS_FWH,
17980 .manufacture_id = WINBOND_ID,
17981 .model_id = WINBOND_W39V080FA,
17982 .total_size = 1024,
17983 .page_size = 64 * 1024,
17984 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
17985 .tested = TEST_OK_PREW,
17986 .probe = probe_jedec,
17987 .probe_timing = 10,
17988 .block_erasers =
17989 {
17990 {
17991 .eraseblocks = { {64 * 1024, 16} },
17992 .block_erase = erase_sector_jedec,
17993 }, {
17994 .eraseblocks = { {1024 * 1024, 1} },
17995 .block_erase = erase_chip_block_jedec,
17996 }
17997 },
17998 .printlock = printlock_w39v080fa,
17999 .unlock = unlock_regspace2_uniform_64k,
18000 .write = write_jedec_1,
18001 .read = read_memmapped,
18002 .voltage = {3000, 3600}, /* Also has 12V fast program */
18003 },
18004
18005 {
18006 .vendor = "Winbond",
18007 .name = "W39V080FA (dual mode)",
18008 .bustype = BUS_FWH,
18009 .manufacture_id = WINBOND_ID,
18010 .model_id = WINBOND_W39V080FA_DM,
18011 .total_size = 512,
18012 .page_size = 64 * 1024,
18013 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
18014 .tested = TEST_UNTESTED,
18015 .probe = probe_jedec,
18016 .probe_timing = 10,
18017 .block_erasers =
18018 {
18019 {
18020 .eraseblocks = { {64 * 1024, 8} },
18021 .block_erase = erase_sector_jedec,
18022 }, {
18023 .eraseblocks = { {512 * 1024, 1} },
18024 .block_erase = erase_chip_block_jedec,
18025 }
18026 },
18027 .printlock = printlock_w39v080fa_dual,
18028 .write = write_jedec_1,
18029 .read = read_memmapped,
18030 .voltage = {3000, 3600}, /* Also has 12V fast program */
18031 },
18032
18033 {
18034 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000018035 .name = "W49F002U/N",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018036 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018037 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018038 .model_id = WINBOND_W49F002U,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018039 .total_size = 256,
18040 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000018041 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000018042 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018043 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000018044 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018045 .block_erasers =
18046 {
18047 {
18048 .eraseblocks = {
18049 {128 * 1024, 1},
18050 {96 * 1024, 1},
18051 {8 * 1024, 2},
18052 {16 * 1024, 1},
18053 },
18054 .block_erase = erase_sector_jedec,
18055 }, {
18056 .eraseblocks = { {256 * 1024, 1} },
18057 .block_erase = erase_chip_block_jedec,
18058 }
18059 },
Sean Nelson35727f72010-01-28 23:55:12 +000018060 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018061 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018062 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000018063 },
18064
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018065 {
18066 .vendor = "Winbond",
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000018067 .name = "W49F020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018068 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000018069 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018070 .model_id = WINBOND_W49F020,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000018071 .total_size = 256,
18072 .page_size = 128,
18073 .feature_bits = FEATURE_EITHER_RESET,
18074 .tested = TEST_OK_PROBE,
18075 .probe = probe_jedec,
18076 .probe_timing = 10,
18077 .block_erasers =
18078 {
18079 {
18080 .eraseblocks = { {256 * 1024, 1} },
18081 .block_erase = erase_chip_block_jedec,
18082 }
18083 },
18084 .write = write_jedec_1,
18085 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018086 .voltage = {4500, 5500},
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000018087 },
18088
18089 {
18090 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018091 .name = "W49V002A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018092 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018093 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018094 .model_id = WINBOND_W49V002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018095 .total_size = 256,
18096 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000018097 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000018098 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018099 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000018100 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018101 .block_erasers =
18102 {
18103 {
18104 .eraseblocks = {
18105 {64 * 1024, 3},
18106 {32 * 1024, 1},
18107 {8 * 1024, 2},
18108 {16 * 1024, 1},
18109 },
18110 .block_erase = erase_sector_jedec,
18111 }, {
18112 .eraseblocks = { {256 * 1024, 1} },
18113 .block_erase = erase_chip_block_jedec,
18114 }
18115 },
Sean Nelson35727f72010-01-28 23:55:12 +000018116 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018117 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018118 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000018119 },
18120
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018121 {
18122 .vendor = "Winbond",
18123 .name = "W49V002FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018124 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018125 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018126 .model_id = WINBOND_W49V002FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018127 .total_size = 256,
18128 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000018129 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000018130 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018131 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000018132 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018133 .block_erasers =
18134 {
18135 {
18136 .eraseblocks = {
18137 {64 * 1024, 3},
18138 {32 * 1024, 1},
18139 {8 * 1024, 2},
18140 {16 * 1024, 1},
18141 },
18142 .block_erase = erase_sector_jedec,
18143 }, {
18144 .eraseblocks = { {256 * 1024, 1} },
18145 .block_erase = erase_chip_block_jedec,
18146 }
18147 },
Sean Nelson35727f72010-01-28 23:55:12 +000018148 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018149 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018150 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000018151 },
18152
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018153 {
Alan Greenfa3fcd32019-06-27 15:41:50 +100018154 .vendor = "Zetta Device",
18155 .name = "ZD25D20",
18156 .bustype = BUS_SPI,
18157 .manufacture_id = ZETTADEVICE_ID,
18158 .model_id = ZETTADEVICE_ZD25D20,
18159 .total_size = 256,
18160 .page_size = 256,
18161 .feature_bits = FEATURE_WRSR_WREN,
18162 .tested = TEST_UNTESTED,
18163 .probe = probe_spi_rdid,
18164 .probe_timing = TIMING_ZERO,
18165 .block_erasers =
David Hendricksa72d5a92018-02-11 17:58:44 -080018166 {
18167 {
18168 .eraseblocks = { {4 * 1024, 64} },
18169 .block_erase = spi_block_erase_20,
18170 }, {
18171 .eraseblocks = { {32 * 1024, 8} },
18172 .block_erase = spi_block_erase_52,
18173 }, {
18174 .eraseblocks = { {64 * 1024, 4} },
18175 .block_erase = spi_block_erase_d8,
18176 }, {
18177 .eraseblocks = { {256 * 1024, 1} },
18178 .block_erase = spi_block_erase_60,
18179 }, {
18180 .eraseblocks = { {256 * 1024, 1} },
18181 .block_erase = spi_block_erase_c7,
18182 }
18183 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100018184 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18185 .unlock = spi_disable_blockprotect,
18186 .write = spi_chip_write_256,
18187 .read = spi_chip_read,
18188 .voltage = {2700, 3600},
David Hendricksa72d5a92018-02-11 17:58:44 -080018189 },
18190
18191 {
Alan Greenfa3fcd32019-06-27 15:41:50 +100018192 .vendor = "Zetta Device",
18193 .name = "ZD25D40",
18194 .bustype = BUS_SPI,
18195 .manufacture_id = ZETTADEVICE_ID,
18196 .model_id = ZETTADEVICE_ZD25D40,
18197 .total_size = 512,
18198 .page_size = 256,
18199 .feature_bits = FEATURE_WRSR_WREN,
18200 .tested = TEST_UNTESTED,
18201 .probe = probe_spi_rdid,
18202 .probe_timing = TIMING_ZERO,
18203 .block_erasers =
nybashcbb46e22018-02-11 17:53:49 -080018204 {
18205 {
18206 .eraseblocks = { {4 * 1024, 128} },
18207 .block_erase = spi_block_erase_20,
18208 }, {
18209 .eraseblocks = { {32 * 1024, 16} },
18210 .block_erase = spi_block_erase_52,
18211 }, {
18212 .eraseblocks = { {64 * 1024, 8} },
18213 .block_erase = spi_block_erase_d8,
18214 }, {
18215 .eraseblocks = { {512 * 1024, 1} },
18216 .block_erase = spi_block_erase_60,
18217 }, {
18218 .eraseblocks = { {512 * 1024, 1} },
18219 .block_erase = spi_block_erase_c7,
18220 }
18221 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100018222 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18223 .unlock = spi_disable_blockprotect,
18224 .write = spi_chip_write_256,
18225 .read = spi_chip_read,
18226 .voltage = {2700, 3600},
nybashcbb46e22018-02-11 17:53:49 -080018227 },
18228
Stefan Taunerac1b4c82012-02-17 14:51:04 +000018229 {
Alan Greendd592202019-08-23 10:11:37 +100018230 .vendor = "Unknown",
18231 .name = "SFDP-capable chip",
18232 .bustype = BUS_SPI,
18233 .manufacture_id = GENERIC_MANUF_ID,
18234 .model_id = SFDP_DEVICE_ID,
18235 .total_size = 0, /* set by probing function */
18236 .page_size = 0, /* set by probing function */
18237 .feature_bits = 0, /* set by probing function */
18238 /* We present our own "report this" text hence we do not */
18239 /* want the default "This flash part has status UNTESTED..." */
18240 /* text to be printed. */
18241 .tested = TEST_OK_PREW,
18242 .probe = probe_spi_sfdp,
18243 .block_erasers = {}, /* set by probing function */
18244 .unlock = spi_disable_blockprotect, /* is this safe? */
18245 .write = NULL, /* set by probing function */
18246 .read = spi_chip_read,
18247 /* FIXME: some vendor extensions define this */
18248 .voltage = {0},
18249 },
18250
18251 {
Carl-Daniel Hailfinger532c7172011-11-04 21:35:26 +000018252 .vendor = "Programmer",
18253 .name = "Opaque flash chip",
18254 .bustype = BUS_PROG,
18255 .manufacture_id = PROGMANUF_ID,
18256 .model_id = PROGDEV_ID,
18257 .total_size = 0,
18258 .page_size = 256,
18259 /* probe is assumed to work, rest will be filled in by probe */
18260 .tested = TEST_OK_PROBE,
18261 .probe = probe_opaque,
18262 /* eraseblock sizes will be set by the probing function */
18263 .block_erasers =
18264 {
18265 {
18266 .block_erase = erase_opaque,
18267 }
18268 },
18269 .write = write_opaque,
18270 .read = read_opaque,
18271 },
18272
18273 {
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000018274 .vendor = "AMIC",
18275 .name = "unknown AMIC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018276 .bustype = BUS_SPI,
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000018277 .manufacture_id = AMIC_ID,
18278 .model_id = GENERIC_DEVICE_ID,
18279 .total_size = 0,
18280 .page_size = 256,
18281 .tested = TEST_BAD_PREW,
18282 .probe = probe_spi_rdid4,
18283 .probe_timing = TIMING_ZERO,
18284 .write = NULL,
18285 .read = NULL,
18286 },
18287
18288 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018289 .vendor = "Atmel",
18290 .name = "unknown Atmel SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018291 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018292 .manufacture_id = ATMEL_ID,
18293 .model_id = GENERIC_DEVICE_ID,
18294 .total_size = 0,
18295 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000018296 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018297 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000018298 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018299 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018300 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000018301 },
18302
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018303 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +000018304 .vendor = "Eon",
18305 .name = "unknown Eon SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018306 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018307 .manufacture_id = EON_ID_NOPREFIX,
18308 .model_id = GENERIC_DEVICE_ID,
18309 .total_size = 0,
18310 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000018311 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018312 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000018313 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018314 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018315 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000018316 },
18317
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018318 {
18319 .vendor = "Macronix",
18320 .name = "unknown Macronix SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018321 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000018322 .manufacture_id = MACRONIX_ID,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018323 .model_id = GENERIC_DEVICE_ID,
18324 .total_size = 0,
18325 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000018326 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018327 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000018328 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018329 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018330 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000018331 },
18332
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018333 {
18334 .vendor = "PMC",
18335 .name = "unknown PMC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018336 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018337 .manufacture_id = PMC_ID,
18338 .model_id = GENERIC_DEVICE_ID,
18339 .total_size = 0,
18340 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000018341 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018342 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000018343 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018344 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018345 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000018346 },
18347
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018348 {
18349 .vendor = "SST",
18350 .name = "unknown SST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018351 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018352 .manufacture_id = SST_ID,
18353 .model_id = GENERIC_DEVICE_ID,
18354 .total_size = 0,
18355 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000018356 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018357 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000018358 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018359 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018360 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000018361 },
18362
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018363 {
18364 .vendor = "ST",
18365 .name = "unknown ST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018366 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018367 .manufacture_id = ST_ID,
18368 .model_id = GENERIC_DEVICE_ID,
18369 .total_size = 0,
18370 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000018371 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018372 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000018373 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018374 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018375 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000018376 },
Uwe Hermannfc425e82008-03-16 02:06:25 +000018377
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000018378 {
Sean Nelson118e1d62009-11-24 02:08:11 +000018379 .vendor = "Sanyo",
18380 .name = "unknown Sanyo SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018381 .bustype = BUS_SPI,
Sean Nelson118e1d62009-11-24 02:08:11 +000018382 .manufacture_id = SANYO_ID,
18383 .model_id = GENERIC_DEVICE_ID,
18384 .total_size = 0,
18385 .page_size = 256,
18386 .tested = TEST_BAD_PREW,
18387 .probe = probe_spi_rdid,
18388 .probe_timing = TIMING_ZERO,
Sean Nelson118e1d62009-11-24 02:08:11 +000018389 .write = NULL,
18390 .read = NULL,
18391 },
18392
18393 {
Stefan Taunereb582572012-09-21 12:52:50 +000018394 .vendor = "Winbond",
18395 .name = "unknown Winbond (ex Nexcom) SPI chip",
18396 .bustype = BUS_SPI,
18397 .manufacture_id = WINBOND_NEX_ID,
18398 .model_id = GENERIC_DEVICE_ID,
18399 .total_size = 0,
18400 .page_size = 256,
18401 .tested = TEST_BAD_PREW,
18402 .probe = probe_spi_rdid,
18403 .probe_timing = TIMING_ZERO,
18404 .write = NULL,
18405 .read = NULL,
18406 },
18407
18408 {
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000018409 .vendor = "Generic",
18410 .name = "unknown SPI chip (RDID)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018411 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000018412 .manufacture_id = GENERIC_MANUF_ID,
18413 .model_id = GENERIC_DEVICE_ID,
18414 .total_size = 0,
18415 .page_size = 256,
18416 .tested = TEST_BAD_PREW,
18417 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000018418 .write = NULL,
18419 },
Stefan Tauneraf2db612011-12-02 21:48:17 +000018420
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000018421 {
18422 .vendor = "Generic",
18423 .name = "unknown SPI chip (REMS)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018424 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000018425 .manufacture_id = GENERIC_MANUF_ID,
18426 .model_id = GENERIC_DEVICE_ID,
18427 .total_size = 0,
18428 .page_size = 256,
18429 .tested = TEST_BAD_PREW,
18430 .probe = probe_spi_rems,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000018431 .write = NULL,
18432 },
18433
Stefan Tauner96658be2014-05-26 22:05:31 +000018434 {0}
Stephan Guilloux72cf5652009-04-21 01:46:07 +000018435};
Stefan Tauner96658be2014-05-26 22:05:31 +000018436
18437const unsigned int flashchips_size = ARRAY_SIZE(flashchips);