blob: dfce11df38d423e5b1687c6a46534450657fcd24 [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
Nico Huberc3b02dc2023-08-12 01:13:45 +020029 * assist with merging the Chromium fork of flashprog.
Alan Green1f9cc7d2019-07-01 11:10:45 +100030 *
31 * The usual intention is that that this list is sorted by vendor, then chip
Nico Huberc3b02dc2023-08-12 01:13:45 +020032 * family and chip density, which is useful for the output of 'flashprog -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
Nico Huberc3b02dc2023-08-12 01:13:45 +02001106 * and discussed on the flashprog mailing list on 2010-07-12.
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001107 */
1108 {
1109 .vendor = "AMIC",
1110 .name = "A25L40PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001111 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001112 .manufacture_id = AMIC_ID,
1113 .model_id = AMIC_A25L40PT,
1114 .total_size = 512,
1115 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001116 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00001117 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001118 .probe = probe_spi_rdid4,
1119 .probe_timing = TIMING_ZERO,
1120 .block_erasers =
1121 {
1122 {
1123 .eraseblocks = {
1124 {64 * 1024, 7},
1125 {32 * 1024, 1},
1126 {16 * 1024, 1},
1127 {8 * 1024, 1},
1128 {4 * 1024, 2},
1129 },
1130 .block_erase = spi_block_erase_d8,
1131 }, {
1132 .eraseblocks = { {512 * 1024, 1} },
1133 .block_erase = spi_block_erase_c7,
1134 }
1135 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001136 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001137 .unlock = spi_disable_blockprotect,
1138 .write = spi_chip_write_256,
1139 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001140 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001141 },
1142
1143 {
1144 .vendor = "AMIC",
1145 .name = "A25L40PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001146 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001147 .manufacture_id = AMIC_ID,
1148 .model_id = AMIC_A25L40PU,
1149 .total_size = 512,
1150 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001151 .feature_bits = FEATURE_WRSR_WREN,
Angel Pons6f088352018-09-30 19:59:42 +02001152 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001153 .probe = probe_spi_rdid4,
1154 .probe_timing = TIMING_ZERO,
1155 .block_erasers =
1156 {
1157 {
1158 .eraseblocks = {
1159 {4 * 1024, 2},
1160 {8 * 1024, 1},
1161 {16 * 1024, 1},
1162 {32 * 1024, 1},
1163 {64 * 1024, 7},
1164 },
1165 .block_erase = spi_block_erase_d8,
1166 }, {
1167 .eraseblocks = { {512 * 1024, 1} },
1168 .block_erase = spi_block_erase_c7,
1169 }
1170 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001171 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001172 .unlock = spi_disable_blockprotect,
1173 .write = spi_chip_write_256,
1174 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001175 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001176 },
1177
1178 {
1179 .vendor = "AMIC",
Alan Green1f9cc7d2019-07-01 11:10:45 +10001180 .name = "A25L512",
1181 .bustype = BUS_SPI,
1182 .manufacture_id = AMIC_ID_NOPREFIX,
1183 .model_id = AMIC_A25L512,
1184 .total_size = 64,
1185 .page_size = 256,
1186 .feature_bits = FEATURE_WRSR_WREN,
1187 .tested = TEST_UNTESTED,
1188 .probe = probe_spi_rdid,
1189 .probe_timing = TIMING_ZERO,
1190 .block_erasers =
1191 {
1192 {
1193 .eraseblocks = { { 4 * 1024, 16 } },
1194 .block_erase = spi_block_erase_20,
1195 }, {
1196 .eraseblocks = { { 64 * 1024, 1 } },
1197 .block_erase = spi_block_erase_d8,
1198 }, {
1199 .eraseblocks = { { 64 * 1024, 1 } },
1200 .block_erase = spi_block_erase_c7,
1201 }
1202 },
1203 .printlock = spi_prettyprint_status_register_bp2_srwd,
1204 .unlock = spi_disable_blockprotect,
1205 .write = spi_chip_write_256,
1206 .read = spi_chip_read,
1207 .voltage = {2700, 3600},
1208 },
1209
1210 {
1211 .vendor = "AMIC",
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001212 .name = "A25L80P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001213 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001214 .manufacture_id = AMIC_ID,
1215 .model_id = AMIC_A25L80P,
1216 .total_size = 1024,
1217 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001218 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00001219 .tested = TEST_OK_PRE,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001220 .probe = probe_spi_rdid4,
1221 .probe_timing = TIMING_ZERO,
1222 .block_erasers =
1223 {
1224 {
1225 .eraseblocks = {
1226 {4 * 1024, 2},
1227 {8 * 1024, 1},
1228 {16 * 1024, 1},
1229 {32 * 1024, 1},
1230 {64 * 1024, 15},
1231 },
1232 .block_erase = spi_block_erase_d8,
1233 }, {
1234 .eraseblocks = { {1024 * 1024, 1} },
1235 .block_erase = spi_block_erase_c7,
1236 }
1237 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001238 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001239 .unlock = spi_disable_blockprotect,
1240 .write = spi_chip_write_256,
1241 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001242 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001243 },
1244
1245 {
1246 .vendor = "AMIC",
Alan Green1f9cc7d2019-07-01 11:10:45 +10001247 .name = "A25LQ032/A25LQ32A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001248 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001249 .manufacture_id = AMIC_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10001250 .model_id = AMIC_A25LQ032,
Dan Lenski11617122010-07-29 15:00:40 +00001251 .total_size = 4096,
1252 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10001253 /* A25LQ32A supports SFDP */
Daniel Lenski65922a32012-02-15 23:40:23 +00001254 /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */
1255 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Alan Green1f9cc7d2019-07-01 11:10:45 +10001256 .tested = TEST_UNTESTED,
Dan Lenski11617122010-07-29 15:00:40 +00001257 .probe = probe_spi_rdid,
1258 .probe_timing = TIMING_ZERO,
1259 .block_erasers =
1260 {
1261 {
1262 .eraseblocks = { { 4 * 1024, 1024 } },
1263 .block_erase = spi_block_erase_20,
1264 }, {
1265 .eraseblocks = { { 64 * 1024, 64 } },
1266 .block_erase = spi_block_erase_52,
1267 }, {
1268 .eraseblocks = { { 64 * 1024, 64 } },
1269 .block_erase = spi_block_erase_d8,
1270 }, {
1271 .eraseblocks = { { 4096 * 1024, 1 } },
1272 .block_erase = spi_block_erase_60,
1273 }, {
1274 .eraseblocks = { { 4096 * 1024, 1 } },
1275 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001276 }
Dan Lenski11617122010-07-29 15:00:40 +00001277 },
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001278 .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */
1279 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */
Dan Lenski11617122010-07-29 15:00:40 +00001280 .write = spi_chip_write_256,
1281 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001282 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001283 },
1284
1285 {
1286 .vendor = "AMIC",
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001287 .name = "A25LQ16",
1288 .bustype = BUS_SPI,
1289 .manufacture_id = AMIC_ID_NOPREFIX,
1290 .model_id = AMIC_A25LQ16,
1291 .total_size = 2048,
1292 .page_size = 256,
1293 /* supports SFDP */
1294 /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */
1295 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
1296 .tested = TEST_UNTESTED,
1297 .probe = probe_spi_rdid,
1298 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10001299 .block_erasers =
1300 {
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001301 {
1302 .eraseblocks = { { 4 * 1024, 512 } },
1303 .block_erase = spi_block_erase_20,
1304 }, {
1305 .eraseblocks = { { 64 * 1024, 32 } },
1306 .block_erase = spi_block_erase_52,
1307 }, {
1308 .eraseblocks = { { 64 * 1024, 32 } },
1309 .block_erase = spi_block_erase_d8,
1310 }, {
1311 .eraseblocks = { { 2048 * 1024, 1 } },
1312 .block_erase = spi_block_erase_60,
1313 }, {
1314 .eraseblocks = { { 2048 * 1024, 1 } },
1315 .block_erase = spi_block_erase_c7,
1316 }
1317 },
1318 .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */
1319 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */
1320 .write = spi_chip_write_256,
1321 .read = spi_chip_read,
1322 .voltage = {2700, 3600},
1323 },
1324
1325 {
1326 .vendor = "AMIC",
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001327 .name = "A25LQ64",
1328 .bustype = BUS_SPI,
1329 .manufacture_id = AMIC_ID_NOPREFIX,
Stefan Tauner23e10b82016-01-23 16:16:49 +00001330 .model_id = AMIC_A25LQ64,
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001331 .total_size = 8192,
1332 .page_size = 256,
1333 /* supports SFDP */
1334 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
1335 /* QPI enable 0x35, disable 0xF5 */
1336 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
1337 .tested = TEST_UNTESTED,
1338 .probe = probe_spi_rdid,
1339 .probe_timing = TIMING_ZERO,
1340 .block_erasers =
1341 {
1342 {
1343 .eraseblocks = { { 4 * 1024, 2048 } },
1344 .block_erase = spi_block_erase_20,
1345 }, {
1346 .eraseblocks = { { 32 * 1024, 256 } },
1347 .block_erase = spi_block_erase_52,
1348 }, {
1349 .eraseblocks = { { 64 * 1024, 128 } },
1350 .block_erase = spi_block_erase_d8,
1351 }, {
1352 .eraseblocks = { { 8192 * 1024, 1 } },
1353 .block_erase = spi_block_erase_60,
1354 }, {
1355 .eraseblocks = { { 8192 * 1024, 1 } },
1356 .block_erase = spi_block_erase_c7,
1357 }
1358 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001359 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enhance (sic!) */
Stefan Tauner5c316f92015-02-08 21:57:52 +00001360 .unlock = spi_disable_blockprotect_bp3_srwd,
Dan Lenski11617122010-07-29 15:00:40 +00001361 .write = spi_chip_write_256,
1362 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001363 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001364 },
1365
1366 {
1367 .vendor = "AMIC",
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001368 .name = "A29002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001369 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001370 .manufacture_id = AMIC_ID_NOPREFIX,
1371 .model_id = AMIC_A29002B,
1372 .total_size = 256,
1373 .page_size = 64 * 1024,
1374 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
1375 .tested = TEST_UNTESTED,
1376 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001377 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001378 .block_erasers =
1379 {
1380 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00001381 .eraseblocks = {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001382 {16 * 1024, 1},
1383 {8 * 1024, 2},
1384 {32 * 1024, 1},
1385 {64 * 1024, 3},
1386 },
1387 .block_erase = erase_sector_jedec,
1388 }, {
1389 .eraseblocks = { {256 * 1024, 1} },
1390 .block_erase = erase_chip_block_jedec,
1391 },
1392 },
1393 .write = write_jedec_1,
1394 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001395 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001396 },
1397
1398 {
1399 .vendor = "AMIC",
1400 .name = "A29002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001401 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001402 .manufacture_id = AMIC_ID_NOPREFIX,
1403 .model_id = AMIC_A29002T,
1404 .total_size = 256,
1405 .page_size = 64 * 1024,
1406 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00001407 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001408 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001409 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001410 .block_erasers =
1411 {
1412 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00001413 .eraseblocks = {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001414 {64 * 1024, 3},
1415 {32 * 1024, 1},
1416 {8 * 1024, 2},
1417 {16 * 1024, 1},
1418 },
1419 .block_erase = erase_sector_jedec,
1420 }, {
1421 .eraseblocks = { {256 * 1024, 1} },
1422 .block_erase = erase_chip_block_jedec,
1423 },
1424 },
1425 .write = write_jedec_1,
1426 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001427 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001428 },
1429
1430 {
1431 .vendor = "AMIC",
1432 .name = "A29040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001433 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001434 .manufacture_id = AMIC_ID_NOPREFIX,
1435 .model_id = AMIC_A29040B,
1436 .total_size = 512,
1437 .page_size = 64 * 1024,
1438 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Corey Osgoodcbd56652013-09-10 10:42:48 +00001439 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001440 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001441 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001442 .block_erasers =
1443 {
1444 {
1445 .eraseblocks = { {64 * 1024, 8} },
1446 .block_erase = erase_sector_jedec,
1447 }, {
1448 .eraseblocks = { {512 * 1024, 1} },
1449 .block_erase = erase_chip_block_jedec,
1450 },
1451 },
1452 .write = write_jedec_1,
1453 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001454 .voltage = {4500, 5500},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001455 },
1456
1457 {
1458 .vendor = "AMIC",
1459 .name = "A49LF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001460 .bustype = BUS_LPC,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001461 .manufacture_id = AMIC_ID_NOPREFIX,
1462 .model_id = AMIC_A49LF040A,
1463 .total_size = 512,
1464 .page_size = 64 * 1024,
1465 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00001466 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001467 .probe = probe_jedec,
1468 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
1469 .block_erasers =
1470 {
1471 {
1472 .eraseblocks = { {64 * 1024, 8} },
1473 .block_erase = erase_block_jedec,
1474 }, {
1475 .eraseblocks = { {512 * 1024, 1} },
1476 .block_erase = erase_chip_block_jedec,
1477 }
1478 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00001479 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001480 .write = write_jedec_1,
1481 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001482 .voltage = {3000, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001483 },
1484
1485 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001486 .vendor = "Atmel",
1487 .name = "AT25DF021",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001488 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001489 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001490 .model_id = ATMEL_AT25DF021,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001491 .total_size = 256,
1492 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001493 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1494 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001495 .tested = TEST_UNTESTED,
1496 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001497 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001498 .block_erasers =
1499 {
1500 {
1501 .eraseblocks = { {4 * 1024, 64} },
1502 .block_erase = spi_block_erase_20,
1503 }, {
1504 .eraseblocks = { {32 * 1024, 8} },
1505 .block_erase = spi_block_erase_52,
1506 }, {
1507 .eraseblocks = { {64 * 1024, 4} },
1508 .block_erase = spi_block_erase_d8,
1509 }, {
1510 .eraseblocks = { {256 * 1024, 1} },
1511 .block_erase = spi_block_erase_60,
1512 }, {
1513 .eraseblocks = { {256 * 1024, 1} },
1514 .block_erase = spi_block_erase_c7,
1515 }
1516 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001517 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001518 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001519 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001520 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001521 .voltage = {2700, 3600}, /* 2.3-3.6V & 2.7-3.6V models available */
FENG yu ningff692fb2008-12-08 18:15:10 +00001522 },
1523
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001524 {
1525 .vendor = "Atmel",
Steffen Mauch0b59b0d2018-06-02 23:46:03 +02001526 .name = "AT25DF021A",
1527 .bustype = BUS_SPI,
1528 .manufacture_id = ATMEL_ID,
1529 .model_id = ATMEL_AT25DF021A,
1530 .total_size = 256,
1531 .page_size = 256,
1532 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1533 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
1534 .tested = TEST_OK_PREW,
1535 .probe = probe_spi_rdid,
1536 .probe_timing = TIMING_ZERO,
1537 .block_erasers =
1538 {
1539 {
1540 .eraseblocks = { {4 * 1024, 64} },
1541 .block_erase = spi_block_erase_20,
1542 }, {
1543 .eraseblocks = { {32 * 1024, 8} },
1544 .block_erase = spi_block_erase_52,
1545 }, {
1546 .eraseblocks = { {64 * 1024, 4} },
1547 .block_erase = spi_block_erase_d8,
1548 }, {
1549 .eraseblocks = { {256 * 1024, 1} },
1550 .block_erase = spi_block_erase_60,
1551 }, {
1552 .eraseblocks = { {256 * 1024, 1} },
1553 .block_erase = spi_block_erase_c7,
1554 }
1555 },
1556 .printlock = spi_prettyprint_status_register_at25df,
1557 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
1558 .write = spi_chip_write_256,
1559 .read = spi_chip_read,
1560 .voltage = {1650, 3600},
1561 },
1562
1563 {
1564 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001565 .name = "AT25DF041A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001566 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001567 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001568 .model_id = ATMEL_AT25DF041A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001569 .total_size = 512,
1570 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001571 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +00001572 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001573 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001574 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001575 .block_erasers =
1576 {
1577 {
1578 .eraseblocks = { {4 * 1024, 128} },
1579 .block_erase = spi_block_erase_20,
1580 }, {
1581 .eraseblocks = { {32 * 1024, 16} },
1582 .block_erase = spi_block_erase_52,
1583 }, {
1584 .eraseblocks = { {64 * 1024, 8} },
1585 .block_erase = spi_block_erase_d8,
1586 }, {
1587 .eraseblocks = { {512 * 1024, 1} },
1588 .block_erase = spi_block_erase_60,
1589 }, {
1590 .eraseblocks = { {512 * 1024, 1} },
1591 .block_erase = spi_block_erase_c7,
1592 }
1593 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001594 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001595 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001596 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001597 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001598 .voltage = {2700, 3600}, /* 2.3-3.6V & 2.7-3.6V models available */
FENG yu ningff692fb2008-12-08 18:15:10 +00001599 },
1600
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001601 {
1602 .vendor = "Atmel",
1603 .name = "AT25DF081",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001604 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001605 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001606 .model_id = ATMEL_AT25DF081,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001607 .total_size = 1024,
1608 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001609 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001610 .tested = TEST_UNTESTED,
1611 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001612 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001613 .block_erasers =
1614 {
1615 {
1616 .eraseblocks = { {4 * 1024, 256} },
1617 .block_erase = spi_block_erase_20,
1618 }, {
1619 .eraseblocks = { {32 * 1024, 32} },
1620 .block_erase = spi_block_erase_52,
1621 }, {
1622 .eraseblocks = { {64 * 1024, 16} },
1623 .block_erase = spi_block_erase_d8,
1624 }, {
1625 .eraseblocks = { {1024 * 1024, 1} },
1626 .block_erase = spi_block_erase_60,
1627 }, {
1628 .eraseblocks = { {1024 * 1024, 1} },
1629 .block_erase = spi_block_erase_c7,
1630 }
1631 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001632 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001633 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001634 .write = spi_chip_write_256,
1635 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001636 .voltage = {1600, 2000}, /* Datasheet says range is 1.65-1.95 V */
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001637 },
1638
1639 {
1640 .vendor = "Atmel",
1641 .name = "AT25DF081A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001642 .bustype = BUS_SPI,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001643 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001644 .model_id = ATMEL_AT25DF081A,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001645 .total_size = 1024,
1646 .page_size = 256,
1647 .feature_bits = FEATURE_WRSR_WREN,
1648 .tested = TEST_UNTESTED,
1649 .probe = probe_spi_rdid,
1650 .probe_timing = TIMING_ZERO,
1651 .block_erasers =
1652 {
1653 {
1654 .eraseblocks = { {4 * 1024, 256} },
1655 .block_erase = spi_block_erase_20,
1656 }, {
1657 .eraseblocks = { {32 * 1024, 32} },
1658 .block_erase = spi_block_erase_52,
1659 }, {
1660 .eraseblocks = { {64 * 1024, 16} },
1661 .block_erase = spi_block_erase_d8,
1662 }, {
1663 .eraseblocks = { {1024 * 1024, 1} },
1664 .block_erase = spi_block_erase_60,
1665 }, {
1666 .eraseblocks = { {1024 * 1024, 1} },
1667 .block_erase = spi_block_erase_c7,
1668 }
1669 },
1670 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001671 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001672 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001673 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001674 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001675 },
1676
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001677 {
1678 .vendor = "Atmel",
1679 .name = "AT25DF161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001680 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001681 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001682 .model_id = ATMEL_AT25DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001683 .total_size = 2048,
1684 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001685 .feature_bits = FEATURE_WRSR_WREN,
Angel Pons8b5b9622018-09-30 19:13:15 +02001686 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001687 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001688 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001689 .block_erasers =
1690 {
1691 {
1692 .eraseblocks = { {4 * 1024, 512} },
1693 .block_erase = spi_block_erase_20,
1694 }, {
1695 .eraseblocks = { {32 * 1024, 64} },
1696 .block_erase = spi_block_erase_52,
1697 }, {
1698 .eraseblocks = { {64 * 1024, 32} },
1699 .block_erase = spi_block_erase_d8,
1700 }, {
1701 .eraseblocks = { {2 * 1024 * 1024, 1} },
1702 .block_erase = spi_block_erase_60,
1703 }, {
1704 .eraseblocks = { {2 * 1024 * 1024, 1} },
1705 .block_erase = spi_block_erase_c7,
1706 }
1707 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001708 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001709 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001710 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001711 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001712 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001713 },
1714
Alan Green86bf6ab2019-06-27 16:58:20 +10001715 /*The AT26DF321 has the same ID as the AT25DF321. */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001716 {
1717 .vendor = "Atmel",
1718 .name = "AT25DF321",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001719 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001720 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001721 .model_id = ATMEL_AT25DF321,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001722 .total_size = 4096,
1723 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001724 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd06d9412011-06-12 19:47:55 +00001725 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001726 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001727 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001728 .block_erasers =
1729 {
1730 {
1731 .eraseblocks = { {4 * 1024, 1024} },
1732 .block_erase = spi_block_erase_20,
1733 }, {
1734 .eraseblocks = { {32 * 1024, 128} },
1735 .block_erase = spi_block_erase_52,
1736 }, {
1737 .eraseblocks = { {64 * 1024, 64} },
1738 .block_erase = spi_block_erase_d8,
1739 }, {
1740 .eraseblocks = { {4 * 1024 * 1024, 1} },
1741 .block_erase = spi_block_erase_60,
1742 }, {
1743 .eraseblocks = { {4 * 1024 * 1024, 1} },
1744 .block_erase = spi_block_erase_c7,
1745 }
1746 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001747 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001748 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001749 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001750 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001751 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001752 },
1753
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001754 {
1755 .vendor = "Atmel",
1756 .name = "AT25DF321A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001757 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001758 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001759 .model_id = ATMEL_AT25DF321A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001760 .total_size = 4096,
1761 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001762 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1763 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00001764 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001765 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001766 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001767 .block_erasers =
1768 {
1769 {
1770 .eraseblocks = { {4 * 1024, 1024} },
1771 .block_erase = spi_block_erase_20,
1772 }, {
1773 .eraseblocks = { {32 * 1024, 128} },
1774 .block_erase = spi_block_erase_52,
1775 }, {
1776 .eraseblocks = { {64 * 1024, 64} },
1777 .block_erase = spi_block_erase_d8,
1778 }, {
1779 .eraseblocks = { {4 * 1024 * 1024, 1} },
1780 .block_erase = spi_block_erase_60,
1781 }, {
1782 .eraseblocks = { {4 * 1024 * 1024, 1} },
1783 .block_erase = spi_block_erase_c7,
1784 }
1785 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001786 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001787 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001788 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001789 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001790 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001791 },
1792
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001793 {
1794 .vendor = "Atmel",
Paul Menzelac427b22012-02-16 21:07:07 +00001795 .name = "AT25DF641(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001796 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001797 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001798 .model_id = ATMEL_AT25DF641,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001799 .total_size = 8192,
1800 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001801 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00001802 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001803 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001804 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001805 .block_erasers =
1806 {
1807 {
1808 .eraseblocks = { {4 * 1024, 2048} },
1809 .block_erase = spi_block_erase_20,
1810 }, {
1811 .eraseblocks = { {32 * 1024, 256} },
1812 .block_erase = spi_block_erase_52,
1813 }, {
1814 .eraseblocks = { {64 * 1024, 128} },
1815 .block_erase = spi_block_erase_d8,
1816 }, {
1817 .eraseblocks = { {8 * 1024 * 1024, 1} },
1818 .block_erase = spi_block_erase_60,
1819 }, {
1820 .eraseblocks = { {8 * 1024 * 1024, 1} },
1821 .block_erase = spi_block_erase_c7,
1822 }
1823 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001824 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001825 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001826 .write = spi_chip_write_256,
1827 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001828 .voltage = {2700, 3600},
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001829 },
1830
1831 {
1832 .vendor = "Atmel",
Stefan Taunerc9d8b272014-06-01 13:22:35 +00001833 .name = "AT25DL081",
1834 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +10001835 .manufacture_id = ATMEL_ID,
Stefan Taunerc9d8b272014-06-01 13:22:35 +00001836 .model_id = ATMEL_AT25DF081,
1837 .total_size = 1024,
1838 .page_size = 256,
1839 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1840 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
1841 .tested = TEST_UNTESTED,
1842 .probe = probe_spi_rdid,
1843 .probe_timing = TIMING_ZERO,
1844 .block_erasers =
1845 {
1846 {
1847 .eraseblocks = { {4 * 1024, 256} },
1848 .block_erase = spi_block_erase_20,
1849 }, {
1850 .eraseblocks = { {32 * 1024, 32} },
1851 .block_erase = spi_block_erase_52,
1852 }, {
1853 .eraseblocks = { {64 * 1024, 16} },
1854 .block_erase = spi_block_erase_d8,
1855 }, {
1856 .eraseblocks = { {1 * 1024 * 1024, 1} },
1857 .block_erase = spi_block_erase_60,
1858 }, {
1859 .eraseblocks = { {1 * 1024 * 1024, 1} },
1860 .block_erase = spi_block_erase_c7,
1861 }
1862 },
1863 .printlock = spi_prettyprint_status_register_at25df_sec,
1864 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
1865 .write = spi_chip_write_256, /* Dual I/O (0xA2) supported */
1866 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
1867 .voltage = {1650, 1950},
1868 },
1869
1870 {
1871 .vendor = "Atmel",
1872 .name = "AT25DL161",
1873 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +10001874 .manufacture_id = ATMEL_ID,
Stefan Taunerc9d8b272014-06-01 13:22:35 +00001875 .model_id = ATMEL_AT25DL161,
1876 .total_size = 2048,
1877 .page_size = 256,
1878 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1879 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
1880 .tested = TEST_UNTESTED,
1881 .probe = probe_spi_rdid,
1882 .probe_timing = TIMING_ZERO,
1883 .block_erasers =
1884 {
1885 {
1886 .eraseblocks = { {4 * 1024, 512} },
1887 .block_erase = spi_block_erase_20,
1888 }, {
1889 .eraseblocks = { {32 * 1024, 64} },
1890 .block_erase = spi_block_erase_52,
1891 }, {
1892 .eraseblocks = { {64 * 1024, 32} },
1893 .block_erase = spi_block_erase_d8,
1894 }, {
1895 .eraseblocks = { {2 * 1024 * 1024, 1} },
1896 .block_erase = spi_block_erase_60,
1897 }, {
1898 .eraseblocks = { {2 * 1024 * 1024, 1} },
1899 .block_erase = spi_block_erase_c7,
1900 }
1901 },
1902 .printlock = spi_prettyprint_status_register_at25df_sec,
1903 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
1904 .write = spi_chip_write_256, /* Dual I/O (0xA2) supported */
1905 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
1906 .voltage = {1650, 1950},
1907 },
1908
1909 {
1910 .vendor = "Atmel",
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001911 .name = "AT25DQ161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001912 .bustype = BUS_SPI,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001913 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001914 .model_id = ATMEL_AT25DQ161,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001915 .total_size = 2048,
1916 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001917 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1918 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001919 .tested = TEST_UNTESTED,
1920 .probe = probe_spi_rdid,
1921 .probe_timing = TIMING_ZERO,
1922 .block_erasers =
1923 {
1924 {
1925 .eraseblocks = { {4 * 1024, 512} },
1926 .block_erase = spi_block_erase_20,
1927 }, {
1928 .eraseblocks = { {32 * 1024, 64} },
1929 .block_erase = spi_block_erase_52,
1930 }, {
1931 .eraseblocks = { {64 * 1024, 32} },
1932 .block_erase = spi_block_erase_d8,
1933 }, {
1934 .eraseblocks = { {2 * 1024 * 1024, 1} },
1935 .block_erase = spi_block_erase_60,
1936 }, {
1937 .eraseblocks = { {2 * 1024 * 1024, 1} },
1938 .block_erase = spi_block_erase_c7,
1939 }
1940 },
1941 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001942 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001943 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001944 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001945 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001946 },
1947
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001948 {
1949 .vendor = "Atmel",
Alan Green1f9cc7d2019-07-01 11:10:45 +10001950 /* The A suffix indicates 33MHz instead of 20MHz clock rate.
1951 * All other properties seem to be the same.*/
1952 .name = "AT25F1024(A)",
1953 .bustype = BUS_SPI,
1954 .manufacture_id = ATMEL_ID,
1955 .model_id = ATMEL_AT25F1024,
1956 .total_size = 128,
1957 .page_size = 256,
1958 .feature_bits = FEATURE_WRSR_WREN,
1959 .tested = TEST_OK_PREW,
1960 .probe = probe_spi_at25f,
1961 .probe_timing = TIMING_ZERO,
1962 .block_erasers =
1963 {
1964 {
1965 .eraseblocks = { {32 * 1024, 4} },
1966 .block_erase = spi_block_erase_52,
1967 }, {
1968 .eraseblocks = { {128 * 1024, 1} },
1969 .block_erase = spi_block_erase_62,
1970 }
1971 },
1972 .printlock = spi_prettyprint_status_register_at25f,
1973 .unlock = spi_disable_blockprotect_at25f,
1974 .write = spi_chip_write_256,
1975 .read = spi_chip_read,
1976 .voltage = {2700, 3600},
1977 },
1978
1979 {
1980 .vendor = "Atmel",
1981 .name = "AT25F2048",
1982 .bustype = BUS_SPI,
1983 .manufacture_id = ATMEL_ID,
1984 .model_id = ATMEL_AT25F2048,
1985 .total_size = 256,
1986 .page_size = 256,
1987 .feature_bits = FEATURE_WRSR_WREN,
1988 .tested = TEST_UNTESTED,
1989 .probe = probe_spi_at25f,
1990 .probe_timing = TIMING_ZERO,
1991 .block_erasers =
1992 {
1993 {
1994 .eraseblocks = { {64 * 1024, 4} },
1995 .block_erase = spi_block_erase_52,
1996 }, {
1997 .eraseblocks = { {256 * 1024, 1} },
1998 .block_erase = spi_block_erase_62,
1999 }
2000 },
2001 .printlock = spi_prettyprint_status_register_at25f,
2002 .unlock = spi_disable_blockprotect_at25f,
2003 .write = spi_chip_write_256,
2004 .read = spi_chip_read,
2005 .voltage = {2700, 3600},
2006 },
2007
2008 {
2009 .vendor = "Atmel",
2010 .name = "AT25F4096",
2011 .bustype = BUS_SPI,
2012 .manufacture_id = ATMEL_ID,
2013 .model_id = ATMEL_AT25F4096,
2014 .total_size = 512,
2015 .page_size = 256,
2016 .feature_bits = FEATURE_WRSR_WREN,
2017 .tested = TEST_OK_PREW,
2018 .probe = probe_spi_at25f,
2019 .probe_timing = TIMING_ZERO,
2020 .block_erasers =
2021 {
2022 {
2023 .eraseblocks = { {64 * 1024, 8} },
2024 .block_erase = spi_block_erase_52,
2025 }, {
2026 .eraseblocks = { {512 * 1024, 1} },
2027 .block_erase = spi_block_erase_62,
2028 }
2029 },
2030 .printlock = spi_prettyprint_status_register_at25f4096,
2031 /* "Bits 5-6 are 0s when device is not in an internal write cycle." Better leave them alone: */
2032 .unlock = spi_disable_blockprotect_bp2_srwd,
2033 .write = spi_chip_write_256,
2034 .read = spi_chip_read,
2035 .voltage = {2700, 3600},
2036 },
2037
2038 {
2039 .vendor = "Atmel",
Stefan Tauner57794ac2012-12-29 15:04:20 +00002040 .name = "AT25F512",
2041 .bustype = BUS_SPI,
2042 .manufacture_id = ATMEL_ID,
2043 .model_id = ATMEL_AT25F512,
2044 .total_size = 64,
2045 .page_size = 256,
2046 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00002047 .tested = TEST_OK_PREW,
Stefan Tauner57794ac2012-12-29 15:04:20 +00002048 .probe = probe_spi_at25f,
2049 .probe_timing = TIMING_ZERO,
2050 .block_erasers =
2051 {
2052 {
2053 .eraseblocks = { {32 * 1024, 2} },
2054 .block_erase = spi_block_erase_52,
2055 }, {
2056 .eraseblocks = { {64 * 1024, 1} },
2057 .block_erase = spi_block_erase_62,
2058 }
2059 },
2060 .printlock = spi_prettyprint_status_register_at25f,
2061 .unlock = spi_disable_blockprotect_at25f,
2062 .write = spi_chip_write_256,
2063 .read = spi_chip_read,
2064 .voltage = {2700, 3600},
2065 },
2066
2067 {
2068 .vendor = "Atmel",
2069 .name = "AT25F512A",
2070 .bustype = BUS_SPI,
2071 .manufacture_id = ATMEL_ID,
2072 .model_id = ATMEL_AT25F512A,
2073 .total_size = 64,
2074 .page_size = 128,
2075 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00002076 .tested = TEST_OK_PREW,
Stefan Tauner57794ac2012-12-29 15:04:20 +00002077 .probe = probe_spi_at25f,
2078 .probe_timing = TIMING_ZERO,
2079 .block_erasers =
2080 {
2081 {
2082 .eraseblocks = { {32 * 1024, 2} },
2083 .block_erase = spi_block_erase_52,
2084 }, {
2085 .eraseblocks = { {64 * 1024, 1} },
2086 .block_erase = spi_block_erase_62,
2087 }
2088 },
2089 .printlock = spi_prettyprint_status_register_at25f512a,
2090 /* FIXME: It is not correct to use this one, because the BP1 bit is N/A. */
2091 .unlock = spi_disable_blockprotect_at25f512a,
2092 .write = spi_chip_write_256,
2093 .read = spi_chip_read,
2094 .voltage = {2700, 3600},
2095 },
2096
2097 {
2098 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002099 .name = "AT25F512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002100 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002101 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002102 .model_id = ATMEL_AT25F512B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002103 .total_size = 64,
2104 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00002105 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2106 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002107 .tested = TEST_UNTESTED,
2108 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002109 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002110 .block_erasers =
2111 {
2112 {
2113 .eraseblocks = { {4 * 1024, 16} },
2114 .block_erase = spi_block_erase_20,
2115 }, {
2116 .eraseblocks = { {32 * 1024, 2} },
2117 .block_erase = spi_block_erase_52,
2118 }, {
2119 .eraseblocks = { {32 * 1024, 2} },
2120 .block_erase = spi_block_erase_d8,
2121 }, {
2122 .eraseblocks = { {64 * 1024, 1} },
2123 .block_erase = spi_block_erase_60,
2124 }, {
2125 .eraseblocks = { {64 * 1024, 1} },
2126 .block_erase = spi_block_erase_c7,
Stefan Tauner3c0fcd02012-09-21 12:46:56 +00002127 }, {
2128 .eraseblocks = { {64 * 1024, 1} },
2129 .block_erase = spi_block_erase_62,
Sean Nelson89187292009-12-23 12:02:55 +00002130 }
2131 },
Stefan Tauner7bf4ed92012-08-26 21:04:27 +00002132 .printlock = spi_prettyprint_status_register_at25f512b,
2133 .unlock = spi_disable_blockprotect_at25f512b,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002134 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002135 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002136 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002137 },
2138
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002139 {
2140 .vendor = "Atmel",
2141 .name = "AT25FS010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002142 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002143 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002144 .model_id = ATMEL_AT25FS010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002145 .total_size = 128,
2146 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002147 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00002148 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002149 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002150 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002151 .block_erasers =
2152 {
2153 {
2154 .eraseblocks = { {4 * 1024, 32} },
2155 .block_erase = spi_block_erase_20,
2156 }, {
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00002157 .eraseblocks = { {4 * 1024, 32} },
2158 .block_erase = spi_block_erase_d7,
2159 }, {
Sean Nelson89187292009-12-23 12:02:55 +00002160 .eraseblocks = { {32 * 1024, 4} },
2161 .block_erase = spi_block_erase_52,
2162 }, {
2163 .eraseblocks = { {32 * 1024, 4} },
2164 .block_erase = spi_block_erase_d8,
2165 }, {
2166 .eraseblocks = { {128 * 1024, 1} },
2167 .block_erase = spi_block_erase_60,
2168 }, {
2169 .eraseblocks = { {128 * 1024, 1} },
2170 .block_erase = spi_block_erase_c7,
2171 }
2172 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00002173 .printlock = spi_prettyprint_status_register_at25fs010,
2174 .unlock = spi_disable_blockprotect_at25fs010,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002175 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002176 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002177 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002178 },
2179
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002180 {
2181 .vendor = "Atmel",
2182 .name = "AT25FS040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002183 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002184 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002185 .model_id = ATMEL_AT25FS040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002186 .total_size = 512,
2187 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002188 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002189 .tested = TEST_UNTESTED,
2190 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002191 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002192 .block_erasers =
2193 {
2194 {
2195 .eraseblocks = { {4 * 1024, 128} },
2196 .block_erase = spi_block_erase_20,
2197 }, {
2198 .eraseblocks = { {64 * 1024, 8} },
2199 .block_erase = spi_block_erase_52,
2200 }, {
2201 .eraseblocks = { {64 * 1024, 8} },
2202 .block_erase = spi_block_erase_d8,
2203 }, {
2204 .eraseblocks = { {512 * 1024, 1} },
2205 .block_erase = spi_block_erase_60,
2206 }, {
2207 .eraseblocks = { {512 * 1024, 1} },
2208 .block_erase = spi_block_erase_c7,
2209 }
2210 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00002211 .printlock = spi_prettyprint_status_register_at25fs040,
2212 .unlock = spi_disable_blockprotect_at25fs040,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002213 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002214 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002215 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002216 },
2217
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002218 {
2219 .vendor = "Atmel",
jvma3ab6c62018-03-08 15:43:20 +01002220 .name = "AT25SF041",
2221 .bustype = BUS_SPI,
2222 .manufacture_id = ATMEL_ID,
2223 .model_id = ATMEL_AT25SF041,
2224 .total_size = 512,
2225 .page_size = 256,
2226 .feature_bits = FEATURE_WRSR_WREN,
2227 .tested = TEST_OK_PREW,
2228 .probe = probe_spi_rdid,
2229 .probe_timing = TIMING_ZERO,
2230 .block_erasers =
2231 {
2232 {
2233 .eraseblocks = { {4 * 1024, 128} },
2234 .block_erase = spi_block_erase_20,
2235 }, {
2236 .eraseblocks = { {32 * 1024, 16} },
2237 .block_erase = spi_block_erase_52,
2238 }, {
2239 .eraseblocks = { {64 * 1024, 8} },
2240 .block_erase = spi_block_erase_d8,
2241 }, {
2242 .eraseblocks = { {512 * 1024, 1} },
2243 .block_erase = spi_block_erase_60,
2244 }, {
2245 .eraseblocks = { {512 * 1024, 1} },
2246 .block_erase = spi_block_erase_c7,
2247 }
2248 },
2249 .printlock = spi_prettyprint_status_register_plain,
2250 .unlock = spi_disable_blockprotect,
2251 .write = spi_chip_write_256,
2252 .read = spi_chip_read,
2253 .voltage = {2500, 3600},
2254 },
2255
2256 {
2257 .vendor = "Atmel",
Evan Jensen291c1012018-05-17 14:30:19 -07002258 .name = "AT25SF081",
2259 .bustype = BUS_SPI,
2260 .manufacture_id = ATMEL_ID,
2261 .model_id = ATMEL_AT25SF081,
2262 .total_size = 1024,
2263 .page_size = 256,
2264 .feature_bits = FEATURE_WRSR_WREN,
2265 .tested = TEST_OK_PREW,
2266 .probe = probe_spi_rdid,
2267 .probe_timing = TIMING_ZERO,
2268 .block_erasers =
2269 {
2270 {
2271 .eraseblocks = { {4 * 1024, 256} },
2272 .block_erase = spi_block_erase_20,
2273 }, {
2274 .eraseblocks = { {32 * 1024, 32} },
2275 .block_erase = spi_block_erase_52,
2276 }, {
2277 .eraseblocks = { {64 * 1024, 16} },
2278 .block_erase = spi_block_erase_d8,
2279 }, {
2280 .eraseblocks = { {1024 * 1024, 1} },
2281 .block_erase = spi_block_erase_60,
2282 }, {
2283 .eraseblocks = { {1024 * 1024, 1} },
2284 .block_erase = spi_block_erase_c7,
2285 }
2286 },
2287 .printlock = spi_prettyprint_status_register_plain,
2288 .unlock = spi_disable_blockprotect,
2289 .write = spi_chip_write_256,
2290 .read = spi_chip_read,
2291 .voltage = {2300, 3600},
2292 },
2293
2294 {
2295 .vendor = "Atmel",
Stanislav Sedovf5775442018-03-07 14:16:51 -08002296 .name = "AT25SF161",
2297 .bustype = BUS_SPI,
2298 .manufacture_id = ATMEL_ID,
2299 .model_id = ATMEL_AT25SF161,
2300 .total_size = 2048,
2301 .page_size = 256,
2302 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
2303 .tested = TEST_OK_PREW,
2304 .probe = probe_spi_rdid,
2305 .probe_timing = TIMING_ZERO,
2306 .block_erasers =
2307 {
2308 {
2309 .eraseblocks = { {4 * 1024, 512} },
2310 .block_erase = spi_block_erase_20,
2311 }, {
2312 .eraseblocks = { {32 * 1024, 64} },
2313 .block_erase = spi_block_erase_52,
2314 }, {
2315 .eraseblocks = { {64 * 1024, 32} },
2316 .block_erase = spi_block_erase_d8,
2317 }, {
2318 .eraseblocks = { {2048 * 1024, 1} },
2319 .block_erase = spi_block_erase_60,
2320 }, {
2321 .eraseblocks = { {2048 * 1024, 1} },
2322 .block_erase = spi_block_erase_c7,
2323 }
2324 },
2325 .printlock = spi_prettyprint_status_register_plain,
2326 .unlock = spi_disable_blockprotect,
2327 .write = spi_chip_write_256,
2328 .read = spi_chip_read,
2329 .voltage = {2500, 3600},
2330 },
2331
2332 {
Alan Green57938f82019-06-27 15:06:43 +10002333 .vendor = "Atmel",
darkarnium41394382019-11-04 20:06:48 +00002334 .name = "AT25SF321",
2335 .bustype = BUS_SPI,
2336 .manufacture_id = ATMEL_ID,
2337 .model_id = ATMEL_AT25SF321,
2338 .total_size = 4096,
2339 .page_size = 256,
2340 .feature_bits = FEATURE_WRSR_WREN,
2341 .tested = TEST_OK_PR,
2342 .probe = probe_spi_rdid,
2343 .probe_timing = TIMING_ZERO,
2344 .block_erasers =
2345 {
2346 {
2347 .eraseblocks = { {4 * 1024, 1024} },
2348 .block_erase = spi_block_erase_20,
2349 }, {
2350 .eraseblocks = { {32 * 1024, 128} },
2351 .block_erase = spi_block_erase_52,
2352 }, {
2353 .eraseblocks = { {64 * 1024, 64} },
2354 .block_erase = spi_block_erase_d8,
2355 }, {
2356 .eraseblocks = { {4096 * 1024, 1} },
2357 .block_erase = spi_block_erase_60,
2358 }, {
2359 .eraseblocks = { {4096 * 1024, 1} },
2360 .block_erase = spi_block_erase_c7,
2361 }
2362 },
2363 .printlock = spi_prettyprint_status_register_plain,
2364 .unlock = spi_disable_blockprotect,
2365 .write = spi_chip_write_256,
2366 .read = spi_chip_read,
2367 .voltage = {2500, 3600},
2368 },
2369
2370 {
2371 .vendor = "Atmel",
Hal Martin49e23d22018-05-27 14:18:43 +02002372 .name = "AT25SL128A",
2373 .bustype = BUS_SPI,
2374 .manufacture_id = ATMEL_ID,
2375 .model_id = ATMEL_AT25SL128A,
2376 .total_size = 16384,
2377 .page_size = 256,
2378 /* supports SFDP */
Nikolai Artemievd32e18b2022-02-15 18:06:55 +11002379 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_WRSR2,
Hal Martin49e23d22018-05-27 14:18:43 +02002380 .tested = TEST_OK_PREW,
2381 .probe = probe_spi_rdid,
2382 .probe_timing = TIMING_ZERO,
2383 .block_erasers =
2384 {
2385 {
2386 .eraseblocks = { {4 * 1024, 4096} },
2387 .block_erase = spi_block_erase_20,
2388 }, {
2389 .eraseblocks = { {32 * 1024, 512} },
2390 .block_erase = spi_block_erase_52,
2391 }, {
2392 .eraseblocks = { {64 * 1024, 256} },
2393 .block_erase = spi_block_erase_d8,
2394 }, {
2395 .eraseblocks = { {16 * 1024 * 1024, 1} },
2396 .block_erase = spi_block_erase_60,
2397 }, {
2398 .eraseblocks = { {16 * 1024 * 1024, 1} },
2399 .block_erase = spi_block_erase_c7,
2400 }
2401 },
2402 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
2403 .unlock = spi_disable_blockprotect,
2404 .write = spi_chip_write_256,
2405 .read = spi_chip_read,
2406 .voltage = {1700, 2000},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +11002407 .reg_bits =
2408 {
2409 .srp = {STATUS1, 7, RW},
2410 .srl = {STATUS2, 0, RW},
2411 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
2412 .tb = {STATUS1, 5, RW},
2413 .sec = {STATUS1, 6, RW},
2414 .cmp = {STATUS2, 6, RW},
2415 },
2416 .decode_range = decode_range_spi25,
Hal Martin49e23d22018-05-27 14:18:43 +02002417 },
2418
2419 {
Stanislav Sedovf5775442018-03-07 14:16:51 -08002420 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002421 .name = "AT26DF041",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002422 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002423 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002424 .model_id = ATMEL_AT26DF041,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002425 .total_size = 512,
2426 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002427 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner94b39b42012-10-27 00:06:02 +00002428 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002429 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002430 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002431 .block_erasers =
2432 {
2433 {
Stefan Tauner94b39b42012-10-27 00:06:02 +00002434 .eraseblocks = { {256, 2048} },
2435 .block_erase = spi_block_erase_81,
2436 }, {
2437 .eraseblocks = { {2 * 1024, 256} },
2438 .block_erase = spi_block_erase_50,
2439 }, {
Sean Nelson89187292009-12-23 12:02:55 +00002440 .eraseblocks = { {4 * 1024, 128} },
2441 .block_erase = spi_block_erase_20,
2442 }
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002443 },
Stefan Taunercecb2c52013-06-20 22:55:41 +00002444 .printlock = spi_prettyprint_status_register_plain,
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002445 /* Supports also an incompatible page write (of exactly 256 B) and an auto-erasing write. */
Stefan Tauner94b39b42012-10-27 00:06:02 +00002446 .write = spi_chip_write_1,
2447 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002448 .voltage = {2700, 3600}, /* 3.0-3.6V for higher speed, 2.7-3.6V normal */
FENG yu ningff692fb2008-12-08 18:15:10 +00002449 },
2450
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002451 {
2452 .vendor = "Atmel",
2453 .name = "AT26DF081A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002454 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002455 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002456 .model_id = ATMEL_AT26DF081A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002457 .total_size = 1024,
2458 .page_size = 256,
Mathias Krause2c3afa32011-01-17 07:45:54 +00002459 .feature_bits = FEATURE_WRSR_WREN,
2460 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002461 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002462 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002463 .block_erasers =
2464 {
2465 {
2466 .eraseblocks = { {4 * 1024, 256} },
2467 .block_erase = spi_block_erase_20,
2468 }, {
2469 .eraseblocks = { {32 * 1024, 32} },
2470 .block_erase = spi_block_erase_52,
2471 }, {
2472 .eraseblocks = { {64 * 1024, 16} },
2473 .block_erase = spi_block_erase_d8,
2474 }, {
2475 .eraseblocks = { {1024 * 1024, 1} },
2476 .block_erase = spi_block_erase_60,
2477 }, {
2478 .eraseblocks = { {1024 * 1024, 1} },
2479 .block_erase = spi_block_erase_c7,
2480 }
2481 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002482 .printlock = spi_prettyprint_status_register_at26df081a,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002483 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002484 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002485 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002486 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002487 },
2488
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002489 {
2490 .vendor = "Atmel",
2491 .name = "AT26DF161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002492 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002493 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002494 .model_id = ATMEL_AT26DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002495 .total_size = 2048,
2496 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002497 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +00002498 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002499 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002500 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002501 .block_erasers =
2502 {
2503 {
2504 .eraseblocks = { {4 * 1024, 512} },
2505 .block_erase = spi_block_erase_20,
2506 }, {
2507 .eraseblocks = { {32 * 1024, 64} },
2508 .block_erase = spi_block_erase_52,
2509 }, {
2510 .eraseblocks = { {64 * 1024, 32} },
2511 .block_erase = spi_block_erase_d8,
2512 }, {
2513 .eraseblocks = { {2 * 1024 * 1024, 1} },
2514 .block_erase = spi_block_erase_60,
2515 }, {
2516 .eraseblocks = { {2 * 1024 * 1024, 1} },
2517 .block_erase = spi_block_erase_c7,
2518 }
2519 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00002520 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002521 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002522 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002523 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002524 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002525 },
2526
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002527 {
2528 .vendor = "Atmel",
2529 .name = "AT26DF161A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002530 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002531 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002532 .model_id = ATMEL_AT26DF161A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002533 .total_size = 2048,
2534 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002535 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002536 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002537 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002538 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002539 .block_erasers =
2540 {
2541 {
2542 .eraseblocks = { {4 * 1024, 512} },
2543 .block_erase = spi_block_erase_20,
2544 }, {
2545 .eraseblocks = { {32 * 1024, 64} },
2546 .block_erase = spi_block_erase_52,
2547 }, {
2548 .eraseblocks = { {64 * 1024, 32} },
2549 .block_erase = spi_block_erase_d8,
2550 }, {
2551 .eraseblocks = { {2 * 1024 * 1024, 1} },
2552 .block_erase = spi_block_erase_60,
2553 }, {
2554 .eraseblocks = { {2 * 1024 * 1024, 1} },
2555 .block_erase = spi_block_erase_c7,
2556 }
2557 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002558 .printlock = spi_prettyprint_status_register_at26df081a,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002559 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002560 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002561 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002562 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002563 },
2564
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002565 {
2566 .vendor = "Atmel",
2567 .name = "AT26F004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002568 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002569 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002570 .model_id = ATMEL_AT26F004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002571 .total_size = 512,
2572 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002573 .feature_bits = FEATURE_WRSR_WREN,
Alan Green908adf42019-07-03 15:34:06 +10002574 .tested = {.probe = NT, .read = NT, .erase = NT, .write = BAD},
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002575 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002576 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002577 .block_erasers =
2578 {
2579 {
2580 .eraseblocks = { {4 * 1024, 128} },
2581 .block_erase = spi_block_erase_20,
2582 }, {
2583 .eraseblocks = { {32 * 1024, 16} },
2584 .block_erase = spi_block_erase_52,
2585 }, {
2586 .eraseblocks = { {64 * 1024, 8} },
2587 .block_erase = spi_block_erase_d8,
2588 }, {
2589 .eraseblocks = { {512 * 1024, 1} },
2590 .block_erase = spi_block_erase_60,
2591 }, {
2592 .eraseblocks = { {512 * 1024, 1} },
2593 .block_erase = spi_block_erase_c7,
2594 }
2595 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002596 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Alan Greencbb85c02019-06-25 13:42:34 +10002597 .write = NULL, /* Incompatible Page write */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002598 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002599 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002600 },
2601
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002602 {
2603 .vendor = "Atmel",
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002604 .name = "AT29C010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002605 .bustype = BUS_PARALLEL,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002606 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002607 .model_id = ATMEL_AT29C010A,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002608 .total_size = 128,
2609 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00002610 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002611 .tested = TEST_OK_PRE,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002612 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00002613 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00002614 .block_erasers =
2615 {
2616 {
2617 .eraseblocks = { {128 * 1024, 1} },
2618 .block_erase = erase_chip_block_jedec,
2619 }
2620 },
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002621 .write = write_jedec, /* FIXME */
2622 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002623 .voltage = {4500, 5500},
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002624 },
2625
2626 {
2627 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002628 .name = "AT29C020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002629 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002630 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002631 .model_id = ATMEL_AT29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002632 .total_size = 256,
2633 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002634 .feature_bits = FEATURE_LONG_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00002635 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002636 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00002637 .probe_timing = 10000, /* 10ms */
Sean Nelson89187292009-12-23 12:02:55 +00002638 .block_erasers =
2639 {
2640 {
2641 .eraseblocks = { {256 * 1024, 1} },
2642 .block_erase = erase_chip_block_jedec,
2643 }
2644 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002645 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002646 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002647 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002648 },
2649
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002650 {
2651 .vendor = "Atmel",
2652 .name = "AT29C040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002653 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002654 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002655 .model_id = ATMEL_AT29C040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002656 .total_size = 512,
2657 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002658 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002659 .tested = TEST_UNTESTED,
2660 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00002661 .probe_timing = 10000, /* 10 ms */
Sean Nelson89187292009-12-23 12:02:55 +00002662 .block_erasers =
2663 {
2664 {
2665 .eraseblocks = { {512 * 1024, 1} },
2666 .block_erase = erase_chip_block_jedec,
2667 }
2668 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002669 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002670 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002671 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00002672 },
2673
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002674 {
2675 .vendor = "Atmel",
Alan Green1f9cc7d2019-07-01 11:10:45 +10002676 .name = "AT29C512",
2677 .bustype = BUS_PARALLEL,
2678 .manufacture_id = ATMEL_ID,
2679 .model_id = ATMEL_AT29C512,
2680 .total_size = 64,
2681 .page_size = 128,
2682 .feature_bits = FEATURE_LONG_RESET,
2683 .tested = TEST_OK_PREW,
2684 .probe = probe_jedec,
2685 .probe_timing = 10000, /* 10mS, Enter=Exec */
2686 .block_erasers =
2687 {
2688 {
2689 .eraseblocks = { {64 * 1024, 1} },
2690 .block_erase = erase_chip_block_jedec,
2691 }
2692 },
2693 .write = write_jedec,
2694 .read = read_memmapped,
2695 .voltage = {4500, 5500},
2696 },
2697
2698 {
2699 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002700 .name = "AT45CS1282",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002701 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002702 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002703 .model_id = ATMEL_AT45CS1282,
Alan Greencbb85c02019-06-25 13:42:34 +10002704 .total_size = 16896, /* No power of two sizes */
2705 .page_size = 1056, /* No power of two sizes */
Steven Zakulec3603a282012-05-02 20:07:57 +00002706 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner1dd5d3a2013-08-27 18:02:19 +00002707 /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */
2708 .feature_bits = FEATURE_OTP,
2709 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002710 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002711 .probe_timing = TIMING_ZERO,
Stefan Tauner1dd5d3a2013-08-27 18:02:19 +00002712 .block_erasers =
2713 {
2714 {
2715 .eraseblocks = {
2716 {8 * 1056, 1}, /* sector 0a: opcode 50h */
2717 {248 * 1056, 1}, /* sector 0b: opcode 7Ch */
2718 {256 * 1056, 63}, /* sectors 1 - 63: opcode 7Ch */
2719 },
2720 .block_erase = spi_erase_at45cs_sector,
2721 }
2722 },
2723 .printlock = spi_prettyprint_status_register_plain,
Stefan Tauner1dd5d3a2013-08-27 18:02:19 +00002724 .write = spi_write_at45db,
2725 .read = spi_read_at45db,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002726 .voltage = {2700, 3600},
Alan Greenc1863ca2019-06-27 15:08:03 +10002727 .gran = write_gran_1056bytes,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002728 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002729
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002730 {
2731 .vendor = "Atmel",
2732 .name = "AT45DB011D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002733 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002734 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002735 .model_id = ATMEL_AT45DB011D,
Alan Greencbb85c02019-06-25 13:42:34 +10002736 .total_size = 128, /* or 132, determined from status register */
2737 .page_size = 256, /* or 264, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00002738 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002739 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2740 .feature_bits = FEATURE_OTP,
Stefan Tauner5c316f92015-02-08 21:57:52 +00002741 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002742 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002743 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002744 .block_erasers =
2745 {
2746 {
2747 .eraseblocks = { {256, 512} },
2748 .block_erase = spi_erase_at45db_page,
2749 }, {
2750 .eraseblocks = { {8 * 256, 512/8} },
2751 .block_erase = spi_erase_at45db_block,
2752 }, {
2753 .eraseblocks = {
2754 {8 * 256, 1},
2755 {120 * 256, 1},
2756 {128 * 256, 3},
2757 },
2758 .block_erase = spi_erase_at45db_sector
2759 }, {
2760 .eraseblocks = { {128 * 1024, 1} },
2761 .block_erase = spi_erase_at45db_chip,
2762 }
2763 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002764 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10002765 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002766 /* granularity will be set by the probing function. */
2767 .write = spi_write_at45db,
2768 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002769 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002770 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002771
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002772 {
2773 .vendor = "Atmel",
2774 .name = "AT45DB021D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002775 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002776 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002777 .model_id = ATMEL_AT45DB021D,
Alan Greencbb85c02019-06-25 13:42:34 +10002778 .total_size = 256, /* or 264, determined from status register */
2779 .page_size = 256, /* or 264, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00002780 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002781 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2782 .feature_bits = FEATURE_OTP,
Stefan Tauner6697f712014-08-06 15:09:15 +00002783 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002784 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002785 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002786 .block_erasers =
2787 {
2788 {
2789 .eraseblocks = { {256, 1024} },
2790 .block_erase = spi_erase_at45db_page,
2791 }, {
2792 .eraseblocks = { {8 * 256, 1024/8} },
2793 .block_erase = spi_erase_at45db_block,
2794 }, {
2795 .eraseblocks = {
2796 {8 * 256, 1},
2797 {120 * 256, 1},
2798 {128 * 256, 7},
2799 },
2800 .block_erase = spi_erase_at45db_sector
2801 }, {
2802 .eraseblocks = { {256 * 1024, 1} },
2803 .block_erase = spi_erase_at45db_chip,
2804 }
2805 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002806 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10002807 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002808 /* granularity will be set by the probing function. */
2809 .write = spi_write_at45db,
2810 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002811 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002812 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002813
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002814 {
2815 .vendor = "Atmel",
2816 .name = "AT45DB041D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002817 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002818 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002819 .model_id = ATMEL_AT45DB041D,
Alan Greencbb85c02019-06-25 13:42:34 +10002820 .total_size = 512, /* or 528, determined from status register */
2821 .page_size = 256, /* or 264, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00002822 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002823 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2824 .feature_bits = FEATURE_OTP,
2825 .tested = TEST_OK_PREW,
2826 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002827 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002828 .block_erasers =
2829 {
2830 {
2831 .eraseblocks = { {256, 2048} },
2832 .block_erase = spi_erase_at45db_page,
2833 }, {
2834 .eraseblocks = { {8 * 256, 2048/8} },
2835 .block_erase = spi_erase_at45db_block,
2836 }, {
2837 .eraseblocks = {
2838 {8 * 256, 1},
2839 {248 * 256, 1},
2840 {256 * 256, 7},
2841 },
2842 .block_erase = spi_erase_at45db_sector
2843 }, {
2844 .eraseblocks = { {512 * 1024, 1} },
2845 .block_erase = spi_erase_at45db_chip,
2846 }
2847 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002848 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10002849 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002850 /* granularity will be set by the probing function. */
2851 .write = spi_write_at45db,
2852 .read = spi_read_at45db, /* Fast read (0x0B) supported */
2853 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002854 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002855
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002856 {
2857 .vendor = "Atmel",
2858 .name = "AT45DB081D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002859 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002860 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002861 .model_id = ATMEL_AT45DB081D,
Alan Greencbb85c02019-06-25 13:42:34 +10002862 .total_size = 1024, /* or 1056, determined from status register */
2863 .page_size = 256, /* or 264, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00002864 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002865 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2866 .feature_bits = FEATURE_OTP,
Angel Pons250aeba2018-09-30 20:28:22 +02002867 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002868 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002869 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002870 .block_erasers =
2871 {
2872 {
2873 .eraseblocks = { {256, 4096} },
2874 .block_erase = spi_erase_at45db_page,
2875 }, {
2876 .eraseblocks = { {8 * 256, 4096/8} },
2877 .block_erase = spi_erase_at45db_block,
2878 }, {
2879 .eraseblocks = {
2880 {8 * 256, 1},
2881 {248 * 256, 1},
2882 {256 * 256, 15},
2883 },
2884 .block_erase = spi_erase_at45db_sector
2885 }, {
2886 .eraseblocks = { {1024 * 1024, 1} },
2887 .block_erase = spi_erase_at45db_chip,
2888 }
2889 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002890 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10002891 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002892 /* granularity will be set by the probing function. */
2893 .write = spi_write_at45db,
2894 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002895 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002896 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002897
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002898 {
2899 .vendor = "Atmel",
2900 .name = "AT45DB161D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002901 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002902 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002903 .model_id = ATMEL_AT45DB161D,
Alan Greencbb85c02019-06-25 13:42:34 +10002904 .total_size = 2048, /* or 2112, determined from status register */
2905 .page_size = 512, /* or 528, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00002906 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002907 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2908 .feature_bits = FEATURE_OTP,
2909 .tested = TEST_OK_PREW,
2910 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002911 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002912 .block_erasers =
2913 {
2914 {
2915 .eraseblocks = { {512, 4096} },
2916 .block_erase = spi_erase_at45db_page,
2917 }, {
2918 .eraseblocks = { {8 * 512, 4096/8} },
2919 .block_erase = spi_erase_at45db_block,
2920 }, {
2921 .eraseblocks = {
2922 {8 * 512, 1},
2923 {248 * 512, 1},
2924 {256 * 512, 15},
2925 },
2926 .block_erase = spi_erase_at45db_sector
2927 }, {
2928 .eraseblocks = { {2048 * 1024, 1} },
2929 .block_erase = spi_erase_at45db_chip,
2930 }
2931 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002932 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10002933 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002934 /* granularity will be set by the probing function. */
2935 .write = spi_write_at45db,
2936 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002937 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002938 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002939
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002940 {
2941 .vendor = "Atmel",
2942 .name = "AT45DB321C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002943 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002944 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002945 .model_id = ATMEL_AT45DB321C,
Alan Greencbb85c02019-06-25 13:42:34 +10002946 .total_size = 4224, /* No power of two sizes */
2947 .page_size = 528, /* No power of two sizes */
Steven Zakulec3603a282012-05-02 20:07:57 +00002948 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002949 /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */
2950 .feature_bits = FEATURE_OTP,
2951 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002952 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002953 .probe_timing = TIMING_ZERO,
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002954 .block_erasers =
2955 {
2956 {
2957 .eraseblocks = { {528, 8192} },
2958 .block_erase = spi_erase_at45db_page,
2959 }, {
2960 .eraseblocks = { {8 * 528, 8192/8} },
2961 .block_erase = spi_erase_at45db_block,
2962 }, /* Although the datasheets describes sectors (which can be write protected)
2963 * there seems to be no erase functions for them.
Stefan Tauner23e10b82016-01-23 16:16:49 +00002964 {
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002965 .eraseblocks = {
2966 {8 * 528, 1},
2967 {120 * 528, 1},
2968 {128 * 528, 63},
2969 },
2970 .block_erase = spi_erase_at45db_sector
2971 }, */ {
2972 .eraseblocks = { {4224 * 1024, 1} },
2973 .block_erase = spi_erase_at45db_chip,
2974 }
2975 },
2976 .printlock = spi_prettyprint_status_register_at45db, /* Bit 0 is undefined, no lockdown */
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00002977 .write = spi_write_at45db,
2978 .read = spi_read_at45db_e8, /* 3 address and 4 dummy bytes */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002979 .voltage = {2700, 3600},
Alan Greenc1863ca2019-06-27 15:08:03 +10002980 .gran = write_gran_528bytes,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002981 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002982
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002983 {
2984 .vendor = "Atmel",
2985 .name = "AT45DB321D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002986 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002987 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002988 .model_id = ATMEL_AT45DB321D,
Alan Greencbb85c02019-06-25 13:42:34 +10002989 .total_size = 4096, /* or 4224, determined from status register */
2990 .page_size = 512, /* or 528, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00002991 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002992 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
Daniel Lenski65922a32012-02-15 23:40:23 +00002993 .feature_bits = FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +00002994 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002995 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002996 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002997 .block_erasers =
2998 {
2999 {
3000 .eraseblocks = { {512, 8192} },
3001 .block_erase = spi_erase_at45db_page,
3002 }, {
3003 .eraseblocks = { {8 * 512, 8192/8} },
3004 .block_erase = spi_erase_at45db_block,
3005 }, {
3006 .eraseblocks = {
3007 {8 * 512, 1},
3008 {120 * 512, 1},
3009 {128 * 512, 63},
3010 },
3011 .block_erase = spi_erase_at45db_sector
3012 }, {
3013 .eraseblocks = { {4096 * 1024, 1} },
3014 .block_erase = spi_erase_at45db_chip,
3015 }
3016 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003017 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10003018 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003019 /* granularity will be set by the probing function. */
3020 .write = spi_write_at45db,
3021 .read = spi_read_at45db, /* Fast read (0x0B) supported */
3022 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
3023 },
3024
3025 {
3026 .vendor = "Atmel",
3027 .name = "AT45DB321E",
3028 .bustype = BUS_SPI,
3029 .manufacture_id = ATMEL_ID,
3030 .model_id = ATMEL_AT45DB321C,
Alan Greencbb85c02019-06-25 13:42:34 +10003031 .total_size = 4096, /* or 4224, determined from status register */
3032 .page_size = 512, /* or 528, determined from status register */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003033 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
3034 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
3035 .feature_bits = FEATURE_OTP,
3036 .tested = TEST_UNTESTED,
3037 .probe = probe_spi_at45db,
3038 .probe_timing = TIMING_ZERO,
3039 .block_erasers =
3040 {
3041 {
3042 .eraseblocks = { {512, 8192} },
3043 .block_erase = spi_erase_at45db_page,
3044 }, {
3045 .eraseblocks = { {8 * 512, 8192/8} },
3046 .block_erase = spi_erase_at45db_block,
3047 }, {
3048 .eraseblocks = {
3049 {8 * 512, 1},
3050 {120 * 512, 1},
3051 {128 * 512, 63},
3052 },
3053 .block_erase = spi_erase_at45db_sector
3054 }, {
3055 .eraseblocks = { {4096 * 1024, 1} },
3056 .block_erase = spi_erase_at45db_chip,
3057 }
3058 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003059 .printlock = spi_prettyprint_status_register_at45db, /* has a 2nd status register */
Alan Greenc1863ca2019-06-27 15:08:03 +10003060 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003061 /* granularity will be set by the probing function. */
3062 .write = spi_write_at45db,
3063 .read = spi_read_at45db, /* Fast read (0x0B) supported */
3064 .voltage = {2500, 3600}, /* 2.3-3.6V & 2.5-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00003065 },
FENG yu ningff692fb2008-12-08 18:15:10 +00003066
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003067 {
3068 .vendor = "Atmel",
3069 .name = "AT45DB642D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003070 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003071 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003072 .model_id = ATMEL_AT45DB642D,
Alan Greencbb85c02019-06-25 13:42:34 +10003073 .total_size = 8192, /* or 8448, determined from status register */
3074 .page_size = 1024, /* or 1056, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00003075 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003076 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
3077 .feature_bits = FEATURE_OTP,
Stefan Tauner5c316f92015-02-08 21:57:52 +00003078 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003079 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003080 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003081 .block_erasers =
3082 {
3083 {
3084 .eraseblocks = { {1024, 8192} },
3085 .block_erase = spi_erase_at45db_page,
3086 }, {
3087 .eraseblocks = { {8 * 1024, 8192/8} },
3088 .block_erase = spi_erase_at45db_block,
3089 }, {
3090 .eraseblocks = {
3091 {8 * 1024, 1},
3092 {248 * 1024, 1},
3093 {256 * 1024, 31},
3094 },
3095 .block_erase = spi_erase_at45db_sector
3096 }, {
3097 .eraseblocks = { {8192 * 1024, 1} },
3098 .block_erase = spi_erase_at45db_chip,
3099 }
3100 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003101 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10003102 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003103 /* granularity will be set by the probing function. */
3104 .write = spi_write_at45db,
3105 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003106 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00003107 },
FENG yu ningff692fb2008-12-08 18:15:10 +00003108
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003109 {
3110 .vendor = "Atmel",
Alan Green1f9cc7d2019-07-01 11:10:45 +10003111 .name = "AT49(H)F010",
3112 .bustype = BUS_PARALLEL,
3113 .manufacture_id = ATMEL_ID,
3114 .model_id = ATMEL_AT49F010,
3115 .total_size = 128,
3116 .page_size = 0, /* unused */
3117 .feature_bits = FEATURE_EITHER_RESET,
3118 .tested = TEST_OK_PREW,
3119 .probe = probe_jedec,
3120 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3121 .block_erasers =
3122 {
3123 {
3124 .eraseblocks = { {128 * 1024, 1} },
3125 .block_erase = erase_chip_block_jedec,
3126 }
3127 },
3128 .printlock = printlock_at49f,
3129 .write = write_jedec_1,
3130 .read = read_memmapped,
3131 .voltage = {4500, 5500},
3132 },
3133
3134 {
3135 .vendor = "Atmel",
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003136 .name = "AT49BV512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003137 .bustype = BUS_PARALLEL,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003138 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003139 .model_id = ATMEL_AT49BV512,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003140 .total_size = 64,
3141 .page_size = 64,
Sean Nelson35727f72010-01-28 23:55:12 +00003142 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +00003143 .tested = TEST_OK_PREW,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003144 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003145 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00003146 .block_erasers =
3147 {
3148 {
3149 .eraseblocks = { {64 * 1024, 1} },
3150 .block_erase = erase_chip_block_jedec,
3151 }
3152 },
Sean Nelson35727f72010-01-28 23:55:12 +00003153 .write = write_jedec_1,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003154 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003155 .voltage = {2700, 3600},
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003156 },
3157
3158 {
3159 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003160 .name = "AT49F002(N)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003161 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003162 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003163 .model_id = ATMEL_AT49F002N,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003164 .total_size = 256,
3165 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00003166 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003167 .tested = TEST_UNTESTED,
3168 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003169 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00003170 .block_erasers =
3171 {
3172 {
3173 .eraseblocks = {
3174 {16 * 1024, 1},
3175 {8 * 1024, 2},
3176 {96 * 1024, 1},
3177 {128 * 1024, 1},
3178 },
3179 .block_erase = erase_sector_jedec,
3180 }, {
3181 .eraseblocks = { {256 * 1024, 1} },
3182 .block_erase = erase_chip_block_jedec,
3183 }
3184 },
Sean Nelson35727f72010-01-28 23:55:12 +00003185 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003186 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003187 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003188 },
3189
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003190 {
3191 .vendor = "Atmel",
3192 .name = "AT49F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003193 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003194 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003195 .model_id = ATMEL_AT49F002NT,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003196 .total_size = 256,
3197 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00003198 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003199 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003200 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003201 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00003202 .block_erasers =
3203 {
3204 {
3205 .eraseblocks = {
3206 {128 * 1024, 1},
3207 {96 * 1024, 1},
3208 {8 * 1024, 2},
3209 {16 * 1024, 1},
3210 },
3211 .block_erase = erase_sector_jedec,
3212 }, {
3213 .eraseblocks = { {256 * 1024, 1} },
3214 .block_erase = erase_chip_block_jedec,
3215 }
3216 },
Sean Nelson35727f72010-01-28 23:55:12 +00003217 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003218 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003219 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00003220 },
3221
Daniel Lenskidf90d3a2010-07-22 11:44:38 +00003222 {
Uwe Hermannc74e9772011-09-08 19:55:18 +00003223 .vendor = "Atmel",
David Borgf5a30f62012-04-15 13:16:32 +00003224 .name = "AT49F020",
3225 .bustype = BUS_PARALLEL,
3226 .manufacture_id = ATMEL_ID,
3227 .model_id = ATMEL_AT49F020,
3228 .total_size = 256,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00003229 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00003230 .feature_bits = FEATURE_EITHER_RESET,
3231 .tested = TEST_OK_PRE,
3232 .probe = probe_jedec,
3233 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3234 .block_erasers =
3235 {
3236 {
3237 .eraseblocks = { {256 * 1024, 1} },
3238 .block_erase = erase_chip_block_jedec,
3239 }
3240 /* Chip features an optional permanent write protection
3241 * of the first 8 kB. The erase function is the same as
3242 * above, but 00000H to 01FFFH will not be erased.
3243 * FIXME: add another eraser when partial erasers are
3244 * supported.
3245 */
3246 },
3247 .printlock = printlock_at49f,
3248 .write = write_jedec_1,
3249 .read = read_memmapped,
3250 .voltage = {4500, 5500},
3251 },
3252
3253 {
3254 .vendor = "Atmel",
3255 .name = "AT49F040",
3256 .bustype = BUS_PARALLEL,
3257 .manufacture_id = ATMEL_ID,
3258 .model_id = ATMEL_AT49F040,
3259 .total_size = 512,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00003260 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00003261 .feature_bits = FEATURE_EITHER_RESET,
3262 .tested = TEST_UNTESTED,
3263 .probe = probe_jedec,
3264 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3265 .block_erasers =
3266 {
3267 {
3268 .eraseblocks = { {512 * 1024, 1} },
3269 .block_erase = erase_chip_block_jedec,
3270 }
3271 /* Chip features an optional permanent write protection
3272 * of the first 16 kB. The erase function is the same as
3273 * above, but 00000H to 03FFFH will not be erased.
3274 * FIXME: add another eraser when partial erasers are
3275 * supported.
3276 */
3277 },
3278 .printlock = printlock_at49f,
3279 .write = write_jedec_1,
3280 .read = read_memmapped,
3281 .voltage = {4500, 5500},
3282 },
3283
3284 {
3285 .vendor = "Atmel",
Andrew Morgan8dd97f92012-08-13 23:43:46 +00003286 .name = "AT49F080",
3287 .bustype = BUS_PARALLEL,
3288 .manufacture_id = ATMEL_ID,
3289 .model_id = ATMEL_AT49F080,
3290 .total_size = 1024,
3291 .page_size = 0, /* unused */
3292 .feature_bits = FEATURE_EITHER_RESET,
3293 .tested = TEST_UNTESTED,
3294 .probe = probe_jedec,
3295 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3296 .block_erasers =
3297 {
3298 {
3299 .eraseblocks = { {1024 * 1024, 1} },
3300 .block_erase = erase_chip_block_jedec,
3301 }
3302 /* Chip features an optional permanent write protection
3303 * of the first 16 kB. The erase function is the same as
3304 * above, but 00000H to 03FFFH will not be erased.
3305 * FIXME: add another eraser when partial erasers are
3306 * supported.
3307 */
3308 },
3309 .printlock = printlock_at49f,
3310 .write = write_jedec_1,
3311 .read = read_memmapped,
3312 .voltage = {4500, 5500},
3313 },
3314
3315 {
3316 /* 'top' version of AT49F080. equal in all aspects but the boot block address */
3317 .vendor = "Atmel",
3318 .name = "AT49F080T",
3319 .bustype = BUS_PARALLEL,
3320 .manufacture_id = ATMEL_ID,
3321 .model_id = ATMEL_AT49F080T,
3322 .total_size = 1024,
3323 .page_size = 0, /* unused */
3324 .feature_bits = FEATURE_EITHER_RESET,
3325 .tested = TEST_UNTESTED,
3326 .probe = probe_jedec,
3327 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3328 .block_erasers =
3329 {
3330 {
3331 .eraseblocks = { {1024 * 1024, 1} },
3332 .block_erase = erase_chip_block_jedec,
3333 }
3334 /* Chip features an optional permanent write protection
3335 * of the first 16 kB. The erase function is the same as
3336 * above, but FC000H to FFFFFH will not be erased.
3337 * FIXME: add another eraser when partial erasers are
3338 * supported.
3339 */
3340 },
3341 .printlock = printlock_at49f,
3342 .write = write_jedec_1,
3343 .read = read_memmapped,
3344 .voltage = {4500, 5500},
3345 },
3346
3347 {
3348 .vendor = "Atmel",
Uwe Hermannc74e9772011-09-08 19:55:18 +00003349 .name = "AT49LH002",
3350 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
3351 .manufacture_id = ATMEL_ID,
3352 .model_id = ATMEL_AT49LH002,
3353 .total_size = 256,
3354 .page_size = 0, /* unused */
Stefan Tauner7de93932014-08-03 13:05:45 +00003355 .feature_bits = FEATURE_REGISTERMAP,
Uwe Hermannc74e9772011-09-08 19:55:18 +00003356 .tested = TEST_UNTESTED,
Stefan Tauner7de93932014-08-03 13:05:45 +00003357 .probe = probe_82802ab,
3358 .probe_timing = TIMING_ZERO,
Uwe Hermannc74e9772011-09-08 19:55:18 +00003359 .block_erasers =
3360 {
3361 {
3362 .eraseblocks = {
3363 {64 * 1024, 3},
3364 {32 * 1024, 1},
3365 {8 * 1024, 2},
3366 {16 * 1024, 1},
3367 },
Stefan Tauner7de93932014-08-03 13:05:45 +00003368 .block_erase = NULL, /* TODO: Implement. */
Uwe Hermannc74e9772011-09-08 19:55:18 +00003369 }, {
3370 .eraseblocks = {
3371 {64 * 1024, 4},
3372 },
Stefan Tauner7de93932014-08-03 13:05:45 +00003373 .block_erase = erase_block_82802ab,
3374 },
3375 },
3376 .printlock = printlock_regspace2_block_eraser_0,
3377 .unlock = unlock_regspace2_block_eraser_0,
3378 .write = write_82802ab,
3379 .read = read_memmapped,
3380 .voltage = {3000, 3600},
3381 },
3382
3383 {
3384 .vendor = "Atmel",
Stefan Tauner7de93932014-08-03 13:05:45 +00003385 .name = "AT49LH004",
3386 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
3387 .manufacture_id = ATMEL_ID,
3388 .model_id = ATMEL_AT49LH004,
3389 .total_size = 512,
3390 .page_size = 0, /* unused */
3391 .feature_bits = FEATURE_REGISTERMAP,
3392 .tested = TEST_UNTESTED,
3393 .probe = probe_82802ab,
3394 .probe_timing = TIMING_ZERO,
3395 .block_erasers =
3396 {
3397 {
3398 .eraseblocks = {
3399 {64 * 1024, 7},
3400 {32 * 1024, 1},
3401 {8 * 1024, 2},
3402 {16 * 1024, 1},
3403 },
3404 .block_erase = erase_block_82802ab,
3405 }, {
3406 .eraseblocks = {
3407 {64 * 1024, 8},
3408 },
Uwe Hermannc74e9772011-09-08 19:55:18 +00003409 .block_erase = NULL, /* TODO: Implement. */
3410 },
3411 },
Stefan Tauner7de93932014-08-03 13:05:45 +00003412 .printlock = printlock_regspace2_block_eraser_0,
3413 .unlock = unlock_regspace2_block_eraser_0,
Uwe Hermannc74e9772011-09-08 19:55:18 +00003414 .write = write_82802ab,
3415 .read = read_memmapped,
3416 .voltage = {3000, 3600},
3417 },
3418
3419 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003420 .vendor = "Atmel",
3421 .name = "AT49LH00B4",
3422 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
3423 .manufacture_id = ATMEL_ID,
3424 .model_id = ATMEL_AT49LH00B4,
3425 .total_size = 512,
Andrew Morganca081462011-09-13 22:05:44 +00003426 .page_size = 0, /* unused */
Alan Green1f9cc7d2019-07-01 11:10:45 +10003427 .feature_bits = FEATURE_REGISTERMAP,
3428 .tested = TEST_UNTESTED,
3429 .probe = probe_82802ab,
Andrew Morganca081462011-09-13 22:05:44 +00003430 .probe_timing = TIMING_ZERO,
3431 .block_erasers =
3432 {
3433 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003434 .eraseblocks = {
3435 {8 * 1024, 2},
3436 {16 * 1024, 1},
3437 {32 * 1024, 1},
3438 {64 * 1024, 7},
3439 },
3440 .block_erase = NULL, /* TODO: Implement. */
3441 }, {
3442 .eraseblocks = {
3443 {64 * 1024, 8},
3444 },
3445 .block_erase = erase_block_82802ab,
Andrew Morganca081462011-09-13 22:05:44 +00003446 },
3447 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10003448 .printlock = printlock_regspace2_block_eraser_0,
3449 .unlock = unlock_regspace2_block_eraser_0,
3450 .write = write_82802ab,
Andrew Morganca081462011-09-13 22:05:44 +00003451 .read = read_memmapped,
Alan Green1f9cc7d2019-07-01 11:10:45 +10003452 .voltage = {3000, 3600},
Andrew Morganca081462011-09-13 22:05:44 +00003453 },
3454
3455 {
Angel Pons1ebda782021-04-20 21:39:11 +02003456 .vendor = "Boya/BoHong Microelectronics",
Christian Kudera475a7ee2021-04-20 22:50:01 +02003457 .name = "B.25D16A",
3458 .bustype = BUS_SPI,
3459 .manufacture_id = BOYA_BOHONG_ID,
3460 .model_id = BOYA_BOHONG_B_25D16A,
3461 .total_size = 2048,
3462 .page_size = 256,
3463 .feature_bits = FEATURE_WRSR_WREN,
3464 .tested = TEST_OK_PR,
3465 .probe = probe_spi_rdid,
3466 .probe_timing = TIMING_ZERO,
3467 .block_erasers =
3468 {
3469 {
3470 .eraseblocks = { {4 * 1024, 512} },
3471 .block_erase = spi_block_erase_20,
3472 }, {
3473 .eraseblocks = { {32 * 1024, 64} },
3474 .block_erase = spi_block_erase_52,
3475 }, {
3476 .eraseblocks = { {64 * 1024, 32} },
3477 .block_erase = spi_block_erase_d8,
3478 }, {
3479 .eraseblocks = { {2 * 1024 * 1024, 1} },
3480 .block_erase = spi_block_erase_60,
3481 }, {
3482 .eraseblocks = { {2 * 1024 * 1024, 1} },
3483 .block_erase = spi_block_erase_c7,
3484 }
3485 },
3486 .printlock = spi_prettyprint_status_register_bp2_srwd,
3487 .unlock = spi_disable_blockprotect_bp2_srwd,
3488 .write = spi_chip_write_256,
3489 .read = spi_chip_read,
3490 .voltage = {2700, 3600},
3491 },
3492
3493 {
3494 .vendor = "Boya/BoHong Microelectronics",
Angel Pons1ebda782021-04-20 21:39:11 +02003495 .name = "B.25Q128AS",
Jack Olsen73ae5ef2020-08-08 21:12:13 -05003496 .bustype = BUS_SPI,
Angel Pons1ebda782021-04-20 21:39:11 +02003497 .manufacture_id = BOYA_BOHONG_ID,
3498 .model_id = BOYA_BOHONG_B_25Q128AS,
Jack Olsen73ae5ef2020-08-08 21:12:13 -05003499 .total_size = 16384,
3500 .page_size = 256,
3501 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
3502 .tested = TEST_OK_PREW,
3503 .probe = probe_spi_rdid,
3504 .probe_timing = TIMING_ZERO,
3505 .block_erasers =
3506 {
3507 {
3508 .eraseblocks = { {4 * 1024, 4096} },
3509 .block_erase = spi_block_erase_20,
3510 }, {
3511 .eraseblocks = { {32 * 1024, 512} },
3512 .block_erase = spi_block_erase_52,
3513 }, {
3514 .eraseblocks = { {64 * 1024, 256} },
3515 .block_erase = spi_block_erase_d8,
3516 }, {
3517 .eraseblocks = { {16 * 1024 * 1024, 1} },
3518 .block_erase = spi_block_erase_60,
3519 }, {
3520 .eraseblocks = { {16 * 1024 * 1024, 1} },
3521 .block_erase = spi_block_erase_c7,
3522 }
3523 },
3524 .printlock = spi_prettyprint_status_register_plain,
3525 .unlock = spi_disable_blockprotect_at25fs040,
3526 .write = spi_chip_write_256,
3527 .read = spi_chip_read,
3528 .voltage = {2700, 3600},
3529 },
3530
3531 {
Joshua Roysf1324e02010-09-16 00:51:51 +00003532 .vendor = "Bright",
3533 .name = "BM29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003534 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00003535 .manufacture_id = BRIGHT_ID,
3536 .model_id = BRIGHT_BM29F040,
3537 .total_size = 512,
3538 .page_size = 64 * 1024,
3539 .feature_bits = FEATURE_EITHER_RESET,
3540 .tested = TEST_OK_PR,
3541 .probe = probe_jedec,
3542 .probe_timing = TIMING_ZERO,
3543 .block_erasers =
3544 {
3545 {
3546 .eraseblocks = { {64 * 1024, 8} },
3547 .block_erase = erase_sector_jedec,
3548 }, {
3549 .eraseblocks = { {512 * 1024, 1} },
3550 .block_erase = erase_chip_block_jedec,
3551 },
3552 },
3553 .write = write_jedec_1,
3554 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003555 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00003556 },
3557
3558 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003559 .vendor = "Catalyst",
3560 .name = "CAT28F512",
3561 .bustype = BUS_PARALLEL,
3562 .manufacture_id = CATALYST_ID,
3563 .model_id = CATALYST_CAT28F512,
3564 .total_size = 64,
3565 .page_size = 0, /* unused */
3566 .feature_bits = 0,
Alan Green908adf42019-07-03 15:34:06 +10003567 .tested = {.probe = OK, .read = OK, .erase = BAD, .write = BAD},
Alan Green1f9cc7d2019-07-01 11:10:45 +10003568 .probe = probe_jedec, /* FIXME! */
3569 .probe_timing = TIMING_ZERO,
3570 .block_erasers =
3571 {
3572 {
3573 .eraseblocks = { {64 * 1024, 1} },
3574 .block_erase = NULL, /* TODO */
3575 },
3576 },
3577 .write = NULL, /* TODO */
3578 .read = read_memmapped,
3579 .voltage = {4500, 5500},
3580 },
3581
3582 {
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003583 .vendor = "ENE",
3584 .name = "KB9012 (EDI)",
3585 .bustype = BUS_SPI,
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003586 .total_size = 128,
3587 .page_size = 128,
3588 .feature_bits = FEATURE_ERASED_ZERO,
3589 .tested = TEST_OK_PREW,
Alan Greenc1863ca2019-06-27 15:08:03 +10003590 .spi_cmd_set = SPI_EDI,
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003591 .probe = edi_probe_kb9012,
3592 .probe_timing = TIMING_ZERO,
3593 .block_erasers =
3594 {
3595 {
3596 .eraseblocks = { {128, 1024} },
3597 .block_erase = edi_chip_block_erase,
3598 },
3599 },
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003600 .write = edi_chip_write,
3601 .read = edi_chip_read,
3602 .voltage = {2700, 3600},
Alan Greenc1863ca2019-06-27 15:08:03 +10003603 .gran = write_gran_128bytes,
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003604 },
3605
3606 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003607 .vendor = "ESI",
3608 .name = "ES25P16",
3609 .bustype = BUS_SPI,
3610 .manufacture_id = EXCEL_ID_NOPREFIX,
3611 .model_id = EXCEL_ES25P16,
3612 .total_size = 2 * 1024,
3613 .page_size = 256,
3614 /* 256-byte parameter page separate from memory array:
3615 * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
3616 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003617 .tested = TEST_UNTESTED,
Alan Green1f9cc7d2019-07-01 11:10:45 +10003618 .probe = probe_spi_rdid,
3619 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003620 .block_erasers =
3621 {
3622 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003623 .eraseblocks = { {64 * 1024, 32} },
3624 .block_erase = spi_block_erase_d8,
Sean Nelson54596372010-01-09 05:30:14 +00003625 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003626 .eraseblocks = { {2 * 1024 * 1024, 1} },
3627 .block_erase = spi_block_erase_c7,
Sean Nelson54596372010-01-09 05:30:14 +00003628 }
3629 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10003630 .printlock = spi_prettyprint_status_register_bp2_srwd,
3631 .unlock = spi_disable_blockprotect_bp2_srwd,
3632 .write = spi_chip_write_256,
3633 .read = spi_chip_read, /* Fast Read (0x0B) supported */
3634 .voltage = {2700, 3600},
3635 },
3636
3637 {
3638 .vendor = "ESI",
3639 .name = "ES25P40",
3640 .bustype = BUS_SPI,
3641 .manufacture_id = EXCEL_ID_NOPREFIX,
3642 .model_id = EXCEL_ES25P40,
3643 .total_size = 512,
3644 .page_size = 256,
3645 /* 256-byte parameter page separate from memory array:
3646 * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
3647 .feature_bits = FEATURE_WRSR_WREN,
3648 .tested = TEST_UNTESTED,
3649 .probe = probe_spi_rdid,
3650 .probe_timing = TIMING_ZERO,
3651 .block_erasers =
3652 {
3653 {
3654 .eraseblocks = { {64 * 1024, 8} },
3655 .block_erase = spi_block_erase_d8,
3656 }, {
3657 .eraseblocks = { {512 * 1024, 1} },
3658 .block_erase = spi_block_erase_c7,
3659 }
3660 },
3661 .printlock = spi_prettyprint_status_register_bp2_srwd,
3662 .unlock = spi_disable_blockprotect_bp2_srwd,
3663 .write = spi_chip_write_256,
3664 .read = spi_chip_read, /* Fast Read (0x0B) supported */
3665 .voltage = {2700, 3600},
3666 },
3667
3668 {
3669 .vendor = "ESI",
3670 .name = "ES25P80",
3671 .bustype = BUS_SPI,
3672 .manufacture_id = EXCEL_ID_NOPREFIX,
3673 .model_id = EXCEL_ES25P80,
3674 .total_size = 1024,
3675 .page_size = 256,
3676 /* 256-byte parameter page separate from memory array:
3677 * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
3678 .feature_bits = FEATURE_WRSR_WREN,
3679 .tested = TEST_UNTESTED,
3680 .probe = probe_spi_rdid,
3681 .probe_timing = TIMING_ZERO,
3682 .block_erasers =
3683 {
3684 {
3685 .eraseblocks = { {64 * 1024, 16} },
3686 .block_erase = spi_block_erase_d8,
3687 }, {
3688 .eraseblocks = { {1024 * 1024, 1} },
3689 .block_erase = spi_block_erase_c7,
3690 }
3691 },
3692 .printlock = spi_prettyprint_status_register_bp2_srwd,
3693 .unlock = spi_disable_blockprotect_bp2_srwd,
3694 .write = spi_chip_write_256,
3695 .read = spi_chip_read, /* Fast Read (0x0B) supported */
3696 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00003697 },
3698
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003699 {
Stefan Tauner352e50b2013-02-22 15:58:45 +00003700 .vendor = "ESMT",
Michael Karcher80a59ea2010-06-19 22:06:35 +00003701 .name = "F25L008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003702 .bustype = BUS_SPI,
Stefan Tauner352e50b2013-02-22 15:58:45 +00003703 .manufacture_id = ESMT_ID,
3704 .model_id = ESMT_F25L008A,
Michael Karcher80a59ea2010-06-19 22:06:35 +00003705 .total_size = 1024,
3706 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003707 .feature_bits = FEATURE_WRSR_EITHER,
Stefan Taunereb582572012-09-21 12:52:50 +00003708 .tested = TEST_OK_PREW,
Michael Karcher80a59ea2010-06-19 22:06:35 +00003709 .probe = probe_spi_rdid,
3710 .probe_timing = TIMING_ZERO,
3711 .block_erasers =
3712 {
3713 {
3714 .eraseblocks = { {4 * 1024, 256} },
3715 .block_erase = spi_block_erase_20,
3716 }, {
3717 .eraseblocks = { {64 * 1024, 16} },
3718 .block_erase = spi_block_erase_d8,
3719 }, {
3720 .eraseblocks = { {1024 * 1024, 1} },
3721 .block_erase = spi_block_erase_60,
3722 }, {
3723 .eraseblocks = { {1024 * 1024, 1} },
3724 .block_erase = spi_block_erase_c7,
3725 }
3726 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003727 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003728 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger9a795d82010-07-14 16:19:05 +00003729 .write = spi_chip_write_1,
Michael Karcher4497e862010-07-10 19:34:15 +00003730 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003731 .voltage = {2700, 3600},
Michael Karcher80a59ea2010-06-19 22:06:35 +00003732 },
3733
3734 {
Stefan Tauner85f09f72014-05-27 21:27:14 +00003735 .vendor = "ESMT",
3736 .name = "F25L32PA",
3737 .bustype = BUS_SPI,
3738 .manufacture_id = ESMT_ID,
3739 .model_id = ESMT_F25L32PA,
3740 .total_size = 4096,
3741 .page_size = 256,
3742 .feature_bits = FEATURE_WRSR_EITHER | FEATURE_OTP,
3743 .tested = TEST_UNTESTED,
3744 .probe = probe_spi_rdid,
3745 .probe_timing = TIMING_ZERO,
3746 .block_erasers =
3747 {
3748 {
3749 .eraseblocks = { {4 * 1024, 1024} },
3750 .block_erase = spi_block_erase_20,
3751 }, {
3752 .eraseblocks = { {64 * 1024, 64} },
3753 .block_erase = spi_block_erase_d8,
3754 }, {
3755 .eraseblocks = { {4 * 1024 * 1024, 1} },
3756 .block_erase = spi_block_erase_60,
3757 }, {
3758 .eraseblocks = { {4 * 1024 * 1024, 1} },
3759 .block_erase = spi_block_erase_c7,
3760 }
3761 },
3762 .printlock = spi_prettyprint_status_register_bp2_bpl,
3763 .unlock = spi_disable_blockprotect,
3764 .write = spi_chip_write_256,
3765 .read = spi_chip_read,
3766 .voltage = {2700, 3600},
3767 },
3768
3769 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003770 .vendor = "ESMT",
3771 .name = "F49B002UA",
3772 .bustype = BUS_PARALLEL,
3773 .manufacture_id = ESMT_ID,
3774 .model_id = ESMT_F49B002UA,
3775 .total_size = 256,
3776 .page_size = 4096,
3777 .feature_bits = FEATURE_EITHER_RESET,
3778 .tested = TEST_UNTESTED,
3779 .probe = probe_jedec,
3780 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3781 .block_erasers =
3782 {
3783 {
3784 .eraseblocks = {
3785 {128 * 1024, 1},
3786 {96 * 1024, 1},
3787 {8 * 1024, 2},
3788 {16 * 1024, 1},
3789 },
3790 .block_erase = erase_sector_jedec,
3791 }, {
3792 .eraseblocks = { {256 * 1024, 1} },
3793 .block_erase = erase_chip_block_jedec,
3794 }
3795 },
3796 .write = write_jedec_1,
3797 .read = read_memmapped,
3798 .voltage = {4500, 5500},
3799 },
3800
3801 {
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003802 .vendor = "Eon",
3803 .name = "EN25B05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003804 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003805 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003806 .model_id = EON_EN25B05,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003807 .total_size = 64,
3808 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003809 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003810 .tested = TEST_UNTESTED,
3811 .probe = probe_spi_rdid,
3812 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003813 .block_erasers =
3814 {
3815 {
3816 .eraseblocks = {
3817 {4 * 1024, 2},
3818 {8 * 1024, 1},
3819 {16 * 1024, 1},
3820 {32 * 1024, 1},
3821 },
3822 .block_erase = spi_block_erase_d8,
3823 }, {
3824 .eraseblocks = { {64 * 1024, 1} },
3825 .block_erase = spi_block_erase_c7,
3826 }
3827 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003828 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003829 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003830 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003831 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003832 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003833 },
3834
3835 {
3836 .vendor = "Eon",
3837 .name = "EN25B05T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003838 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003839 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003840 .model_id = EON_EN25B05,
Sean Nelson54596372010-01-09 05:30:14 +00003841 .total_size = 64,
3842 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003843 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003844 .tested = TEST_UNTESTED,
3845 .probe = probe_spi_rdid,
3846 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003847 .block_erasers =
3848 {
3849 {
3850 .eraseblocks = {
3851 {32 * 1024, 1},
3852 {16 * 1024, 1},
3853 {8 * 1024, 1},
3854 {4 * 1024, 2},
3855 },
3856 .block_erase = spi_block_erase_d8,
3857 }, {
3858 .eraseblocks = { {64 * 1024, 1} },
3859 .block_erase = spi_block_erase_c7,
3860 }
3861 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003862 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003863 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003864 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003865 .read = spi_chip_read, /* Fast read (0x0B) supported */
3866 .voltage = {2700, 3600},
3867 },
3868
3869 {
3870 .vendor = "Eon",
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003871 .name = "EN25B10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003872 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003873 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003874 .model_id = EON_EN25B10,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003875 .total_size = 128,
3876 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003877 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003878 .tested = TEST_UNTESTED,
3879 .probe = probe_spi_rdid,
3880 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003881 .block_erasers =
3882 {
3883 {
3884 .eraseblocks = {
3885 {4 * 1024, 2},
3886 {8 * 1024, 1},
3887 {16 * 1024, 1},
3888 {32 * 1024, 3},
3889 },
3890 .block_erase = spi_block_erase_d8,
3891 }, {
3892 .eraseblocks = { {128 * 1024, 1} },
3893 .block_erase = spi_block_erase_c7,
3894 }
3895 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003896 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003897 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003898 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003899 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003900 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003901 },
3902
3903 {
3904 .vendor = "Eon",
3905 .name = "EN25B10T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003906 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003907 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003908 .model_id = EON_EN25B10,
Sean Nelson54596372010-01-09 05:30:14 +00003909 .total_size = 128,
3910 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003911 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00003912 .tested = TEST_OK_PREW,
Sean Nelson54596372010-01-09 05:30:14 +00003913 .probe = probe_spi_rdid,
3914 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003915 .block_erasers =
3916 {
3917 {
3918 .eraseblocks = {
3919 {32 * 1024, 3},
3920 {16 * 1024, 1},
3921 {8 * 1024, 1},
3922 {4 * 1024, 2},
3923 },
3924 .block_erase = spi_block_erase_d8,
3925 }, {
3926 .eraseblocks = { {128 * 1024, 1} },
3927 .block_erase = spi_block_erase_c7,
3928 }
3929 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003930 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003931 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003932 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003933 .read = spi_chip_read, /* Fast read (0x0B) supported */
3934 .voltage = {2700, 3600},
3935 },
3936
3937 {
3938 .vendor = "Eon",
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003939 .name = "EN25B16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003940 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003941 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003942 .model_id = EON_EN25B16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003943 .total_size = 2048,
3944 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003945 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003946 .tested = TEST_UNTESTED,
3947 .probe = probe_spi_rdid,
3948 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003949 .block_erasers =
3950 {
3951 {
3952 .eraseblocks = {
3953 {4 * 1024, 2},
3954 {8 * 1024, 1},
3955 {16 * 1024, 1},
3956 {32 * 1024, 1},
3957 {64 * 1024, 31},
3958 },
3959 .block_erase = spi_block_erase_d8,
3960 }, {
3961 .eraseblocks = { {2 * 1024 * 1024, 1} },
3962 .block_erase = spi_block_erase_c7,
3963 }
3964 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003965 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003966 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003967 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003968 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003969 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003970 },
3971
3972 {
3973 .vendor = "Eon",
3974 .name = "EN25B16T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003975 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003976 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003977 .model_id = EON_EN25B16,
Sean Nelson54596372010-01-09 05:30:14 +00003978 .total_size = 2048,
3979 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003980 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003981 .tested = TEST_UNTESTED,
3982 .probe = probe_spi_rdid,
3983 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003984 .block_erasers =
3985 {
3986 {
3987 .eraseblocks = {
3988 {64 * 1024, 31},
3989 {32 * 1024, 1},
3990 {16 * 1024, 1},
3991 {8 * 1024, 1},
3992 {4 * 1024, 2},
3993 },
3994 .block_erase = spi_block_erase_d8,
3995 }, {
3996 .eraseblocks = { {2 * 1024 * 1024, 1} },
3997 .block_erase = spi_block_erase_c7,
3998 }
3999 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004000 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004001 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004002 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004003 .read = spi_chip_read, /* Fast read (0x0B) supported */
4004 .voltage = {2700, 3600},
4005 },
4006
4007 {
4008 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004009 .name = "EN25B20",
Stefan Taunerb175af52015-01-24 15:06:27 +00004010 .bustype = BUS_SPI,
4011 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004012 .model_id = EON_EN25B20,
4013 .total_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004014 .page_size = 256,
4015 .feature_bits = FEATURE_WRSR_WREN,
4016 .tested = TEST_UNTESTED,
4017 .probe = probe_spi_rdid,
4018 .probe_timing = TIMING_ZERO,
4019 .block_erasers =
4020 {
4021 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004022 .eraseblocks = {
4023 {4 * 1024, 2},
4024 {8 * 1024, 1},
4025 {16 * 1024, 1},
4026 {32 * 1024, 1},
4027 {64 * 1024, 3}
4028 },
Stefan Taunerb175af52015-01-24 15:06:27 +00004029 .block_erase = spi_block_erase_d8,
4030 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004031 .eraseblocks = { {256 * 1024, 1} },
4032 .block_erase = spi_block_erase_c7,
4033 }
4034 },
4035 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4036 .unlock = spi_disable_blockprotect,
4037 .write = spi_chip_write_256,
4038 .read = spi_chip_read, /* Fast read (0x0B) supported */
4039 .voltage = {2700, 3600},
4040 },
4041
4042 {
4043 .vendor = "Eon",
4044 .name = "EN25B20T",
4045 .bustype = BUS_SPI,
4046 .manufacture_id = EON_ID_NOPREFIX,
4047 .model_id = EON_EN25B20,
4048 .total_size = 256,
4049 .page_size = 256,
4050 .feature_bits = FEATURE_WRSR_WREN,
4051 .tested = TEST_UNTESTED,
4052 .probe = probe_spi_rdid,
4053 .probe_timing = TIMING_ZERO,
4054 .block_erasers =
4055 {
4056 {
4057 .eraseblocks = {
4058 {64 * 1024, 3},
4059 {32 * 1024, 1},
4060 {16 * 1024, 1},
4061 {8 * 1024, 1},
4062 {4 * 1024, 2},
4063 },
4064 .block_erase = spi_block_erase_d8,
4065 }, {
4066 .eraseblocks = { {256 * 1024, 1} },
Stefan Taunerb175af52015-01-24 15:06:27 +00004067 .block_erase = spi_block_erase_c7,
4068 }
4069 },
4070 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4071 .unlock = spi_disable_blockprotect,
4072 .write = spi_chip_write_256,
4073 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004074 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004075 },
4076
4077 {
4078 .vendor = "Eon",
4079 .name = "EN25B32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004080 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004081 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004082 .model_id = EON_EN25B32,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004083 .total_size = 4096,
4084 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004085 /* OTP: 512B total; enter 0x3A */
4086 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004087 .tested = TEST_UNTESTED,
4088 .probe = probe_spi_rdid,
4089 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004090 .block_erasers =
4091 {
4092 {
4093 .eraseblocks = {
4094 {4 * 1024, 2},
4095 {8 * 1024, 1},
4096 {16 * 1024, 1},
4097 {32 * 1024, 1},
4098 {64 * 1024, 63},
4099 },
4100 .block_erase = spi_block_erase_d8,
4101 }, {
4102 .eraseblocks = { {4 * 1024 * 1024, 1} },
4103 .block_erase = spi_block_erase_c7,
4104 }
4105 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004106 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004107 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00004108 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004109 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004110 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00004111 },
4112
4113 {
4114 .vendor = "Eon",
4115 .name = "EN25B32T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004116 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00004117 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004118 .model_id = EON_EN25B32,
Sean Nelson54596372010-01-09 05:30:14 +00004119 .total_size = 4096,
4120 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004121 /* OTP: 512B total; enter 0x3A */
4122 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Sean Nelson54596372010-01-09 05:30:14 +00004123 .tested = TEST_UNTESTED,
4124 .probe = probe_spi_rdid,
4125 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004126 .block_erasers =
4127 {
4128 {
4129 .eraseblocks = {
4130 {64 * 1024, 63},
4131 {32 * 1024, 1},
4132 {16 * 1024, 1},
4133 {8 * 1024, 1},
4134 {4 * 1024, 2},
4135 },
4136 .block_erase = spi_block_erase_d8,
4137 }, {
4138 .eraseblocks = { {4 * 1024 * 1024, 1} },
4139 .block_erase = spi_block_erase_c7,
4140 }
4141 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004142 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004143 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004144 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004145 .read = spi_chip_read, /* Fast read (0x0B) supported */
4146 .voltage = {2700, 3600},
4147 },
4148
4149 {
4150 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004151 .name = "EN25B40",
Stefan Taunerb175af52015-01-24 15:06:27 +00004152 .bustype = BUS_SPI,
4153 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004154 .model_id = EON_EN25B40,
4155 .total_size = 512,
Stefan Taunerb175af52015-01-24 15:06:27 +00004156 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004157 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerb175af52015-01-24 15:06:27 +00004158 .tested = TEST_UNTESTED,
4159 .probe = probe_spi_rdid,
4160 .probe_timing = TIMING_ZERO,
4161 .block_erasers =
4162 {
4163 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004164 .eraseblocks = {
4165 {4 * 1024, 2},
4166 {8 * 1024, 1},
4167 {16 * 1024, 1},
4168 {32 * 1024, 1},
4169 {64 * 1024, 7}
4170 },
Stefan Taunerb175af52015-01-24 15:06:27 +00004171 .block_erase = spi_block_erase_d8,
4172 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004173 .eraseblocks = { {512 * 1024, 1} },
4174 .block_erase = spi_block_erase_c7,
4175 }
4176 },
4177 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4178 .unlock = spi_disable_blockprotect,
4179 .write = spi_chip_write_256,
4180 .read = spi_chip_read, /* Fast read (0x0B) supported */
4181 .voltage = {2700, 3600},
4182 },
4183
4184 {
4185 .vendor = "Eon",
4186 .name = "EN25B40T",
4187 .bustype = BUS_SPI,
4188 .manufacture_id = EON_ID_NOPREFIX,
4189 .model_id = EON_EN25B40,
4190 .total_size = 512,
4191 .page_size = 256,
4192 .feature_bits = FEATURE_WRSR_WREN,
4193 .tested = TEST_UNTESTED,
4194 .probe = probe_spi_rdid,
4195 .probe_timing = TIMING_ZERO,
4196 .block_erasers =
4197 {
4198 {
4199 .eraseblocks = {
4200 {64 * 1024, 7},
4201 {32 * 1024, 1},
4202 {16 * 1024, 1},
4203 {8 * 1024, 1},
4204 {4 * 1024, 2},
4205 },
4206 .block_erase = spi_block_erase_d8,
4207 }, {
4208 .eraseblocks = { {512 * 1024, 1} },
Stefan Taunerb175af52015-01-24 15:06:27 +00004209 .block_erase = spi_block_erase_c7,
4210 }
4211 },
4212 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4213 .unlock = spi_disable_blockprotect,
4214 .write = spi_chip_write_256,
4215 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004216 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004217 },
4218
4219 {
4220 .vendor = "Eon",
4221 .name = "EN25B64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004222 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004223 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004224 .model_id = EON_EN25B64,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004225 .total_size = 8192,
4226 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004227 /* OTP: 512B total; enter 0x3A */
4228 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004229 .tested = TEST_UNTESTED,
4230 .probe = probe_spi_rdid,
4231 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004232 .block_erasers =
4233 {
4234 {
4235 .eraseblocks = {
4236 {4 * 1024, 2},
4237 {8 * 1024, 1},
4238 {16 * 1024, 1},
4239 {32 * 1024, 1},
4240 {64 * 1024, 127},
4241 },
4242 .block_erase = spi_block_erase_d8,
4243 }, {
4244 .eraseblocks = { {8 * 1024 * 1024, 1} },
4245 .block_erase = spi_block_erase_c7,
4246 }
4247 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004248 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004249 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00004250 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004251 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004252 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00004253 },
4254
4255 {
4256 .vendor = "Eon",
4257 .name = "EN25B64T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004258 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00004259 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004260 .model_id = EON_EN25B64,
Sean Nelson54596372010-01-09 05:30:14 +00004261 .total_size = 8192,
4262 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004263 /* OTP: 512B total; enter 0x3A */
4264 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Sean Nelson54596372010-01-09 05:30:14 +00004265 .tested = TEST_UNTESTED,
4266 .probe = probe_spi_rdid,
4267 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004268 .block_erasers =
4269 {
4270 {
4271 .eraseblocks = {
4272 {64 * 1024, 127},
4273 {32 * 1024, 1},
4274 {16 * 1024, 1},
4275 {8 * 1024, 1},
4276 {4 * 1024, 2},
4277 },
4278 .block_erase = spi_block_erase_d8,
4279 }, {
4280 .eraseblocks = { {8 * 1024 * 1024, 1} },
4281 .block_erase = spi_block_erase_c7,
4282 }
4283 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004284 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004285 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004286 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004287 .read = spi_chip_read, /* Fast read (0x0B) supported */
4288 .voltage = {2700, 3600},
4289 },
4290
4291 {
4292 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004293 .name = "EN25B80",
Stefan Taunerb175af52015-01-24 15:06:27 +00004294 .bustype = BUS_SPI,
4295 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004296 .model_id = EON_EN25B80,
4297 .total_size = 1024,
Stefan Taunerb175af52015-01-24 15:06:27 +00004298 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004299 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerb175af52015-01-24 15:06:27 +00004300 .tested = TEST_UNTESTED,
4301 .probe = probe_spi_rdid,
4302 .probe_timing = TIMING_ZERO,
4303 .block_erasers =
4304 {
4305 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004306 .eraseblocks = {
4307 {4 * 1024, 2},
4308 {8 * 1024, 1},
4309 {16 * 1024, 1},
4310 {32 * 1024, 1},
4311 {64 * 1024, 15}
4312 },
Stefan Taunerb175af52015-01-24 15:06:27 +00004313 .block_erase = spi_block_erase_d8,
4314 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004315 .eraseblocks = { {1024 * 1024, 1} },
4316 .block_erase = spi_block_erase_c7,
4317 }
4318 },
4319 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4320 .unlock = spi_disable_blockprotect,
4321 .write = spi_chip_write_256,
4322 .read = spi_chip_read, /* Fast read (0x0B) supported */
4323 .voltage = {2700, 3600},
4324 },
4325
4326 {
4327 .vendor = "Eon",
4328 .name = "EN25B80T",
4329 .bustype = BUS_SPI,
4330 .manufacture_id = EON_ID_NOPREFIX,
4331 .model_id = EON_EN25B80,
4332 .total_size = 1024,
4333 .page_size = 256,
4334 .feature_bits = FEATURE_WRSR_WREN,
4335 .tested = TEST_UNTESTED,
4336 .probe = probe_spi_rdid,
4337 .probe_timing = TIMING_ZERO,
4338 .block_erasers =
4339 {
4340 {
4341 .eraseblocks = {
4342 {64 * 1024, 15},
4343 {32 * 1024, 1},
4344 {16 * 1024, 1},
4345 {8 * 1024, 1},
4346 {4 * 1024, 2},
4347 },
4348 .block_erase = spi_block_erase_d8,
4349 }, {
4350 .eraseblocks = { {1024 * 1024, 1} },
Stefan Taunerb175af52015-01-24 15:06:27 +00004351 .block_erase = spi_block_erase_c7,
4352 }
4353 },
4354 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4355 .unlock = spi_disable_blockprotect,
4356 .write = spi_chip_write_256,
4357 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004358 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004359 },
4360
4361 {
4362 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004363 .name = "EN25F05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004364 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004365 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004366 .model_id = EON_EN25F05,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004367 .total_size = 64,
4368 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004369 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00004370 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004371 .probe = probe_spi_rdid,
4372 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004373 .block_erasers =
4374 {
4375 {
4376 .eraseblocks = { {4 * 1024, 16} },
4377 .block_erase = spi_block_erase_20,
4378 }, {
4379 .eraseblocks = { {32 * 1024, 2} },
4380 .block_erase = spi_block_erase_d8,
4381 }, {
4382 .eraseblocks = { {32 * 1024, 2} },
4383 .block_erase = spi_block_erase_52,
4384 }, {
4385 .eraseblocks = { {64 * 1024, 1} },
4386 .block_erase = spi_block_erase_60,
4387 }, {
4388 .eraseblocks = { {64 * 1024, 1} },
4389 .block_erase = spi_block_erase_c7,
4390 }
4391 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004392 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004393 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004394 .write = spi_chip_write_256,
4395 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004396 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004397 },
4398
4399 {
4400 .vendor = "Eon",
4401 .name = "EN25F10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004402 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004403 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004404 .model_id = EON_EN25F10,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004405 .total_size = 128,
4406 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004407 .feature_bits = FEATURE_WRSR_WREN,
Simon Buhrowd173ed42021-09-29 09:28:07 +02004408 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004409 .probe = probe_spi_rdid,
4410 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004411 .block_erasers =
4412 {
4413 {
4414 .eraseblocks = { {4 * 1024, 32} },
4415 .block_erase = spi_block_erase_20,
4416 }, {
4417 .eraseblocks = { {32 * 1024, 4} },
4418 .block_erase = spi_block_erase_d8,
4419 }, {
4420 .eraseblocks = { {32 * 1024, 4} },
4421 .block_erase = spi_block_erase_52,
4422 }, {
4423 .eraseblocks = { {128 * 1024, 1} },
4424 .block_erase = spi_block_erase_60,
4425 }, {
4426 .eraseblocks = { {128 * 1024, 1} },
4427 .block_erase = spi_block_erase_c7,
4428 }
4429 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004430 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004431 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004432 .write = spi_chip_write_256,
4433 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004434 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004435 },
4436
4437 {
4438 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004439 .name = "EN25F16",
4440 .bustype = BUS_SPI,
4441 .manufacture_id = EON_ID_NOPREFIX,
4442 .model_id = EON_EN25F16,
4443 .total_size = 2048,
4444 .page_size = 256,
4445 .feature_bits = FEATURE_WRSR_WREN,
4446 .tested = TEST_OK_PREW,
4447 .probe = probe_spi_rdid,
4448 .probe_timing = TIMING_ZERO,
4449 .block_erasers =
4450 {
4451 {
4452 .eraseblocks = { {4 * 1024, 512} },
4453 .block_erase = spi_block_erase_20,
4454 }, {
4455 .eraseblocks = { {64 * 1024, 32} },
4456 .block_erase = spi_block_erase_d8,
4457 }, {
4458 .eraseblocks = { {2 * 1024 * 1024, 1} },
4459 .block_erase = spi_block_erase_60,
4460 }, {
4461 .eraseblocks = { {2 * 1024 * 1024, 1} },
4462 .block_erase = spi_block_erase_c7,
4463 }
4464 },
4465 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4466 .unlock = spi_disable_blockprotect,
4467 .write = spi_chip_write_256,
4468 .read = spi_chip_read,
4469 .voltage = {2700, 3600},
4470 },
4471
4472 {
4473 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004474 .name = "EN25F20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004475 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004476 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004477 .model_id = EON_EN25F20,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004478 .total_size = 256,
4479 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004480 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004481 .tested = TEST_UNTESTED,
4482 .probe = probe_spi_rdid,
4483 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004484 .block_erasers =
4485 {
4486 {
4487 .eraseblocks = { {4 * 1024, 64} },
4488 .block_erase = spi_block_erase_20,
4489 }, {
4490 .eraseblocks = { {64 * 1024, 4} },
4491 .block_erase = spi_block_erase_d8,
4492 }, {
4493 .eraseblocks = { {64 * 1024, 4} },
4494 .block_erase = spi_block_erase_52,
4495 }, {
4496 .eraseblocks = { {256 * 1024, 1} },
4497 .block_erase = spi_block_erase_60,
4498 }, {
4499 .eraseblocks = { {256 * 1024, 1} },
4500 .block_erase = spi_block_erase_c7,
4501 }
4502 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004503 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004504 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004505 .write = spi_chip_write_256,
4506 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004507 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004508 },
4509
4510 {
4511 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004512 .name = "EN25F32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004513 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004514 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004515 .model_id = EON_EN25F32,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004516 .total_size = 4096,
4517 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004518 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +00004519 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004520 .probe = probe_spi_rdid,
4521 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004522 .block_erasers =
4523 {
4524 {
4525 .eraseblocks = { {4 * 1024, 1024} },
4526 .block_erase = spi_block_erase_20,
4527 }, {
4528 .eraseblocks = { {64 * 1024, 64} },
4529 .block_erase = spi_block_erase_d8,
4530 }, {
4531 .eraseblocks = { {4 * 1024 * 1024, 1} },
4532 .block_erase = spi_block_erase_60,
4533 }, {
4534 .eraseblocks = { {4 * 1024 * 1024, 1} },
4535 .block_erase = spi_block_erase_c7,
4536 }
4537 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004538 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004539 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004540 .write = spi_chip_write_256,
4541 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004542 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004543 },
4544
4545 {
Russ Dill3cd5a122010-03-05 08:44:11 +00004546 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004547 .name = "EN25F40",
4548 .bustype = BUS_SPI,
4549 .manufacture_id = EON_ID_NOPREFIX,
4550 .model_id = EON_EN25F40,
4551 .total_size = 512,
4552 .page_size = 256,
4553 .feature_bits = FEATURE_WRSR_WREN,
4554 .tested = TEST_OK_PREW,
4555 .probe = probe_spi_rdid,
4556 .probe_timing = TIMING_ZERO,
4557 .block_erasers =
4558 {
4559 {
4560 .eraseblocks = { {4 * 1024, 128} },
4561 .block_erase = spi_block_erase_20,
4562 }, {
4563 .eraseblocks = { {64 * 1024, 8} },
4564 .block_erase = spi_block_erase_d8,
4565 }, {
4566 .eraseblocks = { {512 * 1024, 1} },
4567 .block_erase = spi_block_erase_60,
4568 }, {
4569 .eraseblocks = { {512 * 1024, 1} },
4570 .block_erase = spi_block_erase_c7,
4571 },
4572 },
4573 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4574 .unlock = spi_disable_blockprotect,
4575 .write = spi_chip_write_256,
4576 .read = spi_chip_read,
4577 .voltage = {2700, 3600},
4578 },
4579
4580 {
4581 .vendor = "Eon",
Stefan Taunerd932fd02012-09-06 17:37:16 +00004582 .name = "EN25F64",
4583 .bustype = BUS_SPI,
4584 .manufacture_id = EON_ID_NOPREFIX,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00004585 .model_id = EON_EN25F64,
Stefan Taunerd932fd02012-09-06 17:37:16 +00004586 .total_size = 8192,
4587 .page_size = 256,
4588 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00004589 .tested = TEST_OK_PREW,
Stefan Taunerd932fd02012-09-06 17:37:16 +00004590 .probe = probe_spi_rdid,
4591 .probe_timing = TIMING_ZERO,
4592 .block_erasers =
4593 {
4594 {
4595 .eraseblocks = { {4 * 1024, 2048} },
4596 .block_erase = spi_block_erase_20,
4597 }, {
4598 .eraseblocks = { {64 * 1024, 128} },
4599 .block_erase = spi_block_erase_d8,
4600 }, {
4601 .eraseblocks = { {8 * 1024 * 1024, 1} },
4602 .block_erase = spi_block_erase_60,
4603 }, {
4604 .eraseblocks = { {8 * 1024 * 1024, 1} },
4605 .block_erase = spi_block_erase_c7,
4606 }
4607 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004608 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Stefan Taunerd932fd02012-09-06 17:37:16 +00004609 .unlock = spi_disable_blockprotect,
4610 .write = spi_chip_write_256,
4611 .read = spi_chip_read,
4612 .voltage = {2700, 3600},
4613 },
4614
4615 {
4616 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004617 .name = "EN25F80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004618 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004619 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004620 .model_id = EON_EN25F80,
David Hendricks6d715302011-07-24 22:21:57 +00004621 .total_size = 1024,
4622 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004623 .feature_bits = FEATURE_WRSR_WREN,
4624 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004625 .probe = probe_spi_rdid,
4626 .probe_timing = TIMING_ZERO,
4627 .block_erasers =
4628 {
4629 {
4630 .eraseblocks = { {4 * 1024, 256} },
4631 .block_erase = spi_block_erase_20,
4632 }, {
4633 .eraseblocks = { {64 * 1024, 16} },
4634 .block_erase = spi_block_erase_d8,
4635 }, {
4636 .eraseblocks = { {1024 * 1024, 1} },
4637 .block_erase = spi_block_erase_60,
4638 }, {
4639 .eraseblocks = { {1024 * 1024, 1} },
4640 .block_erase = spi_block_erase_c7,
4641 }
4642 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004643 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004644 .unlock = spi_disable_blockprotect,
4645 .write = spi_chip_write_256,
4646 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004647 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004648 },
4649
4650 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004651 .vendor = "Eon",
4652 .name = "EN25P05",
4653 .bustype = BUS_SPI,
4654 .manufacture_id = EON_ID_NOPREFIX,
4655 .model_id = EON_EN25B05,
4656 .total_size = 64,
4657 .page_size = 256,
4658 .feature_bits = FEATURE_WRSR_WREN,
4659 .tested = TEST_UNTESTED,
4660 .probe = probe_spi_rdid,
4661 .probe_timing = TIMING_ZERO,
4662 .block_erasers =
4663 {
4664 {
4665 .eraseblocks = {
4666 {32 * 1024, 2} },
4667 .block_erase = spi_block_erase_d8,
4668 }, {
4669 .eraseblocks = { {64 * 1024, 1} },
4670 .block_erase = spi_block_erase_c7,
4671 }
4672 },
4673 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4674 .unlock = spi_disable_blockprotect,
4675 .write = spi_chip_write_256,
4676 .read = spi_chip_read, /* Fast read (0x0B) supported */
4677 .voltage = {2700, 3600},
4678 },
4679
4680 {
4681 .vendor = "Eon",
4682 .name = "EN25P10",
4683 .bustype = BUS_SPI,
4684 .manufacture_id = EON_ID_NOPREFIX,
4685 .model_id = EON_EN25B10,
4686 .total_size = 128,
4687 .page_size = 256,
4688 .feature_bits = FEATURE_WRSR_WREN,
4689 .tested = TEST_UNTESTED,
4690 .probe = probe_spi_rdid,
4691 .probe_timing = TIMING_ZERO,
4692 .block_erasers =
4693 {
4694 {
4695 .eraseblocks = { {32 * 1024, 4} },
4696 .block_erase = spi_block_erase_d8,
4697 }, {
4698 .eraseblocks = { {128 * 1024, 1} },
4699 .block_erase = spi_block_erase_c7,
4700 }
4701 },
4702 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4703 .unlock = spi_disable_blockprotect,
4704 .write = spi_chip_write_256,
4705 .read = spi_chip_read, /* Fast read (0x0B) supported */
4706 .voltage = {2700, 3600},
4707 },
4708
4709 {
4710 .vendor = "Eon",
4711 .name = "EN25P16",
4712 .bustype = BUS_SPI,
4713 .manufacture_id = EON_ID_NOPREFIX,
4714 .model_id = EON_EN25B16,
4715 .total_size = 2048,
4716 .page_size = 256,
4717 .feature_bits = FEATURE_WRSR_WREN,
4718 .tested = TEST_UNTESTED,
4719 .probe = probe_spi_rdid,
4720 .probe_timing = TIMING_ZERO,
4721 .block_erasers =
4722 {
4723 {
4724 .eraseblocks = { {64 * 1024, 32} },
4725 .block_erase = spi_block_erase_d8,
4726 }, {
4727 .eraseblocks = { {2 * 1024 * 1024, 1} },
4728 .block_erase = spi_block_erase_c7,
4729 }
4730 },
4731 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4732 .unlock = spi_disable_blockprotect,
4733 .write = spi_chip_write_256,
4734 .read = spi_chip_read, /* Fast read (0x0B) supported */
4735 .voltage = {2700, 3600},
4736 },
4737
4738 {
4739 .vendor = "Eon",
4740 .name = "EN25P20",
4741 .bustype = BUS_SPI,
4742 .manufacture_id = EON_ID_NOPREFIX,
4743 .model_id = EON_EN25B20,
4744 .total_size = 256,
4745 .page_size = 256,
4746 .feature_bits = FEATURE_WRSR_WREN,
4747 .tested = TEST_UNTESTED,
4748 .probe = probe_spi_rdid,
4749 .probe_timing = TIMING_ZERO,
4750 .block_erasers =
4751 {
4752 {
4753 .eraseblocks = { {64 * 1024, 4} },
4754 .block_erase = spi_block_erase_d8,
4755 }, {
4756 .eraseblocks = { {256 * 1024, 1} },
4757 .block_erase = spi_block_erase_c7,
4758 }
4759 },
4760 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4761 .unlock = spi_disable_blockprotect,
4762 .write = spi_chip_write_256,
4763 .read = spi_chip_read, /* Fast read (0x0B) supported */
4764 .voltage = {2700, 3600},
4765 },
4766
4767 {
4768 .vendor = "Eon",
4769 .name = "EN25P32", /* Uniform version of EN25B32 */
4770 .bustype = BUS_SPI,
4771 .manufacture_id = EON_ID_NOPREFIX,
4772 .model_id = EON_EN25B32,
4773 .total_size = 4096,
4774 .page_size = 256,
4775 /* OTP: 512B total; enter 0x3A */
4776 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4777 .tested = TEST_UNTESTED,
4778 .probe = probe_spi_rdid,
4779 .probe_timing = TIMING_ZERO,
4780 .block_erasers =
4781 {
4782 {
4783 .eraseblocks = { {64 * 1024, 64} },
4784 .block_erase = spi_block_erase_d8,
4785 }, {
4786 .eraseblocks = { {4 * 1024 * 1024, 1} },
4787 .block_erase = spi_block_erase_c7,
4788 }
4789 },
4790 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4791 .unlock = spi_disable_blockprotect,
4792 .write = spi_chip_write_256,
4793 .read = spi_chip_read, /* Fast read (0x0B) supported */
4794 .voltage = {2700, 3600},
4795 },
4796
4797 {
4798 .vendor = "Eon",
4799 .name = "EN25P40",
4800 .bustype = BUS_SPI,
4801 .manufacture_id = EON_ID_NOPREFIX,
4802 .model_id = EON_EN25B40,
4803 .total_size = 512,
4804 .page_size = 256,
4805 .feature_bits = FEATURE_WRSR_WREN,
4806 .tested = TEST_UNTESTED,
4807 .probe = probe_spi_rdid,
4808 .probe_timing = TIMING_ZERO,
4809 .block_erasers =
4810 {
4811 {
4812 .eraseblocks = { {64 * 1024, 8} },
4813 .block_erase = spi_block_erase_d8,
4814 }, {
4815 .eraseblocks = { {512 * 1024, 1} },
4816 .block_erase = spi_block_erase_c7,
4817 }
4818 },
4819 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4820 .unlock = spi_disable_blockprotect,
4821 .write = spi_chip_write_256,
4822 .read = spi_chip_read, /* Fast read (0x0B) supported */
4823 .voltage = {2700, 3600},
4824 },
4825
4826 {
4827 .vendor = "Eon",
4828 .name = "EN25P64",
4829 .bustype = BUS_SPI,
4830 .manufacture_id = EON_ID_NOPREFIX,
4831 .model_id = EON_EN25B64,
4832 .total_size = 8192,
4833 .page_size = 256,
4834 /* OTP: 512B total; enter 0x3A */
4835 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4836 .tested = TEST_UNTESTED,
4837 .probe = probe_spi_rdid,
4838 .probe_timing = TIMING_ZERO,
4839 .block_erasers =
4840 {
4841 {
4842 .eraseblocks = { {64 * 1024, 128} },
4843 .block_erase = spi_block_erase_d8,
4844 }, {
4845 .eraseblocks = { {8 * 1024 * 1024, 1} },
4846 .block_erase = spi_block_erase_c7,
4847 }
4848 },
4849 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4850 .unlock = spi_disable_blockprotect,
4851 .write = spi_chip_write_256,
4852 .read = spi_chip_read, /* Fast read (0x0B) supported */
4853 .voltage = {2700, 3600},
4854 },
4855
4856 {
4857 .vendor = "Eon",
4858 .name = "EN25P80",
4859 .bustype = BUS_SPI,
4860 .manufacture_id = EON_ID_NOPREFIX,
4861 .model_id = EON_EN25B80,
4862 .total_size = 1024,
4863 .page_size = 256,
4864 .feature_bits = FEATURE_WRSR_WREN,
4865 .tested = TEST_UNTESTED,
4866 .probe = probe_spi_rdid,
4867 .probe_timing = TIMING_ZERO,
4868 .block_erasers =
4869 {
4870 {
4871 .eraseblocks = { {64 * 1024, 16} },
4872 .block_erase = spi_block_erase_d8,
4873 }, {
4874 .eraseblocks = { {1024 * 1024, 1} },
4875 .block_erase = spi_block_erase_c7,
4876 }
4877 },
4878 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4879 .unlock = spi_disable_blockprotect,
4880 .write = spi_chip_write_256,
4881 .read = spi_chip_read, /* Fast read (0x0B) supported */
4882 .voltage = {2700, 3600},
4883 },
4884
4885 {
4886 .vendor = "Eon",
4887 .name = "EN25Q128",
4888 .bustype = BUS_SPI,
4889 .manufacture_id = EON_ID_NOPREFIX,
4890 .model_id = EON_EN25Q128,
4891 .total_size = 16384,
4892 .page_size = 256,
4893 /* OTP: 512B total; enter 0x3A */
4894 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4895 .tested = TEST_OK_PREW,
4896 .probe = probe_spi_rdid,
4897 .probe_timing = TIMING_ZERO,
4898 .block_erasers =
4899 {
4900 {
4901 .eraseblocks = { {4 * 1024, 4096} },
4902 .block_erase = spi_block_erase_20,
4903 }, {
4904 .eraseblocks = { {64 * 1024, 256} },
4905 .block_erase = spi_block_erase_d8,
4906 }, {
4907 .eraseblocks = { {16 * 1024 * 1024, 1} },
4908 .block_erase = spi_block_erase_60,
4909 }, {
4910 .eraseblocks = { {16 * 1024 * 1024, 1} },
4911 .block_erase = spi_block_erase_c7,
4912 }
4913 },
4914 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4915 .unlock = spi_disable_blockprotect,
4916 .write = spi_chip_write_256,
4917 .read = spi_chip_read,
4918 },
4919
4920 {
David Hendricks6d715302011-07-24 22:21:57 +00004921 /* Note: EN25D16 is an evil twin which shares the model ID
4922 but has different write protection capabilities */
4923 .vendor = "Eon",
4924 .name = "EN25Q16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004925 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004926 .manufacture_id = EON_ID_NOPREFIX,
4927 .model_id = EON_EN25Q16,
4928 .total_size = 2048,
4929 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004930 /* OTP: D16 512B/Q16 128B total; enter 0x3A */
4931 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00004932 .tested = TEST_UNTESTED,
4933 .probe = probe_spi_rdid,
4934 .probe_timing = TIMING_ZERO,
4935 .block_erasers =
4936 {
4937 {
4938 .eraseblocks = { {4 * 1024, 512} },
4939 .block_erase = spi_block_erase_20,
4940 }, {
4941 .eraseblocks = { {64 * 1024, 32} },
4942 .block_erase = spi_block_erase_d8,
4943 }, {
4944 /* not supported by Q16 version */
4945 .eraseblocks = { {64 * 1024, 32} },
4946 .block_erase = spi_block_erase_52,
4947 }, {
4948 .eraseblocks = { {2 * 1024 * 1024, 1} },
4949 .block_erase = spi_block_erase_60,
4950 }, {
4951 .eraseblocks = { {2 * 1024 * 1024, 1} },
4952 .block_erase = spi_block_erase_c7,
4953 }
4954 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004955 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004956 .unlock = spi_disable_blockprotect,
4957 .write = spi_chip_write_256,
4958 .read = spi_chip_read,
4959 .voltage = {2700, 3600},
4960 },
4961
4962 {
4963 .vendor = "Eon",
4964 .name = "EN25Q32(A/B)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004965 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004966 .manufacture_id = EON_ID_NOPREFIX,
4967 .model_id = EON_EN25Q32,
4968 .total_size = 4096,
4969 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00004970 /* OTP: 512B total; enter 0x3A */
4971 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00004972 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004973 .probe = probe_spi_rdid,
4974 .probe_timing = TIMING_ZERO,
4975 .block_erasers =
4976 {
4977 {
4978 .eraseblocks = { {4 * 1024, 1024} },
4979 .block_erase = spi_block_erase_20,
4980 }, {
4981 .eraseblocks = { {64 * 1024, 64} },
4982 .block_erase = spi_block_erase_d8,
4983 }, {
4984 .eraseblocks = { {4 * 1024 * 1024, 1} },
4985 .block_erase = spi_block_erase_60,
4986 }, {
4987 .eraseblocks = { {4 * 1024 * 1024, 1} },
4988 .block_erase = spi_block_erase_c7,
4989 }
4990 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004991 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004992 .unlock = spi_disable_blockprotect,
4993 .write = spi_chip_write_256,
4994 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004995 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004996 },
4997
4998 {
4999 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005000 .name = "EN25Q40",
5001 .bustype = BUS_SPI,
5002 .manufacture_id = EON_ID_NOPREFIX,
5003 .model_id = EON_EN25Q40,
5004 .total_size = 512,
5005 .page_size = 256,
5006 /* OTP: 256B total; enter 0x3A */
5007 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5008 .tested = TEST_UNTESTED,
5009 .probe = probe_spi_rdid,
5010 .probe_timing = TIMING_ZERO,
5011 .block_erasers =
5012 {
5013 {
5014 .eraseblocks = { {4 * 1024, 128} },
5015 .block_erase = spi_block_erase_20,
5016 }, {
5017 .eraseblocks = { {64 * 1024, 8} },
5018 .block_erase = spi_block_erase_d8,
5019 }, {
5020 .eraseblocks = { {512 * 1024, 1} },
5021 .block_erase = spi_block_erase_60,
5022 }, {
5023 .eraseblocks = { {512 * 1024, 1} },
5024 .block_erase = spi_block_erase_c7,
5025 }
5026 },
5027 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
5028 .unlock = spi_disable_blockprotect,
5029 .write = spi_chip_write_256,
5030 .read = spi_chip_read,
5031 .voltage = {2700, 3600},
5032 },
5033
5034 {
5035 .vendor = "Eon",
David Hendricks6d715302011-07-24 22:21:57 +00005036 .name = "EN25Q64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005037 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00005038 .manufacture_id = EON_ID_NOPREFIX,
5039 .model_id = EON_EN25Q64,
5040 .total_size = 8192,
5041 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00005042 /* OTP: 512B total; enter 0x3A */
5043 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005044 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00005045 .probe = probe_spi_rdid,
5046 .probe_timing = TIMING_ZERO,
5047 .block_erasers =
5048 {
5049 {
5050 .eraseblocks = { {4 * 1024, 2048} },
5051 .block_erase = spi_block_erase_20,
5052 }, {
5053 .eraseblocks = { {64 * 1024, 128} },
5054 .block_erase = spi_block_erase_d8,
5055 }, {
5056 .eraseblocks = { {8 * 1024 * 1024, 1} },
5057 .block_erase = spi_block_erase_60,
5058 }, {
5059 .eraseblocks = { {8 * 1024 * 1024, 1} },
5060 .block_erase = spi_block_erase_c7,
5061 }
5062 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00005063 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00005064 .unlock = spi_disable_blockprotect,
5065 .write = spi_chip_write_256,
5066 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00005067 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00005068 },
5069
5070 {
5071 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005072 .name = "EN25Q80(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005073 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00005074 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005075 .model_id = EON_EN25Q80,
5076 .total_size = 1024,
5077 .page_size = 256,
5078 /* OTP: 256B total; enter 0x3A */
5079 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5080 .tested = TEST_UNTESTED,
5081 .probe = probe_spi_rdid,
5082 .probe_timing = TIMING_ZERO,
5083 .block_erasers =
5084 {
5085 {
5086 .eraseblocks = { {4 * 1024, 256} },
5087 .block_erase = spi_block_erase_20,
5088 }, {
5089 .eraseblocks = { {64 * 1024, 16} },
5090 .block_erase = spi_block_erase_d8,
5091 }, {
5092 .eraseblocks = { {1024 * 1024, 1} },
5093 .block_erase = spi_block_erase_60,
5094 }, {
5095 .eraseblocks = { {1024 * 1024, 1} },
5096 .block_erase = spi_block_erase_c7,
5097 }
5098 },
5099 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
5100 .unlock = spi_disable_blockprotect,
5101 .write = spi_chip_write_256,
5102 .read = spi_chip_read,
5103 .voltage = {2700, 3600},
5104 },
5105
5106 {
5107 .vendor = "Eon",
5108 .name = "EN25QH128",
5109 .bustype = BUS_SPI,
5110 .manufacture_id = EON_ID_NOPREFIX,
5111 .model_id = EON_EN25QH128,
David Hendricks6d715302011-07-24 22:21:57 +00005112 .total_size = 16384,
5113 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005114 /* supports SFDP */
Daniel Lenski65922a32012-02-15 23:40:23 +00005115 /* OTP: 512B total; enter 0x3A */
Alan Green1f9cc7d2019-07-01 11:10:45 +10005116 /* QPI enable 0x38, disable 0xFF */
5117 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Tim Chenbfe149a2020-07-06 14:59:21 +08005118 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00005119 .probe = probe_spi_rdid,
5120 .probe_timing = TIMING_ZERO,
5121 .block_erasers =
5122 {
5123 {
5124 .eraseblocks = { {4 * 1024, 4096} },
5125 .block_erase = spi_block_erase_20,
5126 }, {
5127 .eraseblocks = { {64 * 1024, 256} },
5128 .block_erase = spi_block_erase_d8,
5129 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005130 .eraseblocks = { { 16384 * 1024, 1} },
David Hendricks6d715302011-07-24 22:21:57 +00005131 .block_erase = spi_block_erase_60,
5132 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005133 .eraseblocks = { { 16384 * 1024, 1} },
David Hendricks6d715302011-07-24 22:21:57 +00005134 .block_erase = spi_block_erase_c7,
5135 }
5136 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005137 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
5138 .unlock = spi_disable_blockprotect_bp3_srwd,
David Hendricks6d715302011-07-24 22:21:57 +00005139 .write = spi_chip_write_256,
5140 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005141 .voltage = {2700, 3600},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +11005142 .reg_bits =
5143 {
5144 .srp = {STATUS1, 7, RW},
5145 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
5146 .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */
5147 },
5148 .decode_range = decode_range_spi25,
David Hendricks6d715302011-07-24 22:21:57 +00005149 },
5150
5151 {
5152 .vendor = "Eon",
5153 .name = "EN25QH16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005154 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00005155 .manufacture_id = EON_ID_NOPREFIX,
5156 .model_id = EON_EN25QH16,
5157 .total_size = 2048,
5158 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00005159 /* supports SFDP */
5160 /* OTP: 512B total; enter 0x3A */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005161 /* QPI enable 0x38, disable 0xFF */
5162 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner5c316f92015-02-08 21:57:52 +00005163 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00005164 .probe = probe_spi_rdid,
5165 .probe_timing = TIMING_ZERO,
5166 .block_erasers =
5167 {
5168 {
5169 .eraseblocks = { {4 * 1024, 512} },
5170 .block_erase = spi_block_erase_20,
5171 }, {
5172 .eraseblocks = { {64 * 1024, 32} },
5173 .block_erase = spi_block_erase_d8,
5174 }, {
5175 .eraseblocks = { {1024 * 2048, 1} },
5176 .block_erase = spi_block_erase_60,
5177 }, {
5178 .eraseblocks = { {1024 * 2048, 1} },
5179 .block_erase = spi_block_erase_c7,
5180 }
5181 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005182 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005183 .unlock = spi_disable_blockprotect_bp3_srwd,
David Hendricks6d715302011-07-24 22:21:57 +00005184 .write = spi_chip_write_256,
5185 .read = spi_chip_read,
Stefan Tauner2cef9162012-05-14 01:51:46 +00005186 .voltage = {2700, 3600},
5187 },
5188
5189 {
5190 .vendor = "Eon",
5191 .name = "EN25QH32",
5192 .bustype = BUS_SPI,
5193 .manufacture_id = EON_ID_NOPREFIX,
5194 .model_id = EON_EN25QH32,
5195 .total_size = 4096,
5196 .page_size = 256,
5197 /* supports SFDP */
5198 /* OTP: 512B total; enter 0x3A */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005199 /* QPI enable 0x38, disable 0xFF */
5200 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner23e10b82016-01-23 16:16:49 +00005201 .tested = TEST_OK_PREW,
Stefan Tauner2cef9162012-05-14 01:51:46 +00005202 .probe = probe_spi_rdid,
5203 .probe_timing = TIMING_ZERO,
5204 .block_erasers =
5205 {
5206 {
5207 .eraseblocks = { {4 * 1024, 1024} },
5208 .block_erase = spi_block_erase_20,
5209 }, {
5210 .eraseblocks = { {64 * 1024, 64} },
5211 .block_erase = spi_block_erase_d8,
5212 }, {
5213 .eraseblocks = { {1024 * 4096, 1} },
5214 .block_erase = spi_block_erase_60,
5215 }, {
5216 .eraseblocks = { {1024 * 4096, 1} },
5217 .block_erase = spi_block_erase_c7,
5218 }
5219 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005220 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005221 .unlock = spi_disable_blockprotect_bp3_srwd,
5222 .write = spi_chip_write_256,
5223 .read = spi_chip_read,
5224 .voltage = {2700, 3600},
Sergii Dmytrukc6e8b1a2022-08-14 20:57:48 +03005225 .reg_bits =
5226 {
5227 .srp = {STATUS1, 7, RW},
5228 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
5229 .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */
5230 },
5231 .decode_range = decode_range_spi25,
5232 },
5233
5234 {
5235 .vendor = "Eon",
5236 .name = "EN25QH32B",
5237 .bustype = BUS_SPI,
5238 .manufacture_id = EON_ID_NOPREFIX,
5239 .model_id = EON_EN25QH32,
5240 .total_size = 4096,
5241 .page_size = 256,
5242 /* supports SFDP */
5243 /* OTP: 1536B total; enter 0x3A */
5244 /* QPI enable 0x38, disable 0xFF */
5245 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5246 .tested = TEST_OK_PREW,
5247 .probe = probe_spi_rdid,
5248 .probe_timing = TIMING_ZERO,
5249 .block_erasers =
5250 {
5251 {
5252 .eraseblocks = { {4 * 1024, 1024} },
5253 .block_erase = spi_block_erase_20,
5254 }, {
5255 .eraseblocks = { {32 * 1024, 128} },
5256 .block_erase = spi_block_erase_52,
5257 }, {
5258 .eraseblocks = { {64 * 1024, 64} },
5259 .block_erase = spi_block_erase_d8,
5260 }, {
5261 .eraseblocks = { {1024 * 4096, 1} },
5262 .block_erase = spi_block_erase_60,
5263 }, {
5264 .eraseblocks = { {1024 * 4096, 1} },
5265 .block_erase = spi_block_erase_c7,
5266 }
5267 },
5268 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
5269 .unlock = spi_disable_blockprotect_bp3_srwd,
5270 .write = spi_chip_write_256,
5271 .read = spi_chip_read,
5272 .voltage = {2700, 3600},
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005273 },
5274
5275 {
5276 .vendor = "Eon",
5277 .name = "EN25QH64",
5278 .bustype = BUS_SPI,
5279 .manufacture_id = EON_ID_NOPREFIX,
5280 .model_id = EON_EN25QH64,
5281 .total_size = 8192,
5282 .page_size = 256,
5283 /* supports SFDP */
5284 /* OTP: 512B total; enter 0x3A */
5285 /* QPI enable 0x38, disable 0xFF */
5286 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner23e10b82016-01-23 16:16:49 +00005287 .tested = TEST_OK_PREW,
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005288 .probe = probe_spi_rdid,
5289 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005290 .block_erasers =
5291 {
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005292 {
5293 .eraseblocks = { {4 * 1024, 2048} },
5294 .block_erase = spi_block_erase_20,
5295 }, {
5296 .eraseblocks = { {64 * 1024, 128} },
5297 .block_erase = spi_block_erase_d8,
5298 }, {
5299 .eraseblocks = { { 8192 * 1024, 1} },
5300 .block_erase = spi_block_erase_60,
5301 }, {
5302 .eraseblocks = { { 8192 * 1024, 1} },
5303 .block_erase = spi_block_erase_c7,
5304 }
5305 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005306 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005307 .unlock = spi_disable_blockprotect_bp3_srwd,
5308 .write = spi_chip_write_256,
5309 .read = spi_chip_read,
5310 .voltage = {2700, 3600},
Sergii Dmytrukc6e8b1a2022-08-14 20:57:48 +03005311 .reg_bits =
5312 {
5313 .srp = {STATUS1, 7, RW},
5314 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
5315 .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */
5316 },
5317 .decode_range = decode_range_spi25_64k_block,
5318 },
5319
5320 {
5321 .vendor = "Eon",
5322 .name = "EN25QH64A",
5323 .bustype = BUS_SPI,
5324 .manufacture_id = EON_ID_NOPREFIX,
5325 .model_id = EON_EN25QH64,
5326 .total_size = 8192,
5327 .page_size = 256,
5328 /* supports SFDP */
5329 /* OTP: 512B total; enter 0x3A */
5330 /* QPI enable 0x38, disable 0xFF */
5331 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5332 .tested = TEST_OK_PREW,
5333 .probe = probe_spi_rdid,
5334 .probe_timing = TIMING_ZERO,
5335 .block_erasers =
5336 {
5337 {
5338 .eraseblocks = { {4 * 1024, 2048} },
5339 .block_erase = spi_block_erase_20,
5340 }, {
5341 .eraseblocks = { {32 * 1024, 256} },
5342 .block_erase = spi_block_erase_52,
5343 }, {
5344 .eraseblocks = { {64 * 1024, 128} },
5345 .block_erase = spi_block_erase_d8,
5346 }, {
5347 .eraseblocks = { { 8192 * 1024, 1} },
5348 .block_erase = spi_block_erase_60,
5349 }, {
5350 .eraseblocks = { { 8192 * 1024, 1} },
5351 .block_erase = spi_block_erase_c7,
5352 }
5353 },
5354 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
5355 .unlock = spi_disable_blockprotect_bp3_srwd,
5356 .write = spi_chip_write_256,
5357 .read = spi_chip_read,
5358 .voltage = {2700, 3600},
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005359 },
5360
5361 {
5362 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005363 .name = "EN25S10",
5364 .bustype = BUS_SPI,
5365 .manufacture_id = EON_ID_NOPREFIX,
5366 .model_id = EON_EN25S10,
5367 .total_size = 128,
5368 .page_size = 256,
5369 /* OTP: 256B total; enter 0x3A */
5370 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5371 .tested = TEST_UNTESTED,
5372 .probe = probe_spi_rdid,
5373 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005374 .block_erasers =
5375 {
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005376 {
5377 .eraseblocks = { {4 * 1024, 32} },
5378 .block_erase = spi_block_erase_20,
5379 }, {
5380 .eraseblocks = { {32 * 1024, 4} },
5381 .block_erase = spi_block_erase_52,
5382 }, {
5383 .eraseblocks = { {128 * 1024, 1} },
5384 .block_erase = spi_block_erase_60,
5385 }, {
5386 .eraseblocks = { {128 * 1024, 1} },
5387 .block_erase = spi_block_erase_c7,
5388 }
5389 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005390 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005391 .unlock = spi_disable_blockprotect,
5392 .write = spi_chip_write_256,
5393 .read = spi_chip_read,
5394 .voltage = {1650, 1950},
5395 },
5396
5397 {
5398 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005399 .name = "EN25S16",
5400 .bustype = BUS_SPI,
5401 .manufacture_id = EON_ID_NOPREFIX,
5402 .model_id = EON_EN25S16,
5403 .total_size = 2048,
5404 .page_size = 256,
5405 /* OTP: 512B total; enter 0x3A */
5406 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5407 .tested = TEST_UNTESTED,
5408 .probe = probe_spi_rdid,
5409 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005410 .block_erasers =
5411 {
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005412 {
5413 .eraseblocks = { {4 * 1024, 512} },
5414 .block_erase = spi_block_erase_20,
5415 }, {
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005416 .eraseblocks = { {32 * 1024, 64} },
5417 .block_erase = spi_block_erase_d8,
5418 }, {
Aarya Chaumal478e1792022-06-04 01:34:44 +05305419 .eraseblocks = { {64 * 1024, 32} },
5420 .block_erase = spi_block_erase_52,
5421 }, {
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005422 .eraseblocks = { {2048 * 1024, 1} },
5423 .block_erase = spi_block_erase_60,
5424 }, {
5425 .eraseblocks = { {2048 * 1024, 1} },
5426 .block_erase = spi_block_erase_c7,
5427 }
5428 },
5429 .printlock = spi_prettyprint_status_register_en25s_wp,
5430 .unlock = spi_disable_blockprotect_bp3_srwd,
5431 .write = spi_chip_write_256,
5432 .read = spi_chip_read,
5433 .voltage = {1650, 1950},
5434 },
5435
5436 {
5437 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005438 .name = "EN25S20",
5439 .bustype = BUS_SPI,
5440 .manufacture_id = EON_ID_NOPREFIX,
5441 .model_id = EON_EN25S20,
5442 .total_size = 256,
5443 .page_size = 256,
5444 /* OTP: 256B total; enter 0x3A */
5445 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5446 .tested = TEST_UNTESTED,
5447 .probe = probe_spi_rdid,
5448 .probe_timing = TIMING_ZERO,
5449 .block_erasers =
5450 {
5451 {
5452 .eraseblocks = { {4 * 1024, 64} },
5453 .block_erase = spi_block_erase_20,
5454 }, {
5455 .eraseblocks = { {64 * 1024, 4} },
5456 .block_erase = spi_block_erase_d8,
5457 }, {
5458 .eraseblocks = { {256 * 1024, 1} },
5459 .block_erase = spi_block_erase_60,
5460 }, {
5461 .eraseblocks = { {256 * 1024, 1} },
5462 .block_erase = spi_block_erase_c7,
5463 }
5464 },
5465 .printlock = spi_prettyprint_status_register_bp2_srwd,
5466 .unlock = spi_disable_blockprotect,
5467 .write = spi_chip_write_256,
5468 .read = spi_chip_read,
5469 .voltage = {1650, 1950},
5470 },
5471
5472 {
5473 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005474 .name = "EN25S32",
5475 .bustype = BUS_SPI,
5476 .manufacture_id = EON_ID_NOPREFIX,
5477 .model_id = EON_EN25S32,
5478 .total_size = 4096,
5479 .page_size = 256,
5480 /* OTP: 512B total; enter 0x3A */
5481 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
5482 .tested = TEST_UNTESTED,
5483 .probe = probe_spi_rdid,
5484 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005485 .block_erasers =
5486 {
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005487 {
5488 .eraseblocks = { {4 * 1024, 1024} },
5489 .block_erase = spi_block_erase_20,
5490 }, {
5491 .eraseblocks = { {32 * 1024, 128} },
5492 .block_erase = spi_block_erase_52,
5493 }, {
5494 .eraseblocks = { {64 * 1024, 64} },
5495 .block_erase = spi_block_erase_d8,
5496 }, {
5497 .eraseblocks = { {4096 * 1024, 1} },
5498 .block_erase = spi_block_erase_60,
5499 }, {
5500 .eraseblocks = { {4096 * 1024, 1} },
5501 .block_erase = spi_block_erase_c7,
5502 }
5503 },
5504 .printlock = spi_prettyprint_status_register_en25s_wp,
5505 .unlock = spi_disable_blockprotect_bp3_srwd,
5506 .write = spi_chip_write_256,
5507 .read = spi_chip_read,
5508 .voltage = {1650, 1950},
5509 },
5510
5511 {
5512 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005513 .name = "EN25S40",
5514 .bustype = BUS_SPI,
5515 .manufacture_id = EON_ID_NOPREFIX,
5516 .model_id = EON_EN25S40,
5517 .total_size = 512,
5518 .page_size = 256,
5519 /* OTP: 256B total; enter 0x3A */
5520 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5521 .tested = TEST_OK_PREW,
5522 .probe = probe_spi_rdid,
5523 .probe_timing = TIMING_ZERO,
5524 .block_erasers =
5525 {
5526 {
5527 .eraseblocks = { {4 * 1024, 128} },
5528 .block_erase = spi_block_erase_20,
5529 }, {
5530 .eraseblocks = { {64 * 1024, 8} },
5531 .block_erase = spi_block_erase_d8,
5532 }, {
5533 .eraseblocks = { {512 * 1024, 1} },
5534 .block_erase = spi_block_erase_60,
5535 }, {
5536 .eraseblocks = { {512 * 1024, 1} },
5537 .block_erase = spi_block_erase_c7,
5538 }
5539 },
5540 .printlock = spi_prettyprint_status_register_bp2_srwd,
5541 .unlock = spi_disable_blockprotect,
5542 .write = spi_chip_write_256,
5543 .read = spi_chip_read,
5544 .voltage = {1650, 1950},
5545 },
5546
5547 {
5548 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005549 .name = "EN25S64",
5550 .bustype = BUS_SPI,
5551 .manufacture_id = EON_ID_NOPREFIX,
5552 .model_id = EON_EN25S64,
5553 .total_size = 8192,
5554 .page_size = 256,
5555 /* OTP: 512B total; enter 0x3A */
5556 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Nikolai Artemievdf889fa2021-03-23 17:10:45 +11005557 .tested = TEST_OK_PREW,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005558 .probe = probe_spi_rdid,
5559 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005560 .block_erasers =
5561 {
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005562 {
5563 .eraseblocks = { {4 * 1024, 2048} },
5564 .block_erase = spi_block_erase_20,
5565 }, {
5566 .eraseblocks = { {64 * 1024, 128} },
5567 .block_erase = spi_block_erase_d8,
5568 }, {
5569 .eraseblocks = { {8192 * 1024, 1} },
5570 .block_erase = spi_block_erase_60,
5571 }, {
5572 .eraseblocks = { {8192 * 1024, 1} },
5573 .block_erase = spi_block_erase_c7,
5574 }
5575 },
5576 .printlock = spi_prettyprint_status_register_en25s_wp,
5577 .unlock = spi_disable_blockprotect_bp3_srwd,
5578 .write = spi_chip_write_256,
5579 .read = spi_chip_read,
5580 .voltage = {1650, 1950},
5581 },
5582
5583 {
5584 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005585 .name = "EN25S80",
5586 .bustype = BUS_SPI,
5587 .manufacture_id = EON_ID_NOPREFIX,
5588 .model_id = EON_EN25S80,
5589 .total_size = 1024,
5590 .page_size = 256,
5591 /* OTP: 256B total; enter 0x3A */
5592 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5593 .tested = TEST_UNTESTED,
5594 .probe = probe_spi_rdid,
5595 .probe_timing = TIMING_ZERO,
Russ Dill3cd5a122010-03-05 08:44:11 +00005596 .block_erasers =
5597 {
5598 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005599 .eraseblocks = { {4 * 1024, 256} },
5600 .block_erase = spi_block_erase_20,
5601 }, {
5602 .eraseblocks = { {64 * 1024, 16} },
5603 .block_erase = spi_block_erase_d8,
5604 }, {
5605 .eraseblocks = { {1024 * 1024, 1} },
5606 .block_erase = spi_block_erase_60,
5607 }, {
5608 .eraseblocks = { {1024 * 1024, 1} },
5609 .block_erase = spi_block_erase_c7,
5610 }
Russ Dill3cd5a122010-03-05 08:44:11 +00005611 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005612 .printlock = spi_prettyprint_status_register_bp2_srwd,
5613 .unlock = spi_disable_blockprotect,
5614 .write = spi_chip_write_256,
5615 .read = spi_chip_read,
5616 .voltage = {1650, 1950},
Russ Dill3cd5a122010-03-05 08:44:11 +00005617 },
5618
5619 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00005620 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005621 .name = "EN29F002(A)(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005622 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005623 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005624 .model_id = EON_EN29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005625 .total_size = 256,
5626 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00005627 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Alan Green4362e622019-08-26 15:02:12 +10005628 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005629 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005630 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005631 .block_erasers =
5632 {
5633 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005634 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005635 {16 * 1024, 1},
Michael Karchere3cb0a12010-03-13 23:47:09 +00005636 {8 * 1024, 2},
5637 {32 * 1024, 1},
5638 {64 * 1024, 3},
Sean Nelson6b11ad22009-12-23 17:05:59 +00005639 },
5640 .block_erase = erase_sector_jedec,
5641 }, {
5642 .eraseblocks = { {256 * 1024, 1} },
5643 .block_erase = erase_chip_block_jedec,
5644 },
5645 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005646 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005647 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005648 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005649 },
5650
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005651 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00005652 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005653 .name = "EN29F002(A)(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005654 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005655 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005656 .model_id = EON_EN29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005657 .total_size = 256,
5658 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00005659 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00005660 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005661 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005662 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005663 .block_erasers =
5664 {
5665 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005666 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005667 {64 * 1024, 3},
Michael Karchere3cb0a12010-03-13 23:47:09 +00005668 {32 * 1024, 1},
5669 {8 * 1024, 2},
5670 {16 * 1024, 1},
Sean Nelson6b11ad22009-12-23 17:05:59 +00005671 },
5672 .block_erase = erase_sector_jedec,
5673 }, {
5674 .eraseblocks = { {256 * 1024, 1} },
5675 .block_erase = erase_chip_block_jedec,
5676 },
5677 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005678 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005679 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005680 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00005681 },
5682
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005683 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005684 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005685 .name = "EN29F010",
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005686 .bustype = BUS_PARALLEL,
5687 .manufacture_id = EON_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005688 .model_id = EON_EN29F010,
5689 .total_size = 128,
5690 .page_size = 128,
5691 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
5692 .tested = TEST_OK_PRE,
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005693 .probe = probe_jedec,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005694 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005695 .block_erasers =
5696 {
5697 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005698 .eraseblocks = { {16 * 1024, 8} },
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005699 .block_erase = erase_sector_jedec,
5700 },
5701 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005702 .eraseblocks = { {128 * 1024, 1} },
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005703 .block_erase = erase_chip_block_jedec,
5704 },
5705 },
5706 .write = write_jedec_1,
5707 .read = read_memmapped,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005708 .voltage = {4500, 5500},
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005709 },
5710
5711 {
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00005712 .vendor = "Eon",
5713 .name = "EN29GL064(A)B",
5714 .bustype = BUS_PARALLEL,
5715 .manufacture_id = EON_ID,
5716 .model_id = EON_EN29GL064B,
5717 .total_size = 8192,
5718 .page_size = 128 * 1024, /* actual page size is 16 */
5719 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5720 .tested = TEST_UNTESTED,
5721 .probe = probe_jedec_29gl,
5722 .probe_timing = TIMING_ZERO,
5723 .block_erasers =
5724 {
5725 {
5726 .eraseblocks = {
5727 {8 * 1024, 8},
5728 {64 * 1024, 127},
5729 },
5730 .block_erase = erase_sector_jedec,
5731 }, {
5732 .eraseblocks = { {8 * 1024 * 1024, 1} },
5733 .block_erase = erase_chip_block_jedec,
5734 },
5735 },
5736 .write = write_jedec_1,
5737 .read = read_memmapped,
5738 .voltage = {2700, 3600},
5739 },
5740
5741 {
5742 .vendor = "Eon",
5743 .name = "EN29GL064(A)T",
5744 .bustype = BUS_PARALLEL,
5745 .manufacture_id = EON_ID,
5746 .model_id = EON_EN29GL064T,
5747 .total_size = 8192,
5748 .page_size = 128 * 1024, /* actual page size is 16 */
5749 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5750 .tested = TEST_UNTESTED,
5751 .probe = probe_jedec_29gl,
5752 .probe_timing = TIMING_ZERO,
5753 .block_erasers =
5754 {
5755 {
5756 .eraseblocks = {
5757 {64 * 1024, 127},
5758 {8 * 1024, 8},
5759 },
5760 .block_erase = erase_sector_jedec,
5761 }, {
5762 .eraseblocks = { {8 * 1024 * 1024, 1} },
5763 .block_erase = erase_chip_block_jedec,
5764 },
5765 },
5766 .write = write_jedec_1,
5767 .read = read_memmapped,
5768 .voltage = {2700, 3600},
5769 },
5770
5771 {
5772 .vendor = "Eon",
5773 .name = "EN29GL064H/L",
5774 .bustype = BUS_PARALLEL,
5775 .manufacture_id = EON_ID,
5776 .model_id = EON_EN29GL064HL,
5777 .total_size = 8192,
5778 .page_size = 128 * 1024, /* actual page size is 16 */
5779 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5780 .tested = TEST_UNTESTED,
5781 .probe = probe_jedec_29gl,
5782 .probe_timing = TIMING_ZERO,
5783 .block_erasers =
5784 {
5785 {
5786 .eraseblocks = { {64 * 1024, 128} },
5787 .block_erase = erase_sector_jedec,
5788 }, {
5789 .eraseblocks = { {8 * 1024 * 1024, 1} },
5790 .block_erase = erase_chip_block_jedec,
5791 },
5792 },
5793 .write = write_jedec_1,
5794 .read = read_memmapped,
5795 .voltage = {2700, 3600},
5796 },
5797
5798 {
5799 .vendor = "Eon",
5800 .name = "EN29GL128",
5801 .bustype = BUS_PARALLEL,
5802 .manufacture_id = EON_ID,
5803 .model_id = EON_EN29GL128HL,
5804 .total_size = 16384,
5805 .page_size = 128 * 1024, /* actual page size is 16 */
5806 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5807 .tested = TEST_UNTESTED,
5808 .probe = probe_jedec_29gl,
5809 .probe_timing = TIMING_ZERO,
5810 .block_erasers =
5811 {
5812 {
5813 .eraseblocks = { {128 * 1024, 128} },
5814 .block_erase = erase_sector_jedec,
5815 }, {
5816 .eraseblocks = { {16 * 1024 * 1024, 1} },
5817 .block_erase = erase_chip_block_jedec,
5818 },
5819 },
5820 .write = write_jedec_1,
5821 .read = read_memmapped,
5822 .voltage = {2700, 3600},
5823 },
5824
5825 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005826 .vendor = "Eon",
5827 .name = "EN29LV040(A)",
5828 .bustype = BUS_PARALLEL,
5829 .manufacture_id = EON_ID,
5830 .model_id = EON_EN29LV040,
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005831 .total_size = 512,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005832 .page_size = 4 * 1024,
5833 .tested = TEST_OK_PREW,
5834 .probe = probe_jedec,
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005835 .probe_timing = TIMING_ZERO,
5836 .block_erasers =
5837 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00005838 {
5839 .eraseblocks = { {64 * 1024, 8} },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005840 .block_erase = erase_sector_jedec,
5841 },
5842 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00005843 .eraseblocks = { {512 * 1024, 1} },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005844 .block_erase = erase_chip_block_jedec,
5845 },
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005846 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005847 .write = write_jedec_1,
5848 .read = read_memmapped,
5849 .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R and 55R, others 2.7-3.6V */
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005850 },
5851
5852 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005853 .vendor = "Eon",
5854 .name = "EN29LV640B",
5855 .bustype = BUS_PARALLEL,
5856 .manufacture_id = EON_ID,
5857 .model_id = EON_EN29LV640B,
5858 .total_size = 8192,
5859 .page_size = 8192,
5860 .feature_bits = FEATURE_ADDR_SHIFTED,
5861 .tested = TEST_OK_PREW,
5862 .probe = probe_en29lv640b,
5863 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005864 .block_erasers =
5865 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00005866 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005867 .eraseblocks = {
5868 {8 * 1024, 8},
5869 {64 * 1024, 127},
5870 },
5871 .block_erase = erase_block_jedec,
Stefan Tauner0be072c2016-03-13 15:16:30 +00005872 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005873 .eraseblocks = { {8 * 1024 * 1024, 1} },
5874 .block_erase = erase_chip_block_jedec,
5875 },
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005876 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005877 .write = write_en29lv640b,
5878 .read = read_memmapped,
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005879 .voltage = {2700, 3600},
5880 },
5881
5882 {
Jakob Petersson0cf3e122019-02-18 01:55:43 +01005883 .vendor = "Fudan",
5884 .name = "FM25F005",
5885 .bustype = BUS_SPI,
5886 .manufacture_id = FUDAN_ID_NOPREFIX,
5887 .model_id = FUDAN_FM25F005,
5888 .total_size = 64,
5889 .page_size = 256,
5890 /* OTP: 256B total; enter 0x3A */
5891 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5892 .tested = TEST_UNTESTED,
5893 .probe = probe_spi_rdid,
5894 .probe_timing = TIMING_ZERO,
5895 .block_erasers = {
5896 {
5897 .eraseblocks = { {4 * 1024, 16} },
5898 .block_erase = spi_block_erase_20,
5899 }, {
5900 .eraseblocks = { {32 * 1024, 2} },
5901 .block_erase = spi_block_erase_52,
5902 }, {
5903 .eraseblocks = { {64 * 1024, 1} },
5904 .block_erase = spi_block_erase_d8,
5905 }, {
5906 .eraseblocks = { {64 * 1024, 1} },
5907 .block_erase = spi_block_erase_60,
5908 }, {
5909 .eraseblocks = { {64 * 1024, 1} },
5910 .block_erase = spi_block_erase_c7,
5911 }
5912 },
5913 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
5914 .unlock = spi_disable_blockprotect_bp2_srwd,
5915 .write = spi_chip_write_256,
5916 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
5917 .voltage = {2700, 3600}, /* 2.3-2.7V acceptable results in lower performance */
5918 },
5919
5920 {
5921 .vendor = "Fudan",
5922 .name = "FM25F01",
5923 .bustype = BUS_SPI,
5924 .manufacture_id = FUDAN_ID_NOPREFIX,
5925 .model_id = FUDAN_FM25F01,
5926 .total_size = 128,
5927 .page_size = 256,
5928 /* OTP: 256B total; enter 0x3A */
5929 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5930 .tested = TEST_UNTESTED,
5931 .probe = probe_spi_rdid,
5932 .probe_timing = TIMING_ZERO,
5933 .block_erasers = {
5934 {
5935 .eraseblocks = { {4 * 1024, 32} },
5936 .block_erase = spi_block_erase_20,
5937 }, {
5938 .eraseblocks = { {32 * 1024, 4} },
5939 .block_erase = spi_block_erase_52,
5940 }, {
5941 .eraseblocks = { {64 * 1024, 2} },
5942 .block_erase = spi_block_erase_d8,
5943 }, {
5944 .eraseblocks = { {128 * 1024, 1} },
5945 .block_erase = spi_block_erase_60,
5946 }, {
5947 .eraseblocks = { {128 * 1024, 1} },
5948 .block_erase = spi_block_erase_c7,
5949 }
5950 },
5951 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
5952 .unlock = spi_disable_blockprotect_bp2_srwd,
5953 .write = spi_chip_write_256,
5954 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
5955 .voltage = {2700, 3600}, /* 2.3-2.7V acceptable results in lower performance */
5956 },
5957
5958 {
5959 .vendor = "Fudan",
5960 .name = "FM25F02(A)",
5961 .bustype = BUS_SPI,
5962 .manufacture_id = FUDAN_ID_NOPREFIX,
5963 .model_id = FUDAN_FM25F02,
5964 .total_size = 256,
5965 .page_size = 256,
5966 /* OTP: 256B total; enter 0x3A, (A version only:) read ID 0x4B */
5967 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5968 .tested = TEST_UNTESTED,
5969 .probe = probe_spi_rdid,
5970 .probe_timing = TIMING_ZERO,
5971 .block_erasers = {
5972 {
5973 .eraseblocks = { {4 * 1024, 64} },
5974 .block_erase = spi_block_erase_20,
5975 }, {
5976 .eraseblocks = { {32 * 1024, 8} },
5977 .block_erase = spi_block_erase_52,
5978 }, {
5979 .eraseblocks = { {64 * 1024, 4} },
5980 .block_erase = spi_block_erase_d8,
5981 }, {
5982 .eraseblocks = { {1024 * 256, 1} },
5983 .block_erase = spi_block_erase_60,
5984 }, {
5985 .eraseblocks = { {1024 * 256, 1} },
5986 .block_erase = spi_block_erase_c7,
5987 },
5988 },
5989 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
5990 .unlock = spi_disable_blockprotect_bp2_srwd,
5991 .write = spi_chip_write_256,
5992 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
5993 .voltage = {2700, 3600}, /* 2.3-2.7V acceptable results in lower performance */
5994 },
5995
5996 {
5997 .vendor = "Fudan",
5998 .name = "FM25F04(A)",
5999 .bustype = BUS_SPI,
6000 .manufacture_id = FUDAN_ID_NOPREFIX,
6001 .model_id = FUDAN_FM25F04,
6002 .total_size = 512,
6003 .page_size = 256,
6004 /* OTP: 256B total; enter 0x3A, (A version only:) read ID 0x4B */
6005 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6006 .tested = TEST_UNTESTED,
6007 .probe = probe_spi_rdid,
6008 .probe_timing = TIMING_ZERO,
6009 .block_erasers = {
6010 {
6011 .eraseblocks = { {4 * 1024, 128} },
6012 .block_erase = spi_block_erase_20,
6013 }, {
6014 .eraseblocks = { {32 * 1024, 16} },
6015 .block_erase = spi_block_erase_52,
6016 }, {
6017 .eraseblocks = { {64 * 1024, 8} },
6018 .block_erase = spi_block_erase_d8,
6019 }, {
6020 .eraseblocks = { {1024 * 512, 1} },
6021 .block_erase = spi_block_erase_60,
6022 }, {
6023 .eraseblocks = { {1024 * 512, 1} },
6024 .block_erase = spi_block_erase_c7,
6025 },
6026 },
6027 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
6028 .unlock = spi_disable_blockprotect_bp2_srwd,
6029 .write = spi_chip_write_256,
6030 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
6031 .voltage = {2700, 3600},
6032 },
6033
6034 {
6035 .vendor = "Fudan",
6036 .name = "FM25Q08",
6037 .bustype = BUS_SPI,
6038 .manufacture_id = FUDAN_ID_NOPREFIX,
6039 .model_id = FUDAN_FM25Q08,
6040 .total_size = 1024,
6041 .page_size = 256,
6042 /* supports SFDP */
6043 /* OTP: 1024B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
6044 /* QPI enable 0x38, disable 0xFF */
6045 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6046 .tested = TEST_UNTESTED,
6047 .probe = probe_spi_rdid,
6048 .probe_timing = TIMING_ZERO,
6049 .block_erasers = {
6050 {
6051 .eraseblocks = { {4 * 1024, 256} },
6052 .block_erase = spi_block_erase_20,
6053 }, {
6054 .eraseblocks = { {32 * 1024, 32} },
6055 .block_erase = spi_block_erase_52,
6056 }, {
6057 .eraseblocks = { {64 * 1024, 16} },
6058 .block_erase = spi_block_erase_d8,
6059 }, {
6060 .eraseblocks = { {1024 * 1024, 1} },
6061 .block_erase = spi_block_erase_60,
6062 }, {
6063 .eraseblocks = { {1024 * 1024, 1} },
6064 .block_erase = spi_block_erase_c7,
6065 },
6066 },
6067 .printlock = spi_prettyprint_status_register_bp2_tb_bpl, /* bit6 selects size of protected blocks; TODO: SR2 */
6068 .unlock = spi_disable_blockprotect_bp2_srwd,
6069 .write = spi_chip_write_256,
6070 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6071 .voltage = {2700, 3600},
6072 },
6073
6074 {
6075 .vendor = "Fudan",
6076 .name = "FM25Q16",
6077 .bustype = BUS_SPI,
6078 .manufacture_id = FUDAN_ID_NOPREFIX,
6079 .model_id = FUDAN_FM25Q16,
6080 .total_size = 2048,
6081 .page_size = 256,
6082 /* supports SFDP */
6083 /* OTP: 1024B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
6084 /* QPI enable 0x38, disable 0xFF */
6085 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6086 .tested = TEST_UNTESTED,
6087 .probe = probe_spi_rdid,
6088 .probe_timing = TIMING_ZERO,
6089 .block_erasers = {
6090 {
6091 .eraseblocks = { {4 * 1024, 512} },
6092 .block_erase = spi_block_erase_20,
6093 }, {
6094 .eraseblocks = { {32 * 1024, 64} },
6095 .block_erase = spi_block_erase_52,
6096 }, {
6097 .eraseblocks = { {64 * 1024, 32} },
6098 .block_erase = spi_block_erase_d8,
6099 }, {
6100 .eraseblocks = { {2 * 1024 * 1024, 1} },
6101 .block_erase = spi_block_erase_60,
6102 }, {
6103 .eraseblocks = { {2 * 1024 * 1024, 1} },
6104 .block_erase = spi_block_erase_c7,
6105 }
6106 },
6107 .printlock = spi_prettyprint_status_register_bp2_tb_bpl, /* bit6 selects size of protected blocks; TODO: SR2 */
6108 .unlock = spi_disable_blockprotect_bp2_srwd,
6109 .write = spi_chip_write_256,
6110 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6111 .voltage = {2700, 3600},
6112 },
6113
6114 {
6115 .vendor = "Fudan",
6116 .name = "FM25Q32",
6117 .bustype = BUS_SPI,
6118 .manufacture_id = FUDAN_ID_NOPREFIX,
6119 .model_id = FUDAN_FM25Q32,
6120 .total_size = 4096,
6121 .page_size = 256,
6122 /* supports SFDP */
6123 /* OTP: 1024B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
6124 /* QPI enable 0x38, disable 0xFF */
6125 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
6126 .tested = TEST_UNTESTED,
6127 .probe = probe_spi_rdid,
6128 .probe_timing = TIMING_ZERO,
6129 .block_erasers = {
6130 {
6131 .eraseblocks = { {4 * 1024, 1024} },
6132 .block_erase = spi_block_erase_20,
6133 }, {
6134 .eraseblocks = { {32 * 1024, 128} },
6135 .block_erase = spi_block_erase_52,
6136 }, {
6137 .eraseblocks = { {64 * 1024, 64} },
6138 .block_erase = spi_block_erase_d8,
6139 }, {
6140 .eraseblocks = { {4 * 1024 * 1024, 1} },
6141 .block_erase = spi_block_erase_60,
6142 }, {
6143 .eraseblocks = { {4 * 1024 * 1024, 1} },
6144 .block_erase = spi_block_erase_c7,
6145 },
6146 },
6147 .printlock = spi_prettyprint_status_register_bp2_tb_bpl, /* bit6 selects size of protected blocks; TODO: SR2 */
6148 .unlock = spi_disable_blockprotect_bp2_srwd,
6149 .write = spi_chip_write_256,
6150 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6151 .voltage = {2700, 3600},
6152 },
6153
6154 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006155 .vendor = "Fujitsu",
6156 .name = "MBM29F004BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006157 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006158 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006159 .model_id = FUJITSU_MBM29F004BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006160 .total_size = 512,
6161 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006162 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006163 .tested = TEST_UNTESTED,
6164 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006165 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00006166 .block_erasers =
6167 {
6168 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006169 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00006170 {16 * 1024, 1},
6171 {8 * 1024, 2},
6172 {32 * 1024, 1},
6173 {64 * 1024, 7},
6174 },
Sean Nelson35727f72010-01-28 23:55:12 +00006175 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006176 }, {
6177 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006178 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006179 },
6180 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006181 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006182 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006183 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006184 },
6185
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006186 {
6187 .vendor = "Fujitsu",
6188 .name = "MBM29F004TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006189 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006190 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006191 .model_id = FUJITSU_MBM29F004TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006192 .total_size = 512,
6193 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006194 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006195 .tested = TEST_UNTESTED,
6196 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006197 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00006198 .block_erasers =
6199 {
6200 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006201 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00006202 {64 * 1024, 7},
6203 {32 * 1024, 1},
6204 {8 * 1024, 2},
6205 {16 * 1024, 1},
6206 },
Sean Nelson35727f72010-01-28 23:55:12 +00006207 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006208 }, {
6209 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006210 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006211 },
6212 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006213 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006214 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006215 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00006216 },
6217
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006218 {
Sean Nelson35727f72010-01-28 23:55:12 +00006219 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006220 .vendor = "Fujitsu",
6221 .name = "MBM29F400BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006222 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006223 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006224 .model_id = FUJITSU_MBM29F400BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006225 .total_size = 512,
6226 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006227 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00006228 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006229 .probe = probe_jedec,
6230 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson6b11ad22009-12-23 17:05:59 +00006231 .block_erasers =
6232 {
6233 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006234 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00006235 {16 * 1024, 1},
6236 {8 * 1024, 2},
6237 {32 * 1024, 1},
6238 {64 * 1024, 7},
6239 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006240 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006241 }, {
6242 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006243 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006244 },
6245 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006246 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006247 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006248 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00006249 },
6250
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006251 {
6252 .vendor = "Fujitsu",
6253 .name = "MBM29F400TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006254 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006255 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006256 .model_id = FUJITSU_MBM29F400TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006257 .total_size = 512,
6258 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006259 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006260 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006261 .probe = probe_jedec,
6262 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson6b11ad22009-12-23 17:05:59 +00006263 .block_erasers =
6264 {
6265 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006266 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00006267 {64 * 1024, 7},
6268 {32 * 1024, 1},
6269 {8 * 1024, 2},
6270 {16 * 1024, 1},
6271 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006272 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006273 }, {
6274 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006275 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006276 },
6277 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006278 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006279 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006280 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +00006281 },
6282
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006283 {
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006284 .vendor = "Fujitsu",
6285 .name = "MBM29LV160BE",
6286 .bustype = BUS_PARALLEL,
6287 .manufacture_id = FUJITSU_ID,
6288 .model_id = FUJITSU_MBM29LV160BE,
6289 .total_size = 2 * 1024,
6290 .page_size = 0,
6291 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET,
6292 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006293 .probe = probe_jedec,
6294 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006295 .block_erasers =
6296 {
6297 {
6298 .eraseblocks = {
6299 {16 * 1024, 1},
6300 {8 * 1024, 2},
6301 {32 * 1024, 1},
6302 {64 * 1024, 31},
6303 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006304 .block_erase = erase_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006305 }, {
6306 .eraseblocks = { {2048 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006307 .block_erase = erase_chip_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006308 },
6309 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006310 .write = write_jedec_1, /* Supports a fast mode too */
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006311 .read = read_memmapped,
6312 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */
6313 },
6314
6315 {
6316 .vendor = "Fujitsu",
6317 .name = "MBM29LV160TE",
6318 .bustype = BUS_PARALLEL,
6319 .manufacture_id = FUJITSU_ID,
6320 .model_id = FUJITSU_MBM29LV160TE,
6321 .total_size = 2 * 1024,
6322 .page_size = 0,
6323 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET,
6324 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006325 .probe = probe_jedec,
6326 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006327 .block_erasers =
6328 {
6329 {
6330 .eraseblocks = {
6331 {64 * 1024, 31},
6332 {32 * 1024, 1},
6333 {8 * 1024, 2},
6334 {16 * 1024, 1},
6335 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006336 .block_erase = erase_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006337 }, {
6338 .eraseblocks = { {2048 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006339 .block_erase = erase_chip_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006340 },
6341 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006342 .write = write_jedec_1, /* Supports a fast mode too */
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006343 .read = read_memmapped,
6344 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */
6345 },
6346
6347 {
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006348 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006349 .name = "GD25B128B/GD25Q128B",
Roman Titov95edc892015-04-03 21:29:04 +00006350 .bustype = BUS_SPI,
6351 .manufacture_id = GIGADEVICE_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006352 .model_id = GIGADEVICE_GD25Q128,
6353 .total_size = 16384,
Roman Titov95edc892015-04-03 21:29:04 +00006354 .page_size = 256,
6355 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6356 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006357 .tested = TEST_OK_PREW,
Roman Titov95edc892015-04-03 21:29:04 +00006358 .probe = probe_spi_rdid,
6359 .probe_timing = TIMING_ZERO,
6360 .block_erasers =
6361 {
6362 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006363 .eraseblocks = { {4 * 1024, 4096} },
Roman Titov95edc892015-04-03 21:29:04 +00006364 .block_erase = spi_block_erase_20,
6365 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006366 .eraseblocks = { {32 * 1024, 512} },
Roman Titov95edc892015-04-03 21:29:04 +00006367 .block_erase = spi_block_erase_52,
6368 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006369 .eraseblocks = { {64 * 1024, 256} },
Roman Titov95edc892015-04-03 21:29:04 +00006370 .block_erase = spi_block_erase_d8,
6371 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006372 .eraseblocks = { {16 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00006373 .block_erase = spi_block_erase_60,
6374 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006375 .eraseblocks = { {16 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00006376 .block_erase = spi_block_erase_c7,
6377 }
6378 },
6379 .printlock = spi_prettyprint_status_register_bp4_srwd,
6380 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6381 .write = spi_chip_write_256,
6382 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Alan Green1f9cc7d2019-07-01 11:10:45 +10006383 .voltage = {2700, 3600},
Roman Titov95edc892015-04-03 21:29:04 +00006384 },
6385
6386 {
6387 .vendor = "GigaDevice",
Edward O'Callaghan981a3442021-06-22 11:16:55 +10006388 .name = "GD25LQ128C/GD25LQ128D/GD25LQ128E",
Roman Titov95edc892015-04-03 21:29:04 +00006389 .bustype = BUS_SPI,
6390 .manufacture_id = GIGADEVICE_ID,
Alan Green188127e2019-08-06 16:10:34 +10006391 .model_id = GIGADEVICE_GD25LQ128CD,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006392 .total_size = 16384,
Roman Titov95edc892015-04-03 21:29:04 +00006393 .page_size = 256,
6394 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Nico Huber3f3c1f32022-05-28 16:48:26 +02006395 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_WRSR_EXT2,
Sergii Dmytrukc74eac22022-10-06 18:17:58 +03006396 .tested = TEST_OK_PREWB,
Roman Titov95edc892015-04-03 21:29:04 +00006397 .probe = probe_spi_rdid,
6398 .probe_timing = TIMING_ZERO,
6399 .block_erasers =
6400 {
6401 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006402 .eraseblocks = { {4 * 1024, 4096} },
Roman Titov95edc892015-04-03 21:29:04 +00006403 .block_erase = spi_block_erase_20,
6404 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006405 .eraseblocks = { {32 * 1024, 512} },
Roman Titov95edc892015-04-03 21:29:04 +00006406 .block_erase = spi_block_erase_52,
6407 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006408 .eraseblocks = { {64 * 1024, 256} },
Roman Titov95edc892015-04-03 21:29:04 +00006409 .block_erase = spi_block_erase_d8,
6410 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006411 .eraseblocks = { {16 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00006412 .block_erase = spi_block_erase_60,
6413 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006414 .eraseblocks = { {16 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00006415 .block_erase = spi_block_erase_c7,
6416 }
6417 },
6418 .printlock = spi_prettyprint_status_register_bp4_srwd,
6419 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6420 .write = spi_chip_write_256,
6421 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6422 .voltage = {1695, 1950},
Nikolai Artemievc6c3f282021-10-20 23:34:15 +11006423 .reg_bits =
6424 {
6425 .srp = {STATUS1, 7, RW},
6426 .srl = {STATUS2, 0, RW},
6427 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
6428 .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */
6429 .sec = {STATUS1, 6, RW}, /* Called BP4 in datasheet, acts like SEC */
6430 .cmp = {STATUS2, 6, RW},
6431 },
Nikolai Artemievc9feb1b2021-10-21 01:35:13 +11006432 .decode_range = decode_range_spi25,
Roman Titov95edc892015-04-03 21:29:04 +00006433 },
6434
6435 {
6436 .vendor = "GigaDevice",
6437 .name = "GD25LQ16",
6438 .bustype = BUS_SPI,
6439 .manufacture_id = GIGADEVICE_ID,
6440 .model_id = GIGADEVICE_GD25LQ16,
6441 .total_size = 2048,
6442 .page_size = 256,
6443 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6444 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6445 .tested = TEST_UNTESTED,
6446 .probe = probe_spi_rdid,
6447 .probe_timing = TIMING_ZERO,
6448 .block_erasers =
6449 {
6450 {
6451 .eraseblocks = { {4 * 1024, 512} },
6452 .block_erase = spi_block_erase_20,
6453 }, {
6454 .eraseblocks = { {32 * 1024, 64} },
6455 .block_erase = spi_block_erase_52,
6456 }, {
6457 .eraseblocks = { {64 * 1024, 32} },
6458 .block_erase = spi_block_erase_d8,
6459 }, {
6460 .eraseblocks = { {2 * 1024 * 1024, 1} },
6461 .block_erase = spi_block_erase_60,
6462 }, {
6463 .eraseblocks = { {2 * 1024 * 1024, 1} },
6464 .block_erase = spi_block_erase_c7,
6465 }
6466 },
6467 .printlock = spi_prettyprint_status_register_bp4_srwd,
6468 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6469 .write = spi_chip_write_256,
6470 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6471 .voltage = {1695, 1950},
6472 },
6473
6474 {
6475 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006476 .name = "GD25LQ32",
6477 .bustype = BUS_SPI,
6478 .manufacture_id = GIGADEVICE_ID,
6479 .model_id = GIGADEVICE_GD25LQ32,
6480 .total_size = 4096,
6481 .page_size = 256,
6482 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6483 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6484 .tested = TEST_OK_PREW,
6485 .probe = probe_spi_rdid,
6486 .probe_timing = TIMING_ZERO,
6487 .block_erasers =
6488 {
6489 {
6490 .eraseblocks = { {4 * 1024, 1024} },
6491 .block_erase = spi_block_erase_20,
6492 }, {
6493 .eraseblocks = { {32 * 1024, 128} },
6494 .block_erase = spi_block_erase_52,
6495 }, {
6496 .eraseblocks = { {64 * 1024, 64} },
6497 .block_erase = spi_block_erase_d8,
6498 }, {
6499 .eraseblocks = { {4 * 1024 * 1024, 1} },
6500 .block_erase = spi_block_erase_60,
6501 }, {
6502 .eraseblocks = { {4 * 1024 * 1024, 1} },
6503 .block_erase = spi_block_erase_c7,
6504 }
6505 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006506 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006507 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6508 .write = spi_chip_write_256,
Roman Titov95edc892015-04-03 21:29:04 +00006509 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6510 .voltage = {1695, 1950},
6511 },
6512
6513 {
6514 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006515 .name = "GD25LQ40",
6516 .bustype = BUS_SPI,
6517 .manufacture_id = GIGADEVICE_ID,
6518 .model_id = GIGADEVICE_GD25LQ40,
6519 .total_size = 512,
6520 .page_size = 256,
6521 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6522 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6523 .tested = TEST_UNTESTED,
6524 .probe = probe_spi_rdid,
6525 .probe_timing = TIMING_ZERO,
6526 .block_erasers =
6527 {
6528 {
6529 .eraseblocks = { {4 * 1024, 128} },
6530 .block_erase = spi_block_erase_20,
6531 }, {
6532 .eraseblocks = { {32 * 1024, 16} },
6533 .block_erase = spi_block_erase_52,
6534 }, {
6535 .eraseblocks = { {64 * 1024, 8} },
6536 .block_erase = spi_block_erase_d8,
6537 }, {
6538 .eraseblocks = { {512 * 1024, 1} },
6539 .block_erase = spi_block_erase_60,
6540 }, {
6541 .eraseblocks = { {512 * 1024, 1} },
6542 .block_erase = spi_block_erase_c7,
6543 }
6544 },
6545 .printlock = spi_prettyprint_status_register_bp4_srwd,
6546 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6547 .write = spi_chip_write_256,
6548 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6549 .voltage = {1695, 1950},
6550 },
6551
6552 {
6553 .vendor = "GigaDevice",
Roman Titov95edc892015-04-03 21:29:04 +00006554 .name = "GD25LQ64(B)",
6555 .bustype = BUS_SPI,
6556 .manufacture_id = GIGADEVICE_ID,
6557 .model_id = GIGADEVICE_GD25LQ64,
6558 .total_size = 8192,
6559 .page_size = 256,
6560 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Nico Huber3f3c1f32022-05-28 16:48:26 +02006561 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_WRSR_EXT2,
Sergii Dmytrukc74eac22022-10-06 18:17:58 +03006562 .tested = TEST_OK_PREWB,
Roman Titov95edc892015-04-03 21:29:04 +00006563 .probe = probe_spi_rdid,
6564 .probe_timing = TIMING_ZERO,
6565 .block_erasers =
6566 {
6567 {
6568 .eraseblocks = { {4 * 1024, 2048} },
6569 .block_erase = spi_block_erase_20,
6570 }, {
6571 .eraseblocks = { {32 * 1024, 256} },
6572 .block_erase = spi_block_erase_52,
6573 }, {
6574 .eraseblocks = { {64 * 1024, 128} },
6575 .block_erase = spi_block_erase_d8,
6576 }, {
6577 .eraseblocks = { {8 * 1024 * 1024, 1} },
6578 .block_erase = spi_block_erase_60,
6579 }, {
6580 .eraseblocks = { {8 * 1024 * 1024, 1} },
6581 .block_erase = spi_block_erase_c7,
6582 }
6583 },
6584 .printlock = spi_prettyprint_status_register_bp4_srwd,
6585 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6586 .write = spi_chip_write_256,
6587 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6588 .voltage = {1695, 1950},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +11006589 .reg_bits =
6590 {
6591 .srp = {STATUS1, 7, RW},
6592 .srl = {STATUS2, 0, RW},
6593 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
6594 .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */
6595 .sec = {STATUS1, 6, RW}, /* Called BP4 in datasheet, acts like SEC */
6596 .cmp = {STATUS2, 6, RW},
6597 },
6598 .decode_range = decode_range_spi25,
Roman Titov95edc892015-04-03 21:29:04 +00006599 },
6600
6601 {
6602 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006603 .name = "GD25LQ80",
Roman Titov95edc892015-04-03 21:29:04 +00006604 .bustype = BUS_SPI,
6605 .manufacture_id = GIGADEVICE_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006606 .model_id = GIGADEVICE_GD25LQ80,
6607 .total_size = 1024,
Roman Titov95edc892015-04-03 21:29:04 +00006608 .page_size = 256,
6609 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
6610 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6611 .tested = TEST_UNTESTED,
6612 .probe = probe_spi_rdid,
6613 .probe_timing = TIMING_ZERO,
6614 .block_erasers =
6615 {
6616 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006617 .eraseblocks = { {4 * 1024, 256} },
Roman Titov95edc892015-04-03 21:29:04 +00006618 .block_erase = spi_block_erase_20,
6619 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006620 .eraseblocks = { {32 * 1024, 32} },
Roman Titov95edc892015-04-03 21:29:04 +00006621 .block_erase = spi_block_erase_52,
6622 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006623 .eraseblocks = { {64 * 1024, 16} },
Roman Titov95edc892015-04-03 21:29:04 +00006624 .block_erase = spi_block_erase_d8,
6625 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006626 .eraseblocks = { {1 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00006627 .block_erase = spi_block_erase_60,
6628 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006629 .eraseblocks = { {1 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00006630 .block_erase = spi_block_erase_c7,
6631 }
6632 },
6633 .printlock = spi_prettyprint_status_register_bp4_srwd,
6634 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6635 .write = spi_chip_write_256,
6636 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6637 .voltage = {1695, 1950},
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006638 },
6639
6640 {
6641 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006642 .name = "GD25Q10",
6643 .bustype = BUS_SPI,
6644 .manufacture_id = GIGADEVICE_ID,
6645 .model_id = GIGADEVICE_GD25Q10,
6646 .total_size = 128,
6647 .page_size = 256,
6648 .feature_bits = FEATURE_WRSR_WREN,
6649 .tested = TEST_UNTESTED,
6650 .probe = probe_spi_rdid,
6651 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10006652 .block_erasers =
6653 {
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006654 {
6655 .eraseblocks = { {4 * 1024, 32} },
6656 .block_erase = spi_block_erase_20,
6657 }, {
6658 .eraseblocks = { {32 * 1024, 4} },
6659 .block_erase = spi_block_erase_52,
6660 }, {
6661 .eraseblocks = { {64 * 1024, 2} },
6662 .block_erase = spi_block_erase_d8,
6663 }, {
6664 .eraseblocks = { {128 * 1024, 1} },
6665 .block_erase = spi_block_erase_60,
6666 }, {
6667 .eraseblocks = { {128 * 1024, 1} },
6668 .block_erase = spi_block_erase_c7,
6669 }
6670 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006671 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006672 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6673 .write = spi_chip_write_256,
6674 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6675 .voltage = {2700, 3600},
6676 },
6677
6678 {
6679 .vendor = "GigaDevice",
Alan Green4f009122019-08-26 10:45:18 +10006680 .name = "GD25Q127C/GD25Q128C",
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006681 .bustype = BUS_SPI,
6682 .manufacture_id = GIGADEVICE_ID,
6683 .model_id = GIGADEVICE_GD25Q128,
6684 .total_size = 16384,
6685 .page_size = 256,
6686 /* OTP: 1536B total; read 0x48; write 0x42, erase 0x44 */
6687 /* QPI: enable 0x38, disable 0xFF */
Nikolai Artemievd32e18b2022-02-15 18:06:55 +11006688 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_WRSR2,
Sergii Dmytrukc74eac22022-10-06 18:17:58 +03006689 .tested = TEST_OK_PREWB,
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006690 .probe = probe_spi_rdid,
6691 .probe_timing = TIMING_ZERO,
6692 .block_erasers =
6693 {
6694 {
6695 .eraseblocks = { {4 * 1024, 4096} },
6696 .block_erase = spi_block_erase_20,
6697 }, {
6698 .eraseblocks = { {32 * 1024, 512} },
6699 .block_erase = spi_block_erase_52,
6700 }, {
6701 .eraseblocks = { {64 * 1024, 256} },
6702 .block_erase = spi_block_erase_d8,
6703 }, {
6704 .eraseblocks = { {16 * 1024 * 1024, 1} },
6705 .block_erase = spi_block_erase_60,
6706 }, {
6707 .eraseblocks = { {16 * 1024 * 1024, 1} },
6708 .block_erase = spi_block_erase_c7,
6709 }
6710 },
6711 /* TODO: 2nd status reg (read 0x35, write 0x31) and 3rd status reg (read 0x15, write 0x11) */
6712 .printlock = spi_prettyprint_status_register_bp4_srwd,
6713 .unlock = spi_disable_blockprotect_bp4_srwd,
6714 .write = spi_chip_write_256,
6715 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6716 .voltage = {2700, 3600},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +11006717 .reg_bits =
6718 {
6719 .srp = {STATUS1, 7, RW},
6720 .srl = {STATUS2, 0, RW},
6721 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
6722 .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */
6723 .sec = {STATUS1, 6, RW}, /* Called BP4 in datasheet, acts like SEC */
6724 .cmp = {STATUS2, 6, RW},
6725 },
6726 .decode_range = decode_range_spi25,
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006727 },
6728
6729 {
6730 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006731 .name = "GD25Q16(B)",
6732 .bustype = BUS_SPI,
6733 .manufacture_id = GIGADEVICE_ID,
6734 .model_id = GIGADEVICE_GD25Q16,
6735 .total_size = 2048,
6736 .page_size = 256,
6737 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
6738 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6739 .tested = TEST_OK_PREW,
6740 .probe = probe_spi_rdid,
6741 .probe_timing = TIMING_ZERO,
6742 .block_erasers =
6743 {
6744 {
6745 .eraseblocks = { {4 * 1024, 512} },
6746 .block_erase = spi_block_erase_20,
6747 }, {
6748 .eraseblocks = { {32 * 1024, 64} },
6749 .block_erase = spi_block_erase_52,
6750 }, {
6751 .eraseblocks = { {64 * 1024, 32} },
6752 .block_erase = spi_block_erase_d8,
6753 }, {
6754 .eraseblocks = { {2 * 1024 * 1024, 1} },
6755 .block_erase = spi_block_erase_60,
6756 }, {
6757 .eraseblocks = { {2 * 1024 * 1024, 1} },
6758 .block_erase = spi_block_erase_c7,
6759 }
6760 },
6761 .printlock = spi_prettyprint_status_register_bp4_srwd,
6762 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6763 .write = spi_chip_write_256,
6764 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6765 .voltage = {2700, 3600},
6766 },
6767
6768 {
6769 .vendor = "GigaDevice",
6770 .name = "GD25Q20(B)",
6771 .bustype = BUS_SPI,
6772 .manufacture_id = GIGADEVICE_ID,
6773 .model_id = GIGADEVICE_GD25Q20,
6774 .total_size = 256,
6775 .page_size = 256,
6776 .feature_bits = FEATURE_WRSR_WREN,
6777 .tested = TEST_OK_PREW,
6778 .probe = probe_spi_rdid,
6779 .probe_timing = TIMING_ZERO,
6780 .block_erasers =
6781 {
6782 {
6783 .eraseblocks = { {4 * 1024, 64} },
6784 .block_erase = spi_block_erase_20,
6785 }, {
6786 .eraseblocks = { {32 * 1024, 8} },
6787 .block_erase = spi_block_erase_52,
6788 }, {
6789 .eraseblocks = { {64 * 1024, 4} },
6790 .block_erase = spi_block_erase_d8,
6791 }, {
6792 .eraseblocks = { {256 * 1024, 1} },
6793 .block_erase = spi_block_erase_60,
6794 }, {
6795 .eraseblocks = { {256 * 1024, 1} },
6796 .block_erase = spi_block_erase_c7,
6797 }
6798 },
6799 .printlock = spi_prettyprint_status_register_bp4_srwd,
6800 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6801 .write = spi_chip_write_256,
6802 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6803 .voltage = {2700, 3600},
6804 },
6805
6806 {
6807 .vendor = "GigaDevice",
Nikolai Artemiev3ca0af02022-06-17 15:10:18 +10006808 .name = "GD25Q256D/GD25Q256E",
Alan Green86fc9cf2019-08-26 15:02:12 +10006809 .bustype = BUS_SPI,
6810 .manufacture_id = GIGADEVICE_ID,
6811 .model_id = GIGADEVICE_GD25Q256D,
6812 .total_size = 32768,
6813 .page_size = 256,
Nikolai Artemievb931e7a2022-12-05 13:06:14 +11006814 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA |
Nico Huber3f3c1f32022-05-28 16:48:26 +02006815 FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3,
Sergii Dmytrukc74eac22022-10-06 18:17:58 +03006816 .tested = TEST_OK_PREWB,
Alan Green86fc9cf2019-08-26 15:02:12 +10006817 .probe = probe_spi_rdid,
6818 .probe_timing = TIMING_ZERO,
6819 .block_erasers =
6820 {
6821 {
6822 .eraseblocks = { {4 * 1024, 8192} },
Nico Huber5374dc32019-10-04 16:16:15 +02006823 .block_erase = spi_block_erase_21,
6824 }, {
6825 .eraseblocks = { {4 * 1024, 8192} },
Alan Green86fc9cf2019-08-26 15:02:12 +10006826 .block_erase = spi_block_erase_20,
6827 }, {
6828 .eraseblocks = { {32 * 1024, 1024} },
Nico Huber5374dc32019-10-04 16:16:15 +02006829 .block_erase = spi_block_erase_5c,
6830 }, {
6831 .eraseblocks = { {32 * 1024, 1024} },
Alan Green86fc9cf2019-08-26 15:02:12 +10006832 .block_erase = spi_block_erase_52,
6833 }, {
6834 .eraseblocks = { {64 * 1024, 512} },
Nico Huber5374dc32019-10-04 16:16:15 +02006835 .block_erase = spi_block_erase_dc,
6836 }, {
6837 .eraseblocks = { {64 * 1024, 512} },
Alan Green86fc9cf2019-08-26 15:02:12 +10006838 .block_erase = spi_block_erase_d8,
6839 }, {
6840 .eraseblocks = { {32 * 1024 * 1024, 1} },
6841 .block_erase = spi_block_erase_60,
6842 }, {
6843 .eraseblocks = { {32 * 1024 * 1024, 1} },
6844 .block_erase = spi_block_erase_c7,
6845 }
6846 },
6847 .printlock = spi_prettyprint_status_register_bp3_srwd,
6848 .unlock = spi_disable_blockprotect,
6849 .write = spi_chip_write_256,
6850 .read = spi_chip_read,
6851 .voltage = {2700, 3600},
Nikolai Artemievc6c3f282021-10-20 23:34:15 +11006852 .reg_bits =
6853 {
6854 .srp = {STATUS1, 7, RW},
6855 .srl = {STATUS2, 6, RW},
6856 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}},
6857 .tb = {STATUS1, 6, RW},
6858 },
Nikolai Artemievc9feb1b2021-10-21 01:35:13 +11006859 .decode_range = decode_range_spi25,
Alan Green86fc9cf2019-08-26 15:02:12 +10006860 },
6861
6862 {
6863 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006864 .name = "GD25Q32(B)",
6865 .bustype = BUS_SPI,
6866 .manufacture_id = GIGADEVICE_ID,
6867 .model_id = GIGADEVICE_GD25Q32,
6868 .total_size = 4096,
6869 .page_size = 256,
6870 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Nikolai Artemiev9de3f872021-10-20 22:32:25 +11006871 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_WRSR2,
Sergii Dmytrukc74eac22022-10-06 18:17:58 +03006872 .tested = TEST_OK_PREWB,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006873 .probe = probe_spi_rdid,
6874 .probe_timing = TIMING_ZERO,
6875 .block_erasers =
6876 {
6877 {
6878 .eraseblocks = { {4 * 1024, 1024} },
6879 .block_erase = spi_block_erase_20,
6880 }, {
6881 .eraseblocks = { {32 * 1024, 128} },
6882 .block_erase = spi_block_erase_52,
6883 }, {
6884 .eraseblocks = { {64 * 1024, 64} },
6885 .block_erase = spi_block_erase_d8,
6886 }, {
6887 .eraseblocks = { {4 * 1024 * 1024, 1} },
6888 .block_erase = spi_block_erase_60,
6889 }, {
6890 .eraseblocks = { {4 * 1024 * 1024, 1} },
6891 .block_erase = spi_block_erase_c7,
6892 }
6893 },
6894 .printlock = spi_prettyprint_status_register_bp4_srwd,
6895 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6896 .write = spi_chip_write_256,
6897 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6898 .voltage = {2700, 3600},
Nikolai Artemievc6c3f282021-10-20 23:34:15 +11006899 .reg_bits =
6900 {
6901 .srp = {STATUS1, 7, RW},
6902 .srl = {STATUS2, 0, RW},
6903 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
6904 .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */
6905 .sec = {STATUS1, 6, RW}, /* Called BP4 in datasheet, acts like SEC */
6906 .cmp = {STATUS2, 6, RW},
6907 },
Nikolai Artemievc9feb1b2021-10-21 01:35:13 +11006908 .decode_range = decode_range_spi25,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006909 },
6910
6911 {
6912 .vendor = "GigaDevice",
6913 .name = "GD25Q40(B)",
6914 .bustype = BUS_SPI,
6915 .manufacture_id = GIGADEVICE_ID,
6916 .model_id = GIGADEVICE_GD25Q40,
6917 .total_size = 512,
6918 .page_size = 256,
6919 .feature_bits = FEATURE_WRSR_WREN,
Simon Buhrow551664c2022-03-09 16:09:08 +01006920 .tested = TEST_OK_PREW,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006921 .probe = probe_spi_rdid,
6922 .probe_timing = TIMING_ZERO,
6923 .block_erasers =
6924 {
6925 {
6926 .eraseblocks = { {4 * 1024, 128} },
6927 .block_erase = spi_block_erase_20,
6928 }, {
6929 .eraseblocks = { {32 * 1024, 16} },
6930 .block_erase = spi_block_erase_52,
6931 }, {
6932 .eraseblocks = { {64 * 1024, 8} },
6933 .block_erase = spi_block_erase_d8,
6934 }, {
6935 .eraseblocks = { {512 * 1024, 1} },
6936 .block_erase = spi_block_erase_60,
6937 }, {
6938 .eraseblocks = { {512 * 1024, 1} },
6939 .block_erase = spi_block_erase_c7,
6940 }
6941 },
6942 .printlock = spi_prettyprint_status_register_bp4_srwd,
6943 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6944 .write = spi_chip_write_256,
6945 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6946 .voltage = {2700, 3600},
6947 },
6948
6949 {
6950 .vendor = "GigaDevice",
6951 .name = "GD25Q512",
6952 .bustype = BUS_SPI,
6953 .manufacture_id = GIGADEVICE_ID,
6954 .model_id = GIGADEVICE_GD25Q512,
6955 .total_size = 64,
6956 .page_size = 256,
6957 .feature_bits = FEATURE_WRSR_WREN,
6958 .tested = TEST_OK_PREW,
6959 .probe = probe_spi_rdid,
6960 .probe_timing = TIMING_ZERO,
6961 .block_erasers =
6962 {
6963 {
6964 .eraseblocks = { {4 * 1024, 16} },
6965 .block_erase = spi_block_erase_20,
6966 }, {
6967 .eraseblocks = { {32 * 1024, 2} },
6968 .block_erase = spi_block_erase_52,
6969 }, {
6970 .eraseblocks = { {64 * 1024, 1} },
6971 .block_erase = spi_block_erase_60,
6972 }, {
6973 .eraseblocks = { {64 * 1024, 1} },
6974 .block_erase = spi_block_erase_c7,
6975 }
6976 },
6977 .printlock = spi_prettyprint_status_register_bp4_srwd,
6978 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6979 .write = spi_chip_write_256,
6980 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6981 .voltage = {2700, 3600},
6982 },
6983
6984 {
6985 .vendor = "GigaDevice",
6986 .name = "GD25Q64(B)",
6987 .bustype = BUS_SPI,
6988 .manufacture_id = GIGADEVICE_ID,
6989 .model_id = GIGADEVICE_GD25Q64,
6990 .total_size = 8192,
6991 .page_size = 256,
6992 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Nikolai Artemievd32e18b2022-02-15 18:06:55 +11006993 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_WRSR2,
Sergii Dmytrukc74eac22022-10-06 18:17:58 +03006994 .tested = TEST_OK_PREWB,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006995 .probe = probe_spi_rdid,
6996 .probe_timing = TIMING_ZERO,
6997 .block_erasers =
6998 {
6999 {
7000 .eraseblocks = { {4 * 1024, 2048} },
7001 .block_erase = spi_block_erase_20,
7002 }, {
7003 .eraseblocks = { {32 * 1024, 256} },
7004 .block_erase = spi_block_erase_52,
7005 }, {
7006 .eraseblocks = { {64 * 1024, 128} },
7007 .block_erase = spi_block_erase_d8,
7008 }, {
7009 .eraseblocks = { {8 * 1024 * 1024, 1} },
7010 .block_erase = spi_block_erase_60,
7011 }, {
7012 .eraseblocks = { {8 * 1024 * 1024, 1} },
7013 .block_erase = spi_block_erase_c7,
7014 }
7015 },
7016 .printlock = spi_prettyprint_status_register_bp4_srwd,
7017 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7018 .write = spi_chip_write_256,
7019 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7020 .voltage = {2700, 3600},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +11007021 .reg_bits =
7022 {
7023 .srp = {STATUS1, 7, RW},
7024 .srl = {STATUS2, 0, RW},
7025 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
7026 .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */
7027 .sec = {STATUS1, 6, RW}, /* Called BP4 in datasheet, acts like SEC */
7028 .cmp = {STATUS2, 6, RW},
7029 },
7030 .decode_range = decode_range_spi25,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007031 },
7032
7033 {
7034 .vendor = "GigaDevice",
7035 .name = "GD25Q80(B)",
7036 .bustype = BUS_SPI,
7037 .manufacture_id = GIGADEVICE_ID,
7038 .model_id = GIGADEVICE_GD25Q80,
7039 .total_size = 1024,
7040 .page_size = 256,
7041 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
7042 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7043 .tested = TEST_OK_PREW,
7044 .probe = probe_spi_rdid,
7045 .probe_timing = TIMING_ZERO,
7046 .block_erasers =
7047 {
7048 {
7049 .eraseblocks = { {4 * 1024, 256} },
7050 .block_erase = spi_block_erase_20,
7051 }, {
7052 .eraseblocks = { {32 * 1024, 32} },
7053 .block_erase = spi_block_erase_52,
7054 }, {
7055 .eraseblocks = { {64 * 1024, 16} },
7056 .block_erase = spi_block_erase_d8,
7057 }, {
7058 .eraseblocks = { {1024 * 1024, 1} },
7059 .block_erase = spi_block_erase_60,
7060 }, {
7061 .eraseblocks = { {1024 * 1024, 1} },
7062 .block_erase = spi_block_erase_c7,
7063 }
7064 },
7065 .printlock = spi_prettyprint_status_register_bp4_srwd,
7066 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7067 .write = spi_chip_write_256,
7068 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7069 .voltage = {2700, 3600},
7070 },
7071
7072 {
7073 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00007074 .name = "GD25T80",
7075 .bustype = BUS_SPI,
7076 .manufacture_id = GIGADEVICE_ID,
7077 .model_id = GIGADEVICE_GD25T80,
7078 .total_size = 1024,
7079 .page_size = 256,
7080 /* OTP: 256B total; enter 0x3A */
7081 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7082 .tested = TEST_UNTESTED,
7083 .probe = probe_spi_rdid,
7084 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10007085 .block_erasers =
7086 {
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00007087 {
7088 .eraseblocks = { {4 * 1024, 256} },
7089 .block_erase = spi_block_erase_20,
7090 }, {
7091 .eraseblocks = { {64 * 1024, 16} },
7092 .block_erase = spi_block_erase_52,
7093 }, {
7094 .eraseblocks = { {64 * 1024, 16} },
7095 .block_erase = spi_block_erase_d8,
7096 }, {
7097 .eraseblocks = { {1024 * 1024, 1} },
7098 .block_erase = spi_block_erase_60,
7099 }, {
7100 .eraseblocks = { {1024 * 1024, 1} },
7101 .block_erase = spi_block_erase_c7,
7102 }
7103 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00007104 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00007105 .unlock = spi_disable_blockprotect,
7106 .write = spi_chip_write_256,
7107 .read = spi_chip_read,
Stefan Tauner352e50b2013-02-22 15:58:45 +00007108 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00007109 },
7110
7111 {
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007112 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10007113 .name = "GD25VQ16C",
7114 .bustype = BUS_SPI,
7115 .manufacture_id = GIGADEVICE_ID,
7116 .model_id = GIGADEVICE_GD25VQ16C,
7117 .total_size = 2 * 1024,
7118 .page_size = 256,
7119 /* Supports SFDP */
7120 /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */
7121 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7122 .tested = TEST_UNTESTED,
7123 .probe = probe_spi_rdid,
7124 .probe_timing = TIMING_ZERO,
7125 .block_erasers =
7126 {
7127 {
7128 .eraseblocks = { { 4 * 1024, 512} },
7129 .block_erase = spi_block_erase_20,
7130 }, {
7131 .eraseblocks = { { 32 * 1024, 64} },
7132 .block_erase = spi_block_erase_52,
7133 }, {
7134 .eraseblocks = { { 64 * 1024, 32} },
7135 .block_erase = spi_block_erase_d8,
7136 }, {
7137 .eraseblocks = { {2 * 1024 * 1024, 1} },
7138 .block_erase = spi_block_erase_60,
7139 }, {
7140 .eraseblocks = { {2 * 1024 * 1024, 1} },
7141 .block_erase = spi_block_erase_c7,
7142 }
7143 },
7144 .printlock = spi_prettyprint_status_register_bp4_srwd,
7145 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7146 .write = spi_chip_write_256,
7147 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7148 .voltage = {2300, 3600},
7149 },
7150
7151 {
7152 .vendor = "GigaDevice",
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007153 .name = "GD25VQ21B",
7154 .bustype = BUS_SPI,
7155 .manufacture_id = GIGADEVICE_ID,
7156 .model_id = GIGADEVICE_GD25VQ21B,
7157 .total_size = 256,
7158 .page_size = 256,
7159 /* OTP: 1536B total; read 0x48, write 0x42, erase 0x44 */
7160 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7161 .tested = TEST_UNTESTED,
7162 .probe = probe_spi_rdid,
7163 .probe_timing = TIMING_ZERO,
7164 .block_erasers =
7165 {
7166 {
7167 .eraseblocks = { { 4 * 1024, 64} },
7168 .block_erase = spi_block_erase_20,
7169 }, {
7170 .eraseblocks = { { 32 * 1024, 8} },
7171 .block_erase = spi_block_erase_52,
7172 }, {
7173 .eraseblocks = { { 64 * 1024, 4} },
7174 .block_erase = spi_block_erase_d8,
7175 }, {
7176 .eraseblocks = { {256 * 1024, 1} },
7177 .block_erase = spi_block_erase_60,
7178 }, {
7179 .eraseblocks = { {256 * 1024, 1} },
7180 .block_erase = spi_block_erase_c7,
7181 }
7182 },
7183 .printlock = spi_prettyprint_status_register_bp4_srwd,
7184 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7185 .write = spi_chip_write_256,
7186 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7187 .voltage = {2300, 3600},
7188 },
7189
7190 {
7191 .vendor = "GigaDevice",
7192 .name = "GD25VQ40C",
7193 .bustype = BUS_SPI,
7194 .manufacture_id = GIGADEVICE_ID,
7195 .model_id = GIGADEVICE_GD25VQ41B,
7196 .total_size = 512,
7197 .page_size = 256,
7198 /* Supports SFDP */
7199 /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */
7200 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7201 .tested = TEST_UNTESTED,
7202 .probe = probe_spi_rdid,
7203 .probe_timing = TIMING_ZERO,
7204 .block_erasers =
7205 {
7206 {
7207 .eraseblocks = { { 4 * 1024, 128} },
7208 .block_erase = spi_block_erase_20,
7209 }, {
7210 .eraseblocks = { { 32 * 1024, 16} },
7211 .block_erase = spi_block_erase_52,
7212 }, {
7213 .eraseblocks = { { 64 * 1024, 8} },
7214 .block_erase = spi_block_erase_d8,
7215 }, {
7216 .eraseblocks = { {512 * 1024, 1} },
7217 .block_erase = spi_block_erase_60,
7218 }, {
7219 .eraseblocks = { {512 * 1024, 1} },
7220 .block_erase = spi_block_erase_c7,
7221 }
7222 },
7223 .printlock = spi_prettyprint_status_register_bp4_srwd,
7224 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7225 .write = spi_chip_write_256,
7226 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7227 .voltage = {2300, 3600},
7228 },
7229
7230 {
7231 .vendor = "GigaDevice",
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007232 .name = "GD25VQ41B",
7233 .bustype = BUS_SPI,
7234 .manufacture_id = GIGADEVICE_ID,
7235 .model_id = GIGADEVICE_GD25VQ41B,
7236 .total_size = 512,
7237 .page_size = 256,
7238 /* OTP: 1536B total; read 0x48, write 0x42, erase 0x44 */
7239 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner0be072c2016-03-13 15:16:30 +00007240 .tested = TEST_OK_PREW,
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007241 .probe = probe_spi_rdid,
7242 .probe_timing = TIMING_ZERO,
Stefan Tauner0be072c2016-03-13 15:16:30 +00007243 .block_erasers =
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007244 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00007245 {
7246 .eraseblocks = { { 4 * 1024, 128} },
7247 .block_erase = spi_block_erase_20,
7248 }, {
7249 .eraseblocks = { { 32 * 1024, 16} },
7250 .block_erase = spi_block_erase_52,
7251 }, {
7252 .eraseblocks = { { 64 * 1024, 8} },
7253 .block_erase = spi_block_erase_d8,
7254 }, {
7255 .eraseblocks = { {512 * 1024, 1} },
7256 .block_erase = spi_block_erase_60,
7257 }, {
7258 .eraseblocks = { {512 * 1024, 1} },
7259 .block_erase = spi_block_erase_c7,
7260 }
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007261 },
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007262 .printlock = spi_prettyprint_status_register_bp4_srwd,
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007263 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7264 .write = spi_chip_write_256,
7265 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7266 .voltage = {2300, 3600},
7267 },
7268
7269 {
7270 .vendor = "GigaDevice",
7271 .name = "GD25VQ80C",
7272 .bustype = BUS_SPI,
7273 .manufacture_id = GIGADEVICE_ID,
7274 .model_id = GIGADEVICE_GD25VQ80C,
7275 .total_size = 1024,
7276 .page_size = 256,
7277 /* Supports SFDP */
7278 /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */
7279 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7280 .tested = TEST_UNTESTED,
7281 .probe = probe_spi_rdid,
7282 .probe_timing = TIMING_ZERO,
7283 .block_erasers =
7284 {
7285 {
7286 .eraseblocks = { { 4 * 1024, 256} },
7287 .block_erase = spi_block_erase_20,
7288 }, {
7289 .eraseblocks = { { 32 * 1024, 32} },
7290 .block_erase = spi_block_erase_52,
7291 }, {
7292 .eraseblocks = { { 64 * 1024, 16} },
7293 .block_erase = spi_block_erase_d8,
7294 }, {
7295 .eraseblocks = { {1024 * 1024, 1} },
7296 .block_erase = spi_block_erase_60,
7297 }, {
7298 .eraseblocks = { {1024 * 1024, 1} },
7299 .block_erase = spi_block_erase_c7,
7300 }
7301 },
7302 .printlock = spi_prettyprint_status_register_bp4_srwd,
7303 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7304 .write = spi_chip_write_256,
7305 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
7306 .voltage = {2300, 3600},
7307 },
7308
7309 {
Dino Li3214f582020-03-25 17:39:53 +08007310 .vendor = "GigaDevice",
7311 .name = "GD25WQ80E",
7312 .bustype = BUS_SPI,
7313 .manufacture_id = GIGADEVICE_ID,
7314 .model_id = GIGADEVICE_GD25WQ80E,
7315 .total_size = 1024,
7316 .page_size = 256,
7317 .feature_bits = FEATURE_WRSR_WREN,
7318 .tested = TEST_OK_PREW,
7319 .probe = probe_spi_rdid,
7320 .probe_timing = TIMING_ZERO,
7321 .block_erasers =
7322 {
7323 {
7324 .eraseblocks = { {4 * 1024, 256} },
7325 .block_erase = spi_block_erase_20,
7326 }, {
7327 .eraseblocks = { {32 * 1024, 32} },
7328 .block_erase = spi_block_erase_52,
7329 }, {
7330 .eraseblocks = { {64 * 1024, 16} },
7331 .block_erase = spi_block_erase_d8,
7332 }, {
7333 .eraseblocks = { {1 * 1024 * 1024, 1} },
7334 .block_erase = spi_block_erase_60,
7335 }, {
7336 .eraseblocks = { {1 * 1024 * 1024, 1} },
7337 .block_erase = spi_block_erase_c7,
7338 }
7339 },
7340 .printlock = spi_prettyprint_status_register_bp4_srwd,
7341 .unlock = spi_disable_blockprotect_bp4_srwd,
7342 .write = spi_chip_write_256,
7343 .read = spi_chip_read,
7344 .voltage = {1650, 3600},
7345 },
7346
7347 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007348 .vendor = "Hyundai",
7349 .name = "HY29F002B",
7350 .bustype = BUS_PARALLEL,
7351 .manufacture_id = HYUNDAI_ID,
7352 .model_id = HYUNDAI_HY29F002B,
7353 .total_size = 256,
7354 .page_size = 256 * 1024,
7355 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007356 .tested = TEST_UNTESTED,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007357 .probe = probe_jedec,
7358 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007359 .block_erasers =
7360 {
7361 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007362 .eraseblocks = {
7363 {16 * 1024, 1},
7364 {8 * 1024, 2},
7365 {32 * 1024, 1},
7366 {64 * 1024, 3},
7367 },
7368 .block_erase = erase_sector_jedec,
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007369 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007370 .eraseblocks = { {256 * 1024, 1} },
7371 .block_erase = erase_chip_block_jedec,
7372 },
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007373 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10007374 .write = write_jedec_1,
7375 .read = read_memmapped,
7376 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007377 },
7378
7379 {
David Borgc96a8bd2010-06-21 16:12:22 +00007380 .vendor = "Hyundai",
7381 .name = "HY29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007382 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00007383 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007384 .model_id = HYUNDAI_HY29F002T,
David Borgc96a8bd2010-06-21 16:12:22 +00007385 .total_size = 256,
7386 .page_size = 256 * 1024,
7387 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007388 .tested = TEST_OK_PRE,
David Borgc96a8bd2010-06-21 16:12:22 +00007389 .probe = probe_jedec,
7390 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7391 .block_erasers =
7392 {
7393 {
7394 .eraseblocks = {
7395 {64 * 1024, 3},
7396 {32 * 1024, 1},
7397 {8 * 1024, 2},
7398 {16 * 1024, 1},
7399 },
7400 .block_erase = erase_sector_jedec,
7401 }, {
7402 .eraseblocks = { {256 * 1024, 1} },
7403 .block_erase = erase_chip_block_jedec,
7404 },
7405 },
7406 .write = write_jedec_1,
7407 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007408 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
David Borgc96a8bd2010-06-21 16:12:22 +00007409 },
7410
7411 {
7412 .vendor = "Hyundai",
Joshua Roysf1324e02010-09-16 00:51:51 +00007413 .name = "HY29F040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007414 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00007415 .manufacture_id = HYUNDAI_ID,
7416 .model_id = HYUNDAI_HY29F040A,
7417 .total_size = 512,
7418 .page_size = 64 * 1024,
7419 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
7420 .tested = TEST_UNTESTED,
7421 .probe = probe_jedec,
7422 .probe_timing = TIMING_ZERO,
7423 .block_erasers =
7424 {
7425 {
7426 .eraseblocks = { {64 * 1024, 8} },
7427 .block_erase = erase_sector_jedec,
7428 }, {
7429 .eraseblocks = { {512 * 1024, 1} },
7430 .block_erase = erase_chip_block_jedec,
7431 },
7432 },
7433 .write = write_jedec_1,
7434 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007435 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00007436 },
7437
7438 {
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007439 .vendor = "ISSI",
Angel Pons2ef47f32018-09-30 16:47:30 +02007440 .name = "IS25LP064",
7441 .bustype = BUS_SPI,
7442 .manufacture_id = ISSI_ID_SPI,
7443 .model_id = ISSI_IS25LP064,
7444 .total_size = 8192,
7445 .page_size = 256,
7446 /* OTP: 1024B total; read 0x48; write 0x42 */
7447 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Simon Buhrow9bf829d2021-10-20 17:09:09 +02007448 .tested = TEST_OK_PREW,
Angel Pons2ef47f32018-09-30 16:47:30 +02007449 .probe = probe_spi_rdid,
7450 .probe_timing = TIMING_ZERO,
7451 .block_erasers =
7452 {
7453 {
7454 .eraseblocks = { {4 * 1024, 2048} },
7455 .block_erase = spi_block_erase_20,
7456 }, {
7457 .eraseblocks = { {4 * 1024, 2048} },
7458 .block_erase = spi_block_erase_d7,
7459 }, {
7460 .eraseblocks = { {32 * 1024, 256} },
7461 .block_erase = spi_block_erase_52,
7462 }, {
7463 .eraseblocks = { {64 * 1024, 128} },
7464 .block_erase = spi_block_erase_d8,
7465 }, {
7466 .eraseblocks = { {8 * 1024 * 1024, 1} },
7467 .block_erase = spi_block_erase_60,
7468 }, {
7469 .eraseblocks = { {8 * 1024 * 1024, 1} },
7470 .block_erase = spi_block_erase_c7,
7471 }
7472 },
7473 .unlock = spi_disable_blockprotect,
7474 .write = spi_chip_write_256,
7475 .read = spi_chip_read,
7476 .voltage = {2300, 3600},
7477 },
7478
7479 {
7480 .vendor = "ISSI",
David Hendricks3083ed92017-05-02 13:25:56 -07007481 .name = "IS25LP128",
7482 .bustype = BUS_SPI,
7483 .manufacture_id = ISSI_ID_SPI,
7484 .model_id = ISSI_IS25LP128,
7485 .total_size = 16384,
7486 .page_size = 256,
7487 /* OTP: 1024B total; read 0x48; write 0x42 */
7488 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7489 .tested = TEST_OK_PREW,
7490 .probe = probe_spi_rdid,
7491 .probe_timing = TIMING_ZERO,
7492 .block_erasers =
7493 {
7494 {
7495 .eraseblocks = { {4 * 1024, 4096} },
7496 .block_erase = spi_block_erase_20,
7497 }, {
7498 .eraseblocks = { {4 * 1024, 4096} },
7499 .block_erase = spi_block_erase_d7,
7500 }, {
7501 .eraseblocks = { {32 * 1024, 512} },
7502 .block_erase = spi_block_erase_52,
7503 }, {
7504 .eraseblocks = { {64 * 1024, 256} },
7505 .block_erase = spi_block_erase_d8,
7506 }, {
7507 .eraseblocks = { {16 * 1024 * 1024, 1} },
7508 .block_erase = spi_block_erase_60,
7509 }, {
7510 .eraseblocks = { {16 * 1024 * 1024, 1} },
7511 .block_erase = spi_block_erase_c7,
7512 }
7513 },
7514 .unlock = spi_disable_blockprotect,
7515 .write = spi_chip_write_256,
7516 .read = spi_chip_read,
7517 .voltage = {2300, 3600},
7518 },
7519
7520 {
7521 .vendor = "ISSI",
David Hendricks61818dc2018-10-28 01:02:21 +00007522 .name = "IS25LP256",
7523 .bustype = BUS_SPI,
7524 .manufacture_id = ISSI_ID_SPI,
7525 .model_id = ISSI_IS25LP256,
7526 .total_size = 32768,
7527 .page_size = 256,
7528 /* supports SFDP */
7529 /* OTP: 1024B total; read 0x68; write 0x62, erase 0x64, read ID 0x4B */
Nico Huberad55d5a2022-06-20 19:32:16 +02007530 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP |
7531 FEATURE_4BA | FEATURE_4BA_ENTER_EAR7 | FEATURE_4BA_EAR_1716,
David Hendricks61818dc2018-10-28 01:02:21 +00007532 .tested = TEST_OK_PREW,
7533 .probe = probe_spi_rdid,
7534 .probe_timing = TIMING_ZERO,
7535 .block_erasers =
7536 {
7537 {
7538 .eraseblocks = { {4 * 1024, 8192} },
7539 .block_erase = spi_block_erase_21,
7540 }, {
7541 .eraseblocks = { {4 * 1024, 8192} },
7542 .block_erase = spi_block_erase_20,
7543 /* could also use spi_block_erase_d7 */
7544 }, {
7545 .eraseblocks = { {32 * 1024, 1024} },
7546 .block_erase = spi_block_erase_5c,
7547 }, {
7548 .eraseblocks = { {32 * 1024, 1024} },
7549 .block_erase = spi_block_erase_52,
7550 }, {
7551 .eraseblocks = { {64 * 1024, 512} },
7552 .block_erase = spi_block_erase_dc,
7553 }, {
7554 .eraseblocks = { {64 * 1024, 512} },
7555 .block_erase = spi_block_erase_d8,
7556 }, {
7557 .eraseblocks = { {32 * 1024 * 1024, 1} },
7558 .block_erase = spi_block_erase_60,
7559 }, {
7560 .eraseblocks = { {32 * 1024 * 1024, 1} },
7561 .block_erase = spi_block_erase_c7,
7562 }
7563 },
7564 .unlock = spi_disable_blockprotect,
7565 .write = spi_chip_write_256,
7566 .read = spi_chip_read,
7567 .voltage = {2300, 3600},
7568 },
7569
7570 {
7571 .vendor = "ISSI",
Nico Huberb27b8d12018-10-02 20:46:21 +02007572 .name = "IS25WP032",
7573 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +10007574 .manufacture_id = ISSI_ID_SPI,
Nico Huberb27b8d12018-10-02 20:46:21 +02007575 .model_id = ISSI_IS25WP032,
7576 .total_size = 4096,
7577 .page_size = 256,
7578 /* OTP: 1024B total; read 0x48; write 0x42 */
7579 /* QPI enable 0x35, disable 0xF5 */
7580 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7581 .tested = TEST_UNTESTED,
7582 .probe = probe_spi_rdid,
7583 .probe_timing = TIMING_ZERO,
7584 .block_erasers =
7585 {
7586 {
7587 .eraseblocks = { {4 * 1024, 1024} },
7588 .block_erase = spi_block_erase_20,
7589 }, {
7590 .eraseblocks = { {4 * 1024, 1024} },
7591 .block_erase = spi_block_erase_d7,
7592 }, {
7593 .eraseblocks = { {32 * 1024, 128} },
7594 .block_erase = spi_block_erase_52,
7595 }, {
7596 .eraseblocks = { {64 * 1024, 64} },
7597 .block_erase = spi_block_erase_d8,
7598 }, {
7599 .eraseblocks = { {4 * 1024 * 1024, 1} },
7600 .block_erase = spi_block_erase_60,
7601 }, {
7602 .eraseblocks = { {4 * 1024 * 1024, 1} },
7603 .block_erase = spi_block_erase_c7,
7604 }
7605 },
7606 .unlock = spi_disable_blockprotect,
7607 .write = spi_chip_write_256,
7608 .read = spi_chip_read,
7609 .voltage = {1650, 1950},
7610 },
7611
7612 {
7613 .vendor = "ISSI",
7614 .name = "IS25WP064",
7615 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +10007616 .manufacture_id = ISSI_ID_SPI,
Nico Huberb27b8d12018-10-02 20:46:21 +02007617 .model_id = ISSI_IS25WP064,
7618 .total_size = 8192,
7619 .page_size = 256,
7620 /* OTP: 1024B total; read 0x48; write 0x42 */
7621 /* QPI enable 0x35, disable 0xF5 */
7622 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
7623 .tested = TEST_OK_PREW,
7624 .probe = probe_spi_rdid,
7625 .probe_timing = TIMING_ZERO,
7626 .block_erasers =
7627 {
7628 {
7629 .eraseblocks = { {4 * 1024, 2048} },
7630 .block_erase = spi_block_erase_20,
7631 }, {
7632 .eraseblocks = { {4 * 1024, 2048} },
7633 .block_erase = spi_block_erase_d7,
7634 }, {
7635 .eraseblocks = { {32 * 1024, 256} },
7636 .block_erase = spi_block_erase_52,
7637 }, {
7638 .eraseblocks = { {64 * 1024, 128} },
7639 .block_erase = spi_block_erase_d8,
7640 }, {
7641 .eraseblocks = { {8 * 1024 * 1024, 1} },
7642 .block_erase = spi_block_erase_60,
7643 }, {
7644 .eraseblocks = { {8 * 1024 * 1024, 1} },
7645 .block_erase = spi_block_erase_c7,
7646 }
7647 },
7648 .unlock = spi_disable_blockprotect,
7649 .write = spi_chip_write_256,
7650 .read = spi_chip_read,
7651 .voltage = {1650, 1950},
7652 },
7653
7654 {
7655 .vendor = "ISSI",
David Hendricks3083ed92017-05-02 13:25:56 -07007656 .name = "IS25WP128",
7657 .bustype = BUS_SPI,
7658 .manufacture_id = ISSI_ID_SPI,
7659 .model_id = ISSI_IS25WP128,
7660 .total_size = 16384,
7661 .page_size = 256,
7662 /* OTP: 1024B total; read 0x48; write 0x42 */
Nico Huberb27b8d12018-10-02 20:46:21 +02007663 /* QPI enable 0x35, disable 0xF5 */
7664 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
David Hendricks3083ed92017-05-02 13:25:56 -07007665 .tested = TEST_OK_PREW,
7666 .probe = probe_spi_rdid,
7667 .probe_timing = TIMING_ZERO,
7668 .block_erasers =
7669 {
7670 {
7671 .eraseblocks = { {4 * 1024, 4096} },
7672 .block_erase = spi_block_erase_20,
7673 }, {
7674 .eraseblocks = { {4 * 1024, 4096} },
7675 .block_erase = spi_block_erase_d7,
7676 }, {
7677 .eraseblocks = { {32 * 1024, 512} },
7678 .block_erase = spi_block_erase_52,
7679 }, {
7680 .eraseblocks = { {64 * 1024, 256} },
7681 .block_erase = spi_block_erase_d8,
7682 }, {
7683 .eraseblocks = { {16 * 1024 * 1024, 1} },
7684 .block_erase = spi_block_erase_60,
7685 }, {
7686 .eraseblocks = { {16 * 1024 * 1024, 1} },
7687 .block_erase = spi_block_erase_c7,
7688 }
7689 },
7690 .unlock = spi_disable_blockprotect,
7691 .write = spi_chip_write_256,
7692 .read = spi_chip_read,
7693 .voltage = {1650, 1950},
7694 },
7695
7696 {
7697 .vendor = "ISSI",
David Hendricks61818dc2018-10-28 01:02:21 +00007698 .name = "IS25WP256",
7699 .bustype = BUS_SPI,
7700 .manufacture_id = ISSI_ID_SPI,
7701 .model_id = ISSI_IS25WP256,
7702 .total_size = 32768,
7703 .page_size = 256,
7704 /* supports SFDP */
7705 /* OTP: 1024B total; read 0x68; write 0x62, erase 0x64, read ID 0x4B */
Nico Huberad55d5a2022-06-20 19:32:16 +02007706 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP |
7707 FEATURE_4BA | FEATURE_4BA_ENTER_EAR7 | FEATURE_4BA_EAR_1716,
David Hendricks61818dc2018-10-28 01:02:21 +00007708 .tested = TEST_OK_PREW,
7709 .probe = probe_spi_rdid,
7710 .probe_timing = TIMING_ZERO,
7711 .block_erasers =
7712 {
7713 {
7714 .eraseblocks = { {4 * 1024, 8192} },
7715 .block_erase = spi_block_erase_21,
7716 }, {
7717 .eraseblocks = { {4 * 1024, 8192} },
7718 .block_erase = spi_block_erase_20,
7719 /* could also use spi_block_erase_d7 */
7720 }, {
7721 .eraseblocks = { {32 * 1024, 1024} },
7722 .block_erase = spi_block_erase_5c,
7723 }, {
7724 .eraseblocks = { {32 * 1024, 1024} },
7725 .block_erase = spi_block_erase_52,
7726 }, {
7727 .eraseblocks = { {64 * 1024, 512} },
7728 .block_erase = spi_block_erase_dc,
7729 }, {
7730 .eraseblocks = { {64 * 1024, 512} },
7731 .block_erase = spi_block_erase_d8,
7732 }, {
7733 .eraseblocks = { {32 * 1024 * 1024, 1} },
7734 .block_erase = spi_block_erase_60,
7735 }, {
7736 .eraseblocks = { {32 * 1024 * 1024, 1} },
7737 .block_erase = spi_block_erase_c7,
7738 }
7739 },
7740 .unlock = spi_disable_blockprotect,
7741 .write = spi_chip_write_256,
7742 .read = spi_chip_read,
7743 .voltage = {1650, 1950},
7744 },
7745
7746 {
7747 .vendor = "ISSI",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007748 .name = "IS29GL064B",
7749 .bustype = BUS_PARALLEL,
7750 .manufacture_id = ISSI_ID,
7751 .model_id = ISSI_PMC_IS29GL064B,
7752 .total_size = 8192,
7753 .page_size = 128 * 1024, /* actual page size is 16 */
7754 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7755 .tested = TEST_UNTESTED,
7756 .probe = probe_jedec_29gl,
7757 .probe_timing = TIMING_ZERO,
7758 .block_erasers =
7759 {
7760 {
7761 .eraseblocks = {
7762 {8 * 1024, 8},
7763 {64 * 1024, 127},
7764 },
7765 .block_erase = erase_sector_jedec,
7766 }, {
7767 .eraseblocks = { {8 * 1024 * 1024, 1} },
7768 .block_erase = erase_chip_block_jedec,
7769 },
7770 },
7771 .write = write_jedec_1,
7772 .read = read_memmapped,
7773 .voltage = {2700, 3600},
7774 },
7775
7776 {
7777 .vendor = "ISSI",
Alan Green1f9cc7d2019-07-01 11:10:45 +10007778 .name = "IS29GL064H/L",
7779 .bustype = BUS_PARALLEL,
7780 .manufacture_id = ISSI_ID,
7781 .model_id = ISSI_PMC_IS29GL064HL,
7782 .total_size = 8192,
7783 .page_size = 128 * 1024, /* actual page size is 16 */
7784 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7785 .tested = TEST_UNTESTED,
7786 .probe = probe_jedec_29gl,
7787 .probe_timing = TIMING_ZERO,
7788 .block_erasers =
7789 {
7790 {
7791 .eraseblocks = { {64 * 1024, 128} },
7792 .block_erase = erase_sector_jedec,
7793 }, {
7794 .eraseblocks = { {8 * 1024 * 1024, 1} },
7795 .block_erase = erase_chip_block_jedec,
7796 },
7797 },
7798 .write = write_jedec_1,
7799 .read = read_memmapped,
7800 .voltage = {2700, 3600},
7801 },
7802
7803 {
7804 .vendor = "ISSI",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007805 .name = "IS29GL064T",
7806 .bustype = BUS_PARALLEL,
7807 .manufacture_id = ISSI_ID,
7808 .model_id = ISSI_PMC_IS29GL064T,
7809 .total_size = 8192,
7810 .page_size = 128 * 1024, /* actual page size is 16 */
7811 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7812 .tested = TEST_UNTESTED,
7813 .probe = probe_jedec_29gl,
7814 .probe_timing = TIMING_ZERO,
7815 .block_erasers =
7816 {
7817 {
7818 .eraseblocks = {
7819 {64 * 1024, 127},
7820 {8 * 1024, 8},
7821 },
7822 .block_erase = erase_sector_jedec,
7823 }, {
7824 .eraseblocks = { {8 * 1024 * 1024, 1} },
7825 .block_erase = erase_chip_block_jedec,
7826 },
7827 },
7828 .write = write_jedec_1,
7829 .read = read_memmapped,
7830 .voltage = {2700, 3600},
7831 },
7832
7833 {
7834 .vendor = "ISSI",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007835 .name = "IS29GL128H/L",
7836 .bustype = BUS_PARALLEL,
7837 .manufacture_id = ISSI_ID,
7838 .model_id = ISSI_PMC_IS29GL128HL,
7839 .total_size = 16384,
7840 .page_size = 128 * 1024, /* actual page size is 16 */
7841 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
7842 .tested = TEST_UNTESTED,
7843 .probe = probe_jedec_29gl,
7844 .probe_timing = TIMING_ZERO,
7845 .block_erasers =
7846 {
7847 {
7848 .eraseblocks = { {128 * 1024, 128} },
7849 .block_erase = erase_sector_jedec,
7850 }, {
7851 .eraseblocks = { {16 * 1024 * 1024, 1} },
7852 .block_erase = erase_chip_block_jedec,
7853 },
7854 },
7855 .write = write_jedec_1,
7856 .read = read_memmapped,
7857 .voltage = {2700, 3600},
7858 },
7859
7860 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007861 .vendor = "Intel",
7862 .name = "25F160S33B8",
7863 .bustype = BUS_SPI,
7864 .manufacture_id = INTEL_ID,
7865 .model_id = INTEL_25F160S33B8,
7866 .total_size = 2048,
7867 .page_size = 256,
7868 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
7869 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7870 .tested = TEST_UNTESTED,
7871 .probe = probe_spi_rdid,
7872 .probe_timing = TIMING_ZERO,
7873 .block_erasers =
7874 {
7875 {
7876 /* This chip supports erasing of the 8 so-called "parameter blocks" with
7877 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
7878 * have no effect on the memory contents, but sets a flag in the SR.
7879 .eraseblocks = {
7880 {8 * 1024, 8},
7881 {64 * 1024, 31} // inaccessible
7882 },
7883 .block_erase = spi_block_erase_40,
7884 }, { */
7885 .eraseblocks = { {64 * 1024, 32} },
7886 .block_erase = spi_block_erase_d8,
7887 }, {
7888 .eraseblocks = { {2 * 1024 * 1024, 1} },
7889 .block_erase = spi_block_erase_c7,
7890 }
7891 },
7892 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
7893 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
7894 .write = spi_chip_write_256,
7895 .read = spi_chip_read, /* also fast read 0x0B */
7896 .voltage = {2700, 3600},
7897 },
7898
7899 {
7900 .vendor = "Intel",
7901 .name = "25F160S33T8",
7902 .bustype = BUS_SPI,
7903 .manufacture_id = INTEL_ID,
7904 .model_id = INTEL_25F160S33T8,
7905 .total_size = 2048,
7906 .page_size = 256,
7907 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
7908 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7909 .tested = TEST_UNTESTED,
7910 .probe = probe_spi_rdid,
7911 .probe_timing = TIMING_ZERO,
7912 .block_erasers =
7913 {
7914 {
7915 /* This chip supports erasing of the 8 so-called "parameter blocks" with
7916 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
7917 * have no effect on the memory contents, but sets a flag in the SR.
7918 .eraseblocks = {
7919 {64 * 1024, 31}, // inaccessible
7920 {8 * 1024, 8}
7921 },
7922 .block_erase = spi_block_erase_40,
7923 }, { */
7924 .eraseblocks = { {64 * 1024, 32} },
7925 .block_erase = spi_block_erase_d8,
7926 }, {
7927 .eraseblocks = { {2 * 1024 * 1024, 1} },
7928 .block_erase = spi_block_erase_c7,
7929 }
7930 },
7931 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
7932 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
7933 .write = spi_chip_write_256,
7934 .read = spi_chip_read, /* also fast read 0x0B */
7935 .voltage = {2700, 3600},
7936 },
7937
7938 {
7939 .vendor = "Intel",
7940 .name = "25F320S33B8",
7941 .bustype = BUS_SPI,
7942 .manufacture_id = INTEL_ID,
7943 .model_id = INTEL_25F320S33B8,
7944 .total_size = 4096,
7945 .page_size = 256,
7946 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
7947 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7948 .tested = TEST_UNTESTED,
7949 .probe = probe_spi_rdid,
7950 .probe_timing = TIMING_ZERO,
7951 .block_erasers =
7952 {
7953 {
7954 /* This chip supports erasing of the 8 so-called "parameter blocks" with
7955 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
7956 * have no effect on the memory contents, but sets a flag in the SR.
7957 .eraseblocks = {
7958 {8 * 1024, 8},
7959 {64 * 1024, 63} // inaccessible
7960 },
7961 .block_erase = spi_block_erase_40,
7962 }, { */
7963 .eraseblocks = { {64 * 1024, 64} },
7964 .block_erase = spi_block_erase_d8,
7965 }, {
7966 .eraseblocks = { {4 * 1024 * 1024, 1} },
7967 .block_erase = spi_block_erase_c7,
7968 }
7969 },
7970 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
7971 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
7972 .write = spi_chip_write_256,
7973 .read = spi_chip_read, /* also fast read 0x0B */
7974 .voltage = {2700, 3600},
7975 },
7976
7977 {
7978 .vendor = "Intel",
7979 .name = "25F320S33T8",
7980 .bustype = BUS_SPI,
7981 .manufacture_id = INTEL_ID,
7982 .model_id = INTEL_25F320S33T8,
7983 .total_size = 4096,
7984 .page_size = 256,
7985 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
7986 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7987 .tested = TEST_UNTESTED,
7988 .probe = probe_spi_rdid,
7989 .probe_timing = TIMING_ZERO,
7990 .block_erasers =
7991 {
7992 {
7993 /* This chip supports erasing of the 8 so-called "parameter blocks" with
7994 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
7995 * have no effect on the memory contents, but sets a flag in the SR.
7996 .eraseblocks = {
7997 {64 * 1024, 63}, // inaccessible
7998 {8 * 1024, 8}
7999 },
8000 .block_erase = spi_block_erase_40,
8001 }, { */
8002 .eraseblocks = { {64 * 1024, 64} },
8003 .block_erase = spi_block_erase_d8,
8004 }, {
8005 .eraseblocks = { {4 * 1024 * 1024, 1} },
8006 .block_erase = spi_block_erase_c7,
8007 }
8008 },
8009 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
8010 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
8011 .write = spi_chip_write_256,
8012 .read = spi_chip_read, /* also fast read 0x0B */
8013 .voltage = {2700, 3600},
8014 },
8015
8016 {
8017 .vendor = "Intel",
8018 .name = "25F640S33B8",
8019 .bustype = BUS_SPI,
8020 .manufacture_id = INTEL_ID,
8021 .model_id = INTEL_25F640S33B8,
8022 .total_size = 8192,
8023 .page_size = 256,
8024 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
8025 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Zoltan HERPAIe0e8b2b2020-08-08 16:04:34 +02008026 .tested = TEST_OK_PREW,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008027 .probe = probe_spi_rdid,
8028 .probe_timing = TIMING_ZERO,
8029 .block_erasers =
8030 {
8031 {
8032 /* This chip supports erasing of the 8 so-called "parameter blocks" with
8033 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
8034 * have no effect on the memory contents, but sets a flag in the SR.
8035 .eraseblocks = {
8036 {8 * 1024, 8},
8037 {64 * 1024, 127} // inaccessible
8038 },
8039 .block_erase = spi_block_erase_40,
8040 }, { */
8041 .eraseblocks = { {64 * 1024, 128} },
8042 .block_erase = spi_block_erase_d8,
8043 }, {
8044 .eraseblocks = { {8 * 1024 * 1024, 1} },
8045 .block_erase = spi_block_erase_c7,
8046 }
8047 },
8048 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
8049 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
8050 .write = spi_chip_write_256,
8051 .read = spi_chip_read, /* also fast read 0x0B */
8052 .voltage = {2700, 3600},
8053 },
8054
8055 {
8056 .vendor = "Intel",
8057 .name = "25F640S33T8",
8058 .bustype = BUS_SPI,
8059 .manufacture_id = INTEL_ID,
8060 .model_id = INTEL_25F640S33T8,
8061 .total_size = 8192,
8062 .page_size = 256,
8063 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
8064 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8065 .tested = TEST_UNTESTED,
8066 .probe = probe_spi_rdid,
8067 .probe_timing = TIMING_ZERO,
8068 .block_erasers =
8069 {
8070 {
8071 /* This chip supports erasing of the 8 so-called "parameter blocks" with
8072 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
8073 * have no effect on the memory contents, but sets a flag in the SR.
8074 .eraseblocks = {
8075 {64 * 1024, 127}, // inaccessible
8076 {8 * 1024, 8}
8077 },
8078 .block_erase = spi_block_erase_40,
8079 }, { */
8080 .eraseblocks = { {64 * 1024, 128} },
8081 .block_erase = spi_block_erase_d8,
8082 }, {
8083 .eraseblocks = { {8 * 1024 * 1024, 1} },
8084 .block_erase = spi_block_erase_c7,
8085 }
8086 },
8087 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
8088 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
8089 .write = spi_chip_write_256,
8090 .read = spi_chip_read, /* also fast read 0x0B */
8091 .voltage = {2700, 3600},
8092 },
8093
8094 {
8095 .vendor = "Intel",
8096 .name = "28F001BN/BX-B",
8097 .bustype = BUS_PARALLEL,
8098 .manufacture_id = INTEL_ID,
8099 .model_id = INTEL_28F001B,
8100 .total_size = 128,
8101 .page_size = 128 * 1024, /* 8k + 2x4k + 112k */
8102 .tested = TEST_UNTESTED,
8103 .probe = probe_jedec,
8104 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8105 .block_erasers =
8106 {
8107 {
8108 .eraseblocks = {
8109 {8 * 1024, 1},
8110 {4 * 1024, 2},
8111 {112 * 1024, 1},
8112 },
8113 .block_erase = erase_block_82802ab,
8114 },
8115 },
8116 .write = write_82802ab,
8117 .read = read_memmapped,
8118 .voltage = {4500, 5500},
8119 },
8120
8121 {
8122 .vendor = "Intel",
8123 .name = "28F001BN/BX-T",
8124 .bustype = BUS_PARALLEL,
8125 .manufacture_id = INTEL_ID,
8126 .model_id = INTEL_28F001T,
8127 .total_size = 128,
8128 .page_size = 128 * 1024, /* 112k + 2x4k + 8k */
8129 .tested = TEST_OK_PREW,
8130 .probe = probe_jedec,
8131 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8132 .block_erasers =
8133 {
8134 {
8135 .eraseblocks = {
8136 {112 * 1024, 1},
8137 {4 * 1024, 2},
8138 {8 * 1024, 1},
8139 },
8140 .block_erase = erase_block_82802ab,
8141 },
8142 },
8143 .write = write_82802ab,
8144 .read = read_memmapped,
8145 .voltage = {4500, 5500},
8146 },
8147
8148 {
8149 .vendor = "Intel",
8150 .name = "28F002BC/BL/BV/BX-T",
8151 .bustype = BUS_PARALLEL,
8152 .manufacture_id = INTEL_ID,
8153 .model_id = INTEL_28F002T,
8154 .total_size = 256,
8155 .page_size = 256 * 1024,
8156 .tested = TEST_OK_PRE,
8157 .probe = probe_82802ab,
8158 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8159 .block_erasers =
8160 {
8161 {
8162 .eraseblocks = {
8163 {128 * 1024, 1},
8164 {96 * 1024, 1},
8165 {8 * 1024, 2},
8166 {16 * 1024, 1},
8167 },
8168 .block_erase = erase_block_82802ab,
8169 },
8170 },
8171 .write = write_82802ab,
8172 .read = read_memmapped,
8173 },
8174
8175 {
8176 .vendor = "Intel",
8177 .name = "28F004B5/BE/BV/BX-B",
8178 .bustype = BUS_PARALLEL,
8179 .manufacture_id = INTEL_ID,
8180 .model_id = INTEL_28F004B,
8181 .total_size = 512,
8182 .page_size = 128 * 1024, /* maximal block size */
8183 .tested = TEST_UNTESTED,
8184 .probe = probe_82802ab,
8185 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8186 .block_erasers =
8187 {
8188 {
8189 .eraseblocks = {
8190 {16 * 1024, 1},
8191 {8 * 1024, 2},
8192 {96 * 1024, 1},
8193 {128 * 1024, 3},
8194 },
8195 .block_erase = erase_block_82802ab,
8196 },
8197 },
8198 .write = write_82802ab,
8199 .read = read_memmapped,
8200 },
8201
8202 {
8203 .vendor = "Intel",
8204 .name = "28F004B5/BE/BV/BX-T",
8205 .bustype = BUS_PARALLEL,
8206 .manufacture_id = INTEL_ID,
8207 .model_id = INTEL_28F004T,
8208 .total_size = 512,
8209 .page_size = 128 * 1024, /* maximal block size */
8210 .tested = TEST_UNTESTED,
8211 .probe = probe_82802ab,
8212 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8213 .block_erasers =
8214 {
8215 {
8216 .eraseblocks = {
8217 {128 * 1024, 3},
8218 {96 * 1024, 1},
8219 {8 * 1024, 2},
8220 {16 * 1024, 1},
8221 },
8222 .block_erase = erase_block_82802ab,
8223 },
8224 },
8225 .write = write_82802ab,
8226 .read = read_memmapped,
8227 },
8228
8229 {
8230 .vendor = "Intel",
8231 .name = "28F008S3/S5/SC",
8232 .bustype = BUS_PARALLEL,
8233 .manufacture_id = INTEL_ID,
8234 .model_id = INTEL_28F004S3,
8235 .total_size = 512,
8236 .page_size = 256,
8237 .tested = TEST_UNTESTED,
8238 .probe = probe_82802ab,
8239 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8240 .block_erasers =
8241 {
8242 {
8243 .eraseblocks = { {64 * 1024, 8} },
8244 .block_erase = erase_block_82802ab,
8245 },
8246 },
8247 .unlock = unlock_28f004s5,
8248 .write = write_82802ab,
8249 .read = read_memmapped,
8250 },
8251
8252 {
8253 .vendor = "Intel",
8254 .name = "28F400BV/BX/CE/CV-B",
8255 .bustype = BUS_PARALLEL,
8256 .manufacture_id = INTEL_ID,
8257 .model_id = INTEL_28F400B,
8258 .total_size = 512,
8259 .page_size = 128 * 1024, /* maximal block size */
8260 .feature_bits = FEATURE_ADDR_SHIFTED,
8261 .tested = TEST_UNTESTED,
8262 .probe = probe_82802ab,
8263 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8264 .block_erasers =
8265 {
8266 {
8267 .eraseblocks = {
8268 {16 * 1024, 1},
8269 {8 * 1024, 2},
8270 {96 * 1024, 1},
8271 {128 * 1024, 3},
8272 },
8273 .block_erase = erase_block_82802ab,
8274 },
8275 },
8276 .write = write_82802ab,
8277 .read = read_memmapped,
8278 },
8279
8280 {
8281 .vendor = "Intel",
8282 .name = "28F400BV/BX/CE/CV-T",
8283 .bustype = BUS_PARALLEL,
8284 .manufacture_id = INTEL_ID,
8285 .model_id = INTEL_28F400T,
8286 .total_size = 512,
8287 .page_size = 128 * 1024, /* maximal block size */
8288 .feature_bits = FEATURE_ADDR_SHIFTED,
8289 .tested = TEST_UNTESTED,
8290 .probe = probe_82802ab,
8291 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8292 .block_erasers =
8293 {
8294 {
8295 .eraseblocks = {
8296 {128 * 1024, 3},
8297 {96 * 1024, 1},
8298 {8 * 1024, 2},
8299 {16 * 1024, 1},
8300 },
8301 .block_erase = erase_block_82802ab,
8302 },
8303 },
8304 .write = write_82802ab,
8305 .read = read_memmapped,
8306 },
8307
8308 {
8309 .vendor = "Intel",
8310 .name = "82802AB",
8311 .bustype = BUS_FWH,
8312 .manufacture_id = INTEL_ID,
8313 .model_id = INTEL_82802AB,
8314 .total_size = 512,
8315 .page_size = 64 * 1024,
8316 .feature_bits = FEATURE_REGISTERMAP,
Alan Green88552572019-07-24 13:56:06 +10008317 .tested = TEST_OK_PREW,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008318 .probe = probe_82802ab,
8319 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
8320 .block_erasers =
8321 {
8322 {
8323 .eraseblocks = { {64 * 1024, 8} },
8324 .block_erase = erase_block_82802ab,
8325 },
8326 },
8327 .unlock = unlock_regspace2_uniform_64k,
8328 .write = write_82802ab,
8329 .read = read_memmapped,
8330 .voltage = {3000, 3600},
8331 },
8332
8333 {
8334 .vendor = "Intel",
8335 .name = "82802AC",
8336 .bustype = BUS_FWH,
8337 .manufacture_id = INTEL_ID,
8338 .model_id = INTEL_82802AC,
8339 .total_size = 1024,
8340 .page_size = 64 * 1024,
8341 .feature_bits = FEATURE_REGISTERMAP,
8342 .tested = TEST_OK_PR,
8343 .probe = probe_82802ab,
8344 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
8345 .block_erasers =
8346 {
8347 {
8348 .eraseblocks = { {64 * 1024, 16} },
8349 .block_erase = erase_block_82802ab,
8350 },
8351 },
8352 .unlock = unlock_regspace2_uniform_64k,
8353 .write = write_82802ab,
8354 .read = read_memmapped,
8355 .voltage = {3000, 3600},
8356 },
8357
8358 {
8359 .vendor = "Macronix",
8360 .name = "MX23L12854",
8361 .bustype = BUS_SPI,
8362 .manufacture_id = MACRONIX_ID,
8363 .model_id = MACRONIX_MX23L12854,
8364 .total_size = 16384,
8365 .page_size = 256,
8366 .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA},
8367 .probe = probe_spi_rdid,
8368 .probe_timing = TIMING_ZERO,
8369 .write = NULL, /* MX23L12854 is a mask ROM, so it is read-only */
8370 .read = spi_chip_read, /* Fast read (0x0B) supported */
8371 .voltage = {3000, 3600},
8372 },
8373
8374 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008375 .vendor = "Macronix",
Michael Coppola583ea322014-08-20 18:56:35 +00008376 .name = "MX23L1654",
8377 .bustype = BUS_SPI,
8378 .manufacture_id = MACRONIX_ID,
8379 .model_id = MACRONIX_MX23L1654,
8380 .total_size = 2048,
8381 .page_size = 256,
8382 .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA},
8383 .probe = probe_spi_rdid,
8384 .probe_timing = TIMING_ZERO,
8385 .write = NULL, /* MX23L1654 is a mask ROM, so it is read-only */
8386 .read = spi_chip_read, /* Fast read (0x0B) supported */
8387 .voltage = {3000, 3600},
8388 },
8389
8390 {
8391 .vendor = "Macronix",
Michael Coppola4e7f36e2014-05-03 23:01:18 +00008392 .name = "MX23L3254",
8393 .bustype = BUS_SPI,
8394 .manufacture_id = MACRONIX_ID,
8395 .model_id = MACRONIX_MX23L3254,
8396 .total_size = 4096,
8397 .page_size = 256,
Stefan Tauner6455dff2014-05-26 00:36:24 +00008398 .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA},
Michael Coppola4e7f36e2014-05-03 23:01:18 +00008399 .probe = probe_spi_rdid,
8400 .probe_timing = TIMING_ZERO,
8401 .write = NULL, /* MX23L3254 is a mask ROM, so it is read-only */
8402 .read = spi_chip_read, /* Fast read (0x0B) supported */
8403 .voltage = {3000, 3600},
8404 },
8405
8406 {
8407 .vendor = "Macronix",
Michael Coppola583ea322014-08-20 18:56:35 +00008408 .name = "MX23L6454",
8409 .bustype = BUS_SPI,
8410 .manufacture_id = MACRONIX_ID,
8411 .model_id = MACRONIX_MX23L6454,
8412 .total_size = 8192,
8413 .page_size = 256,
Stefan Tauner23e10b82016-01-23 16:16:49 +00008414 .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA},
Michael Coppola583ea322014-08-20 18:56:35 +00008415 .probe = probe_spi_rdid,
8416 .probe_timing = TIMING_ZERO,
8417 .write = NULL, /* MX23L6454 is a mask ROM, so it is read-only */
8418 .read = spi_chip_read, /* Fast read (0x0B) supported */
8419 .voltage = {3000, 3600},
8420 },
8421
8422 {
8423 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00008424 .name = "MX25L1005(C)/MX25L1006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008425 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008426 .manufacture_id = MACRONIX_ID,
8427 .model_id = MACRONIX_MX25L1005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008428 .total_size = 128,
8429 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00008430 /* MX25L1006E supports SFDP */
David Hendricks67db2eb2010-09-03 03:35:48 +00008431 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00008432 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008433 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008434 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00008435 .block_erasers =
8436 {
8437 {
8438 .eraseblocks = { {4 * 1024, 32} },
8439 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008440 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00008441 .eraseblocks = { {64 * 1024, 2} },
8442 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008443 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00008444 .eraseblocks = { {128 * 1024, 1} },
8445 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008446 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00008447 .eraseblocks = { {128 * 1024, 1} },
8448 .block_erase = spi_block_erase_c7,
8449 },
8450 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008451 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008452 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008453 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00008454 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L1006E supports dual I/O */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008455 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008456 },
8457
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008458 {
8459 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008460 .name = "MX25L12805D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008461 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008462 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008463 .model_id = MACRONIX_MX25L12805D,
8464 .total_size = 16384,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008465 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008466 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8467 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008468 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008469 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008470 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008471 .block_erasers =
8472 {
8473 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008474 .eraseblocks = { {4 * 1024, 4096} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008475 .block_erase = spi_block_erase_20,
8476 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008477 .eraseblocks = { {64 * 1024, 256} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008478 .block_erase = spi_block_erase_d8,
8479 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008480 .eraseblocks = { {16 * 1024 * 1024, 1} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008481 .block_erase = spi_block_erase_60,
8482 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008483 .eraseblocks = { {16 * 1024 * 1024, 1} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008484 .block_erase = spi_block_erase_c7,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008485 }
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008486 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10008487 .printlock = spi_prettyprint_status_register_bp3_srwd,
8488 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008489 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00008490 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008491 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008492 },
8493
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008494 {
8495 .vendor = "Macronix",
Tao Xia571f6ad2021-07-21 16:41:53 +08008496 .name = "MX25L12833F/MX25L12835F/MX25L12845E/MX25L12865E/MX25L12873F",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008497 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008498 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008499 .model_id = MACRONIX_MX25L12805D,
8500 .total_size = 16384,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008501 .page_size = 256,
Tao Xia571f6ad2021-07-21 16:41:53 +08008502 /* OTP: MX25L12833F has 1KB total, others have 512B total; enter 0xB1, exit 0xC1 */
Alan Green1f9cc7d2019-07-01 11:10:45 +10008503 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner8179be52011-06-04 13:13:34 +00008504 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008505 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008506 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008507 .block_erasers =
8508 {
8509 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008510 .eraseblocks = { {4 * 1024, 4096} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008511 .block_erase = spi_block_erase_20,
8512 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008513 .eraseblocks = { {32 * 1024, 512} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008514 .block_erase = spi_block_erase_52,
8515 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008516 .eraseblocks = { {64 * 1024, 256} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008517 .block_erase = spi_block_erase_d8,
8518 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008519 .eraseblocks = { {16 * 1024 * 1024, 1} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008520 .block_erase = spi_block_erase_60,
8521 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008522 .eraseblocks = { {16 * 1024 * 1024, 1} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008523 .block_erase = spi_block_erase_c7,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008524 }
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008525 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10008526 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
8527 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8528 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008529 .write = spi_chip_write_256,
Stefan Taunerf656e802013-02-02 15:35:44 +00008530 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008531 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008532 },
8533
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008534 {
8535 .vendor = "Macronix",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008536 .name = "MX25L1605",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008537 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008538 .manufacture_id = MACRONIX_ID,
8539 .model_id = MACRONIX_MX25L1605,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008540 .total_size = 2048,
8541 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00008542 .feature_bits = FEATURE_WRSR_WREN,
Sven Schnelle4bd8a402011-03-07 10:59:06 +00008543 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008544 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008545 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008546 .block_erasers =
8547 {
8548 {
Stefan Tauner226037d2013-03-16 01:22:12 +00008549 .eraseblocks = { {64 * 1024, 32} },
8550 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008551 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00008552 .eraseblocks = { {64 * 1024, 32} },
8553 .block_erase = spi_block_erase_d8,
8554 }, {
8555 .eraseblocks = { {2 * 1024 * 1024, 1} },
8556 .block_erase = spi_block_erase_60,
8557 }, {
8558 .eraseblocks = { {2 * 1024 * 1024, 1} },
8559 .block_erase = spi_block_erase_c7,
8560 },
8561 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008562 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */
Stefan Tauner226037d2013-03-16 01:22:12 +00008563 .unlock = spi_disable_blockprotect,
8564 .write = spi_chip_write_256,
8565 .read = spi_chip_read, /* Fast read (0x0B) supported */
8566 .voltage = {2700, 3600},
8567 },
8568
8569 {
8570 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008571 .name = "MX25L1605A/MX25L1606E/MX25L1608E",
Stefan Tauner226037d2013-03-16 01:22:12 +00008572 .bustype = BUS_SPI,
8573 .manufacture_id = MACRONIX_ID,
8574 .model_id = MACRONIX_MX25L1605,
8575 .total_size = 2048,
8576 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008577 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L1606E and MX25L1608E only) */
Stefan Tauner226037d2013-03-16 01:22:12 +00008578 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8579 .tested = TEST_OK_PREW,
8580 .probe = probe_spi_rdid,
8581 .probe_timing = TIMING_ZERO,
8582 .block_erasers =
8583 {
8584 {
8585 .eraseblocks = { {4 * 1024, 512} },
8586 .block_erase = spi_block_erase_20,
8587 }, {
8588 .eraseblocks = { {64 * 1024, 32} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008589 .block_erase = spi_block_erase_52,
8590 }, {
8591 .eraseblocks = { {64 * 1024, 32} },
8592 .block_erase = spi_block_erase_d8,
8593 }, {
8594 .eraseblocks = { {2 * 1024 * 1024, 1} },
8595 .block_erase = spi_block_erase_60,
8596 }, {
8597 .eraseblocks = { {2 * 1024 * 1024, 1} },
8598 .block_erase = spi_block_erase_c7,
8599 },
8600 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008601 .printlock = spi_prettyprint_status_register_bp3_srwd, /* MX25L1605A bp2 only */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008602 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008603 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008604 .read = spi_chip_read, /* Fast read (0x0B) supported (MX25L1608E supports dual-I/O read) */
Stefan Tauner226037d2013-03-16 01:22:12 +00008605 .voltage = {2700, 3600},
8606 },
8607
8608 {
8609 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008610 .name = "MX25L1605D/MX25L1608D/MX25L1673E",
Stefan Tauner226037d2013-03-16 01:22:12 +00008611 .bustype = BUS_SPI,
8612 .manufacture_id = MACRONIX_ID,
8613 .model_id = MACRONIX_MX25L1605,
8614 .total_size = 2048,
8615 .page_size = 256,
8616 .feature_bits = FEATURE_WRSR_WREN,
8617 .tested = TEST_OK_PREW,
8618 .probe = probe_spi_rdid,
8619 .probe_timing = TIMING_ZERO,
8620 .block_erasers =
8621 {
8622 {
8623 .eraseblocks = { {4 * 1024, 512} },
8624 .block_erase = spi_block_erase_20,
8625 }, {
8626 .eraseblocks = { {64 * 1024, 32} },
8627 .block_erase = spi_block_erase_d8,
8628 }, {
8629 .eraseblocks = { {2 * 1024 * 1024, 1} },
8630 .block_erase = spi_block_erase_60,
8631 }, {
8632 .eraseblocks = { {2 * 1024 * 1024, 1} },
8633 .block_erase = spi_block_erase_c7,
8634 },
8635 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008636 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: Continuously Program (CP) mode, for 73E is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008637 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00008638 .write = spi_chip_write_256,
8639 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008640 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008641 },
8642
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008643 {
8644 .vendor = "Macronix",
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008645 .name = "MX25L1635D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008646 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008647 .manufacture_id = MACRONIX_ID,
8648 .model_id = MACRONIX_MX25L1635D,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008649 .total_size = 2048,
8650 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008651 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8652 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Angel Ponsc2054872021-01-15 18:57:32 +01008653 .tested = TEST_OK_PREW,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008654 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008655 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008656 .block_erasers =
8657 {
8658 {
8659 .eraseblocks = { {4 * 1024, 512} },
8660 .block_erase = spi_block_erase_20,
8661 }, {
8662 .eraseblocks = { {64 * 1024, 32} },
8663 .block_erase = spi_block_erase_d8,
8664 }, {
8665 .eraseblocks = { {2 * 1024 * 1024, 1} },
8666 .block_erase = spi_block_erase_60,
8667 }, {
8668 .eraseblocks = { {2 * 1024 * 1024, 1} },
8669 .block_erase = spi_block_erase_c7,
8670 }
8671 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008672 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008673 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008674 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008675 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008676 .voltage = {2700, 3600},
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008677 },
Stephan Guillouxfd315502009-04-20 22:54:13 +00008678
Stephan Guillouxf5c70902009-04-19 23:04:00 +00008679 {
8680 .vendor = "Macronix",
Stephan Guilloux3611b802010-09-13 19:59:28 +00008681 .name = "MX25L1635E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008682 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008683 .manufacture_id = MACRONIX_ID,
8684 .model_id = MACRONIX_MX25L1635E,
Stephan Guilloux3611b802010-09-13 19:59:28 +00008685 .total_size = 2048,
8686 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008687 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8688 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux3611b802010-09-13 19:59:28 +00008689 .tested = TEST_UNTESTED,
8690 .probe = probe_spi_rdid,
8691 .probe_timing = TIMING_ZERO,
8692 .block_erasers =
8693 {
8694 {
8695 .eraseblocks = { {4 * 1024, 512} },
8696 .block_erase = spi_block_erase_20,
8697 }, {
8698 .eraseblocks = { {64 * 1024, 32} },
8699 .block_erase = spi_block_erase_d8,
8700 }, {
8701 .eraseblocks = { {2 * 1024 * 1024, 1} },
8702 .block_erase = spi_block_erase_60,
8703 }, {
8704 .eraseblocks = { {2 * 1024 * 1024, 1} },
8705 .block_erase = spi_block_erase_c7,
8706 }
8707 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008708 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008709 .unlock = spi_disable_blockprotect_bp3_srwd,
Stephan Guilloux3611b802010-09-13 19:59:28 +00008710 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008711 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00008712 .voltage = {2700, 3600},
Stephan Guilloux3611b802010-09-13 19:59:28 +00008713 },
8714
8715 {
8716 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008717 .name = "MX25L2005(C)/MX25L2006E",
8718 .bustype = BUS_SPI,
8719 .manufacture_id = MACRONIX_ID,
8720 .model_id = MACRONIX_MX25L2005,
8721 .total_size = 256,
8722 .page_size = 256,
8723 .feature_bits = FEATURE_WRSR_WREN,
8724 .tested = TEST_OK_PREW,
8725 .probe = probe_spi_rdid,
8726 .probe_timing = TIMING_ZERO,
8727 .block_erasers =
8728 {
8729 {
8730 .eraseblocks = { {4 * 1024, 64} },
8731 .block_erase = spi_block_erase_20,
8732 }, {
8733 .eraseblocks = { {64 * 1024, 4} },
8734 .block_erase = spi_block_erase_52,
8735 }, {
8736 .eraseblocks = { {64 * 1024, 4} },
8737 .block_erase = spi_block_erase_d8,
8738 }, {
8739 .eraseblocks = { {256 * 1024, 1} },
8740 .block_erase = spi_block_erase_60,
8741 }, {
8742 .eraseblocks = { {256 * 1024, 1} },
8743 .block_erase = spi_block_erase_c7,
8744 },
8745 },
8746 .printlock = spi_prettyprint_status_register_bp1_srwd,
8747 .unlock = spi_disable_blockprotect,
8748 .write = spi_chip_write_256,
8749 .read = spi_chip_read, /* Fast read (0x0B) supported */
8750 .voltage = {2700, 3600},
8751 },
8752
8753 {
8754 .vendor = "Macronix",
Alan Green03707302019-08-26 12:50:43 +10008755 .name = "MX25L25635F/MX25L25645G",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008756 .bustype = BUS_SPI,
8757 .manufacture_id = MACRONIX_ID,
8758 .model_id = MACRONIX_MX25L25635F,
8759 .total_size = 32768,
8760 .page_size = 256,
8761 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
8762 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
8763 .tested = TEST_OK_PREW,
8764 .probe = probe_spi_rdid,
8765 .probe_timing = TIMING_ZERO,
8766 .block_erasers =
8767 {
8768 {
8769 .eraseblocks = { {4 * 1024, 8192} },
8770 .block_erase = spi_block_erase_21,
8771 }, {
8772 .eraseblocks = { {4 * 1024, 8192} },
8773 .block_erase = spi_block_erase_20,
8774 }, {
8775 .eraseblocks = { {32 * 1024, 1024} },
8776 .block_erase = spi_block_erase_5c,
8777 }, {
8778 .eraseblocks = { {32 * 1024, 1024} },
8779 .block_erase = spi_block_erase_52,
8780 }, {
8781 .eraseblocks = { {64 * 1024, 512} },
8782 .block_erase = spi_block_erase_dc,
8783 }, {
8784 .eraseblocks = { {64 * 1024, 512} },
8785 .block_erase = spi_block_erase_d8,
8786 }, {
8787 .eraseblocks = { {32 * 1024 * 1024, 1} },
8788 .block_erase = spi_block_erase_60,
8789 }, {
8790 .eraseblocks = { {32 * 1024 * 1024, 1} },
8791 .block_erase = spi_block_erase_c7,
8792 }
8793 },
8794 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
8795 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8796 .unlock = spi_disable_blockprotect_bp3_srwd,
8797 .write = spi_chip_write_256,
8798 .read = spi_chip_read, /* Fast read (0x0B) supported */
8799 .voltage = {2700, 3600},
8800 },
8801
8802 {
8803 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00008804 .name = "MX25L3205(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008805 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008806 .manufacture_id = MACRONIX_ID,
8807 .model_id = MACRONIX_MX25L3205,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008808 .total_size = 4096,
8809 .page_size = 256,
David Hendricks67db2eb2010-09-03 03:35:48 +00008810 .feature_bits = FEATURE_WRSR_WREN,
David Hendricks22e05322010-12-13 23:54:59 +00008811 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008812 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008813 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00008814 .block_erasers =
8815 {
8816 {
Stefan Tauner226037d2013-03-16 01:22:12 +00008817 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00008818 .block_erase = spi_block_erase_20,
8819 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00008820 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00008821 .block_erase = spi_block_erase_d8,
8822 }, {
8823 .eraseblocks = { {4 * 1024 * 1024, 1} },
8824 .block_erase = spi_block_erase_60,
8825 }, {
8826 .eraseblocks = { {4 * 1024 * 1024, 1} },
8827 .block_erase = spi_block_erase_c7,
8828 },
8829 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008830 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008831 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008832 .write = spi_chip_write_256,
Stefan Tauner226037d2013-03-16 01:22:12 +00008833 .read = spi_chip_read, /* Fast read (0x0B) supported */
8834 .voltage = {2700, 3600},
8835 },
8836
8837 {
8838 .vendor = "Macronix",
8839 .name = "MX25L3205D/MX25L3208D",
8840 .bustype = BUS_SPI,
8841 .manufacture_id = MACRONIX_ID,
8842 .model_id = MACRONIX_MX25L3205,
8843 .total_size = 4096,
8844 .page_size = 256,
8845 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8846 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8847 .tested = TEST_OK_PREW,
8848 .probe = probe_spi_rdid,
8849 .probe_timing = TIMING_ZERO,
8850 .block_erasers =
8851 {
8852 {
8853 .eraseblocks = { {4 * 1024, 1024} },
8854 .block_erase = spi_block_erase_20,
8855 }, {
8856 .eraseblocks = { {64 * 1024, 64} },
8857 .block_erase = spi_block_erase_d8,
8858 }, {
8859 .eraseblocks = { {4 * 1024 * 1024, 1} },
8860 .block_erase = spi_block_erase_60,
8861 }, {
8862 .eraseblocks = { {4 * 1024 * 1024, 1} },
8863 .block_erase = spi_block_erase_c7,
8864 },
8865 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008866 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008867 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00008868 .write = spi_chip_write_256,
8869 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
8870 .voltage = {2700, 3600},
8871 },
8872
8873 {
8874 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008875 .name = "MX25L3206E/MX25L3208E",
Stefan Tauner226037d2013-03-16 01:22:12 +00008876 .bustype = BUS_SPI,
8877 .manufacture_id = MACRONIX_ID,
8878 .model_id = MACRONIX_MX25L3205,
8879 .total_size = 4096,
8880 .page_size = 256,
8881 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
8882 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8883 .tested = TEST_OK_PREW,
8884 .probe = probe_spi_rdid,
8885 .probe_timing = TIMING_ZERO,
8886 .block_erasers =
8887 {
8888 {
8889 .eraseblocks = { {4 * 1024, 1024} },
8890 .block_erase = spi_block_erase_20,
8891 }, {
8892 .eraseblocks = { {64 * 1024, 64} },
8893 .block_erase = spi_block_erase_d8,
8894 }, {
8895 .eraseblocks = { {64 * 1024, 64} },
8896 .block_erase = spi_block_erase_52,
8897 }, {
8898 .eraseblocks = { {4 * 1024 * 1024, 1} },
8899 .block_erase = spi_block_erase_60,
8900 }, {
8901 .eraseblocks = { {4 * 1024 * 1024, 1} },
8902 .block_erase = spi_block_erase_c7,
8903 },
8904 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008905 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008906 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00008907 .write = spi_chip_write_256,
8908 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008909 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008910 },
8911
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008912 {
8913 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008914 .name = "MX25L3235D",
8915 .bustype = BUS_SPI,
8916 .manufacture_id = MACRONIX_ID,
8917 .model_id = MACRONIX_MX25L3235D,
8918 .total_size = 4096,
8919 .page_size = 256,
8920 /* OTP: 256B total; enter 0xB1, exit 0xC1 */
8921 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8922 .tested = TEST_UNTESTED,
8923 .probe = probe_spi_rdid,
8924 .probe_timing = TIMING_ZERO,
8925 .block_erasers =
8926 {
8927 {
8928 .eraseblocks = { {4 * 1024, 1024} },
8929 .block_erase = spi_block_erase_20,
8930 }, {
8931 .eraseblocks = { {64 * 1024, 64} },
8932 .block_erase = spi_block_erase_d8,
8933 }, {
8934 .eraseblocks = { {4 * 1024 * 1024, 1} },
8935 .block_erase = spi_block_erase_60,
8936 }, {
8937 .eraseblocks = { {4 * 1024 * 1024, 1} },
8938 .block_erase = spi_block_erase_c7,
8939 }
8940 },
8941 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
8942 .unlock = spi_disable_blockprotect_bp3_srwd,
8943 .write = spi_chip_write_256,
8944 .read = spi_chip_read,
8945 .voltage = {2700, 3600},
8946 },
8947
8948 {
8949 .vendor = "Macronix",
Nico Huberb6683e02021-04-21 13:04:29 +02008950 .name = "MX25L3233F/MX25L3273E",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008951 .bustype = BUS_SPI,
8952 .manufacture_id = MACRONIX_ID,
8953 .model_id = MACRONIX_MX25L3205,
8954 .total_size = 4096,
8955 .page_size = 256,
Nico Huber6e69e2b2021-04-21 13:03:13 +02008956 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008957 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +00008958 .tested = TEST_OK_PREW,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008959 .probe = probe_spi_rdid,
8960 .probe_timing = TIMING_ZERO,
8961 .block_erasers =
8962 {
8963 {
8964 .eraseblocks = { {4 * 1024, 1024} },
8965 .block_erase = spi_block_erase_20,
8966 }, {
8967 .eraseblocks = { {32 * 1024, 128} },
8968 .block_erase = spi_block_erase_52,
8969 }, {
8970 .eraseblocks = { {64 * 1024, 64} },
8971 .block_erase = spi_block_erase_d8,
8972 }, {
8973 .eraseblocks = { {4 * 1024 * 1024, 1} },
8974 .block_erase = spi_block_erase_60,
8975 }, {
8976 .eraseblocks = { {4 * 1024 * 1024, 1} },
8977 .block_erase = spi_block_erase_c7,
8978 },
8979 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008980 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner5c316f92015-02-08 21:57:52 +00008981 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008982 .write = spi_chip_write_256,
8983 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */
Nico Huberb6683e02021-04-21 13:04:29 +02008984 .voltage = {2700, 3600}, /* 33F 2.65V..3.6V */
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008985 },
8986
8987 {
8988 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008989 .name = "MX25L4005(A/C)/MX25L4006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008990 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008991 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008992 .model_id = MACRONIX_MX25L4005,
8993 .total_size = 512,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00008994 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008995 .feature_bits = FEATURE_WRSR_WREN,
8996 .tested = TEST_OK_PREW,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00008997 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008998 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00008999 .block_erasers =
9000 {
9001 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009002 .eraseblocks = { {4 * 1024, 128} },
Sean Nelson54596372010-01-09 05:30:14 +00009003 .block_erase = spi_block_erase_20,
9004 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009005 .eraseblocks = { {64 * 1024, 8} },
9006 .block_erase = spi_block_erase_52,
9007 }, {
9008 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson54596372010-01-09 05:30:14 +00009009 .block_erase = spi_block_erase_d8,
9010 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009011 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00009012 .block_erase = spi_block_erase_60,
9013 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009014 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00009015 .block_erase = spi_block_erase_c7,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009016 },
Sean Nelson54596372010-01-09 05:30:14 +00009017 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10009018 .printlock = spi_prettyprint_status_register_bp2_srwd,
9019 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009020 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009021 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009022 .voltage = {2700, 3600},
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00009023 },
9024
9025 {
9026 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009027 .name = "MX25L512(E)/MX25V512(C)",
9028 .bustype = BUS_SPI,
9029 .manufacture_id = MACRONIX_ID,
9030 .model_id = MACRONIX_MX25L512,
9031 .total_size = 64,
9032 .page_size = 256,
9033 /* MX25L512E supports SFDP */
9034 .feature_bits = FEATURE_WRSR_WREN,
9035 .tested = TEST_OK_PREW,
9036 .probe = probe_spi_rdid,
9037 .probe_timing = TIMING_ZERO,
9038 .block_erasers =
9039 {
9040 {
9041 .eraseblocks = { {4 * 1024, 16} },
9042 .block_erase = spi_block_erase_20,
9043 }, {
9044 .eraseblocks = { {64 * 1024, 1} },
9045 .block_erase = spi_block_erase_52,
9046 }, {
9047 .eraseblocks = { {64 * 1024, 1} },
9048 .block_erase = spi_block_erase_d8,
9049 }, {
9050 .eraseblocks = { {64 * 1024, 1} },
9051 .block_erase = spi_block_erase_60,
9052 }, {
9053 .eraseblocks = { {64 * 1024, 1} },
9054 .block_erase = spi_block_erase_c7,
9055 },
9056 },
9057 .printlock = spi_prettyprint_status_register_bp1_srwd,
9058 .unlock = spi_disable_blockprotect,
9059 .write = spi_chip_write_256,
9060 .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L512E supports dual I/O */
9061 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V512(C) */
9062 },
9063
9064 {
9065 .vendor = "Macronix",
Steve Markgraf7e6f3a72020-07-13 18:22:56 +02009066 .name = "MX25L5121E",
9067 .bustype = BUS_SPI,
9068 .manufacture_id = MACRONIX_ID,
9069 .model_id = MACRONIX_MX25L5121E,
9070 .total_size = 64,
9071 .page_size = 32,
9072 .feature_bits = FEATURE_WRSR_WREN,
9073 .tested = TEST_OK_PREW,
9074 .probe = probe_spi_rdid,
9075 .probe_timing = TIMING_ZERO,
9076 .block_erasers =
9077 {
9078 {
9079 .eraseblocks = { {4 * 1024, 16} },
9080 .block_erase = spi_block_erase_20,
9081 }, {
9082 .eraseblocks = { {64 * 1024, 1} },
9083 .block_erase = spi_block_erase_52,
9084 }, {
9085 .eraseblocks = { {64 * 1024, 1} },
9086 .block_erase = spi_block_erase_d8,
9087 }, {
9088 .eraseblocks = { {64 * 1024, 1} },
9089 .block_erase = spi_block_erase_60,
9090 }, {
9091 .eraseblocks = { {64 * 1024, 1} },
9092 .block_erase = spi_block_erase_c7,
9093 },
9094 },
9095 .printlock = spi_prettyprint_status_register_bp1_srwd,
9096 .unlock = spi_disable_blockprotect,
9097 .write = spi_chip_write_256,
9098 .read = spi_chip_read, /* Fast read (0x0B) supported */
9099 .voltage = {2700, 3600},
9100 },
9101
9102 {
9103 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009104 .name = "MX25L6405",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009105 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009106 .manufacture_id = MACRONIX_ID,
9107 .model_id = MACRONIX_MX25L6405,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009108 .total_size = 8192,
9109 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009110 /* Has an additional 512B EEPROM sector */
9111 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzelac427b22012-02-16 21:07:07 +00009112 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009113 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009114 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00009115 .block_erasers =
9116 {
9117 {
9118 .eraseblocks = { {64 * 1024, 128} },
9119 .block_erase = spi_block_erase_20,
9120 }, {
9121 .eraseblocks = { {64 * 1024, 128} },
9122 .block_erase = spi_block_erase_d8,
9123 }, {
9124 .eraseblocks = { {8 * 1024 * 1024, 1} },
9125 .block_erase = spi_block_erase_60,
9126 }, {
9127 .eraseblocks = { {8 * 1024 * 1024, 1} },
9128 .block_erase = spi_block_erase_c7,
9129 }
9130 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009131 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: error flag */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009132 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009133 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009134 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009135 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009136 },
9137
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009138 {
9139 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009140 .name = "MX25L6405D",
Stefan Tauner226037d2013-03-16 01:22:12 +00009141 .bustype = BUS_SPI,
9142 .manufacture_id = MACRONIX_ID,
9143 .model_id = MACRONIX_MX25L6405,
9144 .total_size = 8192,
9145 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009146 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
Stefan Tauner226037d2013-03-16 01:22:12 +00009147 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9148 .tested = TEST_OK_PREW,
9149 .probe = probe_spi_rdid,
9150 .probe_timing = TIMING_ZERO,
9151 .block_erasers =
9152 {
9153 {
9154 .eraseblocks = { {4 * 1024, 2048} },
9155 .block_erase = spi_block_erase_20,
9156 }, {
9157 .eraseblocks = { {64 * 1024, 128} },
9158 .block_erase = spi_block_erase_d8,
9159 }, {
9160 .eraseblocks = { {8 * 1024 * 1024, 1} },
9161 .block_erase = spi_block_erase_60,
9162 }, {
9163 .eraseblocks = { {8 * 1024 * 1024, 1} },
9164 .block_erase = spi_block_erase_c7,
9165 }
9166 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009167 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009168 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00009169 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009170 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0xBB) supported */
Stefan Tauner226037d2013-03-16 01:22:12 +00009171 .voltage = {2700, 3600},
9172 },
9173
9174 {
9175 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009176 .name = "MX25L6406E/MX25L6408E",
9177 .bustype = BUS_SPI,
9178 .manufacture_id = MACRONIX_ID,
9179 .model_id = MACRONIX_MX25L6405,
9180 .total_size = 8192,
9181 .page_size = 256,
9182 /* MX25L6406E supports SFDP */
9183 /* OTP: 06E 64B total; enter 0xB1, exit 0xC1 */
9184 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9185 .tested = TEST_OK_PREW,
9186 .probe = probe_spi_rdid,
9187 .probe_timing = TIMING_ZERO,
9188 .block_erasers =
9189 {
9190 {
9191 .eraseblocks = { {4 * 1024, 2048} },
9192 .block_erase = spi_block_erase_20,
9193 }, {
9194 .eraseblocks = { {64 * 1024, 128} },
9195 .block_erase = spi_block_erase_52,
9196 }, {
9197 .eraseblocks = { {64 * 1024, 128} },
9198 .block_erase = spi_block_erase_d8,
9199 }, {
9200 .eraseblocks = { {8 * 1024 * 1024, 1} },
9201 .block_erase = spi_block_erase_60,
9202 }, {
9203 .eraseblocks = { {8 * 1024 * 1024, 1} },
9204 .block_erase = spi_block_erase_c7,
9205 }
9206 },
9207 .printlock = spi_prettyprint_status_register_bp3_srwd,
9208 .unlock = spi_disable_blockprotect_bp3_srwd,
9209 .write = spi_chip_write_256,
9210 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read supported */
9211 .voltage = {2700, 3600},
9212 },
9213
9214 {
9215 .vendor = "Macronix",
Nico Huberb0072782017-12-06 21:02:57 +01009216 .name = "MX25L6436E/MX25L6445E/MX25L6465E/MX25L6473E/MX25L6473F",
Stefan Tauner226037d2013-03-16 01:22:12 +00009217 .bustype = BUS_SPI,
9218 .manufacture_id = MACRONIX_ID,
9219 .model_id = MACRONIX_MX25L6405,
9220 .total_size = 8192,
9221 .page_size = 256,
9222 /* supports SFDP */
9223 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9224 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9225 .tested = TEST_OK_PREW,
9226 .probe = probe_spi_rdid,
9227 .probe_timing = TIMING_ZERO,
9228 .block_erasers =
9229 {
9230 {
9231 .eraseblocks = { {4 * 1024, 2048} },
9232 .block_erase = spi_block_erase_20,
9233 }, {
9234 .eraseblocks = { {32 * 1024, 256} },
9235 .block_erase = spi_block_erase_52,
9236 }, {
9237 .eraseblocks = { {64 * 1024, 128} },
9238 .block_erase = spi_block_erase_d8,
9239 }, {
9240 .eraseblocks = { {8 * 1024 * 1024, 1} },
9241 .block_erase = spi_block_erase_60,
9242 }, {
9243 .eraseblocks = { {8 * 1024 * 1024, 1} },
9244 .block_erase = spi_block_erase_c7,
9245 }
9246 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009247 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009248 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00009249 .write = spi_chip_write_256,
9250 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9251 .voltage = {2700, 3600},
9252 },
9253
9254 {
9255 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009256 .name = "MX25L6495F",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009257 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009258 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009259 .model_id = MACRONIX_MX25L6495F,
9260 .total_size = 8192,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00009261 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009262 /* OTP: 1024B total; enter 0xB1, exit 0xC1 */
Stefan Tauner226037d2013-03-16 01:22:12 +00009263 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +00009264 .tested = TEST_OK_PREW,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00009265 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009266 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00009267 .block_erasers =
9268 {
9269 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009270 .eraseblocks = { {4 * 1024, 2048} },
Sean Nelson54596372010-01-09 05:30:14 +00009271 .block_erase = spi_block_erase_20,
9272 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009273 .eraseblocks = { {32 * 1024, 256} },
9274 .block_erase = spi_block_erase_52,
9275 }, {
Aarya Chaumal478e1792022-06-04 01:34:44 +05309276 .eraseblocks = { {64 * 1024, 128} },
9277 .block_erase = spi_block_erase_d8,
9278 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009279 .eraseblocks = { {8 * 1024 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00009280 .block_erase = spi_block_erase_60,
9281 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009282 .eraseblocks = { {8 * 1024 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00009283 .block_erase = spi_block_erase_c7,
9284 }
9285 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10009286 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009287 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009288 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009289 .voltage = {2700, 3600},
9290 },
9291
9292 {
9293 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009294 .name = "MX25L8005/MX25L8006E/MX25L8008E/MX25V8005",
Stefan Tauner5c316f92015-02-08 21:57:52 +00009295 .bustype = BUS_SPI,
9296 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009297 .model_id = MACRONIX_MX25L8005,
9298 .total_size = 1024,
9299 .page_size = 256,
9300 /* MX25L8006E, MX25L8008E support SFDP */
9301 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L8006E, MX25L8008E only) */
9302 .feature_bits = FEATURE_WRSR_WREN,
9303 .tested = TEST_OK_PREW,
9304 .probe = probe_spi_rdid,
9305 .probe_timing = TIMING_ZERO,
9306 .block_erasers =
9307 {
9308 {
9309 .eraseblocks = { {4 * 1024, 256} },
9310 .block_erase = spi_block_erase_20,
9311 }, {
9312 .eraseblocks = { {64 * 1024, 16} },
9313 .block_erase = spi_block_erase_52,
9314 }, {
9315 .eraseblocks = { {64 * 1024, 16} },
9316 .block_erase = spi_block_erase_d8,
9317 }, {
9318 .eraseblocks = { {1024 * 1024, 1} },
9319 .block_erase = spi_block_erase_60,
9320 }, {
9321 .eraseblocks = { {1024 * 1024, 1} },
9322 .block_erase = spi_block_erase_c7,
9323 },
9324 },
9325 .printlock = spi_prettyprint_status_register_bp2_srwd,
9326 .unlock = spi_disable_blockprotect,
9327 .write = spi_chip_write_256,
9328 .read = spi_chip_read, /* Fast read (0x0B) supported */
9329 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V8005 */
9330 },
9331
9332 {
9333 .vendor = "Macronix",
sibradzicf62623c2020-03-14 17:21:34 +09009334 .name = "MX25R3235F",
9335 .bustype = BUS_SPI,
9336 .manufacture_id = MACRONIX_ID,
9337 .model_id = MACRONIX_MX25R3235F,
9338 .total_size = 4096,
9339 .page_size = 256,
9340 /* OTP: 1024B total; enter 0xB1, exit 0xC1 */
9341 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9342 .tested = TEST_OK_PREW,
9343 .probe = probe_spi_rdid,
9344 .probe_timing = TIMING_ZERO,
9345 .block_erasers =
9346 {
9347 {
9348 .eraseblocks = { {4 * 1024, 1024} },
9349 .block_erase = spi_block_erase_20,
9350 }, {
sibradzicf62623c2020-03-14 17:21:34 +09009351 .eraseblocks = { {32 * 1024, 128} },
9352 .block_erase = spi_block_erase_52,
9353 }, {
Aarya Chaumal478e1792022-06-04 01:34:44 +05309354 .eraseblocks = { {64 * 1024, 64} },
9355 .block_erase = spi_block_erase_d8,
9356 }, {
sibradzicf62623c2020-03-14 17:21:34 +09009357 .eraseblocks = { {4 * 1024 * 1024, 1} },
9358 .block_erase = spi_block_erase_60,
9359 }, {
9360 .eraseblocks = { {4 * 1024 * 1024, 1} },
9361 .block_erase = spi_block_erase_c7,
9362 }
9363 },
9364 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit 6 is quad enable */
9365 .unlock = spi_disable_blockprotect_bp3_srwd,
9366 .write = spi_chip_write_256,
9367 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9368 .voltage = {1650, 3600},
9369 },
9370
9371 {
9372 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009373 .name = "MX25R6435F",
9374 .bustype = BUS_SPI,
9375 .manufacture_id = MACRONIX_ID,
9376 .model_id = MACRONIX_MX25R6435F,
9377 .total_size = 8192,
9378 .page_size = 256,
9379 /* OTP: 1024B total; enter 0xB1, exit 0xC1 */
9380 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9381 .tested = TEST_OK_PREW,
9382 .probe = probe_spi_rdid,
9383 .probe_timing = TIMING_ZERO,
9384 .block_erasers =
9385 {
9386 {
9387 .eraseblocks = { {4 * 1024, 2048} },
9388 .block_erase = spi_block_erase_20,
9389 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009390 .eraseblocks = { {32 * 1024, 256} },
9391 .block_erase = spi_block_erase_52,
9392 }, {
Aarya Chaumal478e1792022-06-04 01:34:44 +05309393 .eraseblocks = { {64 * 1024, 128} },
9394 .block_erase = spi_block_erase_d8,
9395 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009396 .eraseblocks = { {8 * 1024 * 1024, 1} },
9397 .block_erase = spi_block_erase_60,
9398 }, {
9399 .eraseblocks = { {8 * 1024 * 1024, 1} },
9400 .block_erase = spi_block_erase_c7,
9401 }
9402 },
9403 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9404 .unlock = spi_disable_blockprotect_bp3_srwd,
9405 .write = spi_chip_write_256,
9406 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9407 .voltage = {1650, 3600},
9408 },
9409
9410 {
9411 .vendor = "Macronix",
9412 .name = "MX25U12835F",
9413 .bustype = BUS_SPI,
9414 .manufacture_id = MACRONIX_ID,
9415 .model_id = MACRONIX_MX25U12835E,
Stefan Tauner5c316f92015-02-08 21:57:52 +00009416 .total_size = 16384,
9417 .page_size = 256,
9418 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
Alan Green1f9cc7d2019-07-01 11:10:45 +10009419 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner5c316f92015-02-08 21:57:52 +00009420 .tested = TEST_OK_PREW,
9421 .probe = probe_spi_rdid,
9422 .probe_timing = TIMING_ZERO,
9423 .block_erasers =
9424 {
9425 {
9426 .eraseblocks = { {4 * 1024, 4096} },
9427 .block_erase = spi_block_erase_20,
9428 }, {
9429 .eraseblocks = { {32 * 1024, 512} },
9430 .block_erase = spi_block_erase_52,
9431 }, {
9432 .eraseblocks = { {64 * 1024, 256} },
9433 .block_erase = spi_block_erase_d8,
9434 }, {
9435 .eraseblocks = { {16 * 1024 * 1024, 1} },
9436 .block_erase = spi_block_erase_60,
9437 }, {
9438 .eraseblocks = { {16 * 1024 * 1024, 1} },
9439 .block_erase = spi_block_erase_c7,
9440 }
9441 },
Angel Ponsf112e242018-09-30 20:14:17 +02009442 /* TODO: security register */
9443 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9444 .unlock = spi_disable_blockprotect_bp3_srwd,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009445 .write = spi_chip_write_256, /* Multi I/O supported */
Angel Ponsf112e242018-09-30 20:14:17 +02009446 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9447 .voltage = {1650, 2000},
9448 },
9449
9450 {
9451 .vendor = "Macronix",
Vincent Palatinf800f552013-03-15 02:03:16 +00009452 .name = "MX25U1635E",
9453 .bustype = BUS_SPI,
9454 .manufacture_id = MACRONIX_ID,
9455 .model_id = MACRONIX_MX25U1635E,
9456 .total_size = 2048,
9457 .page_size = 256,
9458 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9459 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
9460 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner5c316f92015-02-08 21:57:52 +00009461 .tested = TEST_OK_PR,
Vincent Palatinf800f552013-03-15 02:03:16 +00009462 .probe = probe_spi_rdid,
9463 .probe_timing = TIMING_ZERO,
9464 .block_erasers =
9465 {
9466 {
9467 .eraseblocks = { {4 * 1024, 512} },
9468 .block_erase = spi_block_erase_20,
9469 }, {
9470 .eraseblocks = { {32 * 1024, 64} },
9471 .block_erase = spi_block_erase_52,
9472 }, {
9473 .eraseblocks = { {64 * 1024, 32} },
9474 .block_erase = spi_block_erase_d8,
9475 }, {
9476 .eraseblocks = { {2 * 1024 * 1024, 1} },
9477 .block_erase = spi_block_erase_60,
9478 }, {
9479 .eraseblocks = { {2 * 1024 * 1024, 1} },
9480 .block_erase = spi_block_erase_c7,
9481 }
9482 },
9483 /* TODO: security register */
Stefan Tauner12f3d512014-05-27 21:27:27 +00009484 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009485 .unlock = spi_disable_blockprotect_bp3_srwd,
Vincent Palatinf800f552013-03-15 02:03:16 +00009486 .write = spi_chip_write_256,
9487 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9488 .voltage = {1650, 2000},
9489 },
9490
9491 {
9492 .vendor = "Macronix",
David Tomaschikf75d8c52019-06-20 09:49:01 -07009493 .name = "MX25U25635F",
9494 .bustype = BUS_SPI,
9495 .manufacture_id = MACRONIX_ID,
9496 .model_id = MACRONIX_MX25U25635F,
9497 .total_size = 32768,
9498 .page_size = 256,
9499 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9500 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_4BA,
Nikolai Artemiev148254b2021-03-23 17:21:10 +11009501 .tested = TEST_OK_PREW,
David Tomaschikf75d8c52019-06-20 09:49:01 -07009502 .probe = probe_spi_rdid,
9503 .probe_timing = TIMING_ZERO,
9504 .block_erasers =
9505 {
9506 {
9507 .eraseblocks = { {4 * 1024, 8192} },
9508 .block_erase = spi_block_erase_21,
9509 }, {
9510 .eraseblocks = { {4 * 1024, 8192} },
9511 .block_erase = spi_block_erase_20,
9512 }, {
9513 .eraseblocks = { {32 * 1024, 1024} },
9514 .block_erase = spi_block_erase_5c,
9515 }, {
9516 .eraseblocks = { {32 * 1024, 1024} },
9517 .block_erase = spi_block_erase_52,
9518 }, {
9519 .eraseblocks = { {64 * 1024, 512} },
9520 .block_erase = spi_block_erase_dc,
9521 }, {
9522 .eraseblocks = { {64 * 1024, 512} },
9523 .block_erase = spi_block_erase_d8,
9524 }, {
9525 .eraseblocks = { {32 * 1024 * 1024, 1} },
9526 .block_erase = spi_block_erase_60,
9527 }, {
9528 .eraseblocks = { {32 * 1024 * 1024, 1} },
9529 .block_erase = spi_block_erase_c7,
9530 }
9531 },
9532 /* TODO: security register */
9533 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9534 .unlock = spi_disable_blockprotect_bp3_srwd,
9535 .write = spi_chip_write_256, /* Multi I/O supported */
9536 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9537 .voltage = {1650, 2000},
9538 },
9539
9540 {
9541 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009542 .name = "MX25U3235E/F",
9543 .bustype = BUS_SPI,
9544 .manufacture_id = MACRONIX_ID,
9545 .model_id = MACRONIX_MX25U3235E,
9546 .total_size = 4096,
9547 .page_size = 256,
9548 /* F model supports SFDP */
9549 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9550 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
9551 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
9552 .tested = TEST_OK_PREW,
9553 .probe = probe_spi_rdid,
9554 .probe_timing = TIMING_ZERO,
9555 .block_erasers =
9556 {
9557 {
9558 .eraseblocks = { {4 * 1024, 1024} },
9559 .block_erase = spi_block_erase_20,
9560 }, {
9561 .eraseblocks = { {32 * 1024, 128} },
9562 .block_erase = spi_block_erase_52,
9563 }, {
9564 .eraseblocks = { {64 * 1024, 64} },
9565 .block_erase = spi_block_erase_d8,
9566 }, {
9567 .eraseblocks = { {4 * 1024 * 1024, 1} },
9568 .block_erase = spi_block_erase_60,
9569 }, {
9570 .eraseblocks = { {4 * 1024 * 1024, 1} },
9571 .block_erase = spi_block_erase_c7,
9572 }
9573 },
9574 /* TODO: security register */
9575 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9576 .unlock = spi_disable_blockprotect_bp3_srwd,
9577 .write = spi_chip_write_256,
9578 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9579 .voltage = {1650, 2000},
9580 },
9581
9582 {
9583 .vendor = "Macronix",
Daniel Thompsoncadd4202018-06-04 13:52:22 +01009584 .name = "MX25U51245G",
9585 .bustype = BUS_SPI,
9586 .manufacture_id = MACRONIX_ID,
9587 .model_id = MACRONIX_MX25U51245G,
9588 .total_size = 65536,
9589 .page_size = 256,
9590 /* OTP: 512B factory programmed and 512B customer programmed; enter 0xB1, exit 0xC1 */
9591 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_4BA,
9592 .tested = TEST_OK_PREW,
9593 .probe = probe_spi_rdid,
9594 .probe_timing = TIMING_ZERO,
9595 .block_erasers =
9596 {
9597 {
9598 .eraseblocks = { {4 * 1024, 16384} },
9599 .block_erase = spi_block_erase_21,
9600 }, {
9601 .eraseblocks = { {4 * 1024, 16384} },
9602 .block_erase = spi_block_erase_20,
9603 }, {
9604 .eraseblocks = { {32 * 1024, 2048} },
9605 .block_erase = spi_block_erase_5c,
9606 }, {
9607 .eraseblocks = { {32 * 1024, 2048} },
9608 .block_erase = spi_block_erase_52,
9609 }, {
9610 .eraseblocks = { {64 * 1024, 1024} },
9611 .block_erase = spi_block_erase_dc,
9612 }, {
9613 .eraseblocks = { {64 * 1024, 1024} },
9614 .block_erase = spi_block_erase_d8,
9615 }, {
9616 .eraseblocks = { {64 * 1024 * 1024, 1} },
9617 .block_erase = spi_block_erase_60,
9618 }, {
9619 .eraseblocks = { {64 * 1024 * 1024, 1} },
9620 .block_erase = spi_block_erase_c7,
9621 }
9622 },
9623 /* TODO: security register */
9624 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9625 .unlock = spi_disable_blockprotect_bp3_srwd,
9626 .write = spi_chip_write_256, /* Multi I/O supported */
9627 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9628 .voltage = {1650, 2000},
9629 },
9630
9631 {
9632 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009633 .name = "MX25U6435E/F",
Stefan Tauner40bc96f2015-01-10 09:33:14 +00009634 .bustype = BUS_SPI,
9635 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009636 .model_id = MACRONIX_MX25U6435E,
Stefan Tauner40bc96f2015-01-10 09:33:14 +00009637 .total_size = 8192,
9638 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009639 /* F model supports SFDP */
9640 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9641 /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */
9642 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
Stefan Tauner40bc96f2015-01-10 09:33:14 +00009643 .tested = TEST_OK_PREW,
9644 .probe = probe_spi_rdid,
9645 .probe_timing = TIMING_ZERO,
9646 .block_erasers =
9647 {
9648 {
9649 .eraseblocks = { {4 * 1024, 2048} },
9650 .block_erase = spi_block_erase_20,
9651 }, {
Stefan Tauner40bc96f2015-01-10 09:33:14 +00009652 .eraseblocks = { {32 * 1024, 256} },
9653 .block_erase = spi_block_erase_52,
9654 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009655 .eraseblocks = { {64 * 1024, 128} },
9656 .block_erase = spi_block_erase_d8,
9657 }, {
Stefan Tauner40bc96f2015-01-10 09:33:14 +00009658 .eraseblocks = { {8 * 1024 * 1024, 1} },
9659 .block_erase = spi_block_erase_60,
9660 }, {
9661 .eraseblocks = { {8 * 1024 * 1024, 1} },
9662 .block_erase = spi_block_erase_c7,
9663 }
9664 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10009665 /* TODO: security register */
Nathan Rennie-Waldock5a7f9422018-08-10 15:35:23 +01009666 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9667 .unlock = spi_disable_blockprotect_bp3_srwd,
9668 .write = spi_chip_write_256,
9669 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Alan Green1f9cc7d2019-07-01 11:10:45 +10009670 .voltage = {1650, 2000},
9671 },
9672
9673 {
9674 .vendor = "Macronix",
9675 .name = "MX25U8032E",
9676 .bustype = BUS_SPI,
9677 .manufacture_id = MACRONIX_ID,
9678 .model_id = MACRONIX_MX25U8032E,
9679 .total_size = 1024,
9680 .page_size = 256,
9681 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
9682 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
9683 .tested = TEST_OK_PREW,
9684 .probe = probe_spi_rdid,
9685 .probe_timing = TIMING_ZERO,
9686 .block_erasers =
9687 {
9688 {
9689 .eraseblocks = { {4 * 1024, 256} },
9690 .block_erase = spi_block_erase_20,
9691 }, {
9692 .eraseblocks = { {32 * 1024, 32} },
9693 .block_erase = spi_block_erase_52,
9694 }, {
9695 .eraseblocks = { {64 * 1024, 16} },
9696 .block_erase = spi_block_erase_d8,
9697 }, {
9698 .eraseblocks = { {1024 * 1024, 1} },
9699 .block_erase = spi_block_erase_60,
9700 }, {
9701 .eraseblocks = { {1024 * 1024, 1} },
9702 .block_erase = spi_block_erase_c7,
9703 }
9704 },
9705 /* TODO: security register */
9706 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
9707 .unlock = spi_disable_blockprotect_bp3_srwd,
9708 .write = spi_chip_write_256,
9709 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
9710 .voltage = {1650, 2000},
Nathan Rennie-Waldock5a7f9422018-08-10 15:35:23 +01009711 },
9712
9713 {
9714 .vendor = "Macronix",
Mark Panajotovic502a9132009-08-24 01:42:24 +00009715 .name = "MX29F001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009716 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009717 .manufacture_id = MACRONIX_ID,
9718 .model_id = MACRONIX_MX29F001B,
Mark Panajotovic502a9132009-08-24 01:42:24 +00009719 .total_size = 128,
9720 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009721 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9722 .tested = TEST_UNTESTED,
9723 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009724 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00009725 .block_erasers =
9726 {
9727 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00009728 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00009729 {8 * 1024, 1},
9730 {4 * 1024, 2},
9731 {8 * 1024, 2},
9732 {32 * 1024, 1},
9733 {64 * 1024, 1},
9734 },
Sean Nelson35727f72010-01-28 23:55:12 +00009735 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009736 }, {
9737 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009738 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009739 }
9740 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009741 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00009742 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009743 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00009744 },
9745
9746 {
9747 .vendor = "Macronix",
9748 .name = "MX29F001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009749 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009750 .manufacture_id = MACRONIX_ID,
9751 .model_id = MACRONIX_MX29F001T,
Mark Panajotovic502a9132009-08-24 01:42:24 +00009752 .total_size = 128,
9753 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009754 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stefan Tauner74c6ec62011-05-18 01:31:46 +00009755 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00009756 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009757 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00009758 .block_erasers =
9759 {
9760 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00009761 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +00009762 {64 * 1024, 1},
9763 {32 * 1024, 1},
9764 {8 * 1024, 2},
9765 {4 * 1024, 2},
9766 {8 * 1024, 1},
9767 },
Sean Nelson35727f72010-01-28 23:55:12 +00009768 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009769 }, {
9770 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009771 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +00009772 }
9773 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009774 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +00009775 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009776 .voltage = {4500, 5500},
Mark Panajotovic502a9132009-08-24 01:42:24 +00009777 },
9778
9779 {
9780 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00009781 .name = "MX29F002(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009782 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009783 .manufacture_id = MACRONIX_ID,
9784 .model_id = MACRONIX_MX29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009785 .total_size = 256,
9786 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009787 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009788 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +00009789 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009790 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009791 .block_erasers =
9792 {
9793 {
9794 .eraseblocks = {
9795 {16 * 1024, 1},
9796 {8 * 1024, 2},
9797 {32 * 1024, 1},
9798 {64 * 1024, 3},
9799 },
Sean Nelson35727f72010-01-28 23:55:12 +00009800 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009801 }, {
9802 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009803 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009804 },
9805 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009806 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009807 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009808 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009809 },
9810
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009811 {
9812 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +00009813 .name = "MX29F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009814 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009815 .manufacture_id = MACRONIX_ID,
9816 .model_id = MACRONIX_MX29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009817 .total_size = 256,
9818 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00009819 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00009820 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +00009821 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00009822 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009823 .block_erasers =
9824 {
9825 {
9826 .eraseblocks = {
9827 {64 * 1024, 3},
9828 {32 * 1024, 1},
9829 {8 * 1024, 2},
9830 {16 * 1024, 1},
9831 },
Sean Nelson35727f72010-01-28 23:55:12 +00009832 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009833 }, {
9834 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00009835 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009836 },
9837 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00009838 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00009839 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009840 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +00009841 },
9842
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009843 {
9844 .vendor = "Macronix",
Daniele Forsi6a18a932014-07-13 14:53:45 +00009845 .name = "MX29F022(N)B",
9846 .bustype = BUS_PARALLEL,
9847 .manufacture_id = MACRONIX_ID,
9848 .model_id = MACRONIX_MX29F022B,
9849 .total_size = 256,
9850 .page_size = 0, /* unused */
9851 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9852 .tested = TEST_UNTESTED,
9853 .probe = probe_jedec,
9854 .probe_timing = TIMING_ZERO,
9855 .block_erasers =
9856 {
9857 {
9858 .eraseblocks = {
9859 {16 * 1024, 1},
9860 {8 * 1024, 2},
9861 {32 * 1024, 1},
9862 {64 * 1024, 3},
9863 },
9864 .block_erase = erase_sector_jedec,
9865 }, {
9866 .eraseblocks = { {256 * 1024, 1} },
9867 .block_erase = erase_chip_block_jedec,
9868 }
9869 },
9870 .write = write_jedec_1,
9871 .read = read_memmapped,
9872 .voltage = {4500, 5500},
9873 },
9874
9875 {
9876 .vendor = "Macronix",
9877 .name = "MX29F022(N)T",
9878 .bustype = BUS_PARALLEL,
9879 .manufacture_id = MACRONIX_ID,
9880 .model_id = MACRONIX_MX29F022T,
9881 .total_size = 256,
9882 .page_size = 0, /* unused */
9883 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9884 .tested = TEST_OK_PREW,
9885 .probe = probe_jedec,
9886 .probe_timing = TIMING_ZERO,
9887 .block_erasers =
9888 {
9889 {
9890 .eraseblocks = {
9891 {64 * 1024, 3},
9892 {32 * 1024, 1},
9893 {8 * 1024, 2},
9894 {16 * 1024, 1},
9895 },
9896 .block_erase = erase_sector_jedec,
9897 }, {
9898 .eraseblocks = { {256 * 1024, 1} },
9899 .block_erase = erase_chip_block_jedec,
9900 }
9901 },
9902 .write = write_jedec_1,
9903 .read = read_memmapped,
9904 .voltage = {4500, 5500},
9905 },
9906
9907 {
9908 .vendor = "Macronix",
Joshua Roysf1324e02010-09-16 00:51:51 +00009909 .name = "MX29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009910 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00009911 .manufacture_id = MACRONIX_ID,
9912 .model_id = MACRONIX_MX29F040,
9913 .total_size = 512,
9914 .page_size = 64 * 1024,
9915 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9916 .tested = TEST_UNTESTED,
9917 .probe = probe_jedec,
9918 .probe_timing = TIMING_ZERO,
9919 .block_erasers =
9920 {
9921 {
9922 .eraseblocks = { {64 * 1024, 8} },
9923 .block_erase = erase_sector_jedec,
9924 }, {
9925 .eraseblocks = { {512 * 1024, 1} },
9926 .block_erase = erase_chip_block_jedec,
9927 },
9928 },
9929 .write = write_jedec_1,
9930 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009931 .voltage = {4500, 5500},
Joshua Roysf1324e02010-09-16 00:51:51 +00009932 },
9933
9934 {
9935 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009936 .name = "MX29GL128F",
9937 .bustype = BUS_PARALLEL,
9938 .manufacture_id = MACRONIX_ID,
9939 .model_id = MACRONIX_MX29GL128F,
9940 .total_size = 16384,
9941 .page_size = 128 * 1024, /* actual page size is 16 */
9942 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9943 .tested = TEST_UNTESTED,
9944 .probe = probe_jedec_29gl,
9945 .probe_timing = TIMING_ZERO,
9946 .block_erasers =
9947 {
9948 {
9949 .eraseblocks = { {128 * 1024, 128} },
9950 .block_erase = erase_sector_jedec,
9951 }, {
9952 .eraseblocks = { {16 * 1024 * 1024, 1} },
9953 .block_erase = erase_chip_block_jedec,
9954 },
9955 },
9956 .write = write_jedec_1,
9957 .read = read_memmapped,
9958 .voltage = {2700, 3600},
9959 },
9960
9961 {
9962 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00009963 .name = "MX29GL320EB",
9964 .bustype = BUS_PARALLEL,
9965 .manufacture_id = MACRONIX_ID,
9966 .model_id = MACRONIX_MX29GL320EB,
9967 .total_size = 4096,
9968 .page_size = 128 * 1024, /* actual page size is 16 */
9969 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
9970 .tested = TEST_UNTESTED,
9971 .probe = probe_jedec_29gl,
9972 .probe_timing = TIMING_ZERO,
9973 .block_erasers =
9974 {
9975 {
9976 .eraseblocks = {
9977 {8 * 1024, 8},
9978 {64 * 1024, 63},
9979 },
9980 .block_erase = erase_sector_jedec,
9981 }, {
9982 .eraseblocks = { {4 * 1024 * 1024, 1} },
9983 .block_erase = erase_chip_block_jedec,
9984 },
9985 },
9986 .write = write_jedec_1,
9987 .read = read_memmapped,
9988 .voltage = {2700, 3600},
9989 },
9990
9991 {
9992 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009993 .name = "MX29GL320EH/L",
9994 .bustype = BUS_PARALLEL,
9995 .manufacture_id = MACRONIX_ID,
9996 .model_id = MACRONIX_MX29GL320EHL,
9997 .total_size = 4096,
9998 .page_size = 128 * 1024, /* actual page size is 16 */
9999 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
10000 .tested = TEST_UNTESTED,
10001 .probe = probe_jedec_29gl,
10002 .probe_timing = TIMING_ZERO,
10003 .block_erasers =
10004 {
10005 {
10006 .eraseblocks = { {64 * 1024, 64} },
10007 .block_erase = erase_sector_jedec,
10008 }, {
10009 .eraseblocks = { {4 * 1024 * 1024, 1} },
10010 .block_erase = erase_chip_block_jedec,
10011 },
10012 },
10013 .write = write_jedec_1,
10014 .read = read_memmapped,
10015 .voltage = {2700, 3600},
10016 },
10017
10018 {
10019 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000010020 .name = "MX29GL320ET",
10021 .bustype = BUS_PARALLEL,
10022 .manufacture_id = MACRONIX_ID,
10023 .model_id = MACRONIX_MX29GL320ET,
10024 .total_size = 4096,
10025 .page_size = 128 * 1024, /* actual page size is 16 */
10026 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
10027 .tested = TEST_UNTESTED,
10028 .probe = probe_jedec_29gl,
10029 .probe_timing = TIMING_ZERO,
10030 .block_erasers =
10031 {
10032 {
10033 .eraseblocks = {
10034 {64 * 1024, 63},
10035 {8 * 1024, 8},
10036 },
10037 .block_erase = erase_sector_jedec,
10038 }, {
10039 .eraseblocks = { {4 * 1024 * 1024, 1} },
10040 .block_erase = erase_chip_block_jedec,
10041 },
10042 },
10043 .write = write_jedec_1,
10044 .read = read_memmapped,
10045 .voltage = {2700, 3600},
10046 },
10047
10048 {
10049 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000010050 .name = "MX29GL640EB",
10051 .bustype = BUS_PARALLEL,
10052 .manufacture_id = MACRONIX_ID,
10053 .model_id = MACRONIX_MX29GL640EB,
10054 .total_size = 8192,
10055 .page_size = 128 * 1024, /* actual page size is 16 */
10056 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
10057 .tested = TEST_UNTESTED,
10058 .probe = probe_jedec_29gl,
10059 .probe_timing = TIMING_ZERO,
10060 .block_erasers =
10061 {
10062 {
10063 .eraseblocks = {
10064 {8 * 1024, 8},
10065 {64 * 1024, 127},
10066 },
10067 .block_erase = erase_sector_jedec,
10068 }, {
10069 .eraseblocks = { {8 * 1024 * 1024, 1} },
10070 .block_erase = erase_chip_block_jedec,
10071 },
10072 },
10073 .write = write_jedec_1,
10074 .read = read_memmapped,
10075 .voltage = {2700, 3600},
10076 },
10077
10078 {
10079 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010080 .name = "MX29GL640EH/L",
10081 .bustype = BUS_PARALLEL,
10082 .manufacture_id = MACRONIX_ID,
10083 .model_id = MACRONIX_MX29GL640EHL,
10084 .total_size = 8192,
10085 .page_size = 128 * 1024, /* actual page size is 16 */
10086 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
10087 .tested = TEST_UNTESTED,
10088 .probe = probe_jedec_29gl,
10089 .probe_timing = TIMING_ZERO,
10090 .block_erasers =
10091 {
10092 {
10093 .eraseblocks = { {64 * 1024, 128} },
10094 .block_erase = erase_sector_jedec,
10095 }, {
10096 .eraseblocks = { {8 * 1024 * 1024, 1} },
10097 .block_erase = erase_chip_block_jedec,
10098 },
10099 },
10100 .write = write_jedec_1,
10101 .read = read_memmapped,
10102 .voltage = {2700, 3600},
10103 },
10104
10105 {
10106 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000010107 .name = "MX29GL640ET",
10108 .bustype = BUS_PARALLEL,
10109 .manufacture_id = MACRONIX_ID,
10110 .model_id = MACRONIX_MX29GL640ET,
10111 .total_size = 8192,
10112 .page_size = 128 * 1024, /* actual page size is 16 */
10113 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
10114 .tested = TEST_UNTESTED,
10115 .probe = probe_jedec_29gl,
10116 .probe_timing = TIMING_ZERO,
10117 .block_erasers =
10118 {
10119 {
10120 .eraseblocks = {
10121 {64 * 1024, 127},
10122 {8 * 1024, 8},
10123 },
10124 .block_erase = erase_sector_jedec,
10125 }, {
10126 .eraseblocks = { {8 * 1024 * 1024, 1} },
10127 .block_erase = erase_chip_block_jedec,
10128 },
10129 },
10130 .write = write_jedec_1,
10131 .read = read_memmapped,
10132 .voltage = {2700, 3600},
10133 },
10134
10135 {
10136 .vendor = "Macronix",
Carl-Daniel Hailfinger350a0c32009-07-24 13:59:27 +000010137 .name = "MX29LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010138 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010139 .manufacture_id = MACRONIX_ID,
10140 .model_id = MACRONIX_MX29LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010141 .total_size = 512,
10142 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010143 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
10144 .tested = TEST_UNTESTED,
10145 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +000010146 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +000010147 .block_erasers =
10148 {
10149 {
Stefan Tauner6697f712014-08-06 15:09:15 +000010150 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +000010151 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +000010152 }, {
10153 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000010154 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +000010155 },
10156 },
Michael Karcher1c296ca2009-11-27 17:49:42 +000010157 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010158 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010159 .voltage = {2700, 3600},
Carl-Daniel Hailfinger7de86392008-12-10 10:32:05 +000010160 },
10161
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010162 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010163 .vendor = "Macronix",
Hemanth Guruva Reddya136d422019-07-11 11:08:27 +020010164 .name = "MX66L51235F/MX25L51245G",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010165 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010166 .manufacture_id = MACRONIX_ID,
10167 .model_id = MACRONIX_MX66L51235F,
10168 .total_size = 65536,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010169 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010170 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
10171 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010172 .tested = TEST_OK_PREW,
10173 .probe = probe_spi_rdid,
10174 .probe_timing = TIMING_ZERO,
10175 .block_erasers =
10176 {
10177 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010178 .eraseblocks = { {4 * 1024, 16384} },
10179 .block_erase = spi_block_erase_21,
10180 }, {
10181 .eraseblocks = { {4 * 1024, 16384} },
10182 .block_erase = spi_block_erase_20,
10183 }, {
10184 .eraseblocks = { {32 * 1024, 2048} },
10185 .block_erase = spi_block_erase_5c,
10186 }, {
10187 .eraseblocks = { {32 * 1024, 2048} },
10188 .block_erase = spi_block_erase_52,
10189 }, {
10190 .eraseblocks = { {64 * 1024, 1024} },
10191 .block_erase = spi_block_erase_dc,
10192 }, {
10193 .eraseblocks = { {64 * 1024, 1024} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010194 .block_erase = spi_block_erase_d8,
10195 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010196 .eraseblocks = { {64 * 1024 * 1024, 1} },
10197 .block_erase = spi_block_erase_60,
10198 }, {
10199 .eraseblocks = { {64 * 1024 * 1024, 1} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010200 .block_erase = spi_block_erase_c7,
10201 }
10202 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100010203 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
10204 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010205 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010206 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010207 .read = spi_chip_read, /* Fast read (0x0B) supported */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010208 .voltage = {2700, 3600},
10209 },
10210
Patrick Rudolph3ba83152021-06-08 10:52:19 +020010211 {
10212 .vendor = "Macronix",
10213 .name = "MX66L1G45G",
10214 .bustype = BUS_SPI,
10215 .manufacture_id = MACRONIX_ID,
10216 .model_id = MACRONIX_MX66L1G45G,
10217 .total_size = 131072,
10218 .page_size = 256,
10219 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
10220 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
10221 .tested = TEST_OK_PREW,
10222 .probe = probe_spi_rdid,
10223 .probe_timing = TIMING_ZERO,
10224 .block_erasers =
10225 {
10226 {
10227 .eraseblocks = { {4 * 1024, 32768} },
10228 .block_erase = spi_block_erase_21,
10229 }, {
10230 .eraseblocks = { {4 * 1024, 32768} },
10231 .block_erase = spi_block_erase_20,
10232 }, {
10233 .eraseblocks = { {32 * 1024, 4096} },
10234 .block_erase = spi_block_erase_5c,
10235 }, {
10236 .eraseblocks = { {32 * 1024, 4096} },
10237 .block_erase = spi_block_erase_52,
10238 }, {
10239 .eraseblocks = { {64 * 1024, 2048} },
10240 .block_erase = spi_block_erase_dc,
10241 }, {
10242 .eraseblocks = { {64 * 1024, 2048} },
10243 .block_erase = spi_block_erase_d8,
10244 }, {
10245 .eraseblocks = { {128 * 1024 * 1024, 1} },
10246 .block_erase = spi_block_erase_60,
10247 }, {
10248 .eraseblocks = { {128 * 1024 * 1024, 1} },
10249 .block_erase = spi_block_erase_c7,
10250 }
10251 },
10252 /* TODO: security register and SBLK/SBULK, configuration register */
10253 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
10254 .unlock = spi_disable_blockprotect_bp3_srwd,
10255 .write = spi_chip_write_256,
10256 .read = spi_chip_read, /* Fast read (0x0B) supported */
10257 .voltage = {2700, 3600},
10258 },
10259
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010260 /* The ST M25P05 is a bit of a problem. It has the same ID as the
10261 * ST M25P05-A in RES mode, but supports only 128 byte writes instead
10262 * of 256 byte writes. We rely heavily on the fact that probe_spi_res1
10263 * only is successful if RDID does not work.
10264 */
10265 {
10266 .vendor = "Micron/Numonyx/ST",
10267 .name = "M25P05",
10268 .bustype = BUS_SPI,
10269 .manufacture_id = 0, /* Not used. */
10270 .model_id = ST_M25P05_RES,
10271 .total_size = 64,
10272 .page_size = 256,
10273 .feature_bits = FEATURE_WRSR_WREN,
10274 .tested = TEST_UNTESTED,
10275 .probe = probe_spi_res1,
10276 .probe_timing = TIMING_ZERO,
10277 .block_erasers =
10278 {
10279 {
10280 .eraseblocks = { {32 * 1024, 2} },
10281 .block_erase = spi_block_erase_d8,
10282 }, {
10283 .eraseblocks = { {64 * 1024, 1} },
10284 .block_erase = spi_block_erase_c7,
10285 }
10286 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010287 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010288 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010289 .write = spi_chip_write_1, /* 128 */
10290 .read = spi_chip_read,
10291 .voltage = {2700, 3600},
10292 },
10293
10294 {
10295 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010296 .name = "M25P05-A",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010297 .bustype = BUS_SPI,
10298 .manufacture_id = ST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010299 .model_id = ST_M25P05A,
10300 .total_size = 64,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010301 .page_size = 256,
10302 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000010303 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010304 .probe = probe_spi_rdid,
10305 .probe_timing = TIMING_ZERO,
10306 .block_erasers =
10307 {
10308 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010309 .eraseblocks = { {32 * 1024, 2} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010310 .block_erase = spi_block_erase_d8,
10311 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010312 .eraseblocks = { {64 * 1024, 1} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010313 .block_erase = spi_block_erase_c7,
10314 }
10315 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010316 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010317 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010318 .write = spi_chip_write_256,
10319 .read = spi_chip_read,
10320 .voltage = {2700, 3600},
10321 },
10322
10323 /* The ST M25P10 has the same problem as the M25P05. */
10324 {
10325 .vendor = "Micron/Numonyx/ST",
10326 .name = "M25P10",
10327 .bustype = BUS_SPI,
10328 .manufacture_id = 0, /* Not used. */
10329 .model_id = ST_M25P10_RES,
10330 .total_size = 128,
10331 .page_size = 256,
10332 .feature_bits = FEATURE_WRSR_WREN,
10333 .tested = TEST_UNTESTED,
10334 .probe = probe_spi_res1,
10335 .probe_timing = TIMING_ZERO,
10336 .block_erasers =
10337 {
10338 {
10339 .eraseblocks = { {32 * 1024, 4} },
10340 .block_erase = spi_block_erase_d8,
10341 }, {
10342 .eraseblocks = { {128 * 1024, 1} },
10343 .block_erase = spi_block_erase_c7,
10344 }
10345 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010346 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010347 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010348 .write = spi_chip_write_1, /* 128 */
10349 .read = spi_chip_read,
10350 .voltage = {2700, 3600},
10351 },
10352
10353 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010354 .vendor = "Micron/Numonyx/ST",
10355 .name = "M25P10-A",
10356 .bustype = BUS_SPI,
10357 .manufacture_id = ST_ID,
10358 .model_id = ST_M25P10A,
10359 .total_size = 128,
10360 .page_size = 256,
10361 .feature_bits = FEATURE_WRSR_WREN,
10362 .tested = TEST_OK_PREW,
10363 .probe = probe_spi_rdid,
10364 .probe_timing = TIMING_ZERO,
10365 .block_erasers =
10366 {
10367 {
10368 .eraseblocks = { {32 * 1024, 4} },
10369 .block_erase = spi_block_erase_d8,
10370 }, {
10371 .eraseblocks = { {128 * 1024, 1} },
10372 .block_erase = spi_block_erase_c7,
10373 }
10374 },
10375 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
10376 .unlock = spi_disable_blockprotect_bp3_srwd,
10377 .write = spi_chip_write_256,
10378 .read = spi_chip_read,
10379 .voltage = {2700, 3600},
10380 },
10381
10382 {
10383 .vendor = "Micron/Numonyx/ST",
10384 .name = "M25P128",
10385 .bustype = BUS_SPI,
10386 .manufacture_id = ST_ID,
10387 .model_id = ST_M25P128,
10388 .total_size = 16384,
10389 .page_size = 256,
10390 .feature_bits = FEATURE_WRSR_WREN,
10391 .tested = TEST_OK_PREW,
10392 .probe = probe_spi_rdid,
10393 .probe_timing = TIMING_ZERO,
10394 .block_erasers =
10395 {
10396 {
10397 .eraseblocks = { {256 * 1024, 64} },
10398 .block_erase = spi_block_erase_d8,
10399 }, {
10400 .eraseblocks = { {16 * 1024 * 1024, 1} },
10401 .block_erase = spi_block_erase_c7,
10402 }
10403 },
10404 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
10405 .unlock = spi_disable_blockprotect_bp3_srwd,
10406 .write = spi_chip_write_256,
10407 .read = spi_chip_read,
10408 .voltage = {2700, 3600},
10409 },
10410
10411 {
10412 .vendor = "Micron/Numonyx/ST",
10413 .name = "M25P16",
10414 .bustype = BUS_SPI,
10415 .manufacture_id = ST_ID,
10416 .model_id = ST_M25P16,
10417 .total_size = 2048,
10418 .page_size = 256,
10419 .feature_bits = FEATURE_WRSR_WREN,
10420 .tested = TEST_OK_PREW,
10421 .probe = probe_spi_rdid,
10422 .probe_timing = TIMING_ZERO,
10423 .block_erasers =
10424 {
10425 {
10426 .eraseblocks = { {64 * 1024, 32} },
10427 .block_erase = spi_block_erase_d8,
10428 }, {
10429 .eraseblocks = { {2 * 1024 * 1024, 1} },
10430 .block_erase = spi_block_erase_c7,
10431 }
10432 },
10433 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
10434 .unlock = spi_disable_blockprotect_bp3_srwd,
10435 .write = spi_chip_write_256,
10436 .read = spi_chip_read,
10437 .voltage = {2700, 3600},
10438 },
10439
10440 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010441 .vendor = "Micron/Numonyx/ST", /* Numonyx */
10442 .name = "M25P20",
10443 .bustype = BUS_SPI,
10444 .manufacture_id = ST_ID,
10445 .model_id = ST_M25P20,
10446 .total_size = 256,
10447 .page_size = 256,
10448 .feature_bits = FEATURE_WRSR_WREN,
10449 .tested = TEST_UNTESTED,
10450 .probe = probe_spi_rdid,
10451 .probe_timing = TIMING_ZERO,
10452 .block_erasers =
10453 {
10454 {
10455 .eraseblocks = { {64 * 1024, 4} },
10456 .block_erase = spi_block_erase_d8,
10457 }, {
10458 .eraseblocks = { {256 * 1024, 1} },
10459 .block_erase = spi_block_erase_c7,
10460 }
10461 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010462 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010463 .unlock = spi_disable_blockprotect,
10464 .write = spi_chip_write_256,
10465 .read = spi_chip_read, /* Fast read (0x0B) supported */
10466 .voltage = {2700, 3600},
10467 },
10468
10469 {
10470 .vendor = "Micron/Numonyx/ST",
10471 .name = "M25P20-old",
10472 .bustype = BUS_SPI,
10473 .manufacture_id = 0, /* Not used. */
10474 .model_id = ST_M25P20_RES,
10475 .total_size = 256,
10476 .page_size = 256,
10477 .feature_bits = FEATURE_WRSR_WREN,
10478 .tested = TEST_OK_PREW,
10479 .probe = probe_spi_res1,
10480 .probe_timing = TIMING_ZERO,
10481 .block_erasers =
10482 {
10483 {
10484 .eraseblocks = { {64 * 1024, 4} },
10485 .block_erase = spi_block_erase_d8,
10486 }, {
10487 .eraseblocks = { {256 * 1024, 1} },
10488 .block_erase = spi_block_erase_c7,
10489 }
10490 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010491 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010492 .unlock = spi_disable_blockprotect,
10493 .write = spi_chip_write_256,
10494 .read = spi_chip_read, /* Fast read (0x0B) supported */
10495 .voltage = {2700, 3600},
10496 },
10497
10498 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010499 .vendor = "Micron/Numonyx/ST",
10500 .name = "M25P32",
10501 .bustype = BUS_SPI,
10502 .manufacture_id = ST_ID,
10503 .model_id = ST_M25P32,
10504 .total_size = 4096,
10505 .page_size = 256,
10506 .feature_bits = FEATURE_WRSR_WREN,
10507 .tested = TEST_OK_PREW,
10508 .probe = probe_spi_rdid,
10509 .probe_timing = TIMING_ZERO,
10510 .block_erasers =
10511 {
10512 {
10513 .eraseblocks = { {64 * 1024, 64} },
10514 .block_erase = spi_block_erase_d8,
10515 }, {
10516 .eraseblocks = { {4 * 1024 * 1024, 1} },
10517 .block_erase = spi_block_erase_c7,
10518 }
10519 },
10520 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
10521 .unlock = spi_disable_blockprotect_bp3_srwd,
10522 .write = spi_chip_write_256,
10523 .read = spi_chip_read,
10524 .voltage = {2700, 3600},
10525 },
10526
10527 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010528 .vendor = "Micron/Numonyx/ST", /* Numonyx */
10529 .name = "M25P40",
10530 .bustype = BUS_SPI,
10531 .manufacture_id = ST_ID,
10532 .model_id = ST_M25P40,
10533 .total_size = 512,
10534 .page_size = 256,
10535 .feature_bits = FEATURE_WRSR_WREN,
10536 .tested = TEST_OK_PREW,
10537 .probe = probe_spi_rdid,
10538 .probe_timing = TIMING_ZERO,
10539 .block_erasers =
10540 {
10541 {
10542 .eraseblocks = { {64 * 1024, 8} },
10543 .block_erase = spi_block_erase_d8,
10544 }, {
10545 .eraseblocks = { {512 * 1024, 1} },
10546 .block_erase = spi_block_erase_c7,
10547 }
10548 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010549 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010550 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010551 .write = spi_chip_write_256,
10552 .read = spi_chip_read,
10553 .voltage = {2700, 3600},
10554 },
10555
10556 {
10557 .vendor = "Micron/Numonyx/ST",
10558 .name = "M25P40-old",
10559 .bustype = BUS_SPI,
10560 .manufacture_id = 0, /* Not used. */
10561 .model_id = ST_M25P40_RES,
10562 .total_size = 512,
10563 .page_size = 256,
10564 .feature_bits = FEATURE_WRSR_WREN,
10565 .tested = TEST_UNTESTED,
10566 .probe = probe_spi_res1,
10567 .probe_timing = TIMING_ZERO,
10568 .block_erasers =
10569 {
10570 {
10571 .eraseblocks = { {64 * 1024, 8} },
10572 .block_erase = spi_block_erase_d8,
10573 }, {
10574 .eraseblocks = { {512 * 1024, 1} },
10575 .block_erase = spi_block_erase_c7,
10576 }
10577 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010578 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010579 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010580 .write = spi_chip_write_256,
10581 .read = spi_chip_read,
10582 },
10583
10584 {
10585 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010586 .name = "M25P64",
10587 .bustype = BUS_SPI,
10588 .manufacture_id = ST_ID,
10589 .model_id = ST_M25P64,
10590 .total_size = 8192,
10591 .page_size = 256,
10592 .feature_bits = FEATURE_WRSR_WREN,
10593 .tested = TEST_OK_PREW,
10594 .probe = probe_spi_rdid,
10595 .probe_timing = TIMING_ZERO,
10596 .block_erasers =
10597 {
10598 {
10599 .eraseblocks = { {64 * 1024, 128} },
10600 .block_erase = spi_block_erase_d8,
10601 }, {
10602 .eraseblocks = { {8 * 1024 * 1024, 1} },
10603 .block_erase = spi_block_erase_c7,
10604 }
10605 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010606 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010607 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010608 .write = spi_chip_write_256,
10609 .read = spi_chip_read,
10610 .voltage = {2700, 3600},
10611 },
10612
10613 {
10614 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010615 .name = "M25P80",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010616 .bustype = BUS_SPI,
10617 .manufacture_id = ST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010618 .model_id = ST_M25P80,
10619 .total_size = 1024,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010620 .page_size = 256,
10621 .feature_bits = FEATURE_WRSR_WREN,
10622 .tested = TEST_OK_PREW,
10623 .probe = probe_spi_rdid,
10624 .probe_timing = TIMING_ZERO,
10625 .block_erasers =
10626 {
10627 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010628 .eraseblocks = { {64 * 1024, 16} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010629 .block_erase = spi_block_erase_d8,
10630 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010631 .eraseblocks = { {1024 * 1024, 1} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010632 .block_erase = spi_block_erase_c7,
10633 }
10634 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010635 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010636 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010637 .write = spi_chip_write_256,
10638 .read = spi_chip_read,
10639 .voltage = {2700, 3600},
10640 },
10641
10642 {
10643 .vendor = "Micron/Numonyx/ST",
10644 .name = "M25PE10",
10645 .bustype = BUS_SPI,
10646 .manufacture_id = ST_ID,
10647 .model_id = ST_M25PE10,
10648 .total_size = 128,
10649 .page_size = 256,
10650 .feature_bits = FEATURE_WRSR_WREN,
10651 .tested = TEST_UNTESTED,
10652 .probe = probe_spi_rdid,
10653 .probe_timing = TIMING_ZERO,
10654 .block_erasers =
10655 {
10656 {
10657 .eraseblocks = { {4 * 1024, 32} },
10658 .block_erase = spi_block_erase_20,
10659 }, {
10660 .eraseblocks = { {64 * 1024, 2} },
10661 .block_erase = spi_block_erase_d8,
10662 }, {
10663 .eraseblocks = { {128 * 1024, 1} },
10664 .block_erase = spi_block_erase_c7,
10665 }
10666 },
10667 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10668 .unlock = spi_disable_blockprotect,
10669 .write = spi_chip_write_256,
10670 .read = spi_chip_read,
10671 .voltage = {2700, 3600},
10672 },
10673
10674 {
10675 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010676 .name = "M25PE16",
10677 .bustype = BUS_SPI,
10678 .manufacture_id = ST_ID,
10679 .model_id = ST_M25PE16,
10680 .total_size = 2048,
10681 .page_size = 256,
10682 .feature_bits = FEATURE_WRSR_WREN,
10683 .tested = TEST_UNTESTED,
10684 .probe = probe_spi_rdid,
10685 .probe_timing = TIMING_ZERO,
10686 .block_erasers =
10687 {
10688 {
10689 .eraseblocks = { {4 * 1024, 512} },
10690 .block_erase = spi_block_erase_20,
10691 }, {
10692 .eraseblocks = { {64 * 1024, 32} },
10693 .block_erase = spi_block_erase_d8,
10694 }, {
10695 .eraseblocks = { {2 * 1024 * 1024, 1} },
10696 .block_erase = spi_block_erase_c7,
10697 }
10698 },
10699 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10700 .unlock = spi_disable_blockprotect,
10701 .write = spi_chip_write_256,
10702 .read = spi_chip_read,
10703 .voltage = {2700, 3600},
10704 },
10705
10706 {
10707 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010708 .name = "M25PE20",
10709 .bustype = BUS_SPI,
10710 .manufacture_id = ST_ID,
10711 .model_id = ST_M25PE20,
10712 .total_size = 256,
10713 .page_size = 256,
10714 .feature_bits = FEATURE_WRSR_WREN,
10715 .tested = TEST_UNTESTED,
10716 .probe = probe_spi_rdid,
10717 .probe_timing = TIMING_ZERO,
10718 .block_erasers =
10719 {
10720 {
10721 .eraseblocks = { {4 * 1024, 64} },
10722 .block_erase = spi_block_erase_20,
10723 }, {
10724 .eraseblocks = { {64 * 1024, 4} },
10725 .block_erase = spi_block_erase_d8,
10726 }, {
10727 .eraseblocks = { {256 * 1024, 1} },
10728 .block_erase = spi_block_erase_c7,
10729 }
10730 },
10731 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10732 .unlock = spi_disable_blockprotect,
10733 .write = spi_chip_write_256,
10734 .read = spi_chip_read,
10735 .voltage = {2700, 3600},
10736 },
10737
10738 {
10739 .vendor = "Micron/Numonyx/ST",
10740 .name = "M25PE40",
10741 .bustype = BUS_SPI,
10742 .manufacture_id = ST_ID,
10743 .model_id = ST_M25PE40,
10744 .total_size = 512,
10745 .page_size = 256,
10746 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000010747 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010748 .probe = probe_spi_rdid,
10749 .probe_timing = TIMING_ZERO,
10750 .block_erasers =
10751 {
10752 {
10753 .eraseblocks = { {4 * 1024, 128} },
10754 .block_erase = spi_block_erase_20,
10755 }, {
10756 .eraseblocks = { {64 * 1024, 8} },
10757 .block_erase = spi_block_erase_d8,
10758 }, {
10759 .eraseblocks = { {512 * 1024, 1} },
10760 .block_erase = spi_block_erase_c7,
10761 }
10762 },
10763 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10764 .unlock = spi_disable_blockprotect,
10765 .write = spi_chip_write_256,
10766 .read = spi_chip_read,
10767 .voltage = {2700, 3600},
10768 },
10769
10770 {
10771 .vendor = "Micron/Numonyx/ST",
10772 .name = "M25PE80",
10773 .bustype = BUS_SPI,
10774 .manufacture_id = ST_ID,
10775 .model_id = ST_M25PE80,
10776 .total_size = 1024,
10777 .page_size = 256,
10778 .feature_bits = FEATURE_WRSR_WREN,
10779 .tested = TEST_OK_PREW,
10780 .probe = probe_spi_rdid,
10781 .probe_timing = TIMING_ZERO,
10782 .block_erasers =
10783 {
10784 {
10785 .eraseblocks = { {4 * 1024, 256} },
10786 .block_erase = spi_block_erase_20,
10787 }, {
10788 .eraseblocks = { {64 * 1024, 16} },
10789 .block_erase = spi_block_erase_d8,
10790 }, {
10791 .eraseblocks = { {1024 * 1024, 1} },
10792 .block_erase = spi_block_erase_c7,
10793 }
10794 },
10795 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
10796 .unlock = spi_disable_blockprotect,
10797 .write = spi_chip_write_256,
10798 .read = spi_chip_read,
10799 .voltage = {2700, 3600},
10800 },
10801
10802 {
10803 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010804 .name = "M25PX16",
10805 .bustype = BUS_SPI,
10806 .manufacture_id = ST_ID,
10807 .model_id = ST_M25PX16,
10808 .total_size = 2048,
10809 .page_size = 256,
10810 /* OTP: 64B total; read 0x4B; write 0x42 */
10811 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10812 .tested = TEST_OK_PREW,
10813 .probe = probe_spi_rdid,
10814 .probe_timing = TIMING_ZERO,
10815 .block_erasers =
10816 {
10817 {
10818 .eraseblocks = { { 4 * 1024, 512 } },
10819 .block_erase = spi_block_erase_20,
10820 }, {
10821 .eraseblocks = { {64 * 1024, 32} },
10822 .block_erase = spi_block_erase_d8,
10823 }, {
10824 .eraseblocks = { {2 * 1024 * 1024, 1} },
10825 .block_erase = spi_block_erase_c7,
10826 }
10827 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010828 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010829 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
10830 .write = spi_chip_write_256,
10831 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000010832 .voltage = {2300, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010833 },
10834
10835 {
10836 .vendor = "Micron/Numonyx/ST",
10837 .name = "M25PX32",
10838 .bustype = BUS_SPI,
10839 .manufacture_id = ST_ID,
10840 .model_id = ST_M25PX32,
10841 .total_size = 4096,
10842 .page_size = 256,
10843 /* OTP: 64B total; read 0x4B; write 0x42 */
10844 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10845 .tested = TEST_OK_PRE,
10846 .probe = probe_spi_rdid,
10847 .probe_timing = TIMING_ZERO,
10848 .block_erasers =
10849 {
10850 {
10851 .eraseblocks = { { 4 * 1024, 1024 } },
10852 .block_erase = spi_block_erase_20,
10853 }, {
10854 .eraseblocks = { {64 * 1024, 64} },
10855 .block_erase = spi_block_erase_d8,
10856 }, {
10857 .eraseblocks = { {4 * 1024 * 1024, 1} },
10858 .block_erase = spi_block_erase_c7,
10859 }
10860 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010861 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010862 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
10863 .write = spi_chip_write_256,
10864 .read = spi_chip_read,
10865 .voltage = {2700, 3600},
10866 },
10867
10868 {
10869 .vendor = "Micron/Numonyx/ST",
10870 .name = "M25PX64",
10871 .bustype = BUS_SPI,
10872 .manufacture_id = ST_ID,
10873 .model_id = ST_M25PX64,
10874 .total_size = 8192,
10875 .page_size = 256,
10876 /* OTP: 64B total; read 0x4B; write 0x42 */
10877 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000010878 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010879 .probe = probe_spi_rdid,
10880 .probe_timing = TIMING_ZERO,
10881 .block_erasers =
10882 {
10883 {
10884 .eraseblocks = { { 4 * 1024, 2048 } },
10885 .block_erase = spi_block_erase_20,
10886 }, {
10887 .eraseblocks = { {64 * 1024, 128} },
10888 .block_erase = spi_block_erase_d8,
10889 }, {
10890 .eraseblocks = { {8 * 1024 * 1024, 1} },
10891 .block_erase = spi_block_erase_c7,
10892 }
10893 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010894 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010895 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
10896 .write = spi_chip_write_256,
10897 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000010898 .voltage = {2700, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010899 },
10900
10901 {
10902 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010903 .name = "M25PX80",
10904 .bustype = BUS_SPI,
10905 .manufacture_id = ST_ID,
10906 .model_id = ST_M25PX80,
10907 .total_size = 1024,
10908 .page_size = 256,
10909 /* OTP: 64B total; read 0x4B, write 0x42 */
10910 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
10911 .tested = TEST_OK_PREW,
10912 .probe = probe_spi_rdid,
10913 .probe_timing = TIMING_ZERO,
10914 .block_erasers =
10915 {
10916 {
10917 .eraseblocks = { { 4 * 1024, 256 } },
10918 .block_erase = spi_block_erase_20,
10919 }, {
10920 .eraseblocks = { {64 * 1024, 16} },
10921 .block_erase = spi_block_erase_d8,
10922 }, {
10923 .eraseblocks = { {1024 * 1024, 1} },
10924 .block_erase = spi_block_erase_c7,
10925 }
10926 },
10927 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
10928 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
10929 .write = spi_chip_write_256,
10930 .read = spi_chip_read,
10931 .voltage = {2700, 3600},
10932 },
10933
10934 {
10935 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010936 .name = "M45PE10",
10937 .bustype = BUS_SPI,
10938 .manufacture_id = ST_ID,
10939 .model_id = ST_M45PE10,
10940 .total_size = 128,
10941 .page_size = 256,
10942 .tested = TEST_UNTESTED,
10943 .probe = probe_spi_rdid,
10944 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100010945 .block_erasers =
10946 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010947 {
10948 .eraseblocks = { {256, 512} },
10949 .block_erase = spi_block_erase_db,
10950 }, {
10951 .eraseblocks = { {64 * 1024, 2} },
10952 .block_erase = spi_block_erase_d8,
10953 }
10954 },
10955 .printlock = spi_prettyprint_status_register_default_welwip,
10956 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
10957 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
10958 .read = spi_chip_read, /* Fast read (0x0B) supported */
10959 .voltage = {2700, 3600},
10960 },
10961
10962 {
10963 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010964 .name = "M45PE16",
10965 .bustype = BUS_SPI,
10966 .manufacture_id = ST_ID,
10967 .model_id = ST_M45PE16,
10968 .total_size = 2048,
10969 .page_size = 256,
10970 .tested = TEST_UNTESTED,
10971 .probe = probe_spi_rdid,
10972 .probe_timing = TIMING_ZERO,
10973 .block_erasers =
10974 {
10975 {
10976 .eraseblocks = { {256, 8192} },
10977 .block_erase = spi_block_erase_db,
10978 }, {
10979 .eraseblocks = { {64 * 1024, 32} },
10980 .block_erase = spi_block_erase_d8,
10981 }
10982 },
10983 .printlock = spi_prettyprint_status_register_default_welwip,
10984 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
10985 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
10986 .read = spi_chip_read, /* Fast read (0x0B) supported */
10987 .voltage = {2700, 3600},
10988 },
10989
10990 {
10991 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010992 .name = "M45PE20",
10993 .bustype = BUS_SPI,
10994 .manufacture_id = ST_ID,
10995 .model_id = ST_M45PE20,
10996 .total_size = 256,
10997 .page_size = 256,
10998 .tested = TEST_UNTESTED,
10999 .probe = probe_spi_rdid,
11000 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011001 .block_erasers =
11002 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011003 {
11004 .eraseblocks = { {256, 1024} },
11005 .block_erase = spi_block_erase_db,
11006 }, {
11007 .eraseblocks = { {64 * 1024, 4} },
11008 .block_erase = spi_block_erase_d8,
11009 }
11010 },
11011 .printlock = spi_prettyprint_status_register_default_welwip,
11012 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
11013 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
11014 .read = spi_chip_read, /* Fast read (0x0B) supported */
11015 .voltage = {2700, 3600},
11016 },
11017
11018 {
11019 .vendor = "Micron/Numonyx/ST",
11020 .name = "M45PE40",
11021 .bustype = BUS_SPI,
11022 .manufacture_id = ST_ID,
11023 .model_id = ST_M45PE40,
11024 .total_size = 512,
11025 .page_size = 256,
11026 .tested = TEST_UNTESTED,
11027 .probe = probe_spi_rdid,
11028 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011029 .block_erasers =
11030 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011031 {
11032 .eraseblocks = { {256, 2048} },
11033 .block_erase = spi_block_erase_db,
11034 }, {
11035 .eraseblocks = { {64 * 1024, 8} },
11036 .block_erase = spi_block_erase_d8,
11037 }
11038 },
11039 .printlock = spi_prettyprint_status_register_default_welwip,
11040 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
Stefan Tauner23e10b82016-01-23 16:16:49 +000011041 .write = spi_chip_write_256, /* Page write supported (similar to PP but allows 0->1 changes) */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011042 .read = spi_chip_read, /* Fast read (0x0B) supported */
11043 .voltage = {2700, 3600},
11044 },
11045
11046 {
11047 .vendor = "Micron/Numonyx/ST",
11048 .name = "M45PE80",
11049 .bustype = BUS_SPI,
11050 .manufacture_id = ST_ID,
11051 .model_id = ST_M45PE80,
11052 .total_size = 1024,
11053 .page_size = 256,
11054 .tested = TEST_UNTESTED,
11055 .probe = probe_spi_rdid,
11056 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011057 .block_erasers =
11058 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011059 {
11060 .eraseblocks = { {256, 4096} },
11061 .block_erase = spi_block_erase_db,
11062 }, {
11063 .eraseblocks = { {64 * 1024, 16} },
11064 .block_erase = spi_block_erase_d8,
11065 }
11066 },
11067 .printlock = spi_prettyprint_status_register_default_welwip,
11068 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
11069 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
11070 .read = spi_chip_read, /* Fast read (0x0B) supported */
11071 .voltage = {2700, 3600},
11072 },
11073
11074 {
11075 .vendor = "Micron/Numonyx/ST",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011076 .name = "N25Q00A..1G", /* ..1G = 1.8V, uniform 64KB/4KB blocks/sectors */
11077 .bustype = BUS_SPI,
11078 .manufacture_id = ST_ID,
11079 .model_id = ST_N25Q00A__1G,
11080 .total_size = 131072,
11081 .page_size = 256,
11082 /* supports SFDP */
11083 /* OTP: 64B total; read 0x4B, write 0x42 */
11084 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11085 .tested = TEST_UNTESTED,
11086 .probe = probe_spi_rdid,
11087 .probe_timing = TIMING_ZERO,
11088 .block_erasers =
11089 {
11090 {
11091 .eraseblocks = { {4 * 1024, 32768} },
11092 .block_erase = spi_block_erase_21,
11093 }, {
11094 .eraseblocks = { {4 * 1024, 32768} },
11095 .block_erase = spi_block_erase_20,
11096 }, {
11097 .eraseblocks = { {64 * 1024, 2048} },
11098 .block_erase = spi_block_erase_dc,
11099 }, {
11100 .eraseblocks = { {64 * 1024, 2048} },
11101 .block_erase = spi_block_erase_d8,
11102 }, {
11103 .eraseblocks = { {32768 * 1024, 4} },
11104 .block_erase = spi_block_erase_c4,
11105 }
11106 },
11107 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11108 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11109 .write = spi_chip_write_256, /* Multi I/O supported */
11110 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11111 .voltage = {1700, 2000},
11112 },
11113
11114 {
11115 .vendor = "Micron/Numonyx/ST",
11116 .name = "N25Q00A..3G", /* ..3G = 3V, uniform 64KB/4KB blocks/sectors */
11117 .bustype = BUS_SPI,
11118 .manufacture_id = ST_ID,
11119 .model_id = ST_N25Q00A__3G,
11120 .total_size = 131072,
11121 .page_size = 256,
11122 /* supports SFDP */
11123 /* OTP: 64B total; read 0x4B, write 0x42 */
11124 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11125 .tested = TEST_UNTESTED,
11126 .probe = probe_spi_rdid,
11127 .probe_timing = TIMING_ZERO,
11128 .block_erasers =
11129 {
11130 {
11131 .eraseblocks = { {4 * 1024, 32768} },
11132 .block_erase = spi_block_erase_21,
11133 }, {
11134 .eraseblocks = { {4 * 1024, 32768} },
11135 .block_erase = spi_block_erase_20,
11136 }, {
11137 .eraseblocks = { {64 * 1024, 2048} },
11138 .block_erase = spi_block_erase_dc,
11139 }, {
11140 .eraseblocks = { {64 * 1024, 2048} },
11141 .block_erase = spi_block_erase_d8,
11142 }, {
11143 .eraseblocks = { {32768 * 1024, 4} },
11144 .block_erase = spi_block_erase_c4,
11145 }
11146 },
11147 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11148 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11149 .write = spi_chip_write_256, /* Multi I/O supported */
11150 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11151 .voltage = {2700, 3600},
11152 },
11153
11154 {
11155 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011156 .name = "N25Q016",
11157 .bustype = BUS_SPI,
11158 .manufacture_id = ST_ID,
11159 .model_id = ST_N25Q016__1E,
11160 .total_size = 2048,
11161 .page_size = 256,
11162 /* supports SFDP */
11163 /* OTP: 64B total; read 0x4B, write 0x42 */
11164 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11165 .tested = TEST_UNTESTED,
11166 .probe = probe_spi_rdid,
11167 .probe_timing = TIMING_ZERO,
11168 .block_erasers =
11169 {
11170 {
11171 .eraseblocks = { {4 * 1024, 512} },
11172 .block_erase = spi_block_erase_20,
11173 }, {
11174 .eraseblocks = { {32 * 1024, 64} },
11175 .block_erase = spi_block_erase_52,
11176 }, {
11177 .eraseblocks = { {64 * 1024, 32} },
11178 .block_erase = spi_block_erase_d8,
11179 }, {
11180 .eraseblocks = { {2 * 1024 * 1024, 1} },
11181 .block_erase = spi_block_erase_c7,
11182 }
11183 },
11184 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11185 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11186 .write = spi_chip_write_256, /* Multi I/O supported */
11187 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11188 .voltage = {1700, 2000},
11189 },
11190
11191 {
11192 .vendor = "Micron/Numonyx/ST",
11193 .name = "N25Q032..1E",
11194 .bustype = BUS_SPI,
11195 .manufacture_id = ST_ID,
11196 .model_id = ST_N25Q032__1E,
11197 .total_size = 4096,
11198 .page_size = 256,
11199 /* supports SFDP */
11200 /* OTP: 64B total; read 0x4B, write 0x42 */
11201 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11202 .tested = TEST_UNTESTED,
11203 .probe = probe_spi_rdid,
11204 .probe_timing = TIMING_ZERO,
11205 .block_erasers =
11206 {
11207 {
11208 .eraseblocks = { {4 * 1024, 1024} },
11209 .block_erase = spi_block_erase_20,
11210 }, {
11211 .eraseblocks = { {64 * 1024, 64} },
11212 .block_erase = spi_block_erase_d8,
11213 }, {
11214 .eraseblocks = { {4 * 1024 * 1024, 1} },
11215 .block_erase = spi_block_erase_c7,
11216 }
11217 },
11218 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11219 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11220 .write = spi_chip_write_256, /* Multi I/O supported */
11221 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11222 .voltage = {1700, 2000},
Sergii Dmytrukd5ba24c2022-07-25 00:28:35 +030011223 .reg_bits =
11224 {
11225 /*
11226 * There is also a volatile lock register per 64KiB sector, which is not
11227 * mutually exclusive with BP-based protection.
11228 */
11229 .srp = {STATUS1, 7, RW},
11230 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
11231 .tb = {STATUS1, 5, RW},
11232 },
11233 .decode_range = decode_range_spi25,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011234 },
11235
11236 {
11237 .vendor = "Micron/Numonyx/ST",
11238 .name = "N25Q032..3E",
11239 .bustype = BUS_SPI,
11240 .manufacture_id = ST_ID,
11241 .model_id = ST_N25Q032__3E,
11242 .total_size = 4096,
11243 .page_size = 256,
11244 /* supports SFDP */
11245 /* OTP: 64B total; read 0x4B, write 0x42 */
11246 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11247 .tested = TEST_OK_PREW,
11248 .probe = probe_spi_rdid,
11249 .probe_timing = TIMING_ZERO,
11250 .block_erasers =
11251 {
11252 {
11253 .eraseblocks = { {4 * 1024, 1024} },
11254 .block_erase = spi_block_erase_20,
11255 }, {
11256 .eraseblocks = { {64 * 1024, 64} },
11257 .block_erase = spi_block_erase_d8,
11258 }, {
11259 .eraseblocks = { {4 * 1024 * 1024, 1} },
11260 .block_erase = spi_block_erase_c7,
11261 }
11262 },
11263 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11264 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11265 .write = spi_chip_write_256, /* Multi I/O supported */
11266 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11267 .voltage = {2700, 3600},
Sergii Dmytrukd5ba24c2022-07-25 00:28:35 +030011268 .reg_bits =
11269 {
11270 /*
11271 * There is also a volatile lock register per 64KiB sector, which is not
11272 * mutually exclusive with BP-based protection.
11273 */
11274 .srp = {STATUS1, 7, RW},
11275 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
11276 .tb = {STATUS1, 5, RW},
11277 },
11278 .decode_range = decode_range_spi25,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011279 },
11280
11281 {
11282 .vendor = "Micron/Numonyx/ST",
11283 .name = "N25Q064..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
11284 .bustype = BUS_SPI,
11285 .manufacture_id = ST_ID,
11286 .model_id = ST_N25Q064__1E,
11287 .total_size = 8192,
11288 .page_size = 256,
11289 /* supports SFDP */
11290 /* OTP: 64B total; read 0x4B, write 0x42 */
11291 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000011292 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011293 .probe = probe_spi_rdid,
11294 .probe_timing = TIMING_ZERO,
11295 .block_erasers =
11296 {
11297 {
11298 .eraseblocks = { {4 * 1024, 2048 } },
11299 .block_erase = spi_block_erase_20,
11300 }, {
11301 .eraseblocks = { {64 * 1024, 128} },
11302 .block_erase = spi_block_erase_d8,
11303 }, {
11304 .eraseblocks = { {8 * 1024 * 1024, 1} },
11305 .block_erase = spi_block_erase_c7,
11306 }
11307 },
11308 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11309 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11310 .write = spi_chip_write_256, /* Multi I/O supported */
11311 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11312 .voltage = {1700, 2000},
Sergii Dmytrukd5ba24c2022-07-25 00:28:35 +030011313 .reg_bits =
11314 {
11315 /*
11316 * There is also a volatile lock register per 64KiB sector, which is not
11317 * mutually exclusive with BP-based protection.
11318 */
11319 .srp = {STATUS1, 7, RW},
11320 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 6, RW}},
11321 .tb = {STATUS1, 5, RW},
11322 },
11323 .decode_range = decode_range_spi25,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011324 },
11325
11326 {
11327 .vendor = "Micron/Numonyx/ST",
11328 .name = "N25Q064..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
11329 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100011330 .manufacture_id = ST_ID,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011331 .model_id = ST_N25Q064__3E,
11332 .total_size = 8192,
11333 .page_size = 256,
11334 /* supports SFDP */
11335 /* OTP: 64B total; read 0x4B, write 0x42 */
11336 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11337 .tested = TEST_OK_PREW,
11338 .probe = probe_spi_rdid,
11339 .probe_timing = TIMING_ZERO,
11340 .block_erasers =
11341 {
11342 {
11343 .eraseblocks = { {4 * 1024, 2048 } },
11344 .block_erase = spi_block_erase_20,
11345 }, {
11346 .eraseblocks = { {64 * 1024, 128} },
11347 .block_erase = spi_block_erase_d8,
11348 }, {
11349 .eraseblocks = { {8 * 1024 * 1024, 1} },
11350 .block_erase = spi_block_erase_c7,
11351 }
11352 },
11353 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11354 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11355 .write = spi_chip_write_256, /* Multi I/O supported */
11356 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11357 .voltage = {2700, 3600},
Sergii Dmytrukd5ba24c2022-07-25 00:28:35 +030011358 .reg_bits =
11359 {
11360 /*
11361 * There is also a volatile lock register per 64KiB sector, which is not
11362 * mutually exclusive with BP-based protection.
11363 */
11364 .srp = {STATUS1, 7, RW},
11365 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 6, RW}},
11366 .tb = {STATUS1, 5, RW},
11367 },
11368 .decode_range = decode_range_spi25,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011369 },
11370
11371 {
11372 .vendor = "Micron/Numonyx/ST",
11373 .name = "N25Q128..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
11374 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100011375 .manufacture_id = ST_ID,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011376 .model_id = ST_N25Q128__1E,
11377 .total_size = 16384,
11378 .page_size = 256,
11379 /* supports SFDP */
11380 /* OTP: 64B total; read 0x4B, write 0x42 */
11381 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011382 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011383 .probe = probe_spi_rdid,
11384 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011385 .block_erasers =
11386 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011387 {
11388 .eraseblocks = { {4 * 1024, 4096 } },
11389 .block_erase = spi_block_erase_20,
11390 }, {
11391 .eraseblocks = { {64 * 1024, 256} },
11392 .block_erase = spi_block_erase_d8,
11393 }, {
11394 .eraseblocks = { {16384 * 1024, 1} },
11395 .block_erase = spi_block_erase_c7,
11396 }
11397 },
11398 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11399 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11400 .write = spi_chip_write_256, /* Multi I/O supported */
11401 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11402 .voltage = {1700, 2000},
11403 },
11404
11405 {
11406 .vendor = "Micron/Numonyx/ST",
11407 .name = "N25Q128..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
11408 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100011409 .manufacture_id = ST_ID,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011410 .model_id = ST_N25Q128__3E,
11411 .total_size = 16384,
11412 .page_size = 256,
11413 /* supports SFDP */
11414 /* OTP: 64B total; read 0x4B, write 0x42 */
11415 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11416 .tested = TEST_OK_PREW,
11417 .probe = probe_spi_rdid,
11418 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011419 .block_erasers =
11420 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011421 {
11422 .eraseblocks = { {4 * 1024, 4096 } },
11423 .block_erase = spi_block_erase_20,
11424 }, {
11425 .eraseblocks = { {64 * 1024, 256} },
11426 .block_erase = spi_block_erase_d8,
11427 }, {
11428 .eraseblocks = { {16384 * 1024, 1} },
11429 .block_erase = spi_block_erase_c7,
11430 }
11431 },
11432 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11433 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11434 .write = spi_chip_write_256, /* Multi I/O supported */
11435 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11436 .voltage = {2700, 3600},
11437 },
11438
11439 {
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011440 .vendor = "Micron/Numonyx/ST",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011441 .name = "N25Q256..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
11442 .bustype = BUS_SPI,
11443 .manufacture_id = ST_ID,
11444 .model_id = ST_N25Q256__1E,
11445 .total_size = 32768,
11446 .page_size = 256,
11447 /* supports SFDP */
11448 /* OTP: 64B total; read 0x4B, write 0x42 */
11449 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11450 .tested = TEST_UNTESTED,
11451 .probe = probe_spi_rdid,
11452 .probe_timing = TIMING_ZERO,
11453 .block_erasers =
11454 {
11455 {
11456 .eraseblocks = { {4 * 1024, 8192} },
11457 .block_erase = spi_block_erase_21,
11458 }, {
11459 .eraseblocks = { {4 * 1024, 8192} },
11460 .block_erase = spi_block_erase_20,
11461 }, {
11462 .eraseblocks = { {64 * 1024, 512} },
11463 .block_erase = spi_block_erase_dc,
11464 }, {
11465 .eraseblocks = { {64 * 1024, 512} },
11466 .block_erase = spi_block_erase_d8,
11467 }, {
11468 .eraseblocks = { {32768 * 1024, 1} },
11469 .block_erase = spi_block_erase_c7,
11470 }
11471 },
11472 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11473 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11474 .write = spi_chip_write_256, /* Multi I/O supported */
11475 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11476 .voltage = {1700, 2000},
11477 },
11478
11479 {
11480 .vendor = "Micron/Numonyx/ST",
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011481 .name = "N25Q256..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
11482 .bustype = BUS_SPI,
11483 .manufacture_id = ST_ID,
11484 .model_id = ST_N25Q256__3E,
11485 .total_size = 32768,
11486 .page_size = 256,
11487 /* supports SFDP */
11488 /* OTP: 64B total; read 0x4B, write 0x42 */
11489 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11490 .tested = TEST_UNTESTED,
11491 .probe = probe_spi_rdid,
11492 .probe_timing = TIMING_ZERO,
11493 .block_erasers =
11494 {
11495 {
11496 .eraseblocks = { {4 * 1024, 8192} },
11497 .block_erase = spi_block_erase_21,
11498 }, {
11499 .eraseblocks = { {4 * 1024, 8192} },
11500 .block_erase = spi_block_erase_20,
11501 }, {
11502 .eraseblocks = { {64 * 1024, 512} },
11503 .block_erase = spi_block_erase_dc,
11504 }, {
11505 .eraseblocks = { {64 * 1024, 512} },
11506 .block_erase = spi_block_erase_d8,
11507 }, {
11508 .eraseblocks = { {32768 * 1024, 1} },
11509 .block_erase = spi_block_erase_c7,
11510 }
11511 },
11512 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11513 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11514 .write = spi_chip_write_256, /* Multi I/O supported */
11515 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11516 .voltage = {2700, 3600},
11517 },
11518
11519 {
11520 .vendor = "Micron/Numonyx/ST",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011521 .name = "N25Q512..1G", /* ..1G = 1.8V, uniform 64KB/4KB blocks/sectors */
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011522 .bustype = BUS_SPI,
11523 .manufacture_id = ST_ID,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011524 .model_id = ST_N25Q512__1G,
11525 .total_size = 65536,
11526 .page_size = 256,
11527 /* supports SFDP */
11528 /* OTP: 64B total; read 0x4B, write 0x42 */
11529 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11530 .tested = TEST_UNTESTED,
11531 .probe = probe_spi_rdid,
11532 .probe_timing = TIMING_ZERO,
11533 .block_erasers =
11534 {
11535 {
11536 .eraseblocks = { {4 * 1024, 16384} },
11537 .block_erase = spi_block_erase_21,
11538 }, {
11539 .eraseblocks = { {4 * 1024, 16384} },
11540 .block_erase = spi_block_erase_20,
11541 }, {
11542 .eraseblocks = { {64 * 1024, 1024} },
11543 .block_erase = spi_block_erase_dc,
11544 }, {
11545 .eraseblocks = { {64 * 1024, 1024} },
11546 .block_erase = spi_block_erase_d8,
11547 }, {
11548 .eraseblocks = { {32768 * 1024, 2} },
11549 .block_erase = spi_block_erase_c4,
11550 }
11551 },
11552 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11553 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11554 .write = spi_chip_write_256, /* Multi I/O supported */
11555 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11556 .voltage = {1700, 2000},
11557 },
11558
11559 {
11560 .vendor = "Micron/Numonyx/ST",
11561 .name = "N25Q512..3G", /* ..3G = 3V, uniform 64KB/4KB blocks/sectors */
11562 .bustype = BUS_SPI,
11563 .manufacture_id = ST_ID,
11564 .model_id = ST_N25Q512__3G,
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011565 .total_size = 65536,
11566 .page_size = 256,
11567 /* supports SFDP */
11568 /* OTP: 64B total; read 0x4B, write 0x42 */
11569 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11570 .tested = TEST_OK_PREW,
11571 .probe = probe_spi_rdid,
11572 .probe_timing = TIMING_ZERO,
11573 .block_erasers =
11574 {
11575 {
11576 .eraseblocks = { {4 * 1024, 16384} },
11577 .block_erase = spi_block_erase_21,
11578 }, {
11579 .eraseblocks = { {4 * 1024, 16384} },
11580 .block_erase = spi_block_erase_20,
11581 }, {
11582 .eraseblocks = { {64 * 1024, 1024} },
11583 .block_erase = spi_block_erase_dc,
11584 }, {
11585 .eraseblocks = { {64 * 1024, 1024} },
11586 .block_erase = spi_block_erase_d8,
11587 }, {
Jacob Creedone8e7b0e2019-07-22 12:21:22 -070011588 .eraseblocks = { {32768 * 1024, 2} },
11589 .block_erase = spi_block_erase_c4,
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011590 }
11591 },
11592 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11593 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11594 .write = spi_chip_write_256, /* Multi I/O supported */
11595 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11596 .voltage = {2700, 3600},
11597 },
11598
11599 {
Ed Swierk199ab392017-07-03 13:33:44 -070011600 .vendor = "Micron",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011601 .name = "MT25QL01G", /* L = 3V, uniform 64KB/4KB blocks/sectors */
11602 .bustype = BUS_SPI,
11603 .manufacture_id = ST_ID,
11604 .model_id = ST_N25Q00A__3G,
11605 .total_size = 131072,
11606 .page_size = 256,
11607 /* supports SFDP */
11608 /* OTP: 64B total; read 0x4B, write 0x42 */
11609 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11610 .tested = TEST_OK_PREW,
11611 .probe = probe_spi_rdid,
11612 .probe_timing = TIMING_ZERO,
11613 .block_erasers =
11614 {
11615 {
11616 .eraseblocks = { {4 * 1024, 32768} },
11617 .block_erase = spi_block_erase_21,
11618 }, {
11619 .eraseblocks = { {4 * 1024, 32768} },
11620 .block_erase = spi_block_erase_20,
11621 }, {
11622 .eraseblocks = { {32 * 1024, 4096} },
11623 .block_erase = spi_block_erase_5c,
11624 }, {
11625 .eraseblocks = { {32 * 1024, 4096} },
11626 .block_erase = spi_block_erase_52,
11627 }, {
11628 .eraseblocks = { {64 * 1024, 2048} },
11629 .block_erase = spi_block_erase_dc,
11630 }, {
11631 .eraseblocks = { {64 * 1024, 2048} },
11632 .block_erase = spi_block_erase_d8,
11633 }, {
11634 .eraseblocks = { {65536 * 1024, 2} },
11635 .block_erase = spi_block_erase_c4,
11636 }
11637 },
11638 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11639 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11640 .write = spi_chip_write_256, /* Multi I/O supported */
11641 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11642 .voltage = {2700, 3600},
11643 },
11644
11645 {
11646 .vendor = "Micron",
11647 .name = "MT25QU01G", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
11648 .bustype = BUS_SPI,
11649 .manufacture_id = ST_ID,
11650 .model_id = ST_N25Q00A__1G,
11651 .total_size = 131072,
11652 .page_size = 256,
11653 /* supports SFDP */
11654 /* OTP: 64B total; read 0x4B, write 0x42 */
11655 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11656 .tested = TEST_UNTESTED,
11657 .probe = probe_spi_rdid,
11658 .probe_timing = TIMING_ZERO,
11659 .block_erasers =
11660 {
11661 {
11662 .eraseblocks = { {4 * 1024, 32768} },
11663 .block_erase = spi_block_erase_21,
11664 }, {
11665 .eraseblocks = { {4 * 1024, 32768} },
11666 .block_erase = spi_block_erase_20,
11667 }, {
11668 .eraseblocks = { {32 * 1024, 4096} },
11669 .block_erase = spi_block_erase_5c,
11670 }, {
11671 .eraseblocks = { {32 * 1024, 4096} },
11672 .block_erase = spi_block_erase_52,
11673 }, {
11674 .eraseblocks = { {64 * 1024, 2048} },
11675 .block_erase = spi_block_erase_dc,
11676 }, {
11677 .eraseblocks = { {64 * 1024, 2048} },
11678 .block_erase = spi_block_erase_d8,
11679 }, {
11680 .eraseblocks = { {65536 * 1024, 2} },
11681 .block_erase = spi_block_erase_c4,
11682 }
11683 },
11684 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11685 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11686 .write = spi_chip_write_256, /* Multi I/O supported */
11687 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11688 .voltage = {1700, 2000},
11689 },
11690
11691 {
11692 .vendor = "Micron",
11693 .name = "MT25QL02G", /* L = 3V, uniform 64KB/4KB blocks/sectors */
11694 .bustype = BUS_SPI,
11695 .manufacture_id = ST_ID,
11696 .model_id = ST_MT25QL02G,
11697 .total_size = 262144,
11698 .page_size = 256,
11699 /* supports SFDP */
11700 /* OTP: 64B total; read 0x4B, write 0x42 */
11701 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11702 .tested = TEST_UNTESTED,
11703 .probe = probe_spi_rdid,
11704 .probe_timing = TIMING_ZERO,
11705 .block_erasers =
11706 {
11707 {
11708 .eraseblocks = { {4 * 1024, 65536} },
11709 .block_erase = spi_block_erase_21,
11710 }, {
11711 .eraseblocks = { {4 * 1024, 65536} },
11712 .block_erase = spi_block_erase_20,
11713 }, {
11714 .eraseblocks = { {32 * 1024, 8192} },
11715 .block_erase = spi_block_erase_5c,
11716 }, {
11717 .eraseblocks = { {32 * 1024, 8192} },
11718 .block_erase = spi_block_erase_52,
11719 }, {
11720 .eraseblocks = { {64 * 1024, 4096} },
11721 .block_erase = spi_block_erase_dc,
11722 }, {
11723 .eraseblocks = { {64 * 1024, 4096} },
11724 .block_erase = spi_block_erase_d8,
11725 }, {
11726 .eraseblocks = { {65536 * 1024, 4} },
11727 .block_erase = spi_block_erase_c4,
11728 }
11729 },
11730 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11731 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11732 .write = spi_chip_write_256, /* Multi I/O supported */
11733 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11734 .voltage = {2700, 3600},
11735 },
11736
11737 {
11738 .vendor = "Micron",
11739 .name = "MT25QU02G", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
11740 .bustype = BUS_SPI,
11741 .manufacture_id = ST_ID,
11742 .model_id = ST_MT25QU02G,
11743 .total_size = 262144,
11744 .page_size = 256,
11745 /* supports SFDP */
11746 /* OTP: 64B total; read 0x4B, write 0x42 */
11747 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11748 .tested = TEST_UNTESTED,
11749 .probe = probe_spi_rdid,
11750 .probe_timing = TIMING_ZERO,
11751 .block_erasers =
11752 {
11753 {
11754 .eraseblocks = { {4 * 1024, 65536} },
11755 .block_erase = spi_block_erase_21,
11756 }, {
11757 .eraseblocks = { {4 * 1024, 65536} },
11758 .block_erase = spi_block_erase_20,
11759 }, {
11760 .eraseblocks = { {32 * 1024, 8192} },
11761 .block_erase = spi_block_erase_5c,
11762 }, {
11763 .eraseblocks = { {32 * 1024, 8192} },
11764 .block_erase = spi_block_erase_52,
11765 }, {
11766 .eraseblocks = { {64 * 1024, 4096} },
11767 .block_erase = spi_block_erase_dc,
11768 }, {
11769 .eraseblocks = { {64 * 1024, 4096} },
11770 .block_erase = spi_block_erase_d8,
11771 }, {
11772 .eraseblocks = { {65536 * 1024, 4} },
11773 .block_erase = spi_block_erase_c4,
11774 }
11775 },
11776 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11777 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11778 .write = spi_chip_write_256, /* Multi I/O supported */
11779 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11780 .voltage = {1700, 2000},
11781 },
11782
11783 {
11784 .vendor = "Micron",
11785 .name = "MT25QU128", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
11786 .bustype = BUS_SPI,
11787 .manufacture_id = ST_ID,
11788 .model_id = ST_N25Q128__1E,
11789 .total_size = 16384,
11790 .page_size = 256,
11791 /* supports SFDP */
11792 /* OTP: 64B total; read 0x4B, write 0x42 */
Nico Huber48dc0902023-03-05 17:20:55 +010011793 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011794 .tested = TEST_UNTESTED,
11795 .probe = probe_spi_rdid,
11796 .probe_timing = TIMING_ZERO,
11797 .block_erasers =
11798 {
11799 {
11800 .eraseblocks = { {4 * 1024, 4096} },
11801 .block_erase = spi_block_erase_20,
11802 }, {
11803 .eraseblocks = { {32 * 1024, 512} },
11804 .block_erase = spi_block_erase_52,
11805 }, {
11806 .eraseblocks = { {64 * 1024, 256} },
11807 .block_erase = spi_block_erase_d8,
11808 }, {
11809 .eraseblocks = { {16384 * 1024, 1} },
11810 .block_erase = spi_block_erase_c7,
11811 }, {
11812 .eraseblocks = { {16384 * 1024, 1} },
11813 .block_erase = spi_block_erase_60,
11814 }
11815 },
11816 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11817 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11818 .write = spi_chip_write_256, /* Multi I/O supported */
11819 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11820 .voltage = {1700, 2000},
11821 },
11822
11823 {
11824 .vendor = "Micron",
11825 .name = "MT25QL128", /* L = 3V, uniform 64KB/4KB blocks/sectors */
11826 .bustype = BUS_SPI,
11827 .manufacture_id = ST_ID,
11828 .model_id = ST_N25Q128__3E,
11829 .total_size = 16384,
11830 .page_size = 256,
11831 /* supports SFDP */
11832 /* OTP: 64B total; read 0x4B, write 0x42 */
Rick Altherr1e563602022-12-22 10:25:34 -080011833 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11834 .tested = TEST_OK_PREW,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011835 .probe = probe_spi_rdid,
11836 .probe_timing = TIMING_ZERO,
11837 .block_erasers =
11838 {
11839 {
11840 .eraseblocks = { {4 * 1024, 4096} },
11841 .block_erase = spi_block_erase_20,
11842 }, {
11843 .eraseblocks = { {32 * 1024, 512} },
11844 .block_erase = spi_block_erase_52,
11845 }, {
11846 .eraseblocks = { {64 * 1024, 256} },
11847 .block_erase = spi_block_erase_d8,
11848 }, {
11849 .eraseblocks = { {16384 * 1024, 1} },
11850 .block_erase = spi_block_erase_c7,
11851 }, {
11852 .eraseblocks = { {16384 * 1024, 1} },
11853 .block_erase = spi_block_erase_60,
11854 }
11855 },
11856 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11857 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11858 .write = spi_chip_write_256, /* Multi I/O supported */
11859 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11860 .voltage = {2700, 3600},
11861 },
11862
11863 {
11864 .vendor = "Micron",
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011865 .name = "MT25QL256", /* L = 3V, uniform 64KB/4KB blocks/sectors */
Ed Swierk199ab392017-07-03 13:33:44 -070011866 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100011867 .manufacture_id = ST_ID,
Ed Swierk199ab392017-07-03 13:33:44 -070011868 .model_id = ST_N25Q256__3E,
11869 .total_size = 32768,
11870 .page_size = 256,
11871 /* supports SFDP */
11872 /* OTP: 64B total; read 0x4B, write 0x42 */
Nico Huberaac81422017-11-10 22:54:13 +010011873 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
Simon Buhrowb7014f92021-02-15 13:16:57 +010011874 .tested = TEST_OK_PREW,
Ed Swierk199ab392017-07-03 13:33:44 -070011875 .probe = probe_spi_rdid,
11876 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011877 .block_erasers =
11878 {
Ed Swierk199ab392017-07-03 13:33:44 -070011879 {
11880 .eraseblocks = { {4 * 1024, 8192} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020011881 .block_erase = spi_block_erase_21,
Ed Swierk199ab392017-07-03 13:33:44 -070011882 }, {
Nico Huberaac81422017-11-10 22:54:13 +010011883 .eraseblocks = { {4 * 1024, 8192} },
11884 .block_erase = spi_block_erase_20,
11885 }, {
Jacob Creedon045b97e2019-07-22 12:26:56 -070011886 .eraseblocks = { {32 * 1024, 1024} },
11887 .block_erase = spi_block_erase_5c,
11888 }, {
11889 .eraseblocks = { {32 * 1024, 1024} },
11890 .block_erase = spi_block_erase_52,
11891 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070011892 .eraseblocks = { {64 * 1024, 512} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020011893 .block_erase = spi_block_erase_dc,
Ed Swierk199ab392017-07-03 13:33:44 -070011894 }, {
Nico Huberaac81422017-11-10 22:54:13 +010011895 .eraseblocks = { {64 * 1024, 512} },
11896 .block_erase = spi_block_erase_d8,
11897 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070011898 .eraseblocks = { {32768 * 1024, 1} },
11899 .block_erase = spi_block_erase_c7,
Jacob Creedon045b97e2019-07-22 12:26:56 -070011900 }, {
11901 .eraseblocks = { {32768 * 1024, 1} },
11902 .block_erase = spi_block_erase_60,
Ed Swierk199ab392017-07-03 13:33:44 -070011903 }
11904 },
11905 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11906 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11907 .write = spi_chip_write_256, /* Multi I/O supported */
11908 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11909 .voltage = {2700, 3600},
11910 },
11911
11912 {
11913 .vendor = "Micron",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011914 .name = "MT25QU256", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
11915 .bustype = BUS_SPI,
11916 .manufacture_id = ST_ID,
11917 .model_id = ST_N25Q256__1E,
11918 .total_size = 32768,
11919 .page_size = 256,
11920 /* supports SFDP */
11921 /* OTP: 64B total; read 0x4B, write 0x42 */
11922 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
Angel Pons59052582022-03-08 15:23:58 +010011923 .tested = TEST_OK_PREW,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011924 .probe = probe_spi_rdid,
11925 .probe_timing = TIMING_ZERO,
11926 .block_erasers =
11927 {
11928 {
11929 .eraseblocks = { {4 * 1024, 8192} },
11930 .block_erase = spi_block_erase_21,
11931 }, {
11932 .eraseblocks = { {4 * 1024, 8192} },
11933 .block_erase = spi_block_erase_20,
11934 }, {
11935 .eraseblocks = { {32 * 1024, 1024} },
11936 .block_erase = spi_block_erase_5c,
11937 }, {
11938 .eraseblocks = { {32 * 1024, 1024} },
11939 .block_erase = spi_block_erase_52,
11940 }, {
11941 .eraseblocks = { {64 * 1024, 512} },
11942 .block_erase = spi_block_erase_dc,
11943 }, {
11944 .eraseblocks = { {64 * 1024, 512} },
11945 .block_erase = spi_block_erase_d8,
11946 }, {
11947 .eraseblocks = { {32768 * 1024, 1} },
11948 .block_erase = spi_block_erase_c7,
11949 }, {
11950 .eraseblocks = { {32768 * 1024, 1} },
11951 .block_erase = spi_block_erase_60,
11952 }
11953 },
11954 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11955 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11956 .write = spi_chip_write_256, /* Multi I/O supported */
11957 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11958 .voltage = {1700, 2000},
11959 },
11960
11961 {
11962 .vendor = "Micron",
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011963 .name = "MT25QL512", /* L = 3V, uniform 64KB/4KB blocks/sectors */
Ed Swierk199ab392017-07-03 13:33:44 -070011964 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100011965 .manufacture_id = ST_ID,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011966 .model_id = ST_N25Q512__3G,
Ed Swierk199ab392017-07-03 13:33:44 -070011967 .total_size = 65536,
11968 .page_size = 256,
11969 /* supports SFDP */
11970 /* OTP: 64B total; read 0x4B, write 0x42 */
Nico Huberaac81422017-11-10 22:54:13 +010011971 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
Angel Pons3ed5a352018-09-30 16:31:09 +020011972 .tested = TEST_OK_PREW,
Ed Swierk199ab392017-07-03 13:33:44 -070011973 .probe = probe_spi_rdid,
11974 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011975 .block_erasers =
11976 {
Ed Swierk199ab392017-07-03 13:33:44 -070011977 {
11978 .eraseblocks = { {4 * 1024, 16384} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020011979 .block_erase = spi_block_erase_21,
Ed Swierk199ab392017-07-03 13:33:44 -070011980 }, {
Nico Huberaac81422017-11-10 22:54:13 +010011981 .eraseblocks = { {4 * 1024, 16384} },
11982 .block_erase = spi_block_erase_20,
11983 }, {
Jacob Creedon045b97e2019-07-22 12:26:56 -070011984 .eraseblocks = { {32 * 1024, 2048} },
11985 .block_erase = spi_block_erase_5c,
11986 }, {
11987 .eraseblocks = { {32 * 1024, 2048} },
11988 .block_erase = spi_block_erase_52,
11989 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070011990 .eraseblocks = { {64 * 1024, 1024} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020011991 .block_erase = spi_block_erase_dc,
Ed Swierk199ab392017-07-03 13:33:44 -070011992 }, {
Nico Huberaac81422017-11-10 22:54:13 +010011993 .eraseblocks = { {64 * 1024, 1024} },
11994 .block_erase = spi_block_erase_d8,
11995 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070011996 .eraseblocks = { {65536 * 1024, 1} },
11997 .block_erase = spi_block_erase_c7,
Jacob Creedon045b97e2019-07-22 12:26:56 -070011998 }, {
11999 .eraseblocks = { {65536 * 1024, 1} },
12000 .block_erase = spi_block_erase_60,
Ed Swierk199ab392017-07-03 13:33:44 -070012001 }
12002 },
12003 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
12004 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
12005 .write = spi_chip_write_256, /* Multi I/O supported */
12006 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12007 .voltage = {2700, 3600},
Sergii Dmytrukd5ba24c2022-07-25 00:28:35 +030012008 .reg_bits =
12009 {
12010 .srp = {STATUS1, 7, RW},
12011 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 6, RW}},
12012 .tb = {STATUS1, 5, RW},
12013 },
12014 .decode_range = decode_range_spi25,
Ed Swierk199ab392017-07-03 13:33:44 -070012015 },
12016
12017 {
Jacob Creedon80e8dc42019-07-22 12:35:30 -070012018 .vendor = "Micron",
12019 .name = "MT25QU512", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
12020 .bustype = BUS_SPI,
12021 .manufacture_id = ST_ID,
12022 .model_id = ST_N25Q512__1G,
12023 .total_size = 65536,
12024 .page_size = 256,
12025 /* supports SFDP */
12026 /* OTP: 64B total; read 0x4B, write 0x42 */
12027 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
12028 .tested = TEST_OK_PREW,
12029 .probe = probe_spi_rdid,
12030 .probe_timing = TIMING_ZERO,
12031 .block_erasers =
12032 {
12033 {
12034 .eraseblocks = { {4 * 1024, 16384} },
12035 .block_erase = spi_block_erase_21,
12036 }, {
12037 .eraseblocks = { {4 * 1024, 16384} },
12038 .block_erase = spi_block_erase_20,
12039 }, {
12040 .eraseblocks = { {32 * 1024, 2048} },
12041 .block_erase = spi_block_erase_5c,
12042 }, {
12043 .eraseblocks = { {32 * 1024, 2048} },
12044 .block_erase = spi_block_erase_52,
12045 }, {
12046 .eraseblocks = { {64 * 1024, 1024} },
12047 .block_erase = spi_block_erase_dc,
12048 }, {
12049 .eraseblocks = { {64 * 1024, 1024} },
12050 .block_erase = spi_block_erase_d8,
12051 }, {
12052 .eraseblocks = { {65536 * 1024, 1} },
12053 .block_erase = spi_block_erase_c7,
12054 }, {
12055 .eraseblocks = { {65536 * 1024, 1} },
12056 .block_erase = spi_block_erase_60,
12057 }
12058 },
12059 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
12060 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
12061 .write = spi_chip_write_256, /* Multi I/O supported */
12062 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12063 .voltage = {1700, 2000},
12064 },
12065
12066 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000012067 .vendor = "MoselVitelic",
12068 .name = "V29C51000B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012069 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012070 .manufacture_id = SYNCMOS_MVC_ID,
12071 .model_id = MVC_V29C51000B,
12072 .total_size = 64,
12073 .page_size = 512,
12074 .feature_bits = FEATURE_EITHER_RESET,
12075 .tested = TEST_UNTESTED,
12076 .probe = probe_jedec,
12077 .probe_timing = TIMING_ZERO,
12078 .block_erasers =
12079 {
12080 {
12081 .eraseblocks = { {512, 128} },
12082 .block_erase = erase_sector_jedec,
12083 }, {
12084 .eraseblocks = { {64 * 1024, 1} },
12085 .block_erase = erase_chip_block_jedec,
12086 },
12087 },
12088 .write = write_jedec_1,
12089 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012090 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000012091 },
12092
12093 {
12094 .vendor = "MoselVitelic",
12095 .name = "V29C51000T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012096 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012097 .manufacture_id = SYNCMOS_MVC_ID,
12098 .model_id = MVC_V29C51000T,
12099 .total_size = 64,
12100 .page_size = 512,
12101 .feature_bits = FEATURE_EITHER_RESET,
12102 .tested = TEST_UNTESTED,
12103 .probe = probe_jedec,
12104 .probe_timing = TIMING_ZERO,
12105 .block_erasers =
12106 {
12107 {
12108 .eraseblocks = { {512, 128} },
12109 .block_erase = erase_sector_jedec,
12110 }, {
12111 .eraseblocks = { {64 * 1024, 1} },
12112 .block_erase = erase_chip_block_jedec,
12113 },
12114 },
12115 .write = write_jedec_1,
12116 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012117 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000012118 },
12119
12120 {
12121 .vendor = "MoselVitelic",
12122 .name = "V29C51400B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012123 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012124 .manufacture_id = SYNCMOS_MVC_ID,
12125 .model_id = MVC_V29C51400B,
12126 .total_size = 512,
12127 .page_size = 1024,
12128 .feature_bits = FEATURE_EITHER_RESET,
12129 .tested = TEST_UNTESTED,
12130 .probe = probe_jedec,
12131 .probe_timing = TIMING_ZERO,
12132 .block_erasers =
12133 {
12134 {
12135 .eraseblocks = { {1024, 512} },
12136 .block_erase = erase_sector_jedec,
12137 }, {
12138 .eraseblocks = { {512 * 1024, 1} },
12139 .block_erase = erase_chip_block_jedec,
12140 },
12141 },
12142 .write = write_jedec_1,
12143 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012144 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000012145 },
12146
12147 {
12148 .vendor = "MoselVitelic",
12149 .name = "V29C51400T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012150 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012151 .manufacture_id = SYNCMOS_MVC_ID,
12152 .model_id = MVC_V29C51400T,
12153 .total_size = 512,
12154 .page_size = 1024,
12155 .feature_bits = FEATURE_EITHER_RESET,
12156 .tested = TEST_UNTESTED,
12157 .probe = probe_jedec,
12158 .probe_timing = TIMING_ZERO,
12159 .block_erasers =
12160 {
12161 {
12162 .eraseblocks = { {1024, 512} },
12163 .block_erase = erase_sector_jedec,
12164 }, {
12165 .eraseblocks = { {512 * 1024, 1} },
12166 .block_erase = erase_chip_block_jedec,
12167 },
12168 },
12169 .write = write_jedec_1,
12170 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012171 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000012172 },
12173
12174 {
12175 .vendor = "MoselVitelic",
12176 .name = "V29LC51000",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012177 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012178 .manufacture_id = SYNCMOS_MVC_ID,
12179 .model_id = MVC_V29LC51000,
12180 .total_size = 64,
12181 .page_size = 512,
12182 .feature_bits = FEATURE_EITHER_RESET,
12183 .tested = TEST_UNTESTED,
12184 .probe = probe_jedec,
12185 .probe_timing = TIMING_ZERO,
12186 .block_erasers =
12187 {
12188 {
12189 .eraseblocks = { {512, 128} },
12190 .block_erase = erase_sector_jedec,
12191 }, {
12192 .eraseblocks = { {64 * 1024, 1} },
12193 .block_erase = erase_chip_block_jedec,
12194 },
12195 },
12196 .write = write_jedec_1,
12197 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012198 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000012199 },
12200
12201 {
12202 .vendor = "MoselVitelic",
12203 .name = "V29LC51001",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012204 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012205 .manufacture_id = SYNCMOS_MVC_ID,
12206 .model_id = MVC_V29LC51001,
12207 .total_size = 128,
12208 .page_size = 512,
12209 .feature_bits = FEATURE_EITHER_RESET,
12210 .tested = TEST_UNTESTED,
12211 .probe = probe_jedec,
12212 .probe_timing = TIMING_ZERO,
12213 .block_erasers =
12214 {
12215 {
12216 .eraseblocks = { {512, 256} },
12217 .block_erase = erase_sector_jedec,
12218 }, {
12219 .eraseblocks = { {128 * 1024, 1} },
12220 .block_erase = erase_chip_block_jedec,
12221 },
12222 },
12223 .write = write_jedec_1,
12224 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012225 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000012226 },
12227
12228 {
12229 .vendor = "MoselVitelic",
12230 .name = "V29LC51002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012231 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012232 .manufacture_id = SYNCMOS_MVC_ID,
12233 .model_id = MVC_V29LC51002,
12234 .total_size = 256,
12235 .page_size = 512,
12236 .feature_bits = FEATURE_EITHER_RESET,
12237 .tested = TEST_UNTESTED,
12238 .probe = probe_jedec,
12239 .probe_timing = TIMING_ZERO,
12240 .block_erasers =
12241 {
12242 {
12243 .eraseblocks = { {512, 512} },
12244 .block_erase = erase_sector_jedec,
12245 }, {
12246 .eraseblocks = { {256 * 1024, 1} },
12247 .block_erase = erase_chip_block_jedec,
12248 },
12249 },
12250 .write = write_jedec_1,
12251 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012252 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000012253 },
12254
12255 {
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012256 .vendor = "Nantronics",
12257 .name = "N25S10",
12258 .bustype = BUS_SPI,
12259 .manufacture_id = NANTRONICS_ID_NOPREFIX,
12260 .model_id = NANTRONICS_N25S10,
12261 .total_size = 128,
12262 .page_size = 256,
12263 .feature_bits = FEATURE_WRSR_WREN,
12264 .tested = TEST_UNTESTED,
12265 .probe = probe_spi_rdid,
12266 .probe_timing = TIMING_ZERO,
12267 .block_erasers =
12268 {
12269 {
12270 .eraseblocks = { {4 * 1024, 32} },
12271 .block_erase = spi_block_erase_20,
12272 }, {
12273 .eraseblocks = { {4 * 1024, 32} },
12274 .block_erase = spi_block_erase_d7,
12275 }, {
12276 .eraseblocks = { {32 * 1024, 4} },
12277 .block_erase = spi_block_erase_52,
12278 }, {
12279 .eraseblocks = { {64 * 1024, 2} },
12280 .block_erase = spi_block_erase_d8,
12281 }, {
12282 .eraseblocks = { {128 * 1024, 1} },
12283 .block_erase = spi_block_erase_60,
12284 }, {
12285 .eraseblocks = { {128 * 1024, 1} },
12286 .block_erase = spi_block_erase_c7,
12287 }
12288 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012289 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012290 .unlock = spi_disable_blockprotect_bp3_srwd,
12291 .write = spi_chip_write_256,
12292 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
12293 .voltage = {2700, 3600},
12294 },
12295
12296 {
12297 .vendor = "Nantronics",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012298 .name = "N25S16",
12299 .bustype = BUS_SPI,
12300 .manufacture_id = NANTRONICS_ID_NOPREFIX,
12301 .model_id = NANTRONICS_N25S16,
12302 .total_size = 2048,
12303 .page_size = 256,
12304 .feature_bits = FEATURE_WRSR_WREN,
12305 .tested = TEST_UNTESTED,
12306 .probe = probe_spi_rdid,
12307 .probe_timing = TIMING_ZERO,
12308 .block_erasers =
12309 {
12310 {
12311 .eraseblocks = { {4 * 1024, 512} },
12312 .block_erase = spi_block_erase_20,
12313 }, {
12314 .eraseblocks = { {64 * 1024, 32} },
12315 .block_erase = spi_block_erase_d8,
12316 }, {
12317 .eraseblocks = { {2048 * 1024, 1} },
12318 .block_erase = spi_block_erase_60,
12319 }, {
12320 .eraseblocks = { {2048 * 1024, 1} },
12321 .block_erase = spi_block_erase_c7,
12322 }
12323 },
12324 .printlock = spi_prettyprint_status_register_bp3_srwd,
12325 .unlock = spi_disable_blockprotect_bp3_srwd,
12326 .write = spi_chip_write_256,
12327 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
12328 .voltage = {2700, 3600},
12329 },
12330
12331 {
12332 .vendor = "Nantronics",
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012333 .name = "N25S20",
12334 .bustype = BUS_SPI,
12335 .manufacture_id = NANTRONICS_ID_NOPREFIX,
12336 .model_id = NANTRONICS_N25S20,
12337 .total_size = 256,
12338 .page_size = 256,
12339 .feature_bits = FEATURE_WRSR_WREN,
12340 .tested = TEST_UNTESTED,
12341 .probe = probe_spi_rdid,
12342 .probe_timing = TIMING_ZERO,
12343 .block_erasers =
12344 {
12345 {
12346 .eraseblocks = { {4 * 1024, 64} },
12347 .block_erase = spi_block_erase_20,
12348 }, {
12349 .eraseblocks = { {4 * 1024, 64} },
12350 .block_erase = spi_block_erase_d7,
12351 }, {
12352 .eraseblocks = { {32 * 1024, 8} },
12353 .block_erase = spi_block_erase_52,
12354 }, {
12355 .eraseblocks = { {64 * 1024, 4} },
12356 .block_erase = spi_block_erase_d8,
12357 }, {
12358 .eraseblocks = { {256 * 1024, 1} },
12359 .block_erase = spi_block_erase_60,
12360 }, {
12361 .eraseblocks = { {256 * 1024, 1} },
12362 .block_erase = spi_block_erase_c7,
12363 }
12364 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012365 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012366 .unlock = spi_disable_blockprotect_bp3_srwd,
12367 .write = spi_chip_write_256,
12368 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
12369 .voltage = {2700, 3600},
12370 },
12371
12372 {
12373 .vendor = "Nantronics",
12374 .name = "N25S40",
12375 .bustype = BUS_SPI,
12376 .manufacture_id = NANTRONICS_ID_NOPREFIX,
12377 .model_id = NANTRONICS_N25S40,
12378 .total_size = 512,
12379 .page_size = 256,
12380 .feature_bits = FEATURE_WRSR_WREN,
12381 .tested = TEST_UNTESTED,
12382 .probe = probe_spi_rdid,
12383 .probe_timing = TIMING_ZERO,
12384 .block_erasers =
12385 {
12386 {
12387 .eraseblocks = { {4 * 1024, 128} },
12388 .block_erase = spi_block_erase_20,
12389 }, {
12390 .eraseblocks = { {4 * 1024, 128} },
12391 .block_erase = spi_block_erase_d7,
12392 }, {
12393 .eraseblocks = { {32 * 1024, 16} },
12394 .block_erase = spi_block_erase_52,
12395 }, {
12396 .eraseblocks = { {64 * 1024, 8} },
12397 .block_erase = spi_block_erase_d8,
12398 }, {
12399 .eraseblocks = { {512 * 1024, 1} },
12400 .block_erase = spi_block_erase_60,
12401 }, {
12402 .eraseblocks = { {512 * 1024, 1} },
12403 .block_erase = spi_block_erase_c7,
12404 }
12405 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012406 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012407 .unlock = spi_disable_blockprotect_bp3_srwd,
12408 .write = spi_chip_write_256,
12409 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
12410 .voltage = {2700, 3600},
12411 },
12412
12413 {
12414 .vendor = "Nantronics",
12415 .name = "N25S80",
12416 .bustype = BUS_SPI,
12417 .manufacture_id = NANTRONICS_ID_NOPREFIX,
12418 .model_id = NANTRONICS_N25S80,
12419 .total_size = 1024,
12420 .page_size = 256,
12421 .feature_bits = FEATURE_WRSR_WREN,
12422 .tested = TEST_UNTESTED,
12423 .probe = probe_spi_rdid,
12424 .probe_timing = TIMING_ZERO,
12425 .block_erasers =
12426 {
12427 {
12428 .eraseblocks = { {4 * 1024, 256} },
12429 .block_erase = spi_block_erase_20,
12430 }, {
12431 .eraseblocks = { {32 * 1024, 32} },
12432 .block_erase = spi_block_erase_52,
12433 }, {
12434 .eraseblocks = { {64 * 1024, 16} },
12435 .block_erase = spi_block_erase_d8,
12436 }, {
12437 .eraseblocks = { {1024 * 1024, 1} },
12438 .block_erase = spi_block_erase_60,
12439 }, {
12440 .eraseblocks = { {1024 * 1024, 1} },
12441 .block_erase = spi_block_erase_c7,
12442 }
12443 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012444 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012445 .unlock = spi_disable_blockprotect_bp3_srwd,
12446 .write = spi_chip_write_256,
12447 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
12448 .voltage = {2700, 3600},
12449 },
12450
12451 {
Stefan Taunerf4451612013-04-19 01:59:15 +000012452 .vendor = "PMC",
12453 .name = "Pm25LD010(C)",
12454 .bustype = BUS_SPI,
12455 .manufacture_id = PMC_ID,
12456 .model_id = PMC_PM25LD010,
12457 .total_size = 128,
12458 .page_size = 256,
12459 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000012460 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +000012461 .probe = probe_spi_rdid,
12462 .probe_timing = TIMING_ZERO,
12463 .block_erasers =
12464 {
12465 {
12466 .eraseblocks = { {4 * 1024, 32} },
12467 .block_erase = spi_block_erase_20,
12468 }, {
12469 .eraseblocks = { {4 * 1024, 32} },
12470 .block_erase = spi_block_erase_d7,
12471 }, {
12472 .eraseblocks = { {32 * 1024, 4} },
12473 .block_erase = spi_block_erase_d8,
12474 }, {
12475 .eraseblocks = { {128 * 1024, 1} },
12476 .block_erase = spi_block_erase_60,
12477 }, {
12478 .eraseblocks = { {128 * 1024, 1} },
12479 .block_erase = spi_block_erase_c7,
12480 }
12481 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012482 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000012483 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
12484 .write = spi_chip_write_256,
12485 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
12486 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD010 */
12487 },
12488
12489 {
12490 .vendor = "PMC",
12491 .name = "Pm25LD020(C)",
12492 .bustype = BUS_SPI,
12493 .manufacture_id = PMC_ID,
12494 .model_id = PMC_PM25LD020,
12495 .total_size = 256,
12496 .page_size = 256,
12497 .feature_bits = FEATURE_WRSR_WREN,
Angel Ponsf5822a82018-09-30 20:09:58 +020012498 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +000012499 .probe = probe_spi_rdid,
12500 .probe_timing = TIMING_ZERO,
12501 .block_erasers =
12502 {
12503 {
12504 .eraseblocks = { {4 * 1024, 64} },
12505 .block_erase = spi_block_erase_20,
12506 }, {
12507 .eraseblocks = { {4 * 1024, 64} },
12508 .block_erase = spi_block_erase_d7,
12509 }, {
12510 .eraseblocks = { {64 * 1024, 4} },
12511 .block_erase = spi_block_erase_d8,
12512 }, {
12513 .eraseblocks = { {256 * 1024, 1} },
12514 .block_erase = spi_block_erase_60,
12515 }, {
12516 .eraseblocks = { {256 * 1024, 1} },
12517 .block_erase = spi_block_erase_c7,
12518 }
12519 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012520 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000012521 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
12522 .write = spi_chip_write_256,
12523 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
12524 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD020 */
12525 },
12526
12527 {
12528 .vendor = "PMC",
12529 .name = "Pm25LD040(C)",
12530 .bustype = BUS_SPI,
12531 .manufacture_id = PMC_ID,
12532 .model_id = PMC_PM25LV040,
12533 .total_size = 512,
12534 .page_size = 256,
12535 .feature_bits = FEATURE_WRSR_WREN,
Angel Pons05127bf2018-09-30 20:23:24 +020012536 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +000012537 .probe = probe_spi_rdid,
12538 .probe_timing = TIMING_ZERO,
12539 .block_erasers =
12540 {
12541 {
12542 .eraseblocks = { {4 * 1024, 128} },
12543 .block_erase = spi_block_erase_20,
12544 }, {
12545 .eraseblocks = { {4 * 1024, 128} },
12546 .block_erase = spi_block_erase_d7,
12547 }, {
12548 .eraseblocks = { {64 * 1024, 8} },
12549 .block_erase = spi_block_erase_d8,
12550 }, {
12551 .eraseblocks = { {512 * 1024, 1} },
12552 .block_erase = spi_block_erase_60,
12553 }, {
12554 .eraseblocks = { {512 * 1024, 1} },
12555 .block_erase = spi_block_erase_c7,
12556 }
12557 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012558 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000012559 .unlock = spi_disable_blockprotect,
12560 .write = spi_chip_write_256,
12561 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
12562 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD040 */
12563 },
12564
Steven Honeyman81a8fb72015-06-02 22:32:24 +000012565 {
12566 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012567 .name = "Pm25LD256C",
12568 .bustype = BUS_SPI,
12569 .manufacture_id = PMC_ID,
12570 .model_id = PMC_PM25LD256C,
12571 .total_size = 32,
12572 .page_size = 256,
12573 .feature_bits = FEATURE_WRSR_WREN,
12574 .tested = TEST_UNTESTED,
12575 .probe = probe_spi_rdid,
12576 .probe_timing = TIMING_ZERO,
12577 .block_erasers =
12578 {
12579 {
12580 .eraseblocks = { {4 * 1024, 8} },
12581 .block_erase = spi_block_erase_20,
12582 }, {
12583 .eraseblocks = { {4 * 1024, 8} },
12584 .block_erase = spi_block_erase_d7,
12585 }, {
12586 .eraseblocks = { {32 * 1024, 1} },
12587 .block_erase = spi_block_erase_d8,
12588 }, {
12589 .eraseblocks = { {32 * 1024, 1} },
12590 .block_erase = spi_block_erase_60,
12591 }, {
12592 .eraseblocks = { {32 * 1024, 1} },
12593 .block_erase = spi_block_erase_c7,
12594 }
12595 },
12596 .printlock = spi_prettyprint_status_register_bp2_srwd,
12597 .unlock = spi_disable_blockprotect,
12598 .write = spi_chip_write_256,
12599 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
12600 .voltage = {2700, 3600},
12601 },
12602
12603 {
12604 .vendor = "PMC",
12605 .name = "Pm25LD512(C)",
12606 .bustype = BUS_SPI,
12607 .manufacture_id = PMC_ID,
12608 .model_id = PMC_PM25LD512,
12609 .total_size = 64,
12610 .page_size = 256,
12611 .feature_bits = FEATURE_WRSR_WREN,
12612 .tested = TEST_OK_PREW,
12613 .probe = probe_spi_rdid,
12614 .probe_timing = TIMING_ZERO,
12615 .block_erasers =
12616 {
12617 {
12618 .eraseblocks = { {4 * 1024, 16} },
12619 .block_erase = spi_block_erase_20,
12620 }, {
12621 .eraseblocks = { {4 * 1024, 16} },
12622 .block_erase = spi_block_erase_d7,
12623 }, {
12624 .eraseblocks = { {32 * 1024, 2} },
12625 .block_erase = spi_block_erase_d8,
12626 }, {
12627 .eraseblocks = { {64 * 1024, 1} },
12628 .block_erase = spi_block_erase_60,
12629 }, {
12630 .eraseblocks = { {64 * 1024, 1} },
12631 .block_erase = spi_block_erase_c7,
12632 }
12633 },
12634 .printlock = spi_prettyprint_status_register_bp2_srwd,
12635 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
12636 .write = spi_chip_write_256,
12637 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
12638 .voltage = {2300, 3600},
12639 },
12640
12641 {
12642 .vendor = "PMC",
12643 .name = "Pm25LQ016",
12644 .bustype = BUS_SPI,
12645 .manufacture_id = PMC_ID,
12646 .model_id = PMC_PM25LQ016,
12647 .total_size = 2048,
12648 .page_size = 256,
12649 /* OTP: 256B total; read 0x4B, write 0xB1 */
12650 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12651 .tested = TEST_UNTESTED,
12652 .probe = probe_spi_rdid,
12653 .probe_timing = TIMING_ZERO,
12654 .block_erasers =
12655 {
12656 {
12657 .eraseblocks = { {4 * 1024, 512} },
12658 .block_erase = spi_block_erase_20,
12659 }, {
12660 .eraseblocks = { {4 * 1024, 512} },
12661 .block_erase = spi_block_erase_d7,
12662 }, {
12663 .eraseblocks = { {64 * 1024, 32} },
12664 .block_erase = spi_block_erase_d8,
12665 }, {
12666 .eraseblocks = { {2048 * 1024, 1} },
12667 .block_erase = spi_block_erase_60,
12668 }, {
12669 .eraseblocks = { {2048 * 1024, 1} },
12670 .block_erase = spi_block_erase_c7,
12671 }
12672 },
12673 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
12674 .unlock = spi_disable_blockprotect_bp3_srwd,
12675 .write = spi_chip_write_256,
12676 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12677 .voltage = {2300, 3600},
12678 },
12679
12680 {
12681 .vendor = "PMC",
Steven Honeyman81a8fb72015-06-02 22:32:24 +000012682 .name = "Pm25LQ020",
12683 .bustype = BUS_SPI,
12684 .manufacture_id = PMC_ID,
12685 .model_id = PMC_PM25LQ020,
12686 .total_size = 256,
12687 .page_size = 256,
12688 /* OTP: 256B total; read 0x4B, write 0xB1 */
12689 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12690 .tested = TEST_UNTESTED,
12691 .probe = probe_spi_rdid,
12692 .probe_timing = TIMING_ZERO,
12693 .block_erasers =
12694 {
12695 {
12696 .eraseblocks = { {4 * 1024, 64} },
12697 .block_erase = spi_block_erase_20,
12698 }, {
12699 .eraseblocks = { {4 * 1024, 64} },
12700 .block_erase = spi_block_erase_d7,
12701 }, {
12702 .eraseblocks = { {64 * 1024, 4} },
12703 .block_erase = spi_block_erase_d8,
12704 }, {
12705 .eraseblocks = { {256 * 1024, 1} },
12706 .block_erase = spi_block_erase_60,
12707 }, {
12708 .eraseblocks = { {256 * 1024, 1} },
12709 .block_erase = spi_block_erase_c7,
12710 }
12711 },
12712 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
12713 .unlock = spi_disable_blockprotect_bp3_srwd,
12714 .write = spi_chip_write_256,
12715 .read = spi_chip_read,
12716 .voltage = {2300, 3600},
12717 },
12718
12719 {
12720 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012721 .name = "Pm25LQ032C",
12722 .bustype = BUS_SPI,
12723 .manufacture_id = PMC_ID,
12724 .model_id = PMC_PM25LQ032C,
12725 .total_size = 4096,
12726 .page_size = 256,
12727 /* OTP: 64B total; read 0x4B, write 0xB1 */
12728 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12729 .tested = TEST_OK_PREW,
12730 .probe = probe_spi_rdid,
12731 .probe_timing = TIMING_ZERO,
12732 .block_erasers =
12733 {
12734 {
12735 .eraseblocks = { {4 * 1024, 1024} },
12736 .block_erase = spi_block_erase_20,
12737 }, {
12738 .eraseblocks = { {4 * 1024, 1024} },
12739 .block_erase = spi_block_erase_d7,
12740 }, {
12741 .eraseblocks = { {64 * 1024, 64} },
12742 .block_erase = spi_block_erase_d8,
12743 }, {
12744 .eraseblocks = { {4096 * 1024, 1} },
12745 .block_erase = spi_block_erase_60,
12746 }, {
12747 .eraseblocks = { {4096 * 1024, 1} },
12748 .block_erase = spi_block_erase_c7,
12749 }
12750 },
12751 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
12752 .unlock = spi_disable_blockprotect_bp3_srwd,
12753 .write = spi_chip_write_256,
12754 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12755 .voltage = {2700, 3600},
12756 },
12757
12758 {
12759 .vendor = "PMC",
Steven Honeyman81a8fb72015-06-02 22:32:24 +000012760 .name = "Pm25LQ040",
12761 .bustype = BUS_SPI,
12762 .manufacture_id = PMC_ID,
12763 .model_id = PMC_PM25LQ040,
12764 .total_size = 512,
12765 .page_size = 256,
12766 /* OTP: 256B total; read 0x4B, write 0xB1 */
12767 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12768 .tested = TEST_UNTESTED,
12769 .probe = probe_spi_rdid,
12770 .probe_timing = TIMING_ZERO,
12771 .block_erasers =
12772 {
12773 {
12774 .eraseblocks = { {4 * 1024, 128} },
12775 .block_erase = spi_block_erase_20,
12776 }, {
12777 .eraseblocks = { {4 * 1024, 128} },
12778 .block_erase = spi_block_erase_d7,
12779 }, {
12780 .eraseblocks = { {64 * 1024, 8} },
12781 .block_erase = spi_block_erase_d8,
12782 }, {
12783 .eraseblocks = { {512 * 1024, 1} },
12784 .block_erase = spi_block_erase_60,
12785 }, {
12786 .eraseblocks = { {512 * 1024, 1} },
12787 .block_erase = spi_block_erase_c7,
12788 }
12789 },
12790 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
12791 .unlock = spi_disable_blockprotect_bp3_srwd,
12792 .write = spi_chip_write_256,
12793 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12794 .voltage = {2300, 3600},
12795 },
12796
12797 {
12798 .vendor = "PMC",
12799 .name = "Pm25LQ080",
12800 .bustype = BUS_SPI,
12801 .manufacture_id = PMC_ID,
12802 .model_id = PMC_PM25LQ080,
12803 .total_size = 1024,
12804 .page_size = 256,
12805 /* OTP: 64B total; read 0x4B, write 0xB1 */
12806 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12807 .tested = TEST_UNTESTED,
12808 .probe = probe_spi_rdid,
12809 .probe_timing = TIMING_ZERO,
12810 .block_erasers =
12811 {
12812 {
12813 .eraseblocks = { {4 * 1024, 256} },
12814 .block_erase = spi_block_erase_20,
12815 }, {
12816 .eraseblocks = { {4 * 1024, 256} },
12817 .block_erase = spi_block_erase_d7,
12818 }, {
12819 .eraseblocks = { {64 * 1024, 16} },
12820 .block_erase = spi_block_erase_d8,
12821 }, {
12822 .eraseblocks = { {1024 * 1024, 1} },
12823 .block_erase = spi_block_erase_60,
12824 }, {
12825 .eraseblocks = { {1024 * 1024, 1} },
12826 .block_erase = spi_block_erase_c7,
12827 }
12828 },
12829 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
12830 .unlock = spi_disable_blockprotect_bp3_srwd,
12831 .write = spi_chip_write_256,
12832 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12833 .voltage = {2300, 3600},
12834 },
12835
12836 {
12837 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012838 .name = "Pm25LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012839 .bustype = BUS_SPI,
Stefan Taunerbecda742014-05-30 19:34:00 +000012840 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012841 .model_id = PMC_PM25LV010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012842 .total_size = 128,
12843 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012844 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerbecda742014-05-30 19:34:00 +000012845 .tested = TEST_OK_PREW,
12846 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000012847 .probe_timing = TIMING_ZERO,
12848 .block_erasers =
12849 {
12850 {
12851 .eraseblocks = { {4 * 1024, 32} },
12852 .block_erase = spi_block_erase_d7,
12853 }, {
12854 .eraseblocks = { {32 * 1024, 4} },
12855 .block_erase = spi_block_erase_d8,
12856 }, {
12857 .eraseblocks = { {128 * 1024, 1} },
12858 .block_erase = spi_block_erase_c7,
12859 }
12860 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012861 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000012862 .unlock = spi_disable_blockprotect,
12863 .write = spi_chip_write_256,
12864 .read = spi_chip_read, /* Fast read (0x0B) supported */
12865 .voltage = {2700, 3600},
12866 },
12867
12868 {
12869 .vendor = "PMC",
12870 .name = "Pm25LV010A",
12871 .bustype = BUS_SPI,
12872 .manufacture_id = PMC_ID,
12873 .model_id = PMC_PM25LV010,
12874 .total_size = 128,
12875 .page_size = 256,
12876 .feature_bits = FEATURE_WRSR_WREN,
12877 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012878 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012879 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000012880 .block_erasers =
12881 {
12882 {
12883 .eraseblocks = { {4 * 1024, 32} },
12884 .block_erase = spi_block_erase_d7,
12885 }, {
12886 .eraseblocks = { {32 * 1024, 4} },
12887 .block_erase = spi_block_erase_d8,
12888 }, {
12889 .eraseblocks = { {128 * 1024, 1} },
12890 .block_erase = spi_block_erase_c7,
12891 }
12892 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012893 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012894 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012895 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000012896 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +000012897 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012898 },
12899
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012900 {
12901 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012902 .name = "Pm25LV016B",
12903 .bustype = BUS_SPI,
12904 .manufacture_id = PMC_ID,
12905 .model_id = PMC_PM25LV016B,
12906 .total_size = 2048,
12907 .page_size = 256,
12908 .feature_bits = FEATURE_WRSR_WREN,
12909 .tested = TEST_UNTESTED,
12910 .probe = probe_spi_rdid,
12911 .probe_timing = TIMING_ZERO,
12912 .block_erasers =
12913 {
12914 {
12915 .eraseblocks = { {4 * 1024, 512} },
12916 .block_erase = spi_block_erase_d7,
12917 }, {
12918 .eraseblocks = { {4 * 1024, 512} },
12919 .block_erase = spi_block_erase_20,
12920 }, {
12921 .eraseblocks = { {64 * 1024, 32} },
12922 .block_erase = spi_block_erase_d8,
12923 }, {
12924 .eraseblocks = { {2 * 1024 * 1024, 1} },
12925 .block_erase = spi_block_erase_60,
12926 }, {
12927 .eraseblocks = { {2 * 1024 * 1024, 1} },
12928 .block_erase = spi_block_erase_c7,
12929 }
12930 },
12931 .printlock = spi_prettyprint_status_register_bp2_srwd,
12932 .unlock = spi_disable_blockprotect,
12933 .write = spi_chip_write_256,
12934 .read = spi_chip_read, /* Fast read (0x0B) supported */
12935 .voltage = {2700, 3600},
12936 },
12937
12938 {
12939 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012940 .name = "Pm25LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012941 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012942 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012943 .model_id = PMC_PM25LV020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012944 .total_size = 256,
12945 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012946 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012947 .tested = TEST_UNTESTED,
12948 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012949 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000012950 .block_erasers =
12951 {
12952 {
12953 .eraseblocks = { {4 * 1024, 64} },
12954 .block_erase = spi_block_erase_d7,
12955 }, {
12956 .eraseblocks = { {64 * 1024, 4} },
12957 .block_erase = spi_block_erase_d8,
12958 }, {
12959 .eraseblocks = { {256 * 1024, 1} },
12960 .block_erase = spi_block_erase_c7,
12961 }
12962 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012963 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012964 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012965 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012966 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012967 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000012968 },
12969
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012970 {
12971 .vendor = "PMC",
12972 .name = "Pm25LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012973 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012974 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000012975 .model_id = PMC_PM25LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012976 .total_size = 512,
12977 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000012978 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +000012979 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000012980 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000012981 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000012982 .block_erasers =
12983 {
12984 {
12985 .eraseblocks = { {4 * 1024, 128} },
12986 .block_erase = spi_block_erase_d7,
12987 }, {
12988 .eraseblocks = { {64 * 1024, 8} },
12989 .block_erase = spi_block_erase_d8,
12990 }, {
12991 .eraseblocks = { {512 * 1024, 1} },
12992 .block_erase = spi_block_erase_c7,
12993 }
12994 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012995 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000012996 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000012997 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000012998 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012999 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013000 },
13001
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013002 {
13003 .vendor = "PMC",
13004 .name = "Pm25LV080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013005 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013006 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013007 .model_id = PMC_PM25LV080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013008 .total_size = 1024,
13009 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000013010 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013011 .tested = TEST_UNTESTED,
13012 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013013 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000013014 .block_erasers =
13015 {
13016 {
13017 .eraseblocks = { {4 * 1024, 256} },
13018 .block_erase = spi_block_erase_d7,
13019 }, {
13020 .eraseblocks = { {4 * 1024, 256} },
13021 .block_erase = spi_block_erase_20,
13022 }, {
13023 .eraseblocks = { {64 * 1024, 16} },
13024 .block_erase = spi_block_erase_d8,
13025 }, {
13026 .eraseblocks = { {1024 * 1024, 1} },
13027 .block_erase = spi_block_erase_60,
13028 }, {
13029 .eraseblocks = { {1024 * 1024, 1} },
13030 .block_erase = spi_block_erase_c7,
13031 }
13032 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000013033 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013034 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000013035 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000013036 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013037 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013038 },
13039
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013040 {
13041 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013042 .name = "Pm25LV512(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013043 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013044 .manufacture_id = PMC_ID_NOPREFIX,
13045 .model_id = PMC_PM25LV512,
13046 .total_size = 64,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013047 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000013048 .feature_bits = FEATURE_WRSR_WREN,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013049 .tested = TEST_OK_PREW,
13050 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013051 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000013052 .block_erasers =
13053 {
13054 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013055 .eraseblocks = { {4 * 1024, 16} },
Sean Nelson5643c072010-01-19 03:23:07 +000013056 .block_erase = spi_block_erase_d7,
13057 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013058 .eraseblocks = { {32 * 1024, 2} },
Sean Nelson5643c072010-01-19 03:23:07 +000013059 .block_erase = spi_block_erase_d8,
13060 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013061 .eraseblocks = { {64 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +000013062 .block_erase = spi_block_erase_c7,
13063 }
13064 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100013065 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013066 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000013067 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000013068 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +000013069 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013070 },
13071
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013072 {
13073 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +000013074 .name = "Pm29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013075 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000013076 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013077 .model_id = PMC_PM29F002B,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000013078 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +000013079 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013080 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000013081 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000013082 .probe = probe_jedec,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000013083 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +000013084 .block_erasers =
13085 {
13086 {
13087 .eraseblocks = {
13088 {16 * 1024, 1},
13089 {8 * 1024, 2},
13090 {96 * 1024, 1},
13091 {128 * 1024, 1},
13092 },
Sean Nelson35727f72010-01-28 23:55:12 +000013093 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000013094 }, {
13095 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000013096 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000013097 },
13098 },
Sean Nelson35727f72010-01-28 23:55:12 +000013099 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000013100 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013101 .voltage = {4500, 5500},
Uwe Hermannf983d9f2009-06-14 21:53:26 +000013102 },
13103
13104 {
13105 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013106 .name = "Pm29F002T",
13107 .bustype = BUS_PARALLEL,
13108 .manufacture_id = PMC_ID_NOPREFIX,
13109 .model_id = PMC_PM29F002T,
13110 .total_size = 256,
13111 .page_size = 8 * 1024,
13112 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
13113 .tested = TEST_OK_PREW,
13114 .probe = probe_jedec,
13115 .probe_timing = TIMING_FIXME,
13116 .block_erasers =
13117 {
13118 {
13119 .eraseblocks = {
13120 {128 * 1024, 1},
13121 {96 * 1024, 1},
13122 {8 * 1024, 2},
13123 {16 * 1024, 1},
13124 },
13125 .block_erase = erase_sector_jedec,
13126 }, {
13127 .eraseblocks = { {256 * 1024, 1} },
13128 .block_erase = erase_chip_block_jedec,
13129 },
13130 },
13131 .write = write_jedec_1,
13132 .read = read_memmapped,
13133 .voltage = {4500, 5500},
13134 },
13135
13136 {
13137 .vendor = "PMC",
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000013138 .name = "Pm39LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013139 .bustype = BUS_PARALLEL,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000013140 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013141 .model_id = PMC_PM39F010, /* Pm39LV010 and Pm39F010 have identical IDs but different voltage */
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000013142 .total_size = 128,
13143 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013144 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000013145 .tested = TEST_OK_PREW,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000013146 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013147 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson5643c072010-01-19 03:23:07 +000013148 .block_erasers =
13149 {
13150 {
13151 .eraseblocks = { {4 * 1024, 32} },
13152 .block_erase = erase_sector_jedec,
13153 }, {
13154 .eraseblocks = { {64 * 1024, 2} },
13155 .block_erase = erase_block_jedec,
13156 }, {
13157 .eraseblocks = { {128 * 1024, 1} },
13158 .block_erase = erase_chip_block_jedec,
13159 }
13160 },
Sean Nelson35727f72010-01-28 23:55:12 +000013161 .write = write_jedec_1,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000013162 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013163 .voltage = {2700, 3600},
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000013164 },
13165
13166 {
13167 .vendor = "PMC",
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013168 .name = "Pm39LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013169 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013170 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013171 .model_id = PMC_PM39LV020,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013172 .total_size = 256,
13173 .page_size = 4096,
13174 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
13175 .tested = TEST_UNTESTED,
13176 .probe = probe_jedec,
13177 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Alan Greenfa3fcd32019-06-27 15:41:50 +100013178 .block_erasers =
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013179 {
13180 {
13181 .eraseblocks = { {4 * 1024, 64} },
13182 .block_erase = erase_sector_jedec,
13183 }, {
13184 .eraseblocks = { {64 * 1024, 4} },
13185 .block_erase = erase_block_jedec,
13186 }, {
13187 .eraseblocks = { {256 * 1024, 1} },
13188 .block_erase = erase_chip_block_jedec,
13189 }
13190 },
13191 .write = write_jedec_1,
13192 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013193 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013194 },
13195
13196 {
13197 .vendor = "PMC",
13198 .name = "Pm39LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013199 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013200 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013201 .model_id = PMC_PM39LV040,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013202 .total_size = 512,
13203 .page_size = 4096,
13204 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000013205 .tested = TEST_OK_PR,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013206 .probe = probe_jedec,
13207 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Alan Greenfa3fcd32019-06-27 15:41:50 +100013208 .block_erasers =
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013209 {
13210 {
13211 .eraseblocks = { {4 * 1024, 128} },
13212 .block_erase = erase_sector_jedec,
13213 }, {
13214 .eraseblocks = { {64 * 1024, 8} },
13215 .block_erase = erase_block_jedec,
13216 }, {
13217 .eraseblocks = { {512 * 1024, 1} },
13218 .block_erase = erase_chip_block_jedec,
13219 }
13220 },
13221 .write = write_jedec_1,
13222 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013223 .voltage = {2700, 3600},
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013224 },
Kyösti Mälkkiedab1d22012-05-20 23:32:33 +000013225
13226 {
13227 .vendor = "PMC",
13228 .name = "Pm39LV512",
13229 .bustype = BUS_PARALLEL,
13230 .manufacture_id = PMC_ID_NOPREFIX,
13231 .model_id = PMC_PM39LV512,
13232 .total_size = 64,
13233 .page_size = 4096,
13234 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
13235 .tested = TEST_OK_PREW,
13236 .probe = probe_jedec,
13237 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
13238 .block_erasers =
13239 {
13240 {
13241 .eraseblocks = { {4 * 1024, 16} },
13242 .block_erase = erase_sector_jedec,
13243 }, {
13244 .eraseblocks = { {64 * 1024, 1} },
13245 .block_erase = erase_block_jedec,
13246 }, {
13247 .eraseblocks = { {64 * 1024, 1} },
13248 .block_erase = erase_chip_block_jedec,
13249 }
13250 },
13251 .write = write_jedec_1,
13252 .read = read_memmapped,
13253 .voltage = {2700, 3600},
13254 },
13255
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013256 {
13257 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013258 .name = "Pm49FL002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013259 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013260 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013261 .model_id = PMC_PM49FL002,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013262 .total_size = 256,
13263 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013264 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013265 .tested = TEST_OK_PR,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000013266 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013267 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +000013268 .block_erasers =
13269 {
13270 {
13271 .eraseblocks = { {4 * 1024, 64} },
13272 .block_erase = erase_sector_jedec,
13273 }, {
13274 .eraseblocks = { {16 * 1024, 16} },
13275 .block_erase = erase_block_jedec,
13276 }, {
13277 .eraseblocks = { {256 * 1024, 1} },
13278 .block_erase = erase_chip_block_jedec,
13279 }
13280 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013281 .unlock = unlock_regspace2_uniform_32k,
Sean Nelson36172342010-02-27 18:01:15 +000013282 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013283 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013284 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013285 },
13286
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013287 {
13288 .vendor = "PMC",
13289 .name = "Pm49FL004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013290 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013291 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013292 .model_id = PMC_PM49FL004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013293 .total_size = 512,
13294 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013295 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner74dc73f2015-03-01 22:04:38 +000013296 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000013297 .probe = probe_jedec,
Stefan Tauner74dc73f2015-03-01 22:04:38 +000013298 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000013299 .block_erasers =
13300 {
13301 {
13302 .eraseblocks = { {4 * 1024, 128} },
13303 .block_erase = erase_sector_jedec,
13304 }, {
13305 .eraseblocks = { {64 * 1024, 8} },
13306 .block_erase = erase_block_jedec,
13307 }, {
13308 .eraseblocks = { {512 * 1024, 1} },
13309 .block_erase = erase_chip_block_jedec,
13310 }
13311 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013312 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson36172342010-02-27 18:01:15 +000013313 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013314 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013315 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013316 },
13317
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013318 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013319 .vendor = "SST",
Idwer Volleringf3607d12014-05-07 15:25:04 +000013320 .name = "SST25LF020A",
13321 .bustype = BUS_SPI,
13322 .manufacture_id = SST_ID,
13323 .model_id = SST_SST25VF020_REMS,
13324 .total_size = 256,
13325 .page_size = 256,
13326 .feature_bits = FEATURE_WRSR_EWSR,
13327 .tested = TEST_OK_PREW,
13328 .probe = probe_spi_rems,
13329 .probe_timing = TIMING_ZERO,
13330 .block_erasers =
13331 {
13332 {
13333 .eraseblocks = { {4 * 1024, 64} },
13334 .block_erase = spi_block_erase_20,
13335 }, {
13336 .eraseblocks = { {32 * 1024, 8} },
13337 .block_erase = spi_block_erase_52,
13338 }, {
13339 .eraseblocks = { {256 * 1024, 1} },
13340 .block_erase = spi_block_erase_60,
13341 },
13342 },
13343 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
13344 .unlock = spi_disable_blockprotect,
13345 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13346 .read = spi_chip_read, /* Fast read (0x0B) supported */
13347 .voltage = {2700, 3600},
13348 },
13349
13350 {
13351 .vendor = "SST",
Zeus Castro33670ba2011-08-17 09:50:11 +000013352 .name = "SST25LF040A",
13353 .bustype = BUS_SPI,
13354 .manufacture_id = SST_ID,
13355 .model_id = SST_SST25VF040_REMS,
13356 .total_size = 512,
13357 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000013358 .feature_bits = FEATURE_WRSR_EWSR,
Uwe Hermann4335ec82011-09-07 20:20:25 +000013359 .tested = TEST_OK_PREW,
Zeus Castro33670ba2011-08-17 09:50:11 +000013360 .probe = probe_spi_res2,
13361 .probe_timing = TIMING_ZERO,
13362 .block_erasers =
13363 {
13364 {
13365 .eraseblocks = { {4 * 1024, 128} },
13366 .block_erase = spi_block_erase_20,
13367 }, {
13368 .eraseblocks = { {32 * 1024, 16} },
13369 .block_erase = spi_block_erase_52,
13370 }, {
13371 .eraseblocks = { {512 * 1024, 1} },
13372 .block_erase = spi_block_erase_60,
13373 },
13374 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013375 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +000013376 .unlock = spi_disable_blockprotect,
13377 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13378 .read = spi_chip_read,
13379 .voltage = {3000, 3600},
13380 },
13381
13382 {
13383 .vendor = "SST",
Stefan Taunere34e3e82013-01-01 00:06:51 +000013384 .name = "SST25LF080(A)",
Zeus Castro33670ba2011-08-17 09:50:11 +000013385 .bustype = BUS_SPI,
13386 .manufacture_id = SST_ID,
13387 .model_id = SST_SST25VF080_REMS,
13388 .total_size = 1024,
13389 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000013390 .feature_bits = FEATURE_WRSR_EITHER,
Zeus Castro33670ba2011-08-17 09:50:11 +000013391 .tested = TEST_UNTESTED,
13392 .probe = probe_spi_res2,
13393 .probe_timing = TIMING_ZERO,
13394 .block_erasers =
13395 {
13396 {
13397 .eraseblocks = { {4 * 1024, 256} },
13398 .block_erase = spi_block_erase_20,
13399 }, {
13400 .eraseblocks = { {32 * 1024, 32} },
13401 .block_erase = spi_block_erase_52,
13402 }, {
13403 .eraseblocks = { {1024 * 1024, 1} },
13404 .block_erase = spi_block_erase_60,
13405 },
13406 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013407 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +000013408 .unlock = spi_disable_blockprotect,
13409 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13410 .read = spi_chip_read,
13411 .voltage = {3000, 3600},
13412 },
13413
13414 {
13415 .vendor = "SST",
Stefan Tauner6697f712014-08-06 15:09:15 +000013416 .name = "SST25VF010(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013417 .bustype = BUS_SPI,
Mark Marshall90021f22010-12-03 14:48:11 +000013418 .manufacture_id = SST_ID,
13419 .model_id = SST_SST25VF010_REMS,
13420 .total_size = 128,
13421 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000013422 .feature_bits = FEATURE_WRSR_EWSR,
Mark Marshall90021f22010-12-03 14:48:11 +000013423 .tested = TEST_OK_PREW,
13424 .probe = probe_spi_rems,
13425 .probe_timing = TIMING_ZERO,
13426 .block_erasers =
13427 {
13428 {
13429 .eraseblocks = { {4 * 1024, 32} },
13430 .block_erase = spi_block_erase_20,
13431 }, {
13432 .eraseblocks = { {32 * 1024, 4} },
13433 .block_erase = spi_block_erase_52,
13434 }, {
Cory Henderson370f5822013-10-19 23:09:16 +000013435 .eraseblocks = { {32 * 1024, 4} },
Stefan Tauner6697f712014-08-06 15:09:15 +000013436 .block_erase = spi_block_erase_d8, /* Supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000013437 }, {
Mark Marshall90021f22010-12-03 14:48:11 +000013438 .eraseblocks = { {128 * 1024, 1} },
13439 .block_erase = spi_block_erase_60,
Cory Henderson370f5822013-10-19 23:09:16 +000013440 }, {
13441 .eraseblocks = { {128 * 1024, 1} },
Stefan Tauner6697f712014-08-06 15:09:15 +000013442 .block_erase = spi_block_erase_c7, /* Supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000013443 },
13444 },
13445 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
13446 .unlock = spi_disable_blockprotect,
13447 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
Stefan Tauner6697f712014-08-06 15:09:15 +000013448 .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000013449 .voltage = {2700, 3600},
13450 },
13451
13452 {
13453 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013454 .name = "SST25VF016B",
13455 .bustype = BUS_SPI,
13456 .manufacture_id = SST_ID,
13457 .model_id = SST_SST25VF016B,
13458 .total_size = 2048,
13459 .page_size = 256,
13460 .feature_bits = FEATURE_WRSR_EITHER,
13461 .tested = TEST_OK_PREW,
13462 .probe = probe_spi_rdid,
13463 .probe_timing = TIMING_ZERO,
13464 .block_erasers =
13465 {
13466 {
13467 .eraseblocks = { {4 * 1024, 512} },
13468 .block_erase = spi_block_erase_20,
13469 }, {
13470 .eraseblocks = { {32 * 1024, 64} },
13471 .block_erase = spi_block_erase_52,
13472 }, {
13473 .eraseblocks = { {64 * 1024, 32} },
13474 .block_erase = spi_block_erase_d8,
13475 }, {
13476 .eraseblocks = { {2 * 1024 * 1024, 1} },
13477 .block_erase = spi_block_erase_60,
13478 }, {
13479 .eraseblocks = { {2 * 1024 * 1024, 1} },
13480 .block_erase = spi_block_erase_c7,
13481 },
13482 },
13483 .printlock = spi_prettyprint_status_register_sst25vf016,
13484 .unlock = spi_disable_blockprotect,
13485 .write = spi_aai_write,
13486 .read = spi_chip_read,
13487 .voltage = {2700, 3600},
13488 },
13489
13490 {
13491 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +000013492 .name = "SST25VF020",
13493 .bustype = BUS_SPI,
13494 .manufacture_id = SST_ID,
13495 .model_id = SST_SST25VF020_REMS,
13496 .total_size = 256,
13497 .page_size = 256,
13498 .feature_bits = FEATURE_WRSR_EWSR,
13499 .tested = TEST_UNTESTED,
13500 .probe = probe_spi_rems,
13501 .probe_timing = TIMING_ZERO,
13502 .block_erasers =
13503 {
13504 {
13505 .eraseblocks = { {4 * 1024, 64} },
13506 .block_erase = spi_block_erase_20,
13507 }, {
13508 .eraseblocks = { {32 * 1024, 8} },
13509 .block_erase = spi_block_erase_52,
13510 }, {
13511 .eraseblocks = { {256 * 1024, 1} },
13512 .block_erase = spi_block_erase_60,
13513 },
13514 },
13515 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
13516 .unlock = spi_disable_blockprotect,
13517 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13518 .read = spi_chip_read, /* only */
13519 .voltage = {2700, 3600},
13520 },
13521
13522 {
13523 .vendor = "SST",
13524 .name = "SST25VF020B",
13525 .bustype = BUS_SPI,
13526 .manufacture_id = SST_ID,
13527 .model_id = SST_SST25VF020B,
13528 .total_size = 256,
13529 .page_size = 256,
13530 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000013531 .tested = TEST_OK_PREW,
Cory Henderson370f5822013-10-19 23:09:16 +000013532 .probe = probe_spi_rdid,
13533 .probe_timing = TIMING_ZERO,
13534 .block_erasers =
13535 {
13536 {
13537 .eraseblocks = { {4 * 1024, 64} },
13538 .block_erase = spi_block_erase_20,
13539 }, {
13540 .eraseblocks = { {32 * 1024, 8} },
13541 .block_erase = spi_block_erase_52,
13542 }, {
13543 .eraseblocks = { {64 * 1024, 4} },
13544 .block_erase = spi_block_erase_d8,
13545 }, {
13546 .eraseblocks = { {256 * 1024, 1} },
13547 .block_erase = spi_block_erase_60,
13548 }, {
13549 .eraseblocks = { {256 * 1024, 1} },
13550 .block_erase = spi_block_erase_c7,
13551 },
13552 },
13553 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 and 2nd SR */
13554 .unlock = spi_disable_blockprotect, /* FIXME: 2nd SR */
13555 .write = spi_aai_write, /* AAI supported (0xAD) */
13556 .read = spi_chip_read, /* Fast read (0x0B) supported */
13557 .voltage = {2700, 3600},
13558 },
13559
13560 {
13561 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013562 .name = "SST25VF032B",
13563 .bustype = BUS_SPI,
13564 .manufacture_id = SST_ID,
13565 .model_id = SST_SST25VF032B,
13566 .total_size = 4096,
13567 .page_size = 256,
13568 .feature_bits = FEATURE_WRSR_EWSR,
13569 .tested = TEST_OK_PREW,
13570 .probe = probe_spi_rdid,
13571 .probe_timing = TIMING_ZERO,
13572 .block_erasers =
13573 {
13574 {
13575 .eraseblocks = { {4 * 1024, 1024} },
13576 .block_erase = spi_block_erase_20,
13577 }, {
13578 .eraseblocks = { {32 * 1024, 128} },
13579 .block_erase = spi_block_erase_52,
13580 }, {
13581 .eraseblocks = { {64 * 1024, 64} },
13582 .block_erase = spi_block_erase_d8,
13583 }, {
13584 .eraseblocks = { {4 * 1024 * 1024, 1} },
13585 .block_erase = spi_block_erase_60,
13586 }, {
13587 .eraseblocks = { {4 * 1024 * 1024, 1} },
13588 .block_erase = spi_block_erase_c7,
13589 },
13590 },
13591 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
13592 .unlock = spi_disable_blockprotect,
13593 .write = spi_aai_write,
13594 .read = spi_chip_read,
13595 .voltage = {2700, 3600},
13596 },
13597
13598 {
13599 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +000013600 .name = "SST25VF040",
13601 .bustype = BUS_SPI,
13602 .manufacture_id = SST_ID,
13603 .model_id = SST_SST25VF040_REMS,
13604 .total_size = 512,
13605 .page_size = 256,
13606 .feature_bits = FEATURE_WRSR_EWSR,
13607 .tested = TEST_OK_PR,
13608 .probe = probe_spi_rems,
13609 .probe_timing = TIMING_ZERO,
13610 .block_erasers =
13611 {
13612 {
13613 .eraseblocks = { {4 * 1024, 128} },
13614 .block_erase = spi_block_erase_20,
13615 }, {
13616 .eraseblocks = { {32 * 1024, 16} },
13617 .block_erase = spi_block_erase_52,
13618 }, {
13619 .eraseblocks = { {512 * 1024, 1} },
13620 .block_erase = spi_block_erase_60,
Mark Marshall90021f22010-12-03 14:48:11 +000013621 },
13622 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013623 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Mark Marshall90021f22010-12-03 14:48:11 +000013624 .unlock = spi_disable_blockprotect,
Cory Henderson370f5822013-10-19 23:09:16 +000013625 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13626 .read = spi_chip_read,
13627 .voltage = {2700, 3600},
13628 },
13629
13630 {
13631 .vendor = "SST",
13632 .name = "SST25VF040B",
13633 .bustype = BUS_SPI,
13634 .manufacture_id = SST_ID,
13635 .model_id = SST_SST25VF040B,
13636 .total_size = 512,
13637 .page_size = 256,
13638 .feature_bits = FEATURE_WRSR_EWSR,
13639 .tested = TEST_OK_PREW,
13640 .probe = probe_spi_rdid,
13641 .probe_timing = TIMING_ZERO,
13642 .block_erasers =
13643 {
13644 {
13645 .eraseblocks = { {4 * 1024, 128} },
13646 .block_erase = spi_block_erase_20,
13647 }, {
13648 .eraseblocks = { {32 * 1024, 16} },
13649 .block_erase = spi_block_erase_52,
13650 }, {
13651 .eraseblocks = { {64 * 1024, 8} },
13652 .block_erase = spi_block_erase_d8,
13653 }, {
13654 .eraseblocks = { {512 * 1024, 1} },
13655 .block_erase = spi_block_erase_60,
13656 }, {
13657 .eraseblocks = { {512 * 1024, 1} },
13658 .block_erase = spi_block_erase_c7,
13659 },
13660 },
13661 .printlock = spi_prettyprint_status_register_sst25vf040b,
13662 .unlock = spi_disable_blockprotect,
13663 .write = spi_aai_write, /* AAI supported (0xAD) */
13664 .read = spi_chip_read, /* Fast read (0x0B) supported */
13665 .voltage = {2700, 3600},
13666 },
13667
13668 {
13669 .vendor = "SST",
13670 .name = "SST25VF040B.REMS",
13671 .bustype = BUS_SPI,
13672 .manufacture_id = SST_ID,
13673 .model_id = SST_SST25VF040B_REMS,
13674 .total_size = 512,
13675 .page_size = 256,
13676 .feature_bits = FEATURE_WRSR_EWSR,
13677 .tested = TEST_OK_PREW,
13678 .probe = probe_spi_rems,
13679 .probe_timing = TIMING_ZERO,
13680 .block_erasers =
13681 {
13682 {
13683 .eraseblocks = { {4 * 1024, 128} },
13684 .block_erase = spi_block_erase_20,
13685 }, {
13686 .eraseblocks = { {32 * 1024, 16} },
13687 .block_erase = spi_block_erase_52,
13688 }, {
13689 .eraseblocks = { {64 * 1024, 8} },
13690 .block_erase = spi_block_erase_d8,
13691 }, {
13692 .eraseblocks = { {512 * 1024, 1} },
13693 .block_erase = spi_block_erase_60,
13694 }, {
13695 .eraseblocks = { {512 * 1024, 1} },
13696 .block_erase = spi_block_erase_c7,
13697 },
13698 },
13699 .printlock = spi_prettyprint_status_register_sst25vf040b,
13700 .unlock = spi_disable_blockprotect,
13701 .write = spi_aai_write,
13702 .read = spi_chip_read,
13703 .voltage = {2700, 3600},
13704 },
13705
13706 {
13707 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013708 .name = "SST25VF064C",
Ben Gardnerbcf61092015-11-22 02:23:31 +000013709 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013710 .manufacture_id = SST_ID,
13711 .model_id = SST_SST25VF064C,
13712 .total_size = 8192,
Ben Gardnerbcf61092015-11-22 02:23:31 +000013713 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013714 .feature_bits = FEATURE_WRSR_EWSR,
Ben Gardnerbcf61092015-11-22 02:23:31 +000013715 .tested = TEST_OK_PREW,
13716 .probe = probe_spi_rdid,
13717 .probe_timing = TIMING_ZERO,
13718 .block_erasers =
13719 {
13720 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013721 .eraseblocks = { {4 * 1024, 2048} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000013722 .block_erase = spi_block_erase_20,
13723 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013724 .eraseblocks = { {32 * 1024, 256} },
13725 .block_erase = spi_block_erase_52,
13726 }, {
13727 .eraseblocks = { {64 * 1024, 128} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000013728 .block_erase = spi_block_erase_d8,
13729 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013730 .eraseblocks = { {8 * 1024 * 1024, 1} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000013731 .block_erase = spi_block_erase_60,
13732 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013733 .eraseblocks = { {8 * 1024 * 1024, 1} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000013734 .block_erase = spi_block_erase_c7,
13735 },
13736 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100013737 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
13738 .unlock = spi_disable_blockprotect,
Ben Gardnerbcf61092015-11-22 02:23:31 +000013739 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013740 .read = spi_chip_read,
13741 .voltage = {2700, 3600},
Ben Gardnerbcf61092015-11-22 02:23:31 +000013742 },
13743
13744 {
13745 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +000013746 .name = "SST25VF080B",
13747 .bustype = BUS_SPI,
13748 .manufacture_id = SST_ID,
13749 .model_id = SST_SST25VF080B,
13750 .total_size = 1024,
13751 .page_size = 256,
13752 .feature_bits = FEATURE_WRSR_EWSR,
13753 .tested = TEST_OK_PREW,
13754 .probe = probe_spi_rdid,
13755 .probe_timing = TIMING_ZERO,
13756 .block_erasers =
13757 {
13758 {
13759 .eraseblocks = { {4 * 1024, 256} },
13760 .block_erase = spi_block_erase_20,
13761 }, {
13762 .eraseblocks = { {32 * 1024, 32} },
13763 .block_erase = spi_block_erase_52,
13764 }, {
13765 .eraseblocks = { {64 * 1024, 16} },
13766 .block_erase = spi_block_erase_d8,
13767 }, {
13768 .eraseblocks = { {1024 * 1024, 1} },
13769 .block_erase = spi_block_erase_60,
13770 }, {
13771 .eraseblocks = { {1024 * 1024, 1} },
13772 .block_erase = spi_block_erase_c7,
13773 },
13774 },
13775 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
13776 .unlock = spi_disable_blockprotect,
13777 .write = spi_aai_write,
Mark Marshall90021f22010-12-03 14:48:11 +000013778 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000013779 .voltage = {2700, 3600},
Mark Marshall90021f22010-12-03 14:48:11 +000013780 },
13781
13782 {
13783 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013784 .name = "SST25VF512(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013785 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013786 .manufacture_id = SST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013787 .model_id = SST_SST25VF512_REMS,
13788 .total_size = 64,
13789 .page_size = 256,
13790 .feature_bits = FEATURE_WRSR_EWSR,
13791 .tested = TEST_OK_PREW,
13792 .probe = probe_spi_rems,
13793 .probe_timing = TIMING_ZERO,
13794 .block_erasers =
13795 {
13796 {
13797 .eraseblocks = { {4 * 1024, 16} },
13798 .block_erase = spi_block_erase_20,
13799 }, {
13800 .eraseblocks = { {32 * 1024, 2} },
13801 .block_erase = spi_block_erase_52,
13802 }, {
13803 .eraseblocks = { {32 * 1024, 2} },
13804 .block_erase = spi_block_erase_d8, /* Supported by SST25VF512A only */
13805 }, {
13806 .eraseblocks = { {64 * 1024, 1} },
13807 .block_erase = spi_block_erase_60,
13808 }, {
13809 .eraseblocks = { {64 * 1024, 1} },
13810 .block_erase = spi_block_erase_c7, /* Supported by SST25VF512A only */
13811 },
13812 },
13813 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
13814 .unlock = spi_disable_blockprotect,
13815 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13816 .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF512A only */
13817 .voltage = {2700, 3600},
13818 },
13819
13820 {
13821 .vendor = "SST",
13822 .name = "SST25WF010",
13823 .bustype = BUS_SPI,
13824 .manufacture_id = SST_ID,
13825 .model_id = SST_SST25WF010,
13826 .total_size = 128,
13827 .page_size = 256,
13828 .feature_bits = FEATURE_WRSR_EITHER,
13829 .tested = TEST_UNTESTED,
13830 .probe = probe_spi_rdid,
13831 .probe_timing = TIMING_ZERO,
13832 .block_erasers =
13833 {
13834 {
13835 .eraseblocks = { {4 * 1024, 32} },
13836 .block_erase = spi_block_erase_20,
13837 }, {
13838 .eraseblocks = { {32 * 1024, 4} },
13839 .block_erase = spi_block_erase_52,
13840 }, {
13841 .eraseblocks = { {1024 * 128, 1} },
13842 .block_erase = spi_block_erase_60,
13843 }, {
13844 .eraseblocks = { {1024 * 128, 1} },
13845 .block_erase = spi_block_erase_c7,
13846 },
13847 },
13848 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
13849 .unlock = spi_disable_blockprotect_bp2_srwd,
13850 .write = spi_aai_write,
13851 .read = spi_chip_read, /* Fast read (0x0B) supported */
13852 .voltage = {1650, 1950},
13853 },
13854
13855 {
13856 .vendor = "SST",
13857 .name = "SST25WF020",
13858 .bustype = BUS_SPI,
13859 .manufacture_id = SST_ID,
13860 .model_id = SST_SST25WF020,
13861 .total_size = 256,
13862 .page_size = 256,
13863 .feature_bits = FEATURE_WRSR_EITHER,
13864 .tested = TEST_UNTESTED,
13865 .probe = probe_spi_rdid,
13866 .probe_timing = TIMING_ZERO,
13867 .block_erasers =
13868 {
13869 {
13870 .eraseblocks = { {4 * 1024, 64} },
13871 .block_erase = spi_block_erase_20,
13872 }, {
13873 .eraseblocks = { {32 * 1024, 8} },
13874 .block_erase = spi_block_erase_52,
13875 }, {
13876 .eraseblocks = { {64 * 1024, 4} },
13877 .block_erase = spi_block_erase_d8,
13878 }, {
13879 .eraseblocks = { {1024 * 256, 1} },
13880 .block_erase = spi_block_erase_60,
13881 }, {
13882 .eraseblocks = { {1024 * 256, 1} },
13883 .block_erase = spi_block_erase_c7,
13884 },
13885 },
13886 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
13887 .unlock = spi_disable_blockprotect_bp2_srwd,
13888 .write = spi_aai_write,
13889 .read = spi_chip_read, /* Fast read (0x0B) supported */
13890 .voltage = {1650, 1950},
13891 },
13892
13893 {
13894 .vendor = "SST",
13895 .name = "SST25WF020A",
13896 .bustype = BUS_SPI,
13897 .manufacture_id = SANYO_ID, /* See flashchips.h */
13898 .model_id = SST_SST25WF020A,
13899 .total_size = 256,
13900 .page_size = 256,
13901 .feature_bits = FEATURE_WRSR_WREN,
13902 .tested = TEST_UNTESTED,
13903 .probe = probe_spi_rdid,
13904 .probe_timing = TIMING_ZERO,
13905 .block_erasers =
13906 {
13907 {
13908 .eraseblocks = { {4 * 1024, 64} },
13909 .block_erase = spi_block_erase_20,
13910 }, {
13911 .eraseblocks = { {64 * 1024, 4} },
13912 .block_erase = spi_block_erase_d8,
13913 }, {
13914 .eraseblocks = { {256 * 1024, 1} },
13915 .block_erase = spi_block_erase_60,
13916 }, {
13917 .eraseblocks = { {256 * 1024, 1} },
13918 .block_erase = spi_block_erase_c7,
13919 },
13920 },
13921 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
13922 .unlock = spi_disable_blockprotect_bp2_srwd,
13923 .write = spi_chip_write_256,
13924 .read = spi_chip_read, /* Fast read (0x0B) supported */
13925 .voltage = {1650, 1950},
13926 },
13927
13928 {
13929 .vendor = "SST",
13930 .name = "SST25WF040",
13931 .bustype = BUS_SPI,
13932 .manufacture_id = SST_ID,
13933 .model_id = SST_SST25WF040,
13934 .total_size = 512,
13935 .page_size = 256,
13936 .feature_bits = FEATURE_WRSR_EITHER,
13937 .tested = TEST_UNTESTED,
13938 .probe = probe_spi_rdid,
13939 .probe_timing = TIMING_ZERO,
13940 .block_erasers =
13941 {
13942 {
13943 .eraseblocks = { {4 * 1024, 128} },
13944 .block_erase = spi_block_erase_20,
13945 }, {
13946 .eraseblocks = { {32 * 1024, 16} },
13947 .block_erase = spi_block_erase_52,
13948 }, {
13949 .eraseblocks = { {64 * 1024, 8} },
13950 .block_erase = spi_block_erase_d8,
13951 }, {
13952 .eraseblocks = { {1024 * 512, 1} },
13953 .block_erase = spi_block_erase_60,
13954 }, {
13955 .eraseblocks = { {1024 * 512, 1} },
13956 .block_erase = spi_block_erase_c7,
13957 },
13958 },
13959 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
13960 .unlock = spi_disable_blockprotect_bp2_srwd,
13961 .write = spi_aai_write,
13962 .read = spi_chip_read, /* Fast read (0x0B) supported */
13963 .voltage = {1650, 1950},
13964 },
13965
13966 {
13967 .vendor = "SST",
13968 .name = "SST25WF040B",
13969 .bustype = BUS_SPI,
13970 .manufacture_id = SANYO_ID, /* See flashchips.h */
13971 .model_id = SST_SST25WF040B,
13972 .total_size = 512,
13973 .page_size = 256,
13974 .feature_bits = FEATURE_WRSR_WREN,
13975 .tested = TEST_UNTESTED,
13976 .probe = probe_spi_rdid,
13977 .probe_timing = TIMING_ZERO,
13978 .block_erasers =
13979 {
13980 {
13981 .eraseblocks = { {4 * 1024, 128} },
13982 .block_erase = spi_block_erase_20,
13983 }, {
13984 .eraseblocks = { {64 * 1024, 8} },
13985 .block_erase = spi_block_erase_d8,
13986 }, {
13987 .eraseblocks = { {512 * 1024, 1} },
13988 .block_erase = spi_block_erase_60,
13989 }, {
13990 .eraseblocks = { {512 * 1024, 1} },
13991 .block_erase = spi_block_erase_c7,
13992 },
13993 },
13994 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
13995 .unlock = spi_disable_blockprotect_bp2_srwd,
13996 .write = spi_chip_write_256,
13997 .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */
13998 .voltage = {1650, 1950},
13999 },
14000
14001 {
14002 .vendor = "SST",
14003 .name = "SST25WF080",
14004 .bustype = BUS_SPI,
14005 .manufacture_id = SST_ID,
14006 .model_id = SST_SST25WF080,
14007 .total_size = 1024,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014008 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000014009 .feature_bits = FEATURE_WRSR_EITHER,
Mark Marshall90021f22010-12-03 14:48:11 +000014010 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014011 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000014012 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014013 .block_erasers =
14014 {
14015 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014016 .eraseblocks = { {4 * 1024, 256} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014017 .block_erase = spi_block_erase_20,
14018 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014019 .eraseblocks = { {32 * 1024, 32} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014020 .block_erase = spi_block_erase_52,
14021 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014022 .eraseblocks = { {64 * 1024, 16} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014023 .block_erase = spi_block_erase_d8,
14024 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014025 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014026 .block_erase = spi_block_erase_60,
14027 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014028 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014029 .block_erase = spi_block_erase_c7,
14030 },
14031 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100014032 .printlock = spi_prettyprint_status_register_sst25, /* *does* have a BP3 but it is useless */
14033 .unlock = spi_disable_blockprotect_bp3_srwd,
Joshua Roys87955bf2011-08-01 18:39:28 +000014034 .write = spi_aai_write,
Alan Green1f9cc7d2019-07-01 11:10:45 +100014035 .read = spi_chip_read, /* Fast read (0x0B) supported */
14036 .voltage = {1650, 1950},
FENG yu ningff692fb2008-12-08 18:15:10 +000014037 },
14038
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014039 {
14040 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100014041 .name = "SST25WF080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014042 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +100014043 .manufacture_id = SANYO_ID, /* See flashchips.h */
14044 .model_id = SST_SST25WF080B,
14045 .total_size = 1024,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014046 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100014047 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerfcf6a8c2011-05-18 01:32:00 +000014048 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014049 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000014050 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014051 .block_erasers =
14052 {
14053 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014054 .eraseblocks = { {4 * 1024, 256} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014055 .block_erase = spi_block_erase_20,
14056 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014057 .eraseblocks = { {64 * 1024, 16} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014058 .block_erase = spi_block_erase_d8,
14059 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014060 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014061 .block_erase = spi_block_erase_60,
14062 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014063 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014064 .block_erase = spi_block_erase_c7,
14065 },
14066 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100014067 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
14068 .unlock = spi_disable_blockprotect_bp2_srwd,
Helge Wagner1db7a442010-10-05 22:29:08 +000014069 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100014070 .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */
14071 .voltage = {1650, 1950},
14072 },
14073
14074 {
14075 .vendor = "SST",
14076 .name = "SST25WF512",
14077 .bustype = BUS_SPI,
14078 .manufacture_id = SST_ID,
14079 .model_id = SST_SST25WF512,
14080 .total_size = 64,
14081 .page_size = 256,
14082 .feature_bits = FEATURE_WRSR_EITHER,
14083 .tested = TEST_UNTESTED,
14084 .probe = probe_spi_rdid,
14085 .probe_timing = TIMING_ZERO,
14086 .block_erasers =
14087 {
14088 {
14089 .eraseblocks = { {4 * 1024, 16} },
14090 .block_erase = spi_block_erase_20,
14091 }, {
14092 .eraseblocks = { {32 * 1024, 2} },
14093 .block_erase = spi_block_erase_52,
14094 }, {
14095 .eraseblocks = { {1024 * 64, 1} },
14096 .block_erase = spi_block_erase_60,
14097 }, {
14098 .eraseblocks = { {1024 * 64, 1} },
14099 .block_erase = spi_block_erase_c7,
14100 },
14101 },
14102 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
14103 .unlock = spi_disable_blockprotect_bp2_srwd,
14104 .write = spi_aai_write,
14105 .read = spi_chip_read, /* Fast read (0x0B) supported */
14106 .voltage = {1650, 1950},
Ed Swierk86f4e6d2010-07-21 15:02:22 +000014107 },
14108
14109 {
14110 .vendor = "SST",
Nico Hubera2eaf4a2023-02-15 22:56:53 +010014111 .name = "SST26VF016",
14112 .bustype = BUS_SPI,
14113 .manufacture_id = SST_ID,
14114 .model_id = SST_SST26VF016,
14115 .total_size = 2048,
14116 .page_size = 256,
14117 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
14118 .tested = TEST_UNTESTED,
14119 .probe = probe_spi_rdid,
14120 .probe_timing = TIMING_ZERO,
14121 .block_erasers =
14122 {
14123 {
14124 .eraseblocks = { {4 * 1024, 512} },
14125 .block_erase = spi_block_erase_20,
14126 }, {
14127 .eraseblocks = {
14128 {8 * 1024, 4},
14129 {32 * 1024, 1},
14130 {64 * 1024, 30},
14131 {32 * 1024, 1},
14132 {8 * 1024, 4},
14133 },
14134 .block_erase = spi_block_erase_d8,
14135 }, {
14136 .eraseblocks = { {2 * 1024 * 1024, 1} },
14137 .block_erase = spi_block_erase_c7,
14138 },
14139 },
14140 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14141 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
14142 .write = spi_chip_write_256, /* Multi I/O supported */
14143 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
14144 .voltage = {2700, 3600},
14145 },
14146
14147 {
14148 .vendor = "SST",
Wei Hu25584de2018-04-30 14:02:08 -070014149 .name = "SST26VF016B(A)",
14150 .bustype = BUS_SPI,
14151 .manufacture_id = SST_ID,
14152 .model_id = SST_SST26VF016B,
14153 .total_size = 2048,
14154 .page_size = 256,
14155 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
14156 .tested = TEST_OK_PREW,
14157 .probe = probe_spi_rdid,
14158 .probe_timing = TIMING_ZERO,
14159 .block_erasers =
14160 {
14161 {
14162 .eraseblocks = { {4 * 1024, 512} },
14163 .block_erase = spi_block_erase_20,
14164 }, {
14165 .eraseblocks = {
14166 {8 * 1024, 4},
14167 {32 * 1024, 1},
14168 {64 * 1024, 30},
14169 {32 * 1024, 1},
14170 {8 * 1024, 4},
14171 },
14172 .block_erase = spi_block_erase_d8,
14173 }, {
14174 .eraseblocks = { {2 * 1024 * 1024, 1} },
14175 .block_erase = spi_block_erase_c7,
14176 },
14177 },
14178 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14179 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
14180 .write = spi_chip_write_256, /* Multi I/O supported */
14181 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
14182 .voltage = {2700, 3600},
14183 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100014184
Wei Hu25584de2018-04-30 14:02:08 -070014185 {
14186 .vendor = "SST",
Nico Hubera2eaf4a2023-02-15 22:56:53 +010014187 .name = "SST26VF032",
14188 .bustype = BUS_SPI,
14189 .manufacture_id = SST_ID,
14190 .model_id = SST_SST26VF032,
14191 .total_size = 4096,
14192 .page_size = 256,
14193 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
14194 .tested = TEST_UNTESTED,
14195 .probe = probe_spi_rdid,
14196 .probe_timing = TIMING_ZERO,
14197 .block_erasers =
14198 {
14199 {
14200 .eraseblocks = { {4 * 1024, 1024} },
14201 .block_erase = spi_block_erase_20,
14202 }, {
14203 .eraseblocks = {
14204 {8 * 1024, 4},
14205 {32 * 1024, 1},
14206 {64 * 1024, 62},
14207 {32 * 1024, 1},
14208 {8 * 1024, 4},
14209 },
14210 .block_erase = spi_block_erase_d8,
14211 }, {
14212 .eraseblocks = { {4 * 1024 * 1024, 1} },
14213 .block_erase = spi_block_erase_c7,
14214 },
14215 },
14216 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14217 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
14218 .write = spi_chip_write_256, /* Multi I/O supported */
14219 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
14220 .voltage = {2700, 3600},
14221 },
14222
14223 {
14224 .vendor = "SST",
Wei Hu25584de2018-04-30 14:02:08 -070014225 .name = "SST26VF032B(A)",
14226 .bustype = BUS_SPI,
14227 .manufacture_id = SST_ID,
14228 .model_id = SST_SST26VF032B,
14229 .total_size = 4096,
14230 .page_size = 256,
14231 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
14232 .tested = TEST_UNTESTED,
14233 .probe = probe_spi_rdid,
14234 .probe_timing = TIMING_ZERO,
14235 .block_erasers =
14236 {
14237 {
14238 .eraseblocks = { {4 * 1024, 1024} },
14239 .block_erase = spi_block_erase_20,
14240 }, {
14241 .eraseblocks = {
14242 {8 * 1024, 4},
14243 {32 * 1024, 1},
14244 {64 * 1024, 62},
14245 {32 * 1024, 1},
14246 {8 * 1024, 4},
14247 },
14248 .block_erase = spi_block_erase_d8,
14249 }, {
14250 .eraseblocks = { {4 * 1024 * 1024, 1} },
14251 .block_erase = spi_block_erase_c7,
14252 },
14253 },
14254 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14255 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
14256 .write = spi_chip_write_256, /* Multi I/O supported */
14257 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
14258 .voltage = {2700, 3600},
14259 },
14260
Wei Hu25584de2018-04-30 14:02:08 -070014261 {
14262 .vendor = "SST",
14263 .name = "SST26VF064B(A)",
14264 .bustype = BUS_SPI,
14265 .manufacture_id = SST_ID,
14266 .model_id = SST_SST26VF064B,
14267 .total_size = 8192,
14268 .page_size = 256,
14269 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
14270 .tested = TEST_OK_PREW,
14271 .probe = probe_spi_rdid,
14272 .probe_timing = TIMING_ZERO,
14273 .block_erasers =
14274 {
14275 {
14276 .eraseblocks = { {4 * 1024, 2048} },
14277 .block_erase = spi_block_erase_20,
14278 }, {
14279 .eraseblocks = {
14280 {8 * 1024, 4},
14281 {32 * 1024, 1},
14282 {64 * 1024, 126},
14283 {32 * 1024, 1},
14284 {8 * 1024, 4},
14285 },
14286 .block_erase = spi_block_erase_d8,
14287 }, {
14288 .eraseblocks = { {8 * 1024 * 1024, 1} },
14289 .block_erase = spi_block_erase_c7,
14290 },
14291 },
14292 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14293 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
14294 .write = spi_chip_write_256, /* Multi I/O supported */
14295 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
14296 .voltage = {2700, 3600},
14297 },
14298
14299 {
14300 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014301 .name = "SST28SF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014302 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014303 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014304 .model_id = SST_SST28SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014305 .total_size = 512,
14306 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000014307 .feature_bits = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014308 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014309 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014310 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014311 .block_erasers =
14312 {
14313 {
14314 .eraseblocks = { {128, 4096} },
14315 .block_erase = erase_sector_28sf040,
14316 }, {
14317 .eraseblocks = { {512 * 1024, 1} },
14318 .block_erase = erase_chip_28sf040,
14319 }
14320 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014321 .unlock = unprotect_28sf040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014322 .write = write_28sf040,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014323 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014324 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014325 },
14326
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014327 {
14328 .vendor = "SST",
14329 .name = "SST29EE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014330 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014331 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014332 .model_id = SST_SST29EE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014333 .total_size = 128,
14334 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000014335 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000014336 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014337 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000014338 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014339 .block_erasers =
14340 {
14341 {
14342 .eraseblocks = { {128 * 1024, 1} },
14343 .block_erase = erase_chip_block_jedec,
14344 }
14345 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014346 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014347 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014348 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014349 },
14350
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014351 {
14352 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014353 .name = "SST29EE020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014354 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014355 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014356 .model_id = SST_SST29EE020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014357 .total_size = 256,
14358 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000014359 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000014360 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014361 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014362 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014363 .block_erasers =
14364 {
14365 {
14366 .eraseblocks = { {256 * 1024, 1} },
14367 .block_erase = erase_chip_block_jedec,
14368 }
14369 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014370 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014371 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014372 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014373 },
14374
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014375 {
14376 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100014377 .name = "SST29LE010",
14378 .bustype = BUS_PARALLEL,
14379 .manufacture_id = SST_ID,
14380 .model_id = SST_SST29LE010,
14381 .total_size = 128,
14382 .page_size = 128,
14383 .feature_bits = FEATURE_LONG_RESET,
14384 .tested = TEST_UNTESTED,
14385 .probe = probe_jedec,
14386 .probe_timing = 10,
14387 .block_erasers =
14388 {
14389 {
14390 .eraseblocks = { {128 * 1024, 1} },
14391 .block_erase = erase_chip_block_jedec,
14392 }
14393 },
14394 .write = write_jedec,
14395 .read = read_memmapped,
14396 .voltage = {3000, 3600},
14397 },
14398
14399 {
14400 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014401 .name = "SST29LE020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014402 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014403 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014404 .model_id = SST_SST29LE020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014405 .total_size = 256,
14406 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000014407 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000014408 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014409 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000014410 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014411 .block_erasers =
14412 {
14413 {
14414 .eraseblocks = { {256 * 1024, 1} },
14415 .block_erase = erase_chip_block_jedec,
14416 }
14417 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014418 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014419 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014420 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014421 },
14422
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014423 {
14424 .vendor = "SST",
14425 .name = "SST39SF010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014426 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014427 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014428 .model_id = SST_SST39SF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014429 .total_size = 128,
14430 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014431 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000014432 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014433 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000014434 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014435 .block_erasers =
14436 {
14437 {
14438 .eraseblocks = { {4 * 1024, 32} },
14439 .block_erase = erase_sector_jedec,
14440 }, {
14441 .eraseblocks = { {128 * 1024, 1} },
14442 .block_erase = erase_chip_block_jedec,
14443 }
14444 },
Sean Nelson35727f72010-01-28 23:55:12 +000014445 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014446 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014447 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014448 },
14449
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014450 {
14451 .vendor = "SST",
14452 .name = "SST39SF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014453 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014454 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014455 .model_id = SST_SST39SF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014456 .total_size = 256,
14457 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014458 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann19f46f22011-06-18 22:56:14 +000014459 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014460 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014461 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014462 .block_erasers =
14463 {
14464 {
14465 .eraseblocks = { {4 * 1024, 64} },
14466 .block_erase = erase_sector_jedec,
14467 }, {
14468 .eraseblocks = { {256 * 1024, 1} },
14469 .block_erase = erase_chip_block_jedec,
14470 }
14471 },
Sean Nelson35727f72010-01-28 23:55:12 +000014472 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014473 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014474 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014475 },
14476
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014477 {
14478 .vendor = "SST",
14479 .name = "SST39SF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014480 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014481 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014482 .model_id = SST_SST39SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014483 .total_size = 512,
14484 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014485 .feature_bits = FEATURE_EITHER_RESET,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +000014486 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014487 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014488 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014489 .block_erasers =
14490 {
14491 {
14492 .eraseblocks = { {4 * 1024, 128} },
14493 .block_erase = erase_sector_jedec,
14494 }, {
14495 .eraseblocks = { {512 * 1024, 1} },
14496 .block_erase = erase_chip_block_jedec,
14497 }
14498 },
Sean Nelson35727f72010-01-28 23:55:12 +000014499 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014500 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014501 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014502 },
14503
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014504 {
14505 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100014506 .name = "SST39SF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014507 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014508 .manufacture_id = SST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100014509 .model_id = SST_SST39SF512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014510 .total_size = 64,
14511 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014512 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd7d423b2012-10-20 09:13:16 +000014513 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014514 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014515 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014516 .block_erasers =
14517 {
14518 {
14519 .eraseblocks = { {4 * 1024, 16} },
14520 .block_erase = erase_sector_jedec,
14521 }, {
14522 .eraseblocks = { {64 * 1024, 1} },
14523 .block_erase = erase_chip_block_jedec,
14524 }
14525 },
Sean Nelson35727f72010-01-28 23:55:12 +000014526 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014527 .read = read_memmapped,
Alan Green1f9cc7d2019-07-01 11:10:45 +100014528 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000014529 },
14530
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014531 {
14532 .vendor = "SST",
14533 .name = "SST39VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014534 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014535 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014536 .model_id = SST_SST39VF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014537 .total_size = 128,
14538 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014539 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd94d25d2012-07-28 03:17:15 +000014540 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014541 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014542 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014543 .block_erasers =
14544 {
14545 {
14546 .eraseblocks = { {4 * 1024, 32} },
14547 .block_erase = erase_sector_jedec,
14548 }, {
14549 .eraseblocks = { {128 * 1024, 1} },
14550 .block_erase = erase_chip_block_jedec,
14551 }
14552 },
Sean Nelson35727f72010-01-28 23:55:12 +000014553 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014554 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014555 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014556 },
14557
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014558 {
14559 .vendor = "SST",
14560 .name = "SST39VF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014561 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014562 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014563 .model_id = SST_SST39VF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014564 .total_size = 256,
14565 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014566 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner5c316f92015-02-08 21:57:52 +000014567 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014568 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014569 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014570 .block_erasers =
14571 {
14572 {
14573 .eraseblocks = { {4 * 1024, 64} },
14574 .block_erase = erase_sector_jedec,
14575 }, {
14576 .eraseblocks = { {256 * 1024, 1} },
14577 .block_erase = erase_chip_block_jedec,
14578 }
14579 },
Sean Nelson35727f72010-01-28 23:55:12 +000014580 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014581 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014582 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014583 },
14584
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014585 {
14586 .vendor = "SST",
14587 .name = "SST39VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014588 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014589 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014590 .model_id = SST_SST39VF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014591 .total_size = 512,
14592 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014593 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner23e10b82016-01-23 16:16:49 +000014594 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014595 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014596 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014597 .block_erasers =
14598 {
14599 {
14600 .eraseblocks = { {4 * 1024, 128} },
14601 .block_erase = erase_sector_jedec,
14602 }, {
14603 .eraseblocks = { {512 * 1024, 1} },
14604 .block_erase = erase_chip_block_jedec,
14605 }
14606 },
Sean Nelson35727f72010-01-28 23:55:12 +000014607 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014608 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014609 .voltage = {2700, 3600},
Carl-Daniel Hailfinger90eff152008-12-08 23:51:45 +000014610 },
FENG yu ningff692fb2008-12-08 18:15:10 +000014611
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014612 {
14613 .vendor = "SST",
Peter Stuge8440cc02009-01-25 23:55:12 +000014614 .name = "SST39VF080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014615 .bustype = BUS_PARALLEL,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000014616 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014617 .model_id = SST_SST39VF080,
Peter Stuge8440cc02009-01-25 23:55:12 +000014618 .total_size = 1024,
14619 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014620 .feature_bits = FEATURE_EITHER_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +000014621 .tested = TEST_UNTESTED,
14622 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014623 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014624 .block_erasers =
14625 {
14626 {
14627 .eraseblocks = { {4 * 1024, 256} },
14628 .block_erase = erase_sector_jedec,
14629 }, {
14630 .eraseblocks = { {64 * 1024, 16} },
14631 .block_erase = erase_block_jedec,
14632 }, {
14633 .eraseblocks = { {1024 * 1024, 1} },
14634 .block_erase = erase_chip_block_jedec,
14635 }
14636 },
Sean Nelson35727f72010-01-28 23:55:12 +000014637 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014638 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014639 .voltage = {2700, 3600},
Peter Stuge8440cc02009-01-25 23:55:12 +000014640 },
14641
14642 {
14643 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100014644 .name = "SST39VF512",
14645 .bustype = BUS_PARALLEL,
14646 .manufacture_id = SST_ID,
14647 .model_id = SST_SST39VF512,
14648 .total_size = 64,
14649 .page_size = 4096,
14650 .feature_bits = FEATURE_EITHER_RESET,
14651 .tested = TEST_OK_PREW,
14652 .probe = probe_jedec,
14653 .probe_timing = 1, /* 150 ns */
14654 .block_erasers =
14655 {
14656 {
14657 .eraseblocks = { {4 * 1024, 16} },
14658 .block_erase = erase_sector_jedec,
14659 }, {
14660 .eraseblocks = { {64 * 1024, 1} },
14661 .block_erase = erase_chip_block_jedec,
14662 }
14663 },
14664 .write = write_jedec_1,
14665 .read = read_memmapped,
14666 .voltage = {2700, 3600},
14667 },
14668
14669 {
14670 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014671 .name = "SST49LF002A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014672 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014673 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014674 .model_id = SST_SST49LF002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014675 .total_size = 256,
14676 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014677 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000014678 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014679 .probe = probe_jedec,
14680 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014681 .block_erasers =
14682 {
14683 {
14684 .eraseblocks = { {4 * 1024, 64} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014685 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014686 }, {
14687 .eraseblocks = { {16 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014688 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014689 }, {
14690 .eraseblocks = { {256 * 1024, 1} },
14691 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
14692 }
14693 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014694 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014695 .unlock = unlock_sst_fwhub,
14696 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014697 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014698 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014699 },
14700
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014701 {
14702 .vendor = "SST",
14703 .name = "SST49LF003A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014704 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014705 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014706 .model_id = SST_SST49LF003A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014707 .total_size = 384,
14708 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014709 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000014710 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014711 .probe = probe_jedec,
14712 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014713 .block_erasers =
14714 {
14715 {
14716 .eraseblocks = { {4 * 1024, 96} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014717 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014718 }, {
14719 .eraseblocks = { {64 * 1024, 6} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014720 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014721 }, {
14722 .eraseblocks = { {384 * 1024, 1} },
14723 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
14724 }
14725 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014726 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014727 .unlock = unlock_sst_fwhub,
14728 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014729 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014730 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014731 },
14732
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014733 {
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000014734 /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB)
14735 * and is only honored for 64k block erase, but not 4k sector erase.
14736 */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014737 .vendor = "SST",
14738 .name = "SST49LF004A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014739 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014740 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014741 .model_id = SST_SST49LF004A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014742 .total_size = 512,
14743 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014744 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000014745 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014746 .probe = probe_jedec,
14747 .probe_timing = 1, /* 150 ns */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000014748 .block_erasers =
14749 {
14750 {
14751 .eraseblocks = { {4 * 1024, 128} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014752 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000014753 }, {
14754 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014755 .block_erase = erase_block_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000014756 }, {
14757 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson51c83fb2010-01-20 20:55:53 +000014758 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000014759 },
14760 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014761 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014762 .unlock = unlock_sst_fwhub,
14763 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014764 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014765 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014766 },
14767
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014768 {
14769 .vendor = "SST",
14770 .name = "SST49LF004C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014771 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014772 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014773 .model_id = SST_SST49LF004C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014774 .total_size = 512,
14775 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014776 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014777 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014778 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014779 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014780 .block_erasers =
14781 {
14782 {
14783 .eraseblocks = { {4 * 1024, 128} },
14784 .block_erase = erase_sector_49lfxxxc,
14785 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000014786 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000014787 {64 * 1024, 7},
14788 {32 * 1024, 1},
14789 {8 * 1024, 2},
14790 {16 * 1024, 1},
14791 },
Sean Nelson69e58112010-03-23 17:10:28 +000014792 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014793 }
14794 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014795 .printlock = printlock_regspace2_block_eraser_1,
14796 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014797 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014798 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014799 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014800 },
14801
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014802 {
14803 .vendor = "SST",
14804 .name = "SST49LF008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014805 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014806 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014807 .model_id = SST_SST49LF008A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014808 .total_size = 1024,
14809 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014810 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000014811 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014812 .probe = probe_jedec,
14813 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014814 .block_erasers =
14815 {
14816 {
14817 .eraseblocks = { {4 * 1024, 256} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014818 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014819 }, {
14820 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014821 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014822 }, {
14823 .eraseblocks = { {1024 * 1024, 1} },
14824 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
14825 }
14826 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014827 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000014828 .unlock = unlock_sst_fwhub,
14829 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014830 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014831 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014832 },
14833
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014834 {
14835 .vendor = "SST",
14836 .name = "SST49LF008C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014837 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014838 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014839 .model_id = SST_SST49LF008C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014840 .total_size = 1024,
14841 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014842 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014843 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014844 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014845 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014846 .block_erasers =
14847 {
14848 {
14849 .eraseblocks = { {4 * 1024, 256} },
14850 .block_erase = erase_sector_49lfxxxc,
14851 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000014852 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000014853 {64 * 1024, 15},
14854 {32 * 1024, 1},
14855 {8 * 1024, 2},
14856 {16 * 1024, 1},
14857 },
Sean Nelson69e58112010-03-23 17:10:28 +000014858 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014859 }
14860 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014861 .printlock = printlock_regspace2_block_eraser_1,
14862 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014863 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014864 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014865 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014866 },
14867
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014868 {
14869 .vendor = "SST",
14870 .name = "SST49LF016C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014871 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014872 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014873 .model_id = SST_SST49LF016C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014874 .total_size = 2048,
14875 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014876 .feature_bits = FEATURE_REGISTERMAP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000014877 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014878 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014879 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014880 .block_erasers =
14881 {
14882 {
14883 .eraseblocks = { {4 * 1024, 512} },
14884 .block_erase = erase_sector_49lfxxxc,
14885 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000014886 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000014887 {64 * 1024, 31},
14888 {32 * 1024, 1},
14889 {8 * 1024, 2},
14890 {16 * 1024, 1},
14891 },
Sean Nelson69e58112010-03-23 17:10:28 +000014892 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014893 }
14894 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000014895 .printlock = printlock_regspace2_block_eraser_1,
14896 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014897 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014898 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014899 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014900 },
14901
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014902 {
14903 .vendor = "SST",
14904 .name = "SST49LF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014905 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014906 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014907 .model_id = SST_SST49LF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014908 .total_size = 256,
14909 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014910 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +000014911 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014912 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014913 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014914 .block_erasers =
14915 {
14916 {
14917 .eraseblocks = { {4 * 1024, 64} },
14918 .block_erase = erase_sector_jedec,
14919 }, {
14920 .eraseblocks = { {16 * 1024, 16} },
14921 .block_erase = erase_block_jedec,
14922 }, {
14923 .eraseblocks = { {256 * 1024, 1} },
14924 .block_erase = NULL,
14925 }
14926 },
Sean Nelson35727f72010-01-28 23:55:12 +000014927 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014928 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014929 .voltage = {3000, 3600},
Sven Schnellec208dfb2009-01-07 12:35:09 +000014930 },
14931
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014932 {
14933 .vendor = "SST",
14934 .name = "SST49LF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014935 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014936 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014937 .model_id = SST_SST49LF020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014938 .total_size = 256,
Carl-Daniel Hailfingerda654322009-07-23 01:44:38 +000014939 .page_size = 4 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000014940 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000014941 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014942 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014943 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014944 .block_erasers =
14945 {
14946 {
14947 .eraseblocks = { {4 * 1024, 64} },
14948 .block_erase = erase_sector_jedec,
14949 }, {
14950 .eraseblocks = { {16 * 1024, 16} },
14951 .block_erase = erase_block_jedec,
14952 }, {
14953 .eraseblocks = { {256 * 1024, 1} },
14954 .block_erase = NULL,
14955 }
14956 },
Sean Nelson35727f72010-01-28 23:55:12 +000014957 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014958 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014959 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014960 },
14961
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014962 {
14963 .vendor = "SST",
14964 .name = "SST49LF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014965 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014966 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014967 .model_id = SST_SST49LF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014968 .total_size = 512,
14969 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000014970 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000014971 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014972 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000014973 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014974 .block_erasers =
14975 {
14976 {
14977 .eraseblocks = { {4 * 1024, 128} },
14978 .block_erase = erase_sector_jedec,
14979 }, {
14980 .eraseblocks = { {64 * 1024, 8} },
14981 .block_erase = erase_block_jedec,
14982 }, {
14983 .eraseblocks = { {512 * 1024, 1} },
14984 .block_erase = NULL,
14985 }
14986 },
Sean Nelson35727f72010-01-28 23:55:12 +000014987 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014988 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014989 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000014990 },
14991
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014992 {
14993 .vendor = "SST",
14994 .name = "SST49LF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014995 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014996 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014997 .model_id = SST_SST49LF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014998 .total_size = 512,
14999 .page_size = 64 * 1024,
Joshua Roysa84b0bd2010-08-16 22:12:39 +000015000 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000015001 .tested = TEST_OK_PREW,
Sean Nelson51c83fb2010-01-20 20:55:53 +000015002 .probe = probe_jedec,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015003 .probe_timing = 1, /* 150ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000015004 .block_erasers =
15005 {
15006 {
15007 .eraseblocks = { {4 * 1024, 128} },
15008 .block_erase = erase_sector_jedec,
15009 }, {
15010 .eraseblocks = { {64 * 1024, 8} },
15011 .block_erase = erase_block_jedec,
15012 }, {
15013 .eraseblocks = { {512 * 1024, 1} },
15014 .block_erase = NULL,
15015 }
15016 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015017 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000015018 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015019 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015020 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000015021 },
15022
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015023 {
15024 .vendor = "SST",
15025 .name = "SST49LF080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015026 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015027 .manufacture_id = SST_ID,
Elyes HAOUAS124ef382018-03-27 12:15:09 +020015028 .model_id = SST_SST49LF080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015029 .total_size = 1024,
15030 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000015031 .feature_bits = FEATURE_EITHER_RESET,
Brandon Dowdyf07bf322011-03-06 18:31:11 +000015032 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015033 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000015034 .probe_timing = TIMING_FIXME,
Sean Nelson51c83fb2010-01-20 20:55:53 +000015035 .block_erasers =
15036 {
15037 {
15038 .eraseblocks = { {4 * 1024, 256} },
15039 .block_erase = erase_sector_jedec,
15040 }, {
15041 .eraseblocks = { {64 * 1024, 16} },
15042 .block_erase = erase_block_jedec,
15043 }, {
15044 .eraseblocks = { {1024 * 1024, 1} },
15045 .block_erase = NULL,
15046 }
15047 },
Sean Nelson35727f72010-01-28 23:55:12 +000015048 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015049 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015050 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000015051 },
15052
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015053 {
15054 .vendor = "SST",
15055 .name = "SST49LF160C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015056 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015057 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000015058 .model_id = SST_SST49LF160C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015059 .total_size = 2048,
15060 .page_size = 4 * 1024,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015061 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015062 .tested = TEST_OK_PR,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015063 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000015064 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000015065 .block_erasers =
15066 {
15067 {
15068 .eraseblocks = { {4 * 1024, 512} },
15069 .block_erase = erase_sector_49lfxxxc,
15070 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000015071 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000015072 {64 * 1024, 31},
15073 {32 * 1024, 1},
15074 {8 * 1024, 2},
15075 {16 * 1024, 1},
15076 },
Sean Nelson69e58112010-03-23 17:10:28 +000015077 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000015078 }
15079 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015080 .printlock = printlock_regspace2_block_eraser_1,
15081 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000015082 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015083 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015084 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000015085 },
15086
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015087 {
15088 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015089 .name = "M29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015090 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015091 .manufacture_id = ST_ID,
15092 .model_id = ST_M29F002B,
15093 .total_size = 256,
15094 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015095 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015096 .tested = TEST_UNTESTED,
15097 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000015098 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000015099 .block_erasers =
15100 {
15101 {
15102 .eraseblocks = {
15103 {16 * 1024, 1},
15104 {8 * 1024, 2},
15105 {32 * 1024, 1},
15106 {64 * 1024, 3},
15107 },
15108 .block_erase = erase_sector_jedec,
15109 }, {
15110 .eraseblocks = { {256 * 1024, 1} },
15111 .block_erase = erase_chip_block_jedec,
15112 }
15113 },
Sean Nelson35727f72010-01-28 23:55:12 +000015114 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015115 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000015116 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000015117 },
15118
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015119 {
15120 .vendor = "ST",
15121 .name = "M29F002T/NT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015122 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015123 .manufacture_id = ST_ID,
15124 .model_id = ST_M29F002T,
15125 .total_size = 256,
15126 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015127 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stefan Taunere34e3e82013-01-01 00:06:51 +000015128 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015129 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000015130 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000015131 .block_erasers =
15132 {
15133 {
15134 .eraseblocks = {
15135 {64 * 1024, 3},
15136 {32 * 1024, 1},
15137 {8 * 1024, 2},
15138 {16 * 1024, 1},
15139 },
15140 .block_erase = erase_sector_jedec,
15141 }, {
15142 .eraseblocks = { {256 * 1024, 1} },
15143 .block_erase = erase_chip_block_jedec,
15144 }
15145 },
Sean Nelson35727f72010-01-28 23:55:12 +000015146 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015147 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000015148 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
FENG yu ningff692fb2008-12-08 18:15:10 +000015149 },
15150
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015151 {
15152 .vendor = "ST",
15153 .name = "M29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015154 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015155 .manufacture_id = ST_ID,
15156 .model_id = ST_M29F040B,
15157 .total_size = 512,
15158 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015159 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
15160 .tested = TEST_UNTESTED,
15161 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +000015162 .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */
Sean Nelson56358aa2010-01-19 16:08:51 +000015163 .block_erasers =
15164 {
15165 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015166 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +000015167 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000015168 }, {
15169 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000015170 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000015171 }
15172 },
Sean Nelson35727f72010-01-28 23:55:12 +000015173 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015174 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015175 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000015176 },
15177
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015178 {
Sean Nelson35727f72010-01-28 23:55:12 +000015179 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015180 .vendor = "ST",
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000015181 .name = "M29F400BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015182 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000015183 .manufacture_id = ST_ID,
15184 .model_id = ST_M29F400BB,
15185 .total_size = 512,
15186 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015187 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000015188 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015189 .probe = probe_jedec,
15190 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000015191 .block_erasers =
15192 {
15193 {
15194 .eraseblocks = {
15195 {16 * 1024, 1},
15196 {8 * 1024, 2},
15197 {32 * 1024, 1},
15198 {64 * 1024, 7},
15199 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015200 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000015201 }, {
15202 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015203 .block_erase = erase_chip_block_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000015204 }
15205 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015206 .write = write_jedec_1,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000015207 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015208 .voltage = {4500, 5500},
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000015209 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100015210
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000015211 {
15212 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
15213 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015214 .name = "M29F400BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015215 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015216 .manufacture_id = ST_ID,
15217 .model_id = ST_M29F400BT,
15218 .total_size = 512,
15219 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015220 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015221 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015222 .probe = probe_jedec,
15223 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson56358aa2010-01-19 16:08:51 +000015224 .block_erasers =
15225 {
15226 {
15227 .eraseblocks = {
15228 {64 * 1024, 7},
15229 {32 * 1024, 1},
15230 {8 * 1024, 2},
15231 {16 * 1024, 1},
15232 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015233 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000015234 }, {
15235 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015236 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000015237 }
15238 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015239 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015240 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015241 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000015242 },
15243
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015244 {
15245 .vendor = "ST",
15246 .name = "M29W010B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015247 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015248 .manufacture_id = ST_ID,
15249 .model_id = ST_M29W010B,
15250 .total_size = 128,
15251 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015252 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015253 .tested = TEST_UNTESTED,
15254 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000015255 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000015256 .block_erasers =
15257 {
15258 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015259 .eraseblocks = { {16 * 1024, 8} },
Sean Nelson56358aa2010-01-19 16:08:51 +000015260 .block_erase = erase_sector_jedec,
15261 }, {
15262 .eraseblocks = { {128 * 1024, 1} },
15263 .block_erase = erase_chip_block_jedec,
15264 }
15265 },
Sean Nelson35727f72010-01-28 23:55:12 +000015266 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015267 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015268 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000015269 },
15270
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015271 {
15272 .vendor = "ST",
15273 .name = "M29W040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015274 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015275 .manufacture_id = ST_ID,
15276 .model_id = ST_M29W040B,
15277 .total_size = 512,
15278 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015279 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015280 .tested = TEST_UNTESTED,
15281 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000015282 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000015283 .block_erasers =
15284 {
15285 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015286 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson56358aa2010-01-19 16:08:51 +000015287 .block_erase = erase_sector_jedec,
15288 }, {
15289 .eraseblocks = { {512 * 1024, 1} },
15290 .block_erase = erase_chip_block_jedec,
15291 }
15292 },
Sean Nelson35727f72010-01-28 23:55:12 +000015293 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015294 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015295 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000015296 },
15297
Stefan Taunereb582572012-09-21 12:52:50 +000015298 {
15299 .vendor = "ST",
15300 .name = "M29W512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015301 .bustype = BUS_PARALLEL,
Alan Greenfa3fcd32019-06-27 15:41:50 +100015302 .manufacture_id = ST_ID,
Stefan Taunereb582572012-09-21 12:52:50 +000015303 .model_id = ST_M29W512B,
15304 .total_size = 64,
15305 .page_size = 64 * 1024,
15306 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauner0554ca52013-07-25 22:54:25 +000015307 .tested = TEST_OK_PREW,
Stefan Taunereb582572012-09-21 12:52:50 +000015308 .probe = probe_jedec,
15309 .probe_timing = TIMING_ZERO,
15310 .block_erasers =
15311 {
15312 {
15313 .eraseblocks = { {64 * 1024, 1} },
15314 .block_erase = erase_chip_block_jedec,
15315 }
15316 },
15317 .write = write_jedec_1,
15318 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015319 .voltage = {2700, 3600},
Stefan Taunereb582572012-09-21 12:52:50 +000015320 },
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +000015321
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015322 {
15323 .vendor = "ST",
15324 .name = "M50FLW040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015325 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015326 .manufacture_id = ST_ID,
15327 .model_id = ST_M50FLW040A,
15328 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000015329 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015330 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015331 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000015332 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000015333 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000015334 .block_erasers =
15335 {
15336 {
Sean Nelson329bde72010-01-19 16:39:19 +000015337 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000015338 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000015339 {64 * 1024, 5}, /* block */
15340 {4 * 1024, 16}, /* sector */
15341 {4 * 1024, 16}, /* sector */
15342 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000015343 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000015344 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000015345 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000015346 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015347 }
15348 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015349 .unlock = unlock_regspace2_uniform_64k,
Alan Greenc1863ca2019-06-27 15:08:03 +100015350 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015351 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015352 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015353 },
15354
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015355 {
15356 .vendor = "ST",
15357 .name = "M50FLW040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015358 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015359 .manufacture_id = ST_ID,
15360 .model_id = ST_M50FLW040B,
15361 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000015362 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015363 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015364 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000015365 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000015366 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000015367 .block_erasers =
15368 {
15369 {
Sean Nelson329bde72010-01-19 16:39:19 +000015370 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000015371 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000015372 {4 * 1024, 16}, /* sector */
15373 {64 * 1024, 5}, /* block */
15374 {4 * 1024, 16}, /* sector */
15375 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000015376 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000015377 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000015378 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000015379 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015380 }
15381 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015382 .unlock = unlock_regspace2_uniform_64k,
Alan Greenc1863ca2019-06-27 15:08:03 +100015383 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015384 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015385 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015386 },
15387
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015388 {
15389 .vendor = "ST",
15390 .name = "M50FLW080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015391 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015392 .manufacture_id = ST_ID,
15393 .model_id = ST_M50FLW080A,
15394 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000015395 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015396 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015397 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +000015398 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000015399 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000015400 .block_erasers =
15401 {
15402 {
Sean Nelson329bde72010-01-19 16:39:19 +000015403 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000015404 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000015405 {64 * 1024, 13}, /* block */
15406 {4 * 1024, 16}, /* sector */
15407 {4 * 1024, 16}, /* sector */
15408 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000015409 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000015410 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000015411 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000015412 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015413 }
15414 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015415 .printlock = printlock_regspace2_block_eraser_0,
15416 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000015417 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015418 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015419 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015420 },
15421
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015422 {
15423 .vendor = "ST",
15424 .name = "M50FLW080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015425 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015426 .manufacture_id = ST_ID,
15427 .model_id = ST_M50FLW080B,
15428 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000015429 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015430 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015431 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000015432 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000015433 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000015434 .block_erasers =
15435 {
15436 {
Sean Nelson329bde72010-01-19 16:39:19 +000015437 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000015438 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000015439 {4 * 1024, 16}, /* sector */
15440 {64 * 1024, 13}, /* block */
15441 {4 * 1024, 16}, /* sector */
15442 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000015443 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000015444 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000015445 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000015446 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015447 }
15448 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015449 .printlock = printlock_regspace2_block_eraser_0,
15450 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000015451 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015452 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015453 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015454 },
15455
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015456 {
15457 .vendor = "ST",
15458 .name = "M50FW002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015459 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015460 .manufacture_id = ST_ID,
15461 .model_id = ST_M50FW002,
15462 .total_size = 256,
Stefan Tauner4404f732013-09-12 08:28:56 +000015463 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015464 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015465 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +000015466 .probe = probe_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015467 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000015468 .block_erasers =
15469 {
15470 {
15471 .eraseblocks = {
15472 {64 * 1024, 3},
15473 {32 * 1024, 1},
15474 {8 * 1024, 2},
15475 {16 * 1024, 1},
15476 },
Sean Nelson28accc22010-03-19 18:47:06 +000015477 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015478 }, {
Stefan Tauner5c316f92015-02-08 21:57:52 +000015479 .eraseblocks = { {256 * 1024, 1} },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015480 .block_erase = NULL, /* Only in A/A mux mode */
Sean Nelson56358aa2010-01-19 16:08:51 +000015481 }
15482 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015483 .printlock = printlock_regspace2_block_eraser_0,
15484 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000015485 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015486 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015487 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015488 },
15489
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015490 {
15491 .vendor = "ST",
15492 .name = "M50FW016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015493 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015494 .manufacture_id = ST_ID,
15495 .model_id = ST_M50FW016,
15496 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000015497 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015498 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015499 .tested = TEST_UNTESTED,
15500 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000015501 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000015502 .block_erasers =
15503 {
15504 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015505 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson28accc22010-03-19 18:47:06 +000015506 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015507 }
15508 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015509 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000015510 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015511 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015512 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015513 },
15514
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015515 {
15516 .vendor = "ST",
15517 .name = "M50FW040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015518 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015519 .manufacture_id = ST_ID,
15520 .model_id = ST_M50FW040,
15521 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000015522 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015523 .feature_bits = FEATURE_REGISTERMAP,
Sean Nelson28accc22010-03-19 18:47:06 +000015524 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015525 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000015526 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000015527 .block_erasers =
15528 {
15529 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015530 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000015531 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015532 }
15533 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015534 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000015535 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015536 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015537 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015538 },
15539
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015540 {
15541 .vendor = "ST",
15542 .name = "M50FW080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015543 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015544 .manufacture_id = ST_ID,
15545 .model_id = ST_M50FW080,
15546 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000015547 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015548 .feature_bits = FEATURE_REGISTERMAP,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015549 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015550 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000015551 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000015552 .block_erasers =
15553 {
15554 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015555 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000015556 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015557 }
15558 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015559 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000015560 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015561 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015562 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015563 },
15564
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015565 {
15566 .vendor = "ST",
Stefan Tauner8c4602b2013-09-12 08:29:00 +000015567 .name = "M50LPW080",
15568 .bustype = BUS_LPC, /* A/A Mux */
15569 .manufacture_id = ST_ID,
15570 .model_id = ST_M50LPW080,
15571 .total_size = 1024,
15572 .page_size = 0,
15573 .feature_bits = FEATURE_REGISTERMAP,
15574 .tested = TEST_UNTESTED,
15575 .probe = probe_82802ab,
15576 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
15577 .block_erasers =
15578 {
15579 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015580 .eraseblocks = { {64 * 1024, 16} },
Stefan Tauner8c4602b2013-09-12 08:29:00 +000015581 .block_erase = erase_block_82802ab,
15582 }
15583 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015584 .unlock = unlock_regspace2_uniform_64k,
Stefan Tauner8c4602b2013-09-12 08:29:00 +000015585 .write = write_82802ab,
15586 .read = read_memmapped,
15587 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
15588 },
15589
15590 {
15591 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015592 .name = "M50LPW116",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015593 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015594 .manufacture_id = ST_ID,
15595 .model_id = ST_M50LPW116,
15596 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000015597 .page_size = 0,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015598 .feature_bits = FEATURE_REGISTERMAP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015599 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000015600 .probe = probe_82802ab,
Udu Ogahc04ee222009-09-05 01:31:32 +000015601 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000015602 .block_erasers =
15603 {
15604 {
15605 .eraseblocks = {
15606 {4 * 1024, 16},
15607 {64 * 1024, 30},
15608 {32 * 1024, 1},
15609 {8 * 1024, 2},
15610 {16 * 1024, 1},
15611 },
Sean Nelson28accc22010-03-19 18:47:06 +000015612 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015613 }
15614 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015615 .printlock = printlock_regspace2_block_eraser_0,
15616 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000015617 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015618 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015619 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
FENG yu ningff692fb2008-12-08 18:15:10 +000015620 },
15621
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015622 {
Konstantin Grudnev3d8868c2019-07-23 00:48:54 +030015623 .vendor = "ST",
15624 .name = "M95M02",
15625 .bustype = BUS_SPI,
15626 .manufacture_id = ST_ID,
15627 .model_id = ST_M95M02,
15628 .total_size = 256,
15629 .page_size = 256,
15630 .feature_bits = FEATURE_WRSR_WREN | FEATURE_NO_ERASE | FEATURE_ERASED_ZERO,
15631 .tested = TEST_OK_PREW,
Nico Huber54557862023-05-15 12:01:04 +020015632 .spi_cmd_set = SPI95,
Konstantin Grudnev3d8868c2019-07-23 00:48:54 +030015633 .probe = probe_spi_st95,
15634 .probe_timing = TIMING_ZERO,
15635 .block_erasers =
15636 {
15637 {
15638 .eraseblocks = { {256 * 1024, 1} },
15639 .block_erase = spi_block_erase_emulation,
15640 }
15641 },
15642
15643 .printlock = spi_prettyprint_status_register_bp1_srwd,
15644 .unlock = spi_disable_blockprotect_bp1_srwd,
15645 .write = spi_chip_write_256,
15646 .read = spi_chip_read,
15647 .voltage = {2500, 5500},
15648 },
15649
15650 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100015651 .vendor = "Sanyo",
15652 .name = "LE25FU106B",
15653 .bustype = BUS_SPI,
15654 .manufacture_id = SANYO_ID,
15655 .model_id = SANYO_LE25FU106B,
15656 .total_size = 128,
15657 .page_size = 256,
15658 .feature_bits = FEATURE_WRSR_WREN,
15659 .tested = TEST_UNTESTED,
15660 .probe = probe_spi_res2,
15661 .probe_timing = TIMING_ZERO,
15662 .block_erasers =
15663 {
15664 /* FIXME: Is this correct?
15665 {
15666 .eraseblocks = { {2 * 1024, 64} },
15667 .block_erase = spi_block_erase_d7,
15668 },*/
15669 {
15670 .eraseblocks = { {32 * 1024, 4} },
15671 .block_erase = spi_block_erase_d8,
15672 }, {
15673 .eraseblocks = { {128 * 1024, 1} },
15674 .block_erase = spi_block_erase_c7,
15675 }
15676 },
15677 .printlock = spi_prettyprint_status_register_bp1_srwd,
15678 .unlock = spi_disable_blockprotect_bp1_srwd,
15679 .write = spi_chip_write_256,
15680 .read = spi_chip_read,
15681 .voltage = {2300, 3600},
15682 },
15683
15684 {
15685 .vendor = "Sanyo",
15686 .name = "LE25FU206",
15687 .bustype = BUS_SPI,
15688 .manufacture_id = SANYO_ID,
15689 .model_id = SANYO_LE25FU206,
15690 .total_size = 256,
15691 .page_size = 256,
15692 .feature_bits = FEATURE_WRSR_WREN,
15693 .tested = TEST_UNTESTED,
15694 .probe = probe_spi_res2,
15695 .probe_timing = TIMING_ZERO,
15696 .block_erasers =
15697 {
15698 {
15699 .eraseblocks = { {4 * 1024, 64} },
15700 .block_erase = spi_block_erase_d7,
15701 }, {
15702 .eraseblocks = { {64 * 1024, 4} },
15703 .block_erase = spi_block_erase_d8,
15704 }, {
15705 .eraseblocks = { {256 * 1024, 1} },
15706 .block_erase = spi_block_erase_c7,
15707 }
15708 },
15709 .printlock = spi_prettyprint_status_register_bp1_srwd,
15710 .unlock = spi_disable_blockprotect_bp1_srwd,
15711 .write = spi_chip_write_256,
15712 .read = spi_chip_read,
15713 .voltage = {2300, 3600},
15714 },
15715
15716 {
15717 .vendor = "Sanyo",
15718 .name = "LE25FU206A",
15719 .bustype = BUS_SPI,
15720 .manufacture_id = SANYO_ID,
15721 .model_id = SANYO_LE25FU206A,
15722 .total_size = 256,
15723 .page_size = 256,
15724 .tested = TEST_UNTESTED,
15725 .probe = probe_spi_rdid,
15726 .probe_timing = TIMING_ZERO,
15727 .block_erasers =
15728 {
15729 {
15730 .eraseblocks = { {4 * 1024, 64} },
15731 .block_erase = spi_block_erase_20,
15732 }, {
15733 .eraseblocks = { {4 * 1024, 64} },
15734 .block_erase = spi_block_erase_d7,
15735 }, {
15736 .eraseblocks = { {64 * 1024, 4} },
15737 .block_erase = spi_block_erase_d8,
15738 }, {
15739 .eraseblocks = { {256 * 1024, 1} },
15740 .block_erase = spi_block_erase_60,
15741 }, {
15742 .eraseblocks = { {256 * 1024, 1} },
15743 .block_erase = spi_block_erase_c7,
15744 }
15745 },
15746 .printlock = spi_prettyprint_status_register_bp2_srwd,
15747 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
15748 .write = spi_chip_write_256,
15749 .read = spi_chip_read,
15750 .voltage = {2300, 3600},
15751 },
15752
15753 {
15754 .vendor = "Sanyo",
15755 .name = "LE25FU406B",
15756 .bustype = BUS_SPI,
15757 .manufacture_id = SANYO_ID,
15758 .model_id = SANYO_LE25FU406B,
15759 .total_size = 512,
15760 .page_size = 256,
15761 .feature_bits = FEATURE_WRSR_WREN,
15762 .tested = TEST_OK_PREW,
15763 .probe = probe_spi_res2,
15764 .probe_timing = TIMING_ZERO,
15765 .block_erasers =
15766 {
15767 {
15768 .eraseblocks = { {4 * 1024, 128} },
15769 .block_erase = spi_block_erase_d7,
15770 }, {
15771 .eraseblocks = { {64 * 1024, 8} },
15772 .block_erase = spi_block_erase_d8,
15773 }, {
15774 .eraseblocks = { {512 * 1024, 1} },
15775 .block_erase = spi_block_erase_c7,
15776 }
15777 },
15778 .printlock = spi_prettyprint_status_register_bp2_srwd,
15779 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
15780 .write = spi_chip_write_256,
15781 .read = spi_chip_read,
15782 .voltage = {2300, 3600},
15783 },
15784
15785 {
15786 .vendor = "Sanyo",
15787 .name = "LE25FU406C/LE25U40CMC",
15788 .bustype = BUS_SPI,
15789 .manufacture_id = SANYO_ID,
15790 .model_id = SANYO_LE25FU406C,
15791 .total_size = 512,
15792 .page_size = 256,
15793 .feature_bits = FEATURE_WRSR_WREN,
15794 .tested = TEST_OK_PREW,
15795 .probe = probe_spi_rdid,
15796 .probe_timing = TIMING_ZERO,
15797 .block_erasers =
15798 {
15799 {
15800 .eraseblocks = { {4 * 1024, 128} },
15801 .block_erase = spi_block_erase_20,
15802 }, {
15803 .eraseblocks = { {4 * 1024, 128} },
15804 .block_erase = spi_block_erase_d7,
15805 }, {
15806 .eraseblocks = { {64 * 1024, 8} },
15807 .block_erase = spi_block_erase_d8,
15808 }, {
15809 .eraseblocks = { {512 * 1024, 1} },
15810 .block_erase = spi_block_erase_60,
15811 }, {
15812 .eraseblocks = { {512 * 1024, 1} },
15813 .block_erase = spi_block_erase_c7,
15814 }
15815 },
15816 .printlock = spi_prettyprint_status_register_bp2_srwd,
15817 .unlock = spi_disable_blockprotect_bp2_srwd,
15818 .write = spi_chip_write_256,
15819 .read = spi_chip_read, /* Fast read (0x0B), dual read (0x3B) and dual I/O (0xBB) supported */
15820 .voltage = {2300, 3600},
15821 },
15822
15823 {
15824 .vendor = "Sanyo",
15825 .name = "LE25FW106",
15826 .bustype = BUS_SPI,
15827 .manufacture_id = SANYO_ID,
15828 .model_id = SANYO_LE25FW106,
15829 .total_size = 128,
15830 .page_size = 256,
15831 .feature_bits = FEATURE_WRSR_WREN,
15832 .tested = TEST_OK_PREW,
15833 .probe = probe_spi_res2,
15834 .probe_timing = TIMING_ZERO,
15835 .block_erasers =
15836 {
15837 {
15838 .eraseblocks = { {2 * 1024, 64} },
15839 .block_erase = spi_block_erase_d7,
15840 }, {
15841 .eraseblocks = { {32 * 1024, 4} },
15842 .block_erase = spi_block_erase_d8,
15843 }, {
15844 .eraseblocks = { {128 * 1024, 1} },
15845 .block_erase = spi_block_erase_c7,
15846 }
15847 },
15848 .printlock = spi_prettyprint_status_register_bp1_srwd, /* FIXME: Add ERSER error flag. */
15849 .unlock = spi_disable_blockprotect_bp1_srwd,
15850 .write = spi_chip_write_256,
15851 .read = spi_chip_read,
15852 .voltage = {2700, 3600},
15853 },
15854
15855 {
15856 .vendor = "Sanyo",
15857 .name = "LE25FW203A",
15858 .bustype = BUS_SPI,
15859 .manufacture_id = SANYO_ID,
15860 .model_id = SANYO_LE25FW203A,
15861 .total_size = 256,
15862 .page_size = 256,
15863 .tested = TEST_UNTESTED,
15864 .probe = probe_spi_rdid,
15865 .probe_timing = TIMING_ZERO,
15866 .block_erasers =
15867 {
15868 {
15869 .eraseblocks = { {256, 1024} },
15870 .block_erase = spi_block_erase_db,
15871 }, {
15872 .eraseblocks = { {64 * 1024, 4} },
15873 .block_erase = spi_block_erase_d8,
15874 }, {
15875 .eraseblocks = { {256 * 1024, 1} },
15876 .block_erase = spi_block_erase_c7,
15877 }
15878 },
15879 .printlock = spi_prettyprint_status_register_default_welwip,
15880 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
15881 .write = spi_chip_write_256,
15882 .read = spi_chip_read,
15883 .voltage = {2700, 3600},
15884 },
15885
15886 {
15887 .vendor = "Sanyo",
15888 .name = "LE25FW403A",
15889 .bustype = BUS_SPI,
15890 .manufacture_id = SANYO_ID,
15891 .model_id = SANYO_LE25FW403A,
15892 .total_size = 512,
15893 .page_size = 256,
15894 .tested = TEST_UNTESTED,
15895 .probe = probe_spi_rdid,
15896 .probe_timing = TIMING_ZERO,
15897 .block_erasers =
15898 {
15899 {
15900 .eraseblocks = { {256, 2 * 1024} },
15901 .block_erase = spi_block_erase_db,
15902 }, {
15903 .eraseblocks = { {64 * 1024, 8} },
15904 .block_erase = spi_block_erase_d8,
15905 }, {
15906 .eraseblocks = { {512 * 1024, 1} },
15907 .block_erase = spi_block_erase_c7,
15908 }
15909 },
15910 .printlock = spi_prettyprint_status_register_default_welwip,
15911 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
15912 .write = spi_chip_write_256,
15913 .read = spi_chip_read,
15914 .voltage = {2700, 3600},
15915 },
15916
15917 {
15918 .vendor = "Sanyo",
15919 .name = "LE25FW406A",
15920 .bustype = BUS_SPI,
15921 .manufacture_id = SANYO_ID,
15922 .model_id = SANYO_LE25FW406A,
15923 .total_size = 512,
15924 .page_size = 256,
15925 .feature_bits = FEATURE_WRSR_WREN,
15926 .tested = TEST_OK_PREW,
15927 .probe = probe_spi_res2,
15928 .probe_timing = TIMING_ZERO,
15929 .block_erasers =
15930 {
15931 {
15932 .eraseblocks = { {4 * 1024, 128} },
15933 .block_erase = spi_block_erase_d7,
15934 }, {
15935 .eraseblocks = { {64 * 1024, 8} },
15936 .block_erase = spi_block_erase_d8,
15937 }, {
15938 .eraseblocks = { {512 * 1024, 1} },
15939 .block_erase = spi_block_erase_c7,
15940 }
15941 },
15942 .printlock = spi_prettyprint_status_register_plain,
15943 .unlock = spi_disable_blockprotect,
15944 .write = spi_chip_write_256,
15945 .read = spi_chip_read,
15946 .voltage = {2700, 3600},
15947 },
15948
15949 {
15950 .vendor = "Sanyo",
15951 .name = "LE25FW418A",
15952 .bustype = BUS_SPI,
15953 .manufacture_id = SANYO_ID,
15954 .model_id = SANYO_LE25FW418A,
15955 .total_size = 512,
15956 .page_size = 256,
15957 .feature_bits = FEATURE_WRSR_WREN,
15958 .tested = TEST_UNTESTED,
15959 .probe = probe_spi_res2,
15960 .probe_timing = TIMING_ZERO,
15961 .block_erasers =
15962 {
15963 {
15964 .eraseblocks = { {4 * 1024, 128} },
15965 .block_erase = spi_block_erase_d7,
15966 }, {
15967 .eraseblocks = { {64 * 1024, 8} },
15968 .block_erase = spi_block_erase_d8,
15969 }, {
15970 .eraseblocks = { {512 * 1024, 1} },
15971 .block_erase = spi_block_erase_c7,
15972 }
15973 },
15974 .printlock = spi_prettyprint_status_register_bp2_srwd,
15975 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
15976 .write = spi_chip_write_256,
15977 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
15978 .voltage = {2700, 3600},
15979 },
15980
15981 {
15982 .vendor = "Sanyo",
15983 .name = "LE25FW806",
15984 .bustype = BUS_SPI,
15985 .manufacture_id = SANYO_ID,
15986 .model_id = SANYO_LE25FW806,
15987 .total_size = 1024,
15988 .page_size = 256,
15989 .feature_bits = FEATURE_WRSR_WREN,
15990 .tested = TEST_UNTESTED,
15991 .probe = probe_spi_res2,
15992 .probe_timing = TIMING_ZERO,
15993 .block_erasers =
15994 {
15995 {
15996 .eraseblocks = { {4 * 1024, 256} },
15997 .block_erase = spi_block_erase_20,
15998 }, {
15999 .eraseblocks = { {4 * 1024, 256} },
16000 .block_erase = spi_block_erase_d7,
16001 }, {
16002 .eraseblocks = { {64 * 1024, 16} },
16003 .block_erase = spi_block_erase_d8,
16004 }, {
16005 .eraseblocks = { {1024 * 1024, 1} },
16006 .block_erase = spi_block_erase_c7,
16007 }
16008 },
16009 .printlock = spi_prettyprint_status_register_bp2_srwd,
16010 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
16011 .write = spi_chip_write_256,
16012 .read = spi_chip_read,
16013 .voltage = {2700, 3600},
16014 },
16015
16016 {
16017 .vendor = "Sanyo",
16018 .name = "LE25FW808",
16019 .bustype = BUS_SPI,
16020 .manufacture_id = SANYO_ID,
16021 .model_id = SANYO_LE25FW808,
16022 .total_size = 1024,
16023 .page_size = 256,
16024 .feature_bits = FEATURE_WRSR_WREN,
16025 .tested = TEST_UNTESTED,
16026 .probe = probe_spi_res2,
16027 .probe_timing = TIMING_ZERO,
16028 .block_erasers =
16029 {
16030 {
16031 .eraseblocks = { {8 * 1024, 128} },
16032 .block_erase = spi_block_erase_d7,
16033 }, {
16034 .eraseblocks = { {64 * 1024, 16} },
16035 .block_erase = spi_block_erase_d8,
16036 }, {
16037 .eraseblocks = { {1024 * 1024, 1} },
16038 .block_erase = spi_block_erase_c7,
16039 }
16040 },
16041 .printlock = spi_prettyprint_status_register_bp2_srwd,
16042 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
16043 .write = spi_chip_write_256,
16044 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
16045 .voltage = {2700, 3600},
16046 },
16047
16048 {
16049 .vendor = "Sharp",
16050 .name = "LH28F008BJT-BTLZ1",
16051 .bustype = BUS_PARALLEL,
16052 .manufacture_id = SHARP_ID,
16053 .model_id = SHARP_LH28F008BJ__PB,
16054 .total_size = 1024,
16055 .page_size = 64 * 1024,
16056 .tested = TEST_OK_PREW,
16057 .probe = probe_82802ab,
16058 .probe_timing = TIMING_ZERO,
16059 .block_erasers =
16060 {
16061 {
16062 .eraseblocks = {
16063 {8 * 1024, 8},
16064 {64 * 1024, 15}
16065 },
16066 .block_erase = erase_block_82802ab,
16067 }, {
16068 .eraseblocks = { {1024 * 1024, 1} },
16069 .block_erase = erase_sector_49lfxxxc,
16070 }
16071 },
16072 .unlock = unlock_lh28f008bjt,
16073 .write = write_82802ab,
16074 .read = read_memmapped,
16075 .voltage = {2700, 3600},
16076 },
16077
16078 {
16079 .vendor = "Sharp",
16080 .name = "LHF00L04",
16081 .bustype = BUS_FWH, /* A/A Mux */
16082 .manufacture_id = SHARP_ID,
16083 .model_id = SHARP_LHF00L04,
16084 .total_size = 1024,
16085 .page_size = 64 * 1024,
16086 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
16087 .tested = TEST_UNTESTED,
16088 .probe = probe_82802ab,
16089 .probe_timing = TIMING_ZERO,
16090 .block_erasers =
16091 {
16092 {
16093 .eraseblocks = {
16094 {64 * 1024, 15},
16095 {8 * 1024, 8}
16096 },
16097 .block_erase = erase_block_82802ab,
16098 }, {
16099 .eraseblocks = {
16100 {1024 * 1024, 1}
16101 },
16102 .block_erase = NULL, /* 30 D0, only in A/A mux mode */
16103 },
16104 },
16105 .unlock = unlock_regspace2_uniform_64k,
16106 .write = write_82802ab,
16107 .read = read_memmapped,
16108 .voltage = {3000, 3600},
16109 },
16110
16111 {
16112 .vendor = "Spansion",
16113 .name = "S25FL004A",
16114 .bustype = BUS_SPI,
16115 .manufacture_id = SPANSION_ID,
16116 .model_id = SPANSION_S25FL004A,
16117 .total_size = 512,
16118 .page_size = 256,
16119 .feature_bits = FEATURE_WRSR_WREN,
16120 .tested = TEST_UNTESTED,
16121 .probe = probe_spi_rdid,
16122 .probe_timing = TIMING_ZERO,
16123 .block_erasers =
16124 {
16125 {
16126 .eraseblocks = { {64 * 1024, 8} },
16127 .block_erase = spi_block_erase_d8,
16128 }, {
16129 .eraseblocks = { {512 * 1024, 1} },
16130 .block_erase = spi_block_erase_c7,
16131 }
16132 },
16133 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16134 .unlock = spi_disable_blockprotect,
16135 .write = spi_chip_write_256,
16136 .read = spi_chip_read,
16137 .voltage = {2700, 3600},
16138 },
16139
16140 {
16141 .vendor = "Spansion",
16142 .name = "S25FL008A",
16143 .bustype = BUS_SPI,
16144 .manufacture_id = SPANSION_ID,
16145 .model_id = SPANSION_S25FL008A,
16146 .total_size = 1024,
16147 .page_size = 256,
16148 .feature_bits = FEATURE_WRSR_WREN,
16149 .tested = TEST_OK_PRE,
16150 .probe = probe_spi_rdid,
16151 .probe_timing = TIMING_ZERO,
16152 .block_erasers =
16153 {
16154 {
16155 .eraseblocks = { {64 * 1024, 16} },
16156 .block_erase = spi_block_erase_d8,
16157 }, {
16158 .eraseblocks = { {1024 * 1024, 1} },
16159 .block_erase = spi_block_erase_c7,
16160 }
16161 },
16162 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16163 .unlock = spi_disable_blockprotect,
16164 .write = spi_chip_write_256,
16165 .read = spi_chip_read,
16166 .voltage = {2700, 3600},
16167 },
16168
16169 {
16170 .vendor = "Spansion",
16171 .name = "S25FL016A",
16172 .bustype = BUS_SPI,
16173 .manufacture_id = SPANSION_ID,
16174 .model_id = SPANSION_S25FL016A,
16175 .total_size = 2048,
16176 .page_size = 256,
16177 .feature_bits = FEATURE_WRSR_WREN,
16178 .tested = TEST_OK_PREW,
16179 .probe = probe_spi_rdid,
16180 .probe_timing = TIMING_ZERO,
16181 .block_erasers =
16182 {
16183 {
16184 .eraseblocks = { {64 * 1024, 32} },
16185 .block_erase = spi_block_erase_d8,
16186 }, {
16187 .eraseblocks = { {2 * 1024 * 1024, 1} },
16188 .block_erase = spi_block_erase_c7,
16189 }
16190 },
16191 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16192 .unlock = spi_disable_blockprotect,
16193 .write = spi_chip_write_256,
16194 .read = spi_chip_read,
16195 .voltage = {2700, 3600},
16196 },
16197
16198 {
16199 .vendor = "Spansion",
16200 .name = "S25FL032A/P",
16201 .bustype = BUS_SPI,
16202 .manufacture_id = SPANSION_ID,
16203 .model_id = SPANSION_S25FL032A,
16204 .total_size = 4096,
16205 .page_size = 256,
16206 .feature_bits = FEATURE_WRSR_WREN,
16207 .tested = TEST_OK_PREW,
16208 .probe = probe_spi_rdid,
16209 .probe_timing = TIMING_ZERO,
16210 .block_erasers =
16211 {
16212 {
16213 .eraseblocks = { {64 * 1024, 64} },
16214 .block_erase = spi_block_erase_d8,
16215 }, {
16216 .eraseblocks = { {4 * 1024 * 1024, 1} },
16217 .block_erase = spi_block_erase_c7,
16218 }
16219 },
16220 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16221 .unlock = spi_disable_blockprotect,
16222 .write = spi_chip_write_256,
16223 .read = spi_chip_read,
16224 .voltage = {2700, 3600},
16225 },
16226
16227 {
16228 .vendor = "Spansion",
16229 .name = "S25FL064A/P",
16230 .bustype = BUS_SPI,
16231 .manufacture_id = SPANSION_ID,
16232 .model_id = SPANSION_S25FL064A,
16233 .total_size = 8192,
16234 .page_size = 256,
16235 .feature_bits = FEATURE_WRSR_WREN,
16236 .tested = TEST_OK_PREW,
16237 .probe = probe_spi_rdid,
16238 .probe_timing = TIMING_ZERO,
16239 .block_erasers =
16240 {
16241 {
16242 .eraseblocks = { {64 * 1024, 128} },
16243 .block_erase = spi_block_erase_d8,
16244 }, {
16245 .eraseblocks = { {8 * 1024 * 1024, 1} },
16246 .block_erase = spi_block_erase_c7,
16247 }
16248 },
16249 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16250 .unlock = spi_disable_blockprotect,
16251 .write = spi_chip_write_256,
16252 .read = spi_chip_read,
16253 .voltage = {2700, 3600},
16254 },
16255
16256 {
16257 .vendor = "Spansion",
16258 .name = "S25FL116K/S25FL216K", /* FIXME: separate them */
16259 .bustype = BUS_SPI,
16260 .manufacture_id = SPANSION_ID,
16261 .model_id = SPANSION_S25FL216,
16262 .total_size = 2048,
16263 .page_size = 256,
16264 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (S25FL116K only) */
16265 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16266 .tested = TEST_UNTESTED,
16267 .probe = probe_spi_rdid,
16268 .probe_timing = TIMING_ZERO,
16269 .block_erasers =
16270 {
16271 {
16272 .eraseblocks = { {4 * 1024, 512} },
16273 .block_erase = spi_block_erase_20,
16274 }, {
16275 .eraseblocks = { {64 * 1024, 32} },
16276 .block_erase = spi_block_erase_d8,
16277 }, {
16278 .eraseblocks = { { 2048 * 1024, 1} },
16279 .block_erase = spi_block_erase_60,
16280 }, {
16281 .eraseblocks = { { 2048 * 1024, 1} },
16282 .block_erase = spi_block_erase_c7,
16283 }
16284 },
16285 .printlock = spi_prettyprint_status_register_bp3_srwd,
16286 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
16287 .write = spi_chip_write_256,
16288 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
16289 .voltage = {2700, 3600},
16290 },
16291
16292 {
16293 .vendor = "Spansion",
16294 .name = "S25FL127S-256kB", /* uniform 256kB sectors */
16295 .bustype = BUS_SPI,
16296 .manufacture_id = SPANSION_ID,
16297 .model_id = SPANSION_S25FL128,
16298 .total_size = 16384,
16299 .page_size = 512,
16300 /* supports 4B addressing */
16301 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
16302 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16303 .tested = TEST_UNTESTED,
16304 .probe = probe_spi_rdid,
16305 .probe_timing = TIMING_ZERO,
16306 .block_erasers =
16307 {
16308 {
16309 .eraseblocks = { {256 * 1024, 64} },
16310 .block_erase = spi_block_erase_d8,
16311 }, {
16312 .eraseblocks = { { 16384 * 1024, 1} },
16313 .block_erase = spi_block_erase_60,
16314 }, {
16315 .eraseblocks = { { 16384 * 1024, 1} },
16316 .block_erase = spi_block_erase_c7,
16317 }
16318 },
16319 .printlock = spi_prettyprint_status_register_bp2_srwd,
16320 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
16321 .write = spi_chip_write_256, /* Multi I/O supported */
16322 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16323 .voltage = {2700, 3600},
16324 },
16325
16326 {
16327 .vendor = "Spansion",
16328 .name = "S25FL127S-64kB", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
16329 .bustype = BUS_SPI,
16330 .manufacture_id = SPANSION_ID,
16331 .model_id = SPANSION_S25FL128,
16332 .total_size = 16384,
16333 .page_size = 256,
16334 /* supports 4B addressing */
16335 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
16336 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16337 .tested = TEST_OK_PREW,
16338 /* FIXME: we should distinguish the configuration on probing time like we do for AT45DB chips */
16339 .probe = probe_spi_rdid,
16340 .probe_timing = TIMING_ZERO,
16341 .block_erasers =
16342 {
16343 {
16344 /* This chip supports erasing of 32 so-called "parameter sectors" with
16345 * opcode 0x20 which may be configured to be on top or bottom of the address
16346 * space. Trying to access an address outside these 4kB blocks does have no
16347 * effect on the memory contents, e.g.
16348 .eraseblocks = {
16349 {4 * 1024, 32},
16350 {64 * 1024, 254} // inaccessible
16351 },
16352 .block_erase = spi_block_erase_20,
16353 }, { */
16354 .eraseblocks = { { 64 * 1024, 256} },
16355 .block_erase = spi_block_erase_d8,
16356 }, {
16357 .eraseblocks = { { 16384 * 1024, 1} },
16358 .block_erase = spi_block_erase_60,
16359 }, {
16360 .eraseblocks = { { 16384 * 1024, 1} },
16361 .block_erase = spi_block_erase_c7,
16362 }
16363 },
16364 .printlock = spi_prettyprint_status_register_bp2_srwd,
16365 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
16366 .write = spi_chip_write_256, /* Multi I/O supported */
16367 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16368 .voltage = {2700, 3600},
16369 },
16370
16371 {
16372 .vendor = "Spansion",
Nico Huberfffc48d2022-05-28 14:26:06 +020016373 .name = "S25FL128L",
16374 .bustype = BUS_SPI,
16375 .manufacture_id = SPANSION_ID,
16376 .model_id = SPANSION_S25FL128L,
16377 .total_size = 16384,
16378 .page_size = 256,
16379 /* 4 x 256B Security Region (OTP) */
16380 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT3 | FEATURE_OTP,
16381 .tested = TEST_UNTESTED,
16382 .probe = probe_spi_rdid,
16383 .probe_timing = TIMING_ZERO,
16384 .block_erasers =
16385 {
16386 {
16387 .eraseblocks = { {4 * 1024, 4096} },
16388 .block_erase = spi_block_erase_20,
16389 }, {
16390 .eraseblocks = { {32 * 1024, 512} },
16391 .block_erase = spi_block_erase_52,
16392 }, {
16393 .eraseblocks = { {64 * 1024, 256} },
16394 .block_erase = spi_block_erase_d8,
16395 }, {
16396 .eraseblocks = { {16384 * 1024, 1} },
16397 .block_erase = spi_block_erase_60,
16398 }, {
16399 .eraseblocks = { {16384 * 1024, 1} },
16400 .block_erase = spi_block_erase_c7,
16401 }
16402 },
16403 .printlock = spi_prettyprint_status_register_bp2_srwd,
16404 .unlock = spi_disable_blockprotect_bp2_srwd,
16405 .write = spi_chip_write_256,
16406 .read = spi_chip_read, /* Fast read (0x0B) supported */
16407 .voltage = {2700, 3600},
16408 .reg_bits =
16409 {
16410 /*
16411 * Note: This chip has a read-only Status Register 2 that is not
16412 * counted here. Registers are mapped as follows:
16413 * STATUS1 ... Status Register 1
16414 * STATUS2 ... Configuration Register 1
16415 * STATUS3 ... Configuration Register 2
16416 */
16417 .srp = {STATUS1, 7, RW},
16418 .srl = {STATUS2, 0, RW},
16419 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
16420 .tb = {STATUS1, 5, RW},
16421 .sec = {STATUS1, 6, RW},
16422 .cmp = {STATUS2, 6, RW},
16423 .wps = {STATUS3, 2, RW},
16424 },
16425 .decode_range = decode_range_spi25,
16426 },
16427
16428 {
16429 .vendor = "Spansion",
Alan Green1f9cc7d2019-07-01 11:10:45 +100016430 .name = "S25FL128P......0", /* uniform 64 kB sectors */
16431 .bustype = BUS_SPI,
16432 .manufacture_id = SPANSION_ID,
16433 .model_id = SPANSION_S25FL128,
16434 .total_size = 16384,
16435 .page_size = 256,
16436 .feature_bits = FEATURE_WRSR_WREN,
16437 .tested = TEST_OK_PREW,
16438 .probe = probe_spi_rdid,
16439 .probe_timing = TIMING_ZERO,
16440 .block_erasers =
16441 {
16442 {
16443 .eraseblocks = { {64 * 1024, 256} },
16444 .block_erase = spi_block_erase_20,
16445 }, {
16446 .eraseblocks = { {64 * 1024, 256} },
16447 .block_erase = spi_block_erase_d8,
16448 }, {
16449 .eraseblocks = { { 16384 * 1024, 1} },
16450 .block_erase = spi_block_erase_60,
16451 }, {
16452 .eraseblocks = { { 16384 * 1024, 1} },
16453 .block_erase = spi_block_erase_c7,
16454 }
16455 },
16456 .printlock = spi_prettyprint_status_register_bp3_srwd,
16457 .unlock = spi_disable_blockprotect_bp3_srwd,
16458 .write = spi_chip_write_256,
16459 .read = spi_chip_read, /* Fast read (0x0B) supported */
16460 .voltage = {2700, 3600},
16461 },
16462
16463 {
16464 .vendor = "Spansion",
16465 .name = "S25FL128P......1", /* uniform 256kB sectors */
16466 .bustype = BUS_SPI,
16467 .manufacture_id = SPANSION_ID,
16468 .model_id = SPANSION_S25FL128,
16469 .total_size = 16384,
16470 .page_size = 256,
16471 .feature_bits = FEATURE_WRSR_WREN,
16472 .tested = TEST_UNTESTED,
16473 .probe = probe_spi_rdid,
16474 .probe_timing = TIMING_ZERO,
16475 .block_erasers =
16476 {
16477 {
16478 .eraseblocks = { {256 * 1024, 64} },
16479 .block_erase = spi_block_erase_d8,
16480 }, {
16481 .eraseblocks = { { 16384 * 1024, 1} },
16482 .block_erase = spi_block_erase_c7,
16483 }
16484 },
16485 .printlock = spi_prettyprint_status_register_bp2_srwd,
16486 .unlock = spi_disable_blockprotect_bp2_srwd,
16487 .write = spi_chip_write_256,
16488 .read = spi_chip_read, /* Fast read (0x0B) supported */
16489 .voltage = {2700, 3600},
16490 },
16491
16492 {
16493 .vendor = "Spansion",
16494 .name = "S25FL128S......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
16495 .bustype = BUS_SPI,
16496 .manufacture_id = SPANSION_ID,
16497 .model_id = SPANSION_S25FL128,
16498 .total_size = 16384,
16499 .page_size = 256,
16500 /* supports 4B addressing */
16501 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
16502 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16503 .tested = TEST_OK_PREW,
16504 .probe = probe_spi_rdid,
16505 .probe_timing = TIMING_ZERO,
16506 .block_erasers =
16507 {
16508 {
16509 /* This chip supports erasing of the 32 so-called "parameter sectors" with
16510 * opcode 0x20. Trying to access an address outside these 4kB blocks does
16511 * have no effect on the memory contents, but sets a flag in the SR.
16512 .eraseblocks = {
16513 {4 * 1024, 32},
16514 {64 * 1024, 254} // inaccessible
16515 },
16516 .block_erase = spi_block_erase_20,
16517 }, { */
16518 .eraseblocks = { { 64 * 1024, 256} },
16519 .block_erase = spi_block_erase_d8,
16520 }, {
16521 .eraseblocks = { { 16384 * 1024, 1} },
16522 .block_erase = spi_block_erase_60,
16523 }, {
16524 .eraseblocks = { { 16384 * 1024, 1} },
16525 .block_erase = spi_block_erase_c7,
16526 }
16527 },
16528 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
16529 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
16530 .write = spi_chip_write_256, /* Multi I/O supported */
16531 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16532 .voltage = {2700, 3600},
16533 },
16534
16535 {
16536 .vendor = "Spansion",
16537 .name = "S25FL128S......1", /* uniform 256 kB sectors */
16538 .bustype = BUS_SPI,
16539 .manufacture_id = SPANSION_ID,
16540 .model_id = SPANSION_S25FL128,
16541 .total_size = 16384,
16542 .page_size = 512,
16543 /* supports 4B addressing */
16544 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
16545 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16546 .tested = TEST_UNTESTED,
16547 .probe = probe_spi_rdid,
16548 .probe_timing = TIMING_ZERO,
16549 .block_erasers =
16550 {
16551 {
16552 .eraseblocks = { {256 * 1024, 64} },
16553 .block_erase = spi_block_erase_d8,
16554 }, {
16555 .eraseblocks = { { 16384 * 1024, 1} },
16556 .block_erase = spi_block_erase_60,
16557 }, {
16558 .eraseblocks = { { 16384 * 1024, 1} },
16559 .block_erase = spi_block_erase_c7,
16560 }
16561 },
16562 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
16563 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
16564 .write = spi_chip_write_256, /* Multi I/O supported */
16565 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16566 .voltage = {2700, 3600},
16567 },
16568
16569 {
16570 .vendor = "Spansion",
16571 .name = "S25FL129P......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
16572 .bustype = BUS_SPI,
16573 .manufacture_id = SPANSION_ID,
16574 .model_id = SPANSION_S25FL128,
16575 .total_size = 16384,
16576 .page_size = 256,
16577 /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */
16578 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16579 .tested = TEST_OK_PREW,
16580 .probe = probe_spi_rdid,
16581 .probe_timing = TIMING_ZERO,
16582 .block_erasers =
16583 {
16584 {
16585 /* FIXME: This chip supports erasing of the 32 so-called "parameter sectors" with
16586 * opcode 0x20. Trying to access an address outside these 4kB blocks does have no
16587 * effect on the memory contents, but sets a flag in the SR.
16588 .eraseblocks = {
16589 {4 * 1024, 32},
16590 {64 * 1024, 254} // inaccessible
16591 },
16592 .block_erase = spi_block_erase_20,
16593 }, { */
16594 /* FIXME: Additionally it also supports erase opcode 40h for the respective 2*4 kB pairs
16595 .eraseblocks = {
16596 {8 * 1024, 16},
16597 {64 * 1024, 254} // inaccessible
16598 },
16599 .block_erase = spi_block_erase_40,
16600 }, { */
16601 .eraseblocks = { { 64 * 1024, 256} },
16602 .block_erase = spi_block_erase_d8,
16603 }, {
16604 .eraseblocks = { { 16384 * 1024, 1} },
16605 .block_erase = spi_block_erase_60,
16606 }, {
16607 .eraseblocks = { { 16384 * 1024, 1} },
16608 .block_erase = spi_block_erase_c7,
16609 }
16610 },
16611 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */
16612 .unlock = spi_disable_blockprotect_bp2_srwd,
16613 .write = spi_chip_write_256, /* Multi I/O supported */
16614 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16615 .voltage = {2700, 3600},
16616 },
16617
16618 {
16619 .vendor = "Spansion",
16620 .name = "S25FL129P......1", /* uniform 256 kB sectors */
16621 .bustype = BUS_SPI,
16622 .manufacture_id = SPANSION_ID,
16623 .model_id = SPANSION_S25FL128,
16624 .total_size = 16384,
16625 .page_size = 256,
16626 /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */
16627 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16628 .tested = TEST_UNTESTED,
16629 .probe = probe_spi_rdid,
16630 .probe_timing = TIMING_ZERO,
16631 .block_erasers =
16632 {
16633 {
16634 .eraseblocks = { {256 * 1024, 64} },
16635 .block_erase = spi_block_erase_d8,
16636 }, {
16637 .eraseblocks = { { 16384 * 1024, 1} },
16638 .block_erase = spi_block_erase_60,
16639 }, {
16640 .eraseblocks = { { 16384 * 1024, 1} },
16641 .block_erase = spi_block_erase_c7,
16642 }
16643 },
16644 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */
16645 .unlock = spi_disable_blockprotect_bp2_srwd,
16646 .write = spi_chip_write_256, /* Multi I/O supported */
16647 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16648 .voltage = {2700, 3600},
16649 },
16650
16651 {
16652 .vendor = "Spansion",
16653 .name = "S25FL132K",
16654 .bustype = BUS_SPI,
16655 .manufacture_id = SPANSION_ID,
16656 .model_id = SPANSION_S25FL132K,
16657 .total_size = 4096,
16658 .page_size = 256,
16659 /* OTP: 768B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
16660 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16661 .tested = TEST_UNTESTED,
16662 .probe = probe_spi_rdid,
16663 .probe_timing = TIMING_ZERO,
16664 .block_erasers =
16665 {
16666 {
16667 .eraseblocks = { {4 * 1024, 1024} },
16668 .block_erase = spi_block_erase_20,
16669 }, {
16670 .eraseblocks = { {64 * 1024, 64} },
16671 .block_erase = spi_block_erase_d8,
16672 }, {
16673 .eraseblocks = { { 4096 * 1024, 1} },
16674 .block_erase = spi_block_erase_60,
16675 }, {
16676 .eraseblocks = { { 4096 * 1024, 1} },
16677 .block_erase = spi_block_erase_c7,
16678 }
16679 },
16680 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
16681 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
16682 .write = spi_chip_write_256,
16683 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16684 .voltage = {2700, 3600},
16685 },
16686
16687 {
16688 .vendor = "Spansion",
16689 .name = "S25FL164K",
16690 .bustype = BUS_SPI,
16691 .manufacture_id = SPANSION_ID,
16692 .model_id = SPANSION_S25FL164K,
16693 .total_size = 8192,
16694 .page_size = 256,
16695 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
16696 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16697 .tested = TEST_OK_PREW,
16698 .probe = probe_spi_rdid,
16699 .probe_timing = TIMING_ZERO,
16700 .block_erasers =
16701 {
16702 {
16703 .eraseblocks = { {4 * 1024, 2048} },
16704 .block_erase = spi_block_erase_20,
16705 }, {
16706 .eraseblocks = { {64 * 1024, 128} },
16707 .block_erase = spi_block_erase_d8,
16708 }, {
16709 .eraseblocks = { { 8192 * 1024, 1} },
16710 .block_erase = spi_block_erase_60,
16711 }, {
16712 .eraseblocks = { { 8192 * 1024, 1} },
16713 .block_erase = spi_block_erase_c7,
16714 }
16715 },
16716 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
16717 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
16718 .write = spi_chip_write_256,
16719 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16720 .voltage = {2700, 3600},
16721 },
16722
16723 {
16724 .vendor = "Spansion",
16725 .name = "S25FL204K",
16726 .bustype = BUS_SPI,
16727 .manufacture_id = SPANSION_ID,
16728 .model_id = SPANSION_S25FL204,
16729 .total_size = 512,
16730 .page_size = 256,
16731 .feature_bits = FEATURE_WRSR_WREN,
16732 .tested = TEST_OK_PR,
16733 .probe = probe_spi_rdid,
16734 .probe_timing = TIMING_ZERO,
16735 .block_erasers =
16736 {
16737 {
16738 .eraseblocks = { {4 * 1024, 128} },
16739 .block_erase = spi_block_erase_20,
16740 }, {
16741 .eraseblocks = { {64 * 1024, 8} },
16742 .block_erase = spi_block_erase_d8,
16743 }, {
16744 .eraseblocks = { { 512 * 1024, 1} },
16745 .block_erase = spi_block_erase_60,
16746 }, {
16747 .eraseblocks = { { 512 * 1024, 1} },
16748 .block_erase = spi_block_erase_c7,
16749 }
16750 },
16751 .printlock = spi_prettyprint_status_register_bp3_srwd,
16752 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
16753 .write = spi_chip_write_256,
16754 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
16755 .voltage = {2700, 3600},
16756 },
16757
16758 {
16759 .vendor = "Spansion",
16760 .name = "S25FL208K",
16761 .bustype = BUS_SPI,
16762 .manufacture_id = SPANSION_ID,
16763 .model_id = SPANSION_S25FL208,
16764 .total_size = 1024,
16765 .page_size = 256,
16766 .feature_bits = FEATURE_WRSR_WREN,
16767 .tested = TEST_OK_PREW,
16768 .probe = probe_spi_rdid,
16769 .probe_timing = TIMING_ZERO,
16770 .block_erasers =
16771 {
16772 {
16773 .eraseblocks = { {4 * 1024, 256} },
16774 .block_erase = spi_block_erase_20,
16775 }, {
16776 .eraseblocks = { {64 * 1024, 16} },
16777 .block_erase = spi_block_erase_d8,
16778 }, {
16779 .eraseblocks = { { 1024 * 1024, 1} },
16780 .block_erase = spi_block_erase_60,
16781 }, {
16782 .eraseblocks = { { 1024 * 1024, 1} },
16783 .block_erase = spi_block_erase_c7,
16784 }
16785 },
16786 .printlock = spi_prettyprint_status_register_bp3_srwd,
16787 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
16788 .write = spi_chip_write_256,
16789 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
16790 .voltage = {2700, 3600},
16791 },
16792
16793 {
16794 .vendor = "Spansion",
Nico Huberfffc48d2022-05-28 14:26:06 +020016795 .name = "S25FL256L",
16796 .bustype = BUS_SPI,
16797 .manufacture_id = SPANSION_ID,
16798 .model_id = SPANSION_S25FL256L,
16799 .total_size = 32768,
16800 .page_size = 256,
16801 /* 4 x 256B Security Region (OTP) */
16802 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT3 | FEATURE_OTP |
16803 FEATURE_4BA_ENTER | FEATURE_4BA_NATIVE,
16804 .tested = TEST_UNTESTED,
16805 .probe = probe_spi_rdid,
16806 .probe_timing = TIMING_ZERO,
16807 .block_erasers =
16808 {
16809 {
16810 .eraseblocks = { {4 * 1024, 8192} },
16811 .block_erase = spi_block_erase_21,
16812 }, {
16813 .eraseblocks = { {4 * 1024, 8192} },
16814 .block_erase = spi_block_erase_20,
16815 }, {
16816 .eraseblocks = { {32 * 1024, 1024} },
16817 .block_erase = spi_block_erase_53,
16818 }, {
16819 .eraseblocks = { {32 * 1024, 1024} },
16820 .block_erase = spi_block_erase_52,
16821 }, {
16822 .eraseblocks = { {64 * 1024, 512} },
16823 .block_erase = spi_block_erase_dc,
16824 }, {
16825 .eraseblocks = { {64 * 1024, 512} },
16826 .block_erase = spi_block_erase_d8,
16827 }, {
16828 .eraseblocks = { {32768 * 1024, 1} },
16829 .block_erase = spi_block_erase_60,
16830 }, {
16831 .eraseblocks = { {32768 * 1024, 1} },
16832 .block_erase = spi_block_erase_c7,
16833 }
16834 },
16835 .printlock = spi_prettyprint_status_register_bp3_srwd,
16836 .unlock = spi_disable_blockprotect_bp3_srwd,
16837 .write = spi_chip_write_256,
16838 .read = spi_chip_read, /* Fast read (0x0B) supported */
16839 .voltage = {2700, 3600},
16840 .reg_bits =
16841 {
16842 /*
16843 * Note: This chip has a read-only Status Register 2 that is not
16844 * counted here. Registers are mapped as follows:
16845 * STATUS1 ... Status Register 1
16846 * STATUS2 ... Configuration Register 1
16847 * STATUS3 ... Configuration Register 2
16848 */
16849 .srp = {STATUS1, 7, RW},
16850 .srl = {STATUS2, 0, RW},
16851 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}},
16852 .tb = {STATUS1, 6, RW},
16853 .cmp = {STATUS2, 6, RW},
16854 .wps = {STATUS3, 2, RW},
16855 },
16856 .decode_range = decode_range_spi25,
16857 },
16858
16859 {
16860 .vendor = "Spansion",
Alan Green1f9cc7d2019-07-01 11:10:45 +100016861 .name = "S25FL256S......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
16862 .bustype = BUS_SPI,
16863 .manufacture_id = SPANSION_ID,
16864 .model_id = SPANSION_S25FL256,
16865 .total_size = 32768,
16866 .page_size = 256,
16867 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
Nico Huber9bb8a322022-05-24 15:07:34 +020016868 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP |
16869 FEATURE_4BA_NATIVE | FEATURE_4BA_ENTER_EAR7 | FEATURE_4BA_EAR_1716,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016870 .tested = TEST_OK_PREW,
16871 .probe = probe_spi_rdid,
16872 .probe_timing = TIMING_ZERO,
16873 .block_erasers =
16874 {
16875 {
16876 /* This chip supports erasing of the 32 so-called "parameter sectors" with
16877 * opcode 0x20. Trying to access an address outside these 4kB blocks does
16878 * have no effect on the memory contents, but sets a flag in the SR.
16879 .eraseblocks = {
16880 {4 * 1024, 32},
16881 {64 * 1024, 254} // inaccessible
16882 },
16883 .block_erase = spi_block_erase_20,
16884 }, { */
16885 .eraseblocks = { { 64 * 1024, 512} },
16886 .block_erase = spi_block_erase_dc,
16887 }, {
16888 .eraseblocks = { { 64 * 1024, 512} },
16889 .block_erase = spi_block_erase_d8,
16890 }, {
16891 .eraseblocks = { { 32768 * 1024, 1} },
16892 .block_erase = spi_block_erase_60,
16893 }, {
16894 .eraseblocks = { { 32768 * 1024, 1} },
16895 .block_erase = spi_block_erase_c7,
16896 }
16897 },
16898 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
16899 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
16900 .write = spi_chip_write_256, /* Multi I/O supported */
16901 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16902 .voltage = {2700, 3600},
Alan Green1f9cc7d2019-07-01 11:10:45 +100016903 },
16904
16905 {
Bernhard Urban-Forster05c629b2020-02-02 21:29:48 +010016906 .vendor = "Spansion",
16907 .name = "S25FL512S",
16908 .bustype = BUS_SPI,
16909 .manufacture_id = SPANSION_ID,
16910 .model_id = SPANSION_S25FL512,
16911 .total_size = 65536, /* 512 Mb (=> 64 MB)) */
16912 .page_size = 256,
16913 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
Nico Huber26237922022-06-20 19:37:37 +020016914 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP |
16915 FEATURE_4BA_NATIVE | FEATURE_4BA_ENTER_EAR7 | FEATURE_4BA_EAR_1716,
16916 .tested = TEST_UNTESTED,
Bernhard Urban-Forster05c629b2020-02-02 21:29:48 +010016917 .probe = probe_spi_rdid,
16918 .probe_timing = TIMING_ZERO,
16919 .block_erasers =
16920 {
16921 {
16922 .eraseblocks = { { 256 * 1024, 256} },
16923 .block_erase = spi_block_erase_dc,
16924 }, {
Nico Huberbb608ff2022-05-24 15:33:26 +020016925 .eraseblocks = { { 256 * 1024, 256} },
16926 .block_erase = spi_block_erase_d8,
16927 }, {
Bernhard Urban-Forster05c629b2020-02-02 21:29:48 +010016928 .eraseblocks = { { 65536 * 1024, 1} },
16929 .block_erase = spi_block_erase_60,
16930 }, {
16931 .eraseblocks = { { 65536 * 1024, 1} },
16932 .block_erase = spi_block_erase_c7,
16933 }
16934 },
16935 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
16936 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
16937 .write = spi_chip_write_256, /* Multi I/O supported, IGNORE for now */
16938 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16939 .voltage = {2700, 3600},
16940 },
16941
16942 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000016943 .vendor = "SyncMOS/MoselVitelic",
16944 .name = "{F,S,V}29C51001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016945 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016946 .manufacture_id = SYNCMOS_MVC_ID,
16947 .model_id = SM_MVC_29C51001B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016948 .total_size = 128,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016949 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000016950 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016951 .tested = TEST_UNTESTED,
16952 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000016953 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000016954 .block_erasers =
16955 {
16956 {
16957 .eraseblocks = { {512, 256} },
16958 .block_erase = erase_sector_jedec,
16959 }, {
16960 .eraseblocks = { {128 * 1024, 1} },
16961 .block_erase = erase_chip_block_jedec,
16962 },
16963 },
Sean Nelson35727f72010-01-28 23:55:12 +000016964 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016965 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016966 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000016967 },
16968
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016969 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000016970 .vendor = "SyncMOS/MoselVitelic",
16971 .name = "{F,S,V}29C51001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016972 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016973 .manufacture_id = SYNCMOS_MVC_ID,
16974 .model_id = SM_MVC_29C51001T,
16975 .total_size = 128,
16976 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000016977 .feature_bits = FEATURE_EITHER_RESET,
Mattias Mattsson4c066502010-07-29 20:01:13 +000016978 .tested = TEST_UNTESTED,
16979 .probe = probe_jedec,
16980 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
16981 .block_erasers =
16982 {
16983 {
16984 .eraseblocks = { {512, 256} },
16985 .block_erase = erase_sector_jedec,
16986 }, {
16987 .eraseblocks = { {128 * 1024, 1} },
16988 .block_erase = erase_chip_block_jedec,
16989 },
16990 },
16991 .write = write_jedec_1,
16992 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016993 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000016994 },
16995
16996 {
16997 .vendor = "SyncMOS/MoselVitelic",
16998 .name = "{F,S,V}29C51002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016999 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017000 .manufacture_id = SYNCMOS_MVC_ID,
17001 .model_id = SM_MVC_29C51002B,
17002 .total_size = 256,
17003 .page_size = 512,
17004 .feature_bits = FEATURE_EITHER_RESET,
17005 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017006 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000017007 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000017008 .block_erasers =
17009 {
17010 {
17011 .eraseblocks = { {512, 512} },
17012 .block_erase = erase_sector_jedec,
17013 }, {
17014 .eraseblocks = { {256 * 1024, 1} },
17015 .block_erase = erase_chip_block_jedec,
17016 },
17017 },
Sean Nelson35727f72010-01-28 23:55:12 +000017018 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017019 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000017020 },
17021
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017022 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000017023 .vendor = "SyncMOS/MoselVitelic",
17024 .name = "{F,S,V}29C51002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017025 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017026 .manufacture_id = SYNCMOS_MVC_ID,
17027 .model_id = SM_MVC_29C51002T,
17028 .total_size = 256,
17029 .page_size = 512,
17030 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000017031 .tested = TEST_OK_PREW,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017032 .probe = probe_jedec,
17033 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
17034 .block_erasers =
17035 {
17036 {
17037 .eraseblocks = { {512, 512} },
17038 .block_erase = erase_sector_jedec,
17039 }, {
17040 .eraseblocks = { {256 * 1024, 1} },
17041 .block_erase = erase_chip_block_jedec,
17042 },
17043 },
17044 .write = write_jedec_1,
17045 .read = read_memmapped,
17046 },
17047
17048 {
17049 .vendor = "SyncMOS/MoselVitelic",
17050 .name = "{F,S,V}29C51004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017051 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017052 .manufacture_id = SYNCMOS_MVC_ID,
17053 .model_id = SM_MVC_29C51004B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017054 .total_size = 512,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017055 .page_size = 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000017056 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017057 .tested = TEST_UNTESTED,
17058 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000017059 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +000017060 .block_erasers =
17061 {
17062 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000017063 .eraseblocks = { {1024, 512} },
17064 .block_erase = erase_sector_jedec,
17065 }, {
17066 .eraseblocks = { {512 * 1024, 1} },
17067 .block_erase = erase_chip_block_jedec,
17068 },
17069 },
17070 .write = write_jedec_1,
17071 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017072 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000017073 },
17074
17075 {
17076 .vendor = "SyncMOS/MoselVitelic",
17077 .name = "{F,S,V}29C51004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017078 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017079 .manufacture_id = SYNCMOS_MVC_ID,
17080 .model_id = SM_MVC_29C51004T,
17081 .total_size = 512,
17082 .page_size = 1024,
17083 .feature_bits = FEATURE_EITHER_RESET,
17084 .tested = TEST_UNTESTED,
17085 .probe = probe_jedec,
17086 .probe_timing = TIMING_ZERO,
17087 .block_erasers =
17088 {
17089 {
17090 .eraseblocks = { {1024, 512} },
17091 .block_erase = erase_sector_jedec,
17092 }, {
17093 .eraseblocks = { {512 * 1024, 1} },
17094 .block_erase = erase_chip_block_jedec,
17095 },
17096 },
17097 .write = write_jedec_1,
17098 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017099 .voltage = {4500, 5500},
Mattias Mattsson4c066502010-07-29 20:01:13 +000017100 },
17101
17102 {
17103 .vendor = "SyncMOS/MoselVitelic",
17104 .name = "{S,V}29C31004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017105 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017106 .manufacture_id = SYNCMOS_MVC_ID,
17107 .model_id = SM_MVC_29C31004B,
17108 .total_size = 512,
17109 .page_size = 1024,
17110 .feature_bits = FEATURE_EITHER_RESET,
17111 .tested = TEST_UNTESTED,
17112 .probe = probe_jedec,
17113 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
17114 .block_erasers =
17115 {
17116 {
17117 .eraseblocks = { {1024, 512} },
17118 .block_erase = erase_sector_jedec,
17119 }, {
17120 .eraseblocks = { {512 * 1024, 1} },
17121 .block_erase = erase_chip_block_jedec,
17122 },
17123 },
17124 .write = write_jedec_1,
17125 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017126 .voltage = {3000, 3600},
Mattias Mattsson4c066502010-07-29 20:01:13 +000017127 },
17128
17129 {
17130 .vendor = "SyncMOS/MoselVitelic",
17131 .name = "{S,V}29C31004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017132 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017133 .manufacture_id = SYNCMOS_MVC_ID,
17134 .model_id = SM_MVC_29C31004T,
17135 .total_size = 512,
17136 .page_size = 1024,
17137 .feature_bits = FEATURE_EITHER_RESET,
17138 .tested = TEST_UNTESTED,
17139 .probe = probe_jedec,
17140 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
17141 .block_erasers =
17142 {
17143 {
17144 .eraseblocks = { {1024, 512} },
Sean Nelson56358aa2010-01-19 16:08:51 +000017145 .block_erase = erase_sector_jedec,
17146 }, {
17147 .eraseblocks = { {512 * 1024, 1} },
17148 .block_erase = erase_chip_block_jedec,
17149 },
17150 },
Sean Nelson35727f72010-01-28 23:55:12 +000017151 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017152 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017153 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000017154 },
17155
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017156 {
Uwe Hermanna106d152009-05-27 23:17:40 +000017157 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017158 .name = "TMS29F002RB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017159 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017160 .manufacture_id = TI_OLD_ID,
17161 .model_id = TI_TMS29F002RB,
17162 .total_size = 256,
17163 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000017164 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017165 .tested = TEST_UNTESTED,
17166 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000017167 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000017168 .block_erasers =
17169 {
17170 {
17171 .eraseblocks = {
17172 {16 * 1024, 1},
17173 {8 * 1024, 2},
17174 {32 * 1024, 1},
17175 {64 * 1024, 3},
17176 },
17177 .block_erase = erase_sector_jedec,
17178 }, {
17179 .eraseblocks = { {256 * 1024, 1} },
17180 .block_erase = erase_chip_block_jedec,
17181 },
17182 },
Sean Nelson35727f72010-01-28 23:55:12 +000017183 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017184 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017185 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017186 },
17187
17188 {
Uwe Hermanna106d152009-05-27 23:17:40 +000017189 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017190 .name = "TMS29F002RT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017191 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017192 .manufacture_id = TI_OLD_ID,
17193 .model_id = TI_TMS29F002RT,
17194 .total_size = 256,
17195 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000017196 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017197 .tested = TEST_UNTESTED,
17198 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000017199 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000017200 .block_erasers =
17201 {
17202 {
17203 .eraseblocks = {
17204 {64 * 1024, 3},
17205 {32 * 1024, 1},
17206 {8 * 1024, 2},
17207 {16 * 1024, 1},
17208 },
17209 .block_erase = erase_sector_jedec,
17210 }, {
17211 .eraseblocks = { {256 * 1024, 1} },
17212 .block_erase = erase_chip_block_jedec,
17213 },
17214 },
Sean Nelson35727f72010-01-28 23:55:12 +000017215 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017216 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017217 .voltage = {4500, 5500},
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017218 },
17219
17220 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017221 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017222 .name = "W25P16",
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000017223 .bustype = BUS_SPI,
17224 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017225 .model_id = WINBOND_NEX_W25P16,
17226 .total_size = 2048,
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000017227 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017228 .feature_bits = FEATURE_WRSR_WREN,
17229 .tested = TEST_UNTESTED,
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000017230 .probe = probe_spi_rdid,
17231 .probe_timing = TIMING_ZERO,
17232 .block_erasers =
17233 {
17234 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017235 .eraseblocks = { {64 * 1024, 32} },
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000017236 .block_erase = spi_block_erase_d8,
17237 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017238 .eraseblocks = { {2048 * 1024, 1} },
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000017239 .block_erase = spi_block_erase_c7,
17240 }
17241 },
17242 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17243 .unlock = spi_disable_blockprotect,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017244 .write = spi_chip_write_256,
17245 .read = spi_chip_read, /* Fast read (0x0B) supported */
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000017246 .voltage = {2700, 3600},
17247 },
17248
17249 {
17250 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017251 .name = "W25P32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017252 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000017253 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017254 .model_id = WINBOND_NEX_W25P32,
17255 .total_size = 4096,
Rudolf Marekce1c7982010-04-20 19:34:31 +000017256 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017257 .feature_bits = FEATURE_WRSR_WREN,
17258 .tested = TEST_UNTESTED,
Rudolf Marekce1c7982010-04-20 19:34:31 +000017259 .probe = probe_spi_rdid,
17260 .probe_timing = TIMING_ZERO,
17261 .block_erasers =
17262 {
17263 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017264 .eraseblocks = { {64 * 1024, 64} },
17265 .block_erase = spi_block_erase_d8,
Rudolf Marekce1c7982010-04-20 19:34:31 +000017266 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017267 .eraseblocks = { {4096 * 1024, 1} },
17268 .block_erase = spi_block_erase_c7,
17269 }
17270 },
17271 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17272 .unlock = spi_disable_blockprotect,
17273 .write = spi_chip_write_256,
17274 .read = spi_chip_read, /* Fast read (0x0B) supported */
17275 .voltage = {2700, 3600},
17276 },
17277
17278 {
17279 .vendor = "Winbond",
17280 .name = "W25P80",
17281 .bustype = BUS_SPI,
17282 .manufacture_id = WINBOND_NEX_ID,
17283 .model_id = WINBOND_NEX_W25P80,
17284 .total_size = 1024,
17285 .page_size = 256,
17286 .feature_bits = FEATURE_WRSR_WREN,
17287 .tested = TEST_UNTESTED,
17288 .probe = probe_spi_rdid,
17289 .probe_timing = TIMING_ZERO,
17290 .block_erasers =
17291 {
17292 {
Rudolf Marekce1c7982010-04-20 19:34:31 +000017293 .eraseblocks = { {64 * 1024, 16} },
17294 .block_erase = spi_block_erase_d8,
17295 }, {
17296 .eraseblocks = { {1024 * 1024, 1} },
Rudolf Marekce1c7982010-04-20 19:34:31 +000017297 .block_erase = spi_block_erase_c7,
17298 }
17299 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000017300 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000017301 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000017302 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017303 .read = spi_chip_read, /* Fast read (0x0B) supported */
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017304 .voltage = {2700, 3600},
David Hendricksc4acec92010-06-24 11:39:57 +000017305 },
17306
17307 {
17308 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017309 .name = "W25Q128.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017310 .bustype = BUS_SPI,
Antony Rheneus0fbba982011-05-26 14:28:51 +000017311 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017312 .model_id = WINBOND_NEX_W25Q128_V,
Antony Rheneus0fbba982011-05-26 14:28:51 +000017313 .total_size = 16384,
17314 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017315 /* supports SFDP */
17316 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber3f3c1f32022-05-28 16:48:26 +020017317 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP |
17318 FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3,
Edward O'Callaghana97e3532022-12-16 15:41:05 +110017319 .tested = TEST_OK_PREWB,
Antony Rheneus0fbba982011-05-26 14:28:51 +000017320 .probe = probe_spi_rdid,
17321 .probe_timing = TIMING_ZERO,
17322 .block_erasers =
17323 {
17324 {
17325 .eraseblocks = { {4 * 1024, 4096} },
17326 .block_erase = spi_block_erase_20,
17327 }, {
17328 .eraseblocks = { {32 * 1024, 512} },
17329 .block_erase = spi_block_erase_52,
17330 }, {
17331 .eraseblocks = { {64 * 1024, 256} },
17332 .block_erase = spi_block_erase_d8,
17333 }, {
17334 .eraseblocks = { {16 * 1024 * 1024, 1} },
17335 .block_erase = spi_block_erase_60,
17336 }, {
17337 .eraseblocks = { {16 * 1024 * 1024, 1} },
17338 .block_erase = spi_block_erase_c7,
17339 }
17340 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000017341 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Antony Rheneus0fbba982011-05-26 14:28:51 +000017342 .unlock = spi_disable_blockprotect,
17343 .write = spi_chip_write_256,
17344 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017345 .voltage = {2700, 3600},
Sergii Dmytrukd1af3072021-11-08 00:00:43 +020017346 /* FIXME: Older versions (e.g. 25Q128BV) use WRSR_EXT and have no WPS. */
17347 .reg_bits =
17348 {
17349 .srp = {STATUS1, 7, RW},
17350 .srl = {STATUS2, 0, RW},
17351 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
17352 .tb = {STATUS1, 5, RW},
17353 .sec = {STATUS1, 6, RW},
17354 .cmp = {STATUS2, 6, RW},
17355 .wps = {STATUS3, 2, RW},
17356 },
17357 .decode_range = decode_range_spi25,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017358 },
17359
17360 {
17361 .vendor = "Winbond",
Patrick Rudolph34323492018-10-04 14:59:40 +020017362 .name = "W25Q128.V..M",
17363 .bustype = BUS_SPI,
17364 .manufacture_id = WINBOND_NEX_ID,
17365 .model_id = WINBOND_NEX_W25Q128_V_M,
17366 .total_size = 16384,
17367 .page_size = 256,
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110017368 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_WRSR2,
Sergii Dmytrukc74eac22022-10-06 18:17:58 +030017369 .tested = TEST_OK_PREWB,
Patrick Rudolph34323492018-10-04 14:59:40 +020017370 .probe = probe_spi_rdid,
17371 .probe_timing = TIMING_ZERO,
17372 .block_erasers =
17373 {
17374 {
17375 .eraseblocks = { {4 * 1024, 4096} },
17376 .block_erase = spi_block_erase_20,
17377 }, {
17378 .eraseblocks = { {32 * 1024, 512} },
17379 .block_erase = spi_block_erase_52,
17380 }, {
17381 .eraseblocks = { {64 * 1024, 256} },
17382 .block_erase = spi_block_erase_d8,
17383 }, {
17384 .eraseblocks = { {16 * 1024 * 1024, 1} },
17385 .block_erase = spi_block_erase_60,
17386 }, {
17387 .eraseblocks = { {16 * 1024 * 1024, 1} },
17388 .block_erase = spi_block_erase_c7,
17389 }
17390 },
Alan Greena1fc01d2019-09-23 17:12:44 +100017391 .printlock = spi_prettyprint_status_register_plain,
Patrick Rudolph34323492018-10-04 14:59:40 +020017392 .unlock = spi_disable_blockprotect,
17393 .write = spi_chip_write_256,
17394 .read = spi_chip_read,
17395 .voltage = {2700, 3600},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110017396 .reg_bits =
17397 {
17398 .srp = {STATUS1, 7, RW},
17399 .srl = {STATUS2, 0, RW},
17400 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
17401 .tb = {STATUS1, 5, RW},
17402 .sec = {STATUS1, 6, RW},
17403 .cmp = {STATUS2, 6, RW},
17404 },
17405 .decode_range = decode_range_spi25,
Patrick Rudolph34323492018-10-04 14:59:40 +020017406 },
17407
17408 {
17409 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017410 .name = "W25Q128.W",
17411 .bustype = BUS_SPI,
17412 .manufacture_id = WINBOND_NEX_ID,
17413 .model_id = WINBOND_NEX_W25Q128_W,
17414 .total_size = 16384,
17415 .page_size = 256,
17416 /* supports SFDP */
17417 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110017418 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_WRSR2,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017419 .tested = TEST_OK_PREW,
17420 .probe = probe_spi_rdid,
17421 .probe_timing = TIMING_ZERO,
17422 .block_erasers =
17423 {
17424 {
17425 .eraseblocks = { {4 * 1024, 4096} },
17426 .block_erase = spi_block_erase_20,
17427 }, {
17428 .eraseblocks = { {32 * 1024, 512} },
17429 .block_erase = spi_block_erase_52,
17430 }, {
17431 .eraseblocks = { {64 * 1024, 256} },
17432 .block_erase = spi_block_erase_d8,
17433 }, {
17434 .eraseblocks = { {16 * 1024 * 1024, 1} },
17435 .block_erase = spi_block_erase_60,
17436 }, {
17437 .eraseblocks = { {16 * 1024 * 1024, 1} },
17438 .block_erase = spi_block_erase_c7,
17439 }
17440 },
17441 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17442 .unlock = spi_disable_blockprotect,
17443 .write = spi_chip_write_256,
17444 .read = spi_chip_read,
17445 .voltage = {1650, 1950},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110017446 .reg_bits =
17447 {
17448 .srp = {STATUS1, 7, RW},
17449 .srl = {STATUS2, 0, RW},
17450 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
17451 .tb = {STATUS1, 5, RW},
17452 .sec = {STATUS1, 6, RW},
17453 .cmp = {STATUS2, 6, RW},
17454 },
17455 .decode_range = decode_range_spi25,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017456 },
17457
17458 {
17459 .vendor = "Winbond",
Peichao Wang1a119492019-11-11 15:26:41 +080017460 .name = "W25Q128.JW.DTR",
17461 .bustype = BUS_SPI,
17462 .manufacture_id = WINBOND_NEX_ID,
17463 .model_id = WINBOND_NEX_W25Q128_DTR,
17464 .total_size = 16384,
17465 .page_size = 256,
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110017466 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_WRSR2,
Peichao Wang1a119492019-11-11 15:26:41 +080017467 .tested = TEST_OK_PREW,
17468 .probe = probe_spi_rdid,
17469 .probe_timing = TIMING_ZERO,
17470 .block_erasers =
17471 {
17472 {
17473 .eraseblocks = { {4 * 1024, 4096} },
17474 .block_erase = spi_block_erase_20,
17475 }, {
17476 .eraseblocks = { {32 * 1024, 512} },
17477 .block_erase = spi_block_erase_52,
17478 }, {
17479 .eraseblocks = { {64 * 1024, 256} },
17480 .block_erase = spi_block_erase_d8,
17481 }, {
17482 .eraseblocks = { {16 * 1024 * 1024, 1} },
17483 .block_erase = spi_block_erase_60,
17484 }, {
17485 .eraseblocks = { {16 * 1024 * 1024, 1} },
17486 .block_erase = spi_block_erase_c7,
17487 }
17488 },
17489 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17490 .unlock = spi_disable_blockprotect,
17491 .write = spi_chip_write_256,
17492 .read = spi_chip_read,
17493 .voltage = {1650, 1950},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110017494 .reg_bits =
17495 {
17496 .srp = {STATUS1, 7, RW},
17497 .srl = {STATUS2, 0, RW},
17498 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
17499 .tb = {STATUS1, 5, RW},
17500 .sec = {STATUS1, 6, RW},
17501 .cmp = {STATUS2, 6, RW},
17502 },
17503 .decode_range = decode_range_spi25,
Peichao Wang1a119492019-11-11 15:26:41 +080017504 },
17505
17506 {
17507 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017508 .name = "W25Q16.V",
17509 .bustype = BUS_SPI,
17510 .manufacture_id = WINBOND_NEX_ID,
17511 .model_id = WINBOND_NEX_W25Q16_V,
17512 .total_size = 2048,
17513 .page_size = 256,
17514 /* supports SFDP */
17515 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17516 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17517 .tested = TEST_OK_PREW,
17518 .probe = probe_spi_rdid,
17519 .probe_timing = TIMING_ZERO,
17520 .block_erasers =
17521 {
17522 {
17523 .eraseblocks = { {4 * 1024, 512} },
17524 .block_erase = spi_block_erase_20,
17525 }, {
17526 .eraseblocks = { {32 * 1024, 64} },
17527 .block_erase = spi_block_erase_52,
17528 }, {
17529 .eraseblocks = { {64 * 1024, 32} },
17530 .block_erase = spi_block_erase_d8,
17531 }, {
17532 .eraseblocks = { {2 * 1024 * 1024, 1} },
17533 .block_erase = spi_block_erase_60,
17534 }, {
17535 .eraseblocks = { {2 * 1024 * 1024, 1} },
17536 .block_erase = spi_block_erase_c7,
17537 }
17538 },
17539 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17540 .unlock = spi_disable_blockprotect,
17541 .write = spi_chip_write_256,
17542 .read = spi_chip_read,
17543 .voltage = {2700, 3600},
17544 },
17545
17546 {
17547 .vendor = "Winbond",
17548 .name = "W25Q16.W",
17549 .bustype = BUS_SPI,
17550 .manufacture_id = WINBOND_NEX_ID,
17551 .model_id = WINBOND_NEX_W25Q16_W,
17552 .total_size = 2048,
17553 .page_size = 256,
17554 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17555 /* QPI enable 0x38, disable 0xFF */
17556 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
17557 .tested = TEST_UNTESTED,
17558 .probe = probe_spi_rdid,
17559 .probe_timing = TIMING_ZERO,
17560 .block_erasers =
17561 {
17562 {
17563 .eraseblocks = { {4 * 1024, 512} },
17564 .block_erase = spi_block_erase_20,
17565 }, {
17566 .eraseblocks = { {32 * 1024, 64} },
17567 .block_erase = spi_block_erase_52,
17568 }, {
17569 .eraseblocks = { {64 * 1024, 32} },
17570 .block_erase = spi_block_erase_d8,
17571 }, {
17572 .eraseblocks = { {2 * 1024 * 1024, 1} },
17573 .block_erase = spi_block_erase_60,
17574 }, {
17575 .eraseblocks = { {2 * 1024 * 1024, 1} },
17576 .block_erase = spi_block_erase_c7,
17577 }
17578 },
17579 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17580 .unlock = spi_disable_blockprotect,
17581 .write = spi_chip_write_256,
17582 .read = spi_chip_read,
17583 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
17584 },
17585
17586 {
17587 .vendor = "Winbond",
17588 .name = "W25Q20.W",
17589 .bustype = BUS_SPI,
17590 .manufacture_id = WINBOND_NEX_ID,
17591 .model_id = WINBOND_NEX_W25Q20_W,
17592 .total_size = 256,
17593 .page_size = 256,
17594 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17595 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17596 .tested = TEST_UNTESTED,
17597 .probe = probe_spi_rdid,
17598 .probe_timing = TIMING_ZERO,
17599 .block_erasers =
17600 {
17601 {
17602 .eraseblocks = { {4 * 1024, 64} },
17603 .block_erase = spi_block_erase_20,
17604 }, {
17605 .eraseblocks = { {32 * 1024, 8} },
17606 .block_erase = spi_block_erase_52,
17607 }, {
17608 .eraseblocks = { {64 * 1024, 4} },
17609 .block_erase = spi_block_erase_d8,
17610 }, {
17611 .eraseblocks = { {256 * 1024, 1} },
17612 .block_erase = spi_block_erase_60,
17613 }, {
17614 .eraseblocks = { {256 * 1024, 1} },
17615 .block_erase = spi_block_erase_c7,
17616 }
17617 },
17618 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17619 .unlock = spi_disable_blockprotect,
17620 .write = spi_chip_write_256,
17621 .read = spi_chip_read,
17622 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
17623 },
17624
17625 {
17626 .vendor = "Winbond",
Nico Huber5215eab2022-05-23 15:13:07 +020017627 .name = "W25Q256FV",
Boris Baykovaa6c3742016-06-11 18:29:01 +020017628 .bustype = BUS_SPI,
17629 .manufacture_id = WINBOND_NEX_ID,
17630 .model_id = WINBOND_NEX_W25Q256_V,
17631 .total_size = 32768,
17632 .page_size = 256,
17633 /* supports SFDP */
17634 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110017635 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_ENTER_WREN |
Nico Huber542b1f02022-05-24 14:30:12 +020017636 FEATURE_4BA_EAR_C5C8 | FEATURE_4BA_READ | FEATURE_4BA_FAST_READ |
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110017637 FEATURE_WRSR2,
Angel Pons3130cbd2018-09-30 19:32:30 +020017638 .tested = TEST_OK_PREW,
Boris Baykovaa6c3742016-06-11 18:29:01 +020017639 .probe = probe_spi_rdid,
17640 .probe_timing = TIMING_ZERO,
17641 .block_erasers =
17642 {
17643 {
17644 .eraseblocks = { {4 * 1024, 8192} },
Nico Huber7a077222017-10-14 18:18:30 +020017645 .block_erase = spi_block_erase_20,
Boris Baykovaa6c3742016-06-11 18:29:01 +020017646 }, {
17647 .eraseblocks = { {32 * 1024, 1024} },
Nico Huber7a077222017-10-14 18:18:30 +020017648 .block_erase = spi_block_erase_52,
Boris Baykovaa6c3742016-06-11 18:29:01 +020017649 }, {
17650 .eraseblocks = { {64 * 1024, 512} },
Nico Huber7a077222017-10-14 18:18:30 +020017651 .block_erase = spi_block_erase_d8,
Boris Baykovaa6c3742016-06-11 18:29:01 +020017652 }, {
17653 .eraseblocks = { {32 * 1024 * 1024, 1} },
17654 .block_erase = spi_block_erase_60,
17655 }, {
17656 .eraseblocks = { {32 * 1024 * 1024, 1} },
17657 .block_erase = spi_block_erase_c7,
17658 }
17659 },
17660 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17661 .unlock = spi_disable_blockprotect,
17662 .write = spi_chip_write_256,
17663 .read = spi_chip_read,
17664 .voltage = {2700, 3600},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110017665 .reg_bits =
17666 {
17667 .srp = {STATUS1, 7, RW},
17668 .srl = {STATUS2, 0, RW},
17669 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}},
17670 .tb = {STATUS1, 6, RW},
17671 .cmp = {STATUS2, 6, RW},
17672 },
17673 .decode_range = decode_range_spi25,
Boris Baykovaa6c3742016-06-11 18:29:01 +020017674 },
17675
17676 {
17677 .vendor = "Winbond",
Nico Huber5215eab2022-05-23 15:13:07 +020017678 .name = "W25Q256JV_Q",
17679 .bustype = BUS_SPI,
17680 .manufacture_id = WINBOND_NEX_ID,
17681 .model_id = WINBOND_NEX_W25Q256_V,
17682 .total_size = 32768,
17683 .page_size = 256,
17684 /* supports SFDP */
17685 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17686 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA | FEATURE_WRSR2,
Nico Huberddfbbe82023-12-21 16:31:27 +010017687 .tested = TEST_OK_PREW,
Nico Huber5215eab2022-05-23 15:13:07 +020017688 .probe = probe_spi_rdid,
17689 .probe_timing = TIMING_ZERO,
17690 .block_erasers =
17691 {
17692 {
17693 .eraseblocks = { {4 * 1024, 8192} },
17694 .block_erase = spi_block_erase_21,
17695 }, {
17696 .eraseblocks = { {4 * 1024, 8192} },
17697 .block_erase = spi_block_erase_20,
17698 }, {
17699 .eraseblocks = { {32 * 1024, 1024} },
17700 .block_erase = spi_block_erase_52,
17701 }, {
17702 .eraseblocks = { {64 * 1024, 512} },
17703 .block_erase = spi_block_erase_dc,
17704 }, {
17705 .eraseblocks = { {64 * 1024, 512} },
17706 .block_erase = spi_block_erase_d8,
17707 }, {
17708 .eraseblocks = { {32 * 1024 * 1024, 1} },
17709 .block_erase = spi_block_erase_60,
17710 }, {
17711 .eraseblocks = { {32 * 1024 * 1024, 1} },
17712 .block_erase = spi_block_erase_c7,
17713 }
17714 },
17715 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17716 .unlock = spi_disable_blockprotect,
17717 .write = spi_chip_write_256,
17718 .read = spi_chip_read,
17719 .voltage = {2700, 3600},
17720 .reg_bits =
17721 {
17722 .srp = {STATUS1, 7, RW},
17723 .srl = {STATUS2, 0, RW},
17724 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}},
17725 .tb = {STATUS1, 6, RW},
17726 .cmp = {STATUS2, 6, RW},
17727 },
17728 .decode_range = decode_range_spi25,
17729 },
17730
17731 {
17732 .vendor = "Winbond",
David Hendricks49876792018-10-27 20:19:42 +000017733 .name = "W25Q256JV_M",
17734 .bustype = BUS_SPI,
17735 .manufacture_id = WINBOND_NEX_ID,
17736 .model_id = WINBOND_NEX_W25Q256JV_M,
17737 .total_size = 32768,
17738 .page_size = 256,
17739 /* supports SFDP */
17740 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110017741 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA | FEATURE_WRSR2,
David Hendricks49876792018-10-27 20:19:42 +000017742 .tested = TEST_OK_PREW,
17743 .probe = probe_spi_rdid,
17744 .probe_timing = TIMING_ZERO,
17745 .block_erasers =
17746 {
17747 {
17748 .eraseblocks = { {4 * 1024, 8192} },
17749 .block_erase = spi_block_erase_21,
17750 }, {
17751 .eraseblocks = { {4 * 1024, 8192} },
17752 .block_erase = spi_block_erase_20,
17753 }, {
17754 .eraseblocks = { {32 * 1024, 1024} },
17755 .block_erase = spi_block_erase_52,
17756 }, {
17757 .eraseblocks = { {64 * 1024, 512} },
17758 .block_erase = spi_block_erase_dc,
17759 }, {
17760 .eraseblocks = { {64 * 1024, 512} },
17761 .block_erase = spi_block_erase_d8,
17762 }, {
17763 .eraseblocks = { {32 * 1024 * 1024, 1} },
17764 .block_erase = spi_block_erase_60,
17765 }, {
17766 .eraseblocks = { {32 * 1024 * 1024, 1} },
17767 .block_erase = spi_block_erase_c7,
17768 }
17769 },
17770 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17771 .unlock = spi_disable_blockprotect,
17772 .write = spi_chip_write_256,
17773 .read = spi_chip_read,
17774 .voltage = {2700, 3600},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110017775 .reg_bits =
17776 {
17777 .srp = {STATUS1, 7, RW},
17778 .srl = {STATUS2, 0, RW},
17779 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}},
17780 .tb = {STATUS1, 6, RW},
17781 .cmp = {STATUS2, 6, RW},
17782 },
17783 .decode_range = decode_range_spi25,
David Hendricks49876792018-10-27 20:19:42 +000017784 },
17785
17786 {
17787 .vendor = "Winbond",
Patrick Rudolph8f5bd982020-08-26 09:15:53 +020017788 .name = "W25Q256JW",
el-coderon01209852020-04-29 12:12:53 +020017789 .bustype = BUS_SPI,
17790 .manufacture_id = WINBOND_NEX_ID,
17791 .model_id = WINBOND_NEX_W25Q256_W,
17792 .total_size = 32768,
17793 .page_size = 256,
17794 /* supports SFDP */
17795 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Patrick Rudolph8f5bd982020-08-26 09:15:53 +020017796 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
el-coderon01209852020-04-29 12:12:53 +020017797 .tested = TEST_OK_PREW,
17798 .probe = probe_spi_rdid,
17799 .probe_timing = TIMING_ZERO,
17800 .block_erasers =
17801 {
17802 {
17803 .eraseblocks = { {4 * 1024, 8192} },
Patrick Rudolph8f5bd982020-08-26 09:15:53 +020017804 .block_erase = spi_block_erase_21,
17805 }, {
17806 .eraseblocks = { {4 * 1024, 8192} },
el-coderon01209852020-04-29 12:12:53 +020017807 .block_erase = spi_block_erase_20,
17808 }, {
17809 .eraseblocks = { {32 * 1024, 1024} },
17810 .block_erase = spi_block_erase_52,
17811 }, {
17812 .eraseblocks = { {64 * 1024, 512} },
Patrick Rudolph8f5bd982020-08-26 09:15:53 +020017813 .block_erase = spi_block_erase_dc,
17814 }, {
17815 .eraseblocks = { {64 * 1024, 512} },
el-coderon01209852020-04-29 12:12:53 +020017816 .block_erase = spi_block_erase_d8,
17817 }, {
17818 .eraseblocks = { {32 * 1024 * 1024, 1} },
17819 .block_erase = spi_block_erase_60,
17820 }, {
17821 .eraseblocks = { {32 * 1024 * 1024, 1} },
17822 .block_erase = spi_block_erase_c7,
17823 }
17824 },
17825 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17826 .unlock = spi_disable_blockprotect,
17827 .write = spi_chip_write_256,
17828 .read = spi_chip_read,
17829 .voltage = {1650, 1950},
17830 },
17831
17832 {
17833 .vendor = "Winbond",
David Hendricks31532602020-08-16 17:14:56 -070017834 .name = "W25Q256JW_DTR",
17835 .bustype = BUS_SPI,
17836 .manufacture_id = WINBOND_NEX_ID,
17837 .model_id = WINBOND_NEX_W25Q256_DTR,
17838 .total_size = 32768,
17839 .page_size = 256,
17840 /* supports SFDP */
17841 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Kapil Porwal111c3802022-12-09 19:41:27 +053017842 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA | FEATURE_WRSR2
17843 | FEATURE_WRSR3,
17844 .tested = TEST_OK_PREWB,
David Hendricks31532602020-08-16 17:14:56 -070017845 .probe = probe_spi_rdid,
17846 .probe_timing = TIMING_ZERO,
17847 .block_erasers =
17848 {
17849 {
17850 .eraseblocks = { {4 * 1024, 8192} },
17851 .block_erase = spi_block_erase_21,
17852 }, {
17853 .eraseblocks = { {4 * 1024, 8192} },
17854 .block_erase = spi_block_erase_20,
17855 }, {
17856 .eraseblocks = { {32 * 1024, 1024} },
17857 .block_erase = spi_block_erase_52,
17858 }, {
17859 .eraseblocks = { {64 * 1024, 512} },
17860 .block_erase = spi_block_erase_dc,
17861 }, {
17862 .eraseblocks = { {64 * 1024, 512} },
17863 .block_erase = spi_block_erase_d8,
17864 }, {
17865 .eraseblocks = { {32 * 1024 * 1024, 1} },
17866 .block_erase = spi_block_erase_60,
17867 }, {
17868 .eraseblocks = { {32 * 1024 * 1024, 1} },
17869 .block_erase = spi_block_erase_c7,
17870 }
17871 },
17872 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17873 .unlock = spi_disable_blockprotect,
17874 .write = spi_chip_write_256,
17875 .read = spi_chip_read,
17876 .voltage = {1700, 1950},
Kapil Porwal111c3802022-12-09 19:41:27 +053017877 .reg_bits =
17878 {
17879 .srp = {STATUS1, 7, RW},
17880 .srl = {STATUS2, 0, RW},
17881 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}},
17882 .tb = {STATUS1, 6, RW},
17883 .cmp = {STATUS2, 6, RW},
17884 .wps = {STATUS3, 2, RW},
17885 },
17886 .decode_range = decode_range_spi25,
David Hendricks31532602020-08-16 17:14:56 -070017887 },
17888
17889 {
17890 .vendor = "Winbond",
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030017891 .name = "W25Q32BV/W25Q32CV/W25Q32DV",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017892 .bustype = BUS_SPI,
17893 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017894 .model_id = WINBOND_NEX_W25Q32_V,
17895 .total_size = 4096,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017896 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017897 /* supports SFDP */
17898 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030017899 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_WRSR_EXT2,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017900 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017901 .probe = probe_spi_rdid,
17902 .probe_timing = TIMING_ZERO,
17903 .block_erasers =
17904 {
17905 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017906 .eraseblocks = { {4 * 1024, 1024} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017907 .block_erase = spi_block_erase_20,
17908 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017909 .eraseblocks = { {32 * 1024, 128} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017910 .block_erase = spi_block_erase_52,
17911 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017912 .eraseblocks = { {64 * 1024, 64} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017913 .block_erase = spi_block_erase_d8,
17914 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017915 .eraseblocks = { {4 * 1024 * 1024, 1} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017916 .block_erase = spi_block_erase_60,
17917 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017918 .eraseblocks = { {4 * 1024 * 1024, 1} },
17919 .block_erase = spi_block_erase_c7,
17920 }
17921 },
17922 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17923 .unlock = spi_disable_blockprotect,
17924 .write = spi_chip_write_256,
17925 .read = spi_chip_read,
17926 .voltage = {2700, 3600},
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030017927 .reg_bits =
17928 {
17929 .srp = {STATUS1, 7, RW},
17930 .srl = {STATUS2, 0, RW},
17931 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
17932 .tb = {STATUS1, 5, RW},
17933 .sec = {STATUS1, 6, RW},
17934 .cmp = {STATUS2, 6, RW},
17935 },
17936 .decode_range = decode_range_spi25,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017937 },
17938
17939 {
17940 .vendor = "Winbond",
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030017941 .name = "W25Q32FV",
17942 .bustype = BUS_SPI,
17943 .manufacture_id = WINBOND_NEX_ID,
17944 .model_id = WINBOND_NEX_W25Q32_V,
17945 .total_size = 4096,
17946 .page_size = 256,
17947 /* supports SFDP */
17948 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
17949 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI |
17950 FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3,
17951 .tested = TEST_OK_PREW,
17952 .probe = probe_spi_rdid,
17953 .probe_timing = TIMING_ZERO,
17954 .block_erasers =
17955 {
17956 {
17957 .eraseblocks = { {4 * 1024, 1024} },
17958 .block_erase = spi_block_erase_20,
17959 }, {
17960 .eraseblocks = { {32 * 1024, 128} },
17961 .block_erase = spi_block_erase_52,
17962 }, {
17963 .eraseblocks = { {64 * 1024, 64} },
17964 .block_erase = spi_block_erase_d8,
17965 }, {
17966 .eraseblocks = { {4 * 1024 * 1024, 1} },
17967 .block_erase = spi_block_erase_60,
17968 }, {
17969 .eraseblocks = { {4 * 1024 * 1024, 1} },
17970 .block_erase = spi_block_erase_c7,
17971 }
17972 },
17973 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17974 .unlock = spi_disable_blockprotect,
17975 .write = spi_chip_write_256,
17976 .read = spi_chip_read,
17977 .voltage = {2700, 3600},
17978 .reg_bits =
17979 {
17980 .srp = {STATUS1, 7, RW},
17981 .srl = {STATUS2, 0, RW},
17982 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
17983 .tb = {STATUS1, 5, RW},
17984 .sec = {STATUS1, 6, RW},
17985 .cmp = {STATUS2, 6, RW},
17986 .wps = {STATUS3, 2, RW},
17987 },
17988 .decode_range = decode_range_spi25,
17989 },
17990
17991 {
17992 .vendor = "Winbond",
17993 .name = "W25Q32JV",
17994 .bustype = BUS_SPI,
17995 .manufacture_id = WINBOND_NEX_ID,
17996 .model_id = WINBOND_NEX_W25Q32_V,
17997 .total_size = 4096,
17998 .page_size = 256,
17999 /* supports SFDP */
18000 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
18001 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP |
18002 FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3,
18003 .tested = TEST_OK_PREW,
18004 .probe = probe_spi_rdid,
18005 .probe_timing = TIMING_ZERO,
18006 .block_erasers =
18007 {
18008 {
18009 .eraseblocks = { {4 * 1024, 1024} },
18010 .block_erase = spi_block_erase_20,
18011 }, {
18012 .eraseblocks = { {32 * 1024, 128} },
18013 .block_erase = spi_block_erase_52,
18014 }, {
18015 .eraseblocks = { {64 * 1024, 64} },
18016 .block_erase = spi_block_erase_d8,
18017 }, {
18018 .eraseblocks = { {4 * 1024 * 1024, 1} },
18019 .block_erase = spi_block_erase_60,
18020 }, {
18021 .eraseblocks = { {4 * 1024 * 1024, 1} },
18022 .block_erase = spi_block_erase_c7,
18023 }
18024 },
18025 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18026 .unlock = spi_disable_blockprotect,
18027 .write = spi_chip_write_256,
18028 .read = spi_chip_read,
18029 .voltage = {2700, 3600},
18030 .reg_bits =
18031 {
18032 .srp = {STATUS1, 7, RW},
18033 .srl = {STATUS2, 0, RW},
18034 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
18035 .tb = {STATUS1, 5, RW},
18036 .sec = {STATUS1, 6, RW},
18037 .cmp = {STATUS2, 6, RW},
18038 .wps = {STATUS3, 2, RW},
18039 },
18040 .decode_range = decode_range_spi25,
18041 },
18042
18043 {
18044 .vendor = "Winbond",
18045 .name = "W25Q32BW/W25Q32CW/W25Q32DW",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018046 .bustype = BUS_SPI,
18047 .manufacture_id = WINBOND_NEX_ID,
18048 .model_id = WINBOND_NEX_W25Q32_W,
18049 .total_size = 4096,
18050 .page_size = 256,
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018051 /* OTP: 1024B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Alan Green1f9cc7d2019-07-01 11:10:45 +100018052 /* QPI enable 0x38, disable 0xFF */
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018053 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_WRSR_EXT2,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018054 .tested = TEST_OK_PREW,
18055 .probe = probe_spi_rdid,
18056 .probe_timing = TIMING_ZERO,
18057 .block_erasers =
18058 {
18059 {
18060 .eraseblocks = { {4 * 1024, 1024} },
18061 .block_erase = spi_block_erase_20,
18062 }, {
18063 .eraseblocks = { {32 * 1024, 128} },
18064 .block_erase = spi_block_erase_52,
18065 }, {
18066 .eraseblocks = { {64 * 1024, 64} },
18067 .block_erase = spi_block_erase_d8,
18068 }, {
18069 .eraseblocks = { {4 * 1024 * 1024, 1} },
18070 .block_erase = spi_block_erase_60,
18071 }, {
18072 .eraseblocks = { {4 * 1024 * 1024, 1} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018073 .block_erase = spi_block_erase_c7,
18074 }
18075 },
18076 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18077 .unlock = spi_disable_blockprotect,
18078 .write = spi_chip_write_256,
18079 .read = spi_chip_read,
18080 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018081 .reg_bits =
18082 {
18083 .srp = {STATUS1, 7, RW},
18084 .srl = {STATUS2, 0, RW},
18085 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
18086 .tb = {STATUS1, 5, RW},
18087 .sec = {STATUS1, 6, RW},
18088 .cmp = {STATUS2, 6, RW},
18089 },
18090 .decode_range = decode_range_spi25,
18091 },
18092
18093 {
18094 .vendor = "Winbond",
18095 .name = "W25Q32FW",
18096 .bustype = BUS_SPI,
18097 .manufacture_id = WINBOND_NEX_ID,
18098 .model_id = WINBOND_NEX_W25Q32_W,
18099 .total_size = 4096,
18100 .page_size = 256,
18101 /* OTP: 768B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
18102 /* QPI enable 0x38, disable 0xFF */
18103 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI |
18104 FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3,
18105 .tested = TEST_OK_PREW,
18106 .probe = probe_spi_rdid,
18107 .probe_timing = TIMING_ZERO,
18108 .block_erasers =
18109 {
18110 {
18111 .eraseblocks = { {4 * 1024, 1024} },
18112 .block_erase = spi_block_erase_20,
18113 }, {
18114 .eraseblocks = { {32 * 1024, 128} },
18115 .block_erase = spi_block_erase_52,
18116 }, {
18117 .eraseblocks = { {64 * 1024, 64} },
18118 .block_erase = spi_block_erase_d8,
18119 }, {
18120 .eraseblocks = { {4 * 1024 * 1024, 1} },
18121 .block_erase = spi_block_erase_60,
18122 }, {
18123 .eraseblocks = { {4 * 1024 * 1024, 1} },
18124 .block_erase = spi_block_erase_c7,
18125 }
18126 },
18127 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18128 .unlock = spi_disable_blockprotect,
18129 .write = spi_chip_write_256,
18130 .read = spi_chip_read,
18131 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
18132 .reg_bits =
18133 {
18134 .srp = {STATUS1, 7, RW},
18135 .srl = {STATUS2, 0, RW},
18136 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
18137 .tb = {STATUS1, 5, RW},
18138 .sec = {STATUS1, 6, RW},
18139 .cmp = {STATUS2, 6, RW},
18140 .wps = {STATUS3, 2, RW},
18141 },
18142 .decode_range = decode_range_spi25,
18143 },
18144
18145 {
18146 .vendor = "Winbond",
18147 .name = "W25Q32JW...Q",
18148 .bustype = BUS_SPI,
18149 .manufacture_id = WINBOND_NEX_ID,
18150 .model_id = WINBOND_NEX_W25Q32_W,
18151 .total_size = 4096,
18152 .page_size = 256,
18153 /* OTP: 768B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
18154 /* QPI enable 0x38, disable 0xFF */
18155 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP |
18156 FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3,
18157 .tested = TEST_OK_PREW,
18158 .probe = probe_spi_rdid,
18159 .probe_timing = TIMING_ZERO,
18160 .block_erasers =
18161 {
18162 {
18163 .eraseblocks = { {4 * 1024, 1024} },
18164 .block_erase = spi_block_erase_20,
18165 }, {
18166 .eraseblocks = { {32 * 1024, 128} },
18167 .block_erase = spi_block_erase_52,
18168 }, {
18169 .eraseblocks = { {64 * 1024, 64} },
18170 .block_erase = spi_block_erase_d8,
18171 }, {
18172 .eraseblocks = { {4 * 1024 * 1024, 1} },
18173 .block_erase = spi_block_erase_60,
18174 }, {
18175 .eraseblocks = { {4 * 1024 * 1024, 1} },
18176 .block_erase = spi_block_erase_c7,
18177 }
18178 },
18179 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18180 .unlock = spi_disable_blockprotect,
18181 .write = spi_chip_write_256,
18182 .read = spi_chip_read,
18183 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
18184 .reg_bits =
18185 {
18186 .srp = {STATUS1, 7, RW},
18187 .srl = {STATUS2, 0, RW},
18188 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
18189 .tb = {STATUS1, 5, RW},
18190 .sec = {STATUS1, 6, RW},
18191 .cmp = {STATUS2, 6, RW},
18192 .wps = {STATUS3, 2, RW},
18193 },
18194 .decode_range = decode_range_spi25,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018195 },
18196
18197 {
18198 .vendor = "Winbond",
Nikolai Artemiev6ae79b12021-05-08 17:31:23 +100018199 .name = "W25Q32JW...M",
18200 .bustype = BUS_SPI,
18201 .manufacture_id = WINBOND_NEX_ID,
18202 .model_id = WINBOND_NEX_W25Q32JW_M,
18203 .total_size = 4096,
18204 .page_size = 256,
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018205 /* OTP: 768B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
18206 /* QPI enable 0x38, disable 0xFF */
18207 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP |
18208 FEATURE_WRSR2 | FEATURE_WRSR3 | FEATURE_WRSR_EXT2,
Nikolai Artemiev6ae79b12021-05-08 17:31:23 +100018209 .tested = TEST_OK_PREW,
18210 .probe = probe_spi_rdid,
18211 .probe_timing = TIMING_ZERO,
18212 .block_erasers =
18213 {
18214 {
18215 .eraseblocks = { {4 * 1024, 1024} },
18216 .block_erase = spi_block_erase_20,
18217 }, {
18218 .eraseblocks = { {32 * 1024, 128} },
18219 .block_erase = spi_block_erase_52,
18220 }, {
18221 .eraseblocks = { {64 * 1024, 64} },
18222 .block_erase = spi_block_erase_d8,
18223 }, {
18224 .eraseblocks = { {4 * 1024 * 1024, 1} },
18225 .block_erase = spi_block_erase_60,
18226 }, {
18227 .eraseblocks = { {4 * 1024 * 1024, 1} },
18228 .block_erase = spi_block_erase_c7,
18229 }
18230 },
18231 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
18232 .unlock = spi_disable_blockprotect_bp2_srwd,
18233 .write = spi_chip_write_256,
18234 .read = spi_chip_read,
18235 .voltage = {1700, 1950},
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018236 .reg_bits =
18237 {
18238 .srp = {STATUS1, 7, RW},
18239 .srl = {STATUS2, 0, RW},
18240 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
18241 .tb = {STATUS1, 5, RW},
18242 .sec = {STATUS1, 6, RW},
18243 .cmp = {STATUS2, 6, RW},
18244 .wps = {STATUS3, 2, RW},
18245 },
18246 .decode_range = decode_range_spi25,
Nikolai Artemiev6ae79b12021-05-08 17:31:23 +100018247 },
18248
18249 {
18250 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018251 .name = "W25Q40.V",
18252 .bustype = BUS_SPI,
18253 .manufacture_id = WINBOND_NEX_ID,
18254 .model_id = WINBOND_NEX_W25Q40_V,
18255 .total_size = 512,
18256 .page_size = 256,
18257 /* supports SFDP */
18258 /* OTP: 756B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
18259 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
18260 .tested = TEST_OK_PREW,
18261 .probe = probe_spi_rdid,
18262 .probe_timing = TIMING_ZERO,
18263 .block_erasers =
18264 {
18265 {
18266 .eraseblocks = { {4 * 1024, 128} },
18267 .block_erase = spi_block_erase_20,
18268 }, {
18269 .eraseblocks = { {32 * 1024, 16} },
18270 .block_erase = spi_block_erase_52,
18271 }, {
18272 .eraseblocks = { {64 * 1024, 8} },
18273 .block_erase = spi_block_erase_d8,
18274 }, {
18275 .eraseblocks = { {512 * 1024, 1} },
18276 .block_erase = spi_block_erase_60,
18277 }, {
18278 .eraseblocks = { {512 * 1024, 1} },
18279 .block_erase = spi_block_erase_c7,
18280 }
18281 },
18282 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18283 .unlock = spi_disable_blockprotect,
18284 .write = spi_chip_write_256, /* Multi I/O supported */
18285 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
18286 .voltage = {2700, 3600},
18287 },
18288
18289 {
18290 .vendor = "Winbond",
Nico Huber25683572018-03-30 13:50:13 +020018291 .name = "W25Q40BW",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018292 .bustype = BUS_SPI,
18293 .manufacture_id = WINBOND_NEX_ID,
Nico Huber25683572018-03-30 13:50:13 +020018294 .model_id = WINBOND_NEX_W25Q40BW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018295 .total_size = 512,
18296 .page_size = 256,
18297 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
18298 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Angel Pons3164a0c2018-09-30 20:26:06 +020018299 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018300 .probe = probe_spi_rdid,
18301 .probe_timing = TIMING_ZERO,
18302 .block_erasers =
18303 {
18304 {
18305 .eraseblocks = { {4 * 1024, 128} },
18306 .block_erase = spi_block_erase_20,
18307 }, {
18308 .eraseblocks = { {32 * 1024, 16} },
18309 .block_erase = spi_block_erase_52,
18310 }, {
18311 .eraseblocks = { {64 * 1024, 8} },
18312 .block_erase = spi_block_erase_d8,
18313 }, {
18314 .eraseblocks = { {512 * 1024, 1} },
18315 .block_erase = spi_block_erase_60,
18316 }, {
18317 .eraseblocks = { {512 * 1024, 1} },
18318 .block_erase = spi_block_erase_c7,
18319 }
18320 },
18321 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18322 .unlock = spi_disable_blockprotect,
18323 .write = spi_chip_write_256,
18324 .read = spi_chip_read,
18325 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
18326 },
18327
18328 {
18329 .vendor = "Winbond",
Nico Huber25683572018-03-30 13:50:13 +020018330 .name = "W25Q40EW",
18331 .bustype = BUS_SPI,
18332 .manufacture_id = WINBOND_NEX_ID,
18333 .model_id = WINBOND_NEX_W25Q40EW,
18334 .total_size = 512,
18335 .page_size = 256,
18336 /* OTP: 3*256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
18337 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Alan Green07b8a172019-09-23 16:47:05 +100018338 .tested = TEST_OK_PREW,
Nico Huber25683572018-03-30 13:50:13 +020018339 .probe = probe_spi_rdid,
18340 .probe_timing = TIMING_ZERO,
18341 .block_erasers =
18342 {
18343 {
18344 .eraseblocks = { {4 * 1024, 128} },
18345 .block_erase = spi_block_erase_20,
18346 }, {
18347 .eraseblocks = { {32 * 1024, 16} },
18348 .block_erase = spi_block_erase_52,
18349 }, {
18350 .eraseblocks = { {64 * 1024, 8} },
18351 .block_erase = spi_block_erase_d8,
18352 }, {
18353 .eraseblocks = { {512 * 1024, 1} },
18354 .block_erase = spi_block_erase_60,
18355 }, {
18356 .eraseblocks = { {512 * 1024, 1} },
18357 .block_erase = spi_block_erase_c7,
18358 }
18359 },
18360 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18361 .unlock = spi_disable_blockprotect,
18362 .write = spi_chip_write_256,
18363 .read = spi_chip_read,
18364 .voltage = {1650, 1950}, /* Fast read (0x0B) and multi I/O supported */
18365 },
18366
Stanislav Sedovf5775442018-03-07 14:16:51 -080018367 {
18368 .vendor = "Winbond",
Joel Stanley55439612019-07-27 19:25:35 +093018369 .name = "W25Q512JV",
18370 .bustype = BUS_SPI,
18371 .manufacture_id = WINBOND_NEX_ID,
18372 .model_id = WINBOND_NEX_W25Q512JV,
18373 .total_size = 64 * 1024,
18374 .page_size = 256,
18375 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
18376 .tested = TEST_OK_PREW,
18377 .probe = probe_spi_rdid,
18378 .probe_timing = TIMING_ZERO,
18379 .block_erasers =
18380 {
18381 {
18382 .eraseblocks = { {4 * 1024, 16384} },
18383 .block_erase = spi_block_erase_21,
18384 }, {
18385 .eraseblocks = { {4 * 1024, 16384} },
18386 .block_erase = spi_block_erase_20,
18387 }, {
18388 .eraseblocks = { {32 * 1024, 2048} },
18389 .block_erase = spi_block_erase_52,
18390 }, {
18391 .eraseblocks = { {64 * 1024, 1024} },
18392 .block_erase = spi_block_erase_dc,
18393 }, {
18394 .eraseblocks = { {64 * 1024, 1024} },
18395 .block_erase = spi_block_erase_d8,
18396 }, {
18397 .eraseblocks = { {64 * 1024 * 1024, 1} },
18398 .block_erase = spi_block_erase_60,
18399 }, {
18400 .eraseblocks = { {64 * 1024 * 1024, 1} },
18401 .block_erase = spi_block_erase_c7,
18402 }
18403 },
18404 .printlock = spi_prettyprint_status_register_plain,
18405 .unlock = spi_disable_blockprotect,
18406 .write = spi_chip_write_256,
18407 .read = spi_chip_read,
18408 .voltage = {2700, 3600},
18409 },
18410
18411 {
Felix Singer3c9bdb92022-12-15 23:30:16 +010018412 .vendor = "Winbond",
18413 .name = "W25Q512NW-IM",
18414 .bustype = BUS_SPI,
18415 .manufacture_id = WINBOND_NEX_ID,
18416 .model_id = WINBOND_NEX_W25Q512NW_IM,
18417 .total_size = 64 * 1024,
18418 .page_size = 256,
Subrata Banikf5bffd92022-12-14 12:30:43 +053018419 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA | FEATURE_WRSR2
18420 | FEATURE_WRSR3,
18421 .tested = TEST_OK_PREWB,
Felix Singer3c9bdb92022-12-15 23:30:16 +010018422 .probe = probe_spi_rdid,
18423 .probe_timing = TIMING_ZERO,
18424 .block_erasers =
Atul Dhudase2502dbd2021-09-21 10:02:20 +053018425 {
Felix Singer3c9bdb92022-12-15 23:30:16 +010018426 {
18427 .eraseblocks = { {4 * 1024, 16384} },
18428 .block_erase = spi_block_erase_21,
18429 }, {
18430 .eraseblocks = { {4 * 1024, 16384} },
18431 .block_erase = spi_block_erase_20,
18432 }, {
18433 .eraseblocks = { {32 * 1024, 2048} },
18434 .block_erase = spi_block_erase_52,
18435 }, {
18436 .eraseblocks = { {64 * 1024, 1024} },
18437 .block_erase = spi_block_erase_dc,
18438 }, {
18439 .eraseblocks = { {64 * 1024, 1024} },
18440 .block_erase = spi_block_erase_d8,
18441 }, {
18442 .eraseblocks = { {64 * 1024 * 1024, 1} },
18443 .block_erase = spi_block_erase_60,
18444 }, {
18445 .eraseblocks = { {64 * 1024 * 1024, 1} },
18446 .block_erase = spi_block_erase_c7,
18447 }
18448 },
18449 .unlock = spi_disable_blockprotect,
18450 .write = spi_chip_write_256,
18451 .read = spi_chip_read,
18452 .voltage = {1650, 1950},
Subrata Banikf5bffd92022-12-14 12:30:43 +053018453 .reg_bits =
18454 {
18455 .srp = {STATUS1, 7, RW},
18456 .srl = {STATUS2, 0, RW},
18457 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}},
18458 .tb = {STATUS1, 6, RW},
18459 .cmp = {STATUS2, 6, RW},
18460 .wps = {STATUS3, 2, RW},
18461 },
18462 .decode_range = decode_range_spi25,
Atul Dhudase2502dbd2021-09-21 10:02:20 +053018463 },
18464
18465 {
Joel Stanley55439612019-07-27 19:25:35 +093018466 .vendor = "Winbond",
Sergii Dmytrukd1af3072021-11-08 00:00:43 +020018467 .name = "W25Q64BV/W25Q64CV/W25Q64FV",
Stanislav Sedovf5775442018-03-07 14:16:51 -080018468 .bustype = BUS_SPI,
18469 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018470 .model_id = WINBOND_NEX_W25Q64_V,
18471 .total_size = 8192,
Stanislav Sedovf5775442018-03-07 14:16:51 -080018472 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018473 /* supports SFDP */
18474 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Sergii Dmytrukd1af3072021-11-08 00:00:43 +020018475 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_WRSR2,
Sergii Dmytrukc74eac22022-10-06 18:17:58 +030018476 .tested = TEST_OK_PREWB,
Stanislav Sedovf5775442018-03-07 14:16:51 -080018477 .probe = probe_spi_rdid,
18478 .probe_timing = TIMING_ZERO,
18479 .block_erasers =
18480 {
18481 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100018482 .eraseblocks = { {4 * 1024, 2048} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080018483 .block_erase = spi_block_erase_20,
18484 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100018485 .eraseblocks = { {32 * 1024, 256} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080018486 .block_erase = spi_block_erase_52,
18487 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100018488 .eraseblocks = { {64 * 1024, 128} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080018489 .block_erase = spi_block_erase_d8,
18490 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100018491 .eraseblocks = { {8 * 1024 * 1024, 1} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080018492 .block_erase = spi_block_erase_60,
18493 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100018494 .eraseblocks = { {8 * 1024 * 1024, 1} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080018495 .block_erase = spi_block_erase_c7,
18496 }
18497 },
18498 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18499 .unlock = spi_disable_blockprotect,
18500 .write = spi_chip_write_256,
18501 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018502 .voltage = {2700, 3600},
Sergii Dmytrukd1af3072021-11-08 00:00:43 +020018503 .reg_bits =
18504 {
18505 .srp = {STATUS1, 7, RW},
18506 .srl = {STATUS2, 0, RW},
18507 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
18508 .tb = {STATUS1, 5, RW},
18509 .sec = {STATUS1, 6, RW},
18510 .cmp = {STATUS2, 6, RW},
18511 },
18512 .decode_range = decode_range_spi25,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018513 },
18514
18515 {
18516 .vendor = "Winbond",
Sergii Dmytrukd1af3072021-11-08 00:00:43 +020018517 .name = "W25Q64JV-.Q",
18518 .bustype = BUS_SPI,
18519 .manufacture_id = WINBOND_NEX_ID,
18520 .model_id = WINBOND_NEX_W25Q64_V,
18521 .total_size = 8192,
18522 .page_size = 256,
18523 /* supports SFDP */
18524 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber3f3c1f32022-05-28 16:48:26 +020018525 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP |
18526 FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3,
Sergii Dmytrukd1af3072021-11-08 00:00:43 +020018527 .tested = TEST_OK_PREW,
18528 .probe = probe_spi_rdid,
18529 .probe_timing = TIMING_ZERO,
18530 .block_erasers =
18531 {
18532 {
18533 .eraseblocks = { {4 * 1024, 2048} },
18534 .block_erase = spi_block_erase_20,
18535 }, {
18536 .eraseblocks = { {32 * 1024, 256} },
18537 .block_erase = spi_block_erase_52,
18538 }, {
18539 .eraseblocks = { {64 * 1024, 128} },
18540 .block_erase = spi_block_erase_d8,
18541 }, {
18542 .eraseblocks = { {8 * 1024 * 1024, 1} },
18543 .block_erase = spi_block_erase_60,
18544 }, {
18545 .eraseblocks = { {8 * 1024 * 1024, 1} },
18546 .block_erase = spi_block_erase_c7,
18547 }
18548 },
18549 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18550 .unlock = spi_disable_blockprotect,
18551 .write = spi_chip_write_256,
18552 .read = spi_chip_read,
18553 .voltage = {2700, 3600},
18554 .reg_bits =
18555 {
18556 .srp = {STATUS1, 7, RW},
18557 .srl = {STATUS2, 0, RW},
18558 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
18559 .tb = {STATUS1, 5, RW},
18560 .sec = {STATUS1, 6, RW},
18561 .cmp = {STATUS2, 6, RW},
18562 .wps = {STATUS3, 2, RW},
18563 },
18564 .decode_range = decode_range_spi25,
18565 },
18566
18567 {
18568 .vendor = "Winbond",
18569 .name = "W25Q64JV-.M",
Simon Buhrow236a38c2021-11-05 11:48:30 +010018570 .bustype = BUS_SPI,
18571 .manufacture_id = WINBOND_NEX_ID,
18572 .model_id = WINBOND_NEX_W25Q64JV,
18573 .total_size = 8192,
18574 .page_size = 256,
18575 /* supports SFDP */
18576 /* QPI enable 0x38 */
18577 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
18578 .tested = TEST_OK_PREW,
18579 .probe = probe_spi_rdid,
18580 .probe_timing = TIMING_ZERO,
18581 .block_erasers =
18582 {
18583 {
18584 .eraseblocks = { {4 * 1024, 2048} },
18585 .block_erase = spi_block_erase_20,
18586 }, {
18587 .eraseblocks = { {32 * 1024, 256} },
18588 .block_erase = spi_block_erase_52,
18589 }, {
18590 .eraseblocks = { {64 * 1024, 128} },
18591 .block_erase = spi_block_erase_d8,
18592 }, {
18593 .eraseblocks = { {8 * 1024 * 1024, 1} },
18594 .block_erase = spi_block_erase_60,
18595 }, {
18596 .eraseblocks = { {8 * 1024 * 1024, 1} },
18597 .block_erase = spi_block_erase_c7,
18598 }
18599 },
18600 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
18601 .unlock = spi_disable_blockprotect_bp2_srwd,
18602 .write = spi_chip_write_256,
18603 .read = spi_chip_read,
18604 .voltage = {2700, 3600},
18605 },
18606
18607 {
18608 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018609 .name = "W25Q64.W",
18610 .bustype = BUS_SPI,
18611 .manufacture_id = WINBOND_NEX_ID,
18612 .model_id = WINBOND_NEX_W25Q64_W,
18613 .total_size = 8192,
18614 .page_size = 256,
18615 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
18616 /* QPI enable 0x38, disable 0xFF */
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110018617 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_WRSR2,
Sergii Dmytrukc74eac22022-10-06 18:17:58 +030018618 .tested = TEST_OK_PREWB,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018619 .probe = probe_spi_rdid,
18620 .probe_timing = TIMING_ZERO,
18621 .block_erasers =
18622 {
18623 {
18624 .eraseblocks = { {4 * 1024, 2048} },
18625 .block_erase = spi_block_erase_20,
18626 }, {
18627 .eraseblocks = { {32 * 1024, 256} },
18628 .block_erase = spi_block_erase_52,
18629 }, {
18630 .eraseblocks = { {64 * 1024, 128} },
18631 .block_erase = spi_block_erase_d8,
18632 }, {
18633 .eraseblocks = { {8 * 1024 * 1024, 1} },
18634 .block_erase = spi_block_erase_60,
18635 }, {
18636 .eraseblocks = { {8 * 1024 * 1024, 1} },
18637 .block_erase = spi_block_erase_c7,
18638 }
18639 },
18640 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18641 .unlock = spi_disable_blockprotect,
18642 .write = spi_chip_write_256,
18643 .read = spi_chip_read,
18644 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110018645 .reg_bits =
18646 {
18647 .srp = {STATUS1, 7, RW},
18648 .srl = {STATUS2, 0, RW},
18649 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
18650 .tb = {STATUS1, 5, RW},
18651 .sec = {STATUS1, 6, RW},
18652 .cmp = {STATUS2, 6, RW},
18653 },
18654 .decode_range = decode_range_spi25,
Antony Rheneus0fbba982011-05-26 14:28:51 +000018655 },
18656
18657 {
18658 .vendor = "Winbond",
Nikolai Artemiev5fa05052021-05-14 15:26:47 +100018659 .name = "W25Q64JW...M",
Scott Chao1bbc5012020-04-08 22:10:50 +080018660 .bustype = BUS_SPI,
18661 .manufacture_id = WINBOND_NEX_ID,
Nikolai Artemiev5fa05052021-05-14 15:26:47 +100018662 .model_id = WINBOND_NEX_W25Q64JW_M,
Scott Chao1bbc5012020-04-08 22:10:50 +080018663 .total_size = 8192,
18664 .page_size = 256,
18665 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
18666 /* QPI enable 0x38, disable 0xFF */
Evan Benn29c8b5d2022-09-13 16:01:10 +100018667 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_WRSR2 | FEATURE_WRSR3,
Scott Chao1bbc5012020-04-08 22:10:50 +080018668 .tested = TEST_OK_PREW,
18669 .probe = probe_spi_rdid,
18670 .probe_timing = TIMING_ZERO,
18671 .block_erasers =
18672 {
18673 {
18674 .eraseblocks = { {4 * 1024, 2048} },
18675 .block_erase = spi_block_erase_20,
18676 }, {
18677 .eraseblocks = { {32 * 1024, 256} },
18678 .block_erase = spi_block_erase_52,
18679 }, {
18680 .eraseblocks = { {64 * 1024, 128} },
18681 .block_erase = spi_block_erase_d8,
18682 }, {
18683 .eraseblocks = { {8 * 1024 * 1024, 1} },
18684 .block_erase = spi_block_erase_60,
18685 }, {
18686 .eraseblocks = { {8 * 1024 * 1024, 1} },
18687 .block_erase = spi_block_erase_c7,
18688 }
18689 },
18690 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18691 .unlock = spi_disable_blockprotect,
18692 .write = spi_chip_write_256,
18693 .read = spi_chip_read,
18694 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
Evan Benn29c8b5d2022-09-13 16:01:10 +100018695 .reg_bits =
18696 {
18697 .srp = {STATUS1, 7, RW},
18698 .srl = {STATUS2, 0, RW},
18699 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
18700 .tb = {STATUS1, 5, RW},
18701 .sec = {STATUS1, 6, RW},
18702 .cmp = {STATUS2, 6, RW},
18703 .wps = {STATUS3, 2, RW},
18704 },
18705 .decode_range = decode_range_spi25,
Scott Chao1bbc5012020-04-08 22:10:50 +080018706 },
18707
18708 {
18709 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018710 .name = "W25Q80.V",
Nico Huber70eed9f2017-04-24 22:19:27 +020018711 .bustype = BUS_SPI,
18712 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018713 .model_id = WINBOND_NEX_W25Q80_V,
18714 .total_size = 1024,
Nico Huber70eed9f2017-04-24 22:19:27 +020018715 .page_size = 256,
18716 /* supports SFDP */
18717 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Alan Green1f9cc7d2019-07-01 11:10:45 +100018718 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks48729d32017-12-08 14:44:07 -080018719 .tested = TEST_OK_PREW,
Nico Huber70eed9f2017-04-24 22:19:27 +020018720 .probe = probe_spi_rdid,
18721 .probe_timing = TIMING_ZERO,
18722 .block_erasers =
18723 {
18724 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100018725 .eraseblocks = { {4 * 1024, 256} },
Nico Huber70eed9f2017-04-24 22:19:27 +020018726 .block_erase = spi_block_erase_20,
18727 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100018728 .eraseblocks = { {32 * 1024, 32} },
Nico Huber70eed9f2017-04-24 22:19:27 +020018729 .block_erase = spi_block_erase_52,
18730 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100018731 .eraseblocks = { {64 * 1024, 16} },
Nico Huber70eed9f2017-04-24 22:19:27 +020018732 .block_erase = spi_block_erase_d8,
18733 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100018734 .eraseblocks = { {1024 * 1024, 1} },
Nico Huber70eed9f2017-04-24 22:19:27 +020018735 .block_erase = spi_block_erase_60,
18736 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100018737 .eraseblocks = { {1024 * 1024, 1} },
Nico Huber70eed9f2017-04-24 22:19:27 +020018738 .block_erase = spi_block_erase_c7,
18739 }
18740 },
18741 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18742 .unlock = spi_disable_blockprotect,
18743 .write = spi_chip_write_256,
18744 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018745 .voltage = {2700, 3600},
18746 },
18747
18748 {
18749 .vendor = "Winbond",
18750 .name = "W25Q80BW",
18751 .bustype = BUS_SPI,
18752 .manufacture_id = WINBOND_NEX_ID,
18753 .model_id = WINBOND_NEX_W25Q80BW,
18754 .total_size = 1024,
18755 .page_size = 256,
18756 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
18757 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
18758 .tested = TEST_OK_PREW,
18759 .probe = probe_spi_rdid,
18760 .probe_timing = TIMING_ZERO,
18761 .block_erasers =
18762 {
18763 {
18764 .eraseblocks = { {4 * 1024, 256} },
18765 .block_erase = spi_block_erase_20,
18766 }, {
18767 .eraseblocks = { {32 * 1024, 32} },
18768 .block_erase = spi_block_erase_52,
18769 }, {
18770 .eraseblocks = { {64 * 1024, 16} },
18771 .block_erase = spi_block_erase_d8,
18772 }, {
18773 .eraseblocks = { {1 * 1024 * 1024, 1} },
18774 .block_erase = spi_block_erase_60,
18775 }, {
18776 .eraseblocks = { {1 * 1024 * 1024, 1} },
18777 .block_erase = spi_block_erase_c7,
18778 }
18779 },
18780 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18781 .unlock = spi_disable_blockprotect,
18782 .write = spi_chip_write_256,
18783 .read = spi_chip_read,
18784 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
18785 },
18786
18787 {
18788 .vendor = "Winbond",
18789 .name = "W25Q80EW",
18790 .bustype = BUS_SPI,
18791 .manufacture_id = WINBOND_NEX_ID,
18792 .model_id = WINBOND_NEX_W25Q80EW,
18793 .total_size = 1024,
18794 .page_size = 256,
18795 /* OTP: 3*256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
18796 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
18797 .tested = TEST_OK_PREW,
18798 .probe = probe_spi_rdid,
18799 .probe_timing = TIMING_ZERO,
18800 .block_erasers =
18801 {
18802 {
18803 .eraseblocks = { {4 * 1024, 256} },
18804 .block_erase = spi_block_erase_20,
18805 }, {
18806 .eraseblocks = { {32 * 1024, 32} },
18807 .block_erase = spi_block_erase_52,
18808 }, {
18809 .eraseblocks = { {64 * 1024, 16} },
18810 .block_erase = spi_block_erase_d8,
18811 }, {
18812 .eraseblocks = { {1 * 1024 * 1024, 1} },
18813 .block_erase = spi_block_erase_60,
18814 }, {
18815 .eraseblocks = { {1 * 1024 * 1024, 1} },
18816 .block_erase = spi_block_erase_c7,
18817 }
18818 },
18819 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18820 .unlock = spi_disable_blockprotect,
18821 .write = spi_chip_write_256,
18822 .read = spi_chip_read,
18823 .voltage = {1650, 1950}, /* Fast read (0x0B) and multi I/O supported */
Nico Huber70eed9f2017-04-24 22:19:27 +020018824 },
18825
18826 {
18827 .vendor = "Winbond",
Jacob Appelbaumebbdc022019-09-02 09:10:43 -040018828 .name = "W25X05",
18829 .bustype = BUS_SPI,
18830 .manufacture_id = WINBOND_NEX_ID,
18831 .model_id = WINBOND_NEX_W25X05,
18832 .total_size = 64,
18833 .page_size = 256,
18834 .feature_bits = FEATURE_WRSR_WREN,
18835 .tested = TEST_OK_PREW,
18836 .probe = probe_spi_rdid,
18837 .probe_timing = TIMING_ZERO,
18838 .block_erasers =
18839 {
18840 {
18841 .eraseblocks = { {4 * 1024, 16} },
18842 .block_erase = spi_block_erase_20,
18843 }, {
18844 .eraseblocks = { {32 * 1024, 2} },
18845 .block_erase = spi_block_erase_52,
18846 }, {
18847 .eraseblocks = { {64 * 1024, 1} },
18848 .block_erase = spi_block_erase_d8,
18849 }
18850 },
18851 .printlock = spi_prettyprint_status_register_plain,
18852 .unlock = spi_disable_blockprotect,
18853 .write = spi_chip_write_256,
18854 .read = spi_chip_read,
18855 .voltage = {2300, 3600},
18856 },
18857
18858 {
18859 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000018860 .name = "W25X10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018861 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018862 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018863 .model_id = WINBOND_NEX_W25X10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018864 .total_size = 128,
18865 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000018866 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +000018867 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018868 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000018869 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018870 .block_erasers =
18871 {
18872 {
18873 .eraseblocks = { {4 * 1024, 32} },
18874 .block_erase = spi_block_erase_20,
18875 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018876 .eraseblocks = { {64 * 1024, 2} },
18877 .block_erase = spi_block_erase_d8,
18878 }, {
18879 .eraseblocks = { {128 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018880 .block_erase = spi_block_erase_c7,
18881 }
18882 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000018883 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000018884 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000018885 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018886 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018887 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000018888 },
18889
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000018890 {
18891 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000018892 .name = "W25X16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018893 .bustype = BUS_SPI,
Hector Martina721ae22009-07-11 19:39:11 +000018894 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018895 .model_id = WINBOND_NEX_W25X16,
Hector Martina721ae22009-07-11 19:39:11 +000018896 .total_size = 2048,
18897 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000018898 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner8179be52011-06-04 13:13:34 +000018899 .tested = TEST_OK_PREW,
Hector Martina721ae22009-07-11 19:39:11 +000018900 .probe = probe_spi_rdid,
18901 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018902 .block_erasers =
18903 {
18904 {
18905 .eraseblocks = { {4 * 1024, 512} },
18906 .block_erase = spi_block_erase_20,
18907 }, {
18908 .eraseblocks = { {32 * 1024, 64} },
18909 .block_erase = spi_block_erase_52,
18910 }, {
18911 .eraseblocks = { {64 * 1024, 32} },
18912 .block_erase = spi_block_erase_d8,
18913 }, {
18914 .eraseblocks = { {2 * 1024 * 1024, 1} },
18915 .block_erase = spi_block_erase_60,
18916 }, {
18917 .eraseblocks = { {2 * 1024 * 1024, 1} },
18918 .block_erase = spi_block_erase_c7,
18919 }
18920 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000018921 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000018922 .unlock = spi_disable_blockprotect,
Hector Martina721ae22009-07-11 19:39:11 +000018923 .write = spi_chip_write_256,
18924 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018925 .voltage = {2700, 3600},
Hector Martina721ae22009-07-11 19:39:11 +000018926 },
18927
18928 {
18929 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018930 .name = "W25X20",
18931 .bustype = BUS_SPI,
18932 .manufacture_id = WINBOND_NEX_ID,
18933 .model_id = WINBOND_NEX_W25X20,
18934 .total_size = 256,
18935 .page_size = 256,
18936 .feature_bits = FEATURE_WRSR_WREN,
18937 .tested = TEST_OK_PREW,
18938 .probe = probe_spi_rdid,
18939 .probe_timing = TIMING_ZERO,
18940 .block_erasers =
18941 {
18942 {
18943 .eraseblocks = { {4 * 1024, 64} },
18944 .block_erase = spi_block_erase_20,
18945 }, {
18946 .eraseblocks = { {64 * 1024, 4} },
18947 .block_erase = spi_block_erase_d8,
18948 }, {
18949 .eraseblocks = { {256 * 1024, 1} },
18950 .block_erase = spi_block_erase_c7,
18951 }
18952 },
18953 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18954 .unlock = spi_disable_blockprotect,
18955 .write = spi_chip_write_256,
18956 .read = spi_chip_read,
18957 .voltage = {2700, 3600},
18958 },
18959
18960 {
18961 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000018962 .name = "W25X32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000018963 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000018964 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000018965 .model_id = WINBOND_NEX_W25X32,
Zheng Bao1db2b752009-11-26 11:05:01 +000018966 .total_size = 4096,
18967 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000018968 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000018969 .tested = TEST_OK_PREW,
Zheng Bao1db2b752009-11-26 11:05:01 +000018970 .probe = probe_spi_rdid,
18971 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000018972 .block_erasers =
18973 {
18974 {
18975 .eraseblocks = { {4 * 1024, 1024} },
18976 .block_erase = spi_block_erase_20,
18977 }, {
18978 .eraseblocks = { {32 * 1024, 128} },
18979 .block_erase = spi_block_erase_52,
18980 }, {
18981 .eraseblocks = { {64 * 1024, 64} },
18982 .block_erase = spi_block_erase_d8,
18983 }, {
18984 .eraseblocks = { {4 * 1024 * 1024, 1} },
18985 .block_erase = spi_block_erase_60,
18986 }, {
18987 .eraseblocks = { {4 * 1024 * 1024, 1} },
18988 .block_erase = spi_block_erase_c7,
18989 }
18990 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000018991 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000018992 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000018993 .write = spi_chip_write_256,
18994 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000018995 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000018996 },
18997
18998 {
18999 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100019000 .name = "W25X40",
19001 .bustype = BUS_SPI,
19002 .manufacture_id = WINBOND_NEX_ID,
19003 .model_id = WINBOND_NEX_W25X40,
19004 .total_size = 512,
19005 .page_size = 256,
19006 .feature_bits = FEATURE_WRSR_WREN,
19007 .tested = TEST_OK_PREW,
19008 .probe = probe_spi_rdid,
19009 .probe_timing = TIMING_ZERO,
19010 .block_erasers =
19011 {
19012 {
19013 .eraseblocks = { {4 * 1024, 128} },
19014 .block_erase = spi_block_erase_20,
19015 }, {
19016 .eraseblocks = { {64 * 1024, 8} },
19017 .block_erase = spi_block_erase_d8,
19018 }, {
19019 .eraseblocks = { {512 * 1024, 1} },
19020 .block_erase = spi_block_erase_c7,
19021 }
19022 },
19023 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19024 .unlock = spi_disable_blockprotect,
19025 .write = spi_chip_write_256,
19026 .read = spi_chip_read,
19027 .voltage = {2700, 3600},
19028 },
19029
19030 {
19031 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000019032 .name = "W25X64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019033 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000019034 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000019035 .model_id = WINBOND_NEX_W25X64,
Zheng Bao1db2b752009-11-26 11:05:01 +000019036 .total_size = 8192,
19037 .page_size = 256,
David Hendricks2cbb7222010-09-03 03:06:07 +000019038 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000019039 .tested = TEST_OK_PREW,
Zheng Bao1db2b752009-11-26 11:05:01 +000019040 .probe = probe_spi_rdid,
19041 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019042 .block_erasers =
19043 {
19044 {
19045 .eraseblocks = { {4 * 1024, 2048} },
19046 .block_erase = spi_block_erase_20,
19047 }, {
19048 .eraseblocks = { {32 * 1024, 256} },
19049 .block_erase = spi_block_erase_52,
19050 }, {
19051 .eraseblocks = { {64 * 1024, 128} },
19052 .block_erase = spi_block_erase_d8,
19053 }, {
19054 .eraseblocks = { {8 * 1024 * 1024, 1} },
19055 .block_erase = spi_block_erase_60,
19056 }, {
19057 .eraseblocks = { {8 * 1024 * 1024, 1} },
19058 .block_erase = spi_block_erase_c7,
19059 }
19060 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000019061 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000019062 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000019063 .write = spi_chip_write_256,
19064 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000019065 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000019066 },
19067
19068 {
Alan Greenfa3fcd32019-06-27 15:41:50 +100019069 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100019070 .name = "W25X80",
Alan Greenfa3fcd32019-06-27 15:41:50 +100019071 .bustype = BUS_SPI,
19072 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100019073 .model_id = WINBOND_NEX_W25X80,
Alan Greenfa3fcd32019-06-27 15:41:50 +100019074 .total_size = 1024,
19075 .page_size = 256,
19076 .feature_bits = FEATURE_WRSR_WREN,
Alan Green1f9cc7d2019-07-01 11:10:45 +100019077 .tested = TEST_OK_PREW,
Alan Greenfa3fcd32019-06-27 15:41:50 +100019078 .probe = probe_spi_rdid,
19079 .probe_timing = TIMING_ZERO,
19080 .block_erasers =
David Hendricksc9ee0ed2018-02-11 17:40:53 -080019081 {
19082 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100019083 .eraseblocks = { {4 * 1024, 256} },
19084 .block_erase = spi_block_erase_20,
19085 }, {
David Hendricksc9ee0ed2018-02-11 17:40:53 -080019086 .eraseblocks = { {64 * 1024, 16} },
19087 .block_erase = spi_block_erase_d8,
19088 }, {
19089 .eraseblocks = { {1024 * 1024, 1} },
19090 .block_erase = spi_block_erase_c7,
19091 }
19092 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100019093 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19094 .unlock = spi_disable_blockprotect,
19095 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100019096 .read = spi_chip_read,
Alan Greenfa3fcd32019-06-27 15:41:50 +100019097 .voltage = {2700, 3600},
David Hendricksc9ee0ed2018-02-11 17:40:53 -080019098 },
19099
Alan Greenf29ea362019-06-27 17:14:02 +100019100 /* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */
19101 {
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000019102 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000019103 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019104 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019105 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000019106 .model_id = WINBOND_W29C010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019107 .total_size = 128,
19108 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000019109 .feature_bits = FEATURE_LONG_RESET,
David Hendricks567b7b82011-05-18 01:31:03 +000019110 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019111 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000019112 .probe_timing = 10, /* used datasheet for the W29C011A */
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019113 .block_erasers =
19114 {
19115 {
19116 .eraseblocks = { {128 * 1024, 1} },
19117 .block_erase = erase_chip_block_jedec,
19118 }
19119 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019120 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019121 .read = read_memmapped,
FENG yu ningff692fb2008-12-08 18:15:10 +000019122 },
19123
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019124 {
19125 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100019126 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old",
19127 .bustype = BUS_PARALLEL,
19128 .manufacture_id = WINBOND_ID,
19129 .model_id = WINBOND_W29C010,
19130 .total_size = 128,
19131 .page_size = 128,
19132 .feature_bits = FEATURE_LONG_RESET,
19133 .tested = TEST_OK_PREW,
19134 .probe = probe_w29ee011,
19135 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */
19136 .block_erasers =
19137 {
19138 {
19139 .eraseblocks = { {128 * 1024, 1} },
19140 .block_erase = erase_chip_block_jedec,
19141 }
19142 },
19143 .write = write_jedec,
19144 .read = read_memmapped,
19145 },
19146
19147 {
19148 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000019149 .name = "W29C020(C)/W29C022",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019150 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019151 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000019152 .model_id = WINBOND_W29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019153 .total_size = 256,
19154 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000019155 .feature_bits = FEATURE_LONG_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000019156 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019157 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000019158 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019159 .block_erasers =
19160 {
19161 {
19162 .eraseblocks = { {256 * 1024, 1} },
19163 .block_erase = erase_chip_block_jedec,
19164 }
19165 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019166 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019167 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000019168 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000019169 },
19170
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019171 {
19172 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000019173 .name = "W29C040/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019174 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019175 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000019176 .model_id = WINBOND_W29C040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019177 .total_size = 512,
19178 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000019179 .feature_bits = FEATURE_LONG_RESET,
19180 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019181 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000019182 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019183 .block_erasers =
19184 {
19185 {
19186 .eraseblocks = { {512 * 1024, 1} },
19187 .block_erase = erase_chip_block_jedec,
19188 }
19189 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019190 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019191 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000019192 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000019193 },
19194
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019195 {
19196 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100019197 .name = "W29C512A/W29EE512",
19198 .bustype = BUS_PARALLEL,
19199 .manufacture_id = WINBOND_ID,
19200 .model_id = WINBOND_W29C512A,
19201 .total_size = 64,
19202 .page_size = 128,
19203 .feature_bits = FEATURE_LONG_RESET,
19204 .tested = TEST_OK_PREW,
19205 .probe = probe_jedec,
19206 .probe_timing = 10,
19207 .block_erasers =
19208 {
19209 {
19210 .eraseblocks = { {64 * 1024, 1} },
19211 .block_erase = erase_chip_block_jedec,
19212 }
19213 },
19214 .write = write_jedec,
19215 .read = read_memmapped,
19216 .voltage = {4500, 5500},
19217 },
19218
19219 {
19220 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000019221 .name = "W29GL032CB",
19222 .bustype = BUS_PARALLEL,
19223 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
19224 .model_id = WINBOND_W29GL032CB,
19225 .total_size = 4096,
19226 .page_size = 128 * 1024, /* actual page size is 16 */
19227 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
19228 .tested = TEST_UNTESTED,
19229 .probe = probe_jedec_29gl,
19230 .probe_timing = TIMING_ZERO,
19231 .block_erasers =
19232 {
19233 {
19234 .eraseblocks = {
19235 {8 * 1024, 8},
19236 {64 * 1024, 63},
19237 },
19238 .block_erase = erase_sector_jedec,
19239 }, {
19240 .eraseblocks = { {4 * 1024 * 1024, 1} },
19241 .block_erase = erase_chip_block_jedec,
19242 },
19243 },
19244 .write = write_jedec_1,
19245 .read = read_memmapped,
19246 .voltage = {2700, 3600},
19247 },
19248
19249 {
19250 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100019251 .name = "W29GL032CH/L",
19252 .bustype = BUS_PARALLEL,
19253 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
19254 .model_id = WINBOND_W29GL032CHL,
19255 .total_size = 4096,
19256 .page_size = 128 * 1024, /* actual page size is 16 */
19257 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
19258 .tested = TEST_UNTESTED,
19259 .probe = probe_jedec_29gl,
19260 .probe_timing = TIMING_ZERO,
19261 .block_erasers =
19262 {
19263 {
19264 .eraseblocks = { {64 * 1024, 64} },
19265 .block_erase = erase_sector_jedec,
19266 }, {
19267 .eraseblocks = { {4 * 1024 * 1024, 1} },
19268 .block_erase = erase_chip_block_jedec,
19269 },
19270 },
19271 .write = write_jedec_1,
19272 .read = read_memmapped,
19273 .voltage = {2700, 3600},
19274 },
19275
19276 {
19277 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000019278 .name = "W29GL032CT",
19279 .bustype = BUS_PARALLEL,
19280 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
19281 .model_id = WINBOND_W29GL032CT,
19282 .total_size = 4096,
19283 .page_size = 128 * 1024, /* actual page size is 16 */
19284 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
19285 .tested = TEST_UNTESTED,
19286 .probe = probe_jedec_29gl,
19287 .probe_timing = TIMING_ZERO,
19288 .block_erasers =
19289 {
19290 {
19291 .eraseblocks = {
19292 {64 * 1024, 63},
19293 {8 * 1024, 8},
19294 },
19295 .block_erase = erase_sector_jedec,
19296 }, {
19297 .eraseblocks = { {4 * 1024 * 1024, 1} },
19298 .block_erase = erase_chip_block_jedec,
19299 },
19300 },
19301 .write = write_jedec_1,
19302 .read = read_memmapped,
19303 .voltage = {2700, 3600},
19304 },
19305
19306 {
19307 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000019308 .name = "W29GL064CB",
19309 .bustype = BUS_PARALLEL,
19310 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
19311 .model_id = WINBOND_W29GL064CB,
19312 .total_size = 8192,
19313 .page_size = 128 * 1024, /* actual page size is 16 */
19314 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
19315 .tested = TEST_UNTESTED,
19316 .probe = probe_jedec_29gl,
19317 .probe_timing = TIMING_ZERO,
19318 .block_erasers =
19319 {
19320 {
19321 .eraseblocks = {
19322 {8 * 1024, 8},
19323 {64 * 1024, 127},
19324 },
19325 .block_erase = erase_sector_jedec,
19326 }, {
19327 .eraseblocks = { {8 * 1024 * 1024, 1} },
19328 .block_erase = erase_chip_block_jedec,
19329 },
19330 },
19331 .write = write_jedec_1,
19332 .read = read_memmapped,
19333 .voltage = {2700, 3600},
19334 },
19335
19336 {
19337 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100019338 .name = "W29GL064CH/L",
19339 .bustype = BUS_PARALLEL,
19340 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
19341 .model_id = WINBOND_W29GL064CHL,
19342 .total_size = 8192,
19343 .page_size = 128 * 1024, /* actual page size is 16 */
19344 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
19345 .tested = TEST_UNTESTED,
19346 .probe = probe_jedec_29gl,
19347 .probe_timing = TIMING_ZERO,
19348 .block_erasers =
19349 {
19350 {
19351 .eraseblocks = { {64 * 1024, 128} },
19352 .block_erase = erase_sector_jedec,
19353 }, {
19354 .eraseblocks = { {8 * 1024 * 1024, 1} },
19355 .block_erase = erase_chip_block_jedec,
19356 },
19357 },
19358 .write = write_jedec_1,
19359 .read = read_memmapped,
19360 .voltage = {2700, 3600},
19361 },
19362
19363 {
19364 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000019365 .name = "W29GL064CT",
19366 .bustype = BUS_PARALLEL,
19367 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
19368 .model_id = WINBOND_W29GL064CT,
19369 .total_size = 8192,
19370 .page_size = 128 * 1024, /* actual page size is 16 */
19371 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
19372 .tested = TEST_UNTESTED,
19373 .probe = probe_jedec_29gl,
19374 .probe_timing = TIMING_ZERO,
19375 .block_erasers =
19376 {
19377 {
19378 .eraseblocks = {
19379 {64 * 1024, 127},
19380 {8 * 1024, 8},
19381 },
19382 .block_erase = erase_sector_jedec,
19383 }, {
19384 .eraseblocks = { {8 * 1024 * 1024, 1} },
19385 .block_erase = erase_chip_block_jedec,
19386 },
19387 },
19388 .write = write_jedec_1,
19389 .read = read_memmapped,
19390 .voltage = {2700, 3600},
19391 },
19392
19393 {
19394 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000019395 .name = "W29GL128C",
19396 .bustype = BUS_PARALLEL,
19397 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
19398 .model_id = WINBOND_W29GL128CHL,
19399 .total_size = 16384,
19400 .page_size = 128 * 1024, /* actual page size is 16 */
19401 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
19402 .tested = TEST_UNTESTED,
19403 .probe = probe_jedec_29gl,
19404 .probe_timing = TIMING_ZERO,
19405 .block_erasers =
19406 {
19407 {
19408 .eraseblocks = { {128 * 1024, 128} },
19409 .block_erase = erase_sector_jedec,
19410 }, {
19411 .eraseblocks = { {16 * 1024 * 1024, 1} },
19412 .block_erase = erase_chip_block_jedec,
19413 },
19414 },
19415 .write = write_jedec_1,
19416 .read = read_memmapped,
19417 .voltage = {2700, 3600},
19418 },
19419
19420 {
19421 .vendor = "Winbond",
Kyösti Mälkkic31243e2012-10-28 01:50:08 +000019422 .name = "W39F010",
19423 .bustype = BUS_PARALLEL,
19424 .manufacture_id = WINBOND_ID,
19425 .model_id = WINBOND_W39F010,
19426 .total_size = 128,
19427 .page_size = 4 * 1024,
19428 .feature_bits = FEATURE_EITHER_RESET,
19429 .tested = TEST_OK_PREW,
19430 .probe = probe_jedec,
19431 .probe_timing = 10,
19432 .block_erasers =
19433 {
19434 {
19435 .eraseblocks = { {4 * 1024, 32} },
19436 .block_erase = erase_block_jedec,
19437 }, {
19438 .eraseblocks = { {128 * 1024, 1} },
19439 .block_erase = erase_chip_block_jedec,
19440 }
19441 },
19442 .printlock = printlock_w39f010,
19443 .write = write_jedec_1,
19444 .read = read_memmapped,
19445 .voltage = {4500, 5500},
19446 },
19447
19448 {
19449 .vendor = "Winbond",
19450 .name = "W39L010",
19451 .bustype = BUS_PARALLEL,
19452 .manufacture_id = WINBOND_ID,
19453 .model_id = WINBOND_W39L010,
19454 .total_size = 128,
19455 .page_size = 4 * 1024,
19456 .feature_bits = FEATURE_EITHER_RESET,
19457 .tested = TEST_UNTESTED,
19458 .probe = probe_jedec,
19459 .probe_timing = 10,
19460 .block_erasers =
19461 {
19462 {
19463 .eraseblocks = { {4 * 1024, 32} },
19464 .block_erase = erase_block_jedec,
19465 }, {
19466 .eraseblocks = { {128 * 1024, 1} },
19467 .block_erase = erase_chip_block_jedec,
19468 }
19469 },
19470 .printlock = printlock_w39l010,
19471 .write = write_jedec_1,
19472 .read = read_memmapped,
19473 .voltage = {3000, 3600},
19474 },
19475
19476 {
19477 .vendor = "Winbond",
19478 .name = "W39L020",
19479 .bustype = BUS_PARALLEL,
19480 .manufacture_id = WINBOND_ID,
19481 .model_id = WINBOND_W39L020,
19482 .total_size = 256,
19483 .page_size = 4 * 1024,
19484 .feature_bits = FEATURE_EITHER_RESET,
19485 .tested = TEST_UNTESTED,
19486 .probe = probe_jedec,
19487 .probe_timing = 10,
19488 .block_erasers =
19489 {
19490 {
19491 .eraseblocks = { {4 * 1024, 64} },
19492 .block_erase = erase_block_jedec,
19493 }, {
19494 .eraseblocks = { {64 * 1024, 4} },
19495 .block_erase = erase_sector_jedec,
19496 }, {
19497 .eraseblocks = { {256 * 1024, 1} },
19498 .block_erase = erase_chip_block_jedec,
19499 }
19500 },
19501 .printlock = printlock_w39l020,
19502 .write = write_jedec_1,
19503 .read = read_memmapped,
19504 .voltage = {3000, 3600},
19505 },
19506
19507 {
19508 .vendor = "Winbond",
Michael Karcher19e0aac2011-03-06 17:58:05 +000019509 .name = "W39L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019510 .bustype = BUS_PARALLEL,
Michael Karcher19e0aac2011-03-06 17:58:05 +000019511 .manufacture_id = WINBOND_ID,
19512 .model_id = WINBOND_W39L040,
19513 .total_size = 512,
19514 .page_size = 64 * 1024,
19515 .feature_bits = FEATURE_EITHER_RESET,
19516 .tested = TEST_OK_PR,
19517 .probe = probe_jedec,
19518 .probe_timing = 10,
19519 .block_erasers =
19520 {
19521 {
19522 .eraseblocks = { {4 * 1024, 128} },
19523 .block_erase = erase_block_jedec,
19524 }, {
19525 .eraseblocks = { {64 * 1024, 8} },
19526 .block_erase = erase_sector_jedec,
19527 }, {
19528 .eraseblocks = { {512 * 1024, 1} },
19529 .block_erase = erase_chip_block_jedec,
19530 }
19531 },
19532 .printlock = printlock_w39l040,
19533 .write = write_jedec_1,
19534 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000019535 .voltage = {3000, 3600},
Michael Karcher19e0aac2011-03-06 17:58:05 +000019536 },
19537
19538 {
19539 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019540 .name = "W39V040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019541 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019542 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000019543 .model_id = WINBOND_W39V040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019544 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000019545 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000019546 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000019547 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019548 .probe = probe_jedec,
Stefan Tauner716e0982011-07-25 20:38:52 +000019549 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019550 .block_erasers =
19551 {
19552 {
19553 .eraseblocks = { {64 * 1024, 8} },
19554 .block_erase = erase_sector_jedec,
19555 }, {
19556 .eraseblocks = { {512 * 1024, 1} },
19557 .block_erase = erase_chip_block_jedec,
19558 }
19559 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000019560 .printlock = printlock_w39v040a,
Sean Nelson35727f72010-01-28 23:55:12 +000019561 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019562 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000019563 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000019564 },
19565
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019566 {
19567 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000019568 .name = "W39V040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019569 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019570 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000019571 .model_id = WINBOND_W39V040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019572 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000019573 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000019574 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000019575 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019576 .probe = probe_jedec,
Paul Menzel018d4822011-10-21 12:33:07 +000019577 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019578 .block_erasers =
19579 {
19580 {
19581 .eraseblocks = { {64 * 1024, 8} },
19582 .block_erase = erase_sector_jedec,
19583 }, {
19584 .eraseblocks = { {512 * 1024, 1} },
19585 .block_erase = erase_chip_block_jedec,
19586 }
19587 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000019588 .printlock = printlock_w39v040b,
Sean Nelson35727f72010-01-28 23:55:12 +000019589 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019590 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000019591 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000019592 },
19593
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019594 {
19595 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000019596 .name = "W39V040C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019597 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019598 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000019599 .model_id = WINBOND_W39V040C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019600 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000019601 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000019602 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000019603 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +000019604 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000019605 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019606 .block_erasers =
19607 {
19608 {
19609 .eraseblocks = { {64 * 1024, 8} },
19610 .block_erase = erase_sector_jedec,
19611 }, {
19612 .eraseblocks = { {512 * 1024, 1} },
19613 .block_erase = erase_chip_block_jedec,
19614 }
19615 },
Sean Nelson6e0b9122010-02-19 00:52:10 +000019616 .printlock = printlock_w39v040c,
Sean Nelson35727f72010-01-28 23:55:12 +000019617 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019618 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000019619 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000019620 },
19621
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019622 {
19623 .vendor = "Winbond",
19624 .name = "W39V040FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019625 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019626 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000019627 .model_id = WINBOND_W39V040FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019628 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000019629 .page_size = 64 * 1024,
Michael Karcherc9b63412010-05-30 16:55:18 +000019630 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner23e10b82016-01-23 16:16:49 +000019631 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019632 .probe = probe_jedec,
Antony Rheneus0fbba982011-05-26 14:28:51 +000019633 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019634 .block_erasers =
19635 {
19636 {
19637 .eraseblocks = { {4 * 1024, 128} },
19638 .block_erase = erase_block_jedec,
19639 }, {
19640 .eraseblocks = { {64 * 1024, 8} },
19641 .block_erase = erase_sector_jedec,
19642 }, {
19643 .eraseblocks = { {512 * 1024, 1} },
19644 .block_erase = erase_chip_block_jedec,
19645 }
19646 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000019647 .printlock = printlock_w39v040fa,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000019648 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000019649 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019650 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000019651 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000019652 },
19653
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019654 {
19655 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000019656 .name = "W39V040FB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019657 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000019658 .manufacture_id = WINBOND_ID,
19659 .model_id = WINBOND_W39V040B,
19660 .total_size = 512,
19661 .page_size = 64 * 1024,
19662 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauner0be072c2016-03-13 15:16:30 +000019663 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000019664 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000019665 .probe_timing = 10,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000019666 .block_erasers =
19667 {
19668 {
19669 .eraseblocks = { {64 * 1024, 8} },
19670 .block_erase = erase_sector_jedec,
19671 }, {
19672 .eraseblocks = { {512 * 1024, 1} },
19673 .block_erase = erase_chip_block_jedec,
19674 }
19675 },
19676 .printlock = printlock_w39v040fb,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000019677 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000019678 .write = write_jedec_1,
19679 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000019680 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000019681 },
19682
19683 {
19684 .vendor = "Winbond",
19685 .name = "W39V040FC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019686 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000019687 .manufacture_id = WINBOND_ID,
19688 .model_id = WINBOND_W39V040C,
19689 .total_size = 512,
19690 .page_size = 64 * 1024,
19691 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +000019692 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000019693 .probe = probe_jedec,
19694 .probe_timing = 10,
19695 .block_erasers =
19696 {
19697 {
19698 .eraseblocks = { {64 * 1024, 8} },
19699 .block_erase = erase_sector_jedec,
19700 }, {
19701 .eraseblocks = { {512 * 1024, 1} },
19702 .block_erase = erase_chip_block_jedec,
19703 }
19704 },
19705 .printlock = printlock_w39v040fc,
19706 .write = write_jedec_1,
19707 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000019708 .voltage = {3000, 3600}, /* Also has 12V fast program */
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000019709 },
19710
19711 {
19712 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019713 .name = "W39V080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019714 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019715 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000019716 .model_id = WINBOND_W39V080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019717 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000019718 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000019719 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +000019720 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019721 .probe = probe_jedec,
Paul Menzelac427b22012-02-16 21:07:07 +000019722 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019723 .block_erasers =
19724 {
19725 {
19726 .eraseblocks = { {64 * 1024, 16} },
19727 .block_erase = erase_sector_jedec,
19728 }, {
19729 .eraseblocks = { {1024 * 1024, 1} },
19730 .block_erase = erase_chip_block_jedec,
19731 }
19732 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000019733 .printlock = printlock_w39v080a,
Sean Nelson35727f72010-01-28 23:55:12 +000019734 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019735 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000019736 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000019737 },
19738
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019739 {
19740 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100019741 .name = "W39V080FA",
19742 .bustype = BUS_FWH,
19743 .manufacture_id = WINBOND_ID,
19744 .model_id = WINBOND_W39V080FA,
19745 .total_size = 1024,
19746 .page_size = 64 * 1024,
19747 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
19748 .tested = TEST_OK_PREW,
19749 .probe = probe_jedec,
19750 .probe_timing = 10,
19751 .block_erasers =
19752 {
19753 {
19754 .eraseblocks = { {64 * 1024, 16} },
19755 .block_erase = erase_sector_jedec,
19756 }, {
19757 .eraseblocks = { {1024 * 1024, 1} },
19758 .block_erase = erase_chip_block_jedec,
19759 }
19760 },
19761 .printlock = printlock_w39v080fa,
19762 .unlock = unlock_regspace2_uniform_64k,
19763 .write = write_jedec_1,
19764 .read = read_memmapped,
19765 .voltage = {3000, 3600}, /* Also has 12V fast program */
19766 },
19767
19768 {
19769 .vendor = "Winbond",
19770 .name = "W39V080FA (dual mode)",
19771 .bustype = BUS_FWH,
19772 .manufacture_id = WINBOND_ID,
19773 .model_id = WINBOND_W39V080FA_DM,
19774 .total_size = 512,
19775 .page_size = 64 * 1024,
19776 .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET,
19777 .tested = TEST_UNTESTED,
19778 .probe = probe_jedec,
19779 .probe_timing = 10,
19780 .block_erasers =
19781 {
19782 {
19783 .eraseblocks = { {64 * 1024, 8} },
19784 .block_erase = erase_sector_jedec,
19785 }, {
19786 .eraseblocks = { {512 * 1024, 1} },
19787 .block_erase = erase_chip_block_jedec,
19788 }
19789 },
19790 .printlock = printlock_w39v080fa_dual,
19791 .write = write_jedec_1,
19792 .read = read_memmapped,
19793 .voltage = {3000, 3600}, /* Also has 12V fast program */
19794 },
19795
19796 {
19797 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000019798 .name = "W49F002U/N",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019799 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019800 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000019801 .model_id = WINBOND_W49F002U,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019802 .total_size = 256,
19803 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000019804 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000019805 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019806 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000019807 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019808 .block_erasers =
19809 {
19810 {
19811 .eraseblocks = {
19812 {128 * 1024, 1},
19813 {96 * 1024, 1},
19814 {8 * 1024, 2},
19815 {16 * 1024, 1},
19816 },
19817 .block_erase = erase_sector_jedec,
19818 }, {
19819 .eraseblocks = { {256 * 1024, 1} },
19820 .block_erase = erase_chip_block_jedec,
19821 }
19822 },
Sean Nelson35727f72010-01-28 23:55:12 +000019823 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019824 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000019825 .voltage = {4500, 5500},
FENG yu ningff692fb2008-12-08 18:15:10 +000019826 },
19827
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019828 {
19829 .vendor = "Winbond",
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000019830 .name = "W49F020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019831 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000019832 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000019833 .model_id = WINBOND_W49F020,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000019834 .total_size = 256,
19835 .page_size = 128,
19836 .feature_bits = FEATURE_EITHER_RESET,
19837 .tested = TEST_OK_PROBE,
19838 .probe = probe_jedec,
19839 .probe_timing = 10,
19840 .block_erasers =
19841 {
19842 {
19843 .eraseblocks = { {256 * 1024, 1} },
19844 .block_erase = erase_chip_block_jedec,
19845 }
19846 },
19847 .write = write_jedec_1,
19848 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000019849 .voltage = {4500, 5500},
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000019850 },
19851
19852 {
19853 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019854 .name = "W49V002A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019855 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019856 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000019857 .model_id = WINBOND_W49V002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019858 .total_size = 256,
19859 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000019860 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000019861 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019862 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000019863 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019864 .block_erasers =
19865 {
19866 {
19867 .eraseblocks = {
19868 {64 * 1024, 3},
19869 {32 * 1024, 1},
19870 {8 * 1024, 2},
19871 {16 * 1024, 1},
19872 },
19873 .block_erase = erase_sector_jedec,
19874 }, {
19875 .eraseblocks = { {256 * 1024, 1} },
19876 .block_erase = erase_chip_block_jedec,
19877 }
19878 },
Sean Nelson35727f72010-01-28 23:55:12 +000019879 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019880 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000019881 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000019882 },
19883
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019884 {
19885 .vendor = "Winbond",
19886 .name = "W49V002FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019887 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019888 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000019889 .model_id = WINBOND_W49V002FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019890 .total_size = 256,
19891 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000019892 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000019893 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019894 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000019895 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019896 .block_erasers =
19897 {
19898 {
19899 .eraseblocks = {
19900 {64 * 1024, 3},
19901 {32 * 1024, 1},
19902 {8 * 1024, 2},
19903 {16 * 1024, 1},
19904 },
19905 .block_erase = erase_sector_jedec,
19906 }, {
19907 .eraseblocks = { {256 * 1024, 1} },
19908 .block_erase = erase_chip_block_jedec,
19909 }
19910 },
Sean Nelson35727f72010-01-28 23:55:12 +000019911 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000019912 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000019913 .voltage = {3000, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000019914 },
19915
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019916 {
luke heef884232020-12-28 18:22:21 +080019917 .vendor = "XMC",
19918 .name = "XM25QH128C",
19919 .bustype = BUS_SPI,
19920 .manufacture_id = ST_ID,
19921 .model_id = XMC_XM25QH128C,
19922 .total_size = 16384,
19923 .page_size = 256,
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110019924 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_WRSR2,
luke heef884232020-12-28 18:22:21 +080019925 .tested = TEST_UNTESTED,
19926 .probe = probe_spi_rdid,
19927 .probe_timing = TIMING_ZERO,
19928 .block_erasers =
19929 {
19930 {
19931 .eraseblocks = { {4 * 1024, 4096} },
19932 .block_erase = spi_block_erase_20,
19933 }, {
19934 .eraseblocks = { {32 * 1024, 512} },
19935 .block_erase = spi_block_erase_52,
19936 }, {
19937 .eraseblocks = { {64 * 1024, 256} },
19938 .block_erase = spi_block_erase_d8,
19939 }, {
19940 .eraseblocks = { {16 * 1024 * 1024, 1} },
19941 .block_erase = spi_block_erase_60,
19942 }, {
19943 .eraseblocks = { {16 * 1024 * 1024, 1} },
19944 .block_erase = spi_block_erase_c7,
19945 }
19946 },
19947 .printlock = spi_prettyprint_status_register_plain,
19948 .unlock = spi_disable_blockprotect,
19949 .write = spi_chip_write_256,
19950 .read = spi_chip_read,
19951 .voltage = {2700, 3600},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110019952 .reg_bits =
19953 {
19954 .srp = {STATUS1, 7, RW},
19955 .srl = {STATUS2, 0, RW},
19956 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
19957 .tb = {STATUS1, 5, RW},
19958 .sec = {STATUS1, 6, RW},
19959 .cmp = {STATUS2, 6, RW},
19960 },
19961 .decode_range = decode_range_spi25,
luke heef884232020-12-28 18:22:21 +080019962 },
19963
19964 {
19965 .vendor = "XMC",
19966 .name = "XM25QH256C",
19967 .bustype = BUS_SPI,
19968 .manufacture_id = ST_ID,
19969 .model_id = XMC_XM25QH256C,
19970 .total_size = 32768,
19971 .page_size = 256,
19972 /* supports SFDP */
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110019973 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN | FEATURE_WRSR2,
luke heef884232020-12-28 18:22:21 +080019974 .tested = TEST_UNTESTED,
19975 .probe = probe_spi_rdid,
19976 .probe_timing = TIMING_ZERO,
19977 .block_erasers =
19978 {
19979 {
19980 .eraseblocks = { {4 * 1024, 8192} },
19981 .block_erase = spi_block_erase_21,
19982 }, {
19983 .eraseblocks = { {4 * 1024, 8192} },
19984 .block_erase = spi_block_erase_20,
19985 }, {
19986 .eraseblocks = { {32 * 1024, 1024} },
19987 .block_erase = spi_block_erase_52,
19988 }, {
19989 .eraseblocks = { {64 * 1024, 512} },
19990 .block_erase = spi_block_erase_dc,
19991 }, {
19992 .eraseblocks = { {64 * 1024, 512} },
19993 .block_erase = spi_block_erase_d8,
19994 }, {
19995 .eraseblocks = { {32 * 1024 * 1024, 1} },
19996 .block_erase = spi_block_erase_60,
19997 }, {
19998 .eraseblocks = { {32 * 1024 * 1024, 1} },
19999 .block_erase = spi_block_erase_c7,
20000 }
20001 },
20002 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
20003 .unlock = spi_disable_blockprotect,
20004 .write = spi_chip_write_256,
20005 .read = spi_chip_read,
20006 .voltage = {2700, 3600},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110020007 .reg_bits =
20008 {
20009 .srp = {STATUS1, 7, RW},
20010 .srl = {STATUS2, 0, RW},
20011 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}},
20012 .tb = {STATUS1, 6, RW},
20013 },
20014 .decode_range = decode_range_spi25,
luke heef884232020-12-28 18:22:21 +080020015 },
20016
20017 {
20018 .vendor = "XMC",
20019 .name = "XM25QH64C",
20020 .bustype = BUS_SPI,
20021 .manufacture_id = ST_ID,
20022 .model_id = XMC_XM25QH64C,
20023 .total_size = 8192,
20024 .page_size = 256,
20025 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
20026 .tested = TEST_UNTESTED,
20027 .probe = probe_spi_rdid,
20028 .probe_timing = TIMING_ZERO,
20029 .block_erasers =
20030 {
20031 {
20032 .eraseblocks = { {4 * 1024, 2048} },
20033 .block_erase = spi_block_erase_20,
20034 }, {
20035 .eraseblocks = { {32 * 1024, 256} },
20036 .block_erase = spi_block_erase_52,
20037 }, {
20038 .eraseblocks = { {64 * 1024, 128} },
20039 .block_erase = spi_block_erase_d8,
20040 }, {
20041 .eraseblocks = { {8 * 1024 * 1024, 1} },
20042 .block_erase = spi_block_erase_60,
20043 }, {
20044 .eraseblocks = { {8 * 1024 * 1024, 1} },
20045 .block_erase = spi_block_erase_c7,
20046 }
20047 },
20048 .printlock = spi_prettyprint_status_register_plain,
20049 .unlock = spi_disable_blockprotect,
20050 .write = spi_chip_write_256,
20051 .read = spi_chip_read,
20052 .voltage = {2700, 3600},
20053 },
20054
20055 {
20056 .vendor = "XMC",
20057 .name = "XM25QU128C",
20058 .bustype = BUS_SPI,
20059 .manufacture_id = ST_ID,
20060 .model_id = XMC_XM25QU128C,
20061 .total_size = 16384,
20062 .page_size = 256,
20063 /* supports SFDP */
20064 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
20065 .tested = TEST_UNTESTED,
20066 .probe = probe_spi_rdid,
20067 .probe_timing = TIMING_ZERO,
20068 .block_erasers =
20069 {
20070 {
20071 .eraseblocks = { {4 * 1024, 4096} },
20072 .block_erase = spi_block_erase_20,
20073 }, {
20074 .eraseblocks = { {32 * 1024, 512} },
20075 .block_erase = spi_block_erase_52,
20076 }, {
20077 .eraseblocks = { {64 * 1024, 256} },
20078 .block_erase = spi_block_erase_d8,
20079 }, {
20080 .eraseblocks = { {16 * 1024 * 1024, 1} },
20081 .block_erase = spi_block_erase_60,
20082 }, {
20083 .eraseblocks = { {16 * 1024 * 1024, 1} },
20084 .block_erase = spi_block_erase_c7,
20085 }
20086 },
20087 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
20088 .unlock = spi_disable_blockprotect,
20089 .write = spi_chip_write_256,
20090 .read = spi_chip_read,
20091 .voltage = {1650, 1950},
20092 },
20093
20094 {
20095 .vendor = "XMC",
20096 .name = "XM25QU256C",
20097 .bustype = BUS_SPI,
20098 .manufacture_id = ST_ID,
20099 .model_id = XMC_XM25QU256C,
20100 .total_size = 32768,
20101 .page_size = 256,
20102 /* supports SFDP */
20103 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
20104 .tested = TEST_UNTESTED,
20105 .probe = probe_spi_rdid,
20106 .probe_timing = TIMING_ZERO,
20107 .block_erasers =
20108 {
20109 {
20110 .eraseblocks = { {4 * 1024, 8192} },
20111 .block_erase = spi_block_erase_21,
20112 }, {
20113 .eraseblocks = { {4 * 1024, 8192} },
20114 .block_erase = spi_block_erase_20,
20115 }, {
20116 .eraseblocks = { {32 * 1024, 1024} },
20117 .block_erase = spi_block_erase_52,
20118 }, {
20119 .eraseblocks = { {64 * 1024, 512} },
20120 .block_erase = spi_block_erase_dc,
20121 }, {
20122 .eraseblocks = { {64 * 1024, 512} },
20123 .block_erase = spi_block_erase_d8,
20124 }, {
20125 .eraseblocks = { {32 * 1024 * 1024, 1} },
20126 .block_erase = spi_block_erase_60,
20127 }, {
20128 .eraseblocks = { {32 * 1024 * 1024, 1} },
20129 .block_erase = spi_block_erase_c7,
20130 }
20131 },
20132 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
20133 .unlock = spi_disable_blockprotect,
20134 .write = spi_chip_write_256,
20135 .read = spi_chip_read,
20136 .voltage = {1650, 1950},
20137 },
20138
20139 {
20140 .vendor = "XMC",
20141 .name = "XM25QU64C",
20142 .bustype = BUS_SPI,
20143 .manufacture_id = ST_ID,
20144 .model_id = XMC_XM25QU64C,
20145 .total_size = 8192,
20146 .page_size = 256,
20147 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
20148 .tested = TEST_UNTESTED,
20149 .probe = probe_spi_rdid,
20150 .probe_timing = TIMING_ZERO,
20151 .block_erasers =
20152 {
20153 {
20154 .eraseblocks = { {4 * 1024, 2048} },
20155 .block_erase = spi_block_erase_20,
20156 }, {
20157 .eraseblocks = { {32 * 1024, 256} },
20158 .block_erase = spi_block_erase_52,
20159 }, {
20160 .eraseblocks = { {64 * 1024, 128} },
20161 .block_erase = spi_block_erase_d8,
20162 }, {
20163 .eraseblocks = { {8 * 1024 * 1024, 1} },
20164 .block_erase = spi_block_erase_60,
20165 }, {
20166 .eraseblocks = { {8 * 1024 * 1024, 1} },
20167 .block_erase = spi_block_erase_c7,
20168 }
20169 },
20170 .printlock = spi_prettyprint_status_register_plain,
20171 .unlock = spi_disable_blockprotect,
20172 .write = spi_chip_write_256,
20173 .read = spi_chip_read,
20174 .voltage = {1650, 1950},
20175 },
20176
20177 {
Alan Greenfa3fcd32019-06-27 15:41:50 +100020178 .vendor = "Zetta Device",
20179 .name = "ZD25D20",
20180 .bustype = BUS_SPI,
20181 .manufacture_id = ZETTADEVICE_ID,
20182 .model_id = ZETTADEVICE_ZD25D20,
20183 .total_size = 256,
20184 .page_size = 256,
20185 .feature_bits = FEATURE_WRSR_WREN,
20186 .tested = TEST_UNTESTED,
20187 .probe = probe_spi_rdid,
20188 .probe_timing = TIMING_ZERO,
20189 .block_erasers =
David Hendricksa72d5a92018-02-11 17:58:44 -080020190 {
20191 {
20192 .eraseblocks = { {4 * 1024, 64} },
20193 .block_erase = spi_block_erase_20,
20194 }, {
20195 .eraseblocks = { {32 * 1024, 8} },
20196 .block_erase = spi_block_erase_52,
20197 }, {
20198 .eraseblocks = { {64 * 1024, 4} },
20199 .block_erase = spi_block_erase_d8,
20200 }, {
20201 .eraseblocks = { {256 * 1024, 1} },
20202 .block_erase = spi_block_erase_60,
20203 }, {
20204 .eraseblocks = { {256 * 1024, 1} },
20205 .block_erase = spi_block_erase_c7,
20206 }
20207 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100020208 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
20209 .unlock = spi_disable_blockprotect,
20210 .write = spi_chip_write_256,
20211 .read = spi_chip_read,
20212 .voltage = {2700, 3600},
David Hendricksa72d5a92018-02-11 17:58:44 -080020213 },
20214
20215 {
Alan Greenfa3fcd32019-06-27 15:41:50 +100020216 .vendor = "Zetta Device",
20217 .name = "ZD25D40",
20218 .bustype = BUS_SPI,
20219 .manufacture_id = ZETTADEVICE_ID,
20220 .model_id = ZETTADEVICE_ZD25D40,
20221 .total_size = 512,
20222 .page_size = 256,
20223 .feature_bits = FEATURE_WRSR_WREN,
20224 .tested = TEST_UNTESTED,
20225 .probe = probe_spi_rdid,
20226 .probe_timing = TIMING_ZERO,
20227 .block_erasers =
nybashcbb46e22018-02-11 17:53:49 -080020228 {
20229 {
20230 .eraseblocks = { {4 * 1024, 128} },
20231 .block_erase = spi_block_erase_20,
20232 }, {
20233 .eraseblocks = { {32 * 1024, 16} },
20234 .block_erase = spi_block_erase_52,
20235 }, {
20236 .eraseblocks = { {64 * 1024, 8} },
20237 .block_erase = spi_block_erase_d8,
20238 }, {
20239 .eraseblocks = { {512 * 1024, 1} },
20240 .block_erase = spi_block_erase_60,
20241 }, {
20242 .eraseblocks = { {512 * 1024, 1} },
20243 .block_erase = spi_block_erase_c7,
20244 }
20245 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100020246 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
20247 .unlock = spi_disable_blockprotect,
20248 .write = spi_chip_write_256,
20249 .read = spi_chip_read,
20250 .voltage = {2700, 3600},
nybashcbb46e22018-02-11 17:53:49 -080020251 },
20252
Stefan Taunerac1b4c82012-02-17 14:51:04 +000020253 {
Alan Greendd592202019-08-23 10:11:37 +100020254 .vendor = "Unknown",
20255 .name = "SFDP-capable chip",
20256 .bustype = BUS_SPI,
20257 .manufacture_id = GENERIC_MANUF_ID,
20258 .model_id = SFDP_DEVICE_ID,
20259 .total_size = 0, /* set by probing function */
20260 .page_size = 0, /* set by probing function */
20261 .feature_bits = 0, /* set by probing function */
20262 /* We present our own "report this" text hence we do not */
20263 /* want the default "This flash part has status UNTESTED..." */
20264 /* text to be printed. */
20265 .tested = TEST_OK_PREW,
20266 .probe = probe_spi_sfdp,
20267 .block_erasers = {}, /* set by probing function */
20268 .unlock = spi_disable_blockprotect, /* is this safe? */
20269 .write = NULL, /* set by probing function */
20270 .read = spi_chip_read,
20271 /* FIXME: some vendor extensions define this */
20272 .voltage = {0},
20273 },
20274
20275 {
Carl-Daniel Hailfinger532c7172011-11-04 21:35:26 +000020276 .vendor = "Programmer",
20277 .name = "Opaque flash chip",
20278 .bustype = BUS_PROG,
20279 .manufacture_id = PROGMANUF_ID,
20280 .model_id = PROGDEV_ID,
20281 .total_size = 0,
20282 .page_size = 256,
20283 /* probe is assumed to work, rest will be filled in by probe */
20284 .tested = TEST_OK_PROBE,
20285 .probe = probe_opaque,
20286 /* eraseblock sizes will be set by the probing function */
20287 .block_erasers =
20288 {
20289 {
20290 .block_erase = erase_opaque,
20291 }
20292 },
20293 .write = write_opaque,
20294 .read = read_opaque,
20295 },
20296
20297 {
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000020298 .vendor = "AMIC",
20299 .name = "unknown AMIC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020300 .bustype = BUS_SPI,
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000020301 .manufacture_id = AMIC_ID,
20302 .model_id = GENERIC_DEVICE_ID,
20303 .total_size = 0,
20304 .page_size = 256,
20305 .tested = TEST_BAD_PREW,
20306 .probe = probe_spi_rdid4,
20307 .probe_timing = TIMING_ZERO,
20308 .write = NULL,
20309 .read = NULL,
20310 },
20311
20312 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020313 .vendor = "Atmel",
20314 .name = "unknown Atmel SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020315 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020316 .manufacture_id = ATMEL_ID,
20317 .model_id = GENERIC_DEVICE_ID,
20318 .total_size = 0,
20319 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000020320 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020321 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000020322 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020323 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000020324 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000020325 },
20326
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020327 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +000020328 .vendor = "Eon",
20329 .name = "unknown Eon SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020330 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020331 .manufacture_id = EON_ID_NOPREFIX,
20332 .model_id = GENERIC_DEVICE_ID,
20333 .total_size = 0,
20334 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000020335 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020336 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000020337 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020338 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000020339 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000020340 },
20341
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020342 {
20343 .vendor = "Macronix",
20344 .name = "unknown Macronix SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020345 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000020346 .manufacture_id = MACRONIX_ID,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020347 .model_id = GENERIC_DEVICE_ID,
20348 .total_size = 0,
20349 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000020350 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020351 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000020352 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020353 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000020354 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000020355 },
20356
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020357 {
20358 .vendor = "PMC",
20359 .name = "unknown PMC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020360 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020361 .manufacture_id = PMC_ID,
20362 .model_id = GENERIC_DEVICE_ID,
20363 .total_size = 0,
20364 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000020365 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020366 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000020367 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020368 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000020369 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000020370 },
20371
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020372 {
20373 .vendor = "SST",
20374 .name = "unknown SST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020375 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020376 .manufacture_id = SST_ID,
20377 .model_id = GENERIC_DEVICE_ID,
20378 .total_size = 0,
20379 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000020380 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020381 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000020382 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020383 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000020384 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000020385 },
20386
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020387 {
20388 .vendor = "ST",
20389 .name = "unknown ST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020390 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020391 .manufacture_id = ST_ID,
20392 .model_id = GENERIC_DEVICE_ID,
20393 .total_size = 0,
20394 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000020395 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020396 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000020397 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020398 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000020399 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000020400 },
Uwe Hermannfc425e82008-03-16 02:06:25 +000020401
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000020402 {
Sean Nelson118e1d62009-11-24 02:08:11 +000020403 .vendor = "Sanyo",
20404 .name = "unknown Sanyo SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020405 .bustype = BUS_SPI,
Sean Nelson118e1d62009-11-24 02:08:11 +000020406 .manufacture_id = SANYO_ID,
20407 .model_id = GENERIC_DEVICE_ID,
20408 .total_size = 0,
20409 .page_size = 256,
20410 .tested = TEST_BAD_PREW,
20411 .probe = probe_spi_rdid,
20412 .probe_timing = TIMING_ZERO,
Sean Nelson118e1d62009-11-24 02:08:11 +000020413 .write = NULL,
20414 .read = NULL,
20415 },
20416
20417 {
Stefan Taunereb582572012-09-21 12:52:50 +000020418 .vendor = "Winbond",
20419 .name = "unknown Winbond (ex Nexcom) SPI chip",
20420 .bustype = BUS_SPI,
20421 .manufacture_id = WINBOND_NEX_ID,
20422 .model_id = GENERIC_DEVICE_ID,
20423 .total_size = 0,
20424 .page_size = 256,
20425 .tested = TEST_BAD_PREW,
20426 .probe = probe_spi_rdid,
20427 .probe_timing = TIMING_ZERO,
20428 .write = NULL,
20429 .read = NULL,
20430 },
20431
20432 {
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000020433 .vendor = "Generic",
20434 .name = "unknown SPI chip (RDID)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020435 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000020436 .manufacture_id = GENERIC_MANUF_ID,
20437 .model_id = GENERIC_DEVICE_ID,
20438 .total_size = 0,
20439 .page_size = 256,
20440 .tested = TEST_BAD_PREW,
20441 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000020442 .write = NULL,
20443 },
Stefan Tauneraf2db612011-12-02 21:48:17 +000020444
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000020445 {
20446 .vendor = "Generic",
20447 .name = "unknown SPI chip (REMS)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020448 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000020449 .manufacture_id = GENERIC_MANUF_ID,
20450 .model_id = GENERIC_DEVICE_ID,
20451 .total_size = 0,
20452 .page_size = 256,
20453 .tested = TEST_BAD_PREW,
20454 .probe = probe_spi_rems,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000020455 .write = NULL,
20456 },
20457
Stefan Tauner96658be2014-05-26 22:05:31 +000020458 {0}
Stephan Guilloux72cf5652009-04-21 01:46:07 +000020459};
Stefan Tauner96658be2014-05-26 22:05:31 +000020460
20461const unsigned int flashchips_size = ARRAY_SIZE(flashchips);