blob: ab25079c1d810a81808eb13dd0db0dbc1b6f21c7 [file] [log] [blame]
Ollie Lho184a4042005-11-26 21:55:36 +00001/*
Uwe Hermannd1107642007-08-29 17:52:32 +00002 * This file is part of the flashrom project.
Ollie Lho184a4042005-11-26 21:55:36 +00003 *
Uwe Hermannd22a1d42007-09-09 20:21:05 +00004 * Copyright (C) 2000 Silicon Integrated System Corporation
5 * Copyright (C) 2004 Tyan Corp
Stefan Reinauer4c390c82008-07-02 13:33:09 +00006 * Copyright (C) 2005-2008 coresystems GmbH <stepan@openbios.org>
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00007 * Copyright (C) 2006-2009 Carl-Daniel Hailfinger
Sean Nelsonc57a9202010-01-04 17:15:23 +00008 * Copyright (C) 2009 Sean Nelson <audiohacked@gmail.com>
Uwe Hermannd1107642007-08-29 17:52:32 +00009 *
Stefan Reinauerce532972007-05-23 17:20:56 +000010 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
Ollie Lho184a4042005-11-26 21:55:36 +000014 *
Stefan Reinauerce532972007-05-23 17:20:56 +000015 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
Ollie Lho184a4042005-11-26 21:55:36 +000019 */
20
21#include "flash.h"
Carl-Daniel Hailfinger08454642009-06-15 14:14:48 +000022#include "flashchips.h"
Sean Nelson14ba6682010-02-26 05:48:29 +000023#include "chipdrivers.h"
Ollie Lho184a4042005-11-26 21:55:36 +000024
Uwe Hermannfc425e82008-03-16 02:06:25 +000025/**
Uwe Hermanna9720402009-05-21 15:55:46 +000026 * List of supported flash chips.
Uwe Hermannfc425e82008-03-16 02:06:25 +000027 *
Alan Green1f9cc7d2019-07-01 11:10:45 +100028 * Temporarily, this file is sorted alphabetically by vendor and name to
29 * assist with merging the Chromium fork of flashrom.
30 *
31 * The usual intention is that that this list is sorted by vendor, then chip
32 * family and chip density, which is useful for the output of 'flashrom -L'.
Uwe Hermannfc425e82008-03-16 02:06:25 +000033 */
Carl-Daniel Hailfinger4c823182011-05-04 00:39:50 +000034const struct flashchip flashchips[] = {
Uwe Hermannfc425e82008-03-16 02:06:25 +000035
Carl-Daniel Hailfinger21eedec2009-07-23 12:42:01 +000036 /*
37 * .vendor = Vendor name
38 * .name = Chip name
39 * .bustype = Supported flash bus types (Parallel, LPC...)
40 * .manufacture_id = Manufacturer chip ID
41 * .model_id = Model chip ID
42 * .total_size = Total size in (binary) kbytes
43 * .page_size = Page or eraseblock(?) size in bytes
44 * .tested = Test status
45 * .probe = Probe function
46 * .probe_timing = Probe function delay
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +000047 * .block_erasers[] = Array of erase layouts and erase functions
48 * {
49 * .eraseblocks[] = Array of { blocksize, blockcount }
50 * .block_erase = Block erase function
51 * }
Sean Nelson6e0b9122010-02-19 00:52:10 +000052 * .printlock = Chip lock status function
53 * .unlock = Chip unlock function
Carl-Daniel Hailfinger21eedec2009-07-23 12:42:01 +000054 * .write = Chip write function
55 * .read = Chip read function
Steven Zakuleccbe370e2011-06-03 07:26:31 +000056 * .voltage = Voltage range in millivolt
FENG yu ningff692fb2008-12-08 18:15:10 +000057 */
58
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000059 {
60 .vendor = "AMD",
61 .name = "Am29F002(N)BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000062 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000063 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000064 .model_id = AMD_AM29F002BB,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000065 .total_size = 256,
66 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000067 .feature_bits = FEATURE_SHORT_RESET | FEATURE_ADDR_2AA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000068 .tested = TEST_UNTESTED,
69 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000070 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +000071 .block_erasers =
72 {
73 {
74 .eraseblocks = {
75 {16 * 1024, 1},
76 {8 * 1024, 2},
77 {32 * 1024, 1},
78 {64 * 1024, 3},
79 },
80 .block_erase = erase_sector_jedec,
81 }, {
82 .eraseblocks = { {256 * 1024, 1} },
83 .block_erase = erase_chip_block_jedec,
84 },
85 },
Michael Karcher1c296ca2009-11-27 17:49:42 +000086 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000087 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000088 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000089 },
90
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000091 {
92 .vendor = "AMD",
93 .name = "Am29F002(N)BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000094 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000095 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000096 .model_id = AMD_AM29F002BT,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000097 .total_size = 256,
98 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000099 .feature_bits = FEATURE_EITHER_RESET | FEATURE_ADDR_2AA,
100 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000101 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +0000102 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000103 .block_erasers =
104 {
105 {
106 .eraseblocks = {
107 {64 * 1024, 3},
108 {32 * 1024, 1},
109 {8 * 1024, 2},
110 {16 * 1024, 1},
111 },
112 .block_erase = erase_sector_jedec,
113 }, {
114 .eraseblocks = { {256 * 1024, 1} },
115 .block_erase = erase_chip_block_jedec,
116 },
117 },
Michael Karcher1c296ca2009-11-27 17:49:42 +0000118 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000119 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000120 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +0000121 },
122
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000123 {
124 .vendor = "AMD",
Alan Green1f9cc7d2019-07-01 11:10:45 +1000125 .name = "Am29F010",
126 .bustype = BUS_PARALLEL,
127 .manufacture_id = AMD_ID,
128 .model_id = AMD_AM29F010,
129 .total_size = 128,
130 .page_size = 16 * 1024,
131 .feature_bits = FEATURE_SHORT_RESET,
132 .tested = TEST_UNTESTED,
133 .probe = probe_jedec,
134 .probe_timing = TIMING_ZERO,
135 .block_erasers =
136 {
137 {
138 .eraseblocks = { {16 * 1024, 8} },
139 .block_erase = erase_sector_jedec,
140 }, {
141 .eraseblocks = { {128 * 1024, 1} },
142 .block_erase = erase_chip_block_jedec,
143 },
144 },
145 .write = write_jedec_1,
146 .read = read_memmapped,
147 .voltage = {4500, 5500},
148 },
149
150 {
151 .vendor = "AMD",
152 .name = "Am29F010A/B",
153 .bustype = BUS_PARALLEL,
154 .manufacture_id = AMD_ID,
155 .model_id = AMD_AM29F010,
156 .total_size = 128,
157 .page_size = 16 * 1024,
158 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Alan Greena4e579f2019-07-24 14:18:39 +1000159 .tested = TEST_OK_PRE,
Alan Green1f9cc7d2019-07-01 11:10:45 +1000160 .probe = probe_jedec,
161 .probe_timing = TIMING_ZERO,
162 .block_erasers =
163 {
164 {
165 .eraseblocks = { {16 * 1024, 8} },
166 .block_erase = erase_sector_jedec,
167 }, {
168 .eraseblocks = { {128 * 1024, 1} },
169 .block_erase = erase_chip_block_jedec,
170 },
171 },
172 .write = write_jedec_1,
173 .read = read_memmapped,
174 .voltage = {4500, 5500},
175 },
176
177 {
178 .vendor = "AMD",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000179 .name = "Am29F016D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000180 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000181 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000182 .model_id = AMD_AM29F016D,
Sean Nelson72a9a022009-12-22 22:15:33 +0000183 .total_size = 2 * 1024,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000184 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000185 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000186 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +0000187 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000188 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000189 .block_erasers =
190 {
191 {
192 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson35727f72010-01-28 23:55:12 +0000193 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000194 }, {
195 .eraseblocks = { {2048 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000196 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000197 },
198 },
Sean Nelson35727f72010-01-28 23:55:12 +0000199 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000200 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000201 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +0000202 },
203
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000204 {
205 .vendor = "AMD",
Stefan Taunerd1ca1e82016-01-31 23:17:35 +0000206 .name = "Am29F040",
207 .bustype = BUS_PARALLEL,
208 .manufacture_id = AMD_ID,
209 .model_id = AMD_AM29F040,
210 .total_size = 512,
211 .page_size = 64 * 1024,
212 .feature_bits = FEATURE_EITHER_RESET,
213 .tested = TEST_UNTESTED,
214 .probe = probe_jedec,
215 .probe_timing = TIMING_ZERO,
216 .block_erasers =
217 {
218 {
219 .eraseblocks = { {64 * 1024, 8} },
220 .block_erase = erase_sector_jedec,
221 }, {
222 .eraseblocks = { {512 * 1024, 1} },
223 .block_erase = erase_chip_block_jedec,
224 },
225 },
226 .write = write_jedec_1,
227 .read = read_memmapped,
228 .voltage = {4500, 5500},
229 },
230
231 {
232 .vendor = "AMD",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000233 .name = "Am29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000234 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000235 .manufacture_id = AMD_ID,
Stefan Taunerd1ca1e82016-01-31 23:17:35 +0000236 .model_id = AMD_AM29F040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000237 .total_size = 512,
238 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000239 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
240 .tested = TEST_UNTESTED,
241 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000242 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000243 .block_erasers =
244 {
245 {
246 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +0000247 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000248 }, {
249 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000250 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000251 },
252 },
Sean Nelson35727f72010-01-28 23:55:12 +0000253 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000254 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000255 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +0000256 },
257
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000258 {
259 .vendor = "AMD",
Stefan Taunerd1ca1e82016-01-31 23:17:35 +0000260 .name = "Am29F080",
261 .bustype = BUS_PARALLEL,
262 .manufacture_id = AMD_ID,
263 .model_id = AMD_AM29F080,
264 .total_size = 1024,
265 .page_size = 64 * 1024,
266 .feature_bits = FEATURE_EITHER_RESET,
267 .tested = TEST_UNTESTED,
268 .probe = probe_jedec,
269 .probe_timing = TIMING_ZERO,
270 .block_erasers =
271 {
272 {
273 .eraseblocks = { {64 * 1024, 16} },
274 .block_erase = erase_sector_jedec,
275 }, {
276 .eraseblocks = { {1024 * 1024, 1} },
277 .block_erase = erase_chip_block_jedec,
278 },
279 },
280 .write = write_jedec_1,
281 .read = read_memmapped,
282 .voltage = {4500, 5500},
283 },
284
285 {
286 .vendor = "AMD",
Peter Stuge8440cc02009-01-25 23:55:12 +0000287 .name = "Am29F080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000288 .bustype = BUS_PARALLEL,
Mateusz Murawski5bae4382009-06-02 00:38:14 +0000289 .manufacture_id = AMD_ID,
Stefan Taunerd1ca1e82016-01-31 23:17:35 +0000290 .model_id = AMD_AM29F080,
Peter Stuge8440cc02009-01-25 23:55:12 +0000291 .total_size = 1024,
292 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000293 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +0000294 .tested = TEST_UNTESTED,
295 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +0000296 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000297 .block_erasers =
298 {
299 {
300 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson35727f72010-01-28 23:55:12 +0000301 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000302 }, {
303 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000304 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000305 },
306 },
Sean Nelson35727f72010-01-28 23:55:12 +0000307 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000308 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000309 .voltage = {4500, 5500},
Peter Stuge8440cc02009-01-25 23:55:12 +0000310 },
311
312 {
313 .vendor = "AMD",
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000314 .name = "Am29LV001BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000315 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000316 .manufacture_id = AMD_ID,
317 .model_id = AMD_AM29LV001BB,
318 .total_size = 128,
319 .page_size = 64 * 1024, /* unused */
320 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
321 .tested = TEST_OK_PREW,
322 .probe = probe_jedec,
323 .probe_timing = TIMING_ZERO,
324 .block_erasers =
325 {
326 {
327 .eraseblocks = {
328 {8 * 1024, 1},
329 {4 * 1024, 2},
330 {16 * 1024, 7},
331 },
332 .block_erase = erase_sector_jedec,
333 }, {
334 .eraseblocks = { {128 * 1024, 1} },
335 .block_erase = erase_chip_block_jedec,
336 },
337 },
338 .write = write_jedec_1,
339 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000340 .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000341 },
342
343 {
344 .vendor = "AMD",
345 .name = "Am29LV001BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000346 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000347 .manufacture_id = AMD_ID,
348 .model_id = AMD_AM29LV001BT,
349 .total_size = 128,
350 .page_size = 64 * 1024, /* unused */
351 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
352 .tested = TEST_UNTESTED,
353 .probe = probe_jedec,
354 .probe_timing = TIMING_ZERO,
355 .block_erasers =
356 {
357 {
358 .eraseblocks = {
359 {16 * 1024, 7},
360 {4 * 1024, 2},
361 {8 * 1024, 1},
362 },
363 .block_erase = erase_sector_jedec,
364 }, {
365 .eraseblocks = { {128 * 1024, 1} },
366 .block_erase = erase_chip_block_jedec,
367 },
368 },
369 .write = write_jedec_1,
370 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000371 .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000372 },
373
374 {
375 .vendor = "AMD",
376 .name = "Am29LV002BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000377 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000378 .manufacture_id = AMD_ID,
379 .model_id = AMD_AM29LV002BB,
380 .total_size = 256,
381 .page_size = 64 * 1024, /* unused */
382 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
383 .tested = TEST_UNTESTED,
384 .probe = probe_jedec,
385 .probe_timing = TIMING_ZERO,
386 .block_erasers =
387 {
388 {
389 .eraseblocks = {
390 {16 * 1024, 1},
391 {8 * 1024, 2},
392 {32 * 1024, 1},
393 {64 * 1024, 3},
394 },
395 .block_erase = erase_sector_jedec,
396 }, {
397 .eraseblocks = { {256 * 1024, 1} },
398 .block_erase = erase_chip_block_jedec,
399 },
400 },
401 .write = write_jedec_1,
402 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000403 .voltage = {3000, 3600}, /* 3.0-3.6V for type -55, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000404 },
405
406 {
407 .vendor = "AMD",
408 .name = "Am29LV002BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000409 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000410 .manufacture_id = AMD_ID,
411 .model_id = AMD_AM29LV002BT,
412 .total_size = 256,
413 .page_size = 64 * 1024, /* unused */
414 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
415 .tested = TEST_UNTESTED,
416 .probe = probe_jedec,
417 .probe_timing = TIMING_ZERO,
418 .block_erasers =
419 {
420 {
421 .eraseblocks = {
422 {64 * 1024, 3},
423 {32 * 1024, 1},
424 {8 * 1024, 2},
425 {16 * 1024, 1},
426 },
427 .block_erase = erase_sector_jedec,
428 }, {
429 .eraseblocks = { {256 * 1024, 1} },
430 .block_erase = erase_chip_block_jedec,
431 },
432 },
433 .write = write_jedec_1,
434 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000435 .voltage = {3000, 3600}, /* 3.0-3.6V for type -55, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000436 },
437
438 {
439 .vendor = "AMD",
440 .name = "Am29LV004BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000441 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000442 .manufacture_id = AMD_ID,
443 .model_id = AMD_AM29LV004BB,
444 .total_size = 512,
445 .page_size = 64 * 1024, /* unused */
446 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
447 .tested = TEST_UNTESTED,
448 .probe = probe_jedec,
449 .probe_timing = TIMING_ZERO,
450 .block_erasers =
451 {
452 {
453 .eraseblocks = {
454 {16 * 1024, 1},
455 {8 * 1024, 2},
456 {32 * 1024, 1},
457 {64 * 1024, 7},
458 },
459 .block_erase = erase_sector_jedec,
460 }, {
461 .eraseblocks = { {512 * 1024, 1} },
462 .block_erase = erase_chip_block_jedec,
463 },
464 },
465 .write = write_jedec_1,
466 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000467 .voltage = {2700, 3600},
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000468 },
469
470 {
471 .vendor = "AMD",
472 .name = "Am29LV004BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000473 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000474 .manufacture_id = AMD_ID,
475 .model_id = AMD_AM29LV004BT,
476 .total_size = 512,
477 .page_size = 64 * 1024, /* unused */
478 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
479 .tested = TEST_UNTESTED,
480 .probe = probe_jedec,
481 .probe_timing = TIMING_ZERO,
482 .block_erasers =
483 {
484 {
485 .eraseblocks = {
486 {64 * 1024, 7},
487 {32 * 1024, 1},
488 {8 * 1024, 2},
489 {16 * 1024, 1},
490 },
491 .block_erase = erase_sector_jedec,
492 }, {
493 .eraseblocks = { {512 * 1024, 1} },
494 .block_erase = erase_chip_block_jedec,
495 },
496 },
497 .write = write_jedec_1,
498 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000499 .voltage = {2700, 3600},
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000500 },
501
502 {
503 .vendor = "AMD",
504 .name = "Am29LV008BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000505 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000506 .manufacture_id = AMD_ID,
507 .model_id = AMD_AM29LV008BB,
508 .total_size = 1024,
509 .page_size = 64 * 1024, /* unused */
510 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Uwe Hermann09ebd522011-08-25 22:54:23 +0000511 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000512 .probe = probe_jedec,
513 .probe_timing = TIMING_ZERO,
514 .block_erasers =
515 {
516 {
517 .eraseblocks = {
518 {16 * 1024, 1},
519 {8 * 1024, 2},
520 {32 * 1024, 1},
521 {64 * 1024, 15},
522 },
523 .block_erase = erase_sector_jedec,
524 }, {
525 .eraseblocks = { {1024 * 1024, 1} },
526 .block_erase = erase_chip_block_jedec,
527 },
528 },
529 .write = write_jedec_1,
530 .read = read_memmapped,
Alan Greenf5ad6882019-06-27 12:09:13 +1000531 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000532 },
533
534 {
535 .vendor = "AMD",
536 .name = "Am29LV008BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000537 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000538 .manufacture_id = AMD_ID,
539 .model_id = AMD_AM29LV008BT,
540 .total_size = 1024,
541 .page_size = 64 * 1024, /* unused */
542 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
543 .tested = TEST_UNTESTED,
544 .probe = probe_jedec,
545 .probe_timing = TIMING_ZERO,
546 .block_erasers =
547 {
548 {
549 .eraseblocks = {
550 {64 * 1024, 15},
551 {32 * 1024, 1},
552 {8 * 1024, 2},
553 {16 * 1024, 1},
554 },
555 .block_erase = erase_sector_jedec,
556 }, {
557 .eraseblocks = { {1024 * 1024, 1} },
558 .block_erase = erase_chip_block_jedec,
559 },
560 },
561 .write = write_jedec_1,
562 .read = read_memmapped,
Alan Greenf5ad6882019-06-27 12:09:13 +1000563 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70R, others 2.7-3.6V */
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000564 },
565
566 {
567 .vendor = "AMD",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000568 .name = "Am29LV040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000569 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000570 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000571 .model_id = AMD_AM29LV040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000572 .total_size = 512,
573 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000574 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000575 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +0000576 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000577 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000578 .block_erasers =
579 {
580 {
581 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +0000582 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000583 }, {
584 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000585 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000586 },
587 },
Sean Nelson35727f72010-01-28 23:55:12 +0000588 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000589 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000590 .voltage = {3000, 3600}, /* 3.0-3.6V for type -60R, others 2.7-3.6V*/
FENG yu ningff692fb2008-12-08 18:15:10 +0000591 },
592
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000593 {
Peter Stuge8440cc02009-01-25 23:55:12 +0000594 .vendor = "AMD",
595 .name = "Am29LV081B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000596 .bustype = BUS_PARALLEL,
Mateusz Murawski5bae4382009-06-02 00:38:14 +0000597 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000598 .model_id = AMD_AM29LV080B,
Peter Stuge8440cc02009-01-25 23:55:12 +0000599 .total_size = 1024,
600 .page_size = 64 * 1024,
David Borg204f4652010-12-04 03:26:40 +0000601 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, /* datasheet specifies address as don't care */
Peter Stuge8440cc02009-01-25 23:55:12 +0000602 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +0000603 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000604 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000605 .block_erasers =
606 {
607 {
608 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson35727f72010-01-28 23:55:12 +0000609 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000610 }, {
611 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000612 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000613 },
614 },
Sean Nelson35727f72010-01-28 23:55:12 +0000615 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000616 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000617 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70R, others 2.7-3.6V */
Peter Stuge8440cc02009-01-25 23:55:12 +0000618 },
619
620 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000621 .vendor = "AMIC",
Alan Green1f9cc7d2019-07-01 11:10:45 +1000622 .name = "A25L010",
623 .bustype = BUS_SPI,
624 .manufacture_id = AMIC_ID_NOPREFIX,
625 .model_id = AMIC_A25L010,
626 .total_size = 128,
627 .page_size = 256,
628 .feature_bits = FEATURE_WRSR_WREN,
629 .tested = TEST_UNTESTED,
630 .probe = probe_spi_rdid,
631 .probe_timing = TIMING_ZERO,
632 .block_erasers =
633 {
634 {
635 .eraseblocks = { { 4 * 1024, 32 } },
636 .block_erase = spi_block_erase_20,
637 }, {
638 .eraseblocks = { { 64 * 1024, 2 } },
639 .block_erase = spi_block_erase_d8,
640 }, {
641 .eraseblocks = { { 128 * 1024, 1 } },
642 .block_erase = spi_block_erase_c7,
643 }
644 },
645 .printlock = spi_prettyprint_status_register_bp2_srwd,
646 .unlock = spi_disable_blockprotect,
647 .write = spi_chip_write_256,
648 .read = spi_chip_read,
649 .voltage = {2700, 3600},
650 },
651
652 {
653 .vendor = "AMIC",
654 .name = "A25L016",
655 .bustype = BUS_SPI,
656 .manufacture_id = AMIC_ID_NOPREFIX,
657 .model_id = AMIC_A25L016,
658 .total_size = 2048,
659 .page_size = 256,
660 .feature_bits = FEATURE_WRSR_WREN,
661 .tested = TEST_UNTESTED,
662 .probe = probe_spi_rdid,
663 .probe_timing = TIMING_ZERO,
664 .block_erasers =
665 {
666 {
667 .eraseblocks = { { 4 * 1024, 512 } },
668 .block_erase = spi_block_erase_20,
669 }, {
670 .eraseblocks = { { 64 * 1024, 32 } },
671 .block_erase = spi_block_erase_d8,
672 }, {
673 .eraseblocks = { { 2048 * 1024, 1 } },
674 .block_erase = spi_block_erase_c7,
675 }
676 },
677 .printlock = spi_prettyprint_status_register_bp2_srwd,
678 .unlock = spi_disable_blockprotect,
679 .write = spi_chip_write_256,
680 .read = spi_chip_read,
681 .voltage = {2700, 3600},
682 },
683
684 {
685 .vendor = "AMIC",
686 .name = "A25L020",
687 .bustype = BUS_SPI,
688 .manufacture_id = AMIC_ID_NOPREFIX,
689 .model_id = AMIC_A25L020,
690 .total_size = 256,
691 .page_size = 256,
692 .feature_bits = FEATURE_WRSR_WREN,
693 .tested = TEST_UNTESTED,
694 .probe = probe_spi_rdid,
695 .probe_timing = TIMING_ZERO,
696 .block_erasers =
697 {
698 {
699 .eraseblocks = { { 4 * 1024, 64 } },
700 .block_erase = spi_block_erase_20,
701 }, {
702 .eraseblocks = { { 64 * 1024, 4 } },
703 .block_erase = spi_block_erase_d8,
704 }, {
705 .eraseblocks = { { 256 * 1024, 1 } },
706 .block_erase = spi_block_erase_c7,
707 }
708 },
709 .printlock = spi_prettyprint_status_register_bp2_srwd,
710 .unlock = spi_disable_blockprotect,
711 .write = spi_chip_write_256,
712 .read = spi_chip_read,
713 .voltage = {2700, 3600},
714 },
715
716 {
717 .vendor = "AMIC",
718 .name = "A25L032",
719 .bustype = BUS_SPI,
720 .manufacture_id = AMIC_ID_NOPREFIX,
721 .model_id = AMIC_A25L032,
722 .total_size = 4096,
723 .page_size = 256,
724 /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */
725 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
726 .tested = TEST_OK_PREW,
727 .probe = probe_spi_rdid,
728 .probe_timing = TIMING_ZERO,
729 .block_erasers =
730 {
731 {
732 .eraseblocks = { { 4 * 1024, 1024 } },
733 .block_erase = spi_block_erase_20,
734 }, {
735 .eraseblocks = { { 64 * 1024, 64 } },
736 .block_erase = spi_block_erase_52,
737 }, {
738 .eraseblocks = { { 64 * 1024, 64 } },
739 .block_erase = spi_block_erase_d8,
740 }, {
741 .eraseblocks = { { 4096 * 1024, 1 } },
742 .block_erase = spi_block_erase_60,
743 }, {
744 .eraseblocks = { { 4096 * 1024, 1 } },
745 .block_erase = spi_block_erase_c7,
746 }
747 },
748 .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */
749 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */
750 .write = spi_chip_write_256,
751 .read = spi_chip_read,
752 .voltage = {2700, 3600},
753 },
754
755 {
756 .vendor = "AMIC",
757 .name = "A25L040",
758 .bustype = BUS_SPI,
759 .manufacture_id = AMIC_ID_NOPREFIX,
760 .model_id = AMIC_A25L040,
761 .total_size = 512,
762 .page_size = 256,
763 .feature_bits = FEATURE_WRSR_WREN,
764 .tested = TEST_UNTESTED,
765 .probe = probe_spi_rdid,
766 .probe_timing = TIMING_ZERO,
767 .block_erasers =
768 {
769 {
770 .eraseblocks = { { 4 * 1024, 128 } },
771 .block_erase = spi_block_erase_20,
772 }, {
773 .eraseblocks = { { 64 * 1024, 8 } },
774 .block_erase = spi_block_erase_d8,
775 }, {
776 .eraseblocks = { { 512 * 1024, 1 } },
777 .block_erase = spi_block_erase_c7,
778 }
779 },
780 .printlock = spi_prettyprint_status_register_bp2_srwd,
781 .unlock = spi_disable_blockprotect,
782 .write = spi_chip_write_256,
783 .read = spi_chip_read,
784 .voltage = {2700, 3600},
785 },
786
787 {
788 .vendor = "AMIC",
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000789 .name = "A25L05PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000790 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000791 .manufacture_id = AMIC_ID,
792 .model_id = AMIC_A25L05PT,
793 .total_size = 64,
794 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000795 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000796 .tested = TEST_UNTESTED,
797 .probe = probe_spi_rdid4,
798 .probe_timing = TIMING_ZERO,
799 .block_erasers =
800 {
801 {
802 .eraseblocks = {
803 {32 * 1024, 1},
804 {16 * 1024, 1},
805 {8 * 1024, 1},
806 {4 * 1024, 2},
807 },
808 .block_erase = spi_block_erase_d8,
809 }, {
810 .eraseblocks = { {64 * 1024, 1} },
811 .block_erase = spi_block_erase_c7,
812 }
813 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000814 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000815 .unlock = spi_disable_blockprotect,
816 .write = spi_chip_write_256,
817 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000818 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000819 },
820
821 {
822 .vendor = "AMIC",
823 .name = "A25L05PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000824 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000825 .manufacture_id = AMIC_ID,
826 .model_id = AMIC_A25L05PU,
827 .total_size = 64,
828 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000829 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000830 .tested = TEST_UNTESTED,
831 .probe = probe_spi_rdid4,
832 .probe_timing = TIMING_ZERO,
833 .block_erasers =
834 {
835 {
836 .eraseblocks = {
837 {4 * 1024, 2},
838 {8 * 1024, 1},
839 {16 * 1024, 1},
840 {32 * 1024, 1},
841 },
842 .block_erase = spi_block_erase_d8,
843 }, {
844 .eraseblocks = { {64 * 1024, 1} },
845 .block_erase = spi_block_erase_c7,
846 }
847 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000848 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000849 .unlock = spi_disable_blockprotect,
850 .write = spi_chip_write_256,
851 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000852 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000853 },
854
855 {
856 .vendor = "AMIC",
Alan Green1f9cc7d2019-07-01 11:10:45 +1000857 .name = "A25L080",
858 .bustype = BUS_SPI,
859 .manufacture_id = AMIC_ID_NOPREFIX,
860 .model_id = AMIC_A25L080,
861 .total_size = 1024,
862 .page_size = 256,
863 .feature_bits = FEATURE_WRSR_WREN,
864 .tested = TEST_UNTESTED,
865 .probe = probe_spi_rdid,
866 .probe_timing = TIMING_ZERO,
867 .block_erasers =
868 {
869 {
870 .eraseblocks = { { 4 * 1024, 256 } },
871 .block_erase = spi_block_erase_20,
872 }, {
873 .eraseblocks = { { 64 * 1024, 16 } },
874 .block_erase = spi_block_erase_d8,
875 }, {
876 .eraseblocks = { { 1024 * 1024, 1 } },
877 .block_erase = spi_block_erase_c7,
878 }
879 },
880 .printlock = spi_prettyprint_status_register_bp2_srwd,
881 .unlock = spi_disable_blockprotect,
882 .write = spi_chip_write_256,
883 .read = spi_chip_read,
884 .voltage = {2700, 3600},
885 },
886
887 {
888 .vendor = "AMIC",
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000889 .name = "A25L10PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000890 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000891 .manufacture_id = AMIC_ID,
892 .model_id = AMIC_A25L10PT,
893 .total_size = 128,
894 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000895 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000896 .tested = TEST_UNTESTED,
897 .probe = probe_spi_rdid4,
898 .probe_timing = TIMING_ZERO,
899 .block_erasers =
900 {
901 {
902 .eraseblocks = {
903 {64 * 1024, 1},
904 {32 * 1024, 1},
905 {16 * 1024, 1},
906 {8 * 1024, 1},
907 {4 * 1024, 2},
908 },
909 .block_erase = spi_block_erase_d8,
910 }, {
911 .eraseblocks = { {128 * 1024, 1} },
912 .block_erase = spi_block_erase_c7,
913 }
914 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000915 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000916 .unlock = spi_disable_blockprotect,
917 .write = spi_chip_write_256,
918 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000919 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000920 },
921
922 {
923 .vendor = "AMIC",
924 .name = "A25L10PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000925 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000926 .manufacture_id = AMIC_ID,
927 .model_id = AMIC_A25L10PU,
928 .total_size = 128,
929 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000930 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000931 .tested = TEST_UNTESTED,
932 .probe = probe_spi_rdid4,
933 .probe_timing = TIMING_ZERO,
934 .block_erasers =
935 {
936 {
937 .eraseblocks = {
938 {4 * 1024, 2},
939 {8 * 1024, 1},
940 {16 * 1024, 1},
941 {32 * 1024, 1},
942 {64 * 1024, 1},
943 },
944 .block_erase = spi_block_erase_d8,
945 }, {
946 .eraseblocks = { {128 * 1024, 1} },
947 .block_erase = spi_block_erase_c7,
948 }
949 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000950 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000951 .unlock = spi_disable_blockprotect,
952 .write = spi_chip_write_256,
953 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000954 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000955 },
956
957 {
958 .vendor = "AMIC",
Alan Green1f9cc7d2019-07-01 11:10:45 +1000959 .name = "A25L16PT",
960 .bustype = BUS_SPI,
961 .manufacture_id = AMIC_ID,
962 .model_id = AMIC_A25L16PT,
963 .total_size = 2048,
964 .page_size = 256,
965 .feature_bits = FEATURE_WRSR_WREN,
966 .tested = TEST_UNTESTED,
967 .probe = probe_spi_rdid4,
968 .probe_timing = TIMING_ZERO,
969 .block_erasers =
970 {
971 {
972 .eraseblocks = {
973 {64 * 1024, 31},
974 {32 * 1024, 1},
975 {16 * 1024, 1},
976 {8 * 1024, 1},
977 {4 * 1024, 2},
978 },
979 .block_erase = spi_block_erase_d8,
980 }, {
981 .eraseblocks = { {2048 * 1024, 1} },
982 .block_erase = spi_block_erase_60,
983 }, {
984 .eraseblocks = { {2048 * 1024, 1} },
985 .block_erase = spi_block_erase_c7,
986 }
987 },
988 .printlock = spi_prettyprint_status_register_bp2_srwd,
989 .unlock = spi_disable_blockprotect,
990 .write = spi_chip_write_256,
991 .read = spi_chip_read,
992 .voltage = {2700, 3600},
993 },
994
995 {
996 .vendor = "AMIC",
997 .name = "A25L16PU",
998 .bustype = BUS_SPI,
999 .manufacture_id = AMIC_ID,
1000 .model_id = AMIC_A25L16PU,
1001 .total_size = 2048,
1002 .page_size = 256,
1003 .feature_bits = FEATURE_WRSR_WREN,
1004 .tested = TEST_OK_PR,
1005 .probe = probe_spi_rdid4,
1006 .probe_timing = TIMING_ZERO,
1007 .block_erasers =
1008 {
1009 {
1010 .eraseblocks = {
1011 {4 * 1024, 2},
1012 {8 * 1024, 1},
1013 {16 * 1024, 1},
1014 {32 * 1024, 1},
1015 {64 * 1024, 31},
1016 },
1017 .block_erase = spi_block_erase_d8,
1018 }, {
1019 .eraseblocks = { {2048 * 1024, 1} },
1020 .block_erase = spi_block_erase_60,
1021 }, {
1022 .eraseblocks = { {2048 * 1024, 1} },
1023 .block_erase = spi_block_erase_c7,
1024 }
1025 },
1026 .printlock = spi_prettyprint_status_register_bp2_srwd,
1027 .unlock = spi_disable_blockprotect,
1028 .write = spi_chip_write_256,
1029 .read = spi_chip_read,
1030 .voltage = {2700, 3600},
1031 },
1032
1033 {
1034 .vendor = "AMIC",
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001035 .name = "A25L20PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001036 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001037 .manufacture_id = AMIC_ID,
1038 .model_id = AMIC_A25L20PT,
1039 .total_size = 256,
1040 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001041 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001042 .tested = TEST_UNTESTED,
1043 .probe = probe_spi_rdid4,
1044 .probe_timing = TIMING_ZERO,
1045 .block_erasers =
1046 {
1047 {
1048 .eraseblocks = {
1049 {64 * 1024, 3},
1050 {32 * 1024, 1},
1051 {16 * 1024, 1},
1052 {8 * 1024, 1},
1053 {4 * 1024, 2},
1054 },
1055 .block_erase = spi_block_erase_d8,
1056 }, {
1057 .eraseblocks = { {256 * 1024, 1} },
1058 .block_erase = spi_block_erase_c7,
1059 }
1060 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001061 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001062 .unlock = spi_disable_blockprotect,
1063 .write = spi_chip_write_256,
1064 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001065 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001066 },
1067
1068 {
1069 .vendor = "AMIC",
1070 .name = "A25L20PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001071 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001072 .manufacture_id = AMIC_ID,
1073 .model_id = AMIC_A25L20PU,
1074 .total_size = 256,
1075 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001076 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001077 .tested = TEST_UNTESTED,
1078 .probe = probe_spi_rdid4,
1079 .probe_timing = TIMING_ZERO,
1080 .block_erasers =
1081 {
1082 {
1083 .eraseblocks = {
1084 {4 * 1024, 2},
1085 {8 * 1024, 1},
1086 {16 * 1024, 1},
1087 {32 * 1024, 1},
1088 {64 * 1024, 3},
1089 },
1090 .block_erase = spi_block_erase_d8,
1091 }, {
1092 .eraseblocks = { {256 * 1024, 1} },
1093 .block_erase = spi_block_erase_c7,
1094 }
1095 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001096 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001097 .unlock = spi_disable_blockprotect,
1098 .write = spi_chip_write_256,
1099 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001100 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001101 },
1102
1103 /* The A25L40P{T,U} chips are distinguished by their
1104 * erase block layouts, but without any distinction in RDID.
1105 * This inexplicable quirk was verified by Rudolf Marek
1106 * and discussed on the flashrom mailing list on 2010-07-12.
1107 */
1108 {
1109 .vendor = "AMIC",
1110 .name = "A25L40PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001111 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001112 .manufacture_id = AMIC_ID,
1113 .model_id = AMIC_A25L40PT,
1114 .total_size = 512,
1115 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001116 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00001117 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001118 .probe = probe_spi_rdid4,
1119 .probe_timing = TIMING_ZERO,
1120 .block_erasers =
1121 {
1122 {
1123 .eraseblocks = {
1124 {64 * 1024, 7},
1125 {32 * 1024, 1},
1126 {16 * 1024, 1},
1127 {8 * 1024, 1},
1128 {4 * 1024, 2},
1129 },
1130 .block_erase = spi_block_erase_d8,
1131 }, {
1132 .eraseblocks = { {512 * 1024, 1} },
1133 .block_erase = spi_block_erase_c7,
1134 }
1135 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001136 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001137 .unlock = spi_disable_blockprotect,
1138 .write = spi_chip_write_256,
1139 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001140 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001141 },
1142
1143 {
1144 .vendor = "AMIC",
1145 .name = "A25L40PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001146 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001147 .manufacture_id = AMIC_ID,
1148 .model_id = AMIC_A25L40PU,
1149 .total_size = 512,
1150 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001151 .feature_bits = FEATURE_WRSR_WREN,
Angel Pons6f088352018-09-30 19:59:42 +02001152 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001153 .probe = probe_spi_rdid4,
1154 .probe_timing = TIMING_ZERO,
1155 .block_erasers =
1156 {
1157 {
1158 .eraseblocks = {
1159 {4 * 1024, 2},
1160 {8 * 1024, 1},
1161 {16 * 1024, 1},
1162 {32 * 1024, 1},
1163 {64 * 1024, 7},
1164 },
1165 .block_erase = spi_block_erase_d8,
1166 }, {
1167 .eraseblocks = { {512 * 1024, 1} },
1168 .block_erase = spi_block_erase_c7,
1169 }
1170 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001171 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001172 .unlock = spi_disable_blockprotect,
1173 .write = spi_chip_write_256,
1174 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001175 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001176 },
1177
1178 {
1179 .vendor = "AMIC",
Alan Green1f9cc7d2019-07-01 11:10:45 +10001180 .name = "A25L512",
1181 .bustype = BUS_SPI,
1182 .manufacture_id = AMIC_ID_NOPREFIX,
1183 .model_id = AMIC_A25L512,
1184 .total_size = 64,
1185 .page_size = 256,
1186 .feature_bits = FEATURE_WRSR_WREN,
1187 .tested = TEST_UNTESTED,
1188 .probe = probe_spi_rdid,
1189 .probe_timing = TIMING_ZERO,
1190 .block_erasers =
1191 {
1192 {
1193 .eraseblocks = { { 4 * 1024, 16 } },
1194 .block_erase = spi_block_erase_20,
1195 }, {
1196 .eraseblocks = { { 64 * 1024, 1 } },
1197 .block_erase = spi_block_erase_d8,
1198 }, {
1199 .eraseblocks = { { 64 * 1024, 1 } },
1200 .block_erase = spi_block_erase_c7,
1201 }
1202 },
1203 .printlock = spi_prettyprint_status_register_bp2_srwd,
1204 .unlock = spi_disable_blockprotect,
1205 .write = spi_chip_write_256,
1206 .read = spi_chip_read,
1207 .voltage = {2700, 3600},
1208 },
1209
1210 {
1211 .vendor = "AMIC",
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001212 .name = "A25L80P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001213 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001214 .manufacture_id = AMIC_ID,
1215 .model_id = AMIC_A25L80P,
1216 .total_size = 1024,
1217 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001218 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00001219 .tested = TEST_OK_PRE,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001220 .probe = probe_spi_rdid4,
1221 .probe_timing = TIMING_ZERO,
1222 .block_erasers =
1223 {
1224 {
1225 .eraseblocks = {
1226 {4 * 1024, 2},
1227 {8 * 1024, 1},
1228 {16 * 1024, 1},
1229 {32 * 1024, 1},
1230 {64 * 1024, 15},
1231 },
1232 .block_erase = spi_block_erase_d8,
1233 }, {
1234 .eraseblocks = { {1024 * 1024, 1} },
1235 .block_erase = spi_block_erase_c7,
1236 }
1237 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001238 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001239 .unlock = spi_disable_blockprotect,
1240 .write = spi_chip_write_256,
1241 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001242 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001243 },
1244
1245 {
1246 .vendor = "AMIC",
Alan Green1f9cc7d2019-07-01 11:10:45 +10001247 .name = "A25LQ032/A25LQ32A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001248 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001249 .manufacture_id = AMIC_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10001250 .model_id = AMIC_A25LQ032,
Dan Lenski11617122010-07-29 15:00:40 +00001251 .total_size = 4096,
1252 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10001253 /* A25LQ32A supports SFDP */
Daniel Lenski65922a32012-02-15 23:40:23 +00001254 /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */
1255 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Alan Green1f9cc7d2019-07-01 11:10:45 +10001256 .tested = TEST_UNTESTED,
Dan Lenski11617122010-07-29 15:00:40 +00001257 .probe = probe_spi_rdid,
1258 .probe_timing = TIMING_ZERO,
1259 .block_erasers =
1260 {
1261 {
1262 .eraseblocks = { { 4 * 1024, 1024 } },
1263 .block_erase = spi_block_erase_20,
1264 }, {
1265 .eraseblocks = { { 64 * 1024, 64 } },
1266 .block_erase = spi_block_erase_52,
1267 }, {
1268 .eraseblocks = { { 64 * 1024, 64 } },
1269 .block_erase = spi_block_erase_d8,
1270 }, {
1271 .eraseblocks = { { 4096 * 1024, 1 } },
1272 .block_erase = spi_block_erase_60,
1273 }, {
1274 .eraseblocks = { { 4096 * 1024, 1 } },
1275 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001276 }
Dan Lenski11617122010-07-29 15:00:40 +00001277 },
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001278 .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */
1279 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */
Dan Lenski11617122010-07-29 15:00:40 +00001280 .write = spi_chip_write_256,
1281 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001282 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001283 },
1284
1285 {
1286 .vendor = "AMIC",
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001287 .name = "A25LQ16",
1288 .bustype = BUS_SPI,
1289 .manufacture_id = AMIC_ID_NOPREFIX,
1290 .model_id = AMIC_A25LQ16,
1291 .total_size = 2048,
1292 .page_size = 256,
1293 /* supports SFDP */
1294 /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */
1295 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
1296 .tested = TEST_UNTESTED,
1297 .probe = probe_spi_rdid,
1298 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10001299 .block_erasers =
1300 {
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001301 {
1302 .eraseblocks = { { 4 * 1024, 512 } },
1303 .block_erase = spi_block_erase_20,
1304 }, {
1305 .eraseblocks = { { 64 * 1024, 32 } },
1306 .block_erase = spi_block_erase_52,
1307 }, {
1308 .eraseblocks = { { 64 * 1024, 32 } },
1309 .block_erase = spi_block_erase_d8,
1310 }, {
1311 .eraseblocks = { { 2048 * 1024, 1 } },
1312 .block_erase = spi_block_erase_60,
1313 }, {
1314 .eraseblocks = { { 2048 * 1024, 1 } },
1315 .block_erase = spi_block_erase_c7,
1316 }
1317 },
1318 .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */
1319 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */
1320 .write = spi_chip_write_256,
1321 .read = spi_chip_read,
1322 .voltage = {2700, 3600},
1323 },
1324
1325 {
1326 .vendor = "AMIC",
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001327 .name = "A25LQ64",
1328 .bustype = BUS_SPI,
1329 .manufacture_id = AMIC_ID_NOPREFIX,
Stefan Tauner23e10b82016-01-23 16:16:49 +00001330 .model_id = AMIC_A25LQ64,
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001331 .total_size = 8192,
1332 .page_size = 256,
1333 /* supports SFDP */
1334 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
1335 /* QPI enable 0x35, disable 0xF5 */
1336 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
1337 .tested = TEST_UNTESTED,
1338 .probe = probe_spi_rdid,
1339 .probe_timing = TIMING_ZERO,
1340 .block_erasers =
1341 {
1342 {
1343 .eraseblocks = { { 4 * 1024, 2048 } },
1344 .block_erase = spi_block_erase_20,
1345 }, {
1346 .eraseblocks = { { 32 * 1024, 256 } },
1347 .block_erase = spi_block_erase_52,
1348 }, {
1349 .eraseblocks = { { 64 * 1024, 128 } },
1350 .block_erase = spi_block_erase_d8,
1351 }, {
1352 .eraseblocks = { { 8192 * 1024, 1 } },
1353 .block_erase = spi_block_erase_60,
1354 }, {
1355 .eraseblocks = { { 8192 * 1024, 1 } },
1356 .block_erase = spi_block_erase_c7,
1357 }
1358 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001359 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enhance (sic!) */
Stefan Tauner5c316f92015-02-08 21:57:52 +00001360 .unlock = spi_disable_blockprotect_bp3_srwd,
Dan Lenski11617122010-07-29 15:00:40 +00001361 .write = spi_chip_write_256,
1362 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001363 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001364 },
1365
1366 {
1367 .vendor = "AMIC",
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001368 .name = "A29002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001369 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001370 .manufacture_id = AMIC_ID_NOPREFIX,
1371 .model_id = AMIC_A29002B,
1372 .total_size = 256,
1373 .page_size = 64 * 1024,
1374 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
1375 .tested = TEST_UNTESTED,
1376 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001377 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001378 .block_erasers =
1379 {
1380 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00001381 .eraseblocks = {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001382 {16 * 1024, 1},
1383 {8 * 1024, 2},
1384 {32 * 1024, 1},
1385 {64 * 1024, 3},
1386 },
1387 .block_erase = erase_sector_jedec,
1388 }, {
1389 .eraseblocks = { {256 * 1024, 1} },
1390 .block_erase = erase_chip_block_jedec,
1391 },
1392 },
1393 .write = write_jedec_1,
1394 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001395 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001396 },
1397
1398 {
1399 .vendor = "AMIC",
1400 .name = "A29002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001401 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001402 .manufacture_id = AMIC_ID_NOPREFIX,
1403 .model_id = AMIC_A29002T,
1404 .total_size = 256,
1405 .page_size = 64 * 1024,
1406 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00001407 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001408 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001409 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001410 .block_erasers =
1411 {
1412 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00001413 .eraseblocks = {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001414 {64 * 1024, 3},
1415 {32 * 1024, 1},
1416 {8 * 1024, 2},
1417 {16 * 1024, 1},
1418 },
1419 .block_erase = erase_sector_jedec,
1420 }, {
1421 .eraseblocks = { {256 * 1024, 1} },
1422 .block_erase = erase_chip_block_jedec,
1423 },
1424 },
1425 .write = write_jedec_1,
1426 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001427 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001428 },
1429
1430 {
1431 .vendor = "AMIC",
1432 .name = "A29040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001433 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001434 .manufacture_id = AMIC_ID_NOPREFIX,
1435 .model_id = AMIC_A29040B,
1436 .total_size = 512,
1437 .page_size = 64 * 1024,
1438 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Corey Osgoodcbd56652013-09-10 10:42:48 +00001439 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001440 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001441 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001442 .block_erasers =
1443 {
1444 {
1445 .eraseblocks = { {64 * 1024, 8} },
1446 .block_erase = erase_sector_jedec,
1447 }, {
1448 .eraseblocks = { {512 * 1024, 1} },
1449 .block_erase = erase_chip_block_jedec,
1450 },
1451 },
1452 .write = write_jedec_1,
1453 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001454 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001455 },
1456
1457 {
1458 .vendor = "AMIC",
1459 .name = "A49LF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001460 .bustype = BUS_LPC,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001461 .manufacture_id = AMIC_ID_NOPREFIX,
1462 .model_id = AMIC_A49LF040A,
1463 .total_size = 512,
1464 .page_size = 64 * 1024,
1465 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00001466 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001467 .probe = probe_jedec,
1468 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
1469 .block_erasers =
1470 {
1471 {
1472 .eraseblocks = { {64 * 1024, 8} },
1473 .block_erase = erase_block_jedec,
1474 }, {
1475 .eraseblocks = { {512 * 1024, 1} },
1476 .block_erase = erase_chip_block_jedec,
1477 }
1478 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00001479 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001480 .write = write_jedec_1,
1481 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001482 .voltage = {3000, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001483 },
1484
1485 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001486 .vendor = "Atmel",
1487 .name = "AT25DF021",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001488 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001489 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001490 .model_id = ATMEL_AT25DF021,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001491 .total_size = 256,
1492 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001493 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1494 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001495 .tested = TEST_UNTESTED,
1496 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001497 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001498 .block_erasers =
1499 {
1500 {
1501 .eraseblocks = { {4 * 1024, 64} },
1502 .block_erase = spi_block_erase_20,
1503 }, {
1504 .eraseblocks = { {32 * 1024, 8} },
1505 .block_erase = spi_block_erase_52,
1506 }, {
1507 .eraseblocks = { {64 * 1024, 4} },
1508 .block_erase = spi_block_erase_d8,
1509 }, {
1510 .eraseblocks = { {256 * 1024, 1} },
1511 .block_erase = spi_block_erase_60,
1512 }, {
1513 .eraseblocks = { {256 * 1024, 1} },
1514 .block_erase = spi_block_erase_c7,
1515 }
1516 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001517 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001518 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001519 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001520 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001521 .voltage = {2700, 3600}, /* 2.3-3.6V & 2.7-3.6V models available */
FENG yu ningff692fb2008-12-08 18:15:10 +00001522 },
1523
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001524 {
1525 .vendor = "Atmel",
Steffen Mauch0b59b0d2018-06-02 23:46:03 +02001526 .name = "AT25DF021A",
1527 .bustype = BUS_SPI,
1528 .manufacture_id = ATMEL_ID,
1529 .model_id = ATMEL_AT25DF021A,
1530 .total_size = 256,
1531 .page_size = 256,
1532 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1533 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
1534 .tested = TEST_OK_PREW,
1535 .probe = probe_spi_rdid,
1536 .probe_timing = TIMING_ZERO,
1537 .block_erasers =
1538 {
1539 {
1540 .eraseblocks = { {4 * 1024, 64} },
1541 .block_erase = spi_block_erase_20,
1542 }, {
1543 .eraseblocks = { {32 * 1024, 8} },
1544 .block_erase = spi_block_erase_52,
1545 }, {
1546 .eraseblocks = { {64 * 1024, 4} },
1547 .block_erase = spi_block_erase_d8,
1548 }, {
1549 .eraseblocks = { {256 * 1024, 1} },
1550 .block_erase = spi_block_erase_60,
1551 }, {
1552 .eraseblocks = { {256 * 1024, 1} },
1553 .block_erase = spi_block_erase_c7,
1554 }
1555 },
1556 .printlock = spi_prettyprint_status_register_at25df,
1557 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
1558 .write = spi_chip_write_256,
1559 .read = spi_chip_read,
1560 .voltage = {1650, 3600},
1561 },
1562
1563 {
1564 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001565 .name = "AT25DF041A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001566 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001567 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001568 .model_id = ATMEL_AT25DF041A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001569 .total_size = 512,
1570 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001571 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +00001572 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001573 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001574 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001575 .block_erasers =
1576 {
1577 {
1578 .eraseblocks = { {4 * 1024, 128} },
1579 .block_erase = spi_block_erase_20,
1580 }, {
1581 .eraseblocks = { {32 * 1024, 16} },
1582 .block_erase = spi_block_erase_52,
1583 }, {
1584 .eraseblocks = { {64 * 1024, 8} },
1585 .block_erase = spi_block_erase_d8,
1586 }, {
1587 .eraseblocks = { {512 * 1024, 1} },
1588 .block_erase = spi_block_erase_60,
1589 }, {
1590 .eraseblocks = { {512 * 1024, 1} },
1591 .block_erase = spi_block_erase_c7,
1592 }
1593 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001594 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001595 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001596 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001597 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001598 .voltage = {2700, 3600}, /* 2.3-3.6V & 2.7-3.6V models available */
FENG yu ningff692fb2008-12-08 18:15:10 +00001599 },
1600
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001601 {
1602 .vendor = "Atmel",
1603 .name = "AT25DF081",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001604 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001605 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001606 .model_id = ATMEL_AT25DF081,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001607 .total_size = 1024,
1608 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001609 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001610 .tested = TEST_UNTESTED,
1611 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001612 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001613 .block_erasers =
1614 {
1615 {
1616 .eraseblocks = { {4 * 1024, 256} },
1617 .block_erase = spi_block_erase_20,
1618 }, {
1619 .eraseblocks = { {32 * 1024, 32} },
1620 .block_erase = spi_block_erase_52,
1621 }, {
1622 .eraseblocks = { {64 * 1024, 16} },
1623 .block_erase = spi_block_erase_d8,
1624 }, {
1625 .eraseblocks = { {1024 * 1024, 1} },
1626 .block_erase = spi_block_erase_60,
1627 }, {
1628 .eraseblocks = { {1024 * 1024, 1} },
1629 .block_erase = spi_block_erase_c7,
1630 }
1631 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001632 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001633 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001634 .write = spi_chip_write_256,
1635 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001636 .voltage = {1600, 2000}, /* Datasheet says range is 1.65-1.95 V */
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001637 },
1638
1639 {
1640 .vendor = "Atmel",
1641 .name = "AT25DF081A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001642 .bustype = BUS_SPI,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001643 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001644 .model_id = ATMEL_AT25DF081A,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001645 .total_size = 1024,
1646 .page_size = 256,
1647 .feature_bits = FEATURE_WRSR_WREN,
1648 .tested = TEST_UNTESTED,
1649 .probe = probe_spi_rdid,
1650 .probe_timing = TIMING_ZERO,
1651 .block_erasers =
1652 {
1653 {
1654 .eraseblocks = { {4 * 1024, 256} },
1655 .block_erase = spi_block_erase_20,
1656 }, {
1657 .eraseblocks = { {32 * 1024, 32} },
1658 .block_erase = spi_block_erase_52,
1659 }, {
1660 .eraseblocks = { {64 * 1024, 16} },
1661 .block_erase = spi_block_erase_d8,
1662 }, {
1663 .eraseblocks = { {1024 * 1024, 1} },
1664 .block_erase = spi_block_erase_60,
1665 }, {
1666 .eraseblocks = { {1024 * 1024, 1} },
1667 .block_erase = spi_block_erase_c7,
1668 }
1669 },
1670 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001671 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001672 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001673 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001674 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001675 },
1676
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001677 {
1678 .vendor = "Atmel",
1679 .name = "AT25DF161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001680 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001681 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001682 .model_id = ATMEL_AT25DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001683 .total_size = 2048,
1684 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001685 .feature_bits = FEATURE_WRSR_WREN,
Angel Pons8b5b9622018-09-30 19:13:15 +02001686 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001687 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001688 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001689 .block_erasers =
1690 {
1691 {
1692 .eraseblocks = { {4 * 1024, 512} },
1693 .block_erase = spi_block_erase_20,
1694 }, {
1695 .eraseblocks = { {32 * 1024, 64} },
1696 .block_erase = spi_block_erase_52,
1697 }, {
1698 .eraseblocks = { {64 * 1024, 32} },
1699 .block_erase = spi_block_erase_d8,
1700 }, {
1701 .eraseblocks = { {2 * 1024 * 1024, 1} },
1702 .block_erase = spi_block_erase_60,
1703 }, {
1704 .eraseblocks = { {2 * 1024 * 1024, 1} },
1705 .block_erase = spi_block_erase_c7,
1706 }
1707 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001708 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001709 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001710 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001711 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001712 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001713 },
1714
Alan Green86bf6ab2019-06-27 16:58:20 +10001715 /*The AT26DF321 has the same ID as the AT25DF321. */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001716 {
1717 .vendor = "Atmel",
1718 .name = "AT25DF321",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001719 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001720 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001721 .model_id = ATMEL_AT25DF321,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001722 .total_size = 4096,
1723 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001724 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd06d9412011-06-12 19:47:55 +00001725 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001726 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001727 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001728 .block_erasers =
1729 {
1730 {
1731 .eraseblocks = { {4 * 1024, 1024} },
1732 .block_erase = spi_block_erase_20,
1733 }, {
1734 .eraseblocks = { {32 * 1024, 128} },
1735 .block_erase = spi_block_erase_52,
1736 }, {
1737 .eraseblocks = { {64 * 1024, 64} },
1738 .block_erase = spi_block_erase_d8,
1739 }, {
1740 .eraseblocks = { {4 * 1024 * 1024, 1} },
1741 .block_erase = spi_block_erase_60,
1742 }, {
1743 .eraseblocks = { {4 * 1024 * 1024, 1} },
1744 .block_erase = spi_block_erase_c7,
1745 }
1746 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001747 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001748 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001749 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001750 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001751 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001752 },
1753
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001754 {
1755 .vendor = "Atmel",
1756 .name = "AT25DF321A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001757 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001758 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001759 .model_id = ATMEL_AT25DF321A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001760 .total_size = 4096,
1761 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001762 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1763 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00001764 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001765 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001766 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001767 .block_erasers =
1768 {
1769 {
1770 .eraseblocks = { {4 * 1024, 1024} },
1771 .block_erase = spi_block_erase_20,
1772 }, {
1773 .eraseblocks = { {32 * 1024, 128} },
1774 .block_erase = spi_block_erase_52,
1775 }, {
1776 .eraseblocks = { {64 * 1024, 64} },
1777 .block_erase = spi_block_erase_d8,
1778 }, {
1779 .eraseblocks = { {4 * 1024 * 1024, 1} },
1780 .block_erase = spi_block_erase_60,
1781 }, {
1782 .eraseblocks = { {4 * 1024 * 1024, 1} },
1783 .block_erase = spi_block_erase_c7,
1784 }
1785 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001786 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001787 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001788 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001789 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001790 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001791 },
1792
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001793 {
1794 .vendor = "Atmel",
Paul Menzelac427b22012-02-16 21:07:07 +00001795 .name = "AT25DF641(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001796 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001797 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001798 .model_id = ATMEL_AT25DF641,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001799 .total_size = 8192,
1800 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001801 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00001802 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001803 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001804 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001805 .block_erasers =
1806 {
1807 {
1808 .eraseblocks = { {4 * 1024, 2048} },
1809 .block_erase = spi_block_erase_20,
1810 }, {
1811 .eraseblocks = { {32 * 1024, 256} },
1812 .block_erase = spi_block_erase_52,
1813 }, {
1814 .eraseblocks = { {64 * 1024, 128} },
1815 .block_erase = spi_block_erase_d8,
1816 }, {
1817 .eraseblocks = { {8 * 1024 * 1024, 1} },
1818 .block_erase = spi_block_erase_60,
1819 }, {
1820 .eraseblocks = { {8 * 1024 * 1024, 1} },
1821 .block_erase = spi_block_erase_c7,
1822 }
1823 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001824 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001825 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001826 .write = spi_chip_write_256,
1827 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001828 .voltage = {2700, 3600},
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001829 },
1830
1831 {
1832 .vendor = "Atmel",
Stefan Taunerc9d8b272014-06-01 13:22:35 +00001833 .name = "AT25DL081",
1834 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +10001835 .manufacture_id = ATMEL_ID,
Stefan Taunerc9d8b272014-06-01 13:22:35 +00001836 .model_id = ATMEL_AT25DF081,
1837 .total_size = 1024,
1838 .page_size = 256,
1839 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1840 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
1841 .tested = TEST_UNTESTED,
1842 .probe = probe_spi_rdid,
1843 .probe_timing = TIMING_ZERO,
1844 .block_erasers =
1845 {
1846 {
1847 .eraseblocks = { {4 * 1024, 256} },
1848 .block_erase = spi_block_erase_20,
1849 }, {
1850 .eraseblocks = { {32 * 1024, 32} },
1851 .block_erase = spi_block_erase_52,
1852 }, {
1853 .eraseblocks = { {64 * 1024, 16} },
1854 .block_erase = spi_block_erase_d8,
1855 }, {
1856 .eraseblocks = { {1 * 1024 * 1024, 1} },
1857 .block_erase = spi_block_erase_60,
1858 }, {
1859 .eraseblocks = { {1 * 1024 * 1024, 1} },
1860 .block_erase = spi_block_erase_c7,
1861 }
1862 },
1863 .printlock = spi_prettyprint_status_register_at25df_sec,
1864 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
1865 .write = spi_chip_write_256, /* Dual I/O (0xA2) supported */
1866 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
1867 .voltage = {1650, 1950},
1868 },
1869
1870 {
1871 .vendor = "Atmel",
1872 .name = "AT25DL161",
1873 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +10001874 .manufacture_id = ATMEL_ID,
Stefan Taunerc9d8b272014-06-01 13:22:35 +00001875 .model_id = ATMEL_AT25DL161,
1876 .total_size = 2048,
1877 .page_size = 256,
1878 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1879 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
1880 .tested = TEST_UNTESTED,
1881 .probe = probe_spi_rdid,
1882 .probe_timing = TIMING_ZERO,
1883 .block_erasers =
1884 {
1885 {
1886 .eraseblocks = { {4 * 1024, 512} },
1887 .block_erase = spi_block_erase_20,
1888 }, {
1889 .eraseblocks = { {32 * 1024, 64} },
1890 .block_erase = spi_block_erase_52,
1891 }, {
1892 .eraseblocks = { {64 * 1024, 32} },
1893 .block_erase = spi_block_erase_d8,
1894 }, {
1895 .eraseblocks = { {2 * 1024 * 1024, 1} },
1896 .block_erase = spi_block_erase_60,
1897 }, {
1898 .eraseblocks = { {2 * 1024 * 1024, 1} },
1899 .block_erase = spi_block_erase_c7,
1900 }
1901 },
1902 .printlock = spi_prettyprint_status_register_at25df_sec,
1903 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
1904 .write = spi_chip_write_256, /* Dual I/O (0xA2) supported */
1905 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
1906 .voltage = {1650, 1950},
1907 },
1908
1909 {
1910 .vendor = "Atmel",
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001911 .name = "AT25DQ161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001912 .bustype = BUS_SPI,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001913 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001914 .model_id = ATMEL_AT25DQ161,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001915 .total_size = 2048,
1916 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001917 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1918 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001919 .tested = TEST_UNTESTED,
1920 .probe = probe_spi_rdid,
1921 .probe_timing = TIMING_ZERO,
1922 .block_erasers =
1923 {
1924 {
1925 .eraseblocks = { {4 * 1024, 512} },
1926 .block_erase = spi_block_erase_20,
1927 }, {
1928 .eraseblocks = { {32 * 1024, 64} },
1929 .block_erase = spi_block_erase_52,
1930 }, {
1931 .eraseblocks = { {64 * 1024, 32} },
1932 .block_erase = spi_block_erase_d8,
1933 }, {
1934 .eraseblocks = { {2 * 1024 * 1024, 1} },
1935 .block_erase = spi_block_erase_60,
1936 }, {
1937 .eraseblocks = { {2 * 1024 * 1024, 1} },
1938 .block_erase = spi_block_erase_c7,
1939 }
1940 },
1941 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001942 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001943 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001944 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001945 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001946 },
1947
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001948 {
1949 .vendor = "Atmel",
Alan Green1f9cc7d2019-07-01 11:10:45 +10001950 /* The A suffix indicates 33MHz instead of 20MHz clock rate.
1951 * All other properties seem to be the same.*/
1952 .name = "AT25F1024(A)",
1953 .bustype = BUS_SPI,
1954 .manufacture_id = ATMEL_ID,
1955 .model_id = ATMEL_AT25F1024,
1956 .total_size = 128,
1957 .page_size = 256,
1958 .feature_bits = FEATURE_WRSR_WREN,
1959 .tested = TEST_OK_PREW,
1960 .probe = probe_spi_at25f,
1961 .probe_timing = TIMING_ZERO,
1962 .block_erasers =
1963 {
1964 {
1965 .eraseblocks = { {32 * 1024, 4} },
1966 .block_erase = spi_block_erase_52,
1967 }, {
1968 .eraseblocks = { {128 * 1024, 1} },
1969 .block_erase = spi_block_erase_62,
1970 }
1971 },
1972 .printlock = spi_prettyprint_status_register_at25f,
1973 .unlock = spi_disable_blockprotect_at25f,
1974 .write = spi_chip_write_256,
1975 .read = spi_chip_read,
1976 .voltage = {2700, 3600},
1977 },
1978
1979 {
1980 .vendor = "Atmel",
1981 .name = "AT25F2048",
1982 .bustype = BUS_SPI,
1983 .manufacture_id = ATMEL_ID,
1984 .model_id = ATMEL_AT25F2048,
1985 .total_size = 256,
1986 .page_size = 256,
1987 .feature_bits = FEATURE_WRSR_WREN,
1988 .tested = TEST_UNTESTED,
1989 .probe = probe_spi_at25f,
1990 .probe_timing = TIMING_ZERO,
1991 .block_erasers =
1992 {
1993 {
1994 .eraseblocks = { {64 * 1024, 4} },
1995 .block_erase = spi_block_erase_52,
1996 }, {
1997 .eraseblocks = { {256 * 1024, 1} },
1998 .block_erase = spi_block_erase_62,
1999 }
2000 },
2001 .printlock = spi_prettyprint_status_register_at25f,
2002 .unlock = spi_disable_blockprotect_at25f,
2003 .write = spi_chip_write_256,
2004 .read = spi_chip_read,
2005 .voltage = {2700, 3600},
2006 },
2007
2008 {
2009 .vendor = "Atmel",
2010 .name = "AT25F4096",
2011 .bustype = BUS_SPI,
2012 .manufacture_id = ATMEL_ID,
2013 .model_id = ATMEL_AT25F4096,
2014 .total_size = 512,
2015 .page_size = 256,
2016 .feature_bits = FEATURE_WRSR_WREN,
2017 .tested = TEST_OK_PREW,
2018 .probe = probe_spi_at25f,
2019 .probe_timing = TIMING_ZERO,
2020 .block_erasers =
2021 {
2022 {
2023 .eraseblocks = { {64 * 1024, 8} },
2024 .block_erase = spi_block_erase_52,
2025 }, {
2026 .eraseblocks = { {512 * 1024, 1} },
2027 .block_erase = spi_block_erase_62,
2028 }
2029 },
2030 .printlock = spi_prettyprint_status_register_at25f4096,
2031 /* "Bits 5-6 are 0s when device is not in an internal write cycle." Better leave them alone: */
2032 .unlock = spi_disable_blockprotect_bp2_srwd,
2033 .write = spi_chip_write_256,
2034 .read = spi_chip_read,
2035 .voltage = {2700, 3600},
2036 },
2037
2038 {
2039 .vendor = "Atmel",
Stefan Tauner57794ac2012-12-29 15:04:20 +00002040 .name = "AT25F512",
2041 .bustype = BUS_SPI,
2042 .manufacture_id = ATMEL_ID,
2043 .model_id = ATMEL_AT25F512,
2044 .total_size = 64,
2045 .page_size = 256,
2046 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00002047 .tested = TEST_OK_PREW,
Stefan Tauner57794ac2012-12-29 15:04:20 +00002048 .probe = probe_spi_at25f,
2049 .probe_timing = TIMING_ZERO,
2050 .block_erasers =
2051 {
2052 {
2053 .eraseblocks = { {32 * 1024, 2} },
2054 .block_erase = spi_block_erase_52,
2055 }, {
2056 .eraseblocks = { {64 * 1024, 1} },
2057 .block_erase = spi_block_erase_62,
2058 }
2059 },
2060 .printlock = spi_prettyprint_status_register_at25f,
2061 .unlock = spi_disable_blockprotect_at25f,
2062 .write = spi_chip_write_256,
2063 .read = spi_chip_read,
2064 .voltage = {2700, 3600},
2065 },
2066
2067 {
2068 .vendor = "Atmel",
2069 .name = "AT25F512A",
2070 .bustype = BUS_SPI,
2071 .manufacture_id = ATMEL_ID,
2072 .model_id = ATMEL_AT25F512A,
2073 .total_size = 64,
2074 .page_size = 128,
2075 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00002076 .tested = TEST_OK_PREW,
Stefan Tauner57794ac2012-12-29 15:04:20 +00002077 .probe = probe_spi_at25f,
2078 .probe_timing = TIMING_ZERO,
2079 .block_erasers =
2080 {
2081 {
2082 .eraseblocks = { {32 * 1024, 2} },
2083 .block_erase = spi_block_erase_52,
2084 }, {
2085 .eraseblocks = { {64 * 1024, 1} },
2086 .block_erase = spi_block_erase_62,
2087 }
2088 },
2089 .printlock = spi_prettyprint_status_register_at25f512a,
2090 /* FIXME: It is not correct to use this one, because the BP1 bit is N/A. */
2091 .unlock = spi_disable_blockprotect_at25f512a,
2092 .write = spi_chip_write_256,
2093 .read = spi_chip_read,
2094 .voltage = {2700, 3600},
2095 },
2096
2097 {
2098 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002099 .name = "AT25F512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002100 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002101 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002102 .model_id = ATMEL_AT25F512B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002103 .total_size = 64,
2104 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00002105 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2106 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002107 .tested = TEST_UNTESTED,
2108 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002109 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002110 .block_erasers =
2111 {
2112 {
2113 .eraseblocks = { {4 * 1024, 16} },
2114 .block_erase = spi_block_erase_20,
2115 }, {
2116 .eraseblocks = { {32 * 1024, 2} },
2117 .block_erase = spi_block_erase_52,
2118 }, {
2119 .eraseblocks = { {32 * 1024, 2} },
2120 .block_erase = spi_block_erase_d8,
2121 }, {
2122 .eraseblocks = { {64 * 1024, 1} },
2123 .block_erase = spi_block_erase_60,
2124 }, {
2125 .eraseblocks = { {64 * 1024, 1} },
2126 .block_erase = spi_block_erase_c7,
Stefan Tauner3c0fcd02012-09-21 12:46:56 +00002127 }, {
2128 .eraseblocks = { {64 * 1024, 1} },
2129 .block_erase = spi_block_erase_62,
Sean Nelson89187292009-12-23 12:02:55 +00002130 }
2131 },
Stefan Tauner7bf4ed92012-08-26 21:04:27 +00002132 .printlock = spi_prettyprint_status_register_at25f512b,
2133 .unlock = spi_disable_blockprotect_at25f512b,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002134 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002135 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002136 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002137 },
2138
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002139 {
2140 .vendor = "Atmel",
2141 .name = "AT25FS010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002142 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002143 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002144 .model_id = ATMEL_AT25FS010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002145 .total_size = 128,
2146 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002147 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00002148 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002149 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002150 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002151 .block_erasers =
2152 {
2153 {
2154 .eraseblocks = { {4 * 1024, 32} },
2155 .block_erase = spi_block_erase_20,
2156 }, {
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00002157 .eraseblocks = { {4 * 1024, 32} },
2158 .block_erase = spi_block_erase_d7,
2159 }, {
Sean Nelson89187292009-12-23 12:02:55 +00002160 .eraseblocks = { {32 * 1024, 4} },
2161 .block_erase = spi_block_erase_52,
2162 }, {
2163 .eraseblocks = { {32 * 1024, 4} },
2164 .block_erase = spi_block_erase_d8,
2165 }, {
2166 .eraseblocks = { {128 * 1024, 1} },
2167 .block_erase = spi_block_erase_60,
2168 }, {
2169 .eraseblocks = { {128 * 1024, 1} },
2170 .block_erase = spi_block_erase_c7,
2171 }
2172 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00002173 .printlock = spi_prettyprint_status_register_at25fs010,
2174 .unlock = spi_disable_blockprotect_at25fs010,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002175 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002176 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002177 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002178 },
2179
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002180 {
2181 .vendor = "Atmel",
2182 .name = "AT25FS040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002183 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002184 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002185 .model_id = ATMEL_AT25FS040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002186 .total_size = 512,
2187 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002188 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002189 .tested = TEST_UNTESTED,
2190 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002191 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002192 .block_erasers =
2193 {
2194 {
2195 .eraseblocks = { {4 * 1024, 128} },
2196 .block_erase = spi_block_erase_20,
2197 }, {
2198 .eraseblocks = { {64 * 1024, 8} },
2199 .block_erase = spi_block_erase_52,
2200 }, {
2201 .eraseblocks = { {64 * 1024, 8} },
2202 .block_erase = spi_block_erase_d8,
2203 }, {
2204 .eraseblocks = { {512 * 1024, 1} },
2205 .block_erase = spi_block_erase_60,
2206 }, {
2207 .eraseblocks = { {512 * 1024, 1} },
2208 .block_erase = spi_block_erase_c7,
2209 }
2210 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00002211 .printlock = spi_prettyprint_status_register_at25fs040,
2212 .unlock = spi_disable_blockprotect_at25fs040,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002213 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002214 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002215 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002216 },
2217
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002218 {
2219 .vendor = "Atmel",
jvma3ab6c62018-03-08 15:43:20 +01002220 .name = "AT25SF041",
2221 .bustype = BUS_SPI,
2222 .manufacture_id = ATMEL_ID,
2223 .model_id = ATMEL_AT25SF041,
2224 .total_size = 512,
2225 .page_size = 256,
2226 .feature_bits = FEATURE_WRSR_WREN,
2227 .tested = TEST_OK_PREW,
2228 .probe = probe_spi_rdid,
2229 .probe_timing = TIMING_ZERO,
2230 .block_erasers =
2231 {
2232 {
2233 .eraseblocks = { {4 * 1024, 128} },
2234 .block_erase = spi_block_erase_20,
2235 }, {
2236 .eraseblocks = { {32 * 1024, 16} },
2237 .block_erase = spi_block_erase_52,
2238 }, {
2239 .eraseblocks = { {64 * 1024, 8} },
2240 .block_erase = spi_block_erase_d8,
2241 }, {
2242 .eraseblocks = { {512 * 1024, 1} },
2243 .block_erase = spi_block_erase_60,
2244 }, {
2245 .eraseblocks = { {512 * 1024, 1} },
2246 .block_erase = spi_block_erase_c7,
2247 }
2248 },
2249 .printlock = spi_prettyprint_status_register_plain,
2250 .unlock = spi_disable_blockprotect,
2251 .write = spi_chip_write_256,
2252 .read = spi_chip_read,
2253 .voltage = {2500, 3600},
2254 },
2255
2256 {
2257 .vendor = "Atmel",
Evan Jensen291c1012018-05-17 14:30:19 -07002258 .name = "AT25SF081",
2259 .bustype = BUS_SPI,
2260 .manufacture_id = ATMEL_ID,
2261 .model_id = ATMEL_AT25SF081,
2262 .total_size = 1024,
2263 .page_size = 256,
2264 .feature_bits = FEATURE_WRSR_WREN,
2265 .tested = TEST_OK_PREW,
2266 .probe = probe_spi_rdid,
2267 .probe_timing = TIMING_ZERO,
2268 .block_erasers =
2269 {
2270 {
2271 .eraseblocks = { {4 * 1024, 256} },
2272 .block_erase = spi_block_erase_20,
2273 }, {
2274 .eraseblocks = { {32 * 1024, 32} },
2275 .block_erase = spi_block_erase_52,
2276 }, {
2277 .eraseblocks = { {64 * 1024, 16} },
2278 .block_erase = spi_block_erase_d8,
2279 }, {
2280 .eraseblocks = { {1024 * 1024, 1} },
2281 .block_erase = spi_block_erase_60,
2282 }, {
2283 .eraseblocks = { {1024 * 1024, 1} },
2284 .block_erase = spi_block_erase_c7,
2285 }
2286 },
2287 .printlock = spi_prettyprint_status_register_plain,
2288 .unlock = spi_disable_blockprotect,
2289 .write = spi_chip_write_256,
2290 .read = spi_chip_read,
2291 .voltage = {2300, 3600},
2292 },
2293
2294 {
2295 .vendor = "Atmel",
Stanislav Sedovf5775442018-03-07 14:16:51 -08002296 .name = "AT25SF161",
2297 .bustype = BUS_SPI,
2298 .manufacture_id = ATMEL_ID,
2299 .model_id = ATMEL_AT25SF161,
2300 .total_size = 2048,
2301 .page_size = 256,
2302 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
2303 .tested = TEST_OK_PREW,
2304 .probe = probe_spi_rdid,
2305 .probe_timing = TIMING_ZERO,
2306 .block_erasers =
2307 {
2308 {
2309 .eraseblocks = { {4 * 1024, 512} },
2310 .block_erase = spi_block_erase_20,
2311 }, {
2312 .eraseblocks = { {32 * 1024, 64} },
2313 .block_erase = spi_block_erase_52,
2314 }, {
2315 .eraseblocks = { {64 * 1024, 32} },
2316 .block_erase = spi_block_erase_d8,
2317 }, {
2318 .eraseblocks = { {2048 * 1024, 1} },
2319 .block_erase = spi_block_erase_60,
2320 }, {
2321 .eraseblocks = { {2048 * 1024, 1} },
2322 .block_erase = spi_block_erase_c7,
2323 }
2324 },
2325 .printlock = spi_prettyprint_status_register_plain,
2326 .unlock = spi_disable_blockprotect,
2327 .write = spi_chip_write_256,
2328 .read = spi_chip_read,
2329 .voltage = {2500, 3600},
2330 },
2331
2332 {
Alan Green57938f82019-06-27 15:06:43 +10002333 .vendor = "Atmel",
darkarnium41394382019-11-04 20:06:48 +00002334 .name = "AT25SF321",
2335 .bustype = BUS_SPI,
2336 .manufacture_id = ATMEL_ID,
2337 .model_id = ATMEL_AT25SF321,
2338 .total_size = 4096,
2339 .page_size = 256,
2340 .feature_bits = FEATURE_WRSR_WREN,
2341 .tested = TEST_OK_PR,
2342 .probe = probe_spi_rdid,
2343 .probe_timing = TIMING_ZERO,
2344 .block_erasers =
2345 {
2346 {
2347 .eraseblocks = { {4 * 1024, 1024} },
2348 .block_erase = spi_block_erase_20,
2349 }, {
2350 .eraseblocks = { {32 * 1024, 128} },
2351 .block_erase = spi_block_erase_52,
2352 }, {
2353 .eraseblocks = { {64 * 1024, 64} },
2354 .block_erase = spi_block_erase_d8,
2355 }, {
2356 .eraseblocks = { {4096 * 1024, 1} },
2357 .block_erase = spi_block_erase_60,
2358 }, {
2359 .eraseblocks = { {4096 * 1024, 1} },
2360 .block_erase = spi_block_erase_c7,
2361 }
2362 },
2363 .printlock = spi_prettyprint_status_register_plain,
2364 .unlock = spi_disable_blockprotect,
2365 .write = spi_chip_write_256,
2366 .read = spi_chip_read,
2367 .voltage = {2500, 3600},
2368 },
2369
2370 {
2371 .vendor = "Atmel",
Hal Martin49e23d22018-05-27 14:18:43 +02002372 .name = "AT25SL128A",
2373 .bustype = BUS_SPI,
2374 .manufacture_id = ATMEL_ID,
2375 .model_id = ATMEL_AT25SL128A,
2376 .total_size = 16384,
2377 .page_size = 256,
2378 /* supports SFDP */
2379 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
2380 .tested = TEST_OK_PREW,
2381 .probe = probe_spi_rdid,
2382 .probe_timing = TIMING_ZERO,
2383 .block_erasers =
2384 {
2385 {
2386 .eraseblocks = { {4 * 1024, 4096} },
2387 .block_erase = spi_block_erase_20,
2388 }, {
2389 .eraseblocks = { {32 * 1024, 512} },
2390 .block_erase = spi_block_erase_52,
2391 }, {
2392 .eraseblocks = { {64 * 1024, 256} },
2393 .block_erase = spi_block_erase_d8,
2394 }, {
2395 .eraseblocks = { {16 * 1024 * 1024, 1} },
2396 .block_erase = spi_block_erase_60,
2397 }, {
2398 .eraseblocks = { {16 * 1024 * 1024, 1} },
2399 .block_erase = spi_block_erase_c7,
2400 }
2401 },
2402 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
2403 .unlock = spi_disable_blockprotect,
2404 .write = spi_chip_write_256,
2405 .read = spi_chip_read,
2406 .voltage = {1700, 2000},
2407 },
2408
2409 {
Stanislav Sedovf5775442018-03-07 14:16:51 -08002410 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002411 .name = "AT26DF041",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002412 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002413 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002414 .model_id = ATMEL_AT26DF041,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002415 .total_size = 512,
2416 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002417 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner94b39b42012-10-27 00:06:02 +00002418 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002419 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002420 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002421 .block_erasers =
2422 {
2423 {
Stefan Tauner94b39b42012-10-27 00:06:02 +00002424 .eraseblocks = { {256, 2048} },
2425 .block_erase = spi_block_erase_81,
2426 }, {
2427 .eraseblocks = { {2 * 1024, 256} },
2428 .block_erase = spi_block_erase_50,
2429 }, {
Sean Nelson89187292009-12-23 12:02:55 +00002430 .eraseblocks = { {4 * 1024, 128} },
2431 .block_erase = spi_block_erase_20,
2432 }
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002433 },
Stefan Taunercecb2c52013-06-20 22:55:41 +00002434 .printlock = spi_prettyprint_status_register_plain,
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002435 /* Supports also an incompatible page write (of exactly 256 B) and an auto-erasing write. */
Stefan Tauner94b39b42012-10-27 00:06:02 +00002436 .write = spi_chip_write_1,
2437 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002438 .voltage = {2700, 3600}, /* 3.0-3.6V for higher speed, 2.7-3.6V normal */
FENG yu ningff692fb2008-12-08 18:15:10 +00002439 },
2440
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002441 {
2442 .vendor = "Atmel",
2443 .name = "AT26DF081A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002444 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002445 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002446 .model_id = ATMEL_AT26DF081A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002447 .total_size = 1024,
2448 .page_size = 256,
Mathias Krause2c3afa32011-01-17 07:45:54 +00002449 .feature_bits = FEATURE_WRSR_WREN,
2450 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002451 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002452 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002453 .block_erasers =
2454 {
2455 {
2456 .eraseblocks = { {4 * 1024, 256} },
2457 .block_erase = spi_block_erase_20,
2458 }, {
2459 .eraseblocks = { {32 * 1024, 32} },
2460 .block_erase = spi_block_erase_52,
2461 }, {
2462 .eraseblocks = { {64 * 1024, 16} },
2463 .block_erase = spi_block_erase_d8,
2464 }, {
2465 .eraseblocks = { {1024 * 1024, 1} },
2466 .block_erase = spi_block_erase_60,
2467 }, {
2468 .eraseblocks = { {1024 * 1024, 1} },
2469 .block_erase = spi_block_erase_c7,
2470 }
2471 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002472 .printlock = spi_prettyprint_status_register_at26df081a,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002473 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002474 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002475 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002476 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002477 },
2478
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002479 {
2480 .vendor = "Atmel",
2481 .name = "AT26DF161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002482 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002483 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002484 .model_id = ATMEL_AT26DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002485 .total_size = 2048,
2486 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002487 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +00002488 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002489 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002490 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002491 .block_erasers =
2492 {
2493 {
2494 .eraseblocks = { {4 * 1024, 512} },
2495 .block_erase = spi_block_erase_20,
2496 }, {
2497 .eraseblocks = { {32 * 1024, 64} },
2498 .block_erase = spi_block_erase_52,
2499 }, {
2500 .eraseblocks = { {64 * 1024, 32} },
2501 .block_erase = spi_block_erase_d8,
2502 }, {
2503 .eraseblocks = { {2 * 1024 * 1024, 1} },
2504 .block_erase = spi_block_erase_60,
2505 }, {
2506 .eraseblocks = { {2 * 1024 * 1024, 1} },
2507 .block_erase = spi_block_erase_c7,
2508 }
2509 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00002510 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002511 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002512 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002513 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002514 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002515 },
2516
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002517 {
2518 .vendor = "Atmel",
2519 .name = "AT26DF161A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002520 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002521 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002522 .model_id = ATMEL_AT26DF161A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002523 .total_size = 2048,
2524 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002525 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002526 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002527 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002528 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002529 .block_erasers =
2530 {
2531 {
2532 .eraseblocks = { {4 * 1024, 512} },
2533 .block_erase = spi_block_erase_20,
2534 }, {
2535 .eraseblocks = { {32 * 1024, 64} },
2536 .block_erase = spi_block_erase_52,
2537 }, {
2538 .eraseblocks = { {64 * 1024, 32} },
2539 .block_erase = spi_block_erase_d8,
2540 }, {
2541 .eraseblocks = { {2 * 1024 * 1024, 1} },
2542 .block_erase = spi_block_erase_60,
2543 }, {
2544 .eraseblocks = { {2 * 1024 * 1024, 1} },
2545 .block_erase = spi_block_erase_c7,
2546 }
2547 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002548 .printlock = spi_prettyprint_status_register_at26df081a,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002549 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002550 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002551 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002552 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002553 },
2554
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002555 {
2556 .vendor = "Atmel",
2557 .name = "AT26F004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002558 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002559 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002560 .model_id = ATMEL_AT26F004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002561 .total_size = 512,
2562 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002563 .feature_bits = FEATURE_WRSR_WREN,
Alan Green908adf42019-07-03 15:34:06 +10002564 .tested = {.probe = NT, .read = NT, .erase = NT, .write = BAD},
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002565 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002566 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002567 .block_erasers =
2568 {
2569 {
2570 .eraseblocks = { {4 * 1024, 128} },
2571 .block_erase = spi_block_erase_20,
2572 }, {
2573 .eraseblocks = { {32 * 1024, 16} },
2574 .block_erase = spi_block_erase_52,
2575 }, {
2576 .eraseblocks = { {64 * 1024, 8} },
2577 .block_erase = spi_block_erase_d8,
2578 }, {
2579 .eraseblocks = { {512 * 1024, 1} },
2580 .block_erase = spi_block_erase_60,
2581 }, {
2582 .eraseblocks = { {512 * 1024, 1} },
2583 .block_erase = spi_block_erase_c7,
2584 }
2585 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002586 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Alan Greencbb85c02019-06-25 13:42:34 +10002587 .write = NULL, /* Incompatible Page write */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002588 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002589 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002590 },
2591
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002592 {
2593 .vendor = "Atmel",
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002594 .name = "AT29C010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002595 .bustype = BUS_PARALLEL,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002596 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002597 .model_id = ATMEL_AT29C010A,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002598 .total_size = 128,
2599 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00002600 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002601 .tested = TEST_OK_PRE,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002602 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00002603 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00002604 .block_erasers =
2605 {
2606 {
2607 .eraseblocks = { {128 * 1024, 1} },
2608 .block_erase = erase_chip_block_jedec,
2609 }
2610 },
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002611 .write = write_jedec, /* FIXME */
2612 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002613 .voltage = {4500, 5500},
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002614 },
2615
2616 {
2617 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002618 .name = "AT29C020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002619 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002620 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002621 .model_id = ATMEL_AT29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002622 .total_size = 256,
2623 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002624 .feature_bits = FEATURE_LONG_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00002625 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002626 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00002627 .probe_timing = 10000, /* 10ms */
Sean Nelson89187292009-12-23 12:02:55 +00002628 .block_erasers =
2629 {
2630 {
2631 .eraseblocks = { {256 * 1024, 1} },
2632 .block_erase = erase_chip_block_jedec,
2633 }
2634 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002635 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002636 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002637 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002638 },
2639
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002640 {
2641 .vendor = "Atmel",
2642 .name = "AT29C040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002643 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002644 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002645 .model_id = ATMEL_AT29C040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002646 .total_size = 512,
2647 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002648 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002649 .tested = TEST_UNTESTED,
2650 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00002651 .probe_timing = 10000, /* 10 ms */
Sean Nelson89187292009-12-23 12:02:55 +00002652 .block_erasers =
2653 {
2654 {
2655 .eraseblocks = { {512 * 1024, 1} },
2656 .block_erase = erase_chip_block_jedec,
2657 }
2658 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002659 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002660 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002661 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002662 },
2663
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002664 {
2665 .vendor = "Atmel",
Alan Green1f9cc7d2019-07-01 11:10:45 +10002666 .name = "AT29C512",
2667 .bustype = BUS_PARALLEL,
2668 .manufacture_id = ATMEL_ID,
2669 .model_id = ATMEL_AT29C512,
2670 .total_size = 64,
2671 .page_size = 128,
2672 .feature_bits = FEATURE_LONG_RESET,
2673 .tested = TEST_OK_PREW,
2674 .probe = probe_jedec,
2675 .probe_timing = 10000, /* 10mS, Enter=Exec */
2676 .block_erasers =
2677 {
2678 {
2679 .eraseblocks = { {64 * 1024, 1} },
2680 .block_erase = erase_chip_block_jedec,
2681 }
2682 },
2683 .write = write_jedec,
2684 .read = read_memmapped,
2685 .voltage = {4500, 5500},
2686 },
2687
2688 {
2689 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002690 .name = "AT45CS1282",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002691 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002692 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002693 .model_id = ATMEL_AT45CS1282,
Alan Greencbb85c02019-06-25 13:42:34 +10002694 .total_size = 16896, /* No power of two sizes */
2695 .page_size = 1056, /* No power of two sizes */
Steven Zakulec3603a282012-05-02 20:07:57 +00002696 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner1dd5d3a2013-08-27 18:02:19 +00002697 /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */
2698 .feature_bits = FEATURE_OTP,
2699 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002700 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002701 .probe_timing = TIMING_ZERO,
Stefan Tauner1dd5d3a2013-08-27 18:02:19 +00002702 .block_erasers =
2703 {
2704 {
2705 .eraseblocks = {
2706 {8 * 1056, 1}, /* sector 0a: opcode 50h */
2707 {248 * 1056, 1}, /* sector 0b: opcode 7Ch */
2708 {256 * 1056, 63}, /* sectors 1 - 63: opcode 7Ch */
2709 },
2710 .block_erase = spi_erase_at45cs_sector,
2711 }
2712 },
2713 .printlock = spi_prettyprint_status_register_plain,
Stefan Tauner1dd5d3a2013-08-27 18:02:19 +00002714 .write = spi_write_at45db,
2715 .read = spi_read_at45db,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002716 .voltage = {2700, 3600},
Alan Greenc1863ca2019-06-27 15:08:03 +10002717 .gran = write_gran_1056bytes,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002718 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002719
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002720 {
2721 .vendor = "Atmel",
2722 .name = "AT45DB011D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002723 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002724 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002725 .model_id = ATMEL_AT45DB011D,
Alan Greencbb85c02019-06-25 13:42:34 +10002726 .total_size = 128, /* or 132, determined from status register */
2727 .page_size = 256, /* or 264, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00002728 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002729 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2730 .feature_bits = FEATURE_OTP,
Stefan Tauner5c316f92015-02-08 21:57:52 +00002731 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002732 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002733 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002734 .block_erasers =
2735 {
2736 {
2737 .eraseblocks = { {256, 512} },
2738 .block_erase = spi_erase_at45db_page,
2739 }, {
2740 .eraseblocks = { {8 * 256, 512/8} },
2741 .block_erase = spi_erase_at45db_block,
2742 }, {
2743 .eraseblocks = {
2744 {8 * 256, 1},
2745 {120 * 256, 1},
2746 {128 * 256, 3},
2747 },
2748 .block_erase = spi_erase_at45db_sector
2749 }, {
2750 .eraseblocks = { {128 * 1024, 1} },
2751 .block_erase = spi_erase_at45db_chip,
2752 }
2753 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002754 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10002755 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002756 /* granularity will be set by the probing function. */
2757 .write = spi_write_at45db,
2758 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002759 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002760 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002761
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002762 {
2763 .vendor = "Atmel",
2764 .name = "AT45DB021D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002765 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002766 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002767 .model_id = ATMEL_AT45DB021D,
Alan Greencbb85c02019-06-25 13:42:34 +10002768 .total_size = 256, /* or 264, determined from status register */
2769 .page_size = 256, /* or 264, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00002770 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002771 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2772 .feature_bits = FEATURE_OTP,
Stefan Tauner6697f712014-08-06 15:09:15 +00002773 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002774 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002775 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002776 .block_erasers =
2777 {
2778 {
2779 .eraseblocks = { {256, 1024} },
2780 .block_erase = spi_erase_at45db_page,
2781 }, {
2782 .eraseblocks = { {8 * 256, 1024/8} },
2783 .block_erase = spi_erase_at45db_block,
2784 }, {
2785 .eraseblocks = {
2786 {8 * 256, 1},
2787 {120 * 256, 1},
2788 {128 * 256, 7},
2789 },
2790 .block_erase = spi_erase_at45db_sector
2791 }, {
2792 .eraseblocks = { {256 * 1024, 1} },
2793 .block_erase = spi_erase_at45db_chip,
2794 }
2795 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002796 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10002797 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002798 /* granularity will be set by the probing function. */
2799 .write = spi_write_at45db,
2800 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002801 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002802 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002803
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002804 {
2805 .vendor = "Atmel",
2806 .name = "AT45DB041D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002807 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002808 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002809 .model_id = ATMEL_AT45DB041D,
Alan Greencbb85c02019-06-25 13:42:34 +10002810 .total_size = 512, /* or 528, determined from status register */
2811 .page_size = 256, /* or 264, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00002812 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002813 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2814 .feature_bits = FEATURE_OTP,
2815 .tested = TEST_OK_PREW,
2816 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002817 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002818 .block_erasers =
2819 {
2820 {
2821 .eraseblocks = { {256, 2048} },
2822 .block_erase = spi_erase_at45db_page,
2823 }, {
2824 .eraseblocks = { {8 * 256, 2048/8} },
2825 .block_erase = spi_erase_at45db_block,
2826 }, {
2827 .eraseblocks = {
2828 {8 * 256, 1},
2829 {248 * 256, 1},
2830 {256 * 256, 7},
2831 },
2832 .block_erase = spi_erase_at45db_sector
2833 }, {
2834 .eraseblocks = { {512 * 1024, 1} },
2835 .block_erase = spi_erase_at45db_chip,
2836 }
2837 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002838 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10002839 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002840 /* granularity will be set by the probing function. */
2841 .write = spi_write_at45db,
2842 .read = spi_read_at45db, /* Fast read (0x0B) supported */
2843 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002844 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002845
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002846 {
2847 .vendor = "Atmel",
2848 .name = "AT45DB081D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002849 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002850 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002851 .model_id = ATMEL_AT45DB081D,
Alan Greencbb85c02019-06-25 13:42:34 +10002852 .total_size = 1024, /* or 1056, determined from status register */
2853 .page_size = 256, /* or 264, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00002854 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002855 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2856 .feature_bits = FEATURE_OTP,
Angel Pons250aeba2018-09-30 20:28:22 +02002857 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002858 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002859 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002860 .block_erasers =
2861 {
2862 {
2863 .eraseblocks = { {256, 4096} },
2864 .block_erase = spi_erase_at45db_page,
2865 }, {
2866 .eraseblocks = { {8 * 256, 4096/8} },
2867 .block_erase = spi_erase_at45db_block,
2868 }, {
2869 .eraseblocks = {
2870 {8 * 256, 1},
2871 {248 * 256, 1},
2872 {256 * 256, 15},
2873 },
2874 .block_erase = spi_erase_at45db_sector
2875 }, {
2876 .eraseblocks = { {1024 * 1024, 1} },
2877 .block_erase = spi_erase_at45db_chip,
2878 }
2879 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002880 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10002881 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002882 /* granularity will be set by the probing function. */
2883 .write = spi_write_at45db,
2884 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002885 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002886 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002887
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002888 {
2889 .vendor = "Atmel",
2890 .name = "AT45DB161D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002891 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002892 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002893 .model_id = ATMEL_AT45DB161D,
Alan Greencbb85c02019-06-25 13:42:34 +10002894 .total_size = 2048, /* or 2112, determined from status register */
2895 .page_size = 512, /* or 528, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00002896 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002897 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2898 .feature_bits = FEATURE_OTP,
2899 .tested = TEST_OK_PREW,
2900 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002901 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002902 .block_erasers =
2903 {
2904 {
2905 .eraseblocks = { {512, 4096} },
2906 .block_erase = spi_erase_at45db_page,
2907 }, {
2908 .eraseblocks = { {8 * 512, 4096/8} },
2909 .block_erase = spi_erase_at45db_block,
2910 }, {
2911 .eraseblocks = {
2912 {8 * 512, 1},
2913 {248 * 512, 1},
2914 {256 * 512, 15},
2915 },
2916 .block_erase = spi_erase_at45db_sector
2917 }, {
2918 .eraseblocks = { {2048 * 1024, 1} },
2919 .block_erase = spi_erase_at45db_chip,
2920 }
2921 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002922 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10002923 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002924 /* granularity will be set by the probing function. */
2925 .write = spi_write_at45db,
2926 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002927 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002928 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002929
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002930 {
2931 .vendor = "Atmel",
2932 .name = "AT45DB321C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002933 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002934 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002935 .model_id = ATMEL_AT45DB321C,
Alan Greencbb85c02019-06-25 13:42:34 +10002936 .total_size = 4224, /* No power of two sizes */
2937 .page_size = 528, /* No power of two sizes */
Steven Zakulec3603a282012-05-02 20:07:57 +00002938 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002939 /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */
2940 .feature_bits = FEATURE_OTP,
2941 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002942 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002943 .probe_timing = TIMING_ZERO,
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002944 .block_erasers =
2945 {
2946 {
2947 .eraseblocks = { {528, 8192} },
2948 .block_erase = spi_erase_at45db_page,
2949 }, {
2950 .eraseblocks = { {8 * 528, 8192/8} },
2951 .block_erase = spi_erase_at45db_block,
2952 }, /* Although the datasheets describes sectors (which can be write protected)
2953 * there seems to be no erase functions for them.
Stefan Tauner23e10b82016-01-23 16:16:49 +00002954 {
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002955 .eraseblocks = {
2956 {8 * 528, 1},
2957 {120 * 528, 1},
2958 {128 * 528, 63},
2959 },
2960 .block_erase = spi_erase_at45db_sector
2961 }, */ {
2962 .eraseblocks = { {4224 * 1024, 1} },
2963 .block_erase = spi_erase_at45db_chip,
2964 }
2965 },
2966 .printlock = spi_prettyprint_status_register_at45db, /* Bit 0 is undefined, no lockdown */
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002967 .write = spi_write_at45db,
2968 .read = spi_read_at45db_e8, /* 3 address and 4 dummy bytes */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002969 .voltage = {2700, 3600},
Alan Greenc1863ca2019-06-27 15:08:03 +10002970 .gran = write_gran_528bytes,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002971 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002972
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002973 {
2974 .vendor = "Atmel",
2975 .name = "AT45DB321D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002976 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002977 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002978 .model_id = ATMEL_AT45DB321D,
Alan Greencbb85c02019-06-25 13:42:34 +10002979 .total_size = 4096, /* or 4224, determined from status register */
2980 .page_size = 512, /* or 528, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00002981 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002982 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
Daniel Lenski65922a32012-02-15 23:40:23 +00002983 .feature_bits = FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +00002984 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002985 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002986 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002987 .block_erasers =
2988 {
2989 {
2990 .eraseblocks = { {512, 8192} },
2991 .block_erase = spi_erase_at45db_page,
2992 }, {
2993 .eraseblocks = { {8 * 512, 8192/8} },
2994 .block_erase = spi_erase_at45db_block,
2995 }, {
2996 .eraseblocks = {
2997 {8 * 512, 1},
2998 {120 * 512, 1},
2999 {128 * 512, 63},
3000 },
3001 .block_erase = spi_erase_at45db_sector
3002 }, {
3003 .eraseblocks = { {4096 * 1024, 1} },
3004 .block_erase = spi_erase_at45db_chip,
3005 }
3006 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003007 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10003008 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003009 /* granularity will be set by the probing function. */
3010 .write = spi_write_at45db,
3011 .read = spi_read_at45db, /* Fast read (0x0B) supported */
3012 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
3013 },
3014
3015 {
3016 .vendor = "Atmel",
3017 .name = "AT45DB321E",
3018 .bustype = BUS_SPI,
3019 .manufacture_id = ATMEL_ID,
3020 .model_id = ATMEL_AT45DB321C,
Alan Greencbb85c02019-06-25 13:42:34 +10003021 .total_size = 4096, /* or 4224, determined from status register */
3022 .page_size = 512, /* or 528, determined from status register */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003023 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
3024 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
3025 .feature_bits = FEATURE_OTP,
3026 .tested = TEST_UNTESTED,
3027 .probe = probe_spi_at45db,
3028 .probe_timing = TIMING_ZERO,
3029 .block_erasers =
3030 {
3031 {
3032 .eraseblocks = { {512, 8192} },
3033 .block_erase = spi_erase_at45db_page,
3034 }, {
3035 .eraseblocks = { {8 * 512, 8192/8} },
3036 .block_erase = spi_erase_at45db_block,
3037 }, {
3038 .eraseblocks = {
3039 {8 * 512, 1},
3040 {120 * 512, 1},
3041 {128 * 512, 63},
3042 },
3043 .block_erase = spi_erase_at45db_sector
3044 }, {
3045 .eraseblocks = { {4096 * 1024, 1} },
3046 .block_erase = spi_erase_at45db_chip,
3047 }
3048 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003049 .printlock = spi_prettyprint_status_register_at45db, /* has a 2nd status register */
Alan Greenc1863ca2019-06-27 15:08:03 +10003050 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003051 /* granularity will be set by the probing function. */
3052 .write = spi_write_at45db,
3053 .read = spi_read_at45db, /* Fast read (0x0B) supported */
3054 .voltage = {2500, 3600}, /* 2.3-3.6V & 2.5-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00003055 },
FENG yu ningff692fb2008-12-08 18:15:10 +00003056
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003057 {
3058 .vendor = "Atmel",
3059 .name = "AT45DB642D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003060 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003061 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003062 .model_id = ATMEL_AT45DB642D,
Alan Greencbb85c02019-06-25 13:42:34 +10003063 .total_size = 8192, /* or 8448, determined from status register */
3064 .page_size = 1024, /* or 1056, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00003065 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003066 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
3067 .feature_bits = FEATURE_OTP,
Stefan Tauner5c316f92015-02-08 21:57:52 +00003068 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003069 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003070 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003071 .block_erasers =
3072 {
3073 {
3074 .eraseblocks = { {1024, 8192} },
3075 .block_erase = spi_erase_at45db_page,
3076 }, {
3077 .eraseblocks = { {8 * 1024, 8192/8} },
3078 .block_erase = spi_erase_at45db_block,
3079 }, {
3080 .eraseblocks = {
3081 {8 * 1024, 1},
3082 {248 * 1024, 1},
3083 {256 * 1024, 31},
3084 },
3085 .block_erase = spi_erase_at45db_sector
3086 }, {
3087 .eraseblocks = { {8192 * 1024, 1} },
3088 .block_erase = spi_erase_at45db_chip,
3089 }
3090 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003091 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10003092 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003093 /* granularity will be set by the probing function. */
3094 .write = spi_write_at45db,
3095 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003096 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00003097 },
FENG yu ningff692fb2008-12-08 18:15:10 +00003098
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003099 {
3100 .vendor = "Atmel",
Alan Green1f9cc7d2019-07-01 11:10:45 +10003101 .name = "AT49(H)F010",
3102 .bustype = BUS_PARALLEL,
3103 .manufacture_id = ATMEL_ID,
3104 .model_id = ATMEL_AT49F010,
3105 .total_size = 128,
3106 .page_size = 0, /* unused */
3107 .feature_bits = FEATURE_EITHER_RESET,
3108 .tested = TEST_OK_PREW,
3109 .probe = probe_jedec,
3110 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3111 .block_erasers =
3112 {
3113 {
3114 .eraseblocks = { {128 * 1024, 1} },
3115 .block_erase = erase_chip_block_jedec,
3116 }
3117 },
3118 .printlock = printlock_at49f,
3119 .write = write_jedec_1,
3120 .read = read_memmapped,
3121 .voltage = {4500, 5500},
3122 },
3123
3124 {
3125 .vendor = "Atmel",
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003126 .name = "AT49BV512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003127 .bustype = BUS_PARALLEL,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003128 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003129 .model_id = ATMEL_AT49BV512,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003130 .total_size = 64,
3131 .page_size = 64,
Sean Nelson35727f72010-01-28 23:55:12 +00003132 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +00003133 .tested = TEST_OK_PREW,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003134 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003135 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00003136 .block_erasers =
3137 {
3138 {
3139 .eraseblocks = { {64 * 1024, 1} },
3140 .block_erase = erase_chip_block_jedec,
3141 }
3142 },
Sean Nelson35727f72010-01-28 23:55:12 +00003143 .write = write_jedec_1,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003144 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003145 .voltage = {2700, 3600},
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003146 },
3147
3148 {
3149 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003150 .name = "AT49F002(N)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003151 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003152 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003153 .model_id = ATMEL_AT49F002N,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003154 .total_size = 256,
3155 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00003156 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003157 .tested = TEST_UNTESTED,
3158 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003159 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00003160 .block_erasers =
3161 {
3162 {
3163 .eraseblocks = {
3164 {16 * 1024, 1},
3165 {8 * 1024, 2},
3166 {96 * 1024, 1},
3167 {128 * 1024, 1},
3168 },
3169 .block_erase = erase_sector_jedec,
3170 }, {
3171 .eraseblocks = { {256 * 1024, 1} },
3172 .block_erase = erase_chip_block_jedec,
3173 }
3174 },
Sean Nelson35727f72010-01-28 23:55:12 +00003175 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003176 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003177 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003178 },
3179
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003180 {
3181 .vendor = "Atmel",
3182 .name = "AT49F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003183 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003184 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003185 .model_id = ATMEL_AT49F002NT,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003186 .total_size = 256,
3187 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00003188 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003189 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003190 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003191 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00003192 .block_erasers =
3193 {
3194 {
3195 .eraseblocks = {
3196 {128 * 1024, 1},
3197 {96 * 1024, 1},
3198 {8 * 1024, 2},
3199 {16 * 1024, 1},
3200 },
3201 .block_erase = erase_sector_jedec,
3202 }, {
3203 .eraseblocks = { {256 * 1024, 1} },
3204 .block_erase = erase_chip_block_jedec,
3205 }
3206 },
Sean Nelson35727f72010-01-28 23:55:12 +00003207 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003208 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003209 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003210 },
3211
Daniel Lenskidf90d3a2010-07-22 11:44:38 +00003212 {
Uwe Hermannc74e9772011-09-08 19:55:18 +00003213 .vendor = "Atmel",
David Borgf5a30f62012-04-15 13:16:32 +00003214 .name = "AT49F020",
3215 .bustype = BUS_PARALLEL,
3216 .manufacture_id = ATMEL_ID,
3217 .model_id = ATMEL_AT49F020,
3218 .total_size = 256,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00003219 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00003220 .feature_bits = FEATURE_EITHER_RESET,
3221 .tested = TEST_OK_PRE,
3222 .probe = probe_jedec,
3223 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3224 .block_erasers =
3225 {
3226 {
3227 .eraseblocks = { {256 * 1024, 1} },
3228 .block_erase = erase_chip_block_jedec,
3229 }
3230 /* Chip features an optional permanent write protection
3231 * of the first 8 kB. The erase function is the same as
3232 * above, but 00000H to 01FFFH will not be erased.
3233 * FIXME: add another eraser when partial erasers are
3234 * supported.
3235 */
3236 },
3237 .printlock = printlock_at49f,
3238 .write = write_jedec_1,
3239 .read = read_memmapped,
3240 .voltage = {4500, 5500},
3241 },
3242
3243 {
3244 .vendor = "Atmel",
3245 .name = "AT49F040",
3246 .bustype = BUS_PARALLEL,
3247 .manufacture_id = ATMEL_ID,
3248 .model_id = ATMEL_AT49F040,
3249 .total_size = 512,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00003250 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00003251 .feature_bits = FEATURE_EITHER_RESET,
3252 .tested = TEST_UNTESTED,
3253 .probe = probe_jedec,
3254 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3255 .block_erasers =
3256 {
3257 {
3258 .eraseblocks = { {512 * 1024, 1} },
3259 .block_erase = erase_chip_block_jedec,
3260 }
3261 /* Chip features an optional permanent write protection
3262 * of the first 16 kB. The erase function is the same as
3263 * above, but 00000H to 03FFFH will not be erased.
3264 * FIXME: add another eraser when partial erasers are
3265 * supported.
3266 */
3267 },
3268 .printlock = printlock_at49f,
3269 .write = write_jedec_1,
3270 .read = read_memmapped,
3271 .voltage = {4500, 5500},
3272 },
3273
3274 {
3275 .vendor = "Atmel",
Andrew Morgan8dd97f92012-08-13 23:43:46 +00003276 .name = "AT49F080",
3277 .bustype = BUS_PARALLEL,
3278 .manufacture_id = ATMEL_ID,
3279 .model_id = ATMEL_AT49F080,
3280 .total_size = 1024,
3281 .page_size = 0, /* unused */
3282 .feature_bits = FEATURE_EITHER_RESET,
3283 .tested = TEST_UNTESTED,
3284 .probe = probe_jedec,
3285 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3286 .block_erasers =
3287 {
3288 {
3289 .eraseblocks = { {1024 * 1024, 1} },
3290 .block_erase = erase_chip_block_jedec,
3291 }
3292 /* Chip features an optional permanent write protection
3293 * of the first 16 kB. The erase function is the same as
3294 * above, but 00000H to 03FFFH will not be erased.
3295 * FIXME: add another eraser when partial erasers are
3296 * supported.
3297 */
3298 },
3299 .printlock = printlock_at49f,
3300 .write = write_jedec_1,
3301 .read = read_memmapped,
3302 .voltage = {4500, 5500},
3303 },
3304
3305 {
3306 /* 'top' version of AT49F080. equal in all aspects but the boot block address */
3307 .vendor = "Atmel",
3308 .name = "AT49F080T",
3309 .bustype = BUS_PARALLEL,
3310 .manufacture_id = ATMEL_ID,
3311 .model_id = ATMEL_AT49F080T,
3312 .total_size = 1024,
3313 .page_size = 0, /* unused */
3314 .feature_bits = FEATURE_EITHER_RESET,
3315 .tested = TEST_UNTESTED,
3316 .probe = probe_jedec,
3317 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3318 .block_erasers =
3319 {
3320 {
3321 .eraseblocks = { {1024 * 1024, 1} },
3322 .block_erase = erase_chip_block_jedec,
3323 }
3324 /* Chip features an optional permanent write protection
3325 * of the first 16 kB. The erase function is the same as
3326 * above, but FC000H to FFFFFH will not be erased.
3327 * FIXME: add another eraser when partial erasers are
3328 * supported.
3329 */
3330 },
3331 .printlock = printlock_at49f,
3332 .write = write_jedec_1,
3333 .read = read_memmapped,
3334 .voltage = {4500, 5500},
3335 },
3336
3337 {
3338 .vendor = "Atmel",
Uwe Hermannc74e9772011-09-08 19:55:18 +00003339 .name = "AT49LH002",
3340 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
3341 .manufacture_id = ATMEL_ID,
3342 .model_id = ATMEL_AT49LH002,
3343 .total_size = 256,
3344 .page_size = 0, /* unused */
Stefan Tauner7de93932014-08-03 13:05:45 +00003345 .feature_bits = FEATURE_REGISTERMAP,
Uwe Hermannc74e9772011-09-08 19:55:18 +00003346 .tested = TEST_UNTESTED,
Stefan Tauner7de93932014-08-03 13:05:45 +00003347 .probe = probe_82802ab,
3348 .probe_timing = TIMING_ZERO,
Uwe Hermannc74e9772011-09-08 19:55:18 +00003349 .block_erasers =
3350 {
3351 {
3352 .eraseblocks = {
3353 {64 * 1024, 3},
3354 {32 * 1024, 1},
3355 {8 * 1024, 2},
3356 {16 * 1024, 1},
3357 },
Stefan Tauner7de93932014-08-03 13:05:45 +00003358 .block_erase = NULL, /* TODO: Implement. */
Uwe Hermannc74e9772011-09-08 19:55:18 +00003359 }, {
3360 .eraseblocks = {
3361 {64 * 1024, 4},
3362 },
Stefan Tauner7de93932014-08-03 13:05:45 +00003363 .block_erase = erase_block_82802ab,
3364 },
3365 },
3366 .printlock = printlock_regspace2_block_eraser_0,
3367 .unlock = unlock_regspace2_block_eraser_0,
3368 .write = write_82802ab,
3369 .read = read_memmapped,
3370 .voltage = {3000, 3600},
3371 },
3372
3373 {
3374 .vendor = "Atmel",
Stefan Tauner7de93932014-08-03 13:05:45 +00003375 .name = "AT49LH004",
3376 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
3377 .manufacture_id = ATMEL_ID,
3378 .model_id = ATMEL_AT49LH004,
3379 .total_size = 512,
3380 .page_size = 0, /* unused */
3381 .feature_bits = FEATURE_REGISTERMAP,
3382 .tested = TEST_UNTESTED,
3383 .probe = probe_82802ab,
3384 .probe_timing = TIMING_ZERO,
3385 .block_erasers =
3386 {
3387 {
3388 .eraseblocks = {
3389 {64 * 1024, 7},
3390 {32 * 1024, 1},
3391 {8 * 1024, 2},
3392 {16 * 1024, 1},
3393 },
3394 .block_erase = erase_block_82802ab,
3395 }, {
3396 .eraseblocks = {
3397 {64 * 1024, 8},
3398 },
Uwe Hermannc74e9772011-09-08 19:55:18 +00003399 .block_erase = NULL, /* TODO: Implement. */
3400 },
3401 },
Stefan Tauner7de93932014-08-03 13:05:45 +00003402 .printlock = printlock_regspace2_block_eraser_0,
3403 .unlock = unlock_regspace2_block_eraser_0,
Uwe Hermannc74e9772011-09-08 19:55:18 +00003404 .write = write_82802ab,
3405 .read = read_memmapped,
3406 .voltage = {3000, 3600},
3407 },
3408
3409 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003410 .vendor = "Atmel",
3411 .name = "AT49LH00B4",
3412 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
3413 .manufacture_id = ATMEL_ID,
3414 .model_id = ATMEL_AT49LH00B4,
3415 .total_size = 512,
Andrew Morganca081462011-09-13 22:05:44 +00003416 .page_size = 0, /* unused */
Alan Green1f9cc7d2019-07-01 11:10:45 +10003417 .feature_bits = FEATURE_REGISTERMAP,
3418 .tested = TEST_UNTESTED,
3419 .probe = probe_82802ab,
Andrew Morganca081462011-09-13 22:05:44 +00003420 .probe_timing = TIMING_ZERO,
3421 .block_erasers =
3422 {
3423 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003424 .eraseblocks = {
3425 {8 * 1024, 2},
3426 {16 * 1024, 1},
3427 {32 * 1024, 1},
3428 {64 * 1024, 7},
3429 },
3430 .block_erase = NULL, /* TODO: Implement. */
3431 }, {
3432 .eraseblocks = {
3433 {64 * 1024, 8},
3434 },
3435 .block_erase = erase_block_82802ab,
Andrew Morganca081462011-09-13 22:05:44 +00003436 },
3437 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10003438 .printlock = printlock_regspace2_block_eraser_0,
3439 .unlock = unlock_regspace2_block_eraser_0,
3440 .write = write_82802ab,
Andrew Morganca081462011-09-13 22:05:44 +00003441 .read = read_memmapped,
Alan Green1f9cc7d2019-07-01 11:10:45 +10003442 .voltage = {3000, 3600},
Andrew Morganca081462011-09-13 22:05:44 +00003443 },
3444
3445 {
Angel Pons1ebda782021-04-20 21:39:11 +02003446 .vendor = "Boya/BoHong Microelectronics",
Christian Kudera475a7ee2021-04-20 22:50:01 +02003447 .name = "B.25D16A",
3448 .bustype = BUS_SPI,
3449 .manufacture_id = BOYA_BOHONG_ID,
3450 .model_id = BOYA_BOHONG_B_25D16A,
3451 .total_size = 2048,
3452 .page_size = 256,
3453 .feature_bits = FEATURE_WRSR_WREN,
3454 .tested = TEST_OK_PR,
3455 .probe = probe_spi_rdid,
3456 .probe_timing = TIMING_ZERO,
3457 .block_erasers =
3458 {
3459 {
3460 .eraseblocks = { {4 * 1024, 512} },
3461 .block_erase = spi_block_erase_20,
3462 }, {
3463 .eraseblocks = { {32 * 1024, 64} },
3464 .block_erase = spi_block_erase_52,
3465 }, {
3466 .eraseblocks = { {64 * 1024, 32} },
3467 .block_erase = spi_block_erase_d8,
3468 }, {
3469 .eraseblocks = { {2 * 1024 * 1024, 1} },
3470 .block_erase = spi_block_erase_60,
3471 }, {
3472 .eraseblocks = { {2 * 1024 * 1024, 1} },
3473 .block_erase = spi_block_erase_c7,
3474 }
3475 },
3476 .printlock = spi_prettyprint_status_register_bp2_srwd,
3477 .unlock = spi_disable_blockprotect_bp2_srwd,
3478 .write = spi_chip_write_256,
3479 .read = spi_chip_read,
3480 .voltage = {2700, 3600},
3481 },
3482
3483 {
3484 .vendor = "Boya/BoHong Microelectronics",
Angel Pons1ebda782021-04-20 21:39:11 +02003485 .name = "B.25Q128AS",
Jack Olsen73ae5ef2020-08-08 21:12:13 -05003486 .bustype = BUS_SPI,
Angel Pons1ebda782021-04-20 21:39:11 +02003487 .manufacture_id = BOYA_BOHONG_ID,
3488 .model_id = BOYA_BOHONG_B_25Q128AS,
Jack Olsen73ae5ef2020-08-08 21:12:13 -05003489 .total_size = 16384,
3490 .page_size = 256,
3491 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
3492 .tested = TEST_OK_PREW,
3493 .probe = probe_spi_rdid,
3494 .probe_timing = TIMING_ZERO,
3495 .block_erasers =
3496 {
3497 {
3498 .eraseblocks = { {4 * 1024, 4096} },
3499 .block_erase = spi_block_erase_20,
3500 }, {
3501 .eraseblocks = { {32 * 1024, 512} },
3502 .block_erase = spi_block_erase_52,
3503 }, {
3504 .eraseblocks = { {64 * 1024, 256} },
3505 .block_erase = spi_block_erase_d8,
3506 }, {
3507 .eraseblocks = { {16 * 1024 * 1024, 1} },
3508 .block_erase = spi_block_erase_60,
3509 }, {
3510 .eraseblocks = { {16 * 1024 * 1024, 1} },
3511 .block_erase = spi_block_erase_c7,
3512 }
3513 },
3514 .printlock = spi_prettyprint_status_register_plain,
3515 .unlock = spi_disable_blockprotect_at25fs040,
3516 .write = spi_chip_write_256,
3517 .read = spi_chip_read,
3518 .voltage = {2700, 3600},
3519 },
3520
3521 {
Joshua Roysf1324e02010-09-16 00:51:51 +00003522 .vendor = "Bright",
3523 .name = "BM29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003524 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00003525 .manufacture_id = BRIGHT_ID,
3526 .model_id = BRIGHT_BM29F040,
3527 .total_size = 512,
3528 .page_size = 64 * 1024,
3529 .feature_bits = FEATURE_EITHER_RESET,
3530 .tested = TEST_OK_PR,
3531 .probe = probe_jedec,
3532 .probe_timing = TIMING_ZERO,
3533 .block_erasers =
3534 {
3535 {
3536 .eraseblocks = { {64 * 1024, 8} },
3537 .block_erase = erase_sector_jedec,
3538 }, {
3539 .eraseblocks = { {512 * 1024, 1} },
3540 .block_erase = erase_chip_block_jedec,
3541 },
3542 },
3543 .write = write_jedec_1,
3544 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003545 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00003546 },
3547
3548 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003549 .vendor = "Catalyst",
3550 .name = "CAT28F512",
3551 .bustype = BUS_PARALLEL,
3552 .manufacture_id = CATALYST_ID,
3553 .model_id = CATALYST_CAT28F512,
3554 .total_size = 64,
3555 .page_size = 0, /* unused */
3556 .feature_bits = 0,
Alan Green908adf42019-07-03 15:34:06 +10003557 .tested = {.probe = OK, .read = OK, .erase = BAD, .write = BAD},
Alan Green1f9cc7d2019-07-01 11:10:45 +10003558 .probe = probe_jedec, /* FIXME! */
3559 .probe_timing = TIMING_ZERO,
3560 .block_erasers =
3561 {
3562 {
3563 .eraseblocks = { {64 * 1024, 1} },
3564 .block_erase = NULL, /* TODO */
3565 },
3566 },
3567 .write = NULL, /* TODO */
3568 .read = read_memmapped,
3569 .voltage = {4500, 5500},
3570 },
3571
3572 {
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003573 .vendor = "ENE",
3574 .name = "KB9012 (EDI)",
3575 .bustype = BUS_SPI,
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003576 .total_size = 128,
3577 .page_size = 128,
3578 .feature_bits = FEATURE_ERASED_ZERO,
3579 .tested = TEST_OK_PREW,
Alan Greenc1863ca2019-06-27 15:08:03 +10003580 .spi_cmd_set = SPI_EDI,
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003581 .probe = edi_probe_kb9012,
3582 .probe_timing = TIMING_ZERO,
3583 .block_erasers =
3584 {
3585 {
3586 .eraseblocks = { {128, 1024} },
3587 .block_erase = edi_chip_block_erase,
3588 },
3589 },
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003590 .write = edi_chip_write,
3591 .read = edi_chip_read,
3592 .voltage = {2700, 3600},
Alan Greenc1863ca2019-06-27 15:08:03 +10003593 .gran = write_gran_128bytes,
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003594 },
3595
3596 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003597 .vendor = "ESI",
3598 .name = "ES25P16",
3599 .bustype = BUS_SPI,
3600 .manufacture_id = EXCEL_ID_NOPREFIX,
3601 .model_id = EXCEL_ES25P16,
3602 .total_size = 2 * 1024,
3603 .page_size = 256,
3604 /* 256-byte parameter page separate from memory array:
3605 * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
3606 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003607 .tested = TEST_UNTESTED,
Alan Green1f9cc7d2019-07-01 11:10:45 +10003608 .probe = probe_spi_rdid,
3609 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003610 .block_erasers =
3611 {
3612 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003613 .eraseblocks = { {64 * 1024, 32} },
3614 .block_erase = spi_block_erase_d8,
Sean Nelson54596372010-01-09 05:30:14 +00003615 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003616 .eraseblocks = { {2 * 1024 * 1024, 1} },
3617 .block_erase = spi_block_erase_c7,
Sean Nelson54596372010-01-09 05:30:14 +00003618 }
3619 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10003620 .printlock = spi_prettyprint_status_register_bp2_srwd,
3621 .unlock = spi_disable_blockprotect_bp2_srwd,
3622 .write = spi_chip_write_256,
3623 .read = spi_chip_read, /* Fast Read (0x0B) supported */
3624 .voltage = {2700, 3600},
3625 },
3626
3627 {
3628 .vendor = "ESI",
3629 .name = "ES25P40",
3630 .bustype = BUS_SPI,
3631 .manufacture_id = EXCEL_ID_NOPREFIX,
3632 .model_id = EXCEL_ES25P40,
3633 .total_size = 512,
3634 .page_size = 256,
3635 /* 256-byte parameter page separate from memory array:
3636 * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
3637 .feature_bits = FEATURE_WRSR_WREN,
3638 .tested = TEST_UNTESTED,
3639 .probe = probe_spi_rdid,
3640 .probe_timing = TIMING_ZERO,
3641 .block_erasers =
3642 {
3643 {
3644 .eraseblocks = { {64 * 1024, 8} },
3645 .block_erase = spi_block_erase_d8,
3646 }, {
3647 .eraseblocks = { {512 * 1024, 1} },
3648 .block_erase = spi_block_erase_c7,
3649 }
3650 },
3651 .printlock = spi_prettyprint_status_register_bp2_srwd,
3652 .unlock = spi_disable_blockprotect_bp2_srwd,
3653 .write = spi_chip_write_256,
3654 .read = spi_chip_read, /* Fast Read (0x0B) supported */
3655 .voltage = {2700, 3600},
3656 },
3657
3658 {
3659 .vendor = "ESI",
3660 .name = "ES25P80",
3661 .bustype = BUS_SPI,
3662 .manufacture_id = EXCEL_ID_NOPREFIX,
3663 .model_id = EXCEL_ES25P80,
3664 .total_size = 1024,
3665 .page_size = 256,
3666 /* 256-byte parameter page separate from memory array:
3667 * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
3668 .feature_bits = FEATURE_WRSR_WREN,
3669 .tested = TEST_UNTESTED,
3670 .probe = probe_spi_rdid,
3671 .probe_timing = TIMING_ZERO,
3672 .block_erasers =
3673 {
3674 {
3675 .eraseblocks = { {64 * 1024, 16} },
3676 .block_erase = spi_block_erase_d8,
3677 }, {
3678 .eraseblocks = { {1024 * 1024, 1} },
3679 .block_erase = spi_block_erase_c7,
3680 }
3681 },
3682 .printlock = spi_prettyprint_status_register_bp2_srwd,
3683 .unlock = spi_disable_blockprotect_bp2_srwd,
3684 .write = spi_chip_write_256,
3685 .read = spi_chip_read, /* Fast Read (0x0B) supported */
3686 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00003687 },
3688
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003689 {
Stefan Tauner352e50b2013-02-22 15:58:45 +00003690 .vendor = "ESMT",
Michael Karcher80a59ea2010-06-19 22:06:35 +00003691 .name = "F25L008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003692 .bustype = BUS_SPI,
Stefan Tauner352e50b2013-02-22 15:58:45 +00003693 .manufacture_id = ESMT_ID,
3694 .model_id = ESMT_F25L008A,
Michael Karcher80a59ea2010-06-19 22:06:35 +00003695 .total_size = 1024,
3696 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003697 .feature_bits = FEATURE_WRSR_EITHER,
Stefan Taunereb582572012-09-21 12:52:50 +00003698 .tested = TEST_OK_PREW,
Michael Karcher80a59ea2010-06-19 22:06:35 +00003699 .probe = probe_spi_rdid,
3700 .probe_timing = TIMING_ZERO,
3701 .block_erasers =
3702 {
3703 {
3704 .eraseblocks = { {4 * 1024, 256} },
3705 .block_erase = spi_block_erase_20,
3706 }, {
3707 .eraseblocks = { {64 * 1024, 16} },
3708 .block_erase = spi_block_erase_d8,
3709 }, {
3710 .eraseblocks = { {1024 * 1024, 1} },
3711 .block_erase = spi_block_erase_60,
3712 }, {
3713 .eraseblocks = { {1024 * 1024, 1} },
3714 .block_erase = spi_block_erase_c7,
3715 }
3716 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003717 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003718 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger9a795d82010-07-14 16:19:05 +00003719 .write = spi_chip_write_1,
Michael Karcher4497e862010-07-10 19:34:15 +00003720 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003721 .voltage = {2700, 3600},
Michael Karcher80a59ea2010-06-19 22:06:35 +00003722 },
3723
3724 {
Stefan Tauner85f09f72014-05-27 21:27:14 +00003725 .vendor = "ESMT",
3726 .name = "F25L32PA",
3727 .bustype = BUS_SPI,
3728 .manufacture_id = ESMT_ID,
3729 .model_id = ESMT_F25L32PA,
3730 .total_size = 4096,
3731 .page_size = 256,
3732 .feature_bits = FEATURE_WRSR_EITHER | FEATURE_OTP,
3733 .tested = TEST_UNTESTED,
3734 .probe = probe_spi_rdid,
3735 .probe_timing = TIMING_ZERO,
3736 .block_erasers =
3737 {
3738 {
3739 .eraseblocks = { {4 * 1024, 1024} },
3740 .block_erase = spi_block_erase_20,
3741 }, {
3742 .eraseblocks = { {64 * 1024, 64} },
3743 .block_erase = spi_block_erase_d8,
3744 }, {
3745 .eraseblocks = { {4 * 1024 * 1024, 1} },
3746 .block_erase = spi_block_erase_60,
3747 }, {
3748 .eraseblocks = { {4 * 1024 * 1024, 1} },
3749 .block_erase = spi_block_erase_c7,
3750 }
3751 },
3752 .printlock = spi_prettyprint_status_register_bp2_bpl,
3753 .unlock = spi_disable_blockprotect,
3754 .write = spi_chip_write_256,
3755 .read = spi_chip_read,
3756 .voltage = {2700, 3600},
3757 },
3758
3759 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003760 .vendor = "ESMT",
3761 .name = "F49B002UA",
3762 .bustype = BUS_PARALLEL,
3763 .manufacture_id = ESMT_ID,
3764 .model_id = ESMT_F49B002UA,
3765 .total_size = 256,
3766 .page_size = 4096,
3767 .feature_bits = FEATURE_EITHER_RESET,
3768 .tested = TEST_UNTESTED,
3769 .probe = probe_jedec,
3770 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3771 .block_erasers =
3772 {
3773 {
3774 .eraseblocks = {
3775 {128 * 1024, 1},
3776 {96 * 1024, 1},
3777 {8 * 1024, 2},
3778 {16 * 1024, 1},
3779 },
3780 .block_erase = erase_sector_jedec,
3781 }, {
3782 .eraseblocks = { {256 * 1024, 1} },
3783 .block_erase = erase_chip_block_jedec,
3784 }
3785 },
3786 .write = write_jedec_1,
3787 .read = read_memmapped,
3788 .voltage = {4500, 5500},
3789 },
3790
3791 {
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003792 .vendor = "Eon",
3793 .name = "EN25B05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003794 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003795 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003796 .model_id = EON_EN25B05,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003797 .total_size = 64,
3798 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003799 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003800 .tested = TEST_UNTESTED,
3801 .probe = probe_spi_rdid,
3802 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003803 .block_erasers =
3804 {
3805 {
3806 .eraseblocks = {
3807 {4 * 1024, 2},
3808 {8 * 1024, 1},
3809 {16 * 1024, 1},
3810 {32 * 1024, 1},
3811 },
3812 .block_erase = spi_block_erase_d8,
3813 }, {
3814 .eraseblocks = { {64 * 1024, 1} },
3815 .block_erase = spi_block_erase_c7,
3816 }
3817 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003818 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003819 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003820 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003821 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003822 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003823 },
3824
3825 {
3826 .vendor = "Eon",
3827 .name = "EN25B05T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003828 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003829 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003830 .model_id = EON_EN25B05,
Sean Nelson54596372010-01-09 05:30:14 +00003831 .total_size = 64,
3832 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003833 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003834 .tested = TEST_UNTESTED,
3835 .probe = probe_spi_rdid,
3836 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003837 .block_erasers =
3838 {
3839 {
3840 .eraseblocks = {
3841 {32 * 1024, 1},
3842 {16 * 1024, 1},
3843 {8 * 1024, 1},
3844 {4 * 1024, 2},
3845 },
3846 .block_erase = spi_block_erase_d8,
3847 }, {
3848 .eraseblocks = { {64 * 1024, 1} },
3849 .block_erase = spi_block_erase_c7,
3850 }
3851 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003852 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003853 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003854 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003855 .read = spi_chip_read, /* Fast read (0x0B) supported */
3856 .voltage = {2700, 3600},
3857 },
3858
3859 {
3860 .vendor = "Eon",
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003861 .name = "EN25B10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003862 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003863 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003864 .model_id = EON_EN25B10,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003865 .total_size = 128,
3866 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003867 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003868 .tested = TEST_UNTESTED,
3869 .probe = probe_spi_rdid,
3870 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003871 .block_erasers =
3872 {
3873 {
3874 .eraseblocks = {
3875 {4 * 1024, 2},
3876 {8 * 1024, 1},
3877 {16 * 1024, 1},
3878 {32 * 1024, 3},
3879 },
3880 .block_erase = spi_block_erase_d8,
3881 }, {
3882 .eraseblocks = { {128 * 1024, 1} },
3883 .block_erase = spi_block_erase_c7,
3884 }
3885 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003886 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003887 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003888 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003889 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003890 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003891 },
3892
3893 {
3894 .vendor = "Eon",
3895 .name = "EN25B10T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003896 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003897 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003898 .model_id = EON_EN25B10,
Sean Nelson54596372010-01-09 05:30:14 +00003899 .total_size = 128,
3900 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003901 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00003902 .tested = TEST_OK_PREW,
Sean Nelson54596372010-01-09 05:30:14 +00003903 .probe = probe_spi_rdid,
3904 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003905 .block_erasers =
3906 {
3907 {
3908 .eraseblocks = {
3909 {32 * 1024, 3},
3910 {16 * 1024, 1},
3911 {8 * 1024, 1},
3912 {4 * 1024, 2},
3913 },
3914 .block_erase = spi_block_erase_d8,
3915 }, {
3916 .eraseblocks = { {128 * 1024, 1} },
3917 .block_erase = spi_block_erase_c7,
3918 }
3919 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003920 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003921 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003922 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003923 .read = spi_chip_read, /* Fast read (0x0B) supported */
3924 .voltage = {2700, 3600},
3925 },
3926
3927 {
3928 .vendor = "Eon",
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003929 .name = "EN25B16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003930 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003931 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003932 .model_id = EON_EN25B16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003933 .total_size = 2048,
3934 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003935 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003936 .tested = TEST_UNTESTED,
3937 .probe = probe_spi_rdid,
3938 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003939 .block_erasers =
3940 {
3941 {
3942 .eraseblocks = {
3943 {4 * 1024, 2},
3944 {8 * 1024, 1},
3945 {16 * 1024, 1},
3946 {32 * 1024, 1},
3947 {64 * 1024, 31},
3948 },
3949 .block_erase = spi_block_erase_d8,
3950 }, {
3951 .eraseblocks = { {2 * 1024 * 1024, 1} },
3952 .block_erase = spi_block_erase_c7,
3953 }
3954 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003955 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003956 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003957 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003958 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003959 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003960 },
3961
3962 {
3963 .vendor = "Eon",
3964 .name = "EN25B16T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003965 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003966 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003967 .model_id = EON_EN25B16,
Sean Nelson54596372010-01-09 05:30:14 +00003968 .total_size = 2048,
3969 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003970 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003971 .tested = TEST_UNTESTED,
3972 .probe = probe_spi_rdid,
3973 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003974 .block_erasers =
3975 {
3976 {
3977 .eraseblocks = {
3978 {64 * 1024, 31},
3979 {32 * 1024, 1},
3980 {16 * 1024, 1},
3981 {8 * 1024, 1},
3982 {4 * 1024, 2},
3983 },
3984 .block_erase = spi_block_erase_d8,
3985 }, {
3986 .eraseblocks = { {2 * 1024 * 1024, 1} },
3987 .block_erase = spi_block_erase_c7,
3988 }
3989 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003990 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003991 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003992 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003993 .read = spi_chip_read, /* Fast read (0x0B) supported */
3994 .voltage = {2700, 3600},
3995 },
3996
3997 {
3998 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10003999 .name = "EN25B20",
Stefan Taunerb175af52015-01-24 15:06:27 +00004000 .bustype = BUS_SPI,
4001 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004002 .model_id = EON_EN25B20,
4003 .total_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004004 .page_size = 256,
4005 .feature_bits = FEATURE_WRSR_WREN,
4006 .tested = TEST_UNTESTED,
4007 .probe = probe_spi_rdid,
4008 .probe_timing = TIMING_ZERO,
4009 .block_erasers =
4010 {
4011 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004012 .eraseblocks = {
4013 {4 * 1024, 2},
4014 {8 * 1024, 1},
4015 {16 * 1024, 1},
4016 {32 * 1024, 1},
4017 {64 * 1024, 3}
4018 },
Stefan Taunerb175af52015-01-24 15:06:27 +00004019 .block_erase = spi_block_erase_d8,
4020 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004021 .eraseblocks = { {256 * 1024, 1} },
4022 .block_erase = spi_block_erase_c7,
4023 }
4024 },
4025 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4026 .unlock = spi_disable_blockprotect,
4027 .write = spi_chip_write_256,
4028 .read = spi_chip_read, /* Fast read (0x0B) supported */
4029 .voltage = {2700, 3600},
4030 },
4031
4032 {
4033 .vendor = "Eon",
4034 .name = "EN25B20T",
4035 .bustype = BUS_SPI,
4036 .manufacture_id = EON_ID_NOPREFIX,
4037 .model_id = EON_EN25B20,
4038 .total_size = 256,
4039 .page_size = 256,
4040 .feature_bits = FEATURE_WRSR_WREN,
4041 .tested = TEST_UNTESTED,
4042 .probe = probe_spi_rdid,
4043 .probe_timing = TIMING_ZERO,
4044 .block_erasers =
4045 {
4046 {
4047 .eraseblocks = {
4048 {64 * 1024, 3},
4049 {32 * 1024, 1},
4050 {16 * 1024, 1},
4051 {8 * 1024, 1},
4052 {4 * 1024, 2},
4053 },
4054 .block_erase = spi_block_erase_d8,
4055 }, {
4056 .eraseblocks = { {256 * 1024, 1} },
Stefan Taunerb175af52015-01-24 15:06:27 +00004057 .block_erase = spi_block_erase_c7,
4058 }
4059 },
4060 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4061 .unlock = spi_disable_blockprotect,
4062 .write = spi_chip_write_256,
4063 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004064 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004065 },
4066
4067 {
4068 .vendor = "Eon",
4069 .name = "EN25B32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004070 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004071 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004072 .model_id = EON_EN25B32,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004073 .total_size = 4096,
4074 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004075 /* OTP: 512B total; enter 0x3A */
4076 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004077 .tested = TEST_UNTESTED,
4078 .probe = probe_spi_rdid,
4079 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004080 .block_erasers =
4081 {
4082 {
4083 .eraseblocks = {
4084 {4 * 1024, 2},
4085 {8 * 1024, 1},
4086 {16 * 1024, 1},
4087 {32 * 1024, 1},
4088 {64 * 1024, 63},
4089 },
4090 .block_erase = spi_block_erase_d8,
4091 }, {
4092 .eraseblocks = { {4 * 1024 * 1024, 1} },
4093 .block_erase = spi_block_erase_c7,
4094 }
4095 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004096 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004097 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00004098 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004099 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004100 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00004101 },
4102
4103 {
4104 .vendor = "Eon",
4105 .name = "EN25B32T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004106 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00004107 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004108 .model_id = EON_EN25B32,
Sean Nelson54596372010-01-09 05:30:14 +00004109 .total_size = 4096,
4110 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004111 /* OTP: 512B total; enter 0x3A */
4112 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Sean Nelson54596372010-01-09 05:30:14 +00004113 .tested = TEST_UNTESTED,
4114 .probe = probe_spi_rdid,
4115 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004116 .block_erasers =
4117 {
4118 {
4119 .eraseblocks = {
4120 {64 * 1024, 63},
4121 {32 * 1024, 1},
4122 {16 * 1024, 1},
4123 {8 * 1024, 1},
4124 {4 * 1024, 2},
4125 },
4126 .block_erase = spi_block_erase_d8,
4127 }, {
4128 .eraseblocks = { {4 * 1024 * 1024, 1} },
4129 .block_erase = spi_block_erase_c7,
4130 }
4131 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004132 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004133 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004134 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004135 .read = spi_chip_read, /* Fast read (0x0B) supported */
4136 .voltage = {2700, 3600},
4137 },
4138
4139 {
4140 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004141 .name = "EN25B40",
Stefan Taunerb175af52015-01-24 15:06:27 +00004142 .bustype = BUS_SPI,
4143 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004144 .model_id = EON_EN25B40,
4145 .total_size = 512,
Stefan Taunerb175af52015-01-24 15:06:27 +00004146 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004147 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerb175af52015-01-24 15:06:27 +00004148 .tested = TEST_UNTESTED,
4149 .probe = probe_spi_rdid,
4150 .probe_timing = TIMING_ZERO,
4151 .block_erasers =
4152 {
4153 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004154 .eraseblocks = {
4155 {4 * 1024, 2},
4156 {8 * 1024, 1},
4157 {16 * 1024, 1},
4158 {32 * 1024, 1},
4159 {64 * 1024, 7}
4160 },
Stefan Taunerb175af52015-01-24 15:06:27 +00004161 .block_erase = spi_block_erase_d8,
4162 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004163 .eraseblocks = { {512 * 1024, 1} },
4164 .block_erase = spi_block_erase_c7,
4165 }
4166 },
4167 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4168 .unlock = spi_disable_blockprotect,
4169 .write = spi_chip_write_256,
4170 .read = spi_chip_read, /* Fast read (0x0B) supported */
4171 .voltage = {2700, 3600},
4172 },
4173
4174 {
4175 .vendor = "Eon",
4176 .name = "EN25B40T",
4177 .bustype = BUS_SPI,
4178 .manufacture_id = EON_ID_NOPREFIX,
4179 .model_id = EON_EN25B40,
4180 .total_size = 512,
4181 .page_size = 256,
4182 .feature_bits = FEATURE_WRSR_WREN,
4183 .tested = TEST_UNTESTED,
4184 .probe = probe_spi_rdid,
4185 .probe_timing = TIMING_ZERO,
4186 .block_erasers =
4187 {
4188 {
4189 .eraseblocks = {
4190 {64 * 1024, 7},
4191 {32 * 1024, 1},
4192 {16 * 1024, 1},
4193 {8 * 1024, 1},
4194 {4 * 1024, 2},
4195 },
4196 .block_erase = spi_block_erase_d8,
4197 }, {
4198 .eraseblocks = { {512 * 1024, 1} },
Stefan Taunerb175af52015-01-24 15:06:27 +00004199 .block_erase = spi_block_erase_c7,
4200 }
4201 },
4202 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4203 .unlock = spi_disable_blockprotect,
4204 .write = spi_chip_write_256,
4205 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004206 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004207 },
4208
4209 {
4210 .vendor = "Eon",
4211 .name = "EN25B64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004212 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004213 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004214 .model_id = EON_EN25B64,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004215 .total_size = 8192,
4216 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004217 /* OTP: 512B total; enter 0x3A */
4218 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004219 .tested = TEST_UNTESTED,
4220 .probe = probe_spi_rdid,
4221 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004222 .block_erasers =
4223 {
4224 {
4225 .eraseblocks = {
4226 {4 * 1024, 2},
4227 {8 * 1024, 1},
4228 {16 * 1024, 1},
4229 {32 * 1024, 1},
4230 {64 * 1024, 127},
4231 },
4232 .block_erase = spi_block_erase_d8,
4233 }, {
4234 .eraseblocks = { {8 * 1024 * 1024, 1} },
4235 .block_erase = spi_block_erase_c7,
4236 }
4237 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004238 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004239 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00004240 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004241 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004242 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00004243 },
4244
4245 {
4246 .vendor = "Eon",
4247 .name = "EN25B64T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004248 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00004249 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004250 .model_id = EON_EN25B64,
Sean Nelson54596372010-01-09 05:30:14 +00004251 .total_size = 8192,
4252 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004253 /* OTP: 512B total; enter 0x3A */
4254 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Sean Nelson54596372010-01-09 05:30:14 +00004255 .tested = TEST_UNTESTED,
4256 .probe = probe_spi_rdid,
4257 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004258 .block_erasers =
4259 {
4260 {
4261 .eraseblocks = {
4262 {64 * 1024, 127},
4263 {32 * 1024, 1},
4264 {16 * 1024, 1},
4265 {8 * 1024, 1},
4266 {4 * 1024, 2},
4267 },
4268 .block_erase = spi_block_erase_d8,
4269 }, {
4270 .eraseblocks = { {8 * 1024 * 1024, 1} },
4271 .block_erase = spi_block_erase_c7,
4272 }
4273 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004274 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004275 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004276 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004277 .read = spi_chip_read, /* Fast read (0x0B) supported */
4278 .voltage = {2700, 3600},
4279 },
4280
4281 {
4282 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004283 .name = "EN25B80",
Stefan Taunerb175af52015-01-24 15:06:27 +00004284 .bustype = BUS_SPI,
4285 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004286 .model_id = EON_EN25B80,
4287 .total_size = 1024,
Stefan Taunerb175af52015-01-24 15:06:27 +00004288 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004289 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerb175af52015-01-24 15:06:27 +00004290 .tested = TEST_UNTESTED,
4291 .probe = probe_spi_rdid,
4292 .probe_timing = TIMING_ZERO,
4293 .block_erasers =
4294 {
4295 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004296 .eraseblocks = {
4297 {4 * 1024, 2},
4298 {8 * 1024, 1},
4299 {16 * 1024, 1},
4300 {32 * 1024, 1},
4301 {64 * 1024, 15}
4302 },
Stefan Taunerb175af52015-01-24 15:06:27 +00004303 .block_erase = spi_block_erase_d8,
4304 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004305 .eraseblocks = { {1024 * 1024, 1} },
4306 .block_erase = spi_block_erase_c7,
4307 }
4308 },
4309 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4310 .unlock = spi_disable_blockprotect,
4311 .write = spi_chip_write_256,
4312 .read = spi_chip_read, /* Fast read (0x0B) supported */
4313 .voltage = {2700, 3600},
4314 },
4315
4316 {
4317 .vendor = "Eon",
4318 .name = "EN25B80T",
4319 .bustype = BUS_SPI,
4320 .manufacture_id = EON_ID_NOPREFIX,
4321 .model_id = EON_EN25B80,
4322 .total_size = 1024,
4323 .page_size = 256,
4324 .feature_bits = FEATURE_WRSR_WREN,
4325 .tested = TEST_UNTESTED,
4326 .probe = probe_spi_rdid,
4327 .probe_timing = TIMING_ZERO,
4328 .block_erasers =
4329 {
4330 {
4331 .eraseblocks = {
4332 {64 * 1024, 15},
4333 {32 * 1024, 1},
4334 {16 * 1024, 1},
4335 {8 * 1024, 1},
4336 {4 * 1024, 2},
4337 },
4338 .block_erase = spi_block_erase_d8,
4339 }, {
4340 .eraseblocks = { {1024 * 1024, 1} },
Stefan Taunerb175af52015-01-24 15:06:27 +00004341 .block_erase = spi_block_erase_c7,
4342 }
4343 },
4344 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4345 .unlock = spi_disable_blockprotect,
4346 .write = spi_chip_write_256,
4347 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004348 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004349 },
4350
4351 {
4352 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004353 .name = "EN25F05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004354 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004355 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004356 .model_id = EON_EN25F05,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004357 .total_size = 64,
4358 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004359 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00004360 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004361 .probe = probe_spi_rdid,
4362 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004363 .block_erasers =
4364 {
4365 {
4366 .eraseblocks = { {4 * 1024, 16} },
4367 .block_erase = spi_block_erase_20,
4368 }, {
4369 .eraseblocks = { {32 * 1024, 2} },
4370 .block_erase = spi_block_erase_d8,
4371 }, {
4372 .eraseblocks = { {32 * 1024, 2} },
4373 .block_erase = spi_block_erase_52,
4374 }, {
4375 .eraseblocks = { {64 * 1024, 1} },
4376 .block_erase = spi_block_erase_60,
4377 }, {
4378 .eraseblocks = { {64 * 1024, 1} },
4379 .block_erase = spi_block_erase_c7,
4380 }
4381 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004382 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004383 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004384 .write = spi_chip_write_256,
4385 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004386 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004387 },
4388
4389 {
4390 .vendor = "Eon",
4391 .name = "EN25F10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004392 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004393 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004394 .model_id = EON_EN25F10,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004395 .total_size = 128,
4396 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004397 .feature_bits = FEATURE_WRSR_WREN,
Simon Buhrowd173ed42021-09-29 09:28:07 +02004398 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004399 .probe = probe_spi_rdid,
4400 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004401 .block_erasers =
4402 {
4403 {
4404 .eraseblocks = { {4 * 1024, 32} },
4405 .block_erase = spi_block_erase_20,
4406 }, {
4407 .eraseblocks = { {32 * 1024, 4} },
4408 .block_erase = spi_block_erase_d8,
4409 }, {
4410 .eraseblocks = { {32 * 1024, 4} },
4411 .block_erase = spi_block_erase_52,
4412 }, {
4413 .eraseblocks = { {128 * 1024, 1} },
4414 .block_erase = spi_block_erase_60,
4415 }, {
4416 .eraseblocks = { {128 * 1024, 1} },
4417 .block_erase = spi_block_erase_c7,
4418 }
4419 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004420 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004421 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004422 .write = spi_chip_write_256,
4423 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004424 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004425 },
4426
4427 {
4428 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004429 .name = "EN25F16",
4430 .bustype = BUS_SPI,
4431 .manufacture_id = EON_ID_NOPREFIX,
4432 .model_id = EON_EN25F16,
4433 .total_size = 2048,
4434 .page_size = 256,
4435 .feature_bits = FEATURE_WRSR_WREN,
4436 .tested = TEST_OK_PREW,
4437 .probe = probe_spi_rdid,
4438 .probe_timing = TIMING_ZERO,
4439 .block_erasers =
4440 {
4441 {
4442 .eraseblocks = { {4 * 1024, 512} },
4443 .block_erase = spi_block_erase_20,
4444 }, {
4445 .eraseblocks = { {64 * 1024, 32} },
4446 .block_erase = spi_block_erase_d8,
4447 }, {
4448 .eraseblocks = { {2 * 1024 * 1024, 1} },
4449 .block_erase = spi_block_erase_60,
4450 }, {
4451 .eraseblocks = { {2 * 1024 * 1024, 1} },
4452 .block_erase = spi_block_erase_c7,
4453 }
4454 },
4455 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4456 .unlock = spi_disable_blockprotect,
4457 .write = spi_chip_write_256,
4458 .read = spi_chip_read,
4459 .voltage = {2700, 3600},
4460 },
4461
4462 {
4463 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004464 .name = "EN25F20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004465 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004466 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004467 .model_id = EON_EN25F20,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004468 .total_size = 256,
4469 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004470 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004471 .tested = TEST_UNTESTED,
4472 .probe = probe_spi_rdid,
4473 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004474 .block_erasers =
4475 {
4476 {
4477 .eraseblocks = { {4 * 1024, 64} },
4478 .block_erase = spi_block_erase_20,
4479 }, {
4480 .eraseblocks = { {64 * 1024, 4} },
4481 .block_erase = spi_block_erase_d8,
4482 }, {
4483 .eraseblocks = { {64 * 1024, 4} },
4484 .block_erase = spi_block_erase_52,
4485 }, {
4486 .eraseblocks = { {256 * 1024, 1} },
4487 .block_erase = spi_block_erase_60,
4488 }, {
4489 .eraseblocks = { {256 * 1024, 1} },
4490 .block_erase = spi_block_erase_c7,
4491 }
4492 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004493 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004494 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004495 .write = spi_chip_write_256,
4496 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004497 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004498 },
4499
4500 {
4501 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004502 .name = "EN25F32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004503 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004504 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004505 .model_id = EON_EN25F32,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004506 .total_size = 4096,
4507 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004508 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +00004509 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004510 .probe = probe_spi_rdid,
4511 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004512 .block_erasers =
4513 {
4514 {
4515 .eraseblocks = { {4 * 1024, 1024} },
4516 .block_erase = spi_block_erase_20,
4517 }, {
4518 .eraseblocks = { {64 * 1024, 64} },
4519 .block_erase = spi_block_erase_d8,
4520 }, {
4521 .eraseblocks = { {4 * 1024 * 1024, 1} },
4522 .block_erase = spi_block_erase_60,
4523 }, {
4524 .eraseblocks = { {4 * 1024 * 1024, 1} },
4525 .block_erase = spi_block_erase_c7,
4526 }
4527 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004528 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004529 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004530 .write = spi_chip_write_256,
4531 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004532 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004533 },
4534
4535 {
Russ Dill3cd5a122010-03-05 08:44:11 +00004536 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004537 .name = "EN25F40",
4538 .bustype = BUS_SPI,
4539 .manufacture_id = EON_ID_NOPREFIX,
4540 .model_id = EON_EN25F40,
4541 .total_size = 512,
4542 .page_size = 256,
4543 .feature_bits = FEATURE_WRSR_WREN,
4544 .tested = TEST_OK_PREW,
4545 .probe = probe_spi_rdid,
4546 .probe_timing = TIMING_ZERO,
4547 .block_erasers =
4548 {
4549 {
4550 .eraseblocks = { {4 * 1024, 128} },
4551 .block_erase = spi_block_erase_20,
4552 }, {
4553 .eraseblocks = { {64 * 1024, 8} },
4554 .block_erase = spi_block_erase_d8,
4555 }, {
4556 .eraseblocks = { {512 * 1024, 1} },
4557 .block_erase = spi_block_erase_60,
4558 }, {
4559 .eraseblocks = { {512 * 1024, 1} },
4560 .block_erase = spi_block_erase_c7,
4561 },
4562 },
4563 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4564 .unlock = spi_disable_blockprotect,
4565 .write = spi_chip_write_256,
4566 .read = spi_chip_read,
4567 .voltage = {2700, 3600},
4568 },
4569
4570 {
4571 .vendor = "Eon",
Stefan Taunerd932fd02012-09-06 17:37:16 +00004572 .name = "EN25F64",
4573 .bustype = BUS_SPI,
4574 .manufacture_id = EON_ID_NOPREFIX,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00004575 .model_id = EON_EN25F64,
Stefan Taunerd932fd02012-09-06 17:37:16 +00004576 .total_size = 8192,
4577 .page_size = 256,
4578 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00004579 .tested = TEST_OK_PREW,
Stefan Taunerd932fd02012-09-06 17:37:16 +00004580 .probe = probe_spi_rdid,
4581 .probe_timing = TIMING_ZERO,
4582 .block_erasers =
4583 {
4584 {
4585 .eraseblocks = { {4 * 1024, 2048} },
4586 .block_erase = spi_block_erase_20,
4587 }, {
4588 .eraseblocks = { {64 * 1024, 128} },
4589 .block_erase = spi_block_erase_d8,
4590 }, {
4591 .eraseblocks = { {8 * 1024 * 1024, 1} },
4592 .block_erase = spi_block_erase_60,
4593 }, {
4594 .eraseblocks = { {8 * 1024 * 1024, 1} },
4595 .block_erase = spi_block_erase_c7,
4596 }
4597 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004598 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Stefan Taunerd932fd02012-09-06 17:37:16 +00004599 .unlock = spi_disable_blockprotect,
4600 .write = spi_chip_write_256,
4601 .read = spi_chip_read,
4602 .voltage = {2700, 3600},
4603 },
4604
4605 {
4606 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004607 .name = "EN25F80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004608 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004609 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004610 .model_id = EON_EN25F80,
David Hendricks6d715302011-07-24 22:21:57 +00004611 .total_size = 1024,
4612 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004613 .feature_bits = FEATURE_WRSR_WREN,
4614 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004615 .probe = probe_spi_rdid,
4616 .probe_timing = TIMING_ZERO,
4617 .block_erasers =
4618 {
4619 {
4620 .eraseblocks = { {4 * 1024, 256} },
4621 .block_erase = spi_block_erase_20,
4622 }, {
4623 .eraseblocks = { {64 * 1024, 16} },
4624 .block_erase = spi_block_erase_d8,
4625 }, {
4626 .eraseblocks = { {1024 * 1024, 1} },
4627 .block_erase = spi_block_erase_60,
4628 }, {
4629 .eraseblocks = { {1024 * 1024, 1} },
4630 .block_erase = spi_block_erase_c7,
4631 }
4632 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004633 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004634 .unlock = spi_disable_blockprotect,
4635 .write = spi_chip_write_256,
4636 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004637 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004638 },
4639
4640 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004641 .vendor = "Eon",
4642 .name = "EN25P05",
4643 .bustype = BUS_SPI,
4644 .manufacture_id = EON_ID_NOPREFIX,
4645 .model_id = EON_EN25B05,
4646 .total_size = 64,
4647 .page_size = 256,
4648 .feature_bits = FEATURE_WRSR_WREN,
4649 .tested = TEST_UNTESTED,
4650 .probe = probe_spi_rdid,
4651 .probe_timing = TIMING_ZERO,
4652 .block_erasers =
4653 {
4654 {
4655 .eraseblocks = {
4656 {32 * 1024, 2} },
4657 .block_erase = spi_block_erase_d8,
4658 }, {
4659 .eraseblocks = { {64 * 1024, 1} },
4660 .block_erase = spi_block_erase_c7,
4661 }
4662 },
4663 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4664 .unlock = spi_disable_blockprotect,
4665 .write = spi_chip_write_256,
4666 .read = spi_chip_read, /* Fast read (0x0B) supported */
4667 .voltage = {2700, 3600},
4668 },
4669
4670 {
4671 .vendor = "Eon",
4672 .name = "EN25P10",
4673 .bustype = BUS_SPI,
4674 .manufacture_id = EON_ID_NOPREFIX,
4675 .model_id = EON_EN25B10,
4676 .total_size = 128,
4677 .page_size = 256,
4678 .feature_bits = FEATURE_WRSR_WREN,
4679 .tested = TEST_UNTESTED,
4680 .probe = probe_spi_rdid,
4681 .probe_timing = TIMING_ZERO,
4682 .block_erasers =
4683 {
4684 {
4685 .eraseblocks = { {32 * 1024, 4} },
4686 .block_erase = spi_block_erase_d8,
4687 }, {
4688 .eraseblocks = { {128 * 1024, 1} },
4689 .block_erase = spi_block_erase_c7,
4690 }
4691 },
4692 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4693 .unlock = spi_disable_blockprotect,
4694 .write = spi_chip_write_256,
4695 .read = spi_chip_read, /* Fast read (0x0B) supported */
4696 .voltage = {2700, 3600},
4697 },
4698
4699 {
4700 .vendor = "Eon",
4701 .name = "EN25P16",
4702 .bustype = BUS_SPI,
4703 .manufacture_id = EON_ID_NOPREFIX,
4704 .model_id = EON_EN25B16,
4705 .total_size = 2048,
4706 .page_size = 256,
4707 .feature_bits = FEATURE_WRSR_WREN,
4708 .tested = TEST_UNTESTED,
4709 .probe = probe_spi_rdid,
4710 .probe_timing = TIMING_ZERO,
4711 .block_erasers =
4712 {
4713 {
4714 .eraseblocks = { {64 * 1024, 32} },
4715 .block_erase = spi_block_erase_d8,
4716 }, {
4717 .eraseblocks = { {2 * 1024 * 1024, 1} },
4718 .block_erase = spi_block_erase_c7,
4719 }
4720 },
4721 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4722 .unlock = spi_disable_blockprotect,
4723 .write = spi_chip_write_256,
4724 .read = spi_chip_read, /* Fast read (0x0B) supported */
4725 .voltage = {2700, 3600},
4726 },
4727
4728 {
4729 .vendor = "Eon",
4730 .name = "EN25P20",
4731 .bustype = BUS_SPI,
4732 .manufacture_id = EON_ID_NOPREFIX,
4733 .model_id = EON_EN25B20,
4734 .total_size = 256,
4735 .page_size = 256,
4736 .feature_bits = FEATURE_WRSR_WREN,
4737 .tested = TEST_UNTESTED,
4738 .probe = probe_spi_rdid,
4739 .probe_timing = TIMING_ZERO,
4740 .block_erasers =
4741 {
4742 {
4743 .eraseblocks = { {64 * 1024, 4} },
4744 .block_erase = spi_block_erase_d8,
4745 }, {
4746 .eraseblocks = { {256 * 1024, 1} },
4747 .block_erase = spi_block_erase_c7,
4748 }
4749 },
4750 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4751 .unlock = spi_disable_blockprotect,
4752 .write = spi_chip_write_256,
4753 .read = spi_chip_read, /* Fast read (0x0B) supported */
4754 .voltage = {2700, 3600},
4755 },
4756
4757 {
4758 .vendor = "Eon",
4759 .name = "EN25P32", /* Uniform version of EN25B32 */
4760 .bustype = BUS_SPI,
4761 .manufacture_id = EON_ID_NOPREFIX,
4762 .model_id = EON_EN25B32,
4763 .total_size = 4096,
4764 .page_size = 256,
4765 /* OTP: 512B total; enter 0x3A */
4766 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4767 .tested = TEST_UNTESTED,
4768 .probe = probe_spi_rdid,
4769 .probe_timing = TIMING_ZERO,
4770 .block_erasers =
4771 {
4772 {
4773 .eraseblocks = { {64 * 1024, 64} },
4774 .block_erase = spi_block_erase_d8,
4775 }, {
4776 .eraseblocks = { {4 * 1024 * 1024, 1} },
4777 .block_erase = spi_block_erase_c7,
4778 }
4779 },
4780 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4781 .unlock = spi_disable_blockprotect,
4782 .write = spi_chip_write_256,
4783 .read = spi_chip_read, /* Fast read (0x0B) supported */
4784 .voltage = {2700, 3600},
4785 },
4786
4787 {
4788 .vendor = "Eon",
4789 .name = "EN25P40",
4790 .bustype = BUS_SPI,
4791 .manufacture_id = EON_ID_NOPREFIX,
4792 .model_id = EON_EN25B40,
4793 .total_size = 512,
4794 .page_size = 256,
4795 .feature_bits = FEATURE_WRSR_WREN,
4796 .tested = TEST_UNTESTED,
4797 .probe = probe_spi_rdid,
4798 .probe_timing = TIMING_ZERO,
4799 .block_erasers =
4800 {
4801 {
4802 .eraseblocks = { {64 * 1024, 8} },
4803 .block_erase = spi_block_erase_d8,
4804 }, {
4805 .eraseblocks = { {512 * 1024, 1} },
4806 .block_erase = spi_block_erase_c7,
4807 }
4808 },
4809 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4810 .unlock = spi_disable_blockprotect,
4811 .write = spi_chip_write_256,
4812 .read = spi_chip_read, /* Fast read (0x0B) supported */
4813 .voltage = {2700, 3600},
4814 },
4815
4816 {
4817 .vendor = "Eon",
4818 .name = "EN25P64",
4819 .bustype = BUS_SPI,
4820 .manufacture_id = EON_ID_NOPREFIX,
4821 .model_id = EON_EN25B64,
4822 .total_size = 8192,
4823 .page_size = 256,
4824 /* OTP: 512B total; enter 0x3A */
4825 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4826 .tested = TEST_UNTESTED,
4827 .probe = probe_spi_rdid,
4828 .probe_timing = TIMING_ZERO,
4829 .block_erasers =
4830 {
4831 {
4832 .eraseblocks = { {64 * 1024, 128} },
4833 .block_erase = spi_block_erase_d8,
4834 }, {
4835 .eraseblocks = { {8 * 1024 * 1024, 1} },
4836 .block_erase = spi_block_erase_c7,
4837 }
4838 },
4839 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4840 .unlock = spi_disable_blockprotect,
4841 .write = spi_chip_write_256,
4842 .read = spi_chip_read, /* Fast read (0x0B) supported */
4843 .voltage = {2700, 3600},
4844 },
4845
4846 {
4847 .vendor = "Eon",
4848 .name = "EN25P80",
4849 .bustype = BUS_SPI,
4850 .manufacture_id = EON_ID_NOPREFIX,
4851 .model_id = EON_EN25B80,
4852 .total_size = 1024,
4853 .page_size = 256,
4854 .feature_bits = FEATURE_WRSR_WREN,
4855 .tested = TEST_UNTESTED,
4856 .probe = probe_spi_rdid,
4857 .probe_timing = TIMING_ZERO,
4858 .block_erasers =
4859 {
4860 {
4861 .eraseblocks = { {64 * 1024, 16} },
4862 .block_erase = spi_block_erase_d8,
4863 }, {
4864 .eraseblocks = { {1024 * 1024, 1} },
4865 .block_erase = spi_block_erase_c7,
4866 }
4867 },
4868 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4869 .unlock = spi_disable_blockprotect,
4870 .write = spi_chip_write_256,
4871 .read = spi_chip_read, /* Fast read (0x0B) supported */
4872 .voltage = {2700, 3600},
4873 },
4874
4875 {
4876 .vendor = "Eon",
4877 .name = "EN25Q128",
4878 .bustype = BUS_SPI,
4879 .manufacture_id = EON_ID_NOPREFIX,
4880 .model_id = EON_EN25Q128,
4881 .total_size = 16384,
4882 .page_size = 256,
4883 /* OTP: 512B total; enter 0x3A */
4884 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4885 .tested = TEST_OK_PREW,
4886 .probe = probe_spi_rdid,
4887 .probe_timing = TIMING_ZERO,
4888 .block_erasers =
4889 {
4890 {
4891 .eraseblocks = { {4 * 1024, 4096} },
4892 .block_erase = spi_block_erase_20,
4893 }, {
4894 .eraseblocks = { {64 * 1024, 256} },
4895 .block_erase = spi_block_erase_d8,
4896 }, {
4897 .eraseblocks = { {16 * 1024 * 1024, 1} },
4898 .block_erase = spi_block_erase_60,
4899 }, {
4900 .eraseblocks = { {16 * 1024 * 1024, 1} },
4901 .block_erase = spi_block_erase_c7,
4902 }
4903 },
4904 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4905 .unlock = spi_disable_blockprotect,
4906 .write = spi_chip_write_256,
4907 .read = spi_chip_read,
4908 },
4909
4910 {
David Hendricks6d715302011-07-24 22:21:57 +00004911 /* Note: EN25D16 is an evil twin which shares the model ID
4912 but has different write protection capabilities */
4913 .vendor = "Eon",
4914 .name = "EN25Q16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004915 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004916 .manufacture_id = EON_ID_NOPREFIX,
4917 .model_id = EON_EN25Q16,
4918 .total_size = 2048,
4919 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004920 /* OTP: D16 512B/Q16 128B total; enter 0x3A */
4921 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004922 .tested = TEST_UNTESTED,
4923 .probe = probe_spi_rdid,
4924 .probe_timing = TIMING_ZERO,
4925 .block_erasers =
4926 {
4927 {
4928 .eraseblocks = { {4 * 1024, 512} },
4929 .block_erase = spi_block_erase_20,
4930 }, {
4931 .eraseblocks = { {64 * 1024, 32} },
4932 .block_erase = spi_block_erase_d8,
4933 }, {
4934 /* not supported by Q16 version */
4935 .eraseblocks = { {64 * 1024, 32} },
4936 .block_erase = spi_block_erase_52,
4937 }, {
4938 .eraseblocks = { {2 * 1024 * 1024, 1} },
4939 .block_erase = spi_block_erase_60,
4940 }, {
4941 .eraseblocks = { {2 * 1024 * 1024, 1} },
4942 .block_erase = spi_block_erase_c7,
4943 }
4944 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004945 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004946 .unlock = spi_disable_blockprotect,
4947 .write = spi_chip_write_256,
4948 .read = spi_chip_read,
4949 .voltage = {2700, 3600},
4950 },
4951
4952 {
4953 .vendor = "Eon",
4954 .name = "EN25Q32(A/B)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004955 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004956 .manufacture_id = EON_ID_NOPREFIX,
4957 .model_id = EON_EN25Q32,
4958 .total_size = 4096,
4959 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004960 /* OTP: 512B total; enter 0x3A */
4961 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004962 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004963 .probe = probe_spi_rdid,
4964 .probe_timing = TIMING_ZERO,
4965 .block_erasers =
4966 {
4967 {
4968 .eraseblocks = { {4 * 1024, 1024} },
4969 .block_erase = spi_block_erase_20,
4970 }, {
4971 .eraseblocks = { {64 * 1024, 64} },
4972 .block_erase = spi_block_erase_d8,
4973 }, {
4974 .eraseblocks = { {4 * 1024 * 1024, 1} },
4975 .block_erase = spi_block_erase_60,
4976 }, {
4977 .eraseblocks = { {4 * 1024 * 1024, 1} },
4978 .block_erase = spi_block_erase_c7,
4979 }
4980 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004981 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004982 .unlock = spi_disable_blockprotect,
4983 .write = spi_chip_write_256,
4984 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004985 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004986 },
4987
4988 {
4989 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004990 .name = "EN25Q40",
4991 .bustype = BUS_SPI,
4992 .manufacture_id = EON_ID_NOPREFIX,
4993 .model_id = EON_EN25Q40,
4994 .total_size = 512,
4995 .page_size = 256,
4996 /* OTP: 256B total; enter 0x3A */
4997 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4998 .tested = TEST_UNTESTED,
4999 .probe = probe_spi_rdid,
5000 .probe_timing = TIMING_ZERO,
5001 .block_erasers =
5002 {
5003 {
5004 .eraseblocks = { {4 * 1024, 128} },
5005 .block_erase = spi_block_erase_20,
5006 }, {
5007 .eraseblocks = { {64 * 1024, 8} },
5008 .block_erase = spi_block_erase_d8,
5009 }, {
5010 .eraseblocks = { {512 * 1024, 1} },
5011 .block_erase = spi_block_erase_60,
5012 }, {
5013 .eraseblocks = { {512 * 1024, 1} },
5014 .block_erase = spi_block_erase_c7,
5015 }
5016 },
5017 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
5018 .unlock = spi_disable_blockprotect,
5019 .write = spi_chip_write_256,
5020 .read = spi_chip_read,
5021 .voltage = {2700, 3600},
5022 },
5023
5024 {
5025 .vendor = "Eon",
David Hendricks6d715302011-07-24 22:21:57 +00005026 .name = "EN25Q64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005027 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00005028 .manufacture_id = EON_ID_NOPREFIX,
5029 .model_id = EON_EN25Q64,
5030 .total_size = 8192,
5031 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00005032 /* OTP: 512B total; enter 0x3A */
5033 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005034 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00005035 .probe = probe_spi_rdid,
5036 .probe_timing = TIMING_ZERO,
5037 .block_erasers =
5038 {
5039 {
5040 .eraseblocks = { {4 * 1024, 2048} },
5041 .block_erase = spi_block_erase_20,
5042 }, {
5043 .eraseblocks = { {64 * 1024, 128} },
5044 .block_erase = spi_block_erase_d8,
5045 }, {
5046 .eraseblocks = { {8 * 1024 * 1024, 1} },
5047 .block_erase = spi_block_erase_60,
5048 }, {
5049 .eraseblocks = { {8 * 1024 * 1024, 1} },
5050 .block_erase = spi_block_erase_c7,
5051 }
5052 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00005053 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00005054 .unlock = spi_disable_blockprotect,
5055 .write = spi_chip_write_256,
5056 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00005057 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00005058 },
5059
5060 {
5061 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005062 .name = "EN25Q80(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005063 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00005064 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005065 .model_id = EON_EN25Q80,
5066 .total_size = 1024,
5067 .page_size = 256,
5068 /* OTP: 256B total; enter 0x3A */
5069 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5070 .tested = TEST_UNTESTED,
5071 .probe = probe_spi_rdid,
5072 .probe_timing = TIMING_ZERO,
5073 .block_erasers =
5074 {
5075 {
5076 .eraseblocks = { {4 * 1024, 256} },
5077 .block_erase = spi_block_erase_20,
5078 }, {
5079 .eraseblocks = { {64 * 1024, 16} },
5080 .block_erase = spi_block_erase_d8,
5081 }, {
5082 .eraseblocks = { {1024 * 1024, 1} },
5083 .block_erase = spi_block_erase_60,
5084 }, {
5085 .eraseblocks = { {1024 * 1024, 1} },
5086 .block_erase = spi_block_erase_c7,
5087 }
5088 },
5089 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
5090 .unlock = spi_disable_blockprotect,
5091 .write = spi_chip_write_256,
5092 .read = spi_chip_read,
5093 .voltage = {2700, 3600},
5094 },
5095
5096 {
5097 .vendor = "Eon",
5098 .name = "EN25QH128",
5099 .bustype = BUS_SPI,
5100 .manufacture_id = EON_ID_NOPREFIX,
5101 .model_id = EON_EN25QH128,
David Hendricks6d715302011-07-24 22:21:57 +00005102 .total_size = 16384,
5103 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005104 /* supports SFDP */
Daniel Lenski65922a32012-02-15 23:40:23 +00005105 /* OTP: 512B total; enter 0x3A */
Alan Green1f9cc7d2019-07-01 11:10:45 +10005106 /* QPI enable 0x38, disable 0xFF */
5107 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Tim Chenbfe149a2020-07-06 14:59:21 +08005108 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00005109 .probe = probe_spi_rdid,
5110 .probe_timing = TIMING_ZERO,
5111 .block_erasers =
5112 {
5113 {
5114 .eraseblocks = { {4 * 1024, 4096} },
5115 .block_erase = spi_block_erase_20,
5116 }, {
5117 .eraseblocks = { {64 * 1024, 256} },
5118 .block_erase = spi_block_erase_d8,
5119 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005120 .eraseblocks = { { 16384 * 1024, 1} },
David Hendricks6d715302011-07-24 22:21:57 +00005121 .block_erase = spi_block_erase_60,
5122 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005123 .eraseblocks = { { 16384 * 1024, 1} },
David Hendricks6d715302011-07-24 22:21:57 +00005124 .block_erase = spi_block_erase_c7,
5125 }
5126 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005127 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
5128 .unlock = spi_disable_blockprotect_bp3_srwd,
David Hendricks6d715302011-07-24 22:21:57 +00005129 .write = spi_chip_write_256,
5130 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005131 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00005132 },
5133
5134 {
5135 .vendor = "Eon",
5136 .name = "EN25QH16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005137 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00005138 .manufacture_id = EON_ID_NOPREFIX,
5139 .model_id = EON_EN25QH16,
5140 .total_size = 2048,
5141 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00005142 /* supports SFDP */
5143 /* OTP: 512B total; enter 0x3A */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005144 /* QPI enable 0x38, disable 0xFF */
5145 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner5c316f92015-02-08 21:57:52 +00005146 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00005147 .probe = probe_spi_rdid,
5148 .probe_timing = TIMING_ZERO,
5149 .block_erasers =
5150 {
5151 {
5152 .eraseblocks = { {4 * 1024, 512} },
5153 .block_erase = spi_block_erase_20,
5154 }, {
5155 .eraseblocks = { {64 * 1024, 32} },
5156 .block_erase = spi_block_erase_d8,
5157 }, {
5158 .eraseblocks = { {1024 * 2048, 1} },
5159 .block_erase = spi_block_erase_60,
5160 }, {
5161 .eraseblocks = { {1024 * 2048, 1} },
5162 .block_erase = spi_block_erase_c7,
5163 }
5164 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005165 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005166 .unlock = spi_disable_blockprotect_bp3_srwd,
David Hendricks6d715302011-07-24 22:21:57 +00005167 .write = spi_chip_write_256,
5168 .read = spi_chip_read,
Stefan Tauner2cef9162012-05-14 01:51:46 +00005169 .voltage = {2700, 3600},
5170 },
5171
5172 {
5173 .vendor = "Eon",
5174 .name = "EN25QH32",
5175 .bustype = BUS_SPI,
5176 .manufacture_id = EON_ID_NOPREFIX,
5177 .model_id = EON_EN25QH32,
5178 .total_size = 4096,
5179 .page_size = 256,
5180 /* supports SFDP */
5181 /* OTP: 512B total; enter 0x3A */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005182 /* QPI enable 0x38, disable 0xFF */
5183 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner23e10b82016-01-23 16:16:49 +00005184 .tested = TEST_OK_PREW,
Stefan Tauner2cef9162012-05-14 01:51:46 +00005185 .probe = probe_spi_rdid,
5186 .probe_timing = TIMING_ZERO,
5187 .block_erasers =
5188 {
5189 {
5190 .eraseblocks = { {4 * 1024, 1024} },
5191 .block_erase = spi_block_erase_20,
5192 }, {
5193 .eraseblocks = { {64 * 1024, 64} },
5194 .block_erase = spi_block_erase_d8,
5195 }, {
5196 .eraseblocks = { {1024 * 4096, 1} },
5197 .block_erase = spi_block_erase_60,
5198 }, {
5199 .eraseblocks = { {1024 * 4096, 1} },
5200 .block_erase = spi_block_erase_c7,
5201 }
5202 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005203 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005204 .unlock = spi_disable_blockprotect_bp3_srwd,
5205 .write = spi_chip_write_256,
5206 .read = spi_chip_read,
5207 .voltage = {2700, 3600},
5208 },
5209
5210 {
5211 .vendor = "Eon",
5212 .name = "EN25QH64",
5213 .bustype = BUS_SPI,
5214 .manufacture_id = EON_ID_NOPREFIX,
5215 .model_id = EON_EN25QH64,
5216 .total_size = 8192,
5217 .page_size = 256,
5218 /* supports SFDP */
5219 /* OTP: 512B total; enter 0x3A */
5220 /* QPI enable 0x38, disable 0xFF */
5221 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner23e10b82016-01-23 16:16:49 +00005222 .tested = TEST_OK_PREW,
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005223 .probe = probe_spi_rdid,
5224 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005225 .block_erasers =
5226 {
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005227 {
5228 .eraseblocks = { {4 * 1024, 2048} },
5229 .block_erase = spi_block_erase_20,
5230 }, {
5231 .eraseblocks = { {64 * 1024, 128} },
5232 .block_erase = spi_block_erase_d8,
5233 }, {
5234 .eraseblocks = { { 8192 * 1024, 1} },
5235 .block_erase = spi_block_erase_60,
5236 }, {
5237 .eraseblocks = { { 8192 * 1024, 1} },
5238 .block_erase = spi_block_erase_c7,
5239 }
5240 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005241 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005242 .unlock = spi_disable_blockprotect_bp3_srwd,
5243 .write = spi_chip_write_256,
5244 .read = spi_chip_read,
5245 .voltage = {2700, 3600},
5246 },
5247
5248 {
5249 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005250 .name = "EN25S10",
5251 .bustype = BUS_SPI,
5252 .manufacture_id = EON_ID_NOPREFIX,
5253 .model_id = EON_EN25S10,
5254 .total_size = 128,
5255 .page_size = 256,
5256 /* OTP: 256B total; enter 0x3A */
5257 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5258 .tested = TEST_UNTESTED,
5259 .probe = probe_spi_rdid,
5260 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005261 .block_erasers =
5262 {
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005263 {
5264 .eraseblocks = { {4 * 1024, 32} },
5265 .block_erase = spi_block_erase_20,
5266 }, {
5267 .eraseblocks = { {32 * 1024, 4} },
5268 .block_erase = spi_block_erase_52,
5269 }, {
5270 .eraseblocks = { {128 * 1024, 1} },
5271 .block_erase = spi_block_erase_60,
5272 }, {
5273 .eraseblocks = { {128 * 1024, 1} },
5274 .block_erase = spi_block_erase_c7,
5275 }
5276 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005277 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005278 .unlock = spi_disable_blockprotect,
5279 .write = spi_chip_write_256,
5280 .read = spi_chip_read,
5281 .voltage = {1650, 1950},
5282 },
5283
5284 {
5285 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005286 .name = "EN25S16",
5287 .bustype = BUS_SPI,
5288 .manufacture_id = EON_ID_NOPREFIX,
5289 .model_id = EON_EN25S16,
5290 .total_size = 2048,
5291 .page_size = 256,
5292 /* OTP: 512B total; enter 0x3A */
5293 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5294 .tested = TEST_UNTESTED,
5295 .probe = probe_spi_rdid,
5296 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005297 .block_erasers =
5298 {
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005299 {
5300 .eraseblocks = { {4 * 1024, 512} },
5301 .block_erase = spi_block_erase_20,
5302 }, {
5303 .eraseblocks = { {64 * 1024, 32} },
5304 .block_erase = spi_block_erase_52,
5305 }, {
5306 .eraseblocks = { {32 * 1024, 64} },
5307 .block_erase = spi_block_erase_d8,
5308 }, {
5309 .eraseblocks = { {2048 * 1024, 1} },
5310 .block_erase = spi_block_erase_60,
5311 }, {
5312 .eraseblocks = { {2048 * 1024, 1} },
5313 .block_erase = spi_block_erase_c7,
5314 }
5315 },
5316 .printlock = spi_prettyprint_status_register_en25s_wp,
5317 .unlock = spi_disable_blockprotect_bp3_srwd,
5318 .write = spi_chip_write_256,
5319 .read = spi_chip_read,
5320 .voltage = {1650, 1950},
5321 },
5322
5323 {
5324 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005325 .name = "EN25S20",
5326 .bustype = BUS_SPI,
5327 .manufacture_id = EON_ID_NOPREFIX,
5328 .model_id = EON_EN25S20,
5329 .total_size = 256,
5330 .page_size = 256,
5331 /* OTP: 256B total; enter 0x3A */
5332 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5333 .tested = TEST_UNTESTED,
5334 .probe = probe_spi_rdid,
5335 .probe_timing = TIMING_ZERO,
5336 .block_erasers =
5337 {
5338 {
5339 .eraseblocks = { {4 * 1024, 64} },
5340 .block_erase = spi_block_erase_20,
5341 }, {
5342 .eraseblocks = { {64 * 1024, 4} },
5343 .block_erase = spi_block_erase_d8,
5344 }, {
5345 .eraseblocks = { {256 * 1024, 1} },
5346 .block_erase = spi_block_erase_60,
5347 }, {
5348 .eraseblocks = { {256 * 1024, 1} },
5349 .block_erase = spi_block_erase_c7,
5350 }
5351 },
5352 .printlock = spi_prettyprint_status_register_bp2_srwd,
5353 .unlock = spi_disable_blockprotect,
5354 .write = spi_chip_write_256,
5355 .read = spi_chip_read,
5356 .voltage = {1650, 1950},
5357 },
5358
5359 {
5360 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005361 .name = "EN25S32",
5362 .bustype = BUS_SPI,
5363 .manufacture_id = EON_ID_NOPREFIX,
5364 .model_id = EON_EN25S32,
5365 .total_size = 4096,
5366 .page_size = 256,
5367 /* OTP: 512B total; enter 0x3A */
5368 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5369 .tested = TEST_UNTESTED,
5370 .probe = probe_spi_rdid,
5371 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005372 .block_erasers =
5373 {
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005374 {
5375 .eraseblocks = { {4 * 1024, 1024} },
5376 .block_erase = spi_block_erase_20,
5377 }, {
5378 .eraseblocks = { {32 * 1024, 128} },
5379 .block_erase = spi_block_erase_52,
5380 }, {
5381 .eraseblocks = { {64 * 1024, 64} },
5382 .block_erase = spi_block_erase_d8,
5383 }, {
5384 .eraseblocks = { {4096 * 1024, 1} },
5385 .block_erase = spi_block_erase_60,
5386 }, {
5387 .eraseblocks = { {4096 * 1024, 1} },
5388 .block_erase = spi_block_erase_c7,
5389 }
5390 },
5391 .printlock = spi_prettyprint_status_register_en25s_wp,
5392 .unlock = spi_disable_blockprotect_bp3_srwd,
5393 .write = spi_chip_write_256,
5394 .read = spi_chip_read,
5395 .voltage = {1650, 1950},
5396 },
5397
5398 {
5399 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005400 .name = "EN25S40",
5401 .bustype = BUS_SPI,
5402 .manufacture_id = EON_ID_NOPREFIX,
5403 .model_id = EON_EN25S40,
5404 .total_size = 512,
5405 .page_size = 256,
5406 /* OTP: 256B total; enter 0x3A */
5407 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5408 .tested = TEST_OK_PREW,
5409 .probe = probe_spi_rdid,
5410 .probe_timing = TIMING_ZERO,
5411 .block_erasers =
5412 {
5413 {
5414 .eraseblocks = { {4 * 1024, 128} },
5415 .block_erase = spi_block_erase_20,
5416 }, {
5417 .eraseblocks = { {64 * 1024, 8} },
5418 .block_erase = spi_block_erase_d8,
5419 }, {
5420 .eraseblocks = { {512 * 1024, 1} },
5421 .block_erase = spi_block_erase_60,
5422 }, {
5423 .eraseblocks = { {512 * 1024, 1} },
5424 .block_erase = spi_block_erase_c7,
5425 }
5426 },
5427 .printlock = spi_prettyprint_status_register_bp2_srwd,
5428 .unlock = spi_disable_blockprotect,
5429 .write = spi_chip_write_256,
5430 .read = spi_chip_read,
5431 .voltage = {1650, 1950},
5432 },
5433
5434 {
5435 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005436 .name = "EN25S64",
5437 .bustype = BUS_SPI,
5438 .manufacture_id = EON_ID_NOPREFIX,
5439 .model_id = EON_EN25S64,
5440 .total_size = 8192,
5441 .page_size = 256,
5442 /* OTP: 512B total; enter 0x3A */
5443 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Nikolai Artemievdf889fa2021-03-23 17:10:45 +11005444 .tested = TEST_OK_PREW,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005445 .probe = probe_spi_rdid,
5446 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005447 .block_erasers =
5448 {
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005449 {
5450 .eraseblocks = { {4 * 1024, 2048} },
5451 .block_erase = spi_block_erase_20,
5452 }, {
5453 .eraseblocks = { {64 * 1024, 128} },
5454 .block_erase = spi_block_erase_d8,
5455 }, {
5456 .eraseblocks = { {8192 * 1024, 1} },
5457 .block_erase = spi_block_erase_60,
5458 }, {
5459 .eraseblocks = { {8192 * 1024, 1} },
5460 .block_erase = spi_block_erase_c7,
5461 }
5462 },
5463 .printlock = spi_prettyprint_status_register_en25s_wp,
5464 .unlock = spi_disable_blockprotect_bp3_srwd,
5465 .write = spi_chip_write_256,
5466 .read = spi_chip_read,
5467 .voltage = {1650, 1950},
5468 },
5469
5470 {
5471 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005472 .name = "EN25S80",
5473 .bustype = BUS_SPI,
5474 .manufacture_id = EON_ID_NOPREFIX,
5475 .model_id = EON_EN25S80,
5476 .total_size = 1024,
5477 .page_size = 256,
5478 /* OTP: 256B total; enter 0x3A */
5479 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5480 .tested = TEST_UNTESTED,
5481 .probe = probe_spi_rdid,
5482 .probe_timing = TIMING_ZERO,
Russ Dill3cd5a122010-03-05 08:44:11 +00005483 .block_erasers =
5484 {
5485 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005486 .eraseblocks = { {4 * 1024, 256} },
5487 .block_erase = spi_block_erase_20,
5488 }, {
5489 .eraseblocks = { {64 * 1024, 16} },
5490 .block_erase = spi_block_erase_d8,
5491 }, {
5492 .eraseblocks = { {1024 * 1024, 1} },
5493 .block_erase = spi_block_erase_60,
5494 }, {
5495 .eraseblocks = { {1024 * 1024, 1} },
5496 .block_erase = spi_block_erase_c7,
5497 }
Russ Dill3cd5a122010-03-05 08:44:11 +00005498 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005499 .printlock = spi_prettyprint_status_register_bp2_srwd,
5500 .unlock = spi_disable_blockprotect,
5501 .write = spi_chip_write_256,
5502 .read = spi_chip_read,
5503 .voltage = {1650, 1950},
Russ Dill3cd5a122010-03-05 08:44:11 +00005504 },
5505
5506 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00005507 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005508 .name = "EN29F002(A)(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005509 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005510 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005511 .model_id = EON_EN29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005512 .total_size = 256,
5513 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00005514 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Alan Green4362e622019-08-26 15:02:12 +10005515 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005516 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005517 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005518 .block_erasers =
5519 {
5520 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005521 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005522 {16 * 1024, 1},
Michael Karchere3cb0a12010-03-13 23:47:09 +00005523 {8 * 1024, 2},
5524 {32 * 1024, 1},
5525 {64 * 1024, 3},
Sean Nelson6b11ad22009-12-23 17:05:59 +00005526 },
5527 .block_erase = erase_sector_jedec,
5528 }, {
5529 .eraseblocks = { {256 * 1024, 1} },
5530 .block_erase = erase_chip_block_jedec,
5531 },
5532 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005533 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005534 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005535 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005536 },
5537
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005538 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00005539 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005540 .name = "EN29F002(A)(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005541 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005542 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005543 .model_id = EON_EN29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005544 .total_size = 256,
5545 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00005546 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00005547 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005548 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005549 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005550 .block_erasers =
5551 {
5552 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005553 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005554 {64 * 1024, 3},
Michael Karchere3cb0a12010-03-13 23:47:09 +00005555 {32 * 1024, 1},
5556 {8 * 1024, 2},
5557 {16 * 1024, 1},
Sean Nelson6b11ad22009-12-23 17:05:59 +00005558 },
5559 .block_erase = erase_sector_jedec,
5560 }, {
5561 .eraseblocks = { {256 * 1024, 1} },
5562 .block_erase = erase_chip_block_jedec,
5563 },
5564 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005565 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005566 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005567 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005568 },
5569
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005570 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005571 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005572 .name = "EN29F010",
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005573 .bustype = BUS_PARALLEL,
5574 .manufacture_id = EON_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005575 .model_id = EON_EN29F010,
5576 .total_size = 128,
5577 .page_size = 128,
5578 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
5579 .tested = TEST_OK_PRE,
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005580 .probe = probe_jedec,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005581 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005582 .block_erasers =
5583 {
5584 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005585 .eraseblocks = { {16 * 1024, 8} },
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005586 .block_erase = erase_sector_jedec,
5587 },
5588 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005589 .eraseblocks = { {128 * 1024, 1} },
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005590 .block_erase = erase_chip_block_jedec,
5591 },
5592 },
5593 .write = write_jedec_1,
5594 .read = read_memmapped,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005595 .voltage = {4500, 5500},
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005596 },
5597
5598 {
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00005599 .vendor = "Eon",
5600 .name = "EN29GL064(A)B",
5601 .bustype = BUS_PARALLEL,
5602 .manufacture_id = EON_ID,
5603 .model_id = EON_EN29GL064B,
5604 .total_size = 8192,
5605 .page_size = 128 * 1024, /* actual page size is 16 */
5606 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5607 .tested = TEST_UNTESTED,
5608 .probe = probe_jedec_29gl,
5609 .probe_timing = TIMING_ZERO,
5610 .block_erasers =
5611 {
5612 {
5613 .eraseblocks = {
5614 {8 * 1024, 8},
5615 {64 * 1024, 127},
5616 },
5617 .block_erase = erase_sector_jedec,
5618 }, {
5619 .eraseblocks = { {8 * 1024 * 1024, 1} },
5620 .block_erase = erase_chip_block_jedec,
5621 },
5622 },
5623 .write = write_jedec_1,
5624 .read = read_memmapped,
5625 .voltage = {2700, 3600},
5626 },
5627
5628 {
5629 .vendor = "Eon",
5630 .name = "EN29GL064(A)T",
5631 .bustype = BUS_PARALLEL,
5632 .manufacture_id = EON_ID,
5633 .model_id = EON_EN29GL064T,
5634 .total_size = 8192,
5635 .page_size = 128 * 1024, /* actual page size is 16 */
5636 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5637 .tested = TEST_UNTESTED,
5638 .probe = probe_jedec_29gl,
5639 .probe_timing = TIMING_ZERO,
5640 .block_erasers =
5641 {
5642 {
5643 .eraseblocks = {
5644 {64 * 1024, 127},
5645 {8 * 1024, 8},
5646 },
5647 .block_erase = erase_sector_jedec,
5648 }, {
5649 .eraseblocks = { {8 * 1024 * 1024, 1} },
5650 .block_erase = erase_chip_block_jedec,
5651 },
5652 },
5653 .write = write_jedec_1,
5654 .read = read_memmapped,
5655 .voltage = {2700, 3600},
5656 },
5657
5658 {
5659 .vendor = "Eon",
5660 .name = "EN29GL064H/L",
5661 .bustype = BUS_PARALLEL,
5662 .manufacture_id = EON_ID,
5663 .model_id = EON_EN29GL064HL,
5664 .total_size = 8192,
5665 .page_size = 128 * 1024, /* actual page size is 16 */
5666 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5667 .tested = TEST_UNTESTED,
5668 .probe = probe_jedec_29gl,
5669 .probe_timing = TIMING_ZERO,
5670 .block_erasers =
5671 {
5672 {
5673 .eraseblocks = { {64 * 1024, 128} },
5674 .block_erase = erase_sector_jedec,
5675 }, {
5676 .eraseblocks = { {8 * 1024 * 1024, 1} },
5677 .block_erase = erase_chip_block_jedec,
5678 },
5679 },
5680 .write = write_jedec_1,
5681 .read = read_memmapped,
5682 .voltage = {2700, 3600},
5683 },
5684
5685 {
5686 .vendor = "Eon",
5687 .name = "EN29GL128",
5688 .bustype = BUS_PARALLEL,
5689 .manufacture_id = EON_ID,
5690 .model_id = EON_EN29GL128HL,
5691 .total_size = 16384,
5692 .page_size = 128 * 1024, /* actual page size is 16 */
5693 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5694 .tested = TEST_UNTESTED,
5695 .probe = probe_jedec_29gl,
5696 .probe_timing = TIMING_ZERO,
5697 .block_erasers =
5698 {
5699 {
5700 .eraseblocks = { {128 * 1024, 128} },
5701 .block_erase = erase_sector_jedec,
5702 }, {
5703 .eraseblocks = { {16 * 1024 * 1024, 1} },
5704 .block_erase = erase_chip_block_jedec,
5705 },
5706 },
5707 .write = write_jedec_1,
5708 .read = read_memmapped,
5709 .voltage = {2700, 3600},
5710 },
5711
5712 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005713 .vendor = "Eon",
5714 .name = "EN29LV040(A)",
5715 .bustype = BUS_PARALLEL,
5716 .manufacture_id = EON_ID,
5717 .model_id = EON_EN29LV040,
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005718 .total_size = 512,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005719 .page_size = 4 * 1024,
5720 .tested = TEST_OK_PREW,
5721 .probe = probe_jedec,
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005722 .probe_timing = TIMING_ZERO,
5723 .block_erasers =
5724 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00005725 {
5726 .eraseblocks = { {64 * 1024, 8} },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005727 .block_erase = erase_sector_jedec,
5728 },
5729 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00005730 .eraseblocks = { {512 * 1024, 1} },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005731 .block_erase = erase_chip_block_jedec,
5732 },
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005733 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005734 .write = write_jedec_1,
5735 .read = read_memmapped,
5736 .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R and 55R, others 2.7-3.6V */
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005737 },
5738
5739 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005740 .vendor = "Eon",
5741 .name = "EN29LV640B",
5742 .bustype = BUS_PARALLEL,
5743 .manufacture_id = EON_ID,
5744 .model_id = EON_EN29LV640B,
5745 .total_size = 8192,
5746 .page_size = 8192,
5747 .feature_bits = FEATURE_ADDR_SHIFTED,
5748 .tested = TEST_OK_PREW,
5749 .probe = probe_en29lv640b,
5750 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005751 .block_erasers =
5752 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00005753 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005754 .eraseblocks = {
5755 {8 * 1024, 8},
5756 {64 * 1024, 127},
5757 },
5758 .block_erase = erase_block_jedec,
Stefan Tauner0be072c2016-03-13 15:16:30 +00005759 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005760 .eraseblocks = { {8 * 1024 * 1024, 1} },
5761 .block_erase = erase_chip_block_jedec,
5762 },
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005763 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005764 .write = write_en29lv640b,
5765 .read = read_memmapped,
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005766 .voltage = {2700, 3600},
5767 },
5768
5769 {
Jakob Petersson0cf3e122019-02-18 01:55:43 +01005770 .vendor = "Fudan",
5771 .name = "FM25F005",
5772 .bustype = BUS_SPI,
5773 .manufacture_id = FUDAN_ID_NOPREFIX,
5774 .model_id = FUDAN_FM25F005,
5775 .total_size = 64,
5776 .page_size = 256,
5777 /* OTP: 256B total; enter 0x3A */
5778 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5779 .tested = TEST_UNTESTED,
5780 .probe = probe_spi_rdid,
5781 .probe_timing = TIMING_ZERO,
5782 .block_erasers = {
5783 {
5784 .eraseblocks = { {4 * 1024, 16} },
5785 .block_erase = spi_block_erase_20,
5786 }, {
5787 .eraseblocks = { {32 * 1024, 2} },
5788 .block_erase = spi_block_erase_52,
5789 }, {
5790 .eraseblocks = { {64 * 1024, 1} },
5791 .block_erase = spi_block_erase_d8,
5792 }, {
5793 .eraseblocks = { {64 * 1024, 1} },
5794 .block_erase = spi_block_erase_60,
5795 }, {
5796 .eraseblocks = { {64 * 1024, 1} },
5797 .block_erase = spi_block_erase_c7,
5798 }
5799 },
5800 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
5801 .unlock = spi_disable_blockprotect_bp2_srwd,
5802 .write = spi_chip_write_256,
5803 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
5804 .voltage = {2700, 3600}, /* 2.3-2.7V acceptable results in lower performance */
5805 },
5806
5807 {
5808 .vendor = "Fudan",
5809 .name = "FM25F01",
5810 .bustype = BUS_SPI,
5811 .manufacture_id = FUDAN_ID_NOPREFIX,
5812 .model_id = FUDAN_FM25F01,
5813 .total_size = 128,
5814 .page_size = 256,
5815 /* OTP: 256B total; enter 0x3A */
5816 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5817 .tested = TEST_UNTESTED,
5818 .probe = probe_spi_rdid,
5819 .probe_timing = TIMING_ZERO,
5820 .block_erasers = {
5821 {
5822 .eraseblocks = { {4 * 1024, 32} },
5823 .block_erase = spi_block_erase_20,
5824 }, {
5825 .eraseblocks = { {32 * 1024, 4} },
5826 .block_erase = spi_block_erase_52,
5827 }, {
5828 .eraseblocks = { {64 * 1024, 2} },
5829 .block_erase = spi_block_erase_d8,
5830 }, {
5831 .eraseblocks = { {128 * 1024, 1} },
5832 .block_erase = spi_block_erase_60,
5833 }, {
5834 .eraseblocks = { {128 * 1024, 1} },
5835 .block_erase = spi_block_erase_c7,
5836 }
5837 },
5838 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
5839 .unlock = spi_disable_blockprotect_bp2_srwd,
5840 .write = spi_chip_write_256,
5841 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
5842 .voltage = {2700, 3600}, /* 2.3-2.7V acceptable results in lower performance */
5843 },
5844
5845 {
5846 .vendor = "Fudan",
5847 .name = "FM25F02(A)",
5848 .bustype = BUS_SPI,
5849 .manufacture_id = FUDAN_ID_NOPREFIX,
5850 .model_id = FUDAN_FM25F02,
5851 .total_size = 256,
5852 .page_size = 256,
5853 /* OTP: 256B total; enter 0x3A, (A version only:) read ID 0x4B */
5854 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5855 .tested = TEST_UNTESTED,
5856 .probe = probe_spi_rdid,
5857 .probe_timing = TIMING_ZERO,
5858 .block_erasers = {
5859 {
5860 .eraseblocks = { {4 * 1024, 64} },
5861 .block_erase = spi_block_erase_20,
5862 }, {
5863 .eraseblocks = { {32 * 1024, 8} },
5864 .block_erase = spi_block_erase_52,
5865 }, {
5866 .eraseblocks = { {64 * 1024, 4} },
5867 .block_erase = spi_block_erase_d8,
5868 }, {
5869 .eraseblocks = { {1024 * 256, 1} },
5870 .block_erase = spi_block_erase_60,
5871 }, {
5872 .eraseblocks = { {1024 * 256, 1} },
5873 .block_erase = spi_block_erase_c7,
5874 },
5875 },
5876 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
5877 .unlock = spi_disable_blockprotect_bp2_srwd,
5878 .write = spi_chip_write_256,
5879 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
5880 .voltage = {2700, 3600}, /* 2.3-2.7V acceptable results in lower performance */
5881 },
5882
5883 {
5884 .vendor = "Fudan",
5885 .name = "FM25F04(A)",
5886 .bustype = BUS_SPI,
5887 .manufacture_id = FUDAN_ID_NOPREFIX,
5888 .model_id = FUDAN_FM25F04,
5889 .total_size = 512,
5890 .page_size = 256,
5891 /* OTP: 256B total; enter 0x3A, (A version only:) read ID 0x4B */
5892 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5893 .tested = TEST_UNTESTED,
5894 .probe = probe_spi_rdid,
5895 .probe_timing = TIMING_ZERO,
5896 .block_erasers = {
5897 {
5898 .eraseblocks = { {4 * 1024, 128} },
5899 .block_erase = spi_block_erase_20,
5900 }, {
5901 .eraseblocks = { {32 * 1024, 16} },
5902 .block_erase = spi_block_erase_52,
5903 }, {
5904 .eraseblocks = { {64 * 1024, 8} },
5905 .block_erase = spi_block_erase_d8,
5906 }, {
5907 .eraseblocks = { {1024 * 512, 1} },
5908 .block_erase = spi_block_erase_60,
5909 }, {
5910 .eraseblocks = { {1024 * 512, 1} },
5911 .block_erase = spi_block_erase_c7,
5912 },
5913 },
5914 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
5915 .unlock = spi_disable_blockprotect_bp2_srwd,
5916 .write = spi_chip_write_256,
5917 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
5918 .voltage = {2700, 3600},
5919 },
5920
5921 {
5922 .vendor = "Fudan",
5923 .name = "FM25Q08",
5924 .bustype = BUS_SPI,
5925 .manufacture_id = FUDAN_ID_NOPREFIX,
5926 .model_id = FUDAN_FM25Q08,
5927 .total_size = 1024,
5928 .page_size = 256,
5929 /* supports SFDP */
5930 /* OTP: 1024B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
5931 /* QPI enable 0x38, disable 0xFF */
5932 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5933 .tested = TEST_UNTESTED,
5934 .probe = probe_spi_rdid,
5935 .probe_timing = TIMING_ZERO,
5936 .block_erasers = {
5937 {
5938 .eraseblocks = { {4 * 1024, 256} },
5939 .block_erase = spi_block_erase_20,
5940 }, {
5941 .eraseblocks = { {32 * 1024, 32} },
5942 .block_erase = spi_block_erase_52,
5943 }, {
5944 .eraseblocks = { {64 * 1024, 16} },
5945 .block_erase = spi_block_erase_d8,
5946 }, {
5947 .eraseblocks = { {1024 * 1024, 1} },
5948 .block_erase = spi_block_erase_60,
5949 }, {
5950 .eraseblocks = { {1024 * 1024, 1} },
5951 .block_erase = spi_block_erase_c7,
5952 },
5953 },
5954 .printlock = spi_prettyprint_status_register_bp2_tb_bpl, /* bit6 selects size of protected blocks; TODO: SR2 */
5955 .unlock = spi_disable_blockprotect_bp2_srwd,
5956 .write = spi_chip_write_256,
5957 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5958 .voltage = {2700, 3600},
5959 },
5960
5961 {
5962 .vendor = "Fudan",
5963 .name = "FM25Q16",
5964 .bustype = BUS_SPI,
5965 .manufacture_id = FUDAN_ID_NOPREFIX,
5966 .model_id = FUDAN_FM25Q16,
5967 .total_size = 2048,
5968 .page_size = 256,
5969 /* supports SFDP */
5970 /* OTP: 1024B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
5971 /* QPI enable 0x38, disable 0xFF */
5972 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5973 .tested = TEST_UNTESTED,
5974 .probe = probe_spi_rdid,
5975 .probe_timing = TIMING_ZERO,
5976 .block_erasers = {
5977 {
5978 .eraseblocks = { {4 * 1024, 512} },
5979 .block_erase = spi_block_erase_20,
5980 }, {
5981 .eraseblocks = { {32 * 1024, 64} },
5982 .block_erase = spi_block_erase_52,
5983 }, {
5984 .eraseblocks = { {64 * 1024, 32} },
5985 .block_erase = spi_block_erase_d8,
5986 }, {
5987 .eraseblocks = { {2 * 1024 * 1024, 1} },
5988 .block_erase = spi_block_erase_60,
5989 }, {
5990 .eraseblocks = { {2 * 1024 * 1024, 1} },
5991 .block_erase = spi_block_erase_c7,
5992 }
5993 },
5994 .printlock = spi_prettyprint_status_register_bp2_tb_bpl, /* bit6 selects size of protected blocks; TODO: SR2 */
5995 .unlock = spi_disable_blockprotect_bp2_srwd,
5996 .write = spi_chip_write_256,
5997 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
5998 .voltage = {2700, 3600},
5999 },
6000
6001 {
6002 .vendor = "Fudan",
6003 .name = "FM25Q32",
6004 .bustype = BUS_SPI,
6005 .manufacture_id = FUDAN_ID_NOPREFIX,
6006 .model_id = FUDAN_FM25Q32,
6007 .total_size = 4096,
6008 .page_size = 256,
6009 /* supports SFDP */
6010 /* OTP: 1024B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
6011 /* QPI enable 0x38, disable 0xFF */
6012 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6013 .tested = TEST_UNTESTED,
6014 .probe = probe_spi_rdid,
6015 .probe_timing = TIMING_ZERO,
6016 .block_erasers = {
6017 {
6018 .eraseblocks = { {4 * 1024, 1024} },
6019 .block_erase = spi_block_erase_20,
6020 }, {
6021 .eraseblocks = { {32 * 1024, 128} },
6022 .block_erase = spi_block_erase_52,
6023 }, {
6024 .eraseblocks = { {64 * 1024, 64} },
6025 .block_erase = spi_block_erase_d8,
6026 }, {
6027 .eraseblocks = { {4 * 1024 * 1024, 1} },
6028 .block_erase = spi_block_erase_60,
6029 }, {
6030 .eraseblocks = { {4 * 1024 * 1024, 1} },
6031 .block_erase = spi_block_erase_c7,
6032 },
6033 },
6034 .printlock = spi_prettyprint_status_register_bp2_tb_bpl, /* bit6 selects size of protected blocks; TODO: SR2 */
6035 .unlock = spi_disable_blockprotect_bp2_srwd,
6036 .write = spi_chip_write_256,
6037 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6038 .voltage = {2700, 3600},
6039 },
6040
6041 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006042 .vendor = "Fujitsu",
6043 .name = "MBM29F004BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006044 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006045 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006046 .model_id = FUJITSU_MBM29F004BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006047 .total_size = 512,
6048 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006049 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006050 .tested = TEST_UNTESTED,
6051 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006052 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00006053 .block_erasers =
6054 {
6055 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006056 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00006057 {16 * 1024, 1},
6058 {8 * 1024, 2},
6059 {32 * 1024, 1},
6060 {64 * 1024, 7},
6061 },
Sean Nelson35727f72010-01-28 23:55:12 +00006062 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006063 }, {
6064 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006065 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006066 },
6067 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006068 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006069 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006070 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006071 },
6072
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006073 {
6074 .vendor = "Fujitsu",
6075 .name = "MBM29F004TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006076 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006077 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006078 .model_id = FUJITSU_MBM29F004TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006079 .total_size = 512,
6080 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006081 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006082 .tested = TEST_UNTESTED,
6083 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006084 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00006085 .block_erasers =
6086 {
6087 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006088 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00006089 {64 * 1024, 7},
6090 {32 * 1024, 1},
6091 {8 * 1024, 2},
6092 {16 * 1024, 1},
6093 },
Sean Nelson35727f72010-01-28 23:55:12 +00006094 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006095 }, {
6096 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006097 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006098 },
6099 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006100 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006101 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006102 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006103 },
6104
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006105 {
Sean Nelson35727f72010-01-28 23:55:12 +00006106 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006107 .vendor = "Fujitsu",
6108 .name = "MBM29F400BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006109 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006110 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006111 .model_id = FUJITSU_MBM29F400BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006112 .total_size = 512,
6113 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006114 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00006115 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006116 .probe = probe_jedec,
6117 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson6b11ad22009-12-23 17:05:59 +00006118 .block_erasers =
6119 {
6120 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006121 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00006122 {16 * 1024, 1},
6123 {8 * 1024, 2},
6124 {32 * 1024, 1},
6125 {64 * 1024, 7},
6126 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006127 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006128 }, {
6129 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006130 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006131 },
6132 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006133 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006134 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006135 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00006136 },
6137
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006138 {
6139 .vendor = "Fujitsu",
6140 .name = "MBM29F400TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006141 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006142 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006143 .model_id = FUJITSU_MBM29F400TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006144 .total_size = 512,
6145 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006146 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006147 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006148 .probe = probe_jedec,
6149 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson6b11ad22009-12-23 17:05:59 +00006150 .block_erasers =
6151 {
6152 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006153 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00006154 {64 * 1024, 7},
6155 {32 * 1024, 1},
6156 {8 * 1024, 2},
6157 {16 * 1024, 1},
6158 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006159 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006160 }, {
6161 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006162 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006163 },
6164 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006165 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006166 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006167 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00006168 },
6169
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006170 {
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006171 .vendor = "Fujitsu",
6172 .name = "MBM29LV160BE",
6173 .bustype = BUS_PARALLEL,
6174 .manufacture_id = FUJITSU_ID,
6175 .model_id = FUJITSU_MBM29LV160BE,
6176 .total_size = 2 * 1024,
6177 .page_size = 0,
6178 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET,
6179 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006180 .probe = probe_jedec,
6181 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006182 .block_erasers =
6183 {
6184 {
6185 .eraseblocks = {
6186 {16 * 1024, 1},
6187 {8 * 1024, 2},
6188 {32 * 1024, 1},
6189 {64 * 1024, 31},
6190 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006191 .block_erase = erase_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006192 }, {
6193 .eraseblocks = { {2048 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006194 .block_erase = erase_chip_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006195 },
6196 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006197 .write = write_jedec_1, /* Supports a fast mode too */
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006198 .read = read_memmapped,
6199 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */
6200 },
6201
6202 {
6203 .vendor = "Fujitsu",
6204 .name = "MBM29LV160TE",
6205 .bustype = BUS_PARALLEL,
6206 .manufacture_id = FUJITSU_ID,
6207 .model_id = FUJITSU_MBM29LV160TE,
6208 .total_size = 2 * 1024,
6209 .page_size = 0,
6210 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET,
6211 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006212 .probe = probe_jedec,
6213 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006214 .block_erasers =
6215 {
6216 {
6217 .eraseblocks = {
6218 {64 * 1024, 31},
6219 {32 * 1024, 1},
6220 {8 * 1024, 2},
6221 {16 * 1024, 1},
6222 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006223 .block_erase = erase_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006224 }, {
6225 .eraseblocks = { {2048 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006226 .block_erase = erase_chip_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006227 },
6228 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006229 .write = write_jedec_1, /* Supports a fast mode too */
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006230 .read = read_memmapped,
6231 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */
6232 },
6233
6234 {
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006235 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006236 .name = "GD25B128B/GD25Q128B",
Roman Titov95edc892015-04-03 21:29:04 +00006237 .bustype = BUS_SPI,
6238 .manufacture_id = GIGADEVICE_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006239 .model_id = GIGADEVICE_GD25Q128,
6240 .total_size = 16384,
Roman Titov95edc892015-04-03 21:29:04 +00006241 .page_size = 256,
6242 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6243 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006244 .tested = TEST_OK_PREW,
Roman Titov95edc892015-04-03 21:29:04 +00006245 .probe = probe_spi_rdid,
6246 .probe_timing = TIMING_ZERO,
6247 .block_erasers =
6248 {
6249 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006250 .eraseblocks = { {4 * 1024, 4096} },
Roman Titov95edc892015-04-03 21:29:04 +00006251 .block_erase = spi_block_erase_20,
6252 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006253 .eraseblocks = { {32 * 1024, 512} },
Roman Titov95edc892015-04-03 21:29:04 +00006254 .block_erase = spi_block_erase_52,
6255 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006256 .eraseblocks = { {64 * 1024, 256} },
Roman Titov95edc892015-04-03 21:29:04 +00006257 .block_erase = spi_block_erase_d8,
6258 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006259 .eraseblocks = { {16 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00006260 .block_erase = spi_block_erase_60,
6261 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006262 .eraseblocks = { {16 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00006263 .block_erase = spi_block_erase_c7,
6264 }
6265 },
6266 .printlock = spi_prettyprint_status_register_bp4_srwd,
6267 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6268 .write = spi_chip_write_256,
6269 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Alan Green1f9cc7d2019-07-01 11:10:45 +10006270 .voltage = {2700, 3600},
Roman Titov95edc892015-04-03 21:29:04 +00006271 },
6272
6273 {
6274 .vendor = "GigaDevice",
Edward O'Callaghan981a3442021-06-22 11:16:55 +10006275 .name = "GD25LQ128C/GD25LQ128D/GD25LQ128E",
Roman Titov95edc892015-04-03 21:29:04 +00006276 .bustype = BUS_SPI,
6277 .manufacture_id = GIGADEVICE_ID,
Alan Green188127e2019-08-06 16:10:34 +10006278 .model_id = GIGADEVICE_GD25LQ128CD,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006279 .total_size = 16384,
Roman Titov95edc892015-04-03 21:29:04 +00006280 .page_size = 256,
6281 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Nikolai Artemiev9de3f872021-10-20 22:32:25 +11006282 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_WRSR_EXT,
Alan Green813a7e22021-01-08 08:48:17 +11006283 .tested = TEST_OK_PREW,
Roman Titov95edc892015-04-03 21:29:04 +00006284 .probe = probe_spi_rdid,
6285 .probe_timing = TIMING_ZERO,
6286 .block_erasers =
6287 {
6288 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006289 .eraseblocks = { {4 * 1024, 4096} },
Roman Titov95edc892015-04-03 21:29:04 +00006290 .block_erase = spi_block_erase_20,
6291 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006292 .eraseblocks = { {32 * 1024, 512} },
Roman Titov95edc892015-04-03 21:29:04 +00006293 .block_erase = spi_block_erase_52,
6294 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006295 .eraseblocks = { {64 * 1024, 256} },
Roman Titov95edc892015-04-03 21:29:04 +00006296 .block_erase = spi_block_erase_d8,
6297 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006298 .eraseblocks = { {16 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00006299 .block_erase = spi_block_erase_60,
6300 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006301 .eraseblocks = { {16 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00006302 .block_erase = spi_block_erase_c7,
6303 }
6304 },
6305 .printlock = spi_prettyprint_status_register_bp4_srwd,
6306 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6307 .write = spi_chip_write_256,
6308 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6309 .voltage = {1695, 1950},
Nikolai Artemievc6c3f282021-10-20 23:34:15 +11006310 .reg_bits =
6311 {
6312 .srp = {STATUS1, 7, RW},
6313 .srl = {STATUS2, 0, RW},
6314 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
6315 .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */
6316 .sec = {STATUS1, 6, RW}, /* Called BP4 in datasheet, acts like SEC */
6317 .cmp = {STATUS2, 6, RW},
6318 },
Roman Titov95edc892015-04-03 21:29:04 +00006319 },
6320
6321 {
6322 .vendor = "GigaDevice",
6323 .name = "GD25LQ16",
6324 .bustype = BUS_SPI,
6325 .manufacture_id = GIGADEVICE_ID,
6326 .model_id = GIGADEVICE_GD25LQ16,
6327 .total_size = 2048,
6328 .page_size = 256,
6329 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6330 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6331 .tested = TEST_UNTESTED,
6332 .probe = probe_spi_rdid,
6333 .probe_timing = TIMING_ZERO,
6334 .block_erasers =
6335 {
6336 {
6337 .eraseblocks = { {4 * 1024, 512} },
6338 .block_erase = spi_block_erase_20,
6339 }, {
6340 .eraseblocks = { {32 * 1024, 64} },
6341 .block_erase = spi_block_erase_52,
6342 }, {
6343 .eraseblocks = { {64 * 1024, 32} },
6344 .block_erase = spi_block_erase_d8,
6345 }, {
6346 .eraseblocks = { {2 * 1024 * 1024, 1} },
6347 .block_erase = spi_block_erase_60,
6348 }, {
6349 .eraseblocks = { {2 * 1024 * 1024, 1} },
6350 .block_erase = spi_block_erase_c7,
6351 }
6352 },
6353 .printlock = spi_prettyprint_status_register_bp4_srwd,
6354 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6355 .write = spi_chip_write_256,
6356 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6357 .voltage = {1695, 1950},
6358 },
6359
6360 {
6361 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006362 .name = "GD25LQ32",
6363 .bustype = BUS_SPI,
6364 .manufacture_id = GIGADEVICE_ID,
6365 .model_id = GIGADEVICE_GD25LQ32,
6366 .total_size = 4096,
6367 .page_size = 256,
6368 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6369 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6370 .tested = TEST_OK_PREW,
6371 .probe = probe_spi_rdid,
6372 .probe_timing = TIMING_ZERO,
6373 .block_erasers =
6374 {
6375 {
6376 .eraseblocks = { {4 * 1024, 1024} },
6377 .block_erase = spi_block_erase_20,
6378 }, {
6379 .eraseblocks = { {32 * 1024, 128} },
6380 .block_erase = spi_block_erase_52,
6381 }, {
6382 .eraseblocks = { {64 * 1024, 64} },
6383 .block_erase = spi_block_erase_d8,
6384 }, {
6385 .eraseblocks = { {4 * 1024 * 1024, 1} },
6386 .block_erase = spi_block_erase_60,
6387 }, {
6388 .eraseblocks = { {4 * 1024 * 1024, 1} },
6389 .block_erase = spi_block_erase_c7,
6390 }
6391 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006392 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006393 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6394 .write = spi_chip_write_256,
Roman Titov95edc892015-04-03 21:29:04 +00006395 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6396 .voltage = {1695, 1950},
6397 },
6398
6399 {
6400 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006401 .name = "GD25LQ40",
6402 .bustype = BUS_SPI,
6403 .manufacture_id = GIGADEVICE_ID,
6404 .model_id = GIGADEVICE_GD25LQ40,
6405 .total_size = 512,
6406 .page_size = 256,
6407 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6408 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6409 .tested = TEST_UNTESTED,
6410 .probe = probe_spi_rdid,
6411 .probe_timing = TIMING_ZERO,
6412 .block_erasers =
6413 {
6414 {
6415 .eraseblocks = { {4 * 1024, 128} },
6416 .block_erase = spi_block_erase_20,
6417 }, {
6418 .eraseblocks = { {32 * 1024, 16} },
6419 .block_erase = spi_block_erase_52,
6420 }, {
6421 .eraseblocks = { {64 * 1024, 8} },
6422 .block_erase = spi_block_erase_d8,
6423 }, {
6424 .eraseblocks = { {512 * 1024, 1} },
6425 .block_erase = spi_block_erase_60,
6426 }, {
6427 .eraseblocks = { {512 * 1024, 1} },
6428 .block_erase = spi_block_erase_c7,
6429 }
6430 },
6431 .printlock = spi_prettyprint_status_register_bp4_srwd,
6432 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6433 .write = spi_chip_write_256,
6434 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6435 .voltage = {1695, 1950},
6436 },
6437
6438 {
6439 .vendor = "GigaDevice",
Roman Titov95edc892015-04-03 21:29:04 +00006440 .name = "GD25LQ64(B)",
6441 .bustype = BUS_SPI,
6442 .manufacture_id = GIGADEVICE_ID,
6443 .model_id = GIGADEVICE_GD25LQ64,
6444 .total_size = 8192,
6445 .page_size = 256,
6446 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6447 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +00006448 .tested = TEST_OK_PREW,
Roman Titov95edc892015-04-03 21:29:04 +00006449 .probe = probe_spi_rdid,
6450 .probe_timing = TIMING_ZERO,
6451 .block_erasers =
6452 {
6453 {
6454 .eraseblocks = { {4 * 1024, 2048} },
6455 .block_erase = spi_block_erase_20,
6456 }, {
6457 .eraseblocks = { {32 * 1024, 256} },
6458 .block_erase = spi_block_erase_52,
6459 }, {
6460 .eraseblocks = { {64 * 1024, 128} },
6461 .block_erase = spi_block_erase_d8,
6462 }, {
6463 .eraseblocks = { {8 * 1024 * 1024, 1} },
6464 .block_erase = spi_block_erase_60,
6465 }, {
6466 .eraseblocks = { {8 * 1024 * 1024, 1} },
6467 .block_erase = spi_block_erase_c7,
6468 }
6469 },
6470 .printlock = spi_prettyprint_status_register_bp4_srwd,
6471 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6472 .write = spi_chip_write_256,
6473 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6474 .voltage = {1695, 1950},
6475 },
6476
6477 {
6478 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006479 .name = "GD25LQ80",
Roman Titov95edc892015-04-03 21:29:04 +00006480 .bustype = BUS_SPI,
6481 .manufacture_id = GIGADEVICE_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006482 .model_id = GIGADEVICE_GD25LQ80,
6483 .total_size = 1024,
Roman Titov95edc892015-04-03 21:29:04 +00006484 .page_size = 256,
6485 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6486 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6487 .tested = TEST_UNTESTED,
6488 .probe = probe_spi_rdid,
6489 .probe_timing = TIMING_ZERO,
6490 .block_erasers =
6491 {
6492 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006493 .eraseblocks = { {4 * 1024, 256} },
Roman Titov95edc892015-04-03 21:29:04 +00006494 .block_erase = spi_block_erase_20,
6495 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006496 .eraseblocks = { {32 * 1024, 32} },
Roman Titov95edc892015-04-03 21:29:04 +00006497 .block_erase = spi_block_erase_52,
6498 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006499 .eraseblocks = { {64 * 1024, 16} },
Roman Titov95edc892015-04-03 21:29:04 +00006500 .block_erase = spi_block_erase_d8,
6501 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006502 .eraseblocks = { {1 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00006503 .block_erase = spi_block_erase_60,
6504 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006505 .eraseblocks = { {1 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00006506 .block_erase = spi_block_erase_c7,
6507 }
6508 },
6509 .printlock = spi_prettyprint_status_register_bp4_srwd,
6510 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6511 .write = spi_chip_write_256,
6512 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6513 .voltage = {1695, 1950},
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006514 },
6515
6516 {
6517 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006518 .name = "GD25Q10",
6519 .bustype = BUS_SPI,
6520 .manufacture_id = GIGADEVICE_ID,
6521 .model_id = GIGADEVICE_GD25Q10,
6522 .total_size = 128,
6523 .page_size = 256,
6524 .feature_bits = FEATURE_WRSR_WREN,
6525 .tested = TEST_UNTESTED,
6526 .probe = probe_spi_rdid,
6527 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10006528 .block_erasers =
6529 {
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006530 {
6531 .eraseblocks = { {4 * 1024, 32} },
6532 .block_erase = spi_block_erase_20,
6533 }, {
6534 .eraseblocks = { {32 * 1024, 4} },
6535 .block_erase = spi_block_erase_52,
6536 }, {
6537 .eraseblocks = { {64 * 1024, 2} },
6538 .block_erase = spi_block_erase_d8,
6539 }, {
6540 .eraseblocks = { {128 * 1024, 1} },
6541 .block_erase = spi_block_erase_60,
6542 }, {
6543 .eraseblocks = { {128 * 1024, 1} },
6544 .block_erase = spi_block_erase_c7,
6545 }
6546 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006547 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006548 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6549 .write = spi_chip_write_256,
6550 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6551 .voltage = {2700, 3600},
6552 },
6553
6554 {
6555 .vendor = "GigaDevice",
Alan Green4f009122019-08-26 10:45:18 +10006556 .name = "GD25Q127C/GD25Q128C",
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006557 .bustype = BUS_SPI,
6558 .manufacture_id = GIGADEVICE_ID,
6559 .model_id = GIGADEVICE_GD25Q128,
6560 .total_size = 16384,
6561 .page_size = 256,
6562 /* OTP: 1536B total; read 0x48; write 0x42, erase 0x44 */
6563 /* QPI: enable 0x38, disable 0xFF */
6564 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Angel Ponsbce364c2018-09-30 20:04:14 +02006565 .tested = TEST_OK_PREW,
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006566 .probe = probe_spi_rdid,
6567 .probe_timing = TIMING_ZERO,
6568 .block_erasers =
6569 {
6570 {
6571 .eraseblocks = { {4 * 1024, 4096} },
6572 .block_erase = spi_block_erase_20,
6573 }, {
6574 .eraseblocks = { {32 * 1024, 512} },
6575 .block_erase = spi_block_erase_52,
6576 }, {
6577 .eraseblocks = { {64 * 1024, 256} },
6578 .block_erase = spi_block_erase_d8,
6579 }, {
6580 .eraseblocks = { {16 * 1024 * 1024, 1} },
6581 .block_erase = spi_block_erase_60,
6582 }, {
6583 .eraseblocks = { {16 * 1024 * 1024, 1} },
6584 .block_erase = spi_block_erase_c7,
6585 }
6586 },
6587 /* TODO: 2nd status reg (read 0x35, write 0x31) and 3rd status reg (read 0x15, write 0x11) */
6588 .printlock = spi_prettyprint_status_register_bp4_srwd,
6589 .unlock = spi_disable_blockprotect_bp4_srwd,
6590 .write = spi_chip_write_256,
6591 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6592 .voltage = {2700, 3600},
6593 },
6594
6595 {
6596 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006597 .name = "GD25Q16(B)",
6598 .bustype = BUS_SPI,
6599 .manufacture_id = GIGADEVICE_ID,
6600 .model_id = GIGADEVICE_GD25Q16,
6601 .total_size = 2048,
6602 .page_size = 256,
6603 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
6604 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6605 .tested = TEST_OK_PREW,
6606 .probe = probe_spi_rdid,
6607 .probe_timing = TIMING_ZERO,
6608 .block_erasers =
6609 {
6610 {
6611 .eraseblocks = { {4 * 1024, 512} },
6612 .block_erase = spi_block_erase_20,
6613 }, {
6614 .eraseblocks = { {32 * 1024, 64} },
6615 .block_erase = spi_block_erase_52,
6616 }, {
6617 .eraseblocks = { {64 * 1024, 32} },
6618 .block_erase = spi_block_erase_d8,
6619 }, {
6620 .eraseblocks = { {2 * 1024 * 1024, 1} },
6621 .block_erase = spi_block_erase_60,
6622 }, {
6623 .eraseblocks = { {2 * 1024 * 1024, 1} },
6624 .block_erase = spi_block_erase_c7,
6625 }
6626 },
6627 .printlock = spi_prettyprint_status_register_bp4_srwd,
6628 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6629 .write = spi_chip_write_256,
6630 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6631 .voltage = {2700, 3600},
6632 },
6633
6634 {
6635 .vendor = "GigaDevice",
6636 .name = "GD25Q20(B)",
6637 .bustype = BUS_SPI,
6638 .manufacture_id = GIGADEVICE_ID,
6639 .model_id = GIGADEVICE_GD25Q20,
6640 .total_size = 256,
6641 .page_size = 256,
6642 .feature_bits = FEATURE_WRSR_WREN,
6643 .tested = TEST_OK_PREW,
6644 .probe = probe_spi_rdid,
6645 .probe_timing = TIMING_ZERO,
6646 .block_erasers =
6647 {
6648 {
6649 .eraseblocks = { {4 * 1024, 64} },
6650 .block_erase = spi_block_erase_20,
6651 }, {
6652 .eraseblocks = { {32 * 1024, 8} },
6653 .block_erase = spi_block_erase_52,
6654 }, {
6655 .eraseblocks = { {64 * 1024, 4} },
6656 .block_erase = spi_block_erase_d8,
6657 }, {
6658 .eraseblocks = { {256 * 1024, 1} },
6659 .block_erase = spi_block_erase_60,
6660 }, {
6661 .eraseblocks = { {256 * 1024, 1} },
6662 .block_erase = spi_block_erase_c7,
6663 }
6664 },
6665 .printlock = spi_prettyprint_status_register_bp4_srwd,
6666 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6667 .write = spi_chip_write_256,
6668 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6669 .voltage = {2700, 3600},
6670 },
6671
6672 {
6673 .vendor = "GigaDevice",
Alan Green86fc9cf2019-08-26 15:02:12 +10006674 .name = "GD25Q256D",
6675 .bustype = BUS_SPI,
6676 .manufacture_id = GIGADEVICE_ID,
6677 .model_id = GIGADEVICE_GD25Q256D,
6678 .total_size = 32768,
6679 .page_size = 256,
Nikolai Artemiev9de3f872021-10-20 22:32:25 +11006680 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN |
6681 FEATURE_WRSR_EXT | FEATURE_WRSR2,
Nikolai Artemieve64ef6d2021-03-23 17:15:40 +11006682 .tested = TEST_OK_PREW,
Alan Green86fc9cf2019-08-26 15:02:12 +10006683 .probe = probe_spi_rdid,
6684 .probe_timing = TIMING_ZERO,
6685 .block_erasers =
6686 {
6687 {
6688 .eraseblocks = { {4 * 1024, 8192} },
Nico Huber5374dc32019-10-04 16:16:15 +02006689 .block_erase = spi_block_erase_21,
6690 }, {
6691 .eraseblocks = { {4 * 1024, 8192} },
Alan Green86fc9cf2019-08-26 15:02:12 +10006692 .block_erase = spi_block_erase_20,
6693 }, {
6694 .eraseblocks = { {32 * 1024, 1024} },
Nico Huber5374dc32019-10-04 16:16:15 +02006695 .block_erase = spi_block_erase_5c,
6696 }, {
6697 .eraseblocks = { {32 * 1024, 1024} },
Alan Green86fc9cf2019-08-26 15:02:12 +10006698 .block_erase = spi_block_erase_52,
6699 }, {
6700 .eraseblocks = { {64 * 1024, 512} },
Nico Huber5374dc32019-10-04 16:16:15 +02006701 .block_erase = spi_block_erase_dc,
6702 }, {
6703 .eraseblocks = { {64 * 1024, 512} },
Alan Green86fc9cf2019-08-26 15:02:12 +10006704 .block_erase = spi_block_erase_d8,
6705 }, {
6706 .eraseblocks = { {32 * 1024 * 1024, 1} },
6707 .block_erase = spi_block_erase_60,
6708 }, {
6709 .eraseblocks = { {32 * 1024 * 1024, 1} },
6710 .block_erase = spi_block_erase_c7,
6711 }
6712 },
6713 .printlock = spi_prettyprint_status_register_bp3_srwd,
6714 .unlock = spi_disable_blockprotect,
6715 .write = spi_chip_write_256,
6716 .read = spi_chip_read,
6717 .voltage = {2700, 3600},
Nikolai Artemievc6c3f282021-10-20 23:34:15 +11006718 .reg_bits =
6719 {
6720 .srp = {STATUS1, 7, RW},
6721 .srl = {STATUS2, 6, RW},
6722 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}},
6723 .tb = {STATUS1, 6, RW},
6724 },
Alan Green86fc9cf2019-08-26 15:02:12 +10006725 },
6726
6727 {
6728 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006729 .name = "GD25Q32(B)",
6730 .bustype = BUS_SPI,
6731 .manufacture_id = GIGADEVICE_ID,
6732 .model_id = GIGADEVICE_GD25Q32,
6733 .total_size = 4096,
6734 .page_size = 256,
6735 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Nikolai Artemiev9de3f872021-10-20 22:32:25 +11006736 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_WRSR2,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006737 .tested = TEST_OK_PREW,
6738 .probe = probe_spi_rdid,
6739 .probe_timing = TIMING_ZERO,
6740 .block_erasers =
6741 {
6742 {
6743 .eraseblocks = { {4 * 1024, 1024} },
6744 .block_erase = spi_block_erase_20,
6745 }, {
6746 .eraseblocks = { {32 * 1024, 128} },
6747 .block_erase = spi_block_erase_52,
6748 }, {
6749 .eraseblocks = { {64 * 1024, 64} },
6750 .block_erase = spi_block_erase_d8,
6751 }, {
6752 .eraseblocks = { {4 * 1024 * 1024, 1} },
6753 .block_erase = spi_block_erase_60,
6754 }, {
6755 .eraseblocks = { {4 * 1024 * 1024, 1} },
6756 .block_erase = spi_block_erase_c7,
6757 }
6758 },
6759 .printlock = spi_prettyprint_status_register_bp4_srwd,
6760 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6761 .write = spi_chip_write_256,
6762 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6763 .voltage = {2700, 3600},
Nikolai Artemievc6c3f282021-10-20 23:34:15 +11006764 .reg_bits =
6765 {
6766 .srp = {STATUS1, 7, RW},
6767 .srl = {STATUS2, 0, RW},
6768 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
6769 .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */
6770 .sec = {STATUS1, 6, RW}, /* Called BP4 in datasheet, acts like SEC */
6771 .cmp = {STATUS2, 6, RW},
6772 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10006773 },
6774
6775 {
6776 .vendor = "GigaDevice",
6777 .name = "GD25Q40(B)",
6778 .bustype = BUS_SPI,
6779 .manufacture_id = GIGADEVICE_ID,
6780 .model_id = GIGADEVICE_GD25Q40,
6781 .total_size = 512,
6782 .page_size = 256,
6783 .feature_bits = FEATURE_WRSR_WREN,
6784 .tested = TEST_UNTESTED,
6785 .probe = probe_spi_rdid,
6786 .probe_timing = TIMING_ZERO,
6787 .block_erasers =
6788 {
6789 {
6790 .eraseblocks = { {4 * 1024, 128} },
6791 .block_erase = spi_block_erase_20,
6792 }, {
6793 .eraseblocks = { {32 * 1024, 16} },
6794 .block_erase = spi_block_erase_52,
6795 }, {
6796 .eraseblocks = { {64 * 1024, 8} },
6797 .block_erase = spi_block_erase_d8,
6798 }, {
6799 .eraseblocks = { {512 * 1024, 1} },
6800 .block_erase = spi_block_erase_60,
6801 }, {
6802 .eraseblocks = { {512 * 1024, 1} },
6803 .block_erase = spi_block_erase_c7,
6804 }
6805 },
6806 .printlock = spi_prettyprint_status_register_bp4_srwd,
6807 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6808 .write = spi_chip_write_256,
6809 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6810 .voltage = {2700, 3600},
6811 },
6812
6813 {
6814 .vendor = "GigaDevice",
6815 .name = "GD25Q512",
6816 .bustype = BUS_SPI,
6817 .manufacture_id = GIGADEVICE_ID,
6818 .model_id = GIGADEVICE_GD25Q512,
6819 .total_size = 64,
6820 .page_size = 256,
6821 .feature_bits = FEATURE_WRSR_WREN,
6822 .tested = TEST_OK_PREW,
6823 .probe = probe_spi_rdid,
6824 .probe_timing = TIMING_ZERO,
6825 .block_erasers =
6826 {
6827 {
6828 .eraseblocks = { {4 * 1024, 16} },
6829 .block_erase = spi_block_erase_20,
6830 }, {
6831 .eraseblocks = { {32 * 1024, 2} },
6832 .block_erase = spi_block_erase_52,
6833 }, {
6834 .eraseblocks = { {64 * 1024, 1} },
6835 .block_erase = spi_block_erase_60,
6836 }, {
6837 .eraseblocks = { {64 * 1024, 1} },
6838 .block_erase = spi_block_erase_c7,
6839 }
6840 },
6841 .printlock = spi_prettyprint_status_register_bp4_srwd,
6842 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6843 .write = spi_chip_write_256,
6844 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6845 .voltage = {2700, 3600},
6846 },
6847
6848 {
6849 .vendor = "GigaDevice",
6850 .name = "GD25Q64(B)",
6851 .bustype = BUS_SPI,
6852 .manufacture_id = GIGADEVICE_ID,
6853 .model_id = GIGADEVICE_GD25Q64,
6854 .total_size = 8192,
6855 .page_size = 256,
6856 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6857 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6858 .tested = TEST_OK_PREW,
6859 .probe = probe_spi_rdid,
6860 .probe_timing = TIMING_ZERO,
6861 .block_erasers =
6862 {
6863 {
6864 .eraseblocks = { {4 * 1024, 2048} },
6865 .block_erase = spi_block_erase_20,
6866 }, {
6867 .eraseblocks = { {32 * 1024, 256} },
6868 .block_erase = spi_block_erase_52,
6869 }, {
6870 .eraseblocks = { {64 * 1024, 128} },
6871 .block_erase = spi_block_erase_d8,
6872 }, {
6873 .eraseblocks = { {8 * 1024 * 1024, 1} },
6874 .block_erase = spi_block_erase_60,
6875 }, {
6876 .eraseblocks = { {8 * 1024 * 1024, 1} },
6877 .block_erase = spi_block_erase_c7,
6878 }
6879 },
6880 .printlock = spi_prettyprint_status_register_bp4_srwd,
6881 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6882 .write = spi_chip_write_256,
6883 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6884 .voltage = {2700, 3600},
6885 },
6886
6887 {
6888 .vendor = "GigaDevice",
6889 .name = "GD25Q80(B)",
6890 .bustype = BUS_SPI,
6891 .manufacture_id = GIGADEVICE_ID,
6892 .model_id = GIGADEVICE_GD25Q80,
6893 .total_size = 1024,
6894 .page_size = 256,
6895 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
6896 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6897 .tested = TEST_OK_PREW,
6898 .probe = probe_spi_rdid,
6899 .probe_timing = TIMING_ZERO,
6900 .block_erasers =
6901 {
6902 {
6903 .eraseblocks = { {4 * 1024, 256} },
6904 .block_erase = spi_block_erase_20,
6905 }, {
6906 .eraseblocks = { {32 * 1024, 32} },
6907 .block_erase = spi_block_erase_52,
6908 }, {
6909 .eraseblocks = { {64 * 1024, 16} },
6910 .block_erase = spi_block_erase_d8,
6911 }, {
6912 .eraseblocks = { {1024 * 1024, 1} },
6913 .block_erase = spi_block_erase_60,
6914 }, {
6915 .eraseblocks = { {1024 * 1024, 1} },
6916 .block_erase = spi_block_erase_c7,
6917 }
6918 },
6919 .printlock = spi_prettyprint_status_register_bp4_srwd,
6920 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6921 .write = spi_chip_write_256,
6922 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6923 .voltage = {2700, 3600},
6924 },
6925
6926 {
6927 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006928 .name = "GD25T80",
6929 .bustype = BUS_SPI,
6930 .manufacture_id = GIGADEVICE_ID,
6931 .model_id = GIGADEVICE_GD25T80,
6932 .total_size = 1024,
6933 .page_size = 256,
6934 /* OTP: 256B total; enter 0x3A */
6935 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6936 .tested = TEST_UNTESTED,
6937 .probe = probe_spi_rdid,
6938 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10006939 .block_erasers =
6940 {
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006941 {
6942 .eraseblocks = { {4 * 1024, 256} },
6943 .block_erase = spi_block_erase_20,
6944 }, {
6945 .eraseblocks = { {64 * 1024, 16} },
6946 .block_erase = spi_block_erase_52,
6947 }, {
6948 .eraseblocks = { {64 * 1024, 16} },
6949 .block_erase = spi_block_erase_d8,
6950 }, {
6951 .eraseblocks = { {1024 * 1024, 1} },
6952 .block_erase = spi_block_erase_60,
6953 }, {
6954 .eraseblocks = { {1024 * 1024, 1} },
6955 .block_erase = spi_block_erase_c7,
6956 }
6957 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00006958 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006959 .unlock = spi_disable_blockprotect,
6960 .write = spi_chip_write_256,
6961 .read = spi_chip_read,
Stefan Tauner352e50b2013-02-22 15:58:45 +00006962 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006963 },
6964
6965 {
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006966 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006967 .name = "GD25VQ16C",
6968 .bustype = BUS_SPI,
6969 .manufacture_id = GIGADEVICE_ID,
6970 .model_id = GIGADEVICE_GD25VQ16C,
6971 .total_size = 2 * 1024,
6972 .page_size = 256,
6973 /* Supports SFDP */
6974 /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */
6975 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6976 .tested = TEST_UNTESTED,
6977 .probe = probe_spi_rdid,
6978 .probe_timing = TIMING_ZERO,
6979 .block_erasers =
6980 {
6981 {
6982 .eraseblocks = { { 4 * 1024, 512} },
6983 .block_erase = spi_block_erase_20,
6984 }, {
6985 .eraseblocks = { { 32 * 1024, 64} },
6986 .block_erase = spi_block_erase_52,
6987 }, {
6988 .eraseblocks = { { 64 * 1024, 32} },
6989 .block_erase = spi_block_erase_d8,
6990 }, {
6991 .eraseblocks = { {2 * 1024 * 1024, 1} },
6992 .block_erase = spi_block_erase_60,
6993 }, {
6994 .eraseblocks = { {2 * 1024 * 1024, 1} },
6995 .block_erase = spi_block_erase_c7,
6996 }
6997 },
6998 .printlock = spi_prettyprint_status_register_bp4_srwd,
6999 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7000 .write = spi_chip_write_256,
7001 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7002 .voltage = {2300, 3600},
7003 },
7004
7005 {
7006 .vendor = "GigaDevice",
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007007 .name = "GD25VQ21B",
7008 .bustype = BUS_SPI,
7009 .manufacture_id = GIGADEVICE_ID,
7010 .model_id = GIGADEVICE_GD25VQ21B,
7011 .total_size = 256,
7012 .page_size = 256,
7013 /* OTP: 1536B total; read 0x48, write 0x42, erase 0x44 */
7014 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7015 .tested = TEST_UNTESTED,
7016 .probe = probe_spi_rdid,
7017 .probe_timing = TIMING_ZERO,
7018 .block_erasers =
7019 {
7020 {
7021 .eraseblocks = { { 4 * 1024, 64} },
7022 .block_erase = spi_block_erase_20,
7023 }, {
7024 .eraseblocks = { { 32 * 1024, 8} },
7025 .block_erase = spi_block_erase_52,
7026 }, {
7027 .eraseblocks = { { 64 * 1024, 4} },
7028 .block_erase = spi_block_erase_d8,
7029 }, {
7030 .eraseblocks = { {256 * 1024, 1} },
7031 .block_erase = spi_block_erase_60,
7032 }, {
7033 .eraseblocks = { {256 * 1024, 1} },
7034 .block_erase = spi_block_erase_c7,
7035 }
7036 },
7037 .printlock = spi_prettyprint_status_register_bp4_srwd,
7038 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7039 .write = spi_chip_write_256,
7040 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7041 .voltage = {2300, 3600},
7042 },
7043
7044 {
7045 .vendor = "GigaDevice",
7046 .name = "GD25VQ40C",
7047 .bustype = BUS_SPI,
7048 .manufacture_id = GIGADEVICE_ID,
7049 .model_id = GIGADEVICE_GD25VQ41B,
7050 .total_size = 512,
7051 .page_size = 256,
7052 /* Supports SFDP */
7053 /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */
7054 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7055 .tested = TEST_UNTESTED,
7056 .probe = probe_spi_rdid,
7057 .probe_timing = TIMING_ZERO,
7058 .block_erasers =
7059 {
7060 {
7061 .eraseblocks = { { 4 * 1024, 128} },
7062 .block_erase = spi_block_erase_20,
7063 }, {
7064 .eraseblocks = { { 32 * 1024, 16} },
7065 .block_erase = spi_block_erase_52,
7066 }, {
7067 .eraseblocks = { { 64 * 1024, 8} },
7068 .block_erase = spi_block_erase_d8,
7069 }, {
7070 .eraseblocks = { {512 * 1024, 1} },
7071 .block_erase = spi_block_erase_60,
7072 }, {
7073 .eraseblocks = { {512 * 1024, 1} },
7074 .block_erase = spi_block_erase_c7,
7075 }
7076 },
7077 .printlock = spi_prettyprint_status_register_bp4_srwd,
7078 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7079 .write = spi_chip_write_256,
7080 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7081 .voltage = {2300, 3600},
7082 },
7083
7084 {
7085 .vendor = "GigaDevice",
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007086 .name = "GD25VQ41B",
7087 .bustype = BUS_SPI,
7088 .manufacture_id = GIGADEVICE_ID,
7089 .model_id = GIGADEVICE_GD25VQ41B,
7090 .total_size = 512,
7091 .page_size = 256,
7092 /* OTP: 1536B total; read 0x48, write 0x42, erase 0x44 */
7093 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner0be072c2016-03-13 15:16:30 +00007094 .tested = TEST_OK_PREW,
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007095 .probe = probe_spi_rdid,
7096 .probe_timing = TIMING_ZERO,
Stefan Tauner0be072c2016-03-13 15:16:30 +00007097 .block_erasers =
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007098 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00007099 {
7100 .eraseblocks = { { 4 * 1024, 128} },
7101 .block_erase = spi_block_erase_20,
7102 }, {
7103 .eraseblocks = { { 32 * 1024, 16} },
7104 .block_erase = spi_block_erase_52,
7105 }, {
7106 .eraseblocks = { { 64 * 1024, 8} },
7107 .block_erase = spi_block_erase_d8,
7108 }, {
7109 .eraseblocks = { {512 * 1024, 1} },
7110 .block_erase = spi_block_erase_60,
7111 }, {
7112 .eraseblocks = { {512 * 1024, 1} },
7113 .block_erase = spi_block_erase_c7,
7114 }
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007115 },
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007116 .printlock = spi_prettyprint_status_register_bp4_srwd,
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007117 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7118 .write = spi_chip_write_256,
7119 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7120 .voltage = {2300, 3600},
7121 },
7122
7123 {
7124 .vendor = "GigaDevice",
7125 .name = "GD25VQ80C",
7126 .bustype = BUS_SPI,
7127 .manufacture_id = GIGADEVICE_ID,
7128 .model_id = GIGADEVICE_GD25VQ80C,
7129 .total_size = 1024,
7130 .page_size = 256,
7131 /* Supports SFDP */
7132 /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */
7133 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7134 .tested = TEST_UNTESTED,
7135 .probe = probe_spi_rdid,
7136 .probe_timing = TIMING_ZERO,
7137 .block_erasers =
7138 {
7139 {
7140 .eraseblocks = { { 4 * 1024, 256} },
7141 .block_erase = spi_block_erase_20,
7142 }, {
7143 .eraseblocks = { { 32 * 1024, 32} },
7144 .block_erase = spi_block_erase_52,
7145 }, {
7146 .eraseblocks = { { 64 * 1024, 16} },
7147 .block_erase = spi_block_erase_d8,
7148 }, {
7149 .eraseblocks = { {1024 * 1024, 1} },
7150 .block_erase = spi_block_erase_60,
7151 }, {
7152 .eraseblocks = { {1024 * 1024, 1} },
7153 .block_erase = spi_block_erase_c7,
7154 }
7155 },
7156 .printlock = spi_prettyprint_status_register_bp4_srwd,
7157 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7158 .write = spi_chip_write_256,
7159 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7160 .voltage = {2300, 3600},
7161 },
7162
7163 {
Dino Li3214f582020-03-25 17:39:53 +08007164 .vendor = "GigaDevice",
7165 .name = "GD25WQ80E",
7166 .bustype = BUS_SPI,
7167 .manufacture_id = GIGADEVICE_ID,
7168 .model_id = GIGADEVICE_GD25WQ80E,
7169 .total_size = 1024,
7170 .page_size = 256,
7171 .feature_bits = FEATURE_WRSR_WREN,
7172 .tested = TEST_OK_PREW,
7173 .probe = probe_spi_rdid,
7174 .probe_timing = TIMING_ZERO,
7175 .block_erasers =
7176 {
7177 {
7178 .eraseblocks = { {4 * 1024, 256} },
7179 .block_erase = spi_block_erase_20,
7180 }, {
7181 .eraseblocks = { {32 * 1024, 32} },
7182 .block_erase = spi_block_erase_52,
7183 }, {
7184 .eraseblocks = { {64 * 1024, 16} },
7185 .block_erase = spi_block_erase_d8,
7186 }, {
7187 .eraseblocks = { {1 * 1024 * 1024, 1} },
7188 .block_erase = spi_block_erase_60,
7189 }, {
7190 .eraseblocks = { {1 * 1024 * 1024, 1} },
7191 .block_erase = spi_block_erase_c7,
7192 }
7193 },
7194 .printlock = spi_prettyprint_status_register_bp4_srwd,
7195 .unlock = spi_disable_blockprotect_bp4_srwd,
7196 .write = spi_chip_write_256,
7197 .read = spi_chip_read,
7198 .voltage = {1650, 3600},
7199 },
7200
7201 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007202 .vendor = "Hyundai",
7203 .name = "HY29F002B",
7204 .bustype = BUS_PARALLEL,
7205 .manufacture_id = HYUNDAI_ID,
7206 .model_id = HYUNDAI_HY29F002B,
7207 .total_size = 256,
7208 .page_size = 256 * 1024,
7209 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007210 .tested = TEST_UNTESTED,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007211 .probe = probe_jedec,
7212 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007213 .block_erasers =
7214 {
7215 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007216 .eraseblocks = {
7217 {16 * 1024, 1},
7218 {8 * 1024, 2},
7219 {32 * 1024, 1},
7220 {64 * 1024, 3},
7221 },
7222 .block_erase = erase_sector_jedec,
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007223 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007224 .eraseblocks = { {256 * 1024, 1} },
7225 .block_erase = erase_chip_block_jedec,
7226 },
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007227 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10007228 .write = write_jedec_1,
7229 .read = read_memmapped,
7230 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007231 },
7232
7233 {
David Borgc96a8bd2010-06-21 16:12:22 +00007234 .vendor = "Hyundai",
7235 .name = "HY29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007236 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00007237 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007238 .model_id = HYUNDAI_HY29F002T,
David Borgc96a8bd2010-06-21 16:12:22 +00007239 .total_size = 256,
7240 .page_size = 256 * 1024,
7241 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007242 .tested = TEST_OK_PRE,
David Borgc96a8bd2010-06-21 16:12:22 +00007243 .probe = probe_jedec,
7244 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7245 .block_erasers =
7246 {
7247 {
7248 .eraseblocks = {
7249 {64 * 1024, 3},
7250 {32 * 1024, 1},
7251 {8 * 1024, 2},
7252 {16 * 1024, 1},
7253 },
7254 .block_erase = erase_sector_jedec,
7255 }, {
7256 .eraseblocks = { {256 * 1024, 1} },
7257 .block_erase = erase_chip_block_jedec,
7258 },
7259 },
7260 .write = write_jedec_1,
7261 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007262 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00007263 },
7264
7265 {
7266 .vendor = "Hyundai",
Joshua Roysf1324e02010-09-16 00:51:51 +00007267 .name = "HY29F040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007268 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00007269 .manufacture_id = HYUNDAI_ID,
7270 .model_id = HYUNDAI_HY29F040A,
7271 .total_size = 512,
7272 .page_size = 64 * 1024,
7273 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
7274 .tested = TEST_UNTESTED,
7275 .probe = probe_jedec,
7276 .probe_timing = TIMING_ZERO,
7277 .block_erasers =
7278 {
7279 {
7280 .eraseblocks = { {64 * 1024, 8} },
7281 .block_erase = erase_sector_jedec,
7282 }, {
7283 .eraseblocks = { {512 * 1024, 1} },
7284 .block_erase = erase_chip_block_jedec,
7285 },
7286 },
7287 .write = write_jedec_1,
7288 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007289 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00007290 },
7291
7292 {
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007293 .vendor = "ISSI",
Angel Pons2ef47f32018-09-30 16:47:30 +02007294 .name = "IS25LP064",
7295 .bustype = BUS_SPI,
7296 .manufacture_id = ISSI_ID_SPI,
7297 .model_id = ISSI_IS25LP064,
7298 .total_size = 8192,
7299 .page_size = 256,
7300 /* OTP: 1024B total; read 0x48; write 0x42 */
7301 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7302 .tested = TEST_UNTESTED,
7303 .probe = probe_spi_rdid,
7304 .probe_timing = TIMING_ZERO,
7305 .block_erasers =
7306 {
7307 {
7308 .eraseblocks = { {4 * 1024, 2048} },
7309 .block_erase = spi_block_erase_20,
7310 }, {
7311 .eraseblocks = { {4 * 1024, 2048} },
7312 .block_erase = spi_block_erase_d7,
7313 }, {
7314 .eraseblocks = { {32 * 1024, 256} },
7315 .block_erase = spi_block_erase_52,
7316 }, {
7317 .eraseblocks = { {64 * 1024, 128} },
7318 .block_erase = spi_block_erase_d8,
7319 }, {
7320 .eraseblocks = { {8 * 1024 * 1024, 1} },
7321 .block_erase = spi_block_erase_60,
7322 }, {
7323 .eraseblocks = { {8 * 1024 * 1024, 1} },
7324 .block_erase = spi_block_erase_c7,
7325 }
7326 },
7327 .unlock = spi_disable_blockprotect,
7328 .write = spi_chip_write_256,
7329 .read = spi_chip_read,
7330 .voltage = {2300, 3600},
7331 },
7332
7333 {
7334 .vendor = "ISSI",
David Hendricks3083ed92017-05-02 13:25:56 -07007335 .name = "IS25LP128",
7336 .bustype = BUS_SPI,
7337 .manufacture_id = ISSI_ID_SPI,
7338 .model_id = ISSI_IS25LP128,
7339 .total_size = 16384,
7340 .page_size = 256,
7341 /* OTP: 1024B total; read 0x48; write 0x42 */
7342 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7343 .tested = TEST_OK_PREW,
7344 .probe = probe_spi_rdid,
7345 .probe_timing = TIMING_ZERO,
7346 .block_erasers =
7347 {
7348 {
7349 .eraseblocks = { {4 * 1024, 4096} },
7350 .block_erase = spi_block_erase_20,
7351 }, {
7352 .eraseblocks = { {4 * 1024, 4096} },
7353 .block_erase = spi_block_erase_d7,
7354 }, {
7355 .eraseblocks = { {32 * 1024, 512} },
7356 .block_erase = spi_block_erase_52,
7357 }, {
7358 .eraseblocks = { {64 * 1024, 256} },
7359 .block_erase = spi_block_erase_d8,
7360 }, {
7361 .eraseblocks = { {16 * 1024 * 1024, 1} },
7362 .block_erase = spi_block_erase_60,
7363 }, {
7364 .eraseblocks = { {16 * 1024 * 1024, 1} },
7365 .block_erase = spi_block_erase_c7,
7366 }
7367 },
7368 .unlock = spi_disable_blockprotect,
7369 .write = spi_chip_write_256,
7370 .read = spi_chip_read,
7371 .voltage = {2300, 3600},
7372 },
7373
7374 {
7375 .vendor = "ISSI",
David Hendricks61818dc2018-10-28 01:02:21 +00007376 .name = "IS25LP256",
7377 .bustype = BUS_SPI,
7378 .manufacture_id = ISSI_ID_SPI,
7379 .model_id = ISSI_IS25LP256,
7380 .total_size = 32768,
7381 .page_size = 256,
7382 /* supports SFDP */
7383 /* OTP: 1024B total; read 0x68; write 0x62, erase 0x64, read ID 0x4B */
7384 /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */
7385 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA | FEATURE_4BA_ENTER_EAR7,
7386 .tested = TEST_OK_PREW,
7387 .probe = probe_spi_rdid,
7388 .probe_timing = TIMING_ZERO,
7389 .block_erasers =
7390 {
7391 {
7392 .eraseblocks = { {4 * 1024, 8192} },
7393 .block_erase = spi_block_erase_21,
7394 }, {
7395 .eraseblocks = { {4 * 1024, 8192} },
7396 .block_erase = spi_block_erase_20,
7397 /* could also use spi_block_erase_d7 */
7398 }, {
7399 .eraseblocks = { {32 * 1024, 1024} },
7400 .block_erase = spi_block_erase_5c,
7401 }, {
7402 .eraseblocks = { {32 * 1024, 1024} },
7403 .block_erase = spi_block_erase_52,
7404 }, {
7405 .eraseblocks = { {64 * 1024, 512} },
7406 .block_erase = spi_block_erase_dc,
7407 }, {
7408 .eraseblocks = { {64 * 1024, 512} },
7409 .block_erase = spi_block_erase_d8,
7410 }, {
7411 .eraseblocks = { {32 * 1024 * 1024, 1} },
7412 .block_erase = spi_block_erase_60,
7413 }, {
7414 .eraseblocks = { {32 * 1024 * 1024, 1} },
7415 .block_erase = spi_block_erase_c7,
7416 }
7417 },
7418 .unlock = spi_disable_blockprotect,
7419 .write = spi_chip_write_256,
7420 .read = spi_chip_read,
7421 .voltage = {2300, 3600},
7422 },
7423
7424 {
7425 .vendor = "ISSI",
Nico Huberb27b8d12018-10-02 20:46:21 +02007426 .name = "IS25WP032",
7427 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +10007428 .manufacture_id = ISSI_ID_SPI,
Nico Huberb27b8d12018-10-02 20:46:21 +02007429 .model_id = ISSI_IS25WP032,
7430 .total_size = 4096,
7431 .page_size = 256,
7432 /* OTP: 1024B total; read 0x48; write 0x42 */
7433 /* QPI enable 0x35, disable 0xF5 */
7434 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7435 .tested = TEST_UNTESTED,
7436 .probe = probe_spi_rdid,
7437 .probe_timing = TIMING_ZERO,
7438 .block_erasers =
7439 {
7440 {
7441 .eraseblocks = { {4 * 1024, 1024} },
7442 .block_erase = spi_block_erase_20,
7443 }, {
7444 .eraseblocks = { {4 * 1024, 1024} },
7445 .block_erase = spi_block_erase_d7,
7446 }, {
7447 .eraseblocks = { {32 * 1024, 128} },
7448 .block_erase = spi_block_erase_52,
7449 }, {
7450 .eraseblocks = { {64 * 1024, 64} },
7451 .block_erase = spi_block_erase_d8,
7452 }, {
7453 .eraseblocks = { {4 * 1024 * 1024, 1} },
7454 .block_erase = spi_block_erase_60,
7455 }, {
7456 .eraseblocks = { {4 * 1024 * 1024, 1} },
7457 .block_erase = spi_block_erase_c7,
7458 }
7459 },
7460 .unlock = spi_disable_blockprotect,
7461 .write = spi_chip_write_256,
7462 .read = spi_chip_read,
7463 .voltage = {1650, 1950},
7464 },
7465
7466 {
7467 .vendor = "ISSI",
7468 .name = "IS25WP064",
7469 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +10007470 .manufacture_id = ISSI_ID_SPI,
Nico Huberb27b8d12018-10-02 20:46:21 +02007471 .model_id = ISSI_IS25WP064,
7472 .total_size = 8192,
7473 .page_size = 256,
7474 /* OTP: 1024B total; read 0x48; write 0x42 */
7475 /* QPI enable 0x35, disable 0xF5 */
7476 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7477 .tested = TEST_OK_PREW,
7478 .probe = probe_spi_rdid,
7479 .probe_timing = TIMING_ZERO,
7480 .block_erasers =
7481 {
7482 {
7483 .eraseblocks = { {4 * 1024, 2048} },
7484 .block_erase = spi_block_erase_20,
7485 }, {
7486 .eraseblocks = { {4 * 1024, 2048} },
7487 .block_erase = spi_block_erase_d7,
7488 }, {
7489 .eraseblocks = { {32 * 1024, 256} },
7490 .block_erase = spi_block_erase_52,
7491 }, {
7492 .eraseblocks = { {64 * 1024, 128} },
7493 .block_erase = spi_block_erase_d8,
7494 }, {
7495 .eraseblocks = { {8 * 1024 * 1024, 1} },
7496 .block_erase = spi_block_erase_60,
7497 }, {
7498 .eraseblocks = { {8 * 1024 * 1024, 1} },
7499 .block_erase = spi_block_erase_c7,
7500 }
7501 },
7502 .unlock = spi_disable_blockprotect,
7503 .write = spi_chip_write_256,
7504 .read = spi_chip_read,
7505 .voltage = {1650, 1950},
7506 },
7507
7508 {
7509 .vendor = "ISSI",
David Hendricks3083ed92017-05-02 13:25:56 -07007510 .name = "IS25WP128",
7511 .bustype = BUS_SPI,
7512 .manufacture_id = ISSI_ID_SPI,
7513 .model_id = ISSI_IS25WP128,
7514 .total_size = 16384,
7515 .page_size = 256,
7516 /* OTP: 1024B total; read 0x48; write 0x42 */
Nico Huberb27b8d12018-10-02 20:46:21 +02007517 /* QPI enable 0x35, disable 0xF5 */
7518 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
David Hendricks3083ed92017-05-02 13:25:56 -07007519 .tested = TEST_OK_PREW,
7520 .probe = probe_spi_rdid,
7521 .probe_timing = TIMING_ZERO,
7522 .block_erasers =
7523 {
7524 {
7525 .eraseblocks = { {4 * 1024, 4096} },
7526 .block_erase = spi_block_erase_20,
7527 }, {
7528 .eraseblocks = { {4 * 1024, 4096} },
7529 .block_erase = spi_block_erase_d7,
7530 }, {
7531 .eraseblocks = { {32 * 1024, 512} },
7532 .block_erase = spi_block_erase_52,
7533 }, {
7534 .eraseblocks = { {64 * 1024, 256} },
7535 .block_erase = spi_block_erase_d8,
7536 }, {
7537 .eraseblocks = { {16 * 1024 * 1024, 1} },
7538 .block_erase = spi_block_erase_60,
7539 }, {
7540 .eraseblocks = { {16 * 1024 * 1024, 1} },
7541 .block_erase = spi_block_erase_c7,
7542 }
7543 },
7544 .unlock = spi_disable_blockprotect,
7545 .write = spi_chip_write_256,
7546 .read = spi_chip_read,
7547 .voltage = {1650, 1950},
7548 },
7549
7550 {
7551 .vendor = "ISSI",
David Hendricks61818dc2018-10-28 01:02:21 +00007552 .name = "IS25WP256",
7553 .bustype = BUS_SPI,
7554 .manufacture_id = ISSI_ID_SPI,
7555 .model_id = ISSI_IS25WP256,
7556 .total_size = 32768,
7557 .page_size = 256,
7558 /* supports SFDP */
7559 /* OTP: 1024B total; read 0x68; write 0x62, erase 0x64, read ID 0x4B */
7560 /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */
7561 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA | FEATURE_4BA_ENTER_EAR7,
7562 .tested = TEST_OK_PREW,
7563 .probe = probe_spi_rdid,
7564 .probe_timing = TIMING_ZERO,
7565 .block_erasers =
7566 {
7567 {
7568 .eraseblocks = { {4 * 1024, 8192} },
7569 .block_erase = spi_block_erase_21,
7570 }, {
7571 .eraseblocks = { {4 * 1024, 8192} },
7572 .block_erase = spi_block_erase_20,
7573 /* could also use spi_block_erase_d7 */
7574 }, {
7575 .eraseblocks = { {32 * 1024, 1024} },
7576 .block_erase = spi_block_erase_5c,
7577 }, {
7578 .eraseblocks = { {32 * 1024, 1024} },
7579 .block_erase = spi_block_erase_52,
7580 }, {
7581 .eraseblocks = { {64 * 1024, 512} },
7582 .block_erase = spi_block_erase_dc,
7583 }, {
7584 .eraseblocks = { {64 * 1024, 512} },
7585 .block_erase = spi_block_erase_d8,
7586 }, {
7587 .eraseblocks = { {32 * 1024 * 1024, 1} },
7588 .block_erase = spi_block_erase_60,
7589 }, {
7590 .eraseblocks = { {32 * 1024 * 1024, 1} },
7591 .block_erase = spi_block_erase_c7,
7592 }
7593 },
7594 .unlock = spi_disable_blockprotect,
7595 .write = spi_chip_write_256,
7596 .read = spi_chip_read,
7597 .voltage = {1650, 1950},
7598 },
7599
7600 {
7601 .vendor = "ISSI",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007602 .name = "IS29GL064B",
7603 .bustype = BUS_PARALLEL,
7604 .manufacture_id = ISSI_ID,
7605 .model_id = ISSI_PMC_IS29GL064B,
7606 .total_size = 8192,
7607 .page_size = 128 * 1024, /* actual page size is 16 */
7608 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7609 .tested = TEST_UNTESTED,
7610 .probe = probe_jedec_29gl,
7611 .probe_timing = TIMING_ZERO,
7612 .block_erasers =
7613 {
7614 {
7615 .eraseblocks = {
7616 {8 * 1024, 8},
7617 {64 * 1024, 127},
7618 },
7619 .block_erase = erase_sector_jedec,
7620 }, {
7621 .eraseblocks = { {8 * 1024 * 1024, 1} },
7622 .block_erase = erase_chip_block_jedec,
7623 },
7624 },
7625 .write = write_jedec_1,
7626 .read = read_memmapped,
7627 .voltage = {2700, 3600},
7628 },
7629
7630 {
7631 .vendor = "ISSI",
Alan Green1f9cc7d2019-07-01 11:10:45 +10007632 .name = "IS29GL064H/L",
7633 .bustype = BUS_PARALLEL,
7634 .manufacture_id = ISSI_ID,
7635 .model_id = ISSI_PMC_IS29GL064HL,
7636 .total_size = 8192,
7637 .page_size = 128 * 1024, /* actual page size is 16 */
7638 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7639 .tested = TEST_UNTESTED,
7640 .probe = probe_jedec_29gl,
7641 .probe_timing = TIMING_ZERO,
7642 .block_erasers =
7643 {
7644 {
7645 .eraseblocks = { {64 * 1024, 128} },
7646 .block_erase = erase_sector_jedec,
7647 }, {
7648 .eraseblocks = { {8 * 1024 * 1024, 1} },
7649 .block_erase = erase_chip_block_jedec,
7650 },
7651 },
7652 .write = write_jedec_1,
7653 .read = read_memmapped,
7654 .voltage = {2700, 3600},
7655 },
7656
7657 {
7658 .vendor = "ISSI",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007659 .name = "IS29GL064T",
7660 .bustype = BUS_PARALLEL,
7661 .manufacture_id = ISSI_ID,
7662 .model_id = ISSI_PMC_IS29GL064T,
7663 .total_size = 8192,
7664 .page_size = 128 * 1024, /* actual page size is 16 */
7665 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7666 .tested = TEST_UNTESTED,
7667 .probe = probe_jedec_29gl,
7668 .probe_timing = TIMING_ZERO,
7669 .block_erasers =
7670 {
7671 {
7672 .eraseblocks = {
7673 {64 * 1024, 127},
7674 {8 * 1024, 8},
7675 },
7676 .block_erase = erase_sector_jedec,
7677 }, {
7678 .eraseblocks = { {8 * 1024 * 1024, 1} },
7679 .block_erase = erase_chip_block_jedec,
7680 },
7681 },
7682 .write = write_jedec_1,
7683 .read = read_memmapped,
7684 .voltage = {2700, 3600},
7685 },
7686
7687 {
7688 .vendor = "ISSI",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007689 .name = "IS29GL128H/L",
7690 .bustype = BUS_PARALLEL,
7691 .manufacture_id = ISSI_ID,
7692 .model_id = ISSI_PMC_IS29GL128HL,
7693 .total_size = 16384,
7694 .page_size = 128 * 1024, /* actual page size is 16 */
7695 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7696 .tested = TEST_UNTESTED,
7697 .probe = probe_jedec_29gl,
7698 .probe_timing = TIMING_ZERO,
7699 .block_erasers =
7700 {
7701 {
7702 .eraseblocks = { {128 * 1024, 128} },
7703 .block_erase = erase_sector_jedec,
7704 }, {
7705 .eraseblocks = { {16 * 1024 * 1024, 1} },
7706 .block_erase = erase_chip_block_jedec,
7707 },
7708 },
7709 .write = write_jedec_1,
7710 .read = read_memmapped,
7711 .voltage = {2700, 3600},
7712 },
7713
7714 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007715 .vendor = "Intel",
7716 .name = "25F160S33B8",
7717 .bustype = BUS_SPI,
7718 .manufacture_id = INTEL_ID,
7719 .model_id = INTEL_25F160S33B8,
7720 .total_size = 2048,
7721 .page_size = 256,
7722 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
7723 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7724 .tested = TEST_UNTESTED,
7725 .probe = probe_spi_rdid,
7726 .probe_timing = TIMING_ZERO,
7727 .block_erasers =
7728 {
7729 {
7730 /* This chip supports erasing of the 8 so-called "parameter blocks" with
7731 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
7732 * have no effect on the memory contents, but sets a flag in the SR.
7733 .eraseblocks = {
7734 {8 * 1024, 8},
7735 {64 * 1024, 31} // inaccessible
7736 },
7737 .block_erase = spi_block_erase_40,
7738 }, { */
7739 .eraseblocks = { {64 * 1024, 32} },
7740 .block_erase = spi_block_erase_d8,
7741 }, {
7742 .eraseblocks = { {2 * 1024 * 1024, 1} },
7743 .block_erase = spi_block_erase_c7,
7744 }
7745 },
7746 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
7747 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
7748 .write = spi_chip_write_256,
7749 .read = spi_chip_read, /* also fast read 0x0B */
7750 .voltage = {2700, 3600},
7751 },
7752
7753 {
7754 .vendor = "Intel",
7755 .name = "25F160S33T8",
7756 .bustype = BUS_SPI,
7757 .manufacture_id = INTEL_ID,
7758 .model_id = INTEL_25F160S33T8,
7759 .total_size = 2048,
7760 .page_size = 256,
7761 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
7762 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7763 .tested = TEST_UNTESTED,
7764 .probe = probe_spi_rdid,
7765 .probe_timing = TIMING_ZERO,
7766 .block_erasers =
7767 {
7768 {
7769 /* This chip supports erasing of the 8 so-called "parameter blocks" with
7770 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
7771 * have no effect on the memory contents, but sets a flag in the SR.
7772 .eraseblocks = {
7773 {64 * 1024, 31}, // inaccessible
7774 {8 * 1024, 8}
7775 },
7776 .block_erase = spi_block_erase_40,
7777 }, { */
7778 .eraseblocks = { {64 * 1024, 32} },
7779 .block_erase = spi_block_erase_d8,
7780 }, {
7781 .eraseblocks = { {2 * 1024 * 1024, 1} },
7782 .block_erase = spi_block_erase_c7,
7783 }
7784 },
7785 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
7786 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
7787 .write = spi_chip_write_256,
7788 .read = spi_chip_read, /* also fast read 0x0B */
7789 .voltage = {2700, 3600},
7790 },
7791
7792 {
7793 .vendor = "Intel",
7794 .name = "25F320S33B8",
7795 .bustype = BUS_SPI,
7796 .manufacture_id = INTEL_ID,
7797 .model_id = INTEL_25F320S33B8,
7798 .total_size = 4096,
7799 .page_size = 256,
7800 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
7801 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7802 .tested = TEST_UNTESTED,
7803 .probe = probe_spi_rdid,
7804 .probe_timing = TIMING_ZERO,
7805 .block_erasers =
7806 {
7807 {
7808 /* This chip supports erasing of the 8 so-called "parameter blocks" with
7809 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
7810 * have no effect on the memory contents, but sets a flag in the SR.
7811 .eraseblocks = {
7812 {8 * 1024, 8},
7813 {64 * 1024, 63} // inaccessible
7814 },
7815 .block_erase = spi_block_erase_40,
7816 }, { */
7817 .eraseblocks = { {64 * 1024, 64} },
7818 .block_erase = spi_block_erase_d8,
7819 }, {
7820 .eraseblocks = { {4 * 1024 * 1024, 1} },
7821 .block_erase = spi_block_erase_c7,
7822 }
7823 },
7824 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
7825 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
7826 .write = spi_chip_write_256,
7827 .read = spi_chip_read, /* also fast read 0x0B */
7828 .voltage = {2700, 3600},
7829 },
7830
7831 {
7832 .vendor = "Intel",
7833 .name = "25F320S33T8",
7834 .bustype = BUS_SPI,
7835 .manufacture_id = INTEL_ID,
7836 .model_id = INTEL_25F320S33T8,
7837 .total_size = 4096,
7838 .page_size = 256,
7839 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
7840 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7841 .tested = TEST_UNTESTED,
7842 .probe = probe_spi_rdid,
7843 .probe_timing = TIMING_ZERO,
7844 .block_erasers =
7845 {
7846 {
7847 /* This chip supports erasing of the 8 so-called "parameter blocks" with
7848 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
7849 * have no effect on the memory contents, but sets a flag in the SR.
7850 .eraseblocks = {
7851 {64 * 1024, 63}, // inaccessible
7852 {8 * 1024, 8}
7853 },
7854 .block_erase = spi_block_erase_40,
7855 }, { */
7856 .eraseblocks = { {64 * 1024, 64} },
7857 .block_erase = spi_block_erase_d8,
7858 }, {
7859 .eraseblocks = { {4 * 1024 * 1024, 1} },
7860 .block_erase = spi_block_erase_c7,
7861 }
7862 },
7863 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
7864 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
7865 .write = spi_chip_write_256,
7866 .read = spi_chip_read, /* also fast read 0x0B */
7867 .voltage = {2700, 3600},
7868 },
7869
7870 {
7871 .vendor = "Intel",
7872 .name = "25F640S33B8",
7873 .bustype = BUS_SPI,
7874 .manufacture_id = INTEL_ID,
7875 .model_id = INTEL_25F640S33B8,
7876 .total_size = 8192,
7877 .page_size = 256,
7878 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
7879 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Zoltan HERPAIe0e8b2b2020-08-08 16:04:34 +02007880 .tested = TEST_OK_PREW,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007881 .probe = probe_spi_rdid,
7882 .probe_timing = TIMING_ZERO,
7883 .block_erasers =
7884 {
7885 {
7886 /* This chip supports erasing of the 8 so-called "parameter blocks" with
7887 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
7888 * have no effect on the memory contents, but sets a flag in the SR.
7889 .eraseblocks = {
7890 {8 * 1024, 8},
7891 {64 * 1024, 127} // inaccessible
7892 },
7893 .block_erase = spi_block_erase_40,
7894 }, { */
7895 .eraseblocks = { {64 * 1024, 128} },
7896 .block_erase = spi_block_erase_d8,
7897 }, {
7898 .eraseblocks = { {8 * 1024 * 1024, 1} },
7899 .block_erase = spi_block_erase_c7,
7900 }
7901 },
7902 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
7903 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
7904 .write = spi_chip_write_256,
7905 .read = spi_chip_read, /* also fast read 0x0B */
7906 .voltage = {2700, 3600},
7907 },
7908
7909 {
7910 .vendor = "Intel",
7911 .name = "25F640S33T8",
7912 .bustype = BUS_SPI,
7913 .manufacture_id = INTEL_ID,
7914 .model_id = INTEL_25F640S33T8,
7915 .total_size = 8192,
7916 .page_size = 256,
7917 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
7918 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7919 .tested = TEST_UNTESTED,
7920 .probe = probe_spi_rdid,
7921 .probe_timing = TIMING_ZERO,
7922 .block_erasers =
7923 {
7924 {
7925 /* This chip supports erasing of the 8 so-called "parameter blocks" with
7926 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
7927 * have no effect on the memory contents, but sets a flag in the SR.
7928 .eraseblocks = {
7929 {64 * 1024, 127}, // inaccessible
7930 {8 * 1024, 8}
7931 },
7932 .block_erase = spi_block_erase_40,
7933 }, { */
7934 .eraseblocks = { {64 * 1024, 128} },
7935 .block_erase = spi_block_erase_d8,
7936 }, {
7937 .eraseblocks = { {8 * 1024 * 1024, 1} },
7938 .block_erase = spi_block_erase_c7,
7939 }
7940 },
7941 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
7942 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
7943 .write = spi_chip_write_256,
7944 .read = spi_chip_read, /* also fast read 0x0B */
7945 .voltage = {2700, 3600},
7946 },
7947
7948 {
7949 .vendor = "Intel",
7950 .name = "28F001BN/BX-B",
7951 .bustype = BUS_PARALLEL,
7952 .manufacture_id = INTEL_ID,
7953 .model_id = INTEL_28F001B,
7954 .total_size = 128,
7955 .page_size = 128 * 1024, /* 8k + 2x4k + 112k */
7956 .tested = TEST_UNTESTED,
7957 .probe = probe_jedec,
7958 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7959 .block_erasers =
7960 {
7961 {
7962 .eraseblocks = {
7963 {8 * 1024, 1},
7964 {4 * 1024, 2},
7965 {112 * 1024, 1},
7966 },
7967 .block_erase = erase_block_82802ab,
7968 },
7969 },
7970 .write = write_82802ab,
7971 .read = read_memmapped,
7972 .voltage = {4500, 5500},
7973 },
7974
7975 {
7976 .vendor = "Intel",
7977 .name = "28F001BN/BX-T",
7978 .bustype = BUS_PARALLEL,
7979 .manufacture_id = INTEL_ID,
7980 .model_id = INTEL_28F001T,
7981 .total_size = 128,
7982 .page_size = 128 * 1024, /* 112k + 2x4k + 8k */
7983 .tested = TEST_OK_PREW,
7984 .probe = probe_jedec,
7985 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7986 .block_erasers =
7987 {
7988 {
7989 .eraseblocks = {
7990 {112 * 1024, 1},
7991 {4 * 1024, 2},
7992 {8 * 1024, 1},
7993 },
7994 .block_erase = erase_block_82802ab,
7995 },
7996 },
7997 .write = write_82802ab,
7998 .read = read_memmapped,
7999 .voltage = {4500, 5500},
8000 },
8001
8002 {
8003 .vendor = "Intel",
8004 .name = "28F002BC/BL/BV/BX-T",
8005 .bustype = BUS_PARALLEL,
8006 .manufacture_id = INTEL_ID,
8007 .model_id = INTEL_28F002T,
8008 .total_size = 256,
8009 .page_size = 256 * 1024,
8010 .tested = TEST_OK_PRE,
8011 .probe = probe_82802ab,
8012 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8013 .block_erasers =
8014 {
8015 {
8016 .eraseblocks = {
8017 {128 * 1024, 1},
8018 {96 * 1024, 1},
8019 {8 * 1024, 2},
8020 {16 * 1024, 1},
8021 },
8022 .block_erase = erase_block_82802ab,
8023 },
8024 },
8025 .write = write_82802ab,
8026 .read = read_memmapped,
8027 },
8028
8029 {
8030 .vendor = "Intel",
8031 .name = "28F004B5/BE/BV/BX-B",
8032 .bustype = BUS_PARALLEL,
8033 .manufacture_id = INTEL_ID,
8034 .model_id = INTEL_28F004B,
8035 .total_size = 512,
8036 .page_size = 128 * 1024, /* maximal block size */
8037 .tested = TEST_UNTESTED,
8038 .probe = probe_82802ab,
8039 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8040 .block_erasers =
8041 {
8042 {
8043 .eraseblocks = {
8044 {16 * 1024, 1},
8045 {8 * 1024, 2},
8046 {96 * 1024, 1},
8047 {128 * 1024, 3},
8048 },
8049 .block_erase = erase_block_82802ab,
8050 },
8051 },
8052 .write = write_82802ab,
8053 .read = read_memmapped,
8054 },
8055
8056 {
8057 .vendor = "Intel",
8058 .name = "28F004B5/BE/BV/BX-T",
8059 .bustype = BUS_PARALLEL,
8060 .manufacture_id = INTEL_ID,
8061 .model_id = INTEL_28F004T,
8062 .total_size = 512,
8063 .page_size = 128 * 1024, /* maximal block size */
8064 .tested = TEST_UNTESTED,
8065 .probe = probe_82802ab,
8066 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8067 .block_erasers =
8068 {
8069 {
8070 .eraseblocks = {
8071 {128 * 1024, 3},
8072 {96 * 1024, 1},
8073 {8 * 1024, 2},
8074 {16 * 1024, 1},
8075 },
8076 .block_erase = erase_block_82802ab,
8077 },
8078 },
8079 .write = write_82802ab,
8080 .read = read_memmapped,
8081 },
8082
8083 {
8084 .vendor = "Intel",
8085 .name = "28F008S3/S5/SC",
8086 .bustype = BUS_PARALLEL,
8087 .manufacture_id = INTEL_ID,
8088 .model_id = INTEL_28F004S3,
8089 .total_size = 512,
8090 .page_size = 256,
8091 .tested = TEST_UNTESTED,
8092 .probe = probe_82802ab,
8093 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8094 .block_erasers =
8095 {
8096 {
8097 .eraseblocks = { {64 * 1024, 8} },
8098 .block_erase = erase_block_82802ab,
8099 },
8100 },
8101 .unlock = unlock_28f004s5,
8102 .write = write_82802ab,
8103 .read = read_memmapped,
8104 },
8105
8106 {
8107 .vendor = "Intel",
8108 .name = "28F400BV/BX/CE/CV-B",
8109 .bustype = BUS_PARALLEL,
8110 .manufacture_id = INTEL_ID,
8111 .model_id = INTEL_28F400B,
8112 .total_size = 512,
8113 .page_size = 128 * 1024, /* maximal block size */
8114 .feature_bits = FEATURE_ADDR_SHIFTED,
8115 .tested = TEST_UNTESTED,
8116 .probe = probe_82802ab,
8117 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8118 .block_erasers =
8119 {
8120 {
8121 .eraseblocks = {
8122 {16 * 1024, 1},
8123 {8 * 1024, 2},
8124 {96 * 1024, 1},
8125 {128 * 1024, 3},
8126 },
8127 .block_erase = erase_block_82802ab,
8128 },
8129 },
8130 .write = write_82802ab,
8131 .read = read_memmapped,
8132 },
8133
8134 {
8135 .vendor = "Intel",
8136 .name = "28F400BV/BX/CE/CV-T",
8137 .bustype = BUS_PARALLEL,
8138 .manufacture_id = INTEL_ID,
8139 .model_id = INTEL_28F400T,
8140 .total_size = 512,
8141 .page_size = 128 * 1024, /* maximal block size */
8142 .feature_bits = FEATURE_ADDR_SHIFTED,
8143 .tested = TEST_UNTESTED,
8144 .probe = probe_82802ab,
8145 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8146 .block_erasers =
8147 {
8148 {
8149 .eraseblocks = {
8150 {128 * 1024, 3},
8151 {96 * 1024, 1},
8152 {8 * 1024, 2},
8153 {16 * 1024, 1},
8154 },
8155 .block_erase = erase_block_82802ab,
8156 },
8157 },
8158 .write = write_82802ab,
8159 .read = read_memmapped,
8160 },
8161
8162 {
8163 .vendor = "Intel",
8164 .name = "82802AB",
8165 .bustype = BUS_FWH,
8166 .manufacture_id = INTEL_ID,
8167 .model_id = INTEL_82802AB,
8168 .total_size = 512,
8169 .page_size = 64 * 1024,
8170 .feature_bits = FEATURE_REGISTERMAP,
Alan Green88552572019-07-24 13:56:06 +10008171 .tested = TEST_OK_PREW,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008172 .probe = probe_82802ab,
8173 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
8174 .block_erasers =
8175 {
8176 {
8177 .eraseblocks = { {64 * 1024, 8} },
8178 .block_erase = erase_block_82802ab,
8179 },
8180 },
8181 .unlock = unlock_regspace2_uniform_64k,
8182 .write = write_82802ab,
8183 .read = read_memmapped,
8184 .voltage = {3000, 3600},
8185 },
8186
8187 {
8188 .vendor = "Intel",
8189 .name = "82802AC",
8190 .bustype = BUS_FWH,
8191 .manufacture_id = INTEL_ID,
8192 .model_id = INTEL_82802AC,
8193 .total_size = 1024,
8194 .page_size = 64 * 1024,
8195 .feature_bits = FEATURE_REGISTERMAP,
8196 .tested = TEST_OK_PR,
8197 .probe = probe_82802ab,
8198 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
8199 .block_erasers =
8200 {
8201 {
8202 .eraseblocks = { {64 * 1024, 16} },
8203 .block_erase = erase_block_82802ab,
8204 },
8205 },
8206 .unlock = unlock_regspace2_uniform_64k,
8207 .write = write_82802ab,
8208 .read = read_memmapped,
8209 .voltage = {3000, 3600},
8210 },
8211
8212 {
8213 .vendor = "Macronix",
8214 .name = "MX23L12854",
8215 .bustype = BUS_SPI,
8216 .manufacture_id = MACRONIX_ID,
8217 .model_id = MACRONIX_MX23L12854,
8218 .total_size = 16384,
8219 .page_size = 256,
8220 .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA},
8221 .probe = probe_spi_rdid,
8222 .probe_timing = TIMING_ZERO,
8223 .write = NULL, /* MX23L12854 is a mask ROM, so it is read-only */
8224 .read = spi_chip_read, /* Fast read (0x0B) supported */
8225 .voltage = {3000, 3600},
8226 },
8227
8228 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008229 .vendor = "Macronix",
Michael Coppola583ea322014-08-20 18:56:35 +00008230 .name = "MX23L1654",
8231 .bustype = BUS_SPI,
8232 .manufacture_id = MACRONIX_ID,
8233 .model_id = MACRONIX_MX23L1654,
8234 .total_size = 2048,
8235 .page_size = 256,
8236 .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA},
8237 .probe = probe_spi_rdid,
8238 .probe_timing = TIMING_ZERO,
8239 .write = NULL, /* MX23L1654 is a mask ROM, so it is read-only */
8240 .read = spi_chip_read, /* Fast read (0x0B) supported */
8241 .voltage = {3000, 3600},
8242 },
8243
8244 {
8245 .vendor = "Macronix",
Michael Coppola4e7f36e2014-05-03 23:01:18 +00008246 .name = "MX23L3254",
8247 .bustype = BUS_SPI,
8248 .manufacture_id = MACRONIX_ID,
8249 .model_id = MACRONIX_MX23L3254,
8250 .total_size = 4096,
8251 .page_size = 256,
Stefan Tauner6455dff2014-05-26 00:36:24 +00008252 .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA},
Michael Coppola4e7f36e2014-05-03 23:01:18 +00008253 .probe = probe_spi_rdid,
8254 .probe_timing = TIMING_ZERO,
8255 .write = NULL, /* MX23L3254 is a mask ROM, so it is read-only */
8256 .read = spi_chip_read, /* Fast read (0x0B) supported */
8257 .voltage = {3000, 3600},
8258 },
8259
8260 {
8261 .vendor = "Macronix",
Michael Coppola583ea322014-08-20 18:56:35 +00008262 .name = "MX23L6454",
8263 .bustype = BUS_SPI,
8264 .manufacture_id = MACRONIX_ID,
8265 .model_id = MACRONIX_MX23L6454,
8266 .total_size = 8192,
8267 .page_size = 256,
Stefan Tauner23e10b82016-01-23 16:16:49 +00008268 .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA},
Michael Coppola583ea322014-08-20 18:56:35 +00008269 .probe = probe_spi_rdid,
8270 .probe_timing = TIMING_ZERO,
8271 .write = NULL, /* MX23L6454 is a mask ROM, so it is read-only */
8272 .read = spi_chip_read, /* Fast read (0x0B) supported */
8273 .voltage = {3000, 3600},
8274 },
8275
8276 {
8277 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00008278 .name = "MX25L1005(C)/MX25L1006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008279 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008280 .manufacture_id = MACRONIX_ID,
8281 .model_id = MACRONIX_MX25L1005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008282 .total_size = 128,
8283 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00008284 /* MX25L1006E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00008285 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00008286 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008287 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008288 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00008289 .block_erasers =
8290 {
8291 {
8292 .eraseblocks = { {4 * 1024, 32} },
8293 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008294 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00008295 .eraseblocks = { {64 * 1024, 2} },
8296 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008297 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00008298 .eraseblocks = { {128 * 1024, 1} },
8299 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008300 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00008301 .eraseblocks = { {128 * 1024, 1} },
8302 .block_erase = spi_block_erase_c7,
8303 },
8304 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008305 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008306 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008307 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00008308 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L1006E supports dual I/O */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008309 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008310 },
8311
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008312 {
8313 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008314 .name = "MX25L12805D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008315 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008316 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008317 .model_id = MACRONIX_MX25L12805D,
8318 .total_size = 16384,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008319 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008320 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8321 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008322 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008323 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008324 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008325 .block_erasers =
8326 {
8327 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008328 .eraseblocks = { {4 * 1024, 4096} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008329 .block_erase = spi_block_erase_20,
8330 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008331 .eraseblocks = { {64 * 1024, 256} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008332 .block_erase = spi_block_erase_d8,
8333 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008334 .eraseblocks = { {16 * 1024 * 1024, 1} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008335 .block_erase = spi_block_erase_60,
8336 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008337 .eraseblocks = { {16 * 1024 * 1024, 1} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008338 .block_erase = spi_block_erase_c7,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008339 }
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008340 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10008341 .printlock = spi_prettyprint_status_register_bp3_srwd,
8342 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008343 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00008344 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008345 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008346 },
8347
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008348 {
8349 .vendor = "Macronix",
Tao Xia571f6ad2021-07-21 16:41:53 +08008350 .name = "MX25L12833F/MX25L12835F/MX25L12845E/MX25L12865E/MX25L12873F",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008351 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008352 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008353 .model_id = MACRONIX_MX25L12805D,
8354 .total_size = 16384,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008355 .page_size = 256,
Tao Xia571f6ad2021-07-21 16:41:53 +08008356 /* OTP: MX25L12833F has 1KB total, others have 512B total; enter 0xB1, exit 0xC1 */
Alan Green1f9cc7d2019-07-01 11:10:45 +10008357 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner8179be52011-06-04 13:13:34 +00008358 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008359 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008360 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008361 .block_erasers =
8362 {
8363 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008364 .eraseblocks = { {4 * 1024, 4096} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008365 .block_erase = spi_block_erase_20,
8366 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008367 .eraseblocks = { {32 * 1024, 512} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008368 .block_erase = spi_block_erase_52,
8369 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008370 .eraseblocks = { {64 * 1024, 256} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008371 .block_erase = spi_block_erase_d8,
8372 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008373 .eraseblocks = { {16 * 1024 * 1024, 1} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008374 .block_erase = spi_block_erase_60,
8375 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008376 .eraseblocks = { {16 * 1024 * 1024, 1} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008377 .block_erase = spi_block_erase_c7,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008378 }
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008379 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10008380 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
8381 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8382 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008383 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00008384 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008385 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008386 },
8387
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008388 {
8389 .vendor = "Macronix",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008390 .name = "MX25L1605",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008391 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008392 .manufacture_id = MACRONIX_ID,
8393 .model_id = MACRONIX_MX25L1605,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008394 .total_size = 2048,
8395 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00008396 .feature_bits = FEATURE_WRSR_WREN,
Sven Schnelle4bd8a402011-03-07 10:59:06 +00008397 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008398 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008399 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008400 .block_erasers =
8401 {
8402 {
Stefan Tauner226037d2013-03-16 01:22:12 +00008403 .eraseblocks = { {64 * 1024, 32} },
8404 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008405 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00008406 .eraseblocks = { {64 * 1024, 32} },
8407 .block_erase = spi_block_erase_d8,
8408 }, {
8409 .eraseblocks = { {2 * 1024 * 1024, 1} },
8410 .block_erase = spi_block_erase_60,
8411 }, {
8412 .eraseblocks = { {2 * 1024 * 1024, 1} },
8413 .block_erase = spi_block_erase_c7,
8414 },
8415 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008416 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */
Stefan Tauner226037d2013-03-16 01:22:12 +00008417 .unlock = spi_disable_blockprotect,
8418 .write = spi_chip_write_256,
8419 .read = spi_chip_read, /* Fast read (0x0B) supported */
8420 .voltage = {2700, 3600},
8421 },
8422
8423 {
8424 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008425 .name = "MX25L1605A/MX25L1606E/MX25L1608E",
Stefan Tauner226037d2013-03-16 01:22:12 +00008426 .bustype = BUS_SPI,
8427 .manufacture_id = MACRONIX_ID,
8428 .model_id = MACRONIX_MX25L1605,
8429 .total_size = 2048,
8430 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008431 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L1606E and MX25L1608E only) */
Stefan Tauner226037d2013-03-16 01:22:12 +00008432 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8433 .tested = TEST_OK_PREW,
8434 .probe = probe_spi_rdid,
8435 .probe_timing = TIMING_ZERO,
8436 .block_erasers =
8437 {
8438 {
8439 .eraseblocks = { {4 * 1024, 512} },
8440 .block_erase = spi_block_erase_20,
8441 }, {
8442 .eraseblocks = { {64 * 1024, 32} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008443 .block_erase = spi_block_erase_52,
8444 }, {
8445 .eraseblocks = { {64 * 1024, 32} },
8446 .block_erase = spi_block_erase_d8,
8447 }, {
8448 .eraseblocks = { {2 * 1024 * 1024, 1} },
8449 .block_erase = spi_block_erase_60,
8450 }, {
8451 .eraseblocks = { {2 * 1024 * 1024, 1} },
8452 .block_erase = spi_block_erase_c7,
8453 },
8454 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008455 .printlock = spi_prettyprint_status_register_bp3_srwd, /* MX25L1605A bp2 only */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008456 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008457 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008458 .read = spi_chip_read, /* Fast read (0x0B) supported (MX25L1608E supports dual-I/O read) */
Stefan Tauner226037d2013-03-16 01:22:12 +00008459 .voltage = {2700, 3600},
8460 },
8461
8462 {
8463 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008464 .name = "MX25L1605D/MX25L1608D/MX25L1673E",
Stefan Tauner226037d2013-03-16 01:22:12 +00008465 .bustype = BUS_SPI,
8466 .manufacture_id = MACRONIX_ID,
8467 .model_id = MACRONIX_MX25L1605,
8468 .total_size = 2048,
8469 .page_size = 256,
8470 .feature_bits = FEATURE_WRSR_WREN,
8471 .tested = TEST_OK_PREW,
8472 .probe = probe_spi_rdid,
8473 .probe_timing = TIMING_ZERO,
8474 .block_erasers =
8475 {
8476 {
8477 .eraseblocks = { {4 * 1024, 512} },
8478 .block_erase = spi_block_erase_20,
8479 }, {
8480 .eraseblocks = { {64 * 1024, 32} },
8481 .block_erase = spi_block_erase_d8,
8482 }, {
8483 .eraseblocks = { {2 * 1024 * 1024, 1} },
8484 .block_erase = spi_block_erase_60,
8485 }, {
8486 .eraseblocks = { {2 * 1024 * 1024, 1} },
8487 .block_erase = spi_block_erase_c7,
8488 },
8489 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008490 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: Continuously Program (CP) mode, for 73E is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008491 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00008492 .write = spi_chip_write_256,
8493 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008494 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008495 },
8496
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008497 {
8498 .vendor = "Macronix",
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008499 .name = "MX25L1635D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008500 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008501 .manufacture_id = MACRONIX_ID,
8502 .model_id = MACRONIX_MX25L1635D,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008503 .total_size = 2048,
8504 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008505 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8506 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Angel Ponsc2054872021-01-15 18:57:32 +01008507 .tested = TEST_OK_PREW,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008508 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008509 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008510 .block_erasers =
8511 {
8512 {
8513 .eraseblocks = { {4 * 1024, 512} },
8514 .block_erase = spi_block_erase_20,
8515 }, {
8516 .eraseblocks = { {64 * 1024, 32} },
8517 .block_erase = spi_block_erase_d8,
8518 }, {
8519 .eraseblocks = { {2 * 1024 * 1024, 1} },
8520 .block_erase = spi_block_erase_60,
8521 }, {
8522 .eraseblocks = { {2 * 1024 * 1024, 1} },
8523 .block_erase = spi_block_erase_c7,
8524 }
8525 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008526 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008527 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008528 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008529 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008530 .voltage = {2700, 3600},
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008531 },
Stephan Guillouxfd315502009-04-20 22:54:13 +00008532
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008533 {
8534 .vendor = "Macronix",
Stephan Guilloux3611b802010-09-13 19:59:28 +00008535 .name = "MX25L1635E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008536 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008537 .manufacture_id = MACRONIX_ID,
8538 .model_id = MACRONIX_MX25L1635E,
Stephan Guilloux3611b802010-09-13 19:59:28 +00008539 .total_size = 2048,
8540 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008541 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8542 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux3611b802010-09-13 19:59:28 +00008543 .tested = TEST_UNTESTED,
8544 .probe = probe_spi_rdid,
8545 .probe_timing = TIMING_ZERO,
8546 .block_erasers =
8547 {
8548 {
8549 .eraseblocks = { {4 * 1024, 512} },
8550 .block_erase = spi_block_erase_20,
8551 }, {
8552 .eraseblocks = { {64 * 1024, 32} },
8553 .block_erase = spi_block_erase_d8,
8554 }, {
8555 .eraseblocks = { {2 * 1024 * 1024, 1} },
8556 .block_erase = spi_block_erase_60,
8557 }, {
8558 .eraseblocks = { {2 * 1024 * 1024, 1} },
8559 .block_erase = spi_block_erase_c7,
8560 }
8561 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008562 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008563 .unlock = spi_disable_blockprotect_bp3_srwd,
Stephan Guilloux3611b802010-09-13 19:59:28 +00008564 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008565 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00008566 .voltage = {2700, 3600},
Stephan Guilloux3611b802010-09-13 19:59:28 +00008567 },
8568
8569 {
8570 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008571 .name = "MX25L2005(C)/MX25L2006E",
8572 .bustype = BUS_SPI,
8573 .manufacture_id = MACRONIX_ID,
8574 .model_id = MACRONIX_MX25L2005,
8575 .total_size = 256,
8576 .page_size = 256,
8577 .feature_bits = FEATURE_WRSR_WREN,
8578 .tested = TEST_OK_PREW,
8579 .probe = probe_spi_rdid,
8580 .probe_timing = TIMING_ZERO,
8581 .block_erasers =
8582 {
8583 {
8584 .eraseblocks = { {4 * 1024, 64} },
8585 .block_erase = spi_block_erase_20,
8586 }, {
8587 .eraseblocks = { {64 * 1024, 4} },
8588 .block_erase = spi_block_erase_52,
8589 }, {
8590 .eraseblocks = { {64 * 1024, 4} },
8591 .block_erase = spi_block_erase_d8,
8592 }, {
8593 .eraseblocks = { {256 * 1024, 1} },
8594 .block_erase = spi_block_erase_60,
8595 }, {
8596 .eraseblocks = { {256 * 1024, 1} },
8597 .block_erase = spi_block_erase_c7,
8598 },
8599 },
8600 .printlock = spi_prettyprint_status_register_bp1_srwd,
8601 .unlock = spi_disable_blockprotect,
8602 .write = spi_chip_write_256,
8603 .read = spi_chip_read, /* Fast read (0x0B) supported */
8604 .voltage = {2700, 3600},
8605 },
8606
8607 {
8608 .vendor = "Macronix",
Alan Green03707302019-08-26 12:50:43 +10008609 .name = "MX25L25635F/MX25L25645G",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008610 .bustype = BUS_SPI,
8611 .manufacture_id = MACRONIX_ID,
8612 .model_id = MACRONIX_MX25L25635F,
8613 .total_size = 32768,
8614 .page_size = 256,
8615 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8616 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
8617 .tested = TEST_OK_PREW,
8618 .probe = probe_spi_rdid,
8619 .probe_timing = TIMING_ZERO,
8620 .block_erasers =
8621 {
8622 {
8623 .eraseblocks = { {4 * 1024, 8192} },
8624 .block_erase = spi_block_erase_21,
8625 }, {
8626 .eraseblocks = { {4 * 1024, 8192} },
8627 .block_erase = spi_block_erase_20,
8628 }, {
8629 .eraseblocks = { {32 * 1024, 1024} },
8630 .block_erase = spi_block_erase_5c,
8631 }, {
8632 .eraseblocks = { {32 * 1024, 1024} },
8633 .block_erase = spi_block_erase_52,
8634 }, {
8635 .eraseblocks = { {64 * 1024, 512} },
8636 .block_erase = spi_block_erase_dc,
8637 }, {
8638 .eraseblocks = { {64 * 1024, 512} },
8639 .block_erase = spi_block_erase_d8,
8640 }, {
8641 .eraseblocks = { {32 * 1024 * 1024, 1} },
8642 .block_erase = spi_block_erase_60,
8643 }, {
8644 .eraseblocks = { {32 * 1024 * 1024, 1} },
8645 .block_erase = spi_block_erase_c7,
8646 }
8647 },
8648 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
8649 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8650 .unlock = spi_disable_blockprotect_bp3_srwd,
8651 .write = spi_chip_write_256,
8652 .read = spi_chip_read, /* Fast read (0x0B) supported */
8653 .voltage = {2700, 3600},
8654 },
8655
8656 {
8657 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00008658 .name = "MX25L3205(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008659 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008660 .manufacture_id = MACRONIX_ID,
8661 .model_id = MACRONIX_MX25L3205,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008662 .total_size = 4096,
8663 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00008664 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00008665 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008666 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008667 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00008668 .block_erasers =
8669 {
8670 {
Stefan Tauner226037d2013-03-16 01:22:12 +00008671 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00008672 .block_erase = spi_block_erase_20,
8673 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00008674 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00008675 .block_erase = spi_block_erase_d8,
8676 }, {
8677 .eraseblocks = { {4 * 1024 * 1024, 1} },
8678 .block_erase = spi_block_erase_60,
8679 }, {
8680 .eraseblocks = { {4 * 1024 * 1024, 1} },
8681 .block_erase = spi_block_erase_c7,
8682 },
8683 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008684 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008685 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008686 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008687 .read = spi_chip_read, /* Fast read (0x0B) supported */
8688 .voltage = {2700, 3600},
8689 },
8690
8691 {
8692 .vendor = "Macronix",
8693 .name = "MX25L3205D/MX25L3208D",
8694 .bustype = BUS_SPI,
8695 .manufacture_id = MACRONIX_ID,
8696 .model_id = MACRONIX_MX25L3205,
8697 .total_size = 4096,
8698 .page_size = 256,
8699 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8700 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8701 .tested = TEST_OK_PREW,
8702 .probe = probe_spi_rdid,
8703 .probe_timing = TIMING_ZERO,
8704 .block_erasers =
8705 {
8706 {
8707 .eraseblocks = { {4 * 1024, 1024} },
8708 .block_erase = spi_block_erase_20,
8709 }, {
8710 .eraseblocks = { {64 * 1024, 64} },
8711 .block_erase = spi_block_erase_d8,
8712 }, {
8713 .eraseblocks = { {4 * 1024 * 1024, 1} },
8714 .block_erase = spi_block_erase_60,
8715 }, {
8716 .eraseblocks = { {4 * 1024 * 1024, 1} },
8717 .block_erase = spi_block_erase_c7,
8718 },
8719 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008720 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008721 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00008722 .write = spi_chip_write_256,
8723 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
8724 .voltage = {2700, 3600},
8725 },
8726
8727 {
8728 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008729 .name = "MX25L3206E/MX25L3208E",
Stefan Tauner226037d2013-03-16 01:22:12 +00008730 .bustype = BUS_SPI,
8731 .manufacture_id = MACRONIX_ID,
8732 .model_id = MACRONIX_MX25L3205,
8733 .total_size = 4096,
8734 .page_size = 256,
8735 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8736 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8737 .tested = TEST_OK_PREW,
8738 .probe = probe_spi_rdid,
8739 .probe_timing = TIMING_ZERO,
8740 .block_erasers =
8741 {
8742 {
8743 .eraseblocks = { {4 * 1024, 1024} },
8744 .block_erase = spi_block_erase_20,
8745 }, {
8746 .eraseblocks = { {64 * 1024, 64} },
8747 .block_erase = spi_block_erase_d8,
8748 }, {
8749 .eraseblocks = { {64 * 1024, 64} },
8750 .block_erase = spi_block_erase_52,
8751 }, {
8752 .eraseblocks = { {4 * 1024 * 1024, 1} },
8753 .block_erase = spi_block_erase_60,
8754 }, {
8755 .eraseblocks = { {4 * 1024 * 1024, 1} },
8756 .block_erase = spi_block_erase_c7,
8757 },
8758 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008759 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008760 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00008761 .write = spi_chip_write_256,
8762 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008763 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008764 },
8765
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008766 {
8767 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008768 .name = "MX25L3235D",
8769 .bustype = BUS_SPI,
8770 .manufacture_id = MACRONIX_ID,
8771 .model_id = MACRONIX_MX25L3235D,
8772 .total_size = 4096,
8773 .page_size = 256,
8774 /* OTP: 256B total; enter 0xB1, exit 0xC1 */
8775 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8776 .tested = TEST_UNTESTED,
8777 .probe = probe_spi_rdid,
8778 .probe_timing = TIMING_ZERO,
8779 .block_erasers =
8780 {
8781 {
8782 .eraseblocks = { {4 * 1024, 1024} },
8783 .block_erase = spi_block_erase_20,
8784 }, {
8785 .eraseblocks = { {64 * 1024, 64} },
8786 .block_erase = spi_block_erase_d8,
8787 }, {
8788 .eraseblocks = { {4 * 1024 * 1024, 1} },
8789 .block_erase = spi_block_erase_60,
8790 }, {
8791 .eraseblocks = { {4 * 1024 * 1024, 1} },
8792 .block_erase = spi_block_erase_c7,
8793 }
8794 },
8795 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8796 .unlock = spi_disable_blockprotect_bp3_srwd,
8797 .write = spi_chip_write_256,
8798 .read = spi_chip_read,
8799 .voltage = {2700, 3600},
8800 },
8801
8802 {
8803 .vendor = "Macronix",
Nico Huberb6683e02021-04-21 13:04:29 +02008804 .name = "MX25L3233F/MX25L3273E",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008805 .bustype = BUS_SPI,
8806 .manufacture_id = MACRONIX_ID,
8807 .model_id = MACRONIX_MX25L3205,
8808 .total_size = 4096,
8809 .page_size = 256,
Nico Huber6e69e2b2021-04-21 13:03:13 +02008810 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008811 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +00008812 .tested = TEST_OK_PREW,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008813 .probe = probe_spi_rdid,
8814 .probe_timing = TIMING_ZERO,
8815 .block_erasers =
8816 {
8817 {
8818 .eraseblocks = { {4 * 1024, 1024} },
8819 .block_erase = spi_block_erase_20,
8820 }, {
8821 .eraseblocks = { {32 * 1024, 128} },
8822 .block_erase = spi_block_erase_52,
8823 }, {
8824 .eraseblocks = { {64 * 1024, 64} },
8825 .block_erase = spi_block_erase_d8,
8826 }, {
8827 .eraseblocks = { {4 * 1024 * 1024, 1} },
8828 .block_erase = spi_block_erase_60,
8829 }, {
8830 .eraseblocks = { {4 * 1024 * 1024, 1} },
8831 .block_erase = spi_block_erase_c7,
8832 },
8833 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008834 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008835 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008836 .write = spi_chip_write_256,
8837 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
Nico Huberb6683e02021-04-21 13:04:29 +02008838 .voltage = {2700, 3600}, /* 33F 2.65V..3.6V */
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008839 },
8840
8841 {
8842 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008843 .name = "MX25L4005(A/C)/MX25L4006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008844 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008845 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008846 .model_id = MACRONIX_MX25L4005,
8847 .total_size = 512,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00008848 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008849 .feature_bits = FEATURE_WRSR_WREN,
8850 .tested = TEST_OK_PREW,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00008851 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008852 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008853 .block_erasers =
8854 {
8855 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008856 .eraseblocks = { {4 * 1024, 128} },
Sean Nelson54596372010-01-09 05:30:14 +00008857 .block_erase = spi_block_erase_20,
8858 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008859 .eraseblocks = { {64 * 1024, 8} },
8860 .block_erase = spi_block_erase_52,
8861 }, {
8862 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson54596372010-01-09 05:30:14 +00008863 .block_erase = spi_block_erase_d8,
8864 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008865 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00008866 .block_erase = spi_block_erase_60,
8867 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008868 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00008869 .block_erase = spi_block_erase_c7,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008870 },
Sean Nelson54596372010-01-09 05:30:14 +00008871 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10008872 .printlock = spi_prettyprint_status_register_bp2_srwd,
8873 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008874 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008875 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008876 .voltage = {2700, 3600},
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00008877 },
8878
8879 {
8880 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008881 .name = "MX25L512(E)/MX25V512(C)",
8882 .bustype = BUS_SPI,
8883 .manufacture_id = MACRONIX_ID,
8884 .model_id = MACRONIX_MX25L512,
8885 .total_size = 64,
8886 .page_size = 256,
8887 /* MX25L512E supports SFDP */
8888 .feature_bits = FEATURE_WRSR_WREN,
8889 .tested = TEST_OK_PREW,
8890 .probe = probe_spi_rdid,
8891 .probe_timing = TIMING_ZERO,
8892 .block_erasers =
8893 {
8894 {
8895 .eraseblocks = { {4 * 1024, 16} },
8896 .block_erase = spi_block_erase_20,
8897 }, {
8898 .eraseblocks = { {64 * 1024, 1} },
8899 .block_erase = spi_block_erase_52,
8900 }, {
8901 .eraseblocks = { {64 * 1024, 1} },
8902 .block_erase = spi_block_erase_d8,
8903 }, {
8904 .eraseblocks = { {64 * 1024, 1} },
8905 .block_erase = spi_block_erase_60,
8906 }, {
8907 .eraseblocks = { {64 * 1024, 1} },
8908 .block_erase = spi_block_erase_c7,
8909 },
8910 },
8911 .printlock = spi_prettyprint_status_register_bp1_srwd,
8912 .unlock = spi_disable_blockprotect,
8913 .write = spi_chip_write_256,
8914 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L512E supports dual I/O */
8915 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V512(C) */
8916 },
8917
8918 {
8919 .vendor = "Macronix",
Steve Markgraf7e6f3a72020-07-13 18:22:56 +02008920 .name = "MX25L5121E",
8921 .bustype = BUS_SPI,
8922 .manufacture_id = MACRONIX_ID,
8923 .model_id = MACRONIX_MX25L5121E,
8924 .total_size = 64,
8925 .page_size = 32,
8926 .feature_bits = FEATURE_WRSR_WREN,
8927 .tested = TEST_OK_PREW,
8928 .probe = probe_spi_rdid,
8929 .probe_timing = TIMING_ZERO,
8930 .block_erasers =
8931 {
8932 {
8933 .eraseblocks = { {4 * 1024, 16} },
8934 .block_erase = spi_block_erase_20,
8935 }, {
8936 .eraseblocks = { {64 * 1024, 1} },
8937 .block_erase = spi_block_erase_52,
8938 }, {
8939 .eraseblocks = { {64 * 1024, 1} },
8940 .block_erase = spi_block_erase_d8,
8941 }, {
8942 .eraseblocks = { {64 * 1024, 1} },
8943 .block_erase = spi_block_erase_60,
8944 }, {
8945 .eraseblocks = { {64 * 1024, 1} },
8946 .block_erase = spi_block_erase_c7,
8947 },
8948 },
8949 .printlock = spi_prettyprint_status_register_bp1_srwd,
8950 .unlock = spi_disable_blockprotect,
8951 .write = spi_chip_write_256,
8952 .read = spi_chip_read, /* Fast read (0x0B) supported */
8953 .voltage = {2700, 3600},
8954 },
8955
8956 {
8957 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008958 .name = "MX25L6405",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008959 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008960 .manufacture_id = MACRONIX_ID,
8961 .model_id = MACRONIX_MX25L6405,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008962 .total_size = 8192,
8963 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008964 /* Has an additional 512B EEPROM sector */
8965 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzelac427b22012-02-16 21:07:07 +00008966 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008967 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008968 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008969 .block_erasers =
8970 {
8971 {
8972 .eraseblocks = { {64 * 1024, 128} },
8973 .block_erase = spi_block_erase_20,
8974 }, {
8975 .eraseblocks = { {64 * 1024, 128} },
8976 .block_erase = spi_block_erase_d8,
8977 }, {
8978 .eraseblocks = { {8 * 1024 * 1024, 1} },
8979 .block_erase = spi_block_erase_60,
8980 }, {
8981 .eraseblocks = { {8 * 1024 * 1024, 1} },
8982 .block_erase = spi_block_erase_c7,
8983 }
8984 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008985 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: error flag */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008986 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008987 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008988 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008989 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008990 },
8991
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008992 {
8993 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008994 .name = "MX25L6405D",
Stefan Tauner226037d2013-03-16 01:22:12 +00008995 .bustype = BUS_SPI,
8996 .manufacture_id = MACRONIX_ID,
8997 .model_id = MACRONIX_MX25L6405,
8998 .total_size = 8192,
8999 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009000 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
Stefan Tauner226037d2013-03-16 01:22:12 +00009001 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9002 .tested = TEST_OK_PREW,
9003 .probe = probe_spi_rdid,
9004 .probe_timing = TIMING_ZERO,
9005 .block_erasers =
9006 {
9007 {
9008 .eraseblocks = { {4 * 1024, 2048} },
9009 .block_erase = spi_block_erase_20,
9010 }, {
9011 .eraseblocks = { {64 * 1024, 128} },
9012 .block_erase = spi_block_erase_d8,
9013 }, {
9014 .eraseblocks = { {8 * 1024 * 1024, 1} },
9015 .block_erase = spi_block_erase_60,
9016 }, {
9017 .eraseblocks = { {8 * 1024 * 1024, 1} },
9018 .block_erase = spi_block_erase_c7,
9019 }
9020 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009021 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009022 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00009023 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009024 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0xBB) supported */
Stefan Tauner226037d2013-03-16 01:22:12 +00009025 .voltage = {2700, 3600},
9026 },
9027
9028 {
9029 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009030 .name = "MX25L6406E/MX25L6408E",
9031 .bustype = BUS_SPI,
9032 .manufacture_id = MACRONIX_ID,
9033 .model_id = MACRONIX_MX25L6405,
9034 .total_size = 8192,
9035 .page_size = 256,
9036 /* MX25L6406E supports SFDP */
9037 /* OTP: 06E 64B total; enter 0xB1, exit 0xC1 */
9038 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9039 .tested = TEST_OK_PREW,
9040 .probe = probe_spi_rdid,
9041 .probe_timing = TIMING_ZERO,
9042 .block_erasers =
9043 {
9044 {
9045 .eraseblocks = { {4 * 1024, 2048} },
9046 .block_erase = spi_block_erase_20,
9047 }, {
9048 .eraseblocks = { {64 * 1024, 128} },
9049 .block_erase = spi_block_erase_52,
9050 }, {
9051 .eraseblocks = { {64 * 1024, 128} },
9052 .block_erase = spi_block_erase_d8,
9053 }, {
9054 .eraseblocks = { {8 * 1024 * 1024, 1} },
9055 .block_erase = spi_block_erase_60,
9056 }, {
9057 .eraseblocks = { {8 * 1024 * 1024, 1} },
9058 .block_erase = spi_block_erase_c7,
9059 }
9060 },
9061 .printlock = spi_prettyprint_status_register_bp3_srwd,
9062 .unlock = spi_disable_blockprotect_bp3_srwd,
9063 .write = spi_chip_write_256,
9064 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read supported */
9065 .voltage = {2700, 3600},
9066 },
9067
9068 {
9069 .vendor = "Macronix",
Nico Huberb0072782017-12-06 21:02:57 +01009070 .name = "MX25L6436E/MX25L6445E/MX25L6465E/MX25L6473E/MX25L6473F",
Stefan Tauner226037d2013-03-16 01:22:12 +00009071 .bustype = BUS_SPI,
9072 .manufacture_id = MACRONIX_ID,
9073 .model_id = MACRONIX_MX25L6405,
9074 .total_size = 8192,
9075 .page_size = 256,
9076 /* supports SFDP */
9077 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9078 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9079 .tested = TEST_OK_PREW,
9080 .probe = probe_spi_rdid,
9081 .probe_timing = TIMING_ZERO,
9082 .block_erasers =
9083 {
9084 {
9085 .eraseblocks = { {4 * 1024, 2048} },
9086 .block_erase = spi_block_erase_20,
9087 }, {
9088 .eraseblocks = { {32 * 1024, 256} },
9089 .block_erase = spi_block_erase_52,
9090 }, {
9091 .eraseblocks = { {64 * 1024, 128} },
9092 .block_erase = spi_block_erase_d8,
9093 }, {
9094 .eraseblocks = { {8 * 1024 * 1024, 1} },
9095 .block_erase = spi_block_erase_60,
9096 }, {
9097 .eraseblocks = { {8 * 1024 * 1024, 1} },
9098 .block_erase = spi_block_erase_c7,
9099 }
9100 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009101 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009102 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00009103 .write = spi_chip_write_256,
9104 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9105 .voltage = {2700, 3600},
9106 },
9107
9108 {
9109 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009110 .name = "MX25L6495F",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009111 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009112 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009113 .model_id = MACRONIX_MX25L6495F,
9114 .total_size = 8192,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00009115 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009116 /* OTP: 1024B total; enter 0xB1, exit 0xC1 */
Stefan Tauner226037d2013-03-16 01:22:12 +00009117 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +00009118 .tested = TEST_OK_PREW,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00009119 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009120 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00009121 .block_erasers =
9122 {
9123 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009124 .eraseblocks = { {4 * 1024, 2048} },
Sean Nelson54596372010-01-09 05:30:14 +00009125 .block_erase = spi_block_erase_20,
9126 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009127 .eraseblocks = { {64 * 1024, 128} },
Sean Nelson54596372010-01-09 05:30:14 +00009128 .block_erase = spi_block_erase_d8,
9129 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009130 .eraseblocks = { {32 * 1024, 256} },
9131 .block_erase = spi_block_erase_52,
9132 }, {
9133 .eraseblocks = { {8 * 1024 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00009134 .block_erase = spi_block_erase_60,
9135 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009136 .eraseblocks = { {8 * 1024 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00009137 .block_erase = spi_block_erase_c7,
9138 }
9139 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10009140 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009141 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009142 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009143 .voltage = {2700, 3600},
9144 },
9145
9146 {
9147 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009148 .name = "MX25L8005/MX25L8006E/MX25L8008E/MX25V8005",
Stefan Tauner5c316f92015-02-08 21:57:52 +00009149 .bustype = BUS_SPI,
9150 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009151 .model_id = MACRONIX_MX25L8005,
9152 .total_size = 1024,
9153 .page_size = 256,
9154 /* MX25L8006E, MX25L8008E support SFDP */
9155 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L8006E, MX25L8008E only) */
9156 .feature_bits = FEATURE_WRSR_WREN,
9157 .tested = TEST_OK_PREW,
9158 .probe = probe_spi_rdid,
9159 .probe_timing = TIMING_ZERO,
9160 .block_erasers =
9161 {
9162 {
9163 .eraseblocks = { {4 * 1024, 256} },
9164 .block_erase = spi_block_erase_20,
9165 }, {
9166 .eraseblocks = { {64 * 1024, 16} },
9167 .block_erase = spi_block_erase_52,
9168 }, {
9169 .eraseblocks = { {64 * 1024, 16} },
9170 .block_erase = spi_block_erase_d8,
9171 }, {
9172 .eraseblocks = { {1024 * 1024, 1} },
9173 .block_erase = spi_block_erase_60,
9174 }, {
9175 .eraseblocks = { {1024 * 1024, 1} },
9176 .block_erase = spi_block_erase_c7,
9177 },
9178 },
9179 .printlock = spi_prettyprint_status_register_bp2_srwd,
9180 .unlock = spi_disable_blockprotect,
9181 .write = spi_chip_write_256,
9182 .read = spi_chip_read, /* Fast read (0x0B) supported */
9183 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V8005 */
9184 },
9185
9186 {
9187 .vendor = "Macronix",
sibradzicf62623c2020-03-14 17:21:34 +09009188 .name = "MX25R3235F",
9189 .bustype = BUS_SPI,
9190 .manufacture_id = MACRONIX_ID,
9191 .model_id = MACRONIX_MX25R3235F,
9192 .total_size = 4096,
9193 .page_size = 256,
9194 /* OTP: 1024B total; enter 0xB1, exit 0xC1 */
9195 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9196 .tested = TEST_OK_PREW,
9197 .probe = probe_spi_rdid,
9198 .probe_timing = TIMING_ZERO,
9199 .block_erasers =
9200 {
9201 {
9202 .eraseblocks = { {4 * 1024, 1024} },
9203 .block_erase = spi_block_erase_20,
9204 }, {
9205 .eraseblocks = { {64 * 1024, 64} },
9206 .block_erase = spi_block_erase_d8,
9207 }, {
9208 .eraseblocks = { {32 * 1024, 128} },
9209 .block_erase = spi_block_erase_52,
9210 }, {
9211 .eraseblocks = { {4 * 1024 * 1024, 1} },
9212 .block_erase = spi_block_erase_60,
9213 }, {
9214 .eraseblocks = { {4 * 1024 * 1024, 1} },
9215 .block_erase = spi_block_erase_c7,
9216 }
9217 },
9218 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit 6 is quad enable */
9219 .unlock = spi_disable_blockprotect_bp3_srwd,
9220 .write = spi_chip_write_256,
9221 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9222 .voltage = {1650, 3600},
9223 },
9224
9225 {
9226 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009227 .name = "MX25R6435F",
9228 .bustype = BUS_SPI,
9229 .manufacture_id = MACRONIX_ID,
9230 .model_id = MACRONIX_MX25R6435F,
9231 .total_size = 8192,
9232 .page_size = 256,
9233 /* OTP: 1024B total; enter 0xB1, exit 0xC1 */
9234 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9235 .tested = TEST_OK_PREW,
9236 .probe = probe_spi_rdid,
9237 .probe_timing = TIMING_ZERO,
9238 .block_erasers =
9239 {
9240 {
9241 .eraseblocks = { {4 * 1024, 2048} },
9242 .block_erase = spi_block_erase_20,
9243 }, {
9244 .eraseblocks = { {64 * 1024, 128} },
9245 .block_erase = spi_block_erase_d8,
9246 }, {
9247 .eraseblocks = { {32 * 1024, 256} },
9248 .block_erase = spi_block_erase_52,
9249 }, {
9250 .eraseblocks = { {8 * 1024 * 1024, 1} },
9251 .block_erase = spi_block_erase_60,
9252 }, {
9253 .eraseblocks = { {8 * 1024 * 1024, 1} },
9254 .block_erase = spi_block_erase_c7,
9255 }
9256 },
9257 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9258 .unlock = spi_disable_blockprotect_bp3_srwd,
9259 .write = spi_chip_write_256,
9260 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9261 .voltage = {1650, 3600},
9262 },
9263
9264 {
9265 .vendor = "Macronix",
9266 .name = "MX25U12835F",
9267 .bustype = BUS_SPI,
9268 .manufacture_id = MACRONIX_ID,
9269 .model_id = MACRONIX_MX25U12835E,
Stefan Tauner5c316f92015-02-08 21:57:52 +00009270 .total_size = 16384,
9271 .page_size = 256,
9272 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
Alan Green1f9cc7d2019-07-01 11:10:45 +10009273 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner5c316f92015-02-08 21:57:52 +00009274 .tested = TEST_OK_PREW,
9275 .probe = probe_spi_rdid,
9276 .probe_timing = TIMING_ZERO,
9277 .block_erasers =
9278 {
9279 {
9280 .eraseblocks = { {4 * 1024, 4096} },
9281 .block_erase = spi_block_erase_20,
9282 }, {
9283 .eraseblocks = { {32 * 1024, 512} },
9284 .block_erase = spi_block_erase_52,
9285 }, {
9286 .eraseblocks = { {64 * 1024, 256} },
9287 .block_erase = spi_block_erase_d8,
9288 }, {
9289 .eraseblocks = { {16 * 1024 * 1024, 1} },
9290 .block_erase = spi_block_erase_60,
9291 }, {
9292 .eraseblocks = { {16 * 1024 * 1024, 1} },
9293 .block_erase = spi_block_erase_c7,
9294 }
9295 },
Angel Ponsf112e242018-09-30 20:14:17 +02009296 /* TODO: security register */
9297 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9298 .unlock = spi_disable_blockprotect_bp3_srwd,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009299 .write = spi_chip_write_256, /* Multi I/O supported */
Angel Ponsf112e242018-09-30 20:14:17 +02009300 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9301 .voltage = {1650, 2000},
9302 },
9303
9304 {
9305 .vendor = "Macronix",
Vincent Palatinf800f552013-03-15 02:03:16 +00009306 .name = "MX25U1635E",
9307 .bustype = BUS_SPI,
9308 .manufacture_id = MACRONIX_ID,
9309 .model_id = MACRONIX_MX25U1635E,
9310 .total_size = 2048,
9311 .page_size = 256,
9312 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9313 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
9314 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner5c316f92015-02-08 21:57:52 +00009315 .tested = TEST_OK_PR,
Vincent Palatinf800f552013-03-15 02:03:16 +00009316 .probe = probe_spi_rdid,
9317 .probe_timing = TIMING_ZERO,
9318 .block_erasers =
9319 {
9320 {
9321 .eraseblocks = { {4 * 1024, 512} },
9322 .block_erase = spi_block_erase_20,
9323 }, {
9324 .eraseblocks = { {32 * 1024, 64} },
9325 .block_erase = spi_block_erase_52,
9326 }, {
9327 .eraseblocks = { {64 * 1024, 32} },
9328 .block_erase = spi_block_erase_d8,
9329 }, {
9330 .eraseblocks = { {2 * 1024 * 1024, 1} },
9331 .block_erase = spi_block_erase_60,
9332 }, {
9333 .eraseblocks = { {2 * 1024 * 1024, 1} },
9334 .block_erase = spi_block_erase_c7,
9335 }
9336 },
9337 /* TODO: security register */
Stefan Tauner12f3d512014-05-27 21:27:27 +00009338 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009339 .unlock = spi_disable_blockprotect_bp3_srwd,
Vincent Palatinf800f552013-03-15 02:03:16 +00009340 .write = spi_chip_write_256,
9341 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9342 .voltage = {1650, 2000},
9343 },
9344
9345 {
9346 .vendor = "Macronix",
David Tomaschikf75d8c52019-06-20 09:49:01 -07009347 .name = "MX25U25635F",
9348 .bustype = BUS_SPI,
9349 .manufacture_id = MACRONIX_ID,
9350 .model_id = MACRONIX_MX25U25635F,
9351 .total_size = 32768,
9352 .page_size = 256,
9353 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9354 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_4BA,
Nikolai Artemiev148254b2021-03-23 17:21:10 +11009355 .tested = TEST_OK_PREW,
David Tomaschikf75d8c52019-06-20 09:49:01 -07009356 .probe = probe_spi_rdid,
9357 .probe_timing = TIMING_ZERO,
9358 .block_erasers =
9359 {
9360 {
9361 .eraseblocks = { {4 * 1024, 8192} },
9362 .block_erase = spi_block_erase_21,
9363 }, {
9364 .eraseblocks = { {4 * 1024, 8192} },
9365 .block_erase = spi_block_erase_20,
9366 }, {
9367 .eraseblocks = { {32 * 1024, 1024} },
9368 .block_erase = spi_block_erase_5c,
9369 }, {
9370 .eraseblocks = { {32 * 1024, 1024} },
9371 .block_erase = spi_block_erase_52,
9372 }, {
9373 .eraseblocks = { {64 * 1024, 512} },
9374 .block_erase = spi_block_erase_dc,
9375 }, {
9376 .eraseblocks = { {64 * 1024, 512} },
9377 .block_erase = spi_block_erase_d8,
9378 }, {
9379 .eraseblocks = { {32 * 1024 * 1024, 1} },
9380 .block_erase = spi_block_erase_60,
9381 }, {
9382 .eraseblocks = { {32 * 1024 * 1024, 1} },
9383 .block_erase = spi_block_erase_c7,
9384 }
9385 },
9386 /* TODO: security register */
9387 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9388 .unlock = spi_disable_blockprotect_bp3_srwd,
9389 .write = spi_chip_write_256, /* Multi I/O supported */
9390 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9391 .voltage = {1650, 2000},
9392 },
9393
9394 {
9395 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009396 .name = "MX25U3235E/F",
9397 .bustype = BUS_SPI,
9398 .manufacture_id = MACRONIX_ID,
9399 .model_id = MACRONIX_MX25U3235E,
9400 .total_size = 4096,
9401 .page_size = 256,
9402 /* F model supports SFDP */
9403 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9404 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
9405 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
9406 .tested = TEST_OK_PREW,
9407 .probe = probe_spi_rdid,
9408 .probe_timing = TIMING_ZERO,
9409 .block_erasers =
9410 {
9411 {
9412 .eraseblocks = { {4 * 1024, 1024} },
9413 .block_erase = spi_block_erase_20,
9414 }, {
9415 .eraseblocks = { {32 * 1024, 128} },
9416 .block_erase = spi_block_erase_52,
9417 }, {
9418 .eraseblocks = { {64 * 1024, 64} },
9419 .block_erase = spi_block_erase_d8,
9420 }, {
9421 .eraseblocks = { {4 * 1024 * 1024, 1} },
9422 .block_erase = spi_block_erase_60,
9423 }, {
9424 .eraseblocks = { {4 * 1024 * 1024, 1} },
9425 .block_erase = spi_block_erase_c7,
9426 }
9427 },
9428 /* TODO: security register */
9429 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9430 .unlock = spi_disable_blockprotect_bp3_srwd,
9431 .write = spi_chip_write_256,
9432 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9433 .voltage = {1650, 2000},
9434 },
9435
9436 {
9437 .vendor = "Macronix",
Daniel Thompsoncadd4202018-06-04 13:52:22 +01009438 .name = "MX25U51245G",
9439 .bustype = BUS_SPI,
9440 .manufacture_id = MACRONIX_ID,
9441 .model_id = MACRONIX_MX25U51245G,
9442 .total_size = 65536,
9443 .page_size = 256,
9444 /* OTP: 512B factory programmed and 512B customer programmed; enter 0xB1, exit 0xC1 */
9445 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_4BA,
9446 .tested = TEST_OK_PREW,
9447 .probe = probe_spi_rdid,
9448 .probe_timing = TIMING_ZERO,
9449 .block_erasers =
9450 {
9451 {
9452 .eraseblocks = { {4 * 1024, 16384} },
9453 .block_erase = spi_block_erase_21,
9454 }, {
9455 .eraseblocks = { {4 * 1024, 16384} },
9456 .block_erase = spi_block_erase_20,
9457 }, {
9458 .eraseblocks = { {32 * 1024, 2048} },
9459 .block_erase = spi_block_erase_5c,
9460 }, {
9461 .eraseblocks = { {32 * 1024, 2048} },
9462 .block_erase = spi_block_erase_52,
9463 }, {
9464 .eraseblocks = { {64 * 1024, 1024} },
9465 .block_erase = spi_block_erase_dc,
9466 }, {
9467 .eraseblocks = { {64 * 1024, 1024} },
9468 .block_erase = spi_block_erase_d8,
9469 }, {
9470 .eraseblocks = { {64 * 1024 * 1024, 1} },
9471 .block_erase = spi_block_erase_60,
9472 }, {
9473 .eraseblocks = { {64 * 1024 * 1024, 1} },
9474 .block_erase = spi_block_erase_c7,
9475 }
9476 },
9477 /* TODO: security register */
9478 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9479 .unlock = spi_disable_blockprotect_bp3_srwd,
9480 .write = spi_chip_write_256, /* Multi I/O supported */
9481 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9482 .voltage = {1650, 2000},
9483 },
9484
9485 {
9486 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009487 .name = "MX25U6435E/F",
Stefan Tauner40bc96f2015-01-10 09:33:14 +00009488 .bustype = BUS_SPI,
9489 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009490 .model_id = MACRONIX_MX25U6435E,
Stefan Tauner40bc96f2015-01-10 09:33:14 +00009491 .total_size = 8192,
9492 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009493 /* F model supports SFDP */
9494 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9495 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
9496 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner40bc96f2015-01-10 09:33:14 +00009497 .tested = TEST_OK_PREW,
9498 .probe = probe_spi_rdid,
9499 .probe_timing = TIMING_ZERO,
9500 .block_erasers =
9501 {
9502 {
9503 .eraseblocks = { {4 * 1024, 2048} },
9504 .block_erase = spi_block_erase_20,
9505 }, {
Stefan Tauner40bc96f2015-01-10 09:33:14 +00009506 .eraseblocks = { {32 * 1024, 256} },
9507 .block_erase = spi_block_erase_52,
9508 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009509 .eraseblocks = { {64 * 1024, 128} },
9510 .block_erase = spi_block_erase_d8,
9511 }, {
Stefan Tauner40bc96f2015-01-10 09:33:14 +00009512 .eraseblocks = { {8 * 1024 * 1024, 1} },
9513 .block_erase = spi_block_erase_60,
9514 }, {
9515 .eraseblocks = { {8 * 1024 * 1024, 1} },
9516 .block_erase = spi_block_erase_c7,
9517 }
9518 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10009519 /* TODO: security register */
Nathan Rennie-Waldock5a7f9422018-08-10 15:35:23 +01009520 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9521 .unlock = spi_disable_blockprotect_bp3_srwd,
9522 .write = spi_chip_write_256,
9523 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Alan Green1f9cc7d2019-07-01 11:10:45 +10009524 .voltage = {1650, 2000},
9525 },
9526
9527 {
9528 .vendor = "Macronix",
9529 .name = "MX25U8032E",
9530 .bustype = BUS_SPI,
9531 .manufacture_id = MACRONIX_ID,
9532 .model_id = MACRONIX_MX25U8032E,
9533 .total_size = 1024,
9534 .page_size = 256,
9535 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9536 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9537 .tested = TEST_OK_PREW,
9538 .probe = probe_spi_rdid,
9539 .probe_timing = TIMING_ZERO,
9540 .block_erasers =
9541 {
9542 {
9543 .eraseblocks = { {4 * 1024, 256} },
9544 .block_erase = spi_block_erase_20,
9545 }, {
9546 .eraseblocks = { {32 * 1024, 32} },
9547 .block_erase = spi_block_erase_52,
9548 }, {
9549 .eraseblocks = { {64 * 1024, 16} },
9550 .block_erase = spi_block_erase_d8,
9551 }, {
9552 .eraseblocks = { {1024 * 1024, 1} },
9553 .block_erase = spi_block_erase_60,
9554 }, {
9555 .eraseblocks = { {1024 * 1024, 1} },
9556 .block_erase = spi_block_erase_c7,
9557 }
9558 },
9559 /* TODO: security register */
9560 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9561 .unlock = spi_disable_blockprotect_bp3_srwd,
9562 .write = spi_chip_write_256,
9563 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9564 .voltage = {1650, 2000},
Nathan Rennie-Waldock5a7f9422018-08-10 15:35:23 +01009565 },
9566
9567 {
9568 .vendor = "Macronix",
Mark Panajotovic502a9132009-08-24 01:42:24 +00009569 .name = "MX29F001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009570 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009571 .manufacture_id = MACRONIX_ID,
9572 .model_id = MACRONIX_MX29F001B,
Mark Panajotovic502a9132009-08-24 01:42:24 +00009573 .total_size = 128,
9574 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009575 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9576 .tested = TEST_UNTESTED,
9577 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009578 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00009579 .block_erasers =
9580 {
9581 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00009582 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00009583 {8 * 1024, 1},
9584 {4 * 1024, 2},
9585 {8 * 1024, 2},
9586 {32 * 1024, 1},
9587 {64 * 1024, 1},
9588 },
Sean Nelson35727f72010-01-28 23:55:12 +00009589 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009590 }, {
9591 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009592 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009593 }
9594 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009595 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00009596 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009597 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00009598 },
9599
9600 {
9601 .vendor = "Macronix",
9602 .name = "MX29F001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009603 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009604 .manufacture_id = MACRONIX_ID,
9605 .model_id = MACRONIX_MX29F001T,
Mark Panajotovic502a9132009-08-24 01:42:24 +00009606 .total_size = 128,
9607 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009608 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stefan Tauner74c6ec62011-05-18 01:31:46 +00009609 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00009610 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009611 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00009612 .block_erasers =
9613 {
9614 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00009615 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00009616 {64 * 1024, 1},
9617 {32 * 1024, 1},
9618 {8 * 1024, 2},
9619 {4 * 1024, 2},
9620 {8 * 1024, 1},
9621 },
Sean Nelson35727f72010-01-28 23:55:12 +00009622 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009623 }, {
9624 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009625 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009626 }
9627 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009628 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00009629 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009630 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00009631 },
9632
9633 {
9634 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00009635 .name = "MX29F002(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009636 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009637 .manufacture_id = MACRONIX_ID,
9638 .model_id = MACRONIX_MX29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009639 .total_size = 256,
9640 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009641 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009642 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00009643 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009644 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009645 .block_erasers =
9646 {
9647 {
9648 .eraseblocks = {
9649 {16 * 1024, 1},
9650 {8 * 1024, 2},
9651 {32 * 1024, 1},
9652 {64 * 1024, 3},
9653 },
Sean Nelson35727f72010-01-28 23:55:12 +00009654 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009655 }, {
9656 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009657 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009658 },
9659 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009660 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009661 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009662 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009663 },
9664
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009665 {
9666 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00009667 .name = "MX29F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009668 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009669 .manufacture_id = MACRONIX_ID,
9670 .model_id = MACRONIX_MX29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009671 .total_size = 256,
9672 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009673 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00009674 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00009675 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009676 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009677 .block_erasers =
9678 {
9679 {
9680 .eraseblocks = {
9681 {64 * 1024, 3},
9682 {32 * 1024, 1},
9683 {8 * 1024, 2},
9684 {16 * 1024, 1},
9685 },
Sean Nelson35727f72010-01-28 23:55:12 +00009686 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009687 }, {
9688 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009689 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009690 },
9691 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009692 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009693 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009694 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009695 },
9696
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009697 {
9698 .vendor = "Macronix",
Daniele Forsi6a18a932014-07-13 14:53:45 +00009699 .name = "MX29F022(N)B",
9700 .bustype = BUS_PARALLEL,
9701 .manufacture_id = MACRONIX_ID,
9702 .model_id = MACRONIX_MX29F022B,
9703 .total_size = 256,
9704 .page_size = 0, /* unused */
9705 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9706 .tested = TEST_UNTESTED,
9707 .probe = probe_jedec,
9708 .probe_timing = TIMING_ZERO,
9709 .block_erasers =
9710 {
9711 {
9712 .eraseblocks = {
9713 {16 * 1024, 1},
9714 {8 * 1024, 2},
9715 {32 * 1024, 1},
9716 {64 * 1024, 3},
9717 },
9718 .block_erase = erase_sector_jedec,
9719 }, {
9720 .eraseblocks = { {256 * 1024, 1} },
9721 .block_erase = erase_chip_block_jedec,
9722 }
9723 },
9724 .write = write_jedec_1,
9725 .read = read_memmapped,
9726 .voltage = {4500, 5500},
9727 },
9728
9729 {
9730 .vendor = "Macronix",
9731 .name = "MX29F022(N)T",
9732 .bustype = BUS_PARALLEL,
9733 .manufacture_id = MACRONIX_ID,
9734 .model_id = MACRONIX_MX29F022T,
9735 .total_size = 256,
9736 .page_size = 0, /* unused */
9737 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9738 .tested = TEST_OK_PREW,
9739 .probe = probe_jedec,
9740 .probe_timing = TIMING_ZERO,
9741 .block_erasers =
9742 {
9743 {
9744 .eraseblocks = {
9745 {64 * 1024, 3},
9746 {32 * 1024, 1},
9747 {8 * 1024, 2},
9748 {16 * 1024, 1},
9749 },
9750 .block_erase = erase_sector_jedec,
9751 }, {
9752 .eraseblocks = { {256 * 1024, 1} },
9753 .block_erase = erase_chip_block_jedec,
9754 }
9755 },
9756 .write = write_jedec_1,
9757 .read = read_memmapped,
9758 .voltage = {4500, 5500},
9759 },
9760
9761 {
9762 .vendor = "Macronix",
Joshua Roysf1324e02010-09-16 00:51:51 +00009763 .name = "MX29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009764 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00009765 .manufacture_id = MACRONIX_ID,
9766 .model_id = MACRONIX_MX29F040,
9767 .total_size = 512,
9768 .page_size = 64 * 1024,
9769 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9770 .tested = TEST_UNTESTED,
9771 .probe = probe_jedec,
9772 .probe_timing = TIMING_ZERO,
9773 .block_erasers =
9774 {
9775 {
9776 .eraseblocks = { {64 * 1024, 8} },
9777 .block_erase = erase_sector_jedec,
9778 }, {
9779 .eraseblocks = { {512 * 1024, 1} },
9780 .block_erase = erase_chip_block_jedec,
9781 },
9782 },
9783 .write = write_jedec_1,
9784 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009785 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00009786 },
9787
9788 {
9789 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009790 .name = "MX29GL128F",
9791 .bustype = BUS_PARALLEL,
9792 .manufacture_id = MACRONIX_ID,
9793 .model_id = MACRONIX_MX29GL128F,
9794 .total_size = 16384,
9795 .page_size = 128 * 1024, /* actual page size is 16 */
9796 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9797 .tested = TEST_UNTESTED,
9798 .probe = probe_jedec_29gl,
9799 .probe_timing = TIMING_ZERO,
9800 .block_erasers =
9801 {
9802 {
9803 .eraseblocks = { {128 * 1024, 128} },
9804 .block_erase = erase_sector_jedec,
9805 }, {
9806 .eraseblocks = { {16 * 1024 * 1024, 1} },
9807 .block_erase = erase_chip_block_jedec,
9808 },
9809 },
9810 .write = write_jedec_1,
9811 .read = read_memmapped,
9812 .voltage = {2700, 3600},
9813 },
9814
9815 {
9816 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00009817 .name = "MX29GL320EB",
9818 .bustype = BUS_PARALLEL,
9819 .manufacture_id = MACRONIX_ID,
9820 .model_id = MACRONIX_MX29GL320EB,
9821 .total_size = 4096,
9822 .page_size = 128 * 1024, /* actual page size is 16 */
9823 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9824 .tested = TEST_UNTESTED,
9825 .probe = probe_jedec_29gl,
9826 .probe_timing = TIMING_ZERO,
9827 .block_erasers =
9828 {
9829 {
9830 .eraseblocks = {
9831 {8 * 1024, 8},
9832 {64 * 1024, 63},
9833 },
9834 .block_erase = erase_sector_jedec,
9835 }, {
9836 .eraseblocks = { {4 * 1024 * 1024, 1} },
9837 .block_erase = erase_chip_block_jedec,
9838 },
9839 },
9840 .write = write_jedec_1,
9841 .read = read_memmapped,
9842 .voltage = {2700, 3600},
9843 },
9844
9845 {
9846 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009847 .name = "MX29GL320EH/L",
9848 .bustype = BUS_PARALLEL,
9849 .manufacture_id = MACRONIX_ID,
9850 .model_id = MACRONIX_MX29GL320EHL,
9851 .total_size = 4096,
9852 .page_size = 128 * 1024, /* actual page size is 16 */
9853 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9854 .tested = TEST_UNTESTED,
9855 .probe = probe_jedec_29gl,
9856 .probe_timing = TIMING_ZERO,
9857 .block_erasers =
9858 {
9859 {
9860 .eraseblocks = { {64 * 1024, 64} },
9861 .block_erase = erase_sector_jedec,
9862 }, {
9863 .eraseblocks = { {4 * 1024 * 1024, 1} },
9864 .block_erase = erase_chip_block_jedec,
9865 },
9866 },
9867 .write = write_jedec_1,
9868 .read = read_memmapped,
9869 .voltage = {2700, 3600},
9870 },
9871
9872 {
9873 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00009874 .name = "MX29GL320ET",
9875 .bustype = BUS_PARALLEL,
9876 .manufacture_id = MACRONIX_ID,
9877 .model_id = MACRONIX_MX29GL320ET,
9878 .total_size = 4096,
9879 .page_size = 128 * 1024, /* actual page size is 16 */
9880 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9881 .tested = TEST_UNTESTED,
9882 .probe = probe_jedec_29gl,
9883 .probe_timing = TIMING_ZERO,
9884 .block_erasers =
9885 {
9886 {
9887 .eraseblocks = {
9888 {64 * 1024, 63},
9889 {8 * 1024, 8},
9890 },
9891 .block_erase = erase_sector_jedec,
9892 }, {
9893 .eraseblocks = { {4 * 1024 * 1024, 1} },
9894 .block_erase = erase_chip_block_jedec,
9895 },
9896 },
9897 .write = write_jedec_1,
9898 .read = read_memmapped,
9899 .voltage = {2700, 3600},
9900 },
9901
9902 {
9903 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00009904 .name = "MX29GL640EB",
9905 .bustype = BUS_PARALLEL,
9906 .manufacture_id = MACRONIX_ID,
9907 .model_id = MACRONIX_MX29GL640EB,
9908 .total_size = 8192,
9909 .page_size = 128 * 1024, /* actual page size is 16 */
9910 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9911 .tested = TEST_UNTESTED,
9912 .probe = probe_jedec_29gl,
9913 .probe_timing = TIMING_ZERO,
9914 .block_erasers =
9915 {
9916 {
9917 .eraseblocks = {
9918 {8 * 1024, 8},
9919 {64 * 1024, 127},
9920 },
9921 .block_erase = erase_sector_jedec,
9922 }, {
9923 .eraseblocks = { {8 * 1024 * 1024, 1} },
9924 .block_erase = erase_chip_block_jedec,
9925 },
9926 },
9927 .write = write_jedec_1,
9928 .read = read_memmapped,
9929 .voltage = {2700, 3600},
9930 },
9931
9932 {
9933 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009934 .name = "MX29GL640EH/L",
9935 .bustype = BUS_PARALLEL,
9936 .manufacture_id = MACRONIX_ID,
9937 .model_id = MACRONIX_MX29GL640EHL,
9938 .total_size = 8192,
9939 .page_size = 128 * 1024, /* actual page size is 16 */
9940 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9941 .tested = TEST_UNTESTED,
9942 .probe = probe_jedec_29gl,
9943 .probe_timing = TIMING_ZERO,
9944 .block_erasers =
9945 {
9946 {
9947 .eraseblocks = { {64 * 1024, 128} },
9948 .block_erase = erase_sector_jedec,
9949 }, {
9950 .eraseblocks = { {8 * 1024 * 1024, 1} },
9951 .block_erase = erase_chip_block_jedec,
9952 },
9953 },
9954 .write = write_jedec_1,
9955 .read = read_memmapped,
9956 .voltage = {2700, 3600},
9957 },
9958
9959 {
9960 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00009961 .name = "MX29GL640ET",
9962 .bustype = BUS_PARALLEL,
9963 .manufacture_id = MACRONIX_ID,
9964 .model_id = MACRONIX_MX29GL640ET,
9965 .total_size = 8192,
9966 .page_size = 128 * 1024, /* actual page size is 16 */
9967 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9968 .tested = TEST_UNTESTED,
9969 .probe = probe_jedec_29gl,
9970 .probe_timing = TIMING_ZERO,
9971 .block_erasers =
9972 {
9973 {
9974 .eraseblocks = {
9975 {64 * 1024, 127},
9976 {8 * 1024, 8},
9977 },
9978 .block_erase = erase_sector_jedec,
9979 }, {
9980 .eraseblocks = { {8 * 1024 * 1024, 1} },
9981 .block_erase = erase_chip_block_jedec,
9982 },
9983 },
9984 .write = write_jedec_1,
9985 .read = read_memmapped,
9986 .voltage = {2700, 3600},
9987 },
9988
9989 {
9990 .vendor = "Macronix",
Carl-Daniel Hailfinger350a0c32009-07-24 13:59:27 +00009991 .name = "MX29LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009992 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009993 .manufacture_id = MACRONIX_ID,
9994 .model_id = MACRONIX_MX29LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009995 .total_size = 512,
9996 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009997 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9998 .tested = TEST_UNTESTED,
9999 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +000010000 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +000010001 .block_erasers =
10002 {
10003 {
Stefan Tauner6697f712014-08-06 15:09:15 +000010004 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +000010005 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +000010006 }, {
10007 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000010008 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +000010009 },
10010 },
Michael Karcher1c296ca2009-11-27 17:49:42 +000010011 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010012 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010013 .voltage = {2700, 3600},
Carl-Daniel Hailfinger7de86392008-12-10 10:32:05 +000010014 },
10015
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010016 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010017 .vendor = "Macronix",
Hemanth Guruva Reddya136d422019-07-11 11:08:27 +020010018 .name = "MX66L51235F/MX25L51245G",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010019 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010020 .manufacture_id = MACRONIX_ID,
10021 .model_id = MACRONIX_MX66L51235F,
10022 .total_size = 65536,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010023 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010024 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
10025 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010026 .tested = TEST_OK_PREW,
10027 .probe = probe_spi_rdid,
10028 .probe_timing = TIMING_ZERO,
10029 .block_erasers =
10030 {
10031 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010032 .eraseblocks = { {4 * 1024, 16384} },
10033 .block_erase = spi_block_erase_21,
10034 }, {
10035 .eraseblocks = { {4 * 1024, 16384} },
10036 .block_erase = spi_block_erase_20,
10037 }, {
10038 .eraseblocks = { {32 * 1024, 2048} },
10039 .block_erase = spi_block_erase_5c,
10040 }, {
10041 .eraseblocks = { {32 * 1024, 2048} },
10042 .block_erase = spi_block_erase_52,
10043 }, {
10044 .eraseblocks = { {64 * 1024, 1024} },
10045 .block_erase = spi_block_erase_dc,
10046 }, {
10047 .eraseblocks = { {64 * 1024, 1024} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010048 .block_erase = spi_block_erase_d8,
10049 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010050 .eraseblocks = { {64 * 1024 * 1024, 1} },
10051 .block_erase = spi_block_erase_60,
10052 }, {
10053 .eraseblocks = { {64 * 1024 * 1024, 1} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010054 .block_erase = spi_block_erase_c7,
10055 }
10056 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100010057 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
10058 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010059 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010060 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010061 .read = spi_chip_read, /* Fast read (0x0B) supported */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010062 .voltage = {2700, 3600},
10063 },
10064
Patrick Rudolph3ba83152021-06-08 10:52:19 +020010065 {
10066 .vendor = "Macronix",
10067 .name = "MX66L1G45G",
10068 .bustype = BUS_SPI,
10069 .manufacture_id = MACRONIX_ID,
10070 .model_id = MACRONIX_MX66L1G45G,
10071 .total_size = 131072,
10072 .page_size = 256,
10073 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
10074 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
10075 .tested = TEST_OK_PREW,
10076 .probe = probe_spi_rdid,
10077 .probe_timing = TIMING_ZERO,
10078 .block_erasers =
10079 {
10080 {
10081 .eraseblocks = { {4 * 1024, 32768} },
10082 .block_erase = spi_block_erase_21,
10083 }, {
10084 .eraseblocks = { {4 * 1024, 32768} },
10085 .block_erase = spi_block_erase_20,
10086 }, {
10087 .eraseblocks = { {32 * 1024, 4096} },
10088 .block_erase = spi_block_erase_5c,
10089 }, {
10090 .eraseblocks = { {32 * 1024, 4096} },
10091 .block_erase = spi_block_erase_52,
10092 }, {
10093 .eraseblocks = { {64 * 1024, 2048} },
10094 .block_erase = spi_block_erase_dc,
10095 }, {
10096 .eraseblocks = { {64 * 1024, 2048} },
10097 .block_erase = spi_block_erase_d8,
10098 }, {
10099 .eraseblocks = { {128 * 1024 * 1024, 1} },
10100 .block_erase = spi_block_erase_60,
10101 }, {
10102 .eraseblocks = { {128 * 1024 * 1024, 1} },
10103 .block_erase = spi_block_erase_c7,
10104 }
10105 },
10106 /* TODO: security register and SBLK/SBULK, configuration register */
10107 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
10108 .unlock = spi_disable_blockprotect_bp3_srwd,
10109 .write = spi_chip_write_256,
10110 .read = spi_chip_read, /* Fast read (0x0B) supported */
10111 .voltage = {2700, 3600},
10112 },
10113
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010114 /* The ST M25P05 is a bit of a problem. It has the same ID as the
10115 * ST M25P05-A in RES mode, but supports only 128 byte writes instead
10116 * of 256 byte writes. We rely heavily on the fact that probe_spi_res1
10117 * only is successful if RDID does not work.
10118 */
10119 {
10120 .vendor = "Micron/Numonyx/ST",
10121 .name = "M25P05",
10122 .bustype = BUS_SPI,
10123 .manufacture_id = 0, /* Not used. */
10124 .model_id = ST_M25P05_RES,
10125 .total_size = 64,
10126 .page_size = 256,
10127 .feature_bits = FEATURE_WRSR_WREN,
10128 .tested = TEST_UNTESTED,
10129 .probe = probe_spi_res1,
10130 .probe_timing = TIMING_ZERO,
10131 .block_erasers =
10132 {
10133 {
10134 .eraseblocks = { {32 * 1024, 2} },
10135 .block_erase = spi_block_erase_d8,
10136 }, {
10137 .eraseblocks = { {64 * 1024, 1} },
10138 .block_erase = spi_block_erase_c7,
10139 }
10140 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010141 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010142 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010143 .write = spi_chip_write_1, /* 128 */
10144 .read = spi_chip_read,
10145 .voltage = {2700, 3600},
10146 },
10147
10148 {
10149 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010150 .name = "M25P05-A",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010151 .bustype = BUS_SPI,
10152 .manufacture_id = ST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010153 .model_id = ST_M25P05A,
10154 .total_size = 64,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010155 .page_size = 256,
10156 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000010157 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010158 .probe = probe_spi_rdid,
10159 .probe_timing = TIMING_ZERO,
10160 .block_erasers =
10161 {
10162 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010163 .eraseblocks = { {32 * 1024, 2} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010164 .block_erase = spi_block_erase_d8,
10165 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010166 .eraseblocks = { {64 * 1024, 1} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010167 .block_erase = spi_block_erase_c7,
10168 }
10169 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010170 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010171 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010172 .write = spi_chip_write_256,
10173 .read = spi_chip_read,
10174 .voltage = {2700, 3600},
10175 },
10176
10177 /* The ST M25P10 has the same problem as the M25P05. */
10178 {
10179 .vendor = "Micron/Numonyx/ST",
10180 .name = "M25P10",
10181 .bustype = BUS_SPI,
10182 .manufacture_id = 0, /* Not used. */
10183 .model_id = ST_M25P10_RES,
10184 .total_size = 128,
10185 .page_size = 256,
10186 .feature_bits = FEATURE_WRSR_WREN,
10187 .tested = TEST_UNTESTED,
10188 .probe = probe_spi_res1,
10189 .probe_timing = TIMING_ZERO,
10190 .block_erasers =
10191 {
10192 {
10193 .eraseblocks = { {32 * 1024, 4} },
10194 .block_erase = spi_block_erase_d8,
10195 }, {
10196 .eraseblocks = { {128 * 1024, 1} },
10197 .block_erase = spi_block_erase_c7,
10198 }
10199 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010200 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010201 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010202 .write = spi_chip_write_1, /* 128 */
10203 .read = spi_chip_read,
10204 .voltage = {2700, 3600},
10205 },
10206
10207 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010208 .vendor = "Micron/Numonyx/ST",
10209 .name = "M25P10-A",
10210 .bustype = BUS_SPI,
10211 .manufacture_id = ST_ID,
10212 .model_id = ST_M25P10A,
10213 .total_size = 128,
10214 .page_size = 256,
10215 .feature_bits = FEATURE_WRSR_WREN,
10216 .tested = TEST_OK_PREW,
10217 .probe = probe_spi_rdid,
10218 .probe_timing = TIMING_ZERO,
10219 .block_erasers =
10220 {
10221 {
10222 .eraseblocks = { {32 * 1024, 4} },
10223 .block_erase = spi_block_erase_d8,
10224 }, {
10225 .eraseblocks = { {128 * 1024, 1} },
10226 .block_erase = spi_block_erase_c7,
10227 }
10228 },
10229 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
10230 .unlock = spi_disable_blockprotect_bp3_srwd,
10231 .write = spi_chip_write_256,
10232 .read = spi_chip_read,
10233 .voltage = {2700, 3600},
10234 },
10235
10236 {
10237 .vendor = "Micron/Numonyx/ST",
10238 .name = "M25P128",
10239 .bustype = BUS_SPI,
10240 .manufacture_id = ST_ID,
10241 .model_id = ST_M25P128,
10242 .total_size = 16384,
10243 .page_size = 256,
10244 .feature_bits = FEATURE_WRSR_WREN,
10245 .tested = TEST_OK_PREW,
10246 .probe = probe_spi_rdid,
10247 .probe_timing = TIMING_ZERO,
10248 .block_erasers =
10249 {
10250 {
10251 .eraseblocks = { {256 * 1024, 64} },
10252 .block_erase = spi_block_erase_d8,
10253 }, {
10254 .eraseblocks = { {16 * 1024 * 1024, 1} },
10255 .block_erase = spi_block_erase_c7,
10256 }
10257 },
10258 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
10259 .unlock = spi_disable_blockprotect_bp3_srwd,
10260 .write = spi_chip_write_256,
10261 .read = spi_chip_read,
10262 .voltage = {2700, 3600},
10263 },
10264
10265 {
10266 .vendor = "Micron/Numonyx/ST",
10267 .name = "M25P16",
10268 .bustype = BUS_SPI,
10269 .manufacture_id = ST_ID,
10270 .model_id = ST_M25P16,
10271 .total_size = 2048,
10272 .page_size = 256,
10273 .feature_bits = FEATURE_WRSR_WREN,
10274 .tested = TEST_OK_PREW,
10275 .probe = probe_spi_rdid,
10276 .probe_timing = TIMING_ZERO,
10277 .block_erasers =
10278 {
10279 {
10280 .eraseblocks = { {64 * 1024, 32} },
10281 .block_erase = spi_block_erase_d8,
10282 }, {
10283 .eraseblocks = { {2 * 1024 * 1024, 1} },
10284 .block_erase = spi_block_erase_c7,
10285 }
10286 },
10287 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
10288 .unlock = spi_disable_blockprotect_bp3_srwd,
10289 .write = spi_chip_write_256,
10290 .read = spi_chip_read,
10291 .voltage = {2700, 3600},
10292 },
10293
10294 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010295 .vendor = "Micron/Numonyx/ST", /* Numonyx */
10296 .name = "M25P20",
10297 .bustype = BUS_SPI,
10298 .manufacture_id = ST_ID,
10299 .model_id = ST_M25P20,
10300 .total_size = 256,
10301 .page_size = 256,
10302 .feature_bits = FEATURE_WRSR_WREN,
10303 .tested = TEST_UNTESTED,
10304 .probe = probe_spi_rdid,
10305 .probe_timing = TIMING_ZERO,
10306 .block_erasers =
10307 {
10308 {
10309 .eraseblocks = { {64 * 1024, 4} },
10310 .block_erase = spi_block_erase_d8,
10311 }, {
10312 .eraseblocks = { {256 * 1024, 1} },
10313 .block_erase = spi_block_erase_c7,
10314 }
10315 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010316 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010317 .unlock = spi_disable_blockprotect,
10318 .write = spi_chip_write_256,
10319 .read = spi_chip_read, /* Fast read (0x0B) supported */
10320 .voltage = {2700, 3600},
10321 },
10322
10323 {
10324 .vendor = "Micron/Numonyx/ST",
10325 .name = "M25P20-old",
10326 .bustype = BUS_SPI,
10327 .manufacture_id = 0, /* Not used. */
10328 .model_id = ST_M25P20_RES,
10329 .total_size = 256,
10330 .page_size = 256,
10331 .feature_bits = FEATURE_WRSR_WREN,
10332 .tested = TEST_OK_PREW,
10333 .probe = probe_spi_res1,
10334 .probe_timing = TIMING_ZERO,
10335 .block_erasers =
10336 {
10337 {
10338 .eraseblocks = { {64 * 1024, 4} },
10339 .block_erase = spi_block_erase_d8,
10340 }, {
10341 .eraseblocks = { {256 * 1024, 1} },
10342 .block_erase = spi_block_erase_c7,
10343 }
10344 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010345 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010346 .unlock = spi_disable_blockprotect,
10347 .write = spi_chip_write_256,
10348 .read = spi_chip_read, /* Fast read (0x0B) supported */
10349 .voltage = {2700, 3600},
10350 },
10351
10352 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010353 .vendor = "Micron/Numonyx/ST",
10354 .name = "M25P32",
10355 .bustype = BUS_SPI,
10356 .manufacture_id = ST_ID,
10357 .model_id = ST_M25P32,
10358 .total_size = 4096,
10359 .page_size = 256,
10360 .feature_bits = FEATURE_WRSR_WREN,
10361 .tested = TEST_OK_PREW,
10362 .probe = probe_spi_rdid,
10363 .probe_timing = TIMING_ZERO,
10364 .block_erasers =
10365 {
10366 {
10367 .eraseblocks = { {64 * 1024, 64} },
10368 .block_erase = spi_block_erase_d8,
10369 }, {
10370 .eraseblocks = { {4 * 1024 * 1024, 1} },
10371 .block_erase = spi_block_erase_c7,
10372 }
10373 },
10374 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
10375 .unlock = spi_disable_blockprotect_bp3_srwd,
10376 .write = spi_chip_write_256,
10377 .read = spi_chip_read,
10378 .voltage = {2700, 3600},
10379 },
10380
10381 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010382 .vendor = "Micron/Numonyx/ST", /* Numonyx */
10383 .name = "M25P40",
10384 .bustype = BUS_SPI,
10385 .manufacture_id = ST_ID,
10386 .model_id = ST_M25P40,
10387 .total_size = 512,
10388 .page_size = 256,
10389 .feature_bits = FEATURE_WRSR_WREN,
10390 .tested = TEST_OK_PREW,
10391 .probe = probe_spi_rdid,
10392 .probe_timing = TIMING_ZERO,
10393 .block_erasers =
10394 {
10395 {
10396 .eraseblocks = { {64 * 1024, 8} },
10397 .block_erase = spi_block_erase_d8,
10398 }, {
10399 .eraseblocks = { {512 * 1024, 1} },
10400 .block_erase = spi_block_erase_c7,
10401 }
10402 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010403 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010404 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010405 .write = spi_chip_write_256,
10406 .read = spi_chip_read,
10407 .voltage = {2700, 3600},
10408 },
10409
10410 {
10411 .vendor = "Micron/Numonyx/ST",
10412 .name = "M25P40-old",
10413 .bustype = BUS_SPI,
10414 .manufacture_id = 0, /* Not used. */
10415 .model_id = ST_M25P40_RES,
10416 .total_size = 512,
10417 .page_size = 256,
10418 .feature_bits = FEATURE_WRSR_WREN,
10419 .tested = TEST_UNTESTED,
10420 .probe = probe_spi_res1,
10421 .probe_timing = TIMING_ZERO,
10422 .block_erasers =
10423 {
10424 {
10425 .eraseblocks = { {64 * 1024, 8} },
10426 .block_erase = spi_block_erase_d8,
10427 }, {
10428 .eraseblocks = { {512 * 1024, 1} },
10429 .block_erase = spi_block_erase_c7,
10430 }
10431 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010432 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010433 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010434 .write = spi_chip_write_256,
10435 .read = spi_chip_read,
10436 },
10437
10438 {
10439 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010440 .name = "M25P64",
10441 .bustype = BUS_SPI,
10442 .manufacture_id = ST_ID,
10443 .model_id = ST_M25P64,
10444 .total_size = 8192,
10445 .page_size = 256,
10446 .feature_bits = FEATURE_WRSR_WREN,
10447 .tested = TEST_OK_PREW,
10448 .probe = probe_spi_rdid,
10449 .probe_timing = TIMING_ZERO,
10450 .block_erasers =
10451 {
10452 {
10453 .eraseblocks = { {64 * 1024, 128} },
10454 .block_erase = spi_block_erase_d8,
10455 }, {
10456 .eraseblocks = { {8 * 1024 * 1024, 1} },
10457 .block_erase = spi_block_erase_c7,
10458 }
10459 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010460 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010461 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010462 .write = spi_chip_write_256,
10463 .read = spi_chip_read,
10464 .voltage = {2700, 3600},
10465 },
10466
10467 {
10468 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010469 .name = "M25P80",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010470 .bustype = BUS_SPI,
10471 .manufacture_id = ST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010472 .model_id = ST_M25P80,
10473 .total_size = 1024,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010474 .page_size = 256,
10475 .feature_bits = FEATURE_WRSR_WREN,
10476 .tested = TEST_OK_PREW,
10477 .probe = probe_spi_rdid,
10478 .probe_timing = TIMING_ZERO,
10479 .block_erasers =
10480 {
10481 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010482 .eraseblocks = { {64 * 1024, 16} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010483 .block_erase = spi_block_erase_d8,
10484 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010485 .eraseblocks = { {1024 * 1024, 1} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010486 .block_erase = spi_block_erase_c7,
10487 }
10488 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010489 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010490 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010491 .write = spi_chip_write_256,
10492 .read = spi_chip_read,
10493 .voltage = {2700, 3600},
10494 },
10495
10496 {
10497 .vendor = "Micron/Numonyx/ST",
10498 .name = "M25PE10",
10499 .bustype = BUS_SPI,
10500 .manufacture_id = ST_ID,
10501 .model_id = ST_M25PE10,
10502 .total_size = 128,
10503 .page_size = 256,
10504 .feature_bits = FEATURE_WRSR_WREN,
10505 .tested = TEST_UNTESTED,
10506 .probe = probe_spi_rdid,
10507 .probe_timing = TIMING_ZERO,
10508 .block_erasers =
10509 {
10510 {
10511 .eraseblocks = { {4 * 1024, 32} },
10512 .block_erase = spi_block_erase_20,
10513 }, {
10514 .eraseblocks = { {64 * 1024, 2} },
10515 .block_erase = spi_block_erase_d8,
10516 }, {
10517 .eraseblocks = { {128 * 1024, 1} },
10518 .block_erase = spi_block_erase_c7,
10519 }
10520 },
10521 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10522 .unlock = spi_disable_blockprotect,
10523 .write = spi_chip_write_256,
10524 .read = spi_chip_read,
10525 .voltage = {2700, 3600},
10526 },
10527
10528 {
10529 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010530 .name = "M25PE16",
10531 .bustype = BUS_SPI,
10532 .manufacture_id = ST_ID,
10533 .model_id = ST_M25PE16,
10534 .total_size = 2048,
10535 .page_size = 256,
10536 .feature_bits = FEATURE_WRSR_WREN,
10537 .tested = TEST_UNTESTED,
10538 .probe = probe_spi_rdid,
10539 .probe_timing = TIMING_ZERO,
10540 .block_erasers =
10541 {
10542 {
10543 .eraseblocks = { {4 * 1024, 512} },
10544 .block_erase = spi_block_erase_20,
10545 }, {
10546 .eraseblocks = { {64 * 1024, 32} },
10547 .block_erase = spi_block_erase_d8,
10548 }, {
10549 .eraseblocks = { {2 * 1024 * 1024, 1} },
10550 .block_erase = spi_block_erase_c7,
10551 }
10552 },
10553 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10554 .unlock = spi_disable_blockprotect,
10555 .write = spi_chip_write_256,
10556 .read = spi_chip_read,
10557 .voltage = {2700, 3600},
10558 },
10559
10560 {
10561 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010562 .name = "M25PE20",
10563 .bustype = BUS_SPI,
10564 .manufacture_id = ST_ID,
10565 .model_id = ST_M25PE20,
10566 .total_size = 256,
10567 .page_size = 256,
10568 .feature_bits = FEATURE_WRSR_WREN,
10569 .tested = TEST_UNTESTED,
10570 .probe = probe_spi_rdid,
10571 .probe_timing = TIMING_ZERO,
10572 .block_erasers =
10573 {
10574 {
10575 .eraseblocks = { {4 * 1024, 64} },
10576 .block_erase = spi_block_erase_20,
10577 }, {
10578 .eraseblocks = { {64 * 1024, 4} },
10579 .block_erase = spi_block_erase_d8,
10580 }, {
10581 .eraseblocks = { {256 * 1024, 1} },
10582 .block_erase = spi_block_erase_c7,
10583 }
10584 },
10585 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10586 .unlock = spi_disable_blockprotect,
10587 .write = spi_chip_write_256,
10588 .read = spi_chip_read,
10589 .voltage = {2700, 3600},
10590 },
10591
10592 {
10593 .vendor = "Micron/Numonyx/ST",
10594 .name = "M25PE40",
10595 .bustype = BUS_SPI,
10596 .manufacture_id = ST_ID,
10597 .model_id = ST_M25PE40,
10598 .total_size = 512,
10599 .page_size = 256,
10600 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000010601 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010602 .probe = probe_spi_rdid,
10603 .probe_timing = TIMING_ZERO,
10604 .block_erasers =
10605 {
10606 {
10607 .eraseblocks = { {4 * 1024, 128} },
10608 .block_erase = spi_block_erase_20,
10609 }, {
10610 .eraseblocks = { {64 * 1024, 8} },
10611 .block_erase = spi_block_erase_d8,
10612 }, {
10613 .eraseblocks = { {512 * 1024, 1} },
10614 .block_erase = spi_block_erase_c7,
10615 }
10616 },
10617 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10618 .unlock = spi_disable_blockprotect,
10619 .write = spi_chip_write_256,
10620 .read = spi_chip_read,
10621 .voltage = {2700, 3600},
10622 },
10623
10624 {
10625 .vendor = "Micron/Numonyx/ST",
10626 .name = "M25PE80",
10627 .bustype = BUS_SPI,
10628 .manufacture_id = ST_ID,
10629 .model_id = ST_M25PE80,
10630 .total_size = 1024,
10631 .page_size = 256,
10632 .feature_bits = FEATURE_WRSR_WREN,
10633 .tested = TEST_OK_PREW,
10634 .probe = probe_spi_rdid,
10635 .probe_timing = TIMING_ZERO,
10636 .block_erasers =
10637 {
10638 {
10639 .eraseblocks = { {4 * 1024, 256} },
10640 .block_erase = spi_block_erase_20,
10641 }, {
10642 .eraseblocks = { {64 * 1024, 16} },
10643 .block_erase = spi_block_erase_d8,
10644 }, {
10645 .eraseblocks = { {1024 * 1024, 1} },
10646 .block_erase = spi_block_erase_c7,
10647 }
10648 },
10649 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10650 .unlock = spi_disable_blockprotect,
10651 .write = spi_chip_write_256,
10652 .read = spi_chip_read,
10653 .voltage = {2700, 3600},
10654 },
10655
10656 {
10657 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010658 .name = "M25PX16",
10659 .bustype = BUS_SPI,
10660 .manufacture_id = ST_ID,
10661 .model_id = ST_M25PX16,
10662 .total_size = 2048,
10663 .page_size = 256,
10664 /* OTP: 64B total; read 0x4B; write 0x42 */
10665 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10666 .tested = TEST_OK_PREW,
10667 .probe = probe_spi_rdid,
10668 .probe_timing = TIMING_ZERO,
10669 .block_erasers =
10670 {
10671 {
10672 .eraseblocks = { { 4 * 1024, 512 } },
10673 .block_erase = spi_block_erase_20,
10674 }, {
10675 .eraseblocks = { {64 * 1024, 32} },
10676 .block_erase = spi_block_erase_d8,
10677 }, {
10678 .eraseblocks = { {2 * 1024 * 1024, 1} },
10679 .block_erase = spi_block_erase_c7,
10680 }
10681 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010682 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010683 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
10684 .write = spi_chip_write_256,
10685 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000010686 .voltage = {2300, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010687 },
10688
10689 {
10690 .vendor = "Micron/Numonyx/ST",
10691 .name = "M25PX32",
10692 .bustype = BUS_SPI,
10693 .manufacture_id = ST_ID,
10694 .model_id = ST_M25PX32,
10695 .total_size = 4096,
10696 .page_size = 256,
10697 /* OTP: 64B total; read 0x4B; write 0x42 */
10698 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10699 .tested = TEST_OK_PRE,
10700 .probe = probe_spi_rdid,
10701 .probe_timing = TIMING_ZERO,
10702 .block_erasers =
10703 {
10704 {
10705 .eraseblocks = { { 4 * 1024, 1024 } },
10706 .block_erase = spi_block_erase_20,
10707 }, {
10708 .eraseblocks = { {64 * 1024, 64} },
10709 .block_erase = spi_block_erase_d8,
10710 }, {
10711 .eraseblocks = { {4 * 1024 * 1024, 1} },
10712 .block_erase = spi_block_erase_c7,
10713 }
10714 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010715 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010716 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
10717 .write = spi_chip_write_256,
10718 .read = spi_chip_read,
10719 .voltage = {2700, 3600},
10720 },
10721
10722 {
10723 .vendor = "Micron/Numonyx/ST",
10724 .name = "M25PX64",
10725 .bustype = BUS_SPI,
10726 .manufacture_id = ST_ID,
10727 .model_id = ST_M25PX64,
10728 .total_size = 8192,
10729 .page_size = 256,
10730 /* OTP: 64B total; read 0x4B; write 0x42 */
10731 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000010732 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010733 .probe = probe_spi_rdid,
10734 .probe_timing = TIMING_ZERO,
10735 .block_erasers =
10736 {
10737 {
10738 .eraseblocks = { { 4 * 1024, 2048 } },
10739 .block_erase = spi_block_erase_20,
10740 }, {
10741 .eraseblocks = { {64 * 1024, 128} },
10742 .block_erase = spi_block_erase_d8,
10743 }, {
10744 .eraseblocks = { {8 * 1024 * 1024, 1} },
10745 .block_erase = spi_block_erase_c7,
10746 }
10747 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010748 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010749 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
10750 .write = spi_chip_write_256,
10751 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000010752 .voltage = {2700, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010753 },
10754
10755 {
10756 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010757 .name = "M25PX80",
10758 .bustype = BUS_SPI,
10759 .manufacture_id = ST_ID,
10760 .model_id = ST_M25PX80,
10761 .total_size = 1024,
10762 .page_size = 256,
10763 /* OTP: 64B total; read 0x4B, write 0x42 */
10764 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10765 .tested = TEST_OK_PREW,
10766 .probe = probe_spi_rdid,
10767 .probe_timing = TIMING_ZERO,
10768 .block_erasers =
10769 {
10770 {
10771 .eraseblocks = { { 4 * 1024, 256 } },
10772 .block_erase = spi_block_erase_20,
10773 }, {
10774 .eraseblocks = { {64 * 1024, 16} },
10775 .block_erase = spi_block_erase_d8,
10776 }, {
10777 .eraseblocks = { {1024 * 1024, 1} },
10778 .block_erase = spi_block_erase_c7,
10779 }
10780 },
10781 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
10782 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
10783 .write = spi_chip_write_256,
10784 .read = spi_chip_read,
10785 .voltage = {2700, 3600},
10786 },
10787
10788 {
10789 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010790 .name = "M45PE10",
10791 .bustype = BUS_SPI,
10792 .manufacture_id = ST_ID,
10793 .model_id = ST_M45PE10,
10794 .total_size = 128,
10795 .page_size = 256,
10796 .tested = TEST_UNTESTED,
10797 .probe = probe_spi_rdid,
10798 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100010799 .block_erasers =
10800 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010801 {
10802 .eraseblocks = { {256, 512} },
10803 .block_erase = spi_block_erase_db,
10804 }, {
10805 .eraseblocks = { {64 * 1024, 2} },
10806 .block_erase = spi_block_erase_d8,
10807 }
10808 },
10809 .printlock = spi_prettyprint_status_register_default_welwip,
10810 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
10811 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
10812 .read = spi_chip_read, /* Fast read (0x0B) supported */
10813 .voltage = {2700, 3600},
10814 },
10815
10816 {
10817 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010818 .name = "M45PE16",
10819 .bustype = BUS_SPI,
10820 .manufacture_id = ST_ID,
10821 .model_id = ST_M45PE16,
10822 .total_size = 2048,
10823 .page_size = 256,
10824 .tested = TEST_UNTESTED,
10825 .probe = probe_spi_rdid,
10826 .probe_timing = TIMING_ZERO,
10827 .block_erasers =
10828 {
10829 {
10830 .eraseblocks = { {256, 8192} },
10831 .block_erase = spi_block_erase_db,
10832 }, {
10833 .eraseblocks = { {64 * 1024, 32} },
10834 .block_erase = spi_block_erase_d8,
10835 }
10836 },
10837 .printlock = spi_prettyprint_status_register_default_welwip,
10838 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
10839 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
10840 .read = spi_chip_read, /* Fast read (0x0B) supported */
10841 .voltage = {2700, 3600},
10842 },
10843
10844 {
10845 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010846 .name = "M45PE20",
10847 .bustype = BUS_SPI,
10848 .manufacture_id = ST_ID,
10849 .model_id = ST_M45PE20,
10850 .total_size = 256,
10851 .page_size = 256,
10852 .tested = TEST_UNTESTED,
10853 .probe = probe_spi_rdid,
10854 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100010855 .block_erasers =
10856 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010857 {
10858 .eraseblocks = { {256, 1024} },
10859 .block_erase = spi_block_erase_db,
10860 }, {
10861 .eraseblocks = { {64 * 1024, 4} },
10862 .block_erase = spi_block_erase_d8,
10863 }
10864 },
10865 .printlock = spi_prettyprint_status_register_default_welwip,
10866 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
10867 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
10868 .read = spi_chip_read, /* Fast read (0x0B) supported */
10869 .voltage = {2700, 3600},
10870 },
10871
10872 {
10873 .vendor = "Micron/Numonyx/ST",
10874 .name = "M45PE40",
10875 .bustype = BUS_SPI,
10876 .manufacture_id = ST_ID,
10877 .model_id = ST_M45PE40,
10878 .total_size = 512,
10879 .page_size = 256,
10880 .tested = TEST_UNTESTED,
10881 .probe = probe_spi_rdid,
10882 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100010883 .block_erasers =
10884 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010885 {
10886 .eraseblocks = { {256, 2048} },
10887 .block_erase = spi_block_erase_db,
10888 }, {
10889 .eraseblocks = { {64 * 1024, 8} },
10890 .block_erase = spi_block_erase_d8,
10891 }
10892 },
10893 .printlock = spi_prettyprint_status_register_default_welwip,
10894 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
Stefan Tauner23e10b82016-01-23 16:16:49 +000010895 .write = spi_chip_write_256, /* Page write supported (similar to PP but allows 0->1 changes) */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010896 .read = spi_chip_read, /* Fast read (0x0B) supported */
10897 .voltage = {2700, 3600},
10898 },
10899
10900 {
10901 .vendor = "Micron/Numonyx/ST",
10902 .name = "M45PE80",
10903 .bustype = BUS_SPI,
10904 .manufacture_id = ST_ID,
10905 .model_id = ST_M45PE80,
10906 .total_size = 1024,
10907 .page_size = 256,
10908 .tested = TEST_UNTESTED,
10909 .probe = probe_spi_rdid,
10910 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100010911 .block_erasers =
10912 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010913 {
10914 .eraseblocks = { {256, 4096} },
10915 .block_erase = spi_block_erase_db,
10916 }, {
10917 .eraseblocks = { {64 * 1024, 16} },
10918 .block_erase = spi_block_erase_d8,
10919 }
10920 },
10921 .printlock = spi_prettyprint_status_register_default_welwip,
10922 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
10923 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
10924 .read = spi_chip_read, /* Fast read (0x0B) supported */
10925 .voltage = {2700, 3600},
10926 },
10927
10928 {
10929 .vendor = "Micron/Numonyx/ST",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070010930 .name = "N25Q00A..1G", /* ..1G = 1.8V, uniform 64KB/4KB blocks/sectors */
10931 .bustype = BUS_SPI,
10932 .manufacture_id = ST_ID,
10933 .model_id = ST_N25Q00A__1G,
10934 .total_size = 131072,
10935 .page_size = 256,
10936 /* supports SFDP */
10937 /* OTP: 64B total; read 0x4B, write 0x42 */
10938 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
10939 .tested = TEST_UNTESTED,
10940 .probe = probe_spi_rdid,
10941 .probe_timing = TIMING_ZERO,
10942 .block_erasers =
10943 {
10944 {
10945 .eraseblocks = { {4 * 1024, 32768} },
10946 .block_erase = spi_block_erase_21,
10947 }, {
10948 .eraseblocks = { {4 * 1024, 32768} },
10949 .block_erase = spi_block_erase_20,
10950 }, {
10951 .eraseblocks = { {64 * 1024, 2048} },
10952 .block_erase = spi_block_erase_dc,
10953 }, {
10954 .eraseblocks = { {64 * 1024, 2048} },
10955 .block_erase = spi_block_erase_d8,
10956 }, {
10957 .eraseblocks = { {32768 * 1024, 4} },
10958 .block_erase = spi_block_erase_c4,
10959 }
10960 },
10961 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
10962 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
10963 .write = spi_chip_write_256, /* Multi I/O supported */
10964 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
10965 .voltage = {1700, 2000},
10966 },
10967
10968 {
10969 .vendor = "Micron/Numonyx/ST",
10970 .name = "N25Q00A..3G", /* ..3G = 3V, uniform 64KB/4KB blocks/sectors */
10971 .bustype = BUS_SPI,
10972 .manufacture_id = ST_ID,
10973 .model_id = ST_N25Q00A__3G,
10974 .total_size = 131072,
10975 .page_size = 256,
10976 /* supports SFDP */
10977 /* OTP: 64B total; read 0x4B, write 0x42 */
10978 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
10979 .tested = TEST_UNTESTED,
10980 .probe = probe_spi_rdid,
10981 .probe_timing = TIMING_ZERO,
10982 .block_erasers =
10983 {
10984 {
10985 .eraseblocks = { {4 * 1024, 32768} },
10986 .block_erase = spi_block_erase_21,
10987 }, {
10988 .eraseblocks = { {4 * 1024, 32768} },
10989 .block_erase = spi_block_erase_20,
10990 }, {
10991 .eraseblocks = { {64 * 1024, 2048} },
10992 .block_erase = spi_block_erase_dc,
10993 }, {
10994 .eraseblocks = { {64 * 1024, 2048} },
10995 .block_erase = spi_block_erase_d8,
10996 }, {
10997 .eraseblocks = { {32768 * 1024, 4} },
10998 .block_erase = spi_block_erase_c4,
10999 }
11000 },
11001 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11002 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11003 .write = spi_chip_write_256, /* Multi I/O supported */
11004 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11005 .voltage = {2700, 3600},
11006 },
11007
11008 {
11009 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011010 .name = "N25Q016",
11011 .bustype = BUS_SPI,
11012 .manufacture_id = ST_ID,
11013 .model_id = ST_N25Q016__1E,
11014 .total_size = 2048,
11015 .page_size = 256,
11016 /* supports SFDP */
11017 /* OTP: 64B total; read 0x4B, write 0x42 */
11018 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11019 .tested = TEST_UNTESTED,
11020 .probe = probe_spi_rdid,
11021 .probe_timing = TIMING_ZERO,
11022 .block_erasers =
11023 {
11024 {
11025 .eraseblocks = { {4 * 1024, 512} },
11026 .block_erase = spi_block_erase_20,
11027 }, {
11028 .eraseblocks = { {32 * 1024, 64} },
11029 .block_erase = spi_block_erase_52,
11030 }, {
11031 .eraseblocks = { {64 * 1024, 32} },
11032 .block_erase = spi_block_erase_d8,
11033 }, {
11034 .eraseblocks = { {2 * 1024 * 1024, 1} },
11035 .block_erase = spi_block_erase_c7,
11036 }
11037 },
11038 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11039 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11040 .write = spi_chip_write_256, /* Multi I/O supported */
11041 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11042 .voltage = {1700, 2000},
11043 },
11044
11045 {
11046 .vendor = "Micron/Numonyx/ST",
11047 .name = "N25Q032..1E",
11048 .bustype = BUS_SPI,
11049 .manufacture_id = ST_ID,
11050 .model_id = ST_N25Q032__1E,
11051 .total_size = 4096,
11052 .page_size = 256,
11053 /* supports SFDP */
11054 /* OTP: 64B total; read 0x4B, write 0x42 */
11055 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11056 .tested = TEST_UNTESTED,
11057 .probe = probe_spi_rdid,
11058 .probe_timing = TIMING_ZERO,
11059 .block_erasers =
11060 {
11061 {
11062 .eraseblocks = { {4 * 1024, 1024} },
11063 .block_erase = spi_block_erase_20,
11064 }, {
11065 .eraseblocks = { {64 * 1024, 64} },
11066 .block_erase = spi_block_erase_d8,
11067 }, {
11068 .eraseblocks = { {4 * 1024 * 1024, 1} },
11069 .block_erase = spi_block_erase_c7,
11070 }
11071 },
11072 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11073 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11074 .write = spi_chip_write_256, /* Multi I/O supported */
11075 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11076 .voltage = {1700, 2000},
11077 },
11078
11079 {
11080 .vendor = "Micron/Numonyx/ST",
11081 .name = "N25Q032..3E",
11082 .bustype = BUS_SPI,
11083 .manufacture_id = ST_ID,
11084 .model_id = ST_N25Q032__3E,
11085 .total_size = 4096,
11086 .page_size = 256,
11087 /* supports SFDP */
11088 /* OTP: 64B total; read 0x4B, write 0x42 */
11089 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11090 .tested = TEST_OK_PREW,
11091 .probe = probe_spi_rdid,
11092 .probe_timing = TIMING_ZERO,
11093 .block_erasers =
11094 {
11095 {
11096 .eraseblocks = { {4 * 1024, 1024} },
11097 .block_erase = spi_block_erase_20,
11098 }, {
11099 .eraseblocks = { {64 * 1024, 64} },
11100 .block_erase = spi_block_erase_d8,
11101 }, {
11102 .eraseblocks = { {4 * 1024 * 1024, 1} },
11103 .block_erase = spi_block_erase_c7,
11104 }
11105 },
11106 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11107 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11108 .write = spi_chip_write_256, /* Multi I/O supported */
11109 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11110 .voltage = {2700, 3600},
11111 },
11112
11113 {
11114 .vendor = "Micron/Numonyx/ST",
11115 .name = "N25Q064..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
11116 .bustype = BUS_SPI,
11117 .manufacture_id = ST_ID,
11118 .model_id = ST_N25Q064__1E,
11119 .total_size = 8192,
11120 .page_size = 256,
11121 /* supports SFDP */
11122 /* OTP: 64B total; read 0x4B, write 0x42 */
11123 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000011124 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011125 .probe = probe_spi_rdid,
11126 .probe_timing = TIMING_ZERO,
11127 .block_erasers =
11128 {
11129 {
11130 .eraseblocks = { {4 * 1024, 2048 } },
11131 .block_erase = spi_block_erase_20,
11132 }, {
11133 .eraseblocks = { {64 * 1024, 128} },
11134 .block_erase = spi_block_erase_d8,
11135 }, {
11136 .eraseblocks = { {8 * 1024 * 1024, 1} },
11137 .block_erase = spi_block_erase_c7,
11138 }
11139 },
11140 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11141 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11142 .write = spi_chip_write_256, /* Multi I/O supported */
11143 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11144 .voltage = {1700, 2000},
11145 },
11146
11147 {
11148 .vendor = "Micron/Numonyx/ST",
11149 .name = "N25Q064..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
11150 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100011151 .manufacture_id = ST_ID,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011152 .model_id = ST_N25Q064__3E,
11153 .total_size = 8192,
11154 .page_size = 256,
11155 /* supports SFDP */
11156 /* OTP: 64B total; read 0x4B, write 0x42 */
11157 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11158 .tested = TEST_OK_PREW,
11159 .probe = probe_spi_rdid,
11160 .probe_timing = TIMING_ZERO,
11161 .block_erasers =
11162 {
11163 {
11164 .eraseblocks = { {4 * 1024, 2048 } },
11165 .block_erase = spi_block_erase_20,
11166 }, {
11167 .eraseblocks = { {64 * 1024, 128} },
11168 .block_erase = spi_block_erase_d8,
11169 }, {
11170 .eraseblocks = { {8 * 1024 * 1024, 1} },
11171 .block_erase = spi_block_erase_c7,
11172 }
11173 },
11174 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11175 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11176 .write = spi_chip_write_256, /* Multi I/O supported */
11177 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11178 .voltage = {2700, 3600},
11179 },
11180
11181 {
11182 .vendor = "Micron/Numonyx/ST",
11183 .name = "N25Q128..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
11184 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100011185 .manufacture_id = ST_ID,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011186 .model_id = ST_N25Q128__1E,
11187 .total_size = 16384,
11188 .page_size = 256,
11189 /* supports SFDP */
11190 /* OTP: 64B total; read 0x4B, write 0x42 */
11191 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011192 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011193 .probe = probe_spi_rdid,
11194 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011195 .block_erasers =
11196 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011197 {
11198 .eraseblocks = { {4 * 1024, 4096 } },
11199 .block_erase = spi_block_erase_20,
11200 }, {
11201 .eraseblocks = { {64 * 1024, 256} },
11202 .block_erase = spi_block_erase_d8,
11203 }, {
11204 .eraseblocks = { {16384 * 1024, 1} },
11205 .block_erase = spi_block_erase_c7,
11206 }
11207 },
11208 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11209 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11210 .write = spi_chip_write_256, /* Multi I/O supported */
11211 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11212 .voltage = {1700, 2000},
11213 },
11214
11215 {
11216 .vendor = "Micron/Numonyx/ST",
11217 .name = "N25Q128..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
11218 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100011219 .manufacture_id = ST_ID,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011220 .model_id = ST_N25Q128__3E,
11221 .total_size = 16384,
11222 .page_size = 256,
11223 /* supports SFDP */
11224 /* OTP: 64B total; read 0x4B, write 0x42 */
11225 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11226 .tested = TEST_OK_PREW,
11227 .probe = probe_spi_rdid,
11228 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011229 .block_erasers =
11230 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011231 {
11232 .eraseblocks = { {4 * 1024, 4096 } },
11233 .block_erase = spi_block_erase_20,
11234 }, {
11235 .eraseblocks = { {64 * 1024, 256} },
11236 .block_erase = spi_block_erase_d8,
11237 }, {
11238 .eraseblocks = { {16384 * 1024, 1} },
11239 .block_erase = spi_block_erase_c7,
11240 }
11241 },
11242 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11243 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11244 .write = spi_chip_write_256, /* Multi I/O supported */
11245 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11246 .voltage = {2700, 3600},
11247 },
11248
11249 {
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011250 .vendor = "Micron/Numonyx/ST",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011251 .name = "N25Q256..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
11252 .bustype = BUS_SPI,
11253 .manufacture_id = ST_ID,
11254 .model_id = ST_N25Q256__1E,
11255 .total_size = 32768,
11256 .page_size = 256,
11257 /* supports SFDP */
11258 /* OTP: 64B total; read 0x4B, write 0x42 */
11259 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11260 .tested = TEST_UNTESTED,
11261 .probe = probe_spi_rdid,
11262 .probe_timing = TIMING_ZERO,
11263 .block_erasers =
11264 {
11265 {
11266 .eraseblocks = { {4 * 1024, 8192} },
11267 .block_erase = spi_block_erase_21,
11268 }, {
11269 .eraseblocks = { {4 * 1024, 8192} },
11270 .block_erase = spi_block_erase_20,
11271 }, {
11272 .eraseblocks = { {64 * 1024, 512} },
11273 .block_erase = spi_block_erase_dc,
11274 }, {
11275 .eraseblocks = { {64 * 1024, 512} },
11276 .block_erase = spi_block_erase_d8,
11277 }, {
11278 .eraseblocks = { {32768 * 1024, 1} },
11279 .block_erase = spi_block_erase_c7,
11280 }
11281 },
11282 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11283 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11284 .write = spi_chip_write_256, /* Multi I/O supported */
11285 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11286 .voltage = {1700, 2000},
11287 },
11288
11289 {
11290 .vendor = "Micron/Numonyx/ST",
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011291 .name = "N25Q256..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
11292 .bustype = BUS_SPI,
11293 .manufacture_id = ST_ID,
11294 .model_id = ST_N25Q256__3E,
11295 .total_size = 32768,
11296 .page_size = 256,
11297 /* supports SFDP */
11298 /* OTP: 64B total; read 0x4B, write 0x42 */
11299 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11300 .tested = TEST_UNTESTED,
11301 .probe = probe_spi_rdid,
11302 .probe_timing = TIMING_ZERO,
11303 .block_erasers =
11304 {
11305 {
11306 .eraseblocks = { {4 * 1024, 8192} },
11307 .block_erase = spi_block_erase_21,
11308 }, {
11309 .eraseblocks = { {4 * 1024, 8192} },
11310 .block_erase = spi_block_erase_20,
11311 }, {
11312 .eraseblocks = { {64 * 1024, 512} },
11313 .block_erase = spi_block_erase_dc,
11314 }, {
11315 .eraseblocks = { {64 * 1024, 512} },
11316 .block_erase = spi_block_erase_d8,
11317 }, {
11318 .eraseblocks = { {32768 * 1024, 1} },
11319 .block_erase = spi_block_erase_c7,
11320 }
11321 },
11322 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11323 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11324 .write = spi_chip_write_256, /* Multi I/O supported */
11325 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11326 .voltage = {2700, 3600},
11327 },
11328
11329 {
11330 .vendor = "Micron/Numonyx/ST",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011331 .name = "N25Q512..1G", /* ..1G = 1.8V, uniform 64KB/4KB blocks/sectors */
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011332 .bustype = BUS_SPI,
11333 .manufacture_id = ST_ID,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011334 .model_id = ST_N25Q512__1G,
11335 .total_size = 65536,
11336 .page_size = 256,
11337 /* supports SFDP */
11338 /* OTP: 64B total; read 0x4B, write 0x42 */
11339 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11340 .tested = TEST_UNTESTED,
11341 .probe = probe_spi_rdid,
11342 .probe_timing = TIMING_ZERO,
11343 .block_erasers =
11344 {
11345 {
11346 .eraseblocks = { {4 * 1024, 16384} },
11347 .block_erase = spi_block_erase_21,
11348 }, {
11349 .eraseblocks = { {4 * 1024, 16384} },
11350 .block_erase = spi_block_erase_20,
11351 }, {
11352 .eraseblocks = { {64 * 1024, 1024} },
11353 .block_erase = spi_block_erase_dc,
11354 }, {
11355 .eraseblocks = { {64 * 1024, 1024} },
11356 .block_erase = spi_block_erase_d8,
11357 }, {
11358 .eraseblocks = { {32768 * 1024, 2} },
11359 .block_erase = spi_block_erase_c4,
11360 }
11361 },
11362 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11363 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11364 .write = spi_chip_write_256, /* Multi I/O supported */
11365 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11366 .voltage = {1700, 2000},
11367 },
11368
11369 {
11370 .vendor = "Micron/Numonyx/ST",
11371 .name = "N25Q512..3G", /* ..3G = 3V, uniform 64KB/4KB blocks/sectors */
11372 .bustype = BUS_SPI,
11373 .manufacture_id = ST_ID,
11374 .model_id = ST_N25Q512__3G,
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011375 .total_size = 65536,
11376 .page_size = 256,
11377 /* supports SFDP */
11378 /* OTP: 64B total; read 0x4B, write 0x42 */
11379 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11380 .tested = TEST_OK_PREW,
11381 .probe = probe_spi_rdid,
11382 .probe_timing = TIMING_ZERO,
11383 .block_erasers =
11384 {
11385 {
11386 .eraseblocks = { {4 * 1024, 16384} },
11387 .block_erase = spi_block_erase_21,
11388 }, {
11389 .eraseblocks = { {4 * 1024, 16384} },
11390 .block_erase = spi_block_erase_20,
11391 }, {
11392 .eraseblocks = { {64 * 1024, 1024} },
11393 .block_erase = spi_block_erase_dc,
11394 }, {
11395 .eraseblocks = { {64 * 1024, 1024} },
11396 .block_erase = spi_block_erase_d8,
11397 }, {
Jacob Creedone8e7b0e2019-07-22 12:21:22 -070011398 .eraseblocks = { {32768 * 1024, 2} },
11399 .block_erase = spi_block_erase_c4,
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011400 }
11401 },
11402 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11403 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11404 .write = spi_chip_write_256, /* Multi I/O supported */
11405 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11406 .voltage = {2700, 3600},
11407 },
11408
11409 {
Ed Swierk199ab392017-07-03 13:33:44 -070011410 .vendor = "Micron",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011411 .name = "MT25QL01G", /* L = 3V, uniform 64KB/4KB blocks/sectors */
11412 .bustype = BUS_SPI,
11413 .manufacture_id = ST_ID,
11414 .model_id = ST_N25Q00A__3G,
11415 .total_size = 131072,
11416 .page_size = 256,
11417 /* supports SFDP */
11418 /* OTP: 64B total; read 0x4B, write 0x42 */
11419 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11420 .tested = TEST_OK_PREW,
11421 .probe = probe_spi_rdid,
11422 .probe_timing = TIMING_ZERO,
11423 .block_erasers =
11424 {
11425 {
11426 .eraseblocks = { {4 * 1024, 32768} },
11427 .block_erase = spi_block_erase_21,
11428 }, {
11429 .eraseblocks = { {4 * 1024, 32768} },
11430 .block_erase = spi_block_erase_20,
11431 }, {
11432 .eraseblocks = { {32 * 1024, 4096} },
11433 .block_erase = spi_block_erase_5c,
11434 }, {
11435 .eraseblocks = { {32 * 1024, 4096} },
11436 .block_erase = spi_block_erase_52,
11437 }, {
11438 .eraseblocks = { {64 * 1024, 2048} },
11439 .block_erase = spi_block_erase_dc,
11440 }, {
11441 .eraseblocks = { {64 * 1024, 2048} },
11442 .block_erase = spi_block_erase_d8,
11443 }, {
11444 .eraseblocks = { {65536 * 1024, 2} },
11445 .block_erase = spi_block_erase_c4,
11446 }
11447 },
11448 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11449 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11450 .write = spi_chip_write_256, /* Multi I/O supported */
11451 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11452 .voltage = {2700, 3600},
11453 },
11454
11455 {
11456 .vendor = "Micron",
11457 .name = "MT25QU01G", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
11458 .bustype = BUS_SPI,
11459 .manufacture_id = ST_ID,
11460 .model_id = ST_N25Q00A__1G,
11461 .total_size = 131072,
11462 .page_size = 256,
11463 /* supports SFDP */
11464 /* OTP: 64B total; read 0x4B, write 0x42 */
11465 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11466 .tested = TEST_UNTESTED,
11467 .probe = probe_spi_rdid,
11468 .probe_timing = TIMING_ZERO,
11469 .block_erasers =
11470 {
11471 {
11472 .eraseblocks = { {4 * 1024, 32768} },
11473 .block_erase = spi_block_erase_21,
11474 }, {
11475 .eraseblocks = { {4 * 1024, 32768} },
11476 .block_erase = spi_block_erase_20,
11477 }, {
11478 .eraseblocks = { {32 * 1024, 4096} },
11479 .block_erase = spi_block_erase_5c,
11480 }, {
11481 .eraseblocks = { {32 * 1024, 4096} },
11482 .block_erase = spi_block_erase_52,
11483 }, {
11484 .eraseblocks = { {64 * 1024, 2048} },
11485 .block_erase = spi_block_erase_dc,
11486 }, {
11487 .eraseblocks = { {64 * 1024, 2048} },
11488 .block_erase = spi_block_erase_d8,
11489 }, {
11490 .eraseblocks = { {65536 * 1024, 2} },
11491 .block_erase = spi_block_erase_c4,
11492 }
11493 },
11494 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11495 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11496 .write = spi_chip_write_256, /* Multi I/O supported */
11497 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11498 .voltage = {1700, 2000},
11499 },
11500
11501 {
11502 .vendor = "Micron",
11503 .name = "MT25QL02G", /* L = 3V, uniform 64KB/4KB blocks/sectors */
11504 .bustype = BUS_SPI,
11505 .manufacture_id = ST_ID,
11506 .model_id = ST_MT25QL02G,
11507 .total_size = 262144,
11508 .page_size = 256,
11509 /* supports SFDP */
11510 /* OTP: 64B total; read 0x4B, write 0x42 */
11511 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11512 .tested = TEST_UNTESTED,
11513 .probe = probe_spi_rdid,
11514 .probe_timing = TIMING_ZERO,
11515 .block_erasers =
11516 {
11517 {
11518 .eraseblocks = { {4 * 1024, 65536} },
11519 .block_erase = spi_block_erase_21,
11520 }, {
11521 .eraseblocks = { {4 * 1024, 65536} },
11522 .block_erase = spi_block_erase_20,
11523 }, {
11524 .eraseblocks = { {32 * 1024, 8192} },
11525 .block_erase = spi_block_erase_5c,
11526 }, {
11527 .eraseblocks = { {32 * 1024, 8192} },
11528 .block_erase = spi_block_erase_52,
11529 }, {
11530 .eraseblocks = { {64 * 1024, 4096} },
11531 .block_erase = spi_block_erase_dc,
11532 }, {
11533 .eraseblocks = { {64 * 1024, 4096} },
11534 .block_erase = spi_block_erase_d8,
11535 }, {
11536 .eraseblocks = { {65536 * 1024, 4} },
11537 .block_erase = spi_block_erase_c4,
11538 }
11539 },
11540 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11541 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11542 .write = spi_chip_write_256, /* Multi I/O supported */
11543 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11544 .voltage = {2700, 3600},
11545 },
11546
11547 {
11548 .vendor = "Micron",
11549 .name = "MT25QU02G", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
11550 .bustype = BUS_SPI,
11551 .manufacture_id = ST_ID,
11552 .model_id = ST_MT25QU02G,
11553 .total_size = 262144,
11554 .page_size = 256,
11555 /* supports SFDP */
11556 /* OTP: 64B total; read 0x4B, write 0x42 */
11557 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11558 .tested = TEST_UNTESTED,
11559 .probe = probe_spi_rdid,
11560 .probe_timing = TIMING_ZERO,
11561 .block_erasers =
11562 {
11563 {
11564 .eraseblocks = { {4 * 1024, 65536} },
11565 .block_erase = spi_block_erase_21,
11566 }, {
11567 .eraseblocks = { {4 * 1024, 65536} },
11568 .block_erase = spi_block_erase_20,
11569 }, {
11570 .eraseblocks = { {32 * 1024, 8192} },
11571 .block_erase = spi_block_erase_5c,
11572 }, {
11573 .eraseblocks = { {32 * 1024, 8192} },
11574 .block_erase = spi_block_erase_52,
11575 }, {
11576 .eraseblocks = { {64 * 1024, 4096} },
11577 .block_erase = spi_block_erase_dc,
11578 }, {
11579 .eraseblocks = { {64 * 1024, 4096} },
11580 .block_erase = spi_block_erase_d8,
11581 }, {
11582 .eraseblocks = { {65536 * 1024, 4} },
11583 .block_erase = spi_block_erase_c4,
11584 }
11585 },
11586 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11587 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11588 .write = spi_chip_write_256, /* Multi I/O supported */
11589 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11590 .voltage = {1700, 2000},
11591 },
11592
11593 {
11594 .vendor = "Micron",
11595 .name = "MT25QU128", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
11596 .bustype = BUS_SPI,
11597 .manufacture_id = ST_ID,
11598 .model_id = ST_N25Q128__1E,
11599 .total_size = 16384,
11600 .page_size = 256,
11601 /* supports SFDP */
11602 /* OTP: 64B total; read 0x4B, write 0x42 */
11603 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11604 .tested = TEST_UNTESTED,
11605 .probe = probe_spi_rdid,
11606 .probe_timing = TIMING_ZERO,
11607 .block_erasers =
11608 {
11609 {
11610 .eraseblocks = { {4 * 1024, 4096} },
11611 .block_erase = spi_block_erase_20,
11612 }, {
11613 .eraseblocks = { {32 * 1024, 512} },
11614 .block_erase = spi_block_erase_52,
11615 }, {
11616 .eraseblocks = { {64 * 1024, 256} },
11617 .block_erase = spi_block_erase_d8,
11618 }, {
11619 .eraseblocks = { {16384 * 1024, 1} },
11620 .block_erase = spi_block_erase_c7,
11621 }, {
11622 .eraseblocks = { {16384 * 1024, 1} },
11623 .block_erase = spi_block_erase_60,
11624 }
11625 },
11626 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11627 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11628 .write = spi_chip_write_256, /* Multi I/O supported */
11629 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11630 .voltage = {1700, 2000},
11631 },
11632
11633 {
11634 .vendor = "Micron",
11635 .name = "MT25QL128", /* L = 3V, uniform 64KB/4KB blocks/sectors */
11636 .bustype = BUS_SPI,
11637 .manufacture_id = ST_ID,
11638 .model_id = ST_N25Q128__3E,
11639 .total_size = 16384,
11640 .page_size = 256,
11641 /* supports SFDP */
11642 /* OTP: 64B total; read 0x4B, write 0x42 */
11643 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11644 .tested = TEST_UNTESTED,
11645 .probe = probe_spi_rdid,
11646 .probe_timing = TIMING_ZERO,
11647 .block_erasers =
11648 {
11649 {
11650 .eraseblocks = { {4 * 1024, 4096} },
11651 .block_erase = spi_block_erase_20,
11652 }, {
11653 .eraseblocks = { {32 * 1024, 512} },
11654 .block_erase = spi_block_erase_52,
11655 }, {
11656 .eraseblocks = { {64 * 1024, 256} },
11657 .block_erase = spi_block_erase_d8,
11658 }, {
11659 .eraseblocks = { {16384 * 1024, 1} },
11660 .block_erase = spi_block_erase_c7,
11661 }, {
11662 .eraseblocks = { {16384 * 1024, 1} },
11663 .block_erase = spi_block_erase_60,
11664 }
11665 },
11666 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11667 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11668 .write = spi_chip_write_256, /* Multi I/O supported */
11669 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11670 .voltage = {2700, 3600},
11671 },
11672
11673 {
11674 .vendor = "Micron",
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011675 .name = "MT25QL256", /* L = 3V, uniform 64KB/4KB blocks/sectors */
Ed Swierk199ab392017-07-03 13:33:44 -070011676 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100011677 .manufacture_id = ST_ID,
Ed Swierk199ab392017-07-03 13:33:44 -070011678 .model_id = ST_N25Q256__3E,
11679 .total_size = 32768,
11680 .page_size = 256,
11681 /* supports SFDP */
11682 /* OTP: 64B total; read 0x4B, write 0x42 */
Nico Huberaac81422017-11-10 22:54:13 +010011683 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
Simon Buhrowb7014f92021-02-15 13:16:57 +010011684 .tested = TEST_OK_PREW,
Ed Swierk199ab392017-07-03 13:33:44 -070011685 .probe = probe_spi_rdid,
11686 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011687 .block_erasers =
11688 {
Ed Swierk199ab392017-07-03 13:33:44 -070011689 {
11690 .eraseblocks = { {4 * 1024, 8192} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020011691 .block_erase = spi_block_erase_21,
Ed Swierk199ab392017-07-03 13:33:44 -070011692 }, {
Nico Huberaac81422017-11-10 22:54:13 +010011693 .eraseblocks = { {4 * 1024, 8192} },
11694 .block_erase = spi_block_erase_20,
11695 }, {
Jacob Creedon045b97e2019-07-22 12:26:56 -070011696 .eraseblocks = { {32 * 1024, 1024} },
11697 .block_erase = spi_block_erase_5c,
11698 }, {
11699 .eraseblocks = { {32 * 1024, 1024} },
11700 .block_erase = spi_block_erase_52,
11701 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070011702 .eraseblocks = { {64 * 1024, 512} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020011703 .block_erase = spi_block_erase_dc,
Ed Swierk199ab392017-07-03 13:33:44 -070011704 }, {
Nico Huberaac81422017-11-10 22:54:13 +010011705 .eraseblocks = { {64 * 1024, 512} },
11706 .block_erase = spi_block_erase_d8,
11707 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070011708 .eraseblocks = { {32768 * 1024, 1} },
11709 .block_erase = spi_block_erase_c7,
Jacob Creedon045b97e2019-07-22 12:26:56 -070011710 }, {
11711 .eraseblocks = { {32768 * 1024, 1} },
11712 .block_erase = spi_block_erase_60,
Ed Swierk199ab392017-07-03 13:33:44 -070011713 }
11714 },
11715 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11716 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11717 .write = spi_chip_write_256, /* Multi I/O supported */
11718 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11719 .voltage = {2700, 3600},
11720 },
11721
11722 {
11723 .vendor = "Micron",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011724 .name = "MT25QU256", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
11725 .bustype = BUS_SPI,
11726 .manufacture_id = ST_ID,
11727 .model_id = ST_N25Q256__1E,
11728 .total_size = 32768,
11729 .page_size = 256,
11730 /* supports SFDP */
11731 /* OTP: 64B total; read 0x4B, write 0x42 */
11732 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11733 .tested = TEST_UNTESTED,
11734 .probe = probe_spi_rdid,
11735 .probe_timing = TIMING_ZERO,
11736 .block_erasers =
11737 {
11738 {
11739 .eraseblocks = { {4 * 1024, 8192} },
11740 .block_erase = spi_block_erase_21,
11741 }, {
11742 .eraseblocks = { {4 * 1024, 8192} },
11743 .block_erase = spi_block_erase_20,
11744 }, {
11745 .eraseblocks = { {32 * 1024, 1024} },
11746 .block_erase = spi_block_erase_5c,
11747 }, {
11748 .eraseblocks = { {32 * 1024, 1024} },
11749 .block_erase = spi_block_erase_52,
11750 }, {
11751 .eraseblocks = { {64 * 1024, 512} },
11752 .block_erase = spi_block_erase_dc,
11753 }, {
11754 .eraseblocks = { {64 * 1024, 512} },
11755 .block_erase = spi_block_erase_d8,
11756 }, {
11757 .eraseblocks = { {32768 * 1024, 1} },
11758 .block_erase = spi_block_erase_c7,
11759 }, {
11760 .eraseblocks = { {32768 * 1024, 1} },
11761 .block_erase = spi_block_erase_60,
11762 }
11763 },
11764 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11765 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11766 .write = spi_chip_write_256, /* Multi I/O supported */
11767 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11768 .voltage = {1700, 2000},
11769 },
11770
11771 {
11772 .vendor = "Micron",
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011773 .name = "MT25QL512", /* L = 3V, uniform 64KB/4KB blocks/sectors */
Ed Swierk199ab392017-07-03 13:33:44 -070011774 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100011775 .manufacture_id = ST_ID,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011776 .model_id = ST_N25Q512__3G,
Ed Swierk199ab392017-07-03 13:33:44 -070011777 .total_size = 65536,
11778 .page_size = 256,
11779 /* supports SFDP */
11780 /* OTP: 64B total; read 0x4B, write 0x42 */
Nico Huberaac81422017-11-10 22:54:13 +010011781 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
Angel Pons3ed5a352018-09-30 16:31:09 +020011782 .tested = TEST_OK_PREW,
Ed Swierk199ab392017-07-03 13:33:44 -070011783 .probe = probe_spi_rdid,
11784 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011785 .block_erasers =
11786 {
Ed Swierk199ab392017-07-03 13:33:44 -070011787 {
11788 .eraseblocks = { {4 * 1024, 16384} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020011789 .block_erase = spi_block_erase_21,
Ed Swierk199ab392017-07-03 13:33:44 -070011790 }, {
Nico Huberaac81422017-11-10 22:54:13 +010011791 .eraseblocks = { {4 * 1024, 16384} },
11792 .block_erase = spi_block_erase_20,
11793 }, {
Jacob Creedon045b97e2019-07-22 12:26:56 -070011794 .eraseblocks = { {32 * 1024, 2048} },
11795 .block_erase = spi_block_erase_5c,
11796 }, {
11797 .eraseblocks = { {32 * 1024, 2048} },
11798 .block_erase = spi_block_erase_52,
11799 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070011800 .eraseblocks = { {64 * 1024, 1024} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020011801 .block_erase = spi_block_erase_dc,
Ed Swierk199ab392017-07-03 13:33:44 -070011802 }, {
Nico Huberaac81422017-11-10 22:54:13 +010011803 .eraseblocks = { {64 * 1024, 1024} },
11804 .block_erase = spi_block_erase_d8,
11805 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070011806 .eraseblocks = { {65536 * 1024, 1} },
11807 .block_erase = spi_block_erase_c7,
Jacob Creedon045b97e2019-07-22 12:26:56 -070011808 }, {
11809 .eraseblocks = { {65536 * 1024, 1} },
11810 .block_erase = spi_block_erase_60,
Ed Swierk199ab392017-07-03 13:33:44 -070011811 }
11812 },
11813 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11814 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11815 .write = spi_chip_write_256, /* Multi I/O supported */
11816 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11817 .voltage = {2700, 3600},
11818 },
11819
11820 {
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011821 .vendor = "Micron",
11822 .name = "MT25QU512", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
11823 .bustype = BUS_SPI,
11824 .manufacture_id = ST_ID,
11825 .model_id = ST_N25Q512__1G,
11826 .total_size = 65536,
11827 .page_size = 256,
11828 /* supports SFDP */
11829 /* OTP: 64B total; read 0x4B, write 0x42 */
11830 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11831 .tested = TEST_OK_PREW,
11832 .probe = probe_spi_rdid,
11833 .probe_timing = TIMING_ZERO,
11834 .block_erasers =
11835 {
11836 {
11837 .eraseblocks = { {4 * 1024, 16384} },
11838 .block_erase = spi_block_erase_21,
11839 }, {
11840 .eraseblocks = { {4 * 1024, 16384} },
11841 .block_erase = spi_block_erase_20,
11842 }, {
11843 .eraseblocks = { {32 * 1024, 2048} },
11844 .block_erase = spi_block_erase_5c,
11845 }, {
11846 .eraseblocks = { {32 * 1024, 2048} },
11847 .block_erase = spi_block_erase_52,
11848 }, {
11849 .eraseblocks = { {64 * 1024, 1024} },
11850 .block_erase = spi_block_erase_dc,
11851 }, {
11852 .eraseblocks = { {64 * 1024, 1024} },
11853 .block_erase = spi_block_erase_d8,
11854 }, {
11855 .eraseblocks = { {65536 * 1024, 1} },
11856 .block_erase = spi_block_erase_c7,
11857 }, {
11858 .eraseblocks = { {65536 * 1024, 1} },
11859 .block_erase = spi_block_erase_60,
11860 }
11861 },
11862 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11863 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11864 .write = spi_chip_write_256, /* Multi I/O supported */
11865 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11866 .voltage = {1700, 2000},
11867 },
11868
11869 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000011870 .vendor = "MoselVitelic",
11871 .name = "V29C51000B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011872 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011873 .manufacture_id = SYNCMOS_MVC_ID,
11874 .model_id = MVC_V29C51000B,
11875 .total_size = 64,
11876 .page_size = 512,
11877 .feature_bits = FEATURE_EITHER_RESET,
11878 .tested = TEST_UNTESTED,
11879 .probe = probe_jedec,
11880 .probe_timing = TIMING_ZERO,
11881 .block_erasers =
11882 {
11883 {
11884 .eraseblocks = { {512, 128} },
11885 .block_erase = erase_sector_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,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011893 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011894 },
11895
11896 {
11897 .vendor = "MoselVitelic",
11898 .name = "V29C51000T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011899 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011900 .manufacture_id = SYNCMOS_MVC_ID,
11901 .model_id = MVC_V29C51000T,
11902 .total_size = 64,
11903 .page_size = 512,
11904 .feature_bits = FEATURE_EITHER_RESET,
11905 .tested = TEST_UNTESTED,
11906 .probe = probe_jedec,
11907 .probe_timing = TIMING_ZERO,
11908 .block_erasers =
11909 {
11910 {
11911 .eraseblocks = { {512, 128} },
11912 .block_erase = erase_sector_jedec,
11913 }, {
11914 .eraseblocks = { {64 * 1024, 1} },
11915 .block_erase = erase_chip_block_jedec,
11916 },
11917 },
11918 .write = write_jedec_1,
11919 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011920 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011921 },
11922
11923 {
11924 .vendor = "MoselVitelic",
11925 .name = "V29C51400B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011926 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011927 .manufacture_id = SYNCMOS_MVC_ID,
11928 .model_id = MVC_V29C51400B,
11929 .total_size = 512,
11930 .page_size = 1024,
11931 .feature_bits = FEATURE_EITHER_RESET,
11932 .tested = TEST_UNTESTED,
11933 .probe = probe_jedec,
11934 .probe_timing = TIMING_ZERO,
11935 .block_erasers =
11936 {
11937 {
11938 .eraseblocks = { {1024, 512} },
11939 .block_erase = erase_sector_jedec,
11940 }, {
11941 .eraseblocks = { {512 * 1024, 1} },
11942 .block_erase = erase_chip_block_jedec,
11943 },
11944 },
11945 .write = write_jedec_1,
11946 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011947 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011948 },
11949
11950 {
11951 .vendor = "MoselVitelic",
11952 .name = "V29C51400T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011953 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011954 .manufacture_id = SYNCMOS_MVC_ID,
11955 .model_id = MVC_V29C51400T,
11956 .total_size = 512,
11957 .page_size = 1024,
11958 .feature_bits = FEATURE_EITHER_RESET,
11959 .tested = TEST_UNTESTED,
11960 .probe = probe_jedec,
11961 .probe_timing = TIMING_ZERO,
11962 .block_erasers =
11963 {
11964 {
11965 .eraseblocks = { {1024, 512} },
11966 .block_erase = erase_sector_jedec,
11967 }, {
11968 .eraseblocks = { {512 * 1024, 1} },
11969 .block_erase = erase_chip_block_jedec,
11970 },
11971 },
11972 .write = write_jedec_1,
11973 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000011974 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000011975 },
11976
11977 {
11978 .vendor = "MoselVitelic",
11979 .name = "V29LC51000",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000011980 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000011981 .manufacture_id = SYNCMOS_MVC_ID,
11982 .model_id = MVC_V29LC51000,
11983 .total_size = 64,
11984 .page_size = 512,
11985 .feature_bits = FEATURE_EITHER_RESET,
11986 .tested = TEST_UNTESTED,
11987 .probe = probe_jedec,
11988 .probe_timing = TIMING_ZERO,
11989 .block_erasers =
11990 {
11991 {
11992 .eraseblocks = { {512, 128} },
11993 .block_erase = erase_sector_jedec,
11994 }, {
11995 .eraseblocks = { {64 * 1024, 1} },
11996 .block_erase = erase_chip_block_jedec,
11997 },
11998 },
11999 .write = write_jedec_1,
12000 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012001 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000012002 },
12003
12004 {
12005 .vendor = "MoselVitelic",
12006 .name = "V29LC51001",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012007 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012008 .manufacture_id = SYNCMOS_MVC_ID,
12009 .model_id = MVC_V29LC51001,
12010 .total_size = 128,
12011 .page_size = 512,
12012 .feature_bits = FEATURE_EITHER_RESET,
12013 .tested = TEST_UNTESTED,
12014 .probe = probe_jedec,
12015 .probe_timing = TIMING_ZERO,
12016 .block_erasers =
12017 {
12018 {
12019 .eraseblocks = { {512, 256} },
12020 .block_erase = erase_sector_jedec,
12021 }, {
12022 .eraseblocks = { {128 * 1024, 1} },
12023 .block_erase = erase_chip_block_jedec,
12024 },
12025 },
12026 .write = write_jedec_1,
12027 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012028 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000012029 },
12030
12031 {
12032 .vendor = "MoselVitelic",
12033 .name = "V29LC51002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012034 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012035 .manufacture_id = SYNCMOS_MVC_ID,
12036 .model_id = MVC_V29LC51002,
12037 .total_size = 256,
12038 .page_size = 512,
12039 .feature_bits = FEATURE_EITHER_RESET,
12040 .tested = TEST_UNTESTED,
12041 .probe = probe_jedec,
12042 .probe_timing = TIMING_ZERO,
12043 .block_erasers =
12044 {
12045 {
12046 .eraseblocks = { {512, 512} },
12047 .block_erase = erase_sector_jedec,
12048 }, {
12049 .eraseblocks = { {256 * 1024, 1} },
12050 .block_erase = erase_chip_block_jedec,
12051 },
12052 },
12053 .write = write_jedec_1,
12054 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012055 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000012056 },
12057
12058 {
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012059 .vendor = "Nantronics",
12060 .name = "N25S10",
12061 .bustype = BUS_SPI,
12062 .manufacture_id = NANTRONICS_ID_NOPREFIX,
12063 .model_id = NANTRONICS_N25S10,
12064 .total_size = 128,
12065 .page_size = 256,
12066 .feature_bits = FEATURE_WRSR_WREN,
12067 .tested = TEST_UNTESTED,
12068 .probe = probe_spi_rdid,
12069 .probe_timing = TIMING_ZERO,
12070 .block_erasers =
12071 {
12072 {
12073 .eraseblocks = { {4 * 1024, 32} },
12074 .block_erase = spi_block_erase_20,
12075 }, {
12076 .eraseblocks = { {4 * 1024, 32} },
12077 .block_erase = spi_block_erase_d7,
12078 }, {
12079 .eraseblocks = { {32 * 1024, 4} },
12080 .block_erase = spi_block_erase_52,
12081 }, {
12082 .eraseblocks = { {64 * 1024, 2} },
12083 .block_erase = spi_block_erase_d8,
12084 }, {
12085 .eraseblocks = { {128 * 1024, 1} },
12086 .block_erase = spi_block_erase_60,
12087 }, {
12088 .eraseblocks = { {128 * 1024, 1} },
12089 .block_erase = spi_block_erase_c7,
12090 }
12091 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012092 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012093 .unlock = spi_disable_blockprotect_bp3_srwd,
12094 .write = spi_chip_write_256,
12095 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
12096 .voltage = {2700, 3600},
12097 },
12098
12099 {
12100 .vendor = "Nantronics",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012101 .name = "N25S16",
12102 .bustype = BUS_SPI,
12103 .manufacture_id = NANTRONICS_ID_NOPREFIX,
12104 .model_id = NANTRONICS_N25S16,
12105 .total_size = 2048,
12106 .page_size = 256,
12107 .feature_bits = FEATURE_WRSR_WREN,
12108 .tested = TEST_UNTESTED,
12109 .probe = probe_spi_rdid,
12110 .probe_timing = TIMING_ZERO,
12111 .block_erasers =
12112 {
12113 {
12114 .eraseblocks = { {4 * 1024, 512} },
12115 .block_erase = spi_block_erase_20,
12116 }, {
12117 .eraseblocks = { {64 * 1024, 32} },
12118 .block_erase = spi_block_erase_d8,
12119 }, {
12120 .eraseblocks = { {2048 * 1024, 1} },
12121 .block_erase = spi_block_erase_60,
12122 }, {
12123 .eraseblocks = { {2048 * 1024, 1} },
12124 .block_erase = spi_block_erase_c7,
12125 }
12126 },
12127 .printlock = spi_prettyprint_status_register_bp3_srwd,
12128 .unlock = spi_disable_blockprotect_bp3_srwd,
12129 .write = spi_chip_write_256,
12130 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
12131 .voltage = {2700, 3600},
12132 },
12133
12134 {
12135 .vendor = "Nantronics",
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012136 .name = "N25S20",
12137 .bustype = BUS_SPI,
12138 .manufacture_id = NANTRONICS_ID_NOPREFIX,
12139 .model_id = NANTRONICS_N25S20,
12140 .total_size = 256,
12141 .page_size = 256,
12142 .feature_bits = FEATURE_WRSR_WREN,
12143 .tested = TEST_UNTESTED,
12144 .probe = probe_spi_rdid,
12145 .probe_timing = TIMING_ZERO,
12146 .block_erasers =
12147 {
12148 {
12149 .eraseblocks = { {4 * 1024, 64} },
12150 .block_erase = spi_block_erase_20,
12151 }, {
12152 .eraseblocks = { {4 * 1024, 64} },
12153 .block_erase = spi_block_erase_d7,
12154 }, {
12155 .eraseblocks = { {32 * 1024, 8} },
12156 .block_erase = spi_block_erase_52,
12157 }, {
12158 .eraseblocks = { {64 * 1024, 4} },
12159 .block_erase = spi_block_erase_d8,
12160 }, {
12161 .eraseblocks = { {256 * 1024, 1} },
12162 .block_erase = spi_block_erase_60,
12163 }, {
12164 .eraseblocks = { {256 * 1024, 1} },
12165 .block_erase = spi_block_erase_c7,
12166 }
12167 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012168 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012169 .unlock = spi_disable_blockprotect_bp3_srwd,
12170 .write = spi_chip_write_256,
12171 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
12172 .voltage = {2700, 3600},
12173 },
12174
12175 {
12176 .vendor = "Nantronics",
12177 .name = "N25S40",
12178 .bustype = BUS_SPI,
12179 .manufacture_id = NANTRONICS_ID_NOPREFIX,
12180 .model_id = NANTRONICS_N25S40,
12181 .total_size = 512,
12182 .page_size = 256,
12183 .feature_bits = FEATURE_WRSR_WREN,
12184 .tested = TEST_UNTESTED,
12185 .probe = probe_spi_rdid,
12186 .probe_timing = TIMING_ZERO,
12187 .block_erasers =
12188 {
12189 {
12190 .eraseblocks = { {4 * 1024, 128} },
12191 .block_erase = spi_block_erase_20,
12192 }, {
12193 .eraseblocks = { {4 * 1024, 128} },
12194 .block_erase = spi_block_erase_d7,
12195 }, {
12196 .eraseblocks = { {32 * 1024, 16} },
12197 .block_erase = spi_block_erase_52,
12198 }, {
12199 .eraseblocks = { {64 * 1024, 8} },
12200 .block_erase = spi_block_erase_d8,
12201 }, {
12202 .eraseblocks = { {512 * 1024, 1} },
12203 .block_erase = spi_block_erase_60,
12204 }, {
12205 .eraseblocks = { {512 * 1024, 1} },
12206 .block_erase = spi_block_erase_c7,
12207 }
12208 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012209 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012210 .unlock = spi_disable_blockprotect_bp3_srwd,
12211 .write = spi_chip_write_256,
12212 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
12213 .voltage = {2700, 3600},
12214 },
12215
12216 {
12217 .vendor = "Nantronics",
12218 .name = "N25S80",
12219 .bustype = BUS_SPI,
12220 .manufacture_id = NANTRONICS_ID_NOPREFIX,
12221 .model_id = NANTRONICS_N25S80,
12222 .total_size = 1024,
12223 .page_size = 256,
12224 .feature_bits = FEATURE_WRSR_WREN,
12225 .tested = TEST_UNTESTED,
12226 .probe = probe_spi_rdid,
12227 .probe_timing = TIMING_ZERO,
12228 .block_erasers =
12229 {
12230 {
12231 .eraseblocks = { {4 * 1024, 256} },
12232 .block_erase = spi_block_erase_20,
12233 }, {
12234 .eraseblocks = { {32 * 1024, 32} },
12235 .block_erase = spi_block_erase_52,
12236 }, {
12237 .eraseblocks = { {64 * 1024, 16} },
12238 .block_erase = spi_block_erase_d8,
12239 }, {
12240 .eraseblocks = { {1024 * 1024, 1} },
12241 .block_erase = spi_block_erase_60,
12242 }, {
12243 .eraseblocks = { {1024 * 1024, 1} },
12244 .block_erase = spi_block_erase_c7,
12245 }
12246 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012247 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012248 .unlock = spi_disable_blockprotect_bp3_srwd,
12249 .write = spi_chip_write_256,
12250 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
12251 .voltage = {2700, 3600},
12252 },
12253
12254 {
Stefan Taunerf4451612013-04-19 01:59:15 +000012255 .vendor = "PMC",
12256 .name = "Pm25LD010(C)",
12257 .bustype = BUS_SPI,
12258 .manufacture_id = PMC_ID,
12259 .model_id = PMC_PM25LD010,
12260 .total_size = 128,
12261 .page_size = 256,
12262 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000012263 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +000012264 .probe = probe_spi_rdid,
12265 .probe_timing = TIMING_ZERO,
12266 .block_erasers =
12267 {
12268 {
12269 .eraseblocks = { {4 * 1024, 32} },
12270 .block_erase = spi_block_erase_20,
12271 }, {
12272 .eraseblocks = { {4 * 1024, 32} },
12273 .block_erase = spi_block_erase_d7,
12274 }, {
12275 .eraseblocks = { {32 * 1024, 4} },
12276 .block_erase = spi_block_erase_d8,
12277 }, {
12278 .eraseblocks = { {128 * 1024, 1} },
12279 .block_erase = spi_block_erase_60,
12280 }, {
12281 .eraseblocks = { {128 * 1024, 1} },
12282 .block_erase = spi_block_erase_c7,
12283 }
12284 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012285 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000012286 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
12287 .write = spi_chip_write_256,
12288 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
12289 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD010 */
12290 },
12291
12292 {
12293 .vendor = "PMC",
12294 .name = "Pm25LD020(C)",
12295 .bustype = BUS_SPI,
12296 .manufacture_id = PMC_ID,
12297 .model_id = PMC_PM25LD020,
12298 .total_size = 256,
12299 .page_size = 256,
12300 .feature_bits = FEATURE_WRSR_WREN,
Angel Ponsf5822a82018-09-30 20:09:58 +020012301 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +000012302 .probe = probe_spi_rdid,
12303 .probe_timing = TIMING_ZERO,
12304 .block_erasers =
12305 {
12306 {
12307 .eraseblocks = { {4 * 1024, 64} },
12308 .block_erase = spi_block_erase_20,
12309 }, {
12310 .eraseblocks = { {4 * 1024, 64} },
12311 .block_erase = spi_block_erase_d7,
12312 }, {
12313 .eraseblocks = { {64 * 1024, 4} },
12314 .block_erase = spi_block_erase_d8,
12315 }, {
12316 .eraseblocks = { {256 * 1024, 1} },
12317 .block_erase = spi_block_erase_60,
12318 }, {
12319 .eraseblocks = { {256 * 1024, 1} },
12320 .block_erase = spi_block_erase_c7,
12321 }
12322 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012323 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000012324 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
12325 .write = spi_chip_write_256,
12326 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
12327 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD020 */
12328 },
12329
12330 {
12331 .vendor = "PMC",
12332 .name = "Pm25LD040(C)",
12333 .bustype = BUS_SPI,
12334 .manufacture_id = PMC_ID,
12335 .model_id = PMC_PM25LV040,
12336 .total_size = 512,
12337 .page_size = 256,
12338 .feature_bits = FEATURE_WRSR_WREN,
Angel Pons05127bf2018-09-30 20:23:24 +020012339 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +000012340 .probe = probe_spi_rdid,
12341 .probe_timing = TIMING_ZERO,
12342 .block_erasers =
12343 {
12344 {
12345 .eraseblocks = { {4 * 1024, 128} },
12346 .block_erase = spi_block_erase_20,
12347 }, {
12348 .eraseblocks = { {4 * 1024, 128} },
12349 .block_erase = spi_block_erase_d7,
12350 }, {
12351 .eraseblocks = { {64 * 1024, 8} },
12352 .block_erase = spi_block_erase_d8,
12353 }, {
12354 .eraseblocks = { {512 * 1024, 1} },
12355 .block_erase = spi_block_erase_60,
12356 }, {
12357 .eraseblocks = { {512 * 1024, 1} },
12358 .block_erase = spi_block_erase_c7,
12359 }
12360 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012361 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000012362 .unlock = spi_disable_blockprotect,
12363 .write = spi_chip_write_256,
12364 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
12365 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD040 */
12366 },
12367
Steven Honeyman81a8fb72015-06-02 22:32:24 +000012368 {
12369 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012370 .name = "Pm25LD256C",
12371 .bustype = BUS_SPI,
12372 .manufacture_id = PMC_ID,
12373 .model_id = PMC_PM25LD256C,
12374 .total_size = 32,
12375 .page_size = 256,
12376 .feature_bits = FEATURE_WRSR_WREN,
12377 .tested = TEST_UNTESTED,
12378 .probe = probe_spi_rdid,
12379 .probe_timing = TIMING_ZERO,
12380 .block_erasers =
12381 {
12382 {
12383 .eraseblocks = { {4 * 1024, 8} },
12384 .block_erase = spi_block_erase_20,
12385 }, {
12386 .eraseblocks = { {4 * 1024, 8} },
12387 .block_erase = spi_block_erase_d7,
12388 }, {
12389 .eraseblocks = { {32 * 1024, 1} },
12390 .block_erase = spi_block_erase_d8,
12391 }, {
12392 .eraseblocks = { {32 * 1024, 1} },
12393 .block_erase = spi_block_erase_60,
12394 }, {
12395 .eraseblocks = { {32 * 1024, 1} },
12396 .block_erase = spi_block_erase_c7,
12397 }
12398 },
12399 .printlock = spi_prettyprint_status_register_bp2_srwd,
12400 .unlock = spi_disable_blockprotect,
12401 .write = spi_chip_write_256,
12402 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
12403 .voltage = {2700, 3600},
12404 },
12405
12406 {
12407 .vendor = "PMC",
12408 .name = "Pm25LD512(C)",
12409 .bustype = BUS_SPI,
12410 .manufacture_id = PMC_ID,
12411 .model_id = PMC_PM25LD512,
12412 .total_size = 64,
12413 .page_size = 256,
12414 .feature_bits = FEATURE_WRSR_WREN,
12415 .tested = TEST_OK_PREW,
12416 .probe = probe_spi_rdid,
12417 .probe_timing = TIMING_ZERO,
12418 .block_erasers =
12419 {
12420 {
12421 .eraseblocks = { {4 * 1024, 16} },
12422 .block_erase = spi_block_erase_20,
12423 }, {
12424 .eraseblocks = { {4 * 1024, 16} },
12425 .block_erase = spi_block_erase_d7,
12426 }, {
12427 .eraseblocks = { {32 * 1024, 2} },
12428 .block_erase = spi_block_erase_d8,
12429 }, {
12430 .eraseblocks = { {64 * 1024, 1} },
12431 .block_erase = spi_block_erase_60,
12432 }, {
12433 .eraseblocks = { {64 * 1024, 1} },
12434 .block_erase = spi_block_erase_c7,
12435 }
12436 },
12437 .printlock = spi_prettyprint_status_register_bp2_srwd,
12438 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
12439 .write = spi_chip_write_256,
12440 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
12441 .voltage = {2300, 3600},
12442 },
12443
12444 {
12445 .vendor = "PMC",
12446 .name = "Pm25LQ016",
12447 .bustype = BUS_SPI,
12448 .manufacture_id = PMC_ID,
12449 .model_id = PMC_PM25LQ016,
12450 .total_size = 2048,
12451 .page_size = 256,
12452 /* OTP: 256B total; read 0x4B, write 0xB1 */
12453 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12454 .tested = TEST_UNTESTED,
12455 .probe = probe_spi_rdid,
12456 .probe_timing = TIMING_ZERO,
12457 .block_erasers =
12458 {
12459 {
12460 .eraseblocks = { {4 * 1024, 512} },
12461 .block_erase = spi_block_erase_20,
12462 }, {
12463 .eraseblocks = { {4 * 1024, 512} },
12464 .block_erase = spi_block_erase_d7,
12465 }, {
12466 .eraseblocks = { {64 * 1024, 32} },
12467 .block_erase = spi_block_erase_d8,
12468 }, {
12469 .eraseblocks = { {2048 * 1024, 1} },
12470 .block_erase = spi_block_erase_60,
12471 }, {
12472 .eraseblocks = { {2048 * 1024, 1} },
12473 .block_erase = spi_block_erase_c7,
12474 }
12475 },
12476 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
12477 .unlock = spi_disable_blockprotect_bp3_srwd,
12478 .write = spi_chip_write_256,
12479 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12480 .voltage = {2300, 3600},
12481 },
12482
12483 {
12484 .vendor = "PMC",
Steven Honeyman81a8fb72015-06-02 22:32:24 +000012485 .name = "Pm25LQ020",
12486 .bustype = BUS_SPI,
12487 .manufacture_id = PMC_ID,
12488 .model_id = PMC_PM25LQ020,
12489 .total_size = 256,
12490 .page_size = 256,
12491 /* OTP: 256B total; read 0x4B, write 0xB1 */
12492 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12493 .tested = TEST_UNTESTED,
12494 .probe = probe_spi_rdid,
12495 .probe_timing = TIMING_ZERO,
12496 .block_erasers =
12497 {
12498 {
12499 .eraseblocks = { {4 * 1024, 64} },
12500 .block_erase = spi_block_erase_20,
12501 }, {
12502 .eraseblocks = { {4 * 1024, 64} },
12503 .block_erase = spi_block_erase_d7,
12504 }, {
12505 .eraseblocks = { {64 * 1024, 4} },
12506 .block_erase = spi_block_erase_d8,
12507 }, {
12508 .eraseblocks = { {256 * 1024, 1} },
12509 .block_erase = spi_block_erase_60,
12510 }, {
12511 .eraseblocks = { {256 * 1024, 1} },
12512 .block_erase = spi_block_erase_c7,
12513 }
12514 },
12515 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
12516 .unlock = spi_disable_blockprotect_bp3_srwd,
12517 .write = spi_chip_write_256,
12518 .read = spi_chip_read,
12519 .voltage = {2300, 3600},
12520 },
12521
12522 {
12523 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012524 .name = "Pm25LQ032C",
12525 .bustype = BUS_SPI,
12526 .manufacture_id = PMC_ID,
12527 .model_id = PMC_PM25LQ032C,
12528 .total_size = 4096,
12529 .page_size = 256,
12530 /* OTP: 64B total; read 0x4B, write 0xB1 */
12531 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12532 .tested = TEST_OK_PREW,
12533 .probe = probe_spi_rdid,
12534 .probe_timing = TIMING_ZERO,
12535 .block_erasers =
12536 {
12537 {
12538 .eraseblocks = { {4 * 1024, 1024} },
12539 .block_erase = spi_block_erase_20,
12540 }, {
12541 .eraseblocks = { {4 * 1024, 1024} },
12542 .block_erase = spi_block_erase_d7,
12543 }, {
12544 .eraseblocks = { {64 * 1024, 64} },
12545 .block_erase = spi_block_erase_d8,
12546 }, {
12547 .eraseblocks = { {4096 * 1024, 1} },
12548 .block_erase = spi_block_erase_60,
12549 }, {
12550 .eraseblocks = { {4096 * 1024, 1} },
12551 .block_erase = spi_block_erase_c7,
12552 }
12553 },
12554 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
12555 .unlock = spi_disable_blockprotect_bp3_srwd,
12556 .write = spi_chip_write_256,
12557 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12558 .voltage = {2700, 3600},
12559 },
12560
12561 {
12562 .vendor = "PMC",
Steven Honeyman81a8fb72015-06-02 22:32:24 +000012563 .name = "Pm25LQ040",
12564 .bustype = BUS_SPI,
12565 .manufacture_id = PMC_ID,
12566 .model_id = PMC_PM25LQ040,
12567 .total_size = 512,
12568 .page_size = 256,
12569 /* OTP: 256B total; read 0x4B, write 0xB1 */
12570 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12571 .tested = TEST_UNTESTED,
12572 .probe = probe_spi_rdid,
12573 .probe_timing = TIMING_ZERO,
12574 .block_erasers =
12575 {
12576 {
12577 .eraseblocks = { {4 * 1024, 128} },
12578 .block_erase = spi_block_erase_20,
12579 }, {
12580 .eraseblocks = { {4 * 1024, 128} },
12581 .block_erase = spi_block_erase_d7,
12582 }, {
12583 .eraseblocks = { {64 * 1024, 8} },
12584 .block_erase = spi_block_erase_d8,
12585 }, {
12586 .eraseblocks = { {512 * 1024, 1} },
12587 .block_erase = spi_block_erase_60,
12588 }, {
12589 .eraseblocks = { {512 * 1024, 1} },
12590 .block_erase = spi_block_erase_c7,
12591 }
12592 },
12593 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
12594 .unlock = spi_disable_blockprotect_bp3_srwd,
12595 .write = spi_chip_write_256,
12596 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12597 .voltage = {2300, 3600},
12598 },
12599
12600 {
12601 .vendor = "PMC",
12602 .name = "Pm25LQ080",
12603 .bustype = BUS_SPI,
12604 .manufacture_id = PMC_ID,
12605 .model_id = PMC_PM25LQ080,
12606 .total_size = 1024,
12607 .page_size = 256,
12608 /* OTP: 64B total; read 0x4B, write 0xB1 */
12609 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12610 .tested = TEST_UNTESTED,
12611 .probe = probe_spi_rdid,
12612 .probe_timing = TIMING_ZERO,
12613 .block_erasers =
12614 {
12615 {
12616 .eraseblocks = { {4 * 1024, 256} },
12617 .block_erase = spi_block_erase_20,
12618 }, {
12619 .eraseblocks = { {4 * 1024, 256} },
12620 .block_erase = spi_block_erase_d7,
12621 }, {
12622 .eraseblocks = { {64 * 1024, 16} },
12623 .block_erase = spi_block_erase_d8,
12624 }, {
12625 .eraseblocks = { {1024 * 1024, 1} },
12626 .block_erase = spi_block_erase_60,
12627 }, {
12628 .eraseblocks = { {1024 * 1024, 1} },
12629 .block_erase = spi_block_erase_c7,
12630 }
12631 },
12632 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
12633 .unlock = spi_disable_blockprotect_bp3_srwd,
12634 .write = spi_chip_write_256,
12635 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12636 .voltage = {2300, 3600},
12637 },
12638
12639 {
12640 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012641 .name = "Pm25LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012642 .bustype = BUS_SPI,
Stefan Taunerbecda742014-05-30 19:34:00 +000012643 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012644 .model_id = PMC_PM25LV010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012645 .total_size = 128,
12646 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012647 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerbecda742014-05-30 19:34:00 +000012648 .tested = TEST_OK_PREW,
12649 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000012650 .probe_timing = TIMING_ZERO,
12651 .block_erasers =
12652 {
12653 {
12654 .eraseblocks = { {4 * 1024, 32} },
12655 .block_erase = spi_block_erase_d7,
12656 }, {
12657 .eraseblocks = { {32 * 1024, 4} },
12658 .block_erase = spi_block_erase_d8,
12659 }, {
12660 .eraseblocks = { {128 * 1024, 1} },
12661 .block_erase = spi_block_erase_c7,
12662 }
12663 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012664 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000012665 .unlock = spi_disable_blockprotect,
12666 .write = spi_chip_write_256,
12667 .read = spi_chip_read, /* Fast read (0x0B) supported */
12668 .voltage = {2700, 3600},
12669 },
12670
12671 {
12672 .vendor = "PMC",
12673 .name = "Pm25LV010A",
12674 .bustype = BUS_SPI,
12675 .manufacture_id = PMC_ID,
12676 .model_id = PMC_PM25LV010,
12677 .total_size = 128,
12678 .page_size = 256,
12679 .feature_bits = FEATURE_WRSR_WREN,
12680 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012681 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012682 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000012683 .block_erasers =
12684 {
12685 {
12686 .eraseblocks = { {4 * 1024, 32} },
12687 .block_erase = spi_block_erase_d7,
12688 }, {
12689 .eraseblocks = { {32 * 1024, 4} },
12690 .block_erase = spi_block_erase_d8,
12691 }, {
12692 .eraseblocks = { {128 * 1024, 1} },
12693 .block_erase = spi_block_erase_c7,
12694 }
12695 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012696 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012697 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012698 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000012699 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +000012700 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012701 },
12702
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012703 {
12704 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012705 .name = "Pm25LV016B",
12706 .bustype = BUS_SPI,
12707 .manufacture_id = PMC_ID,
12708 .model_id = PMC_PM25LV016B,
12709 .total_size = 2048,
12710 .page_size = 256,
12711 .feature_bits = FEATURE_WRSR_WREN,
12712 .tested = TEST_UNTESTED,
12713 .probe = probe_spi_rdid,
12714 .probe_timing = TIMING_ZERO,
12715 .block_erasers =
12716 {
12717 {
12718 .eraseblocks = { {4 * 1024, 512} },
12719 .block_erase = spi_block_erase_d7,
12720 }, {
12721 .eraseblocks = { {4 * 1024, 512} },
12722 .block_erase = spi_block_erase_20,
12723 }, {
12724 .eraseblocks = { {64 * 1024, 32} },
12725 .block_erase = spi_block_erase_d8,
12726 }, {
12727 .eraseblocks = { {2 * 1024 * 1024, 1} },
12728 .block_erase = spi_block_erase_60,
12729 }, {
12730 .eraseblocks = { {2 * 1024 * 1024, 1} },
12731 .block_erase = spi_block_erase_c7,
12732 }
12733 },
12734 .printlock = spi_prettyprint_status_register_bp2_srwd,
12735 .unlock = spi_disable_blockprotect,
12736 .write = spi_chip_write_256,
12737 .read = spi_chip_read, /* Fast read (0x0B) supported */
12738 .voltage = {2700, 3600},
12739 },
12740
12741 {
12742 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012743 .name = "Pm25LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012744 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012745 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012746 .model_id = PMC_PM25LV020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012747 .total_size = 256,
12748 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012749 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012750 .tested = TEST_UNTESTED,
12751 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012752 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000012753 .block_erasers =
12754 {
12755 {
12756 .eraseblocks = { {4 * 1024, 64} },
12757 .block_erase = spi_block_erase_d7,
12758 }, {
12759 .eraseblocks = { {64 * 1024, 4} },
12760 .block_erase = spi_block_erase_d8,
12761 }, {
12762 .eraseblocks = { {256 * 1024, 1} },
12763 .block_erase = spi_block_erase_c7,
12764 }
12765 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012766 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012767 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012768 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012769 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012770 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012771 },
12772
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012773 {
12774 .vendor = "PMC",
12775 .name = "Pm25LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012776 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012777 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012778 .model_id = PMC_PM25LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012779 .total_size = 512,
12780 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012781 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +000012782 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012783 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012784 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000012785 .block_erasers =
12786 {
12787 {
12788 .eraseblocks = { {4 * 1024, 128} },
12789 .block_erase = spi_block_erase_d7,
12790 }, {
12791 .eraseblocks = { {64 * 1024, 8} },
12792 .block_erase = spi_block_erase_d8,
12793 }, {
12794 .eraseblocks = { {512 * 1024, 1} },
12795 .block_erase = spi_block_erase_c7,
12796 }
12797 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012798 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012799 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012800 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000012801 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012802 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012803 },
12804
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012805 {
12806 .vendor = "PMC",
12807 .name = "Pm25LV080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012808 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012809 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012810 .model_id = PMC_PM25LV080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012811 .total_size = 1024,
12812 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012813 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012814 .tested = TEST_UNTESTED,
12815 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012816 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000012817 .block_erasers =
12818 {
12819 {
12820 .eraseblocks = { {4 * 1024, 256} },
12821 .block_erase = spi_block_erase_d7,
12822 }, {
12823 .eraseblocks = { {4 * 1024, 256} },
12824 .block_erase = spi_block_erase_20,
12825 }, {
12826 .eraseblocks = { {64 * 1024, 16} },
12827 .block_erase = spi_block_erase_d8,
12828 }, {
12829 .eraseblocks = { {1024 * 1024, 1} },
12830 .block_erase = spi_block_erase_60,
12831 }, {
12832 .eraseblocks = { {1024 * 1024, 1} },
12833 .block_erase = spi_block_erase_c7,
12834 }
12835 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012836 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012837 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012838 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000012839 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012840 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012841 },
12842
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012843 {
12844 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012845 .name = "Pm25LV512(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012846 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +100012847 .manufacture_id = PMC_ID_NOPREFIX,
12848 .model_id = PMC_PM25LV512,
12849 .total_size = 64,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012850 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012851 .feature_bits = FEATURE_WRSR_WREN,
Alan Green1f9cc7d2019-07-01 11:10:45 +100012852 .tested = TEST_OK_PREW,
12853 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012854 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000012855 .block_erasers =
12856 {
12857 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100012858 .eraseblocks = { {4 * 1024, 16} },
Sean Nelson5643c072010-01-19 03:23:07 +000012859 .block_erase = spi_block_erase_d7,
12860 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100012861 .eraseblocks = { {32 * 1024, 2} },
Sean Nelson5643c072010-01-19 03:23:07 +000012862 .block_erase = spi_block_erase_d8,
12863 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100012864 .eraseblocks = { {64 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +000012865 .block_erase = spi_block_erase_c7,
12866 }
12867 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100012868 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012869 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012870 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000012871 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +000012872 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012873 },
12874
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012875 {
12876 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +000012877 .name = "Pm29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012878 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000012879 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012880 .model_id = PMC_PM29F002B,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000012881 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +000012882 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000012883 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000012884 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000012885 .probe = probe_jedec,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000012886 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +000012887 .block_erasers =
12888 {
12889 {
12890 .eraseblocks = {
12891 {16 * 1024, 1},
12892 {8 * 1024, 2},
12893 {96 * 1024, 1},
12894 {128 * 1024, 1},
12895 },
Sean Nelson35727f72010-01-28 23:55:12 +000012896 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000012897 }, {
12898 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000012899 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000012900 },
12901 },
Sean Nelson35727f72010-01-28 23:55:12 +000012902 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000012903 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012904 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +000012905 },
12906
12907 {
12908 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012909 .name = "Pm29F002T",
12910 .bustype = BUS_PARALLEL,
12911 .manufacture_id = PMC_ID_NOPREFIX,
12912 .model_id = PMC_PM29F002T,
12913 .total_size = 256,
12914 .page_size = 8 * 1024,
12915 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
12916 .tested = TEST_OK_PREW,
12917 .probe = probe_jedec,
12918 .probe_timing = TIMING_FIXME,
12919 .block_erasers =
12920 {
12921 {
12922 .eraseblocks = {
12923 {128 * 1024, 1},
12924 {96 * 1024, 1},
12925 {8 * 1024, 2},
12926 {16 * 1024, 1},
12927 },
12928 .block_erase = erase_sector_jedec,
12929 }, {
12930 .eraseblocks = { {256 * 1024, 1} },
12931 .block_erase = erase_chip_block_jedec,
12932 },
12933 },
12934 .write = write_jedec_1,
12935 .read = read_memmapped,
12936 .voltage = {4500, 5500},
12937 },
12938
12939 {
12940 .vendor = "PMC",
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000012941 .name = "Pm39LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012942 .bustype = BUS_PARALLEL,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000012943 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012944 .model_id = PMC_PM39F010, /* Pm39LV010 and Pm39F010 have identical IDs but different voltage */
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000012945 .total_size = 128,
12946 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000012947 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000012948 .tested = TEST_OK_PREW,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000012949 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000012950 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson5643c072010-01-19 03:23:07 +000012951 .block_erasers =
12952 {
12953 {
12954 .eraseblocks = { {4 * 1024, 32} },
12955 .block_erase = erase_sector_jedec,
12956 }, {
12957 .eraseblocks = { {64 * 1024, 2} },
12958 .block_erase = erase_block_jedec,
12959 }, {
12960 .eraseblocks = { {128 * 1024, 1} },
12961 .block_erase = erase_chip_block_jedec,
12962 }
12963 },
Sean Nelson35727f72010-01-28 23:55:12 +000012964 .write = write_jedec_1,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000012965 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012966 .voltage = {2700, 3600},
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000012967 },
12968
12969 {
12970 .vendor = "PMC",
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012971 .name = "Pm39LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012972 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012973 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012974 .model_id = PMC_PM39LV020,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012975 .total_size = 256,
12976 .page_size = 4096,
12977 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
12978 .tested = TEST_UNTESTED,
12979 .probe = probe_jedec,
12980 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Alan Greenfa3fcd32019-06-27 15:41:50 +100012981 .block_erasers =
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012982 {
12983 {
12984 .eraseblocks = { {4 * 1024, 64} },
12985 .block_erase = erase_sector_jedec,
12986 }, {
12987 .eraseblocks = { {64 * 1024, 4} },
12988 .block_erase = erase_block_jedec,
12989 }, {
12990 .eraseblocks = { {256 * 1024, 1} },
12991 .block_erase = erase_chip_block_jedec,
12992 }
12993 },
12994 .write = write_jedec_1,
12995 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012996 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000012997 },
12998
12999 {
13000 .vendor = "PMC",
13001 .name = "Pm39LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013002 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013003 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013004 .model_id = PMC_PM39LV040,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013005 .total_size = 512,
13006 .page_size = 4096,
13007 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000013008 .tested = TEST_OK_PR,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013009 .probe = probe_jedec,
13010 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Alan Greenfa3fcd32019-06-27 15:41:50 +100013011 .block_erasers =
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013012 {
13013 {
13014 .eraseblocks = { {4 * 1024, 128} },
13015 .block_erase = erase_sector_jedec,
13016 }, {
13017 .eraseblocks = { {64 * 1024, 8} },
13018 .block_erase = erase_block_jedec,
13019 }, {
13020 .eraseblocks = { {512 * 1024, 1} },
13021 .block_erase = erase_chip_block_jedec,
13022 }
13023 },
13024 .write = write_jedec_1,
13025 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013026 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013027 },
Kyösti Mälkkiedab1d22012-05-20 23:32:33 +000013028
13029 {
13030 .vendor = "PMC",
13031 .name = "Pm39LV512",
13032 .bustype = BUS_PARALLEL,
13033 .manufacture_id = PMC_ID_NOPREFIX,
13034 .model_id = PMC_PM39LV512,
13035 .total_size = 64,
13036 .page_size = 4096,
13037 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
13038 .tested = TEST_OK_PREW,
13039 .probe = probe_jedec,
13040 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
13041 .block_erasers =
13042 {
13043 {
13044 .eraseblocks = { {4 * 1024, 16} },
13045 .block_erase = erase_sector_jedec,
13046 }, {
13047 .eraseblocks = { {64 * 1024, 1} },
13048 .block_erase = erase_block_jedec,
13049 }, {
13050 .eraseblocks = { {64 * 1024, 1} },
13051 .block_erase = erase_chip_block_jedec,
13052 }
13053 },
13054 .write = write_jedec_1,
13055 .read = read_memmapped,
13056 .voltage = {2700, 3600},
13057 },
13058
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013059 {
13060 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013061 .name = "Pm49FL002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013062 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013063 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013064 .model_id = PMC_PM49FL002,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013065 .total_size = 256,
13066 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013067 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013068 .tested = TEST_OK_PR,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000013069 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013070 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +000013071 .block_erasers =
13072 {
13073 {
13074 .eraseblocks = { {4 * 1024, 64} },
13075 .block_erase = erase_sector_jedec,
13076 }, {
13077 .eraseblocks = { {16 * 1024, 16} },
13078 .block_erase = erase_block_jedec,
13079 }, {
13080 .eraseblocks = { {256 * 1024, 1} },
13081 .block_erase = erase_chip_block_jedec,
13082 }
13083 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013084 .unlock = unlock_regspace2_uniform_32k,
Sean Nelson36172342010-02-27 18:01:15 +000013085 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013086 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013087 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013088 },
13089
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013090 {
13091 .vendor = "PMC",
13092 .name = "Pm49FL004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013093 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013094 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013095 .model_id = PMC_PM49FL004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013096 .total_size = 512,
13097 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013098 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner74dc73f2015-03-01 22:04:38 +000013099 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000013100 .probe = probe_jedec,
Stefan Tauner74dc73f2015-03-01 22:04:38 +000013101 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000013102 .block_erasers =
13103 {
13104 {
13105 .eraseblocks = { {4 * 1024, 128} },
13106 .block_erase = erase_sector_jedec,
13107 }, {
13108 .eraseblocks = { {64 * 1024, 8} },
13109 .block_erase = erase_block_jedec,
13110 }, {
13111 .eraseblocks = { {512 * 1024, 1} },
13112 .block_erase = erase_chip_block_jedec,
13113 }
13114 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013115 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson36172342010-02-27 18:01:15 +000013116 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013117 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013118 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013119 },
13120
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013121 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013122 .vendor = "SST",
Idwer Volleringf3607d12014-05-07 15:25:04 +000013123 .name = "SST25LF020A",
13124 .bustype = BUS_SPI,
13125 .manufacture_id = SST_ID,
13126 .model_id = SST_SST25VF020_REMS,
13127 .total_size = 256,
13128 .page_size = 256,
13129 .feature_bits = FEATURE_WRSR_EWSR,
13130 .tested = TEST_OK_PREW,
13131 .probe = probe_spi_rems,
13132 .probe_timing = TIMING_ZERO,
13133 .block_erasers =
13134 {
13135 {
13136 .eraseblocks = { {4 * 1024, 64} },
13137 .block_erase = spi_block_erase_20,
13138 }, {
13139 .eraseblocks = { {32 * 1024, 8} },
13140 .block_erase = spi_block_erase_52,
13141 }, {
13142 .eraseblocks = { {256 * 1024, 1} },
13143 .block_erase = spi_block_erase_60,
13144 },
13145 },
13146 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
13147 .unlock = spi_disable_blockprotect,
13148 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13149 .read = spi_chip_read, /* Fast read (0x0B) supported */
13150 .voltage = {2700, 3600},
13151 },
13152
13153 {
13154 .vendor = "SST",
Zeus Castro33670ba2011-08-17 09:50:11 +000013155 .name = "SST25LF040A",
13156 .bustype = BUS_SPI,
13157 .manufacture_id = SST_ID,
13158 .model_id = SST_SST25VF040_REMS,
13159 .total_size = 512,
13160 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000013161 .feature_bits = FEATURE_WRSR_EWSR,
Uwe Hermann4335ec82011-09-07 20:20:25 +000013162 .tested = TEST_OK_PREW,
Zeus Castro33670ba2011-08-17 09:50:11 +000013163 .probe = probe_spi_res2,
13164 .probe_timing = TIMING_ZERO,
13165 .block_erasers =
13166 {
13167 {
13168 .eraseblocks = { {4 * 1024, 128} },
13169 .block_erase = spi_block_erase_20,
13170 }, {
13171 .eraseblocks = { {32 * 1024, 16} },
13172 .block_erase = spi_block_erase_52,
13173 }, {
13174 .eraseblocks = { {512 * 1024, 1} },
13175 .block_erase = spi_block_erase_60,
13176 },
13177 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013178 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +000013179 .unlock = spi_disable_blockprotect,
13180 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13181 .read = spi_chip_read,
13182 .voltage = {3000, 3600},
13183 },
13184
13185 {
13186 .vendor = "SST",
Stefan Taunere34e3e82013-01-01 00:06:51 +000013187 .name = "SST25LF080(A)",
Zeus Castro33670ba2011-08-17 09:50:11 +000013188 .bustype = BUS_SPI,
13189 .manufacture_id = SST_ID,
13190 .model_id = SST_SST25VF080_REMS,
13191 .total_size = 1024,
13192 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000013193 .feature_bits = FEATURE_WRSR_EITHER,
Zeus Castro33670ba2011-08-17 09:50:11 +000013194 .tested = TEST_UNTESTED,
13195 .probe = probe_spi_res2,
13196 .probe_timing = TIMING_ZERO,
13197 .block_erasers =
13198 {
13199 {
13200 .eraseblocks = { {4 * 1024, 256} },
13201 .block_erase = spi_block_erase_20,
13202 }, {
13203 .eraseblocks = { {32 * 1024, 32} },
13204 .block_erase = spi_block_erase_52,
13205 }, {
13206 .eraseblocks = { {1024 * 1024, 1} },
13207 .block_erase = spi_block_erase_60,
13208 },
13209 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013210 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +000013211 .unlock = spi_disable_blockprotect,
13212 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13213 .read = spi_chip_read,
13214 .voltage = {3000, 3600},
13215 },
13216
13217 {
13218 .vendor = "SST",
Stefan Tauner6697f712014-08-06 15:09:15 +000013219 .name = "SST25VF010(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013220 .bustype = BUS_SPI,
Mark Marshall90021f22010-12-03 14:48:11 +000013221 .manufacture_id = SST_ID,
13222 .model_id = SST_SST25VF010_REMS,
13223 .total_size = 128,
13224 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000013225 .feature_bits = FEATURE_WRSR_EWSR,
Mark Marshall90021f22010-12-03 14:48:11 +000013226 .tested = TEST_OK_PREW,
13227 .probe = probe_spi_rems,
13228 .probe_timing = TIMING_ZERO,
13229 .block_erasers =
13230 {
13231 {
13232 .eraseblocks = { {4 * 1024, 32} },
13233 .block_erase = spi_block_erase_20,
13234 }, {
13235 .eraseblocks = { {32 * 1024, 4} },
13236 .block_erase = spi_block_erase_52,
13237 }, {
Cory Henderson370f5822013-10-19 23:09:16 +000013238 .eraseblocks = { {32 * 1024, 4} },
Stefan Tauner6697f712014-08-06 15:09:15 +000013239 .block_erase = spi_block_erase_d8, /* Supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000013240 }, {
Mark Marshall90021f22010-12-03 14:48:11 +000013241 .eraseblocks = { {128 * 1024, 1} },
13242 .block_erase = spi_block_erase_60,
Cory Henderson370f5822013-10-19 23:09:16 +000013243 }, {
13244 .eraseblocks = { {128 * 1024, 1} },
Stefan Tauner6697f712014-08-06 15:09:15 +000013245 .block_erase = spi_block_erase_c7, /* Supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000013246 },
13247 },
13248 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
13249 .unlock = spi_disable_blockprotect,
13250 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
Stefan Tauner6697f712014-08-06 15:09:15 +000013251 .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000013252 .voltage = {2700, 3600},
13253 },
13254
13255 {
13256 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013257 .name = "SST25VF016B",
13258 .bustype = BUS_SPI,
13259 .manufacture_id = SST_ID,
13260 .model_id = SST_SST25VF016B,
13261 .total_size = 2048,
13262 .page_size = 256,
13263 .feature_bits = FEATURE_WRSR_EITHER,
13264 .tested = TEST_OK_PREW,
13265 .probe = probe_spi_rdid,
13266 .probe_timing = TIMING_ZERO,
13267 .block_erasers =
13268 {
13269 {
13270 .eraseblocks = { {4 * 1024, 512} },
13271 .block_erase = spi_block_erase_20,
13272 }, {
13273 .eraseblocks = { {32 * 1024, 64} },
13274 .block_erase = spi_block_erase_52,
13275 }, {
13276 .eraseblocks = { {64 * 1024, 32} },
13277 .block_erase = spi_block_erase_d8,
13278 }, {
13279 .eraseblocks = { {2 * 1024 * 1024, 1} },
13280 .block_erase = spi_block_erase_60,
13281 }, {
13282 .eraseblocks = { {2 * 1024 * 1024, 1} },
13283 .block_erase = spi_block_erase_c7,
13284 },
13285 },
13286 .printlock = spi_prettyprint_status_register_sst25vf016,
13287 .unlock = spi_disable_blockprotect,
13288 .write = spi_aai_write,
13289 .read = spi_chip_read,
13290 .voltage = {2700, 3600},
13291 },
13292
13293 {
13294 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +000013295 .name = "SST25VF020",
13296 .bustype = BUS_SPI,
13297 .manufacture_id = SST_ID,
13298 .model_id = SST_SST25VF020_REMS,
13299 .total_size = 256,
13300 .page_size = 256,
13301 .feature_bits = FEATURE_WRSR_EWSR,
13302 .tested = TEST_UNTESTED,
13303 .probe = probe_spi_rems,
13304 .probe_timing = TIMING_ZERO,
13305 .block_erasers =
13306 {
13307 {
13308 .eraseblocks = { {4 * 1024, 64} },
13309 .block_erase = spi_block_erase_20,
13310 }, {
13311 .eraseblocks = { {32 * 1024, 8} },
13312 .block_erase = spi_block_erase_52,
13313 }, {
13314 .eraseblocks = { {256 * 1024, 1} },
13315 .block_erase = spi_block_erase_60,
13316 },
13317 },
13318 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
13319 .unlock = spi_disable_blockprotect,
13320 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13321 .read = spi_chip_read, /* only */
13322 .voltage = {2700, 3600},
13323 },
13324
13325 {
13326 .vendor = "SST",
13327 .name = "SST25VF020B",
13328 .bustype = BUS_SPI,
13329 .manufacture_id = SST_ID,
13330 .model_id = SST_SST25VF020B,
13331 .total_size = 256,
13332 .page_size = 256,
13333 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000013334 .tested = TEST_OK_PREW,
Cory Henderson370f5822013-10-19 23:09:16 +000013335 .probe = probe_spi_rdid,
13336 .probe_timing = TIMING_ZERO,
13337 .block_erasers =
13338 {
13339 {
13340 .eraseblocks = { {4 * 1024, 64} },
13341 .block_erase = spi_block_erase_20,
13342 }, {
13343 .eraseblocks = { {32 * 1024, 8} },
13344 .block_erase = spi_block_erase_52,
13345 }, {
13346 .eraseblocks = { {64 * 1024, 4} },
13347 .block_erase = spi_block_erase_d8,
13348 }, {
13349 .eraseblocks = { {256 * 1024, 1} },
13350 .block_erase = spi_block_erase_60,
13351 }, {
13352 .eraseblocks = { {256 * 1024, 1} },
13353 .block_erase = spi_block_erase_c7,
13354 },
13355 },
13356 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 and 2nd SR */
13357 .unlock = spi_disable_blockprotect, /* FIXME: 2nd SR */
13358 .write = spi_aai_write, /* AAI supported (0xAD) */
13359 .read = spi_chip_read, /* Fast read (0x0B) supported */
13360 .voltage = {2700, 3600},
13361 },
13362
13363 {
13364 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013365 .name = "SST25VF032B",
13366 .bustype = BUS_SPI,
13367 .manufacture_id = SST_ID,
13368 .model_id = SST_SST25VF032B,
13369 .total_size = 4096,
13370 .page_size = 256,
13371 .feature_bits = FEATURE_WRSR_EWSR,
13372 .tested = TEST_OK_PREW,
13373 .probe = probe_spi_rdid,
13374 .probe_timing = TIMING_ZERO,
13375 .block_erasers =
13376 {
13377 {
13378 .eraseblocks = { {4 * 1024, 1024} },
13379 .block_erase = spi_block_erase_20,
13380 }, {
13381 .eraseblocks = { {32 * 1024, 128} },
13382 .block_erase = spi_block_erase_52,
13383 }, {
13384 .eraseblocks = { {64 * 1024, 64} },
13385 .block_erase = spi_block_erase_d8,
13386 }, {
13387 .eraseblocks = { {4 * 1024 * 1024, 1} },
13388 .block_erase = spi_block_erase_60,
13389 }, {
13390 .eraseblocks = { {4 * 1024 * 1024, 1} },
13391 .block_erase = spi_block_erase_c7,
13392 },
13393 },
13394 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
13395 .unlock = spi_disable_blockprotect,
13396 .write = spi_aai_write,
13397 .read = spi_chip_read,
13398 .voltage = {2700, 3600},
13399 },
13400
13401 {
13402 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +000013403 .name = "SST25VF040",
13404 .bustype = BUS_SPI,
13405 .manufacture_id = SST_ID,
13406 .model_id = SST_SST25VF040_REMS,
13407 .total_size = 512,
13408 .page_size = 256,
13409 .feature_bits = FEATURE_WRSR_EWSR,
13410 .tested = TEST_OK_PR,
13411 .probe = probe_spi_rems,
13412 .probe_timing = TIMING_ZERO,
13413 .block_erasers =
13414 {
13415 {
13416 .eraseblocks = { {4 * 1024, 128} },
13417 .block_erase = spi_block_erase_20,
13418 }, {
13419 .eraseblocks = { {32 * 1024, 16} },
13420 .block_erase = spi_block_erase_52,
13421 }, {
13422 .eraseblocks = { {512 * 1024, 1} },
13423 .block_erase = spi_block_erase_60,
Mark Marshall90021f22010-12-03 14:48:11 +000013424 },
13425 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013426 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Mark Marshall90021f22010-12-03 14:48:11 +000013427 .unlock = spi_disable_blockprotect,
Cory Henderson370f5822013-10-19 23:09:16 +000013428 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13429 .read = spi_chip_read,
13430 .voltage = {2700, 3600},
13431 },
13432
13433 {
13434 .vendor = "SST",
13435 .name = "SST25VF040B",
13436 .bustype = BUS_SPI,
13437 .manufacture_id = SST_ID,
13438 .model_id = SST_SST25VF040B,
13439 .total_size = 512,
13440 .page_size = 256,
13441 .feature_bits = FEATURE_WRSR_EWSR,
13442 .tested = TEST_OK_PREW,
13443 .probe = probe_spi_rdid,
13444 .probe_timing = TIMING_ZERO,
13445 .block_erasers =
13446 {
13447 {
13448 .eraseblocks = { {4 * 1024, 128} },
13449 .block_erase = spi_block_erase_20,
13450 }, {
13451 .eraseblocks = { {32 * 1024, 16} },
13452 .block_erase = spi_block_erase_52,
13453 }, {
13454 .eraseblocks = { {64 * 1024, 8} },
13455 .block_erase = spi_block_erase_d8,
13456 }, {
13457 .eraseblocks = { {512 * 1024, 1} },
13458 .block_erase = spi_block_erase_60,
13459 }, {
13460 .eraseblocks = { {512 * 1024, 1} },
13461 .block_erase = spi_block_erase_c7,
13462 },
13463 },
13464 .printlock = spi_prettyprint_status_register_sst25vf040b,
13465 .unlock = spi_disable_blockprotect,
13466 .write = spi_aai_write, /* AAI supported (0xAD) */
13467 .read = spi_chip_read, /* Fast read (0x0B) supported */
13468 .voltage = {2700, 3600},
13469 },
13470
13471 {
13472 .vendor = "SST",
13473 .name = "SST25VF040B.REMS",
13474 .bustype = BUS_SPI,
13475 .manufacture_id = SST_ID,
13476 .model_id = SST_SST25VF040B_REMS,
13477 .total_size = 512,
13478 .page_size = 256,
13479 .feature_bits = FEATURE_WRSR_EWSR,
13480 .tested = TEST_OK_PREW,
13481 .probe = probe_spi_rems,
13482 .probe_timing = TIMING_ZERO,
13483 .block_erasers =
13484 {
13485 {
13486 .eraseblocks = { {4 * 1024, 128} },
13487 .block_erase = spi_block_erase_20,
13488 }, {
13489 .eraseblocks = { {32 * 1024, 16} },
13490 .block_erase = spi_block_erase_52,
13491 }, {
13492 .eraseblocks = { {64 * 1024, 8} },
13493 .block_erase = spi_block_erase_d8,
13494 }, {
13495 .eraseblocks = { {512 * 1024, 1} },
13496 .block_erase = spi_block_erase_60,
13497 }, {
13498 .eraseblocks = { {512 * 1024, 1} },
13499 .block_erase = spi_block_erase_c7,
13500 },
13501 },
13502 .printlock = spi_prettyprint_status_register_sst25vf040b,
13503 .unlock = spi_disable_blockprotect,
13504 .write = spi_aai_write,
13505 .read = spi_chip_read,
13506 .voltage = {2700, 3600},
13507 },
13508
13509 {
13510 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013511 .name = "SST25VF064C",
Ben Gardnerbcf61092015-11-22 02:23:31 +000013512 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013513 .manufacture_id = SST_ID,
13514 .model_id = SST_SST25VF064C,
13515 .total_size = 8192,
Ben Gardnerbcf61092015-11-22 02:23:31 +000013516 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013517 .feature_bits = FEATURE_WRSR_EWSR,
Ben Gardnerbcf61092015-11-22 02:23:31 +000013518 .tested = TEST_OK_PREW,
13519 .probe = probe_spi_rdid,
13520 .probe_timing = TIMING_ZERO,
13521 .block_erasers =
13522 {
13523 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013524 .eraseblocks = { {4 * 1024, 2048} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000013525 .block_erase = spi_block_erase_20,
13526 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013527 .eraseblocks = { {32 * 1024, 256} },
13528 .block_erase = spi_block_erase_52,
13529 }, {
13530 .eraseblocks = { {64 * 1024, 128} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000013531 .block_erase = spi_block_erase_d8,
13532 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013533 .eraseblocks = { {8 * 1024 * 1024, 1} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000013534 .block_erase = spi_block_erase_60,
13535 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013536 .eraseblocks = { {8 * 1024 * 1024, 1} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000013537 .block_erase = spi_block_erase_c7,
13538 },
13539 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100013540 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
13541 .unlock = spi_disable_blockprotect,
Ben Gardnerbcf61092015-11-22 02:23:31 +000013542 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013543 .read = spi_chip_read,
13544 .voltage = {2700, 3600},
Ben Gardnerbcf61092015-11-22 02:23:31 +000013545 },
13546
13547 {
13548 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +000013549 .name = "SST25VF080B",
13550 .bustype = BUS_SPI,
13551 .manufacture_id = SST_ID,
13552 .model_id = SST_SST25VF080B,
13553 .total_size = 1024,
13554 .page_size = 256,
13555 .feature_bits = FEATURE_WRSR_EWSR,
13556 .tested = TEST_OK_PREW,
13557 .probe = probe_spi_rdid,
13558 .probe_timing = TIMING_ZERO,
13559 .block_erasers =
13560 {
13561 {
13562 .eraseblocks = { {4 * 1024, 256} },
13563 .block_erase = spi_block_erase_20,
13564 }, {
13565 .eraseblocks = { {32 * 1024, 32} },
13566 .block_erase = spi_block_erase_52,
13567 }, {
13568 .eraseblocks = { {64 * 1024, 16} },
13569 .block_erase = spi_block_erase_d8,
13570 }, {
13571 .eraseblocks = { {1024 * 1024, 1} },
13572 .block_erase = spi_block_erase_60,
13573 }, {
13574 .eraseblocks = { {1024 * 1024, 1} },
13575 .block_erase = spi_block_erase_c7,
13576 },
13577 },
13578 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
13579 .unlock = spi_disable_blockprotect,
13580 .write = spi_aai_write,
Mark Marshall90021f22010-12-03 14:48:11 +000013581 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000013582 .voltage = {2700, 3600},
Mark Marshall90021f22010-12-03 14:48:11 +000013583 },
13584
13585 {
13586 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013587 .name = "SST25VF512(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013588 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013589 .manufacture_id = SST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013590 .model_id = SST_SST25VF512_REMS,
13591 .total_size = 64,
13592 .page_size = 256,
13593 .feature_bits = FEATURE_WRSR_EWSR,
13594 .tested = TEST_OK_PREW,
13595 .probe = probe_spi_rems,
13596 .probe_timing = TIMING_ZERO,
13597 .block_erasers =
13598 {
13599 {
13600 .eraseblocks = { {4 * 1024, 16} },
13601 .block_erase = spi_block_erase_20,
13602 }, {
13603 .eraseblocks = { {32 * 1024, 2} },
13604 .block_erase = spi_block_erase_52,
13605 }, {
13606 .eraseblocks = { {32 * 1024, 2} },
13607 .block_erase = spi_block_erase_d8, /* Supported by SST25VF512A only */
13608 }, {
13609 .eraseblocks = { {64 * 1024, 1} },
13610 .block_erase = spi_block_erase_60,
13611 }, {
13612 .eraseblocks = { {64 * 1024, 1} },
13613 .block_erase = spi_block_erase_c7, /* Supported by SST25VF512A only */
13614 },
13615 },
13616 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
13617 .unlock = spi_disable_blockprotect,
13618 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13619 .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF512A only */
13620 .voltage = {2700, 3600},
13621 },
13622
13623 {
13624 .vendor = "SST",
13625 .name = "SST25WF010",
13626 .bustype = BUS_SPI,
13627 .manufacture_id = SST_ID,
13628 .model_id = SST_SST25WF010,
13629 .total_size = 128,
13630 .page_size = 256,
13631 .feature_bits = FEATURE_WRSR_EITHER,
13632 .tested = TEST_UNTESTED,
13633 .probe = probe_spi_rdid,
13634 .probe_timing = TIMING_ZERO,
13635 .block_erasers =
13636 {
13637 {
13638 .eraseblocks = { {4 * 1024, 32} },
13639 .block_erase = spi_block_erase_20,
13640 }, {
13641 .eraseblocks = { {32 * 1024, 4} },
13642 .block_erase = spi_block_erase_52,
13643 }, {
13644 .eraseblocks = { {1024 * 128, 1} },
13645 .block_erase = spi_block_erase_60,
13646 }, {
13647 .eraseblocks = { {1024 * 128, 1} },
13648 .block_erase = spi_block_erase_c7,
13649 },
13650 },
13651 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
13652 .unlock = spi_disable_blockprotect_bp2_srwd,
13653 .write = spi_aai_write,
13654 .read = spi_chip_read, /* Fast read (0x0B) supported */
13655 .voltage = {1650, 1950},
13656 },
13657
13658 {
13659 .vendor = "SST",
13660 .name = "SST25WF020",
13661 .bustype = BUS_SPI,
13662 .manufacture_id = SST_ID,
13663 .model_id = SST_SST25WF020,
13664 .total_size = 256,
13665 .page_size = 256,
13666 .feature_bits = FEATURE_WRSR_EITHER,
13667 .tested = TEST_UNTESTED,
13668 .probe = probe_spi_rdid,
13669 .probe_timing = TIMING_ZERO,
13670 .block_erasers =
13671 {
13672 {
13673 .eraseblocks = { {4 * 1024, 64} },
13674 .block_erase = spi_block_erase_20,
13675 }, {
13676 .eraseblocks = { {32 * 1024, 8} },
13677 .block_erase = spi_block_erase_52,
13678 }, {
13679 .eraseblocks = { {64 * 1024, 4} },
13680 .block_erase = spi_block_erase_d8,
13681 }, {
13682 .eraseblocks = { {1024 * 256, 1} },
13683 .block_erase = spi_block_erase_60,
13684 }, {
13685 .eraseblocks = { {1024 * 256, 1} },
13686 .block_erase = spi_block_erase_c7,
13687 },
13688 },
13689 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
13690 .unlock = spi_disable_blockprotect_bp2_srwd,
13691 .write = spi_aai_write,
13692 .read = spi_chip_read, /* Fast read (0x0B) supported */
13693 .voltage = {1650, 1950},
13694 },
13695
13696 {
13697 .vendor = "SST",
13698 .name = "SST25WF020A",
13699 .bustype = BUS_SPI,
13700 .manufacture_id = SANYO_ID, /* See flashchips.h */
13701 .model_id = SST_SST25WF020A,
13702 .total_size = 256,
13703 .page_size = 256,
13704 .feature_bits = FEATURE_WRSR_WREN,
13705 .tested = TEST_UNTESTED,
13706 .probe = probe_spi_rdid,
13707 .probe_timing = TIMING_ZERO,
13708 .block_erasers =
13709 {
13710 {
13711 .eraseblocks = { {4 * 1024, 64} },
13712 .block_erase = spi_block_erase_20,
13713 }, {
13714 .eraseblocks = { {64 * 1024, 4} },
13715 .block_erase = spi_block_erase_d8,
13716 }, {
13717 .eraseblocks = { {256 * 1024, 1} },
13718 .block_erase = spi_block_erase_60,
13719 }, {
13720 .eraseblocks = { {256 * 1024, 1} },
13721 .block_erase = spi_block_erase_c7,
13722 },
13723 },
13724 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
13725 .unlock = spi_disable_blockprotect_bp2_srwd,
13726 .write = spi_chip_write_256,
13727 .read = spi_chip_read, /* Fast read (0x0B) supported */
13728 .voltage = {1650, 1950},
13729 },
13730
13731 {
13732 .vendor = "SST",
13733 .name = "SST25WF040",
13734 .bustype = BUS_SPI,
13735 .manufacture_id = SST_ID,
13736 .model_id = SST_SST25WF040,
13737 .total_size = 512,
13738 .page_size = 256,
13739 .feature_bits = FEATURE_WRSR_EITHER,
13740 .tested = TEST_UNTESTED,
13741 .probe = probe_spi_rdid,
13742 .probe_timing = TIMING_ZERO,
13743 .block_erasers =
13744 {
13745 {
13746 .eraseblocks = { {4 * 1024, 128} },
13747 .block_erase = spi_block_erase_20,
13748 }, {
13749 .eraseblocks = { {32 * 1024, 16} },
13750 .block_erase = spi_block_erase_52,
13751 }, {
13752 .eraseblocks = { {64 * 1024, 8} },
13753 .block_erase = spi_block_erase_d8,
13754 }, {
13755 .eraseblocks = { {1024 * 512, 1} },
13756 .block_erase = spi_block_erase_60,
13757 }, {
13758 .eraseblocks = { {1024 * 512, 1} },
13759 .block_erase = spi_block_erase_c7,
13760 },
13761 },
13762 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
13763 .unlock = spi_disable_blockprotect_bp2_srwd,
13764 .write = spi_aai_write,
13765 .read = spi_chip_read, /* Fast read (0x0B) supported */
13766 .voltage = {1650, 1950},
13767 },
13768
13769 {
13770 .vendor = "SST",
13771 .name = "SST25WF040B",
13772 .bustype = BUS_SPI,
13773 .manufacture_id = SANYO_ID, /* See flashchips.h */
13774 .model_id = SST_SST25WF040B,
13775 .total_size = 512,
13776 .page_size = 256,
13777 .feature_bits = FEATURE_WRSR_WREN,
13778 .tested = TEST_UNTESTED,
13779 .probe = probe_spi_rdid,
13780 .probe_timing = TIMING_ZERO,
13781 .block_erasers =
13782 {
13783 {
13784 .eraseblocks = { {4 * 1024, 128} },
13785 .block_erase = spi_block_erase_20,
13786 }, {
13787 .eraseblocks = { {64 * 1024, 8} },
13788 .block_erase = spi_block_erase_d8,
13789 }, {
13790 .eraseblocks = { {512 * 1024, 1} },
13791 .block_erase = spi_block_erase_60,
13792 }, {
13793 .eraseblocks = { {512 * 1024, 1} },
13794 .block_erase = spi_block_erase_c7,
13795 },
13796 },
13797 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
13798 .unlock = spi_disable_blockprotect_bp2_srwd,
13799 .write = spi_chip_write_256,
13800 .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */
13801 .voltage = {1650, 1950},
13802 },
13803
13804 {
13805 .vendor = "SST",
13806 .name = "SST25WF080",
13807 .bustype = BUS_SPI,
13808 .manufacture_id = SST_ID,
13809 .model_id = SST_SST25WF080,
13810 .total_size = 1024,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013811 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000013812 .feature_bits = FEATURE_WRSR_EITHER,
Mark Marshall90021f22010-12-03 14:48:11 +000013813 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013814 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013815 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013816 .block_erasers =
13817 {
13818 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013819 .eraseblocks = { {4 * 1024, 256} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013820 .block_erase = spi_block_erase_20,
13821 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013822 .eraseblocks = { {32 * 1024, 32} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013823 .block_erase = spi_block_erase_52,
13824 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013825 .eraseblocks = { {64 * 1024, 16} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013826 .block_erase = spi_block_erase_d8,
13827 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013828 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013829 .block_erase = spi_block_erase_60,
13830 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013831 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013832 .block_erase = spi_block_erase_c7,
13833 },
13834 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100013835 .printlock = spi_prettyprint_status_register_sst25, /* *does* have a BP3 but it is useless */
13836 .unlock = spi_disable_blockprotect_bp3_srwd,
Joshua Roys87955bf2011-08-01 18:39:28 +000013837 .write = spi_aai_write,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013838 .read = spi_chip_read, /* Fast read (0x0B) supported */
13839 .voltage = {1650, 1950},
FENG yu ningff692fb2008-12-08 18:15:10 +000013840 },
13841
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013842 {
13843 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013844 .name = "SST25WF080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013845 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013846 .manufacture_id = SANYO_ID, /* See flashchips.h */
13847 .model_id = SST_SST25WF080B,
13848 .total_size = 1024,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013849 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013850 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerfcf6a8c2011-05-18 01:32:00 +000013851 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013852 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013853 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013854 .block_erasers =
13855 {
13856 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013857 .eraseblocks = { {4 * 1024, 256} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013858 .block_erase = spi_block_erase_20,
13859 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013860 .eraseblocks = { {64 * 1024, 16} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013861 .block_erase = spi_block_erase_d8,
13862 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013863 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013864 .block_erase = spi_block_erase_60,
13865 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013866 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000013867 .block_erase = spi_block_erase_c7,
13868 },
13869 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100013870 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
13871 .unlock = spi_disable_blockprotect_bp2_srwd,
Helge Wagner1db7a442010-10-05 22:29:08 +000013872 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013873 .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */
13874 .voltage = {1650, 1950},
13875 },
13876
13877 {
13878 .vendor = "SST",
13879 .name = "SST25WF512",
13880 .bustype = BUS_SPI,
13881 .manufacture_id = SST_ID,
13882 .model_id = SST_SST25WF512,
13883 .total_size = 64,
13884 .page_size = 256,
13885 .feature_bits = FEATURE_WRSR_EITHER,
13886 .tested = TEST_UNTESTED,
13887 .probe = probe_spi_rdid,
13888 .probe_timing = TIMING_ZERO,
13889 .block_erasers =
13890 {
13891 {
13892 .eraseblocks = { {4 * 1024, 16} },
13893 .block_erase = spi_block_erase_20,
13894 }, {
13895 .eraseblocks = { {32 * 1024, 2} },
13896 .block_erase = spi_block_erase_52,
13897 }, {
13898 .eraseblocks = { {1024 * 64, 1} },
13899 .block_erase = spi_block_erase_60,
13900 }, {
13901 .eraseblocks = { {1024 * 64, 1} },
13902 .block_erase = spi_block_erase_c7,
13903 },
13904 },
13905 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
13906 .unlock = spi_disable_blockprotect_bp2_srwd,
13907 .write = spi_aai_write,
13908 .read = spi_chip_read, /* Fast read (0x0B) supported */
13909 .voltage = {1650, 1950},
Ed Swierk86f4e6d2010-07-21 15:02:22 +000013910 },
13911
13912 {
13913 .vendor = "SST",
Wei Hu25584de2018-04-30 14:02:08 -070013914 .name = "SST26VF016B(A)",
13915 .bustype = BUS_SPI,
13916 .manufacture_id = SST_ID,
13917 .model_id = SST_SST26VF016B,
13918 .total_size = 2048,
13919 .page_size = 256,
13920 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
13921 .tested = TEST_OK_PREW,
13922 .probe = probe_spi_rdid,
13923 .probe_timing = TIMING_ZERO,
13924 .block_erasers =
13925 {
13926 {
13927 .eraseblocks = { {4 * 1024, 512} },
13928 .block_erase = spi_block_erase_20,
13929 }, {
13930 .eraseblocks = {
13931 {8 * 1024, 4},
13932 {32 * 1024, 1},
13933 {64 * 1024, 30},
13934 {32 * 1024, 1},
13935 {8 * 1024, 4},
13936 },
13937 .block_erase = spi_block_erase_d8,
13938 }, {
13939 .eraseblocks = { {2 * 1024 * 1024, 1} },
13940 .block_erase = spi_block_erase_c7,
13941 },
13942 },
13943 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
13944 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
13945 .write = spi_chip_write_256, /* Multi I/O supported */
13946 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
13947 .voltage = {2700, 3600},
13948 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100013949
Wei Hu25584de2018-04-30 14:02:08 -070013950 {
13951 .vendor = "SST",
13952 .name = "SST26VF032B(A)",
13953 .bustype = BUS_SPI,
13954 .manufacture_id = SST_ID,
13955 .model_id = SST_SST26VF032B,
13956 .total_size = 4096,
13957 .page_size = 256,
13958 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
13959 .tested = TEST_UNTESTED,
13960 .probe = probe_spi_rdid,
13961 .probe_timing = TIMING_ZERO,
13962 .block_erasers =
13963 {
13964 {
13965 .eraseblocks = { {4 * 1024, 1024} },
13966 .block_erase = spi_block_erase_20,
13967 }, {
13968 .eraseblocks = {
13969 {8 * 1024, 4},
13970 {32 * 1024, 1},
13971 {64 * 1024, 62},
13972 {32 * 1024, 1},
13973 {8 * 1024, 4},
13974 },
13975 .block_erase = spi_block_erase_d8,
13976 }, {
13977 .eraseblocks = { {4 * 1024 * 1024, 1} },
13978 .block_erase = spi_block_erase_c7,
13979 },
13980 },
13981 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
13982 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
13983 .write = spi_chip_write_256, /* Multi I/O supported */
13984 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
13985 .voltage = {2700, 3600},
13986 },
13987
Wei Hu25584de2018-04-30 14:02:08 -070013988 {
13989 .vendor = "SST",
13990 .name = "SST26VF064B(A)",
13991 .bustype = BUS_SPI,
13992 .manufacture_id = SST_ID,
13993 .model_id = SST_SST26VF064B,
13994 .total_size = 8192,
13995 .page_size = 256,
13996 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
13997 .tested = TEST_OK_PREW,
13998 .probe = probe_spi_rdid,
13999 .probe_timing = TIMING_ZERO,
14000 .block_erasers =
14001 {
14002 {
14003 .eraseblocks = { {4 * 1024, 2048} },
14004 .block_erase = spi_block_erase_20,
14005 }, {
14006 .eraseblocks = {
14007 {8 * 1024, 4},
14008 {32 * 1024, 1},
14009 {64 * 1024, 126},
14010 {32 * 1024, 1},
14011 {8 * 1024, 4},
14012 },
14013 .block_erase = spi_block_erase_d8,
14014 }, {
14015 .eraseblocks = { {8 * 1024 * 1024, 1} },
14016 .block_erase = spi_block_erase_c7,
14017 },
14018 },
14019 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14020 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
14021 .write = spi_chip_write_256, /* Multi I/O supported */
14022 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
14023 .voltage = {2700, 3600},
14024 },
14025
14026 {
14027 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014028 .name = "SST28SF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014029 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014030 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014031 .model_id = SST_SST28SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014032 .total_size = 512,
14033 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000014034 .feature_bits = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014035 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014036 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014037 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014038 .block_erasers =
14039 {
14040 {
14041 .eraseblocks = { {128, 4096} },
14042 .block_erase = erase_sector_28sf040,
14043 }, {
14044 .eraseblocks = { {512 * 1024, 1} },
14045 .block_erase = erase_chip_28sf040,
14046 }
14047 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014048 .unlock = unprotect_28sf040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014049 .write = write_28sf040,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014050 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014051 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014052 },
14053
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014054 {
14055 .vendor = "SST",
14056 .name = "SST29EE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014057 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014058 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014059 .model_id = SST_SST29EE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014060 .total_size = 128,
14061 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000014062 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000014063 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014064 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000014065 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014066 .block_erasers =
14067 {
14068 {
14069 .eraseblocks = { {128 * 1024, 1} },
14070 .block_erase = erase_chip_block_jedec,
14071 }
14072 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014073 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014074 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014075 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014076 },
14077
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014078 {
14079 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014080 .name = "SST29EE020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014081 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014082 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014083 .model_id = SST_SST29EE020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014084 .total_size = 256,
14085 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000014086 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000014087 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014088 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014089 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014090 .block_erasers =
14091 {
14092 {
14093 .eraseblocks = { {256 * 1024, 1} },
14094 .block_erase = erase_chip_block_jedec,
14095 }
14096 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014097 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014098 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014099 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014100 },
14101
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014102 {
14103 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100014104 .name = "SST29LE010",
14105 .bustype = BUS_PARALLEL,
14106 .manufacture_id = SST_ID,
14107 .model_id = SST_SST29LE010,
14108 .total_size = 128,
14109 .page_size = 128,
14110 .feature_bits = FEATURE_LONG_RESET,
14111 .tested = TEST_UNTESTED,
14112 .probe = probe_jedec,
14113 .probe_timing = 10,
14114 .block_erasers =
14115 {
14116 {
14117 .eraseblocks = { {128 * 1024, 1} },
14118 .block_erase = erase_chip_block_jedec,
14119 }
14120 },
14121 .write = write_jedec,
14122 .read = read_memmapped,
14123 .voltage = {3000, 3600},
14124 },
14125
14126 {
14127 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014128 .name = "SST29LE020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014129 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014130 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014131 .model_id = SST_SST29LE020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014132 .total_size = 256,
14133 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000014134 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000014135 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014136 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000014137 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014138 .block_erasers =
14139 {
14140 {
14141 .eraseblocks = { {256 * 1024, 1} },
14142 .block_erase = erase_chip_block_jedec,
14143 }
14144 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014145 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014146 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014147 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014148 },
14149
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014150 {
14151 .vendor = "SST",
14152 .name = "SST39SF010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014153 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014154 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014155 .model_id = SST_SST39SF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014156 .total_size = 128,
14157 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014158 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000014159 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014160 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000014161 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014162 .block_erasers =
14163 {
14164 {
14165 .eraseblocks = { {4 * 1024, 32} },
14166 .block_erase = erase_sector_jedec,
14167 }, {
14168 .eraseblocks = { {128 * 1024, 1} },
14169 .block_erase = erase_chip_block_jedec,
14170 }
14171 },
Sean Nelson35727f72010-01-28 23:55:12 +000014172 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014173 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014174 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014175 },
14176
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014177 {
14178 .vendor = "SST",
14179 .name = "SST39SF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014180 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014181 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014182 .model_id = SST_SST39SF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014183 .total_size = 256,
14184 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014185 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann19f46f22011-06-18 22:56:14 +000014186 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014187 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014188 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014189 .block_erasers =
14190 {
14191 {
14192 .eraseblocks = { {4 * 1024, 64} },
14193 .block_erase = erase_sector_jedec,
14194 }, {
14195 .eraseblocks = { {256 * 1024, 1} },
14196 .block_erase = erase_chip_block_jedec,
14197 }
14198 },
Sean Nelson35727f72010-01-28 23:55:12 +000014199 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014200 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014201 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014202 },
14203
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014204 {
14205 .vendor = "SST",
14206 .name = "SST39SF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014207 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014208 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014209 .model_id = SST_SST39SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014210 .total_size = 512,
14211 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014212 .feature_bits = FEATURE_EITHER_RESET,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +000014213 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014214 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014215 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014216 .block_erasers =
14217 {
14218 {
14219 .eraseblocks = { {4 * 1024, 128} },
14220 .block_erase = erase_sector_jedec,
14221 }, {
14222 .eraseblocks = { {512 * 1024, 1} },
14223 .block_erase = erase_chip_block_jedec,
14224 }
14225 },
Sean Nelson35727f72010-01-28 23:55:12 +000014226 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014227 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014228 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014229 },
14230
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014231 {
14232 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100014233 .name = "SST39SF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014234 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014235 .manufacture_id = SST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100014236 .model_id = SST_SST39SF512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014237 .total_size = 64,
14238 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014239 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd7d423b2012-10-20 09:13:16 +000014240 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014241 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014242 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014243 .block_erasers =
14244 {
14245 {
14246 .eraseblocks = { {4 * 1024, 16} },
14247 .block_erase = erase_sector_jedec,
14248 }, {
14249 .eraseblocks = { {64 * 1024, 1} },
14250 .block_erase = erase_chip_block_jedec,
14251 }
14252 },
Sean Nelson35727f72010-01-28 23:55:12 +000014253 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014254 .read = read_memmapped,
Alan Green1f9cc7d2019-07-01 11:10:45 +100014255 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014256 },
14257
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014258 {
14259 .vendor = "SST",
14260 .name = "SST39VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014261 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014262 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014263 .model_id = SST_SST39VF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014264 .total_size = 128,
14265 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014266 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd94d25d2012-07-28 03:17:15 +000014267 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014268 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014269 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014270 .block_erasers =
14271 {
14272 {
14273 .eraseblocks = { {4 * 1024, 32} },
14274 .block_erase = erase_sector_jedec,
14275 }, {
14276 .eraseblocks = { {128 * 1024, 1} },
14277 .block_erase = erase_chip_block_jedec,
14278 }
14279 },
Sean Nelson35727f72010-01-28 23:55:12 +000014280 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014281 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014282 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014283 },
14284
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014285 {
14286 .vendor = "SST",
14287 .name = "SST39VF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014288 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014289 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014290 .model_id = SST_SST39VF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014291 .total_size = 256,
14292 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014293 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner5c316f92015-02-08 21:57:52 +000014294 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014295 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014296 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014297 .block_erasers =
14298 {
14299 {
14300 .eraseblocks = { {4 * 1024, 64} },
14301 .block_erase = erase_sector_jedec,
14302 }, {
14303 .eraseblocks = { {256 * 1024, 1} },
14304 .block_erase = erase_chip_block_jedec,
14305 }
14306 },
Sean Nelson35727f72010-01-28 23:55:12 +000014307 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014308 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014309 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014310 },
14311
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014312 {
14313 .vendor = "SST",
14314 .name = "SST39VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014315 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014316 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014317 .model_id = SST_SST39VF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014318 .total_size = 512,
14319 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014320 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner23e10b82016-01-23 16:16:49 +000014321 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014322 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014323 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014324 .block_erasers =
14325 {
14326 {
14327 .eraseblocks = { {4 * 1024, 128} },
14328 .block_erase = erase_sector_jedec,
14329 }, {
14330 .eraseblocks = { {512 * 1024, 1} },
14331 .block_erase = erase_chip_block_jedec,
14332 }
14333 },
Sean Nelson35727f72010-01-28 23:55:12 +000014334 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014335 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014336 .voltage = {2700, 3600},
Carl-Daniel Hailfinger90eff152008-12-08 23:51:45 +000014337 },
FENG yu ningff692fb2008-12-08 18:15:10 +000014338
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014339 {
14340 .vendor = "SST",
Peter Stuge8440cc02009-01-25 23:55:12 +000014341 .name = "SST39VF080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014342 .bustype = BUS_PARALLEL,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000014343 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014344 .model_id = SST_SST39VF080,
Peter Stuge8440cc02009-01-25 23:55:12 +000014345 .total_size = 1024,
14346 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014347 .feature_bits = FEATURE_EITHER_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +000014348 .tested = TEST_UNTESTED,
14349 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014350 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014351 .block_erasers =
14352 {
14353 {
14354 .eraseblocks = { {4 * 1024, 256} },
14355 .block_erase = erase_sector_jedec,
14356 }, {
14357 .eraseblocks = { {64 * 1024, 16} },
14358 .block_erase = erase_block_jedec,
14359 }, {
14360 .eraseblocks = { {1024 * 1024, 1} },
14361 .block_erase = erase_chip_block_jedec,
14362 }
14363 },
Sean Nelson35727f72010-01-28 23:55:12 +000014364 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014365 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014366 .voltage = {2700, 3600},
Peter Stuge8440cc02009-01-25 23:55:12 +000014367 },
14368
14369 {
14370 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100014371 .name = "SST39VF512",
14372 .bustype = BUS_PARALLEL,
14373 .manufacture_id = SST_ID,
14374 .model_id = SST_SST39VF512,
14375 .total_size = 64,
14376 .page_size = 4096,
14377 .feature_bits = FEATURE_EITHER_RESET,
14378 .tested = TEST_OK_PREW,
14379 .probe = probe_jedec,
14380 .probe_timing = 1, /* 150 ns */
14381 .block_erasers =
14382 {
14383 {
14384 .eraseblocks = { {4 * 1024, 16} },
14385 .block_erase = erase_sector_jedec,
14386 }, {
14387 .eraseblocks = { {64 * 1024, 1} },
14388 .block_erase = erase_chip_block_jedec,
14389 }
14390 },
14391 .write = write_jedec_1,
14392 .read = read_memmapped,
14393 .voltage = {2700, 3600},
14394 },
14395
14396 {
14397 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014398 .name = "SST49LF002A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014399 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014400 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014401 .model_id = SST_SST49LF002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014402 .total_size = 256,
14403 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014404 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000014405 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014406 .probe = probe_jedec,
14407 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014408 .block_erasers =
14409 {
14410 {
14411 .eraseblocks = { {4 * 1024, 64} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014412 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014413 }, {
14414 .eraseblocks = { {16 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014415 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014416 }, {
14417 .eraseblocks = { {256 * 1024, 1} },
14418 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
14419 }
14420 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014421 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014422 .unlock = unlock_sst_fwhub,
14423 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014424 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014425 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014426 },
14427
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014428 {
14429 .vendor = "SST",
14430 .name = "SST49LF003A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014431 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014432 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014433 .model_id = SST_SST49LF003A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014434 .total_size = 384,
14435 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014436 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000014437 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014438 .probe = probe_jedec,
14439 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014440 .block_erasers =
14441 {
14442 {
14443 .eraseblocks = { {4 * 1024, 96} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014444 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014445 }, {
14446 .eraseblocks = { {64 * 1024, 6} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014447 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014448 }, {
14449 .eraseblocks = { {384 * 1024, 1} },
14450 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
14451 }
14452 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014453 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014454 .unlock = unlock_sst_fwhub,
14455 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014456 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014457 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014458 },
14459
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014460 {
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000014461 /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB)
14462 * and is only honored for 64k block erase, but not 4k sector erase.
14463 */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014464 .vendor = "SST",
14465 .name = "SST49LF004A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014466 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014467 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014468 .model_id = SST_SST49LF004A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014469 .total_size = 512,
14470 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014471 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000014472 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014473 .probe = probe_jedec,
14474 .probe_timing = 1, /* 150 ns */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000014475 .block_erasers =
14476 {
14477 {
14478 .eraseblocks = { {4 * 1024, 128} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014479 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000014480 }, {
14481 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014482 .block_erase = erase_block_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000014483 }, {
14484 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson51c83fb2010-01-20 20:55:53 +000014485 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000014486 },
14487 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014488 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014489 .unlock = unlock_sst_fwhub,
14490 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014491 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014492 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014493 },
14494
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014495 {
14496 .vendor = "SST",
14497 .name = "SST49LF004C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014498 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014499 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014500 .model_id = SST_SST49LF004C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014501 .total_size = 512,
14502 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014503 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014504 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014505 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014506 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014507 .block_erasers =
14508 {
14509 {
14510 .eraseblocks = { {4 * 1024, 128} },
14511 .block_erase = erase_sector_49lfxxxc,
14512 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000014513 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000014514 {64 * 1024, 7},
14515 {32 * 1024, 1},
14516 {8 * 1024, 2},
14517 {16 * 1024, 1},
14518 },
Sean Nelson69e58112010-03-23 17:10:28 +000014519 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014520 }
14521 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014522 .printlock = printlock_regspace2_block_eraser_1,
14523 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014524 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014525 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014526 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014527 },
14528
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014529 {
14530 .vendor = "SST",
14531 .name = "SST49LF008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014532 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014533 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014534 .model_id = SST_SST49LF008A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014535 .total_size = 1024,
14536 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014537 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000014538 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014539 .probe = probe_jedec,
14540 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014541 .block_erasers =
14542 {
14543 {
14544 .eraseblocks = { {4 * 1024, 256} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014545 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014546 }, {
14547 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014548 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014549 }, {
14550 .eraseblocks = { {1024 * 1024, 1} },
14551 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
14552 }
14553 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014554 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014555 .unlock = unlock_sst_fwhub,
14556 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014557 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014558 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014559 },
14560
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014561 {
14562 .vendor = "SST",
14563 .name = "SST49LF008C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014564 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014565 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014566 .model_id = SST_SST49LF008C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014567 .total_size = 1024,
14568 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014569 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014570 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014571 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014572 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014573 .block_erasers =
14574 {
14575 {
14576 .eraseblocks = { {4 * 1024, 256} },
14577 .block_erase = erase_sector_49lfxxxc,
14578 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000014579 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000014580 {64 * 1024, 15},
14581 {32 * 1024, 1},
14582 {8 * 1024, 2},
14583 {16 * 1024, 1},
14584 },
Sean Nelson69e58112010-03-23 17:10:28 +000014585 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014586 }
14587 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014588 .printlock = printlock_regspace2_block_eraser_1,
14589 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014590 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014591 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014592 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014593 },
14594
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014595 {
14596 .vendor = "SST",
14597 .name = "SST49LF016C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014598 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014599 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014600 .model_id = SST_SST49LF016C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014601 .total_size = 2048,
14602 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014603 .feature_bits = FEATURE_REGISTERMAP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000014604 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014605 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014606 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014607 .block_erasers =
14608 {
14609 {
14610 .eraseblocks = { {4 * 1024, 512} },
14611 .block_erase = erase_sector_49lfxxxc,
14612 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000014613 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000014614 {64 * 1024, 31},
14615 {32 * 1024, 1},
14616 {8 * 1024, 2},
14617 {16 * 1024, 1},
14618 },
Sean Nelson69e58112010-03-23 17:10:28 +000014619 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014620 }
14621 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014622 .printlock = printlock_regspace2_block_eraser_1,
14623 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014624 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014625 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014626 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014627 },
14628
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014629 {
14630 .vendor = "SST",
14631 .name = "SST49LF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014632 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014633 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014634 .model_id = SST_SST49LF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014635 .total_size = 256,
14636 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014637 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +000014638 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014639 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014640 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014641 .block_erasers =
14642 {
14643 {
14644 .eraseblocks = { {4 * 1024, 64} },
14645 .block_erase = erase_sector_jedec,
14646 }, {
14647 .eraseblocks = { {16 * 1024, 16} },
14648 .block_erase = erase_block_jedec,
14649 }, {
14650 .eraseblocks = { {256 * 1024, 1} },
14651 .block_erase = NULL,
14652 }
14653 },
Sean Nelson35727f72010-01-28 23:55:12 +000014654 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014655 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014656 .voltage = {3000, 3600},
Sven Schnellec208dfb2009-01-07 12:35:09 +000014657 },
14658
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014659 {
14660 .vendor = "SST",
14661 .name = "SST49LF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014662 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014663 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014664 .model_id = SST_SST49LF020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014665 .total_size = 256,
Carl-Daniel Hailfingerda654322009-07-23 01:44:38 +000014666 .page_size = 4 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014667 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000014668 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014669 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014670 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014671 .block_erasers =
14672 {
14673 {
14674 .eraseblocks = { {4 * 1024, 64} },
14675 .block_erase = erase_sector_jedec,
14676 }, {
14677 .eraseblocks = { {16 * 1024, 16} },
14678 .block_erase = erase_block_jedec,
14679 }, {
14680 .eraseblocks = { {256 * 1024, 1} },
14681 .block_erase = NULL,
14682 }
14683 },
Sean Nelson35727f72010-01-28 23:55:12 +000014684 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014685 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014686 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014687 },
14688
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014689 {
14690 .vendor = "SST",
14691 .name = "SST49LF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014692 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014693 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014694 .model_id = SST_SST49LF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014695 .total_size = 512,
14696 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014697 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000014698 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014699 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014700 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014701 .block_erasers =
14702 {
14703 {
14704 .eraseblocks = { {4 * 1024, 128} },
14705 .block_erase = erase_sector_jedec,
14706 }, {
14707 .eraseblocks = { {64 * 1024, 8} },
14708 .block_erase = erase_block_jedec,
14709 }, {
14710 .eraseblocks = { {512 * 1024, 1} },
14711 .block_erase = NULL,
14712 }
14713 },
Sean Nelson35727f72010-01-28 23:55:12 +000014714 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014715 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014716 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014717 },
14718
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014719 {
14720 .vendor = "SST",
14721 .name = "SST49LF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014722 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014723 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014724 .model_id = SST_SST49LF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014725 .total_size = 512,
14726 .page_size = 64 * 1024,
Joshua Roysa84b0bd2010-08-16 22:12:39 +000014727 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000014728 .tested = TEST_OK_PREW,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014729 .probe = probe_jedec,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014730 .probe_timing = 1, /* 150ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014731 .block_erasers =
14732 {
14733 {
14734 .eraseblocks = { {4 * 1024, 128} },
14735 .block_erase = erase_sector_jedec,
14736 }, {
14737 .eraseblocks = { {64 * 1024, 8} },
14738 .block_erase = erase_block_jedec,
14739 }, {
14740 .eraseblocks = { {512 * 1024, 1} },
14741 .block_erase = NULL,
14742 }
14743 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014744 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000014745 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014746 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014747 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014748 },
14749
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014750 {
14751 .vendor = "SST",
14752 .name = "SST49LF080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014753 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014754 .manufacture_id = SST_ID,
Elyes HAOUAS124ef382018-03-27 12:15:09 +020014755 .model_id = SST_SST49LF080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014756 .total_size = 1024,
14757 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014758 .feature_bits = FEATURE_EITHER_RESET,
Brandon Dowdyf07bf322011-03-06 18:31:11 +000014759 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014760 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000014761 .probe_timing = TIMING_FIXME,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014762 .block_erasers =
14763 {
14764 {
14765 .eraseblocks = { {4 * 1024, 256} },
14766 .block_erase = erase_sector_jedec,
14767 }, {
14768 .eraseblocks = { {64 * 1024, 16} },
14769 .block_erase = erase_block_jedec,
14770 }, {
14771 .eraseblocks = { {1024 * 1024, 1} },
14772 .block_erase = NULL,
14773 }
14774 },
Sean Nelson35727f72010-01-28 23:55:12 +000014775 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014776 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014777 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014778 },
14779
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014780 {
14781 .vendor = "SST",
14782 .name = "SST49LF160C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014783 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014784 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014785 .model_id = SST_SST49LF160C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014786 .total_size = 2048,
14787 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014788 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014789 .tested = TEST_OK_PR,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014790 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014791 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014792 .block_erasers =
14793 {
14794 {
14795 .eraseblocks = { {4 * 1024, 512} },
14796 .block_erase = erase_sector_49lfxxxc,
14797 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000014798 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000014799 {64 * 1024, 31},
14800 {32 * 1024, 1},
14801 {8 * 1024, 2},
14802 {16 * 1024, 1},
14803 },
Sean Nelson69e58112010-03-23 17:10:28 +000014804 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014805 }
14806 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014807 .printlock = printlock_regspace2_block_eraser_1,
14808 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014809 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014810 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014811 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014812 },
14813
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014814 {
14815 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014816 .name = "M29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014817 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014818 .manufacture_id = ST_ID,
14819 .model_id = ST_M29F002B,
14820 .total_size = 256,
14821 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014822 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014823 .tested = TEST_UNTESTED,
14824 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014825 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014826 .block_erasers =
14827 {
14828 {
14829 .eraseblocks = {
14830 {16 * 1024, 1},
14831 {8 * 1024, 2},
14832 {32 * 1024, 1},
14833 {64 * 1024, 3},
14834 },
14835 .block_erase = erase_sector_jedec,
14836 }, {
14837 .eraseblocks = { {256 * 1024, 1} },
14838 .block_erase = erase_chip_block_jedec,
14839 }
14840 },
Sean Nelson35727f72010-01-28 23:55:12 +000014841 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014842 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000014843 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000014844 },
14845
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014846 {
14847 .vendor = "ST",
14848 .name = "M29F002T/NT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014849 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014850 .manufacture_id = ST_ID,
14851 .model_id = ST_M29F002T,
14852 .total_size = 256,
14853 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014854 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stefan Taunere34e3e82013-01-01 00:06:51 +000014855 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014856 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014857 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014858 .block_erasers =
14859 {
14860 {
14861 .eraseblocks = {
14862 {64 * 1024, 3},
14863 {32 * 1024, 1},
14864 {8 * 1024, 2},
14865 {16 * 1024, 1},
14866 },
14867 .block_erase = erase_sector_jedec,
14868 }, {
14869 .eraseblocks = { {256 * 1024, 1} },
14870 .block_erase = erase_chip_block_jedec,
14871 }
14872 },
Sean Nelson35727f72010-01-28 23:55:12 +000014873 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014874 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000014875 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000014876 },
14877
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014878 {
14879 .vendor = "ST",
14880 .name = "M29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014881 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014882 .manufacture_id = ST_ID,
14883 .model_id = ST_M29F040B,
14884 .total_size = 512,
14885 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014886 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
14887 .tested = TEST_UNTESTED,
14888 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +000014889 .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */
Sean Nelson56358aa2010-01-19 16:08:51 +000014890 .block_erasers =
14891 {
14892 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014893 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +000014894 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000014895 }, {
14896 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000014897 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000014898 }
14899 },
Sean Nelson35727f72010-01-28 23:55:12 +000014900 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014901 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014902 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014903 },
14904
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014905 {
Sean Nelson35727f72010-01-28 23:55:12 +000014906 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014907 .vendor = "ST",
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014908 .name = "M29F400BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014909 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014910 .manufacture_id = ST_ID,
14911 .model_id = ST_M29F400BB,
14912 .total_size = 512,
14913 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014914 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014915 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014916 .probe = probe_jedec,
14917 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014918 .block_erasers =
14919 {
14920 {
14921 .eraseblocks = {
14922 {16 * 1024, 1},
14923 {8 * 1024, 2},
14924 {32 * 1024, 1},
14925 {64 * 1024, 7},
14926 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014927 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014928 }, {
14929 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014930 .block_erase = erase_chip_block_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014931 }
14932 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014933 .write = write_jedec_1,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014934 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014935 .voltage = {4500, 5500},
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014936 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100014937
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000014938 {
14939 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
14940 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014941 .name = "M29F400BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014942 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014943 .manufacture_id = ST_ID,
14944 .model_id = ST_M29F400BT,
14945 .total_size = 512,
14946 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014947 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014948 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014949 .probe = probe_jedec,
14950 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson56358aa2010-01-19 16:08:51 +000014951 .block_erasers =
14952 {
14953 {
14954 .eraseblocks = {
14955 {64 * 1024, 7},
14956 {32 * 1024, 1},
14957 {8 * 1024, 2},
14958 {16 * 1024, 1},
14959 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014960 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000014961 }, {
14962 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014963 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000014964 }
14965 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000014966 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014967 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014968 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014969 },
14970
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014971 {
14972 .vendor = "ST",
14973 .name = "M29W010B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014974 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014975 .manufacture_id = ST_ID,
14976 .model_id = ST_M29W010B,
14977 .total_size = 128,
14978 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014979 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014980 .tested = TEST_UNTESTED,
14981 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014982 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000014983 .block_erasers =
14984 {
14985 {
Stefan Tauner6697f712014-08-06 15:09:15 +000014986 .eraseblocks = { {16 * 1024, 8} },
Sean Nelson56358aa2010-01-19 16:08:51 +000014987 .block_erase = erase_sector_jedec,
14988 }, {
14989 .eraseblocks = { {128 * 1024, 1} },
14990 .block_erase = erase_chip_block_jedec,
14991 }
14992 },
Sean Nelson35727f72010-01-28 23:55:12 +000014993 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014994 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014995 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014996 },
14997
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014998 {
14999 .vendor = "ST",
15000 .name = "M29W040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015001 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015002 .manufacture_id = ST_ID,
15003 .model_id = ST_M29W040B,
15004 .total_size = 512,
15005 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015006 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015007 .tested = TEST_UNTESTED,
15008 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000015009 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000015010 .block_erasers =
15011 {
15012 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015013 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson56358aa2010-01-19 16:08:51 +000015014 .block_erase = erase_sector_jedec,
15015 }, {
15016 .eraseblocks = { {512 * 1024, 1} },
15017 .block_erase = erase_chip_block_jedec,
15018 }
15019 },
Sean Nelson35727f72010-01-28 23:55:12 +000015020 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015021 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015022 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000015023 },
15024
Stefan Taunereb582572012-09-21 12:52:50 +000015025 {
15026 .vendor = "ST",
15027 .name = "M29W512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015028 .bustype = BUS_PARALLEL,
Alan Greenfa3fcd32019-06-27 15:41:50 +100015029 .manufacture_id = ST_ID,
Stefan Taunereb582572012-09-21 12:52:50 +000015030 .model_id = ST_M29W512B,
15031 .total_size = 64,
15032 .page_size = 64 * 1024,
15033 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauner0554ca52013-07-25 22:54:25 +000015034 .tested = TEST_OK_PREW,
Stefan Taunereb582572012-09-21 12:52:50 +000015035 .probe = probe_jedec,
15036 .probe_timing = TIMING_ZERO,
15037 .block_erasers =
15038 {
15039 {
15040 .eraseblocks = { {64 * 1024, 1} },
15041 .block_erase = erase_chip_block_jedec,
15042 }
15043 },
15044 .write = write_jedec_1,
15045 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015046 .voltage = {2700, 3600},
Stefan Taunereb582572012-09-21 12:52:50 +000015047 },
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +000015048
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015049 {
15050 .vendor = "ST",
15051 .name = "M50FLW040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015052 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015053 .manufacture_id = ST_ID,
15054 .model_id = ST_M50FLW040A,
15055 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000015056 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015057 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015058 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000015059 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000015060 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000015061 .block_erasers =
15062 {
15063 {
Sean Nelson329bde72010-01-19 16:39:19 +000015064 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000015065 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000015066 {64 * 1024, 5}, /* block */
15067 {4 * 1024, 16}, /* sector */
15068 {4 * 1024, 16}, /* sector */
15069 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000015070 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000015071 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000015072 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000015073 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015074 }
15075 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015076 .unlock = unlock_regspace2_uniform_64k,
Alan Greenc1863ca2019-06-27 15:08:03 +100015077 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015078 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015079 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015080 },
15081
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015082 {
15083 .vendor = "ST",
15084 .name = "M50FLW040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015085 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015086 .manufacture_id = ST_ID,
15087 .model_id = ST_M50FLW040B,
15088 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000015089 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015090 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015091 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000015092 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000015093 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000015094 .block_erasers =
15095 {
15096 {
Sean Nelson329bde72010-01-19 16:39:19 +000015097 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000015098 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000015099 {4 * 1024, 16}, /* sector */
15100 {64 * 1024, 5}, /* block */
15101 {4 * 1024, 16}, /* sector */
15102 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000015103 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000015104 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000015105 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000015106 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015107 }
15108 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015109 .unlock = unlock_regspace2_uniform_64k,
Alan Greenc1863ca2019-06-27 15:08:03 +100015110 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015111 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015112 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015113 },
15114
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015115 {
15116 .vendor = "ST",
15117 .name = "M50FLW080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015118 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015119 .manufacture_id = ST_ID,
15120 .model_id = ST_M50FLW080A,
15121 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000015122 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015123 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015124 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +000015125 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000015126 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000015127 .block_erasers =
15128 {
15129 {
Sean Nelson329bde72010-01-19 16:39:19 +000015130 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000015131 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000015132 {64 * 1024, 13}, /* block */
15133 {4 * 1024, 16}, /* sector */
15134 {4 * 1024, 16}, /* sector */
15135 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000015136 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000015137 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000015138 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000015139 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015140 }
15141 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015142 .printlock = printlock_regspace2_block_eraser_0,
15143 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000015144 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015145 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015146 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015147 },
15148
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015149 {
15150 .vendor = "ST",
15151 .name = "M50FLW080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015152 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015153 .manufacture_id = ST_ID,
15154 .model_id = ST_M50FLW080B,
15155 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000015156 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015157 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015158 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000015159 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000015160 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000015161 .block_erasers =
15162 {
15163 {
Sean Nelson329bde72010-01-19 16:39:19 +000015164 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000015165 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000015166 {4 * 1024, 16}, /* sector */
15167 {64 * 1024, 13}, /* block */
15168 {4 * 1024, 16}, /* sector */
15169 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000015170 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000015171 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000015172 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000015173 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015174 }
15175 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015176 .printlock = printlock_regspace2_block_eraser_0,
15177 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000015178 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015179 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015180 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015181 },
15182
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015183 {
15184 .vendor = "ST",
15185 .name = "M50FW002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015186 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015187 .manufacture_id = ST_ID,
15188 .model_id = ST_M50FW002,
15189 .total_size = 256,
Stefan Tauner4404f732013-09-12 08:28:56 +000015190 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015191 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015192 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +000015193 .probe = probe_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015194 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000015195 .block_erasers =
15196 {
15197 {
15198 .eraseblocks = {
15199 {64 * 1024, 3},
15200 {32 * 1024, 1},
15201 {8 * 1024, 2},
15202 {16 * 1024, 1},
15203 },
Sean Nelson28accc22010-03-19 18:47:06 +000015204 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015205 }, {
Stefan Tauner5c316f92015-02-08 21:57:52 +000015206 .eraseblocks = { {256 * 1024, 1} },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015207 .block_erase = NULL, /* Only in A/A mux mode */
Sean Nelson56358aa2010-01-19 16:08:51 +000015208 }
15209 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015210 .printlock = printlock_regspace2_block_eraser_0,
15211 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000015212 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015213 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015214 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015215 },
15216
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015217 {
15218 .vendor = "ST",
15219 .name = "M50FW016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015220 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015221 .manufacture_id = ST_ID,
15222 .model_id = ST_M50FW016,
15223 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000015224 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015225 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015226 .tested = TEST_UNTESTED,
15227 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000015228 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000015229 .block_erasers =
15230 {
15231 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015232 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson28accc22010-03-19 18:47:06 +000015233 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015234 }
15235 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015236 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000015237 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015238 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015239 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015240 },
15241
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015242 {
15243 .vendor = "ST",
15244 .name = "M50FW040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015245 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015246 .manufacture_id = ST_ID,
15247 .model_id = ST_M50FW040,
15248 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000015249 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015250 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +000015251 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015252 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000015253 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000015254 .block_erasers =
15255 {
15256 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015257 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000015258 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015259 }
15260 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015261 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000015262 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015263 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015264 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015265 },
15266
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015267 {
15268 .vendor = "ST",
15269 .name = "M50FW080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015270 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015271 .manufacture_id = ST_ID,
15272 .model_id = ST_M50FW080,
15273 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000015274 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015275 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015276 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015277 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000015278 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000015279 .block_erasers =
15280 {
15281 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015282 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000015283 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015284 }
15285 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015286 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000015287 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015288 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015289 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015290 },
15291
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015292 {
15293 .vendor = "ST",
Stefan Tauner8c4602b2013-09-12 08:29:00 +000015294 .name = "M50LPW080",
15295 .bustype = BUS_LPC, /* A/A Mux */
15296 .manufacture_id = ST_ID,
15297 .model_id = ST_M50LPW080,
15298 .total_size = 1024,
15299 .page_size = 0,
15300 .feature_bits = FEATURE_REGISTERMAP,
15301 .tested = TEST_UNTESTED,
15302 .probe = probe_82802ab,
15303 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
15304 .block_erasers =
15305 {
15306 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015307 .eraseblocks = { {64 * 1024, 16} },
Stefan Tauner8c4602b2013-09-12 08:29:00 +000015308 .block_erase = erase_block_82802ab,
15309 }
15310 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015311 .unlock = unlock_regspace2_uniform_64k,
Stefan Tauner8c4602b2013-09-12 08:29:00 +000015312 .write = write_82802ab,
15313 .read = read_memmapped,
15314 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
15315 },
15316
15317 {
15318 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015319 .name = "M50LPW116",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015320 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015321 .manufacture_id = ST_ID,
15322 .model_id = ST_M50LPW116,
15323 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000015324 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015325 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015326 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000015327 .probe = probe_82802ab,
Udu Ogahc04ee222009-09-05 01:31:32 +000015328 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000015329 .block_erasers =
15330 {
15331 {
15332 .eraseblocks = {
15333 {4 * 1024, 16},
15334 {64 * 1024, 30},
15335 {32 * 1024, 1},
15336 {8 * 1024, 2},
15337 {16 * 1024, 1},
15338 },
Sean Nelson28accc22010-03-19 18:47:06 +000015339 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015340 }
15341 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015342 .printlock = printlock_regspace2_block_eraser_0,
15343 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000015344 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015345 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015346 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015347 },
15348
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015349 {
Konstantin Grudnev3d8868c2019-07-23 00:48:54 +030015350 .vendor = "ST",
15351 .name = "M95M02",
15352 .bustype = BUS_SPI,
15353 .manufacture_id = ST_ID,
15354 .model_id = ST_M95M02,
15355 .total_size = 256,
15356 .page_size = 256,
15357 .feature_bits = FEATURE_WRSR_WREN | FEATURE_NO_ERASE | FEATURE_ERASED_ZERO,
15358 .tested = TEST_OK_PREW,
15359 .probe = probe_spi_st95,
15360 .probe_timing = TIMING_ZERO,
15361 .block_erasers =
15362 {
15363 {
15364 .eraseblocks = { {256 * 1024, 1} },
15365 .block_erase = spi_block_erase_emulation,
15366 }
15367 },
15368
15369 .printlock = spi_prettyprint_status_register_bp1_srwd,
15370 .unlock = spi_disable_blockprotect_bp1_srwd,
15371 .write = spi_chip_write_256,
15372 .read = spi_chip_read,
15373 .voltage = {2500, 5500},
15374 },
15375
15376 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100015377 .vendor = "Sanyo",
15378 .name = "LE25FU106B",
15379 .bustype = BUS_SPI,
15380 .manufacture_id = SANYO_ID,
15381 .model_id = SANYO_LE25FU106B,
15382 .total_size = 128,
15383 .page_size = 256,
15384 .feature_bits = FEATURE_WRSR_WREN,
15385 .tested = TEST_UNTESTED,
15386 .probe = probe_spi_res2,
15387 .probe_timing = TIMING_ZERO,
15388 .block_erasers =
15389 {
15390 /* FIXME: Is this correct?
15391 {
15392 .eraseblocks = { {2 * 1024, 64} },
15393 .block_erase = spi_block_erase_d7,
15394 },*/
15395 {
15396 .eraseblocks = { {32 * 1024, 4} },
15397 .block_erase = spi_block_erase_d8,
15398 }, {
15399 .eraseblocks = { {128 * 1024, 1} },
15400 .block_erase = spi_block_erase_c7,
15401 }
15402 },
15403 .printlock = spi_prettyprint_status_register_bp1_srwd,
15404 .unlock = spi_disable_blockprotect_bp1_srwd,
15405 .write = spi_chip_write_256,
15406 .read = spi_chip_read,
15407 .voltage = {2300, 3600},
15408 },
15409
15410 {
15411 .vendor = "Sanyo",
15412 .name = "LE25FU206",
15413 .bustype = BUS_SPI,
15414 .manufacture_id = SANYO_ID,
15415 .model_id = SANYO_LE25FU206,
15416 .total_size = 256,
15417 .page_size = 256,
15418 .feature_bits = FEATURE_WRSR_WREN,
15419 .tested = TEST_UNTESTED,
15420 .probe = probe_spi_res2,
15421 .probe_timing = TIMING_ZERO,
15422 .block_erasers =
15423 {
15424 {
15425 .eraseblocks = { {4 * 1024, 64} },
15426 .block_erase = spi_block_erase_d7,
15427 }, {
15428 .eraseblocks = { {64 * 1024, 4} },
15429 .block_erase = spi_block_erase_d8,
15430 }, {
15431 .eraseblocks = { {256 * 1024, 1} },
15432 .block_erase = spi_block_erase_c7,
15433 }
15434 },
15435 .printlock = spi_prettyprint_status_register_bp1_srwd,
15436 .unlock = spi_disable_blockprotect_bp1_srwd,
15437 .write = spi_chip_write_256,
15438 .read = spi_chip_read,
15439 .voltage = {2300, 3600},
15440 },
15441
15442 {
15443 .vendor = "Sanyo",
15444 .name = "LE25FU206A",
15445 .bustype = BUS_SPI,
15446 .manufacture_id = SANYO_ID,
15447 .model_id = SANYO_LE25FU206A,
15448 .total_size = 256,
15449 .page_size = 256,
15450 .tested = TEST_UNTESTED,
15451 .probe = probe_spi_rdid,
15452 .probe_timing = TIMING_ZERO,
15453 .block_erasers =
15454 {
15455 {
15456 .eraseblocks = { {4 * 1024, 64} },
15457 .block_erase = spi_block_erase_20,
15458 }, {
15459 .eraseblocks = { {4 * 1024, 64} },
15460 .block_erase = spi_block_erase_d7,
15461 }, {
15462 .eraseblocks = { {64 * 1024, 4} },
15463 .block_erase = spi_block_erase_d8,
15464 }, {
15465 .eraseblocks = { {256 * 1024, 1} },
15466 .block_erase = spi_block_erase_60,
15467 }, {
15468 .eraseblocks = { {256 * 1024, 1} },
15469 .block_erase = spi_block_erase_c7,
15470 }
15471 },
15472 .printlock = spi_prettyprint_status_register_bp2_srwd,
15473 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
15474 .write = spi_chip_write_256,
15475 .read = spi_chip_read,
15476 .voltage = {2300, 3600},
15477 },
15478
15479 {
15480 .vendor = "Sanyo",
15481 .name = "LE25FU406B",
15482 .bustype = BUS_SPI,
15483 .manufacture_id = SANYO_ID,
15484 .model_id = SANYO_LE25FU406B,
15485 .total_size = 512,
15486 .page_size = 256,
15487 .feature_bits = FEATURE_WRSR_WREN,
15488 .tested = TEST_OK_PREW,
15489 .probe = probe_spi_res2,
15490 .probe_timing = TIMING_ZERO,
15491 .block_erasers =
15492 {
15493 {
15494 .eraseblocks = { {4 * 1024, 128} },
15495 .block_erase = spi_block_erase_d7,
15496 }, {
15497 .eraseblocks = { {64 * 1024, 8} },
15498 .block_erase = spi_block_erase_d8,
15499 }, {
15500 .eraseblocks = { {512 * 1024, 1} },
15501 .block_erase = spi_block_erase_c7,
15502 }
15503 },
15504 .printlock = spi_prettyprint_status_register_bp2_srwd,
15505 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
15506 .write = spi_chip_write_256,
15507 .read = spi_chip_read,
15508 .voltage = {2300, 3600},
15509 },
15510
15511 {
15512 .vendor = "Sanyo",
15513 .name = "LE25FU406C/LE25U40CMC",
15514 .bustype = BUS_SPI,
15515 .manufacture_id = SANYO_ID,
15516 .model_id = SANYO_LE25FU406C,
15517 .total_size = 512,
15518 .page_size = 256,
15519 .feature_bits = FEATURE_WRSR_WREN,
15520 .tested = TEST_OK_PREW,
15521 .probe = probe_spi_rdid,
15522 .probe_timing = TIMING_ZERO,
15523 .block_erasers =
15524 {
15525 {
15526 .eraseblocks = { {4 * 1024, 128} },
15527 .block_erase = spi_block_erase_20,
15528 }, {
15529 .eraseblocks = { {4 * 1024, 128} },
15530 .block_erase = spi_block_erase_d7,
15531 }, {
15532 .eraseblocks = { {64 * 1024, 8} },
15533 .block_erase = spi_block_erase_d8,
15534 }, {
15535 .eraseblocks = { {512 * 1024, 1} },
15536 .block_erase = spi_block_erase_60,
15537 }, {
15538 .eraseblocks = { {512 * 1024, 1} },
15539 .block_erase = spi_block_erase_c7,
15540 }
15541 },
15542 .printlock = spi_prettyprint_status_register_bp2_srwd,
15543 .unlock = spi_disable_blockprotect_bp2_srwd,
15544 .write = spi_chip_write_256,
15545 .read = spi_chip_read, /* Fast read (0x0B), dual read (0x3B) and dual I/O (0xBB) supported */
15546 .voltage = {2300, 3600},
15547 },
15548
15549 {
15550 .vendor = "Sanyo",
15551 .name = "LE25FW106",
15552 .bustype = BUS_SPI,
15553 .manufacture_id = SANYO_ID,
15554 .model_id = SANYO_LE25FW106,
15555 .total_size = 128,
15556 .page_size = 256,
15557 .feature_bits = FEATURE_WRSR_WREN,
15558 .tested = TEST_OK_PREW,
15559 .probe = probe_spi_res2,
15560 .probe_timing = TIMING_ZERO,
15561 .block_erasers =
15562 {
15563 {
15564 .eraseblocks = { {2 * 1024, 64} },
15565 .block_erase = spi_block_erase_d7,
15566 }, {
15567 .eraseblocks = { {32 * 1024, 4} },
15568 .block_erase = spi_block_erase_d8,
15569 }, {
15570 .eraseblocks = { {128 * 1024, 1} },
15571 .block_erase = spi_block_erase_c7,
15572 }
15573 },
15574 .printlock = spi_prettyprint_status_register_bp1_srwd, /* FIXME: Add ERSER error flag. */
15575 .unlock = spi_disable_blockprotect_bp1_srwd,
15576 .write = spi_chip_write_256,
15577 .read = spi_chip_read,
15578 .voltage = {2700, 3600},
15579 },
15580
15581 {
15582 .vendor = "Sanyo",
15583 .name = "LE25FW203A",
15584 .bustype = BUS_SPI,
15585 .manufacture_id = SANYO_ID,
15586 .model_id = SANYO_LE25FW203A,
15587 .total_size = 256,
15588 .page_size = 256,
15589 .tested = TEST_UNTESTED,
15590 .probe = probe_spi_rdid,
15591 .probe_timing = TIMING_ZERO,
15592 .block_erasers =
15593 {
15594 {
15595 .eraseblocks = { {256, 1024} },
15596 .block_erase = spi_block_erase_db,
15597 }, {
15598 .eraseblocks = { {64 * 1024, 4} },
15599 .block_erase = spi_block_erase_d8,
15600 }, {
15601 .eraseblocks = { {256 * 1024, 1} },
15602 .block_erase = spi_block_erase_c7,
15603 }
15604 },
15605 .printlock = spi_prettyprint_status_register_default_welwip,
15606 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
15607 .write = spi_chip_write_256,
15608 .read = spi_chip_read,
15609 .voltage = {2700, 3600},
15610 },
15611
15612 {
15613 .vendor = "Sanyo",
15614 .name = "LE25FW403A",
15615 .bustype = BUS_SPI,
15616 .manufacture_id = SANYO_ID,
15617 .model_id = SANYO_LE25FW403A,
15618 .total_size = 512,
15619 .page_size = 256,
15620 .tested = TEST_UNTESTED,
15621 .probe = probe_spi_rdid,
15622 .probe_timing = TIMING_ZERO,
15623 .block_erasers =
15624 {
15625 {
15626 .eraseblocks = { {256, 2 * 1024} },
15627 .block_erase = spi_block_erase_db,
15628 }, {
15629 .eraseblocks = { {64 * 1024, 8} },
15630 .block_erase = spi_block_erase_d8,
15631 }, {
15632 .eraseblocks = { {512 * 1024, 1} },
15633 .block_erase = spi_block_erase_c7,
15634 }
15635 },
15636 .printlock = spi_prettyprint_status_register_default_welwip,
15637 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
15638 .write = spi_chip_write_256,
15639 .read = spi_chip_read,
15640 .voltage = {2700, 3600},
15641 },
15642
15643 {
15644 .vendor = "Sanyo",
15645 .name = "LE25FW406A",
15646 .bustype = BUS_SPI,
15647 .manufacture_id = SANYO_ID,
15648 .model_id = SANYO_LE25FW406A,
15649 .total_size = 512,
15650 .page_size = 256,
15651 .feature_bits = FEATURE_WRSR_WREN,
15652 .tested = TEST_OK_PREW,
15653 .probe = probe_spi_res2,
15654 .probe_timing = TIMING_ZERO,
15655 .block_erasers =
15656 {
15657 {
15658 .eraseblocks = { {4 * 1024, 128} },
15659 .block_erase = spi_block_erase_d7,
15660 }, {
15661 .eraseblocks = { {64 * 1024, 8} },
15662 .block_erase = spi_block_erase_d8,
15663 }, {
15664 .eraseblocks = { {512 * 1024, 1} },
15665 .block_erase = spi_block_erase_c7,
15666 }
15667 },
15668 .printlock = spi_prettyprint_status_register_plain,
15669 .unlock = spi_disable_blockprotect,
15670 .write = spi_chip_write_256,
15671 .read = spi_chip_read,
15672 .voltage = {2700, 3600},
15673 },
15674
15675 {
15676 .vendor = "Sanyo",
15677 .name = "LE25FW418A",
15678 .bustype = BUS_SPI,
15679 .manufacture_id = SANYO_ID,
15680 .model_id = SANYO_LE25FW418A,
15681 .total_size = 512,
15682 .page_size = 256,
15683 .feature_bits = FEATURE_WRSR_WREN,
15684 .tested = TEST_UNTESTED,
15685 .probe = probe_spi_res2,
15686 .probe_timing = TIMING_ZERO,
15687 .block_erasers =
15688 {
15689 {
15690 .eraseblocks = { {4 * 1024, 128} },
15691 .block_erase = spi_block_erase_d7,
15692 }, {
15693 .eraseblocks = { {64 * 1024, 8} },
15694 .block_erase = spi_block_erase_d8,
15695 }, {
15696 .eraseblocks = { {512 * 1024, 1} },
15697 .block_erase = spi_block_erase_c7,
15698 }
15699 },
15700 .printlock = spi_prettyprint_status_register_bp2_srwd,
15701 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
15702 .write = spi_chip_write_256,
15703 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
15704 .voltage = {2700, 3600},
15705 },
15706
15707 {
15708 .vendor = "Sanyo",
15709 .name = "LE25FW806",
15710 .bustype = BUS_SPI,
15711 .manufacture_id = SANYO_ID,
15712 .model_id = SANYO_LE25FW806,
15713 .total_size = 1024,
15714 .page_size = 256,
15715 .feature_bits = FEATURE_WRSR_WREN,
15716 .tested = TEST_UNTESTED,
15717 .probe = probe_spi_res2,
15718 .probe_timing = TIMING_ZERO,
15719 .block_erasers =
15720 {
15721 {
15722 .eraseblocks = { {4 * 1024, 256} },
15723 .block_erase = spi_block_erase_20,
15724 }, {
15725 .eraseblocks = { {4 * 1024, 256} },
15726 .block_erase = spi_block_erase_d7,
15727 }, {
15728 .eraseblocks = { {64 * 1024, 16} },
15729 .block_erase = spi_block_erase_d8,
15730 }, {
15731 .eraseblocks = { {1024 * 1024, 1} },
15732 .block_erase = spi_block_erase_c7,
15733 }
15734 },
15735 .printlock = spi_prettyprint_status_register_bp2_srwd,
15736 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
15737 .write = spi_chip_write_256,
15738 .read = spi_chip_read,
15739 .voltage = {2700, 3600},
15740 },
15741
15742 {
15743 .vendor = "Sanyo",
15744 .name = "LE25FW808",
15745 .bustype = BUS_SPI,
15746 .manufacture_id = SANYO_ID,
15747 .model_id = SANYO_LE25FW808,
15748 .total_size = 1024,
15749 .page_size = 256,
15750 .feature_bits = FEATURE_WRSR_WREN,
15751 .tested = TEST_UNTESTED,
15752 .probe = probe_spi_res2,
15753 .probe_timing = TIMING_ZERO,
15754 .block_erasers =
15755 {
15756 {
15757 .eraseblocks = { {8 * 1024, 128} },
15758 .block_erase = spi_block_erase_d7,
15759 }, {
15760 .eraseblocks = { {64 * 1024, 16} },
15761 .block_erase = spi_block_erase_d8,
15762 }, {
15763 .eraseblocks = { {1024 * 1024, 1} },
15764 .block_erase = spi_block_erase_c7,
15765 }
15766 },
15767 .printlock = spi_prettyprint_status_register_bp2_srwd,
15768 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
15769 .write = spi_chip_write_256,
15770 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
15771 .voltage = {2700, 3600},
15772 },
15773
15774 {
15775 .vendor = "Sharp",
15776 .name = "LH28F008BJT-BTLZ1",
15777 .bustype = BUS_PARALLEL,
15778 .manufacture_id = SHARP_ID,
15779 .model_id = SHARP_LH28F008BJ__PB,
15780 .total_size = 1024,
15781 .page_size = 64 * 1024,
15782 .tested = TEST_OK_PREW,
15783 .probe = probe_82802ab,
15784 .probe_timing = TIMING_ZERO,
15785 .block_erasers =
15786 {
15787 {
15788 .eraseblocks = {
15789 {8 * 1024, 8},
15790 {64 * 1024, 15}
15791 },
15792 .block_erase = erase_block_82802ab,
15793 }, {
15794 .eraseblocks = { {1024 * 1024, 1} },
15795 .block_erase = erase_sector_49lfxxxc,
15796 }
15797 },
15798 .unlock = unlock_lh28f008bjt,
15799 .write = write_82802ab,
15800 .read = read_memmapped,
15801 .voltage = {2700, 3600},
15802 },
15803
15804 {
15805 .vendor = "Sharp",
15806 .name = "LHF00L04",
15807 .bustype = BUS_FWH, /* A/A Mux */
15808 .manufacture_id = SHARP_ID,
15809 .model_id = SHARP_LHF00L04,
15810 .total_size = 1024,
15811 .page_size = 64 * 1024,
15812 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
15813 .tested = TEST_UNTESTED,
15814 .probe = probe_82802ab,
15815 .probe_timing = TIMING_ZERO,
15816 .block_erasers =
15817 {
15818 {
15819 .eraseblocks = {
15820 {64 * 1024, 15},
15821 {8 * 1024, 8}
15822 },
15823 .block_erase = erase_block_82802ab,
15824 }, {
15825 .eraseblocks = {
15826 {1024 * 1024, 1}
15827 },
15828 .block_erase = NULL, /* 30 D0, only in A/A mux mode */
15829 },
15830 },
15831 .unlock = unlock_regspace2_uniform_64k,
15832 .write = write_82802ab,
15833 .read = read_memmapped,
15834 .voltage = {3000, 3600},
15835 },
15836
15837 {
15838 .vendor = "Spansion",
15839 .name = "S25FL004A",
15840 .bustype = BUS_SPI,
15841 .manufacture_id = SPANSION_ID,
15842 .model_id = SPANSION_S25FL004A,
15843 .total_size = 512,
15844 .page_size = 256,
15845 .feature_bits = FEATURE_WRSR_WREN,
15846 .tested = TEST_UNTESTED,
15847 .probe = probe_spi_rdid,
15848 .probe_timing = TIMING_ZERO,
15849 .block_erasers =
15850 {
15851 {
15852 .eraseblocks = { {64 * 1024, 8} },
15853 .block_erase = spi_block_erase_d8,
15854 }, {
15855 .eraseblocks = { {512 * 1024, 1} },
15856 .block_erase = spi_block_erase_c7,
15857 }
15858 },
15859 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15860 .unlock = spi_disable_blockprotect,
15861 .write = spi_chip_write_256,
15862 .read = spi_chip_read,
15863 .voltage = {2700, 3600},
15864 },
15865
15866 {
15867 .vendor = "Spansion",
15868 .name = "S25FL008A",
15869 .bustype = BUS_SPI,
15870 .manufacture_id = SPANSION_ID,
15871 .model_id = SPANSION_S25FL008A,
15872 .total_size = 1024,
15873 .page_size = 256,
15874 .feature_bits = FEATURE_WRSR_WREN,
15875 .tested = TEST_OK_PRE,
15876 .probe = probe_spi_rdid,
15877 .probe_timing = TIMING_ZERO,
15878 .block_erasers =
15879 {
15880 {
15881 .eraseblocks = { {64 * 1024, 16} },
15882 .block_erase = spi_block_erase_d8,
15883 }, {
15884 .eraseblocks = { {1024 * 1024, 1} },
15885 .block_erase = spi_block_erase_c7,
15886 }
15887 },
15888 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15889 .unlock = spi_disable_blockprotect,
15890 .write = spi_chip_write_256,
15891 .read = spi_chip_read,
15892 .voltage = {2700, 3600},
15893 },
15894
15895 {
15896 .vendor = "Spansion",
15897 .name = "S25FL016A",
15898 .bustype = BUS_SPI,
15899 .manufacture_id = SPANSION_ID,
15900 .model_id = SPANSION_S25FL016A,
15901 .total_size = 2048,
15902 .page_size = 256,
15903 .feature_bits = FEATURE_WRSR_WREN,
15904 .tested = TEST_OK_PREW,
15905 .probe = probe_spi_rdid,
15906 .probe_timing = TIMING_ZERO,
15907 .block_erasers =
15908 {
15909 {
15910 .eraseblocks = { {64 * 1024, 32} },
15911 .block_erase = spi_block_erase_d8,
15912 }, {
15913 .eraseblocks = { {2 * 1024 * 1024, 1} },
15914 .block_erase = spi_block_erase_c7,
15915 }
15916 },
15917 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15918 .unlock = spi_disable_blockprotect,
15919 .write = spi_chip_write_256,
15920 .read = spi_chip_read,
15921 .voltage = {2700, 3600},
15922 },
15923
15924 {
15925 .vendor = "Spansion",
15926 .name = "S25FL032A/P",
15927 .bustype = BUS_SPI,
15928 .manufacture_id = SPANSION_ID,
15929 .model_id = SPANSION_S25FL032A,
15930 .total_size = 4096,
15931 .page_size = 256,
15932 .feature_bits = FEATURE_WRSR_WREN,
15933 .tested = TEST_OK_PREW,
15934 .probe = probe_spi_rdid,
15935 .probe_timing = TIMING_ZERO,
15936 .block_erasers =
15937 {
15938 {
15939 .eraseblocks = { {64 * 1024, 64} },
15940 .block_erase = spi_block_erase_d8,
15941 }, {
15942 .eraseblocks = { {4 * 1024 * 1024, 1} },
15943 .block_erase = spi_block_erase_c7,
15944 }
15945 },
15946 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15947 .unlock = spi_disable_blockprotect,
15948 .write = spi_chip_write_256,
15949 .read = spi_chip_read,
15950 .voltage = {2700, 3600},
15951 },
15952
15953 {
15954 .vendor = "Spansion",
15955 .name = "S25FL064A/P",
15956 .bustype = BUS_SPI,
15957 .manufacture_id = SPANSION_ID,
15958 .model_id = SPANSION_S25FL064A,
15959 .total_size = 8192,
15960 .page_size = 256,
15961 .feature_bits = FEATURE_WRSR_WREN,
15962 .tested = TEST_OK_PREW,
15963 .probe = probe_spi_rdid,
15964 .probe_timing = TIMING_ZERO,
15965 .block_erasers =
15966 {
15967 {
15968 .eraseblocks = { {64 * 1024, 128} },
15969 .block_erase = spi_block_erase_d8,
15970 }, {
15971 .eraseblocks = { {8 * 1024 * 1024, 1} },
15972 .block_erase = spi_block_erase_c7,
15973 }
15974 },
15975 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
15976 .unlock = spi_disable_blockprotect,
15977 .write = spi_chip_write_256,
15978 .read = spi_chip_read,
15979 .voltage = {2700, 3600},
15980 },
15981
15982 {
15983 .vendor = "Spansion",
15984 .name = "S25FL116K/S25FL216K", /* FIXME: separate them */
15985 .bustype = BUS_SPI,
15986 .manufacture_id = SPANSION_ID,
15987 .model_id = SPANSION_S25FL216,
15988 .total_size = 2048,
15989 .page_size = 256,
15990 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (S25FL116K only) */
15991 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
15992 .tested = TEST_UNTESTED,
15993 .probe = probe_spi_rdid,
15994 .probe_timing = TIMING_ZERO,
15995 .block_erasers =
15996 {
15997 {
15998 .eraseblocks = { {4 * 1024, 512} },
15999 .block_erase = spi_block_erase_20,
16000 }, {
16001 .eraseblocks = { {64 * 1024, 32} },
16002 .block_erase = spi_block_erase_d8,
16003 }, {
16004 .eraseblocks = { { 2048 * 1024, 1} },
16005 .block_erase = spi_block_erase_60,
16006 }, {
16007 .eraseblocks = { { 2048 * 1024, 1} },
16008 .block_erase = spi_block_erase_c7,
16009 }
16010 },
16011 .printlock = spi_prettyprint_status_register_bp3_srwd,
16012 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
16013 .write = spi_chip_write_256,
16014 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
16015 .voltage = {2700, 3600},
16016 },
16017
16018 {
16019 .vendor = "Spansion",
16020 .name = "S25FL127S-256kB", /* uniform 256kB sectors */
16021 .bustype = BUS_SPI,
16022 .manufacture_id = SPANSION_ID,
16023 .model_id = SPANSION_S25FL128,
16024 .total_size = 16384,
16025 .page_size = 512,
16026 /* supports 4B addressing */
16027 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
16028 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16029 .tested = TEST_UNTESTED,
16030 .probe = probe_spi_rdid,
16031 .probe_timing = TIMING_ZERO,
16032 .block_erasers =
16033 {
16034 {
16035 .eraseblocks = { {256 * 1024, 64} },
16036 .block_erase = spi_block_erase_d8,
16037 }, {
16038 .eraseblocks = { { 16384 * 1024, 1} },
16039 .block_erase = spi_block_erase_60,
16040 }, {
16041 .eraseblocks = { { 16384 * 1024, 1} },
16042 .block_erase = spi_block_erase_c7,
16043 }
16044 },
16045 .printlock = spi_prettyprint_status_register_bp2_srwd,
16046 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
16047 .write = spi_chip_write_256, /* Multi I/O supported */
16048 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16049 .voltage = {2700, 3600},
16050 },
16051
16052 {
16053 .vendor = "Spansion",
16054 .name = "S25FL127S-64kB", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
16055 .bustype = BUS_SPI,
16056 .manufacture_id = SPANSION_ID,
16057 .model_id = SPANSION_S25FL128,
16058 .total_size = 16384,
16059 .page_size = 256,
16060 /* supports 4B addressing */
16061 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
16062 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16063 .tested = TEST_OK_PREW,
16064 /* FIXME: we should distinguish the configuration on probing time like we do for AT45DB chips */
16065 .probe = probe_spi_rdid,
16066 .probe_timing = TIMING_ZERO,
16067 .block_erasers =
16068 {
16069 {
16070 /* This chip supports erasing of 32 so-called "parameter sectors" with
16071 * opcode 0x20 which may be configured to be on top or bottom of the address
16072 * space. Trying to access an address outside these 4kB blocks does have no
16073 * effect on the memory contents, e.g.
16074 .eraseblocks = {
16075 {4 * 1024, 32},
16076 {64 * 1024, 254} // inaccessible
16077 },
16078 .block_erase = spi_block_erase_20,
16079 }, { */
16080 .eraseblocks = { { 64 * 1024, 256} },
16081 .block_erase = spi_block_erase_d8,
16082 }, {
16083 .eraseblocks = { { 16384 * 1024, 1} },
16084 .block_erase = spi_block_erase_60,
16085 }, {
16086 .eraseblocks = { { 16384 * 1024, 1} },
16087 .block_erase = spi_block_erase_c7,
16088 }
16089 },
16090 .printlock = spi_prettyprint_status_register_bp2_srwd,
16091 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
16092 .write = spi_chip_write_256, /* Multi I/O supported */
16093 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16094 .voltage = {2700, 3600},
16095 },
16096
16097 {
16098 .vendor = "Spansion",
16099 .name = "S25FL128P......0", /* uniform 64 kB sectors */
16100 .bustype = BUS_SPI,
16101 .manufacture_id = SPANSION_ID,
16102 .model_id = SPANSION_S25FL128,
16103 .total_size = 16384,
16104 .page_size = 256,
16105 .feature_bits = FEATURE_WRSR_WREN,
16106 .tested = TEST_OK_PREW,
16107 .probe = probe_spi_rdid,
16108 .probe_timing = TIMING_ZERO,
16109 .block_erasers =
16110 {
16111 {
16112 .eraseblocks = { {64 * 1024, 256} },
16113 .block_erase = spi_block_erase_20,
16114 }, {
16115 .eraseblocks = { {64 * 1024, 256} },
16116 .block_erase = spi_block_erase_d8,
16117 }, {
16118 .eraseblocks = { { 16384 * 1024, 1} },
16119 .block_erase = spi_block_erase_60,
16120 }, {
16121 .eraseblocks = { { 16384 * 1024, 1} },
16122 .block_erase = spi_block_erase_c7,
16123 }
16124 },
16125 .printlock = spi_prettyprint_status_register_bp3_srwd,
16126 .unlock = spi_disable_blockprotect_bp3_srwd,
16127 .write = spi_chip_write_256,
16128 .read = spi_chip_read, /* Fast read (0x0B) supported */
16129 .voltage = {2700, 3600},
16130 },
16131
16132 {
16133 .vendor = "Spansion",
16134 .name = "S25FL128P......1", /* uniform 256kB sectors */
16135 .bustype = BUS_SPI,
16136 .manufacture_id = SPANSION_ID,
16137 .model_id = SPANSION_S25FL128,
16138 .total_size = 16384,
16139 .page_size = 256,
16140 .feature_bits = FEATURE_WRSR_WREN,
16141 .tested = TEST_UNTESTED,
16142 .probe = probe_spi_rdid,
16143 .probe_timing = TIMING_ZERO,
16144 .block_erasers =
16145 {
16146 {
16147 .eraseblocks = { {256 * 1024, 64} },
16148 .block_erase = spi_block_erase_d8,
16149 }, {
16150 .eraseblocks = { { 16384 * 1024, 1} },
16151 .block_erase = spi_block_erase_c7,
16152 }
16153 },
16154 .printlock = spi_prettyprint_status_register_bp2_srwd,
16155 .unlock = spi_disable_blockprotect_bp2_srwd,
16156 .write = spi_chip_write_256,
16157 .read = spi_chip_read, /* Fast read (0x0B) supported */
16158 .voltage = {2700, 3600},
16159 },
16160
16161 {
16162 .vendor = "Spansion",
16163 .name = "S25FL128S......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
16164 .bustype = BUS_SPI,
16165 .manufacture_id = SPANSION_ID,
16166 .model_id = SPANSION_S25FL128,
16167 .total_size = 16384,
16168 .page_size = 256,
16169 /* supports 4B addressing */
16170 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
16171 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16172 .tested = TEST_OK_PREW,
16173 .probe = probe_spi_rdid,
16174 .probe_timing = TIMING_ZERO,
16175 .block_erasers =
16176 {
16177 {
16178 /* This chip supports erasing of the 32 so-called "parameter sectors" with
16179 * opcode 0x20. Trying to access an address outside these 4kB blocks does
16180 * have no effect on the memory contents, but sets a flag in the SR.
16181 .eraseblocks = {
16182 {4 * 1024, 32},
16183 {64 * 1024, 254} // inaccessible
16184 },
16185 .block_erase = spi_block_erase_20,
16186 }, { */
16187 .eraseblocks = { { 64 * 1024, 256} },
16188 .block_erase = spi_block_erase_d8,
16189 }, {
16190 .eraseblocks = { { 16384 * 1024, 1} },
16191 .block_erase = spi_block_erase_60,
16192 }, {
16193 .eraseblocks = { { 16384 * 1024, 1} },
16194 .block_erase = spi_block_erase_c7,
16195 }
16196 },
16197 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
16198 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
16199 .write = spi_chip_write_256, /* Multi I/O supported */
16200 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16201 .voltage = {2700, 3600},
16202 },
16203
16204 {
16205 .vendor = "Spansion",
16206 .name = "S25FL128S......1", /* uniform 256 kB sectors */
16207 .bustype = BUS_SPI,
16208 .manufacture_id = SPANSION_ID,
16209 .model_id = SPANSION_S25FL128,
16210 .total_size = 16384,
16211 .page_size = 512,
16212 /* supports 4B addressing */
16213 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
16214 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16215 .tested = TEST_UNTESTED,
16216 .probe = probe_spi_rdid,
16217 .probe_timing = TIMING_ZERO,
16218 .block_erasers =
16219 {
16220 {
16221 .eraseblocks = { {256 * 1024, 64} },
16222 .block_erase = spi_block_erase_d8,
16223 }, {
16224 .eraseblocks = { { 16384 * 1024, 1} },
16225 .block_erase = spi_block_erase_60,
16226 }, {
16227 .eraseblocks = { { 16384 * 1024, 1} },
16228 .block_erase = spi_block_erase_c7,
16229 }
16230 },
16231 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
16232 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
16233 .write = spi_chip_write_256, /* Multi I/O supported */
16234 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16235 .voltage = {2700, 3600},
16236 },
16237
16238 {
16239 .vendor = "Spansion",
16240 .name = "S25FL129P......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
16241 .bustype = BUS_SPI,
16242 .manufacture_id = SPANSION_ID,
16243 .model_id = SPANSION_S25FL128,
16244 .total_size = 16384,
16245 .page_size = 256,
16246 /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */
16247 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16248 .tested = TEST_OK_PREW,
16249 .probe = probe_spi_rdid,
16250 .probe_timing = TIMING_ZERO,
16251 .block_erasers =
16252 {
16253 {
16254 /* FIXME: This chip supports erasing of the 32 so-called "parameter sectors" with
16255 * opcode 0x20. Trying to access an address outside these 4kB blocks does have no
16256 * effect on the memory contents, but sets a flag in the SR.
16257 .eraseblocks = {
16258 {4 * 1024, 32},
16259 {64 * 1024, 254} // inaccessible
16260 },
16261 .block_erase = spi_block_erase_20,
16262 }, { */
16263 /* FIXME: Additionally it also supports erase opcode 40h for the respective 2*4 kB pairs
16264 .eraseblocks = {
16265 {8 * 1024, 16},
16266 {64 * 1024, 254} // inaccessible
16267 },
16268 .block_erase = spi_block_erase_40,
16269 }, { */
16270 .eraseblocks = { { 64 * 1024, 256} },
16271 .block_erase = spi_block_erase_d8,
16272 }, {
16273 .eraseblocks = { { 16384 * 1024, 1} },
16274 .block_erase = spi_block_erase_60,
16275 }, {
16276 .eraseblocks = { { 16384 * 1024, 1} },
16277 .block_erase = spi_block_erase_c7,
16278 }
16279 },
16280 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */
16281 .unlock = spi_disable_blockprotect_bp2_srwd,
16282 .write = spi_chip_write_256, /* Multi I/O supported */
16283 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16284 .voltage = {2700, 3600},
16285 },
16286
16287 {
16288 .vendor = "Spansion",
16289 .name = "S25FL129P......1", /* uniform 256 kB sectors */
16290 .bustype = BUS_SPI,
16291 .manufacture_id = SPANSION_ID,
16292 .model_id = SPANSION_S25FL128,
16293 .total_size = 16384,
16294 .page_size = 256,
16295 /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */
16296 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16297 .tested = TEST_UNTESTED,
16298 .probe = probe_spi_rdid,
16299 .probe_timing = TIMING_ZERO,
16300 .block_erasers =
16301 {
16302 {
16303 .eraseblocks = { {256 * 1024, 64} },
16304 .block_erase = spi_block_erase_d8,
16305 }, {
16306 .eraseblocks = { { 16384 * 1024, 1} },
16307 .block_erase = spi_block_erase_60,
16308 }, {
16309 .eraseblocks = { { 16384 * 1024, 1} },
16310 .block_erase = spi_block_erase_c7,
16311 }
16312 },
16313 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */
16314 .unlock = spi_disable_blockprotect_bp2_srwd,
16315 .write = spi_chip_write_256, /* Multi I/O supported */
16316 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16317 .voltage = {2700, 3600},
16318 },
16319
16320 {
16321 .vendor = "Spansion",
16322 .name = "S25FL132K",
16323 .bustype = BUS_SPI,
16324 .manufacture_id = SPANSION_ID,
16325 .model_id = SPANSION_S25FL132K,
16326 .total_size = 4096,
16327 .page_size = 256,
16328 /* OTP: 768B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
16329 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16330 .tested = TEST_UNTESTED,
16331 .probe = probe_spi_rdid,
16332 .probe_timing = TIMING_ZERO,
16333 .block_erasers =
16334 {
16335 {
16336 .eraseblocks = { {4 * 1024, 1024} },
16337 .block_erase = spi_block_erase_20,
16338 }, {
16339 .eraseblocks = { {64 * 1024, 64} },
16340 .block_erase = spi_block_erase_d8,
16341 }, {
16342 .eraseblocks = { { 4096 * 1024, 1} },
16343 .block_erase = spi_block_erase_60,
16344 }, {
16345 .eraseblocks = { { 4096 * 1024, 1} },
16346 .block_erase = spi_block_erase_c7,
16347 }
16348 },
16349 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
16350 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
16351 .write = spi_chip_write_256,
16352 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16353 .voltage = {2700, 3600},
16354 },
16355
16356 {
16357 .vendor = "Spansion",
16358 .name = "S25FL164K",
16359 .bustype = BUS_SPI,
16360 .manufacture_id = SPANSION_ID,
16361 .model_id = SPANSION_S25FL164K,
16362 .total_size = 8192,
16363 .page_size = 256,
16364 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
16365 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16366 .tested = TEST_OK_PREW,
16367 .probe = probe_spi_rdid,
16368 .probe_timing = TIMING_ZERO,
16369 .block_erasers =
16370 {
16371 {
16372 .eraseblocks = { {4 * 1024, 2048} },
16373 .block_erase = spi_block_erase_20,
16374 }, {
16375 .eraseblocks = { {64 * 1024, 128} },
16376 .block_erase = spi_block_erase_d8,
16377 }, {
16378 .eraseblocks = { { 8192 * 1024, 1} },
16379 .block_erase = spi_block_erase_60,
16380 }, {
16381 .eraseblocks = { { 8192 * 1024, 1} },
16382 .block_erase = spi_block_erase_c7,
16383 }
16384 },
16385 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
16386 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
16387 .write = spi_chip_write_256,
16388 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16389 .voltage = {2700, 3600},
16390 },
16391
16392 {
16393 .vendor = "Spansion",
16394 .name = "S25FL204K",
16395 .bustype = BUS_SPI,
16396 .manufacture_id = SPANSION_ID,
16397 .model_id = SPANSION_S25FL204,
16398 .total_size = 512,
16399 .page_size = 256,
16400 .feature_bits = FEATURE_WRSR_WREN,
16401 .tested = TEST_OK_PR,
16402 .probe = probe_spi_rdid,
16403 .probe_timing = TIMING_ZERO,
16404 .block_erasers =
16405 {
16406 {
16407 .eraseblocks = { {4 * 1024, 128} },
16408 .block_erase = spi_block_erase_20,
16409 }, {
16410 .eraseblocks = { {64 * 1024, 8} },
16411 .block_erase = spi_block_erase_d8,
16412 }, {
16413 .eraseblocks = { { 512 * 1024, 1} },
16414 .block_erase = spi_block_erase_60,
16415 }, {
16416 .eraseblocks = { { 512 * 1024, 1} },
16417 .block_erase = spi_block_erase_c7,
16418 }
16419 },
16420 .printlock = spi_prettyprint_status_register_bp3_srwd,
16421 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
16422 .write = spi_chip_write_256,
16423 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
16424 .voltage = {2700, 3600},
16425 },
16426
16427 {
16428 .vendor = "Spansion",
16429 .name = "S25FL208K",
16430 .bustype = BUS_SPI,
16431 .manufacture_id = SPANSION_ID,
16432 .model_id = SPANSION_S25FL208,
16433 .total_size = 1024,
16434 .page_size = 256,
16435 .feature_bits = FEATURE_WRSR_WREN,
16436 .tested = TEST_OK_PREW,
16437 .probe = probe_spi_rdid,
16438 .probe_timing = TIMING_ZERO,
16439 .block_erasers =
16440 {
16441 {
16442 .eraseblocks = { {4 * 1024, 256} },
16443 .block_erase = spi_block_erase_20,
16444 }, {
16445 .eraseblocks = { {64 * 1024, 16} },
16446 .block_erase = spi_block_erase_d8,
16447 }, {
16448 .eraseblocks = { { 1024 * 1024, 1} },
16449 .block_erase = spi_block_erase_60,
16450 }, {
16451 .eraseblocks = { { 1024 * 1024, 1} },
16452 .block_erase = spi_block_erase_c7,
16453 }
16454 },
16455 .printlock = spi_prettyprint_status_register_bp3_srwd,
16456 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
16457 .write = spi_chip_write_256,
16458 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
16459 .voltage = {2700, 3600},
16460 },
16461
16462 {
16463 .vendor = "Spansion",
16464 .name = "S25FL256S......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
16465 .bustype = BUS_SPI,
16466 .manufacture_id = SPANSION_ID,
16467 .model_id = SPANSION_S25FL256,
16468 .total_size = 32768,
16469 .page_size = 256,
16470 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
16471 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_EAR7,
16472 .tested = TEST_OK_PREW,
16473 .probe = probe_spi_rdid,
16474 .probe_timing = TIMING_ZERO,
16475 .block_erasers =
16476 {
16477 {
16478 /* This chip supports erasing of the 32 so-called "parameter sectors" with
16479 * opcode 0x20. Trying to access an address outside these 4kB blocks does
16480 * have no effect on the memory contents, but sets a flag in the SR.
16481 .eraseblocks = {
16482 {4 * 1024, 32},
16483 {64 * 1024, 254} // inaccessible
16484 },
16485 .block_erase = spi_block_erase_20,
16486 }, { */
16487 .eraseblocks = { { 64 * 1024, 512} },
16488 .block_erase = spi_block_erase_dc,
16489 }, {
16490 .eraseblocks = { { 64 * 1024, 512} },
16491 .block_erase = spi_block_erase_d8,
16492 }, {
16493 .eraseblocks = { { 32768 * 1024, 1} },
16494 .block_erase = spi_block_erase_60,
16495 }, {
16496 .eraseblocks = { { 32768 * 1024, 1} },
16497 .block_erase = spi_block_erase_c7,
16498 }
16499 },
16500 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
16501 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
16502 .write = spi_chip_write_256, /* Multi I/O supported */
16503 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16504 .voltage = {2700, 3600},
16505 .wrea_override = 0x17,
16506 },
16507
16508 {
Bernhard Urban-Forster05c629b2020-02-02 21:29:48 +010016509 .vendor = "Spansion",
16510 .name = "S25FL512S",
16511 .bustype = BUS_SPI,
16512 .manufacture_id = SPANSION_ID,
16513 .model_id = SPANSION_S25FL512,
16514 .total_size = 65536, /* 512 Mb (=> 64 MB)) */
16515 .page_size = 256,
16516 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
16517 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_NATIVE,
16518 .tested = TEST_OK_PREW,
16519 .probe = probe_spi_rdid,
16520 .probe_timing = TIMING_ZERO,
16521 .block_erasers =
16522 {
16523 {
16524 .eraseblocks = { { 256 * 1024, 256} },
16525 .block_erase = spi_block_erase_dc,
16526 }, {
16527 .eraseblocks = { { 65536 * 1024, 1} },
16528 .block_erase = spi_block_erase_60,
16529 }, {
16530 .eraseblocks = { { 65536 * 1024, 1} },
16531 .block_erase = spi_block_erase_c7,
16532 }
16533 },
16534 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
16535 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
16536 .write = spi_chip_write_256, /* Multi I/O supported, IGNORE for now */
16537 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16538 .voltage = {2700, 3600},
16539 },
16540
16541 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000016542 .vendor = "SyncMOS/MoselVitelic",
16543 .name = "{F,S,V}29C51001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016544 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016545 .manufacture_id = SYNCMOS_MVC_ID,
16546 .model_id = SM_MVC_29C51001B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016547 .total_size = 128,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016548 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000016549 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016550 .tested = TEST_UNTESTED,
16551 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000016552 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000016553 .block_erasers =
16554 {
16555 {
16556 .eraseblocks = { {512, 256} },
16557 .block_erase = erase_sector_jedec,
16558 }, {
16559 .eraseblocks = { {128 * 1024, 1} },
16560 .block_erase = erase_chip_block_jedec,
16561 },
16562 },
Sean Nelson35727f72010-01-28 23:55:12 +000016563 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016564 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016565 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000016566 },
16567
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016568 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000016569 .vendor = "SyncMOS/MoselVitelic",
16570 .name = "{F,S,V}29C51001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016571 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016572 .manufacture_id = SYNCMOS_MVC_ID,
16573 .model_id = SM_MVC_29C51001T,
16574 .total_size = 128,
16575 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000016576 .feature_bits = FEATURE_EITHER_RESET,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016577 .tested = TEST_UNTESTED,
16578 .probe = probe_jedec,
16579 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
16580 .block_erasers =
16581 {
16582 {
16583 .eraseblocks = { {512, 256} },
16584 .block_erase = erase_sector_jedec,
16585 }, {
16586 .eraseblocks = { {128 * 1024, 1} },
16587 .block_erase = erase_chip_block_jedec,
16588 },
16589 },
16590 .write = write_jedec_1,
16591 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016592 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000016593 },
16594
16595 {
16596 .vendor = "SyncMOS/MoselVitelic",
16597 .name = "{F,S,V}29C51002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016598 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016599 .manufacture_id = SYNCMOS_MVC_ID,
16600 .model_id = SM_MVC_29C51002B,
16601 .total_size = 256,
16602 .page_size = 512,
16603 .feature_bits = FEATURE_EITHER_RESET,
16604 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016605 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000016606 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000016607 .block_erasers =
16608 {
16609 {
16610 .eraseblocks = { {512, 512} },
16611 .block_erase = erase_sector_jedec,
16612 }, {
16613 .eraseblocks = { {256 * 1024, 1} },
16614 .block_erase = erase_chip_block_jedec,
16615 },
16616 },
Sean Nelson35727f72010-01-28 23:55:12 +000016617 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016618 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000016619 },
16620
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016621 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000016622 .vendor = "SyncMOS/MoselVitelic",
16623 .name = "{F,S,V}29C51002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016624 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016625 .manufacture_id = SYNCMOS_MVC_ID,
16626 .model_id = SM_MVC_29C51002T,
16627 .total_size = 256,
16628 .page_size = 512,
16629 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000016630 .tested = TEST_OK_PREW,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016631 .probe = probe_jedec,
16632 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
16633 .block_erasers =
16634 {
16635 {
16636 .eraseblocks = { {512, 512} },
16637 .block_erase = erase_sector_jedec,
16638 }, {
16639 .eraseblocks = { {256 * 1024, 1} },
16640 .block_erase = erase_chip_block_jedec,
16641 },
16642 },
16643 .write = write_jedec_1,
16644 .read = read_memmapped,
16645 },
16646
16647 {
16648 .vendor = "SyncMOS/MoselVitelic",
16649 .name = "{F,S,V}29C51004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016650 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016651 .manufacture_id = SYNCMOS_MVC_ID,
16652 .model_id = SM_MVC_29C51004B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016653 .total_size = 512,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016654 .page_size = 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000016655 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016656 .tested = TEST_UNTESTED,
16657 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000016658 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +000016659 .block_erasers =
16660 {
16661 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000016662 .eraseblocks = { {1024, 512} },
16663 .block_erase = erase_sector_jedec,
16664 }, {
16665 .eraseblocks = { {512 * 1024, 1} },
16666 .block_erase = erase_chip_block_jedec,
16667 },
16668 },
16669 .write = write_jedec_1,
16670 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016671 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000016672 },
16673
16674 {
16675 .vendor = "SyncMOS/MoselVitelic",
16676 .name = "{F,S,V}29C51004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016677 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016678 .manufacture_id = SYNCMOS_MVC_ID,
16679 .model_id = SM_MVC_29C51004T,
16680 .total_size = 512,
16681 .page_size = 1024,
16682 .feature_bits = FEATURE_EITHER_RESET,
16683 .tested = TEST_UNTESTED,
16684 .probe = probe_jedec,
16685 .probe_timing = TIMING_ZERO,
16686 .block_erasers =
16687 {
16688 {
16689 .eraseblocks = { {1024, 512} },
16690 .block_erase = erase_sector_jedec,
16691 }, {
16692 .eraseblocks = { {512 * 1024, 1} },
16693 .block_erase = erase_chip_block_jedec,
16694 },
16695 },
16696 .write = write_jedec_1,
16697 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016698 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000016699 },
16700
16701 {
16702 .vendor = "SyncMOS/MoselVitelic",
16703 .name = "{S,V}29C31004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016704 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016705 .manufacture_id = SYNCMOS_MVC_ID,
16706 .model_id = SM_MVC_29C31004B,
16707 .total_size = 512,
16708 .page_size = 1024,
16709 .feature_bits = FEATURE_EITHER_RESET,
16710 .tested = TEST_UNTESTED,
16711 .probe = probe_jedec,
16712 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
16713 .block_erasers =
16714 {
16715 {
16716 .eraseblocks = { {1024, 512} },
16717 .block_erase = erase_sector_jedec,
16718 }, {
16719 .eraseblocks = { {512 * 1024, 1} },
16720 .block_erase = erase_chip_block_jedec,
16721 },
16722 },
16723 .write = write_jedec_1,
16724 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016725 .voltage = {3000, 3600},
Mattias Mattsson4c066502010-07-29 20:01:13 +000016726 },
16727
16728 {
16729 .vendor = "SyncMOS/MoselVitelic",
16730 .name = "{S,V}29C31004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016731 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016732 .manufacture_id = SYNCMOS_MVC_ID,
16733 .model_id = SM_MVC_29C31004T,
16734 .total_size = 512,
16735 .page_size = 1024,
16736 .feature_bits = FEATURE_EITHER_RESET,
16737 .tested = TEST_UNTESTED,
16738 .probe = probe_jedec,
16739 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
16740 .block_erasers =
16741 {
16742 {
16743 .eraseblocks = { {1024, 512} },
Sean Nelson56358aa2010-01-19 16:08:51 +000016744 .block_erase = erase_sector_jedec,
16745 }, {
16746 .eraseblocks = { {512 * 1024, 1} },
16747 .block_erase = erase_chip_block_jedec,
16748 },
16749 },
Sean Nelson35727f72010-01-28 23:55:12 +000016750 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016751 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016752 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000016753 },
16754
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016755 {
Uwe Hermanna106d152009-05-27 23:17:40 +000016756 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016757 .name = "TMS29F002RB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016758 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016759 .manufacture_id = TI_OLD_ID,
16760 .model_id = TI_TMS29F002RB,
16761 .total_size = 256,
16762 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000016763 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016764 .tested = TEST_UNTESTED,
16765 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000016766 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000016767 .block_erasers =
16768 {
16769 {
16770 .eraseblocks = {
16771 {16 * 1024, 1},
16772 {8 * 1024, 2},
16773 {32 * 1024, 1},
16774 {64 * 1024, 3},
16775 },
16776 .block_erase = erase_sector_jedec,
16777 }, {
16778 .eraseblocks = { {256 * 1024, 1} },
16779 .block_erase = erase_chip_block_jedec,
16780 },
16781 },
Sean Nelson35727f72010-01-28 23:55:12 +000016782 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016783 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016784 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016785 },
16786
16787 {
Uwe Hermanna106d152009-05-27 23:17:40 +000016788 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016789 .name = "TMS29F002RT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016790 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016791 .manufacture_id = TI_OLD_ID,
16792 .model_id = TI_TMS29F002RT,
16793 .total_size = 256,
16794 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000016795 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016796 .tested = TEST_UNTESTED,
16797 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000016798 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000016799 .block_erasers =
16800 {
16801 {
16802 .eraseblocks = {
16803 {64 * 1024, 3},
16804 {32 * 1024, 1},
16805 {8 * 1024, 2},
16806 {16 * 1024, 1},
16807 },
16808 .block_erase = erase_sector_jedec,
16809 }, {
16810 .eraseblocks = { {256 * 1024, 1} },
16811 .block_erase = erase_chip_block_jedec,
16812 },
16813 },
Sean Nelson35727f72010-01-28 23:55:12 +000016814 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016815 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016816 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000016817 },
16818
16819 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016820 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100016821 .name = "W25P16",
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000016822 .bustype = BUS_SPI,
16823 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016824 .model_id = WINBOND_NEX_W25P16,
16825 .total_size = 2048,
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000016826 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016827 .feature_bits = FEATURE_WRSR_WREN,
16828 .tested = TEST_UNTESTED,
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000016829 .probe = probe_spi_rdid,
16830 .probe_timing = TIMING_ZERO,
16831 .block_erasers =
16832 {
16833 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016834 .eraseblocks = { {64 * 1024, 32} },
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000016835 .block_erase = spi_block_erase_d8,
16836 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016837 .eraseblocks = { {2048 * 1024, 1} },
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000016838 .block_erase = spi_block_erase_c7,
16839 }
16840 },
16841 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16842 .unlock = spi_disable_blockprotect,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016843 .write = spi_chip_write_256,
16844 .read = spi_chip_read, /* Fast read (0x0B) supported */
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000016845 .voltage = {2700, 3600},
16846 },
16847
16848 {
16849 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100016850 .name = "W25P32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016851 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000016852 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016853 .model_id = WINBOND_NEX_W25P32,
16854 .total_size = 4096,
Rudolf Marekce1c7982010-04-20 19:34:31 +000016855 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016856 .feature_bits = FEATURE_WRSR_WREN,
16857 .tested = TEST_UNTESTED,
Rudolf Marekce1c7982010-04-20 19:34:31 +000016858 .probe = probe_spi_rdid,
16859 .probe_timing = TIMING_ZERO,
16860 .block_erasers =
16861 {
16862 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016863 .eraseblocks = { {64 * 1024, 64} },
16864 .block_erase = spi_block_erase_d8,
Rudolf Marekce1c7982010-04-20 19:34:31 +000016865 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016866 .eraseblocks = { {4096 * 1024, 1} },
16867 .block_erase = spi_block_erase_c7,
16868 }
16869 },
16870 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16871 .unlock = spi_disable_blockprotect,
16872 .write = spi_chip_write_256,
16873 .read = spi_chip_read, /* Fast read (0x0B) supported */
16874 .voltage = {2700, 3600},
16875 },
16876
16877 {
16878 .vendor = "Winbond",
16879 .name = "W25P80",
16880 .bustype = BUS_SPI,
16881 .manufacture_id = WINBOND_NEX_ID,
16882 .model_id = WINBOND_NEX_W25P80,
16883 .total_size = 1024,
16884 .page_size = 256,
16885 .feature_bits = FEATURE_WRSR_WREN,
16886 .tested = TEST_UNTESTED,
16887 .probe = probe_spi_rdid,
16888 .probe_timing = TIMING_ZERO,
16889 .block_erasers =
16890 {
16891 {
Rudolf Marekce1c7982010-04-20 19:34:31 +000016892 .eraseblocks = { {64 * 1024, 16} },
16893 .block_erase = spi_block_erase_d8,
16894 }, {
16895 .eraseblocks = { {1024 * 1024, 1} },
Rudolf Marekce1c7982010-04-20 19:34:31 +000016896 .block_erase = spi_block_erase_c7,
16897 }
16898 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000016899 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000016900 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000016901 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016902 .read = spi_chip_read, /* Fast read (0x0B) supported */
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016903 .voltage = {2700, 3600},
David Hendricksc4acec92010-06-24 11:39:57 +000016904 },
16905
16906 {
16907 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016908 .name = "W25Q128.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016909 .bustype = BUS_SPI,
Antony Rheneus0fbba982011-05-26 14:28:51 +000016910 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016911 .model_id = WINBOND_NEX_W25Q128_V,
Antony Rheneus0fbba982011-05-26 14:28:51 +000016912 .total_size = 16384,
16913 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016914 /* supports SFDP */
16915 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Daniel Lenski65922a32012-02-15 23:40:23 +000016916 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +000016917 .tested = TEST_OK_PREW,
Antony Rheneus0fbba982011-05-26 14:28:51 +000016918 .probe = probe_spi_rdid,
16919 .probe_timing = TIMING_ZERO,
16920 .block_erasers =
16921 {
16922 {
16923 .eraseblocks = { {4 * 1024, 4096} },
16924 .block_erase = spi_block_erase_20,
16925 }, {
16926 .eraseblocks = { {32 * 1024, 512} },
16927 .block_erase = spi_block_erase_52,
16928 }, {
16929 .eraseblocks = { {64 * 1024, 256} },
16930 .block_erase = spi_block_erase_d8,
16931 }, {
16932 .eraseblocks = { {16 * 1024 * 1024, 1} },
16933 .block_erase = spi_block_erase_60,
16934 }, {
16935 .eraseblocks = { {16 * 1024 * 1024, 1} },
16936 .block_erase = spi_block_erase_c7,
16937 }
16938 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000016939 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Antony Rheneus0fbba982011-05-26 14:28:51 +000016940 .unlock = spi_disable_blockprotect,
16941 .write = spi_chip_write_256,
16942 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000016943 .voltage = {2700, 3600},
16944 },
16945
16946 {
16947 .vendor = "Winbond",
Patrick Rudolph34323492018-10-04 14:59:40 +020016948 .name = "W25Q128.V..M",
16949 .bustype = BUS_SPI,
16950 .manufacture_id = WINBOND_NEX_ID,
16951 .model_id = WINBOND_NEX_W25Q128_V_M,
16952 .total_size = 16384,
16953 .page_size = 256,
16954 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
16955 .tested = TEST_OK_PREW,
16956 .probe = probe_spi_rdid,
16957 .probe_timing = TIMING_ZERO,
16958 .block_erasers =
16959 {
16960 {
16961 .eraseblocks = { {4 * 1024, 4096} },
16962 .block_erase = spi_block_erase_20,
16963 }, {
16964 .eraseblocks = { {32 * 1024, 512} },
16965 .block_erase = spi_block_erase_52,
16966 }, {
16967 .eraseblocks = { {64 * 1024, 256} },
16968 .block_erase = spi_block_erase_d8,
16969 }, {
16970 .eraseblocks = { {16 * 1024 * 1024, 1} },
16971 .block_erase = spi_block_erase_60,
16972 }, {
16973 .eraseblocks = { {16 * 1024 * 1024, 1} },
16974 .block_erase = spi_block_erase_c7,
16975 }
16976 },
Alan Greena1fc01d2019-09-23 17:12:44 +100016977 .printlock = spi_prettyprint_status_register_plain,
Patrick Rudolph34323492018-10-04 14:59:40 +020016978 .unlock = spi_disable_blockprotect,
16979 .write = spi_chip_write_256,
16980 .read = spi_chip_read,
16981 .voltage = {2700, 3600},
16982 },
16983
16984 {
16985 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100016986 .name = "W25Q128.W",
16987 .bustype = BUS_SPI,
16988 .manufacture_id = WINBOND_NEX_ID,
16989 .model_id = WINBOND_NEX_W25Q128_W,
16990 .total_size = 16384,
16991 .page_size = 256,
16992 /* supports SFDP */
16993 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
16994 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
16995 .tested = TEST_OK_PREW,
16996 .probe = probe_spi_rdid,
16997 .probe_timing = TIMING_ZERO,
16998 .block_erasers =
16999 {
17000 {
17001 .eraseblocks = { {4 * 1024, 4096} },
17002 .block_erase = spi_block_erase_20,
17003 }, {
17004 .eraseblocks = { {32 * 1024, 512} },
17005 .block_erase = spi_block_erase_52,
17006 }, {
17007 .eraseblocks = { {64 * 1024, 256} },
17008 .block_erase = spi_block_erase_d8,
17009 }, {
17010 .eraseblocks = { {16 * 1024 * 1024, 1} },
17011 .block_erase = spi_block_erase_60,
17012 }, {
17013 .eraseblocks = { {16 * 1024 * 1024, 1} },
17014 .block_erase = spi_block_erase_c7,
17015 }
17016 },
17017 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17018 .unlock = spi_disable_blockprotect,
17019 .write = spi_chip_write_256,
17020 .read = spi_chip_read,
17021 .voltage = {1650, 1950},
17022 },
17023
17024 {
17025 .vendor = "Winbond",
Peichao Wang1a119492019-11-11 15:26:41 +080017026 .name = "W25Q128.JW.DTR",
17027 .bustype = BUS_SPI,
17028 .manufacture_id = WINBOND_NEX_ID,
17029 .model_id = WINBOND_NEX_W25Q128_DTR,
17030 .total_size = 16384,
17031 .page_size = 256,
17032 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
17033 .tested = TEST_OK_PREW,
17034 .probe = probe_spi_rdid,
17035 .probe_timing = TIMING_ZERO,
17036 .block_erasers =
17037 {
17038 {
17039 .eraseblocks = { {4 * 1024, 4096} },
17040 .block_erase = spi_block_erase_20,
17041 }, {
17042 .eraseblocks = { {32 * 1024, 512} },
17043 .block_erase = spi_block_erase_52,
17044 }, {
17045 .eraseblocks = { {64 * 1024, 256} },
17046 .block_erase = spi_block_erase_d8,
17047 }, {
17048 .eraseblocks = { {16 * 1024 * 1024, 1} },
17049 .block_erase = spi_block_erase_60,
17050 }, {
17051 .eraseblocks = { {16 * 1024 * 1024, 1} },
17052 .block_erase = spi_block_erase_c7,
17053 }
17054 },
17055 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17056 .unlock = spi_disable_blockprotect,
17057 .write = spi_chip_write_256,
17058 .read = spi_chip_read,
17059 .voltage = {1650, 1950},
17060 },
17061
17062 {
17063 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017064 .name = "W25Q16.V",
17065 .bustype = BUS_SPI,
17066 .manufacture_id = WINBOND_NEX_ID,
17067 .model_id = WINBOND_NEX_W25Q16_V,
17068 .total_size = 2048,
17069 .page_size = 256,
17070 /* supports SFDP */
17071 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17072 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17073 .tested = TEST_OK_PREW,
17074 .probe = probe_spi_rdid,
17075 .probe_timing = TIMING_ZERO,
17076 .block_erasers =
17077 {
17078 {
17079 .eraseblocks = { {4 * 1024, 512} },
17080 .block_erase = spi_block_erase_20,
17081 }, {
17082 .eraseblocks = { {32 * 1024, 64} },
17083 .block_erase = spi_block_erase_52,
17084 }, {
17085 .eraseblocks = { {64 * 1024, 32} },
17086 .block_erase = spi_block_erase_d8,
17087 }, {
17088 .eraseblocks = { {2 * 1024 * 1024, 1} },
17089 .block_erase = spi_block_erase_60,
17090 }, {
17091 .eraseblocks = { {2 * 1024 * 1024, 1} },
17092 .block_erase = spi_block_erase_c7,
17093 }
17094 },
17095 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17096 .unlock = spi_disable_blockprotect,
17097 .write = spi_chip_write_256,
17098 .read = spi_chip_read,
17099 .voltage = {2700, 3600},
17100 },
17101
17102 {
17103 .vendor = "Winbond",
17104 .name = "W25Q16.W",
17105 .bustype = BUS_SPI,
17106 .manufacture_id = WINBOND_NEX_ID,
17107 .model_id = WINBOND_NEX_W25Q16_W,
17108 .total_size = 2048,
17109 .page_size = 256,
17110 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17111 /* QPI enable 0x38, disable 0xFF */
17112 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
17113 .tested = TEST_UNTESTED,
17114 .probe = probe_spi_rdid,
17115 .probe_timing = TIMING_ZERO,
17116 .block_erasers =
17117 {
17118 {
17119 .eraseblocks = { {4 * 1024, 512} },
17120 .block_erase = spi_block_erase_20,
17121 }, {
17122 .eraseblocks = { {32 * 1024, 64} },
17123 .block_erase = spi_block_erase_52,
17124 }, {
17125 .eraseblocks = { {64 * 1024, 32} },
17126 .block_erase = spi_block_erase_d8,
17127 }, {
17128 .eraseblocks = { {2 * 1024 * 1024, 1} },
17129 .block_erase = spi_block_erase_60,
17130 }, {
17131 .eraseblocks = { {2 * 1024 * 1024, 1} },
17132 .block_erase = spi_block_erase_c7,
17133 }
17134 },
17135 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17136 .unlock = spi_disable_blockprotect,
17137 .write = spi_chip_write_256,
17138 .read = spi_chip_read,
17139 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
17140 },
17141
17142 {
17143 .vendor = "Winbond",
17144 .name = "W25Q20.W",
17145 .bustype = BUS_SPI,
17146 .manufacture_id = WINBOND_NEX_ID,
17147 .model_id = WINBOND_NEX_W25Q20_W,
17148 .total_size = 256,
17149 .page_size = 256,
17150 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17151 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17152 .tested = TEST_UNTESTED,
17153 .probe = probe_spi_rdid,
17154 .probe_timing = TIMING_ZERO,
17155 .block_erasers =
17156 {
17157 {
17158 .eraseblocks = { {4 * 1024, 64} },
17159 .block_erase = spi_block_erase_20,
17160 }, {
17161 .eraseblocks = { {32 * 1024, 8} },
17162 .block_erase = spi_block_erase_52,
17163 }, {
17164 .eraseblocks = { {64 * 1024, 4} },
17165 .block_erase = spi_block_erase_d8,
17166 }, {
17167 .eraseblocks = { {256 * 1024, 1} },
17168 .block_erase = spi_block_erase_60,
17169 }, {
17170 .eraseblocks = { {256 * 1024, 1} },
17171 .block_erase = spi_block_erase_c7,
17172 }
17173 },
17174 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17175 .unlock = spi_disable_blockprotect,
17176 .write = spi_chip_write_256,
17177 .read = spi_chip_read,
17178 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
17179 },
17180
17181 {
17182 .vendor = "Winbond",
Boris Baykovaa6c3742016-06-11 18:29:01 +020017183 .name = "W25Q256.V",
17184 .bustype = BUS_SPI,
17185 .manufacture_id = WINBOND_NEX_ID,
17186 .model_id = WINBOND_NEX_W25Q256_V,
17187 .total_size = 32768,
17188 .page_size = 256,
17189 /* supports SFDP */
17190 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17191 /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */
Nico Huberaac81422017-11-10 22:54:13 +010017192 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_ENTER_WREN
17193 | FEATURE_4BA_EXT_ADDR | FEATURE_4BA_READ | FEATURE_4BA_FAST_READ,
Angel Pons3130cbd2018-09-30 19:32:30 +020017194 .tested = TEST_OK_PREW,
Boris Baykovaa6c3742016-06-11 18:29:01 +020017195 .probe = probe_spi_rdid,
17196 .probe_timing = TIMING_ZERO,
17197 .block_erasers =
17198 {
17199 {
17200 .eraseblocks = { {4 * 1024, 8192} },
Nico Huber7a077222017-10-14 18:18:30 +020017201 .block_erase = spi_block_erase_20,
Boris Baykovaa6c3742016-06-11 18:29:01 +020017202 }, {
17203 .eraseblocks = { {32 * 1024, 1024} },
Nico Huber7a077222017-10-14 18:18:30 +020017204 .block_erase = spi_block_erase_52,
Boris Baykovaa6c3742016-06-11 18:29:01 +020017205 }, {
17206 .eraseblocks = { {64 * 1024, 512} },
Nico Huber7a077222017-10-14 18:18:30 +020017207 .block_erase = spi_block_erase_d8,
Boris Baykovaa6c3742016-06-11 18:29:01 +020017208 }, {
17209 .eraseblocks = { {32 * 1024 * 1024, 1} },
17210 .block_erase = spi_block_erase_60,
17211 }, {
17212 .eraseblocks = { {32 * 1024 * 1024, 1} },
17213 .block_erase = spi_block_erase_c7,
17214 }
17215 },
17216 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17217 .unlock = spi_disable_blockprotect,
17218 .write = spi_chip_write_256,
17219 .read = spi_chip_read,
17220 .voltage = {2700, 3600},
17221 },
17222
17223 {
17224 .vendor = "Winbond",
David Hendricks49876792018-10-27 20:19:42 +000017225 .name = "W25Q256JV_M",
17226 .bustype = BUS_SPI,
17227 .manufacture_id = WINBOND_NEX_ID,
17228 .model_id = WINBOND_NEX_W25Q256JV_M,
17229 .total_size = 32768,
17230 .page_size = 256,
17231 /* supports SFDP */
17232 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17233 /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */
17234 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
17235 .tested = TEST_OK_PREW,
17236 .probe = probe_spi_rdid,
17237 .probe_timing = TIMING_ZERO,
17238 .block_erasers =
17239 {
17240 {
17241 .eraseblocks = { {4 * 1024, 8192} },
17242 .block_erase = spi_block_erase_21,
17243 }, {
17244 .eraseblocks = { {4 * 1024, 8192} },
17245 .block_erase = spi_block_erase_20,
17246 }, {
17247 .eraseblocks = { {32 * 1024, 1024} },
17248 .block_erase = spi_block_erase_52,
17249 }, {
17250 .eraseblocks = { {64 * 1024, 512} },
17251 .block_erase = spi_block_erase_dc,
17252 }, {
17253 .eraseblocks = { {64 * 1024, 512} },
17254 .block_erase = spi_block_erase_d8,
17255 }, {
17256 .eraseblocks = { {32 * 1024 * 1024, 1} },
17257 .block_erase = spi_block_erase_60,
17258 }, {
17259 .eraseblocks = { {32 * 1024 * 1024, 1} },
17260 .block_erase = spi_block_erase_c7,
17261 }
17262 },
17263 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17264 .unlock = spi_disable_blockprotect,
17265 .write = spi_chip_write_256,
17266 .read = spi_chip_read,
17267 .voltage = {2700, 3600},
17268 },
17269
17270 {
17271 .vendor = "Winbond",
el-coderon01209852020-04-29 12:12:53 +020017272 .name = "W25Q256.W",
17273 .bustype = BUS_SPI,
17274 .manufacture_id = WINBOND_NEX_ID,
17275 .model_id = WINBOND_NEX_W25Q256_W,
17276 .total_size = 32768,
17277 .page_size = 256,
17278 /* supports SFDP */
17279 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17280 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_ENTER_WREN
17281 | FEATURE_4BA_EXT_ADDR | FEATURE_4BA_READ | FEATURE_4BA_FAST_READ,
17282 .tested = TEST_OK_PREW,
17283 .probe = probe_spi_rdid,
17284 .probe_timing = TIMING_ZERO,
17285 .block_erasers =
17286 {
17287 {
17288 .eraseblocks = { {4 * 1024, 8192} },
17289 .block_erase = spi_block_erase_20,
17290 }, {
17291 .eraseblocks = { {32 * 1024, 1024} },
17292 .block_erase = spi_block_erase_52,
17293 }, {
17294 .eraseblocks = { {64 * 1024, 512} },
17295 .block_erase = spi_block_erase_d8,
17296 }, {
17297 .eraseblocks = { {32 * 1024 * 1024, 1} },
17298 .block_erase = spi_block_erase_60,
17299 }, {
17300 .eraseblocks = { {32 * 1024 * 1024, 1} },
17301 .block_erase = spi_block_erase_c7,
17302 }
17303 },
17304 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17305 .unlock = spi_disable_blockprotect,
17306 .write = spi_chip_write_256,
17307 .read = spi_chip_read,
17308 .voltage = {1650, 1950},
17309 },
17310
17311 {
17312 .vendor = "Winbond",
David Hendricks31532602020-08-16 17:14:56 -070017313 .name = "W25Q256JW_DTR",
17314 .bustype = BUS_SPI,
17315 .manufacture_id = WINBOND_NEX_ID,
17316 .model_id = WINBOND_NEX_W25Q256_DTR,
17317 .total_size = 32768,
17318 .page_size = 256,
17319 /* supports SFDP */
17320 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17321 /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */
17322 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
17323 .tested = TEST_OK_PREW,
17324 .probe = probe_spi_rdid,
17325 .probe_timing = TIMING_ZERO,
17326 .block_erasers =
17327 {
17328 {
17329 .eraseblocks = { {4 * 1024, 8192} },
17330 .block_erase = spi_block_erase_21,
17331 }, {
17332 .eraseblocks = { {4 * 1024, 8192} },
17333 .block_erase = spi_block_erase_20,
17334 }, {
17335 .eraseblocks = { {32 * 1024, 1024} },
17336 .block_erase = spi_block_erase_52,
17337 }, {
17338 .eraseblocks = { {64 * 1024, 512} },
17339 .block_erase = spi_block_erase_dc,
17340 }, {
17341 .eraseblocks = { {64 * 1024, 512} },
17342 .block_erase = spi_block_erase_d8,
17343 }, {
17344 .eraseblocks = { {32 * 1024 * 1024, 1} },
17345 .block_erase = spi_block_erase_60,
17346 }, {
17347 .eraseblocks = { {32 * 1024 * 1024, 1} },
17348 .block_erase = spi_block_erase_c7,
17349 }
17350 },
17351 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17352 .unlock = spi_disable_blockprotect,
17353 .write = spi_chip_write_256,
17354 .read = spi_chip_read,
17355 .voltage = {1700, 1950},
17356 },
17357
17358 {
17359 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017360 .name = "W25Q32.V",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017361 .bustype = BUS_SPI,
17362 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017363 .model_id = WINBOND_NEX_W25Q32_V,
17364 .total_size = 4096,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017365 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017366 /* supports SFDP */
17367 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017368 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017369 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017370 .probe = probe_spi_rdid,
17371 .probe_timing = TIMING_ZERO,
17372 .block_erasers =
17373 {
17374 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017375 .eraseblocks = { {4 * 1024, 1024} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017376 .block_erase = spi_block_erase_20,
17377 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017378 .eraseblocks = { {32 * 1024, 128} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017379 .block_erase = spi_block_erase_52,
17380 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017381 .eraseblocks = { {64 * 1024, 64} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017382 .block_erase = spi_block_erase_d8,
17383 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017384 .eraseblocks = { {4 * 1024 * 1024, 1} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017385 .block_erase = spi_block_erase_60,
17386 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017387 .eraseblocks = { {4 * 1024 * 1024, 1} },
17388 .block_erase = spi_block_erase_c7,
17389 }
17390 },
17391 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17392 .unlock = spi_disable_blockprotect,
17393 .write = spi_chip_write_256,
17394 .read = spi_chip_read,
17395 .voltage = {2700, 3600},
17396 },
17397
17398 {
17399 .vendor = "Winbond",
17400 .name = "W25Q32.W",
17401 .bustype = BUS_SPI,
17402 .manufacture_id = WINBOND_NEX_ID,
17403 .model_id = WINBOND_NEX_W25Q32_W,
17404 .total_size = 4096,
17405 .page_size = 256,
17406 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17407 /* QPI enable 0x38, disable 0xFF */
17408 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
17409 .tested = TEST_OK_PREW,
17410 .probe = probe_spi_rdid,
17411 .probe_timing = TIMING_ZERO,
17412 .block_erasers =
17413 {
17414 {
17415 .eraseblocks = { {4 * 1024, 1024} },
17416 .block_erase = spi_block_erase_20,
17417 }, {
17418 .eraseblocks = { {32 * 1024, 128} },
17419 .block_erase = spi_block_erase_52,
17420 }, {
17421 .eraseblocks = { {64 * 1024, 64} },
17422 .block_erase = spi_block_erase_d8,
17423 }, {
17424 .eraseblocks = { {4 * 1024 * 1024, 1} },
17425 .block_erase = spi_block_erase_60,
17426 }, {
17427 .eraseblocks = { {4 * 1024 * 1024, 1} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017428 .block_erase = spi_block_erase_c7,
17429 }
17430 },
17431 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17432 .unlock = spi_disable_blockprotect,
17433 .write = spi_chip_write_256,
17434 .read = spi_chip_read,
17435 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
17436 },
17437
17438 {
17439 .vendor = "Winbond",
Nikolai Artemiev6ae79b12021-05-08 17:31:23 +100017440 .name = "W25Q32JW...M",
17441 .bustype = BUS_SPI,
17442 .manufacture_id = WINBOND_NEX_ID,
17443 .model_id = WINBOND_NEX_W25Q32JW_M,
17444 .total_size = 4096,
17445 .page_size = 256,
17446 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17447 .tested = TEST_OK_PREW,
17448 .probe = probe_spi_rdid,
17449 .probe_timing = TIMING_ZERO,
17450 .block_erasers =
17451 {
17452 {
17453 .eraseblocks = { {4 * 1024, 1024} },
17454 .block_erase = spi_block_erase_20,
17455 }, {
17456 .eraseblocks = { {32 * 1024, 128} },
17457 .block_erase = spi_block_erase_52,
17458 }, {
17459 .eraseblocks = { {64 * 1024, 64} },
17460 .block_erase = spi_block_erase_d8,
17461 }, {
17462 .eraseblocks = { {4 * 1024 * 1024, 1} },
17463 .block_erase = spi_block_erase_60,
17464 }, {
17465 .eraseblocks = { {4 * 1024 * 1024, 1} },
17466 .block_erase = spi_block_erase_c7,
17467 }
17468 },
17469 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
17470 .unlock = spi_disable_blockprotect_bp2_srwd,
17471 .write = spi_chip_write_256,
17472 .read = spi_chip_read,
17473 .voltage = {1700, 1950},
17474 },
17475
17476 {
17477 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017478 .name = "W25Q40.V",
17479 .bustype = BUS_SPI,
17480 .manufacture_id = WINBOND_NEX_ID,
17481 .model_id = WINBOND_NEX_W25Q40_V,
17482 .total_size = 512,
17483 .page_size = 256,
17484 /* supports SFDP */
17485 /* OTP: 756B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17486 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17487 .tested = TEST_OK_PREW,
17488 .probe = probe_spi_rdid,
17489 .probe_timing = TIMING_ZERO,
17490 .block_erasers =
17491 {
17492 {
17493 .eraseblocks = { {4 * 1024, 128} },
17494 .block_erase = spi_block_erase_20,
17495 }, {
17496 .eraseblocks = { {32 * 1024, 16} },
17497 .block_erase = spi_block_erase_52,
17498 }, {
17499 .eraseblocks = { {64 * 1024, 8} },
17500 .block_erase = spi_block_erase_d8,
17501 }, {
17502 .eraseblocks = { {512 * 1024, 1} },
17503 .block_erase = spi_block_erase_60,
17504 }, {
17505 .eraseblocks = { {512 * 1024, 1} },
17506 .block_erase = spi_block_erase_c7,
17507 }
17508 },
17509 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17510 .unlock = spi_disable_blockprotect,
17511 .write = spi_chip_write_256, /* Multi I/O supported */
17512 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
17513 .voltage = {2700, 3600},
17514 },
17515
17516 {
17517 .vendor = "Winbond",
Nico Huber25683572018-03-30 13:50:13 +020017518 .name = "W25Q40BW",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017519 .bustype = BUS_SPI,
17520 .manufacture_id = WINBOND_NEX_ID,
Nico Huber25683572018-03-30 13:50:13 +020017521 .model_id = WINBOND_NEX_W25Q40BW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017522 .total_size = 512,
17523 .page_size = 256,
17524 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17525 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Angel Pons3164a0c2018-09-30 20:26:06 +020017526 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017527 .probe = probe_spi_rdid,
17528 .probe_timing = TIMING_ZERO,
17529 .block_erasers =
17530 {
17531 {
17532 .eraseblocks = { {4 * 1024, 128} },
17533 .block_erase = spi_block_erase_20,
17534 }, {
17535 .eraseblocks = { {32 * 1024, 16} },
17536 .block_erase = spi_block_erase_52,
17537 }, {
17538 .eraseblocks = { {64 * 1024, 8} },
17539 .block_erase = spi_block_erase_d8,
17540 }, {
17541 .eraseblocks = { {512 * 1024, 1} },
17542 .block_erase = spi_block_erase_60,
17543 }, {
17544 .eraseblocks = { {512 * 1024, 1} },
17545 .block_erase = spi_block_erase_c7,
17546 }
17547 },
17548 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17549 .unlock = spi_disable_blockprotect,
17550 .write = spi_chip_write_256,
17551 .read = spi_chip_read,
17552 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
17553 },
17554
17555 {
17556 .vendor = "Winbond",
Nico Huber25683572018-03-30 13:50:13 +020017557 .name = "W25Q40EW",
17558 .bustype = BUS_SPI,
17559 .manufacture_id = WINBOND_NEX_ID,
17560 .model_id = WINBOND_NEX_W25Q40EW,
17561 .total_size = 512,
17562 .page_size = 256,
17563 /* OTP: 3*256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17564 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Alan Green07b8a172019-09-23 16:47:05 +100017565 .tested = TEST_OK_PREW,
Nico Huber25683572018-03-30 13:50:13 +020017566 .probe = probe_spi_rdid,
17567 .probe_timing = TIMING_ZERO,
17568 .block_erasers =
17569 {
17570 {
17571 .eraseblocks = { {4 * 1024, 128} },
17572 .block_erase = spi_block_erase_20,
17573 }, {
17574 .eraseblocks = { {32 * 1024, 16} },
17575 .block_erase = spi_block_erase_52,
17576 }, {
17577 .eraseblocks = { {64 * 1024, 8} },
17578 .block_erase = spi_block_erase_d8,
17579 }, {
17580 .eraseblocks = { {512 * 1024, 1} },
17581 .block_erase = spi_block_erase_60,
17582 }, {
17583 .eraseblocks = { {512 * 1024, 1} },
17584 .block_erase = spi_block_erase_c7,
17585 }
17586 },
17587 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17588 .unlock = spi_disable_blockprotect,
17589 .write = spi_chip_write_256,
17590 .read = spi_chip_read,
17591 .voltage = {1650, 1950}, /* Fast read (0x0B) and multi I/O supported */
17592 },
17593
Stanislav Sedovf5775442018-03-07 14:16:51 -080017594 {
17595 .vendor = "Winbond",
Joel Stanley55439612019-07-27 19:25:35 +093017596 .name = "W25Q512JV",
17597 .bustype = BUS_SPI,
17598 .manufacture_id = WINBOND_NEX_ID,
17599 .model_id = WINBOND_NEX_W25Q512JV,
17600 .total_size = 64 * 1024,
17601 .page_size = 256,
17602 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
17603 .tested = TEST_OK_PREW,
17604 .probe = probe_spi_rdid,
17605 .probe_timing = TIMING_ZERO,
17606 .block_erasers =
17607 {
17608 {
17609 .eraseblocks = { {4 * 1024, 16384} },
17610 .block_erase = spi_block_erase_21,
17611 }, {
17612 .eraseblocks = { {4 * 1024, 16384} },
17613 .block_erase = spi_block_erase_20,
17614 }, {
17615 .eraseblocks = { {32 * 1024, 2048} },
17616 .block_erase = spi_block_erase_52,
17617 }, {
17618 .eraseblocks = { {64 * 1024, 1024} },
17619 .block_erase = spi_block_erase_dc,
17620 }, {
17621 .eraseblocks = { {64 * 1024, 1024} },
17622 .block_erase = spi_block_erase_d8,
17623 }, {
17624 .eraseblocks = { {64 * 1024 * 1024, 1} },
17625 .block_erase = spi_block_erase_60,
17626 }, {
17627 .eraseblocks = { {64 * 1024 * 1024, 1} },
17628 .block_erase = spi_block_erase_c7,
17629 }
17630 },
17631 .printlock = spi_prettyprint_status_register_plain,
17632 .unlock = spi_disable_blockprotect,
17633 .write = spi_chip_write_256,
17634 .read = spi_chip_read,
17635 .voltage = {2700, 3600},
17636 },
17637
17638 {
17639 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017640 .name = "W25Q64.V",
Stanislav Sedovf5775442018-03-07 14:16:51 -080017641 .bustype = BUS_SPI,
17642 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017643 .model_id = WINBOND_NEX_W25Q64_V,
17644 .total_size = 8192,
Stanislav Sedovf5775442018-03-07 14:16:51 -080017645 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017646 /* supports SFDP */
17647 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Stanislav Sedovf5775442018-03-07 14:16:51 -080017648 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17649 .tested = TEST_OK_PREW,
17650 .probe = probe_spi_rdid,
17651 .probe_timing = TIMING_ZERO,
17652 .block_erasers =
17653 {
17654 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017655 .eraseblocks = { {4 * 1024, 2048} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080017656 .block_erase = spi_block_erase_20,
17657 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017658 .eraseblocks = { {32 * 1024, 256} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080017659 .block_erase = spi_block_erase_52,
17660 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017661 .eraseblocks = { {64 * 1024, 128} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080017662 .block_erase = spi_block_erase_d8,
17663 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017664 .eraseblocks = { {8 * 1024 * 1024, 1} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080017665 .block_erase = spi_block_erase_60,
17666 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017667 .eraseblocks = { {8 * 1024 * 1024, 1} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080017668 .block_erase = spi_block_erase_c7,
17669 }
17670 },
17671 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17672 .unlock = spi_disable_blockprotect,
17673 .write = spi_chip_write_256,
17674 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017675 .voltage = {2700, 3600},
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017676 },
17677
17678 {
17679 .vendor = "Winbond",
Simon Buhrow236a38c2021-11-05 11:48:30 +010017680 .name = "W25Q64JV",
17681 .bustype = BUS_SPI,
17682 .manufacture_id = WINBOND_NEX_ID,
17683 .model_id = WINBOND_NEX_W25Q64JV,
17684 .total_size = 8192,
17685 .page_size = 256,
17686 /* supports SFDP */
17687 /* QPI enable 0x38 */
17688 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
17689 .tested = TEST_OK_PREW,
17690 .probe = probe_spi_rdid,
17691 .probe_timing = TIMING_ZERO,
17692 .block_erasers =
17693 {
17694 {
17695 .eraseblocks = { {4 * 1024, 2048} },
17696 .block_erase = spi_block_erase_20,
17697 }, {
17698 .eraseblocks = { {32 * 1024, 256} },
17699 .block_erase = spi_block_erase_52,
17700 }, {
17701 .eraseblocks = { {64 * 1024, 128} },
17702 .block_erase = spi_block_erase_d8,
17703 }, {
17704 .eraseblocks = { {8 * 1024 * 1024, 1} },
17705 .block_erase = spi_block_erase_60,
17706 }, {
17707 .eraseblocks = { {8 * 1024 * 1024, 1} },
17708 .block_erase = spi_block_erase_c7,
17709 }
17710 },
17711 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
17712 .unlock = spi_disable_blockprotect_bp2_srwd,
17713 .write = spi_chip_write_256,
17714 .read = spi_chip_read,
17715 .voltage = {2700, 3600},
17716 },
17717
17718 {
17719 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017720 .name = "W25Q64.W",
17721 .bustype = BUS_SPI,
17722 .manufacture_id = WINBOND_NEX_ID,
17723 .model_id = WINBOND_NEX_W25Q64_W,
17724 .total_size = 8192,
17725 .page_size = 256,
17726 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17727 /* QPI enable 0x38, disable 0xFF */
17728 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner0554ca52013-07-25 22:54:25 +000017729 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017730 .probe = probe_spi_rdid,
17731 .probe_timing = TIMING_ZERO,
17732 .block_erasers =
17733 {
17734 {
17735 .eraseblocks = { {4 * 1024, 2048} },
17736 .block_erase = spi_block_erase_20,
17737 }, {
17738 .eraseblocks = { {32 * 1024, 256} },
17739 .block_erase = spi_block_erase_52,
17740 }, {
17741 .eraseblocks = { {64 * 1024, 128} },
17742 .block_erase = spi_block_erase_d8,
17743 }, {
17744 .eraseblocks = { {8 * 1024 * 1024, 1} },
17745 .block_erase = spi_block_erase_60,
17746 }, {
17747 .eraseblocks = { {8 * 1024 * 1024, 1} },
17748 .block_erase = spi_block_erase_c7,
17749 }
17750 },
17751 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17752 .unlock = spi_disable_blockprotect,
17753 .write = spi_chip_write_256,
17754 .read = spi_chip_read,
17755 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
Antony Rheneus0fbba982011-05-26 14:28:51 +000017756 },
17757
17758 {
17759 .vendor = "Winbond",
Nikolai Artemiev5fa05052021-05-14 15:26:47 +100017760 .name = "W25Q64JW...M",
Scott Chao1bbc5012020-04-08 22:10:50 +080017761 .bustype = BUS_SPI,
17762 .manufacture_id = WINBOND_NEX_ID,
Nikolai Artemiev5fa05052021-05-14 15:26:47 +100017763 .model_id = WINBOND_NEX_W25Q64JW_M,
Scott Chao1bbc5012020-04-08 22:10:50 +080017764 .total_size = 8192,
17765 .page_size = 256,
17766 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17767 /* QPI enable 0x38, disable 0xFF */
17768 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
17769 .tested = TEST_OK_PREW,
17770 .probe = probe_spi_rdid,
17771 .probe_timing = TIMING_ZERO,
17772 .block_erasers =
17773 {
17774 {
17775 .eraseblocks = { {4 * 1024, 2048} },
17776 .block_erase = spi_block_erase_20,
17777 }, {
17778 .eraseblocks = { {32 * 1024, 256} },
17779 .block_erase = spi_block_erase_52,
17780 }, {
17781 .eraseblocks = { {64 * 1024, 128} },
17782 .block_erase = spi_block_erase_d8,
17783 }, {
17784 .eraseblocks = { {8 * 1024 * 1024, 1} },
17785 .block_erase = spi_block_erase_60,
17786 }, {
17787 .eraseblocks = { {8 * 1024 * 1024, 1} },
17788 .block_erase = spi_block_erase_c7,
17789 }
17790 },
17791 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17792 .unlock = spi_disable_blockprotect,
17793 .write = spi_chip_write_256,
17794 .read = spi_chip_read,
17795 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
17796 },
17797
17798 {
17799 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017800 .name = "W25Q80.V",
Nico Huber70eed9f2017-04-24 22:19:27 +020017801 .bustype = BUS_SPI,
17802 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017803 .model_id = WINBOND_NEX_W25Q80_V,
17804 .total_size = 1024,
Nico Huber70eed9f2017-04-24 22:19:27 +020017805 .page_size = 256,
17806 /* supports SFDP */
17807 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Alan Green1f9cc7d2019-07-01 11:10:45 +100017808 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks48729d32017-12-08 14:44:07 -080017809 .tested = TEST_OK_PREW,
Nico Huber70eed9f2017-04-24 22:19:27 +020017810 .probe = probe_spi_rdid,
17811 .probe_timing = TIMING_ZERO,
17812 .block_erasers =
17813 {
17814 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017815 .eraseblocks = { {4 * 1024, 256} },
Nico Huber70eed9f2017-04-24 22:19:27 +020017816 .block_erase = spi_block_erase_20,
17817 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017818 .eraseblocks = { {32 * 1024, 32} },
Nico Huber70eed9f2017-04-24 22:19:27 +020017819 .block_erase = spi_block_erase_52,
17820 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017821 .eraseblocks = { {64 * 1024, 16} },
Nico Huber70eed9f2017-04-24 22:19:27 +020017822 .block_erase = spi_block_erase_d8,
17823 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017824 .eraseblocks = { {1024 * 1024, 1} },
Nico Huber70eed9f2017-04-24 22:19:27 +020017825 .block_erase = spi_block_erase_60,
17826 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017827 .eraseblocks = { {1024 * 1024, 1} },
Nico Huber70eed9f2017-04-24 22:19:27 +020017828 .block_erase = spi_block_erase_c7,
17829 }
17830 },
17831 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17832 .unlock = spi_disable_blockprotect,
17833 .write = spi_chip_write_256,
17834 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017835 .voltage = {2700, 3600},
17836 },
17837
17838 {
17839 .vendor = "Winbond",
17840 .name = "W25Q80BW",
17841 .bustype = BUS_SPI,
17842 .manufacture_id = WINBOND_NEX_ID,
17843 .model_id = WINBOND_NEX_W25Q80BW,
17844 .total_size = 1024,
17845 .page_size = 256,
17846 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17847 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17848 .tested = TEST_OK_PREW,
17849 .probe = probe_spi_rdid,
17850 .probe_timing = TIMING_ZERO,
17851 .block_erasers =
17852 {
17853 {
17854 .eraseblocks = { {4 * 1024, 256} },
17855 .block_erase = spi_block_erase_20,
17856 }, {
17857 .eraseblocks = { {32 * 1024, 32} },
17858 .block_erase = spi_block_erase_52,
17859 }, {
17860 .eraseblocks = { {64 * 1024, 16} },
17861 .block_erase = spi_block_erase_d8,
17862 }, {
17863 .eraseblocks = { {1 * 1024 * 1024, 1} },
17864 .block_erase = spi_block_erase_60,
17865 }, {
17866 .eraseblocks = { {1 * 1024 * 1024, 1} },
17867 .block_erase = spi_block_erase_c7,
17868 }
17869 },
17870 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17871 .unlock = spi_disable_blockprotect,
17872 .write = spi_chip_write_256,
17873 .read = spi_chip_read,
17874 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
17875 },
17876
17877 {
17878 .vendor = "Winbond",
17879 .name = "W25Q80EW",
17880 .bustype = BUS_SPI,
17881 .manufacture_id = WINBOND_NEX_ID,
17882 .model_id = WINBOND_NEX_W25Q80EW,
17883 .total_size = 1024,
17884 .page_size = 256,
17885 /* OTP: 3*256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17886 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17887 .tested = TEST_OK_PREW,
17888 .probe = probe_spi_rdid,
17889 .probe_timing = TIMING_ZERO,
17890 .block_erasers =
17891 {
17892 {
17893 .eraseblocks = { {4 * 1024, 256} },
17894 .block_erase = spi_block_erase_20,
17895 }, {
17896 .eraseblocks = { {32 * 1024, 32} },
17897 .block_erase = spi_block_erase_52,
17898 }, {
17899 .eraseblocks = { {64 * 1024, 16} },
17900 .block_erase = spi_block_erase_d8,
17901 }, {
17902 .eraseblocks = { {1 * 1024 * 1024, 1} },
17903 .block_erase = spi_block_erase_60,
17904 }, {
17905 .eraseblocks = { {1 * 1024 * 1024, 1} },
17906 .block_erase = spi_block_erase_c7,
17907 }
17908 },
17909 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17910 .unlock = spi_disable_blockprotect,
17911 .write = spi_chip_write_256,
17912 .read = spi_chip_read,
17913 .voltage = {1650, 1950}, /* Fast read (0x0B) and multi I/O supported */
Nico Huber70eed9f2017-04-24 22:19:27 +020017914 },
17915
17916 {
17917 .vendor = "Winbond",
Jacob Appelbaumebbdc022019-09-02 09:10:43 -040017918 .name = "W25X05",
17919 .bustype = BUS_SPI,
17920 .manufacture_id = WINBOND_NEX_ID,
17921 .model_id = WINBOND_NEX_W25X05,
17922 .total_size = 64,
17923 .page_size = 256,
17924 .feature_bits = FEATURE_WRSR_WREN,
17925 .tested = TEST_OK_PREW,
17926 .probe = probe_spi_rdid,
17927 .probe_timing = TIMING_ZERO,
17928 .block_erasers =
17929 {
17930 {
17931 .eraseblocks = { {4 * 1024, 16} },
17932 .block_erase = spi_block_erase_20,
17933 }, {
17934 .eraseblocks = { {32 * 1024, 2} },
17935 .block_erase = spi_block_erase_52,
17936 }, {
17937 .eraseblocks = { {64 * 1024, 1} },
17938 .block_erase = spi_block_erase_d8,
17939 }
17940 },
17941 .printlock = spi_prettyprint_status_register_plain,
17942 .unlock = spi_disable_blockprotect,
17943 .write = spi_chip_write_256,
17944 .read = spi_chip_read,
17945 .voltage = {2300, 3600},
17946 },
17947
17948 {
17949 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000017950 .name = "W25X10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017951 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017952 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017953 .model_id = WINBOND_NEX_W25X10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017954 .total_size = 128,
17955 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000017956 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +000017957 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017958 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000017959 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017960 .block_erasers =
17961 {
17962 {
17963 .eraseblocks = { {4 * 1024, 32} },
17964 .block_erase = spi_block_erase_20,
17965 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017966 .eraseblocks = { {64 * 1024, 2} },
17967 .block_erase = spi_block_erase_d8,
17968 }, {
17969 .eraseblocks = { {128 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017970 .block_erase = spi_block_erase_c7,
17971 }
17972 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000017973 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000017974 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000017975 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017976 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017977 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000017978 },
17979
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017980 {
17981 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000017982 .name = "W25X16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017983 .bustype = BUS_SPI,
Hector Martina721ae22009-07-11 19:39:11 +000017984 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000017985 .model_id = WINBOND_NEX_W25X16,
Hector Martina721ae22009-07-11 19:39:11 +000017986 .total_size = 2048,
17987 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000017988 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +000017989 .tested = TEST_OK_PREW,
Hector Martina721ae22009-07-11 19:39:11 +000017990 .probe = probe_spi_rdid,
17991 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000017992 .block_erasers =
17993 {
17994 {
17995 .eraseblocks = { {4 * 1024, 512} },
17996 .block_erase = spi_block_erase_20,
17997 }, {
17998 .eraseblocks = { {32 * 1024, 64} },
17999 .block_erase = spi_block_erase_52,
18000 }, {
18001 .eraseblocks = { {64 * 1024, 32} },
18002 .block_erase = spi_block_erase_d8,
18003 }, {
18004 .eraseblocks = { {2 * 1024 * 1024, 1} },
18005 .block_erase = spi_block_erase_60,
18006 }, {
18007 .eraseblocks = { {2 * 1024 * 1024, 1} },
18008 .block_erase = spi_block_erase_c7,
18009 }
18010 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000018011 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000018012 .unlock = spi_disable_blockprotect,
Hector Martina721ae22009-07-11 19:39:11 +000018013 .write = spi_chip_write_256,
18014 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018015 .voltage = {2700, 3600},
Hector Martina721ae22009-07-11 19:39:11 +000018016 },
18017
18018 {
18019 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018020 .name = "W25X20",
18021 .bustype = BUS_SPI,
18022 .manufacture_id = WINBOND_NEX_ID,
18023 .model_id = WINBOND_NEX_W25X20,
18024 .total_size = 256,
18025 .page_size = 256,
18026 .feature_bits = FEATURE_WRSR_WREN,
18027 .tested = TEST_OK_PREW,
18028 .probe = probe_spi_rdid,
18029 .probe_timing = TIMING_ZERO,
18030 .block_erasers =
18031 {
18032 {
18033 .eraseblocks = { {4 * 1024, 64} },
18034 .block_erase = spi_block_erase_20,
18035 }, {
18036 .eraseblocks = { {64 * 1024, 4} },
18037 .block_erase = spi_block_erase_d8,
18038 }, {
18039 .eraseblocks = { {256 * 1024, 1} },
18040 .block_erase = spi_block_erase_c7,
18041 }
18042 },
18043 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18044 .unlock = spi_disable_blockprotect,
18045 .write = spi_chip_write_256,
18046 .read = spi_chip_read,
18047 .voltage = {2700, 3600},
18048 },
18049
18050 {
18051 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000018052 .name = "W25X32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018053 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000018054 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018055 .model_id = WINBOND_NEX_W25X32,
Zheng Bao1db2b752009-11-26 11:05:01 +000018056 .total_size = 4096,
18057 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000018058 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000018059 .tested = TEST_OK_PREW,
Zheng Bao1db2b752009-11-26 11:05:01 +000018060 .probe = probe_spi_rdid,
18061 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018062 .block_erasers =
18063 {
18064 {
18065 .eraseblocks = { {4 * 1024, 1024} },
18066 .block_erase = spi_block_erase_20,
18067 }, {
18068 .eraseblocks = { {32 * 1024, 128} },
18069 .block_erase = spi_block_erase_52,
18070 }, {
18071 .eraseblocks = { {64 * 1024, 64} },
18072 .block_erase = spi_block_erase_d8,
18073 }, {
18074 .eraseblocks = { {4 * 1024 * 1024, 1} },
18075 .block_erase = spi_block_erase_60,
18076 }, {
18077 .eraseblocks = { {4 * 1024 * 1024, 1} },
18078 .block_erase = spi_block_erase_c7,
18079 }
18080 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000018081 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000018082 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000018083 .write = spi_chip_write_256,
18084 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018085 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000018086 },
18087
18088 {
18089 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018090 .name = "W25X40",
18091 .bustype = BUS_SPI,
18092 .manufacture_id = WINBOND_NEX_ID,
18093 .model_id = WINBOND_NEX_W25X40,
18094 .total_size = 512,
18095 .page_size = 256,
18096 .feature_bits = FEATURE_WRSR_WREN,
18097 .tested = TEST_OK_PREW,
18098 .probe = probe_spi_rdid,
18099 .probe_timing = TIMING_ZERO,
18100 .block_erasers =
18101 {
18102 {
18103 .eraseblocks = { {4 * 1024, 128} },
18104 .block_erase = spi_block_erase_20,
18105 }, {
18106 .eraseblocks = { {64 * 1024, 8} },
18107 .block_erase = spi_block_erase_d8,
18108 }, {
18109 .eraseblocks = { {512 * 1024, 1} },
18110 .block_erase = spi_block_erase_c7,
18111 }
18112 },
18113 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18114 .unlock = spi_disable_blockprotect,
18115 .write = spi_chip_write_256,
18116 .read = spi_chip_read,
18117 .voltage = {2700, 3600},
18118 },
18119
18120 {
18121 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000018122 .name = "W25X64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018123 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000018124 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018125 .model_id = WINBOND_NEX_W25X64,
Zheng Bao1db2b752009-11-26 11:05:01 +000018126 .total_size = 8192,
18127 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000018128 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000018129 .tested = TEST_OK_PREW,
Zheng Bao1db2b752009-11-26 11:05:01 +000018130 .probe = probe_spi_rdid,
18131 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018132 .block_erasers =
18133 {
18134 {
18135 .eraseblocks = { {4 * 1024, 2048} },
18136 .block_erase = spi_block_erase_20,
18137 }, {
18138 .eraseblocks = { {32 * 1024, 256} },
18139 .block_erase = spi_block_erase_52,
18140 }, {
18141 .eraseblocks = { {64 * 1024, 128} },
18142 .block_erase = spi_block_erase_d8,
18143 }, {
18144 .eraseblocks = { {8 * 1024 * 1024, 1} },
18145 .block_erase = spi_block_erase_60,
18146 }, {
18147 .eraseblocks = { {8 * 1024 * 1024, 1} },
18148 .block_erase = spi_block_erase_c7,
18149 }
18150 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000018151 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000018152 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000018153 .write = spi_chip_write_256,
18154 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018155 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000018156 },
18157
18158 {
Alan Greenfa3fcd32019-06-27 15:41:50 +100018159 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018160 .name = "W25X80",
Alan Greenfa3fcd32019-06-27 15:41:50 +100018161 .bustype = BUS_SPI,
18162 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018163 .model_id = WINBOND_NEX_W25X80,
Alan Greenfa3fcd32019-06-27 15:41:50 +100018164 .total_size = 1024,
18165 .page_size = 256,
18166 .feature_bits = FEATURE_WRSR_WREN,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018167 .tested = TEST_OK_PREW,
Alan Greenfa3fcd32019-06-27 15:41:50 +100018168 .probe = probe_spi_rdid,
18169 .probe_timing = TIMING_ZERO,
18170 .block_erasers =
David Hendricksc9ee0ed2018-02-11 17:40:53 -080018171 {
18172 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100018173 .eraseblocks = { {4 * 1024, 256} },
18174 .block_erase = spi_block_erase_20,
18175 }, {
David Hendricksc9ee0ed2018-02-11 17:40:53 -080018176 .eraseblocks = { {64 * 1024, 16} },
18177 .block_erase = spi_block_erase_d8,
18178 }, {
18179 .eraseblocks = { {1024 * 1024, 1} },
18180 .block_erase = spi_block_erase_c7,
18181 }
18182 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100018183 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18184 .unlock = spi_disable_blockprotect,
18185 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018186 .read = spi_chip_read,
Alan Greenfa3fcd32019-06-27 15:41:50 +100018187 .voltage = {2700, 3600},
David Hendricksc9ee0ed2018-02-11 17:40:53 -080018188 },
18189
Alan Greenf29ea362019-06-27 17:14:02 +100018190 /* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */
18191 {
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000018192 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000018193 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018194 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018195 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018196 .model_id = WINBOND_W29C010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018197 .total_size = 128,
18198 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000018199 .feature_bits = FEATURE_LONG_RESET,
David Hendricks567b7b82011-05-18 01:31:03 +000018200 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018201 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000018202 .probe_timing = 10, /* used datasheet for the W29C011A */
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018203 .block_erasers =
18204 {
18205 {
18206 .eraseblocks = { {128 * 1024, 1} },
18207 .block_erase = erase_chip_block_jedec,
18208 }
18209 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018210 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018211 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000018212 },
18213
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018214 {
18215 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018216 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old",
18217 .bustype = BUS_PARALLEL,
18218 .manufacture_id = WINBOND_ID,
18219 .model_id = WINBOND_W29C010,
18220 .total_size = 128,
18221 .page_size = 128,
18222 .feature_bits = FEATURE_LONG_RESET,
18223 .tested = TEST_OK_PREW,
18224 .probe = probe_w29ee011,
18225 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */
18226 .block_erasers =
18227 {
18228 {
18229 .eraseblocks = { {128 * 1024, 1} },
18230 .block_erase = erase_chip_block_jedec,
18231 }
18232 },
18233 .write = write_jedec,
18234 .read = read_memmapped,
18235 },
18236
18237 {
18238 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000018239 .name = "W29C020(C)/W29C022",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018240 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018241 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018242 .model_id = WINBOND_W29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018243 .total_size = 256,
18244 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000018245 .feature_bits = FEATURE_LONG_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000018246 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018247 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000018248 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018249 .block_erasers =
18250 {
18251 {
18252 .eraseblocks = { {256 * 1024, 1} },
18253 .block_erase = erase_chip_block_jedec,
18254 }
18255 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018256 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018257 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018258 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000018259 },
18260
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018261 {
18262 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000018263 .name = "W29C040/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018264 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018265 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018266 .model_id = WINBOND_W29C040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018267 .total_size = 512,
18268 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000018269 .feature_bits = FEATURE_LONG_RESET,
18270 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018271 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000018272 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018273 .block_erasers =
18274 {
18275 {
18276 .eraseblocks = { {512 * 1024, 1} },
18277 .block_erase = erase_chip_block_jedec,
18278 }
18279 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018280 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018281 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018282 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000018283 },
18284
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018285 {
18286 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018287 .name = "W29C512A/W29EE512",
18288 .bustype = BUS_PARALLEL,
18289 .manufacture_id = WINBOND_ID,
18290 .model_id = WINBOND_W29C512A,
18291 .total_size = 64,
18292 .page_size = 128,
18293 .feature_bits = FEATURE_LONG_RESET,
18294 .tested = TEST_OK_PREW,
18295 .probe = probe_jedec,
18296 .probe_timing = 10,
18297 .block_erasers =
18298 {
18299 {
18300 .eraseblocks = { {64 * 1024, 1} },
18301 .block_erase = erase_chip_block_jedec,
18302 }
18303 },
18304 .write = write_jedec,
18305 .read = read_memmapped,
18306 .voltage = {4500, 5500},
18307 },
18308
18309 {
18310 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000018311 .name = "W29GL032CB",
18312 .bustype = BUS_PARALLEL,
18313 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
18314 .model_id = WINBOND_W29GL032CB,
18315 .total_size = 4096,
18316 .page_size = 128 * 1024, /* actual page size is 16 */
18317 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
18318 .tested = TEST_UNTESTED,
18319 .probe = probe_jedec_29gl,
18320 .probe_timing = TIMING_ZERO,
18321 .block_erasers =
18322 {
18323 {
18324 .eraseblocks = {
18325 {8 * 1024, 8},
18326 {64 * 1024, 63},
18327 },
18328 .block_erase = erase_sector_jedec,
18329 }, {
18330 .eraseblocks = { {4 * 1024 * 1024, 1} },
18331 .block_erase = erase_chip_block_jedec,
18332 },
18333 },
18334 .write = write_jedec_1,
18335 .read = read_memmapped,
18336 .voltage = {2700, 3600},
18337 },
18338
18339 {
18340 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018341 .name = "W29GL032CH/L",
18342 .bustype = BUS_PARALLEL,
18343 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
18344 .model_id = WINBOND_W29GL032CHL,
18345 .total_size = 4096,
18346 .page_size = 128 * 1024, /* actual page size is 16 */
18347 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
18348 .tested = TEST_UNTESTED,
18349 .probe = probe_jedec_29gl,
18350 .probe_timing = TIMING_ZERO,
18351 .block_erasers =
18352 {
18353 {
18354 .eraseblocks = { {64 * 1024, 64} },
18355 .block_erase = erase_sector_jedec,
18356 }, {
18357 .eraseblocks = { {4 * 1024 * 1024, 1} },
18358 .block_erase = erase_chip_block_jedec,
18359 },
18360 },
18361 .write = write_jedec_1,
18362 .read = read_memmapped,
18363 .voltage = {2700, 3600},
18364 },
18365
18366 {
18367 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000018368 .name = "W29GL032CT",
18369 .bustype = BUS_PARALLEL,
18370 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
18371 .model_id = WINBOND_W29GL032CT,
18372 .total_size = 4096,
18373 .page_size = 128 * 1024, /* actual page size is 16 */
18374 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
18375 .tested = TEST_UNTESTED,
18376 .probe = probe_jedec_29gl,
18377 .probe_timing = TIMING_ZERO,
18378 .block_erasers =
18379 {
18380 {
18381 .eraseblocks = {
18382 {64 * 1024, 63},
18383 {8 * 1024, 8},
18384 },
18385 .block_erase = erase_sector_jedec,
18386 }, {
18387 .eraseblocks = { {4 * 1024 * 1024, 1} },
18388 .block_erase = erase_chip_block_jedec,
18389 },
18390 },
18391 .write = write_jedec_1,
18392 .read = read_memmapped,
18393 .voltage = {2700, 3600},
18394 },
18395
18396 {
18397 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000018398 .name = "W29GL064CB",
18399 .bustype = BUS_PARALLEL,
18400 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
18401 .model_id = WINBOND_W29GL064CB,
18402 .total_size = 8192,
18403 .page_size = 128 * 1024, /* actual page size is 16 */
18404 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
18405 .tested = TEST_UNTESTED,
18406 .probe = probe_jedec_29gl,
18407 .probe_timing = TIMING_ZERO,
18408 .block_erasers =
18409 {
18410 {
18411 .eraseblocks = {
18412 {8 * 1024, 8},
18413 {64 * 1024, 127},
18414 },
18415 .block_erase = erase_sector_jedec,
18416 }, {
18417 .eraseblocks = { {8 * 1024 * 1024, 1} },
18418 .block_erase = erase_chip_block_jedec,
18419 },
18420 },
18421 .write = write_jedec_1,
18422 .read = read_memmapped,
18423 .voltage = {2700, 3600},
18424 },
18425
18426 {
18427 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018428 .name = "W29GL064CH/L",
18429 .bustype = BUS_PARALLEL,
18430 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
18431 .model_id = WINBOND_W29GL064CHL,
18432 .total_size = 8192,
18433 .page_size = 128 * 1024, /* actual page size is 16 */
18434 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
18435 .tested = TEST_UNTESTED,
18436 .probe = probe_jedec_29gl,
18437 .probe_timing = TIMING_ZERO,
18438 .block_erasers =
18439 {
18440 {
18441 .eraseblocks = { {64 * 1024, 128} },
18442 .block_erase = erase_sector_jedec,
18443 }, {
18444 .eraseblocks = { {8 * 1024 * 1024, 1} },
18445 .block_erase = erase_chip_block_jedec,
18446 },
18447 },
18448 .write = write_jedec_1,
18449 .read = read_memmapped,
18450 .voltage = {2700, 3600},
18451 },
18452
18453 {
18454 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000018455 .name = "W29GL064CT",
18456 .bustype = BUS_PARALLEL,
18457 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
18458 .model_id = WINBOND_W29GL064CT,
18459 .total_size = 8192,
18460 .page_size = 128 * 1024, /* actual page size is 16 */
18461 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
18462 .tested = TEST_UNTESTED,
18463 .probe = probe_jedec_29gl,
18464 .probe_timing = TIMING_ZERO,
18465 .block_erasers =
18466 {
18467 {
18468 .eraseblocks = {
18469 {64 * 1024, 127},
18470 {8 * 1024, 8},
18471 },
18472 .block_erase = erase_sector_jedec,
18473 }, {
18474 .eraseblocks = { {8 * 1024 * 1024, 1} },
18475 .block_erase = erase_chip_block_jedec,
18476 },
18477 },
18478 .write = write_jedec_1,
18479 .read = read_memmapped,
18480 .voltage = {2700, 3600},
18481 },
18482
18483 {
18484 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000018485 .name = "W29GL128C",
18486 .bustype = BUS_PARALLEL,
18487 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
18488 .model_id = WINBOND_W29GL128CHL,
18489 .total_size = 16384,
18490 .page_size = 128 * 1024, /* actual page size is 16 */
18491 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
18492 .tested = TEST_UNTESTED,
18493 .probe = probe_jedec_29gl,
18494 .probe_timing = TIMING_ZERO,
18495 .block_erasers =
18496 {
18497 {
18498 .eraseblocks = { {128 * 1024, 128} },
18499 .block_erase = erase_sector_jedec,
18500 }, {
18501 .eraseblocks = { {16 * 1024 * 1024, 1} },
18502 .block_erase = erase_chip_block_jedec,
18503 },
18504 },
18505 .write = write_jedec_1,
18506 .read = read_memmapped,
18507 .voltage = {2700, 3600},
18508 },
18509
18510 {
18511 .vendor = "Winbond",
Kyösti Mälkkic31243e2012-10-28 01:50:08 +000018512 .name = "W39F010",
18513 .bustype = BUS_PARALLEL,
18514 .manufacture_id = WINBOND_ID,
18515 .model_id = WINBOND_W39F010,
18516 .total_size = 128,
18517 .page_size = 4 * 1024,
18518 .feature_bits = FEATURE_EITHER_RESET,
18519 .tested = TEST_OK_PREW,
18520 .probe = probe_jedec,
18521 .probe_timing = 10,
18522 .block_erasers =
18523 {
18524 {
18525 .eraseblocks = { {4 * 1024, 32} },
18526 .block_erase = erase_block_jedec,
18527 }, {
18528 .eraseblocks = { {128 * 1024, 1} },
18529 .block_erase = erase_chip_block_jedec,
18530 }
18531 },
18532 .printlock = printlock_w39f010,
18533 .write = write_jedec_1,
18534 .read = read_memmapped,
18535 .voltage = {4500, 5500},
18536 },
18537
18538 {
18539 .vendor = "Winbond",
18540 .name = "W39L010",
18541 .bustype = BUS_PARALLEL,
18542 .manufacture_id = WINBOND_ID,
18543 .model_id = WINBOND_W39L010,
18544 .total_size = 128,
18545 .page_size = 4 * 1024,
18546 .feature_bits = FEATURE_EITHER_RESET,
18547 .tested = TEST_UNTESTED,
18548 .probe = probe_jedec,
18549 .probe_timing = 10,
18550 .block_erasers =
18551 {
18552 {
18553 .eraseblocks = { {4 * 1024, 32} },
18554 .block_erase = erase_block_jedec,
18555 }, {
18556 .eraseblocks = { {128 * 1024, 1} },
18557 .block_erase = erase_chip_block_jedec,
18558 }
18559 },
18560 .printlock = printlock_w39l010,
18561 .write = write_jedec_1,
18562 .read = read_memmapped,
18563 .voltage = {3000, 3600},
18564 },
18565
18566 {
18567 .vendor = "Winbond",
18568 .name = "W39L020",
18569 .bustype = BUS_PARALLEL,
18570 .manufacture_id = WINBOND_ID,
18571 .model_id = WINBOND_W39L020,
18572 .total_size = 256,
18573 .page_size = 4 * 1024,
18574 .feature_bits = FEATURE_EITHER_RESET,
18575 .tested = TEST_UNTESTED,
18576 .probe = probe_jedec,
18577 .probe_timing = 10,
18578 .block_erasers =
18579 {
18580 {
18581 .eraseblocks = { {4 * 1024, 64} },
18582 .block_erase = erase_block_jedec,
18583 }, {
18584 .eraseblocks = { {64 * 1024, 4} },
18585 .block_erase = erase_sector_jedec,
18586 }, {
18587 .eraseblocks = { {256 * 1024, 1} },
18588 .block_erase = erase_chip_block_jedec,
18589 }
18590 },
18591 .printlock = printlock_w39l020,
18592 .write = write_jedec_1,
18593 .read = read_memmapped,
18594 .voltage = {3000, 3600},
18595 },
18596
18597 {
18598 .vendor = "Winbond",
Michael Karcher19e0aac2011-03-06 17:58:05 +000018599 .name = "W39L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018600 .bustype = BUS_PARALLEL,
Michael Karcher19e0aac2011-03-06 17:58:05 +000018601 .manufacture_id = WINBOND_ID,
18602 .model_id = WINBOND_W39L040,
18603 .total_size = 512,
18604 .page_size = 64 * 1024,
18605 .feature_bits = FEATURE_EITHER_RESET,
18606 .tested = TEST_OK_PR,
18607 .probe = probe_jedec,
18608 .probe_timing = 10,
18609 .block_erasers =
18610 {
18611 {
18612 .eraseblocks = { {4 * 1024, 128} },
18613 .block_erase = erase_block_jedec,
18614 }, {
18615 .eraseblocks = { {64 * 1024, 8} },
18616 .block_erase = erase_sector_jedec,
18617 }, {
18618 .eraseblocks = { {512 * 1024, 1} },
18619 .block_erase = erase_chip_block_jedec,
18620 }
18621 },
18622 .printlock = printlock_w39l040,
18623 .write = write_jedec_1,
18624 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000018625 .voltage = {3000, 3600},
Michael Karcher19e0aac2011-03-06 17:58:05 +000018626 },
18627
18628 {
18629 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018630 .name = "W39V040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018631 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018632 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018633 .model_id = WINBOND_W39V040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018634 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000018635 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000018636 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000018637 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018638 .probe = probe_jedec,
Stefan Tauner716e0982011-07-25 20:38:52 +000018639 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018640 .block_erasers =
18641 {
18642 {
18643 .eraseblocks = { {64 * 1024, 8} },
18644 .block_erase = erase_sector_jedec,
18645 }, {
18646 .eraseblocks = { {512 * 1024, 1} },
18647 .block_erase = erase_chip_block_jedec,
18648 }
18649 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018650 .printlock = printlock_w39v040a,
Sean Nelson35727f72010-01-28 23:55:12 +000018651 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018652 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018653 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000018654 },
18655
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018656 {
18657 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018658 .name = "W39V040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018659 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018660 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018661 .model_id = WINBOND_W39V040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018662 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000018663 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000018664 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000018665 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018666 .probe = probe_jedec,
Paul Menzel018d4822011-10-21 12:33:07 +000018667 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018668 .block_erasers =
18669 {
18670 {
18671 .eraseblocks = { {64 * 1024, 8} },
18672 .block_erase = erase_sector_jedec,
18673 }, {
18674 .eraseblocks = { {512 * 1024, 1} },
18675 .block_erase = erase_chip_block_jedec,
18676 }
18677 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018678 .printlock = printlock_w39v040b,
Sean Nelson35727f72010-01-28 23:55:12 +000018679 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018680 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018681 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000018682 },
18683
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018684 {
18685 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018686 .name = "W39V040C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018687 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018688 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018689 .model_id = WINBOND_W39V040C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018690 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000018691 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000018692 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000018693 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +000018694 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018695 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018696 .block_erasers =
18697 {
18698 {
18699 .eraseblocks = { {64 * 1024, 8} },
18700 .block_erase = erase_sector_jedec,
18701 }, {
18702 .eraseblocks = { {512 * 1024, 1} },
18703 .block_erase = erase_chip_block_jedec,
18704 }
18705 },
Sean Nelson6e0b9122010-02-19 00:52:10 +000018706 .printlock = printlock_w39v040c,
Sean Nelson35727f72010-01-28 23:55:12 +000018707 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018708 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018709 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000018710 },
18711
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018712 {
18713 .vendor = "Winbond",
18714 .name = "W39V040FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018715 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018716 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018717 .model_id = WINBOND_W39V040FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018718 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000018719 .page_size = 64 * 1024,
Michael Karcherc9b63412010-05-30 16:55:18 +000018720 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner23e10b82016-01-23 16:16:49 +000018721 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018722 .probe = probe_jedec,
Antony Rheneus0fbba982011-05-26 14:28:51 +000018723 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018724 .block_erasers =
18725 {
18726 {
18727 .eraseblocks = { {4 * 1024, 128} },
18728 .block_erase = erase_block_jedec,
18729 }, {
18730 .eraseblocks = { {64 * 1024, 8} },
18731 .block_erase = erase_sector_jedec,
18732 }, {
18733 .eraseblocks = { {512 * 1024, 1} },
18734 .block_erase = erase_chip_block_jedec,
18735 }
18736 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018737 .printlock = printlock_w39v040fa,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000018738 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000018739 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018740 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018741 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000018742 },
18743
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018744 {
18745 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018746 .name = "W39V040FB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018747 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018748 .manufacture_id = WINBOND_ID,
18749 .model_id = WINBOND_W39V040B,
18750 .total_size = 512,
18751 .page_size = 64 * 1024,
18752 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner0be072c2016-03-13 15:16:30 +000018753 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018754 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000018755 .probe_timing = 10,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018756 .block_erasers =
18757 {
18758 {
18759 .eraseblocks = { {64 * 1024, 8} },
18760 .block_erase = erase_sector_jedec,
18761 }, {
18762 .eraseblocks = { {512 * 1024, 1} },
18763 .block_erase = erase_chip_block_jedec,
18764 }
18765 },
18766 .printlock = printlock_w39v040fb,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000018767 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018768 .write = write_jedec_1,
18769 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000018770 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018771 },
18772
18773 {
18774 .vendor = "Winbond",
18775 .name = "W39V040FC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018776 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018777 .manufacture_id = WINBOND_ID,
18778 .model_id = WINBOND_W39V040C,
18779 .total_size = 512,
18780 .page_size = 64 * 1024,
18781 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +000018782 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018783 .probe = probe_jedec,
18784 .probe_timing = 10,
18785 .block_erasers =
18786 {
18787 {
18788 .eraseblocks = { {64 * 1024, 8} },
18789 .block_erase = erase_sector_jedec,
18790 }, {
18791 .eraseblocks = { {512 * 1024, 1} },
18792 .block_erase = erase_chip_block_jedec,
18793 }
18794 },
18795 .printlock = printlock_w39v040fc,
18796 .write = write_jedec_1,
18797 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000018798 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018799 },
18800
18801 {
18802 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018803 .name = "W39V080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018804 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018805 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018806 .model_id = WINBOND_W39V080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018807 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000018808 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000018809 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +000018810 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018811 .probe = probe_jedec,
Paul Menzelac427b22012-02-16 21:07:07 +000018812 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018813 .block_erasers =
18814 {
18815 {
18816 .eraseblocks = { {64 * 1024, 16} },
18817 .block_erase = erase_sector_jedec,
18818 }, {
18819 .eraseblocks = { {1024 * 1024, 1} },
18820 .block_erase = erase_chip_block_jedec,
18821 }
18822 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000018823 .printlock = printlock_w39v080a,
Sean Nelson35727f72010-01-28 23:55:12 +000018824 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018825 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018826 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000018827 },
18828
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018829 {
18830 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018831 .name = "W39V080FA",
18832 .bustype = BUS_FWH,
18833 .manufacture_id = WINBOND_ID,
18834 .model_id = WINBOND_W39V080FA,
18835 .total_size = 1024,
18836 .page_size = 64 * 1024,
18837 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
18838 .tested = TEST_OK_PREW,
18839 .probe = probe_jedec,
18840 .probe_timing = 10,
18841 .block_erasers =
18842 {
18843 {
18844 .eraseblocks = { {64 * 1024, 16} },
18845 .block_erase = erase_sector_jedec,
18846 }, {
18847 .eraseblocks = { {1024 * 1024, 1} },
18848 .block_erase = erase_chip_block_jedec,
18849 }
18850 },
18851 .printlock = printlock_w39v080fa,
18852 .unlock = unlock_regspace2_uniform_64k,
18853 .write = write_jedec_1,
18854 .read = read_memmapped,
18855 .voltage = {3000, 3600}, /* Also has 12V fast program */
18856 },
18857
18858 {
18859 .vendor = "Winbond",
18860 .name = "W39V080FA (dual mode)",
18861 .bustype = BUS_FWH,
18862 .manufacture_id = WINBOND_ID,
18863 .model_id = WINBOND_W39V080FA_DM,
18864 .total_size = 512,
18865 .page_size = 64 * 1024,
18866 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
18867 .tested = TEST_UNTESTED,
18868 .probe = probe_jedec,
18869 .probe_timing = 10,
18870 .block_erasers =
18871 {
18872 {
18873 .eraseblocks = { {64 * 1024, 8} },
18874 .block_erase = erase_sector_jedec,
18875 }, {
18876 .eraseblocks = { {512 * 1024, 1} },
18877 .block_erase = erase_chip_block_jedec,
18878 }
18879 },
18880 .printlock = printlock_w39v080fa_dual,
18881 .write = write_jedec_1,
18882 .read = read_memmapped,
18883 .voltage = {3000, 3600}, /* Also has 12V fast program */
18884 },
18885
18886 {
18887 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000018888 .name = "W49F002U/N",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018889 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018890 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018891 .model_id = WINBOND_W49F002U,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018892 .total_size = 256,
18893 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000018894 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000018895 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018896 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000018897 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018898 .block_erasers =
18899 {
18900 {
18901 .eraseblocks = {
18902 {128 * 1024, 1},
18903 {96 * 1024, 1},
18904 {8 * 1024, 2},
18905 {16 * 1024, 1},
18906 },
18907 .block_erase = erase_sector_jedec,
18908 }, {
18909 .eraseblocks = { {256 * 1024, 1} },
18910 .block_erase = erase_chip_block_jedec,
18911 }
18912 },
Sean Nelson35727f72010-01-28 23:55:12 +000018913 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018914 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018915 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000018916 },
18917
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018918 {
18919 .vendor = "Winbond",
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000018920 .name = "W49F020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018921 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000018922 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018923 .model_id = WINBOND_W49F020,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000018924 .total_size = 256,
18925 .page_size = 128,
18926 .feature_bits = FEATURE_EITHER_RESET,
18927 .tested = TEST_OK_PROBE,
18928 .probe = probe_jedec,
18929 .probe_timing = 10,
18930 .block_erasers =
18931 {
18932 {
18933 .eraseblocks = { {256 * 1024, 1} },
18934 .block_erase = erase_chip_block_jedec,
18935 }
18936 },
18937 .write = write_jedec_1,
18938 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018939 .voltage = {4500, 5500},
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000018940 },
18941
18942 {
18943 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018944 .name = "W49V002A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018945 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018946 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018947 .model_id = WINBOND_W49V002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018948 .total_size = 256,
18949 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000018950 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000018951 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018952 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000018953 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018954 .block_erasers =
18955 {
18956 {
18957 .eraseblocks = {
18958 {64 * 1024, 3},
18959 {32 * 1024, 1},
18960 {8 * 1024, 2},
18961 {16 * 1024, 1},
18962 },
18963 .block_erase = erase_sector_jedec,
18964 }, {
18965 .eraseblocks = { {256 * 1024, 1} },
18966 .block_erase = erase_chip_block_jedec,
18967 }
18968 },
Sean Nelson35727f72010-01-28 23:55:12 +000018969 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000018970 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018971 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000018972 },
18973
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018974 {
18975 .vendor = "Winbond",
18976 .name = "W49V002FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018977 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018978 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018979 .model_id = WINBOND_W49V002FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018980 .total_size = 256,
18981 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000018982 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000018983 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018984 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000018985 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018986 .block_erasers =
18987 {
18988 {
18989 .eraseblocks = {
18990 {64 * 1024, 3},
18991 {32 * 1024, 1},
18992 {8 * 1024, 2},
18993 {16 * 1024, 1},
18994 },
18995 .block_erase = erase_sector_jedec,
18996 }, {
18997 .eraseblocks = { {256 * 1024, 1} },
18998 .block_erase = erase_chip_block_jedec,
18999 }
19000 },
Sean Nelson35727f72010-01-28 23:55:12 +000019001 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019002 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000019003 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000019004 },
19005
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019006 {
luke heef884232020-12-28 18:22:21 +080019007 .vendor = "XMC",
19008 .name = "XM25QH128C",
19009 .bustype = BUS_SPI,
19010 .manufacture_id = ST_ID,
19011 .model_id = XMC_XM25QH128C,
19012 .total_size = 16384,
19013 .page_size = 256,
19014 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
19015 .tested = TEST_UNTESTED,
19016 .probe = probe_spi_rdid,
19017 .probe_timing = TIMING_ZERO,
19018 .block_erasers =
19019 {
19020 {
19021 .eraseblocks = { {4 * 1024, 4096} },
19022 .block_erase = spi_block_erase_20,
19023 }, {
19024 .eraseblocks = { {32 * 1024, 512} },
19025 .block_erase = spi_block_erase_52,
19026 }, {
19027 .eraseblocks = { {64 * 1024, 256} },
19028 .block_erase = spi_block_erase_d8,
19029 }, {
19030 .eraseblocks = { {16 * 1024 * 1024, 1} },
19031 .block_erase = spi_block_erase_60,
19032 }, {
19033 .eraseblocks = { {16 * 1024 * 1024, 1} },
19034 .block_erase = spi_block_erase_c7,
19035 }
19036 },
19037 .printlock = spi_prettyprint_status_register_plain,
19038 .unlock = spi_disable_blockprotect,
19039 .write = spi_chip_write_256,
19040 .read = spi_chip_read,
19041 .voltage = {2700, 3600},
19042 },
19043
19044 {
19045 .vendor = "XMC",
19046 .name = "XM25QH256C",
19047 .bustype = BUS_SPI,
19048 .manufacture_id = ST_ID,
19049 .model_id = XMC_XM25QH256C,
19050 .total_size = 32768,
19051 .page_size = 256,
19052 /* supports SFDP */
19053 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
19054 .tested = TEST_UNTESTED,
19055 .probe = probe_spi_rdid,
19056 .probe_timing = TIMING_ZERO,
19057 .block_erasers =
19058 {
19059 {
19060 .eraseblocks = { {4 * 1024, 8192} },
19061 .block_erase = spi_block_erase_21,
19062 }, {
19063 .eraseblocks = { {4 * 1024, 8192} },
19064 .block_erase = spi_block_erase_20,
19065 }, {
19066 .eraseblocks = { {32 * 1024, 1024} },
19067 .block_erase = spi_block_erase_52,
19068 }, {
19069 .eraseblocks = { {64 * 1024, 512} },
19070 .block_erase = spi_block_erase_dc,
19071 }, {
19072 .eraseblocks = { {64 * 1024, 512} },
19073 .block_erase = spi_block_erase_d8,
19074 }, {
19075 .eraseblocks = { {32 * 1024 * 1024, 1} },
19076 .block_erase = spi_block_erase_60,
19077 }, {
19078 .eraseblocks = { {32 * 1024 * 1024, 1} },
19079 .block_erase = spi_block_erase_c7,
19080 }
19081 },
19082 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19083 .unlock = spi_disable_blockprotect,
19084 .write = spi_chip_write_256,
19085 .read = spi_chip_read,
19086 .voltage = {2700, 3600},
19087 },
19088
19089 {
19090 .vendor = "XMC",
19091 .name = "XM25QH64C",
19092 .bustype = BUS_SPI,
19093 .manufacture_id = ST_ID,
19094 .model_id = XMC_XM25QH64C,
19095 .total_size = 8192,
19096 .page_size = 256,
19097 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
19098 .tested = TEST_UNTESTED,
19099 .probe = probe_spi_rdid,
19100 .probe_timing = TIMING_ZERO,
19101 .block_erasers =
19102 {
19103 {
19104 .eraseblocks = { {4 * 1024, 2048} },
19105 .block_erase = spi_block_erase_20,
19106 }, {
19107 .eraseblocks = { {32 * 1024, 256} },
19108 .block_erase = spi_block_erase_52,
19109 }, {
19110 .eraseblocks = { {64 * 1024, 128} },
19111 .block_erase = spi_block_erase_d8,
19112 }, {
19113 .eraseblocks = { {8 * 1024 * 1024, 1} },
19114 .block_erase = spi_block_erase_60,
19115 }, {
19116 .eraseblocks = { {8 * 1024 * 1024, 1} },
19117 .block_erase = spi_block_erase_c7,
19118 }
19119 },
19120 .printlock = spi_prettyprint_status_register_plain,
19121 .unlock = spi_disable_blockprotect,
19122 .write = spi_chip_write_256,
19123 .read = spi_chip_read,
19124 .voltage = {2700, 3600},
19125 },
19126
19127 {
19128 .vendor = "XMC",
19129 .name = "XM25QU128C",
19130 .bustype = BUS_SPI,
19131 .manufacture_id = ST_ID,
19132 .model_id = XMC_XM25QU128C,
19133 .total_size = 16384,
19134 .page_size = 256,
19135 /* supports SFDP */
19136 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
19137 .tested = TEST_UNTESTED,
19138 .probe = probe_spi_rdid,
19139 .probe_timing = TIMING_ZERO,
19140 .block_erasers =
19141 {
19142 {
19143 .eraseblocks = { {4 * 1024, 4096} },
19144 .block_erase = spi_block_erase_20,
19145 }, {
19146 .eraseblocks = { {32 * 1024, 512} },
19147 .block_erase = spi_block_erase_52,
19148 }, {
19149 .eraseblocks = { {64 * 1024, 256} },
19150 .block_erase = spi_block_erase_d8,
19151 }, {
19152 .eraseblocks = { {16 * 1024 * 1024, 1} },
19153 .block_erase = spi_block_erase_60,
19154 }, {
19155 .eraseblocks = { {16 * 1024 * 1024, 1} },
19156 .block_erase = spi_block_erase_c7,
19157 }
19158 },
19159 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19160 .unlock = spi_disable_blockprotect,
19161 .write = spi_chip_write_256,
19162 .read = spi_chip_read,
19163 .voltage = {1650, 1950},
19164 },
19165
19166 {
19167 .vendor = "XMC",
19168 .name = "XM25QU256C",
19169 .bustype = BUS_SPI,
19170 .manufacture_id = ST_ID,
19171 .model_id = XMC_XM25QU256C,
19172 .total_size = 32768,
19173 .page_size = 256,
19174 /* supports SFDP */
19175 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
19176 .tested = TEST_UNTESTED,
19177 .probe = probe_spi_rdid,
19178 .probe_timing = TIMING_ZERO,
19179 .block_erasers =
19180 {
19181 {
19182 .eraseblocks = { {4 * 1024, 8192} },
19183 .block_erase = spi_block_erase_21,
19184 }, {
19185 .eraseblocks = { {4 * 1024, 8192} },
19186 .block_erase = spi_block_erase_20,
19187 }, {
19188 .eraseblocks = { {32 * 1024, 1024} },
19189 .block_erase = spi_block_erase_52,
19190 }, {
19191 .eraseblocks = { {64 * 1024, 512} },
19192 .block_erase = spi_block_erase_dc,
19193 }, {
19194 .eraseblocks = { {64 * 1024, 512} },
19195 .block_erase = spi_block_erase_d8,
19196 }, {
19197 .eraseblocks = { {32 * 1024 * 1024, 1} },
19198 .block_erase = spi_block_erase_60,
19199 }, {
19200 .eraseblocks = { {32 * 1024 * 1024, 1} },
19201 .block_erase = spi_block_erase_c7,
19202 }
19203 },
19204 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19205 .unlock = spi_disable_blockprotect,
19206 .write = spi_chip_write_256,
19207 .read = spi_chip_read,
19208 .voltage = {1650, 1950},
19209 },
19210
19211 {
19212 .vendor = "XMC",
19213 .name = "XM25QU64C",
19214 .bustype = BUS_SPI,
19215 .manufacture_id = ST_ID,
19216 .model_id = XMC_XM25QU64C,
19217 .total_size = 8192,
19218 .page_size = 256,
19219 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
19220 .tested = TEST_UNTESTED,
19221 .probe = probe_spi_rdid,
19222 .probe_timing = TIMING_ZERO,
19223 .block_erasers =
19224 {
19225 {
19226 .eraseblocks = { {4 * 1024, 2048} },
19227 .block_erase = spi_block_erase_20,
19228 }, {
19229 .eraseblocks = { {32 * 1024, 256} },
19230 .block_erase = spi_block_erase_52,
19231 }, {
19232 .eraseblocks = { {64 * 1024, 128} },
19233 .block_erase = spi_block_erase_d8,
19234 }, {
19235 .eraseblocks = { {8 * 1024 * 1024, 1} },
19236 .block_erase = spi_block_erase_60,
19237 }, {
19238 .eraseblocks = { {8 * 1024 * 1024, 1} },
19239 .block_erase = spi_block_erase_c7,
19240 }
19241 },
19242 .printlock = spi_prettyprint_status_register_plain,
19243 .unlock = spi_disable_blockprotect,
19244 .write = spi_chip_write_256,
19245 .read = spi_chip_read,
19246 .voltage = {1650, 1950},
19247 },
19248
19249 {
Alan Greenfa3fcd32019-06-27 15:41:50 +100019250 .vendor = "Zetta Device",
19251 .name = "ZD25D20",
19252 .bustype = BUS_SPI,
19253 .manufacture_id = ZETTADEVICE_ID,
19254 .model_id = ZETTADEVICE_ZD25D20,
19255 .total_size = 256,
19256 .page_size = 256,
19257 .feature_bits = FEATURE_WRSR_WREN,
19258 .tested = TEST_UNTESTED,
19259 .probe = probe_spi_rdid,
19260 .probe_timing = TIMING_ZERO,
19261 .block_erasers =
David Hendricksa72d5a92018-02-11 17:58:44 -080019262 {
19263 {
19264 .eraseblocks = { {4 * 1024, 64} },
19265 .block_erase = spi_block_erase_20,
19266 }, {
19267 .eraseblocks = { {32 * 1024, 8} },
19268 .block_erase = spi_block_erase_52,
19269 }, {
19270 .eraseblocks = { {64 * 1024, 4} },
19271 .block_erase = spi_block_erase_d8,
19272 }, {
19273 .eraseblocks = { {256 * 1024, 1} },
19274 .block_erase = spi_block_erase_60,
19275 }, {
19276 .eraseblocks = { {256 * 1024, 1} },
19277 .block_erase = spi_block_erase_c7,
19278 }
19279 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100019280 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19281 .unlock = spi_disable_blockprotect,
19282 .write = spi_chip_write_256,
19283 .read = spi_chip_read,
19284 .voltage = {2700, 3600},
David Hendricksa72d5a92018-02-11 17:58:44 -080019285 },
19286
19287 {
Alan Greenfa3fcd32019-06-27 15:41:50 +100019288 .vendor = "Zetta Device",
19289 .name = "ZD25D40",
19290 .bustype = BUS_SPI,
19291 .manufacture_id = ZETTADEVICE_ID,
19292 .model_id = ZETTADEVICE_ZD25D40,
19293 .total_size = 512,
19294 .page_size = 256,
19295 .feature_bits = FEATURE_WRSR_WREN,
19296 .tested = TEST_UNTESTED,
19297 .probe = probe_spi_rdid,
19298 .probe_timing = TIMING_ZERO,
19299 .block_erasers =
nybashcbb46e22018-02-11 17:53:49 -080019300 {
19301 {
19302 .eraseblocks = { {4 * 1024, 128} },
19303 .block_erase = spi_block_erase_20,
19304 }, {
19305 .eraseblocks = { {32 * 1024, 16} },
19306 .block_erase = spi_block_erase_52,
19307 }, {
19308 .eraseblocks = { {64 * 1024, 8} },
19309 .block_erase = spi_block_erase_d8,
19310 }, {
19311 .eraseblocks = { {512 * 1024, 1} },
19312 .block_erase = spi_block_erase_60,
19313 }, {
19314 .eraseblocks = { {512 * 1024, 1} },
19315 .block_erase = spi_block_erase_c7,
19316 }
19317 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100019318 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19319 .unlock = spi_disable_blockprotect,
19320 .write = spi_chip_write_256,
19321 .read = spi_chip_read,
19322 .voltage = {2700, 3600},
nybashcbb46e22018-02-11 17:53:49 -080019323 },
19324
Stefan Taunerac1b4c82012-02-17 14:51:04 +000019325 {
Alan Greendd592202019-08-23 10:11:37 +100019326 .vendor = "Unknown",
19327 .name = "SFDP-capable chip",
19328 .bustype = BUS_SPI,
19329 .manufacture_id = GENERIC_MANUF_ID,
19330 .model_id = SFDP_DEVICE_ID,
19331 .total_size = 0, /* set by probing function */
19332 .page_size = 0, /* set by probing function */
19333 .feature_bits = 0, /* set by probing function */
19334 /* We present our own "report this" text hence we do not */
19335 /* want the default "This flash part has status UNTESTED..." */
19336 /* text to be printed. */
19337 .tested = TEST_OK_PREW,
19338 .probe = probe_spi_sfdp,
19339 .block_erasers = {}, /* set by probing function */
19340 .unlock = spi_disable_blockprotect, /* is this safe? */
19341 .write = NULL, /* set by probing function */
19342 .read = spi_chip_read,
19343 /* FIXME: some vendor extensions define this */
19344 .voltage = {0},
19345 },
19346
19347 {
Carl-Daniel Hailfinger532c7172011-11-04 21:35:26 +000019348 .vendor = "Programmer",
19349 .name = "Opaque flash chip",
19350 .bustype = BUS_PROG,
19351 .manufacture_id = PROGMANUF_ID,
19352 .model_id = PROGDEV_ID,
19353 .total_size = 0,
19354 .page_size = 256,
19355 /* probe is assumed to work, rest will be filled in by probe */
19356 .tested = TEST_OK_PROBE,
19357 .probe = probe_opaque,
19358 /* eraseblock sizes will be set by the probing function */
19359 .block_erasers =
19360 {
19361 {
19362 .block_erase = erase_opaque,
19363 }
19364 },
19365 .write = write_opaque,
19366 .read = read_opaque,
19367 },
19368
19369 {
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000019370 .vendor = "AMIC",
19371 .name = "unknown AMIC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019372 .bustype = BUS_SPI,
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000019373 .manufacture_id = AMIC_ID,
19374 .model_id = GENERIC_DEVICE_ID,
19375 .total_size = 0,
19376 .page_size = 256,
19377 .tested = TEST_BAD_PREW,
19378 .probe = probe_spi_rdid4,
19379 .probe_timing = TIMING_ZERO,
19380 .write = NULL,
19381 .read = NULL,
19382 },
19383
19384 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019385 .vendor = "Atmel",
19386 .name = "unknown Atmel SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019387 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019388 .manufacture_id = ATMEL_ID,
19389 .model_id = GENERIC_DEVICE_ID,
19390 .total_size = 0,
19391 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000019392 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019393 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000019394 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019395 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019396 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000019397 },
19398
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019399 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +000019400 .vendor = "Eon",
19401 .name = "unknown Eon SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019402 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019403 .manufacture_id = EON_ID_NOPREFIX,
19404 .model_id = GENERIC_DEVICE_ID,
19405 .total_size = 0,
19406 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000019407 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019408 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000019409 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019410 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019411 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000019412 },
19413
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019414 {
19415 .vendor = "Macronix",
19416 .name = "unknown Macronix SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019417 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000019418 .manufacture_id = MACRONIX_ID,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019419 .model_id = GENERIC_DEVICE_ID,
19420 .total_size = 0,
19421 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000019422 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019423 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000019424 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019425 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019426 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000019427 },
19428
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019429 {
19430 .vendor = "PMC",
19431 .name = "unknown PMC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019432 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019433 .manufacture_id = PMC_ID,
19434 .model_id = GENERIC_DEVICE_ID,
19435 .total_size = 0,
19436 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000019437 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019438 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000019439 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019440 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019441 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000019442 },
19443
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019444 {
19445 .vendor = "SST",
19446 .name = "unknown SST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019447 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019448 .manufacture_id = SST_ID,
19449 .model_id = GENERIC_DEVICE_ID,
19450 .total_size = 0,
19451 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000019452 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019453 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000019454 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019455 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019456 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000019457 },
19458
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019459 {
19460 .vendor = "ST",
19461 .name = "unknown ST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019462 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019463 .manufacture_id = ST_ID,
19464 .model_id = GENERIC_DEVICE_ID,
19465 .total_size = 0,
19466 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000019467 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019468 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000019469 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019470 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019471 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000019472 },
Uwe Hermannfc425e82008-03-16 02:06:25 +000019473
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000019474 {
Sean Nelson118e1d62009-11-24 02:08:11 +000019475 .vendor = "Sanyo",
19476 .name = "unknown Sanyo SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019477 .bustype = BUS_SPI,
Sean Nelson118e1d62009-11-24 02:08:11 +000019478 .manufacture_id = SANYO_ID,
19479 .model_id = GENERIC_DEVICE_ID,
19480 .total_size = 0,
19481 .page_size = 256,
19482 .tested = TEST_BAD_PREW,
19483 .probe = probe_spi_rdid,
19484 .probe_timing = TIMING_ZERO,
Sean Nelson118e1d62009-11-24 02:08:11 +000019485 .write = NULL,
19486 .read = NULL,
19487 },
19488
19489 {
Stefan Taunereb582572012-09-21 12:52:50 +000019490 .vendor = "Winbond",
19491 .name = "unknown Winbond (ex Nexcom) SPI chip",
19492 .bustype = BUS_SPI,
19493 .manufacture_id = WINBOND_NEX_ID,
19494 .model_id = GENERIC_DEVICE_ID,
19495 .total_size = 0,
19496 .page_size = 256,
19497 .tested = TEST_BAD_PREW,
19498 .probe = probe_spi_rdid,
19499 .probe_timing = TIMING_ZERO,
19500 .write = NULL,
19501 .read = NULL,
19502 },
19503
19504 {
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000019505 .vendor = "Generic",
19506 .name = "unknown SPI chip (RDID)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019507 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000019508 .manufacture_id = GENERIC_MANUF_ID,
19509 .model_id = GENERIC_DEVICE_ID,
19510 .total_size = 0,
19511 .page_size = 256,
19512 .tested = TEST_BAD_PREW,
19513 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000019514 .write = NULL,
19515 },
Stefan Tauneraf2db612011-12-02 21:48:17 +000019516
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000019517 {
19518 .vendor = "Generic",
19519 .name = "unknown SPI chip (REMS)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019520 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000019521 .manufacture_id = GENERIC_MANUF_ID,
19522 .model_id = GENERIC_DEVICE_ID,
19523 .total_size = 0,
19524 .page_size = 256,
19525 .tested = TEST_BAD_PREW,
19526 .probe = probe_spi_rems,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000019527 .write = NULL,
19528 },
19529
Stefan Tauner96658be2014-05-26 22:05:31 +000019530 {0}
Stephan Guilloux72cf5652009-04-21 01:46:07 +000019531};
Stefan Tauner96658be2014-05-26 22:05:31 +000019532
19533const unsigned int flashchips_size = ARRAY_SIZE(flashchips);