blob: 31a922ef1b6ae4ffbf916664df3f1e3332cbc684 [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",
Hal Martin49e23d22018-05-27 14:18:43 +02002334 .name = "AT25SL128A",
2335 .bustype = BUS_SPI,
2336 .manufacture_id = ATMEL_ID,
2337 .model_id = ATMEL_AT25SL128A,
2338 .total_size = 16384,
2339 .page_size = 256,
2340 /* supports SFDP */
2341 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
2342 .tested = TEST_OK_PREW,
2343 .probe = probe_spi_rdid,
2344 .probe_timing = TIMING_ZERO,
2345 .block_erasers =
2346 {
2347 {
2348 .eraseblocks = { {4 * 1024, 4096} },
2349 .block_erase = spi_block_erase_20,
2350 }, {
2351 .eraseblocks = { {32 * 1024, 512} },
2352 .block_erase = spi_block_erase_52,
2353 }, {
2354 .eraseblocks = { {64 * 1024, 256} },
2355 .block_erase = spi_block_erase_d8,
2356 }, {
2357 .eraseblocks = { {16 * 1024 * 1024, 1} },
2358 .block_erase = spi_block_erase_60,
2359 }, {
2360 .eraseblocks = { {16 * 1024 * 1024, 1} },
2361 .block_erase = spi_block_erase_c7,
2362 }
2363 },
2364 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
2365 .unlock = spi_disable_blockprotect,
2366 .write = spi_chip_write_256,
2367 .read = spi_chip_read,
2368 .voltage = {1700, 2000},
2369 },
2370
2371 {
Stanislav Sedovf5775442018-03-07 14:16:51 -08002372 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002373 .name = "AT26DF041",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002374 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002375 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002376 .model_id = ATMEL_AT26DF041,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002377 .total_size = 512,
2378 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002379 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner94b39b42012-10-27 00:06:02 +00002380 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002381 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002382 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002383 .block_erasers =
2384 {
2385 {
Stefan Tauner94b39b42012-10-27 00:06:02 +00002386 .eraseblocks = { {256, 2048} },
2387 .block_erase = spi_block_erase_81,
2388 }, {
2389 .eraseblocks = { {2 * 1024, 256} },
2390 .block_erase = spi_block_erase_50,
2391 }, {
Sean Nelson89187292009-12-23 12:02:55 +00002392 .eraseblocks = { {4 * 1024, 128} },
2393 .block_erase = spi_block_erase_20,
2394 }
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002395 },
Stefan Taunercecb2c52013-06-20 22:55:41 +00002396 .printlock = spi_prettyprint_status_register_plain,
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002397 /* Supports also an incompatible page write (of exactly 256 B) and an auto-erasing write. */
Stefan Tauner94b39b42012-10-27 00:06:02 +00002398 .write = spi_chip_write_1,
2399 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002400 .voltage = {2700, 3600}, /* 3.0-3.6V for higher speed, 2.7-3.6V normal */
FENG yu ningff692fb2008-12-08 18:15:10 +00002401 },
2402
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002403 {
2404 .vendor = "Atmel",
2405 .name = "AT26DF081A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002406 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002407 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002408 .model_id = ATMEL_AT26DF081A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002409 .total_size = 1024,
2410 .page_size = 256,
Mathias Krause2c3afa32011-01-17 07:45:54 +00002411 .feature_bits = FEATURE_WRSR_WREN,
2412 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002413 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002414 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002415 .block_erasers =
2416 {
2417 {
2418 .eraseblocks = { {4 * 1024, 256} },
2419 .block_erase = spi_block_erase_20,
2420 }, {
2421 .eraseblocks = { {32 * 1024, 32} },
2422 .block_erase = spi_block_erase_52,
2423 }, {
2424 .eraseblocks = { {64 * 1024, 16} },
2425 .block_erase = spi_block_erase_d8,
2426 }, {
2427 .eraseblocks = { {1024 * 1024, 1} },
2428 .block_erase = spi_block_erase_60,
2429 }, {
2430 .eraseblocks = { {1024 * 1024, 1} },
2431 .block_erase = spi_block_erase_c7,
2432 }
2433 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002434 .printlock = spi_prettyprint_status_register_at26df081a,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002435 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002436 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002437 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002438 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002439 },
2440
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002441 {
2442 .vendor = "Atmel",
2443 .name = "AT26DF161",
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_AT26DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002447 .total_size = 2048,
2448 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002449 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +00002450 .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, 512} },
2457 .block_erase = spi_block_erase_20,
2458 }, {
2459 .eraseblocks = { {32 * 1024, 64} },
2460 .block_erase = spi_block_erase_52,
2461 }, {
2462 .eraseblocks = { {64 * 1024, 32} },
2463 .block_erase = spi_block_erase_d8,
2464 }, {
2465 .eraseblocks = { {2 * 1024 * 1024, 1} },
2466 .block_erase = spi_block_erase_60,
2467 }, {
2468 .eraseblocks = { {2 * 1024 * 1024, 1} },
2469 .block_erase = spi_block_erase_c7,
2470 }
2471 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00002472 .printlock = spi_prettyprint_status_register_at25df,
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 = "AT26DF161A",
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_AT26DF161A,
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 Taunercecb2c52013-06-20 22:55:41 +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 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002510 .printlock = spi_prettyprint_status_register_at26df081a,
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 = "AT26F004",
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_AT26F004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002523 .total_size = 512,
2524 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002525 .feature_bits = FEATURE_WRSR_WREN,
Alan Green908adf42019-07-03 15:34:06 +10002526 .tested = {.probe = NT, .read = NT, .erase = NT, .write = BAD},
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, 128} },
2533 .block_erase = spi_block_erase_20,
2534 }, {
2535 .eraseblocks = { {32 * 1024, 16} },
2536 .block_erase = spi_block_erase_52,
2537 }, {
2538 .eraseblocks = { {64 * 1024, 8} },
2539 .block_erase = spi_block_erase_d8,
2540 }, {
2541 .eraseblocks = { {512 * 1024, 1} },
2542 .block_erase = spi_block_erase_60,
2543 }, {
2544 .eraseblocks = { {512 * 1024, 1} },
2545 .block_erase = spi_block_erase_c7,
2546 }
2547 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002548 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Alan Greencbb85c02019-06-25 13:42:34 +10002549 .write = NULL, /* Incompatible Page write */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002550 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002551 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002552 },
2553
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002554 {
2555 .vendor = "Atmel",
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002556 .name = "AT29C010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002557 .bustype = BUS_PARALLEL,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002558 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002559 .model_id = ATMEL_AT29C010A,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002560 .total_size = 128,
2561 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00002562 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002563 .tested = TEST_OK_PRE,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002564 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00002565 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00002566 .block_erasers =
2567 {
2568 {
2569 .eraseblocks = { {128 * 1024, 1} },
2570 .block_erase = erase_chip_block_jedec,
2571 }
2572 },
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002573 .write = write_jedec, /* FIXME */
2574 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002575 .voltage = {4500, 5500},
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002576 },
2577
2578 {
2579 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002580 .name = "AT29C020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002581 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002582 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002583 .model_id = ATMEL_AT29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002584 .total_size = 256,
2585 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002586 .feature_bits = FEATURE_LONG_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00002587 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002588 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00002589 .probe_timing = 10000, /* 10ms */
Sean Nelson89187292009-12-23 12:02:55 +00002590 .block_erasers =
2591 {
2592 {
2593 .eraseblocks = { {256 * 1024, 1} },
2594 .block_erase = erase_chip_block_jedec,
2595 }
2596 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002597 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002598 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002599 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002600 },
2601
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002602 {
2603 .vendor = "Atmel",
2604 .name = "AT29C040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002605 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002606 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002607 .model_id = ATMEL_AT29C040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002608 .total_size = 512,
2609 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002610 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002611 .tested = TEST_UNTESTED,
2612 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00002613 .probe_timing = 10000, /* 10 ms */
Sean Nelson89187292009-12-23 12:02:55 +00002614 .block_erasers =
2615 {
2616 {
2617 .eraseblocks = { {512 * 1024, 1} },
2618 .block_erase = erase_chip_block_jedec,
2619 }
2620 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002621 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002622 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002623 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002624 },
2625
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002626 {
2627 .vendor = "Atmel",
Alan Green1f9cc7d2019-07-01 11:10:45 +10002628 .name = "AT29C512",
2629 .bustype = BUS_PARALLEL,
2630 .manufacture_id = ATMEL_ID,
2631 .model_id = ATMEL_AT29C512,
2632 .total_size = 64,
2633 .page_size = 128,
2634 .feature_bits = FEATURE_LONG_RESET,
2635 .tested = TEST_OK_PREW,
2636 .probe = probe_jedec,
2637 .probe_timing = 10000, /* 10mS, Enter=Exec */
2638 .block_erasers =
2639 {
2640 {
2641 .eraseblocks = { {64 * 1024, 1} },
2642 .block_erase = erase_chip_block_jedec,
2643 }
2644 },
2645 .write = write_jedec,
2646 .read = read_memmapped,
2647 .voltage = {4500, 5500},
2648 },
2649
2650 {
2651 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002652 .name = "AT45CS1282",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002653 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002654 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002655 .model_id = ATMEL_AT45CS1282,
Alan Greencbb85c02019-06-25 13:42:34 +10002656 .total_size = 16896, /* No power of two sizes */
2657 .page_size = 1056, /* No power of two sizes */
Steven Zakulec3603a282012-05-02 20:07:57 +00002658 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner1dd5d3a2013-08-27 18:02:19 +00002659 /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */
2660 .feature_bits = FEATURE_OTP,
2661 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002662 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002663 .probe_timing = TIMING_ZERO,
Stefan Tauner1dd5d3a2013-08-27 18:02:19 +00002664 .block_erasers =
2665 {
2666 {
2667 .eraseblocks = {
2668 {8 * 1056, 1}, /* sector 0a: opcode 50h */
2669 {248 * 1056, 1}, /* sector 0b: opcode 7Ch */
2670 {256 * 1056, 63}, /* sectors 1 - 63: opcode 7Ch */
2671 },
2672 .block_erase = spi_erase_at45cs_sector,
2673 }
2674 },
2675 .printlock = spi_prettyprint_status_register_plain,
Stefan Tauner1dd5d3a2013-08-27 18:02:19 +00002676 .write = spi_write_at45db,
2677 .read = spi_read_at45db,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002678 .voltage = {2700, 3600},
Alan Greenc1863ca2019-06-27 15:08:03 +10002679 .gran = write_gran_1056bytes,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002680 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002681
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002682 {
2683 .vendor = "Atmel",
2684 .name = "AT45DB011D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002685 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002686 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002687 .model_id = ATMEL_AT45DB011D,
Alan Greencbb85c02019-06-25 13:42:34 +10002688 .total_size = 128, /* or 132, determined from status register */
2689 .page_size = 256, /* or 264, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00002690 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002691 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2692 .feature_bits = FEATURE_OTP,
Stefan Tauner5c316f92015-02-08 21:57:52 +00002693 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002694 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002695 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002696 .block_erasers =
2697 {
2698 {
2699 .eraseblocks = { {256, 512} },
2700 .block_erase = spi_erase_at45db_page,
2701 }, {
2702 .eraseblocks = { {8 * 256, 512/8} },
2703 .block_erase = spi_erase_at45db_block,
2704 }, {
2705 .eraseblocks = {
2706 {8 * 256, 1},
2707 {120 * 256, 1},
2708 {128 * 256, 3},
2709 },
2710 .block_erase = spi_erase_at45db_sector
2711 }, {
2712 .eraseblocks = { {128 * 1024, 1} },
2713 .block_erase = spi_erase_at45db_chip,
2714 }
2715 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002716 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10002717 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002718 /* granularity will be set by the probing function. */
2719 .write = spi_write_at45db,
2720 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002721 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002722 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002723
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002724 {
2725 .vendor = "Atmel",
2726 .name = "AT45DB021D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002727 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002728 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002729 .model_id = ATMEL_AT45DB021D,
Alan Greencbb85c02019-06-25 13:42:34 +10002730 .total_size = 256, /* or 264, determined from status register */
2731 .page_size = 256, /* or 264, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00002732 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002733 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2734 .feature_bits = FEATURE_OTP,
Stefan Tauner6697f712014-08-06 15:09:15 +00002735 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002736 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002737 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002738 .block_erasers =
2739 {
2740 {
2741 .eraseblocks = { {256, 1024} },
2742 .block_erase = spi_erase_at45db_page,
2743 }, {
2744 .eraseblocks = { {8 * 256, 1024/8} },
2745 .block_erase = spi_erase_at45db_block,
2746 }, {
2747 .eraseblocks = {
2748 {8 * 256, 1},
2749 {120 * 256, 1},
2750 {128 * 256, 7},
2751 },
2752 .block_erase = spi_erase_at45db_sector
2753 }, {
2754 .eraseblocks = { {256 * 1024, 1} },
2755 .block_erase = spi_erase_at45db_chip,
2756 }
2757 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002758 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10002759 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002760 /* granularity will be set by the probing function. */
2761 .write = spi_write_at45db,
2762 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002763 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002764 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002765
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002766 {
2767 .vendor = "Atmel",
2768 .name = "AT45DB041D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002769 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002770 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002771 .model_id = ATMEL_AT45DB041D,
Alan Greencbb85c02019-06-25 13:42:34 +10002772 .total_size = 512, /* or 528, determined from status register */
2773 .page_size = 256, /* or 264, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00002774 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002775 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2776 .feature_bits = FEATURE_OTP,
2777 .tested = TEST_OK_PREW,
2778 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002779 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002780 .block_erasers =
2781 {
2782 {
2783 .eraseblocks = { {256, 2048} },
2784 .block_erase = spi_erase_at45db_page,
2785 }, {
2786 .eraseblocks = { {8 * 256, 2048/8} },
2787 .block_erase = spi_erase_at45db_block,
2788 }, {
2789 .eraseblocks = {
2790 {8 * 256, 1},
2791 {248 * 256, 1},
2792 {256 * 256, 7},
2793 },
2794 .block_erase = spi_erase_at45db_sector
2795 }, {
2796 .eraseblocks = { {512 * 1024, 1} },
2797 .block_erase = spi_erase_at45db_chip,
2798 }
2799 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002800 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10002801 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002802 /* granularity will be set by the probing function. */
2803 .write = spi_write_at45db,
2804 .read = spi_read_at45db, /* Fast read (0x0B) supported */
2805 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002806 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002807
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002808 {
2809 .vendor = "Atmel",
2810 .name = "AT45DB081D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002811 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002812 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002813 .model_id = ATMEL_AT45DB081D,
Alan Greencbb85c02019-06-25 13:42:34 +10002814 .total_size = 1024, /* or 1056, determined from status register */
2815 .page_size = 256, /* or 264, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00002816 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002817 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2818 .feature_bits = FEATURE_OTP,
Angel Pons250aeba2018-09-30 20:28:22 +02002819 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002820 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002821 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002822 .block_erasers =
2823 {
2824 {
2825 .eraseblocks = { {256, 4096} },
2826 .block_erase = spi_erase_at45db_page,
2827 }, {
2828 .eraseblocks = { {8 * 256, 4096/8} },
2829 .block_erase = spi_erase_at45db_block,
2830 }, {
2831 .eraseblocks = {
2832 {8 * 256, 1},
2833 {248 * 256, 1},
2834 {256 * 256, 15},
2835 },
2836 .block_erase = spi_erase_at45db_sector
2837 }, {
2838 .eraseblocks = { {1024 * 1024, 1} },
2839 .block_erase = spi_erase_at45db_chip,
2840 }
2841 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002842 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10002843 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002844 /* granularity will be set by the probing function. */
2845 .write = spi_write_at45db,
2846 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002847 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002848 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002849
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002850 {
2851 .vendor = "Atmel",
2852 .name = "AT45DB161D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002853 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002854 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002855 .model_id = ATMEL_AT45DB161D,
Alan Greencbb85c02019-06-25 13:42:34 +10002856 .total_size = 2048, /* or 2112, determined from status register */
2857 .page_size = 512, /* or 528, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00002858 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002859 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2860 .feature_bits = FEATURE_OTP,
2861 .tested = TEST_OK_PREW,
2862 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002863 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002864 .block_erasers =
2865 {
2866 {
2867 .eraseblocks = { {512, 4096} },
2868 .block_erase = spi_erase_at45db_page,
2869 }, {
2870 .eraseblocks = { {8 * 512, 4096/8} },
2871 .block_erase = spi_erase_at45db_block,
2872 }, {
2873 .eraseblocks = {
2874 {8 * 512, 1},
2875 {248 * 512, 1},
2876 {256 * 512, 15},
2877 },
2878 .block_erase = spi_erase_at45db_sector
2879 }, {
2880 .eraseblocks = { {2048 * 1024, 1} },
2881 .block_erase = spi_erase_at45db_chip,
2882 }
2883 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002884 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10002885 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002886 /* granularity will be set by the probing function. */
2887 .write = spi_write_at45db,
2888 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002889 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002890 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002891
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002892 {
2893 .vendor = "Atmel",
2894 .name = "AT45DB321C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002895 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002896 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002897 .model_id = ATMEL_AT45DB321C,
Alan Greencbb85c02019-06-25 13:42:34 +10002898 .total_size = 4224, /* No power of two sizes */
2899 .page_size = 528, /* No power of two sizes */
Steven Zakulec3603a282012-05-02 20:07:57 +00002900 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002901 /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */
2902 .feature_bits = FEATURE_OTP,
2903 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002904 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002905 .probe_timing = TIMING_ZERO,
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002906 .block_erasers =
2907 {
2908 {
2909 .eraseblocks = { {528, 8192} },
2910 .block_erase = spi_erase_at45db_page,
2911 }, {
2912 .eraseblocks = { {8 * 528, 8192/8} },
2913 .block_erase = spi_erase_at45db_block,
2914 }, /* Although the datasheets describes sectors (which can be write protected)
2915 * there seems to be no erase functions for them.
Stefan Tauner23e10b82016-01-23 16:16:49 +00002916 {
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002917 .eraseblocks = {
2918 {8 * 528, 1},
2919 {120 * 528, 1},
2920 {128 * 528, 63},
2921 },
2922 .block_erase = spi_erase_at45db_sector
2923 }, */ {
2924 .eraseblocks = { {4224 * 1024, 1} },
2925 .block_erase = spi_erase_at45db_chip,
2926 }
2927 },
2928 .printlock = spi_prettyprint_status_register_at45db, /* Bit 0 is undefined, no lockdown */
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002929 .write = spi_write_at45db,
2930 .read = spi_read_at45db_e8, /* 3 address and 4 dummy bytes */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002931 .voltage = {2700, 3600},
Alan Greenc1863ca2019-06-27 15:08:03 +10002932 .gran = write_gran_528bytes,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002933 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002934
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002935 {
2936 .vendor = "Atmel",
2937 .name = "AT45DB321D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002938 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002939 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002940 .model_id = ATMEL_AT45DB321D,
Alan Greencbb85c02019-06-25 13:42:34 +10002941 .total_size = 4096, /* or 4224, determined from status register */
2942 .page_size = 512, /* or 528, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00002943 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002944 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
Daniel Lenski65922a32012-02-15 23:40:23 +00002945 .feature_bits = FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +00002946 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002947 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002948 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002949 .block_erasers =
2950 {
2951 {
2952 .eraseblocks = { {512, 8192} },
2953 .block_erase = spi_erase_at45db_page,
2954 }, {
2955 .eraseblocks = { {8 * 512, 8192/8} },
2956 .block_erase = spi_erase_at45db_block,
2957 }, {
2958 .eraseblocks = {
2959 {8 * 512, 1},
2960 {120 * 512, 1},
2961 {128 * 512, 63},
2962 },
2963 .block_erase = spi_erase_at45db_sector
2964 }, {
2965 .eraseblocks = { {4096 * 1024, 1} },
2966 .block_erase = spi_erase_at45db_chip,
2967 }
2968 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002969 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10002970 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002971 /* granularity will be set by the probing function. */
2972 .write = spi_write_at45db,
2973 .read = spi_read_at45db, /* Fast read (0x0B) supported */
2974 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
2975 },
2976
2977 {
2978 .vendor = "Atmel",
2979 .name = "AT45DB321E",
2980 .bustype = BUS_SPI,
2981 .manufacture_id = ATMEL_ID,
2982 .model_id = ATMEL_AT45DB321C,
Alan Greencbb85c02019-06-25 13:42:34 +10002983 .total_size = 4096, /* or 4224, determined from status register */
2984 .page_size = 512, /* or 528, determined from status register */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002985 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
2986 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2987 .feature_bits = FEATURE_OTP,
2988 .tested = TEST_UNTESTED,
2989 .probe = probe_spi_at45db,
2990 .probe_timing = TIMING_ZERO,
2991 .block_erasers =
2992 {
2993 {
2994 .eraseblocks = { {512, 8192} },
2995 .block_erase = spi_erase_at45db_page,
2996 }, {
2997 .eraseblocks = { {8 * 512, 8192/8} },
2998 .block_erase = spi_erase_at45db_block,
2999 }, {
3000 .eraseblocks = {
3001 {8 * 512, 1},
3002 {120 * 512, 1},
3003 {128 * 512, 63},
3004 },
3005 .block_erase = spi_erase_at45db_sector
3006 }, {
3007 .eraseblocks = { {4096 * 1024, 1} },
3008 .block_erase = spi_erase_at45db_chip,
3009 }
3010 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003011 .printlock = spi_prettyprint_status_register_at45db, /* has a 2nd status register */
Alan Greenc1863ca2019-06-27 15:08:03 +10003012 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003013 /* granularity will be set by the probing function. */
3014 .write = spi_write_at45db,
3015 .read = spi_read_at45db, /* Fast read (0x0B) supported */
3016 .voltage = {2500, 3600}, /* 2.3-3.6V & 2.5-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00003017 },
FENG yu ningff692fb2008-12-08 18:15:10 +00003018
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003019 {
3020 .vendor = "Atmel",
3021 .name = "AT45DB642D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003022 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003023 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003024 .model_id = ATMEL_AT45DB642D,
Alan Greencbb85c02019-06-25 13:42:34 +10003025 .total_size = 8192, /* or 8448, determined from status register */
3026 .page_size = 1024, /* or 1056, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00003027 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003028 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
3029 .feature_bits = FEATURE_OTP,
Stefan Tauner5c316f92015-02-08 21:57:52 +00003030 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003031 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003032 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003033 .block_erasers =
3034 {
3035 {
3036 .eraseblocks = { {1024, 8192} },
3037 .block_erase = spi_erase_at45db_page,
3038 }, {
3039 .eraseblocks = { {8 * 1024, 8192/8} },
3040 .block_erase = spi_erase_at45db_block,
3041 }, {
3042 .eraseblocks = {
3043 {8 * 1024, 1},
3044 {248 * 1024, 1},
3045 {256 * 1024, 31},
3046 },
3047 .block_erase = spi_erase_at45db_sector
3048 }, {
3049 .eraseblocks = { {8192 * 1024, 1} },
3050 .block_erase = spi_erase_at45db_chip,
3051 }
3052 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003053 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10003054 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003055 /* granularity will be set by the probing function. */
3056 .write = spi_write_at45db,
3057 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003058 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00003059 },
FENG yu ningff692fb2008-12-08 18:15:10 +00003060
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003061 {
3062 .vendor = "Atmel",
Alan Green1f9cc7d2019-07-01 11:10:45 +10003063 .name = "AT49(H)F010",
3064 .bustype = BUS_PARALLEL,
3065 .manufacture_id = ATMEL_ID,
3066 .model_id = ATMEL_AT49F010,
3067 .total_size = 128,
3068 .page_size = 0, /* unused */
3069 .feature_bits = FEATURE_EITHER_RESET,
3070 .tested = TEST_OK_PREW,
3071 .probe = probe_jedec,
3072 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3073 .block_erasers =
3074 {
3075 {
3076 .eraseblocks = { {128 * 1024, 1} },
3077 .block_erase = erase_chip_block_jedec,
3078 }
3079 },
3080 .printlock = printlock_at49f,
3081 .write = write_jedec_1,
3082 .read = read_memmapped,
3083 .voltage = {4500, 5500},
3084 },
3085
3086 {
3087 .vendor = "Atmel",
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003088 .name = "AT49BV512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003089 .bustype = BUS_PARALLEL,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003090 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003091 .model_id = ATMEL_AT49BV512,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003092 .total_size = 64,
3093 .page_size = 64,
Sean Nelson35727f72010-01-28 23:55:12 +00003094 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +00003095 .tested = TEST_OK_PREW,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003096 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003097 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00003098 .block_erasers =
3099 {
3100 {
3101 .eraseblocks = { {64 * 1024, 1} },
3102 .block_erase = erase_chip_block_jedec,
3103 }
3104 },
Sean Nelson35727f72010-01-28 23:55:12 +00003105 .write = write_jedec_1,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003106 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003107 .voltage = {2700, 3600},
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003108 },
3109
3110 {
3111 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003112 .name = "AT49F002(N)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003113 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003114 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003115 .model_id = ATMEL_AT49F002N,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003116 .total_size = 256,
3117 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00003118 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003119 .tested = TEST_UNTESTED,
3120 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003121 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00003122 .block_erasers =
3123 {
3124 {
3125 .eraseblocks = {
3126 {16 * 1024, 1},
3127 {8 * 1024, 2},
3128 {96 * 1024, 1},
3129 {128 * 1024, 1},
3130 },
3131 .block_erase = erase_sector_jedec,
3132 }, {
3133 .eraseblocks = { {256 * 1024, 1} },
3134 .block_erase = erase_chip_block_jedec,
3135 }
3136 },
Sean Nelson35727f72010-01-28 23:55:12 +00003137 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003138 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003139 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003140 },
3141
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003142 {
3143 .vendor = "Atmel",
3144 .name = "AT49F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003145 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003146 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003147 .model_id = ATMEL_AT49F002NT,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003148 .total_size = 256,
3149 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00003150 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003151 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003152 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003153 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00003154 .block_erasers =
3155 {
3156 {
3157 .eraseblocks = {
3158 {128 * 1024, 1},
3159 {96 * 1024, 1},
3160 {8 * 1024, 2},
3161 {16 * 1024, 1},
3162 },
3163 .block_erase = erase_sector_jedec,
3164 }, {
3165 .eraseblocks = { {256 * 1024, 1} },
3166 .block_erase = erase_chip_block_jedec,
3167 }
3168 },
Sean Nelson35727f72010-01-28 23:55:12 +00003169 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003170 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003171 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003172 },
3173
Daniel Lenskidf90d3a2010-07-22 11:44:38 +00003174 {
Uwe Hermannc74e9772011-09-08 19:55:18 +00003175 .vendor = "Atmel",
David Borgf5a30f62012-04-15 13:16:32 +00003176 .name = "AT49F020",
3177 .bustype = BUS_PARALLEL,
3178 .manufacture_id = ATMEL_ID,
3179 .model_id = ATMEL_AT49F020,
3180 .total_size = 256,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00003181 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00003182 .feature_bits = FEATURE_EITHER_RESET,
3183 .tested = TEST_OK_PRE,
3184 .probe = probe_jedec,
3185 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3186 .block_erasers =
3187 {
3188 {
3189 .eraseblocks = { {256 * 1024, 1} },
3190 .block_erase = erase_chip_block_jedec,
3191 }
3192 /* Chip features an optional permanent write protection
3193 * of the first 8 kB. The erase function is the same as
3194 * above, but 00000H to 01FFFH will not be erased.
3195 * FIXME: add another eraser when partial erasers are
3196 * supported.
3197 */
3198 },
3199 .printlock = printlock_at49f,
3200 .write = write_jedec_1,
3201 .read = read_memmapped,
3202 .voltage = {4500, 5500},
3203 },
3204
3205 {
3206 .vendor = "Atmel",
3207 .name = "AT49F040",
3208 .bustype = BUS_PARALLEL,
3209 .manufacture_id = ATMEL_ID,
3210 .model_id = ATMEL_AT49F040,
3211 .total_size = 512,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00003212 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00003213 .feature_bits = FEATURE_EITHER_RESET,
3214 .tested = TEST_UNTESTED,
3215 .probe = probe_jedec,
3216 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3217 .block_erasers =
3218 {
3219 {
3220 .eraseblocks = { {512 * 1024, 1} },
3221 .block_erase = erase_chip_block_jedec,
3222 }
3223 /* Chip features an optional permanent write protection
3224 * of the first 16 kB. The erase function is the same as
3225 * above, but 00000H to 03FFFH will not be erased.
3226 * FIXME: add another eraser when partial erasers are
3227 * supported.
3228 */
3229 },
3230 .printlock = printlock_at49f,
3231 .write = write_jedec_1,
3232 .read = read_memmapped,
3233 .voltage = {4500, 5500},
3234 },
3235
3236 {
3237 .vendor = "Atmel",
Andrew Morgan8dd97f92012-08-13 23:43:46 +00003238 .name = "AT49F080",
3239 .bustype = BUS_PARALLEL,
3240 .manufacture_id = ATMEL_ID,
3241 .model_id = ATMEL_AT49F080,
3242 .total_size = 1024,
3243 .page_size = 0, /* unused */
3244 .feature_bits = FEATURE_EITHER_RESET,
3245 .tested = TEST_UNTESTED,
3246 .probe = probe_jedec,
3247 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3248 .block_erasers =
3249 {
3250 {
3251 .eraseblocks = { {1024 * 1024, 1} },
3252 .block_erase = erase_chip_block_jedec,
3253 }
3254 /* Chip features an optional permanent write protection
3255 * of the first 16 kB. The erase function is the same as
3256 * above, but 00000H to 03FFFH will not be erased.
3257 * FIXME: add another eraser when partial erasers are
3258 * supported.
3259 */
3260 },
3261 .printlock = printlock_at49f,
3262 .write = write_jedec_1,
3263 .read = read_memmapped,
3264 .voltage = {4500, 5500},
3265 },
3266
3267 {
3268 /* 'top' version of AT49F080. equal in all aspects but the boot block address */
3269 .vendor = "Atmel",
3270 .name = "AT49F080T",
3271 .bustype = BUS_PARALLEL,
3272 .manufacture_id = ATMEL_ID,
3273 .model_id = ATMEL_AT49F080T,
3274 .total_size = 1024,
3275 .page_size = 0, /* unused */
3276 .feature_bits = FEATURE_EITHER_RESET,
3277 .tested = TEST_UNTESTED,
3278 .probe = probe_jedec,
3279 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3280 .block_erasers =
3281 {
3282 {
3283 .eraseblocks = { {1024 * 1024, 1} },
3284 .block_erase = erase_chip_block_jedec,
3285 }
3286 /* Chip features an optional permanent write protection
3287 * of the first 16 kB. The erase function is the same as
3288 * above, but FC000H to FFFFFH will not be erased.
3289 * FIXME: add another eraser when partial erasers are
3290 * supported.
3291 */
3292 },
3293 .printlock = printlock_at49f,
3294 .write = write_jedec_1,
3295 .read = read_memmapped,
3296 .voltage = {4500, 5500},
3297 },
3298
3299 {
3300 .vendor = "Atmel",
Uwe Hermannc74e9772011-09-08 19:55:18 +00003301 .name = "AT49LH002",
3302 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
3303 .manufacture_id = ATMEL_ID,
3304 .model_id = ATMEL_AT49LH002,
3305 .total_size = 256,
3306 .page_size = 0, /* unused */
Stefan Tauner7de93932014-08-03 13:05:45 +00003307 .feature_bits = FEATURE_REGISTERMAP,
Uwe Hermannc74e9772011-09-08 19:55:18 +00003308 .tested = TEST_UNTESTED,
Stefan Tauner7de93932014-08-03 13:05:45 +00003309 .probe = probe_82802ab,
3310 .probe_timing = TIMING_ZERO,
Uwe Hermannc74e9772011-09-08 19:55:18 +00003311 .block_erasers =
3312 {
3313 {
3314 .eraseblocks = {
3315 {64 * 1024, 3},
3316 {32 * 1024, 1},
3317 {8 * 1024, 2},
3318 {16 * 1024, 1},
3319 },
Stefan Tauner7de93932014-08-03 13:05:45 +00003320 .block_erase = NULL, /* TODO: Implement. */
Uwe Hermannc74e9772011-09-08 19:55:18 +00003321 }, {
3322 .eraseblocks = {
3323 {64 * 1024, 4},
3324 },
Stefan Tauner7de93932014-08-03 13:05:45 +00003325 .block_erase = erase_block_82802ab,
3326 },
3327 },
3328 .printlock = printlock_regspace2_block_eraser_0,
3329 .unlock = unlock_regspace2_block_eraser_0,
3330 .write = write_82802ab,
3331 .read = read_memmapped,
3332 .voltage = {3000, 3600},
3333 },
3334
3335 {
3336 .vendor = "Atmel",
Stefan Tauner7de93932014-08-03 13:05:45 +00003337 .name = "AT49LH004",
3338 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
3339 .manufacture_id = ATMEL_ID,
3340 .model_id = ATMEL_AT49LH004,
3341 .total_size = 512,
3342 .page_size = 0, /* unused */
3343 .feature_bits = FEATURE_REGISTERMAP,
3344 .tested = TEST_UNTESTED,
3345 .probe = probe_82802ab,
3346 .probe_timing = TIMING_ZERO,
3347 .block_erasers =
3348 {
3349 {
3350 .eraseblocks = {
3351 {64 * 1024, 7},
3352 {32 * 1024, 1},
3353 {8 * 1024, 2},
3354 {16 * 1024, 1},
3355 },
3356 .block_erase = erase_block_82802ab,
3357 }, {
3358 .eraseblocks = {
3359 {64 * 1024, 8},
3360 },
Uwe Hermannc74e9772011-09-08 19:55:18 +00003361 .block_erase = NULL, /* TODO: Implement. */
3362 },
3363 },
Stefan Tauner7de93932014-08-03 13:05:45 +00003364 .printlock = printlock_regspace2_block_eraser_0,
3365 .unlock = unlock_regspace2_block_eraser_0,
Uwe Hermannc74e9772011-09-08 19:55:18 +00003366 .write = write_82802ab,
3367 .read = read_memmapped,
3368 .voltage = {3000, 3600},
3369 },
3370
3371 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003372 .vendor = "Atmel",
3373 .name = "AT49LH00B4",
3374 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
3375 .manufacture_id = ATMEL_ID,
3376 .model_id = ATMEL_AT49LH00B4,
3377 .total_size = 512,
Andrew Morganca081462011-09-13 22:05:44 +00003378 .page_size = 0, /* unused */
Alan Green1f9cc7d2019-07-01 11:10:45 +10003379 .feature_bits = FEATURE_REGISTERMAP,
3380 .tested = TEST_UNTESTED,
3381 .probe = probe_82802ab,
Andrew Morganca081462011-09-13 22:05:44 +00003382 .probe_timing = TIMING_ZERO,
3383 .block_erasers =
3384 {
3385 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003386 .eraseblocks = {
3387 {8 * 1024, 2},
3388 {16 * 1024, 1},
3389 {32 * 1024, 1},
3390 {64 * 1024, 7},
3391 },
3392 .block_erase = NULL, /* TODO: Implement. */
3393 }, {
3394 .eraseblocks = {
3395 {64 * 1024, 8},
3396 },
3397 .block_erase = erase_block_82802ab,
Andrew Morganca081462011-09-13 22:05:44 +00003398 },
3399 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10003400 .printlock = printlock_regspace2_block_eraser_0,
3401 .unlock = unlock_regspace2_block_eraser_0,
3402 .write = write_82802ab,
Andrew Morganca081462011-09-13 22:05:44 +00003403 .read = read_memmapped,
Alan Green1f9cc7d2019-07-01 11:10:45 +10003404 .voltage = {3000, 3600},
Andrew Morganca081462011-09-13 22:05:44 +00003405 },
3406
3407 {
Joshua Roysf1324e02010-09-16 00:51:51 +00003408 .vendor = "Bright",
3409 .name = "BM29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003410 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00003411 .manufacture_id = BRIGHT_ID,
3412 .model_id = BRIGHT_BM29F040,
3413 .total_size = 512,
3414 .page_size = 64 * 1024,
3415 .feature_bits = FEATURE_EITHER_RESET,
3416 .tested = TEST_OK_PR,
3417 .probe = probe_jedec,
3418 .probe_timing = TIMING_ZERO,
3419 .block_erasers =
3420 {
3421 {
3422 .eraseblocks = { {64 * 1024, 8} },
3423 .block_erase = erase_sector_jedec,
3424 }, {
3425 .eraseblocks = { {512 * 1024, 1} },
3426 .block_erase = erase_chip_block_jedec,
3427 },
3428 },
3429 .write = write_jedec_1,
3430 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003431 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00003432 },
3433
3434 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003435 .vendor = "Catalyst",
3436 .name = "CAT28F512",
3437 .bustype = BUS_PARALLEL,
3438 .manufacture_id = CATALYST_ID,
3439 .model_id = CATALYST_CAT28F512,
3440 .total_size = 64,
3441 .page_size = 0, /* unused */
3442 .feature_bits = 0,
Alan Green908adf42019-07-03 15:34:06 +10003443 .tested = {.probe = OK, .read = OK, .erase = BAD, .write = BAD},
Alan Green1f9cc7d2019-07-01 11:10:45 +10003444 .probe = probe_jedec, /* FIXME! */
3445 .probe_timing = TIMING_ZERO,
3446 .block_erasers =
3447 {
3448 {
3449 .eraseblocks = { {64 * 1024, 1} },
3450 .block_erase = NULL, /* TODO */
3451 },
3452 },
3453 .write = NULL, /* TODO */
3454 .read = read_memmapped,
3455 .voltage = {4500, 5500},
3456 },
3457
3458 {
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003459 .vendor = "ENE",
3460 .name = "KB9012 (EDI)",
3461 .bustype = BUS_SPI,
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003462 .total_size = 128,
3463 .page_size = 128,
3464 .feature_bits = FEATURE_ERASED_ZERO,
3465 .tested = TEST_OK_PREW,
Alan Greenc1863ca2019-06-27 15:08:03 +10003466 .spi_cmd_set = SPI_EDI,
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003467 .probe = edi_probe_kb9012,
3468 .probe_timing = TIMING_ZERO,
3469 .block_erasers =
3470 {
3471 {
3472 .eraseblocks = { {128, 1024} },
3473 .block_erase = edi_chip_block_erase,
3474 },
3475 },
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003476 .write = edi_chip_write,
3477 .read = edi_chip_read,
3478 .voltage = {2700, 3600},
Alan Greenc1863ca2019-06-27 15:08:03 +10003479 .gran = write_gran_128bytes,
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003480 },
3481
3482 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003483 .vendor = "ESI",
3484 .name = "ES25P16",
3485 .bustype = BUS_SPI,
3486 .manufacture_id = EXCEL_ID_NOPREFIX,
3487 .model_id = EXCEL_ES25P16,
3488 .total_size = 2 * 1024,
3489 .page_size = 256,
3490 /* 256-byte parameter page separate from memory array:
3491 * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
3492 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003493 .tested = TEST_UNTESTED,
Alan Green1f9cc7d2019-07-01 11:10:45 +10003494 .probe = probe_spi_rdid,
3495 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003496 .block_erasers =
3497 {
3498 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003499 .eraseblocks = { {64 * 1024, 32} },
3500 .block_erase = spi_block_erase_d8,
Sean Nelson54596372010-01-09 05:30:14 +00003501 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003502 .eraseblocks = { {2 * 1024 * 1024, 1} },
3503 .block_erase = spi_block_erase_c7,
Sean Nelson54596372010-01-09 05:30:14 +00003504 }
3505 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10003506 .printlock = spi_prettyprint_status_register_bp2_srwd,
3507 .unlock = spi_disable_blockprotect_bp2_srwd,
3508 .write = spi_chip_write_256,
3509 .read = spi_chip_read, /* Fast Read (0x0B) supported */
3510 .voltage = {2700, 3600},
3511 },
3512
3513 {
3514 .vendor = "ESI",
3515 .name = "ES25P40",
3516 .bustype = BUS_SPI,
3517 .manufacture_id = EXCEL_ID_NOPREFIX,
3518 .model_id = EXCEL_ES25P40,
3519 .total_size = 512,
3520 .page_size = 256,
3521 /* 256-byte parameter page separate from memory array:
3522 * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
3523 .feature_bits = FEATURE_WRSR_WREN,
3524 .tested = TEST_UNTESTED,
3525 .probe = probe_spi_rdid,
3526 .probe_timing = TIMING_ZERO,
3527 .block_erasers =
3528 {
3529 {
3530 .eraseblocks = { {64 * 1024, 8} },
3531 .block_erase = spi_block_erase_d8,
3532 }, {
3533 .eraseblocks = { {512 * 1024, 1} },
3534 .block_erase = spi_block_erase_c7,
3535 }
3536 },
3537 .printlock = spi_prettyprint_status_register_bp2_srwd,
3538 .unlock = spi_disable_blockprotect_bp2_srwd,
3539 .write = spi_chip_write_256,
3540 .read = spi_chip_read, /* Fast Read (0x0B) supported */
3541 .voltage = {2700, 3600},
3542 },
3543
3544 {
3545 .vendor = "ESI",
3546 .name = "ES25P80",
3547 .bustype = BUS_SPI,
3548 .manufacture_id = EXCEL_ID_NOPREFIX,
3549 .model_id = EXCEL_ES25P80,
3550 .total_size = 1024,
3551 .page_size = 256,
3552 /* 256-byte parameter page separate from memory array:
3553 * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
3554 .feature_bits = FEATURE_WRSR_WREN,
3555 .tested = TEST_UNTESTED,
3556 .probe = probe_spi_rdid,
3557 .probe_timing = TIMING_ZERO,
3558 .block_erasers =
3559 {
3560 {
3561 .eraseblocks = { {64 * 1024, 16} },
3562 .block_erase = spi_block_erase_d8,
3563 }, {
3564 .eraseblocks = { {1024 * 1024, 1} },
3565 .block_erase = spi_block_erase_c7,
3566 }
3567 },
3568 .printlock = spi_prettyprint_status_register_bp2_srwd,
3569 .unlock = spi_disable_blockprotect_bp2_srwd,
3570 .write = spi_chip_write_256,
3571 .read = spi_chip_read, /* Fast Read (0x0B) supported */
3572 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00003573 },
3574
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003575 {
Stefan Tauner352e50b2013-02-22 15:58:45 +00003576 .vendor = "ESMT",
Michael Karcher80a59ea2010-06-19 22:06:35 +00003577 .name = "F25L008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003578 .bustype = BUS_SPI,
Stefan Tauner352e50b2013-02-22 15:58:45 +00003579 .manufacture_id = ESMT_ID,
3580 .model_id = ESMT_F25L008A,
Michael Karcher80a59ea2010-06-19 22:06:35 +00003581 .total_size = 1024,
3582 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003583 .feature_bits = FEATURE_WRSR_EITHER,
Stefan Taunereb582572012-09-21 12:52:50 +00003584 .tested = TEST_OK_PREW,
Michael Karcher80a59ea2010-06-19 22:06:35 +00003585 .probe = probe_spi_rdid,
3586 .probe_timing = TIMING_ZERO,
3587 .block_erasers =
3588 {
3589 {
3590 .eraseblocks = { {4 * 1024, 256} },
3591 .block_erase = spi_block_erase_20,
3592 }, {
3593 .eraseblocks = { {64 * 1024, 16} },
3594 .block_erase = spi_block_erase_d8,
3595 }, {
3596 .eraseblocks = { {1024 * 1024, 1} },
3597 .block_erase = spi_block_erase_60,
3598 }, {
3599 .eraseblocks = { {1024 * 1024, 1} },
3600 .block_erase = spi_block_erase_c7,
3601 }
3602 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003603 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003604 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger9a795d82010-07-14 16:19:05 +00003605 .write = spi_chip_write_1,
Michael Karcher4497e862010-07-10 19:34:15 +00003606 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003607 .voltage = {2700, 3600},
Michael Karcher80a59ea2010-06-19 22:06:35 +00003608 },
3609
3610 {
Stefan Tauner85f09f72014-05-27 21:27:14 +00003611 .vendor = "ESMT",
3612 .name = "F25L32PA",
3613 .bustype = BUS_SPI,
3614 .manufacture_id = ESMT_ID,
3615 .model_id = ESMT_F25L32PA,
3616 .total_size = 4096,
3617 .page_size = 256,
3618 .feature_bits = FEATURE_WRSR_EITHER | FEATURE_OTP,
3619 .tested = TEST_UNTESTED,
3620 .probe = probe_spi_rdid,
3621 .probe_timing = TIMING_ZERO,
3622 .block_erasers =
3623 {
3624 {
3625 .eraseblocks = { {4 * 1024, 1024} },
3626 .block_erase = spi_block_erase_20,
3627 }, {
3628 .eraseblocks = { {64 * 1024, 64} },
3629 .block_erase = spi_block_erase_d8,
3630 }, {
3631 .eraseblocks = { {4 * 1024 * 1024, 1} },
3632 .block_erase = spi_block_erase_60,
3633 }, {
3634 .eraseblocks = { {4 * 1024 * 1024, 1} },
3635 .block_erase = spi_block_erase_c7,
3636 }
3637 },
3638 .printlock = spi_prettyprint_status_register_bp2_bpl,
3639 .unlock = spi_disable_blockprotect,
3640 .write = spi_chip_write_256,
3641 .read = spi_chip_read,
3642 .voltage = {2700, 3600},
3643 },
3644
3645 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003646 .vendor = "ESMT",
3647 .name = "F49B002UA",
3648 .bustype = BUS_PARALLEL,
3649 .manufacture_id = ESMT_ID,
3650 .model_id = ESMT_F49B002UA,
3651 .total_size = 256,
3652 .page_size = 4096,
3653 .feature_bits = FEATURE_EITHER_RESET,
3654 .tested = TEST_UNTESTED,
3655 .probe = probe_jedec,
3656 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3657 .block_erasers =
3658 {
3659 {
3660 .eraseblocks = {
3661 {128 * 1024, 1},
3662 {96 * 1024, 1},
3663 {8 * 1024, 2},
3664 {16 * 1024, 1},
3665 },
3666 .block_erase = erase_sector_jedec,
3667 }, {
3668 .eraseblocks = { {256 * 1024, 1} },
3669 .block_erase = erase_chip_block_jedec,
3670 }
3671 },
3672 .write = write_jedec_1,
3673 .read = read_memmapped,
3674 .voltage = {4500, 5500},
3675 },
3676
3677 {
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003678 .vendor = "Eon",
3679 .name = "EN25B05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003680 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003681 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003682 .model_id = EON_EN25B05,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003683 .total_size = 64,
3684 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003685 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003686 .tested = TEST_UNTESTED,
3687 .probe = probe_spi_rdid,
3688 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003689 .block_erasers =
3690 {
3691 {
3692 .eraseblocks = {
3693 {4 * 1024, 2},
3694 {8 * 1024, 1},
3695 {16 * 1024, 1},
3696 {32 * 1024, 1},
3697 },
3698 .block_erase = spi_block_erase_d8,
3699 }, {
3700 .eraseblocks = { {64 * 1024, 1} },
3701 .block_erase = spi_block_erase_c7,
3702 }
3703 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003704 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003705 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003706 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003707 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003708 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003709 },
3710
3711 {
3712 .vendor = "Eon",
3713 .name = "EN25B05T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003714 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003715 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003716 .model_id = EON_EN25B05,
Sean Nelson54596372010-01-09 05:30:14 +00003717 .total_size = 64,
3718 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003719 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003720 .tested = TEST_UNTESTED,
3721 .probe = probe_spi_rdid,
3722 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003723 .block_erasers =
3724 {
3725 {
3726 .eraseblocks = {
3727 {32 * 1024, 1},
3728 {16 * 1024, 1},
3729 {8 * 1024, 1},
3730 {4 * 1024, 2},
3731 },
3732 .block_erase = spi_block_erase_d8,
3733 }, {
3734 .eraseblocks = { {64 * 1024, 1} },
3735 .block_erase = spi_block_erase_c7,
3736 }
3737 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003738 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003739 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003740 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003741 .read = spi_chip_read, /* Fast read (0x0B) supported */
3742 .voltage = {2700, 3600},
3743 },
3744
3745 {
3746 .vendor = "Eon",
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003747 .name = "EN25B10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003748 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003749 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003750 .model_id = EON_EN25B10,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003751 .total_size = 128,
3752 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003753 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003754 .tested = TEST_UNTESTED,
3755 .probe = probe_spi_rdid,
3756 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003757 .block_erasers =
3758 {
3759 {
3760 .eraseblocks = {
3761 {4 * 1024, 2},
3762 {8 * 1024, 1},
3763 {16 * 1024, 1},
3764 {32 * 1024, 3},
3765 },
3766 .block_erase = spi_block_erase_d8,
3767 }, {
3768 .eraseblocks = { {128 * 1024, 1} },
3769 .block_erase = spi_block_erase_c7,
3770 }
3771 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003772 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003773 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003774 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003775 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003776 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003777 },
3778
3779 {
3780 .vendor = "Eon",
3781 .name = "EN25B10T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003782 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003783 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003784 .model_id = EON_EN25B10,
Sean Nelson54596372010-01-09 05:30:14 +00003785 .total_size = 128,
3786 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003787 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00003788 .tested = TEST_OK_PREW,
Sean Nelson54596372010-01-09 05:30:14 +00003789 .probe = probe_spi_rdid,
3790 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003791 .block_erasers =
3792 {
3793 {
3794 .eraseblocks = {
3795 {32 * 1024, 3},
3796 {16 * 1024, 1},
3797 {8 * 1024, 1},
3798 {4 * 1024, 2},
3799 },
3800 .block_erase = spi_block_erase_d8,
3801 }, {
3802 .eraseblocks = { {128 * 1024, 1} },
3803 .block_erase = spi_block_erase_c7,
3804 }
3805 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003806 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003807 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003808 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003809 .read = spi_chip_read, /* Fast read (0x0B) supported */
3810 .voltage = {2700, 3600},
3811 },
3812
3813 {
3814 .vendor = "Eon",
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003815 .name = "EN25B16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003816 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003817 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003818 .model_id = EON_EN25B16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003819 .total_size = 2048,
3820 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003821 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003822 .tested = TEST_UNTESTED,
3823 .probe = probe_spi_rdid,
3824 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003825 .block_erasers =
3826 {
3827 {
3828 .eraseblocks = {
3829 {4 * 1024, 2},
3830 {8 * 1024, 1},
3831 {16 * 1024, 1},
3832 {32 * 1024, 1},
3833 {64 * 1024, 31},
3834 },
3835 .block_erase = spi_block_erase_d8,
3836 }, {
3837 .eraseblocks = { {2 * 1024 * 1024, 1} },
3838 .block_erase = spi_block_erase_c7,
3839 }
3840 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003841 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003842 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003843 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003844 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003845 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003846 },
3847
3848 {
3849 .vendor = "Eon",
3850 .name = "EN25B16T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003851 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003852 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003853 .model_id = EON_EN25B16,
Sean Nelson54596372010-01-09 05:30:14 +00003854 .total_size = 2048,
3855 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003856 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003857 .tested = TEST_UNTESTED,
3858 .probe = probe_spi_rdid,
3859 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003860 .block_erasers =
3861 {
3862 {
3863 .eraseblocks = {
3864 {64 * 1024, 31},
3865 {32 * 1024, 1},
3866 {16 * 1024, 1},
3867 {8 * 1024, 1},
3868 {4 * 1024, 2},
3869 },
3870 .block_erase = spi_block_erase_d8,
3871 }, {
3872 .eraseblocks = { {2 * 1024 * 1024, 1} },
3873 .block_erase = spi_block_erase_c7,
3874 }
3875 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003876 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003877 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003878 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003879 .read = spi_chip_read, /* Fast read (0x0B) supported */
3880 .voltage = {2700, 3600},
3881 },
3882
3883 {
3884 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10003885 .name = "EN25B20",
Stefan Taunerb175af52015-01-24 15:06:27 +00003886 .bustype = BUS_SPI,
3887 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10003888 .model_id = EON_EN25B20,
3889 .total_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003890 .page_size = 256,
3891 .feature_bits = FEATURE_WRSR_WREN,
3892 .tested = TEST_UNTESTED,
3893 .probe = probe_spi_rdid,
3894 .probe_timing = TIMING_ZERO,
3895 .block_erasers =
3896 {
3897 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003898 .eraseblocks = {
3899 {4 * 1024, 2},
3900 {8 * 1024, 1},
3901 {16 * 1024, 1},
3902 {32 * 1024, 1},
3903 {64 * 1024, 3}
3904 },
Stefan Taunerb175af52015-01-24 15:06:27 +00003905 .block_erase = spi_block_erase_d8,
3906 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003907 .eraseblocks = { {256 * 1024, 1} },
3908 .block_erase = spi_block_erase_c7,
3909 }
3910 },
3911 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
3912 .unlock = spi_disable_blockprotect,
3913 .write = spi_chip_write_256,
3914 .read = spi_chip_read, /* Fast read (0x0B) supported */
3915 .voltage = {2700, 3600},
3916 },
3917
3918 {
3919 .vendor = "Eon",
3920 .name = "EN25B20T",
3921 .bustype = BUS_SPI,
3922 .manufacture_id = EON_ID_NOPREFIX,
3923 .model_id = EON_EN25B20,
3924 .total_size = 256,
3925 .page_size = 256,
3926 .feature_bits = FEATURE_WRSR_WREN,
3927 .tested = TEST_UNTESTED,
3928 .probe = probe_spi_rdid,
3929 .probe_timing = TIMING_ZERO,
3930 .block_erasers =
3931 {
3932 {
3933 .eraseblocks = {
3934 {64 * 1024, 3},
3935 {32 * 1024, 1},
3936 {16 * 1024, 1},
3937 {8 * 1024, 1},
3938 {4 * 1024, 2},
3939 },
3940 .block_erase = spi_block_erase_d8,
3941 }, {
3942 .eraseblocks = { {256 * 1024, 1} },
Stefan Taunerb175af52015-01-24 15:06:27 +00003943 .block_erase = spi_block_erase_c7,
3944 }
3945 },
3946 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
3947 .unlock = spi_disable_blockprotect,
3948 .write = spi_chip_write_256,
3949 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003950 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003951 },
3952
3953 {
3954 .vendor = "Eon",
3955 .name = "EN25B32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003956 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003957 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003958 .model_id = EON_EN25B32,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003959 .total_size = 4096,
3960 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003961 /* OTP: 512B total; enter 0x3A */
3962 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003963 .tested = TEST_UNTESTED,
3964 .probe = probe_spi_rdid,
3965 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003966 .block_erasers =
3967 {
3968 {
3969 .eraseblocks = {
3970 {4 * 1024, 2},
3971 {8 * 1024, 1},
3972 {16 * 1024, 1},
3973 {32 * 1024, 1},
3974 {64 * 1024, 63},
3975 },
3976 .block_erase = spi_block_erase_d8,
3977 }, {
3978 .eraseblocks = { {4 * 1024 * 1024, 1} },
3979 .block_erase = spi_block_erase_c7,
3980 }
3981 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003982 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003983 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003984 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003985 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003986 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003987 },
3988
3989 {
3990 .vendor = "Eon",
3991 .name = "EN25B32T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003992 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003993 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003994 .model_id = EON_EN25B32,
Sean Nelson54596372010-01-09 05:30:14 +00003995 .total_size = 4096,
3996 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003997 /* OTP: 512B total; enter 0x3A */
3998 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Sean Nelson54596372010-01-09 05:30:14 +00003999 .tested = TEST_UNTESTED,
4000 .probe = probe_spi_rdid,
4001 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004002 .block_erasers =
4003 {
4004 {
4005 .eraseblocks = {
4006 {64 * 1024, 63},
4007 {32 * 1024, 1},
4008 {16 * 1024, 1},
4009 {8 * 1024, 1},
4010 {4 * 1024, 2},
4011 },
4012 .block_erase = spi_block_erase_d8,
4013 }, {
4014 .eraseblocks = { {4 * 1024 * 1024, 1} },
4015 .block_erase = spi_block_erase_c7,
4016 }
4017 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004018 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004019 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004020 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004021 .read = spi_chip_read, /* Fast read (0x0B) supported */
4022 .voltage = {2700, 3600},
4023 },
4024
4025 {
4026 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004027 .name = "EN25B40",
Stefan Taunerb175af52015-01-24 15:06:27 +00004028 .bustype = BUS_SPI,
4029 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004030 .model_id = EON_EN25B40,
4031 .total_size = 512,
Stefan Taunerb175af52015-01-24 15:06:27 +00004032 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004033 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerb175af52015-01-24 15:06:27 +00004034 .tested = TEST_UNTESTED,
4035 .probe = probe_spi_rdid,
4036 .probe_timing = TIMING_ZERO,
4037 .block_erasers =
4038 {
4039 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004040 .eraseblocks = {
4041 {4 * 1024, 2},
4042 {8 * 1024, 1},
4043 {16 * 1024, 1},
4044 {32 * 1024, 1},
4045 {64 * 1024, 7}
4046 },
Stefan Taunerb175af52015-01-24 15:06:27 +00004047 .block_erase = spi_block_erase_d8,
4048 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004049 .eraseblocks = { {512 * 1024, 1} },
4050 .block_erase = spi_block_erase_c7,
4051 }
4052 },
4053 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4054 .unlock = spi_disable_blockprotect,
4055 .write = spi_chip_write_256,
4056 .read = spi_chip_read, /* Fast read (0x0B) supported */
4057 .voltage = {2700, 3600},
4058 },
4059
4060 {
4061 .vendor = "Eon",
4062 .name = "EN25B40T",
4063 .bustype = BUS_SPI,
4064 .manufacture_id = EON_ID_NOPREFIX,
4065 .model_id = EON_EN25B40,
4066 .total_size = 512,
4067 .page_size = 256,
4068 .feature_bits = FEATURE_WRSR_WREN,
4069 .tested = TEST_UNTESTED,
4070 .probe = probe_spi_rdid,
4071 .probe_timing = TIMING_ZERO,
4072 .block_erasers =
4073 {
4074 {
4075 .eraseblocks = {
4076 {64 * 1024, 7},
4077 {32 * 1024, 1},
4078 {16 * 1024, 1},
4079 {8 * 1024, 1},
4080 {4 * 1024, 2},
4081 },
4082 .block_erase = spi_block_erase_d8,
4083 }, {
4084 .eraseblocks = { {512 * 1024, 1} },
Stefan Taunerb175af52015-01-24 15:06:27 +00004085 .block_erase = spi_block_erase_c7,
4086 }
4087 },
4088 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4089 .unlock = spi_disable_blockprotect,
4090 .write = spi_chip_write_256,
4091 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004092 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004093 },
4094
4095 {
4096 .vendor = "Eon",
4097 .name = "EN25B64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004098 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004099 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004100 .model_id = EON_EN25B64,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004101 .total_size = 8192,
4102 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004103 /* OTP: 512B total; enter 0x3A */
4104 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004105 .tested = TEST_UNTESTED,
4106 .probe = probe_spi_rdid,
4107 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004108 .block_erasers =
4109 {
4110 {
4111 .eraseblocks = {
4112 {4 * 1024, 2},
4113 {8 * 1024, 1},
4114 {16 * 1024, 1},
4115 {32 * 1024, 1},
4116 {64 * 1024, 127},
4117 },
4118 .block_erase = spi_block_erase_d8,
4119 }, {
4120 .eraseblocks = { {8 * 1024 * 1024, 1} },
4121 .block_erase = spi_block_erase_c7,
4122 }
4123 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004124 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004125 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00004126 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004127 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004128 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00004129 },
4130
4131 {
4132 .vendor = "Eon",
4133 .name = "EN25B64T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004134 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00004135 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004136 .model_id = EON_EN25B64,
Sean Nelson54596372010-01-09 05:30:14 +00004137 .total_size = 8192,
4138 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004139 /* OTP: 512B total; enter 0x3A */
4140 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Sean Nelson54596372010-01-09 05:30:14 +00004141 .tested = TEST_UNTESTED,
4142 .probe = probe_spi_rdid,
4143 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004144 .block_erasers =
4145 {
4146 {
4147 .eraseblocks = {
4148 {64 * 1024, 127},
4149 {32 * 1024, 1},
4150 {16 * 1024, 1},
4151 {8 * 1024, 1},
4152 {4 * 1024, 2},
4153 },
4154 .block_erase = spi_block_erase_d8,
4155 }, {
4156 .eraseblocks = { {8 * 1024 * 1024, 1} },
4157 .block_erase = spi_block_erase_c7,
4158 }
4159 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004160 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004161 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004162 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004163 .read = spi_chip_read, /* Fast read (0x0B) supported */
4164 .voltage = {2700, 3600},
4165 },
4166
4167 {
4168 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004169 .name = "EN25B80",
Stefan Taunerb175af52015-01-24 15:06:27 +00004170 .bustype = BUS_SPI,
4171 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004172 .model_id = EON_EN25B80,
4173 .total_size = 1024,
Stefan Taunerb175af52015-01-24 15:06:27 +00004174 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004175 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerb175af52015-01-24 15:06:27 +00004176 .tested = TEST_UNTESTED,
4177 .probe = probe_spi_rdid,
4178 .probe_timing = TIMING_ZERO,
4179 .block_erasers =
4180 {
4181 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004182 .eraseblocks = {
4183 {4 * 1024, 2},
4184 {8 * 1024, 1},
4185 {16 * 1024, 1},
4186 {32 * 1024, 1},
4187 {64 * 1024, 15}
4188 },
Stefan Taunerb175af52015-01-24 15:06:27 +00004189 .block_erase = spi_block_erase_d8,
4190 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004191 .eraseblocks = { {1024 * 1024, 1} },
4192 .block_erase = spi_block_erase_c7,
4193 }
4194 },
4195 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4196 .unlock = spi_disable_blockprotect,
4197 .write = spi_chip_write_256,
4198 .read = spi_chip_read, /* Fast read (0x0B) supported */
4199 .voltage = {2700, 3600},
4200 },
4201
4202 {
4203 .vendor = "Eon",
4204 .name = "EN25B80T",
4205 .bustype = BUS_SPI,
4206 .manufacture_id = EON_ID_NOPREFIX,
4207 .model_id = EON_EN25B80,
4208 .total_size = 1024,
4209 .page_size = 256,
4210 .feature_bits = FEATURE_WRSR_WREN,
4211 .tested = TEST_UNTESTED,
4212 .probe = probe_spi_rdid,
4213 .probe_timing = TIMING_ZERO,
4214 .block_erasers =
4215 {
4216 {
4217 .eraseblocks = {
4218 {64 * 1024, 15},
4219 {32 * 1024, 1},
4220 {16 * 1024, 1},
4221 {8 * 1024, 1},
4222 {4 * 1024, 2},
4223 },
4224 .block_erase = spi_block_erase_d8,
4225 }, {
4226 .eraseblocks = { {1024 * 1024, 1} },
Stefan Taunerb175af52015-01-24 15:06:27 +00004227 .block_erase = spi_block_erase_c7,
4228 }
4229 },
4230 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4231 .unlock = spi_disable_blockprotect,
4232 .write = spi_chip_write_256,
4233 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004234 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004235 },
4236
4237 {
4238 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004239 .name = "EN25F05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004240 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004241 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004242 .model_id = EON_EN25F05,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004243 .total_size = 64,
4244 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004245 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00004246 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004247 .probe = probe_spi_rdid,
4248 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004249 .block_erasers =
4250 {
4251 {
4252 .eraseblocks = { {4 * 1024, 16} },
4253 .block_erase = spi_block_erase_20,
4254 }, {
4255 .eraseblocks = { {32 * 1024, 2} },
4256 .block_erase = spi_block_erase_d8,
4257 }, {
4258 .eraseblocks = { {32 * 1024, 2} },
4259 .block_erase = spi_block_erase_52,
4260 }, {
4261 .eraseblocks = { {64 * 1024, 1} },
4262 .block_erase = spi_block_erase_60,
4263 }, {
4264 .eraseblocks = { {64 * 1024, 1} },
4265 .block_erase = spi_block_erase_c7,
4266 }
4267 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004268 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004269 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004270 .write = spi_chip_write_256,
4271 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004272 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004273 },
4274
4275 {
4276 .vendor = "Eon",
4277 .name = "EN25F10",
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_EN25F10,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004281 .total_size = 128,
4282 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004283 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004284 .tested = TEST_UNTESTED,
4285 .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, 32} },
4291 .block_erase = spi_block_erase_20,
4292 }, {
4293 .eraseblocks = { {32 * 1024, 4} },
4294 .block_erase = spi_block_erase_d8,
4295 }, {
4296 .eraseblocks = { {32 * 1024, 4} },
4297 .block_erase = spi_block_erase_52,
4298 }, {
4299 .eraseblocks = { {128 * 1024, 1} },
4300 .block_erase = spi_block_erase_60,
4301 }, {
4302 .eraseblocks = { {128 * 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",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004315 .name = "EN25F16",
4316 .bustype = BUS_SPI,
4317 .manufacture_id = EON_ID_NOPREFIX,
4318 .model_id = EON_EN25F16,
4319 .total_size = 2048,
4320 .page_size = 256,
4321 .feature_bits = FEATURE_WRSR_WREN,
4322 .tested = TEST_OK_PREW,
4323 .probe = probe_spi_rdid,
4324 .probe_timing = TIMING_ZERO,
4325 .block_erasers =
4326 {
4327 {
4328 .eraseblocks = { {4 * 1024, 512} },
4329 .block_erase = spi_block_erase_20,
4330 }, {
4331 .eraseblocks = { {64 * 1024, 32} },
4332 .block_erase = spi_block_erase_d8,
4333 }, {
4334 .eraseblocks = { {2 * 1024 * 1024, 1} },
4335 .block_erase = spi_block_erase_60,
4336 }, {
4337 .eraseblocks = { {2 * 1024 * 1024, 1} },
4338 .block_erase = spi_block_erase_c7,
4339 }
4340 },
4341 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4342 .unlock = spi_disable_blockprotect,
4343 .write = spi_chip_write_256,
4344 .read = spi_chip_read,
4345 .voltage = {2700, 3600},
4346 },
4347
4348 {
4349 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004350 .name = "EN25F20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004351 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004352 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004353 .model_id = EON_EN25F20,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004354 .total_size = 256,
4355 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004356 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004357 .tested = TEST_UNTESTED,
4358 .probe = probe_spi_rdid,
4359 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004360 .block_erasers =
4361 {
4362 {
4363 .eraseblocks = { {4 * 1024, 64} },
4364 .block_erase = spi_block_erase_20,
4365 }, {
4366 .eraseblocks = { {64 * 1024, 4} },
4367 .block_erase = spi_block_erase_d8,
4368 }, {
4369 .eraseblocks = { {64 * 1024, 4} },
4370 .block_erase = spi_block_erase_52,
4371 }, {
4372 .eraseblocks = { {256 * 1024, 1} },
4373 .block_erase = spi_block_erase_60,
4374 }, {
4375 .eraseblocks = { {256 * 1024, 1} },
4376 .block_erase = spi_block_erase_c7,
4377 }
4378 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004379 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004380 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004381 .write = spi_chip_write_256,
4382 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004383 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004384 },
4385
4386 {
4387 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004388 .name = "EN25F32",
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_EN25F32,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004392 .total_size = 4096,
4393 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004394 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +00004395 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004396 .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, 1024} },
4402 .block_erase = spi_block_erase_20,
4403 }, {
4404 .eraseblocks = { {64 * 1024, 64} },
4405 .block_erase = spi_block_erase_d8,
4406 }, {
4407 .eraseblocks = { {4 * 1024 * 1024, 1} },
4408 .block_erase = spi_block_erase_60,
4409 }, {
4410 .eraseblocks = { {4 * 1024 * 1024, 1} },
4411 .block_erase = spi_block_erase_c7,
4412 }
4413 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004414 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004415 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004416 .write = spi_chip_write_256,
4417 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004418 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004419 },
4420
4421 {
Russ Dill3cd5a122010-03-05 08:44:11 +00004422 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004423 .name = "EN25F40",
4424 .bustype = BUS_SPI,
4425 .manufacture_id = EON_ID_NOPREFIX,
4426 .model_id = EON_EN25F40,
4427 .total_size = 512,
4428 .page_size = 256,
4429 .feature_bits = FEATURE_WRSR_WREN,
4430 .tested = TEST_OK_PREW,
4431 .probe = probe_spi_rdid,
4432 .probe_timing = TIMING_ZERO,
4433 .block_erasers =
4434 {
4435 {
4436 .eraseblocks = { {4 * 1024, 128} },
4437 .block_erase = spi_block_erase_20,
4438 }, {
4439 .eraseblocks = { {64 * 1024, 8} },
4440 .block_erase = spi_block_erase_d8,
4441 }, {
4442 .eraseblocks = { {512 * 1024, 1} },
4443 .block_erase = spi_block_erase_60,
4444 }, {
4445 .eraseblocks = { {512 * 1024, 1} },
4446 .block_erase = spi_block_erase_c7,
4447 },
4448 },
4449 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4450 .unlock = spi_disable_blockprotect,
4451 .write = spi_chip_write_256,
4452 .read = spi_chip_read,
4453 .voltage = {2700, 3600},
4454 },
4455
4456 {
4457 .vendor = "Eon",
Stefan Taunerd932fd02012-09-06 17:37:16 +00004458 .name = "EN25F64",
4459 .bustype = BUS_SPI,
4460 .manufacture_id = EON_ID_NOPREFIX,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00004461 .model_id = EON_EN25F64,
Stefan Taunerd932fd02012-09-06 17:37:16 +00004462 .total_size = 8192,
4463 .page_size = 256,
4464 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00004465 .tested = TEST_OK_PREW,
Stefan Taunerd932fd02012-09-06 17:37:16 +00004466 .probe = probe_spi_rdid,
4467 .probe_timing = TIMING_ZERO,
4468 .block_erasers =
4469 {
4470 {
4471 .eraseblocks = { {4 * 1024, 2048} },
4472 .block_erase = spi_block_erase_20,
4473 }, {
4474 .eraseblocks = { {64 * 1024, 128} },
4475 .block_erase = spi_block_erase_d8,
4476 }, {
4477 .eraseblocks = { {8 * 1024 * 1024, 1} },
4478 .block_erase = spi_block_erase_60,
4479 }, {
4480 .eraseblocks = { {8 * 1024 * 1024, 1} },
4481 .block_erase = spi_block_erase_c7,
4482 }
4483 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004484 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Stefan Taunerd932fd02012-09-06 17:37:16 +00004485 .unlock = spi_disable_blockprotect,
4486 .write = spi_chip_write_256,
4487 .read = spi_chip_read,
4488 .voltage = {2700, 3600},
4489 },
4490
4491 {
4492 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004493 .name = "EN25F80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004494 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004495 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004496 .model_id = EON_EN25F80,
David Hendricks6d715302011-07-24 22:21:57 +00004497 .total_size = 1024,
4498 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004499 .feature_bits = FEATURE_WRSR_WREN,
4500 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004501 .probe = probe_spi_rdid,
4502 .probe_timing = TIMING_ZERO,
4503 .block_erasers =
4504 {
4505 {
4506 .eraseblocks = { {4 * 1024, 256} },
4507 .block_erase = spi_block_erase_20,
4508 }, {
4509 .eraseblocks = { {64 * 1024, 16} },
4510 .block_erase = spi_block_erase_d8,
4511 }, {
4512 .eraseblocks = { {1024 * 1024, 1} },
4513 .block_erase = spi_block_erase_60,
4514 }, {
4515 .eraseblocks = { {1024 * 1024, 1} },
4516 .block_erase = spi_block_erase_c7,
4517 }
4518 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004519 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004520 .unlock = spi_disable_blockprotect,
4521 .write = spi_chip_write_256,
4522 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004523 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004524 },
4525
4526 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004527 .vendor = "Eon",
4528 .name = "EN25P05",
4529 .bustype = BUS_SPI,
4530 .manufacture_id = EON_ID_NOPREFIX,
4531 .model_id = EON_EN25B05,
4532 .total_size = 64,
4533 .page_size = 256,
4534 .feature_bits = FEATURE_WRSR_WREN,
4535 .tested = TEST_UNTESTED,
4536 .probe = probe_spi_rdid,
4537 .probe_timing = TIMING_ZERO,
4538 .block_erasers =
4539 {
4540 {
4541 .eraseblocks = {
4542 {32 * 1024, 2} },
4543 .block_erase = spi_block_erase_d8,
4544 }, {
4545 .eraseblocks = { {64 * 1024, 1} },
4546 .block_erase = spi_block_erase_c7,
4547 }
4548 },
4549 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4550 .unlock = spi_disable_blockprotect,
4551 .write = spi_chip_write_256,
4552 .read = spi_chip_read, /* Fast read (0x0B) supported */
4553 .voltage = {2700, 3600},
4554 },
4555
4556 {
4557 .vendor = "Eon",
4558 .name = "EN25P10",
4559 .bustype = BUS_SPI,
4560 .manufacture_id = EON_ID_NOPREFIX,
4561 .model_id = EON_EN25B10,
4562 .total_size = 128,
4563 .page_size = 256,
4564 .feature_bits = FEATURE_WRSR_WREN,
4565 .tested = TEST_UNTESTED,
4566 .probe = probe_spi_rdid,
4567 .probe_timing = TIMING_ZERO,
4568 .block_erasers =
4569 {
4570 {
4571 .eraseblocks = { {32 * 1024, 4} },
4572 .block_erase = spi_block_erase_d8,
4573 }, {
4574 .eraseblocks = { {128 * 1024, 1} },
4575 .block_erase = spi_block_erase_c7,
4576 }
4577 },
4578 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4579 .unlock = spi_disable_blockprotect,
4580 .write = spi_chip_write_256,
4581 .read = spi_chip_read, /* Fast read (0x0B) supported */
4582 .voltage = {2700, 3600},
4583 },
4584
4585 {
4586 .vendor = "Eon",
4587 .name = "EN25P16",
4588 .bustype = BUS_SPI,
4589 .manufacture_id = EON_ID_NOPREFIX,
4590 .model_id = EON_EN25B16,
4591 .total_size = 2048,
4592 .page_size = 256,
4593 .feature_bits = FEATURE_WRSR_WREN,
4594 .tested = TEST_UNTESTED,
4595 .probe = probe_spi_rdid,
4596 .probe_timing = TIMING_ZERO,
4597 .block_erasers =
4598 {
4599 {
4600 .eraseblocks = { {64 * 1024, 32} },
4601 .block_erase = spi_block_erase_d8,
4602 }, {
4603 .eraseblocks = { {2 * 1024 * 1024, 1} },
4604 .block_erase = spi_block_erase_c7,
4605 }
4606 },
4607 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4608 .unlock = spi_disable_blockprotect,
4609 .write = spi_chip_write_256,
4610 .read = spi_chip_read, /* Fast read (0x0B) supported */
4611 .voltage = {2700, 3600},
4612 },
4613
4614 {
4615 .vendor = "Eon",
4616 .name = "EN25P20",
4617 .bustype = BUS_SPI,
4618 .manufacture_id = EON_ID_NOPREFIX,
4619 .model_id = EON_EN25B20,
4620 .total_size = 256,
4621 .page_size = 256,
4622 .feature_bits = FEATURE_WRSR_WREN,
4623 .tested = TEST_UNTESTED,
4624 .probe = probe_spi_rdid,
4625 .probe_timing = TIMING_ZERO,
4626 .block_erasers =
4627 {
4628 {
4629 .eraseblocks = { {64 * 1024, 4} },
4630 .block_erase = spi_block_erase_d8,
4631 }, {
4632 .eraseblocks = { {256 * 1024, 1} },
4633 .block_erase = spi_block_erase_c7,
4634 }
4635 },
4636 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4637 .unlock = spi_disable_blockprotect,
4638 .write = spi_chip_write_256,
4639 .read = spi_chip_read, /* Fast read (0x0B) supported */
4640 .voltage = {2700, 3600},
4641 },
4642
4643 {
4644 .vendor = "Eon",
4645 .name = "EN25P32", /* Uniform version of EN25B32 */
4646 .bustype = BUS_SPI,
4647 .manufacture_id = EON_ID_NOPREFIX,
4648 .model_id = EON_EN25B32,
4649 .total_size = 4096,
4650 .page_size = 256,
4651 /* OTP: 512B total; enter 0x3A */
4652 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4653 .tested = TEST_UNTESTED,
4654 .probe = probe_spi_rdid,
4655 .probe_timing = TIMING_ZERO,
4656 .block_erasers =
4657 {
4658 {
4659 .eraseblocks = { {64 * 1024, 64} },
4660 .block_erase = spi_block_erase_d8,
4661 }, {
4662 .eraseblocks = { {4 * 1024 * 1024, 1} },
4663 .block_erase = spi_block_erase_c7,
4664 }
4665 },
4666 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4667 .unlock = spi_disable_blockprotect,
4668 .write = spi_chip_write_256,
4669 .read = spi_chip_read, /* Fast read (0x0B) supported */
4670 .voltage = {2700, 3600},
4671 },
4672
4673 {
4674 .vendor = "Eon",
4675 .name = "EN25P40",
4676 .bustype = BUS_SPI,
4677 .manufacture_id = EON_ID_NOPREFIX,
4678 .model_id = EON_EN25B40,
4679 .total_size = 512,
4680 .page_size = 256,
4681 .feature_bits = FEATURE_WRSR_WREN,
4682 .tested = TEST_UNTESTED,
4683 .probe = probe_spi_rdid,
4684 .probe_timing = TIMING_ZERO,
4685 .block_erasers =
4686 {
4687 {
4688 .eraseblocks = { {64 * 1024, 8} },
4689 .block_erase = spi_block_erase_d8,
4690 }, {
4691 .eraseblocks = { {512 * 1024, 1} },
4692 .block_erase = spi_block_erase_c7,
4693 }
4694 },
4695 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4696 .unlock = spi_disable_blockprotect,
4697 .write = spi_chip_write_256,
4698 .read = spi_chip_read, /* Fast read (0x0B) supported */
4699 .voltage = {2700, 3600},
4700 },
4701
4702 {
4703 .vendor = "Eon",
4704 .name = "EN25P64",
4705 .bustype = BUS_SPI,
4706 .manufacture_id = EON_ID_NOPREFIX,
4707 .model_id = EON_EN25B64,
4708 .total_size = 8192,
4709 .page_size = 256,
4710 /* OTP: 512B total; enter 0x3A */
4711 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4712 .tested = TEST_UNTESTED,
4713 .probe = probe_spi_rdid,
4714 .probe_timing = TIMING_ZERO,
4715 .block_erasers =
4716 {
4717 {
4718 .eraseblocks = { {64 * 1024, 128} },
4719 .block_erase = spi_block_erase_d8,
4720 }, {
4721 .eraseblocks = { {8 * 1024 * 1024, 1} },
4722 .block_erase = spi_block_erase_c7,
4723 }
4724 },
4725 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4726 .unlock = spi_disable_blockprotect,
4727 .write = spi_chip_write_256,
4728 .read = spi_chip_read, /* Fast read (0x0B) supported */
4729 .voltage = {2700, 3600},
4730 },
4731
4732 {
4733 .vendor = "Eon",
4734 .name = "EN25P80",
4735 .bustype = BUS_SPI,
4736 .manufacture_id = EON_ID_NOPREFIX,
4737 .model_id = EON_EN25B80,
4738 .total_size = 1024,
4739 .page_size = 256,
4740 .feature_bits = FEATURE_WRSR_WREN,
4741 .tested = TEST_UNTESTED,
4742 .probe = probe_spi_rdid,
4743 .probe_timing = TIMING_ZERO,
4744 .block_erasers =
4745 {
4746 {
4747 .eraseblocks = { {64 * 1024, 16} },
4748 .block_erase = spi_block_erase_d8,
4749 }, {
4750 .eraseblocks = { {1024 * 1024, 1} },
4751 .block_erase = spi_block_erase_c7,
4752 }
4753 },
4754 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4755 .unlock = spi_disable_blockprotect,
4756 .write = spi_chip_write_256,
4757 .read = spi_chip_read, /* Fast read (0x0B) supported */
4758 .voltage = {2700, 3600},
4759 },
4760
4761 {
4762 .vendor = "Eon",
4763 .name = "EN25Q128",
4764 .bustype = BUS_SPI,
4765 .manufacture_id = EON_ID_NOPREFIX,
4766 .model_id = EON_EN25Q128,
4767 .total_size = 16384,
4768 .page_size = 256,
4769 /* OTP: 512B total; enter 0x3A */
4770 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4771 .tested = TEST_OK_PREW,
4772 .probe = probe_spi_rdid,
4773 .probe_timing = TIMING_ZERO,
4774 .block_erasers =
4775 {
4776 {
4777 .eraseblocks = { {4 * 1024, 4096} },
4778 .block_erase = spi_block_erase_20,
4779 }, {
4780 .eraseblocks = { {64 * 1024, 256} },
4781 .block_erase = spi_block_erase_d8,
4782 }, {
4783 .eraseblocks = { {16 * 1024 * 1024, 1} },
4784 .block_erase = spi_block_erase_60,
4785 }, {
4786 .eraseblocks = { {16 * 1024 * 1024, 1} },
4787 .block_erase = spi_block_erase_c7,
4788 }
4789 },
4790 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4791 .unlock = spi_disable_blockprotect,
4792 .write = spi_chip_write_256,
4793 .read = spi_chip_read,
4794 },
4795
4796 {
David Hendricks6d715302011-07-24 22:21:57 +00004797 /* Note: EN25D16 is an evil twin which shares the model ID
4798 but has different write protection capabilities */
4799 .vendor = "Eon",
4800 .name = "EN25Q16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004801 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004802 .manufacture_id = EON_ID_NOPREFIX,
4803 .model_id = EON_EN25Q16,
4804 .total_size = 2048,
4805 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004806 /* OTP: D16 512B/Q16 128B total; enter 0x3A */
4807 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004808 .tested = TEST_UNTESTED,
4809 .probe = probe_spi_rdid,
4810 .probe_timing = TIMING_ZERO,
4811 .block_erasers =
4812 {
4813 {
4814 .eraseblocks = { {4 * 1024, 512} },
4815 .block_erase = spi_block_erase_20,
4816 }, {
4817 .eraseblocks = { {64 * 1024, 32} },
4818 .block_erase = spi_block_erase_d8,
4819 }, {
4820 /* not supported by Q16 version */
4821 .eraseblocks = { {64 * 1024, 32} },
4822 .block_erase = spi_block_erase_52,
4823 }, {
4824 .eraseblocks = { {2 * 1024 * 1024, 1} },
4825 .block_erase = spi_block_erase_60,
4826 }, {
4827 .eraseblocks = { {2 * 1024 * 1024, 1} },
4828 .block_erase = spi_block_erase_c7,
4829 }
4830 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004831 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004832 .unlock = spi_disable_blockprotect,
4833 .write = spi_chip_write_256,
4834 .read = spi_chip_read,
4835 .voltage = {2700, 3600},
4836 },
4837
4838 {
4839 .vendor = "Eon",
4840 .name = "EN25Q32(A/B)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004841 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004842 .manufacture_id = EON_ID_NOPREFIX,
4843 .model_id = EON_EN25Q32,
4844 .total_size = 4096,
4845 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004846 /* OTP: 512B total; enter 0x3A */
4847 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004848 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004849 .probe = probe_spi_rdid,
4850 .probe_timing = TIMING_ZERO,
4851 .block_erasers =
4852 {
4853 {
4854 .eraseblocks = { {4 * 1024, 1024} },
4855 .block_erase = spi_block_erase_20,
4856 }, {
4857 .eraseblocks = { {64 * 1024, 64} },
4858 .block_erase = spi_block_erase_d8,
4859 }, {
4860 .eraseblocks = { {4 * 1024 * 1024, 1} },
4861 .block_erase = spi_block_erase_60,
4862 }, {
4863 .eraseblocks = { {4 * 1024 * 1024, 1} },
4864 .block_erase = spi_block_erase_c7,
4865 }
4866 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004867 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004868 .unlock = spi_disable_blockprotect,
4869 .write = spi_chip_write_256,
4870 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004871 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004872 },
4873
4874 {
4875 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004876 .name = "EN25Q40",
4877 .bustype = BUS_SPI,
4878 .manufacture_id = EON_ID_NOPREFIX,
4879 .model_id = EON_EN25Q40,
4880 .total_size = 512,
4881 .page_size = 256,
4882 /* OTP: 256B total; enter 0x3A */
4883 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4884 .tested = TEST_UNTESTED,
4885 .probe = probe_spi_rdid,
4886 .probe_timing = TIMING_ZERO,
4887 .block_erasers =
4888 {
4889 {
4890 .eraseblocks = { {4 * 1024, 128} },
4891 .block_erase = spi_block_erase_20,
4892 }, {
4893 .eraseblocks = { {64 * 1024, 8} },
4894 .block_erase = spi_block_erase_d8,
4895 }, {
4896 .eraseblocks = { {512 * 1024, 1} },
4897 .block_erase = spi_block_erase_60,
4898 }, {
4899 .eraseblocks = { {512 * 1024, 1} },
4900 .block_erase = spi_block_erase_c7,
4901 }
4902 },
4903 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4904 .unlock = spi_disable_blockprotect,
4905 .write = spi_chip_write_256,
4906 .read = spi_chip_read,
4907 .voltage = {2700, 3600},
4908 },
4909
4910 {
4911 .vendor = "Eon",
David Hendricks6d715302011-07-24 22:21:57 +00004912 .name = "EN25Q64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004913 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004914 .manufacture_id = EON_ID_NOPREFIX,
4915 .model_id = EON_EN25Q64,
4916 .total_size = 8192,
4917 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004918 /* OTP: 512B total; enter 0x3A */
4919 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004920 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004921 .probe = probe_spi_rdid,
4922 .probe_timing = TIMING_ZERO,
4923 .block_erasers =
4924 {
4925 {
4926 .eraseblocks = { {4 * 1024, 2048} },
4927 .block_erase = spi_block_erase_20,
4928 }, {
4929 .eraseblocks = { {64 * 1024, 128} },
4930 .block_erase = spi_block_erase_d8,
4931 }, {
4932 .eraseblocks = { {8 * 1024 * 1024, 1} },
4933 .block_erase = spi_block_erase_60,
4934 }, {
4935 .eraseblocks = { {8 * 1024 * 1024, 1} },
4936 .block_erase = spi_block_erase_c7,
4937 }
4938 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004939 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004940 .unlock = spi_disable_blockprotect,
4941 .write = spi_chip_write_256,
4942 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004943 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004944 },
4945
4946 {
4947 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004948 .name = "EN25Q80(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004949 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004950 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004951 .model_id = EON_EN25Q80,
4952 .total_size = 1024,
4953 .page_size = 256,
4954 /* OTP: 256B total; enter 0x3A */
4955 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4956 .tested = TEST_UNTESTED,
4957 .probe = probe_spi_rdid,
4958 .probe_timing = TIMING_ZERO,
4959 .block_erasers =
4960 {
4961 {
4962 .eraseblocks = { {4 * 1024, 256} },
4963 .block_erase = spi_block_erase_20,
4964 }, {
4965 .eraseblocks = { {64 * 1024, 16} },
4966 .block_erase = spi_block_erase_d8,
4967 }, {
4968 .eraseblocks = { {1024 * 1024, 1} },
4969 .block_erase = spi_block_erase_60,
4970 }, {
4971 .eraseblocks = { {1024 * 1024, 1} },
4972 .block_erase = spi_block_erase_c7,
4973 }
4974 },
4975 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4976 .unlock = spi_disable_blockprotect,
4977 .write = spi_chip_write_256,
4978 .read = spi_chip_read,
4979 .voltage = {2700, 3600},
4980 },
4981
4982 {
4983 .vendor = "Eon",
4984 .name = "EN25QH128",
4985 .bustype = BUS_SPI,
4986 .manufacture_id = EON_ID_NOPREFIX,
4987 .model_id = EON_EN25QH128,
David Hendricks6d715302011-07-24 22:21:57 +00004988 .total_size = 16384,
4989 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004990 /* supports SFDP */
Daniel Lenski65922a32012-02-15 23:40:23 +00004991 /* OTP: 512B total; enter 0x3A */
Alan Green1f9cc7d2019-07-01 11:10:45 +10004992 /* QPI enable 0x38, disable 0xFF */
4993 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
4994 .tested = TEST_UNTESTED,
David Hendricks6d715302011-07-24 22:21:57 +00004995 .probe = probe_spi_rdid,
4996 .probe_timing = TIMING_ZERO,
4997 .block_erasers =
4998 {
4999 {
5000 .eraseblocks = { {4 * 1024, 4096} },
5001 .block_erase = spi_block_erase_20,
5002 }, {
5003 .eraseblocks = { {64 * 1024, 256} },
5004 .block_erase = spi_block_erase_d8,
5005 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005006 .eraseblocks = { { 16384 * 1024, 1} },
David Hendricks6d715302011-07-24 22:21:57 +00005007 .block_erase = spi_block_erase_60,
5008 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005009 .eraseblocks = { { 16384 * 1024, 1} },
David Hendricks6d715302011-07-24 22:21:57 +00005010 .block_erase = spi_block_erase_c7,
5011 }
5012 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005013 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
5014 .unlock = spi_disable_blockprotect_bp3_srwd,
David Hendricks6d715302011-07-24 22:21:57 +00005015 .write = spi_chip_write_256,
5016 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005017 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00005018 },
5019
5020 {
5021 .vendor = "Eon",
5022 .name = "EN25QH16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005023 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00005024 .manufacture_id = EON_ID_NOPREFIX,
5025 .model_id = EON_EN25QH16,
5026 .total_size = 2048,
5027 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00005028 /* supports SFDP */
5029 /* OTP: 512B total; enter 0x3A */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005030 /* QPI enable 0x38, disable 0xFF */
5031 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner5c316f92015-02-08 21:57:52 +00005032 .tested = TEST_OK_PREW,
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, 512} },
5039 .block_erase = spi_block_erase_20,
5040 }, {
5041 .eraseblocks = { {64 * 1024, 32} },
5042 .block_erase = spi_block_erase_d8,
5043 }, {
5044 .eraseblocks = { {1024 * 2048, 1} },
5045 .block_erase = spi_block_erase_60,
5046 }, {
5047 .eraseblocks = { {1024 * 2048, 1} },
5048 .block_erase = spi_block_erase_c7,
5049 }
5050 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005051 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005052 .unlock = spi_disable_blockprotect_bp3_srwd,
David Hendricks6d715302011-07-24 22:21:57 +00005053 .write = spi_chip_write_256,
5054 .read = spi_chip_read,
Stefan Tauner2cef9162012-05-14 01:51:46 +00005055 .voltage = {2700, 3600},
5056 },
5057
5058 {
5059 .vendor = "Eon",
5060 .name = "EN25QH32",
5061 .bustype = BUS_SPI,
5062 .manufacture_id = EON_ID_NOPREFIX,
5063 .model_id = EON_EN25QH32,
5064 .total_size = 4096,
5065 .page_size = 256,
5066 /* 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 Tauner23e10b82016-01-23 16:16:49 +00005070 .tested = TEST_OK_PREW,
Stefan Tauner2cef9162012-05-14 01:51:46 +00005071 .probe = probe_spi_rdid,
5072 .probe_timing = TIMING_ZERO,
5073 .block_erasers =
5074 {
5075 {
5076 .eraseblocks = { {4 * 1024, 1024} },
5077 .block_erase = spi_block_erase_20,
5078 }, {
5079 .eraseblocks = { {64 * 1024, 64} },
5080 .block_erase = spi_block_erase_d8,
5081 }, {
5082 .eraseblocks = { {1024 * 4096, 1} },
5083 .block_erase = spi_block_erase_60,
5084 }, {
5085 .eraseblocks = { {1024 * 4096, 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,
5091 .write = spi_chip_write_256,
5092 .read = spi_chip_read,
5093 .voltage = {2700, 3600},
5094 },
5095
5096 {
5097 .vendor = "Eon",
5098 .name = "EN25QH64",
5099 .bustype = BUS_SPI,
5100 .manufacture_id = EON_ID_NOPREFIX,
5101 .model_id = EON_EN25QH64,
5102 .total_size = 8192,
5103 .page_size = 256,
5104 /* supports SFDP */
5105 /* OTP: 512B total; enter 0x3A */
5106 /* 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,
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005109 .probe = probe_spi_rdid,
5110 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005111 .block_erasers =
5112 {
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005113 {
5114 .eraseblocks = { {4 * 1024, 2048} },
5115 .block_erase = spi_block_erase_20,
5116 }, {
5117 .eraseblocks = { {64 * 1024, 128} },
5118 .block_erase = spi_block_erase_d8,
5119 }, {
5120 .eraseblocks = { { 8192 * 1024, 1} },
5121 .block_erase = spi_block_erase_60,
5122 }, {
5123 .eraseblocks = { { 8192 * 1024, 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",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005136 .name = "EN25S10",
5137 .bustype = BUS_SPI,
5138 .manufacture_id = EON_ID_NOPREFIX,
5139 .model_id = EON_EN25S10,
5140 .total_size = 128,
5141 .page_size = 256,
5142 /* OTP: 256B total; enter 0x3A */
5143 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5144 .tested = TEST_UNTESTED,
5145 .probe = probe_spi_rdid,
5146 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005147 .block_erasers =
5148 {
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005149 {
5150 .eraseblocks = { {4 * 1024, 32} },
5151 .block_erase = spi_block_erase_20,
5152 }, {
5153 .eraseblocks = { {32 * 1024, 4} },
5154 .block_erase = spi_block_erase_52,
5155 }, {
5156 .eraseblocks = { {128 * 1024, 1} },
5157 .block_erase = spi_block_erase_60,
5158 }, {
5159 .eraseblocks = { {128 * 1024, 1} },
5160 .block_erase = spi_block_erase_c7,
5161 }
5162 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005163 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005164 .unlock = spi_disable_blockprotect,
5165 .write = spi_chip_write_256,
5166 .read = spi_chip_read,
5167 .voltage = {1650, 1950},
5168 },
5169
5170 {
5171 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005172 .name = "EN25S16",
5173 .bustype = BUS_SPI,
5174 .manufacture_id = EON_ID_NOPREFIX,
5175 .model_id = EON_EN25S16,
5176 .total_size = 2048,
5177 .page_size = 256,
5178 /* OTP: 512B total; enter 0x3A */
5179 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5180 .tested = TEST_UNTESTED,
5181 .probe = probe_spi_rdid,
5182 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005183 .block_erasers =
5184 {
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005185 {
5186 .eraseblocks = { {4 * 1024, 512} },
5187 .block_erase = spi_block_erase_20,
5188 }, {
5189 .eraseblocks = { {64 * 1024, 32} },
5190 .block_erase = spi_block_erase_52,
5191 }, {
5192 .eraseblocks = { {32 * 1024, 64} },
5193 .block_erase = spi_block_erase_d8,
5194 }, {
5195 .eraseblocks = { {2048 * 1024, 1} },
5196 .block_erase = spi_block_erase_60,
5197 }, {
5198 .eraseblocks = { {2048 * 1024, 1} },
5199 .block_erase = spi_block_erase_c7,
5200 }
5201 },
5202 .printlock = spi_prettyprint_status_register_en25s_wp,
5203 .unlock = spi_disable_blockprotect_bp3_srwd,
5204 .write = spi_chip_write_256,
5205 .read = spi_chip_read,
5206 .voltage = {1650, 1950},
5207 },
5208
5209 {
5210 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005211 .name = "EN25S20",
5212 .bustype = BUS_SPI,
5213 .manufacture_id = EON_ID_NOPREFIX,
5214 .model_id = EON_EN25S20,
5215 .total_size = 256,
5216 .page_size = 256,
5217 /* OTP: 256B total; enter 0x3A */
5218 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5219 .tested = TEST_UNTESTED,
5220 .probe = probe_spi_rdid,
5221 .probe_timing = TIMING_ZERO,
5222 .block_erasers =
5223 {
5224 {
5225 .eraseblocks = { {4 * 1024, 64} },
5226 .block_erase = spi_block_erase_20,
5227 }, {
5228 .eraseblocks = { {64 * 1024, 4} },
5229 .block_erase = spi_block_erase_d8,
5230 }, {
5231 .eraseblocks = { {256 * 1024, 1} },
5232 .block_erase = spi_block_erase_60,
5233 }, {
5234 .eraseblocks = { {256 * 1024, 1} },
5235 .block_erase = spi_block_erase_c7,
5236 }
5237 },
5238 .printlock = spi_prettyprint_status_register_bp2_srwd,
5239 .unlock = spi_disable_blockprotect,
5240 .write = spi_chip_write_256,
5241 .read = spi_chip_read,
5242 .voltage = {1650, 1950},
5243 },
5244
5245 {
5246 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005247 .name = "EN25S32",
5248 .bustype = BUS_SPI,
5249 .manufacture_id = EON_ID_NOPREFIX,
5250 .model_id = EON_EN25S32,
5251 .total_size = 4096,
5252 .page_size = 256,
5253 /* OTP: 512B total; enter 0x3A */
5254 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5255 .tested = TEST_UNTESTED,
5256 .probe = probe_spi_rdid,
5257 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005258 .block_erasers =
5259 {
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005260 {
5261 .eraseblocks = { {4 * 1024, 1024} },
5262 .block_erase = spi_block_erase_20,
5263 }, {
5264 .eraseblocks = { {32 * 1024, 128} },
5265 .block_erase = spi_block_erase_52,
5266 }, {
5267 .eraseblocks = { {64 * 1024, 64} },
5268 .block_erase = spi_block_erase_d8,
5269 }, {
5270 .eraseblocks = { {4096 * 1024, 1} },
5271 .block_erase = spi_block_erase_60,
5272 }, {
5273 .eraseblocks = { {4096 * 1024, 1} },
5274 .block_erase = spi_block_erase_c7,
5275 }
5276 },
5277 .printlock = spi_prettyprint_status_register_en25s_wp,
5278 .unlock = spi_disable_blockprotect_bp3_srwd,
5279 .write = spi_chip_write_256,
5280 .read = spi_chip_read,
5281 .voltage = {1650, 1950},
5282 },
5283
5284 {
5285 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005286 .name = "EN25S40",
5287 .bustype = BUS_SPI,
5288 .manufacture_id = EON_ID_NOPREFIX,
5289 .model_id = EON_EN25S40,
5290 .total_size = 512,
5291 .page_size = 256,
5292 /* OTP: 256B total; enter 0x3A */
5293 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5294 .tested = TEST_OK_PREW,
5295 .probe = probe_spi_rdid,
5296 .probe_timing = TIMING_ZERO,
5297 .block_erasers =
5298 {
5299 {
5300 .eraseblocks = { {4 * 1024, 128} },
5301 .block_erase = spi_block_erase_20,
5302 }, {
5303 .eraseblocks = { {64 * 1024, 8} },
5304 .block_erase = spi_block_erase_d8,
5305 }, {
5306 .eraseblocks = { {512 * 1024, 1} },
5307 .block_erase = spi_block_erase_60,
5308 }, {
5309 .eraseblocks = { {512 * 1024, 1} },
5310 .block_erase = spi_block_erase_c7,
5311 }
5312 },
5313 .printlock = spi_prettyprint_status_register_bp2_srwd,
5314 .unlock = spi_disable_blockprotect,
5315 .write = spi_chip_write_256,
5316 .read = spi_chip_read,
5317 .voltage = {1650, 1950},
5318 },
5319
5320 {
5321 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005322 .name = "EN25S64",
5323 .bustype = BUS_SPI,
5324 .manufacture_id = EON_ID_NOPREFIX,
5325 .model_id = EON_EN25S64,
5326 .total_size = 8192,
5327 .page_size = 256,
5328 /* OTP: 512B total; enter 0x3A */
5329 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5330 .tested = TEST_UNTESTED,
5331 .probe = probe_spi_rdid,
5332 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005333 .block_erasers =
5334 {
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005335 {
5336 .eraseblocks = { {4 * 1024, 2048} },
5337 .block_erase = spi_block_erase_20,
5338 }, {
5339 .eraseblocks = { {64 * 1024, 128} },
5340 .block_erase = spi_block_erase_d8,
5341 }, {
5342 .eraseblocks = { {8192 * 1024, 1} },
5343 .block_erase = spi_block_erase_60,
5344 }, {
5345 .eraseblocks = { {8192 * 1024, 1} },
5346 .block_erase = spi_block_erase_c7,
5347 }
5348 },
5349 .printlock = spi_prettyprint_status_register_en25s_wp,
5350 .unlock = spi_disable_blockprotect_bp3_srwd,
5351 .write = spi_chip_write_256,
5352 .read = spi_chip_read,
5353 .voltage = {1650, 1950},
5354 },
5355
5356 {
5357 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005358 .name = "EN25S80",
5359 .bustype = BUS_SPI,
5360 .manufacture_id = EON_ID_NOPREFIX,
5361 .model_id = EON_EN25S80,
5362 .total_size = 1024,
5363 .page_size = 256,
5364 /* OTP: 256B total; enter 0x3A */
5365 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5366 .tested = TEST_UNTESTED,
5367 .probe = probe_spi_rdid,
5368 .probe_timing = TIMING_ZERO,
Russ Dill3cd5a122010-03-05 08:44:11 +00005369 .block_erasers =
5370 {
5371 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005372 .eraseblocks = { {4 * 1024, 256} },
5373 .block_erase = spi_block_erase_20,
5374 }, {
5375 .eraseblocks = { {64 * 1024, 16} },
5376 .block_erase = spi_block_erase_d8,
5377 }, {
5378 .eraseblocks = { {1024 * 1024, 1} },
5379 .block_erase = spi_block_erase_60,
5380 }, {
5381 .eraseblocks = { {1024 * 1024, 1} },
5382 .block_erase = spi_block_erase_c7,
5383 }
Russ Dill3cd5a122010-03-05 08:44:11 +00005384 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005385 .printlock = spi_prettyprint_status_register_bp2_srwd,
5386 .unlock = spi_disable_blockprotect,
5387 .write = spi_chip_write_256,
5388 .read = spi_chip_read,
5389 .voltage = {1650, 1950},
Russ Dill3cd5a122010-03-05 08:44:11 +00005390 },
5391
5392 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00005393 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005394 .name = "EN29F002(A)(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005395 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005396 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005397 .model_id = EON_EN29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005398 .total_size = 256,
5399 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00005400 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00005401 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005402 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005403 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005404 .block_erasers =
5405 {
5406 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005407 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005408 {16 * 1024, 1},
Michael Karchere3cb0a12010-03-13 23:47:09 +00005409 {8 * 1024, 2},
5410 {32 * 1024, 1},
5411 {64 * 1024, 3},
Sean Nelson6b11ad22009-12-23 17:05:59 +00005412 },
5413 .block_erase = erase_sector_jedec,
5414 }, {
5415 .eraseblocks = { {256 * 1024, 1} },
5416 .block_erase = erase_chip_block_jedec,
5417 },
5418 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005419 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005420 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005421 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005422 },
5423
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005424 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00005425 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005426 .name = "EN29F002(A)(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005427 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005428 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005429 .model_id = EON_EN29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005430 .total_size = 256,
5431 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00005432 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00005433 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005434 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005435 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005436 .block_erasers =
5437 {
5438 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005439 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005440 {64 * 1024, 3},
Michael Karchere3cb0a12010-03-13 23:47:09 +00005441 {32 * 1024, 1},
5442 {8 * 1024, 2},
5443 {16 * 1024, 1},
Sean Nelson6b11ad22009-12-23 17:05:59 +00005444 },
5445 .block_erase = erase_sector_jedec,
5446 }, {
5447 .eraseblocks = { {256 * 1024, 1} },
5448 .block_erase = erase_chip_block_jedec,
5449 },
5450 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005451 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005452 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005453 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005454 },
5455
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005456 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005457 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005458 .name = "EN29F010",
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005459 .bustype = BUS_PARALLEL,
5460 .manufacture_id = EON_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005461 .model_id = EON_EN29F010,
5462 .total_size = 128,
5463 .page_size = 128,
5464 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
5465 .tested = TEST_OK_PRE,
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005466 .probe = probe_jedec,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005467 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005468 .block_erasers =
5469 {
5470 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005471 .eraseblocks = { {16 * 1024, 8} },
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005472 .block_erase = erase_sector_jedec,
5473 },
5474 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005475 .eraseblocks = { {128 * 1024, 1} },
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005476 .block_erase = erase_chip_block_jedec,
5477 },
5478 },
5479 .write = write_jedec_1,
5480 .read = read_memmapped,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005481 .voltage = {4500, 5500},
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005482 },
5483
5484 {
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00005485 .vendor = "Eon",
5486 .name = "EN29GL064(A)B",
5487 .bustype = BUS_PARALLEL,
5488 .manufacture_id = EON_ID,
5489 .model_id = EON_EN29GL064B,
5490 .total_size = 8192,
5491 .page_size = 128 * 1024, /* actual page size is 16 */
5492 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5493 .tested = TEST_UNTESTED,
5494 .probe = probe_jedec_29gl,
5495 .probe_timing = TIMING_ZERO,
5496 .block_erasers =
5497 {
5498 {
5499 .eraseblocks = {
5500 {8 * 1024, 8},
5501 {64 * 1024, 127},
5502 },
5503 .block_erase = erase_sector_jedec,
5504 }, {
5505 .eraseblocks = { {8 * 1024 * 1024, 1} },
5506 .block_erase = erase_chip_block_jedec,
5507 },
5508 },
5509 .write = write_jedec_1,
5510 .read = read_memmapped,
5511 .voltage = {2700, 3600},
5512 },
5513
5514 {
5515 .vendor = "Eon",
5516 .name = "EN29GL064(A)T",
5517 .bustype = BUS_PARALLEL,
5518 .manufacture_id = EON_ID,
5519 .model_id = EON_EN29GL064T,
5520 .total_size = 8192,
5521 .page_size = 128 * 1024, /* actual page size is 16 */
5522 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5523 .tested = TEST_UNTESTED,
5524 .probe = probe_jedec_29gl,
5525 .probe_timing = TIMING_ZERO,
5526 .block_erasers =
5527 {
5528 {
5529 .eraseblocks = {
5530 {64 * 1024, 127},
5531 {8 * 1024, 8},
5532 },
5533 .block_erase = erase_sector_jedec,
5534 }, {
5535 .eraseblocks = { {8 * 1024 * 1024, 1} },
5536 .block_erase = erase_chip_block_jedec,
5537 },
5538 },
5539 .write = write_jedec_1,
5540 .read = read_memmapped,
5541 .voltage = {2700, 3600},
5542 },
5543
5544 {
5545 .vendor = "Eon",
5546 .name = "EN29GL064H/L",
5547 .bustype = BUS_PARALLEL,
5548 .manufacture_id = EON_ID,
5549 .model_id = EON_EN29GL064HL,
5550 .total_size = 8192,
5551 .page_size = 128 * 1024, /* actual page size is 16 */
5552 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5553 .tested = TEST_UNTESTED,
5554 .probe = probe_jedec_29gl,
5555 .probe_timing = TIMING_ZERO,
5556 .block_erasers =
5557 {
5558 {
5559 .eraseblocks = { {64 * 1024, 128} },
5560 .block_erase = erase_sector_jedec,
5561 }, {
5562 .eraseblocks = { {8 * 1024 * 1024, 1} },
5563 .block_erase = erase_chip_block_jedec,
5564 },
5565 },
5566 .write = write_jedec_1,
5567 .read = read_memmapped,
5568 .voltage = {2700, 3600},
5569 },
5570
5571 {
5572 .vendor = "Eon",
5573 .name = "EN29GL128",
5574 .bustype = BUS_PARALLEL,
5575 .manufacture_id = EON_ID,
5576 .model_id = EON_EN29GL128HL,
5577 .total_size = 16384,
5578 .page_size = 128 * 1024, /* actual page size is 16 */
5579 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5580 .tested = TEST_UNTESTED,
5581 .probe = probe_jedec_29gl,
5582 .probe_timing = TIMING_ZERO,
5583 .block_erasers =
5584 {
5585 {
5586 .eraseblocks = { {128 * 1024, 128} },
5587 .block_erase = erase_sector_jedec,
5588 }, {
5589 .eraseblocks = { {16 * 1024 * 1024, 1} },
5590 .block_erase = erase_chip_block_jedec,
5591 },
5592 },
5593 .write = write_jedec_1,
5594 .read = read_memmapped,
5595 .voltage = {2700, 3600},
5596 },
5597
5598 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005599 .vendor = "Eon",
5600 .name = "EN29LV040(A)",
5601 .bustype = BUS_PARALLEL,
5602 .manufacture_id = EON_ID,
5603 .model_id = EON_EN29LV040,
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005604 .total_size = 512,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005605 .page_size = 4 * 1024,
5606 .tested = TEST_OK_PREW,
5607 .probe = probe_jedec,
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005608 .probe_timing = TIMING_ZERO,
5609 .block_erasers =
5610 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00005611 {
5612 .eraseblocks = { {64 * 1024, 8} },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005613 .block_erase = erase_sector_jedec,
5614 },
5615 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00005616 .eraseblocks = { {512 * 1024, 1} },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005617 .block_erase = erase_chip_block_jedec,
5618 },
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005619 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005620 .write = write_jedec_1,
5621 .read = read_memmapped,
5622 .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R and 55R, others 2.7-3.6V */
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005623 },
5624
5625 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005626 .vendor = "Eon",
5627 .name = "EN29LV640B",
5628 .bustype = BUS_PARALLEL,
5629 .manufacture_id = EON_ID,
5630 .model_id = EON_EN29LV640B,
5631 .total_size = 8192,
5632 .page_size = 8192,
5633 .feature_bits = FEATURE_ADDR_SHIFTED,
5634 .tested = TEST_OK_PREW,
5635 .probe = probe_en29lv640b,
5636 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005637 .block_erasers =
5638 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00005639 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005640 .eraseblocks = {
5641 {8 * 1024, 8},
5642 {64 * 1024, 127},
5643 },
5644 .block_erase = erase_block_jedec,
Stefan Tauner0be072c2016-03-13 15:16:30 +00005645 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005646 .eraseblocks = { {8 * 1024 * 1024, 1} },
5647 .block_erase = erase_chip_block_jedec,
5648 },
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005649 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005650 .write = write_en29lv640b,
5651 .read = read_memmapped,
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005652 .voltage = {2700, 3600},
5653 },
5654
5655 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005656 .vendor = "Fujitsu",
5657 .name = "MBM29F004BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005658 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005659 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005660 .model_id = FUJITSU_MBM29F004BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005661 .total_size = 512,
5662 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005663 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005664 .tested = TEST_UNTESTED,
5665 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005666 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005667 .block_erasers =
5668 {
5669 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005670 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005671 {16 * 1024, 1},
5672 {8 * 1024, 2},
5673 {32 * 1024, 1},
5674 {64 * 1024, 7},
5675 },
Sean Nelson35727f72010-01-28 23:55:12 +00005676 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005677 }, {
5678 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005679 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005680 },
5681 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005682 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005683 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005684 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005685 },
5686
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005687 {
5688 .vendor = "Fujitsu",
5689 .name = "MBM29F004TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005690 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005691 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005692 .model_id = FUJITSU_MBM29F004TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005693 .total_size = 512,
5694 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00005695 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005696 .tested = TEST_UNTESTED,
5697 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005698 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005699 .block_erasers =
5700 {
5701 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005702 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005703 {64 * 1024, 7},
5704 {32 * 1024, 1},
5705 {8 * 1024, 2},
5706 {16 * 1024, 1},
5707 },
Sean Nelson35727f72010-01-28 23:55:12 +00005708 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005709 }, {
5710 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00005711 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005712 },
5713 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005714 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005715 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005716 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005717 },
5718
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005719 {
Sean Nelson35727f72010-01-28 23:55:12 +00005720 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005721 .vendor = "Fujitsu",
5722 .name = "MBM29F400BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005723 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005724 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005725 .model_id = FUJITSU_MBM29F400BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005726 .total_size = 512,
5727 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005728 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00005729 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005730 .probe = probe_jedec,
5731 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson6b11ad22009-12-23 17:05:59 +00005732 .block_erasers =
5733 {
5734 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005735 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005736 {16 * 1024, 1},
5737 {8 * 1024, 2},
5738 {32 * 1024, 1},
5739 {64 * 1024, 7},
5740 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005741 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005742 }, {
5743 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005744 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005745 },
5746 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005747 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005748 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005749 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00005750 },
5751
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005752 {
5753 .vendor = "Fujitsu",
5754 .name = "MBM29F400TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005755 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005756 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005757 .model_id = FUJITSU_MBM29F400TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005758 .total_size = 512,
5759 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005760 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005761 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005762 .probe = probe_jedec,
5763 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson6b11ad22009-12-23 17:05:59 +00005764 .block_erasers =
5765 {
5766 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00005767 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005768 {64 * 1024, 7},
5769 {32 * 1024, 1},
5770 {8 * 1024, 2},
5771 {16 * 1024, 1},
5772 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005773 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005774 }, {
5775 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005776 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00005777 },
5778 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005779 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005780 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00005781 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00005782 },
5783
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005784 {
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005785 .vendor = "Fujitsu",
5786 .name = "MBM29LV160BE",
5787 .bustype = BUS_PARALLEL,
5788 .manufacture_id = FUJITSU_ID,
5789 .model_id = FUJITSU_MBM29LV160BE,
5790 .total_size = 2 * 1024,
5791 .page_size = 0,
5792 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET,
5793 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005794 .probe = probe_jedec,
5795 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005796 .block_erasers =
5797 {
5798 {
5799 .eraseblocks = {
5800 {16 * 1024, 1},
5801 {8 * 1024, 2},
5802 {32 * 1024, 1},
5803 {64 * 1024, 31},
5804 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005805 .block_erase = erase_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005806 }, {
5807 .eraseblocks = { {2048 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005808 .block_erase = erase_chip_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005809 },
5810 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005811 .write = write_jedec_1, /* Supports a fast mode too */
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005812 .read = read_memmapped,
5813 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */
5814 },
5815
5816 {
5817 .vendor = "Fujitsu",
5818 .name = "MBM29LV160TE",
5819 .bustype = BUS_PARALLEL,
5820 .manufacture_id = FUJITSU_ID,
5821 .model_id = FUJITSU_MBM29LV160TE,
5822 .total_size = 2 * 1024,
5823 .page_size = 0,
5824 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET,
5825 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005826 .probe = probe_jedec,
5827 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005828 .block_erasers =
5829 {
5830 {
5831 .eraseblocks = {
5832 {64 * 1024, 31},
5833 {32 * 1024, 1},
5834 {8 * 1024, 2},
5835 {16 * 1024, 1},
5836 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005837 .block_erase = erase_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005838 }, {
5839 .eraseblocks = { {2048 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005840 .block_erase = erase_chip_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005841 },
5842 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00005843 .write = write_jedec_1, /* Supports a fast mode too */
Stefan Tauner6db8bad2013-08-25 13:31:43 +00005844 .read = read_memmapped,
5845 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */
5846 },
5847
5848 {
Justin Chevrier1525b2a2012-04-14 21:59:23 +00005849 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005850 .name = "GD25B128B/GD25Q128B",
Roman Titov95edc892015-04-03 21:29:04 +00005851 .bustype = BUS_SPI,
5852 .manufacture_id = GIGADEVICE_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005853 .model_id = GIGADEVICE_GD25Q128,
5854 .total_size = 16384,
Roman Titov95edc892015-04-03 21:29:04 +00005855 .page_size = 256,
5856 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
5857 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005858 .tested = TEST_OK_PREW,
Roman Titov95edc892015-04-03 21:29:04 +00005859 .probe = probe_spi_rdid,
5860 .probe_timing = TIMING_ZERO,
5861 .block_erasers =
5862 {
5863 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005864 .eraseblocks = { {4 * 1024, 4096} },
Roman Titov95edc892015-04-03 21:29:04 +00005865 .block_erase = spi_block_erase_20,
5866 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005867 .eraseblocks = { {32 * 1024, 512} },
Roman Titov95edc892015-04-03 21:29:04 +00005868 .block_erase = spi_block_erase_52,
5869 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005870 .eraseblocks = { {64 * 1024, 256} },
Roman Titov95edc892015-04-03 21:29:04 +00005871 .block_erase = spi_block_erase_d8,
5872 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005873 .eraseblocks = { {16 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00005874 .block_erase = spi_block_erase_60,
5875 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005876 .eraseblocks = { {16 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00005877 .block_erase = spi_block_erase_c7,
5878 }
5879 },
5880 .printlock = spi_prettyprint_status_register_bp4_srwd,
5881 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5882 .write = spi_chip_write_256,
5883 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Alan Green1f9cc7d2019-07-01 11:10:45 +10005884 .voltage = {2700, 3600},
Roman Titov95edc892015-04-03 21:29:04 +00005885 },
5886
5887 {
5888 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005889 .name = "GD25LQ128",
Roman Titov95edc892015-04-03 21:29:04 +00005890 .bustype = BUS_SPI,
5891 .manufacture_id = GIGADEVICE_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005892 .model_id = GIGADEVICE_GD25LQ128,
5893 .total_size = 16384,
Roman Titov95edc892015-04-03 21:29:04 +00005894 .page_size = 256,
5895 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
5896 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5897 .tested = TEST_UNTESTED,
5898 .probe = probe_spi_rdid,
5899 .probe_timing = TIMING_ZERO,
5900 .block_erasers =
5901 {
5902 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005903 .eraseblocks = { {4 * 1024, 4096} },
Roman Titov95edc892015-04-03 21:29:04 +00005904 .block_erase = spi_block_erase_20,
5905 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005906 .eraseblocks = { {32 * 1024, 512} },
Roman Titov95edc892015-04-03 21:29:04 +00005907 .block_erase = spi_block_erase_52,
5908 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005909 .eraseblocks = { {64 * 1024, 256} },
Roman Titov95edc892015-04-03 21:29:04 +00005910 .block_erase = spi_block_erase_d8,
5911 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005912 .eraseblocks = { {16 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00005913 .block_erase = spi_block_erase_60,
5914 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005915 .eraseblocks = { {16 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00005916 .block_erase = spi_block_erase_c7,
5917 }
5918 },
5919 .printlock = spi_prettyprint_status_register_bp4_srwd,
5920 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5921 .write = spi_chip_write_256,
5922 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5923 .voltage = {1695, 1950},
5924 },
5925
5926 {
5927 .vendor = "GigaDevice",
5928 .name = "GD25LQ16",
5929 .bustype = BUS_SPI,
5930 .manufacture_id = GIGADEVICE_ID,
5931 .model_id = GIGADEVICE_GD25LQ16,
5932 .total_size = 2048,
5933 .page_size = 256,
5934 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
5935 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5936 .tested = TEST_UNTESTED,
5937 .probe = probe_spi_rdid,
5938 .probe_timing = TIMING_ZERO,
5939 .block_erasers =
5940 {
5941 {
5942 .eraseblocks = { {4 * 1024, 512} },
5943 .block_erase = spi_block_erase_20,
5944 }, {
5945 .eraseblocks = { {32 * 1024, 64} },
5946 .block_erase = spi_block_erase_52,
5947 }, {
5948 .eraseblocks = { {64 * 1024, 32} },
5949 .block_erase = spi_block_erase_d8,
5950 }, {
5951 .eraseblocks = { {2 * 1024 * 1024, 1} },
5952 .block_erase = spi_block_erase_60,
5953 }, {
5954 .eraseblocks = { {2 * 1024 * 1024, 1} },
5955 .block_erase = spi_block_erase_c7,
5956 }
5957 },
5958 .printlock = spi_prettyprint_status_register_bp4_srwd,
5959 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5960 .write = spi_chip_write_256,
5961 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5962 .voltage = {1695, 1950},
5963 },
5964
5965 {
5966 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005967 .name = "GD25LQ32",
5968 .bustype = BUS_SPI,
5969 .manufacture_id = GIGADEVICE_ID,
5970 .model_id = GIGADEVICE_GD25LQ32,
5971 .total_size = 4096,
5972 .page_size = 256,
5973 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
5974 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5975 .tested = TEST_OK_PREW,
5976 .probe = probe_spi_rdid,
5977 .probe_timing = TIMING_ZERO,
5978 .block_erasers =
5979 {
5980 {
5981 .eraseblocks = { {4 * 1024, 1024} },
5982 .block_erase = spi_block_erase_20,
5983 }, {
5984 .eraseblocks = { {32 * 1024, 128} },
5985 .block_erase = spi_block_erase_52,
5986 }, {
5987 .eraseblocks = { {64 * 1024, 64} },
5988 .block_erase = spi_block_erase_d8,
5989 }, {
5990 .eraseblocks = { {4 * 1024 * 1024, 1} },
5991 .block_erase = spi_block_erase_60,
5992 }, {
5993 .eraseblocks = { {4 * 1024 * 1024, 1} },
5994 .block_erase = spi_block_erase_c7,
5995 }
5996 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005997 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00005998 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
5999 .write = spi_chip_write_256,
Roman Titov95edc892015-04-03 21:29:04 +00006000 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6001 .voltage = {1695, 1950},
6002 },
6003
6004 {
6005 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006006 .name = "GD25LQ40",
6007 .bustype = BUS_SPI,
6008 .manufacture_id = GIGADEVICE_ID,
6009 .model_id = GIGADEVICE_GD25LQ40,
6010 .total_size = 512,
6011 .page_size = 256,
6012 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6013 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6014 .tested = TEST_UNTESTED,
6015 .probe = probe_spi_rdid,
6016 .probe_timing = TIMING_ZERO,
6017 .block_erasers =
6018 {
6019 {
6020 .eraseblocks = { {4 * 1024, 128} },
6021 .block_erase = spi_block_erase_20,
6022 }, {
6023 .eraseblocks = { {32 * 1024, 16} },
6024 .block_erase = spi_block_erase_52,
6025 }, {
6026 .eraseblocks = { {64 * 1024, 8} },
6027 .block_erase = spi_block_erase_d8,
6028 }, {
6029 .eraseblocks = { {512 * 1024, 1} },
6030 .block_erase = spi_block_erase_60,
6031 }, {
6032 .eraseblocks = { {512 * 1024, 1} },
6033 .block_erase = spi_block_erase_c7,
6034 }
6035 },
6036 .printlock = spi_prettyprint_status_register_bp4_srwd,
6037 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6038 .write = spi_chip_write_256,
6039 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6040 .voltage = {1695, 1950},
6041 },
6042
6043 {
6044 .vendor = "GigaDevice",
Roman Titov95edc892015-04-03 21:29:04 +00006045 .name = "GD25LQ64(B)",
6046 .bustype = BUS_SPI,
6047 .manufacture_id = GIGADEVICE_ID,
6048 .model_id = GIGADEVICE_GD25LQ64,
6049 .total_size = 8192,
6050 .page_size = 256,
6051 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6052 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +00006053 .tested = TEST_OK_PREW,
Roman Titov95edc892015-04-03 21:29:04 +00006054 .probe = probe_spi_rdid,
6055 .probe_timing = TIMING_ZERO,
6056 .block_erasers =
6057 {
6058 {
6059 .eraseblocks = { {4 * 1024, 2048} },
6060 .block_erase = spi_block_erase_20,
6061 }, {
6062 .eraseblocks = { {32 * 1024, 256} },
6063 .block_erase = spi_block_erase_52,
6064 }, {
6065 .eraseblocks = { {64 * 1024, 128} },
6066 .block_erase = spi_block_erase_d8,
6067 }, {
6068 .eraseblocks = { {8 * 1024 * 1024, 1} },
6069 .block_erase = spi_block_erase_60,
6070 }, {
6071 .eraseblocks = { {8 * 1024 * 1024, 1} },
6072 .block_erase = spi_block_erase_c7,
6073 }
6074 },
6075 .printlock = spi_prettyprint_status_register_bp4_srwd,
6076 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6077 .write = spi_chip_write_256,
6078 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6079 .voltage = {1695, 1950},
6080 },
6081
6082 {
6083 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006084 .name = "GD25LQ80",
Roman Titov95edc892015-04-03 21:29:04 +00006085 .bustype = BUS_SPI,
6086 .manufacture_id = GIGADEVICE_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006087 .model_id = GIGADEVICE_GD25LQ80,
6088 .total_size = 1024,
Roman Titov95edc892015-04-03 21:29:04 +00006089 .page_size = 256,
6090 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6091 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6092 .tested = TEST_UNTESTED,
6093 .probe = probe_spi_rdid,
6094 .probe_timing = TIMING_ZERO,
6095 .block_erasers =
6096 {
6097 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006098 .eraseblocks = { {4 * 1024, 256} },
Roman Titov95edc892015-04-03 21:29:04 +00006099 .block_erase = spi_block_erase_20,
6100 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006101 .eraseblocks = { {32 * 1024, 32} },
Roman Titov95edc892015-04-03 21:29:04 +00006102 .block_erase = spi_block_erase_52,
6103 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006104 .eraseblocks = { {64 * 1024, 16} },
Roman Titov95edc892015-04-03 21:29:04 +00006105 .block_erase = spi_block_erase_d8,
6106 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006107 .eraseblocks = { {1 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00006108 .block_erase = spi_block_erase_60,
6109 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006110 .eraseblocks = { {1 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00006111 .block_erase = spi_block_erase_c7,
6112 }
6113 },
6114 .printlock = spi_prettyprint_status_register_bp4_srwd,
6115 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6116 .write = spi_chip_write_256,
6117 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6118 .voltage = {1695, 1950},
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006119 },
6120
6121 {
6122 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006123 .name = "GD25Q10",
6124 .bustype = BUS_SPI,
6125 .manufacture_id = GIGADEVICE_ID,
6126 .model_id = GIGADEVICE_GD25Q10,
6127 .total_size = 128,
6128 .page_size = 256,
6129 .feature_bits = FEATURE_WRSR_WREN,
6130 .tested = TEST_UNTESTED,
6131 .probe = probe_spi_rdid,
6132 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10006133 .block_erasers =
6134 {
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006135 {
6136 .eraseblocks = { {4 * 1024, 32} },
6137 .block_erase = spi_block_erase_20,
6138 }, {
6139 .eraseblocks = { {32 * 1024, 4} },
6140 .block_erase = spi_block_erase_52,
6141 }, {
6142 .eraseblocks = { {64 * 1024, 2} },
6143 .block_erase = spi_block_erase_d8,
6144 }, {
6145 .eraseblocks = { {128 * 1024, 1} },
6146 .block_erase = spi_block_erase_60,
6147 }, {
6148 .eraseblocks = { {128 * 1024, 1} },
6149 .block_erase = spi_block_erase_c7,
6150 }
6151 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006152 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006153 .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 = {2700, 3600},
6157 },
6158
6159 {
6160 .vendor = "GigaDevice",
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006161 .name = "GD25Q128C",
6162 .bustype = BUS_SPI,
6163 .manufacture_id = GIGADEVICE_ID,
6164 .model_id = GIGADEVICE_GD25Q128,
6165 .total_size = 16384,
6166 .page_size = 256,
6167 /* OTP: 1536B total; read 0x48; write 0x42, erase 0x44 */
6168 /* QPI: enable 0x38, disable 0xFF */
6169 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Angel Ponsbce364c2018-09-30 20:04:14 +02006170 .tested = TEST_OK_PREW,
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006171 .probe = probe_spi_rdid,
6172 .probe_timing = TIMING_ZERO,
6173 .block_erasers =
6174 {
6175 {
6176 .eraseblocks = { {4 * 1024, 4096} },
6177 .block_erase = spi_block_erase_20,
6178 }, {
6179 .eraseblocks = { {32 * 1024, 512} },
6180 .block_erase = spi_block_erase_52,
6181 }, {
6182 .eraseblocks = { {64 * 1024, 256} },
6183 .block_erase = spi_block_erase_d8,
6184 }, {
6185 .eraseblocks = { {16 * 1024 * 1024, 1} },
6186 .block_erase = spi_block_erase_60,
6187 }, {
6188 .eraseblocks = { {16 * 1024 * 1024, 1} },
6189 .block_erase = spi_block_erase_c7,
6190 }
6191 },
6192 /* TODO: 2nd status reg (read 0x35, write 0x31) and 3rd status reg (read 0x15, write 0x11) */
6193 .printlock = spi_prettyprint_status_register_bp4_srwd,
6194 .unlock = spi_disable_blockprotect_bp4_srwd,
6195 .write = spi_chip_write_256,
6196 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6197 .voltage = {2700, 3600},
6198 },
6199
6200 {
6201 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006202 .name = "GD25Q16(B)",
6203 .bustype = BUS_SPI,
6204 .manufacture_id = GIGADEVICE_ID,
6205 .model_id = GIGADEVICE_GD25Q16,
6206 .total_size = 2048,
6207 .page_size = 256,
6208 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
6209 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6210 .tested = TEST_OK_PREW,
6211 .probe = probe_spi_rdid,
6212 .probe_timing = TIMING_ZERO,
6213 .block_erasers =
6214 {
6215 {
6216 .eraseblocks = { {4 * 1024, 512} },
6217 .block_erase = spi_block_erase_20,
6218 }, {
6219 .eraseblocks = { {32 * 1024, 64} },
6220 .block_erase = spi_block_erase_52,
6221 }, {
6222 .eraseblocks = { {64 * 1024, 32} },
6223 .block_erase = spi_block_erase_d8,
6224 }, {
6225 .eraseblocks = { {2 * 1024 * 1024, 1} },
6226 .block_erase = spi_block_erase_60,
6227 }, {
6228 .eraseblocks = { {2 * 1024 * 1024, 1} },
6229 .block_erase = spi_block_erase_c7,
6230 }
6231 },
6232 .printlock = spi_prettyprint_status_register_bp4_srwd,
6233 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6234 .write = spi_chip_write_256,
6235 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6236 .voltage = {2700, 3600},
6237 },
6238
6239 {
6240 .vendor = "GigaDevice",
6241 .name = "GD25Q20(B)",
6242 .bustype = BUS_SPI,
6243 .manufacture_id = GIGADEVICE_ID,
6244 .model_id = GIGADEVICE_GD25Q20,
6245 .total_size = 256,
6246 .page_size = 256,
6247 .feature_bits = FEATURE_WRSR_WREN,
6248 .tested = TEST_OK_PREW,
6249 .probe = probe_spi_rdid,
6250 .probe_timing = TIMING_ZERO,
6251 .block_erasers =
6252 {
6253 {
6254 .eraseblocks = { {4 * 1024, 64} },
6255 .block_erase = spi_block_erase_20,
6256 }, {
6257 .eraseblocks = { {32 * 1024, 8} },
6258 .block_erase = spi_block_erase_52,
6259 }, {
6260 .eraseblocks = { {64 * 1024, 4} },
6261 .block_erase = spi_block_erase_d8,
6262 }, {
6263 .eraseblocks = { {256 * 1024, 1} },
6264 .block_erase = spi_block_erase_60,
6265 }, {
6266 .eraseblocks = { {256 * 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 = "GD25Q32(B)",
6280 .bustype = BUS_SPI,
6281 .manufacture_id = GIGADEVICE_ID,
6282 .model_id = GIGADEVICE_GD25Q32,
6283 .total_size = 4096,
6284 .page_size = 256,
6285 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6286 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6287 .tested = TEST_OK_PREW,
6288 .probe = probe_spi_rdid,
6289 .probe_timing = TIMING_ZERO,
6290 .block_erasers =
6291 {
6292 {
6293 .eraseblocks = { {4 * 1024, 1024} },
6294 .block_erase = spi_block_erase_20,
6295 }, {
6296 .eraseblocks = { {32 * 1024, 128} },
6297 .block_erase = spi_block_erase_52,
6298 }, {
6299 .eraseblocks = { {64 * 1024, 64} },
6300 .block_erase = spi_block_erase_d8,
6301 }, {
6302 .eraseblocks = { {4 * 1024 * 1024, 1} },
6303 .block_erase = spi_block_erase_60,
6304 }, {
6305 .eraseblocks = { {4 * 1024 * 1024, 1} },
6306 .block_erase = spi_block_erase_c7,
6307 }
6308 },
6309 .printlock = spi_prettyprint_status_register_bp4_srwd,
6310 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6311 .write = spi_chip_write_256,
6312 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6313 .voltage = {2700, 3600},
6314 },
6315
6316 {
6317 .vendor = "GigaDevice",
6318 .name = "GD25Q40(B)",
6319 .bustype = BUS_SPI,
6320 .manufacture_id = GIGADEVICE_ID,
6321 .model_id = GIGADEVICE_GD25Q40,
6322 .total_size = 512,
6323 .page_size = 256,
6324 .feature_bits = FEATURE_WRSR_WREN,
6325 .tested = TEST_UNTESTED,
6326 .probe = probe_spi_rdid,
6327 .probe_timing = TIMING_ZERO,
6328 .block_erasers =
6329 {
6330 {
6331 .eraseblocks = { {4 * 1024, 128} },
6332 .block_erase = spi_block_erase_20,
6333 }, {
6334 .eraseblocks = { {32 * 1024, 16} },
6335 .block_erase = spi_block_erase_52,
6336 }, {
6337 .eraseblocks = { {64 * 1024, 8} },
6338 .block_erase = spi_block_erase_d8,
6339 }, {
6340 .eraseblocks = { {512 * 1024, 1} },
6341 .block_erase = spi_block_erase_60,
6342 }, {
6343 .eraseblocks = { {512 * 1024, 1} },
6344 .block_erase = spi_block_erase_c7,
6345 }
6346 },
6347 .printlock = spi_prettyprint_status_register_bp4_srwd,
6348 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6349 .write = spi_chip_write_256,
6350 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6351 .voltage = {2700, 3600},
6352 },
6353
6354 {
6355 .vendor = "GigaDevice",
6356 .name = "GD25Q512",
6357 .bustype = BUS_SPI,
6358 .manufacture_id = GIGADEVICE_ID,
6359 .model_id = GIGADEVICE_GD25Q512,
6360 .total_size = 64,
6361 .page_size = 256,
6362 .feature_bits = FEATURE_WRSR_WREN,
6363 .tested = TEST_OK_PREW,
6364 .probe = probe_spi_rdid,
6365 .probe_timing = TIMING_ZERO,
6366 .block_erasers =
6367 {
6368 {
6369 .eraseblocks = { {4 * 1024, 16} },
6370 .block_erase = spi_block_erase_20,
6371 }, {
6372 .eraseblocks = { {32 * 1024, 2} },
6373 .block_erase = spi_block_erase_52,
6374 }, {
6375 .eraseblocks = { {64 * 1024, 1} },
6376 .block_erase = spi_block_erase_60,
6377 }, {
6378 .eraseblocks = { {64 * 1024, 1} },
6379 .block_erase = spi_block_erase_c7,
6380 }
6381 },
6382 .printlock = spi_prettyprint_status_register_bp4_srwd,
6383 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6384 .write = spi_chip_write_256,
6385 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6386 .voltage = {2700, 3600},
6387 },
6388
6389 {
6390 .vendor = "GigaDevice",
6391 .name = "GD25Q64(B)",
6392 .bustype = BUS_SPI,
6393 .manufacture_id = GIGADEVICE_ID,
6394 .model_id = GIGADEVICE_GD25Q64,
6395 .total_size = 8192,
6396 .page_size = 256,
6397 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6398 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6399 .tested = TEST_OK_PREW,
6400 .probe = probe_spi_rdid,
6401 .probe_timing = TIMING_ZERO,
6402 .block_erasers =
6403 {
6404 {
6405 .eraseblocks = { {4 * 1024, 2048} },
6406 .block_erase = spi_block_erase_20,
6407 }, {
6408 .eraseblocks = { {32 * 1024, 256} },
6409 .block_erase = spi_block_erase_52,
6410 }, {
6411 .eraseblocks = { {64 * 1024, 128} },
6412 .block_erase = spi_block_erase_d8,
6413 }, {
6414 .eraseblocks = { {8 * 1024 * 1024, 1} },
6415 .block_erase = spi_block_erase_60,
6416 }, {
6417 .eraseblocks = { {8 * 1024 * 1024, 1} },
6418 .block_erase = spi_block_erase_c7,
6419 }
6420 },
6421 .printlock = spi_prettyprint_status_register_bp4_srwd,
6422 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6423 .write = spi_chip_write_256,
6424 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6425 .voltage = {2700, 3600},
6426 },
6427
6428 {
6429 .vendor = "GigaDevice",
6430 .name = "GD25Q80(B)",
6431 .bustype = BUS_SPI,
6432 .manufacture_id = GIGADEVICE_ID,
6433 .model_id = GIGADEVICE_GD25Q80,
6434 .total_size = 1024,
6435 .page_size = 256,
6436 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
6437 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6438 .tested = TEST_OK_PREW,
6439 .probe = probe_spi_rdid,
6440 .probe_timing = TIMING_ZERO,
6441 .block_erasers =
6442 {
6443 {
6444 .eraseblocks = { {4 * 1024, 256} },
6445 .block_erase = spi_block_erase_20,
6446 }, {
6447 .eraseblocks = { {32 * 1024, 32} },
6448 .block_erase = spi_block_erase_52,
6449 }, {
6450 .eraseblocks = { {64 * 1024, 16} },
6451 .block_erase = spi_block_erase_d8,
6452 }, {
6453 .eraseblocks = { {1024 * 1024, 1} },
6454 .block_erase = spi_block_erase_60,
6455 }, {
6456 .eraseblocks = { {1024 * 1024, 1} },
6457 .block_erase = spi_block_erase_c7,
6458 }
6459 },
6460 .printlock = spi_prettyprint_status_register_bp4_srwd,
6461 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6462 .write = spi_chip_write_256,
6463 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6464 .voltage = {2700, 3600},
6465 },
6466
6467 {
6468 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006469 .name = "GD25T80",
6470 .bustype = BUS_SPI,
6471 .manufacture_id = GIGADEVICE_ID,
6472 .model_id = GIGADEVICE_GD25T80,
6473 .total_size = 1024,
6474 .page_size = 256,
6475 /* OTP: 256B total; enter 0x3A */
6476 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6477 .tested = TEST_UNTESTED,
6478 .probe = probe_spi_rdid,
6479 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10006480 .block_erasers =
6481 {
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006482 {
6483 .eraseblocks = { {4 * 1024, 256} },
6484 .block_erase = spi_block_erase_20,
6485 }, {
6486 .eraseblocks = { {64 * 1024, 16} },
6487 .block_erase = spi_block_erase_52,
6488 }, {
6489 .eraseblocks = { {64 * 1024, 16} },
6490 .block_erase = spi_block_erase_d8,
6491 }, {
6492 .eraseblocks = { {1024 * 1024, 1} },
6493 .block_erase = spi_block_erase_60,
6494 }, {
6495 .eraseblocks = { {1024 * 1024, 1} },
6496 .block_erase = spi_block_erase_c7,
6497 }
6498 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006499 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006500 .unlock = spi_disable_blockprotect,
6501 .write = spi_chip_write_256,
6502 .read = spi_chip_read,
Stefan Tauner352e50b2013-02-22 15:58:45 +00006503 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006504 },
6505
6506 {
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006507 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006508 .name = "GD25VQ16C",
6509 .bustype = BUS_SPI,
6510 .manufacture_id = GIGADEVICE_ID,
6511 .model_id = GIGADEVICE_GD25VQ16C,
6512 .total_size = 2 * 1024,
6513 .page_size = 256,
6514 /* Supports SFDP */
6515 /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */
6516 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6517 .tested = TEST_UNTESTED,
6518 .probe = probe_spi_rdid,
6519 .probe_timing = TIMING_ZERO,
6520 .block_erasers =
6521 {
6522 {
6523 .eraseblocks = { { 4 * 1024, 512} },
6524 .block_erase = spi_block_erase_20,
6525 }, {
6526 .eraseblocks = { { 32 * 1024, 64} },
6527 .block_erase = spi_block_erase_52,
6528 }, {
6529 .eraseblocks = { { 64 * 1024, 32} },
6530 .block_erase = spi_block_erase_d8,
6531 }, {
6532 .eraseblocks = { {2 * 1024 * 1024, 1} },
6533 .block_erase = spi_block_erase_60,
6534 }, {
6535 .eraseblocks = { {2 * 1024 * 1024, 1} },
6536 .block_erase = spi_block_erase_c7,
6537 }
6538 },
6539 .printlock = spi_prettyprint_status_register_bp4_srwd,
6540 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6541 .write = spi_chip_write_256,
6542 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6543 .voltage = {2300, 3600},
6544 },
6545
6546 {
6547 .vendor = "GigaDevice",
Hatim Kanchwalad0595352016-03-06 14:33:49 +00006548 .name = "GD25VQ21B",
6549 .bustype = BUS_SPI,
6550 .manufacture_id = GIGADEVICE_ID,
6551 .model_id = GIGADEVICE_GD25VQ21B,
6552 .total_size = 256,
6553 .page_size = 256,
6554 /* OTP: 1536B total; read 0x48, write 0x42, erase 0x44 */
6555 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6556 .tested = TEST_UNTESTED,
6557 .probe = probe_spi_rdid,
6558 .probe_timing = TIMING_ZERO,
6559 .block_erasers =
6560 {
6561 {
6562 .eraseblocks = { { 4 * 1024, 64} },
6563 .block_erase = spi_block_erase_20,
6564 }, {
6565 .eraseblocks = { { 32 * 1024, 8} },
6566 .block_erase = spi_block_erase_52,
6567 }, {
6568 .eraseblocks = { { 64 * 1024, 4} },
6569 .block_erase = spi_block_erase_d8,
6570 }, {
6571 .eraseblocks = { {256 * 1024, 1} },
6572 .block_erase = spi_block_erase_60,
6573 }, {
6574 .eraseblocks = { {256 * 1024, 1} },
6575 .block_erase = spi_block_erase_c7,
6576 }
6577 },
6578 .printlock = spi_prettyprint_status_register_bp4_srwd,
6579 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6580 .write = spi_chip_write_256,
6581 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6582 .voltage = {2300, 3600},
6583 },
6584
6585 {
6586 .vendor = "GigaDevice",
6587 .name = "GD25VQ40C",
6588 .bustype = BUS_SPI,
6589 .manufacture_id = GIGADEVICE_ID,
6590 .model_id = GIGADEVICE_GD25VQ41B,
6591 .total_size = 512,
6592 .page_size = 256,
6593 /* Supports SFDP */
6594 /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */
6595 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6596 .tested = TEST_UNTESTED,
6597 .probe = probe_spi_rdid,
6598 .probe_timing = TIMING_ZERO,
6599 .block_erasers =
6600 {
6601 {
6602 .eraseblocks = { { 4 * 1024, 128} },
6603 .block_erase = spi_block_erase_20,
6604 }, {
6605 .eraseblocks = { { 32 * 1024, 16} },
6606 .block_erase = spi_block_erase_52,
6607 }, {
6608 .eraseblocks = { { 64 * 1024, 8} },
6609 .block_erase = spi_block_erase_d8,
6610 }, {
6611 .eraseblocks = { {512 * 1024, 1} },
6612 .block_erase = spi_block_erase_60,
6613 }, {
6614 .eraseblocks = { {512 * 1024, 1} },
6615 .block_erase = spi_block_erase_c7,
6616 }
6617 },
6618 .printlock = spi_prettyprint_status_register_bp4_srwd,
6619 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6620 .write = spi_chip_write_256,
6621 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6622 .voltage = {2300, 3600},
6623 },
6624
6625 {
6626 .vendor = "GigaDevice",
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006627 .name = "GD25VQ41B",
6628 .bustype = BUS_SPI,
6629 .manufacture_id = GIGADEVICE_ID,
6630 .model_id = GIGADEVICE_GD25VQ41B,
6631 .total_size = 512,
6632 .page_size = 256,
6633 /* OTP: 1536B total; read 0x48, write 0x42, erase 0x44 */
6634 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner0be072c2016-03-13 15:16:30 +00006635 .tested = TEST_OK_PREW,
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006636 .probe = probe_spi_rdid,
6637 .probe_timing = TIMING_ZERO,
Stefan Tauner0be072c2016-03-13 15:16:30 +00006638 .block_erasers =
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006639 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00006640 {
6641 .eraseblocks = { { 4 * 1024, 128} },
6642 .block_erase = spi_block_erase_20,
6643 }, {
6644 .eraseblocks = { { 32 * 1024, 16} },
6645 .block_erase = spi_block_erase_52,
6646 }, {
6647 .eraseblocks = { { 64 * 1024, 8} },
6648 .block_erase = spi_block_erase_d8,
6649 }, {
6650 .eraseblocks = { {512 * 1024, 1} },
6651 .block_erase = spi_block_erase_60,
6652 }, {
6653 .eraseblocks = { {512 * 1024, 1} },
6654 .block_erase = spi_block_erase_c7,
6655 }
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006656 },
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006657 .printlock = spi_prettyprint_status_register_bp4_srwd,
Hatim Kanchwalad0595352016-03-06 14:33:49 +00006658 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6659 .write = spi_chip_write_256,
6660 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6661 .voltage = {2300, 3600},
6662 },
6663
6664 {
6665 .vendor = "GigaDevice",
6666 .name = "GD25VQ80C",
6667 .bustype = BUS_SPI,
6668 .manufacture_id = GIGADEVICE_ID,
6669 .model_id = GIGADEVICE_GD25VQ80C,
6670 .total_size = 1024,
6671 .page_size = 256,
6672 /* Supports SFDP */
6673 /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */
6674 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6675 .tested = TEST_UNTESTED,
6676 .probe = probe_spi_rdid,
6677 .probe_timing = TIMING_ZERO,
6678 .block_erasers =
6679 {
6680 {
6681 .eraseblocks = { { 4 * 1024, 256} },
6682 .block_erase = spi_block_erase_20,
6683 }, {
6684 .eraseblocks = { { 32 * 1024, 32} },
6685 .block_erase = spi_block_erase_52,
6686 }, {
6687 .eraseblocks = { { 64 * 1024, 16} },
6688 .block_erase = spi_block_erase_d8,
6689 }, {
6690 .eraseblocks = { {1024 * 1024, 1} },
6691 .block_erase = spi_block_erase_60,
6692 }, {
6693 .eraseblocks = { {1024 * 1024, 1} },
6694 .block_erase = spi_block_erase_c7,
6695 }
6696 },
6697 .printlock = spi_prettyprint_status_register_bp4_srwd,
6698 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6699 .write = spi_chip_write_256,
6700 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6701 .voltage = {2300, 3600},
6702 },
6703
6704 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006705 .vendor = "Hyundai",
6706 .name = "HY29F002B",
6707 .bustype = BUS_PARALLEL,
6708 .manufacture_id = HYUNDAI_ID,
6709 .model_id = HYUNDAI_HY29F002B,
6710 .total_size = 256,
6711 .page_size = 256 * 1024,
6712 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Hatim Kanchwalad0595352016-03-06 14:33:49 +00006713 .tested = TEST_UNTESTED,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006714 .probe = probe_jedec,
6715 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Hatim Kanchwalad0595352016-03-06 14:33:49 +00006716 .block_erasers =
6717 {
6718 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006719 .eraseblocks = {
6720 {16 * 1024, 1},
6721 {8 * 1024, 2},
6722 {32 * 1024, 1},
6723 {64 * 1024, 3},
6724 },
6725 .block_erase = erase_sector_jedec,
Hatim Kanchwalad0595352016-03-06 14:33:49 +00006726 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006727 .eraseblocks = { {256 * 1024, 1} },
6728 .block_erase = erase_chip_block_jedec,
6729 },
Hatim Kanchwalad0595352016-03-06 14:33:49 +00006730 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10006731 .write = write_jedec_1,
6732 .read = read_memmapped,
6733 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006734 },
6735
6736 {
David Borgc96a8bd2010-06-21 16:12:22 +00006737 .vendor = "Hyundai",
6738 .name = "HY29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006739 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00006740 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006741 .model_id = HYUNDAI_HY29F002T,
David Borgc96a8bd2010-06-21 16:12:22 +00006742 .total_size = 256,
6743 .page_size = 256 * 1024,
6744 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00006745 .tested = TEST_OK_PRE,
David Borgc96a8bd2010-06-21 16:12:22 +00006746 .probe = probe_jedec,
6747 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
6748 .block_erasers =
6749 {
6750 {
6751 .eraseblocks = {
6752 {64 * 1024, 3},
6753 {32 * 1024, 1},
6754 {8 * 1024, 2},
6755 {16 * 1024, 1},
6756 },
6757 .block_erase = erase_sector_jedec,
6758 }, {
6759 .eraseblocks = { {256 * 1024, 1} },
6760 .block_erase = erase_chip_block_jedec,
6761 },
6762 },
6763 .write = write_jedec_1,
6764 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006765 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00006766 },
6767
6768 {
6769 .vendor = "Hyundai",
Joshua Roysf1324e02010-09-16 00:51:51 +00006770 .name = "HY29F040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006771 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00006772 .manufacture_id = HYUNDAI_ID,
6773 .model_id = HYUNDAI_HY29F040A,
6774 .total_size = 512,
6775 .page_size = 64 * 1024,
6776 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
6777 .tested = TEST_UNTESTED,
6778 .probe = probe_jedec,
6779 .probe_timing = TIMING_ZERO,
6780 .block_erasers =
6781 {
6782 {
6783 .eraseblocks = { {64 * 1024, 8} },
6784 .block_erase = erase_sector_jedec,
6785 }, {
6786 .eraseblocks = { {512 * 1024, 1} },
6787 .block_erase = erase_chip_block_jedec,
6788 },
6789 },
6790 .write = write_jedec_1,
6791 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006792 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00006793 },
6794
6795 {
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00006796 .vendor = "ISSI",
Angel Pons2ef47f32018-09-30 16:47:30 +02006797 .name = "IS25LP064",
6798 .bustype = BUS_SPI,
6799 .manufacture_id = ISSI_ID_SPI,
6800 .model_id = ISSI_IS25LP064,
6801 .total_size = 8192,
6802 .page_size = 256,
6803 /* OTP: 1024B total; read 0x48; write 0x42 */
6804 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6805 .tested = TEST_UNTESTED,
6806 .probe = probe_spi_rdid,
6807 .probe_timing = TIMING_ZERO,
6808 .block_erasers =
6809 {
6810 {
6811 .eraseblocks = { {4 * 1024, 2048} },
6812 .block_erase = spi_block_erase_20,
6813 }, {
6814 .eraseblocks = { {4 * 1024, 2048} },
6815 .block_erase = spi_block_erase_d7,
6816 }, {
6817 .eraseblocks = { {32 * 1024, 256} },
6818 .block_erase = spi_block_erase_52,
6819 }, {
6820 .eraseblocks = { {64 * 1024, 128} },
6821 .block_erase = spi_block_erase_d8,
6822 }, {
6823 .eraseblocks = { {8 * 1024 * 1024, 1} },
6824 .block_erase = spi_block_erase_60,
6825 }, {
6826 .eraseblocks = { {8 * 1024 * 1024, 1} },
6827 .block_erase = spi_block_erase_c7,
6828 }
6829 },
6830 .unlock = spi_disable_blockprotect,
6831 .write = spi_chip_write_256,
6832 .read = spi_chip_read,
6833 .voltage = {2300, 3600},
6834 },
6835
6836 {
6837 .vendor = "ISSI",
David Hendricks3083ed92017-05-02 13:25:56 -07006838 .name = "IS25LP128",
6839 .bustype = BUS_SPI,
6840 .manufacture_id = ISSI_ID_SPI,
6841 .model_id = ISSI_IS25LP128,
6842 .total_size = 16384,
6843 .page_size = 256,
6844 /* OTP: 1024B total; read 0x48; write 0x42 */
6845 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6846 .tested = TEST_OK_PREW,
6847 .probe = probe_spi_rdid,
6848 .probe_timing = TIMING_ZERO,
6849 .block_erasers =
6850 {
6851 {
6852 .eraseblocks = { {4 * 1024, 4096} },
6853 .block_erase = spi_block_erase_20,
6854 }, {
6855 .eraseblocks = { {4 * 1024, 4096} },
6856 .block_erase = spi_block_erase_d7,
6857 }, {
6858 .eraseblocks = { {32 * 1024, 512} },
6859 .block_erase = spi_block_erase_52,
6860 }, {
6861 .eraseblocks = { {64 * 1024, 256} },
6862 .block_erase = spi_block_erase_d8,
6863 }, {
6864 .eraseblocks = { {16 * 1024 * 1024, 1} },
6865 .block_erase = spi_block_erase_60,
6866 }, {
6867 .eraseblocks = { {16 * 1024 * 1024, 1} },
6868 .block_erase = spi_block_erase_c7,
6869 }
6870 },
6871 .unlock = spi_disable_blockprotect,
6872 .write = spi_chip_write_256,
6873 .read = spi_chip_read,
6874 .voltage = {2300, 3600},
6875 },
6876
6877 {
6878 .vendor = "ISSI",
David Hendricks61818dc2018-10-28 01:02:21 +00006879 .name = "IS25LP256",
6880 .bustype = BUS_SPI,
6881 .manufacture_id = ISSI_ID_SPI,
6882 .model_id = ISSI_IS25LP256,
6883 .total_size = 32768,
6884 .page_size = 256,
6885 /* supports SFDP */
6886 /* OTP: 1024B total; read 0x68; write 0x62, erase 0x64, read ID 0x4B */
6887 /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */
6888 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA | FEATURE_4BA_ENTER_EAR7,
6889 .tested = TEST_OK_PREW,
6890 .probe = probe_spi_rdid,
6891 .probe_timing = TIMING_ZERO,
6892 .block_erasers =
6893 {
6894 {
6895 .eraseblocks = { {4 * 1024, 8192} },
6896 .block_erase = spi_block_erase_21,
6897 }, {
6898 .eraseblocks = { {4 * 1024, 8192} },
6899 .block_erase = spi_block_erase_20,
6900 /* could also use spi_block_erase_d7 */
6901 }, {
6902 .eraseblocks = { {32 * 1024, 1024} },
6903 .block_erase = spi_block_erase_5c,
6904 }, {
6905 .eraseblocks = { {32 * 1024, 1024} },
6906 .block_erase = spi_block_erase_52,
6907 }, {
6908 .eraseblocks = { {64 * 1024, 512} },
6909 .block_erase = spi_block_erase_dc,
6910 }, {
6911 .eraseblocks = { {64 * 1024, 512} },
6912 .block_erase = spi_block_erase_d8,
6913 }, {
6914 .eraseblocks = { {32 * 1024 * 1024, 1} },
6915 .block_erase = spi_block_erase_60,
6916 }, {
6917 .eraseblocks = { {32 * 1024 * 1024, 1} },
6918 .block_erase = spi_block_erase_c7,
6919 }
6920 },
6921 .unlock = spi_disable_blockprotect,
6922 .write = spi_chip_write_256,
6923 .read = spi_chip_read,
6924 .voltage = {2300, 3600},
6925 },
6926
6927 {
6928 .vendor = "ISSI",
Nico Huberb27b8d12018-10-02 20:46:21 +02006929 .name = "IS25WP032",
6930 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +10006931 .manufacture_id = ISSI_ID_SPI,
Nico Huberb27b8d12018-10-02 20:46:21 +02006932 .model_id = ISSI_IS25WP032,
6933 .total_size = 4096,
6934 .page_size = 256,
6935 /* OTP: 1024B total; read 0x48; write 0x42 */
6936 /* QPI enable 0x35, disable 0xF5 */
6937 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6938 .tested = TEST_UNTESTED,
6939 .probe = probe_spi_rdid,
6940 .probe_timing = TIMING_ZERO,
6941 .block_erasers =
6942 {
6943 {
6944 .eraseblocks = { {4 * 1024, 1024} },
6945 .block_erase = spi_block_erase_20,
6946 }, {
6947 .eraseblocks = { {4 * 1024, 1024} },
6948 .block_erase = spi_block_erase_d7,
6949 }, {
6950 .eraseblocks = { {32 * 1024, 128} },
6951 .block_erase = spi_block_erase_52,
6952 }, {
6953 .eraseblocks = { {64 * 1024, 64} },
6954 .block_erase = spi_block_erase_d8,
6955 }, {
6956 .eraseblocks = { {4 * 1024 * 1024, 1} },
6957 .block_erase = spi_block_erase_60,
6958 }, {
6959 .eraseblocks = { {4 * 1024 * 1024, 1} },
6960 .block_erase = spi_block_erase_c7,
6961 }
6962 },
6963 .unlock = spi_disable_blockprotect,
6964 .write = spi_chip_write_256,
6965 .read = spi_chip_read,
6966 .voltage = {1650, 1950},
6967 },
6968
6969 {
6970 .vendor = "ISSI",
6971 .name = "IS25WP064",
6972 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +10006973 .manufacture_id = ISSI_ID_SPI,
Nico Huberb27b8d12018-10-02 20:46:21 +02006974 .model_id = ISSI_IS25WP064,
6975 .total_size = 8192,
6976 .page_size = 256,
6977 /* OTP: 1024B total; read 0x48; write 0x42 */
6978 /* QPI enable 0x35, disable 0xF5 */
6979 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6980 .tested = TEST_OK_PREW,
6981 .probe = probe_spi_rdid,
6982 .probe_timing = TIMING_ZERO,
6983 .block_erasers =
6984 {
6985 {
6986 .eraseblocks = { {4 * 1024, 2048} },
6987 .block_erase = spi_block_erase_20,
6988 }, {
6989 .eraseblocks = { {4 * 1024, 2048} },
6990 .block_erase = spi_block_erase_d7,
6991 }, {
6992 .eraseblocks = { {32 * 1024, 256} },
6993 .block_erase = spi_block_erase_52,
6994 }, {
6995 .eraseblocks = { {64 * 1024, 128} },
6996 .block_erase = spi_block_erase_d8,
6997 }, {
6998 .eraseblocks = { {8 * 1024 * 1024, 1} },
6999 .block_erase = spi_block_erase_60,
7000 }, {
7001 .eraseblocks = { {8 * 1024 * 1024, 1} },
7002 .block_erase = spi_block_erase_c7,
7003 }
7004 },
7005 .unlock = spi_disable_blockprotect,
7006 .write = spi_chip_write_256,
7007 .read = spi_chip_read,
7008 .voltage = {1650, 1950},
7009 },
7010
7011 {
7012 .vendor = "ISSI",
David Hendricks3083ed92017-05-02 13:25:56 -07007013 .name = "IS25WP128",
7014 .bustype = BUS_SPI,
7015 .manufacture_id = ISSI_ID_SPI,
7016 .model_id = ISSI_IS25WP128,
7017 .total_size = 16384,
7018 .page_size = 256,
7019 /* OTP: 1024B total; read 0x48; write 0x42 */
Nico Huberb27b8d12018-10-02 20:46:21 +02007020 /* QPI enable 0x35, disable 0xF5 */
7021 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
David Hendricks3083ed92017-05-02 13:25:56 -07007022 .tested = TEST_OK_PREW,
7023 .probe = probe_spi_rdid,
7024 .probe_timing = TIMING_ZERO,
7025 .block_erasers =
7026 {
7027 {
7028 .eraseblocks = { {4 * 1024, 4096} },
7029 .block_erase = spi_block_erase_20,
7030 }, {
7031 .eraseblocks = { {4 * 1024, 4096} },
7032 .block_erase = spi_block_erase_d7,
7033 }, {
7034 .eraseblocks = { {32 * 1024, 512} },
7035 .block_erase = spi_block_erase_52,
7036 }, {
7037 .eraseblocks = { {64 * 1024, 256} },
7038 .block_erase = spi_block_erase_d8,
7039 }, {
7040 .eraseblocks = { {16 * 1024 * 1024, 1} },
7041 .block_erase = spi_block_erase_60,
7042 }, {
7043 .eraseblocks = { {16 * 1024 * 1024, 1} },
7044 .block_erase = spi_block_erase_c7,
7045 }
7046 },
7047 .unlock = spi_disable_blockprotect,
7048 .write = spi_chip_write_256,
7049 .read = spi_chip_read,
7050 .voltage = {1650, 1950},
7051 },
7052
7053 {
7054 .vendor = "ISSI",
David Hendricks61818dc2018-10-28 01:02:21 +00007055 .name = "IS25WP256",
7056 .bustype = BUS_SPI,
7057 .manufacture_id = ISSI_ID_SPI,
7058 .model_id = ISSI_IS25WP256,
7059 .total_size = 32768,
7060 .page_size = 256,
7061 /* supports SFDP */
7062 /* OTP: 1024B total; read 0x68; write 0x62, erase 0x64, read ID 0x4B */
7063 /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */
7064 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA | FEATURE_4BA_ENTER_EAR7,
7065 .tested = TEST_OK_PREW,
7066 .probe = probe_spi_rdid,
7067 .probe_timing = TIMING_ZERO,
7068 .block_erasers =
7069 {
7070 {
7071 .eraseblocks = { {4 * 1024, 8192} },
7072 .block_erase = spi_block_erase_21,
7073 }, {
7074 .eraseblocks = { {4 * 1024, 8192} },
7075 .block_erase = spi_block_erase_20,
7076 /* could also use spi_block_erase_d7 */
7077 }, {
7078 .eraseblocks = { {32 * 1024, 1024} },
7079 .block_erase = spi_block_erase_5c,
7080 }, {
7081 .eraseblocks = { {32 * 1024, 1024} },
7082 .block_erase = spi_block_erase_52,
7083 }, {
7084 .eraseblocks = { {64 * 1024, 512} },
7085 .block_erase = spi_block_erase_dc,
7086 }, {
7087 .eraseblocks = { {64 * 1024, 512} },
7088 .block_erase = spi_block_erase_d8,
7089 }, {
7090 .eraseblocks = { {32 * 1024 * 1024, 1} },
7091 .block_erase = spi_block_erase_60,
7092 }, {
7093 .eraseblocks = { {32 * 1024 * 1024, 1} },
7094 .block_erase = spi_block_erase_c7,
7095 }
7096 },
7097 .unlock = spi_disable_blockprotect,
7098 .write = spi_chip_write_256,
7099 .read = spi_chip_read,
7100 .voltage = {1650, 1950},
7101 },
7102
7103 {
7104 .vendor = "ISSI",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007105 .name = "IS29GL064B",
7106 .bustype = BUS_PARALLEL,
7107 .manufacture_id = ISSI_ID,
7108 .model_id = ISSI_PMC_IS29GL064B,
7109 .total_size = 8192,
7110 .page_size = 128 * 1024, /* actual page size is 16 */
7111 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7112 .tested = TEST_UNTESTED,
7113 .probe = probe_jedec_29gl,
7114 .probe_timing = TIMING_ZERO,
7115 .block_erasers =
7116 {
7117 {
7118 .eraseblocks = {
7119 {8 * 1024, 8},
7120 {64 * 1024, 127},
7121 },
7122 .block_erase = erase_sector_jedec,
7123 }, {
7124 .eraseblocks = { {8 * 1024 * 1024, 1} },
7125 .block_erase = erase_chip_block_jedec,
7126 },
7127 },
7128 .write = write_jedec_1,
7129 .read = read_memmapped,
7130 .voltage = {2700, 3600},
7131 },
7132
7133 {
7134 .vendor = "ISSI",
Alan Green1f9cc7d2019-07-01 11:10:45 +10007135 .name = "IS29GL064H/L",
7136 .bustype = BUS_PARALLEL,
7137 .manufacture_id = ISSI_ID,
7138 .model_id = ISSI_PMC_IS29GL064HL,
7139 .total_size = 8192,
7140 .page_size = 128 * 1024, /* actual page size is 16 */
7141 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7142 .tested = TEST_UNTESTED,
7143 .probe = probe_jedec_29gl,
7144 .probe_timing = TIMING_ZERO,
7145 .block_erasers =
7146 {
7147 {
7148 .eraseblocks = { {64 * 1024, 128} },
7149 .block_erase = erase_sector_jedec,
7150 }, {
7151 .eraseblocks = { {8 * 1024 * 1024, 1} },
7152 .block_erase = erase_chip_block_jedec,
7153 },
7154 },
7155 .write = write_jedec_1,
7156 .read = read_memmapped,
7157 .voltage = {2700, 3600},
7158 },
7159
7160 {
7161 .vendor = "ISSI",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007162 .name = "IS29GL064T",
7163 .bustype = BUS_PARALLEL,
7164 .manufacture_id = ISSI_ID,
7165 .model_id = ISSI_PMC_IS29GL064T,
7166 .total_size = 8192,
7167 .page_size = 128 * 1024, /* actual page size is 16 */
7168 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7169 .tested = TEST_UNTESTED,
7170 .probe = probe_jedec_29gl,
7171 .probe_timing = TIMING_ZERO,
7172 .block_erasers =
7173 {
7174 {
7175 .eraseblocks = {
7176 {64 * 1024, 127},
7177 {8 * 1024, 8},
7178 },
7179 .block_erase = erase_sector_jedec,
7180 }, {
7181 .eraseblocks = { {8 * 1024 * 1024, 1} },
7182 .block_erase = erase_chip_block_jedec,
7183 },
7184 },
7185 .write = write_jedec_1,
7186 .read = read_memmapped,
7187 .voltage = {2700, 3600},
7188 },
7189
7190 {
7191 .vendor = "ISSI",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007192 .name = "IS29GL128H/L",
7193 .bustype = BUS_PARALLEL,
7194 .manufacture_id = ISSI_ID,
7195 .model_id = ISSI_PMC_IS29GL128HL,
7196 .total_size = 16384,
7197 .page_size = 128 * 1024, /* actual page size is 16 */
7198 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7199 .tested = TEST_UNTESTED,
7200 .probe = probe_jedec_29gl,
7201 .probe_timing = TIMING_ZERO,
7202 .block_erasers =
7203 {
7204 {
7205 .eraseblocks = { {128 * 1024, 128} },
7206 .block_erase = erase_sector_jedec,
7207 }, {
7208 .eraseblocks = { {16 * 1024 * 1024, 1} },
7209 .block_erase = erase_chip_block_jedec,
7210 },
7211 },
7212 .write = write_jedec_1,
7213 .read = read_memmapped,
7214 .voltage = {2700, 3600},
7215 },
7216
7217 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007218 .vendor = "Intel",
7219 .name = "25F160S33B8",
7220 .bustype = BUS_SPI,
7221 .manufacture_id = INTEL_ID,
7222 .model_id = INTEL_25F160S33B8,
7223 .total_size = 2048,
7224 .page_size = 256,
7225 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
7226 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7227 .tested = TEST_UNTESTED,
7228 .probe = probe_spi_rdid,
7229 .probe_timing = TIMING_ZERO,
7230 .block_erasers =
7231 {
7232 {
7233 /* This chip supports erasing of the 8 so-called "parameter blocks" with
7234 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
7235 * have no effect on the memory contents, but sets a flag in the SR.
7236 .eraseblocks = {
7237 {8 * 1024, 8},
7238 {64 * 1024, 31} // inaccessible
7239 },
7240 .block_erase = spi_block_erase_40,
7241 }, { */
7242 .eraseblocks = { {64 * 1024, 32} },
7243 .block_erase = spi_block_erase_d8,
7244 }, {
7245 .eraseblocks = { {2 * 1024 * 1024, 1} },
7246 .block_erase = spi_block_erase_c7,
7247 }
7248 },
7249 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
7250 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
7251 .write = spi_chip_write_256,
7252 .read = spi_chip_read, /* also fast read 0x0B */
7253 .voltage = {2700, 3600},
7254 },
7255
7256 {
7257 .vendor = "Intel",
7258 .name = "25F160S33T8",
7259 .bustype = BUS_SPI,
7260 .manufacture_id = INTEL_ID,
7261 .model_id = INTEL_25F160S33T8,
7262 .total_size = 2048,
7263 .page_size = 256,
7264 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
7265 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7266 .tested = TEST_UNTESTED,
7267 .probe = probe_spi_rdid,
7268 .probe_timing = TIMING_ZERO,
7269 .block_erasers =
7270 {
7271 {
7272 /* This chip supports erasing of the 8 so-called "parameter blocks" with
7273 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
7274 * have no effect on the memory contents, but sets a flag in the SR.
7275 .eraseblocks = {
7276 {64 * 1024, 31}, // inaccessible
7277 {8 * 1024, 8}
7278 },
7279 .block_erase = spi_block_erase_40,
7280 }, { */
7281 .eraseblocks = { {64 * 1024, 32} },
7282 .block_erase = spi_block_erase_d8,
7283 }, {
7284 .eraseblocks = { {2 * 1024 * 1024, 1} },
7285 .block_erase = spi_block_erase_c7,
7286 }
7287 },
7288 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
7289 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
7290 .write = spi_chip_write_256,
7291 .read = spi_chip_read, /* also fast read 0x0B */
7292 .voltage = {2700, 3600},
7293 },
7294
7295 {
7296 .vendor = "Intel",
7297 .name = "25F320S33B8",
7298 .bustype = BUS_SPI,
7299 .manufacture_id = INTEL_ID,
7300 .model_id = INTEL_25F320S33B8,
7301 .total_size = 4096,
7302 .page_size = 256,
7303 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
7304 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7305 .tested = TEST_UNTESTED,
7306 .probe = probe_spi_rdid,
7307 .probe_timing = TIMING_ZERO,
7308 .block_erasers =
7309 {
7310 {
7311 /* This chip supports erasing of the 8 so-called "parameter blocks" with
7312 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
7313 * have no effect on the memory contents, but sets a flag in the SR.
7314 .eraseblocks = {
7315 {8 * 1024, 8},
7316 {64 * 1024, 63} // inaccessible
7317 },
7318 .block_erase = spi_block_erase_40,
7319 }, { */
7320 .eraseblocks = { {64 * 1024, 64} },
7321 .block_erase = spi_block_erase_d8,
7322 }, {
7323 .eraseblocks = { {4 * 1024 * 1024, 1} },
7324 .block_erase = spi_block_erase_c7,
7325 }
7326 },
7327 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
7328 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
7329 .write = spi_chip_write_256,
7330 .read = spi_chip_read, /* also fast read 0x0B */
7331 .voltage = {2700, 3600},
7332 },
7333
7334 {
7335 .vendor = "Intel",
7336 .name = "25F320S33T8",
7337 .bustype = BUS_SPI,
7338 .manufacture_id = INTEL_ID,
7339 .model_id = INTEL_25F320S33T8,
7340 .total_size = 4096,
7341 .page_size = 256,
7342 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
7343 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7344 .tested = TEST_UNTESTED,
7345 .probe = probe_spi_rdid,
7346 .probe_timing = TIMING_ZERO,
7347 .block_erasers =
7348 {
7349 {
7350 /* This chip supports erasing of the 8 so-called "parameter blocks" with
7351 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
7352 * have no effect on the memory contents, but sets a flag in the SR.
7353 .eraseblocks = {
7354 {64 * 1024, 63}, // inaccessible
7355 {8 * 1024, 8}
7356 },
7357 .block_erase = spi_block_erase_40,
7358 }, { */
7359 .eraseblocks = { {64 * 1024, 64} },
7360 .block_erase = spi_block_erase_d8,
7361 }, {
7362 .eraseblocks = { {4 * 1024 * 1024, 1} },
7363 .block_erase = spi_block_erase_c7,
7364 }
7365 },
7366 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
7367 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
7368 .write = spi_chip_write_256,
7369 .read = spi_chip_read, /* also fast read 0x0B */
7370 .voltage = {2700, 3600},
7371 },
7372
7373 {
7374 .vendor = "Intel",
7375 .name = "25F640S33B8",
7376 .bustype = BUS_SPI,
7377 .manufacture_id = INTEL_ID,
7378 .model_id = INTEL_25F640S33B8,
7379 .total_size = 8192,
7380 .page_size = 256,
7381 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
7382 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7383 .tested = TEST_UNTESTED,
7384 .probe = probe_spi_rdid,
7385 .probe_timing = TIMING_ZERO,
7386 .block_erasers =
7387 {
7388 {
7389 /* This chip supports erasing of the 8 so-called "parameter blocks" with
7390 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
7391 * have no effect on the memory contents, but sets a flag in the SR.
7392 .eraseblocks = {
7393 {8 * 1024, 8},
7394 {64 * 1024, 127} // inaccessible
7395 },
7396 .block_erase = spi_block_erase_40,
7397 }, { */
7398 .eraseblocks = { {64 * 1024, 128} },
7399 .block_erase = spi_block_erase_d8,
7400 }, {
7401 .eraseblocks = { {8 * 1024 * 1024, 1} },
7402 .block_erase = spi_block_erase_c7,
7403 }
7404 },
7405 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
7406 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
7407 .write = spi_chip_write_256,
7408 .read = spi_chip_read, /* also fast read 0x0B */
7409 .voltage = {2700, 3600},
7410 },
7411
7412 {
7413 .vendor = "Intel",
7414 .name = "25F640S33T8",
7415 .bustype = BUS_SPI,
7416 .manufacture_id = INTEL_ID,
7417 .model_id = INTEL_25F640S33T8,
7418 .total_size = 8192,
7419 .page_size = 256,
7420 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
7421 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7422 .tested = TEST_UNTESTED,
7423 .probe = probe_spi_rdid,
7424 .probe_timing = TIMING_ZERO,
7425 .block_erasers =
7426 {
7427 {
7428 /* This chip supports erasing of the 8 so-called "parameter blocks" with
7429 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
7430 * have no effect on the memory contents, but sets a flag in the SR.
7431 .eraseblocks = {
7432 {64 * 1024, 127}, // inaccessible
7433 {8 * 1024, 8}
7434 },
7435 .block_erase = spi_block_erase_40,
7436 }, { */
7437 .eraseblocks = { {64 * 1024, 128} },
7438 .block_erase = spi_block_erase_d8,
7439 }, {
7440 .eraseblocks = { {8 * 1024 * 1024, 1} },
7441 .block_erase = spi_block_erase_c7,
7442 }
7443 },
7444 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
7445 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
7446 .write = spi_chip_write_256,
7447 .read = spi_chip_read, /* also fast read 0x0B */
7448 .voltage = {2700, 3600},
7449 },
7450
7451 {
7452 .vendor = "Intel",
7453 .name = "28F001BN/BX-B",
7454 .bustype = BUS_PARALLEL,
7455 .manufacture_id = INTEL_ID,
7456 .model_id = INTEL_28F001B,
7457 .total_size = 128,
7458 .page_size = 128 * 1024, /* 8k + 2x4k + 112k */
7459 .tested = TEST_UNTESTED,
7460 .probe = probe_jedec,
7461 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7462 .block_erasers =
7463 {
7464 {
7465 .eraseblocks = {
7466 {8 * 1024, 1},
7467 {4 * 1024, 2},
7468 {112 * 1024, 1},
7469 },
7470 .block_erase = erase_block_82802ab,
7471 },
7472 },
7473 .write = write_82802ab,
7474 .read = read_memmapped,
7475 .voltage = {4500, 5500},
7476 },
7477
7478 {
7479 .vendor = "Intel",
7480 .name = "28F001BN/BX-T",
7481 .bustype = BUS_PARALLEL,
7482 .manufacture_id = INTEL_ID,
7483 .model_id = INTEL_28F001T,
7484 .total_size = 128,
7485 .page_size = 128 * 1024, /* 112k + 2x4k + 8k */
7486 .tested = TEST_OK_PREW,
7487 .probe = probe_jedec,
7488 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7489 .block_erasers =
7490 {
7491 {
7492 .eraseblocks = {
7493 {112 * 1024, 1},
7494 {4 * 1024, 2},
7495 {8 * 1024, 1},
7496 },
7497 .block_erase = erase_block_82802ab,
7498 },
7499 },
7500 .write = write_82802ab,
7501 .read = read_memmapped,
7502 .voltage = {4500, 5500},
7503 },
7504
7505 {
7506 .vendor = "Intel",
7507 .name = "28F002BC/BL/BV/BX-T",
7508 .bustype = BUS_PARALLEL,
7509 .manufacture_id = INTEL_ID,
7510 .model_id = INTEL_28F002T,
7511 .total_size = 256,
7512 .page_size = 256 * 1024,
7513 .tested = TEST_OK_PRE,
7514 .probe = probe_82802ab,
7515 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7516 .block_erasers =
7517 {
7518 {
7519 .eraseblocks = {
7520 {128 * 1024, 1},
7521 {96 * 1024, 1},
7522 {8 * 1024, 2},
7523 {16 * 1024, 1},
7524 },
7525 .block_erase = erase_block_82802ab,
7526 },
7527 },
7528 .write = write_82802ab,
7529 .read = read_memmapped,
7530 },
7531
7532 {
7533 .vendor = "Intel",
7534 .name = "28F004B5/BE/BV/BX-B",
7535 .bustype = BUS_PARALLEL,
7536 .manufacture_id = INTEL_ID,
7537 .model_id = INTEL_28F004B,
7538 .total_size = 512,
7539 .page_size = 128 * 1024, /* maximal block size */
7540 .tested = TEST_UNTESTED,
7541 .probe = probe_82802ab,
7542 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7543 .block_erasers =
7544 {
7545 {
7546 .eraseblocks = {
7547 {16 * 1024, 1},
7548 {8 * 1024, 2},
7549 {96 * 1024, 1},
7550 {128 * 1024, 3},
7551 },
7552 .block_erase = erase_block_82802ab,
7553 },
7554 },
7555 .write = write_82802ab,
7556 .read = read_memmapped,
7557 },
7558
7559 {
7560 .vendor = "Intel",
7561 .name = "28F004B5/BE/BV/BX-T",
7562 .bustype = BUS_PARALLEL,
7563 .manufacture_id = INTEL_ID,
7564 .model_id = INTEL_28F004T,
7565 .total_size = 512,
7566 .page_size = 128 * 1024, /* maximal block size */
7567 .tested = TEST_UNTESTED,
7568 .probe = probe_82802ab,
7569 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7570 .block_erasers =
7571 {
7572 {
7573 .eraseblocks = {
7574 {128 * 1024, 3},
7575 {96 * 1024, 1},
7576 {8 * 1024, 2},
7577 {16 * 1024, 1},
7578 },
7579 .block_erase = erase_block_82802ab,
7580 },
7581 },
7582 .write = write_82802ab,
7583 .read = read_memmapped,
7584 },
7585
7586 {
7587 .vendor = "Intel",
7588 .name = "28F008S3/S5/SC",
7589 .bustype = BUS_PARALLEL,
7590 .manufacture_id = INTEL_ID,
7591 .model_id = INTEL_28F004S3,
7592 .total_size = 512,
7593 .page_size = 256,
7594 .tested = TEST_UNTESTED,
7595 .probe = probe_82802ab,
7596 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7597 .block_erasers =
7598 {
7599 {
7600 .eraseblocks = { {64 * 1024, 8} },
7601 .block_erase = erase_block_82802ab,
7602 },
7603 },
7604 .unlock = unlock_28f004s5,
7605 .write = write_82802ab,
7606 .read = read_memmapped,
7607 },
7608
7609 {
7610 .vendor = "Intel",
7611 .name = "28F400BV/BX/CE/CV-B",
7612 .bustype = BUS_PARALLEL,
7613 .manufacture_id = INTEL_ID,
7614 .model_id = INTEL_28F400B,
7615 .total_size = 512,
7616 .page_size = 128 * 1024, /* maximal block size */
7617 .feature_bits = FEATURE_ADDR_SHIFTED,
7618 .tested = TEST_UNTESTED,
7619 .probe = probe_82802ab,
7620 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7621 .block_erasers =
7622 {
7623 {
7624 .eraseblocks = {
7625 {16 * 1024, 1},
7626 {8 * 1024, 2},
7627 {96 * 1024, 1},
7628 {128 * 1024, 3},
7629 },
7630 .block_erase = erase_block_82802ab,
7631 },
7632 },
7633 .write = write_82802ab,
7634 .read = read_memmapped,
7635 },
7636
7637 {
7638 .vendor = "Intel",
7639 .name = "28F400BV/BX/CE/CV-T",
7640 .bustype = BUS_PARALLEL,
7641 .manufacture_id = INTEL_ID,
7642 .model_id = INTEL_28F400T,
7643 .total_size = 512,
7644 .page_size = 128 * 1024, /* maximal block size */
7645 .feature_bits = FEATURE_ADDR_SHIFTED,
7646 .tested = TEST_UNTESTED,
7647 .probe = probe_82802ab,
7648 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7649 .block_erasers =
7650 {
7651 {
7652 .eraseblocks = {
7653 {128 * 1024, 3},
7654 {96 * 1024, 1},
7655 {8 * 1024, 2},
7656 {16 * 1024, 1},
7657 },
7658 .block_erase = erase_block_82802ab,
7659 },
7660 },
7661 .write = write_82802ab,
7662 .read = read_memmapped,
7663 },
7664
7665 {
7666 .vendor = "Intel",
7667 .name = "82802AB",
7668 .bustype = BUS_FWH,
7669 .manufacture_id = INTEL_ID,
7670 .model_id = INTEL_82802AB,
7671 .total_size = 512,
7672 .page_size = 64 * 1024,
7673 .feature_bits = FEATURE_REGISTERMAP,
Alan Green88552572019-07-24 13:56:06 +10007674 .tested = TEST_OK_PREW,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007675 .probe = probe_82802ab,
7676 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
7677 .block_erasers =
7678 {
7679 {
7680 .eraseblocks = { {64 * 1024, 8} },
7681 .block_erase = erase_block_82802ab,
7682 },
7683 },
7684 .unlock = unlock_regspace2_uniform_64k,
7685 .write = write_82802ab,
7686 .read = read_memmapped,
7687 .voltage = {3000, 3600},
7688 },
7689
7690 {
7691 .vendor = "Intel",
7692 .name = "82802AC",
7693 .bustype = BUS_FWH,
7694 .manufacture_id = INTEL_ID,
7695 .model_id = INTEL_82802AC,
7696 .total_size = 1024,
7697 .page_size = 64 * 1024,
7698 .feature_bits = FEATURE_REGISTERMAP,
7699 .tested = TEST_OK_PR,
7700 .probe = probe_82802ab,
7701 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
7702 .block_erasers =
7703 {
7704 {
7705 .eraseblocks = { {64 * 1024, 16} },
7706 .block_erase = erase_block_82802ab,
7707 },
7708 },
7709 .unlock = unlock_regspace2_uniform_64k,
7710 .write = write_82802ab,
7711 .read = read_memmapped,
7712 .voltage = {3000, 3600},
7713 },
7714
7715 {
7716 .vendor = "Macronix",
7717 .name = "MX23L12854",
7718 .bustype = BUS_SPI,
7719 .manufacture_id = MACRONIX_ID,
7720 .model_id = MACRONIX_MX23L12854,
7721 .total_size = 16384,
7722 .page_size = 256,
7723 .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA},
7724 .probe = probe_spi_rdid,
7725 .probe_timing = TIMING_ZERO,
7726 .write = NULL, /* MX23L12854 is a mask ROM, so it is read-only */
7727 .read = spi_chip_read, /* Fast read (0x0B) supported */
7728 .voltage = {3000, 3600},
7729 },
7730
7731 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007732 .vendor = "Macronix",
Michael Coppola583ea322014-08-20 18:56:35 +00007733 .name = "MX23L1654",
7734 .bustype = BUS_SPI,
7735 .manufacture_id = MACRONIX_ID,
7736 .model_id = MACRONIX_MX23L1654,
7737 .total_size = 2048,
7738 .page_size = 256,
7739 .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA},
7740 .probe = probe_spi_rdid,
7741 .probe_timing = TIMING_ZERO,
7742 .write = NULL, /* MX23L1654 is a mask ROM, so it is read-only */
7743 .read = spi_chip_read, /* Fast read (0x0B) supported */
7744 .voltage = {3000, 3600},
7745 },
7746
7747 {
7748 .vendor = "Macronix",
Michael Coppola4e7f36e2014-05-03 23:01:18 +00007749 .name = "MX23L3254",
7750 .bustype = BUS_SPI,
7751 .manufacture_id = MACRONIX_ID,
7752 .model_id = MACRONIX_MX23L3254,
7753 .total_size = 4096,
7754 .page_size = 256,
Stefan Tauner6455dff2014-05-26 00:36:24 +00007755 .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA},
Michael Coppola4e7f36e2014-05-03 23:01:18 +00007756 .probe = probe_spi_rdid,
7757 .probe_timing = TIMING_ZERO,
7758 .write = NULL, /* MX23L3254 is a mask ROM, so it is read-only */
7759 .read = spi_chip_read, /* Fast read (0x0B) supported */
7760 .voltage = {3000, 3600},
7761 },
7762
7763 {
7764 .vendor = "Macronix",
Michael Coppola583ea322014-08-20 18:56:35 +00007765 .name = "MX23L6454",
7766 .bustype = BUS_SPI,
7767 .manufacture_id = MACRONIX_ID,
7768 .model_id = MACRONIX_MX23L6454,
7769 .total_size = 8192,
7770 .page_size = 256,
Stefan Tauner23e10b82016-01-23 16:16:49 +00007771 .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA},
Michael Coppola583ea322014-08-20 18:56:35 +00007772 .probe = probe_spi_rdid,
7773 .probe_timing = TIMING_ZERO,
7774 .write = NULL, /* MX23L6454 is a mask ROM, so it is read-only */
7775 .read = spi_chip_read, /* Fast read (0x0B) supported */
7776 .voltage = {3000, 3600},
7777 },
7778
7779 {
7780 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00007781 .name = "MX25L1005(C)/MX25L1006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007782 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007783 .manufacture_id = MACRONIX_ID,
7784 .model_id = MACRONIX_MX25L1005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007785 .total_size = 128,
7786 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007787 /* MX25L1006E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00007788 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00007789 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007790 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007791 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007792 .block_erasers =
7793 {
7794 {
7795 .eraseblocks = { {4 * 1024, 32} },
7796 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007797 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007798 .eraseblocks = { {64 * 1024, 2} },
7799 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007800 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007801 .eraseblocks = { {128 * 1024, 1} },
7802 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007803 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00007804 .eraseblocks = { {128 * 1024, 1} },
7805 .block_erase = spi_block_erase_c7,
7806 },
7807 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007808 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00007809 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007810 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007811 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L1006E supports dual I/O */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007812 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007813 },
7814
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007815 {
7816 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10007817 .name = "MX25L12805D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007818 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007819 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007820 .model_id = MACRONIX_MX25L12805D,
7821 .total_size = 16384,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007822 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007823 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
7824 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007825 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007826 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007827 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007828 .block_erasers =
7829 {
7830 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007831 .eraseblocks = { {4 * 1024, 4096} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007832 .block_erase = spi_block_erase_20,
7833 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007834 .eraseblocks = { {64 * 1024, 256} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007835 .block_erase = spi_block_erase_d8,
7836 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007837 .eraseblocks = { {16 * 1024 * 1024, 1} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007838 .block_erase = spi_block_erase_60,
7839 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007840 .eraseblocks = { {16 * 1024 * 1024, 1} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007841 .block_erase = spi_block_erase_c7,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007842 }
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007843 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10007844 .printlock = spi_prettyprint_status_register_bp3_srwd,
7845 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007846 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007847 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007848 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007849 },
7850
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007851 {
7852 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10007853 .name = "MX25L12835F/MX25L12845E/MX25L12865E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007854 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007855 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007856 .model_id = MACRONIX_MX25L12805D,
7857 .total_size = 16384,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007858 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007859 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
7860 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner8179be52011-06-04 13:13:34 +00007861 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007862 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007863 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007864 .block_erasers =
7865 {
7866 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007867 .eraseblocks = { {4 * 1024, 4096} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007868 .block_erase = spi_block_erase_20,
7869 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007870 .eraseblocks = { {32 * 1024, 512} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007871 .block_erase = spi_block_erase_52,
7872 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007873 .eraseblocks = { {64 * 1024, 256} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007874 .block_erase = spi_block_erase_d8,
7875 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007876 .eraseblocks = { {16 * 1024 * 1024, 1} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007877 .block_erase = spi_block_erase_60,
7878 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007879 .eraseblocks = { {16 * 1024 * 1024, 1} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007880 .block_erase = spi_block_erase_c7,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007881 }
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007882 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10007883 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
7884 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
7885 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007886 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00007887 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007888 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007889 },
7890
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007891 {
7892 .vendor = "Macronix",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007893 .name = "MX25L1605",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007894 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007895 .manufacture_id = MACRONIX_ID,
7896 .model_id = MACRONIX_MX25L1605,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007897 .total_size = 2048,
7898 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00007899 .feature_bits = FEATURE_WRSR_WREN,
Sven Schnelle4bd8a402011-03-07 10:59:06 +00007900 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00007901 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00007902 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007903 .block_erasers =
7904 {
7905 {
Stefan Tauner226037d2013-03-16 01:22:12 +00007906 .eraseblocks = { {64 * 1024, 32} },
7907 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007908 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00007909 .eraseblocks = { {64 * 1024, 32} },
7910 .block_erase = spi_block_erase_d8,
7911 }, {
7912 .eraseblocks = { {2 * 1024 * 1024, 1} },
7913 .block_erase = spi_block_erase_60,
7914 }, {
7915 .eraseblocks = { {2 * 1024 * 1024, 1} },
7916 .block_erase = spi_block_erase_c7,
7917 },
7918 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007919 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */
Stefan Tauner226037d2013-03-16 01:22:12 +00007920 .unlock = spi_disable_blockprotect,
7921 .write = spi_chip_write_256,
7922 .read = spi_chip_read, /* Fast read (0x0B) supported */
7923 .voltage = {2700, 3600},
7924 },
7925
7926 {
7927 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007928 .name = "MX25L1605A/MX25L1606E/MX25L1608E",
Stefan Tauner226037d2013-03-16 01:22:12 +00007929 .bustype = BUS_SPI,
7930 .manufacture_id = MACRONIX_ID,
7931 .model_id = MACRONIX_MX25L1605,
7932 .total_size = 2048,
7933 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007934 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L1606E and MX25L1608E only) */
Stefan Tauner226037d2013-03-16 01:22:12 +00007935 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7936 .tested = TEST_OK_PREW,
7937 .probe = probe_spi_rdid,
7938 .probe_timing = TIMING_ZERO,
7939 .block_erasers =
7940 {
7941 {
7942 .eraseblocks = { {4 * 1024, 512} },
7943 .block_erase = spi_block_erase_20,
7944 }, {
7945 .eraseblocks = { {64 * 1024, 32} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00007946 .block_erase = spi_block_erase_52,
7947 }, {
7948 .eraseblocks = { {64 * 1024, 32} },
7949 .block_erase = spi_block_erase_d8,
7950 }, {
7951 .eraseblocks = { {2 * 1024 * 1024, 1} },
7952 .block_erase = spi_block_erase_60,
7953 }, {
7954 .eraseblocks = { {2 * 1024 * 1024, 1} },
7955 .block_erase = spi_block_erase_c7,
7956 },
7957 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00007958 .printlock = spi_prettyprint_status_register_bp3_srwd, /* MX25L1605A bp2 only */
Stefan Tauner5c316f92015-02-08 21:57:52 +00007959 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00007960 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007961 .read = spi_chip_read, /* Fast read (0x0B) supported (MX25L1608E supports dual-I/O read) */
Stefan Tauner226037d2013-03-16 01:22:12 +00007962 .voltage = {2700, 3600},
7963 },
7964
7965 {
7966 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00007967 .name = "MX25L1605D/MX25L1608D/MX25L1673E",
Stefan Tauner226037d2013-03-16 01:22:12 +00007968 .bustype = BUS_SPI,
7969 .manufacture_id = MACRONIX_ID,
7970 .model_id = MACRONIX_MX25L1605,
7971 .total_size = 2048,
7972 .page_size = 256,
7973 .feature_bits = FEATURE_WRSR_WREN,
7974 .tested = TEST_OK_PREW,
7975 .probe = probe_spi_rdid,
7976 .probe_timing = TIMING_ZERO,
7977 .block_erasers =
7978 {
7979 {
7980 .eraseblocks = { {4 * 1024, 512} },
7981 .block_erase = spi_block_erase_20,
7982 }, {
7983 .eraseblocks = { {64 * 1024, 32} },
7984 .block_erase = spi_block_erase_d8,
7985 }, {
7986 .eraseblocks = { {2 * 1024 * 1024, 1} },
7987 .block_erase = spi_block_erase_60,
7988 }, {
7989 .eraseblocks = { {2 * 1024 * 1024, 1} },
7990 .block_erase = spi_block_erase_c7,
7991 },
7992 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00007993 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: Continuously Program (CP) mode, for 73E is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00007994 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00007995 .write = spi_chip_write_256,
7996 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00007997 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00007998 },
7999
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008000 {
8001 .vendor = "Macronix",
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008002 .name = "MX25L1635D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008003 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008004 .manufacture_id = MACRONIX_ID,
8005 .model_id = MACRONIX_MX25L1635D,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008006 .total_size = 2048,
8007 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008008 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8009 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008010 .tested = TEST_UNTESTED,
8011 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008012 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008013 .block_erasers =
8014 {
8015 {
8016 .eraseblocks = { {4 * 1024, 512} },
8017 .block_erase = spi_block_erase_20,
8018 }, {
8019 .eraseblocks = { {64 * 1024, 32} },
8020 .block_erase = spi_block_erase_d8,
8021 }, {
8022 .eraseblocks = { {2 * 1024 * 1024, 1} },
8023 .block_erase = spi_block_erase_60,
8024 }, {
8025 .eraseblocks = { {2 * 1024 * 1024, 1} },
8026 .block_erase = spi_block_erase_c7,
8027 }
8028 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008029 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008030 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008031 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008032 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008033 .voltage = {2700, 3600},
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008034 },
Stephan Guillouxfd315502009-04-20 22:54:13 +00008035
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008036 {
8037 .vendor = "Macronix",
Stephan Guilloux3611b802010-09-13 19:59:28 +00008038 .name = "MX25L1635E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008039 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008040 .manufacture_id = MACRONIX_ID,
8041 .model_id = MACRONIX_MX25L1635E,
Stephan Guilloux3611b802010-09-13 19:59:28 +00008042 .total_size = 2048,
8043 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008044 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8045 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux3611b802010-09-13 19:59:28 +00008046 .tested = TEST_UNTESTED,
8047 .probe = probe_spi_rdid,
8048 .probe_timing = TIMING_ZERO,
8049 .block_erasers =
8050 {
8051 {
8052 .eraseblocks = { {4 * 1024, 512} },
8053 .block_erase = spi_block_erase_20,
8054 }, {
8055 .eraseblocks = { {64 * 1024, 32} },
8056 .block_erase = spi_block_erase_d8,
8057 }, {
8058 .eraseblocks = { {2 * 1024 * 1024, 1} },
8059 .block_erase = spi_block_erase_60,
8060 }, {
8061 .eraseblocks = { {2 * 1024 * 1024, 1} },
8062 .block_erase = spi_block_erase_c7,
8063 }
8064 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008065 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008066 .unlock = spi_disable_blockprotect_bp3_srwd,
Stephan Guilloux3611b802010-09-13 19:59:28 +00008067 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008068 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00008069 .voltage = {2700, 3600},
Stephan Guilloux3611b802010-09-13 19:59:28 +00008070 },
8071
8072 {
8073 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008074 .name = "MX25L2005(C)/MX25L2006E",
8075 .bustype = BUS_SPI,
8076 .manufacture_id = MACRONIX_ID,
8077 .model_id = MACRONIX_MX25L2005,
8078 .total_size = 256,
8079 .page_size = 256,
8080 .feature_bits = FEATURE_WRSR_WREN,
8081 .tested = TEST_OK_PREW,
8082 .probe = probe_spi_rdid,
8083 .probe_timing = TIMING_ZERO,
8084 .block_erasers =
8085 {
8086 {
8087 .eraseblocks = { {4 * 1024, 64} },
8088 .block_erase = spi_block_erase_20,
8089 }, {
8090 .eraseblocks = { {64 * 1024, 4} },
8091 .block_erase = spi_block_erase_52,
8092 }, {
8093 .eraseblocks = { {64 * 1024, 4} },
8094 .block_erase = spi_block_erase_d8,
8095 }, {
8096 .eraseblocks = { {256 * 1024, 1} },
8097 .block_erase = spi_block_erase_60,
8098 }, {
8099 .eraseblocks = { {256 * 1024, 1} },
8100 .block_erase = spi_block_erase_c7,
8101 },
8102 },
8103 .printlock = spi_prettyprint_status_register_bp1_srwd,
8104 .unlock = spi_disable_blockprotect,
8105 .write = spi_chip_write_256,
8106 .read = spi_chip_read, /* Fast read (0x0B) supported */
8107 .voltage = {2700, 3600},
8108 },
8109
8110 {
8111 .vendor = "Macronix",
8112 .name = "MX25L25635F",
8113 .bustype = BUS_SPI,
8114 .manufacture_id = MACRONIX_ID,
8115 .model_id = MACRONIX_MX25L25635F,
8116 .total_size = 32768,
8117 .page_size = 256,
8118 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8119 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
8120 .tested = TEST_OK_PREW,
8121 .probe = probe_spi_rdid,
8122 .probe_timing = TIMING_ZERO,
8123 .block_erasers =
8124 {
8125 {
8126 .eraseblocks = { {4 * 1024, 8192} },
8127 .block_erase = spi_block_erase_21,
8128 }, {
8129 .eraseblocks = { {4 * 1024, 8192} },
8130 .block_erase = spi_block_erase_20,
8131 }, {
8132 .eraseblocks = { {32 * 1024, 1024} },
8133 .block_erase = spi_block_erase_5c,
8134 }, {
8135 .eraseblocks = { {32 * 1024, 1024} },
8136 .block_erase = spi_block_erase_52,
8137 }, {
8138 .eraseblocks = { {64 * 1024, 512} },
8139 .block_erase = spi_block_erase_dc,
8140 }, {
8141 .eraseblocks = { {64 * 1024, 512} },
8142 .block_erase = spi_block_erase_d8,
8143 }, {
8144 .eraseblocks = { {32 * 1024 * 1024, 1} },
8145 .block_erase = spi_block_erase_60,
8146 }, {
8147 .eraseblocks = { {32 * 1024 * 1024, 1} },
8148 .block_erase = spi_block_erase_c7,
8149 }
8150 },
8151 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
8152 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8153 .unlock = spi_disable_blockprotect_bp3_srwd,
8154 .write = spi_chip_write_256,
8155 .read = spi_chip_read, /* Fast read (0x0B) supported */
8156 .voltage = {2700, 3600},
8157 },
8158
8159 {
8160 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00008161 .name = "MX25L3205(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008162 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008163 .manufacture_id = MACRONIX_ID,
8164 .model_id = MACRONIX_MX25L3205,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008165 .total_size = 4096,
8166 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00008167 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00008168 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008169 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008170 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00008171 .block_erasers =
8172 {
8173 {
Stefan Tauner226037d2013-03-16 01:22:12 +00008174 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00008175 .block_erase = spi_block_erase_20,
8176 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00008177 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00008178 .block_erase = spi_block_erase_d8,
8179 }, {
8180 .eraseblocks = { {4 * 1024 * 1024, 1} },
8181 .block_erase = spi_block_erase_60,
8182 }, {
8183 .eraseblocks = { {4 * 1024 * 1024, 1} },
8184 .block_erase = spi_block_erase_c7,
8185 },
8186 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008187 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008188 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008189 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008190 .read = spi_chip_read, /* Fast read (0x0B) supported */
8191 .voltage = {2700, 3600},
8192 },
8193
8194 {
8195 .vendor = "Macronix",
8196 .name = "MX25L3205D/MX25L3208D",
8197 .bustype = BUS_SPI,
8198 .manufacture_id = MACRONIX_ID,
8199 .model_id = MACRONIX_MX25L3205,
8200 .total_size = 4096,
8201 .page_size = 256,
8202 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8203 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8204 .tested = TEST_OK_PREW,
8205 .probe = probe_spi_rdid,
8206 .probe_timing = TIMING_ZERO,
8207 .block_erasers =
8208 {
8209 {
8210 .eraseblocks = { {4 * 1024, 1024} },
8211 .block_erase = spi_block_erase_20,
8212 }, {
8213 .eraseblocks = { {64 * 1024, 64} },
8214 .block_erase = spi_block_erase_d8,
8215 }, {
8216 .eraseblocks = { {4 * 1024 * 1024, 1} },
8217 .block_erase = spi_block_erase_60,
8218 }, {
8219 .eraseblocks = { {4 * 1024 * 1024, 1} },
8220 .block_erase = spi_block_erase_c7,
8221 },
8222 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008223 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008224 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00008225 .write = spi_chip_write_256,
8226 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
8227 .voltage = {2700, 3600},
8228 },
8229
8230 {
8231 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008232 .name = "MX25L3206E/MX25L3208E",
Stefan Tauner226037d2013-03-16 01:22:12 +00008233 .bustype = BUS_SPI,
8234 .manufacture_id = MACRONIX_ID,
8235 .model_id = MACRONIX_MX25L3205,
8236 .total_size = 4096,
8237 .page_size = 256,
8238 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8239 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8240 .tested = TEST_OK_PREW,
8241 .probe = probe_spi_rdid,
8242 .probe_timing = TIMING_ZERO,
8243 .block_erasers =
8244 {
8245 {
8246 .eraseblocks = { {4 * 1024, 1024} },
8247 .block_erase = spi_block_erase_20,
8248 }, {
8249 .eraseblocks = { {64 * 1024, 64} },
8250 .block_erase = spi_block_erase_d8,
8251 }, {
8252 .eraseblocks = { {64 * 1024, 64} },
8253 .block_erase = spi_block_erase_52,
8254 }, {
8255 .eraseblocks = { {4 * 1024 * 1024, 1} },
8256 .block_erase = spi_block_erase_60,
8257 }, {
8258 .eraseblocks = { {4 * 1024 * 1024, 1} },
8259 .block_erase = spi_block_erase_c7,
8260 },
8261 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008262 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008263 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00008264 .write = spi_chip_write_256,
8265 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008266 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008267 },
8268
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008269 {
8270 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008271 .name = "MX25L3235D",
8272 .bustype = BUS_SPI,
8273 .manufacture_id = MACRONIX_ID,
8274 .model_id = MACRONIX_MX25L3235D,
8275 .total_size = 4096,
8276 .page_size = 256,
8277 /* OTP: 256B total; enter 0xB1, exit 0xC1 */
8278 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8279 .tested = TEST_UNTESTED,
8280 .probe = probe_spi_rdid,
8281 .probe_timing = TIMING_ZERO,
8282 .block_erasers =
8283 {
8284 {
8285 .eraseblocks = { {4 * 1024, 1024} },
8286 .block_erase = spi_block_erase_20,
8287 }, {
8288 .eraseblocks = { {64 * 1024, 64} },
8289 .block_erase = spi_block_erase_d8,
8290 }, {
8291 .eraseblocks = { {4 * 1024 * 1024, 1} },
8292 .block_erase = spi_block_erase_60,
8293 }, {
8294 .eraseblocks = { {4 * 1024 * 1024, 1} },
8295 .block_erase = spi_block_erase_c7,
8296 }
8297 },
8298 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8299 .unlock = spi_disable_blockprotect_bp3_srwd,
8300 .write = spi_chip_write_256,
8301 .read = spi_chip_read,
8302 .voltage = {2700, 3600},
8303 },
8304
8305 {
8306 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008307 .name = "MX25L3273E",
8308 .bustype = BUS_SPI,
8309 .manufacture_id = MACRONIX_ID,
8310 .model_id = MACRONIX_MX25L3205,
8311 .total_size = 4096,
8312 .page_size = 256,
8313 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8314 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +00008315 .tested = TEST_OK_PREW,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008316 .probe = probe_spi_rdid,
8317 .probe_timing = TIMING_ZERO,
8318 .block_erasers =
8319 {
8320 {
8321 .eraseblocks = { {4 * 1024, 1024} },
8322 .block_erase = spi_block_erase_20,
8323 }, {
8324 .eraseblocks = { {32 * 1024, 128} },
8325 .block_erase = spi_block_erase_52,
8326 }, {
8327 .eraseblocks = { {64 * 1024, 64} },
8328 .block_erase = spi_block_erase_d8,
8329 }, {
8330 .eraseblocks = { {4 * 1024 * 1024, 1} },
8331 .block_erase = spi_block_erase_60,
8332 }, {
8333 .eraseblocks = { {4 * 1024 * 1024, 1} },
8334 .block_erase = spi_block_erase_c7,
8335 },
8336 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008337 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008338 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008339 .write = spi_chip_write_256,
8340 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
8341 .voltage = {2700, 3600},
8342 },
8343
8344 {
8345 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008346 .name = "MX25L4005(A/C)/MX25L4006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008347 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008348 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008349 .model_id = MACRONIX_MX25L4005,
8350 .total_size = 512,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00008351 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008352 .feature_bits = FEATURE_WRSR_WREN,
8353 .tested = TEST_OK_PREW,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00008354 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008355 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008356 .block_erasers =
8357 {
8358 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008359 .eraseblocks = { {4 * 1024, 128} },
Sean Nelson54596372010-01-09 05:30:14 +00008360 .block_erase = spi_block_erase_20,
8361 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008362 .eraseblocks = { {64 * 1024, 8} },
8363 .block_erase = spi_block_erase_52,
8364 }, {
8365 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson54596372010-01-09 05:30:14 +00008366 .block_erase = spi_block_erase_d8,
8367 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008368 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00008369 .block_erase = spi_block_erase_60,
8370 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008371 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00008372 .block_erase = spi_block_erase_c7,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008373 },
Sean Nelson54596372010-01-09 05:30:14 +00008374 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10008375 .printlock = spi_prettyprint_status_register_bp2_srwd,
8376 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008377 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008378 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008379 .voltage = {2700, 3600},
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00008380 },
8381
8382 {
8383 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008384 .name = "MX25L512(E)/MX25V512(C)",
8385 .bustype = BUS_SPI,
8386 .manufacture_id = MACRONIX_ID,
8387 .model_id = MACRONIX_MX25L512,
8388 .total_size = 64,
8389 .page_size = 256,
8390 /* MX25L512E supports SFDP */
8391 .feature_bits = FEATURE_WRSR_WREN,
8392 .tested = TEST_OK_PREW,
8393 .probe = probe_spi_rdid,
8394 .probe_timing = TIMING_ZERO,
8395 .block_erasers =
8396 {
8397 {
8398 .eraseblocks = { {4 * 1024, 16} },
8399 .block_erase = spi_block_erase_20,
8400 }, {
8401 .eraseblocks = { {64 * 1024, 1} },
8402 .block_erase = spi_block_erase_52,
8403 }, {
8404 .eraseblocks = { {64 * 1024, 1} },
8405 .block_erase = spi_block_erase_d8,
8406 }, {
8407 .eraseblocks = { {64 * 1024, 1} },
8408 .block_erase = spi_block_erase_60,
8409 }, {
8410 .eraseblocks = { {64 * 1024, 1} },
8411 .block_erase = spi_block_erase_c7,
8412 },
8413 },
8414 .printlock = spi_prettyprint_status_register_bp1_srwd,
8415 .unlock = spi_disable_blockprotect,
8416 .write = spi_chip_write_256,
8417 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L512E supports dual I/O */
8418 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V512(C) */
8419 },
8420
8421 {
8422 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008423 .name = "MX25L6405",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008424 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008425 .manufacture_id = MACRONIX_ID,
8426 .model_id = MACRONIX_MX25L6405,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008427 .total_size = 8192,
8428 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008429 /* Has an additional 512B EEPROM sector */
8430 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzelac427b22012-02-16 21:07:07 +00008431 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008432 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008433 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008434 .block_erasers =
8435 {
8436 {
8437 .eraseblocks = { {64 * 1024, 128} },
8438 .block_erase = spi_block_erase_20,
8439 }, {
8440 .eraseblocks = { {64 * 1024, 128} },
8441 .block_erase = spi_block_erase_d8,
8442 }, {
8443 .eraseblocks = { {8 * 1024 * 1024, 1} },
8444 .block_erase = spi_block_erase_60,
8445 }, {
8446 .eraseblocks = { {8 * 1024 * 1024, 1} },
8447 .block_erase = spi_block_erase_c7,
8448 }
8449 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008450 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: error flag */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008451 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008452 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008453 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008454 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008455 },
8456
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008457 {
8458 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008459 .name = "MX25L6405D",
Stefan Tauner226037d2013-03-16 01:22:12 +00008460 .bustype = BUS_SPI,
8461 .manufacture_id = MACRONIX_ID,
8462 .model_id = MACRONIX_MX25L6405,
8463 .total_size = 8192,
8464 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008465 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
Stefan Tauner226037d2013-03-16 01:22:12 +00008466 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8467 .tested = TEST_OK_PREW,
8468 .probe = probe_spi_rdid,
8469 .probe_timing = TIMING_ZERO,
8470 .block_erasers =
8471 {
8472 {
8473 .eraseblocks = { {4 * 1024, 2048} },
8474 .block_erase = spi_block_erase_20,
8475 }, {
8476 .eraseblocks = { {64 * 1024, 128} },
8477 .block_erase = spi_block_erase_d8,
8478 }, {
8479 .eraseblocks = { {8 * 1024 * 1024, 1} },
8480 .block_erase = spi_block_erase_60,
8481 }, {
8482 .eraseblocks = { {8 * 1024 * 1024, 1} },
8483 .block_erase = spi_block_erase_c7,
8484 }
8485 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008486 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008487 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00008488 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008489 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0xBB) supported */
Stefan Tauner226037d2013-03-16 01:22:12 +00008490 .voltage = {2700, 3600},
8491 },
8492
8493 {
8494 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008495 .name = "MX25L6406E/MX25L6408E",
8496 .bustype = BUS_SPI,
8497 .manufacture_id = MACRONIX_ID,
8498 .model_id = MACRONIX_MX25L6405,
8499 .total_size = 8192,
8500 .page_size = 256,
8501 /* MX25L6406E supports SFDP */
8502 /* OTP: 06E 64B total; enter 0xB1, exit 0xC1 */
8503 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8504 .tested = TEST_OK_PREW,
8505 .probe = probe_spi_rdid,
8506 .probe_timing = TIMING_ZERO,
8507 .block_erasers =
8508 {
8509 {
8510 .eraseblocks = { {4 * 1024, 2048} },
8511 .block_erase = spi_block_erase_20,
8512 }, {
8513 .eraseblocks = { {64 * 1024, 128} },
8514 .block_erase = spi_block_erase_52,
8515 }, {
8516 .eraseblocks = { {64 * 1024, 128} },
8517 .block_erase = spi_block_erase_d8,
8518 }, {
8519 .eraseblocks = { {8 * 1024 * 1024, 1} },
8520 .block_erase = spi_block_erase_60,
8521 }, {
8522 .eraseblocks = { {8 * 1024 * 1024, 1} },
8523 .block_erase = spi_block_erase_c7,
8524 }
8525 },
8526 .printlock = spi_prettyprint_status_register_bp3_srwd,
8527 .unlock = spi_disable_blockprotect_bp3_srwd,
8528 .write = spi_chip_write_256,
8529 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read supported */
8530 .voltage = {2700, 3600},
8531 },
8532
8533 {
8534 .vendor = "Macronix",
Nico Huberb0072782017-12-06 21:02:57 +01008535 .name = "MX25L6436E/MX25L6445E/MX25L6465E/MX25L6473E/MX25L6473F",
Stefan Tauner226037d2013-03-16 01:22:12 +00008536 .bustype = BUS_SPI,
8537 .manufacture_id = MACRONIX_ID,
8538 .model_id = MACRONIX_MX25L6405,
8539 .total_size = 8192,
8540 .page_size = 256,
8541 /* supports SFDP */
8542 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8543 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8544 .tested = TEST_OK_PREW,
8545 .probe = probe_spi_rdid,
8546 .probe_timing = TIMING_ZERO,
8547 .block_erasers =
8548 {
8549 {
8550 .eraseblocks = { {4 * 1024, 2048} },
8551 .block_erase = spi_block_erase_20,
8552 }, {
8553 .eraseblocks = { {32 * 1024, 256} },
8554 .block_erase = spi_block_erase_52,
8555 }, {
8556 .eraseblocks = { {64 * 1024, 128} },
8557 .block_erase = spi_block_erase_d8,
8558 }, {
8559 .eraseblocks = { {8 * 1024 * 1024, 1} },
8560 .block_erase = spi_block_erase_60,
8561 }, {
8562 .eraseblocks = { {8 * 1024 * 1024, 1} },
8563 .block_erase = spi_block_erase_c7,
8564 }
8565 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008566 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008567 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00008568 .write = spi_chip_write_256,
8569 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8570 .voltage = {2700, 3600},
8571 },
8572
8573 {
8574 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008575 .name = "MX25L6495F",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008576 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008577 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008578 .model_id = MACRONIX_MX25L6495F,
8579 .total_size = 8192,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00008580 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008581 /* OTP: 1024B total; enter 0xB1, exit 0xC1 */
Stefan Tauner226037d2013-03-16 01:22:12 +00008582 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +00008583 .tested = TEST_OK_PREW,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00008584 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008585 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008586 .block_erasers =
8587 {
8588 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008589 .eraseblocks = { {4 * 1024, 2048} },
Sean Nelson54596372010-01-09 05:30:14 +00008590 .block_erase = spi_block_erase_20,
8591 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008592 .eraseblocks = { {64 * 1024, 128} },
Sean Nelson54596372010-01-09 05:30:14 +00008593 .block_erase = spi_block_erase_d8,
8594 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008595 .eraseblocks = { {32 * 1024, 256} },
8596 .block_erase = spi_block_erase_52,
8597 }, {
8598 .eraseblocks = { {8 * 1024 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00008599 .block_erase = spi_block_erase_60,
8600 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008601 .eraseblocks = { {8 * 1024 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00008602 .block_erase = spi_block_erase_c7,
8603 }
8604 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10008605 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008606 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008607 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008608 .voltage = {2700, 3600},
8609 },
8610
8611 {
8612 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008613 .name = "MX25L8005/MX25L8006E/MX25L8008E/MX25V8005",
Stefan Tauner5c316f92015-02-08 21:57:52 +00008614 .bustype = BUS_SPI,
8615 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008616 .model_id = MACRONIX_MX25L8005,
8617 .total_size = 1024,
8618 .page_size = 256,
8619 /* MX25L8006E, MX25L8008E support SFDP */
8620 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L8006E, MX25L8008E only) */
8621 .feature_bits = FEATURE_WRSR_WREN,
8622 .tested = TEST_OK_PREW,
8623 .probe = probe_spi_rdid,
8624 .probe_timing = TIMING_ZERO,
8625 .block_erasers =
8626 {
8627 {
8628 .eraseblocks = { {4 * 1024, 256} },
8629 .block_erase = spi_block_erase_20,
8630 }, {
8631 .eraseblocks = { {64 * 1024, 16} },
8632 .block_erase = spi_block_erase_52,
8633 }, {
8634 .eraseblocks = { {64 * 1024, 16} },
8635 .block_erase = spi_block_erase_d8,
8636 }, {
8637 .eraseblocks = { {1024 * 1024, 1} },
8638 .block_erase = spi_block_erase_60,
8639 }, {
8640 .eraseblocks = { {1024 * 1024, 1} },
8641 .block_erase = spi_block_erase_c7,
8642 },
8643 },
8644 .printlock = spi_prettyprint_status_register_bp2_srwd,
8645 .unlock = spi_disable_blockprotect,
8646 .write = spi_chip_write_256,
8647 .read = spi_chip_read, /* Fast read (0x0B) supported */
8648 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V8005 */
8649 },
8650
8651 {
8652 .vendor = "Macronix",
8653 .name = "MX25R6435F",
8654 .bustype = BUS_SPI,
8655 .manufacture_id = MACRONIX_ID,
8656 .model_id = MACRONIX_MX25R6435F,
8657 .total_size = 8192,
8658 .page_size = 256,
8659 /* OTP: 1024B total; enter 0xB1, exit 0xC1 */
8660 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8661 .tested = TEST_OK_PREW,
8662 .probe = probe_spi_rdid,
8663 .probe_timing = TIMING_ZERO,
8664 .block_erasers =
8665 {
8666 {
8667 .eraseblocks = { {4 * 1024, 2048} },
8668 .block_erase = spi_block_erase_20,
8669 }, {
8670 .eraseblocks = { {64 * 1024, 128} },
8671 .block_erase = spi_block_erase_d8,
8672 }, {
8673 .eraseblocks = { {32 * 1024, 256} },
8674 .block_erase = spi_block_erase_52,
8675 }, {
8676 .eraseblocks = { {8 * 1024 * 1024, 1} },
8677 .block_erase = spi_block_erase_60,
8678 }, {
8679 .eraseblocks = { {8 * 1024 * 1024, 1} },
8680 .block_erase = spi_block_erase_c7,
8681 }
8682 },
8683 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8684 .unlock = spi_disable_blockprotect_bp3_srwd,
8685 .write = spi_chip_write_256,
8686 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8687 .voltage = {1650, 3600},
8688 },
8689
8690 {
8691 .vendor = "Macronix",
8692 .name = "MX25U12835F",
8693 .bustype = BUS_SPI,
8694 .manufacture_id = MACRONIX_ID,
8695 .model_id = MACRONIX_MX25U12835E,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008696 .total_size = 16384,
8697 .page_size = 256,
8698 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
Alan Green1f9cc7d2019-07-01 11:10:45 +10008699 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008700 .tested = TEST_OK_PREW,
8701 .probe = probe_spi_rdid,
8702 .probe_timing = TIMING_ZERO,
8703 .block_erasers =
8704 {
8705 {
8706 .eraseblocks = { {4 * 1024, 4096} },
8707 .block_erase = spi_block_erase_20,
8708 }, {
8709 .eraseblocks = { {32 * 1024, 512} },
8710 .block_erase = spi_block_erase_52,
8711 }, {
8712 .eraseblocks = { {64 * 1024, 256} },
8713 .block_erase = spi_block_erase_d8,
8714 }, {
8715 .eraseblocks = { {16 * 1024 * 1024, 1} },
8716 .block_erase = spi_block_erase_60,
8717 }, {
8718 .eraseblocks = { {16 * 1024 * 1024, 1} },
8719 .block_erase = spi_block_erase_c7,
8720 }
8721 },
Angel Ponsf112e242018-09-30 20:14:17 +02008722 /* TODO: security register */
8723 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8724 .unlock = spi_disable_blockprotect_bp3_srwd,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008725 .write = spi_chip_write_256, /* Multi I/O supported */
Angel Ponsf112e242018-09-30 20:14:17 +02008726 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8727 .voltage = {1650, 2000},
8728 },
8729
8730 {
8731 .vendor = "Macronix",
Vincent Palatinf800f552013-03-15 02:03:16 +00008732 .name = "MX25U1635E",
8733 .bustype = BUS_SPI,
8734 .manufacture_id = MACRONIX_ID,
8735 .model_id = MACRONIX_MX25U1635E,
8736 .total_size = 2048,
8737 .page_size = 256,
8738 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8739 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
8740 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008741 .tested = TEST_OK_PR,
Vincent Palatinf800f552013-03-15 02:03:16 +00008742 .probe = probe_spi_rdid,
8743 .probe_timing = TIMING_ZERO,
8744 .block_erasers =
8745 {
8746 {
8747 .eraseblocks = { {4 * 1024, 512} },
8748 .block_erase = spi_block_erase_20,
8749 }, {
8750 .eraseblocks = { {32 * 1024, 64} },
8751 .block_erase = spi_block_erase_52,
8752 }, {
8753 .eraseblocks = { {64 * 1024, 32} },
8754 .block_erase = spi_block_erase_d8,
8755 }, {
8756 .eraseblocks = { {2 * 1024 * 1024, 1} },
8757 .block_erase = spi_block_erase_60,
8758 }, {
8759 .eraseblocks = { {2 * 1024 * 1024, 1} },
8760 .block_erase = spi_block_erase_c7,
8761 }
8762 },
8763 /* TODO: security register */
Stefan Tauner12f3d512014-05-27 21:27:27 +00008764 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008765 .unlock = spi_disable_blockprotect_bp3_srwd,
Vincent Palatinf800f552013-03-15 02:03:16 +00008766 .write = spi_chip_write_256,
8767 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8768 .voltage = {1650, 2000},
8769 },
8770
8771 {
8772 .vendor = "Macronix",
David Tomaschikf75d8c52019-06-20 09:49:01 -07008773 .name = "MX25U25635F",
8774 .bustype = BUS_SPI,
8775 .manufacture_id = MACRONIX_ID,
8776 .model_id = MACRONIX_MX25U25635F,
8777 .total_size = 32768,
8778 .page_size = 256,
8779 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8780 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_4BA,
8781 .tested = TEST_OK_PR,
8782 .probe = probe_spi_rdid,
8783 .probe_timing = TIMING_ZERO,
8784 .block_erasers =
8785 {
8786 {
8787 .eraseblocks = { {4 * 1024, 8192} },
8788 .block_erase = spi_block_erase_21,
8789 }, {
8790 .eraseblocks = { {4 * 1024, 8192} },
8791 .block_erase = spi_block_erase_20,
8792 }, {
8793 .eraseblocks = { {32 * 1024, 1024} },
8794 .block_erase = spi_block_erase_5c,
8795 }, {
8796 .eraseblocks = { {32 * 1024, 1024} },
8797 .block_erase = spi_block_erase_52,
8798 }, {
8799 .eraseblocks = { {64 * 1024, 512} },
8800 .block_erase = spi_block_erase_dc,
8801 }, {
8802 .eraseblocks = { {64 * 1024, 512} },
8803 .block_erase = spi_block_erase_d8,
8804 }, {
8805 .eraseblocks = { {32 * 1024 * 1024, 1} },
8806 .block_erase = spi_block_erase_60,
8807 }, {
8808 .eraseblocks = { {32 * 1024 * 1024, 1} },
8809 .block_erase = spi_block_erase_c7,
8810 }
8811 },
8812 /* TODO: security register */
8813 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8814 .unlock = spi_disable_blockprotect_bp3_srwd,
8815 .write = spi_chip_write_256, /* Multi I/O supported */
8816 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8817 .voltage = {1650, 2000},
8818 },
8819
8820 {
8821 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008822 .name = "MX25U3235E/F",
8823 .bustype = BUS_SPI,
8824 .manufacture_id = MACRONIX_ID,
8825 .model_id = MACRONIX_MX25U3235E,
8826 .total_size = 4096,
8827 .page_size = 256,
8828 /* F model supports SFDP */
8829 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8830 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
8831 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
8832 .tested = TEST_OK_PREW,
8833 .probe = probe_spi_rdid,
8834 .probe_timing = TIMING_ZERO,
8835 .block_erasers =
8836 {
8837 {
8838 .eraseblocks = { {4 * 1024, 1024} },
8839 .block_erase = spi_block_erase_20,
8840 }, {
8841 .eraseblocks = { {32 * 1024, 128} },
8842 .block_erase = spi_block_erase_52,
8843 }, {
8844 .eraseblocks = { {64 * 1024, 64} },
8845 .block_erase = spi_block_erase_d8,
8846 }, {
8847 .eraseblocks = { {4 * 1024 * 1024, 1} },
8848 .block_erase = spi_block_erase_60,
8849 }, {
8850 .eraseblocks = { {4 * 1024 * 1024, 1} },
8851 .block_erase = spi_block_erase_c7,
8852 }
8853 },
8854 /* TODO: security register */
8855 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8856 .unlock = spi_disable_blockprotect_bp3_srwd,
8857 .write = spi_chip_write_256,
8858 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8859 .voltage = {1650, 2000},
8860 },
8861
8862 {
8863 .vendor = "Macronix",
Daniel Thompsoncadd4202018-06-04 13:52:22 +01008864 .name = "MX25U51245G",
8865 .bustype = BUS_SPI,
8866 .manufacture_id = MACRONIX_ID,
8867 .model_id = MACRONIX_MX25U51245G,
8868 .total_size = 65536,
8869 .page_size = 256,
8870 /* OTP: 512B factory programmed and 512B customer programmed; enter 0xB1, exit 0xC1 */
8871 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_4BA,
8872 .tested = TEST_OK_PREW,
8873 .probe = probe_spi_rdid,
8874 .probe_timing = TIMING_ZERO,
8875 .block_erasers =
8876 {
8877 {
8878 .eraseblocks = { {4 * 1024, 16384} },
8879 .block_erase = spi_block_erase_21,
8880 }, {
8881 .eraseblocks = { {4 * 1024, 16384} },
8882 .block_erase = spi_block_erase_20,
8883 }, {
8884 .eraseblocks = { {32 * 1024, 2048} },
8885 .block_erase = spi_block_erase_5c,
8886 }, {
8887 .eraseblocks = { {32 * 1024, 2048} },
8888 .block_erase = spi_block_erase_52,
8889 }, {
8890 .eraseblocks = { {64 * 1024, 1024} },
8891 .block_erase = spi_block_erase_dc,
8892 }, {
8893 .eraseblocks = { {64 * 1024, 1024} },
8894 .block_erase = spi_block_erase_d8,
8895 }, {
8896 .eraseblocks = { {64 * 1024 * 1024, 1} },
8897 .block_erase = spi_block_erase_60,
8898 }, {
8899 .eraseblocks = { {64 * 1024 * 1024, 1} },
8900 .block_erase = spi_block_erase_c7,
8901 }
8902 },
8903 /* TODO: security register */
8904 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8905 .unlock = spi_disable_blockprotect_bp3_srwd,
8906 .write = spi_chip_write_256, /* Multi I/O supported */
8907 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8908 .voltage = {1650, 2000},
8909 },
8910
8911 {
8912 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008913 .name = "MX25U6435E/F",
Stefan Tauner40bc96f2015-01-10 09:33:14 +00008914 .bustype = BUS_SPI,
8915 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008916 .model_id = MACRONIX_MX25U6435E,
Stefan Tauner40bc96f2015-01-10 09:33:14 +00008917 .total_size = 8192,
8918 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008919 /* F model supports SFDP */
8920 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8921 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
8922 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner40bc96f2015-01-10 09:33:14 +00008923 .tested = TEST_OK_PREW,
8924 .probe = probe_spi_rdid,
8925 .probe_timing = TIMING_ZERO,
8926 .block_erasers =
8927 {
8928 {
8929 .eraseblocks = { {4 * 1024, 2048} },
8930 .block_erase = spi_block_erase_20,
8931 }, {
Stefan Tauner40bc96f2015-01-10 09:33:14 +00008932 .eraseblocks = { {32 * 1024, 256} },
8933 .block_erase = spi_block_erase_52,
8934 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008935 .eraseblocks = { {64 * 1024, 128} },
8936 .block_erase = spi_block_erase_d8,
8937 }, {
Stefan Tauner40bc96f2015-01-10 09:33:14 +00008938 .eraseblocks = { {8 * 1024 * 1024, 1} },
8939 .block_erase = spi_block_erase_60,
8940 }, {
8941 .eraseblocks = { {8 * 1024 * 1024, 1} },
8942 .block_erase = spi_block_erase_c7,
8943 }
8944 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10008945 /* TODO: security register */
Nathan Rennie-Waldock5a7f9422018-08-10 15:35:23 +01008946 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8947 .unlock = spi_disable_blockprotect_bp3_srwd,
8948 .write = spi_chip_write_256,
8949 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Alan Green1f9cc7d2019-07-01 11:10:45 +10008950 .voltage = {1650, 2000},
8951 },
8952
8953 {
8954 .vendor = "Macronix",
8955 .name = "MX25U8032E",
8956 .bustype = BUS_SPI,
8957 .manufacture_id = MACRONIX_ID,
8958 .model_id = MACRONIX_MX25U8032E,
8959 .total_size = 1024,
8960 .page_size = 256,
8961 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8962 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8963 .tested = TEST_OK_PREW,
8964 .probe = probe_spi_rdid,
8965 .probe_timing = TIMING_ZERO,
8966 .block_erasers =
8967 {
8968 {
8969 .eraseblocks = { {4 * 1024, 256} },
8970 .block_erase = spi_block_erase_20,
8971 }, {
8972 .eraseblocks = { {32 * 1024, 32} },
8973 .block_erase = spi_block_erase_52,
8974 }, {
8975 .eraseblocks = { {64 * 1024, 16} },
8976 .block_erase = spi_block_erase_d8,
8977 }, {
8978 .eraseblocks = { {1024 * 1024, 1} },
8979 .block_erase = spi_block_erase_60,
8980 }, {
8981 .eraseblocks = { {1024 * 1024, 1} },
8982 .block_erase = spi_block_erase_c7,
8983 }
8984 },
8985 /* TODO: security register */
8986 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8987 .unlock = spi_disable_blockprotect_bp3_srwd,
8988 .write = spi_chip_write_256,
8989 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
8990 .voltage = {1650, 2000},
Nathan Rennie-Waldock5a7f9422018-08-10 15:35:23 +01008991 },
8992
8993 {
8994 .vendor = "Macronix",
Mark Panajotovic502a9132009-08-24 01:42:24 +00008995 .name = "MX29F001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008996 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008997 .manufacture_id = MACRONIX_ID,
8998 .model_id = MACRONIX_MX29F001B,
Mark Panajotovic502a9132009-08-24 01:42:24 +00008999 .total_size = 128,
9000 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009001 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9002 .tested = TEST_UNTESTED,
9003 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009004 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00009005 .block_erasers =
9006 {
9007 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00009008 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00009009 {8 * 1024, 1},
9010 {4 * 1024, 2},
9011 {8 * 1024, 2},
9012 {32 * 1024, 1},
9013 {64 * 1024, 1},
9014 },
Sean Nelson35727f72010-01-28 23:55:12 +00009015 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009016 }, {
9017 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009018 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009019 }
9020 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009021 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00009022 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009023 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00009024 },
9025
9026 {
9027 .vendor = "Macronix",
9028 .name = "MX29F001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009029 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009030 .manufacture_id = MACRONIX_ID,
9031 .model_id = MACRONIX_MX29F001T,
Mark Panajotovic502a9132009-08-24 01:42:24 +00009032 .total_size = 128,
9033 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009034 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stefan Tauner74c6ec62011-05-18 01:31:46 +00009035 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00009036 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009037 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00009038 .block_erasers =
9039 {
9040 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00009041 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00009042 {64 * 1024, 1},
9043 {32 * 1024, 1},
9044 {8 * 1024, 2},
9045 {4 * 1024, 2},
9046 {8 * 1024, 1},
9047 },
Sean Nelson35727f72010-01-28 23:55:12 +00009048 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009049 }, {
9050 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009051 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009052 }
9053 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009054 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00009055 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009056 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00009057 },
9058
9059 {
9060 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00009061 .name = "MX29F002(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009062 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009063 .manufacture_id = MACRONIX_ID,
9064 .model_id = MACRONIX_MX29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009065 .total_size = 256,
9066 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009067 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009068 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00009069 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009070 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009071 .block_erasers =
9072 {
9073 {
9074 .eraseblocks = {
9075 {16 * 1024, 1},
9076 {8 * 1024, 2},
9077 {32 * 1024, 1},
9078 {64 * 1024, 3},
9079 },
Sean Nelson35727f72010-01-28 23:55:12 +00009080 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009081 }, {
9082 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009083 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009084 },
9085 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009086 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009087 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009088 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009089 },
9090
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009091 {
9092 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00009093 .name = "MX29F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009094 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009095 .manufacture_id = MACRONIX_ID,
9096 .model_id = MACRONIX_MX29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009097 .total_size = 256,
9098 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009099 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00009100 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00009101 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009102 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009103 .block_erasers =
9104 {
9105 {
9106 .eraseblocks = {
9107 {64 * 1024, 3},
9108 {32 * 1024, 1},
9109 {8 * 1024, 2},
9110 {16 * 1024, 1},
9111 },
Sean Nelson35727f72010-01-28 23:55:12 +00009112 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009113 }, {
9114 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009115 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009116 },
9117 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009118 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009119 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009120 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009121 },
9122
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009123 {
9124 .vendor = "Macronix",
Daniele Forsi6a18a932014-07-13 14:53:45 +00009125 .name = "MX29F022(N)B",
9126 .bustype = BUS_PARALLEL,
9127 .manufacture_id = MACRONIX_ID,
9128 .model_id = MACRONIX_MX29F022B,
9129 .total_size = 256,
9130 .page_size = 0, /* unused */
9131 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9132 .tested = TEST_UNTESTED,
9133 .probe = probe_jedec,
9134 .probe_timing = TIMING_ZERO,
9135 .block_erasers =
9136 {
9137 {
9138 .eraseblocks = {
9139 {16 * 1024, 1},
9140 {8 * 1024, 2},
9141 {32 * 1024, 1},
9142 {64 * 1024, 3},
9143 },
9144 .block_erase = erase_sector_jedec,
9145 }, {
9146 .eraseblocks = { {256 * 1024, 1} },
9147 .block_erase = erase_chip_block_jedec,
9148 }
9149 },
9150 .write = write_jedec_1,
9151 .read = read_memmapped,
9152 .voltage = {4500, 5500},
9153 },
9154
9155 {
9156 .vendor = "Macronix",
9157 .name = "MX29F022(N)T",
9158 .bustype = BUS_PARALLEL,
9159 .manufacture_id = MACRONIX_ID,
9160 .model_id = MACRONIX_MX29F022T,
9161 .total_size = 256,
9162 .page_size = 0, /* unused */
9163 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9164 .tested = TEST_OK_PREW,
9165 .probe = probe_jedec,
9166 .probe_timing = TIMING_ZERO,
9167 .block_erasers =
9168 {
9169 {
9170 .eraseblocks = {
9171 {64 * 1024, 3},
9172 {32 * 1024, 1},
9173 {8 * 1024, 2},
9174 {16 * 1024, 1},
9175 },
9176 .block_erase = erase_sector_jedec,
9177 }, {
9178 .eraseblocks = { {256 * 1024, 1} },
9179 .block_erase = erase_chip_block_jedec,
9180 }
9181 },
9182 .write = write_jedec_1,
9183 .read = read_memmapped,
9184 .voltage = {4500, 5500},
9185 },
9186
9187 {
9188 .vendor = "Macronix",
Joshua Roysf1324e02010-09-16 00:51:51 +00009189 .name = "MX29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009190 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00009191 .manufacture_id = MACRONIX_ID,
9192 .model_id = MACRONIX_MX29F040,
9193 .total_size = 512,
9194 .page_size = 64 * 1024,
9195 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9196 .tested = TEST_UNTESTED,
9197 .probe = probe_jedec,
9198 .probe_timing = TIMING_ZERO,
9199 .block_erasers =
9200 {
9201 {
9202 .eraseblocks = { {64 * 1024, 8} },
9203 .block_erase = erase_sector_jedec,
9204 }, {
9205 .eraseblocks = { {512 * 1024, 1} },
9206 .block_erase = erase_chip_block_jedec,
9207 },
9208 },
9209 .write = write_jedec_1,
9210 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009211 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00009212 },
9213
9214 {
9215 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009216 .name = "MX29GL128F",
9217 .bustype = BUS_PARALLEL,
9218 .manufacture_id = MACRONIX_ID,
9219 .model_id = MACRONIX_MX29GL128F,
9220 .total_size = 16384,
9221 .page_size = 128 * 1024, /* actual page size is 16 */
9222 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9223 .tested = TEST_UNTESTED,
9224 .probe = probe_jedec_29gl,
9225 .probe_timing = TIMING_ZERO,
9226 .block_erasers =
9227 {
9228 {
9229 .eraseblocks = { {128 * 1024, 128} },
9230 .block_erase = erase_sector_jedec,
9231 }, {
9232 .eraseblocks = { {16 * 1024 * 1024, 1} },
9233 .block_erase = erase_chip_block_jedec,
9234 },
9235 },
9236 .write = write_jedec_1,
9237 .read = read_memmapped,
9238 .voltage = {2700, 3600},
9239 },
9240
9241 {
9242 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00009243 .name = "MX29GL320EB",
9244 .bustype = BUS_PARALLEL,
9245 .manufacture_id = MACRONIX_ID,
9246 .model_id = MACRONIX_MX29GL320EB,
9247 .total_size = 4096,
9248 .page_size = 128 * 1024, /* actual page size is 16 */
9249 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9250 .tested = TEST_UNTESTED,
9251 .probe = probe_jedec_29gl,
9252 .probe_timing = TIMING_ZERO,
9253 .block_erasers =
9254 {
9255 {
9256 .eraseblocks = {
9257 {8 * 1024, 8},
9258 {64 * 1024, 63},
9259 },
9260 .block_erase = erase_sector_jedec,
9261 }, {
9262 .eraseblocks = { {4 * 1024 * 1024, 1} },
9263 .block_erase = erase_chip_block_jedec,
9264 },
9265 },
9266 .write = write_jedec_1,
9267 .read = read_memmapped,
9268 .voltage = {2700, 3600},
9269 },
9270
9271 {
9272 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009273 .name = "MX29GL320EH/L",
9274 .bustype = BUS_PARALLEL,
9275 .manufacture_id = MACRONIX_ID,
9276 .model_id = MACRONIX_MX29GL320EHL,
9277 .total_size = 4096,
9278 .page_size = 128 * 1024, /* actual page size is 16 */
9279 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9280 .tested = TEST_UNTESTED,
9281 .probe = probe_jedec_29gl,
9282 .probe_timing = TIMING_ZERO,
9283 .block_erasers =
9284 {
9285 {
9286 .eraseblocks = { {64 * 1024, 64} },
9287 .block_erase = erase_sector_jedec,
9288 }, {
9289 .eraseblocks = { {4 * 1024 * 1024, 1} },
9290 .block_erase = erase_chip_block_jedec,
9291 },
9292 },
9293 .write = write_jedec_1,
9294 .read = read_memmapped,
9295 .voltage = {2700, 3600},
9296 },
9297
9298 {
9299 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00009300 .name = "MX29GL320ET",
9301 .bustype = BUS_PARALLEL,
9302 .manufacture_id = MACRONIX_ID,
9303 .model_id = MACRONIX_MX29GL320ET,
9304 .total_size = 4096,
9305 .page_size = 128 * 1024, /* actual page size is 16 */
9306 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9307 .tested = TEST_UNTESTED,
9308 .probe = probe_jedec_29gl,
9309 .probe_timing = TIMING_ZERO,
9310 .block_erasers =
9311 {
9312 {
9313 .eraseblocks = {
9314 {64 * 1024, 63},
9315 {8 * 1024, 8},
9316 },
9317 .block_erase = erase_sector_jedec,
9318 }, {
9319 .eraseblocks = { {4 * 1024 * 1024, 1} },
9320 .block_erase = erase_chip_block_jedec,
9321 },
9322 },
9323 .write = write_jedec_1,
9324 .read = read_memmapped,
9325 .voltage = {2700, 3600},
9326 },
9327
9328 {
9329 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00009330 .name = "MX29GL640EB",
9331 .bustype = BUS_PARALLEL,
9332 .manufacture_id = MACRONIX_ID,
9333 .model_id = MACRONIX_MX29GL640EB,
9334 .total_size = 8192,
9335 .page_size = 128 * 1024, /* actual page size is 16 */
9336 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9337 .tested = TEST_UNTESTED,
9338 .probe = probe_jedec_29gl,
9339 .probe_timing = TIMING_ZERO,
9340 .block_erasers =
9341 {
9342 {
9343 .eraseblocks = {
9344 {8 * 1024, 8},
9345 {64 * 1024, 127},
9346 },
9347 .block_erase = erase_sector_jedec,
9348 }, {
9349 .eraseblocks = { {8 * 1024 * 1024, 1} },
9350 .block_erase = erase_chip_block_jedec,
9351 },
9352 },
9353 .write = write_jedec_1,
9354 .read = read_memmapped,
9355 .voltage = {2700, 3600},
9356 },
9357
9358 {
9359 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009360 .name = "MX29GL640EH/L",
9361 .bustype = BUS_PARALLEL,
9362 .manufacture_id = MACRONIX_ID,
9363 .model_id = MACRONIX_MX29GL640EHL,
9364 .total_size = 8192,
9365 .page_size = 128 * 1024, /* actual page size is 16 */
9366 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9367 .tested = TEST_UNTESTED,
9368 .probe = probe_jedec_29gl,
9369 .probe_timing = TIMING_ZERO,
9370 .block_erasers =
9371 {
9372 {
9373 .eraseblocks = { {64 * 1024, 128} },
9374 .block_erase = erase_sector_jedec,
9375 }, {
9376 .eraseblocks = { {8 * 1024 * 1024, 1} },
9377 .block_erase = erase_chip_block_jedec,
9378 },
9379 },
9380 .write = write_jedec_1,
9381 .read = read_memmapped,
9382 .voltage = {2700, 3600},
9383 },
9384
9385 {
9386 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00009387 .name = "MX29GL640ET",
9388 .bustype = BUS_PARALLEL,
9389 .manufacture_id = MACRONIX_ID,
9390 .model_id = MACRONIX_MX29GL640ET,
9391 .total_size = 8192,
9392 .page_size = 128 * 1024, /* actual page size is 16 */
9393 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9394 .tested = TEST_UNTESTED,
9395 .probe = probe_jedec_29gl,
9396 .probe_timing = TIMING_ZERO,
9397 .block_erasers =
9398 {
9399 {
9400 .eraseblocks = {
9401 {64 * 1024, 127},
9402 {8 * 1024, 8},
9403 },
9404 .block_erase = erase_sector_jedec,
9405 }, {
9406 .eraseblocks = { {8 * 1024 * 1024, 1} },
9407 .block_erase = erase_chip_block_jedec,
9408 },
9409 },
9410 .write = write_jedec_1,
9411 .read = read_memmapped,
9412 .voltage = {2700, 3600},
9413 },
9414
9415 {
9416 .vendor = "Macronix",
Carl-Daniel Hailfinger350a0c32009-07-24 13:59:27 +00009417 .name = "MX29LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009418 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009419 .manufacture_id = MACRONIX_ID,
9420 .model_id = MACRONIX_MX29LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009421 .total_size = 512,
9422 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009423 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9424 .tested = TEST_UNTESTED,
9425 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009426 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00009427 .block_erasers =
9428 {
9429 {
Stefan Tauner6697f712014-08-06 15:09:15 +00009430 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +00009431 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009432 }, {
9433 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009434 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009435 },
9436 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009437 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009438 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009439 .voltage = {2700, 3600},
Carl-Daniel Hailfinger7de86392008-12-10 10:32:05 +00009440 },
9441
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009442 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009443 .vendor = "Macronix",
Hemanth Guruva Reddya136d422019-07-11 11:08:27 +02009444 .name = "MX66L51235F/MX25L51245G",
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009445 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009446 .manufacture_id = MACRONIX_ID,
9447 .model_id = MACRONIX_MX66L51235F,
9448 .total_size = 65536,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009449 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009450 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9451 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009452 .tested = TEST_OK_PREW,
9453 .probe = probe_spi_rdid,
9454 .probe_timing = TIMING_ZERO,
9455 .block_erasers =
9456 {
9457 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009458 .eraseblocks = { {4 * 1024, 16384} },
9459 .block_erase = spi_block_erase_21,
9460 }, {
9461 .eraseblocks = { {4 * 1024, 16384} },
9462 .block_erase = spi_block_erase_20,
9463 }, {
9464 .eraseblocks = { {32 * 1024, 2048} },
9465 .block_erase = spi_block_erase_5c,
9466 }, {
9467 .eraseblocks = { {32 * 1024, 2048} },
9468 .block_erase = spi_block_erase_52,
9469 }, {
9470 .eraseblocks = { {64 * 1024, 1024} },
9471 .block_erase = spi_block_erase_dc,
9472 }, {
9473 .eraseblocks = { {64 * 1024, 1024} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009474 .block_erase = spi_block_erase_d8,
9475 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009476 .eraseblocks = { {64 * 1024 * 1024, 1} },
9477 .block_erase = spi_block_erase_60,
9478 }, {
9479 .eraseblocks = { {64 * 1024 * 1024, 1} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009480 .block_erase = spi_block_erase_c7,
9481 }
9482 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10009483 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
9484 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009485 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009486 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009487 .read = spi_chip_read, /* Fast read (0x0B) supported */
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009488 .voltage = {2700, 3600},
9489 },
9490
9491 /* The ST M25P05 is a bit of a problem. It has the same ID as the
9492 * ST M25P05-A in RES mode, but supports only 128 byte writes instead
9493 * of 256 byte writes. We rely heavily on the fact that probe_spi_res1
9494 * only is successful if RDID does not work.
9495 */
9496 {
9497 .vendor = "Micron/Numonyx/ST",
9498 .name = "M25P05",
9499 .bustype = BUS_SPI,
9500 .manufacture_id = 0, /* Not used. */
9501 .model_id = ST_M25P05_RES,
9502 .total_size = 64,
9503 .page_size = 256,
9504 .feature_bits = FEATURE_WRSR_WREN,
9505 .tested = TEST_UNTESTED,
9506 .probe = probe_spi_res1,
9507 .probe_timing = TIMING_ZERO,
9508 .block_erasers =
9509 {
9510 {
9511 .eraseblocks = { {32 * 1024, 2} },
9512 .block_erase = spi_block_erase_d8,
9513 }, {
9514 .eraseblocks = { {64 * 1024, 1} },
9515 .block_erase = spi_block_erase_c7,
9516 }
9517 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009518 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009519 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009520 .write = spi_chip_write_1, /* 128 */
9521 .read = spi_chip_read,
9522 .voltage = {2700, 3600},
9523 },
9524
9525 {
9526 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009527 .name = "M25P05-A",
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009528 .bustype = BUS_SPI,
9529 .manufacture_id = ST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009530 .model_id = ST_M25P05A,
9531 .total_size = 64,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009532 .page_size = 256,
9533 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +00009534 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009535 .probe = probe_spi_rdid,
9536 .probe_timing = TIMING_ZERO,
9537 .block_erasers =
9538 {
9539 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009540 .eraseblocks = { {32 * 1024, 2} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009541 .block_erase = spi_block_erase_d8,
9542 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009543 .eraseblocks = { {64 * 1024, 1} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009544 .block_erase = spi_block_erase_c7,
9545 }
9546 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009547 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009548 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009549 .write = spi_chip_write_256,
9550 .read = spi_chip_read,
9551 .voltage = {2700, 3600},
9552 },
9553
9554 /* The ST M25P10 has the same problem as the M25P05. */
9555 {
9556 .vendor = "Micron/Numonyx/ST",
9557 .name = "M25P10",
9558 .bustype = BUS_SPI,
9559 .manufacture_id = 0, /* Not used. */
9560 .model_id = ST_M25P10_RES,
9561 .total_size = 128,
9562 .page_size = 256,
9563 .feature_bits = FEATURE_WRSR_WREN,
9564 .tested = TEST_UNTESTED,
9565 .probe = probe_spi_res1,
9566 .probe_timing = TIMING_ZERO,
9567 .block_erasers =
9568 {
9569 {
9570 .eraseblocks = { {32 * 1024, 4} },
9571 .block_erase = spi_block_erase_d8,
9572 }, {
9573 .eraseblocks = { {128 * 1024, 1} },
9574 .block_erase = spi_block_erase_c7,
9575 }
9576 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009577 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009578 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009579 .write = spi_chip_write_1, /* 128 */
9580 .read = spi_chip_read,
9581 .voltage = {2700, 3600},
9582 },
9583
9584 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009585 .vendor = "Micron/Numonyx/ST",
9586 .name = "M25P10-A",
9587 .bustype = BUS_SPI,
9588 .manufacture_id = ST_ID,
9589 .model_id = ST_M25P10A,
9590 .total_size = 128,
9591 .page_size = 256,
9592 .feature_bits = FEATURE_WRSR_WREN,
9593 .tested = TEST_OK_PREW,
9594 .probe = probe_spi_rdid,
9595 .probe_timing = TIMING_ZERO,
9596 .block_erasers =
9597 {
9598 {
9599 .eraseblocks = { {32 * 1024, 4} },
9600 .block_erase = spi_block_erase_d8,
9601 }, {
9602 .eraseblocks = { {128 * 1024, 1} },
9603 .block_erase = spi_block_erase_c7,
9604 }
9605 },
9606 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
9607 .unlock = spi_disable_blockprotect_bp3_srwd,
9608 .write = spi_chip_write_256,
9609 .read = spi_chip_read,
9610 .voltage = {2700, 3600},
9611 },
9612
9613 {
9614 .vendor = "Micron/Numonyx/ST",
9615 .name = "M25P128",
9616 .bustype = BUS_SPI,
9617 .manufacture_id = ST_ID,
9618 .model_id = ST_M25P128,
9619 .total_size = 16384,
9620 .page_size = 256,
9621 .feature_bits = FEATURE_WRSR_WREN,
9622 .tested = TEST_OK_PREW,
9623 .probe = probe_spi_rdid,
9624 .probe_timing = TIMING_ZERO,
9625 .block_erasers =
9626 {
9627 {
9628 .eraseblocks = { {256 * 1024, 64} },
9629 .block_erase = spi_block_erase_d8,
9630 }, {
9631 .eraseblocks = { {16 * 1024 * 1024, 1} },
9632 .block_erase = spi_block_erase_c7,
9633 }
9634 },
9635 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
9636 .unlock = spi_disable_blockprotect_bp3_srwd,
9637 .write = spi_chip_write_256,
9638 .read = spi_chip_read,
9639 .voltage = {2700, 3600},
9640 },
9641
9642 {
9643 .vendor = "Micron/Numonyx/ST",
9644 .name = "M25P16",
9645 .bustype = BUS_SPI,
9646 .manufacture_id = ST_ID,
9647 .model_id = ST_M25P16,
9648 .total_size = 2048,
9649 .page_size = 256,
9650 .feature_bits = FEATURE_WRSR_WREN,
9651 .tested = TEST_OK_PREW,
9652 .probe = probe_spi_rdid,
9653 .probe_timing = TIMING_ZERO,
9654 .block_erasers =
9655 {
9656 {
9657 .eraseblocks = { {64 * 1024, 32} },
9658 .block_erase = spi_block_erase_d8,
9659 }, {
9660 .eraseblocks = { {2 * 1024 * 1024, 1} },
9661 .block_erase = spi_block_erase_c7,
9662 }
9663 },
9664 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
9665 .unlock = spi_disable_blockprotect_bp3_srwd,
9666 .write = spi_chip_write_256,
9667 .read = spi_chip_read,
9668 .voltage = {2700, 3600},
9669 },
9670
9671 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009672 .vendor = "Micron/Numonyx/ST", /* Numonyx */
9673 .name = "M25P20",
9674 .bustype = BUS_SPI,
9675 .manufacture_id = ST_ID,
9676 .model_id = ST_M25P20,
9677 .total_size = 256,
9678 .page_size = 256,
9679 .feature_bits = FEATURE_WRSR_WREN,
9680 .tested = TEST_UNTESTED,
9681 .probe = probe_spi_rdid,
9682 .probe_timing = TIMING_ZERO,
9683 .block_erasers =
9684 {
9685 {
9686 .eraseblocks = { {64 * 1024, 4} },
9687 .block_erase = spi_block_erase_d8,
9688 }, {
9689 .eraseblocks = { {256 * 1024, 1} },
9690 .block_erase = spi_block_erase_c7,
9691 }
9692 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009693 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009694 .unlock = spi_disable_blockprotect,
9695 .write = spi_chip_write_256,
9696 .read = spi_chip_read, /* Fast read (0x0B) supported */
9697 .voltage = {2700, 3600},
9698 },
9699
9700 {
9701 .vendor = "Micron/Numonyx/ST",
9702 .name = "M25P20-old",
9703 .bustype = BUS_SPI,
9704 .manufacture_id = 0, /* Not used. */
9705 .model_id = ST_M25P20_RES,
9706 .total_size = 256,
9707 .page_size = 256,
9708 .feature_bits = FEATURE_WRSR_WREN,
9709 .tested = TEST_OK_PREW,
9710 .probe = probe_spi_res1,
9711 .probe_timing = TIMING_ZERO,
9712 .block_erasers =
9713 {
9714 {
9715 .eraseblocks = { {64 * 1024, 4} },
9716 .block_erase = spi_block_erase_d8,
9717 }, {
9718 .eraseblocks = { {256 * 1024, 1} },
9719 .block_erase = spi_block_erase_c7,
9720 }
9721 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009722 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009723 .unlock = spi_disable_blockprotect,
9724 .write = spi_chip_write_256,
9725 .read = spi_chip_read, /* Fast read (0x0B) supported */
9726 .voltage = {2700, 3600},
9727 },
9728
9729 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009730 .vendor = "Micron/Numonyx/ST",
9731 .name = "M25P32",
9732 .bustype = BUS_SPI,
9733 .manufacture_id = ST_ID,
9734 .model_id = ST_M25P32,
9735 .total_size = 4096,
9736 .page_size = 256,
9737 .feature_bits = FEATURE_WRSR_WREN,
9738 .tested = TEST_OK_PREW,
9739 .probe = probe_spi_rdid,
9740 .probe_timing = TIMING_ZERO,
9741 .block_erasers =
9742 {
9743 {
9744 .eraseblocks = { {64 * 1024, 64} },
9745 .block_erase = spi_block_erase_d8,
9746 }, {
9747 .eraseblocks = { {4 * 1024 * 1024, 1} },
9748 .block_erase = spi_block_erase_c7,
9749 }
9750 },
9751 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
9752 .unlock = spi_disable_blockprotect_bp3_srwd,
9753 .write = spi_chip_write_256,
9754 .read = spi_chip_read,
9755 .voltage = {2700, 3600},
9756 },
9757
9758 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009759 .vendor = "Micron/Numonyx/ST", /* Numonyx */
9760 .name = "M25P40",
9761 .bustype = BUS_SPI,
9762 .manufacture_id = ST_ID,
9763 .model_id = ST_M25P40,
9764 .total_size = 512,
9765 .page_size = 256,
9766 .feature_bits = FEATURE_WRSR_WREN,
9767 .tested = TEST_OK_PREW,
9768 .probe = probe_spi_rdid,
9769 .probe_timing = TIMING_ZERO,
9770 .block_erasers =
9771 {
9772 {
9773 .eraseblocks = { {64 * 1024, 8} },
9774 .block_erase = spi_block_erase_d8,
9775 }, {
9776 .eraseblocks = { {512 * 1024, 1} },
9777 .block_erase = spi_block_erase_c7,
9778 }
9779 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009780 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009781 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009782 .write = spi_chip_write_256,
9783 .read = spi_chip_read,
9784 .voltage = {2700, 3600},
9785 },
9786
9787 {
9788 .vendor = "Micron/Numonyx/ST",
9789 .name = "M25P40-old",
9790 .bustype = BUS_SPI,
9791 .manufacture_id = 0, /* Not used. */
9792 .model_id = ST_M25P40_RES,
9793 .total_size = 512,
9794 .page_size = 256,
9795 .feature_bits = FEATURE_WRSR_WREN,
9796 .tested = TEST_UNTESTED,
9797 .probe = probe_spi_res1,
9798 .probe_timing = TIMING_ZERO,
9799 .block_erasers =
9800 {
9801 {
9802 .eraseblocks = { {64 * 1024, 8} },
9803 .block_erase = spi_block_erase_d8,
9804 }, {
9805 .eraseblocks = { {512 * 1024, 1} },
9806 .block_erase = spi_block_erase_c7,
9807 }
9808 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009809 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009810 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009811 .write = spi_chip_write_256,
9812 .read = spi_chip_read,
9813 },
9814
9815 {
9816 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009817 .name = "M25P64",
9818 .bustype = BUS_SPI,
9819 .manufacture_id = ST_ID,
9820 .model_id = ST_M25P64,
9821 .total_size = 8192,
9822 .page_size = 256,
9823 .feature_bits = FEATURE_WRSR_WREN,
9824 .tested = TEST_OK_PREW,
9825 .probe = probe_spi_rdid,
9826 .probe_timing = TIMING_ZERO,
9827 .block_erasers =
9828 {
9829 {
9830 .eraseblocks = { {64 * 1024, 128} },
9831 .block_erase = spi_block_erase_d8,
9832 }, {
9833 .eraseblocks = { {8 * 1024 * 1024, 1} },
9834 .block_erase = spi_block_erase_c7,
9835 }
9836 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009837 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009838 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009839 .write = spi_chip_write_256,
9840 .read = spi_chip_read,
9841 .voltage = {2700, 3600},
9842 },
9843
9844 {
9845 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009846 .name = "M25P80",
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009847 .bustype = BUS_SPI,
9848 .manufacture_id = ST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009849 .model_id = ST_M25P80,
9850 .total_size = 1024,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009851 .page_size = 256,
9852 .feature_bits = FEATURE_WRSR_WREN,
9853 .tested = TEST_OK_PREW,
9854 .probe = probe_spi_rdid,
9855 .probe_timing = TIMING_ZERO,
9856 .block_erasers =
9857 {
9858 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009859 .eraseblocks = { {64 * 1024, 16} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009860 .block_erase = spi_block_erase_d8,
9861 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009862 .eraseblocks = { {1024 * 1024, 1} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009863 .block_erase = spi_block_erase_c7,
9864 }
9865 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009866 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009867 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009868 .write = spi_chip_write_256,
9869 .read = spi_chip_read,
9870 .voltage = {2700, 3600},
9871 },
9872
9873 {
9874 .vendor = "Micron/Numonyx/ST",
9875 .name = "M25PE10",
9876 .bustype = BUS_SPI,
9877 .manufacture_id = ST_ID,
9878 .model_id = ST_M25PE10,
9879 .total_size = 128,
9880 .page_size = 256,
9881 .feature_bits = FEATURE_WRSR_WREN,
9882 .tested = TEST_UNTESTED,
9883 .probe = probe_spi_rdid,
9884 .probe_timing = TIMING_ZERO,
9885 .block_erasers =
9886 {
9887 {
9888 .eraseblocks = { {4 * 1024, 32} },
9889 .block_erase = spi_block_erase_20,
9890 }, {
9891 .eraseblocks = { {64 * 1024, 2} },
9892 .block_erase = spi_block_erase_d8,
9893 }, {
9894 .eraseblocks = { {128 * 1024, 1} },
9895 .block_erase = spi_block_erase_c7,
9896 }
9897 },
9898 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
9899 .unlock = spi_disable_blockprotect,
9900 .write = spi_chip_write_256,
9901 .read = spi_chip_read,
9902 .voltage = {2700, 3600},
9903 },
9904
9905 {
9906 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009907 .name = "M25PE16",
9908 .bustype = BUS_SPI,
9909 .manufacture_id = ST_ID,
9910 .model_id = ST_M25PE16,
9911 .total_size = 2048,
9912 .page_size = 256,
9913 .feature_bits = FEATURE_WRSR_WREN,
9914 .tested = TEST_UNTESTED,
9915 .probe = probe_spi_rdid,
9916 .probe_timing = TIMING_ZERO,
9917 .block_erasers =
9918 {
9919 {
9920 .eraseblocks = { {4 * 1024, 512} },
9921 .block_erase = spi_block_erase_20,
9922 }, {
9923 .eraseblocks = { {64 * 1024, 32} },
9924 .block_erase = spi_block_erase_d8,
9925 }, {
9926 .eraseblocks = { {2 * 1024 * 1024, 1} },
9927 .block_erase = spi_block_erase_c7,
9928 }
9929 },
9930 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
9931 .unlock = spi_disable_blockprotect,
9932 .write = spi_chip_write_256,
9933 .read = spi_chip_read,
9934 .voltage = {2700, 3600},
9935 },
9936
9937 {
9938 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009939 .name = "M25PE20",
9940 .bustype = BUS_SPI,
9941 .manufacture_id = ST_ID,
9942 .model_id = ST_M25PE20,
9943 .total_size = 256,
9944 .page_size = 256,
9945 .feature_bits = FEATURE_WRSR_WREN,
9946 .tested = TEST_UNTESTED,
9947 .probe = probe_spi_rdid,
9948 .probe_timing = TIMING_ZERO,
9949 .block_erasers =
9950 {
9951 {
9952 .eraseblocks = { {4 * 1024, 64} },
9953 .block_erase = spi_block_erase_20,
9954 }, {
9955 .eraseblocks = { {64 * 1024, 4} },
9956 .block_erase = spi_block_erase_d8,
9957 }, {
9958 .eraseblocks = { {256 * 1024, 1} },
9959 .block_erase = spi_block_erase_c7,
9960 }
9961 },
9962 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
9963 .unlock = spi_disable_blockprotect,
9964 .write = spi_chip_write_256,
9965 .read = spi_chip_read,
9966 .voltage = {2700, 3600},
9967 },
9968
9969 {
9970 .vendor = "Micron/Numonyx/ST",
9971 .name = "M25PE40",
9972 .bustype = BUS_SPI,
9973 .manufacture_id = ST_ID,
9974 .model_id = ST_M25PE40,
9975 .total_size = 512,
9976 .page_size = 256,
9977 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +00009978 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +00009979 .probe = probe_spi_rdid,
9980 .probe_timing = TIMING_ZERO,
9981 .block_erasers =
9982 {
9983 {
9984 .eraseblocks = { {4 * 1024, 128} },
9985 .block_erase = spi_block_erase_20,
9986 }, {
9987 .eraseblocks = { {64 * 1024, 8} },
9988 .block_erase = spi_block_erase_d8,
9989 }, {
9990 .eraseblocks = { {512 * 1024, 1} },
9991 .block_erase = spi_block_erase_c7,
9992 }
9993 },
9994 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
9995 .unlock = spi_disable_blockprotect,
9996 .write = spi_chip_write_256,
9997 .read = spi_chip_read,
9998 .voltage = {2700, 3600},
9999 },
10000
10001 {
10002 .vendor = "Micron/Numonyx/ST",
10003 .name = "M25PE80",
10004 .bustype = BUS_SPI,
10005 .manufacture_id = ST_ID,
10006 .model_id = ST_M25PE80,
10007 .total_size = 1024,
10008 .page_size = 256,
10009 .feature_bits = FEATURE_WRSR_WREN,
10010 .tested = TEST_OK_PREW,
10011 .probe = probe_spi_rdid,
10012 .probe_timing = TIMING_ZERO,
10013 .block_erasers =
10014 {
10015 {
10016 .eraseblocks = { {4 * 1024, 256} },
10017 .block_erase = spi_block_erase_20,
10018 }, {
10019 .eraseblocks = { {64 * 1024, 16} },
10020 .block_erase = spi_block_erase_d8,
10021 }, {
10022 .eraseblocks = { {1024 * 1024, 1} },
10023 .block_erase = spi_block_erase_c7,
10024 }
10025 },
10026 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10027 .unlock = spi_disable_blockprotect,
10028 .write = spi_chip_write_256,
10029 .read = spi_chip_read,
10030 .voltage = {2700, 3600},
10031 },
10032
10033 {
10034 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010035 .name = "M25PX16",
10036 .bustype = BUS_SPI,
10037 .manufacture_id = ST_ID,
10038 .model_id = ST_M25PX16,
10039 .total_size = 2048,
10040 .page_size = 256,
10041 /* OTP: 64B total; read 0x4B; write 0x42 */
10042 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10043 .tested = TEST_OK_PREW,
10044 .probe = probe_spi_rdid,
10045 .probe_timing = TIMING_ZERO,
10046 .block_erasers =
10047 {
10048 {
10049 .eraseblocks = { { 4 * 1024, 512 } },
10050 .block_erase = spi_block_erase_20,
10051 }, {
10052 .eraseblocks = { {64 * 1024, 32} },
10053 .block_erase = spi_block_erase_d8,
10054 }, {
10055 .eraseblocks = { {2 * 1024 * 1024, 1} },
10056 .block_erase = spi_block_erase_c7,
10057 }
10058 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010059 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010060 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
10061 .write = spi_chip_write_256,
10062 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000010063 .voltage = {2300, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010064 },
10065
10066 {
10067 .vendor = "Micron/Numonyx/ST",
10068 .name = "M25PX32",
10069 .bustype = BUS_SPI,
10070 .manufacture_id = ST_ID,
10071 .model_id = ST_M25PX32,
10072 .total_size = 4096,
10073 .page_size = 256,
10074 /* OTP: 64B total; read 0x4B; write 0x42 */
10075 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10076 .tested = TEST_OK_PRE,
10077 .probe = probe_spi_rdid,
10078 .probe_timing = TIMING_ZERO,
10079 .block_erasers =
10080 {
10081 {
10082 .eraseblocks = { { 4 * 1024, 1024 } },
10083 .block_erase = spi_block_erase_20,
10084 }, {
10085 .eraseblocks = { {64 * 1024, 64} },
10086 .block_erase = spi_block_erase_d8,
10087 }, {
10088 .eraseblocks = { {4 * 1024 * 1024, 1} },
10089 .block_erase = spi_block_erase_c7,
10090 }
10091 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010092 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010093 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
10094 .write = spi_chip_write_256,
10095 .read = spi_chip_read,
10096 .voltage = {2700, 3600},
10097 },
10098
10099 {
10100 .vendor = "Micron/Numonyx/ST",
10101 .name = "M25PX64",
10102 .bustype = BUS_SPI,
10103 .manufacture_id = ST_ID,
10104 .model_id = ST_M25PX64,
10105 .total_size = 8192,
10106 .page_size = 256,
10107 /* OTP: 64B total; read 0x4B; write 0x42 */
10108 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000010109 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010110 .probe = probe_spi_rdid,
10111 .probe_timing = TIMING_ZERO,
10112 .block_erasers =
10113 {
10114 {
10115 .eraseblocks = { { 4 * 1024, 2048 } },
10116 .block_erase = spi_block_erase_20,
10117 }, {
10118 .eraseblocks = { {64 * 1024, 128} },
10119 .block_erase = spi_block_erase_d8,
10120 }, {
10121 .eraseblocks = { {8 * 1024 * 1024, 1} },
10122 .block_erase = spi_block_erase_c7,
10123 }
10124 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010125 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010126 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
10127 .write = spi_chip_write_256,
10128 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000010129 .voltage = {2700, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010130 },
10131
10132 {
10133 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010134 .name = "M25PX80",
10135 .bustype = BUS_SPI,
10136 .manufacture_id = ST_ID,
10137 .model_id = ST_M25PX80,
10138 .total_size = 1024,
10139 .page_size = 256,
10140 /* OTP: 64B total; read 0x4B, write 0x42 */
10141 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10142 .tested = TEST_OK_PREW,
10143 .probe = probe_spi_rdid,
10144 .probe_timing = TIMING_ZERO,
10145 .block_erasers =
10146 {
10147 {
10148 .eraseblocks = { { 4 * 1024, 256 } },
10149 .block_erase = spi_block_erase_20,
10150 }, {
10151 .eraseblocks = { {64 * 1024, 16} },
10152 .block_erase = spi_block_erase_d8,
10153 }, {
10154 .eraseblocks = { {1024 * 1024, 1} },
10155 .block_erase = spi_block_erase_c7,
10156 }
10157 },
10158 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
10159 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
10160 .write = spi_chip_write_256,
10161 .read = spi_chip_read,
10162 .voltage = {2700, 3600},
10163 },
10164
10165 {
10166 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010167 .name = "M45PE10",
10168 .bustype = BUS_SPI,
10169 .manufacture_id = ST_ID,
10170 .model_id = ST_M45PE10,
10171 .total_size = 128,
10172 .page_size = 256,
10173 .tested = TEST_UNTESTED,
10174 .probe = probe_spi_rdid,
10175 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100010176 .block_erasers =
10177 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010178 {
10179 .eraseblocks = { {256, 512} },
10180 .block_erase = spi_block_erase_db,
10181 }, {
10182 .eraseblocks = { {64 * 1024, 2} },
10183 .block_erase = spi_block_erase_d8,
10184 }
10185 },
10186 .printlock = spi_prettyprint_status_register_default_welwip,
10187 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
10188 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
10189 .read = spi_chip_read, /* Fast read (0x0B) supported */
10190 .voltage = {2700, 3600},
10191 },
10192
10193 {
10194 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010195 .name = "M45PE16",
10196 .bustype = BUS_SPI,
10197 .manufacture_id = ST_ID,
10198 .model_id = ST_M45PE16,
10199 .total_size = 2048,
10200 .page_size = 256,
10201 .tested = TEST_UNTESTED,
10202 .probe = probe_spi_rdid,
10203 .probe_timing = TIMING_ZERO,
10204 .block_erasers =
10205 {
10206 {
10207 .eraseblocks = { {256, 8192} },
10208 .block_erase = spi_block_erase_db,
10209 }, {
10210 .eraseblocks = { {64 * 1024, 32} },
10211 .block_erase = spi_block_erase_d8,
10212 }
10213 },
10214 .printlock = spi_prettyprint_status_register_default_welwip,
10215 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
10216 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
10217 .read = spi_chip_read, /* Fast read (0x0B) supported */
10218 .voltage = {2700, 3600},
10219 },
10220
10221 {
10222 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010223 .name = "M45PE20",
10224 .bustype = BUS_SPI,
10225 .manufacture_id = ST_ID,
10226 .model_id = ST_M45PE20,
10227 .total_size = 256,
10228 .page_size = 256,
10229 .tested = TEST_UNTESTED,
10230 .probe = probe_spi_rdid,
10231 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100010232 .block_erasers =
10233 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010234 {
10235 .eraseblocks = { {256, 1024} },
10236 .block_erase = spi_block_erase_db,
10237 }, {
10238 .eraseblocks = { {64 * 1024, 4} },
10239 .block_erase = spi_block_erase_d8,
10240 }
10241 },
10242 .printlock = spi_prettyprint_status_register_default_welwip,
10243 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
10244 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
10245 .read = spi_chip_read, /* Fast read (0x0B) supported */
10246 .voltage = {2700, 3600},
10247 },
10248
10249 {
10250 .vendor = "Micron/Numonyx/ST",
10251 .name = "M45PE40",
10252 .bustype = BUS_SPI,
10253 .manufacture_id = ST_ID,
10254 .model_id = ST_M45PE40,
10255 .total_size = 512,
10256 .page_size = 256,
10257 .tested = TEST_UNTESTED,
10258 .probe = probe_spi_rdid,
10259 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100010260 .block_erasers =
10261 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010262 {
10263 .eraseblocks = { {256, 2048} },
10264 .block_erase = spi_block_erase_db,
10265 }, {
10266 .eraseblocks = { {64 * 1024, 8} },
10267 .block_erase = spi_block_erase_d8,
10268 }
10269 },
10270 .printlock = spi_prettyprint_status_register_default_welwip,
10271 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
Stefan Tauner23e10b82016-01-23 16:16:49 +000010272 .write = spi_chip_write_256, /* Page write supported (similar to PP but allows 0->1 changes) */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010273 .read = spi_chip_read, /* Fast read (0x0B) supported */
10274 .voltage = {2700, 3600},
10275 },
10276
10277 {
10278 .vendor = "Micron/Numonyx/ST",
10279 .name = "M45PE80",
10280 .bustype = BUS_SPI,
10281 .manufacture_id = ST_ID,
10282 .model_id = ST_M45PE80,
10283 .total_size = 1024,
10284 .page_size = 256,
10285 .tested = TEST_UNTESTED,
10286 .probe = probe_spi_rdid,
10287 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100010288 .block_erasers =
10289 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010290 {
10291 .eraseblocks = { {256, 4096} },
10292 .block_erase = spi_block_erase_db,
10293 }, {
10294 .eraseblocks = { {64 * 1024, 16} },
10295 .block_erase = spi_block_erase_d8,
10296 }
10297 },
10298 .printlock = spi_prettyprint_status_register_default_welwip,
10299 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
10300 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
10301 .read = spi_chip_read, /* Fast read (0x0B) supported */
10302 .voltage = {2700, 3600},
10303 },
10304
10305 {
10306 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010307 .name = "N25Q016",
10308 .bustype = BUS_SPI,
10309 .manufacture_id = ST_ID,
10310 .model_id = ST_N25Q016__1E,
10311 .total_size = 2048,
10312 .page_size = 256,
10313 /* supports SFDP */
10314 /* OTP: 64B total; read 0x4B, write 0x42 */
10315 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10316 .tested = TEST_UNTESTED,
10317 .probe = probe_spi_rdid,
10318 .probe_timing = TIMING_ZERO,
10319 .block_erasers =
10320 {
10321 {
10322 .eraseblocks = { {4 * 1024, 512} },
10323 .block_erase = spi_block_erase_20,
10324 }, {
10325 .eraseblocks = { {32 * 1024, 64} },
10326 .block_erase = spi_block_erase_52,
10327 }, {
10328 .eraseblocks = { {64 * 1024, 32} },
10329 .block_erase = spi_block_erase_d8,
10330 }, {
10331 .eraseblocks = { {2 * 1024 * 1024, 1} },
10332 .block_erase = spi_block_erase_c7,
10333 }
10334 },
10335 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10336 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10337 .write = spi_chip_write_256, /* Multi I/O supported */
10338 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10339 .voltage = {1700, 2000},
10340 },
10341
10342 {
10343 .vendor = "Micron/Numonyx/ST",
10344 .name = "N25Q032..1E",
10345 .bustype = BUS_SPI,
10346 .manufacture_id = ST_ID,
10347 .model_id = ST_N25Q032__1E,
10348 .total_size = 4096,
10349 .page_size = 256,
10350 /* supports SFDP */
10351 /* OTP: 64B total; read 0x4B, write 0x42 */
10352 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10353 .tested = TEST_UNTESTED,
10354 .probe = probe_spi_rdid,
10355 .probe_timing = TIMING_ZERO,
10356 .block_erasers =
10357 {
10358 {
10359 .eraseblocks = { {4 * 1024, 1024} },
10360 .block_erase = spi_block_erase_20,
10361 }, {
10362 .eraseblocks = { {64 * 1024, 64} },
10363 .block_erase = spi_block_erase_d8,
10364 }, {
10365 .eraseblocks = { {4 * 1024 * 1024, 1} },
10366 .block_erase = spi_block_erase_c7,
10367 }
10368 },
10369 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10370 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10371 .write = spi_chip_write_256, /* Multi I/O supported */
10372 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10373 .voltage = {1700, 2000},
10374 },
10375
10376 {
10377 .vendor = "Micron/Numonyx/ST",
10378 .name = "N25Q032..3E",
10379 .bustype = BUS_SPI,
10380 .manufacture_id = ST_ID,
10381 .model_id = ST_N25Q032__3E,
10382 .total_size = 4096,
10383 .page_size = 256,
10384 /* supports SFDP */
10385 /* OTP: 64B total; read 0x4B, write 0x42 */
10386 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10387 .tested = TEST_OK_PREW,
10388 .probe = probe_spi_rdid,
10389 .probe_timing = TIMING_ZERO,
10390 .block_erasers =
10391 {
10392 {
10393 .eraseblocks = { {4 * 1024, 1024} },
10394 .block_erase = spi_block_erase_20,
10395 }, {
10396 .eraseblocks = { {64 * 1024, 64} },
10397 .block_erase = spi_block_erase_d8,
10398 }, {
10399 .eraseblocks = { {4 * 1024 * 1024, 1} },
10400 .block_erase = spi_block_erase_c7,
10401 }
10402 },
10403 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10404 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10405 .write = spi_chip_write_256, /* Multi I/O supported */
10406 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10407 .voltage = {2700, 3600},
10408 },
10409
10410 {
10411 .vendor = "Micron/Numonyx/ST",
10412 .name = "N25Q064..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
10413 .bustype = BUS_SPI,
10414 .manufacture_id = ST_ID,
10415 .model_id = ST_N25Q064__1E,
10416 .total_size = 8192,
10417 .page_size = 256,
10418 /* supports SFDP */
10419 /* OTP: 64B total; read 0x4B, write 0x42 */
10420 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000010421 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010422 .probe = probe_spi_rdid,
10423 .probe_timing = TIMING_ZERO,
10424 .block_erasers =
10425 {
10426 {
10427 .eraseblocks = { {4 * 1024, 2048 } },
10428 .block_erase = spi_block_erase_20,
10429 }, {
10430 .eraseblocks = { {64 * 1024, 128} },
10431 .block_erase = spi_block_erase_d8,
10432 }, {
10433 .eraseblocks = { {8 * 1024 * 1024, 1} },
10434 .block_erase = spi_block_erase_c7,
10435 }
10436 },
10437 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10438 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10439 .write = spi_chip_write_256, /* Multi I/O supported */
10440 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10441 .voltage = {1700, 2000},
10442 },
10443
10444 {
10445 .vendor = "Micron/Numonyx/ST",
10446 .name = "N25Q064..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
10447 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100010448 .manufacture_id = ST_ID,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010449 .model_id = ST_N25Q064__3E,
10450 .total_size = 8192,
10451 .page_size = 256,
10452 /* supports SFDP */
10453 /* OTP: 64B total; read 0x4B, write 0x42 */
10454 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10455 .tested = TEST_OK_PREW,
10456 .probe = probe_spi_rdid,
10457 .probe_timing = TIMING_ZERO,
10458 .block_erasers =
10459 {
10460 {
10461 .eraseblocks = { {4 * 1024, 2048 } },
10462 .block_erase = spi_block_erase_20,
10463 }, {
10464 .eraseblocks = { {64 * 1024, 128} },
10465 .block_erase = spi_block_erase_d8,
10466 }, {
10467 .eraseblocks = { {8 * 1024 * 1024, 1} },
10468 .block_erase = spi_block_erase_c7,
10469 }
10470 },
10471 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10472 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10473 .write = spi_chip_write_256, /* Multi I/O supported */
10474 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10475 .voltage = {2700, 3600},
10476 },
10477
10478 {
10479 .vendor = "Micron/Numonyx/ST",
10480 .name = "N25Q128..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
10481 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100010482 .manufacture_id = ST_ID,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010483 .model_id = ST_N25Q128__1E,
10484 .total_size = 16384,
10485 .page_size = 256,
10486 /* supports SFDP */
10487 /* OTP: 64B total; read 0x4B, write 0x42 */
10488 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000010489 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010490 .probe = probe_spi_rdid,
10491 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100010492 .block_erasers =
10493 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010494 {
10495 .eraseblocks = { {4 * 1024, 4096 } },
10496 .block_erase = spi_block_erase_20,
10497 }, {
10498 .eraseblocks = { {64 * 1024, 256} },
10499 .block_erase = spi_block_erase_d8,
10500 }, {
10501 .eraseblocks = { {16384 * 1024, 1} },
10502 .block_erase = spi_block_erase_c7,
10503 }
10504 },
10505 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10506 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10507 .write = spi_chip_write_256, /* Multi I/O supported */
10508 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10509 .voltage = {1700, 2000},
10510 },
10511
10512 {
10513 .vendor = "Micron/Numonyx/ST",
10514 .name = "N25Q128..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
10515 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100010516 .manufacture_id = ST_ID,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010517 .model_id = ST_N25Q128__3E,
10518 .total_size = 16384,
10519 .page_size = 256,
10520 /* supports SFDP */
10521 /* OTP: 64B total; read 0x4B, write 0x42 */
10522 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10523 .tested = TEST_OK_PREW,
10524 .probe = probe_spi_rdid,
10525 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100010526 .block_erasers =
10527 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010528 {
10529 .eraseblocks = { {4 * 1024, 4096 } },
10530 .block_erase = spi_block_erase_20,
10531 }, {
10532 .eraseblocks = { {64 * 1024, 256} },
10533 .block_erase = spi_block_erase_d8,
10534 }, {
10535 .eraseblocks = { {16384 * 1024, 1} },
10536 .block_erase = spi_block_erase_c7,
10537 }
10538 },
10539 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10540 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10541 .write = spi_chip_write_256, /* Multi I/O supported */
10542 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10543 .voltage = {2700, 3600},
10544 },
10545
10546 {
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070010547 .vendor = "Micron/Numonyx/ST",
10548 .name = "N25Q256..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
10549 .bustype = BUS_SPI,
10550 .manufacture_id = ST_ID,
10551 .model_id = ST_N25Q256__3E,
10552 .total_size = 32768,
10553 .page_size = 256,
10554 /* supports SFDP */
10555 /* OTP: 64B total; read 0x4B, write 0x42 */
10556 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
10557 .tested = TEST_UNTESTED,
10558 .probe = probe_spi_rdid,
10559 .probe_timing = TIMING_ZERO,
10560 .block_erasers =
10561 {
10562 {
10563 .eraseblocks = { {4 * 1024, 8192} },
10564 .block_erase = spi_block_erase_21,
10565 }, {
10566 .eraseblocks = { {4 * 1024, 8192} },
10567 .block_erase = spi_block_erase_20,
10568 }, {
10569 .eraseblocks = { {64 * 1024, 512} },
10570 .block_erase = spi_block_erase_dc,
10571 }, {
10572 .eraseblocks = { {64 * 1024, 512} },
10573 .block_erase = spi_block_erase_d8,
10574 }, {
10575 .eraseblocks = { {32768 * 1024, 1} },
10576 .block_erase = spi_block_erase_c7,
10577 }
10578 },
10579 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10580 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10581 .write = spi_chip_write_256, /* Multi I/O supported */
10582 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10583 .voltage = {2700, 3600},
10584 },
10585
10586 {
10587 .vendor = "Micron/Numonyx/ST",
10588 .name = "N25Q512..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
10589 .bustype = BUS_SPI,
10590 .manufacture_id = ST_ID,
10591 .model_id = ST_N25Q512__3E,
10592 .total_size = 65536,
10593 .page_size = 256,
10594 /* supports SFDP */
10595 /* OTP: 64B total; read 0x4B, write 0x42 */
10596 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
10597 .tested = TEST_OK_PREW,
10598 .probe = probe_spi_rdid,
10599 .probe_timing = TIMING_ZERO,
10600 .block_erasers =
10601 {
10602 {
10603 .eraseblocks = { {4 * 1024, 16384} },
10604 .block_erase = spi_block_erase_21,
10605 }, {
10606 .eraseblocks = { {4 * 1024, 16384} },
10607 .block_erase = spi_block_erase_20,
10608 }, {
10609 .eraseblocks = { {64 * 1024, 1024} },
10610 .block_erase = spi_block_erase_dc,
10611 }, {
10612 .eraseblocks = { {64 * 1024, 1024} },
10613 .block_erase = spi_block_erase_d8,
10614 }, {
10615 .eraseblocks = { {65536 * 1024, 1} },
10616 .block_erase = spi_block_erase_c7,
10617 }
10618 },
10619 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10620 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10621 .write = spi_chip_write_256, /* Multi I/O supported */
10622 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10623 .voltage = {2700, 3600},
10624 },
10625
10626 {
Ed Swierk199ab392017-07-03 13:33:44 -070010627 .vendor = "Micron",
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070010628 .name = "MT25QL256", /* L = 3V, uniform 64KB/4KB blocks/sectors */
Ed Swierk199ab392017-07-03 13:33:44 -070010629 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100010630 .manufacture_id = ST_ID,
Ed Swierk199ab392017-07-03 13:33:44 -070010631 .model_id = ST_N25Q256__3E,
10632 .total_size = 32768,
10633 .page_size = 256,
10634 /* supports SFDP */
10635 /* OTP: 64B total; read 0x4B, write 0x42 */
Nico Huberaac81422017-11-10 22:54:13 +010010636 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
10637 .tested = TEST_UNTESTED,
Ed Swierk199ab392017-07-03 13:33:44 -070010638 .probe = probe_spi_rdid,
10639 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100010640 .block_erasers =
10641 {
Ed Swierk199ab392017-07-03 13:33:44 -070010642 {
10643 .eraseblocks = { {4 * 1024, 8192} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020010644 .block_erase = spi_block_erase_21,
Ed Swierk199ab392017-07-03 13:33:44 -070010645 }, {
Nico Huberaac81422017-11-10 22:54:13 +010010646 .eraseblocks = { {4 * 1024, 8192} },
10647 .block_erase = spi_block_erase_20,
10648 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070010649 .eraseblocks = { {64 * 1024, 512} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020010650 .block_erase = spi_block_erase_dc,
Ed Swierk199ab392017-07-03 13:33:44 -070010651 }, {
Nico Huberaac81422017-11-10 22:54:13 +010010652 .eraseblocks = { {64 * 1024, 512} },
10653 .block_erase = spi_block_erase_d8,
10654 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070010655 .eraseblocks = { {32768 * 1024, 1} },
10656 .block_erase = spi_block_erase_c7,
10657 }
10658 },
10659 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10660 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10661 .write = spi_chip_write_256, /* Multi I/O supported */
10662 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10663 .voltage = {2700, 3600},
10664 },
10665
10666 {
10667 .vendor = "Micron",
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070010668 .name = "MT25QL512", /* L = 3V, uniform 64KB/4KB blocks/sectors */
Ed Swierk199ab392017-07-03 13:33:44 -070010669 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100010670 .manufacture_id = ST_ID,
Ed Swierk199ab392017-07-03 13:33:44 -070010671 .model_id = ST_N25Q512__3E,
10672 .total_size = 65536,
10673 .page_size = 256,
10674 /* supports SFDP */
10675 /* OTP: 64B total; read 0x4B, write 0x42 */
Nico Huberaac81422017-11-10 22:54:13 +010010676 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
Angel Pons3ed5a352018-09-30 16:31:09 +020010677 .tested = TEST_OK_PREW,
Ed Swierk199ab392017-07-03 13:33:44 -070010678 .probe = probe_spi_rdid,
10679 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100010680 .block_erasers =
10681 {
Ed Swierk199ab392017-07-03 13:33:44 -070010682 {
10683 .eraseblocks = { {4 * 1024, 16384} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020010684 .block_erase = spi_block_erase_21,
Ed Swierk199ab392017-07-03 13:33:44 -070010685 }, {
Nico Huberaac81422017-11-10 22:54:13 +010010686 .eraseblocks = { {4 * 1024, 16384} },
10687 .block_erase = spi_block_erase_20,
10688 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070010689 .eraseblocks = { {64 * 1024, 1024} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020010690 .block_erase = spi_block_erase_dc,
Ed Swierk199ab392017-07-03 13:33:44 -070010691 }, {
Nico Huberaac81422017-11-10 22:54:13 +010010692 .eraseblocks = { {64 * 1024, 1024} },
10693 .block_erase = spi_block_erase_d8,
10694 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070010695 .eraseblocks = { {65536 * 1024, 1} },
10696 .block_erase = spi_block_erase_c7,
10697 }
10698 },
10699 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10700 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10701 .write = spi_chip_write_256, /* Multi I/O supported */
10702 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10703 .voltage = {2700, 3600},
10704 },
10705
10706 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000010707 .vendor = "MoselVitelic",
10708 .name = "V29C51000B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010709 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010710 .manufacture_id = SYNCMOS_MVC_ID,
10711 .model_id = MVC_V29C51000B,
10712 .total_size = 64,
10713 .page_size = 512,
10714 .feature_bits = FEATURE_EITHER_RESET,
10715 .tested = TEST_UNTESTED,
10716 .probe = probe_jedec,
10717 .probe_timing = TIMING_ZERO,
10718 .block_erasers =
10719 {
10720 {
10721 .eraseblocks = { {512, 128} },
10722 .block_erase = erase_sector_jedec,
10723 }, {
10724 .eraseblocks = { {64 * 1024, 1} },
10725 .block_erase = erase_chip_block_jedec,
10726 },
10727 },
10728 .write = write_jedec_1,
10729 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010730 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010731 },
10732
10733 {
10734 .vendor = "MoselVitelic",
10735 .name = "V29C51000T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010736 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010737 .manufacture_id = SYNCMOS_MVC_ID,
10738 .model_id = MVC_V29C51000T,
10739 .total_size = 64,
10740 .page_size = 512,
10741 .feature_bits = FEATURE_EITHER_RESET,
10742 .tested = TEST_UNTESTED,
10743 .probe = probe_jedec,
10744 .probe_timing = TIMING_ZERO,
10745 .block_erasers =
10746 {
10747 {
10748 .eraseblocks = { {512, 128} },
10749 .block_erase = erase_sector_jedec,
10750 }, {
10751 .eraseblocks = { {64 * 1024, 1} },
10752 .block_erase = erase_chip_block_jedec,
10753 },
10754 },
10755 .write = write_jedec_1,
10756 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010757 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010758 },
10759
10760 {
10761 .vendor = "MoselVitelic",
10762 .name = "V29C51400B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010763 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010764 .manufacture_id = SYNCMOS_MVC_ID,
10765 .model_id = MVC_V29C51400B,
10766 .total_size = 512,
10767 .page_size = 1024,
10768 .feature_bits = FEATURE_EITHER_RESET,
10769 .tested = TEST_UNTESTED,
10770 .probe = probe_jedec,
10771 .probe_timing = TIMING_ZERO,
10772 .block_erasers =
10773 {
10774 {
10775 .eraseblocks = { {1024, 512} },
10776 .block_erase = erase_sector_jedec,
10777 }, {
10778 .eraseblocks = { {512 * 1024, 1} },
10779 .block_erase = erase_chip_block_jedec,
10780 },
10781 },
10782 .write = write_jedec_1,
10783 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010784 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010785 },
10786
10787 {
10788 .vendor = "MoselVitelic",
10789 .name = "V29C51400T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010790 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010791 .manufacture_id = SYNCMOS_MVC_ID,
10792 .model_id = MVC_V29C51400T,
10793 .total_size = 512,
10794 .page_size = 1024,
10795 .feature_bits = FEATURE_EITHER_RESET,
10796 .tested = TEST_UNTESTED,
10797 .probe = probe_jedec,
10798 .probe_timing = TIMING_ZERO,
10799 .block_erasers =
10800 {
10801 {
10802 .eraseblocks = { {1024, 512} },
10803 .block_erase = erase_sector_jedec,
10804 }, {
10805 .eraseblocks = { {512 * 1024, 1} },
10806 .block_erase = erase_chip_block_jedec,
10807 },
10808 },
10809 .write = write_jedec_1,
10810 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010811 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010812 },
10813
10814 {
10815 .vendor = "MoselVitelic",
10816 .name = "V29LC51000",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010817 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010818 .manufacture_id = SYNCMOS_MVC_ID,
10819 .model_id = MVC_V29LC51000,
10820 .total_size = 64,
10821 .page_size = 512,
10822 .feature_bits = FEATURE_EITHER_RESET,
10823 .tested = TEST_UNTESTED,
10824 .probe = probe_jedec,
10825 .probe_timing = TIMING_ZERO,
10826 .block_erasers =
10827 {
10828 {
10829 .eraseblocks = { {512, 128} },
10830 .block_erase = erase_sector_jedec,
10831 }, {
10832 .eraseblocks = { {64 * 1024, 1} },
10833 .block_erase = erase_chip_block_jedec,
10834 },
10835 },
10836 .write = write_jedec_1,
10837 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010838 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010839 },
10840
10841 {
10842 .vendor = "MoselVitelic",
10843 .name = "V29LC51001",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010844 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010845 .manufacture_id = SYNCMOS_MVC_ID,
10846 .model_id = MVC_V29LC51001,
10847 .total_size = 128,
10848 .page_size = 512,
10849 .feature_bits = FEATURE_EITHER_RESET,
10850 .tested = TEST_UNTESTED,
10851 .probe = probe_jedec,
10852 .probe_timing = TIMING_ZERO,
10853 .block_erasers =
10854 {
10855 {
10856 .eraseblocks = { {512, 256} },
10857 .block_erase = erase_sector_jedec,
10858 }, {
10859 .eraseblocks = { {128 * 1024, 1} },
10860 .block_erase = erase_chip_block_jedec,
10861 },
10862 },
10863 .write = write_jedec_1,
10864 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010865 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010866 },
10867
10868 {
10869 .vendor = "MoselVitelic",
10870 .name = "V29LC51002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010871 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000010872 .manufacture_id = SYNCMOS_MVC_ID,
10873 .model_id = MVC_V29LC51002,
10874 .total_size = 256,
10875 .page_size = 512,
10876 .feature_bits = FEATURE_EITHER_RESET,
10877 .tested = TEST_UNTESTED,
10878 .probe = probe_jedec,
10879 .probe_timing = TIMING_ZERO,
10880 .block_erasers =
10881 {
10882 {
10883 .eraseblocks = { {512, 512} },
10884 .block_erase = erase_sector_jedec,
10885 }, {
10886 .eraseblocks = { {256 * 1024, 1} },
10887 .block_erase = erase_chip_block_jedec,
10888 },
10889 },
10890 .write = write_jedec_1,
10891 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010892 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000010893 },
10894
10895 {
Stefan Taunerb6b00e92013-06-28 21:28:43 +000010896 .vendor = "Nantronics",
10897 .name = "N25S10",
10898 .bustype = BUS_SPI,
10899 .manufacture_id = NANTRONICS_ID_NOPREFIX,
10900 .model_id = NANTRONICS_N25S10,
10901 .total_size = 128,
10902 .page_size = 256,
10903 .feature_bits = FEATURE_WRSR_WREN,
10904 .tested = TEST_UNTESTED,
10905 .probe = probe_spi_rdid,
10906 .probe_timing = TIMING_ZERO,
10907 .block_erasers =
10908 {
10909 {
10910 .eraseblocks = { {4 * 1024, 32} },
10911 .block_erase = spi_block_erase_20,
10912 }, {
10913 .eraseblocks = { {4 * 1024, 32} },
10914 .block_erase = spi_block_erase_d7,
10915 }, {
10916 .eraseblocks = { {32 * 1024, 4} },
10917 .block_erase = spi_block_erase_52,
10918 }, {
10919 .eraseblocks = { {64 * 1024, 2} },
10920 .block_erase = spi_block_erase_d8,
10921 }, {
10922 .eraseblocks = { {128 * 1024, 1} },
10923 .block_erase = spi_block_erase_60,
10924 }, {
10925 .eraseblocks = { {128 * 1024, 1} },
10926 .block_erase = spi_block_erase_c7,
10927 }
10928 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010929 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000010930 .unlock = spi_disable_blockprotect_bp3_srwd,
10931 .write = spi_chip_write_256,
10932 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
10933 .voltage = {2700, 3600},
10934 },
10935
10936 {
10937 .vendor = "Nantronics",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010938 .name = "N25S16",
10939 .bustype = BUS_SPI,
10940 .manufacture_id = NANTRONICS_ID_NOPREFIX,
10941 .model_id = NANTRONICS_N25S16,
10942 .total_size = 2048,
10943 .page_size = 256,
10944 .feature_bits = FEATURE_WRSR_WREN,
10945 .tested = TEST_UNTESTED,
10946 .probe = probe_spi_rdid,
10947 .probe_timing = TIMING_ZERO,
10948 .block_erasers =
10949 {
10950 {
10951 .eraseblocks = { {4 * 1024, 512} },
10952 .block_erase = spi_block_erase_20,
10953 }, {
10954 .eraseblocks = { {64 * 1024, 32} },
10955 .block_erase = spi_block_erase_d8,
10956 }, {
10957 .eraseblocks = { {2048 * 1024, 1} },
10958 .block_erase = spi_block_erase_60,
10959 }, {
10960 .eraseblocks = { {2048 * 1024, 1} },
10961 .block_erase = spi_block_erase_c7,
10962 }
10963 },
10964 .printlock = spi_prettyprint_status_register_bp3_srwd,
10965 .unlock = spi_disable_blockprotect_bp3_srwd,
10966 .write = spi_chip_write_256,
10967 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
10968 .voltage = {2700, 3600},
10969 },
10970
10971 {
10972 .vendor = "Nantronics",
Stefan Taunerb6b00e92013-06-28 21:28:43 +000010973 .name = "N25S20",
10974 .bustype = BUS_SPI,
10975 .manufacture_id = NANTRONICS_ID_NOPREFIX,
10976 .model_id = NANTRONICS_N25S20,
10977 .total_size = 256,
10978 .page_size = 256,
10979 .feature_bits = FEATURE_WRSR_WREN,
10980 .tested = TEST_UNTESTED,
10981 .probe = probe_spi_rdid,
10982 .probe_timing = TIMING_ZERO,
10983 .block_erasers =
10984 {
10985 {
10986 .eraseblocks = { {4 * 1024, 64} },
10987 .block_erase = spi_block_erase_20,
10988 }, {
10989 .eraseblocks = { {4 * 1024, 64} },
10990 .block_erase = spi_block_erase_d7,
10991 }, {
10992 .eraseblocks = { {32 * 1024, 8} },
10993 .block_erase = spi_block_erase_52,
10994 }, {
10995 .eraseblocks = { {64 * 1024, 4} },
10996 .block_erase = spi_block_erase_d8,
10997 }, {
10998 .eraseblocks = { {256 * 1024, 1} },
10999 .block_erase = spi_block_erase_60,
11000 }, {
11001 .eraseblocks = { {256 * 1024, 1} },
11002 .block_erase = spi_block_erase_c7,
11003 }
11004 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011005 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000011006 .unlock = spi_disable_blockprotect_bp3_srwd,
11007 .write = spi_chip_write_256,
11008 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
11009 .voltage = {2700, 3600},
11010 },
11011
11012 {
11013 .vendor = "Nantronics",
11014 .name = "N25S40",
11015 .bustype = BUS_SPI,
11016 .manufacture_id = NANTRONICS_ID_NOPREFIX,
11017 .model_id = NANTRONICS_N25S40,
11018 .total_size = 512,
11019 .page_size = 256,
11020 .feature_bits = FEATURE_WRSR_WREN,
11021 .tested = TEST_UNTESTED,
11022 .probe = probe_spi_rdid,
11023 .probe_timing = TIMING_ZERO,
11024 .block_erasers =
11025 {
11026 {
11027 .eraseblocks = { {4 * 1024, 128} },
11028 .block_erase = spi_block_erase_20,
11029 }, {
11030 .eraseblocks = { {4 * 1024, 128} },
11031 .block_erase = spi_block_erase_d7,
11032 }, {
11033 .eraseblocks = { {32 * 1024, 16} },
11034 .block_erase = spi_block_erase_52,
11035 }, {
11036 .eraseblocks = { {64 * 1024, 8} },
11037 .block_erase = spi_block_erase_d8,
11038 }, {
11039 .eraseblocks = { {512 * 1024, 1} },
11040 .block_erase = spi_block_erase_60,
11041 }, {
11042 .eraseblocks = { {512 * 1024, 1} },
11043 .block_erase = spi_block_erase_c7,
11044 }
11045 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011046 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000011047 .unlock = spi_disable_blockprotect_bp3_srwd,
11048 .write = spi_chip_write_256,
11049 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
11050 .voltage = {2700, 3600},
11051 },
11052
11053 {
11054 .vendor = "Nantronics",
11055 .name = "N25S80",
11056 .bustype = BUS_SPI,
11057 .manufacture_id = NANTRONICS_ID_NOPREFIX,
11058 .model_id = NANTRONICS_N25S80,
11059 .total_size = 1024,
11060 .page_size = 256,
11061 .feature_bits = FEATURE_WRSR_WREN,
11062 .tested = TEST_UNTESTED,
11063 .probe = probe_spi_rdid,
11064 .probe_timing = TIMING_ZERO,
11065 .block_erasers =
11066 {
11067 {
11068 .eraseblocks = { {4 * 1024, 256} },
11069 .block_erase = spi_block_erase_20,
11070 }, {
11071 .eraseblocks = { {32 * 1024, 32} },
11072 .block_erase = spi_block_erase_52,
11073 }, {
11074 .eraseblocks = { {64 * 1024, 16} },
11075 .block_erase = spi_block_erase_d8,
11076 }, {
11077 .eraseblocks = { {1024 * 1024, 1} },
11078 .block_erase = spi_block_erase_60,
11079 }, {
11080 .eraseblocks = { {1024 * 1024, 1} },
11081 .block_erase = spi_block_erase_c7,
11082 }
11083 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011084 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000011085 .unlock = spi_disable_blockprotect_bp3_srwd,
11086 .write = spi_chip_write_256,
11087 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
11088 .voltage = {2700, 3600},
11089 },
11090
11091 {
Stefan Taunerf4451612013-04-19 01:59:15 +000011092 .vendor = "PMC",
11093 .name = "Pm25LD010(C)",
11094 .bustype = BUS_SPI,
11095 .manufacture_id = PMC_ID,
11096 .model_id = PMC_PM25LD010,
11097 .total_size = 128,
11098 .page_size = 256,
11099 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000011100 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +000011101 .probe = probe_spi_rdid,
11102 .probe_timing = TIMING_ZERO,
11103 .block_erasers =
11104 {
11105 {
11106 .eraseblocks = { {4 * 1024, 32} },
11107 .block_erase = spi_block_erase_20,
11108 }, {
11109 .eraseblocks = { {4 * 1024, 32} },
11110 .block_erase = spi_block_erase_d7,
11111 }, {
11112 .eraseblocks = { {32 * 1024, 4} },
11113 .block_erase = spi_block_erase_d8,
11114 }, {
11115 .eraseblocks = { {128 * 1024, 1} },
11116 .block_erase = spi_block_erase_60,
11117 }, {
11118 .eraseblocks = { {128 * 1024, 1} },
11119 .block_erase = spi_block_erase_c7,
11120 }
11121 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011122 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000011123 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
11124 .write = spi_chip_write_256,
11125 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
11126 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD010 */
11127 },
11128
11129 {
11130 .vendor = "PMC",
11131 .name = "Pm25LD020(C)",
11132 .bustype = BUS_SPI,
11133 .manufacture_id = PMC_ID,
11134 .model_id = PMC_PM25LD020,
11135 .total_size = 256,
11136 .page_size = 256,
11137 .feature_bits = FEATURE_WRSR_WREN,
Angel Ponsf5822a82018-09-30 20:09:58 +020011138 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +000011139 .probe = probe_spi_rdid,
11140 .probe_timing = TIMING_ZERO,
11141 .block_erasers =
11142 {
11143 {
11144 .eraseblocks = { {4 * 1024, 64} },
11145 .block_erase = spi_block_erase_20,
11146 }, {
11147 .eraseblocks = { {4 * 1024, 64} },
11148 .block_erase = spi_block_erase_d7,
11149 }, {
11150 .eraseblocks = { {64 * 1024, 4} },
11151 .block_erase = spi_block_erase_d8,
11152 }, {
11153 .eraseblocks = { {256 * 1024, 1} },
11154 .block_erase = spi_block_erase_60,
11155 }, {
11156 .eraseblocks = { {256 * 1024, 1} },
11157 .block_erase = spi_block_erase_c7,
11158 }
11159 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011160 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000011161 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
11162 .write = spi_chip_write_256,
11163 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
11164 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD020 */
11165 },
11166
11167 {
11168 .vendor = "PMC",
11169 .name = "Pm25LD040(C)",
11170 .bustype = BUS_SPI,
11171 .manufacture_id = PMC_ID,
11172 .model_id = PMC_PM25LV040,
11173 .total_size = 512,
11174 .page_size = 256,
11175 .feature_bits = FEATURE_WRSR_WREN,
Angel Pons05127bf2018-09-30 20:23:24 +020011176 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +000011177 .probe = probe_spi_rdid,
11178 .probe_timing = TIMING_ZERO,
11179 .block_erasers =
11180 {
11181 {
11182 .eraseblocks = { {4 * 1024, 128} },
11183 .block_erase = spi_block_erase_20,
11184 }, {
11185 .eraseblocks = { {4 * 1024, 128} },
11186 .block_erase = spi_block_erase_d7,
11187 }, {
11188 .eraseblocks = { {64 * 1024, 8} },
11189 .block_erase = spi_block_erase_d8,
11190 }, {
11191 .eraseblocks = { {512 * 1024, 1} },
11192 .block_erase = spi_block_erase_60,
11193 }, {
11194 .eraseblocks = { {512 * 1024, 1} },
11195 .block_erase = spi_block_erase_c7,
11196 }
11197 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011198 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000011199 .unlock = spi_disable_blockprotect,
11200 .write = spi_chip_write_256,
11201 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
11202 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD040 */
11203 },
11204
Steven Honeyman81a8fb72015-06-02 22:32:24 +000011205 {
11206 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100011207 .name = "Pm25LD256C",
11208 .bustype = BUS_SPI,
11209 .manufacture_id = PMC_ID,
11210 .model_id = PMC_PM25LD256C,
11211 .total_size = 32,
11212 .page_size = 256,
11213 .feature_bits = FEATURE_WRSR_WREN,
11214 .tested = TEST_UNTESTED,
11215 .probe = probe_spi_rdid,
11216 .probe_timing = TIMING_ZERO,
11217 .block_erasers =
11218 {
11219 {
11220 .eraseblocks = { {4 * 1024, 8} },
11221 .block_erase = spi_block_erase_20,
11222 }, {
11223 .eraseblocks = { {4 * 1024, 8} },
11224 .block_erase = spi_block_erase_d7,
11225 }, {
11226 .eraseblocks = { {32 * 1024, 1} },
11227 .block_erase = spi_block_erase_d8,
11228 }, {
11229 .eraseblocks = { {32 * 1024, 1} },
11230 .block_erase = spi_block_erase_60,
11231 }, {
11232 .eraseblocks = { {32 * 1024, 1} },
11233 .block_erase = spi_block_erase_c7,
11234 }
11235 },
11236 .printlock = spi_prettyprint_status_register_bp2_srwd,
11237 .unlock = spi_disable_blockprotect,
11238 .write = spi_chip_write_256,
11239 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
11240 .voltage = {2700, 3600},
11241 },
11242
11243 {
11244 .vendor = "PMC",
11245 .name = "Pm25LD512(C)",
11246 .bustype = BUS_SPI,
11247 .manufacture_id = PMC_ID,
11248 .model_id = PMC_PM25LD512,
11249 .total_size = 64,
11250 .page_size = 256,
11251 .feature_bits = FEATURE_WRSR_WREN,
11252 .tested = TEST_OK_PREW,
11253 .probe = probe_spi_rdid,
11254 .probe_timing = TIMING_ZERO,
11255 .block_erasers =
11256 {
11257 {
11258 .eraseblocks = { {4 * 1024, 16} },
11259 .block_erase = spi_block_erase_20,
11260 }, {
11261 .eraseblocks = { {4 * 1024, 16} },
11262 .block_erase = spi_block_erase_d7,
11263 }, {
11264 .eraseblocks = { {32 * 1024, 2} },
11265 .block_erase = spi_block_erase_d8,
11266 }, {
11267 .eraseblocks = { {64 * 1024, 1} },
11268 .block_erase = spi_block_erase_60,
11269 }, {
11270 .eraseblocks = { {64 * 1024, 1} },
11271 .block_erase = spi_block_erase_c7,
11272 }
11273 },
11274 .printlock = spi_prettyprint_status_register_bp2_srwd,
11275 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
11276 .write = spi_chip_write_256,
11277 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
11278 .voltage = {2300, 3600},
11279 },
11280
11281 {
11282 .vendor = "PMC",
11283 .name = "Pm25LQ016",
11284 .bustype = BUS_SPI,
11285 .manufacture_id = PMC_ID,
11286 .model_id = PMC_PM25LQ016,
11287 .total_size = 2048,
11288 .page_size = 256,
11289 /* OTP: 256B total; read 0x4B, write 0xB1 */
11290 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11291 .tested = TEST_UNTESTED,
11292 .probe = probe_spi_rdid,
11293 .probe_timing = TIMING_ZERO,
11294 .block_erasers =
11295 {
11296 {
11297 .eraseblocks = { {4 * 1024, 512} },
11298 .block_erase = spi_block_erase_20,
11299 }, {
11300 .eraseblocks = { {4 * 1024, 512} },
11301 .block_erase = spi_block_erase_d7,
11302 }, {
11303 .eraseblocks = { {64 * 1024, 32} },
11304 .block_erase = spi_block_erase_d8,
11305 }, {
11306 .eraseblocks = { {2048 * 1024, 1} },
11307 .block_erase = spi_block_erase_60,
11308 }, {
11309 .eraseblocks = { {2048 * 1024, 1} },
11310 .block_erase = spi_block_erase_c7,
11311 }
11312 },
11313 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
11314 .unlock = spi_disable_blockprotect_bp3_srwd,
11315 .write = spi_chip_write_256,
11316 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11317 .voltage = {2300, 3600},
11318 },
11319
11320 {
11321 .vendor = "PMC",
Steven Honeyman81a8fb72015-06-02 22:32:24 +000011322 .name = "Pm25LQ020",
11323 .bustype = BUS_SPI,
11324 .manufacture_id = PMC_ID,
11325 .model_id = PMC_PM25LQ020,
11326 .total_size = 256,
11327 .page_size = 256,
11328 /* OTP: 256B total; read 0x4B, write 0xB1 */
11329 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11330 .tested = TEST_UNTESTED,
11331 .probe = probe_spi_rdid,
11332 .probe_timing = TIMING_ZERO,
11333 .block_erasers =
11334 {
11335 {
11336 .eraseblocks = { {4 * 1024, 64} },
11337 .block_erase = spi_block_erase_20,
11338 }, {
11339 .eraseblocks = { {4 * 1024, 64} },
11340 .block_erase = spi_block_erase_d7,
11341 }, {
11342 .eraseblocks = { {64 * 1024, 4} },
11343 .block_erase = spi_block_erase_d8,
11344 }, {
11345 .eraseblocks = { {256 * 1024, 1} },
11346 .block_erase = spi_block_erase_60,
11347 }, {
11348 .eraseblocks = { {256 * 1024, 1} },
11349 .block_erase = spi_block_erase_c7,
11350 }
11351 },
11352 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
11353 .unlock = spi_disable_blockprotect_bp3_srwd,
11354 .write = spi_chip_write_256,
11355 .read = spi_chip_read,
11356 .voltage = {2300, 3600},
11357 },
11358
11359 {
11360 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100011361 .name = "Pm25LQ032C",
11362 .bustype = BUS_SPI,
11363 .manufacture_id = PMC_ID,
11364 .model_id = PMC_PM25LQ032C,
11365 .total_size = 4096,
11366 .page_size = 256,
11367 /* OTP: 64B total; read 0x4B, write 0xB1 */
11368 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11369 .tested = TEST_OK_PREW,
11370 .probe = probe_spi_rdid,
11371 .probe_timing = TIMING_ZERO,
11372 .block_erasers =
11373 {
11374 {
11375 .eraseblocks = { {4 * 1024, 1024} },
11376 .block_erase = spi_block_erase_20,
11377 }, {
11378 .eraseblocks = { {4 * 1024, 1024} },
11379 .block_erase = spi_block_erase_d7,
11380 }, {
11381 .eraseblocks = { {64 * 1024, 64} },
11382 .block_erase = spi_block_erase_d8,
11383 }, {
11384 .eraseblocks = { {4096 * 1024, 1} },
11385 .block_erase = spi_block_erase_60,
11386 }, {
11387 .eraseblocks = { {4096 * 1024, 1} },
11388 .block_erase = spi_block_erase_c7,
11389 }
11390 },
11391 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
11392 .unlock = spi_disable_blockprotect_bp3_srwd,
11393 .write = spi_chip_write_256,
11394 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11395 .voltage = {2700, 3600},
11396 },
11397
11398 {
11399 .vendor = "PMC",
Steven Honeyman81a8fb72015-06-02 22:32:24 +000011400 .name = "Pm25LQ040",
11401 .bustype = BUS_SPI,
11402 .manufacture_id = PMC_ID,
11403 .model_id = PMC_PM25LQ040,
11404 .total_size = 512,
11405 .page_size = 256,
11406 /* OTP: 256B total; read 0x4B, write 0xB1 */
11407 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11408 .tested = TEST_UNTESTED,
11409 .probe = probe_spi_rdid,
11410 .probe_timing = TIMING_ZERO,
11411 .block_erasers =
11412 {
11413 {
11414 .eraseblocks = { {4 * 1024, 128} },
11415 .block_erase = spi_block_erase_20,
11416 }, {
11417 .eraseblocks = { {4 * 1024, 128} },
11418 .block_erase = spi_block_erase_d7,
11419 }, {
11420 .eraseblocks = { {64 * 1024, 8} },
11421 .block_erase = spi_block_erase_d8,
11422 }, {
11423 .eraseblocks = { {512 * 1024, 1} },
11424 .block_erase = spi_block_erase_60,
11425 }, {
11426 .eraseblocks = { {512 * 1024, 1} },
11427 .block_erase = spi_block_erase_c7,
11428 }
11429 },
11430 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
11431 .unlock = spi_disable_blockprotect_bp3_srwd,
11432 .write = spi_chip_write_256,
11433 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11434 .voltage = {2300, 3600},
11435 },
11436
11437 {
11438 .vendor = "PMC",
11439 .name = "Pm25LQ080",
11440 .bustype = BUS_SPI,
11441 .manufacture_id = PMC_ID,
11442 .model_id = PMC_PM25LQ080,
11443 .total_size = 1024,
11444 .page_size = 256,
11445 /* OTP: 64B total; read 0x4B, write 0xB1 */
11446 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11447 .tested = TEST_UNTESTED,
11448 .probe = probe_spi_rdid,
11449 .probe_timing = TIMING_ZERO,
11450 .block_erasers =
11451 {
11452 {
11453 .eraseblocks = { {4 * 1024, 256} },
11454 .block_erase = spi_block_erase_20,
11455 }, {
11456 .eraseblocks = { {4 * 1024, 256} },
11457 .block_erase = spi_block_erase_d7,
11458 }, {
11459 .eraseblocks = { {64 * 1024, 16} },
11460 .block_erase = spi_block_erase_d8,
11461 }, {
11462 .eraseblocks = { {1024 * 1024, 1} },
11463 .block_erase = spi_block_erase_60,
11464 }, {
11465 .eraseblocks = { {1024 * 1024, 1} },
11466 .block_erase = spi_block_erase_c7,
11467 }
11468 },
11469 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
11470 .unlock = spi_disable_blockprotect_bp3_srwd,
11471 .write = spi_chip_write_256,
11472 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11473 .voltage = {2300, 3600},
11474 },
11475
11476 {
11477 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011478 .name = "Pm25LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011479 .bustype = BUS_SPI,
Stefan Taunerbecda742014-05-30 19:34:00 +000011480 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011481 .model_id = PMC_PM25LV010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011482 .total_size = 128,
11483 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011484 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerbecda742014-05-30 19:34:00 +000011485 .tested = TEST_OK_PREW,
11486 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000011487 .probe_timing = TIMING_ZERO,
11488 .block_erasers =
11489 {
11490 {
11491 .eraseblocks = { {4 * 1024, 32} },
11492 .block_erase = spi_block_erase_d7,
11493 }, {
11494 .eraseblocks = { {32 * 1024, 4} },
11495 .block_erase = spi_block_erase_d8,
11496 }, {
11497 .eraseblocks = { {128 * 1024, 1} },
11498 .block_erase = spi_block_erase_c7,
11499 }
11500 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011501 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000011502 .unlock = spi_disable_blockprotect,
11503 .write = spi_chip_write_256,
11504 .read = spi_chip_read, /* Fast read (0x0B) supported */
11505 .voltage = {2700, 3600},
11506 },
11507
11508 {
11509 .vendor = "PMC",
11510 .name = "Pm25LV010A",
11511 .bustype = BUS_SPI,
11512 .manufacture_id = PMC_ID,
11513 .model_id = PMC_PM25LV010,
11514 .total_size = 128,
11515 .page_size = 256,
11516 .feature_bits = FEATURE_WRSR_WREN,
11517 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011518 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011519 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000011520 .block_erasers =
11521 {
11522 {
11523 .eraseblocks = { {4 * 1024, 32} },
11524 .block_erase = spi_block_erase_d7,
11525 }, {
11526 .eraseblocks = { {32 * 1024, 4} },
11527 .block_erase = spi_block_erase_d8,
11528 }, {
11529 .eraseblocks = { {128 * 1024, 1} },
11530 .block_erase = spi_block_erase_c7,
11531 }
11532 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011533 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011534 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000011535 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000011536 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +000011537 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011538 },
11539
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011540 {
11541 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100011542 .name = "Pm25LV016B",
11543 .bustype = BUS_SPI,
11544 .manufacture_id = PMC_ID,
11545 .model_id = PMC_PM25LV016B,
11546 .total_size = 2048,
11547 .page_size = 256,
11548 .feature_bits = FEATURE_WRSR_WREN,
11549 .tested = TEST_UNTESTED,
11550 .probe = probe_spi_rdid,
11551 .probe_timing = TIMING_ZERO,
11552 .block_erasers =
11553 {
11554 {
11555 .eraseblocks = { {4 * 1024, 512} },
11556 .block_erase = spi_block_erase_d7,
11557 }, {
11558 .eraseblocks = { {4 * 1024, 512} },
11559 .block_erase = spi_block_erase_20,
11560 }, {
11561 .eraseblocks = { {64 * 1024, 32} },
11562 .block_erase = spi_block_erase_d8,
11563 }, {
11564 .eraseblocks = { {2 * 1024 * 1024, 1} },
11565 .block_erase = spi_block_erase_60,
11566 }, {
11567 .eraseblocks = { {2 * 1024 * 1024, 1} },
11568 .block_erase = spi_block_erase_c7,
11569 }
11570 },
11571 .printlock = spi_prettyprint_status_register_bp2_srwd,
11572 .unlock = spi_disable_blockprotect,
11573 .write = spi_chip_write_256,
11574 .read = spi_chip_read, /* Fast read (0x0B) supported */
11575 .voltage = {2700, 3600},
11576 },
11577
11578 {
11579 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011580 .name = "Pm25LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011581 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011582 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011583 .model_id = PMC_PM25LV020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011584 .total_size = 256,
11585 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011586 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011587 .tested = TEST_UNTESTED,
11588 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011589 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000011590 .block_erasers =
11591 {
11592 {
11593 .eraseblocks = { {4 * 1024, 64} },
11594 .block_erase = spi_block_erase_d7,
11595 }, {
11596 .eraseblocks = { {64 * 1024, 4} },
11597 .block_erase = spi_block_erase_d8,
11598 }, {
11599 .eraseblocks = { {256 * 1024, 1} },
11600 .block_erase = spi_block_erase_c7,
11601 }
11602 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011603 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011604 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000011605 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011606 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011607 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011608 },
11609
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011610 {
11611 .vendor = "PMC",
11612 .name = "Pm25LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011613 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011614 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011615 .model_id = PMC_PM25LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011616 .total_size = 512,
11617 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011618 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +000011619 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011620 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011621 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000011622 .block_erasers =
11623 {
11624 {
11625 .eraseblocks = { {4 * 1024, 128} },
11626 .block_erase = spi_block_erase_d7,
11627 }, {
11628 .eraseblocks = { {64 * 1024, 8} },
11629 .block_erase = spi_block_erase_d8,
11630 }, {
11631 .eraseblocks = { {512 * 1024, 1} },
11632 .block_erase = spi_block_erase_c7,
11633 }
11634 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011635 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011636 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000011637 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000011638 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011639 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011640 },
11641
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011642 {
11643 .vendor = "PMC",
11644 .name = "Pm25LV080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011645 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011646 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011647 .model_id = PMC_PM25LV080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011648 .total_size = 1024,
11649 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011650 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011651 .tested = TEST_UNTESTED,
11652 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011653 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000011654 .block_erasers =
11655 {
11656 {
11657 .eraseblocks = { {4 * 1024, 256} },
11658 .block_erase = spi_block_erase_d7,
11659 }, {
11660 .eraseblocks = { {4 * 1024, 256} },
11661 .block_erase = spi_block_erase_20,
11662 }, {
11663 .eraseblocks = { {64 * 1024, 16} },
11664 .block_erase = spi_block_erase_d8,
11665 }, {
11666 .eraseblocks = { {1024 * 1024, 1} },
11667 .block_erase = spi_block_erase_60,
11668 }, {
11669 .eraseblocks = { {1024 * 1024, 1} },
11670 .block_erase = spi_block_erase_c7,
11671 }
11672 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011673 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011674 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000011675 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000011676 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011677 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011678 },
11679
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011680 {
11681 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100011682 .name = "Pm25LV512(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011683 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +100011684 .manufacture_id = PMC_ID_NOPREFIX,
11685 .model_id = PMC_PM25LV512,
11686 .total_size = 64,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011687 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011688 .feature_bits = FEATURE_WRSR_WREN,
Alan Green1f9cc7d2019-07-01 11:10:45 +100011689 .tested = TEST_OK_PREW,
11690 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000011691 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000011692 .block_erasers =
11693 {
11694 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100011695 .eraseblocks = { {4 * 1024, 16} },
Sean Nelson5643c072010-01-19 03:23:07 +000011696 .block_erase = spi_block_erase_d7,
11697 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100011698 .eraseblocks = { {32 * 1024, 2} },
Sean Nelson5643c072010-01-19 03:23:07 +000011699 .block_erase = spi_block_erase_d8,
11700 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100011701 .eraseblocks = { {64 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +000011702 .block_erase = spi_block_erase_c7,
11703 }
11704 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100011705 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000011706 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000011707 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000011708 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +000011709 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011710 },
11711
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011712 {
11713 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +000011714 .name = "Pm29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011715 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000011716 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011717 .model_id = PMC_PM29F002B,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000011718 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +000011719 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011720 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000011721 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000011722 .probe = probe_jedec,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011723 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +000011724 .block_erasers =
11725 {
11726 {
11727 .eraseblocks = {
11728 {16 * 1024, 1},
11729 {8 * 1024, 2},
11730 {96 * 1024, 1},
11731 {128 * 1024, 1},
11732 },
Sean Nelson35727f72010-01-28 23:55:12 +000011733 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000011734 }, {
11735 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000011736 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000011737 },
11738 },
Sean Nelson35727f72010-01-28 23:55:12 +000011739 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000011740 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011741 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +000011742 },
11743
11744 {
11745 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100011746 .name = "Pm29F002T",
11747 .bustype = BUS_PARALLEL,
11748 .manufacture_id = PMC_ID_NOPREFIX,
11749 .model_id = PMC_PM29F002T,
11750 .total_size = 256,
11751 .page_size = 8 * 1024,
11752 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
11753 .tested = TEST_OK_PREW,
11754 .probe = probe_jedec,
11755 .probe_timing = TIMING_FIXME,
11756 .block_erasers =
11757 {
11758 {
11759 .eraseblocks = {
11760 {128 * 1024, 1},
11761 {96 * 1024, 1},
11762 {8 * 1024, 2},
11763 {16 * 1024, 1},
11764 },
11765 .block_erase = erase_sector_jedec,
11766 }, {
11767 .eraseblocks = { {256 * 1024, 1} },
11768 .block_erase = erase_chip_block_jedec,
11769 },
11770 },
11771 .write = write_jedec_1,
11772 .read = read_memmapped,
11773 .voltage = {4500, 5500},
11774 },
11775
11776 {
11777 .vendor = "PMC",
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000011778 .name = "Pm39LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011779 .bustype = BUS_PARALLEL,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000011780 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011781 .model_id = PMC_PM39F010, /* Pm39LV010 and Pm39F010 have identical IDs but different voltage */
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000011782 .total_size = 128,
11783 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000011784 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000011785 .tested = TEST_OK_PREW,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000011786 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011787 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson5643c072010-01-19 03:23:07 +000011788 .block_erasers =
11789 {
11790 {
11791 .eraseblocks = { {4 * 1024, 32} },
11792 .block_erase = erase_sector_jedec,
11793 }, {
11794 .eraseblocks = { {64 * 1024, 2} },
11795 .block_erase = erase_block_jedec,
11796 }, {
11797 .eraseblocks = { {128 * 1024, 1} },
11798 .block_erase = erase_chip_block_jedec,
11799 }
11800 },
Sean Nelson35727f72010-01-28 23:55:12 +000011801 .write = write_jedec_1,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000011802 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011803 .voltage = {2700, 3600},
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000011804 },
11805
11806 {
11807 .vendor = "PMC",
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011808 .name = "Pm39LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011809 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011810 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011811 .model_id = PMC_PM39LV020,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011812 .total_size = 256,
11813 .page_size = 4096,
11814 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
11815 .tested = TEST_UNTESTED,
11816 .probe = probe_jedec,
11817 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Alan Greenfa3fcd32019-06-27 15:41:50 +100011818 .block_erasers =
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011819 {
11820 {
11821 .eraseblocks = { {4 * 1024, 64} },
11822 .block_erase = erase_sector_jedec,
11823 }, {
11824 .eraseblocks = { {64 * 1024, 4} },
11825 .block_erase = erase_block_jedec,
11826 }, {
11827 .eraseblocks = { {256 * 1024, 1} },
11828 .block_erase = erase_chip_block_jedec,
11829 }
11830 },
11831 .write = write_jedec_1,
11832 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011833 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011834 },
11835
11836 {
11837 .vendor = "PMC",
11838 .name = "Pm39LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011839 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011840 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011841 .model_id = PMC_PM39LV040,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011842 .total_size = 512,
11843 .page_size = 4096,
11844 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000011845 .tested = TEST_OK_PR,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011846 .probe = probe_jedec,
11847 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Alan Greenfa3fcd32019-06-27 15:41:50 +100011848 .block_erasers =
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011849 {
11850 {
11851 .eraseblocks = { {4 * 1024, 128} },
11852 .block_erase = erase_sector_jedec,
11853 }, {
11854 .eraseblocks = { {64 * 1024, 8} },
11855 .block_erase = erase_block_jedec,
11856 }, {
11857 .eraseblocks = { {512 * 1024, 1} },
11858 .block_erase = erase_chip_block_jedec,
11859 }
11860 },
11861 .write = write_jedec_1,
11862 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011863 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011864 },
Kyösti Mälkkiedab1d22012-05-20 23:32:33 +000011865
11866 {
11867 .vendor = "PMC",
11868 .name = "Pm39LV512",
11869 .bustype = BUS_PARALLEL,
11870 .manufacture_id = PMC_ID_NOPREFIX,
11871 .model_id = PMC_PM39LV512,
11872 .total_size = 64,
11873 .page_size = 4096,
11874 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
11875 .tested = TEST_OK_PREW,
11876 .probe = probe_jedec,
11877 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
11878 .block_erasers =
11879 {
11880 {
11881 .eraseblocks = { {4 * 1024, 16} },
11882 .block_erase = erase_sector_jedec,
11883 }, {
11884 .eraseblocks = { {64 * 1024, 1} },
11885 .block_erase = erase_block_jedec,
11886 }, {
11887 .eraseblocks = { {64 * 1024, 1} },
11888 .block_erase = erase_chip_block_jedec,
11889 }
11890 },
11891 .write = write_jedec_1,
11892 .read = read_memmapped,
11893 .voltage = {2700, 3600},
11894 },
11895
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000011896 {
11897 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011898 .name = "Pm49FL002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011899 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011900 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011901 .model_id = PMC_PM49FL002,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011902 .total_size = 256,
11903 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011904 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000011905 .tested = TEST_OK_PR,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000011906 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000011907 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +000011908 .block_erasers =
11909 {
11910 {
11911 .eraseblocks = { {4 * 1024, 64} },
11912 .block_erase = erase_sector_jedec,
11913 }, {
11914 .eraseblocks = { {16 * 1024, 16} },
11915 .block_erase = erase_block_jedec,
11916 }, {
11917 .eraseblocks = { {256 * 1024, 1} },
11918 .block_erase = erase_chip_block_jedec,
11919 }
11920 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000011921 .unlock = unlock_regspace2_uniform_32k,
Sean Nelson36172342010-02-27 18:01:15 +000011922 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011923 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011924 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011925 },
11926
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011927 {
11928 .vendor = "PMC",
11929 .name = "Pm49FL004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011930 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011931 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000011932 .model_id = PMC_PM49FL004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011933 .total_size = 512,
11934 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000011935 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner74dc73f2015-03-01 22:04:38 +000011936 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000011937 .probe = probe_jedec,
Stefan Tauner74dc73f2015-03-01 22:04:38 +000011938 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000011939 .block_erasers =
11940 {
11941 {
11942 .eraseblocks = { {4 * 1024, 128} },
11943 .block_erase = erase_sector_jedec,
11944 }, {
11945 .eraseblocks = { {64 * 1024, 8} },
11946 .block_erase = erase_block_jedec,
11947 }, {
11948 .eraseblocks = { {512 * 1024, 1} },
11949 .block_erase = erase_chip_block_jedec,
11950 }
11951 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000011952 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson36172342010-02-27 18:01:15 +000011953 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000011954 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011955 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000011956 },
11957
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011958 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000011959 .vendor = "SST",
Idwer Volleringf3607d12014-05-07 15:25:04 +000011960 .name = "SST25LF020A",
11961 .bustype = BUS_SPI,
11962 .manufacture_id = SST_ID,
11963 .model_id = SST_SST25VF020_REMS,
11964 .total_size = 256,
11965 .page_size = 256,
11966 .feature_bits = FEATURE_WRSR_EWSR,
11967 .tested = TEST_OK_PREW,
11968 .probe = probe_spi_rems,
11969 .probe_timing = TIMING_ZERO,
11970 .block_erasers =
11971 {
11972 {
11973 .eraseblocks = { {4 * 1024, 64} },
11974 .block_erase = spi_block_erase_20,
11975 }, {
11976 .eraseblocks = { {32 * 1024, 8} },
11977 .block_erase = spi_block_erase_52,
11978 }, {
11979 .eraseblocks = { {256 * 1024, 1} },
11980 .block_erase = spi_block_erase_60,
11981 },
11982 },
11983 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
11984 .unlock = spi_disable_blockprotect,
11985 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
11986 .read = spi_chip_read, /* Fast read (0x0B) supported */
11987 .voltage = {2700, 3600},
11988 },
11989
11990 {
11991 .vendor = "SST",
Zeus Castro33670ba2011-08-17 09:50:11 +000011992 .name = "SST25LF040A",
11993 .bustype = BUS_SPI,
11994 .manufacture_id = SST_ID,
11995 .model_id = SST_SST25VF040_REMS,
11996 .total_size = 512,
11997 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000011998 .feature_bits = FEATURE_WRSR_EWSR,
Uwe Hermann4335ec82011-09-07 20:20:25 +000011999 .tested = TEST_OK_PREW,
Zeus Castro33670ba2011-08-17 09:50:11 +000012000 .probe = probe_spi_res2,
12001 .probe_timing = TIMING_ZERO,
12002 .block_erasers =
12003 {
12004 {
12005 .eraseblocks = { {4 * 1024, 128} },
12006 .block_erase = spi_block_erase_20,
12007 }, {
12008 .eraseblocks = { {32 * 1024, 16} },
12009 .block_erase = spi_block_erase_52,
12010 }, {
12011 .eraseblocks = { {512 * 1024, 1} },
12012 .block_erase = spi_block_erase_60,
12013 },
12014 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012015 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +000012016 .unlock = spi_disable_blockprotect,
12017 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
12018 .read = spi_chip_read,
12019 .voltage = {3000, 3600},
12020 },
12021
12022 {
12023 .vendor = "SST",
Stefan Taunere34e3e82013-01-01 00:06:51 +000012024 .name = "SST25LF080(A)",
Zeus Castro33670ba2011-08-17 09:50:11 +000012025 .bustype = BUS_SPI,
12026 .manufacture_id = SST_ID,
12027 .model_id = SST_SST25VF080_REMS,
12028 .total_size = 1024,
12029 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000012030 .feature_bits = FEATURE_WRSR_EITHER,
Zeus Castro33670ba2011-08-17 09:50:11 +000012031 .tested = TEST_UNTESTED,
12032 .probe = probe_spi_res2,
12033 .probe_timing = TIMING_ZERO,
12034 .block_erasers =
12035 {
12036 {
12037 .eraseblocks = { {4 * 1024, 256} },
12038 .block_erase = spi_block_erase_20,
12039 }, {
12040 .eraseblocks = { {32 * 1024, 32} },
12041 .block_erase = spi_block_erase_52,
12042 }, {
12043 .eraseblocks = { {1024 * 1024, 1} },
12044 .block_erase = spi_block_erase_60,
12045 },
12046 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012047 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +000012048 .unlock = spi_disable_blockprotect,
12049 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
12050 .read = spi_chip_read,
12051 .voltage = {3000, 3600},
12052 },
12053
12054 {
12055 .vendor = "SST",
Stefan Tauner6697f712014-08-06 15:09:15 +000012056 .name = "SST25VF010(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012057 .bustype = BUS_SPI,
Mark Marshall90021f22010-12-03 14:48:11 +000012058 .manufacture_id = SST_ID,
12059 .model_id = SST_SST25VF010_REMS,
12060 .total_size = 128,
12061 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012062 .feature_bits = FEATURE_WRSR_EWSR,
Mark Marshall90021f22010-12-03 14:48:11 +000012063 .tested = TEST_OK_PREW,
12064 .probe = probe_spi_rems,
12065 .probe_timing = TIMING_ZERO,
12066 .block_erasers =
12067 {
12068 {
12069 .eraseblocks = { {4 * 1024, 32} },
12070 .block_erase = spi_block_erase_20,
12071 }, {
12072 .eraseblocks = { {32 * 1024, 4} },
12073 .block_erase = spi_block_erase_52,
12074 }, {
Cory Henderson370f5822013-10-19 23:09:16 +000012075 .eraseblocks = { {32 * 1024, 4} },
Stefan Tauner6697f712014-08-06 15:09:15 +000012076 .block_erase = spi_block_erase_d8, /* Supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000012077 }, {
Mark Marshall90021f22010-12-03 14:48:11 +000012078 .eraseblocks = { {128 * 1024, 1} },
12079 .block_erase = spi_block_erase_60,
Cory Henderson370f5822013-10-19 23:09:16 +000012080 }, {
12081 .eraseblocks = { {128 * 1024, 1} },
Stefan Tauner6697f712014-08-06 15:09:15 +000012082 .block_erase = spi_block_erase_c7, /* Supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000012083 },
12084 },
12085 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
12086 .unlock = spi_disable_blockprotect,
12087 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
Stefan Tauner6697f712014-08-06 15:09:15 +000012088 .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000012089 .voltage = {2700, 3600},
12090 },
12091
12092 {
12093 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012094 .name = "SST25VF016B",
12095 .bustype = BUS_SPI,
12096 .manufacture_id = SST_ID,
12097 .model_id = SST_SST25VF016B,
12098 .total_size = 2048,
12099 .page_size = 256,
12100 .feature_bits = FEATURE_WRSR_EITHER,
12101 .tested = TEST_OK_PREW,
12102 .probe = probe_spi_rdid,
12103 .probe_timing = TIMING_ZERO,
12104 .block_erasers =
12105 {
12106 {
12107 .eraseblocks = { {4 * 1024, 512} },
12108 .block_erase = spi_block_erase_20,
12109 }, {
12110 .eraseblocks = { {32 * 1024, 64} },
12111 .block_erase = spi_block_erase_52,
12112 }, {
12113 .eraseblocks = { {64 * 1024, 32} },
12114 .block_erase = spi_block_erase_d8,
12115 }, {
12116 .eraseblocks = { {2 * 1024 * 1024, 1} },
12117 .block_erase = spi_block_erase_60,
12118 }, {
12119 .eraseblocks = { {2 * 1024 * 1024, 1} },
12120 .block_erase = spi_block_erase_c7,
12121 },
12122 },
12123 .printlock = spi_prettyprint_status_register_sst25vf016,
12124 .unlock = spi_disable_blockprotect,
12125 .write = spi_aai_write,
12126 .read = spi_chip_read,
12127 .voltage = {2700, 3600},
12128 },
12129
12130 {
12131 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +000012132 .name = "SST25VF020",
12133 .bustype = BUS_SPI,
12134 .manufacture_id = SST_ID,
12135 .model_id = SST_SST25VF020_REMS,
12136 .total_size = 256,
12137 .page_size = 256,
12138 .feature_bits = FEATURE_WRSR_EWSR,
12139 .tested = TEST_UNTESTED,
12140 .probe = probe_spi_rems,
12141 .probe_timing = TIMING_ZERO,
12142 .block_erasers =
12143 {
12144 {
12145 .eraseblocks = { {4 * 1024, 64} },
12146 .block_erase = spi_block_erase_20,
12147 }, {
12148 .eraseblocks = { {32 * 1024, 8} },
12149 .block_erase = spi_block_erase_52,
12150 }, {
12151 .eraseblocks = { {256 * 1024, 1} },
12152 .block_erase = spi_block_erase_60,
12153 },
12154 },
12155 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
12156 .unlock = spi_disable_blockprotect,
12157 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
12158 .read = spi_chip_read, /* only */
12159 .voltage = {2700, 3600},
12160 },
12161
12162 {
12163 .vendor = "SST",
12164 .name = "SST25VF020B",
12165 .bustype = BUS_SPI,
12166 .manufacture_id = SST_ID,
12167 .model_id = SST_SST25VF020B,
12168 .total_size = 256,
12169 .page_size = 256,
12170 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000012171 .tested = TEST_OK_PREW,
Cory Henderson370f5822013-10-19 23:09:16 +000012172 .probe = probe_spi_rdid,
12173 .probe_timing = TIMING_ZERO,
12174 .block_erasers =
12175 {
12176 {
12177 .eraseblocks = { {4 * 1024, 64} },
12178 .block_erase = spi_block_erase_20,
12179 }, {
12180 .eraseblocks = { {32 * 1024, 8} },
12181 .block_erase = spi_block_erase_52,
12182 }, {
12183 .eraseblocks = { {64 * 1024, 4} },
12184 .block_erase = spi_block_erase_d8,
12185 }, {
12186 .eraseblocks = { {256 * 1024, 1} },
12187 .block_erase = spi_block_erase_60,
12188 }, {
12189 .eraseblocks = { {256 * 1024, 1} },
12190 .block_erase = spi_block_erase_c7,
12191 },
12192 },
12193 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 and 2nd SR */
12194 .unlock = spi_disable_blockprotect, /* FIXME: 2nd SR */
12195 .write = spi_aai_write, /* AAI supported (0xAD) */
12196 .read = spi_chip_read, /* Fast read (0x0B) supported */
12197 .voltage = {2700, 3600},
12198 },
12199
12200 {
12201 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012202 .name = "SST25VF032B",
12203 .bustype = BUS_SPI,
12204 .manufacture_id = SST_ID,
12205 .model_id = SST_SST25VF032B,
12206 .total_size = 4096,
12207 .page_size = 256,
12208 .feature_bits = FEATURE_WRSR_EWSR,
12209 .tested = TEST_OK_PREW,
12210 .probe = probe_spi_rdid,
12211 .probe_timing = TIMING_ZERO,
12212 .block_erasers =
12213 {
12214 {
12215 .eraseblocks = { {4 * 1024, 1024} },
12216 .block_erase = spi_block_erase_20,
12217 }, {
12218 .eraseblocks = { {32 * 1024, 128} },
12219 .block_erase = spi_block_erase_52,
12220 }, {
12221 .eraseblocks = { {64 * 1024, 64} },
12222 .block_erase = spi_block_erase_d8,
12223 }, {
12224 .eraseblocks = { {4 * 1024 * 1024, 1} },
12225 .block_erase = spi_block_erase_60,
12226 }, {
12227 .eraseblocks = { {4 * 1024 * 1024, 1} },
12228 .block_erase = spi_block_erase_c7,
12229 },
12230 },
12231 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
12232 .unlock = spi_disable_blockprotect,
12233 .write = spi_aai_write,
12234 .read = spi_chip_read,
12235 .voltage = {2700, 3600},
12236 },
12237
12238 {
12239 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +000012240 .name = "SST25VF040",
12241 .bustype = BUS_SPI,
12242 .manufacture_id = SST_ID,
12243 .model_id = SST_SST25VF040_REMS,
12244 .total_size = 512,
12245 .page_size = 256,
12246 .feature_bits = FEATURE_WRSR_EWSR,
12247 .tested = TEST_OK_PR,
12248 .probe = probe_spi_rems,
12249 .probe_timing = TIMING_ZERO,
12250 .block_erasers =
12251 {
12252 {
12253 .eraseblocks = { {4 * 1024, 128} },
12254 .block_erase = spi_block_erase_20,
12255 }, {
12256 .eraseblocks = { {32 * 1024, 16} },
12257 .block_erase = spi_block_erase_52,
12258 }, {
12259 .eraseblocks = { {512 * 1024, 1} },
12260 .block_erase = spi_block_erase_60,
Mark Marshall90021f22010-12-03 14:48:11 +000012261 },
12262 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000012263 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Mark Marshall90021f22010-12-03 14:48:11 +000012264 .unlock = spi_disable_blockprotect,
Cory Henderson370f5822013-10-19 23:09:16 +000012265 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
12266 .read = spi_chip_read,
12267 .voltage = {2700, 3600},
12268 },
12269
12270 {
12271 .vendor = "SST",
12272 .name = "SST25VF040B",
12273 .bustype = BUS_SPI,
12274 .manufacture_id = SST_ID,
12275 .model_id = SST_SST25VF040B,
12276 .total_size = 512,
12277 .page_size = 256,
12278 .feature_bits = FEATURE_WRSR_EWSR,
12279 .tested = TEST_OK_PREW,
12280 .probe = probe_spi_rdid,
12281 .probe_timing = TIMING_ZERO,
12282 .block_erasers =
12283 {
12284 {
12285 .eraseblocks = { {4 * 1024, 128} },
12286 .block_erase = spi_block_erase_20,
12287 }, {
12288 .eraseblocks = { {32 * 1024, 16} },
12289 .block_erase = spi_block_erase_52,
12290 }, {
12291 .eraseblocks = { {64 * 1024, 8} },
12292 .block_erase = spi_block_erase_d8,
12293 }, {
12294 .eraseblocks = { {512 * 1024, 1} },
12295 .block_erase = spi_block_erase_60,
12296 }, {
12297 .eraseblocks = { {512 * 1024, 1} },
12298 .block_erase = spi_block_erase_c7,
12299 },
12300 },
12301 .printlock = spi_prettyprint_status_register_sst25vf040b,
12302 .unlock = spi_disable_blockprotect,
12303 .write = spi_aai_write, /* AAI supported (0xAD) */
12304 .read = spi_chip_read, /* Fast read (0x0B) supported */
12305 .voltage = {2700, 3600},
12306 },
12307
12308 {
12309 .vendor = "SST",
12310 .name = "SST25VF040B.REMS",
12311 .bustype = BUS_SPI,
12312 .manufacture_id = SST_ID,
12313 .model_id = SST_SST25VF040B_REMS,
12314 .total_size = 512,
12315 .page_size = 256,
12316 .feature_bits = FEATURE_WRSR_EWSR,
12317 .tested = TEST_OK_PREW,
12318 .probe = probe_spi_rems,
12319 .probe_timing = TIMING_ZERO,
12320 .block_erasers =
12321 {
12322 {
12323 .eraseblocks = { {4 * 1024, 128} },
12324 .block_erase = spi_block_erase_20,
12325 }, {
12326 .eraseblocks = { {32 * 1024, 16} },
12327 .block_erase = spi_block_erase_52,
12328 }, {
12329 .eraseblocks = { {64 * 1024, 8} },
12330 .block_erase = spi_block_erase_d8,
12331 }, {
12332 .eraseblocks = { {512 * 1024, 1} },
12333 .block_erase = spi_block_erase_60,
12334 }, {
12335 .eraseblocks = { {512 * 1024, 1} },
12336 .block_erase = spi_block_erase_c7,
12337 },
12338 },
12339 .printlock = spi_prettyprint_status_register_sst25vf040b,
12340 .unlock = spi_disable_blockprotect,
12341 .write = spi_aai_write,
12342 .read = spi_chip_read,
12343 .voltage = {2700, 3600},
12344 },
12345
12346 {
12347 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012348 .name = "SST25VF064C",
Ben Gardnerbcf61092015-11-22 02:23:31 +000012349 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +100012350 .manufacture_id = SST_ID,
12351 .model_id = SST_SST25VF064C,
12352 .total_size = 8192,
Ben Gardnerbcf61092015-11-22 02:23:31 +000012353 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100012354 .feature_bits = FEATURE_WRSR_EWSR,
Ben Gardnerbcf61092015-11-22 02:23:31 +000012355 .tested = TEST_OK_PREW,
12356 .probe = probe_spi_rdid,
12357 .probe_timing = TIMING_ZERO,
12358 .block_erasers =
12359 {
12360 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100012361 .eraseblocks = { {4 * 1024, 2048} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000012362 .block_erase = spi_block_erase_20,
12363 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100012364 .eraseblocks = { {32 * 1024, 256} },
12365 .block_erase = spi_block_erase_52,
12366 }, {
12367 .eraseblocks = { {64 * 1024, 128} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000012368 .block_erase = spi_block_erase_d8,
12369 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100012370 .eraseblocks = { {8 * 1024 * 1024, 1} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000012371 .block_erase = spi_block_erase_60,
12372 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100012373 .eraseblocks = { {8 * 1024 * 1024, 1} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000012374 .block_erase = spi_block_erase_c7,
12375 },
12376 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100012377 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
12378 .unlock = spi_disable_blockprotect,
Ben Gardnerbcf61092015-11-22 02:23:31 +000012379 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100012380 .read = spi_chip_read,
12381 .voltage = {2700, 3600},
Ben Gardnerbcf61092015-11-22 02:23:31 +000012382 },
12383
12384 {
12385 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +000012386 .name = "SST25VF080B",
12387 .bustype = BUS_SPI,
12388 .manufacture_id = SST_ID,
12389 .model_id = SST_SST25VF080B,
12390 .total_size = 1024,
12391 .page_size = 256,
12392 .feature_bits = FEATURE_WRSR_EWSR,
12393 .tested = TEST_OK_PREW,
12394 .probe = probe_spi_rdid,
12395 .probe_timing = TIMING_ZERO,
12396 .block_erasers =
12397 {
12398 {
12399 .eraseblocks = { {4 * 1024, 256} },
12400 .block_erase = spi_block_erase_20,
12401 }, {
12402 .eraseblocks = { {32 * 1024, 32} },
12403 .block_erase = spi_block_erase_52,
12404 }, {
12405 .eraseblocks = { {64 * 1024, 16} },
12406 .block_erase = spi_block_erase_d8,
12407 }, {
12408 .eraseblocks = { {1024 * 1024, 1} },
12409 .block_erase = spi_block_erase_60,
12410 }, {
12411 .eraseblocks = { {1024 * 1024, 1} },
12412 .block_erase = spi_block_erase_c7,
12413 },
12414 },
12415 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
12416 .unlock = spi_disable_blockprotect,
12417 .write = spi_aai_write,
Mark Marshall90021f22010-12-03 14:48:11 +000012418 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000012419 .voltage = {2700, 3600},
Mark Marshall90021f22010-12-03 14:48:11 +000012420 },
12421
12422 {
12423 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012424 .name = "SST25VF512(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012425 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012426 .manufacture_id = SST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100012427 .model_id = SST_SST25VF512_REMS,
12428 .total_size = 64,
12429 .page_size = 256,
12430 .feature_bits = FEATURE_WRSR_EWSR,
12431 .tested = TEST_OK_PREW,
12432 .probe = probe_spi_rems,
12433 .probe_timing = TIMING_ZERO,
12434 .block_erasers =
12435 {
12436 {
12437 .eraseblocks = { {4 * 1024, 16} },
12438 .block_erase = spi_block_erase_20,
12439 }, {
12440 .eraseblocks = { {32 * 1024, 2} },
12441 .block_erase = spi_block_erase_52,
12442 }, {
12443 .eraseblocks = { {32 * 1024, 2} },
12444 .block_erase = spi_block_erase_d8, /* Supported by SST25VF512A only */
12445 }, {
12446 .eraseblocks = { {64 * 1024, 1} },
12447 .block_erase = spi_block_erase_60,
12448 }, {
12449 .eraseblocks = { {64 * 1024, 1} },
12450 .block_erase = spi_block_erase_c7, /* Supported by SST25VF512A only */
12451 },
12452 },
12453 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
12454 .unlock = spi_disable_blockprotect,
12455 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
12456 .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF512A only */
12457 .voltage = {2700, 3600},
12458 },
12459
12460 {
12461 .vendor = "SST",
12462 .name = "SST25WF010",
12463 .bustype = BUS_SPI,
12464 .manufacture_id = SST_ID,
12465 .model_id = SST_SST25WF010,
12466 .total_size = 128,
12467 .page_size = 256,
12468 .feature_bits = FEATURE_WRSR_EITHER,
12469 .tested = TEST_UNTESTED,
12470 .probe = probe_spi_rdid,
12471 .probe_timing = TIMING_ZERO,
12472 .block_erasers =
12473 {
12474 {
12475 .eraseblocks = { {4 * 1024, 32} },
12476 .block_erase = spi_block_erase_20,
12477 }, {
12478 .eraseblocks = { {32 * 1024, 4} },
12479 .block_erase = spi_block_erase_52,
12480 }, {
12481 .eraseblocks = { {1024 * 128, 1} },
12482 .block_erase = spi_block_erase_60,
12483 }, {
12484 .eraseblocks = { {1024 * 128, 1} },
12485 .block_erase = spi_block_erase_c7,
12486 },
12487 },
12488 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
12489 .unlock = spi_disable_blockprotect_bp2_srwd,
12490 .write = spi_aai_write,
12491 .read = spi_chip_read, /* Fast read (0x0B) supported */
12492 .voltage = {1650, 1950},
12493 },
12494
12495 {
12496 .vendor = "SST",
12497 .name = "SST25WF020",
12498 .bustype = BUS_SPI,
12499 .manufacture_id = SST_ID,
12500 .model_id = SST_SST25WF020,
12501 .total_size = 256,
12502 .page_size = 256,
12503 .feature_bits = FEATURE_WRSR_EITHER,
12504 .tested = TEST_UNTESTED,
12505 .probe = probe_spi_rdid,
12506 .probe_timing = TIMING_ZERO,
12507 .block_erasers =
12508 {
12509 {
12510 .eraseblocks = { {4 * 1024, 64} },
12511 .block_erase = spi_block_erase_20,
12512 }, {
12513 .eraseblocks = { {32 * 1024, 8} },
12514 .block_erase = spi_block_erase_52,
12515 }, {
12516 .eraseblocks = { {64 * 1024, 4} },
12517 .block_erase = spi_block_erase_d8,
12518 }, {
12519 .eraseblocks = { {1024 * 256, 1} },
12520 .block_erase = spi_block_erase_60,
12521 }, {
12522 .eraseblocks = { {1024 * 256, 1} },
12523 .block_erase = spi_block_erase_c7,
12524 },
12525 },
12526 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
12527 .unlock = spi_disable_blockprotect_bp2_srwd,
12528 .write = spi_aai_write,
12529 .read = spi_chip_read, /* Fast read (0x0B) supported */
12530 .voltage = {1650, 1950},
12531 },
12532
12533 {
12534 .vendor = "SST",
12535 .name = "SST25WF020A",
12536 .bustype = BUS_SPI,
12537 .manufacture_id = SANYO_ID, /* See flashchips.h */
12538 .model_id = SST_SST25WF020A,
12539 .total_size = 256,
12540 .page_size = 256,
12541 .feature_bits = FEATURE_WRSR_WREN,
12542 .tested = TEST_UNTESTED,
12543 .probe = probe_spi_rdid,
12544 .probe_timing = TIMING_ZERO,
12545 .block_erasers =
12546 {
12547 {
12548 .eraseblocks = { {4 * 1024, 64} },
12549 .block_erase = spi_block_erase_20,
12550 }, {
12551 .eraseblocks = { {64 * 1024, 4} },
12552 .block_erase = spi_block_erase_d8,
12553 }, {
12554 .eraseblocks = { {256 * 1024, 1} },
12555 .block_erase = spi_block_erase_60,
12556 }, {
12557 .eraseblocks = { {256 * 1024, 1} },
12558 .block_erase = spi_block_erase_c7,
12559 },
12560 },
12561 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
12562 .unlock = spi_disable_blockprotect_bp2_srwd,
12563 .write = spi_chip_write_256,
12564 .read = spi_chip_read, /* Fast read (0x0B) supported */
12565 .voltage = {1650, 1950},
12566 },
12567
12568 {
12569 .vendor = "SST",
12570 .name = "SST25WF040",
12571 .bustype = BUS_SPI,
12572 .manufacture_id = SST_ID,
12573 .model_id = SST_SST25WF040,
12574 .total_size = 512,
12575 .page_size = 256,
12576 .feature_bits = FEATURE_WRSR_EITHER,
12577 .tested = TEST_UNTESTED,
12578 .probe = probe_spi_rdid,
12579 .probe_timing = TIMING_ZERO,
12580 .block_erasers =
12581 {
12582 {
12583 .eraseblocks = { {4 * 1024, 128} },
12584 .block_erase = spi_block_erase_20,
12585 }, {
12586 .eraseblocks = { {32 * 1024, 16} },
12587 .block_erase = spi_block_erase_52,
12588 }, {
12589 .eraseblocks = { {64 * 1024, 8} },
12590 .block_erase = spi_block_erase_d8,
12591 }, {
12592 .eraseblocks = { {1024 * 512, 1} },
12593 .block_erase = spi_block_erase_60,
12594 }, {
12595 .eraseblocks = { {1024 * 512, 1} },
12596 .block_erase = spi_block_erase_c7,
12597 },
12598 },
12599 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
12600 .unlock = spi_disable_blockprotect_bp2_srwd,
12601 .write = spi_aai_write,
12602 .read = spi_chip_read, /* Fast read (0x0B) supported */
12603 .voltage = {1650, 1950},
12604 },
12605
12606 {
12607 .vendor = "SST",
12608 .name = "SST25WF040B",
12609 .bustype = BUS_SPI,
12610 .manufacture_id = SANYO_ID, /* See flashchips.h */
12611 .model_id = SST_SST25WF040B,
12612 .total_size = 512,
12613 .page_size = 256,
12614 .feature_bits = FEATURE_WRSR_WREN,
12615 .tested = TEST_UNTESTED,
12616 .probe = probe_spi_rdid,
12617 .probe_timing = TIMING_ZERO,
12618 .block_erasers =
12619 {
12620 {
12621 .eraseblocks = { {4 * 1024, 128} },
12622 .block_erase = spi_block_erase_20,
12623 }, {
12624 .eraseblocks = { {64 * 1024, 8} },
12625 .block_erase = spi_block_erase_d8,
12626 }, {
12627 .eraseblocks = { {512 * 1024, 1} },
12628 .block_erase = spi_block_erase_60,
12629 }, {
12630 .eraseblocks = { {512 * 1024, 1} },
12631 .block_erase = spi_block_erase_c7,
12632 },
12633 },
12634 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
12635 .unlock = spi_disable_blockprotect_bp2_srwd,
12636 .write = spi_chip_write_256,
12637 .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */
12638 .voltage = {1650, 1950},
12639 },
12640
12641 {
12642 .vendor = "SST",
12643 .name = "SST25WF080",
12644 .bustype = BUS_SPI,
12645 .manufacture_id = SST_ID,
12646 .model_id = SST_SST25WF080,
12647 .total_size = 1024,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012648 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000012649 .feature_bits = FEATURE_WRSR_EITHER,
Mark Marshall90021f22010-12-03 14:48:11 +000012650 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012651 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012652 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000012653 .block_erasers =
12654 {
12655 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100012656 .eraseblocks = { {4 * 1024, 256} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000012657 .block_erase = spi_block_erase_20,
12658 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100012659 .eraseblocks = { {32 * 1024, 32} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000012660 .block_erase = spi_block_erase_52,
12661 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100012662 .eraseblocks = { {64 * 1024, 16} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000012663 .block_erase = spi_block_erase_d8,
12664 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100012665 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000012666 .block_erase = spi_block_erase_60,
12667 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100012668 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000012669 .block_erase = spi_block_erase_c7,
12670 },
12671 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100012672 .printlock = spi_prettyprint_status_register_sst25, /* *does* have a BP3 but it is useless */
12673 .unlock = spi_disable_blockprotect_bp3_srwd,
Joshua Roys87955bf2011-08-01 18:39:28 +000012674 .write = spi_aai_write,
Alan Green1f9cc7d2019-07-01 11:10:45 +100012675 .read = spi_chip_read, /* Fast read (0x0B) supported */
12676 .voltage = {1650, 1950},
FENG yu ningff692fb2008-12-08 18:15:10 +000012677 },
12678
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012679 {
12680 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012681 .name = "SST25WF080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012682 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +100012683 .manufacture_id = SANYO_ID, /* See flashchips.h */
12684 .model_id = SST_SST25WF080B,
12685 .total_size = 1024,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012686 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100012687 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerfcf6a8c2011-05-18 01:32:00 +000012688 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012689 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012690 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000012691 .block_erasers =
12692 {
12693 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100012694 .eraseblocks = { {4 * 1024, 256} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000012695 .block_erase = spi_block_erase_20,
12696 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100012697 .eraseblocks = { {64 * 1024, 16} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000012698 .block_erase = spi_block_erase_d8,
12699 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100012700 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000012701 .block_erase = spi_block_erase_60,
12702 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100012703 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000012704 .block_erase = spi_block_erase_c7,
12705 },
12706 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100012707 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
12708 .unlock = spi_disable_blockprotect_bp2_srwd,
Helge Wagner1db7a442010-10-05 22:29:08 +000012709 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100012710 .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */
12711 .voltage = {1650, 1950},
12712 },
12713
12714 {
12715 .vendor = "SST",
12716 .name = "SST25WF512",
12717 .bustype = BUS_SPI,
12718 .manufacture_id = SST_ID,
12719 .model_id = SST_SST25WF512,
12720 .total_size = 64,
12721 .page_size = 256,
12722 .feature_bits = FEATURE_WRSR_EITHER,
12723 .tested = TEST_UNTESTED,
12724 .probe = probe_spi_rdid,
12725 .probe_timing = TIMING_ZERO,
12726 .block_erasers =
12727 {
12728 {
12729 .eraseblocks = { {4 * 1024, 16} },
12730 .block_erase = spi_block_erase_20,
12731 }, {
12732 .eraseblocks = { {32 * 1024, 2} },
12733 .block_erase = spi_block_erase_52,
12734 }, {
12735 .eraseblocks = { {1024 * 64, 1} },
12736 .block_erase = spi_block_erase_60,
12737 }, {
12738 .eraseblocks = { {1024 * 64, 1} },
12739 .block_erase = spi_block_erase_c7,
12740 },
12741 },
12742 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
12743 .unlock = spi_disable_blockprotect_bp2_srwd,
12744 .write = spi_aai_write,
12745 .read = spi_chip_read, /* Fast read (0x0B) supported */
12746 .voltage = {1650, 1950},
Ed Swierk86f4e6d2010-07-21 15:02:22 +000012747 },
12748
12749 {
12750 .vendor = "SST",
Wei Hu25584de2018-04-30 14:02:08 -070012751 .name = "SST26VF016B(A)",
12752 .bustype = BUS_SPI,
12753 .manufacture_id = SST_ID,
12754 .model_id = SST_SST26VF016B,
12755 .total_size = 2048,
12756 .page_size = 256,
12757 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12758 .tested = TEST_OK_PREW,
12759 .probe = probe_spi_rdid,
12760 .probe_timing = TIMING_ZERO,
12761 .block_erasers =
12762 {
12763 {
12764 .eraseblocks = { {4 * 1024, 512} },
12765 .block_erase = spi_block_erase_20,
12766 }, {
12767 .eraseblocks = {
12768 {8 * 1024, 4},
12769 {32 * 1024, 1},
12770 {64 * 1024, 30},
12771 {32 * 1024, 1},
12772 {8 * 1024, 4},
12773 },
12774 .block_erase = spi_block_erase_d8,
12775 }, {
12776 .eraseblocks = { {2 * 1024 * 1024, 1} },
12777 .block_erase = spi_block_erase_c7,
12778 },
12779 },
12780 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
12781 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
12782 .write = spi_chip_write_256, /* Multi I/O supported */
12783 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12784 .voltage = {2700, 3600},
12785 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100012786
Wei Hu25584de2018-04-30 14:02:08 -070012787 {
12788 .vendor = "SST",
12789 .name = "SST26VF032B(A)",
12790 .bustype = BUS_SPI,
12791 .manufacture_id = SST_ID,
12792 .model_id = SST_SST26VF032B,
12793 .total_size = 4096,
12794 .page_size = 256,
12795 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12796 .tested = TEST_UNTESTED,
12797 .probe = probe_spi_rdid,
12798 .probe_timing = TIMING_ZERO,
12799 .block_erasers =
12800 {
12801 {
12802 .eraseblocks = { {4 * 1024, 1024} },
12803 .block_erase = spi_block_erase_20,
12804 }, {
12805 .eraseblocks = {
12806 {8 * 1024, 4},
12807 {32 * 1024, 1},
12808 {64 * 1024, 62},
12809 {32 * 1024, 1},
12810 {8 * 1024, 4},
12811 },
12812 .block_erase = spi_block_erase_d8,
12813 }, {
12814 .eraseblocks = { {4 * 1024 * 1024, 1} },
12815 .block_erase = spi_block_erase_c7,
12816 },
12817 },
12818 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
12819 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
12820 .write = spi_chip_write_256, /* Multi I/O supported */
12821 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12822 .voltage = {2700, 3600},
12823 },
12824
Wei Hu25584de2018-04-30 14:02:08 -070012825 {
12826 .vendor = "SST",
12827 .name = "SST26VF064B(A)",
12828 .bustype = BUS_SPI,
12829 .manufacture_id = SST_ID,
12830 .model_id = SST_SST26VF064B,
12831 .total_size = 8192,
12832 .page_size = 256,
12833 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12834 .tested = TEST_OK_PREW,
12835 .probe = probe_spi_rdid,
12836 .probe_timing = TIMING_ZERO,
12837 .block_erasers =
12838 {
12839 {
12840 .eraseblocks = { {4 * 1024, 2048} },
12841 .block_erase = spi_block_erase_20,
12842 }, {
12843 .eraseblocks = {
12844 {8 * 1024, 4},
12845 {32 * 1024, 1},
12846 {64 * 1024, 126},
12847 {32 * 1024, 1},
12848 {8 * 1024, 4},
12849 },
12850 .block_erase = spi_block_erase_d8,
12851 }, {
12852 .eraseblocks = { {8 * 1024 * 1024, 1} },
12853 .block_erase = spi_block_erase_c7,
12854 },
12855 },
12856 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
12857 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
12858 .write = spi_chip_write_256, /* Multi I/O supported */
12859 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12860 .voltage = {2700, 3600},
12861 },
12862
12863 {
12864 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012865 .name = "SST28SF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012866 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012867 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012868 .model_id = SST_SST28SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012869 .total_size = 512,
12870 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000012871 .feature_bits = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012872 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000012873 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000012874 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000012875 .block_erasers =
12876 {
12877 {
12878 .eraseblocks = { {128, 4096} },
12879 .block_erase = erase_sector_28sf040,
12880 }, {
12881 .eraseblocks = { {512 * 1024, 1} },
12882 .block_erase = erase_chip_28sf040,
12883 }
12884 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000012885 .unlock = unprotect_28sf040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012886 .write = write_28sf040,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012887 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012888 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000012889 },
12890
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012891 {
12892 .vendor = "SST",
12893 .name = "SST29EE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012894 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012895 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012896 .model_id = SST_SST29EE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012897 .total_size = 128,
12898 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000012899 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000012900 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012901 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000012902 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000012903 .block_erasers =
12904 {
12905 {
12906 .eraseblocks = { {128 * 1024, 1} },
12907 .block_erase = erase_chip_block_jedec,
12908 }
12909 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012910 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012911 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012912 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000012913 },
12914
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012915 {
12916 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012917 .name = "SST29EE020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012918 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012919 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012920 .model_id = SST_SST29EE020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012921 .total_size = 256,
12922 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000012923 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000012924 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012925 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012926 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000012927 .block_erasers =
12928 {
12929 {
12930 .eraseblocks = { {256 * 1024, 1} },
12931 .block_erase = erase_chip_block_jedec,
12932 }
12933 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012934 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012935 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012936 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000012937 },
12938
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012939 {
12940 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012941 .name = "SST29LE010",
12942 .bustype = BUS_PARALLEL,
12943 .manufacture_id = SST_ID,
12944 .model_id = SST_SST29LE010,
12945 .total_size = 128,
12946 .page_size = 128,
12947 .feature_bits = FEATURE_LONG_RESET,
12948 .tested = TEST_UNTESTED,
12949 .probe = probe_jedec,
12950 .probe_timing = 10,
12951 .block_erasers =
12952 {
12953 {
12954 .eraseblocks = { {128 * 1024, 1} },
12955 .block_erase = erase_chip_block_jedec,
12956 }
12957 },
12958 .write = write_jedec,
12959 .read = read_memmapped,
12960 .voltage = {3000, 3600},
12961 },
12962
12963 {
12964 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012965 .name = "SST29LE020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012966 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012967 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012968 .model_id = SST_SST29LE020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012969 .total_size = 256,
12970 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000012971 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000012972 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012973 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000012974 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000012975 .block_erasers =
12976 {
12977 {
12978 .eraseblocks = { {256 * 1024, 1} },
12979 .block_erase = erase_chip_block_jedec,
12980 }
12981 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012982 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000012983 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012984 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012985 },
12986
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012987 {
12988 .vendor = "SST",
12989 .name = "SST39SF010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012990 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012991 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012992 .model_id = SST_SST39SF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012993 .total_size = 128,
12994 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000012995 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000012996 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012997 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000012998 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000012999 .block_erasers =
13000 {
13001 {
13002 .eraseblocks = { {4 * 1024, 32} },
13003 .block_erase = erase_sector_jedec,
13004 }, {
13005 .eraseblocks = { {128 * 1024, 1} },
13006 .block_erase = erase_chip_block_jedec,
13007 }
13008 },
Sean Nelson35727f72010-01-28 23:55:12 +000013009 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013010 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013011 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013012 },
13013
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013014 {
13015 .vendor = "SST",
13016 .name = "SST39SF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013017 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013018 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013019 .model_id = SST_SST39SF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013020 .total_size = 256,
13021 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013022 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann19f46f22011-06-18 22:56:14 +000013023 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013024 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013025 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013026 .block_erasers =
13027 {
13028 {
13029 .eraseblocks = { {4 * 1024, 64} },
13030 .block_erase = erase_sector_jedec,
13031 }, {
13032 .eraseblocks = { {256 * 1024, 1} },
13033 .block_erase = erase_chip_block_jedec,
13034 }
13035 },
Sean Nelson35727f72010-01-28 23:55:12 +000013036 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013037 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013038 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013039 },
13040
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013041 {
13042 .vendor = "SST",
13043 .name = "SST39SF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013044 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013045 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013046 .model_id = SST_SST39SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013047 .total_size = 512,
13048 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013049 .feature_bits = FEATURE_EITHER_RESET,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +000013050 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013051 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013052 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013053 .block_erasers =
13054 {
13055 {
13056 .eraseblocks = { {4 * 1024, 128} },
13057 .block_erase = erase_sector_jedec,
13058 }, {
13059 .eraseblocks = { {512 * 1024, 1} },
13060 .block_erase = erase_chip_block_jedec,
13061 }
13062 },
Sean Nelson35727f72010-01-28 23:55:12 +000013063 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013064 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013065 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013066 },
13067
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013068 {
13069 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013070 .name = "SST39SF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013071 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013072 .manufacture_id = SST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013073 .model_id = SST_SST39SF512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013074 .total_size = 64,
13075 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013076 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd7d423b2012-10-20 09:13:16 +000013077 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013078 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013079 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013080 .block_erasers =
13081 {
13082 {
13083 .eraseblocks = { {4 * 1024, 16} },
13084 .block_erase = erase_sector_jedec,
13085 }, {
13086 .eraseblocks = { {64 * 1024, 1} },
13087 .block_erase = erase_chip_block_jedec,
13088 }
13089 },
Sean Nelson35727f72010-01-28 23:55:12 +000013090 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013091 .read = read_memmapped,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013092 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013093 },
13094
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013095 {
13096 .vendor = "SST",
13097 .name = "SST39VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013098 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013099 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013100 .model_id = SST_SST39VF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013101 .total_size = 128,
13102 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013103 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd94d25d2012-07-28 03:17:15 +000013104 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013105 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013106 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013107 .block_erasers =
13108 {
13109 {
13110 .eraseblocks = { {4 * 1024, 32} },
13111 .block_erase = erase_sector_jedec,
13112 }, {
13113 .eraseblocks = { {128 * 1024, 1} },
13114 .block_erase = erase_chip_block_jedec,
13115 }
13116 },
Sean Nelson35727f72010-01-28 23:55:12 +000013117 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013118 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013119 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013120 },
13121
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013122 {
13123 .vendor = "SST",
13124 .name = "SST39VF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013125 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013126 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013127 .model_id = SST_SST39VF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013128 .total_size = 256,
13129 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013130 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner5c316f92015-02-08 21:57:52 +000013131 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013132 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013133 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013134 .block_erasers =
13135 {
13136 {
13137 .eraseblocks = { {4 * 1024, 64} },
13138 .block_erase = erase_sector_jedec,
13139 }, {
13140 .eraseblocks = { {256 * 1024, 1} },
13141 .block_erase = erase_chip_block_jedec,
13142 }
13143 },
Sean Nelson35727f72010-01-28 23:55:12 +000013144 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013145 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013146 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013147 },
13148
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013149 {
13150 .vendor = "SST",
13151 .name = "SST39VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013152 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013153 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013154 .model_id = SST_SST39VF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013155 .total_size = 512,
13156 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013157 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner23e10b82016-01-23 16:16:49 +000013158 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013159 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013160 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013161 .block_erasers =
13162 {
13163 {
13164 .eraseblocks = { {4 * 1024, 128} },
13165 .block_erase = erase_sector_jedec,
13166 }, {
13167 .eraseblocks = { {512 * 1024, 1} },
13168 .block_erase = erase_chip_block_jedec,
13169 }
13170 },
Sean Nelson35727f72010-01-28 23:55:12 +000013171 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013172 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013173 .voltage = {2700, 3600},
Carl-Daniel Hailfinger90eff152008-12-08 23:51:45 +000013174 },
FENG yu ningff692fb2008-12-08 18:15:10 +000013175
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013176 {
13177 .vendor = "SST",
Peter Stuge8440cc02009-01-25 23:55:12 +000013178 .name = "SST39VF080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013179 .bustype = BUS_PARALLEL,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000013180 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013181 .model_id = SST_SST39VF080,
Peter Stuge8440cc02009-01-25 23:55:12 +000013182 .total_size = 1024,
13183 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013184 .feature_bits = FEATURE_EITHER_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +000013185 .tested = TEST_UNTESTED,
13186 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013187 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013188 .block_erasers =
13189 {
13190 {
13191 .eraseblocks = { {4 * 1024, 256} },
13192 .block_erase = erase_sector_jedec,
13193 }, {
13194 .eraseblocks = { {64 * 1024, 16} },
13195 .block_erase = erase_block_jedec,
13196 }, {
13197 .eraseblocks = { {1024 * 1024, 1} },
13198 .block_erase = erase_chip_block_jedec,
13199 }
13200 },
Sean Nelson35727f72010-01-28 23:55:12 +000013201 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013202 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013203 .voltage = {2700, 3600},
Peter Stuge8440cc02009-01-25 23:55:12 +000013204 },
13205
13206 {
13207 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013208 .name = "SST39VF512",
13209 .bustype = BUS_PARALLEL,
13210 .manufacture_id = SST_ID,
13211 .model_id = SST_SST39VF512,
13212 .total_size = 64,
13213 .page_size = 4096,
13214 .feature_bits = FEATURE_EITHER_RESET,
13215 .tested = TEST_OK_PREW,
13216 .probe = probe_jedec,
13217 .probe_timing = 1, /* 150 ns */
13218 .block_erasers =
13219 {
13220 {
13221 .eraseblocks = { {4 * 1024, 16} },
13222 .block_erase = erase_sector_jedec,
13223 }, {
13224 .eraseblocks = { {64 * 1024, 1} },
13225 .block_erase = erase_chip_block_jedec,
13226 }
13227 },
13228 .write = write_jedec_1,
13229 .read = read_memmapped,
13230 .voltage = {2700, 3600},
13231 },
13232
13233 {
13234 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013235 .name = "SST49LF002A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013236 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013237 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013238 .model_id = SST_SST49LF002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013239 .total_size = 256,
13240 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013241 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000013242 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013243 .probe = probe_jedec,
13244 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013245 .block_erasers =
13246 {
13247 {
13248 .eraseblocks = { {4 * 1024, 64} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013249 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013250 }, {
13251 .eraseblocks = { {16 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013252 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013253 }, {
13254 .eraseblocks = { {256 * 1024, 1} },
13255 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
13256 }
13257 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013258 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013259 .unlock = unlock_sst_fwhub,
13260 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013261 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013262 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013263 },
13264
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013265 {
13266 .vendor = "SST",
13267 .name = "SST49LF003A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013268 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013269 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013270 .model_id = SST_SST49LF003A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013271 .total_size = 384,
13272 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013273 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000013274 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013275 .probe = probe_jedec,
13276 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013277 .block_erasers =
13278 {
13279 {
13280 .eraseblocks = { {4 * 1024, 96} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013281 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013282 }, {
13283 .eraseblocks = { {64 * 1024, 6} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013284 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013285 }, {
13286 .eraseblocks = { {384 * 1024, 1} },
13287 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
13288 }
13289 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013290 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013291 .unlock = unlock_sst_fwhub,
13292 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013293 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013294 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013295 },
13296
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013297 {
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000013298 /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB)
13299 * and is only honored for 64k block erase, but not 4k sector erase.
13300 */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013301 .vendor = "SST",
13302 .name = "SST49LF004A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013303 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013304 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013305 .model_id = SST_SST49LF004A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013306 .total_size = 512,
13307 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013308 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000013309 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013310 .probe = probe_jedec,
13311 .probe_timing = 1, /* 150 ns */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000013312 .block_erasers =
13313 {
13314 {
13315 .eraseblocks = { {4 * 1024, 128} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013316 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000013317 }, {
13318 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013319 .block_erase = erase_block_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000013320 }, {
13321 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson51c83fb2010-01-20 20:55:53 +000013322 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000013323 },
13324 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013325 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013326 .unlock = unlock_sst_fwhub,
13327 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013328 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013329 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013330 },
13331
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013332 {
13333 .vendor = "SST",
13334 .name = "SST49LF004C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013335 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013336 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013337 .model_id = SST_SST49LF004C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013338 .total_size = 512,
13339 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013340 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013341 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013342 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000013343 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013344 .block_erasers =
13345 {
13346 {
13347 .eraseblocks = { {4 * 1024, 128} },
13348 .block_erase = erase_sector_49lfxxxc,
13349 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000013350 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000013351 {64 * 1024, 7},
13352 {32 * 1024, 1},
13353 {8 * 1024, 2},
13354 {16 * 1024, 1},
13355 },
Sean Nelson69e58112010-03-23 17:10:28 +000013356 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013357 }
13358 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013359 .printlock = printlock_regspace2_block_eraser_1,
13360 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000013361 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013362 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013363 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013364 },
13365
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013366 {
13367 .vendor = "SST",
13368 .name = "SST49LF008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013369 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013370 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013371 .model_id = SST_SST49LF008A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013372 .total_size = 1024,
13373 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013374 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000013375 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013376 .probe = probe_jedec,
13377 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013378 .block_erasers =
13379 {
13380 {
13381 .eraseblocks = { {4 * 1024, 256} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013382 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013383 }, {
13384 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013385 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013386 }, {
13387 .eraseblocks = { {1024 * 1024, 1} },
13388 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
13389 }
13390 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013391 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000013392 .unlock = unlock_sst_fwhub,
13393 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013394 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013395 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013396 },
13397
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013398 {
13399 .vendor = "SST",
13400 .name = "SST49LF008C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013401 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013402 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013403 .model_id = SST_SST49LF008C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013404 .total_size = 1024,
13405 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013406 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013407 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013408 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000013409 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013410 .block_erasers =
13411 {
13412 {
13413 .eraseblocks = { {4 * 1024, 256} },
13414 .block_erase = erase_sector_49lfxxxc,
13415 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000013416 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000013417 {64 * 1024, 15},
13418 {32 * 1024, 1},
13419 {8 * 1024, 2},
13420 {16 * 1024, 1},
13421 },
Sean Nelson69e58112010-03-23 17:10:28 +000013422 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013423 }
13424 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013425 .printlock = printlock_regspace2_block_eraser_1,
13426 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000013427 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013428 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013429 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013430 },
13431
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013432 {
13433 .vendor = "SST",
13434 .name = "SST49LF016C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013435 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013436 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013437 .model_id = SST_SST49LF016C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013438 .total_size = 2048,
13439 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013440 .feature_bits = FEATURE_REGISTERMAP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000013441 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013442 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000013443 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013444 .block_erasers =
13445 {
13446 {
13447 .eraseblocks = { {4 * 1024, 512} },
13448 .block_erase = erase_sector_49lfxxxc,
13449 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000013450 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000013451 {64 * 1024, 31},
13452 {32 * 1024, 1},
13453 {8 * 1024, 2},
13454 {16 * 1024, 1},
13455 },
Sean Nelson69e58112010-03-23 17:10:28 +000013456 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013457 }
13458 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013459 .printlock = printlock_regspace2_block_eraser_1,
13460 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000013461 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013462 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013463 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013464 },
13465
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013466 {
13467 .vendor = "SST",
13468 .name = "SST49LF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013469 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013470 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013471 .model_id = SST_SST49LF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013472 .total_size = 256,
13473 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013474 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +000013475 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013476 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013477 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013478 .block_erasers =
13479 {
13480 {
13481 .eraseblocks = { {4 * 1024, 64} },
13482 .block_erase = erase_sector_jedec,
13483 }, {
13484 .eraseblocks = { {16 * 1024, 16} },
13485 .block_erase = erase_block_jedec,
13486 }, {
13487 .eraseblocks = { {256 * 1024, 1} },
13488 .block_erase = NULL,
13489 }
13490 },
Sean Nelson35727f72010-01-28 23:55:12 +000013491 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013492 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013493 .voltage = {3000, 3600},
Sven Schnellec208dfb2009-01-07 12:35:09 +000013494 },
13495
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013496 {
13497 .vendor = "SST",
13498 .name = "SST49LF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013499 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013500 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013501 .model_id = SST_SST49LF020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013502 .total_size = 256,
Carl-Daniel Hailfingerda654322009-07-23 01:44:38 +000013503 .page_size = 4 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013504 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000013505 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013506 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013507 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013508 .block_erasers =
13509 {
13510 {
13511 .eraseblocks = { {4 * 1024, 64} },
13512 .block_erase = erase_sector_jedec,
13513 }, {
13514 .eraseblocks = { {16 * 1024, 16} },
13515 .block_erase = erase_block_jedec,
13516 }, {
13517 .eraseblocks = { {256 * 1024, 1} },
13518 .block_erase = NULL,
13519 }
13520 },
Sean Nelson35727f72010-01-28 23:55:12 +000013521 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013522 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013523 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013524 },
13525
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013526 {
13527 .vendor = "SST",
13528 .name = "SST49LF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013529 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013530 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013531 .model_id = SST_SST49LF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013532 .total_size = 512,
13533 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013534 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000013535 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013536 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000013537 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013538 .block_erasers =
13539 {
13540 {
13541 .eraseblocks = { {4 * 1024, 128} },
13542 .block_erase = erase_sector_jedec,
13543 }, {
13544 .eraseblocks = { {64 * 1024, 8} },
13545 .block_erase = erase_block_jedec,
13546 }, {
13547 .eraseblocks = { {512 * 1024, 1} },
13548 .block_erase = NULL,
13549 }
13550 },
Sean Nelson35727f72010-01-28 23:55:12 +000013551 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013552 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013553 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013554 },
13555
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013556 {
13557 .vendor = "SST",
13558 .name = "SST49LF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013559 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013560 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013561 .model_id = SST_SST49LF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013562 .total_size = 512,
13563 .page_size = 64 * 1024,
Joshua Roysa84b0bd2010-08-16 22:12:39 +000013564 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000013565 .tested = TEST_OK_PREW,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013566 .probe = probe_jedec,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013567 .probe_timing = 1, /* 150ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013568 .block_erasers =
13569 {
13570 {
13571 .eraseblocks = { {4 * 1024, 128} },
13572 .block_erase = erase_sector_jedec,
13573 }, {
13574 .eraseblocks = { {64 * 1024, 8} },
13575 .block_erase = erase_block_jedec,
13576 }, {
13577 .eraseblocks = { {512 * 1024, 1} },
13578 .block_erase = NULL,
13579 }
13580 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013581 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000013582 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013583 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013584 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013585 },
13586
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013587 {
13588 .vendor = "SST",
13589 .name = "SST49LF080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013590 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013591 .manufacture_id = SST_ID,
Elyes HAOUAS124ef382018-03-27 12:15:09 +020013592 .model_id = SST_SST49LF080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013593 .total_size = 1024,
13594 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013595 .feature_bits = FEATURE_EITHER_RESET,
Brandon Dowdyf07bf322011-03-06 18:31:11 +000013596 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013597 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000013598 .probe_timing = TIMING_FIXME,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013599 .block_erasers =
13600 {
13601 {
13602 .eraseblocks = { {4 * 1024, 256} },
13603 .block_erase = erase_sector_jedec,
13604 }, {
13605 .eraseblocks = { {64 * 1024, 16} },
13606 .block_erase = erase_block_jedec,
13607 }, {
13608 .eraseblocks = { {1024 * 1024, 1} },
13609 .block_erase = NULL,
13610 }
13611 },
Sean Nelson35727f72010-01-28 23:55:12 +000013612 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013613 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013614 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013615 },
13616
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013617 {
13618 .vendor = "SST",
13619 .name = "SST49LF160C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013620 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013621 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013622 .model_id = SST_SST49LF160C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013623 .total_size = 2048,
13624 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013625 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013626 .tested = TEST_OK_PR,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013627 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000013628 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000013629 .block_erasers =
13630 {
13631 {
13632 .eraseblocks = { {4 * 1024, 512} },
13633 .block_erase = erase_sector_49lfxxxc,
13634 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000013635 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000013636 {64 * 1024, 31},
13637 {32 * 1024, 1},
13638 {8 * 1024, 2},
13639 {16 * 1024, 1},
13640 },
Sean Nelson69e58112010-03-23 17:10:28 +000013641 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000013642 }
13643 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013644 .printlock = printlock_regspace2_block_eraser_1,
13645 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000013646 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013647 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013648 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013649 },
13650
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013651 {
13652 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013653 .name = "M29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013654 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013655 .manufacture_id = ST_ID,
13656 .model_id = ST_M29F002B,
13657 .total_size = 256,
13658 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013659 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013660 .tested = TEST_UNTESTED,
13661 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013662 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000013663 .block_erasers =
13664 {
13665 {
13666 .eraseblocks = {
13667 {16 * 1024, 1},
13668 {8 * 1024, 2},
13669 {32 * 1024, 1},
13670 {64 * 1024, 3},
13671 },
13672 .block_erase = erase_sector_jedec,
13673 }, {
13674 .eraseblocks = { {256 * 1024, 1} },
13675 .block_erase = erase_chip_block_jedec,
13676 }
13677 },
Sean Nelson35727f72010-01-28 23:55:12 +000013678 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013679 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000013680 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000013681 },
13682
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013683 {
13684 .vendor = "ST",
13685 .name = "M29F002T/NT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013686 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013687 .manufacture_id = ST_ID,
13688 .model_id = ST_M29F002T,
13689 .total_size = 256,
13690 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013691 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stefan Taunere34e3e82013-01-01 00:06:51 +000013692 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013693 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013694 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000013695 .block_erasers =
13696 {
13697 {
13698 .eraseblocks = {
13699 {64 * 1024, 3},
13700 {32 * 1024, 1},
13701 {8 * 1024, 2},
13702 {16 * 1024, 1},
13703 },
13704 .block_erase = erase_sector_jedec,
13705 }, {
13706 .eraseblocks = { {256 * 1024, 1} },
13707 .block_erase = erase_chip_block_jedec,
13708 }
13709 },
Sean Nelson35727f72010-01-28 23:55:12 +000013710 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013711 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000013712 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000013713 },
13714
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013715 {
13716 .vendor = "ST",
13717 .name = "M29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013718 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013719 .manufacture_id = ST_ID,
13720 .model_id = ST_M29F040B,
13721 .total_size = 512,
13722 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013723 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
13724 .tested = TEST_UNTESTED,
13725 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +000013726 .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */
Sean Nelson56358aa2010-01-19 16:08:51 +000013727 .block_erasers =
13728 {
13729 {
Stefan Tauner6697f712014-08-06 15:09:15 +000013730 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +000013731 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000013732 }, {
13733 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000013734 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000013735 }
13736 },
Sean Nelson35727f72010-01-28 23:55:12 +000013737 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013738 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013739 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013740 },
13741
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013742 {
Sean Nelson35727f72010-01-28 23:55:12 +000013743 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013744 .vendor = "ST",
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000013745 .name = "M29F400BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013746 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000013747 .manufacture_id = ST_ID,
13748 .model_id = ST_M29F400BB,
13749 .total_size = 512,
13750 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000013751 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000013752 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000013753 .probe = probe_jedec,
13754 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000013755 .block_erasers =
13756 {
13757 {
13758 .eraseblocks = {
13759 {16 * 1024, 1},
13760 {8 * 1024, 2},
13761 {32 * 1024, 1},
13762 {64 * 1024, 7},
13763 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000013764 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000013765 }, {
13766 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000013767 .block_erase = erase_chip_block_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000013768 }
13769 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000013770 .write = write_jedec_1,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000013771 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013772 .voltage = {4500, 5500},
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000013773 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100013774
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000013775 {
13776 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
13777 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013778 .name = "M29F400BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013779 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013780 .manufacture_id = ST_ID,
13781 .model_id = ST_M29F400BT,
13782 .total_size = 512,
13783 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000013784 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013785 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000013786 .probe = probe_jedec,
13787 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson56358aa2010-01-19 16:08:51 +000013788 .block_erasers =
13789 {
13790 {
13791 .eraseblocks = {
13792 {64 * 1024, 7},
13793 {32 * 1024, 1},
13794 {8 * 1024, 2},
13795 {16 * 1024, 1},
13796 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000013797 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000013798 }, {
13799 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000013800 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000013801 }
13802 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000013803 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013804 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013805 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000013806 },
13807
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013808 {
13809 .vendor = "ST",
13810 .name = "M29W010B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013811 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013812 .manufacture_id = ST_ID,
13813 .model_id = ST_M29W010B,
13814 .total_size = 128,
13815 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013816 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013817 .tested = TEST_UNTESTED,
13818 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013819 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000013820 .block_erasers =
13821 {
13822 {
Stefan Tauner6697f712014-08-06 15:09:15 +000013823 .eraseblocks = { {16 * 1024, 8} },
Sean Nelson56358aa2010-01-19 16:08:51 +000013824 .block_erase = erase_sector_jedec,
13825 }, {
13826 .eraseblocks = { {128 * 1024, 1} },
13827 .block_erase = erase_chip_block_jedec,
13828 }
13829 },
Sean Nelson35727f72010-01-28 23:55:12 +000013830 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013831 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013832 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013833 },
13834
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013835 {
13836 .vendor = "ST",
13837 .name = "M29W040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013838 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013839 .manufacture_id = ST_ID,
13840 .model_id = ST_M29W040B,
13841 .total_size = 512,
13842 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013843 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013844 .tested = TEST_UNTESTED,
13845 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013846 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000013847 .block_erasers =
13848 {
13849 {
Stefan Tauner6697f712014-08-06 15:09:15 +000013850 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson56358aa2010-01-19 16:08:51 +000013851 .block_erase = erase_sector_jedec,
13852 }, {
13853 .eraseblocks = { {512 * 1024, 1} },
13854 .block_erase = erase_chip_block_jedec,
13855 }
13856 },
Sean Nelson35727f72010-01-28 23:55:12 +000013857 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013858 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013859 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013860 },
13861
Stefan Taunereb582572012-09-21 12:52:50 +000013862 {
13863 .vendor = "ST",
13864 .name = "M29W512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013865 .bustype = BUS_PARALLEL,
Alan Greenfa3fcd32019-06-27 15:41:50 +100013866 .manufacture_id = ST_ID,
Stefan Taunereb582572012-09-21 12:52:50 +000013867 .model_id = ST_M29W512B,
13868 .total_size = 64,
13869 .page_size = 64 * 1024,
13870 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauner0554ca52013-07-25 22:54:25 +000013871 .tested = TEST_OK_PREW,
Stefan Taunereb582572012-09-21 12:52:50 +000013872 .probe = probe_jedec,
13873 .probe_timing = TIMING_ZERO,
13874 .block_erasers =
13875 {
13876 {
13877 .eraseblocks = { {64 * 1024, 1} },
13878 .block_erase = erase_chip_block_jedec,
13879 }
13880 },
13881 .write = write_jedec_1,
13882 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013883 .voltage = {2700, 3600},
Stefan Taunereb582572012-09-21 12:52:50 +000013884 },
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +000013885
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013886 {
13887 .vendor = "ST",
13888 .name = "M50FLW040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013889 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013890 .manufacture_id = ST_ID,
13891 .model_id = ST_M50FLW040A,
13892 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000013893 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013894 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013895 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000013896 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000013897 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000013898 .block_erasers =
13899 {
13900 {
Sean Nelson329bde72010-01-19 16:39:19 +000013901 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000013902 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000013903 {64 * 1024, 5}, /* block */
13904 {4 * 1024, 16}, /* sector */
13905 {4 * 1024, 16}, /* sector */
13906 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000013907 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000013908 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000013909 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000013910 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000013911 }
13912 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013913 .unlock = unlock_regspace2_uniform_64k,
Alan Greenc1863ca2019-06-27 15:08:03 +100013914 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013915 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013916 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000013917 },
13918
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013919 {
13920 .vendor = "ST",
13921 .name = "M50FLW040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013922 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013923 .manufacture_id = ST_ID,
13924 .model_id = ST_M50FLW040B,
13925 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000013926 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013927 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013928 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000013929 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000013930 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000013931 .block_erasers =
13932 {
13933 {
Sean Nelson329bde72010-01-19 16:39:19 +000013934 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000013935 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000013936 {4 * 1024, 16}, /* sector */
13937 {64 * 1024, 5}, /* block */
13938 {4 * 1024, 16}, /* sector */
13939 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000013940 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000013941 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000013942 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000013943 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000013944 }
13945 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013946 .unlock = unlock_regspace2_uniform_64k,
Alan Greenc1863ca2019-06-27 15:08:03 +100013947 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013948 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013949 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000013950 },
13951
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013952 {
13953 .vendor = "ST",
13954 .name = "M50FLW080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013955 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013956 .manufacture_id = ST_ID,
13957 .model_id = ST_M50FLW080A,
13958 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000013959 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013960 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013961 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +000013962 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000013963 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000013964 .block_erasers =
13965 {
13966 {
Sean Nelson329bde72010-01-19 16:39:19 +000013967 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000013968 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000013969 {64 * 1024, 13}, /* block */
13970 {4 * 1024, 16}, /* sector */
13971 {4 * 1024, 16}, /* sector */
13972 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000013973 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000013974 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000013975 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000013976 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000013977 }
13978 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013979 .printlock = printlock_regspace2_block_eraser_0,
13980 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000013981 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013982 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013983 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000013984 },
13985
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013986 {
13987 .vendor = "ST",
13988 .name = "M50FLW080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013989 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013990 .manufacture_id = ST_ID,
13991 .model_id = ST_M50FLW080B,
13992 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000013993 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000013994 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013995 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000013996 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000013997 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000013998 .block_erasers =
13999 {
14000 {
Sean Nelson329bde72010-01-19 16:39:19 +000014001 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000014002 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000014003 {4 * 1024, 16}, /* sector */
14004 {64 * 1024, 13}, /* block */
14005 {4 * 1024, 16}, /* sector */
14006 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000014007 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000014008 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000014009 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000014010 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014011 }
14012 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014013 .printlock = printlock_regspace2_block_eraser_0,
14014 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000014015 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014016 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014017 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014018 },
14019
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014020 {
14021 .vendor = "ST",
14022 .name = "M50FW002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014023 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014024 .manufacture_id = ST_ID,
14025 .model_id = ST_M50FW002,
14026 .total_size = 256,
Stefan Tauner4404f732013-09-12 08:28:56 +000014027 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014028 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014029 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +000014030 .probe = probe_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014031 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000014032 .block_erasers =
14033 {
14034 {
14035 .eraseblocks = {
14036 {64 * 1024, 3},
14037 {32 * 1024, 1},
14038 {8 * 1024, 2},
14039 {16 * 1024, 1},
14040 },
Sean Nelson28accc22010-03-19 18:47:06 +000014041 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014042 }, {
Stefan Tauner5c316f92015-02-08 21:57:52 +000014043 .eraseblocks = { {256 * 1024, 1} },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014044 .block_erase = NULL, /* Only in A/A mux mode */
Sean Nelson56358aa2010-01-19 16:08:51 +000014045 }
14046 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014047 .printlock = printlock_regspace2_block_eraser_0,
14048 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000014049 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014050 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014051 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014052 },
14053
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014054 {
14055 .vendor = "ST",
14056 .name = "M50FW016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014057 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014058 .manufacture_id = ST_ID,
14059 .model_id = ST_M50FW016,
14060 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000014061 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014062 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014063 .tested = TEST_UNTESTED,
14064 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014065 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000014066 .block_erasers =
14067 {
14068 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014069 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson28accc22010-03-19 18:47:06 +000014070 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014071 }
14072 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014073 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000014074 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014075 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014076 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014077 },
14078
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014079 {
14080 .vendor = "ST",
14081 .name = "M50FW040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014082 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014083 .manufacture_id = ST_ID,
14084 .model_id = ST_M50FW040,
14085 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000014086 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014087 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +000014088 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014089 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014090 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000014091 .block_erasers =
14092 {
14093 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014094 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000014095 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014096 }
14097 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014098 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000014099 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014100 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014101 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014102 },
14103
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014104 {
14105 .vendor = "ST",
14106 .name = "M50FW080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014107 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014108 .manufacture_id = ST_ID,
14109 .model_id = ST_M50FW080,
14110 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000014111 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014112 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014113 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014114 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014115 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000014116 .block_erasers =
14117 {
14118 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014119 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000014120 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014121 }
14122 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014123 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000014124 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014125 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014126 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014127 },
14128
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014129 {
14130 .vendor = "ST",
Stefan Tauner8c4602b2013-09-12 08:29:00 +000014131 .name = "M50LPW080",
14132 .bustype = BUS_LPC, /* A/A Mux */
14133 .manufacture_id = ST_ID,
14134 .model_id = ST_M50LPW080,
14135 .total_size = 1024,
14136 .page_size = 0,
14137 .feature_bits = FEATURE_REGISTERMAP,
14138 .tested = TEST_UNTESTED,
14139 .probe = probe_82802ab,
14140 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
14141 .block_erasers =
14142 {
14143 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014144 .eraseblocks = { {64 * 1024, 16} },
Stefan Tauner8c4602b2013-09-12 08:29:00 +000014145 .block_erase = erase_block_82802ab,
14146 }
14147 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014148 .unlock = unlock_regspace2_uniform_64k,
Stefan Tauner8c4602b2013-09-12 08:29:00 +000014149 .write = write_82802ab,
14150 .read = read_memmapped,
14151 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
14152 },
14153
14154 {
14155 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014156 .name = "M50LPW116",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014157 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014158 .manufacture_id = ST_ID,
14159 .model_id = ST_M50LPW116,
14160 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000014161 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014162 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014163 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000014164 .probe = probe_82802ab,
Udu Ogahc04ee222009-09-05 01:31:32 +000014165 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014166 .block_erasers =
14167 {
14168 {
14169 .eraseblocks = {
14170 {4 * 1024, 16},
14171 {64 * 1024, 30},
14172 {32 * 1024, 1},
14173 {8 * 1024, 2},
14174 {16 * 1024, 1},
14175 },
Sean Nelson28accc22010-03-19 18:47:06 +000014176 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000014177 }
14178 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014179 .printlock = printlock_regspace2_block_eraser_0,
14180 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000014181 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014182 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014183 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000014184 },
14185
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014186 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014187 .vendor = "Sanyo",
14188 .name = "LE25FU106B",
14189 .bustype = BUS_SPI,
14190 .manufacture_id = SANYO_ID,
14191 .model_id = SANYO_LE25FU106B,
14192 .total_size = 128,
14193 .page_size = 256,
14194 .feature_bits = FEATURE_WRSR_WREN,
14195 .tested = TEST_UNTESTED,
14196 .probe = probe_spi_res2,
14197 .probe_timing = TIMING_ZERO,
14198 .block_erasers =
14199 {
14200 /* FIXME: Is this correct?
14201 {
14202 .eraseblocks = { {2 * 1024, 64} },
14203 .block_erase = spi_block_erase_d7,
14204 },*/
14205 {
14206 .eraseblocks = { {32 * 1024, 4} },
14207 .block_erase = spi_block_erase_d8,
14208 }, {
14209 .eraseblocks = { {128 * 1024, 1} },
14210 .block_erase = spi_block_erase_c7,
14211 }
14212 },
14213 .printlock = spi_prettyprint_status_register_bp1_srwd,
14214 .unlock = spi_disable_blockprotect_bp1_srwd,
14215 .write = spi_chip_write_256,
14216 .read = spi_chip_read,
14217 .voltage = {2300, 3600},
14218 },
14219
14220 {
14221 .vendor = "Sanyo",
14222 .name = "LE25FU206",
14223 .bustype = BUS_SPI,
14224 .manufacture_id = SANYO_ID,
14225 .model_id = SANYO_LE25FU206,
14226 .total_size = 256,
14227 .page_size = 256,
14228 .feature_bits = FEATURE_WRSR_WREN,
14229 .tested = TEST_UNTESTED,
14230 .probe = probe_spi_res2,
14231 .probe_timing = TIMING_ZERO,
14232 .block_erasers =
14233 {
14234 {
14235 .eraseblocks = { {4 * 1024, 64} },
14236 .block_erase = spi_block_erase_d7,
14237 }, {
14238 .eraseblocks = { {64 * 1024, 4} },
14239 .block_erase = spi_block_erase_d8,
14240 }, {
14241 .eraseblocks = { {256 * 1024, 1} },
14242 .block_erase = spi_block_erase_c7,
14243 }
14244 },
14245 .printlock = spi_prettyprint_status_register_bp1_srwd,
14246 .unlock = spi_disable_blockprotect_bp1_srwd,
14247 .write = spi_chip_write_256,
14248 .read = spi_chip_read,
14249 .voltage = {2300, 3600},
14250 },
14251
14252 {
14253 .vendor = "Sanyo",
14254 .name = "LE25FU206A",
14255 .bustype = BUS_SPI,
14256 .manufacture_id = SANYO_ID,
14257 .model_id = SANYO_LE25FU206A,
14258 .total_size = 256,
14259 .page_size = 256,
14260 .tested = TEST_UNTESTED,
14261 .probe = probe_spi_rdid,
14262 .probe_timing = TIMING_ZERO,
14263 .block_erasers =
14264 {
14265 {
14266 .eraseblocks = { {4 * 1024, 64} },
14267 .block_erase = spi_block_erase_20,
14268 }, {
14269 .eraseblocks = { {4 * 1024, 64} },
14270 .block_erase = spi_block_erase_d7,
14271 }, {
14272 .eraseblocks = { {64 * 1024, 4} },
14273 .block_erase = spi_block_erase_d8,
14274 }, {
14275 .eraseblocks = { {256 * 1024, 1} },
14276 .block_erase = spi_block_erase_60,
14277 }, {
14278 .eraseblocks = { {256 * 1024, 1} },
14279 .block_erase = spi_block_erase_c7,
14280 }
14281 },
14282 .printlock = spi_prettyprint_status_register_bp2_srwd,
14283 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
14284 .write = spi_chip_write_256,
14285 .read = spi_chip_read,
14286 .voltage = {2300, 3600},
14287 },
14288
14289 {
14290 .vendor = "Sanyo",
14291 .name = "LE25FU406B",
14292 .bustype = BUS_SPI,
14293 .manufacture_id = SANYO_ID,
14294 .model_id = SANYO_LE25FU406B,
14295 .total_size = 512,
14296 .page_size = 256,
14297 .feature_bits = FEATURE_WRSR_WREN,
14298 .tested = TEST_OK_PREW,
14299 .probe = probe_spi_res2,
14300 .probe_timing = TIMING_ZERO,
14301 .block_erasers =
14302 {
14303 {
14304 .eraseblocks = { {4 * 1024, 128} },
14305 .block_erase = spi_block_erase_d7,
14306 }, {
14307 .eraseblocks = { {64 * 1024, 8} },
14308 .block_erase = spi_block_erase_d8,
14309 }, {
14310 .eraseblocks = { {512 * 1024, 1} },
14311 .block_erase = spi_block_erase_c7,
14312 }
14313 },
14314 .printlock = spi_prettyprint_status_register_bp2_srwd,
14315 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
14316 .write = spi_chip_write_256,
14317 .read = spi_chip_read,
14318 .voltage = {2300, 3600},
14319 },
14320
14321 {
14322 .vendor = "Sanyo",
14323 .name = "LE25FU406C/LE25U40CMC",
14324 .bustype = BUS_SPI,
14325 .manufacture_id = SANYO_ID,
14326 .model_id = SANYO_LE25FU406C,
14327 .total_size = 512,
14328 .page_size = 256,
14329 .feature_bits = FEATURE_WRSR_WREN,
14330 .tested = TEST_OK_PREW,
14331 .probe = probe_spi_rdid,
14332 .probe_timing = TIMING_ZERO,
14333 .block_erasers =
14334 {
14335 {
14336 .eraseblocks = { {4 * 1024, 128} },
14337 .block_erase = spi_block_erase_20,
14338 }, {
14339 .eraseblocks = { {4 * 1024, 128} },
14340 .block_erase = spi_block_erase_d7,
14341 }, {
14342 .eraseblocks = { {64 * 1024, 8} },
14343 .block_erase = spi_block_erase_d8,
14344 }, {
14345 .eraseblocks = { {512 * 1024, 1} },
14346 .block_erase = spi_block_erase_60,
14347 }, {
14348 .eraseblocks = { {512 * 1024, 1} },
14349 .block_erase = spi_block_erase_c7,
14350 }
14351 },
14352 .printlock = spi_prettyprint_status_register_bp2_srwd,
14353 .unlock = spi_disable_blockprotect_bp2_srwd,
14354 .write = spi_chip_write_256,
14355 .read = spi_chip_read, /* Fast read (0x0B), dual read (0x3B) and dual I/O (0xBB) supported */
14356 .voltage = {2300, 3600},
14357 },
14358
14359 {
14360 .vendor = "Sanyo",
14361 .name = "LE25FW106",
14362 .bustype = BUS_SPI,
14363 .manufacture_id = SANYO_ID,
14364 .model_id = SANYO_LE25FW106,
14365 .total_size = 128,
14366 .page_size = 256,
14367 .feature_bits = FEATURE_WRSR_WREN,
14368 .tested = TEST_OK_PREW,
14369 .probe = probe_spi_res2,
14370 .probe_timing = TIMING_ZERO,
14371 .block_erasers =
14372 {
14373 {
14374 .eraseblocks = { {2 * 1024, 64} },
14375 .block_erase = spi_block_erase_d7,
14376 }, {
14377 .eraseblocks = { {32 * 1024, 4} },
14378 .block_erase = spi_block_erase_d8,
14379 }, {
14380 .eraseblocks = { {128 * 1024, 1} },
14381 .block_erase = spi_block_erase_c7,
14382 }
14383 },
14384 .printlock = spi_prettyprint_status_register_bp1_srwd, /* FIXME: Add ERSER error flag. */
14385 .unlock = spi_disable_blockprotect_bp1_srwd,
14386 .write = spi_chip_write_256,
14387 .read = spi_chip_read,
14388 .voltage = {2700, 3600},
14389 },
14390
14391 {
14392 .vendor = "Sanyo",
14393 .name = "LE25FW203A",
14394 .bustype = BUS_SPI,
14395 .manufacture_id = SANYO_ID,
14396 .model_id = SANYO_LE25FW203A,
14397 .total_size = 256,
14398 .page_size = 256,
14399 .tested = TEST_UNTESTED,
14400 .probe = probe_spi_rdid,
14401 .probe_timing = TIMING_ZERO,
14402 .block_erasers =
14403 {
14404 {
14405 .eraseblocks = { {256, 1024} },
14406 .block_erase = spi_block_erase_db,
14407 }, {
14408 .eraseblocks = { {64 * 1024, 4} },
14409 .block_erase = spi_block_erase_d8,
14410 }, {
14411 .eraseblocks = { {256 * 1024, 1} },
14412 .block_erase = spi_block_erase_c7,
14413 }
14414 },
14415 .printlock = spi_prettyprint_status_register_default_welwip,
14416 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
14417 .write = spi_chip_write_256,
14418 .read = spi_chip_read,
14419 .voltage = {2700, 3600},
14420 },
14421
14422 {
14423 .vendor = "Sanyo",
14424 .name = "LE25FW403A",
14425 .bustype = BUS_SPI,
14426 .manufacture_id = SANYO_ID,
14427 .model_id = SANYO_LE25FW403A,
14428 .total_size = 512,
14429 .page_size = 256,
14430 .tested = TEST_UNTESTED,
14431 .probe = probe_spi_rdid,
14432 .probe_timing = TIMING_ZERO,
14433 .block_erasers =
14434 {
14435 {
14436 .eraseblocks = { {256, 2 * 1024} },
14437 .block_erase = spi_block_erase_db,
14438 }, {
14439 .eraseblocks = { {64 * 1024, 8} },
14440 .block_erase = spi_block_erase_d8,
14441 }, {
14442 .eraseblocks = { {512 * 1024, 1} },
14443 .block_erase = spi_block_erase_c7,
14444 }
14445 },
14446 .printlock = spi_prettyprint_status_register_default_welwip,
14447 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
14448 .write = spi_chip_write_256,
14449 .read = spi_chip_read,
14450 .voltage = {2700, 3600},
14451 },
14452
14453 {
14454 .vendor = "Sanyo",
14455 .name = "LE25FW406A",
14456 .bustype = BUS_SPI,
14457 .manufacture_id = SANYO_ID,
14458 .model_id = SANYO_LE25FW406A,
14459 .total_size = 512,
14460 .page_size = 256,
14461 .feature_bits = FEATURE_WRSR_WREN,
14462 .tested = TEST_OK_PREW,
14463 .probe = probe_spi_res2,
14464 .probe_timing = TIMING_ZERO,
14465 .block_erasers =
14466 {
14467 {
14468 .eraseblocks = { {4 * 1024, 128} },
14469 .block_erase = spi_block_erase_d7,
14470 }, {
14471 .eraseblocks = { {64 * 1024, 8} },
14472 .block_erase = spi_block_erase_d8,
14473 }, {
14474 .eraseblocks = { {512 * 1024, 1} },
14475 .block_erase = spi_block_erase_c7,
14476 }
14477 },
14478 .printlock = spi_prettyprint_status_register_plain,
14479 .unlock = spi_disable_blockprotect,
14480 .write = spi_chip_write_256,
14481 .read = spi_chip_read,
14482 .voltage = {2700, 3600},
14483 },
14484
14485 {
14486 .vendor = "Sanyo",
14487 .name = "LE25FW418A",
14488 .bustype = BUS_SPI,
14489 .manufacture_id = SANYO_ID,
14490 .model_id = SANYO_LE25FW418A,
14491 .total_size = 512,
14492 .page_size = 256,
14493 .feature_bits = FEATURE_WRSR_WREN,
14494 .tested = TEST_UNTESTED,
14495 .probe = probe_spi_res2,
14496 .probe_timing = TIMING_ZERO,
14497 .block_erasers =
14498 {
14499 {
14500 .eraseblocks = { {4 * 1024, 128} },
14501 .block_erase = spi_block_erase_d7,
14502 }, {
14503 .eraseblocks = { {64 * 1024, 8} },
14504 .block_erase = spi_block_erase_d8,
14505 }, {
14506 .eraseblocks = { {512 * 1024, 1} },
14507 .block_erase = spi_block_erase_c7,
14508 }
14509 },
14510 .printlock = spi_prettyprint_status_register_bp2_srwd,
14511 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
14512 .write = spi_chip_write_256,
14513 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
14514 .voltage = {2700, 3600},
14515 },
14516
14517 {
14518 .vendor = "Sanyo",
14519 .name = "LE25FW806",
14520 .bustype = BUS_SPI,
14521 .manufacture_id = SANYO_ID,
14522 .model_id = SANYO_LE25FW806,
14523 .total_size = 1024,
14524 .page_size = 256,
14525 .feature_bits = FEATURE_WRSR_WREN,
14526 .tested = TEST_UNTESTED,
14527 .probe = probe_spi_res2,
14528 .probe_timing = TIMING_ZERO,
14529 .block_erasers =
14530 {
14531 {
14532 .eraseblocks = { {4 * 1024, 256} },
14533 .block_erase = spi_block_erase_20,
14534 }, {
14535 .eraseblocks = { {4 * 1024, 256} },
14536 .block_erase = spi_block_erase_d7,
14537 }, {
14538 .eraseblocks = { {64 * 1024, 16} },
14539 .block_erase = spi_block_erase_d8,
14540 }, {
14541 .eraseblocks = { {1024 * 1024, 1} },
14542 .block_erase = spi_block_erase_c7,
14543 }
14544 },
14545 .printlock = spi_prettyprint_status_register_bp2_srwd,
14546 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
14547 .write = spi_chip_write_256,
14548 .read = spi_chip_read,
14549 .voltage = {2700, 3600},
14550 },
14551
14552 {
14553 .vendor = "Sanyo",
14554 .name = "LE25FW808",
14555 .bustype = BUS_SPI,
14556 .manufacture_id = SANYO_ID,
14557 .model_id = SANYO_LE25FW808,
14558 .total_size = 1024,
14559 .page_size = 256,
14560 .feature_bits = FEATURE_WRSR_WREN,
14561 .tested = TEST_UNTESTED,
14562 .probe = probe_spi_res2,
14563 .probe_timing = TIMING_ZERO,
14564 .block_erasers =
14565 {
14566 {
14567 .eraseblocks = { {8 * 1024, 128} },
14568 .block_erase = spi_block_erase_d7,
14569 }, {
14570 .eraseblocks = { {64 * 1024, 16} },
14571 .block_erase = spi_block_erase_d8,
14572 }, {
14573 .eraseblocks = { {1024 * 1024, 1} },
14574 .block_erase = spi_block_erase_c7,
14575 }
14576 },
14577 .printlock = spi_prettyprint_status_register_bp2_srwd,
14578 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
14579 .write = spi_chip_write_256,
14580 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
14581 .voltage = {2700, 3600},
14582 },
14583
14584 {
14585 .vendor = "Sharp",
14586 .name = "LH28F008BJT-BTLZ1",
14587 .bustype = BUS_PARALLEL,
14588 .manufacture_id = SHARP_ID,
14589 .model_id = SHARP_LH28F008BJ__PB,
14590 .total_size = 1024,
14591 .page_size = 64 * 1024,
14592 .tested = TEST_OK_PREW,
14593 .probe = probe_82802ab,
14594 .probe_timing = TIMING_ZERO,
14595 .block_erasers =
14596 {
14597 {
14598 .eraseblocks = {
14599 {8 * 1024, 8},
14600 {64 * 1024, 15}
14601 },
14602 .block_erase = erase_block_82802ab,
14603 }, {
14604 .eraseblocks = { {1024 * 1024, 1} },
14605 .block_erase = erase_sector_49lfxxxc,
14606 }
14607 },
14608 .unlock = unlock_lh28f008bjt,
14609 .write = write_82802ab,
14610 .read = read_memmapped,
14611 .voltage = {2700, 3600},
14612 },
14613
14614 {
14615 .vendor = "Sharp",
14616 .name = "LHF00L04",
14617 .bustype = BUS_FWH, /* A/A Mux */
14618 .manufacture_id = SHARP_ID,
14619 .model_id = SHARP_LHF00L04,
14620 .total_size = 1024,
14621 .page_size = 64 * 1024,
14622 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
14623 .tested = TEST_UNTESTED,
14624 .probe = probe_82802ab,
14625 .probe_timing = TIMING_ZERO,
14626 .block_erasers =
14627 {
14628 {
14629 .eraseblocks = {
14630 {64 * 1024, 15},
14631 {8 * 1024, 8}
14632 },
14633 .block_erase = erase_block_82802ab,
14634 }, {
14635 .eraseblocks = {
14636 {1024 * 1024, 1}
14637 },
14638 .block_erase = NULL, /* 30 D0, only in A/A mux mode */
14639 },
14640 },
14641 .unlock = unlock_regspace2_uniform_64k,
14642 .write = write_82802ab,
14643 .read = read_memmapped,
14644 .voltage = {3000, 3600},
14645 },
14646
14647 {
14648 .vendor = "Spansion",
14649 .name = "S25FL004A",
14650 .bustype = BUS_SPI,
14651 .manufacture_id = SPANSION_ID,
14652 .model_id = SPANSION_S25FL004A,
14653 .total_size = 512,
14654 .page_size = 256,
14655 .feature_bits = FEATURE_WRSR_WREN,
14656 .tested = TEST_UNTESTED,
14657 .probe = probe_spi_rdid,
14658 .probe_timing = TIMING_ZERO,
14659 .block_erasers =
14660 {
14661 {
14662 .eraseblocks = { {64 * 1024, 8} },
14663 .block_erase = spi_block_erase_d8,
14664 }, {
14665 .eraseblocks = { {512 * 1024, 1} },
14666 .block_erase = spi_block_erase_c7,
14667 }
14668 },
14669 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14670 .unlock = spi_disable_blockprotect,
14671 .write = spi_chip_write_256,
14672 .read = spi_chip_read,
14673 .voltage = {2700, 3600},
14674 },
14675
14676 {
14677 .vendor = "Spansion",
14678 .name = "S25FL008A",
14679 .bustype = BUS_SPI,
14680 .manufacture_id = SPANSION_ID,
14681 .model_id = SPANSION_S25FL008A,
14682 .total_size = 1024,
14683 .page_size = 256,
14684 .feature_bits = FEATURE_WRSR_WREN,
14685 .tested = TEST_OK_PRE,
14686 .probe = probe_spi_rdid,
14687 .probe_timing = TIMING_ZERO,
14688 .block_erasers =
14689 {
14690 {
14691 .eraseblocks = { {64 * 1024, 16} },
14692 .block_erase = spi_block_erase_d8,
14693 }, {
14694 .eraseblocks = { {1024 * 1024, 1} },
14695 .block_erase = spi_block_erase_c7,
14696 }
14697 },
14698 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14699 .unlock = spi_disable_blockprotect,
14700 .write = spi_chip_write_256,
14701 .read = spi_chip_read,
14702 .voltage = {2700, 3600},
14703 },
14704
14705 {
14706 .vendor = "Spansion",
14707 .name = "S25FL016A",
14708 .bustype = BUS_SPI,
14709 .manufacture_id = SPANSION_ID,
14710 .model_id = SPANSION_S25FL016A,
14711 .total_size = 2048,
14712 .page_size = 256,
14713 .feature_bits = FEATURE_WRSR_WREN,
14714 .tested = TEST_OK_PREW,
14715 .probe = probe_spi_rdid,
14716 .probe_timing = TIMING_ZERO,
14717 .block_erasers =
14718 {
14719 {
14720 .eraseblocks = { {64 * 1024, 32} },
14721 .block_erase = spi_block_erase_d8,
14722 }, {
14723 .eraseblocks = { {2 * 1024 * 1024, 1} },
14724 .block_erase = spi_block_erase_c7,
14725 }
14726 },
14727 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14728 .unlock = spi_disable_blockprotect,
14729 .write = spi_chip_write_256,
14730 .read = spi_chip_read,
14731 .voltage = {2700, 3600},
14732 },
14733
14734 {
14735 .vendor = "Spansion",
14736 .name = "S25FL032A/P",
14737 .bustype = BUS_SPI,
14738 .manufacture_id = SPANSION_ID,
14739 .model_id = SPANSION_S25FL032A,
14740 .total_size = 4096,
14741 .page_size = 256,
14742 .feature_bits = FEATURE_WRSR_WREN,
14743 .tested = TEST_OK_PREW,
14744 .probe = probe_spi_rdid,
14745 .probe_timing = TIMING_ZERO,
14746 .block_erasers =
14747 {
14748 {
14749 .eraseblocks = { {64 * 1024, 64} },
14750 .block_erase = spi_block_erase_d8,
14751 }, {
14752 .eraseblocks = { {4 * 1024 * 1024, 1} },
14753 .block_erase = spi_block_erase_c7,
14754 }
14755 },
14756 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14757 .unlock = spi_disable_blockprotect,
14758 .write = spi_chip_write_256,
14759 .read = spi_chip_read,
14760 .voltage = {2700, 3600},
14761 },
14762
14763 {
14764 .vendor = "Spansion",
14765 .name = "S25FL064A/P",
14766 .bustype = BUS_SPI,
14767 .manufacture_id = SPANSION_ID,
14768 .model_id = SPANSION_S25FL064A,
14769 .total_size = 8192,
14770 .page_size = 256,
14771 .feature_bits = FEATURE_WRSR_WREN,
14772 .tested = TEST_OK_PREW,
14773 .probe = probe_spi_rdid,
14774 .probe_timing = TIMING_ZERO,
14775 .block_erasers =
14776 {
14777 {
14778 .eraseblocks = { {64 * 1024, 128} },
14779 .block_erase = spi_block_erase_d8,
14780 }, {
14781 .eraseblocks = { {8 * 1024 * 1024, 1} },
14782 .block_erase = spi_block_erase_c7,
14783 }
14784 },
14785 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14786 .unlock = spi_disable_blockprotect,
14787 .write = spi_chip_write_256,
14788 .read = spi_chip_read,
14789 .voltage = {2700, 3600},
14790 },
14791
14792 {
14793 .vendor = "Spansion",
14794 .name = "S25FL116K/S25FL216K", /* FIXME: separate them */
14795 .bustype = BUS_SPI,
14796 .manufacture_id = SPANSION_ID,
14797 .model_id = SPANSION_S25FL216,
14798 .total_size = 2048,
14799 .page_size = 256,
14800 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (S25FL116K only) */
14801 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
14802 .tested = TEST_UNTESTED,
14803 .probe = probe_spi_rdid,
14804 .probe_timing = TIMING_ZERO,
14805 .block_erasers =
14806 {
14807 {
14808 .eraseblocks = { {4 * 1024, 512} },
14809 .block_erase = spi_block_erase_20,
14810 }, {
14811 .eraseblocks = { {64 * 1024, 32} },
14812 .block_erase = spi_block_erase_d8,
14813 }, {
14814 .eraseblocks = { { 2048 * 1024, 1} },
14815 .block_erase = spi_block_erase_60,
14816 }, {
14817 .eraseblocks = { { 2048 * 1024, 1} },
14818 .block_erase = spi_block_erase_c7,
14819 }
14820 },
14821 .printlock = spi_prettyprint_status_register_bp3_srwd,
14822 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
14823 .write = spi_chip_write_256,
14824 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
14825 .voltage = {2700, 3600},
14826 },
14827
14828 {
14829 .vendor = "Spansion",
14830 .name = "S25FL127S-256kB", /* uniform 256kB sectors */
14831 .bustype = BUS_SPI,
14832 .manufacture_id = SPANSION_ID,
14833 .model_id = SPANSION_S25FL128,
14834 .total_size = 16384,
14835 .page_size = 512,
14836 /* supports 4B addressing */
14837 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
14838 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
14839 .tested = TEST_UNTESTED,
14840 .probe = probe_spi_rdid,
14841 .probe_timing = TIMING_ZERO,
14842 .block_erasers =
14843 {
14844 {
14845 .eraseblocks = { {256 * 1024, 64} },
14846 .block_erase = spi_block_erase_d8,
14847 }, {
14848 .eraseblocks = { { 16384 * 1024, 1} },
14849 .block_erase = spi_block_erase_60,
14850 }, {
14851 .eraseblocks = { { 16384 * 1024, 1} },
14852 .block_erase = spi_block_erase_c7,
14853 }
14854 },
14855 .printlock = spi_prettyprint_status_register_bp2_srwd,
14856 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
14857 .write = spi_chip_write_256, /* Multi I/O supported */
14858 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
14859 .voltage = {2700, 3600},
14860 },
14861
14862 {
14863 .vendor = "Spansion",
14864 .name = "S25FL127S-64kB", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
14865 .bustype = BUS_SPI,
14866 .manufacture_id = SPANSION_ID,
14867 .model_id = SPANSION_S25FL128,
14868 .total_size = 16384,
14869 .page_size = 256,
14870 /* supports 4B addressing */
14871 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
14872 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
14873 .tested = TEST_OK_PREW,
14874 /* FIXME: we should distinguish the configuration on probing time like we do for AT45DB chips */
14875 .probe = probe_spi_rdid,
14876 .probe_timing = TIMING_ZERO,
14877 .block_erasers =
14878 {
14879 {
14880 /* This chip supports erasing of 32 so-called "parameter sectors" with
14881 * opcode 0x20 which may be configured to be on top or bottom of the address
14882 * space. Trying to access an address outside these 4kB blocks does have no
14883 * effect on the memory contents, e.g.
14884 .eraseblocks = {
14885 {4 * 1024, 32},
14886 {64 * 1024, 254} // inaccessible
14887 },
14888 .block_erase = spi_block_erase_20,
14889 }, { */
14890 .eraseblocks = { { 64 * 1024, 256} },
14891 .block_erase = spi_block_erase_d8,
14892 }, {
14893 .eraseblocks = { { 16384 * 1024, 1} },
14894 .block_erase = spi_block_erase_60,
14895 }, {
14896 .eraseblocks = { { 16384 * 1024, 1} },
14897 .block_erase = spi_block_erase_c7,
14898 }
14899 },
14900 .printlock = spi_prettyprint_status_register_bp2_srwd,
14901 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
14902 .write = spi_chip_write_256, /* Multi I/O supported */
14903 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
14904 .voltage = {2700, 3600},
14905 },
14906
14907 {
14908 .vendor = "Spansion",
14909 .name = "S25FL128P......0", /* uniform 64 kB sectors */
14910 .bustype = BUS_SPI,
14911 .manufacture_id = SPANSION_ID,
14912 .model_id = SPANSION_S25FL128,
14913 .total_size = 16384,
14914 .page_size = 256,
14915 .feature_bits = FEATURE_WRSR_WREN,
14916 .tested = TEST_OK_PREW,
14917 .probe = probe_spi_rdid,
14918 .probe_timing = TIMING_ZERO,
14919 .block_erasers =
14920 {
14921 {
14922 .eraseblocks = { {64 * 1024, 256} },
14923 .block_erase = spi_block_erase_20,
14924 }, {
14925 .eraseblocks = { {64 * 1024, 256} },
14926 .block_erase = spi_block_erase_d8,
14927 }, {
14928 .eraseblocks = { { 16384 * 1024, 1} },
14929 .block_erase = spi_block_erase_60,
14930 }, {
14931 .eraseblocks = { { 16384 * 1024, 1} },
14932 .block_erase = spi_block_erase_c7,
14933 }
14934 },
14935 .printlock = spi_prettyprint_status_register_bp3_srwd,
14936 .unlock = spi_disable_blockprotect_bp3_srwd,
14937 .write = spi_chip_write_256,
14938 .read = spi_chip_read, /* Fast read (0x0B) supported */
14939 .voltage = {2700, 3600},
14940 },
14941
14942 {
14943 .vendor = "Spansion",
14944 .name = "S25FL128P......1", /* uniform 256kB sectors */
14945 .bustype = BUS_SPI,
14946 .manufacture_id = SPANSION_ID,
14947 .model_id = SPANSION_S25FL128,
14948 .total_size = 16384,
14949 .page_size = 256,
14950 .feature_bits = FEATURE_WRSR_WREN,
14951 .tested = TEST_UNTESTED,
14952 .probe = probe_spi_rdid,
14953 .probe_timing = TIMING_ZERO,
14954 .block_erasers =
14955 {
14956 {
14957 .eraseblocks = { {256 * 1024, 64} },
14958 .block_erase = spi_block_erase_d8,
14959 }, {
14960 .eraseblocks = { { 16384 * 1024, 1} },
14961 .block_erase = spi_block_erase_c7,
14962 }
14963 },
14964 .printlock = spi_prettyprint_status_register_bp2_srwd,
14965 .unlock = spi_disable_blockprotect_bp2_srwd,
14966 .write = spi_chip_write_256,
14967 .read = spi_chip_read, /* Fast read (0x0B) supported */
14968 .voltage = {2700, 3600},
14969 },
14970
14971 {
14972 .vendor = "Spansion",
14973 .name = "S25FL128S......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
14974 .bustype = BUS_SPI,
14975 .manufacture_id = SPANSION_ID,
14976 .model_id = SPANSION_S25FL128,
14977 .total_size = 16384,
14978 .page_size = 256,
14979 /* supports 4B addressing */
14980 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
14981 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
14982 .tested = TEST_OK_PREW,
14983 .probe = probe_spi_rdid,
14984 .probe_timing = TIMING_ZERO,
14985 .block_erasers =
14986 {
14987 {
14988 /* This chip supports erasing of the 32 so-called "parameter sectors" with
14989 * opcode 0x20. Trying to access an address outside these 4kB blocks does
14990 * have no effect on the memory contents, but sets a flag in the SR.
14991 .eraseblocks = {
14992 {4 * 1024, 32},
14993 {64 * 1024, 254} // inaccessible
14994 },
14995 .block_erase = spi_block_erase_20,
14996 }, { */
14997 .eraseblocks = { { 64 * 1024, 256} },
14998 .block_erase = spi_block_erase_d8,
14999 }, {
15000 .eraseblocks = { { 16384 * 1024, 1} },
15001 .block_erase = spi_block_erase_60,
15002 }, {
15003 .eraseblocks = { { 16384 * 1024, 1} },
15004 .block_erase = spi_block_erase_c7,
15005 }
15006 },
15007 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
15008 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
15009 .write = spi_chip_write_256, /* Multi I/O supported */
15010 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
15011 .voltage = {2700, 3600},
15012 },
15013
15014 {
15015 .vendor = "Spansion",
15016 .name = "S25FL128S......1", /* uniform 256 kB sectors */
15017 .bustype = BUS_SPI,
15018 .manufacture_id = SPANSION_ID,
15019 .model_id = SPANSION_S25FL128,
15020 .total_size = 16384,
15021 .page_size = 512,
15022 /* supports 4B addressing */
15023 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
15024 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
15025 .tested = TEST_UNTESTED,
15026 .probe = probe_spi_rdid,
15027 .probe_timing = TIMING_ZERO,
15028 .block_erasers =
15029 {
15030 {
15031 .eraseblocks = { {256 * 1024, 64} },
15032 .block_erase = spi_block_erase_d8,
15033 }, {
15034 .eraseblocks = { { 16384 * 1024, 1} },
15035 .block_erase = spi_block_erase_60,
15036 }, {
15037 .eraseblocks = { { 16384 * 1024, 1} },
15038 .block_erase = spi_block_erase_c7,
15039 }
15040 },
15041 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
15042 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
15043 .write = spi_chip_write_256, /* Multi I/O supported */
15044 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
15045 .voltage = {2700, 3600},
15046 },
15047
15048 {
15049 .vendor = "Spansion",
15050 .name = "S25FL129P......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
15051 .bustype = BUS_SPI,
15052 .manufacture_id = SPANSION_ID,
15053 .model_id = SPANSION_S25FL128,
15054 .total_size = 16384,
15055 .page_size = 256,
15056 /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */
15057 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
15058 .tested = TEST_OK_PREW,
15059 .probe = probe_spi_rdid,
15060 .probe_timing = TIMING_ZERO,
15061 .block_erasers =
15062 {
15063 {
15064 /* FIXME: This chip supports erasing of the 32 so-called "parameter sectors" with
15065 * opcode 0x20. Trying to access an address outside these 4kB blocks does have no
15066 * effect on the memory contents, but sets a flag in the SR.
15067 .eraseblocks = {
15068 {4 * 1024, 32},
15069 {64 * 1024, 254} // inaccessible
15070 },
15071 .block_erase = spi_block_erase_20,
15072 }, { */
15073 /* FIXME: Additionally it also supports erase opcode 40h for the respective 2*4 kB pairs
15074 .eraseblocks = {
15075 {8 * 1024, 16},
15076 {64 * 1024, 254} // inaccessible
15077 },
15078 .block_erase = spi_block_erase_40,
15079 }, { */
15080 .eraseblocks = { { 64 * 1024, 256} },
15081 .block_erase = spi_block_erase_d8,
15082 }, {
15083 .eraseblocks = { { 16384 * 1024, 1} },
15084 .block_erase = spi_block_erase_60,
15085 }, {
15086 .eraseblocks = { { 16384 * 1024, 1} },
15087 .block_erase = spi_block_erase_c7,
15088 }
15089 },
15090 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */
15091 .unlock = spi_disable_blockprotect_bp2_srwd,
15092 .write = spi_chip_write_256, /* Multi I/O supported */
15093 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
15094 .voltage = {2700, 3600},
15095 },
15096
15097 {
15098 .vendor = "Spansion",
15099 .name = "S25FL129P......1", /* uniform 256 kB sectors */
15100 .bustype = BUS_SPI,
15101 .manufacture_id = SPANSION_ID,
15102 .model_id = SPANSION_S25FL128,
15103 .total_size = 16384,
15104 .page_size = 256,
15105 /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */
15106 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
15107 .tested = TEST_UNTESTED,
15108 .probe = probe_spi_rdid,
15109 .probe_timing = TIMING_ZERO,
15110 .block_erasers =
15111 {
15112 {
15113 .eraseblocks = { {256 * 1024, 64} },
15114 .block_erase = spi_block_erase_d8,
15115 }, {
15116 .eraseblocks = { { 16384 * 1024, 1} },
15117 .block_erase = spi_block_erase_60,
15118 }, {
15119 .eraseblocks = { { 16384 * 1024, 1} },
15120 .block_erase = spi_block_erase_c7,
15121 }
15122 },
15123 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */
15124 .unlock = spi_disable_blockprotect_bp2_srwd,
15125 .write = spi_chip_write_256, /* Multi I/O supported */
15126 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
15127 .voltage = {2700, 3600},
15128 },
15129
15130 {
15131 .vendor = "Spansion",
15132 .name = "S25FL132K",
15133 .bustype = BUS_SPI,
15134 .manufacture_id = SPANSION_ID,
15135 .model_id = SPANSION_S25FL132K,
15136 .total_size = 4096,
15137 .page_size = 256,
15138 /* OTP: 768B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
15139 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
15140 .tested = TEST_UNTESTED,
15141 .probe = probe_spi_rdid,
15142 .probe_timing = TIMING_ZERO,
15143 .block_erasers =
15144 {
15145 {
15146 .eraseblocks = { {4 * 1024, 1024} },
15147 .block_erase = spi_block_erase_20,
15148 }, {
15149 .eraseblocks = { {64 * 1024, 64} },
15150 .block_erase = spi_block_erase_d8,
15151 }, {
15152 .eraseblocks = { { 4096 * 1024, 1} },
15153 .block_erase = spi_block_erase_60,
15154 }, {
15155 .eraseblocks = { { 4096 * 1024, 1} },
15156 .block_erase = spi_block_erase_c7,
15157 }
15158 },
15159 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
15160 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
15161 .write = spi_chip_write_256,
15162 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
15163 .voltage = {2700, 3600},
15164 },
15165
15166 {
15167 .vendor = "Spansion",
15168 .name = "S25FL164K",
15169 .bustype = BUS_SPI,
15170 .manufacture_id = SPANSION_ID,
15171 .model_id = SPANSION_S25FL164K,
15172 .total_size = 8192,
15173 .page_size = 256,
15174 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
15175 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
15176 .tested = TEST_OK_PREW,
15177 .probe = probe_spi_rdid,
15178 .probe_timing = TIMING_ZERO,
15179 .block_erasers =
15180 {
15181 {
15182 .eraseblocks = { {4 * 1024, 2048} },
15183 .block_erase = spi_block_erase_20,
15184 }, {
15185 .eraseblocks = { {64 * 1024, 128} },
15186 .block_erase = spi_block_erase_d8,
15187 }, {
15188 .eraseblocks = { { 8192 * 1024, 1} },
15189 .block_erase = spi_block_erase_60,
15190 }, {
15191 .eraseblocks = { { 8192 * 1024, 1} },
15192 .block_erase = spi_block_erase_c7,
15193 }
15194 },
15195 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
15196 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
15197 .write = spi_chip_write_256,
15198 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
15199 .voltage = {2700, 3600},
15200 },
15201
15202 {
15203 .vendor = "Spansion",
15204 .name = "S25FL204K",
15205 .bustype = BUS_SPI,
15206 .manufacture_id = SPANSION_ID,
15207 .model_id = SPANSION_S25FL204,
15208 .total_size = 512,
15209 .page_size = 256,
15210 .feature_bits = FEATURE_WRSR_WREN,
15211 .tested = TEST_OK_PR,
15212 .probe = probe_spi_rdid,
15213 .probe_timing = TIMING_ZERO,
15214 .block_erasers =
15215 {
15216 {
15217 .eraseblocks = { {4 * 1024, 128} },
15218 .block_erase = spi_block_erase_20,
15219 }, {
15220 .eraseblocks = { {64 * 1024, 8} },
15221 .block_erase = spi_block_erase_d8,
15222 }, {
15223 .eraseblocks = { { 512 * 1024, 1} },
15224 .block_erase = spi_block_erase_60,
15225 }, {
15226 .eraseblocks = { { 512 * 1024, 1} },
15227 .block_erase = spi_block_erase_c7,
15228 }
15229 },
15230 .printlock = spi_prettyprint_status_register_bp3_srwd,
15231 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
15232 .write = spi_chip_write_256,
15233 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
15234 .voltage = {2700, 3600},
15235 },
15236
15237 {
15238 .vendor = "Spansion",
15239 .name = "S25FL208K",
15240 .bustype = BUS_SPI,
15241 .manufacture_id = SPANSION_ID,
15242 .model_id = SPANSION_S25FL208,
15243 .total_size = 1024,
15244 .page_size = 256,
15245 .feature_bits = FEATURE_WRSR_WREN,
15246 .tested = TEST_OK_PREW,
15247 .probe = probe_spi_rdid,
15248 .probe_timing = TIMING_ZERO,
15249 .block_erasers =
15250 {
15251 {
15252 .eraseblocks = { {4 * 1024, 256} },
15253 .block_erase = spi_block_erase_20,
15254 }, {
15255 .eraseblocks = { {64 * 1024, 16} },
15256 .block_erase = spi_block_erase_d8,
15257 }, {
15258 .eraseblocks = { { 1024 * 1024, 1} },
15259 .block_erase = spi_block_erase_60,
15260 }, {
15261 .eraseblocks = { { 1024 * 1024, 1} },
15262 .block_erase = spi_block_erase_c7,
15263 }
15264 },
15265 .printlock = spi_prettyprint_status_register_bp3_srwd,
15266 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
15267 .write = spi_chip_write_256,
15268 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
15269 .voltage = {2700, 3600},
15270 },
15271
15272 {
15273 .vendor = "Spansion",
15274 .name = "S25FL256S......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
15275 .bustype = BUS_SPI,
15276 .manufacture_id = SPANSION_ID,
15277 .model_id = SPANSION_S25FL256,
15278 .total_size = 32768,
15279 .page_size = 256,
15280 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
15281 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_EAR7,
15282 .tested = TEST_OK_PREW,
15283 .probe = probe_spi_rdid,
15284 .probe_timing = TIMING_ZERO,
15285 .block_erasers =
15286 {
15287 {
15288 /* This chip supports erasing of the 32 so-called "parameter sectors" with
15289 * opcode 0x20. Trying to access an address outside these 4kB blocks does
15290 * have no effect on the memory contents, but sets a flag in the SR.
15291 .eraseblocks = {
15292 {4 * 1024, 32},
15293 {64 * 1024, 254} // inaccessible
15294 },
15295 .block_erase = spi_block_erase_20,
15296 }, { */
15297 .eraseblocks = { { 64 * 1024, 512} },
15298 .block_erase = spi_block_erase_dc,
15299 }, {
15300 .eraseblocks = { { 64 * 1024, 512} },
15301 .block_erase = spi_block_erase_d8,
15302 }, {
15303 .eraseblocks = { { 32768 * 1024, 1} },
15304 .block_erase = spi_block_erase_60,
15305 }, {
15306 .eraseblocks = { { 32768 * 1024, 1} },
15307 .block_erase = spi_block_erase_c7,
15308 }
15309 },
15310 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
15311 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
15312 .write = spi_chip_write_256, /* Multi I/O supported */
15313 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
15314 .voltage = {2700, 3600},
15315 .wrea_override = 0x17,
15316 },
15317
15318 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000015319 .vendor = "SyncMOS/MoselVitelic",
15320 .name = "{F,S,V}29C51001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015321 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000015322 .manufacture_id = SYNCMOS_MVC_ID,
15323 .model_id = SM_MVC_29C51001B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015324 .total_size = 128,
Mattias Mattsson4c066502010-07-29 20:01:13 +000015325 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000015326 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015327 .tested = TEST_UNTESTED,
15328 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000015329 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000015330 .block_erasers =
15331 {
15332 {
15333 .eraseblocks = { {512, 256} },
15334 .block_erase = erase_sector_jedec,
15335 }, {
15336 .eraseblocks = { {128 * 1024, 1} },
15337 .block_erase = erase_chip_block_jedec,
15338 },
15339 },
Sean Nelson35727f72010-01-28 23:55:12 +000015340 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015341 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015342 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000015343 },
15344
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015345 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000015346 .vendor = "SyncMOS/MoselVitelic",
15347 .name = "{F,S,V}29C51001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015348 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000015349 .manufacture_id = SYNCMOS_MVC_ID,
15350 .model_id = SM_MVC_29C51001T,
15351 .total_size = 128,
15352 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000015353 .feature_bits = FEATURE_EITHER_RESET,
Mattias Mattsson4c066502010-07-29 20:01:13 +000015354 .tested = TEST_UNTESTED,
15355 .probe = probe_jedec,
15356 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
15357 .block_erasers =
15358 {
15359 {
15360 .eraseblocks = { {512, 256} },
15361 .block_erase = erase_sector_jedec,
15362 }, {
15363 .eraseblocks = { {128 * 1024, 1} },
15364 .block_erase = erase_chip_block_jedec,
15365 },
15366 },
15367 .write = write_jedec_1,
15368 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015369 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000015370 },
15371
15372 {
15373 .vendor = "SyncMOS/MoselVitelic",
15374 .name = "{F,S,V}29C51002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015375 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000015376 .manufacture_id = SYNCMOS_MVC_ID,
15377 .model_id = SM_MVC_29C51002B,
15378 .total_size = 256,
15379 .page_size = 512,
15380 .feature_bits = FEATURE_EITHER_RESET,
15381 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015382 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000015383 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000015384 .block_erasers =
15385 {
15386 {
15387 .eraseblocks = { {512, 512} },
15388 .block_erase = erase_sector_jedec,
15389 }, {
15390 .eraseblocks = { {256 * 1024, 1} },
15391 .block_erase = erase_chip_block_jedec,
15392 },
15393 },
Sean Nelson35727f72010-01-28 23:55:12 +000015394 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015395 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000015396 },
15397
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015398 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000015399 .vendor = "SyncMOS/MoselVitelic",
15400 .name = "{F,S,V}29C51002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015401 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000015402 .manufacture_id = SYNCMOS_MVC_ID,
15403 .model_id = SM_MVC_29C51002T,
15404 .total_size = 256,
15405 .page_size = 512,
15406 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000015407 .tested = TEST_OK_PREW,
Mattias Mattsson4c066502010-07-29 20:01:13 +000015408 .probe = probe_jedec,
15409 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
15410 .block_erasers =
15411 {
15412 {
15413 .eraseblocks = { {512, 512} },
15414 .block_erase = erase_sector_jedec,
15415 }, {
15416 .eraseblocks = { {256 * 1024, 1} },
15417 .block_erase = erase_chip_block_jedec,
15418 },
15419 },
15420 .write = write_jedec_1,
15421 .read = read_memmapped,
15422 },
15423
15424 {
15425 .vendor = "SyncMOS/MoselVitelic",
15426 .name = "{F,S,V}29C51004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015427 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000015428 .manufacture_id = SYNCMOS_MVC_ID,
15429 .model_id = SM_MVC_29C51004B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015430 .total_size = 512,
Mattias Mattsson4c066502010-07-29 20:01:13 +000015431 .page_size = 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015432 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015433 .tested = TEST_UNTESTED,
15434 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000015435 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +000015436 .block_erasers =
15437 {
15438 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000015439 .eraseblocks = { {1024, 512} },
15440 .block_erase = erase_sector_jedec,
15441 }, {
15442 .eraseblocks = { {512 * 1024, 1} },
15443 .block_erase = erase_chip_block_jedec,
15444 },
15445 },
15446 .write = write_jedec_1,
15447 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015448 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000015449 },
15450
15451 {
15452 .vendor = "SyncMOS/MoselVitelic",
15453 .name = "{F,S,V}29C51004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015454 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000015455 .manufacture_id = SYNCMOS_MVC_ID,
15456 .model_id = SM_MVC_29C51004T,
15457 .total_size = 512,
15458 .page_size = 1024,
15459 .feature_bits = FEATURE_EITHER_RESET,
15460 .tested = TEST_UNTESTED,
15461 .probe = probe_jedec,
15462 .probe_timing = TIMING_ZERO,
15463 .block_erasers =
15464 {
15465 {
15466 .eraseblocks = { {1024, 512} },
15467 .block_erase = erase_sector_jedec,
15468 }, {
15469 .eraseblocks = { {512 * 1024, 1} },
15470 .block_erase = erase_chip_block_jedec,
15471 },
15472 },
15473 .write = write_jedec_1,
15474 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015475 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000015476 },
15477
15478 {
15479 .vendor = "SyncMOS/MoselVitelic",
15480 .name = "{S,V}29C31004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015481 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000015482 .manufacture_id = SYNCMOS_MVC_ID,
15483 .model_id = SM_MVC_29C31004B,
15484 .total_size = 512,
15485 .page_size = 1024,
15486 .feature_bits = FEATURE_EITHER_RESET,
15487 .tested = TEST_UNTESTED,
15488 .probe = probe_jedec,
15489 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
15490 .block_erasers =
15491 {
15492 {
15493 .eraseblocks = { {1024, 512} },
15494 .block_erase = erase_sector_jedec,
15495 }, {
15496 .eraseblocks = { {512 * 1024, 1} },
15497 .block_erase = erase_chip_block_jedec,
15498 },
15499 },
15500 .write = write_jedec_1,
15501 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015502 .voltage = {3000, 3600},
Mattias Mattsson4c066502010-07-29 20:01:13 +000015503 },
15504
15505 {
15506 .vendor = "SyncMOS/MoselVitelic",
15507 .name = "{S,V}29C31004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015508 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000015509 .manufacture_id = SYNCMOS_MVC_ID,
15510 .model_id = SM_MVC_29C31004T,
15511 .total_size = 512,
15512 .page_size = 1024,
15513 .feature_bits = FEATURE_EITHER_RESET,
15514 .tested = TEST_UNTESTED,
15515 .probe = probe_jedec,
15516 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
15517 .block_erasers =
15518 {
15519 {
15520 .eraseblocks = { {1024, 512} },
Sean Nelson56358aa2010-01-19 16:08:51 +000015521 .block_erase = erase_sector_jedec,
15522 }, {
15523 .eraseblocks = { {512 * 1024, 1} },
15524 .block_erase = erase_chip_block_jedec,
15525 },
15526 },
Sean Nelson35727f72010-01-28 23:55:12 +000015527 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015528 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015529 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000015530 },
15531
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015532 {
Uwe Hermanna106d152009-05-27 23:17:40 +000015533 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000015534 .name = "TMS29F002RB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015535 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000015536 .manufacture_id = TI_OLD_ID,
15537 .model_id = TI_TMS29F002RB,
15538 .total_size = 256,
15539 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000015540 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000015541 .tested = TEST_UNTESTED,
15542 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000015543 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000015544 .block_erasers =
15545 {
15546 {
15547 .eraseblocks = {
15548 {16 * 1024, 1},
15549 {8 * 1024, 2},
15550 {32 * 1024, 1},
15551 {64 * 1024, 3},
15552 },
15553 .block_erase = erase_sector_jedec,
15554 }, {
15555 .eraseblocks = { {256 * 1024, 1} },
15556 .block_erase = erase_chip_block_jedec,
15557 },
15558 },
Sean Nelson35727f72010-01-28 23:55:12 +000015559 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000015560 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015561 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000015562 },
15563
15564 {
Uwe Hermanna106d152009-05-27 23:17:40 +000015565 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000015566 .name = "TMS29F002RT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015567 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000015568 .manufacture_id = TI_OLD_ID,
15569 .model_id = TI_TMS29F002RT,
15570 .total_size = 256,
15571 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000015572 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000015573 .tested = TEST_UNTESTED,
15574 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000015575 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000015576 .block_erasers =
15577 {
15578 {
15579 .eraseblocks = {
15580 {64 * 1024, 3},
15581 {32 * 1024, 1},
15582 {8 * 1024, 2},
15583 {16 * 1024, 1},
15584 },
15585 .block_erase = erase_sector_jedec,
15586 }, {
15587 .eraseblocks = { {256 * 1024, 1} },
15588 .block_erase = erase_chip_block_jedec,
15589 },
15590 },
Sean Nelson35727f72010-01-28 23:55:12 +000015591 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000015592 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015593 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000015594 },
15595
15596 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100015597 .vendor = "Unknown",
15598 .name = "SFDP-capable chip",
15599 .bustype = BUS_SPI,
15600 .manufacture_id = GENERIC_MANUF_ID,
15601 .model_id = SFDP_DEVICE_ID,
15602 .total_size = 0, /* set by probing function */
15603 .page_size = 0, /* set by probing function */
15604 .feature_bits = 0, /* set by probing function */
15605 /* We present our own "report this" text hence we do not */
15606 /* want the default "This flash part has status UNTESTED..." */
15607 /* text to be printed. */
15608 .tested = TEST_OK_PREW,
15609 .probe = probe_spi_sfdp,
15610 .block_erasers = {}, /* set by probing function */
15611 .unlock = spi_disable_blockprotect, /* is this safe? */
15612 .write = NULL, /* set by probing function */
15613 .read = spi_chip_read,
15614 /* FIXME: some vendor extensions define this */
15615 .voltage = {0},
15616 },
15617
15618 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015619 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100015620 .name = "W25P16",
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000015621 .bustype = BUS_SPI,
15622 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100015623 .model_id = WINBOND_NEX_W25P16,
15624 .total_size = 2048,
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000015625 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100015626 .feature_bits = FEATURE_WRSR_WREN,
15627 .tested = TEST_UNTESTED,
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000015628 .probe = probe_spi_rdid,
15629 .probe_timing = TIMING_ZERO,
15630 .block_erasers =
15631 {
15632 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100015633 .eraseblocks = { {64 * 1024, 32} },
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000015634 .block_erase = spi_block_erase_d8,
15635 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100015636 .eraseblocks = { {2048 * 1024, 1} },
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000015637 .block_erase = spi_block_erase_c7,
15638 }
15639 },
15640 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15641 .unlock = spi_disable_blockprotect,
Alan Green1f9cc7d2019-07-01 11:10:45 +100015642 .write = spi_chip_write_256,
15643 .read = spi_chip_read, /* Fast read (0x0B) supported */
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000015644 .voltage = {2700, 3600},
15645 },
15646
15647 {
15648 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100015649 .name = "W25P32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015650 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000015651 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100015652 .model_id = WINBOND_NEX_W25P32,
15653 .total_size = 4096,
Rudolf Marekce1c7982010-04-20 19:34:31 +000015654 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100015655 .feature_bits = FEATURE_WRSR_WREN,
15656 .tested = TEST_UNTESTED,
Rudolf Marekce1c7982010-04-20 19:34:31 +000015657 .probe = probe_spi_rdid,
15658 .probe_timing = TIMING_ZERO,
15659 .block_erasers =
15660 {
15661 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100015662 .eraseblocks = { {64 * 1024, 64} },
15663 .block_erase = spi_block_erase_d8,
Rudolf Marekce1c7982010-04-20 19:34:31 +000015664 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100015665 .eraseblocks = { {4096 * 1024, 1} },
15666 .block_erase = spi_block_erase_c7,
15667 }
15668 },
15669 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15670 .unlock = spi_disable_blockprotect,
15671 .write = spi_chip_write_256,
15672 .read = spi_chip_read, /* Fast read (0x0B) supported */
15673 .voltage = {2700, 3600},
15674 },
15675
15676 {
15677 .vendor = "Winbond",
15678 .name = "W25P80",
15679 .bustype = BUS_SPI,
15680 .manufacture_id = WINBOND_NEX_ID,
15681 .model_id = WINBOND_NEX_W25P80,
15682 .total_size = 1024,
15683 .page_size = 256,
15684 .feature_bits = FEATURE_WRSR_WREN,
15685 .tested = TEST_UNTESTED,
15686 .probe = probe_spi_rdid,
15687 .probe_timing = TIMING_ZERO,
15688 .block_erasers =
15689 {
15690 {
Rudolf Marekce1c7982010-04-20 19:34:31 +000015691 .eraseblocks = { {64 * 1024, 16} },
15692 .block_erase = spi_block_erase_d8,
15693 }, {
15694 .eraseblocks = { {1024 * 1024, 1} },
Rudolf Marekce1c7982010-04-20 19:34:31 +000015695 .block_erase = spi_block_erase_c7,
15696 }
15697 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000015698 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000015699 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000015700 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100015701 .read = spi_chip_read, /* Fast read (0x0B) supported */
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015702 .voltage = {2700, 3600},
David Hendricksc4acec92010-06-24 11:39:57 +000015703 },
15704
15705 {
15706 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015707 .name = "W25Q128.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015708 .bustype = BUS_SPI,
Antony Rheneus0fbba982011-05-26 14:28:51 +000015709 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015710 .model_id = WINBOND_NEX_W25Q128_V,
Antony Rheneus0fbba982011-05-26 14:28:51 +000015711 .total_size = 16384,
15712 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015713 /* supports SFDP */
15714 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000015715 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +000015716 .tested = TEST_OK_PREW,
Antony Rheneus0fbba982011-05-26 14:28:51 +000015717 .probe = probe_spi_rdid,
15718 .probe_timing = TIMING_ZERO,
15719 .block_erasers =
15720 {
15721 {
15722 .eraseblocks = { {4 * 1024, 4096} },
15723 .block_erase = spi_block_erase_20,
15724 }, {
15725 .eraseblocks = { {32 * 1024, 512} },
15726 .block_erase = spi_block_erase_52,
15727 }, {
15728 .eraseblocks = { {64 * 1024, 256} },
15729 .block_erase = spi_block_erase_d8,
15730 }, {
15731 .eraseblocks = { {16 * 1024 * 1024, 1} },
15732 .block_erase = spi_block_erase_60,
15733 }, {
15734 .eraseblocks = { {16 * 1024 * 1024, 1} },
15735 .block_erase = spi_block_erase_c7,
15736 }
15737 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000015738 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Antony Rheneus0fbba982011-05-26 14:28:51 +000015739 .unlock = spi_disable_blockprotect,
15740 .write = spi_chip_write_256,
15741 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000015742 .voltage = {2700, 3600},
15743 },
15744
15745 {
15746 .vendor = "Winbond",
Patrick Rudolph34323492018-10-04 14:59:40 +020015747 .name = "W25Q128.V..M",
15748 .bustype = BUS_SPI,
15749 .manufacture_id = WINBOND_NEX_ID,
15750 .model_id = WINBOND_NEX_W25Q128_V_M,
15751 .total_size = 16384,
15752 .page_size = 256,
15753 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
15754 .tested = TEST_OK_PREW,
15755 .probe = probe_spi_rdid,
15756 .probe_timing = TIMING_ZERO,
15757 .block_erasers =
15758 {
15759 {
15760 .eraseblocks = { {4 * 1024, 4096} },
15761 .block_erase = spi_block_erase_20,
15762 }, {
15763 .eraseblocks = { {32 * 1024, 512} },
15764 .block_erase = spi_block_erase_52,
15765 }, {
15766 .eraseblocks = { {64 * 1024, 256} },
15767 .block_erase = spi_block_erase_d8,
15768 }, {
15769 .eraseblocks = { {16 * 1024 * 1024, 1} },
15770 .block_erase = spi_block_erase_60,
15771 }, {
15772 .eraseblocks = { {16 * 1024 * 1024, 1} },
15773 .block_erase = spi_block_erase_c7,
15774 }
15775 },
15776 .unlock = spi_disable_blockprotect,
15777 .write = spi_chip_write_256,
15778 .read = spi_chip_read,
15779 .voltage = {2700, 3600},
15780 },
15781
15782 {
15783 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100015784 .name = "W25Q128.W",
15785 .bustype = BUS_SPI,
15786 .manufacture_id = WINBOND_NEX_ID,
15787 .model_id = WINBOND_NEX_W25Q128_W,
15788 .total_size = 16384,
15789 .page_size = 256,
15790 /* supports SFDP */
15791 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
15792 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
15793 .tested = TEST_OK_PREW,
15794 .probe = probe_spi_rdid,
15795 .probe_timing = TIMING_ZERO,
15796 .block_erasers =
15797 {
15798 {
15799 .eraseblocks = { {4 * 1024, 4096} },
15800 .block_erase = spi_block_erase_20,
15801 }, {
15802 .eraseblocks = { {32 * 1024, 512} },
15803 .block_erase = spi_block_erase_52,
15804 }, {
15805 .eraseblocks = { {64 * 1024, 256} },
15806 .block_erase = spi_block_erase_d8,
15807 }, {
15808 .eraseblocks = { {16 * 1024 * 1024, 1} },
15809 .block_erase = spi_block_erase_60,
15810 }, {
15811 .eraseblocks = { {16 * 1024 * 1024, 1} },
15812 .block_erase = spi_block_erase_c7,
15813 }
15814 },
15815 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15816 .unlock = spi_disable_blockprotect,
15817 .write = spi_chip_write_256,
15818 .read = spi_chip_read,
15819 .voltage = {1650, 1950},
15820 },
15821
15822 {
15823 .vendor = "Winbond",
15824 .name = "W25Q16.V",
15825 .bustype = BUS_SPI,
15826 .manufacture_id = WINBOND_NEX_ID,
15827 .model_id = WINBOND_NEX_W25Q16_V,
15828 .total_size = 2048,
15829 .page_size = 256,
15830 /* supports SFDP */
15831 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
15832 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
15833 .tested = TEST_OK_PREW,
15834 .probe = probe_spi_rdid,
15835 .probe_timing = TIMING_ZERO,
15836 .block_erasers =
15837 {
15838 {
15839 .eraseblocks = { {4 * 1024, 512} },
15840 .block_erase = spi_block_erase_20,
15841 }, {
15842 .eraseblocks = { {32 * 1024, 64} },
15843 .block_erase = spi_block_erase_52,
15844 }, {
15845 .eraseblocks = { {64 * 1024, 32} },
15846 .block_erase = spi_block_erase_d8,
15847 }, {
15848 .eraseblocks = { {2 * 1024 * 1024, 1} },
15849 .block_erase = spi_block_erase_60,
15850 }, {
15851 .eraseblocks = { {2 * 1024 * 1024, 1} },
15852 .block_erase = spi_block_erase_c7,
15853 }
15854 },
15855 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15856 .unlock = spi_disable_blockprotect,
15857 .write = spi_chip_write_256,
15858 .read = spi_chip_read,
15859 .voltage = {2700, 3600},
15860 },
15861
15862 {
15863 .vendor = "Winbond",
15864 .name = "W25Q16.W",
15865 .bustype = BUS_SPI,
15866 .manufacture_id = WINBOND_NEX_ID,
15867 .model_id = WINBOND_NEX_W25Q16_W,
15868 .total_size = 2048,
15869 .page_size = 256,
15870 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
15871 /* QPI enable 0x38, disable 0xFF */
15872 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
15873 .tested = TEST_UNTESTED,
15874 .probe = probe_spi_rdid,
15875 .probe_timing = TIMING_ZERO,
15876 .block_erasers =
15877 {
15878 {
15879 .eraseblocks = { {4 * 1024, 512} },
15880 .block_erase = spi_block_erase_20,
15881 }, {
15882 .eraseblocks = { {32 * 1024, 64} },
15883 .block_erase = spi_block_erase_52,
15884 }, {
15885 .eraseblocks = { {64 * 1024, 32} },
15886 .block_erase = spi_block_erase_d8,
15887 }, {
15888 .eraseblocks = { {2 * 1024 * 1024, 1} },
15889 .block_erase = spi_block_erase_60,
15890 }, {
15891 .eraseblocks = { {2 * 1024 * 1024, 1} },
15892 .block_erase = spi_block_erase_c7,
15893 }
15894 },
15895 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15896 .unlock = spi_disable_blockprotect,
15897 .write = spi_chip_write_256,
15898 .read = spi_chip_read,
15899 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
15900 },
15901
15902 {
15903 .vendor = "Winbond",
15904 .name = "W25Q20.W",
15905 .bustype = BUS_SPI,
15906 .manufacture_id = WINBOND_NEX_ID,
15907 .model_id = WINBOND_NEX_W25Q20_W,
15908 .total_size = 256,
15909 .page_size = 256,
15910 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
15911 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
15912 .tested = TEST_UNTESTED,
15913 .probe = probe_spi_rdid,
15914 .probe_timing = TIMING_ZERO,
15915 .block_erasers =
15916 {
15917 {
15918 .eraseblocks = { {4 * 1024, 64} },
15919 .block_erase = spi_block_erase_20,
15920 }, {
15921 .eraseblocks = { {32 * 1024, 8} },
15922 .block_erase = spi_block_erase_52,
15923 }, {
15924 .eraseblocks = { {64 * 1024, 4} },
15925 .block_erase = spi_block_erase_d8,
15926 }, {
15927 .eraseblocks = { {256 * 1024, 1} },
15928 .block_erase = spi_block_erase_60,
15929 }, {
15930 .eraseblocks = { {256 * 1024, 1} },
15931 .block_erase = spi_block_erase_c7,
15932 }
15933 },
15934 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15935 .unlock = spi_disable_blockprotect,
15936 .write = spi_chip_write_256,
15937 .read = spi_chip_read,
15938 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
15939 },
15940
15941 {
15942 .vendor = "Winbond",
Boris Baykovaa6c3742016-06-11 18:29:01 +020015943 .name = "W25Q256.V",
15944 .bustype = BUS_SPI,
15945 .manufacture_id = WINBOND_NEX_ID,
15946 .model_id = WINBOND_NEX_W25Q256_V,
15947 .total_size = 32768,
15948 .page_size = 256,
15949 /* supports SFDP */
15950 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
15951 /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */
Nico Huberaac81422017-11-10 22:54:13 +010015952 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_ENTER_WREN
15953 | FEATURE_4BA_EXT_ADDR | FEATURE_4BA_READ | FEATURE_4BA_FAST_READ,
Angel Pons3130cbd2018-09-30 19:32:30 +020015954 .tested = TEST_OK_PREW,
Boris Baykovaa6c3742016-06-11 18:29:01 +020015955 .probe = probe_spi_rdid,
15956 .probe_timing = TIMING_ZERO,
15957 .block_erasers =
15958 {
15959 {
15960 .eraseblocks = { {4 * 1024, 8192} },
Nico Huber7a077222017-10-14 18:18:30 +020015961 .block_erase = spi_block_erase_20,
Boris Baykovaa6c3742016-06-11 18:29:01 +020015962 }, {
15963 .eraseblocks = { {32 * 1024, 1024} },
Nico Huber7a077222017-10-14 18:18:30 +020015964 .block_erase = spi_block_erase_52,
Boris Baykovaa6c3742016-06-11 18:29:01 +020015965 }, {
15966 .eraseblocks = { {64 * 1024, 512} },
Nico Huber7a077222017-10-14 18:18:30 +020015967 .block_erase = spi_block_erase_d8,
Boris Baykovaa6c3742016-06-11 18:29:01 +020015968 }, {
15969 .eraseblocks = { {32 * 1024 * 1024, 1} },
15970 .block_erase = spi_block_erase_60,
15971 }, {
15972 .eraseblocks = { {32 * 1024 * 1024, 1} },
15973 .block_erase = spi_block_erase_c7,
15974 }
15975 },
15976 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15977 .unlock = spi_disable_blockprotect,
15978 .write = spi_chip_write_256,
15979 .read = spi_chip_read,
15980 .voltage = {2700, 3600},
15981 },
15982
15983 {
15984 .vendor = "Winbond",
David Hendricks49876792018-10-27 20:19:42 +000015985 .name = "W25Q256JV_M",
15986 .bustype = BUS_SPI,
15987 .manufacture_id = WINBOND_NEX_ID,
15988 .model_id = WINBOND_NEX_W25Q256JV_M,
15989 .total_size = 32768,
15990 .page_size = 256,
15991 /* supports SFDP */
15992 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
15993 /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */
15994 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
15995 .tested = TEST_OK_PREW,
15996 .probe = probe_spi_rdid,
15997 .probe_timing = TIMING_ZERO,
15998 .block_erasers =
15999 {
16000 {
16001 .eraseblocks = { {4 * 1024, 8192} },
16002 .block_erase = spi_block_erase_21,
16003 }, {
16004 .eraseblocks = { {4 * 1024, 8192} },
16005 .block_erase = spi_block_erase_20,
16006 }, {
16007 .eraseblocks = { {32 * 1024, 1024} },
16008 .block_erase = spi_block_erase_52,
16009 }, {
16010 .eraseblocks = { {64 * 1024, 512} },
16011 .block_erase = spi_block_erase_dc,
16012 }, {
16013 .eraseblocks = { {64 * 1024, 512} },
16014 .block_erase = spi_block_erase_d8,
16015 }, {
16016 .eraseblocks = { {32 * 1024 * 1024, 1} },
16017 .block_erase = spi_block_erase_60,
16018 }, {
16019 .eraseblocks = { {32 * 1024 * 1024, 1} },
16020 .block_erase = spi_block_erase_c7,
16021 }
16022 },
16023 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16024 .unlock = spi_disable_blockprotect,
16025 .write = spi_chip_write_256,
16026 .read = spi_chip_read,
16027 .voltage = {2700, 3600},
16028 },
16029
16030 {
16031 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100016032 .name = "W25Q32.V",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016033 .bustype = BUS_SPI,
16034 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016035 .model_id = WINBOND_NEX_W25Q32_V,
16036 .total_size = 4096,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016037 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016038 /* supports SFDP */
16039 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016040 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016041 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016042 .probe = probe_spi_rdid,
16043 .probe_timing = TIMING_ZERO,
16044 .block_erasers =
16045 {
16046 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016047 .eraseblocks = { {4 * 1024, 1024} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016048 .block_erase = spi_block_erase_20,
16049 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016050 .eraseblocks = { {32 * 1024, 128} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016051 .block_erase = spi_block_erase_52,
16052 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016053 .eraseblocks = { {64 * 1024, 64} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016054 .block_erase = spi_block_erase_d8,
16055 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016056 .eraseblocks = { {4 * 1024 * 1024, 1} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016057 .block_erase = spi_block_erase_60,
16058 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016059 .eraseblocks = { {4 * 1024 * 1024, 1} },
16060 .block_erase = spi_block_erase_c7,
16061 }
16062 },
16063 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16064 .unlock = spi_disable_blockprotect,
16065 .write = spi_chip_write_256,
16066 .read = spi_chip_read,
16067 .voltage = {2700, 3600},
16068 },
16069
16070 {
16071 .vendor = "Winbond",
16072 .name = "W25Q32.W",
16073 .bustype = BUS_SPI,
16074 .manufacture_id = WINBOND_NEX_ID,
16075 .model_id = WINBOND_NEX_W25Q32_W,
16076 .total_size = 4096,
16077 .page_size = 256,
16078 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
16079 /* QPI enable 0x38, disable 0xFF */
16080 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
16081 .tested = TEST_OK_PREW,
16082 .probe = probe_spi_rdid,
16083 .probe_timing = TIMING_ZERO,
16084 .block_erasers =
16085 {
16086 {
16087 .eraseblocks = { {4 * 1024, 1024} },
16088 .block_erase = spi_block_erase_20,
16089 }, {
16090 .eraseblocks = { {32 * 1024, 128} },
16091 .block_erase = spi_block_erase_52,
16092 }, {
16093 .eraseblocks = { {64 * 1024, 64} },
16094 .block_erase = spi_block_erase_d8,
16095 }, {
16096 .eraseblocks = { {4 * 1024 * 1024, 1} },
16097 .block_erase = spi_block_erase_60,
16098 }, {
16099 .eraseblocks = { {4 * 1024 * 1024, 1} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016100 .block_erase = spi_block_erase_c7,
16101 }
16102 },
16103 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16104 .unlock = spi_disable_blockprotect,
16105 .write = spi_chip_write_256,
16106 .read = spi_chip_read,
16107 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
16108 },
16109
16110 {
16111 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100016112 .name = "W25Q40.V",
16113 .bustype = BUS_SPI,
16114 .manufacture_id = WINBOND_NEX_ID,
16115 .model_id = WINBOND_NEX_W25Q40_V,
16116 .total_size = 512,
16117 .page_size = 256,
16118 /* supports SFDP */
16119 /* OTP: 756B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
16120 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16121 .tested = TEST_OK_PREW,
16122 .probe = probe_spi_rdid,
16123 .probe_timing = TIMING_ZERO,
16124 .block_erasers =
16125 {
16126 {
16127 .eraseblocks = { {4 * 1024, 128} },
16128 .block_erase = spi_block_erase_20,
16129 }, {
16130 .eraseblocks = { {32 * 1024, 16} },
16131 .block_erase = spi_block_erase_52,
16132 }, {
16133 .eraseblocks = { {64 * 1024, 8} },
16134 .block_erase = spi_block_erase_d8,
16135 }, {
16136 .eraseblocks = { {512 * 1024, 1} },
16137 .block_erase = spi_block_erase_60,
16138 }, {
16139 .eraseblocks = { {512 * 1024, 1} },
16140 .block_erase = spi_block_erase_c7,
16141 }
16142 },
16143 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16144 .unlock = spi_disable_blockprotect,
16145 .write = spi_chip_write_256, /* Multi I/O supported */
16146 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16147 .voltage = {2700, 3600},
16148 },
16149
16150 {
16151 .vendor = "Winbond",
Nico Huber25683572018-03-30 13:50:13 +020016152 .name = "W25Q40BW",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016153 .bustype = BUS_SPI,
16154 .manufacture_id = WINBOND_NEX_ID,
Nico Huber25683572018-03-30 13:50:13 +020016155 .model_id = WINBOND_NEX_W25Q40BW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016156 .total_size = 512,
16157 .page_size = 256,
16158 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
16159 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Angel Pons3164a0c2018-09-30 20:26:06 +020016160 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016161 .probe = probe_spi_rdid,
16162 .probe_timing = TIMING_ZERO,
16163 .block_erasers =
16164 {
16165 {
16166 .eraseblocks = { {4 * 1024, 128} },
16167 .block_erase = spi_block_erase_20,
16168 }, {
16169 .eraseblocks = { {32 * 1024, 16} },
16170 .block_erase = spi_block_erase_52,
16171 }, {
16172 .eraseblocks = { {64 * 1024, 8} },
16173 .block_erase = spi_block_erase_d8,
16174 }, {
16175 .eraseblocks = { {512 * 1024, 1} },
16176 .block_erase = spi_block_erase_60,
16177 }, {
16178 .eraseblocks = { {512 * 1024, 1} },
16179 .block_erase = spi_block_erase_c7,
16180 }
16181 },
16182 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16183 .unlock = spi_disable_blockprotect,
16184 .write = spi_chip_write_256,
16185 .read = spi_chip_read,
16186 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
16187 },
16188
16189 {
16190 .vendor = "Winbond",
Nico Huber25683572018-03-30 13:50:13 +020016191 .name = "W25Q40EW",
16192 .bustype = BUS_SPI,
16193 .manufacture_id = WINBOND_NEX_ID,
16194 .model_id = WINBOND_NEX_W25Q40EW,
16195 .total_size = 512,
16196 .page_size = 256,
16197 /* OTP: 3*256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
16198 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16199 .tested = TEST_UNTESTED,
16200 .probe = probe_spi_rdid,
16201 .probe_timing = TIMING_ZERO,
16202 .block_erasers =
16203 {
16204 {
16205 .eraseblocks = { {4 * 1024, 128} },
16206 .block_erase = spi_block_erase_20,
16207 }, {
16208 .eraseblocks = { {32 * 1024, 16} },
16209 .block_erase = spi_block_erase_52,
16210 }, {
16211 .eraseblocks = { {64 * 1024, 8} },
16212 .block_erase = spi_block_erase_d8,
16213 }, {
16214 .eraseblocks = { {512 * 1024, 1} },
16215 .block_erase = spi_block_erase_60,
16216 }, {
16217 .eraseblocks = { {512 * 1024, 1} },
16218 .block_erase = spi_block_erase_c7,
16219 }
16220 },
16221 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16222 .unlock = spi_disable_blockprotect,
16223 .write = spi_chip_write_256,
16224 .read = spi_chip_read,
16225 .voltage = {1650, 1950}, /* Fast read (0x0B) and multi I/O supported */
16226 },
16227
Stanislav Sedovf5775442018-03-07 14:16:51 -080016228 {
16229 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100016230 .name = "W25Q64.V",
Stanislav Sedovf5775442018-03-07 14:16:51 -080016231 .bustype = BUS_SPI,
16232 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016233 .model_id = WINBOND_NEX_W25Q64_V,
16234 .total_size = 8192,
Stanislav Sedovf5775442018-03-07 14:16:51 -080016235 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016236 /* supports SFDP */
16237 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Stanislav Sedovf5775442018-03-07 14:16:51 -080016238 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16239 .tested = TEST_OK_PREW,
16240 .probe = probe_spi_rdid,
16241 .probe_timing = TIMING_ZERO,
16242 .block_erasers =
16243 {
16244 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016245 .eraseblocks = { {4 * 1024, 2048} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080016246 .block_erase = spi_block_erase_20,
16247 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016248 .eraseblocks = { {32 * 1024, 256} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080016249 .block_erase = spi_block_erase_52,
16250 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016251 .eraseblocks = { {64 * 1024, 128} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080016252 .block_erase = spi_block_erase_d8,
16253 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016254 .eraseblocks = { {8 * 1024 * 1024, 1} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080016255 .block_erase = spi_block_erase_60,
16256 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016257 .eraseblocks = { {8 * 1024 * 1024, 1} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080016258 .block_erase = spi_block_erase_c7,
16259 }
16260 },
16261 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16262 .unlock = spi_disable_blockprotect,
16263 .write = spi_chip_write_256,
16264 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016265 .voltage = {2700, 3600},
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016266 },
16267
16268 {
16269 .vendor = "Winbond",
16270 .name = "W25Q64.W",
16271 .bustype = BUS_SPI,
16272 .manufacture_id = WINBOND_NEX_ID,
16273 .model_id = WINBOND_NEX_W25Q64_W,
16274 .total_size = 8192,
16275 .page_size = 256,
16276 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
16277 /* QPI enable 0x38, disable 0xFF */
16278 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner0554ca52013-07-25 22:54:25 +000016279 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016280 .probe = probe_spi_rdid,
16281 .probe_timing = TIMING_ZERO,
16282 .block_erasers =
16283 {
16284 {
16285 .eraseblocks = { {4 * 1024, 2048} },
16286 .block_erase = spi_block_erase_20,
16287 }, {
16288 .eraseblocks = { {32 * 1024, 256} },
16289 .block_erase = spi_block_erase_52,
16290 }, {
16291 .eraseblocks = { {64 * 1024, 128} },
16292 .block_erase = spi_block_erase_d8,
16293 }, {
16294 .eraseblocks = { {8 * 1024 * 1024, 1} },
16295 .block_erase = spi_block_erase_60,
16296 }, {
16297 .eraseblocks = { {8 * 1024 * 1024, 1} },
16298 .block_erase = spi_block_erase_c7,
16299 }
16300 },
16301 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16302 .unlock = spi_disable_blockprotect,
16303 .write = spi_chip_write_256,
16304 .read = spi_chip_read,
16305 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
Antony Rheneus0fbba982011-05-26 14:28:51 +000016306 },
16307
16308 {
16309 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100016310 .name = "W25Q80.V",
Nico Huber70eed9f2017-04-24 22:19:27 +020016311 .bustype = BUS_SPI,
16312 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016313 .model_id = WINBOND_NEX_W25Q80_V,
16314 .total_size = 1024,
Nico Huber70eed9f2017-04-24 22:19:27 +020016315 .page_size = 256,
16316 /* supports SFDP */
16317 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Alan Green1f9cc7d2019-07-01 11:10:45 +100016318 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks48729d32017-12-08 14:44:07 -080016319 .tested = TEST_OK_PREW,
Nico Huber70eed9f2017-04-24 22:19:27 +020016320 .probe = probe_spi_rdid,
16321 .probe_timing = TIMING_ZERO,
16322 .block_erasers =
16323 {
16324 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016325 .eraseblocks = { {4 * 1024, 256} },
Nico Huber70eed9f2017-04-24 22:19:27 +020016326 .block_erase = spi_block_erase_20,
16327 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016328 .eraseblocks = { {32 * 1024, 32} },
Nico Huber70eed9f2017-04-24 22:19:27 +020016329 .block_erase = spi_block_erase_52,
16330 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016331 .eraseblocks = { {64 * 1024, 16} },
Nico Huber70eed9f2017-04-24 22:19:27 +020016332 .block_erase = spi_block_erase_d8,
16333 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016334 .eraseblocks = { {1024 * 1024, 1} },
Nico Huber70eed9f2017-04-24 22:19:27 +020016335 .block_erase = spi_block_erase_60,
16336 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016337 .eraseblocks = { {1024 * 1024, 1} },
Nico Huber70eed9f2017-04-24 22:19:27 +020016338 .block_erase = spi_block_erase_c7,
16339 }
16340 },
16341 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16342 .unlock = spi_disable_blockprotect,
16343 .write = spi_chip_write_256,
16344 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016345 .voltage = {2700, 3600},
16346 },
16347
16348 {
16349 .vendor = "Winbond",
16350 .name = "W25Q80BW",
16351 .bustype = BUS_SPI,
16352 .manufacture_id = WINBOND_NEX_ID,
16353 .model_id = WINBOND_NEX_W25Q80BW,
16354 .total_size = 1024,
16355 .page_size = 256,
16356 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
16357 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16358 .tested = TEST_OK_PREW,
16359 .probe = probe_spi_rdid,
16360 .probe_timing = TIMING_ZERO,
16361 .block_erasers =
16362 {
16363 {
16364 .eraseblocks = { {4 * 1024, 256} },
16365 .block_erase = spi_block_erase_20,
16366 }, {
16367 .eraseblocks = { {32 * 1024, 32} },
16368 .block_erase = spi_block_erase_52,
16369 }, {
16370 .eraseblocks = { {64 * 1024, 16} },
16371 .block_erase = spi_block_erase_d8,
16372 }, {
16373 .eraseblocks = { {1 * 1024 * 1024, 1} },
16374 .block_erase = spi_block_erase_60,
16375 }, {
16376 .eraseblocks = { {1 * 1024 * 1024, 1} },
16377 .block_erase = spi_block_erase_c7,
16378 }
16379 },
16380 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16381 .unlock = spi_disable_blockprotect,
16382 .write = spi_chip_write_256,
16383 .read = spi_chip_read,
16384 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
16385 },
16386
16387 {
16388 .vendor = "Winbond",
16389 .name = "W25Q80EW",
16390 .bustype = BUS_SPI,
16391 .manufacture_id = WINBOND_NEX_ID,
16392 .model_id = WINBOND_NEX_W25Q80EW,
16393 .total_size = 1024,
16394 .page_size = 256,
16395 /* OTP: 3*256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
16396 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16397 .tested = TEST_OK_PREW,
16398 .probe = probe_spi_rdid,
16399 .probe_timing = TIMING_ZERO,
16400 .block_erasers =
16401 {
16402 {
16403 .eraseblocks = { {4 * 1024, 256} },
16404 .block_erase = spi_block_erase_20,
16405 }, {
16406 .eraseblocks = { {32 * 1024, 32} },
16407 .block_erase = spi_block_erase_52,
16408 }, {
16409 .eraseblocks = { {64 * 1024, 16} },
16410 .block_erase = spi_block_erase_d8,
16411 }, {
16412 .eraseblocks = { {1 * 1024 * 1024, 1} },
16413 .block_erase = spi_block_erase_60,
16414 }, {
16415 .eraseblocks = { {1 * 1024 * 1024, 1} },
16416 .block_erase = spi_block_erase_c7,
16417 }
16418 },
16419 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16420 .unlock = spi_disable_blockprotect,
16421 .write = spi_chip_write_256,
16422 .read = spi_chip_read,
16423 .voltage = {1650, 1950}, /* Fast read (0x0B) and multi I/O supported */
Nico Huber70eed9f2017-04-24 22:19:27 +020016424 },
16425
16426 {
16427 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000016428 .name = "W25X10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016429 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016430 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016431 .model_id = WINBOND_NEX_W25X10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016432 .total_size = 128,
16433 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000016434 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +000016435 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016436 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000016437 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016438 .block_erasers =
16439 {
16440 {
16441 .eraseblocks = { {4 * 1024, 32} },
16442 .block_erase = spi_block_erase_20,
16443 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016444 .eraseblocks = { {64 * 1024, 2} },
16445 .block_erase = spi_block_erase_d8,
16446 }, {
16447 .eraseblocks = { {128 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016448 .block_erase = spi_block_erase_c7,
16449 }
16450 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000016451 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000016452 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000016453 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016454 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016455 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000016456 },
16457
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016458 {
16459 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000016460 .name = "W25X16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016461 .bustype = BUS_SPI,
Hector Martina721ae22009-07-11 19:39:11 +000016462 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016463 .model_id = WINBOND_NEX_W25X16,
Hector Martina721ae22009-07-11 19:39:11 +000016464 .total_size = 2048,
16465 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000016466 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +000016467 .tested = TEST_OK_PREW,
Hector Martina721ae22009-07-11 19:39:11 +000016468 .probe = probe_spi_rdid,
16469 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016470 .block_erasers =
16471 {
16472 {
16473 .eraseblocks = { {4 * 1024, 512} },
16474 .block_erase = spi_block_erase_20,
16475 }, {
16476 .eraseblocks = { {32 * 1024, 64} },
16477 .block_erase = spi_block_erase_52,
16478 }, {
16479 .eraseblocks = { {64 * 1024, 32} },
16480 .block_erase = spi_block_erase_d8,
16481 }, {
16482 .eraseblocks = { {2 * 1024 * 1024, 1} },
16483 .block_erase = spi_block_erase_60,
16484 }, {
16485 .eraseblocks = { {2 * 1024 * 1024, 1} },
16486 .block_erase = spi_block_erase_c7,
16487 }
16488 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000016489 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000016490 .unlock = spi_disable_blockprotect,
Hector Martina721ae22009-07-11 19:39:11 +000016491 .write = spi_chip_write_256,
16492 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016493 .voltage = {2700, 3600},
Hector Martina721ae22009-07-11 19:39:11 +000016494 },
16495
16496 {
16497 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100016498 .name = "W25X20",
16499 .bustype = BUS_SPI,
16500 .manufacture_id = WINBOND_NEX_ID,
16501 .model_id = WINBOND_NEX_W25X20,
16502 .total_size = 256,
16503 .page_size = 256,
16504 .feature_bits = FEATURE_WRSR_WREN,
16505 .tested = TEST_OK_PREW,
16506 .probe = probe_spi_rdid,
16507 .probe_timing = TIMING_ZERO,
16508 .block_erasers =
16509 {
16510 {
16511 .eraseblocks = { {4 * 1024, 64} },
16512 .block_erase = spi_block_erase_20,
16513 }, {
16514 .eraseblocks = { {64 * 1024, 4} },
16515 .block_erase = spi_block_erase_d8,
16516 }, {
16517 .eraseblocks = { {256 * 1024, 1} },
16518 .block_erase = spi_block_erase_c7,
16519 }
16520 },
16521 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16522 .unlock = spi_disable_blockprotect,
16523 .write = spi_chip_write_256,
16524 .read = spi_chip_read,
16525 .voltage = {2700, 3600},
16526 },
16527
16528 {
16529 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000016530 .name = "W25X32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016531 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000016532 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016533 .model_id = WINBOND_NEX_W25X32,
Zheng Bao1db2b752009-11-26 11:05:01 +000016534 .total_size = 4096,
16535 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000016536 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000016537 .tested = TEST_OK_PREW,
Zheng Bao1db2b752009-11-26 11:05:01 +000016538 .probe = probe_spi_rdid,
16539 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016540 .block_erasers =
16541 {
16542 {
16543 .eraseblocks = { {4 * 1024, 1024} },
16544 .block_erase = spi_block_erase_20,
16545 }, {
16546 .eraseblocks = { {32 * 1024, 128} },
16547 .block_erase = spi_block_erase_52,
16548 }, {
16549 .eraseblocks = { {64 * 1024, 64} },
16550 .block_erase = spi_block_erase_d8,
16551 }, {
16552 .eraseblocks = { {4 * 1024 * 1024, 1} },
16553 .block_erase = spi_block_erase_60,
16554 }, {
16555 .eraseblocks = { {4 * 1024 * 1024, 1} },
16556 .block_erase = spi_block_erase_c7,
16557 }
16558 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000016559 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000016560 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000016561 .write = spi_chip_write_256,
16562 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016563 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000016564 },
16565
16566 {
16567 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100016568 .name = "W25X40",
16569 .bustype = BUS_SPI,
16570 .manufacture_id = WINBOND_NEX_ID,
16571 .model_id = WINBOND_NEX_W25X40,
16572 .total_size = 512,
16573 .page_size = 256,
16574 .feature_bits = FEATURE_WRSR_WREN,
16575 .tested = TEST_OK_PREW,
16576 .probe = probe_spi_rdid,
16577 .probe_timing = TIMING_ZERO,
16578 .block_erasers =
16579 {
16580 {
16581 .eraseblocks = { {4 * 1024, 128} },
16582 .block_erase = spi_block_erase_20,
16583 }, {
16584 .eraseblocks = { {64 * 1024, 8} },
16585 .block_erase = spi_block_erase_d8,
16586 }, {
16587 .eraseblocks = { {512 * 1024, 1} },
16588 .block_erase = spi_block_erase_c7,
16589 }
16590 },
16591 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16592 .unlock = spi_disable_blockprotect,
16593 .write = spi_chip_write_256,
16594 .read = spi_chip_read,
16595 .voltage = {2700, 3600},
16596 },
16597
16598 {
16599 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000016600 .name = "W25X64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016601 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000016602 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016603 .model_id = WINBOND_NEX_W25X64,
Zheng Bao1db2b752009-11-26 11:05:01 +000016604 .total_size = 8192,
16605 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000016606 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000016607 .tested = TEST_OK_PREW,
Zheng Bao1db2b752009-11-26 11:05:01 +000016608 .probe = probe_spi_rdid,
16609 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016610 .block_erasers =
16611 {
16612 {
16613 .eraseblocks = { {4 * 1024, 2048} },
16614 .block_erase = spi_block_erase_20,
16615 }, {
16616 .eraseblocks = { {32 * 1024, 256} },
16617 .block_erase = spi_block_erase_52,
16618 }, {
16619 .eraseblocks = { {64 * 1024, 128} },
16620 .block_erase = spi_block_erase_d8,
16621 }, {
16622 .eraseblocks = { {8 * 1024 * 1024, 1} },
16623 .block_erase = spi_block_erase_60,
16624 }, {
16625 .eraseblocks = { {8 * 1024 * 1024, 1} },
16626 .block_erase = spi_block_erase_c7,
16627 }
16628 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000016629 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000016630 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000016631 .write = spi_chip_write_256,
16632 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016633 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000016634 },
16635
16636 {
Alan Greenfa3fcd32019-06-27 15:41:50 +100016637 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100016638 .name = "W25X80",
Alan Greenfa3fcd32019-06-27 15:41:50 +100016639 .bustype = BUS_SPI,
16640 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016641 .model_id = WINBOND_NEX_W25X80,
Alan Greenfa3fcd32019-06-27 15:41:50 +100016642 .total_size = 1024,
16643 .page_size = 256,
16644 .feature_bits = FEATURE_WRSR_WREN,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016645 .tested = TEST_OK_PREW,
Alan Greenfa3fcd32019-06-27 15:41:50 +100016646 .probe = probe_spi_rdid,
16647 .probe_timing = TIMING_ZERO,
16648 .block_erasers =
David Hendricksc9ee0ed2018-02-11 17:40:53 -080016649 {
16650 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016651 .eraseblocks = { {4 * 1024, 256} },
16652 .block_erase = spi_block_erase_20,
16653 }, {
David Hendricksc9ee0ed2018-02-11 17:40:53 -080016654 .eraseblocks = { {64 * 1024, 16} },
16655 .block_erase = spi_block_erase_d8,
16656 }, {
16657 .eraseblocks = { {1024 * 1024, 1} },
16658 .block_erase = spi_block_erase_c7,
16659 }
16660 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100016661 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16662 .unlock = spi_disable_blockprotect,
16663 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016664 .read = spi_chip_read,
Alan Greenfa3fcd32019-06-27 15:41:50 +100016665 .voltage = {2700, 3600},
David Hendricksc9ee0ed2018-02-11 17:40:53 -080016666 },
16667
Alan Greenf29ea362019-06-27 17:14:02 +100016668 /* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */
16669 {
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000016670 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000016671 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016672 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016673 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016674 .model_id = WINBOND_W29C010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016675 .total_size = 128,
16676 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000016677 .feature_bits = FEATURE_LONG_RESET,
David Hendricks567b7b82011-05-18 01:31:03 +000016678 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016679 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000016680 .probe_timing = 10, /* used datasheet for the W29C011A */
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016681 .block_erasers =
16682 {
16683 {
16684 .eraseblocks = { {128 * 1024, 1} },
16685 .block_erase = erase_chip_block_jedec,
16686 }
16687 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016688 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016689 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000016690 },
16691
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016692 {
16693 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100016694 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old",
16695 .bustype = BUS_PARALLEL,
16696 .manufacture_id = WINBOND_ID,
16697 .model_id = WINBOND_W29C010,
16698 .total_size = 128,
16699 .page_size = 128,
16700 .feature_bits = FEATURE_LONG_RESET,
16701 .tested = TEST_OK_PREW,
16702 .probe = probe_w29ee011,
16703 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */
16704 .block_erasers =
16705 {
16706 {
16707 .eraseblocks = { {128 * 1024, 1} },
16708 .block_erase = erase_chip_block_jedec,
16709 }
16710 },
16711 .write = write_jedec,
16712 .read = read_memmapped,
16713 },
16714
16715 {
16716 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000016717 .name = "W29C020(C)/W29C022",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016718 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016719 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016720 .model_id = WINBOND_W29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016721 .total_size = 256,
16722 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000016723 .feature_bits = FEATURE_LONG_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000016724 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016725 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000016726 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016727 .block_erasers =
16728 {
16729 {
16730 .eraseblocks = { {256 * 1024, 1} },
16731 .block_erase = erase_chip_block_jedec,
16732 }
16733 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016734 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016735 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016736 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000016737 },
16738
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016739 {
16740 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000016741 .name = "W29C040/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016742 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016743 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000016744 .model_id = WINBOND_W29C040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016745 .total_size = 512,
16746 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000016747 .feature_bits = FEATURE_LONG_RESET,
16748 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016749 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000016750 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000016751 .block_erasers =
16752 {
16753 {
16754 .eraseblocks = { {512 * 1024, 1} },
16755 .block_erase = erase_chip_block_jedec,
16756 }
16757 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016758 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016759 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016760 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000016761 },
16762
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016763 {
16764 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100016765 .name = "W29C512A/W29EE512",
16766 .bustype = BUS_PARALLEL,
16767 .manufacture_id = WINBOND_ID,
16768 .model_id = WINBOND_W29C512A,
16769 .total_size = 64,
16770 .page_size = 128,
16771 .feature_bits = FEATURE_LONG_RESET,
16772 .tested = TEST_OK_PREW,
16773 .probe = probe_jedec,
16774 .probe_timing = 10,
16775 .block_erasers =
16776 {
16777 {
16778 .eraseblocks = { {64 * 1024, 1} },
16779 .block_erase = erase_chip_block_jedec,
16780 }
16781 },
16782 .write = write_jedec,
16783 .read = read_memmapped,
16784 .voltage = {4500, 5500},
16785 },
16786
16787 {
16788 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000016789 .name = "W29GL032CB",
16790 .bustype = BUS_PARALLEL,
16791 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
16792 .model_id = WINBOND_W29GL032CB,
16793 .total_size = 4096,
16794 .page_size = 128 * 1024, /* actual page size is 16 */
16795 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
16796 .tested = TEST_UNTESTED,
16797 .probe = probe_jedec_29gl,
16798 .probe_timing = TIMING_ZERO,
16799 .block_erasers =
16800 {
16801 {
16802 .eraseblocks = {
16803 {8 * 1024, 8},
16804 {64 * 1024, 63},
16805 },
16806 .block_erase = erase_sector_jedec,
16807 }, {
16808 .eraseblocks = { {4 * 1024 * 1024, 1} },
16809 .block_erase = erase_chip_block_jedec,
16810 },
16811 },
16812 .write = write_jedec_1,
16813 .read = read_memmapped,
16814 .voltage = {2700, 3600},
16815 },
16816
16817 {
16818 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100016819 .name = "W29GL032CH/L",
16820 .bustype = BUS_PARALLEL,
16821 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
16822 .model_id = WINBOND_W29GL032CHL,
16823 .total_size = 4096,
16824 .page_size = 128 * 1024, /* actual page size is 16 */
16825 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
16826 .tested = TEST_UNTESTED,
16827 .probe = probe_jedec_29gl,
16828 .probe_timing = TIMING_ZERO,
16829 .block_erasers =
16830 {
16831 {
16832 .eraseblocks = { {64 * 1024, 64} },
16833 .block_erase = erase_sector_jedec,
16834 }, {
16835 .eraseblocks = { {4 * 1024 * 1024, 1} },
16836 .block_erase = erase_chip_block_jedec,
16837 },
16838 },
16839 .write = write_jedec_1,
16840 .read = read_memmapped,
16841 .voltage = {2700, 3600},
16842 },
16843
16844 {
16845 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000016846 .name = "W29GL032CT",
16847 .bustype = BUS_PARALLEL,
16848 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
16849 .model_id = WINBOND_W29GL032CT,
16850 .total_size = 4096,
16851 .page_size = 128 * 1024, /* actual page size is 16 */
16852 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
16853 .tested = TEST_UNTESTED,
16854 .probe = probe_jedec_29gl,
16855 .probe_timing = TIMING_ZERO,
16856 .block_erasers =
16857 {
16858 {
16859 .eraseblocks = {
16860 {64 * 1024, 63},
16861 {8 * 1024, 8},
16862 },
16863 .block_erase = erase_sector_jedec,
16864 }, {
16865 .eraseblocks = { {4 * 1024 * 1024, 1} },
16866 .block_erase = erase_chip_block_jedec,
16867 },
16868 },
16869 .write = write_jedec_1,
16870 .read = read_memmapped,
16871 .voltage = {2700, 3600},
16872 },
16873
16874 {
16875 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000016876 .name = "W29GL064CB",
16877 .bustype = BUS_PARALLEL,
16878 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
16879 .model_id = WINBOND_W29GL064CB,
16880 .total_size = 8192,
16881 .page_size = 128 * 1024, /* actual page size is 16 */
16882 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
16883 .tested = TEST_UNTESTED,
16884 .probe = probe_jedec_29gl,
16885 .probe_timing = TIMING_ZERO,
16886 .block_erasers =
16887 {
16888 {
16889 .eraseblocks = {
16890 {8 * 1024, 8},
16891 {64 * 1024, 127},
16892 },
16893 .block_erase = erase_sector_jedec,
16894 }, {
16895 .eraseblocks = { {8 * 1024 * 1024, 1} },
16896 .block_erase = erase_chip_block_jedec,
16897 },
16898 },
16899 .write = write_jedec_1,
16900 .read = read_memmapped,
16901 .voltage = {2700, 3600},
16902 },
16903
16904 {
16905 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100016906 .name = "W29GL064CH/L",
16907 .bustype = BUS_PARALLEL,
16908 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
16909 .model_id = WINBOND_W29GL064CHL,
16910 .total_size = 8192,
16911 .page_size = 128 * 1024, /* actual page size is 16 */
16912 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
16913 .tested = TEST_UNTESTED,
16914 .probe = probe_jedec_29gl,
16915 .probe_timing = TIMING_ZERO,
16916 .block_erasers =
16917 {
16918 {
16919 .eraseblocks = { {64 * 1024, 128} },
16920 .block_erase = erase_sector_jedec,
16921 }, {
16922 .eraseblocks = { {8 * 1024 * 1024, 1} },
16923 .block_erase = erase_chip_block_jedec,
16924 },
16925 },
16926 .write = write_jedec_1,
16927 .read = read_memmapped,
16928 .voltage = {2700, 3600},
16929 },
16930
16931 {
16932 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000016933 .name = "W29GL064CT",
16934 .bustype = BUS_PARALLEL,
16935 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
16936 .model_id = WINBOND_W29GL064CT,
16937 .total_size = 8192,
16938 .page_size = 128 * 1024, /* actual page size is 16 */
16939 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
16940 .tested = TEST_UNTESTED,
16941 .probe = probe_jedec_29gl,
16942 .probe_timing = TIMING_ZERO,
16943 .block_erasers =
16944 {
16945 {
16946 .eraseblocks = {
16947 {64 * 1024, 127},
16948 {8 * 1024, 8},
16949 },
16950 .block_erase = erase_sector_jedec,
16951 }, {
16952 .eraseblocks = { {8 * 1024 * 1024, 1} },
16953 .block_erase = erase_chip_block_jedec,
16954 },
16955 },
16956 .write = write_jedec_1,
16957 .read = read_memmapped,
16958 .voltage = {2700, 3600},
16959 },
16960
16961 {
16962 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000016963 .name = "W29GL128C",
16964 .bustype = BUS_PARALLEL,
16965 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
16966 .model_id = WINBOND_W29GL128CHL,
16967 .total_size = 16384,
16968 .page_size = 128 * 1024, /* actual page size is 16 */
16969 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
16970 .tested = TEST_UNTESTED,
16971 .probe = probe_jedec_29gl,
16972 .probe_timing = TIMING_ZERO,
16973 .block_erasers =
16974 {
16975 {
16976 .eraseblocks = { {128 * 1024, 128} },
16977 .block_erase = erase_sector_jedec,
16978 }, {
16979 .eraseblocks = { {16 * 1024 * 1024, 1} },
16980 .block_erase = erase_chip_block_jedec,
16981 },
16982 },
16983 .write = write_jedec_1,
16984 .read = read_memmapped,
16985 .voltage = {2700, 3600},
16986 },
16987
16988 {
16989 .vendor = "Winbond",
Kyösti Mälkkic31243e2012-10-28 01:50:08 +000016990 .name = "W39F010",
16991 .bustype = BUS_PARALLEL,
16992 .manufacture_id = WINBOND_ID,
16993 .model_id = WINBOND_W39F010,
16994 .total_size = 128,
16995 .page_size = 4 * 1024,
16996 .feature_bits = FEATURE_EITHER_RESET,
16997 .tested = TEST_OK_PREW,
16998 .probe = probe_jedec,
16999 .probe_timing = 10,
17000 .block_erasers =
17001 {
17002 {
17003 .eraseblocks = { {4 * 1024, 32} },
17004 .block_erase = erase_block_jedec,
17005 }, {
17006 .eraseblocks = { {128 * 1024, 1} },
17007 .block_erase = erase_chip_block_jedec,
17008 }
17009 },
17010 .printlock = printlock_w39f010,
17011 .write = write_jedec_1,
17012 .read = read_memmapped,
17013 .voltage = {4500, 5500},
17014 },
17015
17016 {
17017 .vendor = "Winbond",
17018 .name = "W39L010",
17019 .bustype = BUS_PARALLEL,
17020 .manufacture_id = WINBOND_ID,
17021 .model_id = WINBOND_W39L010,
17022 .total_size = 128,
17023 .page_size = 4 * 1024,
17024 .feature_bits = FEATURE_EITHER_RESET,
17025 .tested = TEST_UNTESTED,
17026 .probe = probe_jedec,
17027 .probe_timing = 10,
17028 .block_erasers =
17029 {
17030 {
17031 .eraseblocks = { {4 * 1024, 32} },
17032 .block_erase = erase_block_jedec,
17033 }, {
17034 .eraseblocks = { {128 * 1024, 1} },
17035 .block_erase = erase_chip_block_jedec,
17036 }
17037 },
17038 .printlock = printlock_w39l010,
17039 .write = write_jedec_1,
17040 .read = read_memmapped,
17041 .voltage = {3000, 3600},
17042 },
17043
17044 {
17045 .vendor = "Winbond",
17046 .name = "W39L020",
17047 .bustype = BUS_PARALLEL,
17048 .manufacture_id = WINBOND_ID,
17049 .model_id = WINBOND_W39L020,
17050 .total_size = 256,
17051 .page_size = 4 * 1024,
17052 .feature_bits = FEATURE_EITHER_RESET,
17053 .tested = TEST_UNTESTED,
17054 .probe = probe_jedec,
17055 .probe_timing = 10,
17056 .block_erasers =
17057 {
17058 {
17059 .eraseblocks = { {4 * 1024, 64} },
17060 .block_erase = erase_block_jedec,
17061 }, {
17062 .eraseblocks = { {64 * 1024, 4} },
17063 .block_erase = erase_sector_jedec,
17064 }, {
17065 .eraseblocks = { {256 * 1024, 1} },
17066 .block_erase = erase_chip_block_jedec,
17067 }
17068 },
17069 .printlock = printlock_w39l020,
17070 .write = write_jedec_1,
17071 .read = read_memmapped,
17072 .voltage = {3000, 3600},
17073 },
17074
17075 {
17076 .vendor = "Winbond",
Michael Karcher19e0aac2011-03-06 17:58:05 +000017077 .name = "W39L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017078 .bustype = BUS_PARALLEL,
Michael Karcher19e0aac2011-03-06 17:58:05 +000017079 .manufacture_id = WINBOND_ID,
17080 .model_id = WINBOND_W39L040,
17081 .total_size = 512,
17082 .page_size = 64 * 1024,
17083 .feature_bits = FEATURE_EITHER_RESET,
17084 .tested = TEST_OK_PR,
17085 .probe = probe_jedec,
17086 .probe_timing = 10,
17087 .block_erasers =
17088 {
17089 {
17090 .eraseblocks = { {4 * 1024, 128} },
17091 .block_erase = erase_block_jedec,
17092 }, {
17093 .eraseblocks = { {64 * 1024, 8} },
17094 .block_erase = erase_sector_jedec,
17095 }, {
17096 .eraseblocks = { {512 * 1024, 1} },
17097 .block_erase = erase_chip_block_jedec,
17098 }
17099 },
17100 .printlock = printlock_w39l040,
17101 .write = write_jedec_1,
17102 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000017103 .voltage = {3000, 3600},
Michael Karcher19e0aac2011-03-06 17:58:05 +000017104 },
17105
17106 {
17107 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017108 .name = "W39V040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017109 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017110 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017111 .model_id = WINBOND_W39V040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017112 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000017113 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000017114 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000017115 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017116 .probe = probe_jedec,
Stefan Tauner716e0982011-07-25 20:38:52 +000017117 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017118 .block_erasers =
17119 {
17120 {
17121 .eraseblocks = { {64 * 1024, 8} },
17122 .block_erase = erase_sector_jedec,
17123 }, {
17124 .eraseblocks = { {512 * 1024, 1} },
17125 .block_erase = erase_chip_block_jedec,
17126 }
17127 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017128 .printlock = printlock_w39v040a,
Sean Nelson35727f72010-01-28 23:55:12 +000017129 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017130 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017131 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000017132 },
17133
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017134 {
17135 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017136 .name = "W39V040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017137 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017138 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017139 .model_id = WINBOND_W39V040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017140 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000017141 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000017142 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000017143 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017144 .probe = probe_jedec,
Paul Menzel018d4822011-10-21 12:33:07 +000017145 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017146 .block_erasers =
17147 {
17148 {
17149 .eraseblocks = { {64 * 1024, 8} },
17150 .block_erase = erase_sector_jedec,
17151 }, {
17152 .eraseblocks = { {512 * 1024, 1} },
17153 .block_erase = erase_chip_block_jedec,
17154 }
17155 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017156 .printlock = printlock_w39v040b,
Sean Nelson35727f72010-01-28 23:55:12 +000017157 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017158 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017159 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000017160 },
17161
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017162 {
17163 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017164 .name = "W39V040C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017165 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017166 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017167 .model_id = WINBOND_W39V040C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017168 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000017169 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000017170 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000017171 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +000017172 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017173 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017174 .block_erasers =
17175 {
17176 {
17177 .eraseblocks = { {64 * 1024, 8} },
17178 .block_erase = erase_sector_jedec,
17179 }, {
17180 .eraseblocks = { {512 * 1024, 1} },
17181 .block_erase = erase_chip_block_jedec,
17182 }
17183 },
Sean Nelson6e0b9122010-02-19 00:52:10 +000017184 .printlock = printlock_w39v040c,
Sean Nelson35727f72010-01-28 23:55:12 +000017185 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017186 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017187 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000017188 },
17189
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017190 {
17191 .vendor = "Winbond",
17192 .name = "W39V040FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017193 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017194 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017195 .model_id = WINBOND_W39V040FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017196 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000017197 .page_size = 64 * 1024,
Michael Karcherc9b63412010-05-30 16:55:18 +000017198 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner23e10b82016-01-23 16:16:49 +000017199 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017200 .probe = probe_jedec,
Antony Rheneus0fbba982011-05-26 14:28:51 +000017201 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017202 .block_erasers =
17203 {
17204 {
17205 .eraseblocks = { {4 * 1024, 128} },
17206 .block_erase = erase_block_jedec,
17207 }, {
17208 .eraseblocks = { {64 * 1024, 8} },
17209 .block_erase = erase_sector_jedec,
17210 }, {
17211 .eraseblocks = { {512 * 1024, 1} },
17212 .block_erase = erase_chip_block_jedec,
17213 }
17214 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017215 .printlock = printlock_w39v040fa,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000017216 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000017217 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017218 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017219 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000017220 },
17221
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017222 {
17223 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017224 .name = "W39V040FB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017225 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017226 .manufacture_id = WINBOND_ID,
17227 .model_id = WINBOND_W39V040B,
17228 .total_size = 512,
17229 .page_size = 64 * 1024,
17230 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner0be072c2016-03-13 15:16:30 +000017231 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017232 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000017233 .probe_timing = 10,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017234 .block_erasers =
17235 {
17236 {
17237 .eraseblocks = { {64 * 1024, 8} },
17238 .block_erase = erase_sector_jedec,
17239 }, {
17240 .eraseblocks = { {512 * 1024, 1} },
17241 .block_erase = erase_chip_block_jedec,
17242 }
17243 },
17244 .printlock = printlock_w39v040fb,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000017245 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017246 .write = write_jedec_1,
17247 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000017248 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017249 },
17250
17251 {
17252 .vendor = "Winbond",
17253 .name = "W39V040FC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017254 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017255 .manufacture_id = WINBOND_ID,
17256 .model_id = WINBOND_W39V040C,
17257 .total_size = 512,
17258 .page_size = 64 * 1024,
17259 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +000017260 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017261 .probe = probe_jedec,
17262 .probe_timing = 10,
17263 .block_erasers =
17264 {
17265 {
17266 .eraseblocks = { {64 * 1024, 8} },
17267 .block_erase = erase_sector_jedec,
17268 }, {
17269 .eraseblocks = { {512 * 1024, 1} },
17270 .block_erase = erase_chip_block_jedec,
17271 }
17272 },
17273 .printlock = printlock_w39v040fc,
17274 .write = write_jedec_1,
17275 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000017276 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017277 },
17278
17279 {
17280 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017281 .name = "W39V080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017282 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017283 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017284 .model_id = WINBOND_W39V080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017285 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000017286 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000017287 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +000017288 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017289 .probe = probe_jedec,
Paul Menzelac427b22012-02-16 21:07:07 +000017290 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017291 .block_erasers =
17292 {
17293 {
17294 .eraseblocks = { {64 * 1024, 16} },
17295 .block_erase = erase_sector_jedec,
17296 }, {
17297 .eraseblocks = { {1024 * 1024, 1} },
17298 .block_erase = erase_chip_block_jedec,
17299 }
17300 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000017301 .printlock = printlock_w39v080a,
Sean Nelson35727f72010-01-28 23:55:12 +000017302 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017303 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017304 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000017305 },
17306
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017307 {
17308 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017309 .name = "W39V080FA",
17310 .bustype = BUS_FWH,
17311 .manufacture_id = WINBOND_ID,
17312 .model_id = WINBOND_W39V080FA,
17313 .total_size = 1024,
17314 .page_size = 64 * 1024,
17315 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
17316 .tested = TEST_OK_PREW,
17317 .probe = probe_jedec,
17318 .probe_timing = 10,
17319 .block_erasers =
17320 {
17321 {
17322 .eraseblocks = { {64 * 1024, 16} },
17323 .block_erase = erase_sector_jedec,
17324 }, {
17325 .eraseblocks = { {1024 * 1024, 1} },
17326 .block_erase = erase_chip_block_jedec,
17327 }
17328 },
17329 .printlock = printlock_w39v080fa,
17330 .unlock = unlock_regspace2_uniform_64k,
17331 .write = write_jedec_1,
17332 .read = read_memmapped,
17333 .voltage = {3000, 3600}, /* Also has 12V fast program */
17334 },
17335
17336 {
17337 .vendor = "Winbond",
17338 .name = "W39V080FA (dual mode)",
17339 .bustype = BUS_FWH,
17340 .manufacture_id = WINBOND_ID,
17341 .model_id = WINBOND_W39V080FA_DM,
17342 .total_size = 512,
17343 .page_size = 64 * 1024,
17344 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
17345 .tested = TEST_UNTESTED,
17346 .probe = probe_jedec,
17347 .probe_timing = 10,
17348 .block_erasers =
17349 {
17350 {
17351 .eraseblocks = { {64 * 1024, 8} },
17352 .block_erase = erase_sector_jedec,
17353 }, {
17354 .eraseblocks = { {512 * 1024, 1} },
17355 .block_erase = erase_chip_block_jedec,
17356 }
17357 },
17358 .printlock = printlock_w39v080fa_dual,
17359 .write = write_jedec_1,
17360 .read = read_memmapped,
17361 .voltage = {3000, 3600}, /* Also has 12V fast program */
17362 },
17363
17364 {
17365 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000017366 .name = "W49F002U/N",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017367 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017368 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017369 .model_id = WINBOND_W49F002U,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017370 .total_size = 256,
17371 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000017372 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000017373 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017374 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000017375 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017376 .block_erasers =
17377 {
17378 {
17379 .eraseblocks = {
17380 {128 * 1024, 1},
17381 {96 * 1024, 1},
17382 {8 * 1024, 2},
17383 {16 * 1024, 1},
17384 },
17385 .block_erase = erase_sector_jedec,
17386 }, {
17387 .eraseblocks = { {256 * 1024, 1} },
17388 .block_erase = erase_chip_block_jedec,
17389 }
17390 },
Sean Nelson35727f72010-01-28 23:55:12 +000017391 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017392 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017393 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000017394 },
17395
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017396 {
17397 .vendor = "Winbond",
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000017398 .name = "W49F020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017399 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000017400 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017401 .model_id = WINBOND_W49F020,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000017402 .total_size = 256,
17403 .page_size = 128,
17404 .feature_bits = FEATURE_EITHER_RESET,
17405 .tested = TEST_OK_PROBE,
17406 .probe = probe_jedec,
17407 .probe_timing = 10,
17408 .block_erasers =
17409 {
17410 {
17411 .eraseblocks = { {256 * 1024, 1} },
17412 .block_erase = erase_chip_block_jedec,
17413 }
17414 },
17415 .write = write_jedec_1,
17416 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017417 .voltage = {4500, 5500},
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000017418 },
17419
17420 {
17421 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017422 .name = "W49V002A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017423 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017424 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017425 .model_id = WINBOND_W49V002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017426 .total_size = 256,
17427 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000017428 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000017429 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017430 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000017431 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017432 .block_erasers =
17433 {
17434 {
17435 .eraseblocks = {
17436 {64 * 1024, 3},
17437 {32 * 1024, 1},
17438 {8 * 1024, 2},
17439 {16 * 1024, 1},
17440 },
17441 .block_erase = erase_sector_jedec,
17442 }, {
17443 .eraseblocks = { {256 * 1024, 1} },
17444 .block_erase = erase_chip_block_jedec,
17445 }
17446 },
Sean Nelson35727f72010-01-28 23:55:12 +000017447 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017448 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017449 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000017450 },
17451
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017452 {
17453 .vendor = "Winbond",
17454 .name = "W49V002FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017455 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017456 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017457 .model_id = WINBOND_W49V002FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017458 .total_size = 256,
17459 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000017460 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000017461 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017462 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000017463 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017464 .block_erasers =
17465 {
17466 {
17467 .eraseblocks = {
17468 {64 * 1024, 3},
17469 {32 * 1024, 1},
17470 {8 * 1024, 2},
17471 {16 * 1024, 1},
17472 },
17473 .block_erase = erase_sector_jedec,
17474 }, {
17475 .eraseblocks = { {256 * 1024, 1} },
17476 .block_erase = erase_chip_block_jedec,
17477 }
17478 },
Sean Nelson35727f72010-01-28 23:55:12 +000017479 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017480 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017481 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000017482 },
17483
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017484 {
Alan Greenfa3fcd32019-06-27 15:41:50 +100017485 .vendor = "Zetta Device",
17486 .name = "ZD25D20",
17487 .bustype = BUS_SPI,
17488 .manufacture_id = ZETTADEVICE_ID,
17489 .model_id = ZETTADEVICE_ZD25D20,
17490 .total_size = 256,
17491 .page_size = 256,
17492 .feature_bits = FEATURE_WRSR_WREN,
17493 .tested = TEST_UNTESTED,
17494 .probe = probe_spi_rdid,
17495 .probe_timing = TIMING_ZERO,
17496 .block_erasers =
David Hendricksa72d5a92018-02-11 17:58:44 -080017497 {
17498 {
17499 .eraseblocks = { {4 * 1024, 64} },
17500 .block_erase = spi_block_erase_20,
17501 }, {
17502 .eraseblocks = { {32 * 1024, 8} },
17503 .block_erase = spi_block_erase_52,
17504 }, {
17505 .eraseblocks = { {64 * 1024, 4} },
17506 .block_erase = spi_block_erase_d8,
17507 }, {
17508 .eraseblocks = { {256 * 1024, 1} },
17509 .block_erase = spi_block_erase_60,
17510 }, {
17511 .eraseblocks = { {256 * 1024, 1} },
17512 .block_erase = spi_block_erase_c7,
17513 }
17514 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100017515 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17516 .unlock = spi_disable_blockprotect,
17517 .write = spi_chip_write_256,
17518 .read = spi_chip_read,
17519 .voltage = {2700, 3600},
David Hendricksa72d5a92018-02-11 17:58:44 -080017520 },
17521
17522 {
Alan Greenfa3fcd32019-06-27 15:41:50 +100017523 .vendor = "Zetta Device",
17524 .name = "ZD25D40",
17525 .bustype = BUS_SPI,
17526 .manufacture_id = ZETTADEVICE_ID,
17527 .model_id = ZETTADEVICE_ZD25D40,
17528 .total_size = 512,
17529 .page_size = 256,
17530 .feature_bits = FEATURE_WRSR_WREN,
17531 .tested = TEST_UNTESTED,
17532 .probe = probe_spi_rdid,
17533 .probe_timing = TIMING_ZERO,
17534 .block_erasers =
nybashcbb46e22018-02-11 17:53:49 -080017535 {
17536 {
17537 .eraseblocks = { {4 * 1024, 128} },
17538 .block_erase = spi_block_erase_20,
17539 }, {
17540 .eraseblocks = { {32 * 1024, 16} },
17541 .block_erase = spi_block_erase_52,
17542 }, {
17543 .eraseblocks = { {64 * 1024, 8} },
17544 .block_erase = spi_block_erase_d8,
17545 }, {
17546 .eraseblocks = { {512 * 1024, 1} },
17547 .block_erase = spi_block_erase_60,
17548 }, {
17549 .eraseblocks = { {512 * 1024, 1} },
17550 .block_erase = spi_block_erase_c7,
17551 }
17552 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100017553 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17554 .unlock = spi_disable_blockprotect,
17555 .write = spi_chip_write_256,
17556 .read = spi_chip_read,
17557 .voltage = {2700, 3600},
nybashcbb46e22018-02-11 17:53:49 -080017558 },
17559
Stefan Taunerac1b4c82012-02-17 14:51:04 +000017560 {
Carl-Daniel Hailfinger532c7172011-11-04 21:35:26 +000017561 .vendor = "Programmer",
17562 .name = "Opaque flash chip",
17563 .bustype = BUS_PROG,
17564 .manufacture_id = PROGMANUF_ID,
17565 .model_id = PROGDEV_ID,
17566 .total_size = 0,
17567 .page_size = 256,
17568 /* probe is assumed to work, rest will be filled in by probe */
17569 .tested = TEST_OK_PROBE,
17570 .probe = probe_opaque,
17571 /* eraseblock sizes will be set by the probing function */
17572 .block_erasers =
17573 {
17574 {
17575 .block_erase = erase_opaque,
17576 }
17577 },
17578 .write = write_opaque,
17579 .read = read_opaque,
17580 },
17581
17582 {
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000017583 .vendor = "AMIC",
17584 .name = "unknown AMIC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017585 .bustype = BUS_SPI,
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000017586 .manufacture_id = AMIC_ID,
17587 .model_id = GENERIC_DEVICE_ID,
17588 .total_size = 0,
17589 .page_size = 256,
17590 .tested = TEST_BAD_PREW,
17591 .probe = probe_spi_rdid4,
17592 .probe_timing = TIMING_ZERO,
17593 .write = NULL,
17594 .read = NULL,
17595 },
17596
17597 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017598 .vendor = "Atmel",
17599 .name = "unknown Atmel SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017600 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017601 .manufacture_id = ATMEL_ID,
17602 .model_id = GENERIC_DEVICE_ID,
17603 .total_size = 0,
17604 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000017605 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017606 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000017607 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017608 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017609 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000017610 },
17611
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017612 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +000017613 .vendor = "Eon",
17614 .name = "unknown Eon SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017615 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017616 .manufacture_id = EON_ID_NOPREFIX,
17617 .model_id = GENERIC_DEVICE_ID,
17618 .total_size = 0,
17619 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000017620 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017621 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000017622 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017623 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017624 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000017625 },
17626
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017627 {
17628 .vendor = "Macronix",
17629 .name = "unknown Macronix SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017630 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000017631 .manufacture_id = MACRONIX_ID,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017632 .model_id = GENERIC_DEVICE_ID,
17633 .total_size = 0,
17634 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000017635 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017636 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000017637 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017638 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017639 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000017640 },
17641
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017642 {
17643 .vendor = "PMC",
17644 .name = "unknown PMC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017645 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017646 .manufacture_id = PMC_ID,
17647 .model_id = GENERIC_DEVICE_ID,
17648 .total_size = 0,
17649 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000017650 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017651 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000017652 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017653 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017654 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000017655 },
17656
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017657 {
17658 .vendor = "SST",
17659 .name = "unknown SST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017660 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017661 .manufacture_id = SST_ID,
17662 .model_id = GENERIC_DEVICE_ID,
17663 .total_size = 0,
17664 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000017665 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017666 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000017667 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017668 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017669 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000017670 },
17671
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017672 {
17673 .vendor = "ST",
17674 .name = "unknown ST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017675 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017676 .manufacture_id = ST_ID,
17677 .model_id = GENERIC_DEVICE_ID,
17678 .total_size = 0,
17679 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000017680 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017681 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000017682 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017683 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017684 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000017685 },
Uwe Hermannfc425e82008-03-16 02:06:25 +000017686
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000017687 {
Sean Nelson118e1d62009-11-24 02:08:11 +000017688 .vendor = "Sanyo",
17689 .name = "unknown Sanyo SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017690 .bustype = BUS_SPI,
Sean Nelson118e1d62009-11-24 02:08:11 +000017691 .manufacture_id = SANYO_ID,
17692 .model_id = GENERIC_DEVICE_ID,
17693 .total_size = 0,
17694 .page_size = 256,
17695 .tested = TEST_BAD_PREW,
17696 .probe = probe_spi_rdid,
17697 .probe_timing = TIMING_ZERO,
Sean Nelson118e1d62009-11-24 02:08:11 +000017698 .write = NULL,
17699 .read = NULL,
17700 },
17701
17702 {
Stefan Taunereb582572012-09-21 12:52:50 +000017703 .vendor = "Winbond",
17704 .name = "unknown Winbond (ex Nexcom) SPI chip",
17705 .bustype = BUS_SPI,
17706 .manufacture_id = WINBOND_NEX_ID,
17707 .model_id = GENERIC_DEVICE_ID,
17708 .total_size = 0,
17709 .page_size = 256,
17710 .tested = TEST_BAD_PREW,
17711 .probe = probe_spi_rdid,
17712 .probe_timing = TIMING_ZERO,
17713 .write = NULL,
17714 .read = NULL,
17715 },
17716
17717 {
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000017718 .vendor = "Generic",
17719 .name = "unknown SPI chip (RDID)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017720 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000017721 .manufacture_id = GENERIC_MANUF_ID,
17722 .model_id = GENERIC_DEVICE_ID,
17723 .total_size = 0,
17724 .page_size = 256,
17725 .tested = TEST_BAD_PREW,
17726 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000017727 .write = NULL,
17728 },
Stefan Tauneraf2db612011-12-02 21:48:17 +000017729
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000017730 {
17731 .vendor = "Generic",
17732 .name = "unknown SPI chip (REMS)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017733 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000017734 .manufacture_id = GENERIC_MANUF_ID,
17735 .model_id = GENERIC_DEVICE_ID,
17736 .total_size = 0,
17737 .page_size = 256,
17738 .tested = TEST_BAD_PREW,
17739 .probe = probe_spi_rems,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000017740 .write = NULL,
17741 },
17742
Stefan Tauner96658be2014-05-26 22:05:31 +000017743 {0}
Stephan Guilloux72cf5652009-04-21 01:46:07 +000017744};
Stefan Tauner96658be2014-05-26 22:05:31 +000017745
17746const unsigned int flashchips_size = ARRAY_SIZE(flashchips);