blob: dedf15fd58a08efc9145733b06cc0c59fc240c89 [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"
Nico Huberaabb3e02023-01-13 00:22:30 +010024#include "writeprotect.h"
Ollie Lho184a4042005-11-26 21:55:36 +000025
Uwe Hermannfc425e82008-03-16 02:06:25 +000026/**
Uwe Hermanna9720402009-05-21 15:55:46 +000027 * List of supported flash chips.
Uwe Hermannfc425e82008-03-16 02:06:25 +000028 *
Alan Green1f9cc7d2019-07-01 11:10:45 +100029 * Temporarily, this file is sorted alphabetically by vendor and name to
Nico Huberc3b02dc2023-08-12 01:13:45 +020030 * assist with merging the Chromium fork of flashprog.
Alan Green1f9cc7d2019-07-01 11:10:45 +100031 *
32 * The usual intention is that that this list is sorted by vendor, then chip
Nico Huberc3b02dc2023-08-12 01:13:45 +020033 * family and chip density, which is useful for the output of 'flashprog -L'.
Uwe Hermannfc425e82008-03-16 02:06:25 +000034 */
Carl-Daniel Hailfinger4c823182011-05-04 00:39:50 +000035const struct flashchip flashchips[] = {
Uwe Hermannfc425e82008-03-16 02:06:25 +000036
Carl-Daniel Hailfinger21eedec2009-07-23 12:42:01 +000037 /*
38 * .vendor = Vendor name
39 * .name = Chip name
40 * .bustype = Supported flash bus types (Parallel, LPC...)
41 * .manufacture_id = Manufacturer chip ID
42 * .model_id = Model chip ID
43 * .total_size = Total size in (binary) kbytes
44 * .page_size = Page or eraseblock(?) size in bytes
45 * .tested = Test status
46 * .probe = Probe function
47 * .probe_timing = Probe function delay
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +000048 * .block_erasers[] = Array of erase layouts and erase functions
49 * {
50 * .eraseblocks[] = Array of { blocksize, blockcount }
51 * .block_erase = Block erase function
52 * }
Sean Nelson6e0b9122010-02-19 00:52:10 +000053 * .printlock = Chip lock status function
54 * .unlock = Chip unlock function
Carl-Daniel Hailfinger21eedec2009-07-23 12:42:01 +000055 * .write = Chip write function
56 * .read = Chip read function
Steven Zakuleccbe370e2011-06-03 07:26:31 +000057 * .voltage = Voltage range in millivolt
FENG yu ningff692fb2008-12-08 18:15:10 +000058 */
59
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000060 {
61 .vendor = "AMD",
62 .name = "Am29F002(N)BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000063 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000064 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000065 .model_id = AMD_AM29F002BB,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000066 .total_size = 256,
67 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000068 .feature_bits = FEATURE_SHORT_RESET | FEATURE_ADDR_2AA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000069 .tested = TEST_UNTESTED,
70 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000071 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +000072 .block_erasers =
73 {
74 {
75 .eraseblocks = {
76 {16 * 1024, 1},
77 {8 * 1024, 2},
78 {32 * 1024, 1},
79 {64 * 1024, 3},
80 },
81 .block_erase = erase_sector_jedec,
82 }, {
83 .eraseblocks = { {256 * 1024, 1} },
84 .block_erase = erase_chip_block_jedec,
85 },
86 },
Michael Karcher1c296ca2009-11-27 17:49:42 +000087 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000088 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000089 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
Nico Huber9eec4072023-01-12 01:17:30 +010090 .prepare_access = prepare_memory_access,
91 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000092 },
93
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000094 {
95 .vendor = "AMD",
96 .name = "Am29F002(N)BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000097 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000098 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000099 .model_id = AMD_AM29F002BT,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000100 .total_size = 256,
101 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +0000102 .feature_bits = FEATURE_EITHER_RESET | FEATURE_ADDR_2AA,
103 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000104 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +0000105 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000106 .block_erasers =
107 {
108 {
109 .eraseblocks = {
110 {64 * 1024, 3},
111 {32 * 1024, 1},
112 {8 * 1024, 2},
113 {16 * 1024, 1},
114 },
115 .block_erase = erase_sector_jedec,
116 }, {
117 .eraseblocks = { {256 * 1024, 1} },
118 .block_erase = erase_chip_block_jedec,
119 },
120 },
Michael Karcher1c296ca2009-11-27 17:49:42 +0000121 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000122 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000123 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
Nico Huber9eec4072023-01-12 01:17:30 +0100124 .prepare_access = prepare_memory_access,
125 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +0000126 },
127
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000128 {
129 .vendor = "AMD",
Alan Green1f9cc7d2019-07-01 11:10:45 +1000130 .name = "Am29F010",
131 .bustype = BUS_PARALLEL,
132 .manufacture_id = AMD_ID,
133 .model_id = AMD_AM29F010,
134 .total_size = 128,
135 .page_size = 16 * 1024,
136 .feature_bits = FEATURE_SHORT_RESET,
137 .tested = TEST_UNTESTED,
138 .probe = probe_jedec,
139 .probe_timing = TIMING_ZERO,
140 .block_erasers =
141 {
142 {
143 .eraseblocks = { {16 * 1024, 8} },
144 .block_erase = erase_sector_jedec,
145 }, {
146 .eraseblocks = { {128 * 1024, 1} },
147 .block_erase = erase_chip_block_jedec,
148 },
149 },
150 .write = write_jedec_1,
151 .read = read_memmapped,
152 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +0100153 .prepare_access = prepare_memory_access,
154 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +1000155 },
156
157 {
158 .vendor = "AMD",
159 .name = "Am29F010A/B",
160 .bustype = BUS_PARALLEL,
161 .manufacture_id = AMD_ID,
162 .model_id = AMD_AM29F010,
163 .total_size = 128,
164 .page_size = 16 * 1024,
165 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Alan Greena4e579f2019-07-24 14:18:39 +1000166 .tested = TEST_OK_PRE,
Alan Green1f9cc7d2019-07-01 11:10:45 +1000167 .probe = probe_jedec,
168 .probe_timing = TIMING_ZERO,
169 .block_erasers =
170 {
171 {
172 .eraseblocks = { {16 * 1024, 8} },
173 .block_erase = erase_sector_jedec,
174 }, {
175 .eraseblocks = { {128 * 1024, 1} },
176 .block_erase = erase_chip_block_jedec,
177 },
178 },
179 .write = write_jedec_1,
180 .read = read_memmapped,
181 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +0100182 .prepare_access = prepare_memory_access,
183 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +1000184 },
185
186 {
187 .vendor = "AMD",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000188 .name = "Am29F016D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000189 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000190 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000191 .model_id = AMD_AM29F016D,
Sean Nelson72a9a022009-12-22 22:15:33 +0000192 .total_size = 2 * 1024,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000193 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000194 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000195 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +0000196 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000197 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000198 .block_erasers =
199 {
200 {
201 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson35727f72010-01-28 23:55:12 +0000202 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000203 }, {
204 .eraseblocks = { {2048 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000205 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000206 },
207 },
Sean Nelson35727f72010-01-28 23:55:12 +0000208 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000209 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000210 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +0100211 .prepare_access = prepare_memory_access,
212 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +0000213 },
214
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000215 {
216 .vendor = "AMD",
Stefan Taunerd1ca1e82016-01-31 23:17:35 +0000217 .name = "Am29F040",
218 .bustype = BUS_PARALLEL,
219 .manufacture_id = AMD_ID,
220 .model_id = AMD_AM29F040,
221 .total_size = 512,
222 .page_size = 64 * 1024,
223 .feature_bits = FEATURE_EITHER_RESET,
224 .tested = TEST_UNTESTED,
225 .probe = probe_jedec,
226 .probe_timing = TIMING_ZERO,
227 .block_erasers =
228 {
229 {
230 .eraseblocks = { {64 * 1024, 8} },
231 .block_erase = erase_sector_jedec,
232 }, {
233 .eraseblocks = { {512 * 1024, 1} },
234 .block_erase = erase_chip_block_jedec,
235 },
236 },
237 .write = write_jedec_1,
238 .read = read_memmapped,
239 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +0100240 .prepare_access = prepare_memory_access,
241 .finish_access = finish_memory_access,
Stefan Taunerd1ca1e82016-01-31 23:17:35 +0000242 },
243
244 {
245 .vendor = "AMD",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000246 .name = "Am29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000247 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000248 .manufacture_id = AMD_ID,
Stefan Taunerd1ca1e82016-01-31 23:17:35 +0000249 .model_id = AMD_AM29F040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000250 .total_size = 512,
251 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000252 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
253 .tested = TEST_UNTESTED,
254 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000255 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000256 .block_erasers =
257 {
258 {
259 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +0000260 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000261 }, {
262 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000263 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000264 },
265 },
Sean Nelson35727f72010-01-28 23:55:12 +0000266 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000267 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000268 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +0100269 .prepare_access = prepare_memory_access,
270 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +0000271 },
272
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000273 {
274 .vendor = "AMD",
Stefan Taunerd1ca1e82016-01-31 23:17:35 +0000275 .name = "Am29F080",
276 .bustype = BUS_PARALLEL,
277 .manufacture_id = AMD_ID,
278 .model_id = AMD_AM29F080,
279 .total_size = 1024,
280 .page_size = 64 * 1024,
281 .feature_bits = FEATURE_EITHER_RESET,
282 .tested = TEST_UNTESTED,
283 .probe = probe_jedec,
284 .probe_timing = TIMING_ZERO,
285 .block_erasers =
286 {
287 {
288 .eraseblocks = { {64 * 1024, 16} },
289 .block_erase = erase_sector_jedec,
290 }, {
291 .eraseblocks = { {1024 * 1024, 1} },
292 .block_erase = erase_chip_block_jedec,
293 },
294 },
295 .write = write_jedec_1,
296 .read = read_memmapped,
297 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +0100298 .prepare_access = prepare_memory_access,
299 .finish_access = finish_memory_access,
Stefan Taunerd1ca1e82016-01-31 23:17:35 +0000300 },
301
302 {
303 .vendor = "AMD",
Peter Stuge8440cc02009-01-25 23:55:12 +0000304 .name = "Am29F080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000305 .bustype = BUS_PARALLEL,
Mateusz Murawski5bae4382009-06-02 00:38:14 +0000306 .manufacture_id = AMD_ID,
Stefan Taunerd1ca1e82016-01-31 23:17:35 +0000307 .model_id = AMD_AM29F080,
Peter Stuge8440cc02009-01-25 23:55:12 +0000308 .total_size = 1024,
309 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000310 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +0000311 .tested = TEST_UNTESTED,
312 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +0000313 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000314 .block_erasers =
315 {
316 {
317 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson35727f72010-01-28 23:55:12 +0000318 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000319 }, {
320 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000321 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000322 },
323 },
Sean Nelson35727f72010-01-28 23:55:12 +0000324 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000325 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000326 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +0100327 .prepare_access = prepare_memory_access,
328 .finish_access = finish_memory_access,
Peter Stuge8440cc02009-01-25 23:55:12 +0000329 },
330
331 {
332 .vendor = "AMD",
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000333 .name = "Am29LV001BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000334 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000335 .manufacture_id = AMD_ID,
336 .model_id = AMD_AM29LV001BB,
337 .total_size = 128,
338 .page_size = 64 * 1024, /* unused */
339 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
340 .tested = TEST_OK_PREW,
341 .probe = probe_jedec,
342 .probe_timing = TIMING_ZERO,
343 .block_erasers =
344 {
345 {
346 .eraseblocks = {
347 {8 * 1024, 1},
348 {4 * 1024, 2},
349 {16 * 1024, 7},
350 },
351 .block_erase = erase_sector_jedec,
352 }, {
353 .eraseblocks = { {128 * 1024, 1} },
354 .block_erase = erase_chip_block_jedec,
355 },
356 },
357 .write = write_jedec_1,
358 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000359 .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R, others 2.7-3.6V */
Nico Huber9eec4072023-01-12 01:17:30 +0100360 .prepare_access = prepare_memory_access,
361 .finish_access = finish_memory_access,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000362 },
363
364 {
365 .vendor = "AMD",
366 .name = "Am29LV001BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000367 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000368 .manufacture_id = AMD_ID,
369 .model_id = AMD_AM29LV001BT,
370 .total_size = 128,
371 .page_size = 64 * 1024, /* unused */
372 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
373 .tested = TEST_UNTESTED,
374 .probe = probe_jedec,
375 .probe_timing = TIMING_ZERO,
376 .block_erasers =
377 {
378 {
379 .eraseblocks = {
380 {16 * 1024, 7},
381 {4 * 1024, 2},
382 {8 * 1024, 1},
383 },
384 .block_erase = erase_sector_jedec,
385 }, {
386 .eraseblocks = { {128 * 1024, 1} },
387 .block_erase = erase_chip_block_jedec,
388 },
389 },
390 .write = write_jedec_1,
391 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000392 .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R, others 2.7-3.6V */
Nico Huber9eec4072023-01-12 01:17:30 +0100393 .prepare_access = prepare_memory_access,
394 .finish_access = finish_memory_access,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000395 },
396
397 {
398 .vendor = "AMD",
399 .name = "Am29LV002BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000400 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000401 .manufacture_id = AMD_ID,
402 .model_id = AMD_AM29LV002BB,
403 .total_size = 256,
404 .page_size = 64 * 1024, /* unused */
405 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
406 .tested = TEST_UNTESTED,
407 .probe = probe_jedec,
408 .probe_timing = TIMING_ZERO,
409 .block_erasers =
410 {
411 {
412 .eraseblocks = {
413 {16 * 1024, 1},
414 {8 * 1024, 2},
415 {32 * 1024, 1},
416 {64 * 1024, 3},
417 },
418 .block_erase = erase_sector_jedec,
419 }, {
420 .eraseblocks = { {256 * 1024, 1} },
421 .block_erase = erase_chip_block_jedec,
422 },
423 },
424 .write = write_jedec_1,
425 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000426 .voltage = {3000, 3600}, /* 3.0-3.6V for type -55, others 2.7-3.6V */
Nico Huber9eec4072023-01-12 01:17:30 +0100427 .prepare_access = prepare_memory_access,
428 .finish_access = finish_memory_access,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000429 },
430
431 {
432 .vendor = "AMD",
433 .name = "Am29LV002BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000434 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000435 .manufacture_id = AMD_ID,
436 .model_id = AMD_AM29LV002BT,
437 .total_size = 256,
438 .page_size = 64 * 1024, /* unused */
439 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
440 .tested = TEST_UNTESTED,
441 .probe = probe_jedec,
442 .probe_timing = TIMING_ZERO,
443 .block_erasers =
444 {
445 {
446 .eraseblocks = {
447 {64 * 1024, 3},
448 {32 * 1024, 1},
449 {8 * 1024, 2},
450 {16 * 1024, 1},
451 },
452 .block_erase = erase_sector_jedec,
453 }, {
454 .eraseblocks = { {256 * 1024, 1} },
455 .block_erase = erase_chip_block_jedec,
456 },
457 },
458 .write = write_jedec_1,
459 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000460 .voltage = {3000, 3600}, /* 3.0-3.6V for type -55, others 2.7-3.6V */
Nico Huber9eec4072023-01-12 01:17:30 +0100461 .prepare_access = prepare_memory_access,
462 .finish_access = finish_memory_access,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000463 },
464
465 {
466 .vendor = "AMD",
467 .name = "Am29LV004BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000468 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000469 .manufacture_id = AMD_ID,
470 .model_id = AMD_AM29LV004BB,
471 .total_size = 512,
472 .page_size = 64 * 1024, /* unused */
473 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
474 .tested = TEST_UNTESTED,
475 .probe = probe_jedec,
476 .probe_timing = TIMING_ZERO,
477 .block_erasers =
478 {
479 {
480 .eraseblocks = {
481 {16 * 1024, 1},
482 {8 * 1024, 2},
483 {32 * 1024, 1},
484 {64 * 1024, 7},
485 },
486 .block_erase = erase_sector_jedec,
487 }, {
488 .eraseblocks = { {512 * 1024, 1} },
489 .block_erase = erase_chip_block_jedec,
490 },
491 },
492 .write = write_jedec_1,
493 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000494 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +0100495 .prepare_access = prepare_memory_access,
496 .finish_access = finish_memory_access,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000497 },
498
499 {
500 .vendor = "AMD",
501 .name = "Am29LV004BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000502 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000503 .manufacture_id = AMD_ID,
504 .model_id = AMD_AM29LV004BT,
505 .total_size = 512,
506 .page_size = 64 * 1024, /* unused */
507 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
508 .tested = TEST_UNTESTED,
509 .probe = probe_jedec,
510 .probe_timing = TIMING_ZERO,
511 .block_erasers =
512 {
513 {
514 .eraseblocks = {
515 {64 * 1024, 7},
516 {32 * 1024, 1},
517 {8 * 1024, 2},
518 {16 * 1024, 1},
519 },
520 .block_erase = erase_sector_jedec,
521 }, {
522 .eraseblocks = { {512 * 1024, 1} },
523 .block_erase = erase_chip_block_jedec,
524 },
525 },
526 .write = write_jedec_1,
527 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000528 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +0100529 .prepare_access = prepare_memory_access,
530 .finish_access = finish_memory_access,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000531 },
532
533 {
534 .vendor = "AMD",
535 .name = "Am29LV008BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000536 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000537 .manufacture_id = AMD_ID,
538 .model_id = AMD_AM29LV008BB,
539 .total_size = 1024,
540 .page_size = 64 * 1024, /* unused */
541 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Uwe Hermann09ebd522011-08-25 22:54:23 +0000542 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000543 .probe = probe_jedec,
544 .probe_timing = TIMING_ZERO,
545 .block_erasers =
546 {
547 {
548 .eraseblocks = {
549 {16 * 1024, 1},
550 {8 * 1024, 2},
551 {32 * 1024, 1},
552 {64 * 1024, 15},
553 },
554 .block_erase = erase_sector_jedec,
555 }, {
556 .eraseblocks = { {1024 * 1024, 1} },
557 .block_erase = erase_chip_block_jedec,
558 },
559 },
560 .write = write_jedec_1,
561 .read = read_memmapped,
Alan Greenf5ad6882019-06-27 12:09:13 +1000562 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70R, others 2.7-3.6V */
Nico Huber9eec4072023-01-12 01:17:30 +0100563 .prepare_access = prepare_memory_access,
564 .finish_access = finish_memory_access,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000565 },
566
567 {
568 .vendor = "AMD",
569 .name = "Am29LV008BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000570 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000571 .manufacture_id = AMD_ID,
572 .model_id = AMD_AM29LV008BT,
573 .total_size = 1024,
574 .page_size = 64 * 1024, /* unused */
575 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
576 .tested = TEST_UNTESTED,
577 .probe = probe_jedec,
578 .probe_timing = TIMING_ZERO,
579 .block_erasers =
580 {
581 {
582 .eraseblocks = {
583 {64 * 1024, 15},
584 {32 * 1024, 1},
585 {8 * 1024, 2},
586 {16 * 1024, 1},
587 },
588 .block_erase = erase_sector_jedec,
589 }, {
590 .eraseblocks = { {1024 * 1024, 1} },
591 .block_erase = erase_chip_block_jedec,
592 },
593 },
594 .write = write_jedec_1,
595 .read = read_memmapped,
Alan Greenf5ad6882019-06-27 12:09:13 +1000596 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70R, others 2.7-3.6V */
Nico Huber9eec4072023-01-12 01:17:30 +0100597 .prepare_access = prepare_memory_access,
598 .finish_access = finish_memory_access,
Carl-Daniel Hailfingerc753e5b2011-02-05 12:11:17 +0000599 },
600
601 {
602 .vendor = "AMD",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000603 .name = "Am29LV040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000604 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000605 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000606 .model_id = AMD_AM29LV040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000607 .total_size = 512,
608 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +0000609 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +0000610 .tested = TEST_OK_PRE,
Sean Nelson35727f72010-01-28 23:55:12 +0000611 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000612 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000613 .block_erasers =
614 {
615 {
616 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +0000617 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000618 }, {
619 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000620 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000621 },
622 },
Sean Nelson35727f72010-01-28 23:55:12 +0000623 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000624 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000625 .voltage = {3000, 3600}, /* 3.0-3.6V for type -60R, others 2.7-3.6V*/
Nico Huber9eec4072023-01-12 01:17:30 +0100626 .prepare_access = prepare_memory_access,
627 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +0000628 },
629
Stephan Guilloux5c5b5252009-01-08 03:40:17 +0000630 {
Peter Stuge8440cc02009-01-25 23:55:12 +0000631 .vendor = "AMD",
632 .name = "Am29LV081B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000633 .bustype = BUS_PARALLEL,
Mateusz Murawski5bae4382009-06-02 00:38:14 +0000634 .manufacture_id = AMD_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +0000635 .model_id = AMD_AM29LV080B,
Peter Stuge8440cc02009-01-25 23:55:12 +0000636 .total_size = 1024,
637 .page_size = 64 * 1024,
David Borg204f4652010-12-04 03:26:40 +0000638 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, /* datasheet specifies address as don't care */
Peter Stuge8440cc02009-01-25 23:55:12 +0000639 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +0000640 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +0000641 .probe_timing = TIMING_ZERO,
Sean Nelson72a9a022009-12-22 22:15:33 +0000642 .block_erasers =
643 {
644 {
645 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson35727f72010-01-28 23:55:12 +0000646 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000647 }, {
648 .eraseblocks = { {1024 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +0000649 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +0000650 },
651 },
Sean Nelson35727f72010-01-28 23:55:12 +0000652 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +0000653 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000654 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70R, others 2.7-3.6V */
Nico Huber9eec4072023-01-12 01:17:30 +0100655 .prepare_access = prepare_memory_access,
656 .finish_access = finish_memory_access,
Peter Stuge8440cc02009-01-25 23:55:12 +0000657 },
658
659 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000660 .vendor = "AMIC",
Alan Green1f9cc7d2019-07-01 11:10:45 +1000661 .name = "A25L010",
662 .bustype = BUS_SPI,
663 .manufacture_id = AMIC_ID_NOPREFIX,
664 .model_id = AMIC_A25L010,
665 .total_size = 128,
666 .page_size = 256,
667 .feature_bits = FEATURE_WRSR_WREN,
668 .tested = TEST_UNTESTED,
669 .probe = probe_spi_rdid,
670 .probe_timing = TIMING_ZERO,
671 .block_erasers =
672 {
673 {
674 .eraseblocks = { { 4 * 1024, 32 } },
675 .block_erase = spi_block_erase_20,
676 }, {
677 .eraseblocks = { { 64 * 1024, 2 } },
678 .block_erase = spi_block_erase_d8,
679 }, {
680 .eraseblocks = { { 128 * 1024, 1 } },
681 .block_erase = spi_block_erase_c7,
682 }
683 },
684 .printlock = spi_prettyprint_status_register_bp2_srwd,
685 .unlock = spi_disable_blockprotect,
686 .write = spi_chip_write_256,
687 .read = spi_chip_read,
688 .voltage = {2700, 3600},
689 },
690
691 {
692 .vendor = "AMIC",
693 .name = "A25L016",
694 .bustype = BUS_SPI,
695 .manufacture_id = AMIC_ID_NOPREFIX,
696 .model_id = AMIC_A25L016,
697 .total_size = 2048,
698 .page_size = 256,
699 .feature_bits = FEATURE_WRSR_WREN,
700 .tested = TEST_UNTESTED,
701 .probe = probe_spi_rdid,
702 .probe_timing = TIMING_ZERO,
703 .block_erasers =
704 {
705 {
706 .eraseblocks = { { 4 * 1024, 512 } },
707 .block_erase = spi_block_erase_20,
708 }, {
709 .eraseblocks = { { 64 * 1024, 32 } },
710 .block_erase = spi_block_erase_d8,
711 }, {
712 .eraseblocks = { { 2048 * 1024, 1 } },
713 .block_erase = spi_block_erase_c7,
714 }
715 },
716 .printlock = spi_prettyprint_status_register_bp2_srwd,
717 .unlock = spi_disable_blockprotect,
718 .write = spi_chip_write_256,
719 .read = spi_chip_read,
720 .voltage = {2700, 3600},
721 },
722
723 {
724 .vendor = "AMIC",
725 .name = "A25L020",
726 .bustype = BUS_SPI,
727 .manufacture_id = AMIC_ID_NOPREFIX,
728 .model_id = AMIC_A25L020,
729 .total_size = 256,
730 .page_size = 256,
731 .feature_bits = FEATURE_WRSR_WREN,
732 .tested = TEST_UNTESTED,
733 .probe = probe_spi_rdid,
734 .probe_timing = TIMING_ZERO,
735 .block_erasers =
736 {
737 {
738 .eraseblocks = { { 4 * 1024, 64 } },
739 .block_erase = spi_block_erase_20,
740 }, {
741 .eraseblocks = { { 64 * 1024, 4 } },
742 .block_erase = spi_block_erase_d8,
743 }, {
744 .eraseblocks = { { 256 * 1024, 1 } },
745 .block_erase = spi_block_erase_c7,
746 }
747 },
748 .printlock = spi_prettyprint_status_register_bp2_srwd,
749 .unlock = spi_disable_blockprotect,
750 .write = spi_chip_write_256,
751 .read = spi_chip_read,
752 .voltage = {2700, 3600},
753 },
754
755 {
756 .vendor = "AMIC",
757 .name = "A25L032",
758 .bustype = BUS_SPI,
759 .manufacture_id = AMIC_ID_NOPREFIX,
760 .model_id = AMIC_A25L032,
761 .total_size = 4096,
762 .page_size = 256,
763 /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */
764 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
765 .tested = TEST_OK_PREW,
766 .probe = probe_spi_rdid,
767 .probe_timing = TIMING_ZERO,
768 .block_erasers =
769 {
770 {
771 .eraseblocks = { { 4 * 1024, 1024 } },
772 .block_erase = spi_block_erase_20,
773 }, {
774 .eraseblocks = { { 64 * 1024, 64 } },
775 .block_erase = spi_block_erase_52,
776 }, {
777 .eraseblocks = { { 64 * 1024, 64 } },
778 .block_erase = spi_block_erase_d8,
779 }, {
780 .eraseblocks = { { 4096 * 1024, 1 } },
781 .block_erase = spi_block_erase_60,
782 }, {
783 .eraseblocks = { { 4096 * 1024, 1 } },
784 .block_erase = spi_block_erase_c7,
785 }
786 },
787 .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */
788 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */
789 .write = spi_chip_write_256,
790 .read = spi_chip_read,
791 .voltage = {2700, 3600},
792 },
793
794 {
795 .vendor = "AMIC",
796 .name = "A25L040",
797 .bustype = BUS_SPI,
798 .manufacture_id = AMIC_ID_NOPREFIX,
799 .model_id = AMIC_A25L040,
800 .total_size = 512,
801 .page_size = 256,
802 .feature_bits = FEATURE_WRSR_WREN,
803 .tested = TEST_UNTESTED,
804 .probe = probe_spi_rdid,
805 .probe_timing = TIMING_ZERO,
806 .block_erasers =
807 {
808 {
809 .eraseblocks = { { 4 * 1024, 128 } },
810 .block_erase = spi_block_erase_20,
811 }, {
812 .eraseblocks = { { 64 * 1024, 8 } },
813 .block_erase = spi_block_erase_d8,
814 }, {
815 .eraseblocks = { { 512 * 1024, 1 } },
816 .block_erase = spi_block_erase_c7,
817 }
818 },
819 .printlock = spi_prettyprint_status_register_bp2_srwd,
820 .unlock = spi_disable_blockprotect,
821 .write = spi_chip_write_256,
822 .read = spi_chip_read,
823 .voltage = {2700, 3600},
824 },
825
826 {
827 .vendor = "AMIC",
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000828 .name = "A25L05PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000829 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000830 .manufacture_id = AMIC_ID,
831 .model_id = AMIC_A25L05PT,
832 .total_size = 64,
833 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000834 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000835 .tested = TEST_UNTESTED,
836 .probe = probe_spi_rdid4,
837 .probe_timing = TIMING_ZERO,
838 .block_erasers =
839 {
840 {
841 .eraseblocks = {
842 {32 * 1024, 1},
843 {16 * 1024, 1},
844 {8 * 1024, 1},
845 {4 * 1024, 2},
846 },
847 .block_erase = spi_block_erase_d8,
848 }, {
849 .eraseblocks = { {64 * 1024, 1} },
850 .block_erase = spi_block_erase_c7,
851 }
852 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000853 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000854 .unlock = spi_disable_blockprotect,
855 .write = spi_chip_write_256,
856 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000857 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000858 },
859
860 {
861 .vendor = "AMIC",
862 .name = "A25L05PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000863 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000864 .manufacture_id = AMIC_ID,
865 .model_id = AMIC_A25L05PU,
866 .total_size = 64,
867 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000868 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000869 .tested = TEST_UNTESTED,
870 .probe = probe_spi_rdid4,
871 .probe_timing = TIMING_ZERO,
872 .block_erasers =
873 {
874 {
875 .eraseblocks = {
876 {4 * 1024, 2},
877 {8 * 1024, 1},
878 {16 * 1024, 1},
879 {32 * 1024, 1},
880 },
881 .block_erase = spi_block_erase_d8,
882 }, {
883 .eraseblocks = { {64 * 1024, 1} },
884 .block_erase = spi_block_erase_c7,
885 }
886 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000887 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000888 .unlock = spi_disable_blockprotect,
889 .write = spi_chip_write_256,
890 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +0000891 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000892 },
893
894 {
895 .vendor = "AMIC",
Alan Green1f9cc7d2019-07-01 11:10:45 +1000896 .name = "A25L080",
897 .bustype = BUS_SPI,
898 .manufacture_id = AMIC_ID_NOPREFIX,
899 .model_id = AMIC_A25L080,
900 .total_size = 1024,
901 .page_size = 256,
902 .feature_bits = FEATURE_WRSR_WREN,
903 .tested = TEST_UNTESTED,
904 .probe = probe_spi_rdid,
905 .probe_timing = TIMING_ZERO,
906 .block_erasers =
907 {
908 {
909 .eraseblocks = { { 4 * 1024, 256 } },
910 .block_erase = spi_block_erase_20,
911 }, {
912 .eraseblocks = { { 64 * 1024, 16 } },
913 .block_erase = spi_block_erase_d8,
914 }, {
915 .eraseblocks = { { 1024 * 1024, 1 } },
916 .block_erase = spi_block_erase_c7,
917 }
918 },
919 .printlock = spi_prettyprint_status_register_bp2_srwd,
920 .unlock = spi_disable_blockprotect,
921 .write = spi_chip_write_256,
922 .read = spi_chip_read,
923 .voltage = {2700, 3600},
924 },
925
926 {
927 .vendor = "AMIC",
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000928 .name = "A25L10PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000929 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000930 .manufacture_id = AMIC_ID,
931 .model_id = AMIC_A25L10PT,
932 .total_size = 128,
933 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000934 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000935 .tested = TEST_UNTESTED,
936 .probe = probe_spi_rdid4,
937 .probe_timing = TIMING_ZERO,
938 .block_erasers =
939 {
940 {
941 .eraseblocks = {
942 {64 * 1024, 1},
943 {32 * 1024, 1},
944 {16 * 1024, 1},
945 {8 * 1024, 1},
946 {4 * 1024, 2},
947 },
948 .block_erase = spi_block_erase_d8,
949 }, {
950 .eraseblocks = { {128 * 1024, 1} },
951 .block_erase = spi_block_erase_c7,
952 }
953 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000954 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000955 .unlock = spi_disable_blockprotect,
956 .write = spi_chip_write_256,
957 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000958 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000959 },
960
961 {
962 .vendor = "AMIC",
963 .name = "A25L10PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +0000964 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000965 .manufacture_id = AMIC_ID,
966 .model_id = AMIC_A25L10PU,
967 .total_size = 128,
968 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +0000969 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000970 .tested = TEST_UNTESTED,
971 .probe = probe_spi_rdid4,
972 .probe_timing = TIMING_ZERO,
973 .block_erasers =
974 {
975 {
976 .eraseblocks = {
977 {4 * 1024, 2},
978 {8 * 1024, 1},
979 {16 * 1024, 1},
980 {32 * 1024, 1},
981 {64 * 1024, 1},
982 },
983 .block_erase = spi_block_erase_d8,
984 }, {
985 .eraseblocks = { {128 * 1024, 1} },
986 .block_erase = spi_block_erase_c7,
987 }
988 },
Stefan Tauner12f3d512014-05-27 21:27:27 +0000989 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000990 .unlock = spi_disable_blockprotect,
991 .write = spi_chip_write_256,
992 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +0000993 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +0000994 },
995
996 {
997 .vendor = "AMIC",
Alan Green1f9cc7d2019-07-01 11:10:45 +1000998 .name = "A25L16PT",
999 .bustype = BUS_SPI,
1000 .manufacture_id = AMIC_ID,
1001 .model_id = AMIC_A25L16PT,
1002 .total_size = 2048,
1003 .page_size = 256,
1004 .feature_bits = FEATURE_WRSR_WREN,
1005 .tested = TEST_UNTESTED,
1006 .probe = probe_spi_rdid4,
1007 .probe_timing = TIMING_ZERO,
1008 .block_erasers =
1009 {
1010 {
1011 .eraseblocks = {
1012 {64 * 1024, 31},
1013 {32 * 1024, 1},
1014 {16 * 1024, 1},
1015 {8 * 1024, 1},
1016 {4 * 1024, 2},
1017 },
1018 .block_erase = spi_block_erase_d8,
1019 }, {
1020 .eraseblocks = { {2048 * 1024, 1} },
1021 .block_erase = spi_block_erase_60,
1022 }, {
1023 .eraseblocks = { {2048 * 1024, 1} },
1024 .block_erase = spi_block_erase_c7,
1025 }
1026 },
1027 .printlock = spi_prettyprint_status_register_bp2_srwd,
1028 .unlock = spi_disable_blockprotect,
1029 .write = spi_chip_write_256,
1030 .read = spi_chip_read,
1031 .voltage = {2700, 3600},
1032 },
1033
1034 {
1035 .vendor = "AMIC",
1036 .name = "A25L16PU",
1037 .bustype = BUS_SPI,
1038 .manufacture_id = AMIC_ID,
1039 .model_id = AMIC_A25L16PU,
1040 .total_size = 2048,
1041 .page_size = 256,
1042 .feature_bits = FEATURE_WRSR_WREN,
1043 .tested = TEST_OK_PR,
1044 .probe = probe_spi_rdid4,
1045 .probe_timing = TIMING_ZERO,
1046 .block_erasers =
1047 {
1048 {
1049 .eraseblocks = {
1050 {4 * 1024, 2},
1051 {8 * 1024, 1},
1052 {16 * 1024, 1},
1053 {32 * 1024, 1},
1054 {64 * 1024, 31},
1055 },
1056 .block_erase = spi_block_erase_d8,
1057 }, {
1058 .eraseblocks = { {2048 * 1024, 1} },
1059 .block_erase = spi_block_erase_60,
1060 }, {
1061 .eraseblocks = { {2048 * 1024, 1} },
1062 .block_erase = spi_block_erase_c7,
1063 }
1064 },
1065 .printlock = spi_prettyprint_status_register_bp2_srwd,
1066 .unlock = spi_disable_blockprotect,
1067 .write = spi_chip_write_256,
1068 .read = spi_chip_read,
1069 .voltage = {2700, 3600},
1070 },
1071
1072 {
1073 .vendor = "AMIC",
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001074 .name = "A25L20PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001075 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001076 .manufacture_id = AMIC_ID,
1077 .model_id = AMIC_A25L20PT,
1078 .total_size = 256,
1079 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001080 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001081 .tested = TEST_UNTESTED,
1082 .probe = probe_spi_rdid4,
1083 .probe_timing = TIMING_ZERO,
1084 .block_erasers =
1085 {
1086 {
1087 .eraseblocks = {
1088 {64 * 1024, 3},
1089 {32 * 1024, 1},
1090 {16 * 1024, 1},
1091 {8 * 1024, 1},
1092 {4 * 1024, 2},
1093 },
1094 .block_erase = spi_block_erase_d8,
1095 }, {
1096 .eraseblocks = { {256 * 1024, 1} },
1097 .block_erase = spi_block_erase_c7,
1098 }
1099 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001100 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001101 .unlock = spi_disable_blockprotect,
1102 .write = spi_chip_write_256,
1103 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001104 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001105 },
1106
1107 {
1108 .vendor = "AMIC",
1109 .name = "A25L20PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001110 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001111 .manufacture_id = AMIC_ID,
1112 .model_id = AMIC_A25L20PU,
1113 .total_size = 256,
1114 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001115 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001116 .tested = TEST_UNTESTED,
1117 .probe = probe_spi_rdid4,
1118 .probe_timing = TIMING_ZERO,
1119 .block_erasers =
1120 {
1121 {
1122 .eraseblocks = {
1123 {4 * 1024, 2},
1124 {8 * 1024, 1},
1125 {16 * 1024, 1},
1126 {32 * 1024, 1},
1127 {64 * 1024, 3},
1128 },
1129 .block_erase = spi_block_erase_d8,
1130 }, {
1131 .eraseblocks = { {256 * 1024, 1} },
1132 .block_erase = spi_block_erase_c7,
1133 }
1134 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001135 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001136 .unlock = spi_disable_blockprotect,
1137 .write = spi_chip_write_256,
1138 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001139 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001140 },
1141
1142 /* The A25L40P{T,U} chips are distinguished by their
1143 * erase block layouts, but without any distinction in RDID.
1144 * This inexplicable quirk was verified by Rudolf Marek
Nico Huberc3b02dc2023-08-12 01:13:45 +02001145 * and discussed on the flashprog mailing list on 2010-07-12.
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001146 */
1147 {
1148 .vendor = "AMIC",
1149 .name = "A25L40PT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001150 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001151 .manufacture_id = AMIC_ID,
1152 .model_id = AMIC_A25L40PT,
1153 .total_size = 512,
1154 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001155 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00001156 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001157 .probe = probe_spi_rdid4,
1158 .probe_timing = TIMING_ZERO,
1159 .block_erasers =
1160 {
1161 {
1162 .eraseblocks = {
1163 {64 * 1024, 7},
1164 {32 * 1024, 1},
1165 {16 * 1024, 1},
1166 {8 * 1024, 1},
1167 {4 * 1024, 2},
1168 },
1169 .block_erase = spi_block_erase_d8,
1170 }, {
1171 .eraseblocks = { {512 * 1024, 1} },
1172 .block_erase = spi_block_erase_c7,
1173 }
1174 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001175 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001176 .unlock = spi_disable_blockprotect,
1177 .write = spi_chip_write_256,
1178 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001179 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001180 },
1181
1182 {
1183 .vendor = "AMIC",
1184 .name = "A25L40PU",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001185 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001186 .manufacture_id = AMIC_ID,
1187 .model_id = AMIC_A25L40PU,
1188 .total_size = 512,
1189 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001190 .feature_bits = FEATURE_WRSR_WREN,
Angel Pons6f088352018-09-30 19:59:42 +02001191 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001192 .probe = probe_spi_rdid4,
1193 .probe_timing = TIMING_ZERO,
1194 .block_erasers =
1195 {
1196 {
1197 .eraseblocks = {
1198 {4 * 1024, 2},
1199 {8 * 1024, 1},
1200 {16 * 1024, 1},
1201 {32 * 1024, 1},
1202 {64 * 1024, 7},
1203 },
1204 .block_erase = spi_block_erase_d8,
1205 }, {
1206 .eraseblocks = { {512 * 1024, 1} },
1207 .block_erase = spi_block_erase_c7,
1208 }
1209 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001210 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001211 .unlock = spi_disable_blockprotect,
1212 .write = spi_chip_write_256,
1213 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001214 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001215 },
1216
1217 {
1218 .vendor = "AMIC",
Alan Green1f9cc7d2019-07-01 11:10:45 +10001219 .name = "A25L512",
1220 .bustype = BUS_SPI,
1221 .manufacture_id = AMIC_ID_NOPREFIX,
1222 .model_id = AMIC_A25L512,
1223 .total_size = 64,
1224 .page_size = 256,
1225 .feature_bits = FEATURE_WRSR_WREN,
1226 .tested = TEST_UNTESTED,
1227 .probe = probe_spi_rdid,
1228 .probe_timing = TIMING_ZERO,
1229 .block_erasers =
1230 {
1231 {
1232 .eraseblocks = { { 4 * 1024, 16 } },
1233 .block_erase = spi_block_erase_20,
1234 }, {
1235 .eraseblocks = { { 64 * 1024, 1 } },
1236 .block_erase = spi_block_erase_d8,
1237 }, {
1238 .eraseblocks = { { 64 * 1024, 1 } },
1239 .block_erase = spi_block_erase_c7,
1240 }
1241 },
1242 .printlock = spi_prettyprint_status_register_bp2_srwd,
1243 .unlock = spi_disable_blockprotect,
1244 .write = spi_chip_write_256,
1245 .read = spi_chip_read,
1246 .voltage = {2700, 3600},
1247 },
1248
1249 {
1250 .vendor = "AMIC",
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001251 .name = "A25L80P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001252 .bustype = BUS_SPI,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001253 .manufacture_id = AMIC_ID,
1254 .model_id = AMIC_A25L80P,
1255 .total_size = 1024,
1256 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00001257 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00001258 .tested = TEST_OK_PRE,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001259 .probe = probe_spi_rdid4,
1260 .probe_timing = TIMING_ZERO,
1261 .block_erasers =
1262 {
1263 {
1264 .eraseblocks = {
1265 {4 * 1024, 2},
1266 {8 * 1024, 1},
1267 {16 * 1024, 1},
1268 {32 * 1024, 1},
1269 {64 * 1024, 15},
1270 },
1271 .block_erase = spi_block_erase_d8,
1272 }, {
1273 .eraseblocks = { {1024 * 1024, 1} },
1274 .block_erase = spi_block_erase_c7,
1275 }
1276 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001277 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001278 .unlock = spi_disable_blockprotect,
1279 .write = spi_chip_write_256,
1280 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001281 .voltage = {2700, 3600},
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001282 },
1283
1284 {
1285 .vendor = "AMIC",
Alan Green1f9cc7d2019-07-01 11:10:45 +10001286 .name = "A25LQ032/A25LQ32A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001287 .bustype = BUS_SPI,
Dan Lenski11617122010-07-29 15:00:40 +00001288 .manufacture_id = AMIC_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10001289 .model_id = AMIC_A25LQ032,
Dan Lenski11617122010-07-29 15:00:40 +00001290 .total_size = 4096,
1291 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10001292 /* A25LQ32A supports SFDP */
Daniel Lenski65922a32012-02-15 23:40:23 +00001293 /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */
1294 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Alan Green1f9cc7d2019-07-01 11:10:45 +10001295 .tested = TEST_UNTESTED,
Dan Lenski11617122010-07-29 15:00:40 +00001296 .probe = probe_spi_rdid,
1297 .probe_timing = TIMING_ZERO,
1298 .block_erasers =
1299 {
1300 {
1301 .eraseblocks = { { 4 * 1024, 1024 } },
1302 .block_erase = spi_block_erase_20,
1303 }, {
1304 .eraseblocks = { { 64 * 1024, 64 } },
1305 .block_erase = spi_block_erase_52,
1306 }, {
1307 .eraseblocks = { { 64 * 1024, 64 } },
1308 .block_erase = spi_block_erase_d8,
1309 }, {
1310 .eraseblocks = { { 4096 * 1024, 1 } },
1311 .block_erase = spi_block_erase_60,
1312 }, {
1313 .eraseblocks = { { 4096 * 1024, 1 } },
1314 .block_erase = spi_block_erase_c7,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00001315 }
Dan Lenski11617122010-07-29 15:00:40 +00001316 },
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001317 .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */
1318 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */
Dan Lenski11617122010-07-29 15:00:40 +00001319 .write = spi_chip_write_256,
1320 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001321 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001322 },
1323
1324 {
1325 .vendor = "AMIC",
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001326 .name = "A25LQ16",
1327 .bustype = BUS_SPI,
1328 .manufacture_id = AMIC_ID_NOPREFIX,
1329 .model_id = AMIC_A25LQ16,
1330 .total_size = 2048,
1331 .page_size = 256,
1332 /* supports SFDP */
1333 /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */
1334 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
1335 .tested = TEST_UNTESTED,
1336 .probe = probe_spi_rdid,
1337 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10001338 .block_erasers =
1339 {
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001340 {
1341 .eraseblocks = { { 4 * 1024, 512 } },
1342 .block_erase = spi_block_erase_20,
1343 }, {
1344 .eraseblocks = { { 64 * 1024, 32 } },
1345 .block_erase = spi_block_erase_52,
1346 }, {
1347 .eraseblocks = { { 64 * 1024, 32 } },
1348 .block_erase = spi_block_erase_d8,
1349 }, {
1350 .eraseblocks = { { 2048 * 1024, 1 } },
1351 .block_erase = spi_block_erase_60,
1352 }, {
1353 .eraseblocks = { { 2048 * 1024, 1 } },
1354 .block_erase = spi_block_erase_c7,
1355 }
1356 },
1357 .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */
1358 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */
1359 .write = spi_chip_write_256,
1360 .read = spi_chip_read,
1361 .voltage = {2700, 3600},
1362 },
1363
1364 {
1365 .vendor = "AMIC",
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001366 .name = "A25LQ64",
1367 .bustype = BUS_SPI,
1368 .manufacture_id = AMIC_ID_NOPREFIX,
Stefan Tauner23e10b82016-01-23 16:16:49 +00001369 .model_id = AMIC_A25LQ64,
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001370 .total_size = 8192,
1371 .page_size = 256,
1372 /* supports SFDP */
1373 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
Nico Huber1412d9f2024-01-06 18:25:49 +01001374 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP |
1375 FEATURE_FAST_READ | FEATURE_FAST_READ_DOUT |
1376 FEATURE_FAST_READ_DIO | FEATURE_FAST_READ_QIO |
1377 FEATURE_QPI_35_F5,
1378 .dummy_cycles =
1379 {
1380 .qpi_fast_read = 4,
1381 .qpi_fast_read_qio = 6,
1382 },
Nikolay Nikolaevd07fde62013-06-28 21:29:21 +00001383 .tested = TEST_UNTESTED,
1384 .probe = probe_spi_rdid,
1385 .probe_timing = TIMING_ZERO,
1386 .block_erasers =
1387 {
1388 {
1389 .eraseblocks = { { 4 * 1024, 2048 } },
1390 .block_erase = spi_block_erase_20,
1391 }, {
1392 .eraseblocks = { { 32 * 1024, 256 } },
1393 .block_erase = spi_block_erase_52,
1394 }, {
1395 .eraseblocks = { { 64 * 1024, 128 } },
1396 .block_erase = spi_block_erase_d8,
1397 }, {
1398 .eraseblocks = { { 8192 * 1024, 1 } },
1399 .block_erase = spi_block_erase_60,
1400 }, {
1401 .eraseblocks = { { 8192 * 1024, 1 } },
1402 .block_erase = spi_block_erase_c7,
1403 }
1404 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00001405 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enhance (sic!) */
Stefan Tauner5c316f92015-02-08 21:57:52 +00001406 .unlock = spi_disable_blockprotect_bp3_srwd,
Dan Lenski11617122010-07-29 15:00:40 +00001407 .write = spi_chip_write_256,
1408 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001409 .voltage = {2700, 3600},
Dan Lenski11617122010-07-29 15:00:40 +00001410 },
1411
1412 {
1413 .vendor = "AMIC",
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001414 .name = "A29002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001415 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001416 .manufacture_id = AMIC_ID_NOPREFIX,
1417 .model_id = AMIC_A29002B,
1418 .total_size = 256,
1419 .page_size = 64 * 1024,
1420 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
1421 .tested = TEST_UNTESTED,
1422 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001423 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001424 .block_erasers =
1425 {
1426 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00001427 .eraseblocks = {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001428 {16 * 1024, 1},
1429 {8 * 1024, 2},
1430 {32 * 1024, 1},
1431 {64 * 1024, 3},
1432 },
1433 .block_erase = erase_sector_jedec,
1434 }, {
1435 .eraseblocks = { {256 * 1024, 1} },
1436 .block_erase = erase_chip_block_jedec,
1437 },
1438 },
1439 .write = write_jedec_1,
1440 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001441 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +01001442 .prepare_access = prepare_memory_access,
1443 .finish_access = finish_memory_access,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001444 },
1445
1446 {
1447 .vendor = "AMIC",
1448 .name = "A29002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001449 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001450 .manufacture_id = AMIC_ID_NOPREFIX,
1451 .model_id = AMIC_A29002T,
1452 .total_size = 256,
1453 .page_size = 64 * 1024,
1454 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00001455 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001456 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001457 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001458 .block_erasers =
1459 {
1460 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00001461 .eraseblocks = {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001462 {64 * 1024, 3},
1463 {32 * 1024, 1},
1464 {8 * 1024, 2},
1465 {16 * 1024, 1},
1466 },
1467 .block_erase = erase_sector_jedec,
1468 }, {
1469 .eraseblocks = { {256 * 1024, 1} },
1470 .block_erase = erase_chip_block_jedec,
1471 },
1472 },
1473 .write = write_jedec_1,
1474 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001475 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +01001476 .prepare_access = prepare_memory_access,
1477 .finish_access = finish_memory_access,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001478 },
1479
1480 {
1481 .vendor = "AMIC",
1482 .name = "A29040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001483 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001484 .manufacture_id = AMIC_ID_NOPREFIX,
1485 .model_id = AMIC_A29040B,
1486 .total_size = 512,
1487 .page_size = 64 * 1024,
1488 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Corey Osgoodcbd56652013-09-10 10:42:48 +00001489 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001490 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +00001491 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001492 .block_erasers =
1493 {
1494 {
1495 .eraseblocks = { {64 * 1024, 8} },
1496 .block_erase = erase_sector_jedec,
1497 }, {
1498 .eraseblocks = { {512 * 1024, 1} },
1499 .block_erase = erase_chip_block_jedec,
1500 },
1501 },
1502 .write = write_jedec_1,
1503 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001504 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +01001505 .prepare_access = prepare_memory_access,
1506 .finish_access = finish_memory_access,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001507 },
1508
1509 {
1510 .vendor = "AMIC",
1511 .name = "A49LF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001512 .bustype = BUS_LPC,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001513 .manufacture_id = AMIC_ID_NOPREFIX,
1514 .model_id = AMIC_A49LF040A,
1515 .total_size = 512,
1516 .page_size = 64 * 1024,
Nico Huberb1974022023-01-12 13:13:12 +01001517 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00001518 .tested = TEST_OK_PR,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001519 .probe = probe_jedec,
1520 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
1521 .block_erasers =
1522 {
1523 {
1524 .eraseblocks = { {64 * 1024, 8} },
1525 .block_erase = erase_block_jedec,
1526 }, {
1527 .eraseblocks = { {512 * 1024, 1} },
1528 .block_erase = erase_chip_block_jedec,
1529 }
1530 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +00001531 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001532 .write = write_jedec_1,
1533 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001534 .voltage = {3000, 3600},
Nico Huberb1974022023-01-12 13:13:12 +01001535 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +01001536 .finish_access = finish_memory_access,
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00001537 },
1538
1539 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001540 .vendor = "Atmel",
1541 .name = "AT25DF021",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001542 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001543 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001544 .model_id = ATMEL_AT25DF021,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001545 .total_size = 256,
1546 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001547 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1548 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001549 .tested = TEST_UNTESTED,
1550 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001551 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001552 .block_erasers =
1553 {
1554 {
1555 .eraseblocks = { {4 * 1024, 64} },
1556 .block_erase = spi_block_erase_20,
1557 }, {
1558 .eraseblocks = { {32 * 1024, 8} },
1559 .block_erase = spi_block_erase_52,
1560 }, {
1561 .eraseblocks = { {64 * 1024, 4} },
1562 .block_erase = spi_block_erase_d8,
1563 }, {
1564 .eraseblocks = { {256 * 1024, 1} },
1565 .block_erase = spi_block_erase_60,
1566 }, {
1567 .eraseblocks = { {256 * 1024, 1} },
1568 .block_erase = spi_block_erase_c7,
1569 }
1570 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001571 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001572 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001573 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001574 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001575 .voltage = {2700, 3600}, /* 2.3-3.6V & 2.7-3.6V models available */
FENG yu ningff692fb2008-12-08 18:15:10 +00001576 },
1577
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001578 {
1579 .vendor = "Atmel",
Steffen Mauch0b59b0d2018-06-02 23:46:03 +02001580 .name = "AT25DF021A",
1581 .bustype = BUS_SPI,
1582 .manufacture_id = ATMEL_ID,
1583 .model_id = ATMEL_AT25DF021A,
1584 .total_size = 256,
1585 .page_size = 256,
1586 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1587 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
1588 .tested = TEST_OK_PREW,
1589 .probe = probe_spi_rdid,
1590 .probe_timing = TIMING_ZERO,
1591 .block_erasers =
1592 {
1593 {
1594 .eraseblocks = { {4 * 1024, 64} },
1595 .block_erase = spi_block_erase_20,
1596 }, {
1597 .eraseblocks = { {32 * 1024, 8} },
1598 .block_erase = spi_block_erase_52,
1599 }, {
1600 .eraseblocks = { {64 * 1024, 4} },
1601 .block_erase = spi_block_erase_d8,
1602 }, {
1603 .eraseblocks = { {256 * 1024, 1} },
1604 .block_erase = spi_block_erase_60,
1605 }, {
1606 .eraseblocks = { {256 * 1024, 1} },
1607 .block_erase = spi_block_erase_c7,
1608 }
1609 },
1610 .printlock = spi_prettyprint_status_register_at25df,
1611 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
1612 .write = spi_chip_write_256,
1613 .read = spi_chip_read,
1614 .voltage = {1650, 3600},
1615 },
1616
1617 {
1618 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001619 .name = "AT25DF041A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001620 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001621 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001622 .model_id = ATMEL_AT25DF041A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001623 .total_size = 512,
1624 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001625 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +00001626 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001627 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001628 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001629 .block_erasers =
1630 {
1631 {
1632 .eraseblocks = { {4 * 1024, 128} },
1633 .block_erase = spi_block_erase_20,
1634 }, {
1635 .eraseblocks = { {32 * 1024, 16} },
1636 .block_erase = spi_block_erase_52,
1637 }, {
1638 .eraseblocks = { {64 * 1024, 8} },
1639 .block_erase = spi_block_erase_d8,
1640 }, {
1641 .eraseblocks = { {512 * 1024, 1} },
1642 .block_erase = spi_block_erase_60,
1643 }, {
1644 .eraseblocks = { {512 * 1024, 1} },
1645 .block_erase = spi_block_erase_c7,
1646 }
1647 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001648 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001649 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001650 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001651 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001652 .voltage = {2700, 3600}, /* 2.3-3.6V & 2.7-3.6V models available */
FENG yu ningff692fb2008-12-08 18:15:10 +00001653 },
1654
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001655 {
1656 .vendor = "Atmel",
1657 .name = "AT25DF081",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001658 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001659 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001660 .model_id = ATMEL_AT25DF081,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001661 .total_size = 1024,
1662 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001663 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001664 .tested = TEST_UNTESTED,
1665 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001666 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001667 .block_erasers =
1668 {
1669 {
1670 .eraseblocks = { {4 * 1024, 256} },
1671 .block_erase = spi_block_erase_20,
1672 }, {
1673 .eraseblocks = { {32 * 1024, 32} },
1674 .block_erase = spi_block_erase_52,
1675 }, {
1676 .eraseblocks = { {64 * 1024, 16} },
1677 .block_erase = spi_block_erase_d8,
1678 }, {
1679 .eraseblocks = { {1024 * 1024, 1} },
1680 .block_erase = spi_block_erase_60,
1681 }, {
1682 .eraseblocks = { {1024 * 1024, 1} },
1683 .block_erase = spi_block_erase_c7,
1684 }
1685 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001686 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001687 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001688 .write = spi_chip_write_256,
1689 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001690 .voltage = {1600, 2000}, /* Datasheet says range is 1.65-1.95 V */
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001691 },
1692
1693 {
1694 .vendor = "Atmel",
1695 .name = "AT25DF081A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001696 .bustype = BUS_SPI,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001697 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001698 .model_id = ATMEL_AT25DF081A,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001699 .total_size = 1024,
1700 .page_size = 256,
1701 .feature_bits = FEATURE_WRSR_WREN,
1702 .tested = TEST_UNTESTED,
1703 .probe = probe_spi_rdid,
1704 .probe_timing = TIMING_ZERO,
1705 .block_erasers =
1706 {
1707 {
1708 .eraseblocks = { {4 * 1024, 256} },
1709 .block_erase = spi_block_erase_20,
1710 }, {
1711 .eraseblocks = { {32 * 1024, 32} },
1712 .block_erase = spi_block_erase_52,
1713 }, {
1714 .eraseblocks = { {64 * 1024, 16} },
1715 .block_erase = spi_block_erase_d8,
1716 }, {
1717 .eraseblocks = { {1024 * 1024, 1} },
1718 .block_erase = spi_block_erase_60,
1719 }, {
1720 .eraseblocks = { {1024 * 1024, 1} },
1721 .block_erase = spi_block_erase_c7,
1722 }
1723 },
1724 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001725 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001726 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001727 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00001728 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001729 },
1730
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001731 {
1732 .vendor = "Atmel",
1733 .name = "AT25DF161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001734 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001735 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001736 .model_id = ATMEL_AT25DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001737 .total_size = 2048,
1738 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001739 .feature_bits = FEATURE_WRSR_WREN,
Angel Pons8b5b9622018-09-30 19:13:15 +02001740 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001741 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001742 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001743 .block_erasers =
1744 {
1745 {
1746 .eraseblocks = { {4 * 1024, 512} },
1747 .block_erase = spi_block_erase_20,
1748 }, {
1749 .eraseblocks = { {32 * 1024, 64} },
1750 .block_erase = spi_block_erase_52,
1751 }, {
1752 .eraseblocks = { {64 * 1024, 32} },
1753 .block_erase = spi_block_erase_d8,
1754 }, {
1755 .eraseblocks = { {2 * 1024 * 1024, 1} },
1756 .block_erase = spi_block_erase_60,
1757 }, {
1758 .eraseblocks = { {2 * 1024 * 1024, 1} },
1759 .block_erase = spi_block_erase_c7,
1760 }
1761 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001762 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001763 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001764 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001765 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001766 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001767 },
1768
Alan Green86bf6ab2019-06-27 16:58:20 +10001769 /*The AT26DF321 has the same ID as the AT25DF321. */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001770 {
1771 .vendor = "Atmel",
1772 .name = "AT25DF321",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001773 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001774 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001775 .model_id = ATMEL_AT25DF321,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001776 .total_size = 4096,
1777 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001778 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerd06d9412011-06-12 19:47:55 +00001779 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001780 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001781 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001782 .block_erasers =
1783 {
1784 {
1785 .eraseblocks = { {4 * 1024, 1024} },
1786 .block_erase = spi_block_erase_20,
1787 }, {
1788 .eraseblocks = { {32 * 1024, 128} },
1789 .block_erase = spi_block_erase_52,
1790 }, {
1791 .eraseblocks = { {64 * 1024, 64} },
1792 .block_erase = spi_block_erase_d8,
1793 }, {
1794 .eraseblocks = { {4 * 1024 * 1024, 1} },
1795 .block_erase = spi_block_erase_60,
1796 }, {
1797 .eraseblocks = { {4 * 1024 * 1024, 1} },
1798 .block_erase = spi_block_erase_c7,
1799 }
1800 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001801 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001802 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001803 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001804 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001805 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001806 },
1807
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001808 {
1809 .vendor = "Atmel",
1810 .name = "AT25DF321A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001811 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001812 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001813 .model_id = ATMEL_AT25DF321A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001814 .total_size = 4096,
1815 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001816 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1817 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerd94d25d2012-07-28 03:17:15 +00001818 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001819 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001820 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001821 .block_erasers =
1822 {
1823 {
1824 .eraseblocks = { {4 * 1024, 1024} },
1825 .block_erase = spi_block_erase_20,
1826 }, {
1827 .eraseblocks = { {32 * 1024, 128} },
1828 .block_erase = spi_block_erase_52,
1829 }, {
1830 .eraseblocks = { {64 * 1024, 64} },
1831 .block_erase = spi_block_erase_d8,
1832 }, {
1833 .eraseblocks = { {4 * 1024 * 1024, 1} },
1834 .block_erase = spi_block_erase_60,
1835 }, {
1836 .eraseblocks = { {4 * 1024 * 1024, 1} },
1837 .block_erase = spi_block_erase_c7,
1838 }
1839 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001840 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001841 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001842 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001843 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001844 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00001845 },
1846
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001847 {
1848 .vendor = "Atmel",
Paul Menzelac427b22012-02-16 21:07:07 +00001849 .name = "AT25DF641(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001850 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001851 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001852 .model_id = ATMEL_AT25DF641,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001853 .total_size = 8192,
1854 .page_size = 256,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001855 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00001856 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001857 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00001858 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00001859 .block_erasers =
1860 {
1861 {
1862 .eraseblocks = { {4 * 1024, 2048} },
1863 .block_erase = spi_block_erase_20,
1864 }, {
1865 .eraseblocks = { {32 * 1024, 256} },
1866 .block_erase = spi_block_erase_52,
1867 }, {
1868 .eraseblocks = { {64 * 1024, 128} },
1869 .block_erase = spi_block_erase_d8,
1870 }, {
1871 .eraseblocks = { {8 * 1024 * 1024, 1} },
1872 .block_erase = spi_block_erase_60,
1873 }, {
1874 .eraseblocks = { {8 * 1024 * 1024, 1} },
1875 .block_erase = spi_block_erase_c7,
1876 }
1877 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001878 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001879 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001880 .write = spi_chip_write_256,
1881 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001882 .voltage = {2700, 3600},
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001883 },
1884
1885 {
1886 .vendor = "Atmel",
Stefan Taunerc9d8b272014-06-01 13:22:35 +00001887 .name = "AT25DL081",
1888 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +10001889 .manufacture_id = ATMEL_ID,
Stefan Taunerc9d8b272014-06-01 13:22:35 +00001890 .model_id = ATMEL_AT25DF081,
1891 .total_size = 1024,
1892 .page_size = 256,
1893 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1894 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
1895 .tested = TEST_UNTESTED,
1896 .probe = probe_spi_rdid,
1897 .probe_timing = TIMING_ZERO,
1898 .block_erasers =
1899 {
1900 {
1901 .eraseblocks = { {4 * 1024, 256} },
1902 .block_erase = spi_block_erase_20,
1903 }, {
1904 .eraseblocks = { {32 * 1024, 32} },
1905 .block_erase = spi_block_erase_52,
1906 }, {
1907 .eraseblocks = { {64 * 1024, 16} },
1908 .block_erase = spi_block_erase_d8,
1909 }, {
1910 .eraseblocks = { {1 * 1024 * 1024, 1} },
1911 .block_erase = spi_block_erase_60,
1912 }, {
1913 .eraseblocks = { {1 * 1024 * 1024, 1} },
1914 .block_erase = spi_block_erase_c7,
1915 }
1916 },
1917 .printlock = spi_prettyprint_status_register_at25df_sec,
1918 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
1919 .write = spi_chip_write_256, /* Dual I/O (0xA2) supported */
1920 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
1921 .voltage = {1650, 1950},
1922 },
1923
1924 {
1925 .vendor = "Atmel",
1926 .name = "AT25DL161",
1927 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +10001928 .manufacture_id = ATMEL_ID,
Stefan Taunerc9d8b272014-06-01 13:22:35 +00001929 .model_id = ATMEL_AT25DL161,
1930 .total_size = 2048,
1931 .page_size = 256,
1932 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1933 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
1934 .tested = TEST_UNTESTED,
1935 .probe = probe_spi_rdid,
1936 .probe_timing = TIMING_ZERO,
1937 .block_erasers =
1938 {
1939 {
1940 .eraseblocks = { {4 * 1024, 512} },
1941 .block_erase = spi_block_erase_20,
1942 }, {
1943 .eraseblocks = { {32 * 1024, 64} },
1944 .block_erase = spi_block_erase_52,
1945 }, {
1946 .eraseblocks = { {64 * 1024, 32} },
1947 .block_erase = spi_block_erase_d8,
1948 }, {
1949 .eraseblocks = { {2 * 1024 * 1024, 1} },
1950 .block_erase = spi_block_erase_60,
1951 }, {
1952 .eraseblocks = { {2 * 1024 * 1024, 1} },
1953 .block_erase = spi_block_erase_c7,
1954 }
1955 },
1956 .printlock = spi_prettyprint_status_register_at25df_sec,
1957 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
1958 .write = spi_chip_write_256, /* Dual I/O (0xA2) supported */
1959 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
1960 .voltage = {1650, 1950},
1961 },
1962
1963 {
1964 .vendor = "Atmel",
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001965 .name = "AT25DQ161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00001966 .bustype = BUS_SPI,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001967 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00001968 .model_id = ATMEL_AT25DQ161,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001969 .total_size = 2048,
1970 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00001971 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
1972 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00001973 .tested = TEST_UNTESTED,
1974 .probe = probe_spi_rdid,
1975 .probe_timing = TIMING_ZERO,
1976 .block_erasers =
1977 {
1978 {
1979 .eraseblocks = { {4 * 1024, 512} },
1980 .block_erase = spi_block_erase_20,
1981 }, {
1982 .eraseblocks = { {32 * 1024, 64} },
1983 .block_erase = spi_block_erase_52,
1984 }, {
1985 .eraseblocks = { {64 * 1024, 32} },
1986 .block_erase = spi_block_erase_d8,
1987 }, {
1988 .eraseblocks = { {2 * 1024 * 1024, 1} },
1989 .block_erase = spi_block_erase_60,
1990 }, {
1991 .eraseblocks = { {2 * 1024 * 1024, 1} },
1992 .block_erase = spi_block_erase_c7,
1993 }
1994 },
1995 .printlock = spi_prettyprint_status_register_at25df_sec,
Stefan Taunercecb2c52013-06-20 22:55:41 +00001996 .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00001997 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00001998 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00001999 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002000 },
2001
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002002 {
2003 .vendor = "Atmel",
Alan Green1f9cc7d2019-07-01 11:10:45 +10002004 /* The A suffix indicates 33MHz instead of 20MHz clock rate.
2005 * All other properties seem to be the same.*/
2006 .name = "AT25F1024(A)",
2007 .bustype = BUS_SPI,
2008 .manufacture_id = ATMEL_ID,
2009 .model_id = ATMEL_AT25F1024,
2010 .total_size = 128,
2011 .page_size = 256,
2012 .feature_bits = FEATURE_WRSR_WREN,
2013 .tested = TEST_OK_PREW,
2014 .probe = probe_spi_at25f,
2015 .probe_timing = TIMING_ZERO,
2016 .block_erasers =
2017 {
2018 {
2019 .eraseblocks = { {32 * 1024, 4} },
2020 .block_erase = spi_block_erase_52,
2021 }, {
2022 .eraseblocks = { {128 * 1024, 1} },
2023 .block_erase = spi_block_erase_62,
2024 }
2025 },
2026 .printlock = spi_prettyprint_status_register_at25f,
2027 .unlock = spi_disable_blockprotect_at25f,
2028 .write = spi_chip_write_256,
2029 .read = spi_chip_read,
2030 .voltage = {2700, 3600},
2031 },
2032
2033 {
2034 .vendor = "Atmel",
2035 .name = "AT25F2048",
2036 .bustype = BUS_SPI,
2037 .manufacture_id = ATMEL_ID,
2038 .model_id = ATMEL_AT25F2048,
2039 .total_size = 256,
2040 .page_size = 256,
2041 .feature_bits = FEATURE_WRSR_WREN,
2042 .tested = TEST_UNTESTED,
2043 .probe = probe_spi_at25f,
2044 .probe_timing = TIMING_ZERO,
2045 .block_erasers =
2046 {
2047 {
2048 .eraseblocks = { {64 * 1024, 4} },
2049 .block_erase = spi_block_erase_52,
2050 }, {
2051 .eraseblocks = { {256 * 1024, 1} },
2052 .block_erase = spi_block_erase_62,
2053 }
2054 },
2055 .printlock = spi_prettyprint_status_register_at25f,
2056 .unlock = spi_disable_blockprotect_at25f,
2057 .write = spi_chip_write_256,
2058 .read = spi_chip_read,
2059 .voltage = {2700, 3600},
2060 },
2061
2062 {
2063 .vendor = "Atmel",
2064 .name = "AT25F4096",
2065 .bustype = BUS_SPI,
2066 .manufacture_id = ATMEL_ID,
2067 .model_id = ATMEL_AT25F4096,
2068 .total_size = 512,
2069 .page_size = 256,
2070 .feature_bits = FEATURE_WRSR_WREN,
2071 .tested = TEST_OK_PREW,
2072 .probe = probe_spi_at25f,
2073 .probe_timing = TIMING_ZERO,
2074 .block_erasers =
2075 {
2076 {
2077 .eraseblocks = { {64 * 1024, 8} },
2078 .block_erase = spi_block_erase_52,
2079 }, {
2080 .eraseblocks = { {512 * 1024, 1} },
2081 .block_erase = spi_block_erase_62,
2082 }
2083 },
2084 .printlock = spi_prettyprint_status_register_at25f4096,
2085 /* "Bits 5-6 are 0s when device is not in an internal write cycle." Better leave them alone: */
2086 .unlock = spi_disable_blockprotect_bp2_srwd,
2087 .write = spi_chip_write_256,
2088 .read = spi_chip_read,
2089 .voltage = {2700, 3600},
2090 },
2091
2092 {
2093 .vendor = "Atmel",
Stefan Tauner57794ac2012-12-29 15:04:20 +00002094 .name = "AT25F512",
2095 .bustype = BUS_SPI,
2096 .manufacture_id = ATMEL_ID,
2097 .model_id = ATMEL_AT25F512,
2098 .total_size = 64,
2099 .page_size = 256,
2100 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00002101 .tested = TEST_OK_PREW,
Stefan Tauner57794ac2012-12-29 15:04:20 +00002102 .probe = probe_spi_at25f,
2103 .probe_timing = TIMING_ZERO,
2104 .block_erasers =
2105 {
2106 {
2107 .eraseblocks = { {32 * 1024, 2} },
2108 .block_erase = spi_block_erase_52,
2109 }, {
2110 .eraseblocks = { {64 * 1024, 1} },
2111 .block_erase = spi_block_erase_62,
2112 }
2113 },
2114 .printlock = spi_prettyprint_status_register_at25f,
2115 .unlock = spi_disable_blockprotect_at25f,
2116 .write = spi_chip_write_256,
2117 .read = spi_chip_read,
2118 .voltage = {2700, 3600},
2119 },
2120
2121 {
2122 .vendor = "Atmel",
2123 .name = "AT25F512A",
2124 .bustype = BUS_SPI,
2125 .manufacture_id = ATMEL_ID,
2126 .model_id = ATMEL_AT25F512A,
2127 .total_size = 64,
2128 .page_size = 128,
2129 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00002130 .tested = TEST_OK_PREW,
Stefan Tauner57794ac2012-12-29 15:04:20 +00002131 .probe = probe_spi_at25f,
2132 .probe_timing = TIMING_ZERO,
2133 .block_erasers =
2134 {
2135 {
2136 .eraseblocks = { {32 * 1024, 2} },
2137 .block_erase = spi_block_erase_52,
2138 }, {
2139 .eraseblocks = { {64 * 1024, 1} },
2140 .block_erase = spi_block_erase_62,
2141 }
2142 },
2143 .printlock = spi_prettyprint_status_register_at25f512a,
2144 /* FIXME: It is not correct to use this one, because the BP1 bit is N/A. */
2145 .unlock = spi_disable_blockprotect_at25f512a,
2146 .write = spi_chip_write_256,
2147 .read = spi_chip_read,
2148 .voltage = {2700, 3600},
2149 },
2150
2151 {
2152 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002153 .name = "AT25F512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002154 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002155 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002156 .model_id = ATMEL_AT25F512B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002157 .total_size = 64,
2158 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00002159 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2160 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002161 .tested = TEST_UNTESTED,
2162 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002163 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002164 .block_erasers =
2165 {
2166 {
2167 .eraseblocks = { {4 * 1024, 16} },
2168 .block_erase = spi_block_erase_20,
2169 }, {
2170 .eraseblocks = { {32 * 1024, 2} },
2171 .block_erase = spi_block_erase_52,
2172 }, {
2173 .eraseblocks = { {32 * 1024, 2} },
2174 .block_erase = spi_block_erase_d8,
2175 }, {
2176 .eraseblocks = { {64 * 1024, 1} },
2177 .block_erase = spi_block_erase_60,
2178 }, {
2179 .eraseblocks = { {64 * 1024, 1} },
2180 .block_erase = spi_block_erase_c7,
Stefan Tauner3c0fcd02012-09-21 12:46:56 +00002181 }, {
2182 .eraseblocks = { {64 * 1024, 1} },
2183 .block_erase = spi_block_erase_62,
Sean Nelson89187292009-12-23 12:02:55 +00002184 }
2185 },
Stefan Tauner7bf4ed92012-08-26 21:04:27 +00002186 .printlock = spi_prettyprint_status_register_at25f512b,
2187 .unlock = spi_disable_blockprotect_at25f512b,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002188 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002189 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002190 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002191 },
2192
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002193 {
2194 .vendor = "Atmel",
2195 .name = "AT25FS010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002196 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002197 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002198 .model_id = ATMEL_AT25FS010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002199 .total_size = 128,
2200 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002201 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00002202 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002203 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002204 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002205 .block_erasers =
2206 {
2207 {
2208 .eraseblocks = { {4 * 1024, 32} },
2209 .block_erase = spi_block_erase_20,
2210 }, {
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00002211 .eraseblocks = { {4 * 1024, 32} },
2212 .block_erase = spi_block_erase_d7,
2213 }, {
Sean Nelson89187292009-12-23 12:02:55 +00002214 .eraseblocks = { {32 * 1024, 4} },
2215 .block_erase = spi_block_erase_52,
2216 }, {
2217 .eraseblocks = { {32 * 1024, 4} },
2218 .block_erase = spi_block_erase_d8,
2219 }, {
2220 .eraseblocks = { {128 * 1024, 1} },
2221 .block_erase = spi_block_erase_60,
2222 }, {
2223 .eraseblocks = { {128 * 1024, 1} },
2224 .block_erase = spi_block_erase_c7,
2225 }
2226 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00002227 .printlock = spi_prettyprint_status_register_at25fs010,
2228 .unlock = spi_disable_blockprotect_at25fs010,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002229 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002230 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002231 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002232 },
2233
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002234 {
2235 .vendor = "Atmel",
2236 .name = "AT25FS040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002237 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002238 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002239 .model_id = ATMEL_AT25FS040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002240 .total_size = 512,
2241 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002242 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002243 .tested = TEST_UNTESTED,
2244 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002245 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002246 .block_erasers =
2247 {
2248 {
2249 .eraseblocks = { {4 * 1024, 128} },
2250 .block_erase = spi_block_erase_20,
2251 }, {
2252 .eraseblocks = { {64 * 1024, 8} },
2253 .block_erase = spi_block_erase_52,
2254 }, {
2255 .eraseblocks = { {64 * 1024, 8} },
2256 .block_erase = spi_block_erase_d8,
2257 }, {
2258 .eraseblocks = { {512 * 1024, 1} },
2259 .block_erase = spi_block_erase_60,
2260 }, {
2261 .eraseblocks = { {512 * 1024, 1} },
2262 .block_erase = spi_block_erase_c7,
2263 }
2264 },
Carl-Daniel Hailfingerfd7075a2010-07-29 13:09:18 +00002265 .printlock = spi_prettyprint_status_register_at25fs040,
2266 .unlock = spi_disable_blockprotect_at25fs040,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002267 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002268 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002269 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002270 },
2271
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002272 {
2273 .vendor = "Atmel",
jvma3ab6c62018-03-08 15:43:20 +01002274 .name = "AT25SF041",
2275 .bustype = BUS_SPI,
2276 .manufacture_id = ATMEL_ID,
2277 .model_id = ATMEL_AT25SF041,
2278 .total_size = 512,
2279 .page_size = 256,
2280 .feature_bits = FEATURE_WRSR_WREN,
2281 .tested = TEST_OK_PREW,
2282 .probe = probe_spi_rdid,
2283 .probe_timing = TIMING_ZERO,
2284 .block_erasers =
2285 {
2286 {
2287 .eraseblocks = { {4 * 1024, 128} },
2288 .block_erase = spi_block_erase_20,
2289 }, {
2290 .eraseblocks = { {32 * 1024, 16} },
2291 .block_erase = spi_block_erase_52,
2292 }, {
2293 .eraseblocks = { {64 * 1024, 8} },
2294 .block_erase = spi_block_erase_d8,
2295 }, {
2296 .eraseblocks = { {512 * 1024, 1} },
2297 .block_erase = spi_block_erase_60,
2298 }, {
2299 .eraseblocks = { {512 * 1024, 1} },
2300 .block_erase = spi_block_erase_c7,
2301 }
2302 },
2303 .printlock = spi_prettyprint_status_register_plain,
2304 .unlock = spi_disable_blockprotect,
2305 .write = spi_chip_write_256,
2306 .read = spi_chip_read,
2307 .voltage = {2500, 3600},
2308 },
2309
2310 {
2311 .vendor = "Atmel",
Evan Jensen291c1012018-05-17 14:30:19 -07002312 .name = "AT25SF081",
2313 .bustype = BUS_SPI,
2314 .manufacture_id = ATMEL_ID,
2315 .model_id = ATMEL_AT25SF081,
2316 .total_size = 1024,
2317 .page_size = 256,
2318 .feature_bits = FEATURE_WRSR_WREN,
2319 .tested = TEST_OK_PREW,
2320 .probe = probe_spi_rdid,
2321 .probe_timing = TIMING_ZERO,
2322 .block_erasers =
2323 {
2324 {
2325 .eraseblocks = { {4 * 1024, 256} },
2326 .block_erase = spi_block_erase_20,
2327 }, {
2328 .eraseblocks = { {32 * 1024, 32} },
2329 .block_erase = spi_block_erase_52,
2330 }, {
2331 .eraseblocks = { {64 * 1024, 16} },
2332 .block_erase = spi_block_erase_d8,
2333 }, {
2334 .eraseblocks = { {1024 * 1024, 1} },
2335 .block_erase = spi_block_erase_60,
2336 }, {
2337 .eraseblocks = { {1024 * 1024, 1} },
2338 .block_erase = spi_block_erase_c7,
2339 }
2340 },
2341 .printlock = spi_prettyprint_status_register_plain,
2342 .unlock = spi_disable_blockprotect,
2343 .write = spi_chip_write_256,
2344 .read = spi_chip_read,
2345 .voltage = {2300, 3600},
2346 },
2347
2348 {
2349 .vendor = "Atmel",
Stanislav Sedovf5775442018-03-07 14:16:51 -08002350 .name = "AT25SF161",
2351 .bustype = BUS_SPI,
2352 .manufacture_id = ATMEL_ID,
2353 .model_id = ATMEL_AT25SF161,
2354 .total_size = 2048,
2355 .page_size = 256,
2356 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
2357 .tested = TEST_OK_PREW,
2358 .probe = probe_spi_rdid,
2359 .probe_timing = TIMING_ZERO,
2360 .block_erasers =
2361 {
2362 {
2363 .eraseblocks = { {4 * 1024, 512} },
2364 .block_erase = spi_block_erase_20,
2365 }, {
2366 .eraseblocks = { {32 * 1024, 64} },
2367 .block_erase = spi_block_erase_52,
2368 }, {
2369 .eraseblocks = { {64 * 1024, 32} },
2370 .block_erase = spi_block_erase_d8,
2371 }, {
2372 .eraseblocks = { {2048 * 1024, 1} },
2373 .block_erase = spi_block_erase_60,
2374 }, {
2375 .eraseblocks = { {2048 * 1024, 1} },
2376 .block_erase = spi_block_erase_c7,
2377 }
2378 },
2379 .printlock = spi_prettyprint_status_register_plain,
2380 .unlock = spi_disable_blockprotect,
2381 .write = spi_chip_write_256,
2382 .read = spi_chip_read,
2383 .voltage = {2500, 3600},
2384 },
2385
2386 {
Alan Green57938f82019-06-27 15:06:43 +10002387 .vendor = "Atmel",
darkarnium41394382019-11-04 20:06:48 +00002388 .name = "AT25SF321",
2389 .bustype = BUS_SPI,
2390 .manufacture_id = ATMEL_ID,
2391 .model_id = ATMEL_AT25SF321,
2392 .total_size = 4096,
2393 .page_size = 256,
2394 .feature_bits = FEATURE_WRSR_WREN,
2395 .tested = TEST_OK_PR,
2396 .probe = probe_spi_rdid,
2397 .probe_timing = TIMING_ZERO,
2398 .block_erasers =
2399 {
2400 {
2401 .eraseblocks = { {4 * 1024, 1024} },
2402 .block_erase = spi_block_erase_20,
2403 }, {
2404 .eraseblocks = { {32 * 1024, 128} },
2405 .block_erase = spi_block_erase_52,
2406 }, {
2407 .eraseblocks = { {64 * 1024, 64} },
2408 .block_erase = spi_block_erase_d8,
2409 }, {
2410 .eraseblocks = { {4096 * 1024, 1} },
2411 .block_erase = spi_block_erase_60,
2412 }, {
2413 .eraseblocks = { {4096 * 1024, 1} },
2414 .block_erase = spi_block_erase_c7,
2415 }
2416 },
2417 .printlock = spi_prettyprint_status_register_plain,
2418 .unlock = spi_disable_blockprotect,
2419 .write = spi_chip_write_256,
2420 .read = spi_chip_read,
2421 .voltage = {2500, 3600},
2422 },
2423
2424 {
2425 .vendor = "Atmel",
Hal Martin49e23d22018-05-27 14:18:43 +02002426 .name = "AT25SL128A",
2427 .bustype = BUS_SPI,
2428 .manufacture_id = ATMEL_ID,
2429 .model_id = ATMEL_AT25SL128A,
2430 .total_size = 16384,
2431 .page_size = 256,
2432 /* supports SFDP */
Nico Huber1412d9f2024-01-06 18:25:49 +01002433 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_OTP | FEATURE_QPI_SRP,
2434 .dummy_cycles = { .qpi_read_params = { 4, 4, 6, 8 } },
Hal Martin49e23d22018-05-27 14:18:43 +02002435 .tested = TEST_OK_PREW,
2436 .probe = probe_spi_rdid,
2437 .probe_timing = TIMING_ZERO,
2438 .block_erasers =
2439 {
2440 {
2441 .eraseblocks = { {4 * 1024, 4096} },
2442 .block_erase = spi_block_erase_20,
2443 }, {
2444 .eraseblocks = { {32 * 1024, 512} },
2445 .block_erase = spi_block_erase_52,
2446 }, {
2447 .eraseblocks = { {64 * 1024, 256} },
2448 .block_erase = spi_block_erase_d8,
2449 }, {
2450 .eraseblocks = { {16 * 1024 * 1024, 1} },
2451 .block_erase = spi_block_erase_60,
2452 }, {
2453 .eraseblocks = { {16 * 1024 * 1024, 1} },
2454 .block_erase = spi_block_erase_c7,
2455 }
2456 },
2457 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
2458 .unlock = spi_disable_blockprotect,
2459 .write = spi_chip_write_256,
2460 .read = spi_chip_read,
2461 .voltage = {1700, 2000},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +11002462 .reg_bits =
2463 {
2464 .srp = {STATUS1, 7, RW},
2465 .srl = {STATUS2, 0, RW},
2466 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
2467 .tb = {STATUS1, 5, RW},
2468 .sec = {STATUS1, 6, RW},
2469 .cmp = {STATUS2, 6, RW},
2470 },
Nico Huberaabb3e02023-01-13 00:22:30 +01002471 .wp_write_cfg = spi_wp_write_cfg,
2472 .wp_read_cfg = spi_wp_read_cfg,
2473 .wp_get_ranges = spi_wp_get_available_ranges,
Nikolai Artemievd32e18b2022-02-15 18:06:55 +11002474 .decode_range = decode_range_spi25,
Hal Martin49e23d22018-05-27 14:18:43 +02002475 },
2476
2477 {
Stanislav Sedovf5775442018-03-07 14:16:51 -08002478 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002479 .name = "AT26DF041",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002480 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002481 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002482 .model_id = ATMEL_AT26DF041,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002483 .total_size = 512,
2484 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002485 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner94b39b42012-10-27 00:06:02 +00002486 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002487 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002488 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002489 .block_erasers =
2490 {
2491 {
Stefan Tauner94b39b42012-10-27 00:06:02 +00002492 .eraseblocks = { {256, 2048} },
2493 .block_erase = spi_block_erase_81,
2494 }, {
2495 .eraseblocks = { {2 * 1024, 256} },
2496 .block_erase = spi_block_erase_50,
2497 }, {
Sean Nelson89187292009-12-23 12:02:55 +00002498 .eraseblocks = { {4 * 1024, 128} },
2499 .block_erase = spi_block_erase_20,
2500 }
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002501 },
Stefan Taunercecb2c52013-06-20 22:55:41 +00002502 .printlock = spi_prettyprint_status_register_plain,
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002503 /* Supports also an incompatible page write (of exactly 256 B) and an auto-erasing write. */
Stefan Tauner94b39b42012-10-27 00:06:02 +00002504 .write = spi_chip_write_1,
2505 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002506 .voltage = {2700, 3600}, /* 3.0-3.6V for higher speed, 2.7-3.6V normal */
FENG yu ningff692fb2008-12-08 18:15:10 +00002507 },
2508
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002509 {
2510 .vendor = "Atmel",
2511 .name = "AT26DF081A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002512 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002513 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002514 .model_id = ATMEL_AT26DF081A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002515 .total_size = 1024,
2516 .page_size = 256,
Mathias Krause2c3afa32011-01-17 07:45:54 +00002517 .feature_bits = FEATURE_WRSR_WREN,
2518 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002519 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002520 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002521 .block_erasers =
2522 {
2523 {
2524 .eraseblocks = { {4 * 1024, 256} },
2525 .block_erase = spi_block_erase_20,
2526 }, {
2527 .eraseblocks = { {32 * 1024, 32} },
2528 .block_erase = spi_block_erase_52,
2529 }, {
2530 .eraseblocks = { {64 * 1024, 16} },
2531 .block_erase = spi_block_erase_d8,
2532 }, {
2533 .eraseblocks = { {1024 * 1024, 1} },
2534 .block_erase = spi_block_erase_60,
2535 }, {
2536 .eraseblocks = { {1024 * 1024, 1} },
2537 .block_erase = spi_block_erase_c7,
2538 }
2539 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002540 .printlock = spi_prettyprint_status_register_at26df081a,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002541 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002542 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002543 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002544 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002545 },
2546
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002547 {
2548 .vendor = "Atmel",
2549 .name = "AT26DF161",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002550 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002551 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002552 .model_id = ATMEL_AT26DF161,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002553 .total_size = 2048,
2554 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002555 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +00002556 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002557 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002558 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002559 .block_erasers =
2560 {
2561 {
2562 .eraseblocks = { {4 * 1024, 512} },
2563 .block_erase = spi_block_erase_20,
2564 }, {
2565 .eraseblocks = { {32 * 1024, 64} },
2566 .block_erase = spi_block_erase_52,
2567 }, {
2568 .eraseblocks = { {64 * 1024, 32} },
2569 .block_erase = spi_block_erase_d8,
2570 }, {
2571 .eraseblocks = { {2 * 1024 * 1024, 1} },
2572 .block_erase = spi_block_erase_60,
2573 }, {
2574 .eraseblocks = { {2 * 1024 * 1024, 1} },
2575 .block_erase = spi_block_erase_c7,
2576 }
2577 },
Carl-Daniel Hailfinger7a3bd8f2011-05-19 00:06:06 +00002578 .printlock = spi_prettyprint_status_register_at25df,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002579 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002580 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002581 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002582 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002583 },
2584
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002585 {
2586 .vendor = "Atmel",
2587 .name = "AT26DF161A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002588 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002589 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002590 .model_id = ATMEL_AT26DF161A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002591 .total_size = 2048,
2592 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002593 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002594 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002595 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002596 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002597 .block_erasers =
2598 {
2599 {
2600 .eraseblocks = { {4 * 1024, 512} },
2601 .block_erase = spi_block_erase_20,
2602 }, {
2603 .eraseblocks = { {32 * 1024, 64} },
2604 .block_erase = spi_block_erase_52,
2605 }, {
2606 .eraseblocks = { {64 * 1024, 32} },
2607 .block_erase = spi_block_erase_d8,
2608 }, {
2609 .eraseblocks = { {2 * 1024 * 1024, 1} },
2610 .block_erase = spi_block_erase_60,
2611 }, {
2612 .eraseblocks = { {2 * 1024 * 1024, 1} },
2613 .block_erase = spi_block_erase_c7,
2614 }
2615 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002616 .printlock = spi_prettyprint_status_register_at26df081a,
Stefan Taunercecb2c52013-06-20 22:55:41 +00002617 .unlock = spi_disable_blockprotect_at2x_global_unprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00002618 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002619 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002620 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002621 },
2622
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002623 {
2624 .vendor = "Atmel",
2625 .name = "AT26F004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002626 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002627 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002628 .model_id = ATMEL_AT26F004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002629 .total_size = 512,
2630 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00002631 .feature_bits = FEATURE_WRSR_WREN,
Alan Green908adf42019-07-03 15:34:06 +10002632 .tested = {.probe = NT, .read = NT, .erase = NT, .write = BAD},
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002633 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002634 .probe_timing = TIMING_ZERO,
Sean Nelson89187292009-12-23 12:02:55 +00002635 .block_erasers =
2636 {
2637 {
2638 .eraseblocks = { {4 * 1024, 128} },
2639 .block_erase = spi_block_erase_20,
2640 }, {
2641 .eraseblocks = { {32 * 1024, 16} },
2642 .block_erase = spi_block_erase_52,
2643 }, {
2644 .eraseblocks = { {64 * 1024, 8} },
2645 .block_erase = spi_block_erase_d8,
2646 }, {
2647 .eraseblocks = { {512 * 1024, 1} },
2648 .block_erase = spi_block_erase_60,
2649 }, {
2650 .eraseblocks = { {512 * 1024, 1} },
2651 .block_erase = spi_block_erase_c7,
2652 }
2653 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00002654 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Alan Greencbb85c02019-06-25 13:42:34 +10002655 .write = NULL, /* Incompatible Page write */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002656 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002657 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00002658 },
2659
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002660 {
2661 .vendor = "Atmel",
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002662 .name = "AT29C010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002663 .bustype = BUS_PARALLEL,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002664 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002665 .model_id = ATMEL_AT29C010A,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002666 .total_size = 128,
2667 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +00002668 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00002669 .tested = TEST_OK_PRE,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002670 .probe = probe_jedec,
Maciej Pijankac6e11112009-06-03 14:46:22 +00002671 .probe_timing = 10000, /* 10mS, Enter=Exec */
Sean Nelson89187292009-12-23 12:02:55 +00002672 .block_erasers =
2673 {
2674 {
2675 .eraseblocks = { {128 * 1024, 1} },
2676 .block_erase = erase_chip_block_jedec,
2677 }
2678 },
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002679 .write = write_jedec, /* FIXME */
2680 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002681 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +01002682 .prepare_access = prepare_memory_access,
2683 .finish_access = finish_memory_access,
Uwe Hermann8403ccb2009-05-16 21:39:19 +00002684 },
2685
2686 {
2687 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002688 .name = "AT29C020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002689 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002690 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002691 .model_id = ATMEL_AT29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002692 .total_size = 256,
2693 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002694 .feature_bits = FEATURE_LONG_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00002695 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002696 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +00002697 .probe_timing = 10000, /* 10ms */
Sean Nelson89187292009-12-23 12:02:55 +00002698 .block_erasers =
2699 {
2700 {
2701 .eraseblocks = { {256 * 1024, 1} },
2702 .block_erase = erase_chip_block_jedec,
2703 }
2704 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002705 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002706 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002707 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +01002708 .prepare_access = prepare_memory_access,
2709 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +00002710 },
2711
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002712 {
2713 .vendor = "Atmel",
2714 .name = "AT29C040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002715 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002716 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002717 .model_id = ATMEL_AT29C040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002718 .total_size = 512,
2719 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00002720 .feature_bits = FEATURE_LONG_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002721 .tested = TEST_UNTESTED,
2722 .probe = probe_jedec,
Mateusz Murawski8b2f46b2009-06-12 21:29:36 +00002723 .probe_timing = 10000, /* 10 ms */
Sean Nelson89187292009-12-23 12:02:55 +00002724 .block_erasers =
2725 {
2726 {
2727 .eraseblocks = { {512 * 1024, 1} },
2728 .block_erase = erase_chip_block_jedec,
2729 }
2730 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002731 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00002732 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002733 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +01002734 .prepare_access = prepare_memory_access,
2735 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +00002736 },
2737
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002738 {
2739 .vendor = "Atmel",
Alan Green1f9cc7d2019-07-01 11:10:45 +10002740 .name = "AT29C512",
2741 .bustype = BUS_PARALLEL,
2742 .manufacture_id = ATMEL_ID,
2743 .model_id = ATMEL_AT29C512,
2744 .total_size = 64,
2745 .page_size = 128,
2746 .feature_bits = FEATURE_LONG_RESET,
2747 .tested = TEST_OK_PREW,
2748 .probe = probe_jedec,
2749 .probe_timing = 10000, /* 10mS, Enter=Exec */
2750 .block_erasers =
2751 {
2752 {
2753 .eraseblocks = { {64 * 1024, 1} },
2754 .block_erase = erase_chip_block_jedec,
2755 }
2756 },
2757 .write = write_jedec,
2758 .read = read_memmapped,
2759 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +01002760 .prepare_access = prepare_memory_access,
2761 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +10002762 },
2763
2764 {
2765 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002766 .name = "AT45CS1282",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002767 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002768 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002769 .model_id = ATMEL_AT45CS1282,
Alan Greencbb85c02019-06-25 13:42:34 +10002770 .total_size = 16896, /* No power of two sizes */
2771 .page_size = 1056, /* No power of two sizes */
Steven Zakulec3603a282012-05-02 20:07:57 +00002772 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Tauner1dd5d3a2013-08-27 18:02:19 +00002773 /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */
2774 .feature_bits = FEATURE_OTP,
2775 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002776 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002777 .probe_timing = TIMING_ZERO,
Stefan Tauner1dd5d3a2013-08-27 18:02:19 +00002778 .block_erasers =
2779 {
2780 {
2781 .eraseblocks = {
2782 {8 * 1056, 1}, /* sector 0a: opcode 50h */
2783 {248 * 1056, 1}, /* sector 0b: opcode 7Ch */
2784 {256 * 1056, 63}, /* sectors 1 - 63: opcode 7Ch */
2785 },
2786 .block_erase = spi_erase_at45cs_sector,
2787 }
2788 },
2789 .printlock = spi_prettyprint_status_register_plain,
Stefan Tauner1dd5d3a2013-08-27 18:02:19 +00002790 .write = spi_write_at45db,
2791 .read = spi_read_at45db,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002792 .voltage = {2700, 3600},
Alan Greenc1863ca2019-06-27 15:08:03 +10002793 .gran = write_gran_1056bytes,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002794 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002795
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002796 {
2797 .vendor = "Atmel",
2798 .name = "AT45DB011D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002799 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002800 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002801 .model_id = ATMEL_AT45DB011D,
Alan Greencbb85c02019-06-25 13:42:34 +10002802 .total_size = 128, /* or 132, determined from status register */
2803 .page_size = 256, /* or 264, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00002804 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002805 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2806 .feature_bits = FEATURE_OTP,
Stefan Tauner5c316f92015-02-08 21:57:52 +00002807 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002808 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002809 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002810 .block_erasers =
2811 {
2812 {
2813 .eraseblocks = { {256, 512} },
2814 .block_erase = spi_erase_at45db_page,
2815 }, {
2816 .eraseblocks = { {8 * 256, 512/8} },
2817 .block_erase = spi_erase_at45db_block,
2818 }, {
2819 .eraseblocks = {
2820 {8 * 256, 1},
2821 {120 * 256, 1},
2822 {128 * 256, 3},
2823 },
2824 .block_erase = spi_erase_at45db_sector
2825 }, {
2826 .eraseblocks = { {128 * 1024, 1} },
2827 .block_erase = spi_erase_at45db_chip,
2828 }
2829 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002830 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10002831 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002832 /* granularity will be set by the probing function. */
2833 .write = spi_write_at45db,
2834 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002835 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002836 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002837
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002838 {
2839 .vendor = "Atmel",
2840 .name = "AT45DB021D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002841 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002842 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002843 .model_id = ATMEL_AT45DB021D,
Alan Greencbb85c02019-06-25 13:42:34 +10002844 .total_size = 256, /* or 264, determined from status register */
2845 .page_size = 256, /* or 264, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00002846 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002847 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2848 .feature_bits = FEATURE_OTP,
Stefan Tauner6697f712014-08-06 15:09:15 +00002849 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002850 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002851 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002852 .block_erasers =
2853 {
2854 {
2855 .eraseblocks = { {256, 1024} },
2856 .block_erase = spi_erase_at45db_page,
2857 }, {
2858 .eraseblocks = { {8 * 256, 1024/8} },
2859 .block_erase = spi_erase_at45db_block,
2860 }, {
2861 .eraseblocks = {
2862 {8 * 256, 1},
2863 {120 * 256, 1},
2864 {128 * 256, 7},
2865 },
2866 .block_erase = spi_erase_at45db_sector
2867 }, {
2868 .eraseblocks = { {256 * 1024, 1} },
2869 .block_erase = spi_erase_at45db_chip,
2870 }
2871 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002872 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10002873 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002874 /* granularity will be set by the probing function. */
2875 .write = spi_write_at45db,
2876 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00002877 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002878 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002879
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002880 {
2881 .vendor = "Atmel",
2882 .name = "AT45DB041D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002883 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002884 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002885 .model_id = ATMEL_AT45DB041D,
Alan Greencbb85c02019-06-25 13:42:34 +10002886 .total_size = 512, /* or 528, determined from status register */
2887 .page_size = 256, /* or 264, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00002888 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002889 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2890 .feature_bits = FEATURE_OTP,
2891 .tested = TEST_OK_PREW,
2892 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002893 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002894 .block_erasers =
2895 {
2896 {
2897 .eraseblocks = { {256, 2048} },
2898 .block_erase = spi_erase_at45db_page,
2899 }, {
2900 .eraseblocks = { {8 * 256, 2048/8} },
2901 .block_erase = spi_erase_at45db_block,
2902 }, {
2903 .eraseblocks = {
2904 {8 * 256, 1},
2905 {248 * 256, 1},
2906 {256 * 256, 7},
2907 },
2908 .block_erase = spi_erase_at45db_sector
2909 }, {
2910 .eraseblocks = { {512 * 1024, 1} },
2911 .block_erase = spi_erase_at45db_chip,
2912 }
2913 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002914 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10002915 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002916 /* granularity will be set by the probing function. */
2917 .write = spi_write_at45db,
2918 .read = spi_read_at45db, /* Fast read (0x0B) supported */
2919 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002920 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002921
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002922 {
2923 .vendor = "Atmel",
2924 .name = "AT45DB081D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002925 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002926 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002927 .model_id = ATMEL_AT45DB081D,
Alan Greencbb85c02019-06-25 13:42:34 +10002928 .total_size = 1024, /* or 1056, determined from status register */
2929 .page_size = 256, /* or 264, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00002930 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002931 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2932 .feature_bits = FEATURE_OTP,
Angel Pons250aeba2018-09-30 20:28:22 +02002933 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002934 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002935 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002936 .block_erasers =
2937 {
2938 {
2939 .eraseblocks = { {256, 4096} },
2940 .block_erase = spi_erase_at45db_page,
2941 }, {
2942 .eraseblocks = { {8 * 256, 4096/8} },
2943 .block_erase = spi_erase_at45db_block,
2944 }, {
2945 .eraseblocks = {
2946 {8 * 256, 1},
2947 {248 * 256, 1},
2948 {256 * 256, 15},
2949 },
2950 .block_erase = spi_erase_at45db_sector
2951 }, {
2952 .eraseblocks = { {1024 * 1024, 1} },
2953 .block_erase = spi_erase_at45db_chip,
2954 }
2955 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002956 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10002957 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002958 /* granularity will be set by the probing function. */
2959 .write = spi_write_at45db,
2960 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00002961 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00002962 },
FENG yu ningff692fb2008-12-08 18:15:10 +00002963
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002964 {
2965 .vendor = "Atmel",
2966 .name = "AT45DB161D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00002967 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00002968 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00002969 .model_id = ATMEL_AT45DB161D,
Alan Greencbb85c02019-06-25 13:42:34 +10002970 .total_size = 2048, /* or 2112, determined from status register */
2971 .page_size = 512, /* or 528, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00002972 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002973 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
2974 .feature_bits = FEATURE_OTP,
2975 .tested = TEST_OK_PREW,
2976 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00002977 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002978 .block_erasers =
2979 {
2980 {
2981 .eraseblocks = { {512, 4096} },
2982 .block_erase = spi_erase_at45db_page,
2983 }, {
2984 .eraseblocks = { {8 * 512, 4096/8} },
2985 .block_erase = spi_erase_at45db_block,
2986 }, {
2987 .eraseblocks = {
2988 {8 * 512, 1},
2989 {248 * 512, 1},
2990 {256 * 512, 15},
2991 },
2992 .block_erase = spi_erase_at45db_sector
2993 }, {
2994 .eraseblocks = { {2048 * 1024, 1} },
2995 .block_erase = spi_erase_at45db_chip,
2996 }
2997 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00002998 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10002999 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003000 /* granularity will be set by the probing function. */
3001 .write = spi_write_at45db,
3002 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +00003003 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00003004 },
FENG yu ningff692fb2008-12-08 18:15:10 +00003005
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003006 {
3007 .vendor = "Atmel",
3008 .name = "AT45DB321C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003009 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003010 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003011 .model_id = ATMEL_AT45DB321C,
Alan Greencbb85c02019-06-25 13:42:34 +10003012 .total_size = 4224, /* No power of two sizes */
3013 .page_size = 528, /* No power of two sizes */
Steven Zakulec3603a282012-05-02 20:07:57 +00003014 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00003015 /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */
3016 .feature_bits = FEATURE_OTP,
3017 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003018 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003019 .probe_timing = TIMING_ZERO,
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00003020 .block_erasers =
3021 {
3022 {
3023 .eraseblocks = { {528, 8192} },
3024 .block_erase = spi_erase_at45db_page,
3025 }, {
3026 .eraseblocks = { {8 * 528, 8192/8} },
3027 .block_erase = spi_erase_at45db_block,
3028 }, /* Although the datasheets describes sectors (which can be write protected)
3029 * there seems to be no erase functions for them.
Stefan Tauner23e10b82016-01-23 16:16:49 +00003030 {
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00003031 .eraseblocks = {
3032 {8 * 528, 1},
3033 {120 * 528, 1},
3034 {128 * 528, 63},
3035 },
3036 .block_erase = spi_erase_at45db_sector
3037 }, */ {
3038 .eraseblocks = { {4224 * 1024, 1} },
3039 .block_erase = spi_erase_at45db_chip,
3040 }
3041 },
3042 .printlock = spi_prettyprint_status_register_at45db, /* Bit 0 is undefined, no lockdown */
Stefan Taunerfdc4f7e2013-08-27 18:02:12 +00003043 .write = spi_write_at45db,
3044 .read = spi_read_at45db_e8, /* 3 address and 4 dummy bytes */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003045 .voltage = {2700, 3600},
Alan Greenc1863ca2019-06-27 15:08:03 +10003046 .gran = write_gran_528bytes,
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00003047 },
FENG yu ningff692fb2008-12-08 18:15:10 +00003048
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003049 {
3050 .vendor = "Atmel",
3051 .name = "AT45DB321D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003052 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003053 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003054 .model_id = ATMEL_AT45DB321D,
Alan Greencbb85c02019-06-25 13:42:34 +10003055 .total_size = 4096, /* or 4224, determined from status register */
3056 .page_size = 512, /* or 528, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00003057 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003058 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
Daniel Lenski65922a32012-02-15 23:40:23 +00003059 .feature_bits = FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +00003060 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003061 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003062 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003063 .block_erasers =
3064 {
3065 {
3066 .eraseblocks = { {512, 8192} },
3067 .block_erase = spi_erase_at45db_page,
3068 }, {
3069 .eraseblocks = { {8 * 512, 8192/8} },
3070 .block_erase = spi_erase_at45db_block,
3071 }, {
3072 .eraseblocks = {
3073 {8 * 512, 1},
3074 {120 * 512, 1},
3075 {128 * 512, 63},
3076 },
3077 .block_erase = spi_erase_at45db_sector
3078 }, {
3079 .eraseblocks = { {4096 * 1024, 1} },
3080 .block_erase = spi_erase_at45db_chip,
3081 }
3082 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003083 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10003084 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003085 /* granularity will be set by the probing function. */
3086 .write = spi_write_at45db,
3087 .read = spi_read_at45db, /* Fast read (0x0B) supported */
3088 .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */
3089 },
3090
3091 {
3092 .vendor = "Atmel",
3093 .name = "AT45DB321E",
3094 .bustype = BUS_SPI,
3095 .manufacture_id = ATMEL_ID,
3096 .model_id = ATMEL_AT45DB321C,
Alan Greencbb85c02019-06-25 13:42:34 +10003097 .total_size = 4096, /* or 4224, determined from status register */
3098 .page_size = 512, /* or 528, determined from status register */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003099 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
3100 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
3101 .feature_bits = FEATURE_OTP,
3102 .tested = TEST_UNTESTED,
3103 .probe = probe_spi_at45db,
3104 .probe_timing = TIMING_ZERO,
3105 .block_erasers =
3106 {
3107 {
3108 .eraseblocks = { {512, 8192} },
3109 .block_erase = spi_erase_at45db_page,
3110 }, {
3111 .eraseblocks = { {8 * 512, 8192/8} },
3112 .block_erase = spi_erase_at45db_block,
3113 }, {
3114 .eraseblocks = {
3115 {8 * 512, 1},
3116 {120 * 512, 1},
3117 {128 * 512, 63},
3118 },
3119 .block_erase = spi_erase_at45db_sector
3120 }, {
3121 .eraseblocks = { {4096 * 1024, 1} },
3122 .block_erase = spi_erase_at45db_chip,
3123 }
3124 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003125 .printlock = spi_prettyprint_status_register_at45db, /* has a 2nd status register */
Alan Greenc1863ca2019-06-27 15:08:03 +10003126 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003127 /* granularity will be set by the probing function. */
3128 .write = spi_write_at45db,
3129 .read = spi_read_at45db, /* Fast read (0x0B) supported */
3130 .voltage = {2500, 3600}, /* 2.3-3.6V & 2.5-3.6V models available */
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00003131 },
FENG yu ningff692fb2008-12-08 18:15:10 +00003132
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003133 {
3134 .vendor = "Atmel",
3135 .name = "AT45DB642D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003136 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003137 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003138 .model_id = ATMEL_AT45DB642D,
Alan Greencbb85c02019-06-25 13:42:34 +10003139 .total_size = 8192, /* or 8448, determined from status register */
3140 .page_size = 1024, /* or 1056, determined from status register */
Steven Zakulec3603a282012-05-02 20:07:57 +00003141 /* does not support EWSR nor WREN and has no writable status register bits whatsoever */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003142 /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */
3143 .feature_bits = FEATURE_OTP,
Stefan Tauner5c316f92015-02-08 21:57:52 +00003144 .tested = TEST_OK_PREW,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003145 .probe = probe_spi_at45db,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00003146 .probe_timing = TIMING_ZERO,
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003147 .block_erasers =
3148 {
3149 {
3150 .eraseblocks = { {1024, 8192} },
3151 .block_erase = spi_erase_at45db_page,
3152 }, {
3153 .eraseblocks = { {8 * 1024, 8192/8} },
3154 .block_erase = spi_erase_at45db_block,
3155 }, {
3156 .eraseblocks = {
3157 {8 * 1024, 1},
3158 {248 * 1024, 1},
3159 {256 * 1024, 31},
3160 },
3161 .block_erase = spi_erase_at45db_sector
3162 }, {
3163 .eraseblocks = { {8192 * 1024, 1} },
3164 .block_erase = spi_erase_at45db_chip,
3165 }
3166 },
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003167 .printlock = spi_prettyprint_status_register_at45db,
Alan Greenc1863ca2019-06-27 15:08:03 +10003168 .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */
Aidan Thorntondb4e87d2013-08-27 18:01:53 +00003169 /* granularity will be set by the probing function. */
3170 .write = spi_write_at45db,
3171 .read = spi_read_at45db, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003172 .voltage = {2700, 3600},
Carl-Daniel Hailfinger66afb362009-03-19 12:18:13 +00003173 },
FENG yu ningff692fb2008-12-08 18:15:10 +00003174
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003175 {
3176 .vendor = "Atmel",
Alan Green1f9cc7d2019-07-01 11:10:45 +10003177 .name = "AT49(H)F010",
3178 .bustype = BUS_PARALLEL,
3179 .manufacture_id = ATMEL_ID,
3180 .model_id = ATMEL_AT49F010,
3181 .total_size = 128,
3182 .page_size = 0, /* unused */
3183 .feature_bits = FEATURE_EITHER_RESET,
3184 .tested = TEST_OK_PREW,
3185 .probe = probe_jedec,
3186 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3187 .block_erasers =
3188 {
3189 {
3190 .eraseblocks = { {128 * 1024, 1} },
3191 .block_erase = erase_chip_block_jedec,
3192 }
3193 },
3194 .printlock = printlock_at49f,
3195 .write = write_jedec_1,
3196 .read = read_memmapped,
3197 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +01003198 .prepare_access = prepare_memory_access,
3199 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +10003200 },
3201
3202 {
3203 .vendor = "Atmel",
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003204 .name = "AT49BV512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003205 .bustype = BUS_PARALLEL,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003206 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003207 .model_id = ATMEL_AT49BV512,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003208 .total_size = 64,
3209 .page_size = 64,
Sean Nelson35727f72010-01-28 23:55:12 +00003210 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +00003211 .tested = TEST_OK_PREW,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003212 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003213 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00003214 .block_erasers =
3215 {
3216 {
3217 .eraseblocks = { {64 * 1024, 1} },
3218 .block_erase = erase_chip_block_jedec,
3219 }
3220 },
Sean Nelson35727f72010-01-28 23:55:12 +00003221 .write = write_jedec_1,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003222 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003223 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +01003224 .prepare_access = prepare_memory_access,
3225 .finish_access = finish_memory_access,
Uwe Hermannb4dcb712009-05-13 11:36:06 +00003226 },
3227
3228 {
3229 .vendor = "Atmel",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003230 .name = "AT49F002(N)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003231 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003232 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003233 .model_id = ATMEL_AT49F002N,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003234 .total_size = 256,
3235 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00003236 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003237 .tested = TEST_UNTESTED,
3238 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003239 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00003240 .block_erasers =
3241 {
3242 {
3243 .eraseblocks = {
3244 {16 * 1024, 1},
3245 {8 * 1024, 2},
3246 {96 * 1024, 1},
3247 {128 * 1024, 1},
3248 },
3249 .block_erase = erase_sector_jedec,
3250 }, {
3251 .eraseblocks = { {256 * 1024, 1} },
3252 .block_erase = erase_chip_block_jedec,
3253 }
3254 },
Sean Nelson35727f72010-01-28 23:55:12 +00003255 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003256 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003257 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +01003258 .prepare_access = prepare_memory_access,
3259 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +00003260 },
3261
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003262 {
3263 .vendor = "Atmel",
3264 .name = "AT49F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003265 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003266 .manufacture_id = ATMEL_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003267 .model_id = ATMEL_AT49F002NT,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003268 .total_size = 256,
3269 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00003270 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00003271 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003272 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00003273 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson89187292009-12-23 12:02:55 +00003274 .block_erasers =
3275 {
3276 {
3277 .eraseblocks = {
3278 {128 * 1024, 1},
3279 {96 * 1024, 1},
3280 {8 * 1024, 2},
3281 {16 * 1024, 1},
3282 },
3283 .block_erase = erase_sector_jedec,
3284 }, {
3285 .eraseblocks = { {256 * 1024, 1} },
3286 .block_erase = erase_chip_block_jedec,
3287 }
3288 },
Sean Nelson35727f72010-01-28 23:55:12 +00003289 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00003290 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003291 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +01003292 .prepare_access = prepare_memory_access,
3293 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +00003294 },
3295
Daniel Lenskidf90d3a2010-07-22 11:44:38 +00003296 {
Uwe Hermannc74e9772011-09-08 19:55:18 +00003297 .vendor = "Atmel",
David Borgf5a30f62012-04-15 13:16:32 +00003298 .name = "AT49F020",
3299 .bustype = BUS_PARALLEL,
3300 .manufacture_id = ATMEL_ID,
3301 .model_id = ATMEL_AT49F020,
3302 .total_size = 256,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00003303 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00003304 .feature_bits = FEATURE_EITHER_RESET,
3305 .tested = TEST_OK_PRE,
3306 .probe = probe_jedec,
3307 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3308 .block_erasers =
3309 {
3310 {
3311 .eraseblocks = { {256 * 1024, 1} },
3312 .block_erase = erase_chip_block_jedec,
3313 }
3314 /* Chip features an optional permanent write protection
3315 * of the first 8 kB. The erase function is the same as
3316 * above, but 00000H to 01FFFH will not be erased.
3317 * FIXME: add another eraser when partial erasers are
3318 * supported.
3319 */
3320 },
3321 .printlock = printlock_at49f,
3322 .write = write_jedec_1,
3323 .read = read_memmapped,
3324 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +01003325 .prepare_access = prepare_memory_access,
3326 .finish_access = finish_memory_access,
David Borgf5a30f62012-04-15 13:16:32 +00003327 },
3328
3329 {
3330 .vendor = "Atmel",
3331 .name = "AT49F040",
3332 .bustype = BUS_PARALLEL,
3333 .manufacture_id = ATMEL_ID,
3334 .model_id = ATMEL_AT49F040,
3335 .total_size = 512,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00003336 .page_size = 0, /* unused */
David Borgf5a30f62012-04-15 13:16:32 +00003337 .feature_bits = FEATURE_EITHER_RESET,
3338 .tested = TEST_UNTESTED,
3339 .probe = probe_jedec,
3340 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3341 .block_erasers =
3342 {
3343 {
3344 .eraseblocks = { {512 * 1024, 1} },
3345 .block_erase = erase_chip_block_jedec,
3346 }
3347 /* Chip features an optional permanent write protection
3348 * of the first 16 kB. The erase function is the same as
3349 * above, but 00000H to 03FFFH will not be erased.
3350 * FIXME: add another eraser when partial erasers are
3351 * supported.
3352 */
3353 },
3354 .printlock = printlock_at49f,
3355 .write = write_jedec_1,
3356 .read = read_memmapped,
3357 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +01003358 .prepare_access = prepare_memory_access,
3359 .finish_access = finish_memory_access,
David Borgf5a30f62012-04-15 13:16:32 +00003360 },
3361
3362 {
3363 .vendor = "Atmel",
Andrew Morgan8dd97f92012-08-13 23:43:46 +00003364 .name = "AT49F080",
3365 .bustype = BUS_PARALLEL,
3366 .manufacture_id = ATMEL_ID,
3367 .model_id = ATMEL_AT49F080,
3368 .total_size = 1024,
3369 .page_size = 0, /* unused */
3370 .feature_bits = FEATURE_EITHER_RESET,
3371 .tested = TEST_UNTESTED,
3372 .probe = probe_jedec,
3373 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3374 .block_erasers =
3375 {
3376 {
3377 .eraseblocks = { {1024 * 1024, 1} },
3378 .block_erase = erase_chip_block_jedec,
3379 }
3380 /* Chip features an optional permanent write protection
3381 * of the first 16 kB. The erase function is the same as
3382 * above, but 00000H to 03FFFH will not be erased.
3383 * FIXME: add another eraser when partial erasers are
3384 * supported.
3385 */
3386 },
3387 .printlock = printlock_at49f,
3388 .write = write_jedec_1,
3389 .read = read_memmapped,
3390 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +01003391 .prepare_access = prepare_memory_access,
3392 .finish_access = finish_memory_access,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00003393 },
3394
3395 {
3396 /* 'top' version of AT49F080. equal in all aspects but the boot block address */
3397 .vendor = "Atmel",
3398 .name = "AT49F080T",
3399 .bustype = BUS_PARALLEL,
3400 .manufacture_id = ATMEL_ID,
3401 .model_id = ATMEL_AT49F080T,
3402 .total_size = 1024,
3403 .page_size = 0, /* unused */
3404 .feature_bits = FEATURE_EITHER_RESET,
3405 .tested = TEST_UNTESTED,
3406 .probe = probe_jedec,
3407 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3408 .block_erasers =
3409 {
3410 {
3411 .eraseblocks = { {1024 * 1024, 1} },
3412 .block_erase = erase_chip_block_jedec,
3413 }
3414 /* Chip features an optional permanent write protection
3415 * of the first 16 kB. The erase function is the same as
3416 * above, but FC000H to FFFFFH will not be erased.
3417 * FIXME: add another eraser when partial erasers are
3418 * supported.
3419 */
3420 },
3421 .printlock = printlock_at49f,
3422 .write = write_jedec_1,
3423 .read = read_memmapped,
3424 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +01003425 .prepare_access = prepare_memory_access,
3426 .finish_access = finish_memory_access,
Andrew Morgan8dd97f92012-08-13 23:43:46 +00003427 },
3428
3429 {
3430 .vendor = "Atmel",
Uwe Hermannc74e9772011-09-08 19:55:18 +00003431 .name = "AT49LH002",
3432 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
3433 .manufacture_id = ATMEL_ID,
3434 .model_id = ATMEL_AT49LH002,
3435 .total_size = 256,
3436 .page_size = 0, /* unused */
Uwe Hermannc74e9772011-09-08 19:55:18 +00003437 .tested = TEST_UNTESTED,
Stefan Tauner7de93932014-08-03 13:05:45 +00003438 .probe = probe_82802ab,
3439 .probe_timing = TIMING_ZERO,
Uwe Hermannc74e9772011-09-08 19:55:18 +00003440 .block_erasers =
3441 {
3442 {
3443 .eraseblocks = {
3444 {64 * 1024, 3},
3445 {32 * 1024, 1},
3446 {8 * 1024, 2},
3447 {16 * 1024, 1},
3448 },
Stefan Tauner7de93932014-08-03 13:05:45 +00003449 .block_erase = NULL, /* TODO: Implement. */
Uwe Hermannc74e9772011-09-08 19:55:18 +00003450 }, {
3451 .eraseblocks = {
3452 {64 * 1024, 4},
3453 },
Stefan Tauner7de93932014-08-03 13:05:45 +00003454 .block_erase = erase_block_82802ab,
3455 },
3456 },
3457 .printlock = printlock_regspace2_block_eraser_0,
3458 .unlock = unlock_regspace2_block_eraser_0,
3459 .write = write_82802ab,
3460 .read = read_memmapped,
3461 .voltage = {3000, 3600},
Nico Huberb1974022023-01-12 13:13:12 +01003462 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +01003463 .finish_access = finish_memory_access,
Stefan Tauner7de93932014-08-03 13:05:45 +00003464 },
3465
3466 {
3467 .vendor = "Atmel",
Stefan Tauner7de93932014-08-03 13:05:45 +00003468 .name = "AT49LH004",
3469 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
3470 .manufacture_id = ATMEL_ID,
3471 .model_id = ATMEL_AT49LH004,
3472 .total_size = 512,
3473 .page_size = 0, /* unused */
Stefan Tauner7de93932014-08-03 13:05:45 +00003474 .tested = TEST_UNTESTED,
3475 .probe = probe_82802ab,
3476 .probe_timing = TIMING_ZERO,
3477 .block_erasers =
3478 {
3479 {
3480 .eraseblocks = {
3481 {64 * 1024, 7},
3482 {32 * 1024, 1},
3483 {8 * 1024, 2},
3484 {16 * 1024, 1},
3485 },
3486 .block_erase = erase_block_82802ab,
3487 }, {
3488 .eraseblocks = {
3489 {64 * 1024, 8},
3490 },
Uwe Hermannc74e9772011-09-08 19:55:18 +00003491 .block_erase = NULL, /* TODO: Implement. */
3492 },
3493 },
Stefan Tauner7de93932014-08-03 13:05:45 +00003494 .printlock = printlock_regspace2_block_eraser_0,
3495 .unlock = unlock_regspace2_block_eraser_0,
Uwe Hermannc74e9772011-09-08 19:55:18 +00003496 .write = write_82802ab,
3497 .read = read_memmapped,
3498 .voltage = {3000, 3600},
Nico Huberb1974022023-01-12 13:13:12 +01003499 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +01003500 .finish_access = finish_memory_access,
Uwe Hermannc74e9772011-09-08 19:55:18 +00003501 },
3502
3503 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003504 .vendor = "Atmel",
3505 .name = "AT49LH00B4",
3506 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
3507 .manufacture_id = ATMEL_ID,
3508 .model_id = ATMEL_AT49LH00B4,
3509 .total_size = 512,
Andrew Morganca081462011-09-13 22:05:44 +00003510 .page_size = 0, /* unused */
Alan Green1f9cc7d2019-07-01 11:10:45 +10003511 .tested = TEST_UNTESTED,
3512 .probe = probe_82802ab,
Andrew Morganca081462011-09-13 22:05:44 +00003513 .probe_timing = TIMING_ZERO,
3514 .block_erasers =
3515 {
3516 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003517 .eraseblocks = {
3518 {8 * 1024, 2},
3519 {16 * 1024, 1},
3520 {32 * 1024, 1},
3521 {64 * 1024, 7},
3522 },
3523 .block_erase = NULL, /* TODO: Implement. */
3524 }, {
3525 .eraseblocks = {
3526 {64 * 1024, 8},
3527 },
3528 .block_erase = erase_block_82802ab,
Andrew Morganca081462011-09-13 22:05:44 +00003529 },
3530 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10003531 .printlock = printlock_regspace2_block_eraser_0,
3532 .unlock = unlock_regspace2_block_eraser_0,
3533 .write = write_82802ab,
Andrew Morganca081462011-09-13 22:05:44 +00003534 .read = read_memmapped,
Alan Green1f9cc7d2019-07-01 11:10:45 +10003535 .voltage = {3000, 3600},
Nico Huberb1974022023-01-12 13:13:12 +01003536 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +01003537 .finish_access = finish_memory_access,
Andrew Morganca081462011-09-13 22:05:44 +00003538 },
3539
3540 {
Angel Pons1ebda782021-04-20 21:39:11 +02003541 .vendor = "Boya/BoHong Microelectronics",
Christian Kudera475a7ee2021-04-20 22:50:01 +02003542 .name = "B.25D16A",
3543 .bustype = BUS_SPI,
3544 .manufacture_id = BOYA_BOHONG_ID,
3545 .model_id = BOYA_BOHONG_B_25D16A,
3546 .total_size = 2048,
3547 .page_size = 256,
3548 .feature_bits = FEATURE_WRSR_WREN,
3549 .tested = TEST_OK_PR,
3550 .probe = probe_spi_rdid,
3551 .probe_timing = TIMING_ZERO,
3552 .block_erasers =
3553 {
3554 {
3555 .eraseblocks = { {4 * 1024, 512} },
3556 .block_erase = spi_block_erase_20,
3557 }, {
3558 .eraseblocks = { {32 * 1024, 64} },
3559 .block_erase = spi_block_erase_52,
3560 }, {
3561 .eraseblocks = { {64 * 1024, 32} },
3562 .block_erase = spi_block_erase_d8,
3563 }, {
3564 .eraseblocks = { {2 * 1024 * 1024, 1} },
3565 .block_erase = spi_block_erase_60,
3566 }, {
3567 .eraseblocks = { {2 * 1024 * 1024, 1} },
3568 .block_erase = spi_block_erase_c7,
3569 }
3570 },
3571 .printlock = spi_prettyprint_status_register_bp2_srwd,
3572 .unlock = spi_disable_blockprotect_bp2_srwd,
3573 .write = spi_chip_write_256,
3574 .read = spi_chip_read,
3575 .voltage = {2700, 3600},
3576 },
3577
3578 {
3579 .vendor = "Boya/BoHong Microelectronics",
Angel Pons1ebda782021-04-20 21:39:11 +02003580 .name = "B.25Q128AS",
Jack Olsen73ae5ef2020-08-08 21:12:13 -05003581 .bustype = BUS_SPI,
Angel Pons1ebda782021-04-20 21:39:11 +02003582 .manufacture_id = BOYA_BOHONG_ID,
3583 .model_id = BOYA_BOHONG_B_25Q128AS,
Jack Olsen73ae5ef2020-08-08 21:12:13 -05003584 .total_size = 16384,
3585 .page_size = 256,
Nico Huber1412d9f2024-01-06 18:25:49 +01003586 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QIO,
Jack Olsen73ae5ef2020-08-08 21:12:13 -05003587 .tested = TEST_OK_PREW,
3588 .probe = probe_spi_rdid,
3589 .probe_timing = TIMING_ZERO,
3590 .block_erasers =
3591 {
3592 {
3593 .eraseblocks = { {4 * 1024, 4096} },
3594 .block_erase = spi_block_erase_20,
3595 }, {
3596 .eraseblocks = { {32 * 1024, 512} },
3597 .block_erase = spi_block_erase_52,
3598 }, {
3599 .eraseblocks = { {64 * 1024, 256} },
3600 .block_erase = spi_block_erase_d8,
3601 }, {
3602 .eraseblocks = { {16 * 1024 * 1024, 1} },
3603 .block_erase = spi_block_erase_60,
3604 }, {
3605 .eraseblocks = { {16 * 1024 * 1024, 1} },
3606 .block_erase = spi_block_erase_c7,
3607 }
3608 },
3609 .printlock = spi_prettyprint_status_register_plain,
3610 .unlock = spi_disable_blockprotect_at25fs040,
3611 .write = spi_chip_write_256,
3612 .read = spi_chip_read,
3613 .voltage = {2700, 3600},
3614 },
3615
3616 {
Joshua Roysf1324e02010-09-16 00:51:51 +00003617 .vendor = "Bright",
3618 .name = "BM29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003619 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00003620 .manufacture_id = BRIGHT_ID,
3621 .model_id = BRIGHT_BM29F040,
3622 .total_size = 512,
3623 .page_size = 64 * 1024,
3624 .feature_bits = FEATURE_EITHER_RESET,
3625 .tested = TEST_OK_PR,
3626 .probe = probe_jedec,
3627 .probe_timing = TIMING_ZERO,
3628 .block_erasers =
3629 {
3630 {
3631 .eraseblocks = { {64 * 1024, 8} },
3632 .block_erase = erase_sector_jedec,
3633 }, {
3634 .eraseblocks = { {512 * 1024, 1} },
3635 .block_erase = erase_chip_block_jedec,
3636 },
3637 },
3638 .write = write_jedec_1,
3639 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00003640 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +01003641 .prepare_access = prepare_memory_access,
3642 .finish_access = finish_memory_access,
Joshua Roysf1324e02010-09-16 00:51:51 +00003643 },
3644
3645 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003646 .vendor = "Catalyst",
3647 .name = "CAT28F512",
3648 .bustype = BUS_PARALLEL,
3649 .manufacture_id = CATALYST_ID,
3650 .model_id = CATALYST_CAT28F512,
3651 .total_size = 64,
3652 .page_size = 0, /* unused */
3653 .feature_bits = 0,
Alan Green908adf42019-07-03 15:34:06 +10003654 .tested = {.probe = OK, .read = OK, .erase = BAD, .write = BAD},
Alan Green1f9cc7d2019-07-01 11:10:45 +10003655 .probe = probe_jedec, /* FIXME! */
3656 .probe_timing = TIMING_ZERO,
3657 .block_erasers =
3658 {
3659 {
3660 .eraseblocks = { {64 * 1024, 1} },
3661 .block_erase = NULL, /* TODO */
3662 },
3663 },
3664 .write = NULL, /* TODO */
3665 .read = read_memmapped,
3666 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +01003667 .prepare_access = prepare_memory_access,
3668 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +10003669 },
3670
3671 {
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003672 .vendor = "ENE",
3673 .name = "KB9012 (EDI)",
3674 .bustype = BUS_SPI,
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003675 .total_size = 128,
3676 .page_size = 128,
3677 .feature_bits = FEATURE_ERASED_ZERO,
3678 .tested = TEST_OK_PREW,
Alan Greenc1863ca2019-06-27 15:08:03 +10003679 .spi_cmd_set = SPI_EDI,
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003680 .probe = edi_probe_kb9012,
3681 .probe_timing = TIMING_ZERO,
3682 .block_erasers =
3683 {
3684 {
3685 .eraseblocks = { {128, 1024} },
3686 .block_erase = edi_chip_block_erase,
3687 },
3688 },
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003689 .write = edi_chip_write,
3690 .read = edi_chip_read,
3691 .voltage = {2700, 3600},
Alan Greenc1863ca2019-06-27 15:08:03 +10003692 .gran = write_gran_128bytes,
Paul Kocialkowski80ae14e2018-01-15 01:07:46 +03003693 },
3694
3695 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003696 .vendor = "ESI",
3697 .name = "ES25P16",
3698 .bustype = BUS_SPI,
3699 .manufacture_id = EXCEL_ID_NOPREFIX,
3700 .model_id = EXCEL_ES25P16,
3701 .total_size = 2 * 1024,
3702 .page_size = 256,
3703 /* 256-byte parameter page separate from memory array:
3704 * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
3705 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003706 .tested = TEST_UNTESTED,
Alan Green1f9cc7d2019-07-01 11:10:45 +10003707 .probe = probe_spi_rdid,
3708 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003709 .block_erasers =
3710 {
3711 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003712 .eraseblocks = { {64 * 1024, 32} },
3713 .block_erase = spi_block_erase_d8,
Sean Nelson54596372010-01-09 05:30:14 +00003714 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003715 .eraseblocks = { {2 * 1024 * 1024, 1} },
3716 .block_erase = spi_block_erase_c7,
Sean Nelson54596372010-01-09 05:30:14 +00003717 }
3718 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10003719 .printlock = spi_prettyprint_status_register_bp2_srwd,
3720 .unlock = spi_disable_blockprotect_bp2_srwd,
3721 .write = spi_chip_write_256,
3722 .read = spi_chip_read, /* Fast Read (0x0B) supported */
3723 .voltage = {2700, 3600},
3724 },
3725
3726 {
3727 .vendor = "ESI",
3728 .name = "ES25P40",
3729 .bustype = BUS_SPI,
3730 .manufacture_id = EXCEL_ID_NOPREFIX,
3731 .model_id = EXCEL_ES25P40,
3732 .total_size = 512,
3733 .page_size = 256,
3734 /* 256-byte parameter page separate from memory array:
3735 * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
3736 .feature_bits = FEATURE_WRSR_WREN,
3737 .tested = TEST_UNTESTED,
3738 .probe = probe_spi_rdid,
3739 .probe_timing = TIMING_ZERO,
3740 .block_erasers =
3741 {
3742 {
3743 .eraseblocks = { {64 * 1024, 8} },
3744 .block_erase = spi_block_erase_d8,
3745 }, {
3746 .eraseblocks = { {512 * 1024, 1} },
3747 .block_erase = spi_block_erase_c7,
3748 }
3749 },
3750 .printlock = spi_prettyprint_status_register_bp2_srwd,
3751 .unlock = spi_disable_blockprotect_bp2_srwd,
3752 .write = spi_chip_write_256,
3753 .read = spi_chip_read, /* Fast Read (0x0B) supported */
3754 .voltage = {2700, 3600},
3755 },
3756
3757 {
3758 .vendor = "ESI",
3759 .name = "ES25P80",
3760 .bustype = BUS_SPI,
3761 .manufacture_id = EXCEL_ID_NOPREFIX,
3762 .model_id = EXCEL_ES25P80,
3763 .total_size = 1024,
3764 .page_size = 256,
3765 /* 256-byte parameter page separate from memory array:
3766 * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
3767 .feature_bits = FEATURE_WRSR_WREN,
3768 .tested = TEST_UNTESTED,
3769 .probe = probe_spi_rdid,
3770 .probe_timing = TIMING_ZERO,
3771 .block_erasers =
3772 {
3773 {
3774 .eraseblocks = { {64 * 1024, 16} },
3775 .block_erase = spi_block_erase_d8,
3776 }, {
3777 .eraseblocks = { {1024 * 1024, 1} },
3778 .block_erase = spi_block_erase_c7,
3779 }
3780 },
3781 .printlock = spi_prettyprint_status_register_bp2_srwd,
3782 .unlock = spi_disable_blockprotect_bp2_srwd,
3783 .write = spi_chip_write_256,
3784 .read = spi_chip_read, /* Fast Read (0x0B) supported */
3785 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00003786 },
3787
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00003788 {
Stefan Tauner352e50b2013-02-22 15:58:45 +00003789 .vendor = "ESMT",
Michael Karcher80a59ea2010-06-19 22:06:35 +00003790 .name = "F25L008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003791 .bustype = BUS_SPI,
Stefan Tauner352e50b2013-02-22 15:58:45 +00003792 .manufacture_id = ESMT_ID,
3793 .model_id = ESMT_F25L008A,
Michael Karcher80a59ea2010-06-19 22:06:35 +00003794 .total_size = 1024,
3795 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003796 .feature_bits = FEATURE_WRSR_EITHER,
Stefan Taunereb582572012-09-21 12:52:50 +00003797 .tested = TEST_OK_PREW,
Michael Karcher80a59ea2010-06-19 22:06:35 +00003798 .probe = probe_spi_rdid,
3799 .probe_timing = TIMING_ZERO,
3800 .block_erasers =
3801 {
3802 {
3803 .eraseblocks = { {4 * 1024, 256} },
3804 .block_erase = spi_block_erase_20,
3805 }, {
3806 .eraseblocks = { {64 * 1024, 16} },
3807 .block_erase = spi_block_erase_d8,
3808 }, {
3809 .eraseblocks = { {1024 * 1024, 1} },
3810 .block_erase = spi_block_erase_60,
3811 }, {
3812 .eraseblocks = { {1024 * 1024, 1} },
3813 .block_erase = spi_block_erase_c7,
3814 }
3815 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003816 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003817 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger9a795d82010-07-14 16:19:05 +00003818 .write = spi_chip_write_1,
Michael Karcher4497e862010-07-10 19:34:15 +00003819 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003820 .voltage = {2700, 3600},
Michael Karcher80a59ea2010-06-19 22:06:35 +00003821 },
3822
3823 {
Stefan Tauner85f09f72014-05-27 21:27:14 +00003824 .vendor = "ESMT",
3825 .name = "F25L32PA",
3826 .bustype = BUS_SPI,
3827 .manufacture_id = ESMT_ID,
3828 .model_id = ESMT_F25L32PA,
3829 .total_size = 4096,
3830 .page_size = 256,
3831 .feature_bits = FEATURE_WRSR_EITHER | FEATURE_OTP,
3832 .tested = TEST_UNTESTED,
3833 .probe = probe_spi_rdid,
3834 .probe_timing = TIMING_ZERO,
3835 .block_erasers =
3836 {
3837 {
3838 .eraseblocks = { {4 * 1024, 1024} },
3839 .block_erase = spi_block_erase_20,
3840 }, {
3841 .eraseblocks = { {64 * 1024, 64} },
3842 .block_erase = spi_block_erase_d8,
3843 }, {
3844 .eraseblocks = { {4 * 1024 * 1024, 1} },
3845 .block_erase = spi_block_erase_60,
3846 }, {
3847 .eraseblocks = { {4 * 1024 * 1024, 1} },
3848 .block_erase = spi_block_erase_c7,
3849 }
3850 },
3851 .printlock = spi_prettyprint_status_register_bp2_bpl,
3852 .unlock = spi_disable_blockprotect,
3853 .write = spi_chip_write_256,
3854 .read = spi_chip_read,
3855 .voltage = {2700, 3600},
3856 },
3857
3858 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10003859 .vendor = "ESMT",
3860 .name = "F49B002UA",
3861 .bustype = BUS_PARALLEL,
3862 .manufacture_id = ESMT_ID,
3863 .model_id = ESMT_F49B002UA,
3864 .total_size = 256,
3865 .page_size = 4096,
3866 .feature_bits = FEATURE_EITHER_RESET,
3867 .tested = TEST_UNTESTED,
3868 .probe = probe_jedec,
3869 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
3870 .block_erasers =
3871 {
3872 {
3873 .eraseblocks = {
3874 {128 * 1024, 1},
3875 {96 * 1024, 1},
3876 {8 * 1024, 2},
3877 {16 * 1024, 1},
3878 },
3879 .block_erase = erase_sector_jedec,
3880 }, {
3881 .eraseblocks = { {256 * 1024, 1} },
3882 .block_erase = erase_chip_block_jedec,
3883 }
3884 },
3885 .write = write_jedec_1,
3886 .read = read_memmapped,
3887 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +01003888 .prepare_access = prepare_memory_access,
3889 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +10003890 },
3891
3892 {
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003893 .vendor = "Eon",
3894 .name = "EN25B05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003895 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003896 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003897 .model_id = EON_EN25B05,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003898 .total_size = 64,
3899 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003900 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003901 .tested = TEST_UNTESTED,
3902 .probe = probe_spi_rdid,
3903 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003904 .block_erasers =
3905 {
3906 {
3907 .eraseblocks = {
3908 {4 * 1024, 2},
3909 {8 * 1024, 1},
3910 {16 * 1024, 1},
3911 {32 * 1024, 1},
3912 },
3913 .block_erase = spi_block_erase_d8,
3914 }, {
3915 .eraseblocks = { {64 * 1024, 1} },
3916 .block_erase = spi_block_erase_c7,
3917 }
3918 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003919 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003920 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003921 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003922 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003923 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003924 },
3925
3926 {
3927 .vendor = "Eon",
3928 .name = "EN25B05T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003929 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003930 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003931 .model_id = EON_EN25B05,
Sean Nelson54596372010-01-09 05:30:14 +00003932 .total_size = 64,
3933 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003934 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00003935 .tested = TEST_UNTESTED,
3936 .probe = probe_spi_rdid,
3937 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003938 .block_erasers =
3939 {
3940 {
3941 .eraseblocks = {
3942 {32 * 1024, 1},
3943 {16 * 1024, 1},
3944 {8 * 1024, 1},
3945 {4 * 1024, 2},
3946 },
3947 .block_erase = spi_block_erase_d8,
3948 }, {
3949 .eraseblocks = { {64 * 1024, 1} },
3950 .block_erase = spi_block_erase_c7,
3951 }
3952 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003953 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003954 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003955 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003956 .read = spi_chip_read, /* Fast read (0x0B) supported */
3957 .voltage = {2700, 3600},
3958 },
3959
3960 {
3961 .vendor = "Eon",
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003962 .name = "EN25B10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003963 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00003964 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003965 .model_id = EON_EN25B10,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003966 .total_size = 128,
3967 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00003968 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00003969 .tested = TEST_UNTESTED,
3970 .probe = probe_spi_rdid,
3971 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00003972 .block_erasers =
3973 {
3974 {
3975 .eraseblocks = {
3976 {4 * 1024, 2},
3977 {8 * 1024, 1},
3978 {16 * 1024, 1},
3979 {32 * 1024, 3},
3980 },
3981 .block_erase = spi_block_erase_d8,
3982 }, {
3983 .eraseblocks = { {128 * 1024, 1} },
3984 .block_erase = spi_block_erase_c7,
3985 }
3986 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00003987 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00003988 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00003989 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00003990 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00003991 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00003992 },
3993
3994 {
3995 .vendor = "Eon",
3996 .name = "EN25B10T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00003997 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00003998 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00003999 .model_id = EON_EN25B10,
Sean Nelson54596372010-01-09 05:30:14 +00004000 .total_size = 128,
4001 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00004002 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00004003 .tested = TEST_OK_PREW,
Sean Nelson54596372010-01-09 05:30:14 +00004004 .probe = probe_spi_rdid,
4005 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004006 .block_erasers =
4007 {
4008 {
4009 .eraseblocks = {
4010 {32 * 1024, 3},
4011 {16 * 1024, 1},
4012 {8 * 1024, 1},
4013 {4 * 1024, 2},
4014 },
4015 .block_erase = spi_block_erase_d8,
4016 }, {
4017 .eraseblocks = { {128 * 1024, 1} },
4018 .block_erase = spi_block_erase_c7,
4019 }
4020 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004021 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004022 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004023 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004024 .read = spi_chip_read, /* Fast read (0x0B) supported */
4025 .voltage = {2700, 3600},
4026 },
4027
4028 {
4029 .vendor = "Eon",
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004030 .name = "EN25B16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004031 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004032 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004033 .model_id = EON_EN25B16,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004034 .total_size = 2048,
4035 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00004036 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004037 .tested = TEST_UNTESTED,
4038 .probe = probe_spi_rdid,
4039 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004040 .block_erasers =
4041 {
4042 {
4043 .eraseblocks = {
4044 {4 * 1024, 2},
4045 {8 * 1024, 1},
4046 {16 * 1024, 1},
4047 {32 * 1024, 1},
4048 {64 * 1024, 31},
4049 },
4050 .block_erase = spi_block_erase_d8,
4051 }, {
4052 .eraseblocks = { {2 * 1024 * 1024, 1} },
4053 .block_erase = spi_block_erase_c7,
4054 }
4055 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004056 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004057 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00004058 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004059 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004060 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00004061 },
4062
4063 {
4064 .vendor = "Eon",
4065 .name = "EN25B16T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004066 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00004067 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004068 .model_id = EON_EN25B16,
Sean Nelson54596372010-01-09 05:30:14 +00004069 .total_size = 2048,
4070 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +00004071 .feature_bits = FEATURE_WRSR_WREN,
Sean Nelson54596372010-01-09 05:30:14 +00004072 .tested = TEST_UNTESTED,
4073 .probe = probe_spi_rdid,
4074 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004075 .block_erasers =
4076 {
4077 {
4078 .eraseblocks = {
4079 {64 * 1024, 31},
4080 {32 * 1024, 1},
4081 {16 * 1024, 1},
4082 {8 * 1024, 1},
4083 {4 * 1024, 2},
4084 },
4085 .block_erase = spi_block_erase_d8,
4086 }, {
4087 .eraseblocks = { {2 * 1024 * 1024, 1} },
4088 .block_erase = spi_block_erase_c7,
4089 }
4090 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004091 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004092 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004093 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004094 .read = spi_chip_read, /* Fast read (0x0B) supported */
4095 .voltage = {2700, 3600},
4096 },
4097
4098 {
4099 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004100 .name = "EN25B20",
Stefan Taunerb175af52015-01-24 15:06:27 +00004101 .bustype = BUS_SPI,
4102 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004103 .model_id = EON_EN25B20,
4104 .total_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004105 .page_size = 256,
4106 .feature_bits = FEATURE_WRSR_WREN,
4107 .tested = TEST_UNTESTED,
4108 .probe = probe_spi_rdid,
4109 .probe_timing = TIMING_ZERO,
4110 .block_erasers =
4111 {
4112 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004113 .eraseblocks = {
4114 {4 * 1024, 2},
4115 {8 * 1024, 1},
4116 {16 * 1024, 1},
4117 {32 * 1024, 1},
4118 {64 * 1024, 3}
4119 },
Stefan Taunerb175af52015-01-24 15:06:27 +00004120 .block_erase = spi_block_erase_d8,
4121 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004122 .eraseblocks = { {256 * 1024, 1} },
4123 .block_erase = spi_block_erase_c7,
4124 }
4125 },
4126 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4127 .unlock = spi_disable_blockprotect,
4128 .write = spi_chip_write_256,
4129 .read = spi_chip_read, /* Fast read (0x0B) supported */
4130 .voltage = {2700, 3600},
4131 },
4132
4133 {
4134 .vendor = "Eon",
4135 .name = "EN25B20T",
4136 .bustype = BUS_SPI,
4137 .manufacture_id = EON_ID_NOPREFIX,
4138 .model_id = EON_EN25B20,
4139 .total_size = 256,
4140 .page_size = 256,
4141 .feature_bits = FEATURE_WRSR_WREN,
4142 .tested = TEST_UNTESTED,
4143 .probe = probe_spi_rdid,
4144 .probe_timing = TIMING_ZERO,
4145 .block_erasers =
4146 {
4147 {
4148 .eraseblocks = {
4149 {64 * 1024, 3},
4150 {32 * 1024, 1},
4151 {16 * 1024, 1},
4152 {8 * 1024, 1},
4153 {4 * 1024, 2},
4154 },
4155 .block_erase = spi_block_erase_d8,
4156 }, {
4157 .eraseblocks = { {256 * 1024, 1} },
Stefan Taunerb175af52015-01-24 15:06:27 +00004158 .block_erase = spi_block_erase_c7,
4159 }
4160 },
4161 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4162 .unlock = spi_disable_blockprotect,
4163 .write = spi_chip_write_256,
4164 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004165 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004166 },
4167
4168 {
4169 .vendor = "Eon",
4170 .name = "EN25B32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004171 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004172 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004173 .model_id = EON_EN25B32,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004174 .total_size = 4096,
4175 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004176 /* OTP: 512B total; enter 0x3A */
4177 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004178 .tested = TEST_UNTESTED,
4179 .probe = probe_spi_rdid,
4180 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004181 .block_erasers =
4182 {
4183 {
4184 .eraseblocks = {
4185 {4 * 1024, 2},
4186 {8 * 1024, 1},
4187 {16 * 1024, 1},
4188 {32 * 1024, 1},
4189 {64 * 1024, 63},
4190 },
4191 .block_erase = spi_block_erase_d8,
4192 }, {
4193 .eraseblocks = { {4 * 1024 * 1024, 1} },
4194 .block_erase = spi_block_erase_c7,
4195 }
4196 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004197 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004198 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00004199 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004200 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004201 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00004202 },
4203
4204 {
4205 .vendor = "Eon",
4206 .name = "EN25B32T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004207 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00004208 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004209 .model_id = EON_EN25B32,
Sean Nelson54596372010-01-09 05:30:14 +00004210 .total_size = 4096,
4211 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004212 /* OTP: 512B total; enter 0x3A */
4213 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Sean Nelson54596372010-01-09 05:30:14 +00004214 .tested = TEST_UNTESTED,
4215 .probe = probe_spi_rdid,
4216 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004217 .block_erasers =
4218 {
4219 {
4220 .eraseblocks = {
4221 {64 * 1024, 63},
4222 {32 * 1024, 1},
4223 {16 * 1024, 1},
4224 {8 * 1024, 1},
4225 {4 * 1024, 2},
4226 },
4227 .block_erase = spi_block_erase_d8,
4228 }, {
4229 .eraseblocks = { {4 * 1024 * 1024, 1} },
4230 .block_erase = spi_block_erase_c7,
4231 }
4232 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004233 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004234 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004235 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004236 .read = spi_chip_read, /* Fast read (0x0B) supported */
4237 .voltage = {2700, 3600},
4238 },
4239
4240 {
4241 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004242 .name = "EN25B40",
Stefan Taunerb175af52015-01-24 15:06:27 +00004243 .bustype = BUS_SPI,
4244 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004245 .model_id = EON_EN25B40,
4246 .total_size = 512,
Stefan Taunerb175af52015-01-24 15:06:27 +00004247 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004248 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerb175af52015-01-24 15:06:27 +00004249 .tested = TEST_UNTESTED,
4250 .probe = probe_spi_rdid,
4251 .probe_timing = TIMING_ZERO,
4252 .block_erasers =
4253 {
4254 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004255 .eraseblocks = {
4256 {4 * 1024, 2},
4257 {8 * 1024, 1},
4258 {16 * 1024, 1},
4259 {32 * 1024, 1},
4260 {64 * 1024, 7}
4261 },
Stefan Taunerb175af52015-01-24 15:06:27 +00004262 .block_erase = spi_block_erase_d8,
4263 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004264 .eraseblocks = { {512 * 1024, 1} },
4265 .block_erase = spi_block_erase_c7,
4266 }
4267 },
4268 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4269 .unlock = spi_disable_blockprotect,
4270 .write = spi_chip_write_256,
4271 .read = spi_chip_read, /* Fast read (0x0B) supported */
4272 .voltage = {2700, 3600},
4273 },
4274
4275 {
4276 .vendor = "Eon",
4277 .name = "EN25B40T",
4278 .bustype = BUS_SPI,
4279 .manufacture_id = EON_ID_NOPREFIX,
4280 .model_id = EON_EN25B40,
4281 .total_size = 512,
4282 .page_size = 256,
4283 .feature_bits = FEATURE_WRSR_WREN,
4284 .tested = TEST_UNTESTED,
4285 .probe = probe_spi_rdid,
4286 .probe_timing = TIMING_ZERO,
4287 .block_erasers =
4288 {
4289 {
4290 .eraseblocks = {
4291 {64 * 1024, 7},
4292 {32 * 1024, 1},
4293 {16 * 1024, 1},
4294 {8 * 1024, 1},
4295 {4 * 1024, 2},
4296 },
4297 .block_erase = spi_block_erase_d8,
4298 }, {
4299 .eraseblocks = { {512 * 1024, 1} },
Stefan Taunerb175af52015-01-24 15:06:27 +00004300 .block_erase = spi_block_erase_c7,
4301 }
4302 },
4303 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4304 .unlock = spi_disable_blockprotect,
4305 .write = spi_chip_write_256,
4306 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004307 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004308 },
4309
4310 {
4311 .vendor = "Eon",
4312 .name = "EN25B64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004313 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004314 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004315 .model_id = EON_EN25B64,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004316 .total_size = 8192,
4317 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004318 /* OTP: 512B total; enter 0x3A */
4319 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004320 .tested = TEST_UNTESTED,
4321 .probe = probe_spi_rdid,
4322 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004323 .block_erasers =
4324 {
4325 {
4326 .eraseblocks = {
4327 {4 * 1024, 2},
4328 {8 * 1024, 1},
4329 {16 * 1024, 1},
4330 {32 * 1024, 1},
4331 {64 * 1024, 127},
4332 },
4333 .block_erase = spi_block_erase_d8,
4334 }, {
4335 .eraseblocks = { {8 * 1024 * 1024, 1} },
4336 .block_erase = spi_block_erase_c7,
4337 }
4338 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004339 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004340 .unlock = spi_disable_blockprotect,
Sean Nelson54596372010-01-09 05:30:14 +00004341 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004342 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004343 .voltage = {2700, 3600},
Sean Nelson54596372010-01-09 05:30:14 +00004344 },
4345
4346 {
4347 .vendor = "Eon",
4348 .name = "EN25B64T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004349 .bustype = BUS_SPI,
Sean Nelson54596372010-01-09 05:30:14 +00004350 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004351 .model_id = EON_EN25B64,
Sean Nelson54596372010-01-09 05:30:14 +00004352 .total_size = 8192,
4353 .page_size = 256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004354 /* OTP: 512B total; enter 0x3A */
4355 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Sean Nelson54596372010-01-09 05:30:14 +00004356 .tested = TEST_UNTESTED,
4357 .probe = probe_spi_rdid,
4358 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004359 .block_erasers =
4360 {
4361 {
4362 .eraseblocks = {
4363 {64 * 1024, 127},
4364 {32 * 1024, 1},
4365 {16 * 1024, 1},
4366 {8 * 1024, 1},
4367 {4 * 1024, 2},
4368 },
4369 .block_erase = spi_block_erase_d8,
4370 }, {
4371 .eraseblocks = { {8 * 1024 * 1024, 1} },
4372 .block_erase = spi_block_erase_c7,
4373 }
4374 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004375 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004376 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004377 .write = spi_chip_write_256,
Stefan Taunerb175af52015-01-24 15:06:27 +00004378 .read = spi_chip_read, /* Fast read (0x0B) supported */
4379 .voltage = {2700, 3600},
4380 },
4381
4382 {
4383 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004384 .name = "EN25B80",
Stefan Taunerb175af52015-01-24 15:06:27 +00004385 .bustype = BUS_SPI,
4386 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004387 .model_id = EON_EN25B80,
4388 .total_size = 1024,
Stefan Taunerb175af52015-01-24 15:06:27 +00004389 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004390 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerb175af52015-01-24 15:06:27 +00004391 .tested = TEST_UNTESTED,
4392 .probe = probe_spi_rdid,
4393 .probe_timing = TIMING_ZERO,
4394 .block_erasers =
4395 {
4396 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004397 .eraseblocks = {
4398 {4 * 1024, 2},
4399 {8 * 1024, 1},
4400 {16 * 1024, 1},
4401 {32 * 1024, 1},
4402 {64 * 1024, 15}
4403 },
Stefan Taunerb175af52015-01-24 15:06:27 +00004404 .block_erase = spi_block_erase_d8,
4405 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004406 .eraseblocks = { {1024 * 1024, 1} },
4407 .block_erase = spi_block_erase_c7,
4408 }
4409 },
4410 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4411 .unlock = spi_disable_blockprotect,
4412 .write = spi_chip_write_256,
4413 .read = spi_chip_read, /* Fast read (0x0B) supported */
4414 .voltage = {2700, 3600},
4415 },
4416
4417 {
4418 .vendor = "Eon",
4419 .name = "EN25B80T",
4420 .bustype = BUS_SPI,
4421 .manufacture_id = EON_ID_NOPREFIX,
4422 .model_id = EON_EN25B80,
4423 .total_size = 1024,
4424 .page_size = 256,
4425 .feature_bits = FEATURE_WRSR_WREN,
4426 .tested = TEST_UNTESTED,
4427 .probe = probe_spi_rdid,
4428 .probe_timing = TIMING_ZERO,
4429 .block_erasers =
4430 {
4431 {
4432 .eraseblocks = {
4433 {64 * 1024, 15},
4434 {32 * 1024, 1},
4435 {16 * 1024, 1},
4436 {8 * 1024, 1},
4437 {4 * 1024, 2},
4438 },
4439 .block_erase = spi_block_erase_d8,
4440 }, {
4441 .eraseblocks = { {1024 * 1024, 1} },
Stefan Taunerb175af52015-01-24 15:06:27 +00004442 .block_erase = spi_block_erase_c7,
4443 }
4444 },
4445 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4446 .unlock = spi_disable_blockprotect,
4447 .write = spi_chip_write_256,
4448 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004449 .voltage = {2700, 3600},
Carl-Daniel Hailfinger80243c92009-06-05 20:53:07 +00004450 },
4451
4452 {
4453 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004454 .name = "EN25F05",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004455 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004456 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004457 .model_id = EON_EN25F05,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004458 .total_size = 64,
4459 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004460 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner0554ca52013-07-25 22:54:25 +00004461 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004462 .probe = probe_spi_rdid,
4463 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004464 .block_erasers =
4465 {
4466 {
4467 .eraseblocks = { {4 * 1024, 16} },
4468 .block_erase = spi_block_erase_20,
4469 }, {
4470 .eraseblocks = { {32 * 1024, 2} },
4471 .block_erase = spi_block_erase_d8,
4472 }, {
4473 .eraseblocks = { {32 * 1024, 2} },
4474 .block_erase = spi_block_erase_52,
4475 }, {
4476 .eraseblocks = { {64 * 1024, 1} },
4477 .block_erase = spi_block_erase_60,
4478 }, {
4479 .eraseblocks = { {64 * 1024, 1} },
4480 .block_erase = spi_block_erase_c7,
4481 }
4482 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004483 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004484 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004485 .write = spi_chip_write_256,
4486 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004487 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004488 },
4489
4490 {
4491 .vendor = "Eon",
4492 .name = "EN25F10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004493 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004494 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004495 .model_id = EON_EN25F10,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004496 .total_size = 128,
4497 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004498 .feature_bits = FEATURE_WRSR_WREN,
Simon Buhrowd173ed42021-09-29 09:28:07 +02004499 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004500 .probe = probe_spi_rdid,
4501 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004502 .block_erasers =
4503 {
4504 {
4505 .eraseblocks = { {4 * 1024, 32} },
4506 .block_erase = spi_block_erase_20,
4507 }, {
4508 .eraseblocks = { {32 * 1024, 4} },
4509 .block_erase = spi_block_erase_d8,
4510 }, {
4511 .eraseblocks = { {32 * 1024, 4} },
4512 .block_erase = spi_block_erase_52,
4513 }, {
4514 .eraseblocks = { {128 * 1024, 1} },
4515 .block_erase = spi_block_erase_60,
4516 }, {
4517 .eraseblocks = { {128 * 1024, 1} },
4518 .block_erase = spi_block_erase_c7,
4519 }
4520 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004521 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004522 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004523 .write = spi_chip_write_256,
4524 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004525 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004526 },
4527
4528 {
4529 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004530 .name = "EN25F16",
4531 .bustype = BUS_SPI,
4532 .manufacture_id = EON_ID_NOPREFIX,
4533 .model_id = EON_EN25F16,
4534 .total_size = 2048,
4535 .page_size = 256,
4536 .feature_bits = FEATURE_WRSR_WREN,
4537 .tested = TEST_OK_PREW,
4538 .probe = probe_spi_rdid,
4539 .probe_timing = TIMING_ZERO,
4540 .block_erasers =
4541 {
4542 {
4543 .eraseblocks = { {4 * 1024, 512} },
4544 .block_erase = spi_block_erase_20,
4545 }, {
4546 .eraseblocks = { {64 * 1024, 32} },
4547 .block_erase = spi_block_erase_d8,
4548 }, {
4549 .eraseblocks = { {2 * 1024 * 1024, 1} },
4550 .block_erase = spi_block_erase_60,
4551 }, {
4552 .eraseblocks = { {2 * 1024 * 1024, 1} },
4553 .block_erase = spi_block_erase_c7,
4554 }
4555 },
4556 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4557 .unlock = spi_disable_blockprotect,
4558 .write = spi_chip_write_256,
4559 .read = spi_chip_read,
4560 .voltage = {2700, 3600},
4561 },
4562
4563 {
4564 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004565 .name = "EN25F20",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004566 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004567 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004568 .model_id = EON_EN25F20,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004569 .total_size = 256,
4570 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004571 .feature_bits = FEATURE_WRSR_WREN,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004572 .tested = TEST_UNTESTED,
4573 .probe = probe_spi_rdid,
4574 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004575 .block_erasers =
4576 {
4577 {
4578 .eraseblocks = { {4 * 1024, 64} },
4579 .block_erase = spi_block_erase_20,
4580 }, {
4581 .eraseblocks = { {64 * 1024, 4} },
4582 .block_erase = spi_block_erase_d8,
4583 }, {
4584 .eraseblocks = { {64 * 1024, 4} },
4585 .block_erase = spi_block_erase_52,
4586 }, {
4587 .eraseblocks = { {256 * 1024, 1} },
4588 .block_erase = spi_block_erase_60,
4589 }, {
4590 .eraseblocks = { {256 * 1024, 1} },
4591 .block_erase = spi_block_erase_c7,
4592 }
4593 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004594 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004595 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004596 .write = spi_chip_write_256,
4597 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004598 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004599 },
4600
4601 {
4602 .vendor = "Eon",
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004603 .name = "EN25F32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004604 .bustype = BUS_SPI,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004605 .manufacture_id = EON_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00004606 .model_id = EON_EN25F32,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004607 .total_size = 4096,
4608 .page_size = 256,
David Hendricksd6c5dfc2010-09-03 03:18:26 +00004609 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner5c316f92015-02-08 21:57:52 +00004610 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004611 .probe = probe_spi_rdid,
4612 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00004613 .block_erasers =
4614 {
4615 {
4616 .eraseblocks = { {4 * 1024, 1024} },
4617 .block_erase = spi_block_erase_20,
4618 }, {
4619 .eraseblocks = { {64 * 1024, 64} },
4620 .block_erase = spi_block_erase_d8,
4621 }, {
4622 .eraseblocks = { {4 * 1024 * 1024, 1} },
4623 .block_erase = spi_block_erase_60,
4624 }, {
4625 .eraseblocks = { {4 * 1024 * 1024, 1} },
4626 .block_erase = spi_block_erase_c7,
4627 }
4628 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004629 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00004630 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004631 .write = spi_chip_write_256,
4632 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00004633 .voltage = {2700, 3600},
Carl-Daniel Hailfingera0a6ae92009-06-15 12:10:57 +00004634 },
4635
4636 {
Russ Dill3cd5a122010-03-05 08:44:11 +00004637 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004638 .name = "EN25F40",
4639 .bustype = BUS_SPI,
4640 .manufacture_id = EON_ID_NOPREFIX,
4641 .model_id = EON_EN25F40,
4642 .total_size = 512,
4643 .page_size = 256,
4644 .feature_bits = FEATURE_WRSR_WREN,
4645 .tested = TEST_OK_PREW,
4646 .probe = probe_spi_rdid,
4647 .probe_timing = TIMING_ZERO,
4648 .block_erasers =
4649 {
4650 {
4651 .eraseblocks = { {4 * 1024, 128} },
4652 .block_erase = spi_block_erase_20,
4653 }, {
4654 .eraseblocks = { {64 * 1024, 8} },
4655 .block_erase = spi_block_erase_d8,
4656 }, {
4657 .eraseblocks = { {512 * 1024, 1} },
4658 .block_erase = spi_block_erase_60,
4659 }, {
4660 .eraseblocks = { {512 * 1024, 1} },
4661 .block_erase = spi_block_erase_c7,
4662 },
4663 },
4664 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4665 .unlock = spi_disable_blockprotect,
4666 .write = spi_chip_write_256,
4667 .read = spi_chip_read,
4668 .voltage = {2700, 3600},
4669 },
4670
4671 {
4672 .vendor = "Eon",
Stefan Taunerd932fd02012-09-06 17:37:16 +00004673 .name = "EN25F64",
4674 .bustype = BUS_SPI,
4675 .manufacture_id = EON_ID_NOPREFIX,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00004676 .model_id = EON_EN25F64,
Stefan Taunerd932fd02012-09-06 17:37:16 +00004677 .total_size = 8192,
4678 .page_size = 256,
4679 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunere34e3e82013-01-01 00:06:51 +00004680 .tested = TEST_OK_PREW,
Stefan Taunerd932fd02012-09-06 17:37:16 +00004681 .probe = probe_spi_rdid,
4682 .probe_timing = TIMING_ZERO,
4683 .block_erasers =
4684 {
4685 {
4686 .eraseblocks = { {4 * 1024, 2048} },
4687 .block_erase = spi_block_erase_20,
4688 }, {
4689 .eraseblocks = { {64 * 1024, 128} },
4690 .block_erase = spi_block_erase_d8,
4691 }, {
4692 .eraseblocks = { {8 * 1024 * 1024, 1} },
4693 .block_erase = spi_block_erase_60,
4694 }, {
4695 .eraseblocks = { {8 * 1024 * 1024, 1} },
4696 .block_erase = spi_block_erase_c7,
4697 }
4698 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004699 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Stefan Taunerd932fd02012-09-06 17:37:16 +00004700 .unlock = spi_disable_blockprotect,
4701 .write = spi_chip_write_256,
4702 .read = spi_chip_read,
4703 .voltage = {2700, 3600},
4704 },
4705
4706 {
4707 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10004708 .name = "EN25F80",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00004709 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00004710 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004711 .model_id = EON_EN25F80,
David Hendricks6d715302011-07-24 22:21:57 +00004712 .total_size = 1024,
4713 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10004714 .feature_bits = FEATURE_WRSR_WREN,
4715 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00004716 .probe = probe_spi_rdid,
4717 .probe_timing = TIMING_ZERO,
4718 .block_erasers =
4719 {
4720 {
4721 .eraseblocks = { {4 * 1024, 256} },
4722 .block_erase = spi_block_erase_20,
4723 }, {
4724 .eraseblocks = { {64 * 1024, 16} },
4725 .block_erase = spi_block_erase_d8,
4726 }, {
4727 .eraseblocks = { {1024 * 1024, 1} },
4728 .block_erase = spi_block_erase_60,
4729 }, {
4730 .eraseblocks = { {1024 * 1024, 1} },
4731 .block_erase = spi_block_erase_c7,
4732 }
4733 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00004734 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00004735 .unlock = spi_disable_blockprotect,
4736 .write = spi_chip_write_256,
4737 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00004738 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00004739 },
4740
4741 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10004742 .vendor = "Eon",
4743 .name = "EN25P05",
4744 .bustype = BUS_SPI,
4745 .manufacture_id = EON_ID_NOPREFIX,
4746 .model_id = EON_EN25B05,
4747 .total_size = 64,
4748 .page_size = 256,
4749 .feature_bits = FEATURE_WRSR_WREN,
4750 .tested = TEST_UNTESTED,
4751 .probe = probe_spi_rdid,
4752 .probe_timing = TIMING_ZERO,
4753 .block_erasers =
4754 {
4755 {
4756 .eraseblocks = {
4757 {32 * 1024, 2} },
4758 .block_erase = spi_block_erase_d8,
4759 }, {
4760 .eraseblocks = { {64 * 1024, 1} },
4761 .block_erase = spi_block_erase_c7,
4762 }
4763 },
4764 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4765 .unlock = spi_disable_blockprotect,
4766 .write = spi_chip_write_256,
4767 .read = spi_chip_read, /* Fast read (0x0B) supported */
4768 .voltage = {2700, 3600},
4769 },
4770
4771 {
4772 .vendor = "Eon",
4773 .name = "EN25P10",
4774 .bustype = BUS_SPI,
4775 .manufacture_id = EON_ID_NOPREFIX,
4776 .model_id = EON_EN25B10,
4777 .total_size = 128,
4778 .page_size = 256,
4779 .feature_bits = FEATURE_WRSR_WREN,
4780 .tested = TEST_UNTESTED,
4781 .probe = probe_spi_rdid,
4782 .probe_timing = TIMING_ZERO,
4783 .block_erasers =
4784 {
4785 {
4786 .eraseblocks = { {32 * 1024, 4} },
4787 .block_erase = spi_block_erase_d8,
4788 }, {
4789 .eraseblocks = { {128 * 1024, 1} },
4790 .block_erase = spi_block_erase_c7,
4791 }
4792 },
4793 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4794 .unlock = spi_disable_blockprotect,
4795 .write = spi_chip_write_256,
4796 .read = spi_chip_read, /* Fast read (0x0B) supported */
4797 .voltage = {2700, 3600},
4798 },
4799
4800 {
4801 .vendor = "Eon",
4802 .name = "EN25P16",
4803 .bustype = BUS_SPI,
4804 .manufacture_id = EON_ID_NOPREFIX,
4805 .model_id = EON_EN25B16,
4806 .total_size = 2048,
4807 .page_size = 256,
4808 .feature_bits = FEATURE_WRSR_WREN,
4809 .tested = TEST_UNTESTED,
4810 .probe = probe_spi_rdid,
4811 .probe_timing = TIMING_ZERO,
4812 .block_erasers =
4813 {
4814 {
4815 .eraseblocks = { {64 * 1024, 32} },
4816 .block_erase = spi_block_erase_d8,
4817 }, {
4818 .eraseblocks = { {2 * 1024 * 1024, 1} },
4819 .block_erase = spi_block_erase_c7,
4820 }
4821 },
4822 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4823 .unlock = spi_disable_blockprotect,
4824 .write = spi_chip_write_256,
4825 .read = spi_chip_read, /* Fast read (0x0B) supported */
4826 .voltage = {2700, 3600},
4827 },
4828
4829 {
4830 .vendor = "Eon",
4831 .name = "EN25P20",
4832 .bustype = BUS_SPI,
4833 .manufacture_id = EON_ID_NOPREFIX,
4834 .model_id = EON_EN25B20,
4835 .total_size = 256,
4836 .page_size = 256,
4837 .feature_bits = FEATURE_WRSR_WREN,
4838 .tested = TEST_UNTESTED,
4839 .probe = probe_spi_rdid,
4840 .probe_timing = TIMING_ZERO,
4841 .block_erasers =
4842 {
4843 {
4844 .eraseblocks = { {64 * 1024, 4} },
4845 .block_erase = spi_block_erase_d8,
4846 }, {
4847 .eraseblocks = { {256 * 1024, 1} },
4848 .block_erase = spi_block_erase_c7,
4849 }
4850 },
4851 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4852 .unlock = spi_disable_blockprotect,
4853 .write = spi_chip_write_256,
4854 .read = spi_chip_read, /* Fast read (0x0B) supported */
4855 .voltage = {2700, 3600},
4856 },
4857
4858 {
4859 .vendor = "Eon",
4860 .name = "EN25P32", /* Uniform version of EN25B32 */
4861 .bustype = BUS_SPI,
4862 .manufacture_id = EON_ID_NOPREFIX,
4863 .model_id = EON_EN25B32,
4864 .total_size = 4096,
4865 .page_size = 256,
4866 /* OTP: 512B total; enter 0x3A */
4867 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4868 .tested = TEST_UNTESTED,
4869 .probe = probe_spi_rdid,
4870 .probe_timing = TIMING_ZERO,
4871 .block_erasers =
4872 {
4873 {
4874 .eraseblocks = { {64 * 1024, 64} },
4875 .block_erase = spi_block_erase_d8,
4876 }, {
4877 .eraseblocks = { {4 * 1024 * 1024, 1} },
4878 .block_erase = spi_block_erase_c7,
4879 }
4880 },
4881 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4882 .unlock = spi_disable_blockprotect,
4883 .write = spi_chip_write_256,
4884 .read = spi_chip_read, /* Fast read (0x0B) supported */
4885 .voltage = {2700, 3600},
4886 },
4887
4888 {
4889 .vendor = "Eon",
4890 .name = "EN25P40",
4891 .bustype = BUS_SPI,
4892 .manufacture_id = EON_ID_NOPREFIX,
4893 .model_id = EON_EN25B40,
4894 .total_size = 512,
4895 .page_size = 256,
4896 .feature_bits = FEATURE_WRSR_WREN,
4897 .tested = TEST_UNTESTED,
4898 .probe = probe_spi_rdid,
4899 .probe_timing = TIMING_ZERO,
4900 .block_erasers =
4901 {
4902 {
4903 .eraseblocks = { {64 * 1024, 8} },
4904 .block_erase = spi_block_erase_d8,
4905 }, {
4906 .eraseblocks = { {512 * 1024, 1} },
4907 .block_erase = spi_block_erase_c7,
4908 }
4909 },
4910 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4911 .unlock = spi_disable_blockprotect,
4912 .write = spi_chip_write_256,
4913 .read = spi_chip_read, /* Fast read (0x0B) supported */
4914 .voltage = {2700, 3600},
4915 },
4916
4917 {
4918 .vendor = "Eon",
4919 .name = "EN25P64",
4920 .bustype = BUS_SPI,
4921 .manufacture_id = EON_ID_NOPREFIX,
4922 .model_id = EON_EN25B64,
4923 .total_size = 8192,
4924 .page_size = 256,
4925 /* OTP: 512B total; enter 0x3A */
4926 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4927 .tested = TEST_UNTESTED,
4928 .probe = probe_spi_rdid,
4929 .probe_timing = TIMING_ZERO,
4930 .block_erasers =
4931 {
4932 {
4933 .eraseblocks = { {64 * 1024, 128} },
4934 .block_erase = spi_block_erase_d8,
4935 }, {
4936 .eraseblocks = { {8 * 1024 * 1024, 1} },
4937 .block_erase = spi_block_erase_c7,
4938 }
4939 },
4940 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4941 .unlock = spi_disable_blockprotect,
4942 .write = spi_chip_write_256,
4943 .read = spi_chip_read, /* Fast read (0x0B) supported */
4944 .voltage = {2700, 3600},
4945 },
4946
4947 {
4948 .vendor = "Eon",
4949 .name = "EN25P80",
4950 .bustype = BUS_SPI,
4951 .manufacture_id = EON_ID_NOPREFIX,
4952 .model_id = EON_EN25B80,
4953 .total_size = 1024,
4954 .page_size = 256,
4955 .feature_bits = FEATURE_WRSR_WREN,
4956 .tested = TEST_UNTESTED,
4957 .probe = probe_spi_rdid,
4958 .probe_timing = TIMING_ZERO,
4959 .block_erasers =
4960 {
4961 {
4962 .eraseblocks = { {64 * 1024, 16} },
4963 .block_erase = spi_block_erase_d8,
4964 }, {
4965 .eraseblocks = { {1024 * 1024, 1} },
4966 .block_erase = spi_block_erase_c7,
4967 }
4968 },
4969 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
4970 .unlock = spi_disable_blockprotect,
4971 .write = spi_chip_write_256,
4972 .read = spi_chip_read, /* Fast read (0x0B) supported */
4973 .voltage = {2700, 3600},
4974 },
4975
4976 {
4977 .vendor = "Eon",
4978 .name = "EN25Q128",
4979 .bustype = BUS_SPI,
4980 .manufacture_id = EON_ID_NOPREFIX,
4981 .model_id = EON_EN25Q128,
4982 .total_size = 16384,
4983 .page_size = 256,
4984 /* OTP: 512B total; enter 0x3A */
4985 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
4986 .tested = TEST_OK_PREW,
4987 .probe = probe_spi_rdid,
4988 .probe_timing = TIMING_ZERO,
4989 .block_erasers =
4990 {
4991 {
4992 .eraseblocks = { {4 * 1024, 4096} },
4993 .block_erase = spi_block_erase_20,
4994 }, {
4995 .eraseblocks = { {64 * 1024, 256} },
4996 .block_erase = spi_block_erase_d8,
4997 }, {
4998 .eraseblocks = { {16 * 1024 * 1024, 1} },
4999 .block_erase = spi_block_erase_60,
5000 }, {
5001 .eraseblocks = { {16 * 1024 * 1024, 1} },
5002 .block_erase = spi_block_erase_c7,
5003 }
5004 },
5005 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
5006 .unlock = spi_disable_blockprotect,
5007 .write = spi_chip_write_256,
5008 .read = spi_chip_read,
5009 },
5010
5011 {
David Hendricks6d715302011-07-24 22:21:57 +00005012 /* Note: EN25D16 is an evil twin which shares the model ID
5013 but has different write protection capabilities */
5014 .vendor = "Eon",
5015 .name = "EN25Q16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005016 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00005017 .manufacture_id = EON_ID_NOPREFIX,
5018 .model_id = EON_EN25Q16,
5019 .total_size = 2048,
5020 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00005021 /* OTP: D16 512B/Q16 128B total; enter 0x3A */
5022 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks6d715302011-07-24 22:21:57 +00005023 .tested = TEST_UNTESTED,
5024 .probe = probe_spi_rdid,
5025 .probe_timing = TIMING_ZERO,
5026 .block_erasers =
5027 {
5028 {
5029 .eraseblocks = { {4 * 1024, 512} },
5030 .block_erase = spi_block_erase_20,
5031 }, {
5032 .eraseblocks = { {64 * 1024, 32} },
5033 .block_erase = spi_block_erase_d8,
5034 }, {
5035 /* not supported by Q16 version */
5036 .eraseblocks = { {64 * 1024, 32} },
5037 .block_erase = spi_block_erase_52,
5038 }, {
5039 .eraseblocks = { {2 * 1024 * 1024, 1} },
5040 .block_erase = spi_block_erase_60,
5041 }, {
5042 .eraseblocks = { {2 * 1024 * 1024, 1} },
5043 .block_erase = spi_block_erase_c7,
5044 }
5045 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00005046 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00005047 .unlock = spi_disable_blockprotect,
5048 .write = spi_chip_write_256,
5049 .read = spi_chip_read,
5050 .voltage = {2700, 3600},
5051 },
5052
5053 {
5054 .vendor = "Eon",
5055 .name = "EN25Q32(A/B)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005056 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00005057 .manufacture_id = EON_ID_NOPREFIX,
5058 .model_id = EON_EN25Q32,
5059 .total_size = 4096,
5060 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00005061 /* OTP: 512B total; enter 0x3A */
5062 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005063 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00005064 .probe = probe_spi_rdid,
5065 .probe_timing = TIMING_ZERO,
5066 .block_erasers =
5067 {
5068 {
5069 .eraseblocks = { {4 * 1024, 1024} },
5070 .block_erase = spi_block_erase_20,
5071 }, {
5072 .eraseblocks = { {64 * 1024, 64} },
5073 .block_erase = spi_block_erase_d8,
5074 }, {
5075 .eraseblocks = { {4 * 1024 * 1024, 1} },
5076 .block_erase = spi_block_erase_60,
5077 }, {
5078 .eraseblocks = { {4 * 1024 * 1024, 1} },
5079 .block_erase = spi_block_erase_c7,
5080 }
5081 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00005082 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00005083 .unlock = spi_disable_blockprotect,
5084 .write = spi_chip_write_256,
5085 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00005086 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00005087 },
5088
5089 {
5090 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005091 .name = "EN25Q40",
5092 .bustype = BUS_SPI,
5093 .manufacture_id = EON_ID_NOPREFIX,
5094 .model_id = EON_EN25Q40,
5095 .total_size = 512,
5096 .page_size = 256,
5097 /* OTP: 256B total; enter 0x3A */
5098 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5099 .tested = TEST_UNTESTED,
5100 .probe = probe_spi_rdid,
5101 .probe_timing = TIMING_ZERO,
5102 .block_erasers =
5103 {
5104 {
5105 .eraseblocks = { {4 * 1024, 128} },
5106 .block_erase = spi_block_erase_20,
5107 }, {
5108 .eraseblocks = { {64 * 1024, 8} },
5109 .block_erase = spi_block_erase_d8,
5110 }, {
5111 .eraseblocks = { {512 * 1024, 1} },
5112 .block_erase = spi_block_erase_60,
5113 }, {
5114 .eraseblocks = { {512 * 1024, 1} },
5115 .block_erase = spi_block_erase_c7,
5116 }
5117 },
5118 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
5119 .unlock = spi_disable_blockprotect,
5120 .write = spi_chip_write_256,
5121 .read = spi_chip_read,
5122 .voltage = {2700, 3600},
5123 },
5124
5125 {
5126 .vendor = "Eon",
David Hendricks6d715302011-07-24 22:21:57 +00005127 .name = "EN25Q64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005128 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00005129 .manufacture_id = EON_ID_NOPREFIX,
5130 .model_id = EON_EN25Q64,
5131 .total_size = 8192,
5132 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00005133 /* OTP: 512B total; enter 0x3A */
5134 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner352e50b2013-02-22 15:58:45 +00005135 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00005136 .probe = probe_spi_rdid,
5137 .probe_timing = TIMING_ZERO,
5138 .block_erasers =
5139 {
5140 {
5141 .eraseblocks = { {4 * 1024, 2048} },
5142 .block_erase = spi_block_erase_20,
5143 }, {
5144 .eraseblocks = { {64 * 1024, 128} },
5145 .block_erase = spi_block_erase_d8,
5146 }, {
5147 .eraseblocks = { {8 * 1024 * 1024, 1} },
5148 .block_erase = spi_block_erase_60,
5149 }, {
5150 .eraseblocks = { {8 * 1024 * 1024, 1} },
5151 .block_erase = spi_block_erase_c7,
5152 }
5153 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00005154 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
David Hendricks6d715302011-07-24 22:21:57 +00005155 .unlock = spi_disable_blockprotect,
5156 .write = spi_chip_write_256,
5157 .read = spi_chip_read,
Stefan Taunereb582572012-09-21 12:52:50 +00005158 .voltage = {2700, 3600},
David Hendricks6d715302011-07-24 22:21:57 +00005159 },
5160
5161 {
5162 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005163 .name = "EN25Q80(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005164 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00005165 .manufacture_id = EON_ID_NOPREFIX,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005166 .model_id = EON_EN25Q80,
5167 .total_size = 1024,
5168 .page_size = 256,
5169 /* OTP: 256B total; enter 0x3A */
5170 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5171 .tested = TEST_UNTESTED,
5172 .probe = probe_spi_rdid,
5173 .probe_timing = TIMING_ZERO,
5174 .block_erasers =
5175 {
5176 {
5177 .eraseblocks = { {4 * 1024, 256} },
5178 .block_erase = spi_block_erase_20,
5179 }, {
5180 .eraseblocks = { {64 * 1024, 16} },
5181 .block_erase = spi_block_erase_d8,
5182 }, {
5183 .eraseblocks = { {1024 * 1024, 1} },
5184 .block_erase = spi_block_erase_60,
5185 }, {
5186 .eraseblocks = { {1024 * 1024, 1} },
5187 .block_erase = spi_block_erase_c7,
5188 }
5189 },
5190 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
5191 .unlock = spi_disable_blockprotect,
5192 .write = spi_chip_write_256,
5193 .read = spi_chip_read,
5194 .voltage = {2700, 3600},
5195 },
5196
5197 {
5198 .vendor = "Eon",
5199 .name = "EN25QH128",
5200 .bustype = BUS_SPI,
5201 .manufacture_id = EON_ID_NOPREFIX,
5202 .model_id = EON_EN25QH128,
David Hendricks6d715302011-07-24 22:21:57 +00005203 .total_size = 16384,
5204 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005205 /* supports SFDP */
Daniel Lenski65922a32012-02-15 23:40:23 +00005206 /* OTP: 512B total; enter 0x3A */
Nico Huber1412d9f2024-01-06 18:25:49 +01005207 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | (FEATURE_QPI_38 & ~FEATURE_FAST_READ_QOUT),
5208 .dummy_cycles =
5209 {
5210 .qpi_fast_read = 6,
5211 .qpi_fast_read_qio = 6,
5212 },
Tim Chenbfe149a2020-07-06 14:59:21 +08005213 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00005214 .probe = probe_spi_rdid,
5215 .probe_timing = TIMING_ZERO,
5216 .block_erasers =
5217 {
5218 {
5219 .eraseblocks = { {4 * 1024, 4096} },
5220 .block_erase = spi_block_erase_20,
5221 }, {
5222 .eraseblocks = { {64 * 1024, 256} },
5223 .block_erase = spi_block_erase_d8,
5224 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005225 .eraseblocks = { { 16384 * 1024, 1} },
David Hendricks6d715302011-07-24 22:21:57 +00005226 .block_erase = spi_block_erase_60,
5227 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005228 .eraseblocks = { { 16384 * 1024, 1} },
David Hendricks6d715302011-07-24 22:21:57 +00005229 .block_erase = spi_block_erase_c7,
5230 }
5231 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005232 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
5233 .unlock = spi_disable_blockprotect_bp3_srwd,
David Hendricks6d715302011-07-24 22:21:57 +00005234 .write = spi_chip_write_256,
5235 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005236 .voltage = {2700, 3600},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +11005237 .reg_bits =
5238 {
5239 .srp = {STATUS1, 7, RW},
5240 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
5241 .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */
5242 },
Nico Huberaabb3e02023-01-13 00:22:30 +01005243 .wp_write_cfg = spi_wp_write_cfg,
5244 .wp_read_cfg = spi_wp_read_cfg,
5245 .wp_get_ranges = spi_wp_get_available_ranges,
Nikolai Artemievd32e18b2022-02-15 18:06:55 +11005246 .decode_range = decode_range_spi25,
David Hendricks6d715302011-07-24 22:21:57 +00005247 },
5248
5249 {
5250 .vendor = "Eon",
5251 .name = "EN25QH16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005252 .bustype = BUS_SPI,
David Hendricks6d715302011-07-24 22:21:57 +00005253 .manufacture_id = EON_ID_NOPREFIX,
5254 .model_id = EON_EN25QH16,
5255 .total_size = 2048,
5256 .page_size = 256,
Daniel Lenski65922a32012-02-15 23:40:23 +00005257 /* supports SFDP */
5258 /* OTP: 512B total; enter 0x3A */
Nico Huber1412d9f2024-01-06 18:25:49 +01005259 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | (FEATURE_QPI_38 & ~FEATURE_FAST_READ_QOUT),
5260 .dummy_cycles =
5261 {
5262 .qpi_fast_read = 6,
5263 .qpi_fast_read_qio = 6,
5264 },
Stefan Tauner5c316f92015-02-08 21:57:52 +00005265 .tested = TEST_OK_PREW,
David Hendricks6d715302011-07-24 22:21:57 +00005266 .probe = probe_spi_rdid,
5267 .probe_timing = TIMING_ZERO,
5268 .block_erasers =
5269 {
5270 {
5271 .eraseblocks = { {4 * 1024, 512} },
5272 .block_erase = spi_block_erase_20,
5273 }, {
5274 .eraseblocks = { {64 * 1024, 32} },
5275 .block_erase = spi_block_erase_d8,
5276 }, {
5277 .eraseblocks = { {1024 * 2048, 1} },
5278 .block_erase = spi_block_erase_60,
5279 }, {
5280 .eraseblocks = { {1024 * 2048, 1} },
5281 .block_erase = spi_block_erase_c7,
5282 }
5283 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005284 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005285 .unlock = spi_disable_blockprotect_bp3_srwd,
David Hendricks6d715302011-07-24 22:21:57 +00005286 .write = spi_chip_write_256,
5287 .read = spi_chip_read,
Stefan Tauner2cef9162012-05-14 01:51:46 +00005288 .voltage = {2700, 3600},
5289 },
5290
5291 {
5292 .vendor = "Eon",
5293 .name = "EN25QH32",
5294 .bustype = BUS_SPI,
5295 .manufacture_id = EON_ID_NOPREFIX,
5296 .model_id = EON_EN25QH32,
5297 .total_size = 4096,
5298 .page_size = 256,
5299 /* supports SFDP */
5300 /* OTP: 512B total; enter 0x3A */
Nico Huber1412d9f2024-01-06 18:25:49 +01005301 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | (FEATURE_QPI_38 & ~FEATURE_FAST_READ_QOUT),
5302 .dummy_cycles =
5303 {
5304 .qpi_fast_read = 6,
5305 .qpi_fast_read_qio = 6,
5306 },
Stefan Tauner23e10b82016-01-23 16:16:49 +00005307 .tested = TEST_OK_PREW,
Stefan Tauner2cef9162012-05-14 01:51:46 +00005308 .probe = probe_spi_rdid,
5309 .probe_timing = TIMING_ZERO,
5310 .block_erasers =
5311 {
5312 {
5313 .eraseblocks = { {4 * 1024, 1024} },
5314 .block_erase = spi_block_erase_20,
5315 }, {
5316 .eraseblocks = { {64 * 1024, 64} },
5317 .block_erase = spi_block_erase_d8,
5318 }, {
5319 .eraseblocks = { {1024 * 4096, 1} },
5320 .block_erase = spi_block_erase_60,
5321 }, {
5322 .eraseblocks = { {1024 * 4096, 1} },
5323 .block_erase = spi_block_erase_c7,
5324 }
5325 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005326 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005327 .unlock = spi_disable_blockprotect_bp3_srwd,
5328 .write = spi_chip_write_256,
5329 .read = spi_chip_read,
5330 .voltage = {2700, 3600},
Sergii Dmytrukc6e8b1a2022-08-14 20:57:48 +03005331 .reg_bits =
5332 {
5333 .srp = {STATUS1, 7, RW},
5334 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
5335 .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */
5336 },
Nico Huberaabb3e02023-01-13 00:22:30 +01005337 .wp_write_cfg = spi_wp_write_cfg,
5338 .wp_read_cfg = spi_wp_read_cfg,
5339 .wp_get_ranges = spi_wp_get_available_ranges,
Sergii Dmytrukc6e8b1a2022-08-14 20:57:48 +03005340 .decode_range = decode_range_spi25,
5341 },
5342
5343 {
5344 .vendor = "Eon",
5345 .name = "EN25QH32B",
5346 .bustype = BUS_SPI,
5347 .manufacture_id = EON_ID_NOPREFIX,
5348 .model_id = EON_EN25QH32,
5349 .total_size = 4096,
5350 .page_size = 256,
5351 /* supports SFDP */
5352 /* OTP: 1536B total; enter 0x3A */
Nico Huber1412d9f2024-01-06 18:25:49 +01005353 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI_38,
5354 .dummy_cycles =
5355 {
5356 .qpi_fast_read = 6,
5357 .qpi_fast_read_qio = 6,
5358 },
Sergii Dmytrukc6e8b1a2022-08-14 20:57:48 +03005359 .tested = TEST_OK_PREW,
5360 .probe = probe_spi_rdid,
5361 .probe_timing = TIMING_ZERO,
5362 .block_erasers =
5363 {
5364 {
5365 .eraseblocks = { {4 * 1024, 1024} },
5366 .block_erase = spi_block_erase_20,
5367 }, {
5368 .eraseblocks = { {32 * 1024, 128} },
5369 .block_erase = spi_block_erase_52,
5370 }, {
5371 .eraseblocks = { {64 * 1024, 64} },
5372 .block_erase = spi_block_erase_d8,
5373 }, {
5374 .eraseblocks = { {1024 * 4096, 1} },
5375 .block_erase = spi_block_erase_60,
5376 }, {
5377 .eraseblocks = { {1024 * 4096, 1} },
5378 .block_erase = spi_block_erase_c7,
5379 }
5380 },
5381 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
5382 .unlock = spi_disable_blockprotect_bp3_srwd,
5383 .write = spi_chip_write_256,
5384 .read = spi_chip_read,
5385 .voltage = {2700, 3600},
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005386 },
5387
5388 {
5389 .vendor = "Eon",
5390 .name = "EN25QH64",
5391 .bustype = BUS_SPI,
5392 .manufacture_id = EON_ID_NOPREFIX,
5393 .model_id = EON_EN25QH64,
5394 .total_size = 8192,
5395 .page_size = 256,
5396 /* supports SFDP */
5397 /* OTP: 512B total; enter 0x3A */
Nico Huber1412d9f2024-01-06 18:25:49 +01005398 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | (FEATURE_QPI_38 & ~FEATURE_FAST_READ_QOUT),
5399 .dummy_cycles =
5400 {
5401 .qpi_fast_read = 6,
5402 .qpi_fast_read_qio = 6,
5403 },
Stefan Tauner23e10b82016-01-23 16:16:49 +00005404 .tested = TEST_OK_PREW,
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005405 .probe = probe_spi_rdid,
5406 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005407 .block_erasers =
5408 {
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005409 {
5410 .eraseblocks = { {4 * 1024, 2048} },
5411 .block_erase = spi_block_erase_20,
5412 }, {
5413 .eraseblocks = { {64 * 1024, 128} },
5414 .block_erase = spi_block_erase_d8,
5415 }, {
5416 .eraseblocks = { { 8192 * 1024, 1} },
5417 .block_erase = spi_block_erase_60,
5418 }, {
5419 .eraseblocks = { { 8192 * 1024, 1} },
5420 .block_erase = spi_block_erase_c7,
5421 }
5422 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005423 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005424 .unlock = spi_disable_blockprotect_bp3_srwd,
5425 .write = spi_chip_write_256,
5426 .read = spi_chip_read,
5427 .voltage = {2700, 3600},
Sergii Dmytrukc6e8b1a2022-08-14 20:57:48 +03005428 .reg_bits =
5429 {
5430 .srp = {STATUS1, 7, RW},
5431 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
5432 .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */
5433 },
Nico Huberaabb3e02023-01-13 00:22:30 +01005434 .wp_write_cfg = spi_wp_write_cfg,
5435 .wp_read_cfg = spi_wp_read_cfg,
5436 .wp_get_ranges = spi_wp_get_available_ranges,
Sergii Dmytrukc6e8b1a2022-08-14 20:57:48 +03005437 .decode_range = decode_range_spi25_64k_block,
5438 },
5439
5440 {
5441 .vendor = "Eon",
5442 .name = "EN25QH64A",
5443 .bustype = BUS_SPI,
5444 .manufacture_id = EON_ID_NOPREFIX,
5445 .model_id = EON_EN25QH64,
5446 .total_size = 8192,
5447 .page_size = 256,
5448 /* supports SFDP */
5449 /* OTP: 512B total; enter 0x3A */
Nico Huber1412d9f2024-01-06 18:25:49 +01005450 /* Has a special, volatile status register 3 that is written with
5451 0xc0 like Set Read Parameters. Hence treating as QPI_SRP. */
5452 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI_SRP,
5453 .dummy_cycles = { .qpi_read_params = { 6, 4, 8, 10 } },
Sergii Dmytrukc6e8b1a2022-08-14 20:57:48 +03005454 .tested = TEST_OK_PREW,
5455 .probe = probe_spi_rdid,
5456 .probe_timing = TIMING_ZERO,
5457 .block_erasers =
5458 {
5459 {
5460 .eraseblocks = { {4 * 1024, 2048} },
5461 .block_erase = spi_block_erase_20,
5462 }, {
5463 .eraseblocks = { {32 * 1024, 256} },
5464 .block_erase = spi_block_erase_52,
5465 }, {
5466 .eraseblocks = { {64 * 1024, 128} },
5467 .block_erase = spi_block_erase_d8,
5468 }, {
5469 .eraseblocks = { { 8192 * 1024, 1} },
5470 .block_erase = spi_block_erase_60,
5471 }, {
5472 .eraseblocks = { { 8192 * 1024, 1} },
5473 .block_erase = spi_block_erase_c7,
5474 }
5475 },
5476 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
5477 .unlock = spi_disable_blockprotect_bp3_srwd,
5478 .write = spi_chip_write_256,
5479 .read = spi_chip_read,
5480 .voltage = {2700, 3600},
Nikolay Nikolaevc08542b2013-06-28 21:29:14 +00005481 },
5482
5483 {
5484 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005485 .name = "EN25S10",
5486 .bustype = BUS_SPI,
5487 .manufacture_id = EON_ID_NOPREFIX,
5488 .model_id = EON_EN25S10,
5489 .total_size = 128,
5490 .page_size = 256,
5491 /* OTP: 256B total; enter 0x3A */
5492 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5493 .tested = TEST_UNTESTED,
5494 .probe = probe_spi_rdid,
5495 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005496 .block_erasers =
5497 {
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005498 {
5499 .eraseblocks = { {4 * 1024, 32} },
5500 .block_erase = spi_block_erase_20,
5501 }, {
5502 .eraseblocks = { {32 * 1024, 4} },
5503 .block_erase = spi_block_erase_52,
5504 }, {
5505 .eraseblocks = { {128 * 1024, 1} },
5506 .block_erase = spi_block_erase_60,
5507 }, {
5508 .eraseblocks = { {128 * 1024, 1} },
5509 .block_erase = spi_block_erase_c7,
5510 }
5511 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00005512 .printlock = spi_prettyprint_status_register_bp2_srwd,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005513 .unlock = spi_disable_blockprotect,
5514 .write = spi_chip_write_256,
5515 .read = spi_chip_read,
5516 .voltage = {1650, 1950},
5517 },
5518
5519 {
5520 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005521 .name = "EN25S16",
5522 .bustype = BUS_SPI,
5523 .manufacture_id = EON_ID_NOPREFIX,
5524 .model_id = EON_EN25S16,
5525 .total_size = 2048,
5526 .page_size = 256,
5527 /* OTP: 512B total; enter 0x3A */
Nico Huber1412d9f2024-01-06 18:25:49 +01005528 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | (FEATURE_QPI_38 & ~FEATURE_FAST_READ_QOUT),
5529 .dummy_cycles =
5530 {
5531 .qpi_fast_read = 6,
5532 .qpi_fast_read_qio = 6,
5533 },
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005534 .tested = TEST_UNTESTED,
5535 .probe = probe_spi_rdid,
5536 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005537 .block_erasers =
5538 {
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005539 {
5540 .eraseblocks = { {4 * 1024, 512} },
5541 .block_erase = spi_block_erase_20,
5542 }, {
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005543 .eraseblocks = { {32 * 1024, 64} },
5544 .block_erase = spi_block_erase_d8,
5545 }, {
Aarya Chaumal478e1792022-06-04 01:34:44 +05305546 .eraseblocks = { {64 * 1024, 32} },
5547 .block_erase = spi_block_erase_52,
5548 }, {
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005549 .eraseblocks = { {2048 * 1024, 1} },
5550 .block_erase = spi_block_erase_60,
5551 }, {
5552 .eraseblocks = { {2048 * 1024, 1} },
5553 .block_erase = spi_block_erase_c7,
5554 }
5555 },
5556 .printlock = spi_prettyprint_status_register_en25s_wp,
5557 .unlock = spi_disable_blockprotect_bp3_srwd,
5558 .write = spi_chip_write_256,
5559 .read = spi_chip_read,
5560 .voltage = {1650, 1950},
5561 },
5562
5563 {
5564 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005565 .name = "EN25S20",
5566 .bustype = BUS_SPI,
5567 .manufacture_id = EON_ID_NOPREFIX,
5568 .model_id = EON_EN25S20,
5569 .total_size = 256,
5570 .page_size = 256,
5571 /* OTP: 256B total; enter 0x3A */
5572 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5573 .tested = TEST_UNTESTED,
5574 .probe = probe_spi_rdid,
5575 .probe_timing = TIMING_ZERO,
5576 .block_erasers =
5577 {
5578 {
5579 .eraseblocks = { {4 * 1024, 64} },
5580 .block_erase = spi_block_erase_20,
5581 }, {
5582 .eraseblocks = { {64 * 1024, 4} },
5583 .block_erase = spi_block_erase_d8,
5584 }, {
5585 .eraseblocks = { {256 * 1024, 1} },
5586 .block_erase = spi_block_erase_60,
5587 }, {
5588 .eraseblocks = { {256 * 1024, 1} },
5589 .block_erase = spi_block_erase_c7,
5590 }
5591 },
5592 .printlock = spi_prettyprint_status_register_bp2_srwd,
5593 .unlock = spi_disable_blockprotect,
5594 .write = spi_chip_write_256,
5595 .read = spi_chip_read,
5596 .voltage = {1650, 1950},
5597 },
5598
5599 {
5600 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005601 .name = "EN25S32",
5602 .bustype = BUS_SPI,
5603 .manufacture_id = EON_ID_NOPREFIX,
5604 .model_id = EON_EN25S32,
5605 .total_size = 4096,
5606 .page_size = 256,
5607 /* OTP: 512B total; enter 0x3A */
Nico Huber1412d9f2024-01-06 18:25:49 +01005608 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | (FEATURE_QPI_38 & ~FEATURE_FAST_READ_QOUT),
5609 .dummy_cycles =
5610 {
5611 .qpi_fast_read = 6,
5612 .qpi_fast_read_qio = 6,
5613 },
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005614 .tested = TEST_UNTESTED,
5615 .probe = probe_spi_rdid,
5616 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005617 .block_erasers =
5618 {
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005619 {
5620 .eraseblocks = { {4 * 1024, 1024} },
5621 .block_erase = spi_block_erase_20,
5622 }, {
5623 .eraseblocks = { {32 * 1024, 128} },
5624 .block_erase = spi_block_erase_52,
5625 }, {
5626 .eraseblocks = { {64 * 1024, 64} },
5627 .block_erase = spi_block_erase_d8,
5628 }, {
5629 .eraseblocks = { {4096 * 1024, 1} },
5630 .block_erase = spi_block_erase_60,
5631 }, {
5632 .eraseblocks = { {4096 * 1024, 1} },
5633 .block_erase = spi_block_erase_c7,
5634 }
5635 },
5636 .printlock = spi_prettyprint_status_register_en25s_wp,
5637 .unlock = spi_disable_blockprotect_bp3_srwd,
5638 .write = spi_chip_write_256,
5639 .read = spi_chip_read,
5640 .voltage = {1650, 1950},
5641 },
5642
5643 {
5644 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005645 .name = "EN25S40",
5646 .bustype = BUS_SPI,
5647 .manufacture_id = EON_ID_NOPREFIX,
5648 .model_id = EON_EN25S40,
5649 .total_size = 512,
5650 .page_size = 256,
5651 /* OTP: 256B total; enter 0x3A */
5652 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5653 .tested = TEST_OK_PREW,
5654 .probe = probe_spi_rdid,
5655 .probe_timing = TIMING_ZERO,
5656 .block_erasers =
5657 {
5658 {
5659 .eraseblocks = { {4 * 1024, 128} },
5660 .block_erase = spi_block_erase_20,
5661 }, {
5662 .eraseblocks = { {64 * 1024, 8} },
5663 .block_erase = spi_block_erase_d8,
5664 }, {
5665 .eraseblocks = { {512 * 1024, 1} },
5666 .block_erase = spi_block_erase_60,
5667 }, {
5668 .eraseblocks = { {512 * 1024, 1} },
5669 .block_erase = spi_block_erase_c7,
5670 }
5671 },
5672 .printlock = spi_prettyprint_status_register_bp2_srwd,
5673 .unlock = spi_disable_blockprotect,
5674 .write = spi_chip_write_256,
5675 .read = spi_chip_read,
5676 .voltage = {1650, 1950},
5677 },
5678
5679 {
5680 .vendor = "Eon",
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005681 .name = "EN25S64",
5682 .bustype = BUS_SPI,
5683 .manufacture_id = EON_ID_NOPREFIX,
5684 .model_id = EON_EN25S64,
5685 .total_size = 8192,
5686 .page_size = 256,
5687 /* OTP: 512B total; enter 0x3A */
Nico Huber1412d9f2024-01-06 18:25:49 +01005688 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | (FEATURE_QPI_38 & ~FEATURE_FAST_READ_QOUT),
5689 .dummy_cycles =
5690 {
5691 .qpi_fast_read = 6,
5692 .qpi_fast_read_qio = 6,
5693 },
Nikolai Artemievdf889fa2021-03-23 17:10:45 +11005694 .tested = TEST_OK_PREW,
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005695 .probe = probe_spi_rdid,
5696 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10005697 .block_erasers =
5698 {
Nikolay Nikolaevd0e3ea12013-06-28 21:29:08 +00005699 {
5700 .eraseblocks = { {4 * 1024, 2048} },
5701 .block_erase = spi_block_erase_20,
5702 }, {
5703 .eraseblocks = { {64 * 1024, 128} },
5704 .block_erase = spi_block_erase_d8,
5705 }, {
5706 .eraseblocks = { {8192 * 1024, 1} },
5707 .block_erase = spi_block_erase_60,
5708 }, {
5709 .eraseblocks = { {8192 * 1024, 1} },
5710 .block_erase = spi_block_erase_c7,
5711 }
5712 },
5713 .printlock = spi_prettyprint_status_register_en25s_wp,
5714 .unlock = spi_disable_blockprotect_bp3_srwd,
5715 .write = spi_chip_write_256,
5716 .read = spi_chip_read,
5717 .voltage = {1650, 1950},
5718 },
5719
5720 {
5721 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005722 .name = "EN25S80",
5723 .bustype = BUS_SPI,
5724 .manufacture_id = EON_ID_NOPREFIX,
5725 .model_id = EON_EN25S80,
5726 .total_size = 1024,
5727 .page_size = 256,
5728 /* OTP: 256B total; enter 0x3A */
5729 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
5730 .tested = TEST_UNTESTED,
5731 .probe = probe_spi_rdid,
5732 .probe_timing = TIMING_ZERO,
Russ Dill3cd5a122010-03-05 08:44:11 +00005733 .block_erasers =
5734 {
5735 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005736 .eraseblocks = { {4 * 1024, 256} },
5737 .block_erase = spi_block_erase_20,
5738 }, {
5739 .eraseblocks = { {64 * 1024, 16} },
5740 .block_erase = spi_block_erase_d8,
5741 }, {
5742 .eraseblocks = { {1024 * 1024, 1} },
5743 .block_erase = spi_block_erase_60,
5744 }, {
5745 .eraseblocks = { {1024 * 1024, 1} },
5746 .block_erase = spi_block_erase_c7,
5747 }
Russ Dill3cd5a122010-03-05 08:44:11 +00005748 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005749 .printlock = spi_prettyprint_status_register_bp2_srwd,
5750 .unlock = spi_disable_blockprotect,
5751 .write = spi_chip_write_256,
5752 .read = spi_chip_read,
5753 .voltage = {1650, 1950},
Russ Dill3cd5a122010-03-05 08:44:11 +00005754 },
5755
5756 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00005757 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005758 .name = "EN29F002(A)(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005759 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005760 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005761 .model_id = EON_EN29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005762 .total_size = 256,
5763 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00005764 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Alan Green4362e622019-08-26 15:02:12 +10005765 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005766 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005767 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005768 .block_erasers =
5769 {
5770 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005771 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005772 {16 * 1024, 1},
Michael Karchere3cb0a12010-03-13 23:47:09 +00005773 {8 * 1024, 2},
5774 {32 * 1024, 1},
5775 {64 * 1024, 3},
Sean Nelson6b11ad22009-12-23 17:05:59 +00005776 },
5777 .block_erase = erase_sector_jedec,
5778 }, {
5779 .eraseblocks = { {256 * 1024, 1} },
5780 .block_erase = erase_chip_block_jedec,
5781 },
5782 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005783 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005784 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005785 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +01005786 .prepare_access = prepare_memory_access,
5787 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +00005788 },
5789
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005790 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +00005791 .vendor = "Eon",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005792 .name = "EN29F002(A)(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00005793 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005794 .manufacture_id = EON_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00005795 .model_id = EON_EN29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005796 .total_size = 256,
5797 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +00005798 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +00005799 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005800 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00005801 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00005802 .block_erasers =
5803 {
5804 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005805 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00005806 {64 * 1024, 3},
Michael Karchere3cb0a12010-03-13 23:47:09 +00005807 {32 * 1024, 1},
5808 {8 * 1024, 2},
5809 {16 * 1024, 1},
Sean Nelson6b11ad22009-12-23 17:05:59 +00005810 },
5811 .block_erase = erase_sector_jedec,
5812 }, {
5813 .eraseblocks = { {256 * 1024, 1} },
5814 .block_erase = erase_chip_block_jedec,
5815 },
5816 },
Michael Karcher1c296ca2009-11-27 17:49:42 +00005817 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00005818 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00005819 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +01005820 .prepare_access = prepare_memory_access,
5821 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +00005822 },
5823
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00005824 {
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005825 .vendor = "Eon",
Alan Green1f9cc7d2019-07-01 11:10:45 +10005826 .name = "EN29F010",
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005827 .bustype = BUS_PARALLEL,
5828 .manufacture_id = EON_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005829 .model_id = EON_EN29F010,
5830 .total_size = 128,
5831 .page_size = 128,
5832 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
5833 .tested = TEST_OK_PRE,
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005834 .probe = probe_jedec,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005835 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005836 .block_erasers =
5837 {
5838 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005839 .eraseblocks = { {16 * 1024, 8} },
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005840 .block_erase = erase_sector_jedec,
5841 },
5842 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005843 .eraseblocks = { {128 * 1024, 1} },
Denis 'GNUtoo' Cariklib5f9d5c2014-12-07 21:57:53 +00005844 .block_erase = erase_chip_block_jedec,
5845 },
5846 },
5847 .write = write_jedec_1,
5848 .read = read_memmapped,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005849 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +01005850 .prepare_access = prepare_memory_access,
5851 .finish_access = finish_memory_access,
Rudolf Marek47eff6b2012-04-14 22:51:40 +00005852 },
5853
5854 {
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00005855 .vendor = "Eon",
5856 .name = "EN29GL064(A)B",
5857 .bustype = BUS_PARALLEL,
5858 .manufacture_id = EON_ID,
5859 .model_id = EON_EN29GL064B,
5860 .total_size = 8192,
5861 .page_size = 128 * 1024, /* actual page size is 16 */
5862 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5863 .tested = TEST_UNTESTED,
5864 .probe = probe_jedec_29gl,
5865 .probe_timing = TIMING_ZERO,
5866 .block_erasers =
5867 {
5868 {
5869 .eraseblocks = {
5870 {8 * 1024, 8},
5871 {64 * 1024, 127},
5872 },
5873 .block_erase = erase_sector_jedec,
5874 }, {
5875 .eraseblocks = { {8 * 1024 * 1024, 1} },
5876 .block_erase = erase_chip_block_jedec,
5877 },
5878 },
5879 .write = write_jedec_1,
5880 .read = read_memmapped,
5881 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +01005882 .prepare_access = prepare_memory_access,
5883 .finish_access = finish_memory_access,
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00005884 },
5885
5886 {
5887 .vendor = "Eon",
5888 .name = "EN29GL064(A)T",
5889 .bustype = BUS_PARALLEL,
5890 .manufacture_id = EON_ID,
5891 .model_id = EON_EN29GL064T,
5892 .total_size = 8192,
5893 .page_size = 128 * 1024, /* actual page size is 16 */
5894 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5895 .tested = TEST_UNTESTED,
5896 .probe = probe_jedec_29gl,
5897 .probe_timing = TIMING_ZERO,
5898 .block_erasers =
5899 {
5900 {
5901 .eraseblocks = {
5902 {64 * 1024, 127},
5903 {8 * 1024, 8},
5904 },
5905 .block_erase = erase_sector_jedec,
5906 }, {
5907 .eraseblocks = { {8 * 1024 * 1024, 1} },
5908 .block_erase = erase_chip_block_jedec,
5909 },
5910 },
5911 .write = write_jedec_1,
5912 .read = read_memmapped,
5913 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +01005914 .prepare_access = prepare_memory_access,
5915 .finish_access = finish_memory_access,
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00005916 },
5917
5918 {
5919 .vendor = "Eon",
5920 .name = "EN29GL064H/L",
5921 .bustype = BUS_PARALLEL,
5922 .manufacture_id = EON_ID,
5923 .model_id = EON_EN29GL064HL,
5924 .total_size = 8192,
5925 .page_size = 128 * 1024, /* actual page size is 16 */
5926 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5927 .tested = TEST_UNTESTED,
5928 .probe = probe_jedec_29gl,
5929 .probe_timing = TIMING_ZERO,
5930 .block_erasers =
5931 {
5932 {
5933 .eraseblocks = { {64 * 1024, 128} },
5934 .block_erase = erase_sector_jedec,
5935 }, {
5936 .eraseblocks = { {8 * 1024 * 1024, 1} },
5937 .block_erase = erase_chip_block_jedec,
5938 },
5939 },
5940 .write = write_jedec_1,
5941 .read = read_memmapped,
5942 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +01005943 .prepare_access = prepare_memory_access,
5944 .finish_access = finish_memory_access,
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00005945 },
5946
5947 {
5948 .vendor = "Eon",
5949 .name = "EN29GL128",
5950 .bustype = BUS_PARALLEL,
5951 .manufacture_id = EON_ID,
5952 .model_id = EON_EN29GL128HL,
5953 .total_size = 16384,
5954 .page_size = 128 * 1024, /* actual page size is 16 */
5955 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
5956 .tested = TEST_UNTESTED,
5957 .probe = probe_jedec_29gl,
5958 .probe_timing = TIMING_ZERO,
5959 .block_erasers =
5960 {
5961 {
5962 .eraseblocks = { {128 * 1024, 128} },
5963 .block_erase = erase_sector_jedec,
5964 }, {
5965 .eraseblocks = { {16 * 1024 * 1024, 1} },
5966 .block_erase = erase_chip_block_jedec,
5967 },
5968 },
5969 .write = write_jedec_1,
5970 .read = read_memmapped,
5971 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +01005972 .prepare_access = prepare_memory_access,
5973 .finish_access = finish_memory_access,
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00005974 },
5975
5976 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10005977 .vendor = "Eon",
5978 .name = "EN29LV040(A)",
5979 .bustype = BUS_PARALLEL,
5980 .manufacture_id = EON_ID,
5981 .model_id = EON_EN29LV040,
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005982 .total_size = 512,
Alan Green1f9cc7d2019-07-01 11:10:45 +10005983 .page_size = 4 * 1024,
5984 .tested = TEST_OK_PREW,
5985 .probe = probe_jedec,
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005986 .probe_timing = TIMING_ZERO,
5987 .block_erasers =
5988 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00005989 {
5990 .eraseblocks = { {64 * 1024, 8} },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005991 .block_erase = erase_sector_jedec,
5992 },
5993 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00005994 .eraseblocks = { {512 * 1024, 1} },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005995 .block_erase = erase_chip_block_jedec,
5996 },
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00005997 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10005998 .write = write_jedec_1,
5999 .read = read_memmapped,
6000 .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R and 55R, others 2.7-3.6V */
Nico Huber9eec4072023-01-12 01:17:30 +01006001 .prepare_access = prepare_memory_access,
6002 .finish_access = finish_memory_access,
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00006003 },
6004
6005 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006006 .vendor = "Eon",
6007 .name = "EN29LV640B",
6008 .bustype = BUS_PARALLEL,
6009 .manufacture_id = EON_ID,
6010 .model_id = EON_EN29LV640B,
6011 .total_size = 8192,
6012 .page_size = 8192,
6013 .feature_bits = FEATURE_ADDR_SHIFTED,
6014 .tested = TEST_OK_PREW,
6015 .probe = probe_en29lv640b,
6016 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00006017 .block_erasers =
6018 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00006019 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006020 .eraseblocks = {
6021 {8 * 1024, 8},
6022 {64 * 1024, 127},
6023 },
6024 .block_erase = erase_block_jedec,
Stefan Tauner0be072c2016-03-13 15:16:30 +00006025 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006026 .eraseblocks = { {8 * 1024 * 1024, 1} },
6027 .block_erase = erase_chip_block_jedec,
6028 },
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00006029 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10006030 .write = write_en29lv640b,
6031 .read = read_memmapped,
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00006032 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +01006033 .prepare_access = prepare_memory_access,
6034 .finish_access = finish_memory_access,
Hatim Kanchwalab3d7fba2016-02-01 00:27:25 +00006035 },
6036
6037 {
Jakob Petersson0cf3e122019-02-18 01:55:43 +01006038 .vendor = "Fudan",
6039 .name = "FM25F005",
6040 .bustype = BUS_SPI,
6041 .manufacture_id = FUDAN_ID_NOPREFIX,
6042 .model_id = FUDAN_FM25F005,
6043 .total_size = 64,
6044 .page_size = 256,
6045 /* OTP: 256B total; enter 0x3A */
6046 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6047 .tested = TEST_UNTESTED,
6048 .probe = probe_spi_rdid,
6049 .probe_timing = TIMING_ZERO,
6050 .block_erasers = {
6051 {
6052 .eraseblocks = { {4 * 1024, 16} },
6053 .block_erase = spi_block_erase_20,
6054 }, {
6055 .eraseblocks = { {32 * 1024, 2} },
6056 .block_erase = spi_block_erase_52,
6057 }, {
6058 .eraseblocks = { {64 * 1024, 1} },
6059 .block_erase = spi_block_erase_d8,
6060 }, {
6061 .eraseblocks = { {64 * 1024, 1} },
6062 .block_erase = spi_block_erase_60,
6063 }, {
6064 .eraseblocks = { {64 * 1024, 1} },
6065 .block_erase = spi_block_erase_c7,
6066 }
6067 },
6068 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
6069 .unlock = spi_disable_blockprotect_bp2_srwd,
6070 .write = spi_chip_write_256,
6071 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
6072 .voltage = {2700, 3600}, /* 2.3-2.7V acceptable results in lower performance */
6073 },
6074
6075 {
6076 .vendor = "Fudan",
6077 .name = "FM25F01",
6078 .bustype = BUS_SPI,
6079 .manufacture_id = FUDAN_ID_NOPREFIX,
6080 .model_id = FUDAN_FM25F01,
6081 .total_size = 128,
6082 .page_size = 256,
6083 /* OTP: 256B total; enter 0x3A */
6084 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6085 .tested = TEST_UNTESTED,
6086 .probe = probe_spi_rdid,
6087 .probe_timing = TIMING_ZERO,
6088 .block_erasers = {
6089 {
6090 .eraseblocks = { {4 * 1024, 32} },
6091 .block_erase = spi_block_erase_20,
6092 }, {
6093 .eraseblocks = { {32 * 1024, 4} },
6094 .block_erase = spi_block_erase_52,
6095 }, {
6096 .eraseblocks = { {64 * 1024, 2} },
6097 .block_erase = spi_block_erase_d8,
6098 }, {
6099 .eraseblocks = { {128 * 1024, 1} },
6100 .block_erase = spi_block_erase_60,
6101 }, {
6102 .eraseblocks = { {128 * 1024, 1} },
6103 .block_erase = spi_block_erase_c7,
6104 }
6105 },
6106 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
6107 .unlock = spi_disable_blockprotect_bp2_srwd,
6108 .write = spi_chip_write_256,
6109 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
6110 .voltage = {2700, 3600}, /* 2.3-2.7V acceptable results in lower performance */
6111 },
6112
6113 {
6114 .vendor = "Fudan",
6115 .name = "FM25F02(A)",
6116 .bustype = BUS_SPI,
6117 .manufacture_id = FUDAN_ID_NOPREFIX,
6118 .model_id = FUDAN_FM25F02,
6119 .total_size = 256,
6120 .page_size = 256,
6121 /* OTP: 256B total; enter 0x3A, (A version only:) read ID 0x4B */
6122 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6123 .tested = TEST_UNTESTED,
6124 .probe = probe_spi_rdid,
6125 .probe_timing = TIMING_ZERO,
6126 .block_erasers = {
6127 {
6128 .eraseblocks = { {4 * 1024, 64} },
6129 .block_erase = spi_block_erase_20,
6130 }, {
6131 .eraseblocks = { {32 * 1024, 8} },
6132 .block_erase = spi_block_erase_52,
6133 }, {
6134 .eraseblocks = { {64 * 1024, 4} },
6135 .block_erase = spi_block_erase_d8,
6136 }, {
6137 .eraseblocks = { {1024 * 256, 1} },
6138 .block_erase = spi_block_erase_60,
6139 }, {
6140 .eraseblocks = { {1024 * 256, 1} },
6141 .block_erase = spi_block_erase_c7,
6142 },
6143 },
6144 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
6145 .unlock = spi_disable_blockprotect_bp2_srwd,
6146 .write = spi_chip_write_256,
6147 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
6148 .voltage = {2700, 3600}, /* 2.3-2.7V acceptable results in lower performance */
6149 },
6150
6151 {
6152 .vendor = "Fudan",
6153 .name = "FM25F04(A)",
6154 .bustype = BUS_SPI,
6155 .manufacture_id = FUDAN_ID_NOPREFIX,
6156 .model_id = FUDAN_FM25F04,
6157 .total_size = 512,
6158 .page_size = 256,
6159 /* OTP: 256B total; enter 0x3A, (A version only:) read ID 0x4B */
6160 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
6161 .tested = TEST_UNTESTED,
6162 .probe = probe_spi_rdid,
6163 .probe_timing = TIMING_ZERO,
6164 .block_erasers = {
6165 {
6166 .eraseblocks = { {4 * 1024, 128} },
6167 .block_erase = spi_block_erase_20,
6168 }, {
6169 .eraseblocks = { {32 * 1024, 16} },
6170 .block_erase = spi_block_erase_52,
6171 }, {
6172 .eraseblocks = { {64 * 1024, 8} },
6173 .block_erase = spi_block_erase_d8,
6174 }, {
6175 .eraseblocks = { {1024 * 512, 1} },
6176 .block_erase = spi_block_erase_60,
6177 }, {
6178 .eraseblocks = { {1024 * 512, 1} },
6179 .block_erase = spi_block_erase_c7,
6180 },
6181 },
6182 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
6183 .unlock = spi_disable_blockprotect_bp2_srwd,
6184 .write = spi_chip_write_256,
6185 .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */
6186 .voltage = {2700, 3600},
6187 },
6188
6189 {
6190 .vendor = "Fudan",
6191 .name = "FM25Q08",
6192 .bustype = BUS_SPI,
6193 .manufacture_id = FUDAN_ID_NOPREFIX,
6194 .model_id = FUDAN_FM25Q08,
6195 .total_size = 1024,
6196 .page_size = 256,
6197 /* supports SFDP */
6198 /* OTP: 1024B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber1412d9f2024-01-06 18:25:49 +01006199 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI_SRP,
6200 .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } },
Jakob Petersson0cf3e122019-02-18 01:55:43 +01006201 .tested = TEST_UNTESTED,
6202 .probe = probe_spi_rdid,
6203 .probe_timing = TIMING_ZERO,
6204 .block_erasers = {
6205 {
6206 .eraseblocks = { {4 * 1024, 256} },
6207 .block_erase = spi_block_erase_20,
6208 }, {
6209 .eraseblocks = { {32 * 1024, 32} },
6210 .block_erase = spi_block_erase_52,
6211 }, {
6212 .eraseblocks = { {64 * 1024, 16} },
6213 .block_erase = spi_block_erase_d8,
6214 }, {
6215 .eraseblocks = { {1024 * 1024, 1} },
6216 .block_erase = spi_block_erase_60,
6217 }, {
6218 .eraseblocks = { {1024 * 1024, 1} },
6219 .block_erase = spi_block_erase_c7,
6220 },
6221 },
6222 .printlock = spi_prettyprint_status_register_bp2_tb_bpl, /* bit6 selects size of protected blocks; TODO: SR2 */
6223 .unlock = spi_disable_blockprotect_bp2_srwd,
6224 .write = spi_chip_write_256,
Nico Huber1412d9f2024-01-06 18:25:49 +01006225 .read = spi_chip_read,
Jakob Petersson0cf3e122019-02-18 01:55:43 +01006226 .voltage = {2700, 3600},
6227 },
6228
6229 {
6230 .vendor = "Fudan",
6231 .name = "FM25Q16",
6232 .bustype = BUS_SPI,
6233 .manufacture_id = FUDAN_ID_NOPREFIX,
6234 .model_id = FUDAN_FM25Q16,
6235 .total_size = 2048,
6236 .page_size = 256,
6237 /* supports SFDP */
6238 /* OTP: 1024B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber1412d9f2024-01-06 18:25:49 +01006239 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI_SRP,
6240 .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } },
Jakob Petersson0cf3e122019-02-18 01:55:43 +01006241 .tested = TEST_UNTESTED,
6242 .probe = probe_spi_rdid,
6243 .probe_timing = TIMING_ZERO,
6244 .block_erasers = {
6245 {
6246 .eraseblocks = { {4 * 1024, 512} },
6247 .block_erase = spi_block_erase_20,
6248 }, {
6249 .eraseblocks = { {32 * 1024, 64} },
6250 .block_erase = spi_block_erase_52,
6251 }, {
6252 .eraseblocks = { {64 * 1024, 32} },
6253 .block_erase = spi_block_erase_d8,
6254 }, {
6255 .eraseblocks = { {2 * 1024 * 1024, 1} },
6256 .block_erase = spi_block_erase_60,
6257 }, {
6258 .eraseblocks = { {2 * 1024 * 1024, 1} },
6259 .block_erase = spi_block_erase_c7,
6260 }
6261 },
6262 .printlock = spi_prettyprint_status_register_bp2_tb_bpl, /* bit6 selects size of protected blocks; TODO: SR2 */
6263 .unlock = spi_disable_blockprotect_bp2_srwd,
6264 .write = spi_chip_write_256,
Nico Huber1412d9f2024-01-06 18:25:49 +01006265 .read = spi_chip_read,
Jakob Petersson0cf3e122019-02-18 01:55:43 +01006266 .voltage = {2700, 3600},
6267 },
6268
6269 {
6270 .vendor = "Fudan",
6271 .name = "FM25Q32",
6272 .bustype = BUS_SPI,
6273 .manufacture_id = FUDAN_ID_NOPREFIX,
6274 .model_id = FUDAN_FM25Q32,
6275 .total_size = 4096,
6276 .page_size = 256,
6277 /* supports SFDP */
6278 /* OTP: 1024B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber1412d9f2024-01-06 18:25:49 +01006279 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI_SRP,
6280 .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } },
Jakob Petersson0cf3e122019-02-18 01:55:43 +01006281 .tested = TEST_UNTESTED,
6282 .probe = probe_spi_rdid,
6283 .probe_timing = TIMING_ZERO,
6284 .block_erasers = {
6285 {
6286 .eraseblocks = { {4 * 1024, 1024} },
6287 .block_erase = spi_block_erase_20,
6288 }, {
6289 .eraseblocks = { {32 * 1024, 128} },
6290 .block_erase = spi_block_erase_52,
6291 }, {
6292 .eraseblocks = { {64 * 1024, 64} },
6293 .block_erase = spi_block_erase_d8,
6294 }, {
6295 .eraseblocks = { {4 * 1024 * 1024, 1} },
6296 .block_erase = spi_block_erase_60,
6297 }, {
6298 .eraseblocks = { {4 * 1024 * 1024, 1} },
6299 .block_erase = spi_block_erase_c7,
6300 },
6301 },
6302 .printlock = spi_prettyprint_status_register_bp2_tb_bpl, /* bit6 selects size of protected blocks; TODO: SR2 */
6303 .unlock = spi_disable_blockprotect_bp2_srwd,
6304 .write = spi_chip_write_256,
Nico Huber1412d9f2024-01-06 18:25:49 +01006305 .read = spi_chip_read,
Jakob Petersson0cf3e122019-02-18 01:55:43 +01006306 .voltage = {2700, 3600},
6307 },
6308
6309 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006310 .vendor = "Fujitsu",
6311 .name = "MBM29F004BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006312 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006313 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006314 .model_id = FUJITSU_MBM29F004BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006315 .total_size = 512,
6316 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006317 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006318 .tested = TEST_UNTESTED,
6319 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006320 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00006321 .block_erasers =
6322 {
6323 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006324 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00006325 {16 * 1024, 1},
6326 {8 * 1024, 2},
6327 {32 * 1024, 1},
6328 {64 * 1024, 7},
6329 },
Sean Nelson35727f72010-01-28 23:55:12 +00006330 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006331 }, {
6332 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006333 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006334 },
6335 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006336 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006337 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006338 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +01006339 .prepare_access = prepare_memory_access,
6340 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +00006341 },
6342
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006343 {
6344 .vendor = "Fujitsu",
6345 .name = "MBM29F004TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006346 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006347 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006348 .model_id = FUJITSU_MBM29F004TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006349 .total_size = 512,
6350 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +00006351 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006352 .tested = TEST_UNTESTED,
6353 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +00006354 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson6b11ad22009-12-23 17:05:59 +00006355 .block_erasers =
6356 {
6357 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006358 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00006359 {64 * 1024, 7},
6360 {32 * 1024, 1},
6361 {8 * 1024, 2},
6362 {16 * 1024, 1},
6363 },
Sean Nelson35727f72010-01-28 23:55:12 +00006364 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006365 }, {
6366 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +00006367 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006368 },
6369 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006370 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006371 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00006372 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +01006373 .prepare_access = prepare_memory_access,
6374 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +00006375 },
6376
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006377 {
Sean Nelson35727f72010-01-28 23:55:12 +00006378 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006379 .vendor = "Fujitsu",
6380 .name = "MBM29F400BC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006381 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006382 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006383 .model_id = FUJITSU_MBM29F400BC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006384 .total_size = 512,
6385 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006386 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +00006387 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006388 .probe = probe_jedec,
6389 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson6b11ad22009-12-23 17:05:59 +00006390 .block_erasers =
6391 {
6392 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006393 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00006394 {16 * 1024, 1},
6395 {8 * 1024, 2},
6396 {32 * 1024, 1},
6397 {64 * 1024, 7},
6398 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006399 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006400 }, {
6401 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006402 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006403 },
6404 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006405 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006406 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006407 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
Nico Huber9eec4072023-01-12 01:17:30 +01006408 .prepare_access = prepare_memory_access,
6409 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +00006410 },
6411
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006412 {
6413 .vendor = "Fujitsu",
6414 .name = "MBM29F400TC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00006415 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006416 .manufacture_id = FUJITSU_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00006417 .model_id = FUJITSU_MBM29F400TC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006418 .total_size = 512,
6419 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006420 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006421 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006422 .probe = probe_jedec,
6423 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson6b11ad22009-12-23 17:05:59 +00006424 .block_erasers =
6425 {
6426 {
Stefan Tauner0554ca52013-07-25 22:54:25 +00006427 .eraseblocks = {
Sean Nelson6b11ad22009-12-23 17:05:59 +00006428 {64 * 1024, 7},
6429 {32 * 1024, 1},
6430 {8 * 1024, 2},
6431 {16 * 1024, 1},
6432 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006433 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006434 }, {
6435 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006436 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +00006437 },
6438 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006439 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +00006440 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00006441 .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */
Nico Huber9eec4072023-01-12 01:17:30 +01006442 .prepare_access = prepare_memory_access,
6443 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +00006444 },
6445
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00006446 {
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006447 .vendor = "Fujitsu",
6448 .name = "MBM29LV160BE",
6449 .bustype = BUS_PARALLEL,
6450 .manufacture_id = FUJITSU_ID,
6451 .model_id = FUJITSU_MBM29LV160BE,
6452 .total_size = 2 * 1024,
6453 .page_size = 0,
6454 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET,
6455 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006456 .probe = probe_jedec,
6457 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006458 .block_erasers =
6459 {
6460 {
6461 .eraseblocks = {
6462 {16 * 1024, 1},
6463 {8 * 1024, 2},
6464 {32 * 1024, 1},
6465 {64 * 1024, 31},
6466 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006467 .block_erase = erase_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006468 }, {
6469 .eraseblocks = { {2048 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006470 .block_erase = erase_chip_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006471 },
6472 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006473 .write = write_jedec_1, /* Supports a fast mode too */
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006474 .read = read_memmapped,
6475 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */
Nico Huber9eec4072023-01-12 01:17:30 +01006476 .prepare_access = prepare_memory_access,
6477 .finish_access = finish_memory_access,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006478 },
6479
6480 {
6481 .vendor = "Fujitsu",
6482 .name = "MBM29LV160TE",
6483 .bustype = BUS_PARALLEL,
6484 .manufacture_id = FUJITSU_ID,
6485 .model_id = FUJITSU_MBM29LV160TE,
6486 .total_size = 2 * 1024,
6487 .page_size = 0,
6488 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET,
6489 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006490 .probe = probe_jedec,
6491 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006492 .block_erasers =
6493 {
6494 {
6495 .eraseblocks = {
6496 {64 * 1024, 31},
6497 {32 * 1024, 1},
6498 {8 * 1024, 2},
6499 {16 * 1024, 1},
6500 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006501 .block_erase = erase_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006502 }, {
6503 .eraseblocks = { {2048 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006504 .block_erase = erase_chip_block_jedec,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006505 },
6506 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +00006507 .write = write_jedec_1, /* Supports a fast mode too */
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006508 .read = read_memmapped,
6509 .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */
Nico Huber9eec4072023-01-12 01:17:30 +01006510 .prepare_access = prepare_memory_access,
6511 .finish_access = finish_memory_access,
Stefan Tauner6db8bad2013-08-25 13:31:43 +00006512 },
6513
6514 {
Justin Chevrier1525b2a2012-04-14 21:59:23 +00006515 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006516 .name = "GD25B128B/GD25Q128B",
Roman Titov95edc892015-04-03 21:29:04 +00006517 .bustype = BUS_SPI,
6518 .manufacture_id = GIGADEVICE_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006519 .model_id = GIGADEVICE_GD25Q128,
6520 .total_size = 16384,
Roman Titov95edc892015-04-03 21:29:04 +00006521 .page_size = 256,
6522 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Nico Huber4da971f2024-03-27 01:18:12 +01006523 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QIO,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006524 .tested = TEST_OK_PREW,
Roman Titov95edc892015-04-03 21:29:04 +00006525 .probe = probe_spi_rdid,
6526 .probe_timing = TIMING_ZERO,
6527 .block_erasers =
6528 {
6529 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006530 .eraseblocks = { {4 * 1024, 4096} },
Roman Titov95edc892015-04-03 21:29:04 +00006531 .block_erase = spi_block_erase_20,
6532 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006533 .eraseblocks = { {32 * 1024, 512} },
Roman Titov95edc892015-04-03 21:29:04 +00006534 .block_erase = spi_block_erase_52,
6535 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006536 .eraseblocks = { {64 * 1024, 256} },
Roman Titov95edc892015-04-03 21:29:04 +00006537 .block_erase = spi_block_erase_d8,
6538 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006539 .eraseblocks = { {16 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00006540 .block_erase = spi_block_erase_60,
6541 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006542 .eraseblocks = { {16 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00006543 .block_erase = spi_block_erase_c7,
6544 }
6545 },
Nico Huber4da971f2024-03-27 01:18:12 +01006546 .reg_bits =
6547 {
6548 .qe = {STATUS2, 1, RW}, /* RO 1 in GD25B128B case */
6549 },
Roman Titov95edc892015-04-03 21:29:04 +00006550 .printlock = spi_prettyprint_status_register_bp4_srwd,
6551 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6552 .write = spi_chip_write_256,
Nico Huber4da971f2024-03-27 01:18:12 +01006553 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006554 .voltage = {2700, 3600},
Roman Titov95edc892015-04-03 21:29:04 +00006555 },
6556
6557 {
6558 .vendor = "GigaDevice",
Edward O'Callaghan981a3442021-06-22 11:16:55 +10006559 .name = "GD25LQ128C/GD25LQ128D/GD25LQ128E",
Roman Titov95edc892015-04-03 21:29:04 +00006560 .bustype = BUS_SPI,
6561 .manufacture_id = GIGADEVICE_ID,
Alan Green188127e2019-08-06 16:10:34 +10006562 .model_id = GIGADEVICE_GD25LQ128CD,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006563 .total_size = 16384,
Roman Titov95edc892015-04-03 21:29:04 +00006564 .page_size = 256,
6565 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Nico Huber4da971f2024-03-27 01:18:12 +01006566 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QPI_SRP,
6567 .dummy_cycles = { .qpi_read_params = { 4, 6, 8, 8 } },
Sergii Dmytrukc74eac22022-10-06 18:17:58 +03006568 .tested = TEST_OK_PREWB,
Roman Titov95edc892015-04-03 21:29:04 +00006569 .probe = probe_spi_rdid,
6570 .probe_timing = TIMING_ZERO,
6571 .block_erasers =
6572 {
6573 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006574 .eraseblocks = { {4 * 1024, 4096} },
Roman Titov95edc892015-04-03 21:29:04 +00006575 .block_erase = spi_block_erase_20,
6576 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006577 .eraseblocks = { {32 * 1024, 512} },
Roman Titov95edc892015-04-03 21:29:04 +00006578 .block_erase = spi_block_erase_52,
6579 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006580 .eraseblocks = { {64 * 1024, 256} },
Roman Titov95edc892015-04-03 21:29:04 +00006581 .block_erase = spi_block_erase_d8,
6582 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006583 .eraseblocks = { {16 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00006584 .block_erase = spi_block_erase_60,
6585 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006586 .eraseblocks = { {16 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00006587 .block_erase = spi_block_erase_c7,
6588 }
6589 },
6590 .printlock = spi_prettyprint_status_register_bp4_srwd,
6591 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6592 .write = spi_chip_write_256,
Nico Huber4da971f2024-03-27 01:18:12 +01006593 .read = spi_chip_read,
Roman Titov95edc892015-04-03 21:29:04 +00006594 .voltage = {1695, 1950},
Nikolai Artemievc6c3f282021-10-20 23:34:15 +11006595 .reg_bits =
6596 {
Nico Huber4da971f2024-03-27 01:18:12 +01006597 .qe = {STATUS2, 1, RW},
Nikolai Artemievc6c3f282021-10-20 23:34:15 +11006598 .srp = {STATUS1, 7, RW},
6599 .srl = {STATUS2, 0, RW},
6600 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
6601 .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */
6602 .sec = {STATUS1, 6, RW}, /* Called BP4 in datasheet, acts like SEC */
6603 .cmp = {STATUS2, 6, RW},
6604 },
Nico Huberaabb3e02023-01-13 00:22:30 +01006605 .wp_write_cfg = spi_wp_write_cfg,
6606 .wp_read_cfg = spi_wp_read_cfg,
6607 .wp_get_ranges = spi_wp_get_available_ranges,
Nikolai Artemievc9feb1b2021-10-21 01:35:13 +11006608 .decode_range = decode_range_spi25,
Roman Titov95edc892015-04-03 21:29:04 +00006609 },
6610
6611 {
6612 .vendor = "GigaDevice",
6613 .name = "GD25LQ16",
6614 .bustype = BUS_SPI,
6615 .manufacture_id = GIGADEVICE_ID,
6616 .model_id = GIGADEVICE_GD25LQ16,
6617 .total_size = 2048,
6618 .page_size = 256,
6619 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Nico Huber4da971f2024-03-27 01:18:12 +01006620 /* FEATURE_QPI_SRP(4, 4, 6, 8) except for LQ16C */
6621 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QIO,
Roman Titov95edc892015-04-03 21:29:04 +00006622 .tested = TEST_UNTESTED,
6623 .probe = probe_spi_rdid,
6624 .probe_timing = TIMING_ZERO,
6625 .block_erasers =
6626 {
6627 {
6628 .eraseblocks = { {4 * 1024, 512} },
6629 .block_erase = spi_block_erase_20,
6630 }, {
6631 .eraseblocks = { {32 * 1024, 64} },
6632 .block_erase = spi_block_erase_52,
6633 }, {
6634 .eraseblocks = { {64 * 1024, 32} },
6635 .block_erase = spi_block_erase_d8,
6636 }, {
6637 .eraseblocks = { {2 * 1024 * 1024, 1} },
6638 .block_erase = spi_block_erase_60,
6639 }, {
6640 .eraseblocks = { {2 * 1024 * 1024, 1} },
6641 .block_erase = spi_block_erase_c7,
6642 }
6643 },
Nico Huber4da971f2024-03-27 01:18:12 +01006644 .reg_bits =
6645 {
6646 .qe = {STATUS2, 1, RW},
6647 },
Roman Titov95edc892015-04-03 21:29:04 +00006648 .printlock = spi_prettyprint_status_register_bp4_srwd,
6649 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6650 .write = spi_chip_write_256,
Nico Huber4da971f2024-03-27 01:18:12 +01006651 .read = spi_chip_read,
Roman Titov95edc892015-04-03 21:29:04 +00006652 .voltage = {1695, 1950},
6653 },
6654
6655 {
6656 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006657 .name = "GD25LQ32",
6658 .bustype = BUS_SPI,
6659 .manufacture_id = GIGADEVICE_ID,
6660 .model_id = GIGADEVICE_GD25LQ32,
6661 .total_size = 4096,
6662 .page_size = 256,
6663 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Nico Huber4da971f2024-03-27 01:18:12 +01006664 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QPI_SRP,
6665 .dummy_cycles = { .qpi_read_params = { 4, 4, 6, 8 } },
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006666 .tested = TEST_OK_PREW,
6667 .probe = probe_spi_rdid,
6668 .probe_timing = TIMING_ZERO,
6669 .block_erasers =
6670 {
6671 {
6672 .eraseblocks = { {4 * 1024, 1024} },
6673 .block_erase = spi_block_erase_20,
6674 }, {
6675 .eraseblocks = { {32 * 1024, 128} },
6676 .block_erase = spi_block_erase_52,
6677 }, {
6678 .eraseblocks = { {64 * 1024, 64} },
6679 .block_erase = spi_block_erase_d8,
6680 }, {
6681 .eraseblocks = { {4 * 1024 * 1024, 1} },
6682 .block_erase = spi_block_erase_60,
6683 }, {
6684 .eraseblocks = { {4 * 1024 * 1024, 1} },
6685 .block_erase = spi_block_erase_c7,
6686 }
6687 },
Nico Huber4da971f2024-03-27 01:18:12 +01006688 .reg_bits =
6689 {
6690 .qe = {STATUS2, 1, RW},
6691 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006692 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006693 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6694 .write = spi_chip_write_256,
Nico Huber4da971f2024-03-27 01:18:12 +01006695 .read = spi_chip_read,
Roman Titov95edc892015-04-03 21:29:04 +00006696 .voltage = {1695, 1950},
6697 },
6698
6699 {
6700 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006701 .name = "GD25LQ40",
6702 .bustype = BUS_SPI,
6703 .manufacture_id = GIGADEVICE_ID,
6704 .model_id = GIGADEVICE_GD25LQ40,
6705 .total_size = 512,
6706 .page_size = 256,
6707 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Nico Huber4da971f2024-03-27 01:18:12 +01006708 /* FEATURE_QPI_SRP(4, 4, 6, 8) except for LQ40B, LQ40C */
6709 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QIO,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006710 .tested = TEST_UNTESTED,
6711 .probe = probe_spi_rdid,
6712 .probe_timing = TIMING_ZERO,
6713 .block_erasers =
6714 {
6715 {
6716 .eraseblocks = { {4 * 1024, 128} },
6717 .block_erase = spi_block_erase_20,
6718 }, {
6719 .eraseblocks = { {32 * 1024, 16} },
6720 .block_erase = spi_block_erase_52,
6721 }, {
6722 .eraseblocks = { {64 * 1024, 8} },
6723 .block_erase = spi_block_erase_d8,
6724 }, {
6725 .eraseblocks = { {512 * 1024, 1} },
6726 .block_erase = spi_block_erase_60,
6727 }, {
6728 .eraseblocks = { {512 * 1024, 1} },
6729 .block_erase = spi_block_erase_c7,
6730 }
6731 },
Nico Huber4da971f2024-03-27 01:18:12 +01006732 .reg_bits =
6733 {
6734 .qe = {STATUS2, 1, RW},
6735 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10006736 .printlock = spi_prettyprint_status_register_bp4_srwd,
6737 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6738 .write = spi_chip_write_256,
Nico Huber4da971f2024-03-27 01:18:12 +01006739 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006740 .voltage = {1695, 1950},
6741 },
6742
6743 {
6744 .vendor = "GigaDevice",
Roman Titov95edc892015-04-03 21:29:04 +00006745 .name = "GD25LQ64(B)",
6746 .bustype = BUS_SPI,
6747 .manufacture_id = GIGADEVICE_ID,
6748 .model_id = GIGADEVICE_GD25LQ64,
6749 .total_size = 8192,
6750 .page_size = 256,
6751 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Nico Huber4da971f2024-03-27 01:18:12 +01006752 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QPI_SRP,
6753 .dummy_cycles = { .qpi_read_params = { 4, 4, 6, 8 } },
Sergii Dmytrukc74eac22022-10-06 18:17:58 +03006754 .tested = TEST_OK_PREWB,
Roman Titov95edc892015-04-03 21:29:04 +00006755 .probe = probe_spi_rdid,
6756 .probe_timing = TIMING_ZERO,
6757 .block_erasers =
6758 {
6759 {
6760 .eraseblocks = { {4 * 1024, 2048} },
6761 .block_erase = spi_block_erase_20,
6762 }, {
6763 .eraseblocks = { {32 * 1024, 256} },
6764 .block_erase = spi_block_erase_52,
6765 }, {
6766 .eraseblocks = { {64 * 1024, 128} },
6767 .block_erase = spi_block_erase_d8,
6768 }, {
6769 .eraseblocks = { {8 * 1024 * 1024, 1} },
6770 .block_erase = spi_block_erase_60,
6771 }, {
6772 .eraseblocks = { {8 * 1024 * 1024, 1} },
6773 .block_erase = spi_block_erase_c7,
6774 }
6775 },
6776 .printlock = spi_prettyprint_status_register_bp4_srwd,
6777 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6778 .write = spi_chip_write_256,
6779 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
6780 .voltage = {1695, 1950},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +11006781 .reg_bits =
6782 {
Nico Huber4da971f2024-03-27 01:18:12 +01006783 .qe = {STATUS2, 1, RW},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +11006784 .srp = {STATUS1, 7, RW},
6785 .srl = {STATUS2, 0, RW},
6786 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
6787 .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */
6788 .sec = {STATUS1, 6, RW}, /* Called BP4 in datasheet, acts like SEC */
6789 .cmp = {STATUS2, 6, RW},
6790 },
Nico Huberaabb3e02023-01-13 00:22:30 +01006791 .wp_write_cfg = spi_wp_write_cfg,
6792 .wp_read_cfg = spi_wp_read_cfg,
6793 .wp_get_ranges = spi_wp_get_available_ranges,
Nikolai Artemievd32e18b2022-02-15 18:06:55 +11006794 .decode_range = decode_range_spi25,
Roman Titov95edc892015-04-03 21:29:04 +00006795 },
6796
6797 {
6798 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006799 .name = "GD25LQ80",
Roman Titov95edc892015-04-03 21:29:04 +00006800 .bustype = BUS_SPI,
6801 .manufacture_id = GIGADEVICE_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006802 .model_id = GIGADEVICE_GD25LQ80,
6803 .total_size = 1024,
Roman Titov95edc892015-04-03 21:29:04 +00006804 .page_size = 256,
6805 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Nico Huber4da971f2024-03-27 01:18:12 +01006806 /* FEATURE_QPI_SRP(4, 4, 6, 8) except for LQ80B, LQ80C */
6807 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QIO,
Roman Titov95edc892015-04-03 21:29:04 +00006808 .tested = TEST_UNTESTED,
6809 .probe = probe_spi_rdid,
6810 .probe_timing = TIMING_ZERO,
6811 .block_erasers =
6812 {
6813 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006814 .eraseblocks = { {4 * 1024, 256} },
Roman Titov95edc892015-04-03 21:29:04 +00006815 .block_erase = spi_block_erase_20,
6816 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006817 .eraseblocks = { {32 * 1024, 32} },
Roman Titov95edc892015-04-03 21:29:04 +00006818 .block_erase = spi_block_erase_52,
6819 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006820 .eraseblocks = { {64 * 1024, 16} },
Roman Titov95edc892015-04-03 21:29:04 +00006821 .block_erase = spi_block_erase_d8,
6822 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006823 .eraseblocks = { {1 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00006824 .block_erase = spi_block_erase_60,
6825 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10006826 .eraseblocks = { {1 * 1024 * 1024, 1} },
Roman Titov95edc892015-04-03 21:29:04 +00006827 .block_erase = spi_block_erase_c7,
6828 }
6829 },
Nico Huber4da971f2024-03-27 01:18:12 +01006830 .reg_bits =
6831 {
6832 .qe = {STATUS2, 1, RW},
6833 },
Roman Titov95edc892015-04-03 21:29:04 +00006834 .printlock = spi_prettyprint_status_register_bp4_srwd,
6835 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6836 .write = spi_chip_write_256,
Nico Huber4da971f2024-03-27 01:18:12 +01006837 .read = spi_chip_read,
Roman Titov95edc892015-04-03 21:29:04 +00006838 .voltage = {1695, 1950},
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006839 },
6840
6841 {
6842 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006843 .name = "GD25Q10",
6844 .bustype = BUS_SPI,
6845 .manufacture_id = GIGADEVICE_ID,
6846 .model_id = GIGADEVICE_GD25Q10,
6847 .total_size = 128,
6848 .page_size = 256,
Nico Huber4da971f2024-03-27 01:18:12 +01006849 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_QIO,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006850 .tested = TEST_UNTESTED,
6851 .probe = probe_spi_rdid,
6852 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10006853 .block_erasers =
6854 {
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006855 {
6856 .eraseblocks = { {4 * 1024, 32} },
6857 .block_erase = spi_block_erase_20,
6858 }, {
6859 .eraseblocks = { {32 * 1024, 4} },
6860 .block_erase = spi_block_erase_52,
6861 }, {
6862 .eraseblocks = { {64 * 1024, 2} },
6863 .block_erase = spi_block_erase_d8,
6864 }, {
6865 .eraseblocks = { {128 * 1024, 1} },
6866 .block_erase = spi_block_erase_60,
6867 }, {
6868 .eraseblocks = { {128 * 1024, 1} },
6869 .block_erase = spi_block_erase_c7,
6870 }
6871 },
Nico Huber4da971f2024-03-27 01:18:12 +01006872 .reg_bits =
6873 {
6874 .qe = {STATUS2, 1, RW},
6875 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00006876 .printlock = spi_prettyprint_status_register_bp4_srwd,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006877 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
6878 .write = spi_chip_write_256,
Nico Huber4da971f2024-03-27 01:18:12 +01006879 .read = spi_chip_read,
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00006880 .voltage = {2700, 3600},
6881 },
6882
6883 {
6884 .vendor = "GigaDevice",
Nico Huber68573af2024-01-06 18:28:22 +01006885 .name = "GD25Q127C",
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006886 .bustype = BUS_SPI,
6887 .manufacture_id = GIGADEVICE_ID,
6888 .model_id = GIGADEVICE_GD25Q128,
6889 .total_size = 16384,
6890 .page_size = 256,
6891 /* OTP: 1536B total; read 0x48; write 0x42, erase 0x44 */
Nico Huber1412d9f2024-01-06 18:25:49 +01006892 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_OTP | FEATURE_QIO,
Sergii Dmytrukc74eac22022-10-06 18:17:58 +03006893 .tested = TEST_OK_PREWB,
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006894 .probe = probe_spi_rdid,
6895 .probe_timing = TIMING_ZERO,
6896 .block_erasers =
6897 {
6898 {
6899 .eraseblocks = { {4 * 1024, 4096} },
6900 .block_erase = spi_block_erase_20,
6901 }, {
6902 .eraseblocks = { {32 * 1024, 512} },
6903 .block_erase = spi_block_erase_52,
6904 }, {
6905 .eraseblocks = { {64 * 1024, 256} },
6906 .block_erase = spi_block_erase_d8,
6907 }, {
6908 .eraseblocks = { {16 * 1024 * 1024, 1} },
6909 .block_erase = spi_block_erase_60,
6910 }, {
6911 .eraseblocks = { {16 * 1024 * 1024, 1} },
6912 .block_erase = spi_block_erase_c7,
6913 }
6914 },
6915 /* TODO: 2nd status reg (read 0x35, write 0x31) and 3rd status reg (read 0x15, write 0x11) */
6916 .printlock = spi_prettyprint_status_register_bp4_srwd,
6917 .unlock = spi_disable_blockprotect_bp4_srwd,
6918 .write = spi_chip_write_256,
Nico Huber1412d9f2024-01-06 18:25:49 +01006919 .read = spi_chip_read,
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006920 .voltage = {2700, 3600},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +11006921 .reg_bits =
6922 {
Nico Huber4da971f2024-03-27 01:18:12 +01006923 .qe = {STATUS2, 1, RW},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +11006924 .srp = {STATUS1, 7, RW},
6925 .srl = {STATUS2, 0, RW},
6926 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
6927 .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */
6928 .sec = {STATUS1, 6, RW}, /* Called BP4 in datasheet, acts like SEC */
6929 .cmp = {STATUS2, 6, RW},
6930 },
Nico Huberaabb3e02023-01-13 00:22:30 +01006931 .wp_write_cfg = spi_wp_write_cfg,
6932 .wp_read_cfg = spi_wp_read_cfg,
6933 .wp_get_ranges = spi_wp_get_available_ranges,
Nikolai Artemievd32e18b2022-02-15 18:06:55 +11006934 .decode_range = decode_range_spi25,
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00006935 },
6936
6937 {
6938 .vendor = "GigaDevice",
Nico Huber68573af2024-01-06 18:28:22 +01006939 .name = "GD25Q128C",
6940 .bustype = BUS_SPI,
6941 .manufacture_id = GIGADEVICE_ID,
6942 .model_id = GIGADEVICE_GD25Q128,
6943 .total_size = 16384,
6944 .page_size = 256,
6945 /* OTP: 1536B total; read 0x48; write 0x42, erase 0x44 */
6946 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_OTP | FEATURE_QPI_SRP,
6947 .dummy_cycles = { .qpi_read_params = { 4, 6, 8, 8 } },
6948 .tested = TEST_OK_PREWB,
6949 .probe = probe_spi_rdid,
6950 .probe_timing = TIMING_ZERO,
6951 .block_erasers =
6952 {
6953 {
6954 .eraseblocks = { {4 * 1024, 4096} },
6955 .block_erase = spi_block_erase_20,
6956 }, {
6957 .eraseblocks = { {32 * 1024, 512} },
6958 .block_erase = spi_block_erase_52,
6959 }, {
6960 .eraseblocks = { {64 * 1024, 256} },
6961 .block_erase = spi_block_erase_d8,
6962 }, {
6963 .eraseblocks = { {16 * 1024 * 1024, 1} },
6964 .block_erase = spi_block_erase_60,
6965 }, {
6966 .eraseblocks = { {16 * 1024 * 1024, 1} },
6967 .block_erase = spi_block_erase_c7,
6968 }
6969 },
6970 /* TODO: 2nd status reg (read 0x35, write 0x31) and 3rd status reg (read 0x15, write 0x11) */
6971 .printlock = spi_prettyprint_status_register_bp4_srwd,
6972 .unlock = spi_disable_blockprotect_bp4_srwd,
6973 .write = spi_chip_write_256,
6974 .read = spi_chip_read,
6975 .voltage = {2700, 3600},
6976 .reg_bits =
6977 {
6978 .qe = {STATUS2, 1, RW},
6979 .srp = {STATUS1, 7, RW},
6980 .srl = {STATUS2, 0, RW},
6981 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
6982 .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */
6983 .sec = {STATUS1, 6, RW}, /* Called BP4 in datasheet, acts like SEC */
6984 .cmp = {STATUS2, 6, RW},
6985 },
6986 .decode_range = decode_range_spi25,
6987 },
6988
6989 {
6990 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10006991 .name = "GD25Q16(B)",
6992 .bustype = BUS_SPI,
6993 .manufacture_id = GIGADEVICE_ID,
6994 .model_id = GIGADEVICE_GD25Q16,
6995 .total_size = 2048,
6996 .page_size = 256,
6997 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
Nico Huber4da971f2024-03-27 01:18:12 +01006998 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QIO,
Alan Green1f9cc7d2019-07-01 11:10:45 +10006999 .tested = TEST_OK_PREW,
7000 .probe = probe_spi_rdid,
7001 .probe_timing = TIMING_ZERO,
7002 .block_erasers =
7003 {
7004 {
7005 .eraseblocks = { {4 * 1024, 512} },
7006 .block_erase = spi_block_erase_20,
7007 }, {
7008 .eraseblocks = { {32 * 1024, 64} },
7009 .block_erase = spi_block_erase_52,
7010 }, {
7011 .eraseblocks = { {64 * 1024, 32} },
7012 .block_erase = spi_block_erase_d8,
7013 }, {
7014 .eraseblocks = { {2 * 1024 * 1024, 1} },
7015 .block_erase = spi_block_erase_60,
7016 }, {
7017 .eraseblocks = { {2 * 1024 * 1024, 1} },
7018 .block_erase = spi_block_erase_c7,
7019 }
7020 },
Nico Huber4da971f2024-03-27 01:18:12 +01007021 .reg_bits =
7022 {
7023 .qe = {STATUS2, 1, RW},
7024 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10007025 .printlock = spi_prettyprint_status_register_bp4_srwd,
7026 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7027 .write = spi_chip_write_256,
Nico Huber4da971f2024-03-27 01:18:12 +01007028 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007029 .voltage = {2700, 3600},
7030 },
7031
7032 {
7033 .vendor = "GigaDevice",
7034 .name = "GD25Q20(B)",
7035 .bustype = BUS_SPI,
7036 .manufacture_id = GIGADEVICE_ID,
7037 .model_id = GIGADEVICE_GD25Q20,
7038 .total_size = 256,
7039 .page_size = 256,
Nico Huber4da971f2024-03-27 01:18:12 +01007040 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_QIO,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007041 .tested = TEST_OK_PREW,
7042 .probe = probe_spi_rdid,
7043 .probe_timing = TIMING_ZERO,
7044 .block_erasers =
7045 {
7046 {
7047 .eraseblocks = { {4 * 1024, 64} },
7048 .block_erase = spi_block_erase_20,
7049 }, {
7050 .eraseblocks = { {32 * 1024, 8} },
7051 .block_erase = spi_block_erase_52,
7052 }, {
7053 .eraseblocks = { {64 * 1024, 4} },
7054 .block_erase = spi_block_erase_d8,
7055 }, {
7056 .eraseblocks = { {256 * 1024, 1} },
7057 .block_erase = spi_block_erase_60,
7058 }, {
7059 .eraseblocks = { {256 * 1024, 1} },
7060 .block_erase = spi_block_erase_c7,
7061 }
7062 },
Nico Huber4da971f2024-03-27 01:18:12 +01007063 .reg_bits = {
7064 .qe = {STATUS2, 1, RW},
7065 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10007066 .printlock = spi_prettyprint_status_register_bp4_srwd,
7067 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7068 .write = spi_chip_write_256,
Nico Huber4da971f2024-03-27 01:18:12 +01007069 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007070 .voltage = {2700, 3600},
7071 },
7072
7073 {
7074 .vendor = "GigaDevice",
Nikolai Artemiev3ca0af02022-06-17 15:10:18 +10007075 .name = "GD25Q256D/GD25Q256E",
Alan Green86fc9cf2019-08-26 15:02:12 +10007076 .bustype = BUS_SPI,
7077 .manufacture_id = GIGADEVICE_ID,
7078 .model_id = GIGADEVICE_GD25Q256D,
7079 .total_size = 32768,
7080 .page_size = 256,
Nikolai Artemievb931e7a2022-12-05 13:06:14 +11007081 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA |
Nico Huber4da971f2024-03-27 01:18:12 +01007082 FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3 |
7083 FEATURE_QIO,
Sergii Dmytrukc74eac22022-10-06 18:17:58 +03007084 .tested = TEST_OK_PREWB,
Alan Green86fc9cf2019-08-26 15:02:12 +10007085 .probe = probe_spi_rdid,
7086 .probe_timing = TIMING_ZERO,
7087 .block_erasers =
7088 {
7089 {
7090 .eraseblocks = { {4 * 1024, 8192} },
Nico Huber5374dc32019-10-04 16:16:15 +02007091 .block_erase = spi_block_erase_21,
7092 }, {
7093 .eraseblocks = { {4 * 1024, 8192} },
Alan Green86fc9cf2019-08-26 15:02:12 +10007094 .block_erase = spi_block_erase_20,
7095 }, {
7096 .eraseblocks = { {32 * 1024, 1024} },
Nico Huber5374dc32019-10-04 16:16:15 +02007097 .block_erase = spi_block_erase_5c,
7098 }, {
7099 .eraseblocks = { {32 * 1024, 1024} },
Alan Green86fc9cf2019-08-26 15:02:12 +10007100 .block_erase = spi_block_erase_52,
7101 }, {
7102 .eraseblocks = { {64 * 1024, 512} },
Nico Huber5374dc32019-10-04 16:16:15 +02007103 .block_erase = spi_block_erase_dc,
7104 }, {
7105 .eraseblocks = { {64 * 1024, 512} },
Alan Green86fc9cf2019-08-26 15:02:12 +10007106 .block_erase = spi_block_erase_d8,
7107 }, {
7108 .eraseblocks = { {32 * 1024 * 1024, 1} },
7109 .block_erase = spi_block_erase_60,
7110 }, {
7111 .eraseblocks = { {32 * 1024 * 1024, 1} },
7112 .block_erase = spi_block_erase_c7,
7113 }
7114 },
7115 .printlock = spi_prettyprint_status_register_bp3_srwd,
7116 .unlock = spi_disable_blockprotect,
7117 .write = spi_chip_write_256,
7118 .read = spi_chip_read,
7119 .voltage = {2700, 3600},
Nikolai Artemievc6c3f282021-10-20 23:34:15 +11007120 .reg_bits =
7121 {
Nico Huber4da971f2024-03-27 01:18:12 +01007122 .qe = {STATUS2, 1, RW},
Nikolai Artemievc6c3f282021-10-20 23:34:15 +11007123 .srp = {STATUS1, 7, RW},
7124 .srl = {STATUS2, 6, RW},
7125 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}},
7126 .tb = {STATUS1, 6, RW},
7127 },
Nico Huberaabb3e02023-01-13 00:22:30 +01007128 .wp_write_cfg = spi_wp_write_cfg,
7129 .wp_read_cfg = spi_wp_read_cfg,
7130 .wp_get_ranges = spi_wp_get_available_ranges,
Nikolai Artemievc9feb1b2021-10-21 01:35:13 +11007131 .decode_range = decode_range_spi25,
Nico Huberab6b18f2023-01-11 23:38:20 +01007132 .prepare_access = spi_prepare_4ba,
Alan Green86fc9cf2019-08-26 15:02:12 +10007133 },
7134
7135 {
7136 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10007137 .name = "GD25Q32(B)",
7138 .bustype = BUS_SPI,
7139 .manufacture_id = GIGADEVICE_ID,
7140 .model_id = GIGADEVICE_GD25Q32,
7141 .total_size = 4096,
7142 .page_size = 256,
7143 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Nico Huber4da971f2024-03-27 01:18:12 +01007144 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_OTP | FEATURE_QIO,
Sergii Dmytrukc74eac22022-10-06 18:17:58 +03007145 .tested = TEST_OK_PREWB,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007146 .probe = probe_spi_rdid,
7147 .probe_timing = TIMING_ZERO,
7148 .block_erasers =
7149 {
7150 {
7151 .eraseblocks = { {4 * 1024, 1024} },
7152 .block_erase = spi_block_erase_20,
7153 }, {
7154 .eraseblocks = { {32 * 1024, 128} },
7155 .block_erase = spi_block_erase_52,
7156 }, {
7157 .eraseblocks = { {64 * 1024, 64} },
7158 .block_erase = spi_block_erase_d8,
7159 }, {
7160 .eraseblocks = { {4 * 1024 * 1024, 1} },
7161 .block_erase = spi_block_erase_60,
7162 }, {
7163 .eraseblocks = { {4 * 1024 * 1024, 1} },
7164 .block_erase = spi_block_erase_c7,
7165 }
7166 },
7167 .printlock = spi_prettyprint_status_register_bp4_srwd,
7168 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7169 .write = spi_chip_write_256,
Nico Huber4da971f2024-03-27 01:18:12 +01007170 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007171 .voltage = {2700, 3600},
Nikolai Artemievc6c3f282021-10-20 23:34:15 +11007172 .reg_bits =
7173 {
Nico Huber4da971f2024-03-27 01:18:12 +01007174 .qe = {STATUS2, 1, RW},
Nikolai Artemievc6c3f282021-10-20 23:34:15 +11007175 .srp = {STATUS1, 7, RW},
7176 .srl = {STATUS2, 0, RW},
7177 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
7178 .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */
7179 .sec = {STATUS1, 6, RW}, /* Called BP4 in datasheet, acts like SEC */
7180 .cmp = {STATUS2, 6, RW},
7181 },
Nico Huberaabb3e02023-01-13 00:22:30 +01007182 .wp_write_cfg = spi_wp_write_cfg,
7183 .wp_read_cfg = spi_wp_read_cfg,
7184 .wp_get_ranges = spi_wp_get_available_ranges,
Nikolai Artemievc9feb1b2021-10-21 01:35:13 +11007185 .decode_range = decode_range_spi25,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007186 },
7187
7188 {
7189 .vendor = "GigaDevice",
7190 .name = "GD25Q40(B)",
7191 .bustype = BUS_SPI,
7192 .manufacture_id = GIGADEVICE_ID,
7193 .model_id = GIGADEVICE_GD25Q40,
7194 .total_size = 512,
7195 .page_size = 256,
Nico Huber4da971f2024-03-27 01:18:12 +01007196 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_QIO,
Simon Buhrow551664c2022-03-09 16:09:08 +01007197 .tested = TEST_OK_PREW,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007198 .probe = probe_spi_rdid,
7199 .probe_timing = TIMING_ZERO,
7200 .block_erasers =
7201 {
7202 {
7203 .eraseblocks = { {4 * 1024, 128} },
7204 .block_erase = spi_block_erase_20,
7205 }, {
7206 .eraseblocks = { {32 * 1024, 16} },
7207 .block_erase = spi_block_erase_52,
7208 }, {
7209 .eraseblocks = { {64 * 1024, 8} },
7210 .block_erase = spi_block_erase_d8,
7211 }, {
7212 .eraseblocks = { {512 * 1024, 1} },
7213 .block_erase = spi_block_erase_60,
7214 }, {
7215 .eraseblocks = { {512 * 1024, 1} },
7216 .block_erase = spi_block_erase_c7,
7217 }
7218 },
Nico Huber4da971f2024-03-27 01:18:12 +01007219 .reg_bits =
7220 {
7221 .qe = {STATUS2, 1, RW},
7222 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10007223 .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,
Nico Huber4da971f2024-03-27 01:18:12 +01007226 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007227 .voltage = {2700, 3600},
7228 },
7229
7230 {
7231 .vendor = "GigaDevice",
7232 .name = "GD25Q512",
7233 .bustype = BUS_SPI,
7234 .manufacture_id = GIGADEVICE_ID,
7235 .model_id = GIGADEVICE_GD25Q512,
7236 .total_size = 64,
7237 .page_size = 256,
Nico Huber4da971f2024-03-27 01:18:12 +01007238 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_QIO,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007239 .tested = TEST_OK_PREW,
7240 .probe = probe_spi_rdid,
7241 .probe_timing = TIMING_ZERO,
7242 .block_erasers =
7243 {
7244 {
7245 .eraseblocks = { {4 * 1024, 16} },
7246 .block_erase = spi_block_erase_20,
7247 }, {
7248 .eraseblocks = { {32 * 1024, 2} },
7249 .block_erase = spi_block_erase_52,
7250 }, {
7251 .eraseblocks = { {64 * 1024, 1} },
7252 .block_erase = spi_block_erase_60,
7253 }, {
7254 .eraseblocks = { {64 * 1024, 1} },
7255 .block_erase = spi_block_erase_c7,
7256 }
7257 },
Nico Huber4da971f2024-03-27 01:18:12 +01007258 .reg_bits =
7259 {
7260 .qe = {STATUS2, 1, RW},
7261 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10007262 .printlock = spi_prettyprint_status_register_bp4_srwd,
7263 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7264 .write = spi_chip_write_256,
Nico Huber4da971f2024-03-27 01:18:12 +01007265 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007266 .voltage = {2700, 3600},
7267 },
7268
7269 {
7270 .vendor = "GigaDevice",
7271 .name = "GD25Q64(B)",
7272 .bustype = BUS_SPI,
7273 .manufacture_id = GIGADEVICE_ID,
7274 .model_id = GIGADEVICE_GD25Q64,
7275 .total_size = 8192,
7276 .page_size = 256,
7277 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
Nico Huber4da971f2024-03-27 01:18:12 +01007278 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_OTP | FEATURE_QIO,
Sergii Dmytrukc74eac22022-10-06 18:17:58 +03007279 .tested = TEST_OK_PREWB,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007280 .probe = probe_spi_rdid,
7281 .probe_timing = TIMING_ZERO,
7282 .block_erasers =
7283 {
7284 {
7285 .eraseblocks = { {4 * 1024, 2048} },
7286 .block_erase = spi_block_erase_20,
7287 }, {
7288 .eraseblocks = { {32 * 1024, 256} },
7289 .block_erase = spi_block_erase_52,
7290 }, {
7291 .eraseblocks = { {64 * 1024, 128} },
7292 .block_erase = spi_block_erase_d8,
7293 }, {
7294 .eraseblocks = { {8 * 1024 * 1024, 1} },
7295 .block_erase = spi_block_erase_60,
7296 }, {
7297 .eraseblocks = { {8 * 1024 * 1024, 1} },
7298 .block_erase = spi_block_erase_c7,
7299 }
7300 },
7301 .printlock = spi_prettyprint_status_register_bp4_srwd,
7302 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7303 .write = spi_chip_write_256,
Nico Huber4da971f2024-03-27 01:18:12 +01007304 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007305 .voltage = {2700, 3600},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +11007306 .reg_bits =
7307 {
Nico Huber4da971f2024-03-27 01:18:12 +01007308 .qe = {STATUS2, 1, RW},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +11007309 .srp = {STATUS1, 7, RW},
7310 .srl = {STATUS2, 0, RW},
7311 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
7312 .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */
7313 .sec = {STATUS1, 6, RW}, /* Called BP4 in datasheet, acts like SEC */
7314 .cmp = {STATUS2, 6, RW},
7315 },
Nico Huberaabb3e02023-01-13 00:22:30 +01007316 .wp_write_cfg = spi_wp_write_cfg,
7317 .wp_read_cfg = spi_wp_read_cfg,
7318 .wp_get_ranges = spi_wp_get_available_ranges,
Nikolai Artemievd32e18b2022-02-15 18:06:55 +11007319 .decode_range = decode_range_spi25,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007320 },
7321
7322 {
7323 .vendor = "GigaDevice",
7324 .name = "GD25Q80(B)",
7325 .bustype = BUS_SPI,
7326 .manufacture_id = GIGADEVICE_ID,
7327 .model_id = GIGADEVICE_GD25Q80,
7328 .total_size = 1024,
7329 .page_size = 256,
7330 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */
Nico Huber4da971f2024-03-27 01:18:12 +01007331 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QIO,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007332 .tested = TEST_OK_PREW,
7333 .probe = probe_spi_rdid,
7334 .probe_timing = TIMING_ZERO,
7335 .block_erasers =
7336 {
7337 {
7338 .eraseblocks = { {4 * 1024, 256} },
7339 .block_erase = spi_block_erase_20,
7340 }, {
7341 .eraseblocks = { {32 * 1024, 32} },
7342 .block_erase = spi_block_erase_52,
7343 }, {
7344 .eraseblocks = { {64 * 1024, 16} },
7345 .block_erase = spi_block_erase_d8,
7346 }, {
7347 .eraseblocks = { {1024 * 1024, 1} },
7348 .block_erase = spi_block_erase_60,
7349 }, {
7350 .eraseblocks = { {1024 * 1024, 1} },
7351 .block_erase = spi_block_erase_c7,
7352 }
7353 },
Nico Huber4da971f2024-03-27 01:18:12 +01007354 .reg_bits =
7355 {
7356 .qe = {STATUS2, 1, RW},
7357 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10007358 .printlock = spi_prettyprint_status_register_bp4_srwd,
7359 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7360 .write = spi_chip_write_256,
Nico Huber4da971f2024-03-27 01:18:12 +01007361 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007362 .voltage = {2700, 3600},
7363 },
7364
7365 {
7366 .vendor = "GigaDevice",
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00007367 .name = "GD25T80",
7368 .bustype = BUS_SPI,
7369 .manufacture_id = GIGADEVICE_ID,
7370 .model_id = GIGADEVICE_GD25T80,
7371 .total_size = 1024,
7372 .page_size = 256,
7373 /* OTP: 256B total; enter 0x3A */
7374 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7375 .tested = TEST_UNTESTED,
7376 .probe = probe_spi_rdid,
7377 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +10007378 .block_erasers =
7379 {
Nikolay Nikolaev3f3390b2013-06-28 21:28:56 +00007380 {
7381 .eraseblocks = { {4 * 1024, 256} },
7382 .block_erase = spi_block_erase_20,
7383 }, {
7384 .eraseblocks = { {64 * 1024, 16} },
7385 .block_erase = spi_block_erase_52,
7386 }, {
7387 .eraseblocks = { {64 * 1024, 16} },
7388 .block_erase = spi_block_erase_d8,
7389 }, {
7390 .eraseblocks = { {1024 * 1024, 1} },
7391 .block_erase = spi_block_erase_60,
7392 }, {
7393 .eraseblocks = { {1024 * 1024, 1} },
7394 .block_erase = spi_block_erase_c7,
7395 }
7396 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +00007397 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Justin Chevrier1525b2a2012-04-14 21:59:23 +00007398 .unlock = spi_disable_blockprotect,
7399 .write = spi_chip_write_256,
7400 .read = spi_chip_read,
Stefan Tauner352e50b2013-02-22 15:58:45 +00007401 .voltage = {2700, 3600},
Justin Chevrier1525b2a2012-04-14 21:59:23 +00007402 },
7403
7404 {
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007405 .vendor = "GigaDevice",
Alan Green1f9cc7d2019-07-01 11:10:45 +10007406 .name = "GD25VQ16C",
7407 .bustype = BUS_SPI,
7408 .manufacture_id = GIGADEVICE_ID,
7409 .model_id = GIGADEVICE_GD25VQ16C,
7410 .total_size = 2 * 1024,
7411 .page_size = 256,
7412 /* Supports SFDP */
7413 /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */
Nico Huber4da971f2024-03-27 01:18:12 +01007414 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QIO,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007415 .tested = TEST_UNTESTED,
7416 .probe = probe_spi_rdid,
7417 .probe_timing = TIMING_ZERO,
7418 .block_erasers =
7419 {
7420 {
7421 .eraseblocks = { { 4 * 1024, 512} },
7422 .block_erase = spi_block_erase_20,
7423 }, {
7424 .eraseblocks = { { 32 * 1024, 64} },
7425 .block_erase = spi_block_erase_52,
7426 }, {
7427 .eraseblocks = { { 64 * 1024, 32} },
7428 .block_erase = spi_block_erase_d8,
7429 }, {
7430 .eraseblocks = { {2 * 1024 * 1024, 1} },
7431 .block_erase = spi_block_erase_60,
7432 }, {
7433 .eraseblocks = { {2 * 1024 * 1024, 1} },
7434 .block_erase = spi_block_erase_c7,
7435 }
7436 },
Nico Huber4da971f2024-03-27 01:18:12 +01007437 .reg_bits =
7438 {
7439 .qe = {STATUS2, 1, RW},
7440 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10007441 .printlock = spi_prettyprint_status_register_bp4_srwd,
7442 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7443 .write = spi_chip_write_256,
Nico Huber1412d9f2024-01-06 18:25:49 +01007444 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007445 .voltage = {2300, 3600},
7446 },
7447
7448 {
7449 .vendor = "GigaDevice",
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007450 .name = "GD25VQ21B",
7451 .bustype = BUS_SPI,
7452 .manufacture_id = GIGADEVICE_ID,
7453 .model_id = GIGADEVICE_GD25VQ21B,
7454 .total_size = 256,
7455 .page_size = 256,
7456 /* OTP: 1536B total; read 0x48, write 0x42, erase 0x44 */
Nico Huber4da971f2024-03-27 01:18:12 +01007457 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_WRSR2 |
7458 FEATURE_OTP | FEATURE_QIO,
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007459 .tested = TEST_UNTESTED,
7460 .probe = probe_spi_rdid,
7461 .probe_timing = TIMING_ZERO,
7462 .block_erasers =
7463 {
7464 {
7465 .eraseblocks = { { 4 * 1024, 64} },
7466 .block_erase = spi_block_erase_20,
7467 }, {
7468 .eraseblocks = { { 32 * 1024, 8} },
7469 .block_erase = spi_block_erase_52,
7470 }, {
7471 .eraseblocks = { { 64 * 1024, 4} },
7472 .block_erase = spi_block_erase_d8,
7473 }, {
7474 .eraseblocks = { {256 * 1024, 1} },
7475 .block_erase = spi_block_erase_60,
7476 }, {
7477 .eraseblocks = { {256 * 1024, 1} },
7478 .block_erase = spi_block_erase_c7,
7479 }
7480 },
Nico Huber4da971f2024-03-27 01:18:12 +01007481 .reg_bits =
7482 {
7483 .qe = {STATUS2, 1, RW},
7484 },
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007485 .printlock = spi_prettyprint_status_register_bp4_srwd,
7486 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7487 .write = spi_chip_write_256,
Nico Huber1412d9f2024-01-06 18:25:49 +01007488 .read = spi_chip_read,
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007489 .voltage = {2300, 3600},
7490 },
7491
7492 {
7493 .vendor = "GigaDevice",
7494 .name = "GD25VQ40C",
7495 .bustype = BUS_SPI,
7496 .manufacture_id = GIGADEVICE_ID,
7497 .model_id = GIGADEVICE_GD25VQ41B,
7498 .total_size = 512,
7499 .page_size = 256,
7500 /* Supports SFDP */
7501 /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */
Nico Huber4da971f2024-03-27 01:18:12 +01007502 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QIO,
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007503 .tested = TEST_UNTESTED,
7504 .probe = probe_spi_rdid,
7505 .probe_timing = TIMING_ZERO,
7506 .block_erasers =
7507 {
7508 {
7509 .eraseblocks = { { 4 * 1024, 128} },
7510 .block_erase = spi_block_erase_20,
7511 }, {
7512 .eraseblocks = { { 32 * 1024, 16} },
7513 .block_erase = spi_block_erase_52,
7514 }, {
7515 .eraseblocks = { { 64 * 1024, 8} },
7516 .block_erase = spi_block_erase_d8,
7517 }, {
7518 .eraseblocks = { {512 * 1024, 1} },
7519 .block_erase = spi_block_erase_60,
7520 }, {
7521 .eraseblocks = { {512 * 1024, 1} },
7522 .block_erase = spi_block_erase_c7,
7523 }
7524 },
Nico Huber4da971f2024-03-27 01:18:12 +01007525 .reg_bits =
7526 {
7527 .qe = {STATUS2, 1, RW},
7528 },
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007529 .printlock = spi_prettyprint_status_register_bp4_srwd,
7530 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7531 .write = spi_chip_write_256,
Nico Huber1412d9f2024-01-06 18:25:49 +01007532 .read = spi_chip_read,
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007533 .voltage = {2300, 3600},
7534 },
7535
7536 {
7537 .vendor = "GigaDevice",
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007538 .name = "GD25VQ41B",
7539 .bustype = BUS_SPI,
7540 .manufacture_id = GIGADEVICE_ID,
7541 .model_id = GIGADEVICE_GD25VQ41B,
7542 .total_size = 512,
7543 .page_size = 256,
7544 /* OTP: 1536B total; read 0x48, write 0x42, erase 0x44 */
Nico Huber4da971f2024-03-27 01:18:12 +01007545 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_WRSR2 |
7546 FEATURE_OTP | FEATURE_QIO,
Stefan Tauner0be072c2016-03-13 15:16:30 +00007547 .tested = TEST_OK_PREW,
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007548 .probe = probe_spi_rdid,
7549 .probe_timing = TIMING_ZERO,
Stefan Tauner0be072c2016-03-13 15:16:30 +00007550 .block_erasers =
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007551 {
Stefan Tauner0be072c2016-03-13 15:16:30 +00007552 {
7553 .eraseblocks = { { 4 * 1024, 128} },
7554 .block_erase = spi_block_erase_20,
7555 }, {
7556 .eraseblocks = { { 32 * 1024, 16} },
7557 .block_erase = spi_block_erase_52,
7558 }, {
7559 .eraseblocks = { { 64 * 1024, 8} },
7560 .block_erase = spi_block_erase_d8,
7561 }, {
7562 .eraseblocks = { {512 * 1024, 1} },
7563 .block_erase = spi_block_erase_60,
7564 }, {
7565 .eraseblocks = { {512 * 1024, 1} },
7566 .block_erase = spi_block_erase_c7,
7567 }
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007568 },
Nico Huber4da971f2024-03-27 01:18:12 +01007569 .reg_bits =
7570 {
7571 .qe = {STATUS2, 1, RW},
7572 },
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007573 .printlock = spi_prettyprint_status_register_bp4_srwd,
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007574 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7575 .write = spi_chip_write_256,
Nico Huber1412d9f2024-01-06 18:25:49 +01007576 .read = spi_chip_read,
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007577 .voltage = {2300, 3600},
7578 },
7579
7580 {
7581 .vendor = "GigaDevice",
7582 .name = "GD25VQ80C",
7583 .bustype = BUS_SPI,
7584 .manufacture_id = GIGADEVICE_ID,
7585 .model_id = GIGADEVICE_GD25VQ80C,
7586 .total_size = 1024,
7587 .page_size = 256,
7588 /* Supports SFDP */
7589 /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */
Nico Huber4da971f2024-03-27 01:18:12 +01007590 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QIO,
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007591 .tested = TEST_UNTESTED,
7592 .probe = probe_spi_rdid,
7593 .probe_timing = TIMING_ZERO,
7594 .block_erasers =
7595 {
7596 {
7597 .eraseblocks = { { 4 * 1024, 256} },
7598 .block_erase = spi_block_erase_20,
7599 }, {
7600 .eraseblocks = { { 32 * 1024, 32} },
7601 .block_erase = spi_block_erase_52,
7602 }, {
7603 .eraseblocks = { { 64 * 1024, 16} },
7604 .block_erase = spi_block_erase_d8,
7605 }, {
7606 .eraseblocks = { {1024 * 1024, 1} },
7607 .block_erase = spi_block_erase_60,
7608 }, {
7609 .eraseblocks = { {1024 * 1024, 1} },
7610 .block_erase = spi_block_erase_c7,
7611 }
7612 },
Nico Huber4da971f2024-03-27 01:18:12 +01007613 .reg_bits =
7614 {
7615 .qe = {STATUS2, 1, RW},
7616 },
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007617 .printlock = spi_prettyprint_status_register_bp4_srwd,
7618 .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
7619 .write = spi_chip_write_256,
Nico Huber1412d9f2024-01-06 18:25:49 +01007620 .read = spi_chip_read,
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007621 .voltage = {2300, 3600},
7622 },
7623
7624 {
Dino Li3214f582020-03-25 17:39:53 +08007625 .vendor = "GigaDevice",
7626 .name = "GD25WQ80E",
7627 .bustype = BUS_SPI,
7628 .manufacture_id = GIGADEVICE_ID,
7629 .model_id = GIGADEVICE_GD25WQ80E,
7630 .total_size = 1024,
7631 .page_size = 256,
Nico Huber4da971f2024-03-27 01:18:12 +01007632 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_QIO,
Dino Li3214f582020-03-25 17:39:53 +08007633 .tested = TEST_OK_PREW,
7634 .probe = probe_spi_rdid,
7635 .probe_timing = TIMING_ZERO,
7636 .block_erasers =
7637 {
7638 {
7639 .eraseblocks = { {4 * 1024, 256} },
7640 .block_erase = spi_block_erase_20,
7641 }, {
7642 .eraseblocks = { {32 * 1024, 32} },
7643 .block_erase = spi_block_erase_52,
7644 }, {
7645 .eraseblocks = { {64 * 1024, 16} },
7646 .block_erase = spi_block_erase_d8,
7647 }, {
7648 .eraseblocks = { {1 * 1024 * 1024, 1} },
7649 .block_erase = spi_block_erase_60,
7650 }, {
7651 .eraseblocks = { {1 * 1024 * 1024, 1} },
7652 .block_erase = spi_block_erase_c7,
7653 }
7654 },
Nico Huber4da971f2024-03-27 01:18:12 +01007655 .reg_bits =
7656 {
7657 .qe = {STATUS2, 1, RW},
7658 },
Dino Li3214f582020-03-25 17:39:53 +08007659 .printlock = spi_prettyprint_status_register_bp4_srwd,
7660 .unlock = spi_disable_blockprotect_bp4_srwd,
7661 .write = spi_chip_write_256,
7662 .read = spi_chip_read,
7663 .voltage = {1650, 3600},
7664 },
7665
7666 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007667 .vendor = "Hyundai",
7668 .name = "HY29F002B",
7669 .bustype = BUS_PARALLEL,
7670 .manufacture_id = HYUNDAI_ID,
7671 .model_id = HYUNDAI_HY29F002B,
7672 .total_size = 256,
7673 .page_size = 256 * 1024,
7674 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007675 .tested = TEST_UNTESTED,
Alan Green1f9cc7d2019-07-01 11:10:45 +10007676 .probe = probe_jedec,
7677 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007678 .block_erasers =
7679 {
7680 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007681 .eraseblocks = {
7682 {16 * 1024, 1},
7683 {8 * 1024, 2},
7684 {32 * 1024, 1},
7685 {64 * 1024, 3},
7686 },
7687 .block_erase = erase_sector_jedec,
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007688 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10007689 .eraseblocks = { {256 * 1024, 1} },
7690 .block_erase = erase_chip_block_jedec,
7691 },
Hatim Kanchwalad0595352016-03-06 14:33:49 +00007692 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10007693 .write = write_jedec_1,
7694 .read = read_memmapped,
7695 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
Nico Huber9eec4072023-01-12 01:17:30 +01007696 .prepare_access = prepare_memory_access,
7697 .finish_access = finish_memory_access,
Hatim Kanchwalae0c7abf2016-02-21 00:21:11 +00007698 },
7699
7700 {
David Borgc96a8bd2010-06-21 16:12:22 +00007701 .vendor = "Hyundai",
7702 .name = "HY29F002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007703 .bustype = BUS_PARALLEL,
David Borgc96a8bd2010-06-21 16:12:22 +00007704 .manufacture_id = HYUNDAI_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00007705 .model_id = HYUNDAI_HY29F002T,
David Borgc96a8bd2010-06-21 16:12:22 +00007706 .total_size = 256,
7707 .page_size = 256 * 1024,
7708 .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +00007709 .tested = TEST_OK_PRE,
David Borgc96a8bd2010-06-21 16:12:22 +00007710 .probe = probe_jedec,
7711 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
7712 .block_erasers =
7713 {
7714 {
7715 .eraseblocks = {
7716 {64 * 1024, 3},
7717 {32 * 1024, 1},
7718 {8 * 1024, 2},
7719 {16 * 1024, 1},
7720 },
7721 .block_erase = erase_sector_jedec,
7722 }, {
7723 .eraseblocks = { {256 * 1024, 1} },
7724 .block_erase = erase_chip_block_jedec,
7725 },
7726 },
7727 .write = write_jedec_1,
7728 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007729 .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */
Nico Huber9eec4072023-01-12 01:17:30 +01007730 .prepare_access = prepare_memory_access,
7731 .finish_access = finish_memory_access,
David Borgc96a8bd2010-06-21 16:12:22 +00007732 },
7733
7734 {
7735 .vendor = "Hyundai",
Joshua Roysf1324e02010-09-16 00:51:51 +00007736 .name = "HY29F040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00007737 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +00007738 .manufacture_id = HYUNDAI_ID,
7739 .model_id = HYUNDAI_HY29F040A,
7740 .total_size = 512,
7741 .page_size = 64 * 1024,
7742 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
7743 .tested = TEST_UNTESTED,
7744 .probe = probe_jedec,
7745 .probe_timing = TIMING_ZERO,
7746 .block_erasers =
7747 {
7748 {
7749 .eraseblocks = { {64 * 1024, 8} },
7750 .block_erase = erase_sector_jedec,
7751 }, {
7752 .eraseblocks = { {512 * 1024, 1} },
7753 .block_erase = erase_chip_block_jedec,
7754 },
7755 },
7756 .write = write_jedec_1,
7757 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +00007758 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +01007759 .prepare_access = prepare_memory_access,
7760 .finish_access = finish_memory_access,
Joshua Roysf1324e02010-09-16 00:51:51 +00007761 },
7762
7763 {
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00007764 .vendor = "ISSI",
Angel Pons2ef47f32018-09-30 16:47:30 +02007765 .name = "IS25LP064",
7766 .bustype = BUS_SPI,
7767 .manufacture_id = ISSI_ID_SPI,
7768 .model_id = ISSI_IS25LP064,
7769 .total_size = 8192,
7770 .page_size = 256,
7771 /* OTP: 1024B total; read 0x48; write 0x42 */
7772 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Simon Buhrow9bf829d2021-10-20 17:09:09 +02007773 .tested = TEST_OK_PREW,
Angel Pons2ef47f32018-09-30 16:47:30 +02007774 .probe = probe_spi_rdid,
7775 .probe_timing = TIMING_ZERO,
7776 .block_erasers =
7777 {
7778 {
7779 .eraseblocks = { {4 * 1024, 2048} },
7780 .block_erase = spi_block_erase_20,
7781 }, {
7782 .eraseblocks = { {4 * 1024, 2048} },
7783 .block_erase = spi_block_erase_d7,
7784 }, {
7785 .eraseblocks = { {32 * 1024, 256} },
7786 .block_erase = spi_block_erase_52,
7787 }, {
7788 .eraseblocks = { {64 * 1024, 128} },
7789 .block_erase = spi_block_erase_d8,
7790 }, {
7791 .eraseblocks = { {8 * 1024 * 1024, 1} },
7792 .block_erase = spi_block_erase_60,
7793 }, {
7794 .eraseblocks = { {8 * 1024 * 1024, 1} },
7795 .block_erase = spi_block_erase_c7,
7796 }
7797 },
7798 .unlock = spi_disable_blockprotect,
7799 .write = spi_chip_write_256,
7800 .read = spi_chip_read,
7801 .voltage = {2300, 3600},
7802 },
7803
7804 {
7805 .vendor = "ISSI",
David Hendricks3083ed92017-05-02 13:25:56 -07007806 .name = "IS25LP128",
7807 .bustype = BUS_SPI,
7808 .manufacture_id = ISSI_ID_SPI,
7809 .model_id = ISSI_IS25LP128,
7810 .total_size = 16384,
7811 .page_size = 256,
7812 /* OTP: 1024B total; read 0x48; write 0x42 */
7813 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
7814 .tested = TEST_OK_PREW,
7815 .probe = probe_spi_rdid,
7816 .probe_timing = TIMING_ZERO,
7817 .block_erasers =
7818 {
7819 {
7820 .eraseblocks = { {4 * 1024, 4096} },
7821 .block_erase = spi_block_erase_20,
7822 }, {
7823 .eraseblocks = { {4 * 1024, 4096} },
7824 .block_erase = spi_block_erase_d7,
7825 }, {
7826 .eraseblocks = { {32 * 1024, 512} },
7827 .block_erase = spi_block_erase_52,
7828 }, {
7829 .eraseblocks = { {64 * 1024, 256} },
7830 .block_erase = spi_block_erase_d8,
7831 }, {
7832 .eraseblocks = { {16 * 1024 * 1024, 1} },
7833 .block_erase = spi_block_erase_60,
7834 }, {
7835 .eraseblocks = { {16 * 1024 * 1024, 1} },
7836 .block_erase = spi_block_erase_c7,
7837 }
7838 },
7839 .unlock = spi_disable_blockprotect,
7840 .write = spi_chip_write_256,
7841 .read = spi_chip_read,
7842 .voltage = {2300, 3600},
7843 },
7844
7845 {
7846 .vendor = "ISSI",
David Hendricks61818dc2018-10-28 01:02:21 +00007847 .name = "IS25LP256",
7848 .bustype = BUS_SPI,
7849 .manufacture_id = ISSI_ID_SPI,
7850 .model_id = ISSI_IS25LP256,
7851 .total_size = 32768,
7852 .page_size = 256,
7853 /* supports SFDP */
7854 /* OTP: 1024B total; read 0x68; write 0x62, erase 0x64, read ID 0x4B */
Nico Huberad55d5a2022-06-20 19:32:16 +02007855 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP |
7856 FEATURE_4BA | FEATURE_4BA_ENTER_EAR7 | FEATURE_4BA_EAR_1716,
David Hendricks61818dc2018-10-28 01:02:21 +00007857 .tested = TEST_OK_PREW,
7858 .probe = probe_spi_rdid,
7859 .probe_timing = TIMING_ZERO,
7860 .block_erasers =
7861 {
7862 {
7863 .eraseblocks = { {4 * 1024, 8192} },
7864 .block_erase = spi_block_erase_21,
7865 }, {
7866 .eraseblocks = { {4 * 1024, 8192} },
7867 .block_erase = spi_block_erase_20,
7868 /* could also use spi_block_erase_d7 */
7869 }, {
7870 .eraseblocks = { {32 * 1024, 1024} },
7871 .block_erase = spi_block_erase_5c,
7872 }, {
7873 .eraseblocks = { {32 * 1024, 1024} },
7874 .block_erase = spi_block_erase_52,
7875 }, {
7876 .eraseblocks = { {64 * 1024, 512} },
7877 .block_erase = spi_block_erase_dc,
7878 }, {
7879 .eraseblocks = { {64 * 1024, 512} },
7880 .block_erase = spi_block_erase_d8,
7881 }, {
7882 .eraseblocks = { {32 * 1024 * 1024, 1} },
7883 .block_erase = spi_block_erase_60,
7884 }, {
7885 .eraseblocks = { {32 * 1024 * 1024, 1} },
7886 .block_erase = spi_block_erase_c7,
7887 }
7888 },
7889 .unlock = spi_disable_blockprotect,
7890 .write = spi_chip_write_256,
7891 .read = spi_chip_read,
7892 .voltage = {2300, 3600},
Nico Huberab6b18f2023-01-11 23:38:20 +01007893 .prepare_access = spi_prepare_4ba,
David Hendricks61818dc2018-10-28 01:02:21 +00007894 },
7895
7896 {
7897 .vendor = "ISSI",
Nico Huberb27b8d12018-10-02 20:46:21 +02007898 .name = "IS25WP032",
7899 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +10007900 .manufacture_id = ISSI_ID_SPI,
Nico Huberb27b8d12018-10-02 20:46:21 +02007901 .model_id = ISSI_IS25WP032,
7902 .total_size = 4096,
7903 .page_size = 256,
7904 /* OTP: 1024B total; read 0x48; write 0x42 */
Nico Huber1412d9f2024-01-06 18:25:49 +01007905 /* QPI: enter/exit 35/f5, SRP with 4 bits directly specifying
7906 dummy cycles; non-volatile read parameters, so disable for now */
7907 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Nico Huberb27b8d12018-10-02 20:46:21 +02007908 .tested = TEST_UNTESTED,
7909 .probe = probe_spi_rdid,
7910 .probe_timing = TIMING_ZERO,
7911 .block_erasers =
7912 {
7913 {
7914 .eraseblocks = { {4 * 1024, 1024} },
7915 .block_erase = spi_block_erase_20,
7916 }, {
7917 .eraseblocks = { {4 * 1024, 1024} },
7918 .block_erase = spi_block_erase_d7,
7919 }, {
7920 .eraseblocks = { {32 * 1024, 128} },
7921 .block_erase = spi_block_erase_52,
7922 }, {
7923 .eraseblocks = { {64 * 1024, 64} },
7924 .block_erase = spi_block_erase_d8,
7925 }, {
7926 .eraseblocks = { {4 * 1024 * 1024, 1} },
7927 .block_erase = spi_block_erase_60,
7928 }, {
7929 .eraseblocks = { {4 * 1024 * 1024, 1} },
7930 .block_erase = spi_block_erase_c7,
7931 }
7932 },
7933 .unlock = spi_disable_blockprotect,
7934 .write = spi_chip_write_256,
7935 .read = spi_chip_read,
7936 .voltage = {1650, 1950},
7937 },
7938
7939 {
7940 .vendor = "ISSI",
7941 .name = "IS25WP064",
7942 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +10007943 .manufacture_id = ISSI_ID_SPI,
Nico Huberb27b8d12018-10-02 20:46:21 +02007944 .model_id = ISSI_IS25WP064,
7945 .total_size = 8192,
7946 .page_size = 256,
7947 /* OTP: 1024B total; read 0x48; write 0x42 */
Nico Huber1412d9f2024-01-06 18:25:49 +01007948 /* QPI: enter/exit 35/f5, SRP with 4 bits directly specifying
7949 dummy cycles; non-volatile read parameters, so disable for now */
7950 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Nico Huberb27b8d12018-10-02 20:46:21 +02007951 .tested = TEST_OK_PREW,
7952 .probe = probe_spi_rdid,
7953 .probe_timing = TIMING_ZERO,
7954 .block_erasers =
7955 {
7956 {
7957 .eraseblocks = { {4 * 1024, 2048} },
7958 .block_erase = spi_block_erase_20,
7959 }, {
7960 .eraseblocks = { {4 * 1024, 2048} },
7961 .block_erase = spi_block_erase_d7,
7962 }, {
7963 .eraseblocks = { {32 * 1024, 256} },
7964 .block_erase = spi_block_erase_52,
7965 }, {
7966 .eraseblocks = { {64 * 1024, 128} },
7967 .block_erase = spi_block_erase_d8,
7968 }, {
7969 .eraseblocks = { {8 * 1024 * 1024, 1} },
7970 .block_erase = spi_block_erase_60,
7971 }, {
7972 .eraseblocks = { {8 * 1024 * 1024, 1} },
7973 .block_erase = spi_block_erase_c7,
7974 }
7975 },
7976 .unlock = spi_disable_blockprotect,
7977 .write = spi_chip_write_256,
7978 .read = spi_chip_read,
7979 .voltage = {1650, 1950},
7980 },
7981
7982 {
7983 .vendor = "ISSI",
David Hendricks3083ed92017-05-02 13:25:56 -07007984 .name = "IS25WP128",
7985 .bustype = BUS_SPI,
7986 .manufacture_id = ISSI_ID_SPI,
7987 .model_id = ISSI_IS25WP128,
7988 .total_size = 16384,
7989 .page_size = 256,
7990 /* OTP: 1024B total; read 0x48; write 0x42 */
Nico Huber1412d9f2024-01-06 18:25:49 +01007991 /* QPI: enter/exit 35/f5, SRP with 4 bits directly specifying
7992 dummy cycles; non-volatile read parameters, so disable for now */
7993 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
David Hendricks3083ed92017-05-02 13:25:56 -07007994 .tested = TEST_OK_PREW,
7995 .probe = probe_spi_rdid,
7996 .probe_timing = TIMING_ZERO,
7997 .block_erasers =
7998 {
7999 {
8000 .eraseblocks = { {4 * 1024, 4096} },
8001 .block_erase = spi_block_erase_20,
8002 }, {
8003 .eraseblocks = { {4 * 1024, 4096} },
8004 .block_erase = spi_block_erase_d7,
8005 }, {
8006 .eraseblocks = { {32 * 1024, 512} },
8007 .block_erase = spi_block_erase_52,
8008 }, {
8009 .eraseblocks = { {64 * 1024, 256} },
8010 .block_erase = spi_block_erase_d8,
8011 }, {
8012 .eraseblocks = { {16 * 1024 * 1024, 1} },
8013 .block_erase = spi_block_erase_60,
8014 }, {
8015 .eraseblocks = { {16 * 1024 * 1024, 1} },
8016 .block_erase = spi_block_erase_c7,
8017 }
8018 },
8019 .unlock = spi_disable_blockprotect,
8020 .write = spi_chip_write_256,
8021 .read = spi_chip_read,
8022 .voltage = {1650, 1950},
8023 },
8024
8025 {
8026 .vendor = "ISSI",
David Hendricks61818dc2018-10-28 01:02:21 +00008027 .name = "IS25WP256",
8028 .bustype = BUS_SPI,
8029 .manufacture_id = ISSI_ID_SPI,
8030 .model_id = ISSI_IS25WP256,
8031 .total_size = 32768,
8032 .page_size = 256,
8033 /* supports SFDP */
8034 /* OTP: 1024B total; read 0x68; write 0x62, erase 0x64, read ID 0x4B */
Nico Huberad55d5a2022-06-20 19:32:16 +02008035 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP |
8036 FEATURE_4BA | FEATURE_4BA_ENTER_EAR7 | FEATURE_4BA_EAR_1716,
David Hendricks61818dc2018-10-28 01:02:21 +00008037 .tested = TEST_OK_PREW,
8038 .probe = probe_spi_rdid,
8039 .probe_timing = TIMING_ZERO,
8040 .block_erasers =
8041 {
8042 {
8043 .eraseblocks = { {4 * 1024, 8192} },
8044 .block_erase = spi_block_erase_21,
8045 }, {
8046 .eraseblocks = { {4 * 1024, 8192} },
8047 .block_erase = spi_block_erase_20,
8048 /* could also use spi_block_erase_d7 */
8049 }, {
8050 .eraseblocks = { {32 * 1024, 1024} },
8051 .block_erase = spi_block_erase_5c,
8052 }, {
8053 .eraseblocks = { {32 * 1024, 1024} },
8054 .block_erase = spi_block_erase_52,
8055 }, {
8056 .eraseblocks = { {64 * 1024, 512} },
8057 .block_erase = spi_block_erase_dc,
8058 }, {
8059 .eraseblocks = { {64 * 1024, 512} },
8060 .block_erase = spi_block_erase_d8,
8061 }, {
8062 .eraseblocks = { {32 * 1024 * 1024, 1} },
8063 .block_erase = spi_block_erase_60,
8064 }, {
8065 .eraseblocks = { {32 * 1024 * 1024, 1} },
8066 .block_erase = spi_block_erase_c7,
8067 }
8068 },
8069 .unlock = spi_disable_blockprotect,
8070 .write = spi_chip_write_256,
8071 .read = spi_chip_read,
8072 .voltage = {1650, 1950},
Nico Huberab6b18f2023-01-11 23:38:20 +01008073 .prepare_access = spi_prepare_4ba,
David Hendricks61818dc2018-10-28 01:02:21 +00008074 },
8075
8076 {
8077 .vendor = "ISSI",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00008078 .name = "IS29GL064B",
8079 .bustype = BUS_PARALLEL,
8080 .manufacture_id = ISSI_ID,
8081 .model_id = ISSI_PMC_IS29GL064B,
8082 .total_size = 8192,
8083 .page_size = 128 * 1024, /* actual page size is 16 */
8084 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8085 .tested = TEST_UNTESTED,
8086 .probe = probe_jedec_29gl,
8087 .probe_timing = TIMING_ZERO,
8088 .block_erasers =
8089 {
8090 {
8091 .eraseblocks = {
8092 {8 * 1024, 8},
8093 {64 * 1024, 127},
8094 },
8095 .block_erase = erase_sector_jedec,
8096 }, {
8097 .eraseblocks = { {8 * 1024 * 1024, 1} },
8098 .block_erase = erase_chip_block_jedec,
8099 },
8100 },
8101 .write = write_jedec_1,
8102 .read = read_memmapped,
8103 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +01008104 .prepare_access = prepare_memory_access,
8105 .finish_access = finish_memory_access,
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00008106 },
8107
8108 {
8109 .vendor = "ISSI",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008110 .name = "IS29GL064H/L",
8111 .bustype = BUS_PARALLEL,
8112 .manufacture_id = ISSI_ID,
8113 .model_id = ISSI_PMC_IS29GL064HL,
8114 .total_size = 8192,
8115 .page_size = 128 * 1024, /* actual page size is 16 */
8116 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8117 .tested = TEST_UNTESTED,
8118 .probe = probe_jedec_29gl,
8119 .probe_timing = TIMING_ZERO,
8120 .block_erasers =
8121 {
8122 {
8123 .eraseblocks = { {64 * 1024, 128} },
8124 .block_erase = erase_sector_jedec,
8125 }, {
8126 .eraseblocks = { {8 * 1024 * 1024, 1} },
8127 .block_erase = erase_chip_block_jedec,
8128 },
8129 },
8130 .write = write_jedec_1,
8131 .read = read_memmapped,
8132 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +01008133 .prepare_access = prepare_memory_access,
8134 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008135 },
8136
8137 {
8138 .vendor = "ISSI",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00008139 .name = "IS29GL064T",
8140 .bustype = BUS_PARALLEL,
8141 .manufacture_id = ISSI_ID,
8142 .model_id = ISSI_PMC_IS29GL064T,
8143 .total_size = 8192,
8144 .page_size = 128 * 1024, /* actual page size is 16 */
8145 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8146 .tested = TEST_UNTESTED,
8147 .probe = probe_jedec_29gl,
8148 .probe_timing = TIMING_ZERO,
8149 .block_erasers =
8150 {
8151 {
8152 .eraseblocks = {
8153 {64 * 1024, 127},
8154 {8 * 1024, 8},
8155 },
8156 .block_erase = erase_sector_jedec,
8157 }, {
8158 .eraseblocks = { {8 * 1024 * 1024, 1} },
8159 .block_erase = erase_chip_block_jedec,
8160 },
8161 },
8162 .write = write_jedec_1,
8163 .read = read_memmapped,
8164 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +01008165 .prepare_access = prepare_memory_access,
8166 .finish_access = finish_memory_access,
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00008167 },
8168
8169 {
8170 .vendor = "ISSI",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00008171 .name = "IS29GL128H/L",
8172 .bustype = BUS_PARALLEL,
8173 .manufacture_id = ISSI_ID,
8174 .model_id = ISSI_PMC_IS29GL128HL,
8175 .total_size = 16384,
8176 .page_size = 128 * 1024, /* actual page size is 16 */
8177 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
8178 .tested = TEST_UNTESTED,
8179 .probe = probe_jedec_29gl,
8180 .probe_timing = TIMING_ZERO,
8181 .block_erasers =
8182 {
8183 {
8184 .eraseblocks = { {128 * 1024, 128} },
8185 .block_erase = erase_sector_jedec,
8186 }, {
8187 .eraseblocks = { {16 * 1024 * 1024, 1} },
8188 .block_erase = erase_chip_block_jedec,
8189 },
8190 },
8191 .write = write_jedec_1,
8192 .read = read_memmapped,
8193 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +01008194 .prepare_access = prepare_memory_access,
8195 .finish_access = finish_memory_access,
Stefan Tauner03a9c3c2014-08-03 14:15:14 +00008196 },
8197
8198 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008199 .vendor = "Intel",
8200 .name = "25F160S33B8",
8201 .bustype = BUS_SPI,
8202 .manufacture_id = INTEL_ID,
8203 .model_id = INTEL_25F160S33B8,
8204 .total_size = 2048,
8205 .page_size = 256,
8206 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
8207 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8208 .tested = TEST_UNTESTED,
8209 .probe = probe_spi_rdid,
8210 .probe_timing = TIMING_ZERO,
8211 .block_erasers =
8212 {
8213 {
8214 /* This chip supports erasing of the 8 so-called "parameter blocks" with
8215 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
8216 * have no effect on the memory contents, but sets a flag in the SR.
8217 .eraseblocks = {
8218 {8 * 1024, 8},
8219 {64 * 1024, 31} // inaccessible
8220 },
8221 .block_erase = spi_block_erase_40,
8222 }, { */
8223 .eraseblocks = { {64 * 1024, 32} },
8224 .block_erase = spi_block_erase_d8,
8225 }, {
8226 .eraseblocks = { {2 * 1024 * 1024, 1} },
8227 .block_erase = spi_block_erase_c7,
8228 }
8229 },
8230 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
8231 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
8232 .write = spi_chip_write_256,
8233 .read = spi_chip_read, /* also fast read 0x0B */
8234 .voltage = {2700, 3600},
8235 },
8236
8237 {
8238 .vendor = "Intel",
8239 .name = "25F160S33T8",
8240 .bustype = BUS_SPI,
8241 .manufacture_id = INTEL_ID,
8242 .model_id = INTEL_25F160S33T8,
8243 .total_size = 2048,
8244 .page_size = 256,
8245 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
8246 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8247 .tested = TEST_UNTESTED,
8248 .probe = probe_spi_rdid,
8249 .probe_timing = TIMING_ZERO,
8250 .block_erasers =
8251 {
8252 {
8253 /* This chip supports erasing of the 8 so-called "parameter blocks" with
8254 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
8255 * have no effect on the memory contents, but sets a flag in the SR.
8256 .eraseblocks = {
8257 {64 * 1024, 31}, // inaccessible
8258 {8 * 1024, 8}
8259 },
8260 .block_erase = spi_block_erase_40,
8261 }, { */
8262 .eraseblocks = { {64 * 1024, 32} },
8263 .block_erase = spi_block_erase_d8,
8264 }, {
8265 .eraseblocks = { {2 * 1024 * 1024, 1} },
8266 .block_erase = spi_block_erase_c7,
8267 }
8268 },
8269 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
8270 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
8271 .write = spi_chip_write_256,
8272 .read = spi_chip_read, /* also fast read 0x0B */
8273 .voltage = {2700, 3600},
8274 },
8275
8276 {
8277 .vendor = "Intel",
8278 .name = "25F320S33B8",
8279 .bustype = BUS_SPI,
8280 .manufacture_id = INTEL_ID,
8281 .model_id = INTEL_25F320S33B8,
8282 .total_size = 4096,
8283 .page_size = 256,
8284 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
8285 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8286 .tested = TEST_UNTESTED,
8287 .probe = probe_spi_rdid,
8288 .probe_timing = TIMING_ZERO,
8289 .block_erasers =
8290 {
8291 {
8292 /* This chip supports erasing of the 8 so-called "parameter blocks" with
8293 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
8294 * have no effect on the memory contents, but sets a flag in the SR.
8295 .eraseblocks = {
8296 {8 * 1024, 8},
8297 {64 * 1024, 63} // inaccessible
8298 },
8299 .block_erase = spi_block_erase_40,
8300 }, { */
8301 .eraseblocks = { {64 * 1024, 64} },
8302 .block_erase = spi_block_erase_d8,
8303 }, {
8304 .eraseblocks = { {4 * 1024 * 1024, 1} },
8305 .block_erase = spi_block_erase_c7,
8306 }
8307 },
8308 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
8309 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
8310 .write = spi_chip_write_256,
8311 .read = spi_chip_read, /* also fast read 0x0B */
8312 .voltage = {2700, 3600},
8313 },
8314
8315 {
8316 .vendor = "Intel",
8317 .name = "25F320S33T8",
8318 .bustype = BUS_SPI,
8319 .manufacture_id = INTEL_ID,
8320 .model_id = INTEL_25F320S33T8,
8321 .total_size = 4096,
8322 .page_size = 256,
8323 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
8324 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8325 .tested = TEST_UNTESTED,
8326 .probe = probe_spi_rdid,
8327 .probe_timing = TIMING_ZERO,
8328 .block_erasers =
8329 {
8330 {
8331 /* This chip supports erasing of the 8 so-called "parameter blocks" with
8332 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
8333 * have no effect on the memory contents, but sets a flag in the SR.
8334 .eraseblocks = {
8335 {64 * 1024, 63}, // inaccessible
8336 {8 * 1024, 8}
8337 },
8338 .block_erase = spi_block_erase_40,
8339 }, { */
8340 .eraseblocks = { {64 * 1024, 64} },
8341 .block_erase = spi_block_erase_d8,
8342 }, {
8343 .eraseblocks = { {4 * 1024 * 1024, 1} },
8344 .block_erase = spi_block_erase_c7,
8345 }
8346 },
8347 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
8348 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
8349 .write = spi_chip_write_256,
8350 .read = spi_chip_read, /* also fast read 0x0B */
8351 .voltage = {2700, 3600},
8352 },
8353
8354 {
8355 .vendor = "Intel",
8356 .name = "25F640S33B8",
8357 .bustype = BUS_SPI,
8358 .manufacture_id = INTEL_ID,
8359 .model_id = INTEL_25F640S33B8,
8360 .total_size = 8192,
8361 .page_size = 256,
8362 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
8363 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Zoltan HERPAIe0e8b2b2020-08-08 16:04:34 +02008364 .tested = TEST_OK_PREW,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008365 .probe = probe_spi_rdid,
8366 .probe_timing = TIMING_ZERO,
8367 .block_erasers =
8368 {
8369 {
8370 /* This chip supports erasing of the 8 so-called "parameter blocks" with
8371 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
8372 * have no effect on the memory contents, but sets a flag in the SR.
8373 .eraseblocks = {
8374 {8 * 1024, 8},
8375 {64 * 1024, 127} // inaccessible
8376 },
8377 .block_erase = spi_block_erase_40,
8378 }, { */
8379 .eraseblocks = { {64 * 1024, 128} },
8380 .block_erase = spi_block_erase_d8,
8381 }, {
8382 .eraseblocks = { {8 * 1024 * 1024, 1} },
8383 .block_erase = spi_block_erase_c7,
8384 }
8385 },
8386 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
8387 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
8388 .write = spi_chip_write_256,
8389 .read = spi_chip_read, /* also fast read 0x0B */
8390 .voltage = {2700, 3600},
8391 },
8392
8393 {
8394 .vendor = "Intel",
8395 .name = "25F640S33T8",
8396 .bustype = BUS_SPI,
8397 .manufacture_id = INTEL_ID,
8398 .model_id = INTEL_25F640S33T8,
8399 .total_size = 8192,
8400 .page_size = 256,
8401 /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */
8402 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
8403 .tested = TEST_UNTESTED,
8404 .probe = probe_spi_rdid,
8405 .probe_timing = TIMING_ZERO,
8406 .block_erasers =
8407 {
8408 {
8409 /* This chip supports erasing of the 8 so-called "parameter blocks" with
8410 * opcode 0x40. Trying to access an address outside these 8 8kB blocks does
8411 * have no effect on the memory contents, but sets a flag in the SR.
8412 .eraseblocks = {
8413 {64 * 1024, 127}, // inaccessible
8414 {8 * 1024, 8}
8415 },
8416 .block_erase = spi_block_erase_40,
8417 }, { */
8418 .eraseblocks = { {64 * 1024, 128} },
8419 .block_erase = spi_block_erase_d8,
8420 }, {
8421 .eraseblocks = { {8 * 1024 * 1024, 1} },
8422 .block_erase = spi_block_erase_c7,
8423 }
8424 },
8425 .printlock = spi_prettyprint_status_register_bp2_ep_srwd,
8426 .unlock = spi_disable_blockprotect_bp2_ep_srwd,
8427 .write = spi_chip_write_256,
8428 .read = spi_chip_read, /* also fast read 0x0B */
8429 .voltage = {2700, 3600},
8430 },
8431
8432 {
8433 .vendor = "Intel",
8434 .name = "28F001BN/BX-B",
8435 .bustype = BUS_PARALLEL,
8436 .manufacture_id = INTEL_ID,
8437 .model_id = INTEL_28F001B,
8438 .total_size = 128,
8439 .page_size = 128 * 1024, /* 8k + 2x4k + 112k */
8440 .tested = TEST_UNTESTED,
8441 .probe = probe_jedec,
8442 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8443 .block_erasers =
8444 {
8445 {
8446 .eraseblocks = {
8447 {8 * 1024, 1},
8448 {4 * 1024, 2},
8449 {112 * 1024, 1},
8450 },
8451 .block_erase = erase_block_82802ab,
8452 },
8453 },
8454 .write = write_82802ab,
8455 .read = read_memmapped,
8456 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +01008457 .prepare_access = prepare_memory_access,
8458 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008459 },
8460
8461 {
8462 .vendor = "Intel",
8463 .name = "28F001BN/BX-T",
8464 .bustype = BUS_PARALLEL,
8465 .manufacture_id = INTEL_ID,
8466 .model_id = INTEL_28F001T,
8467 .total_size = 128,
8468 .page_size = 128 * 1024, /* 112k + 2x4k + 8k */
8469 .tested = TEST_OK_PREW,
8470 .probe = probe_jedec,
8471 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8472 .block_erasers =
8473 {
8474 {
8475 .eraseblocks = {
8476 {112 * 1024, 1},
8477 {4 * 1024, 2},
8478 {8 * 1024, 1},
8479 },
8480 .block_erase = erase_block_82802ab,
8481 },
8482 },
8483 .write = write_82802ab,
8484 .read = read_memmapped,
8485 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +01008486 .prepare_access = prepare_memory_access,
8487 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008488 },
8489
8490 {
8491 .vendor = "Intel",
8492 .name = "28F002BC/BL/BV/BX-T",
8493 .bustype = BUS_PARALLEL,
8494 .manufacture_id = INTEL_ID,
8495 .model_id = INTEL_28F002T,
8496 .total_size = 256,
8497 .page_size = 256 * 1024,
8498 .tested = TEST_OK_PRE,
8499 .probe = probe_82802ab,
8500 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8501 .block_erasers =
8502 {
8503 {
8504 .eraseblocks = {
8505 {128 * 1024, 1},
8506 {96 * 1024, 1},
8507 {8 * 1024, 2},
8508 {16 * 1024, 1},
8509 },
8510 .block_erase = erase_block_82802ab,
8511 },
8512 },
8513 .write = write_82802ab,
8514 .read = read_memmapped,
Nico Huber9eec4072023-01-12 01:17:30 +01008515 .prepare_access = prepare_memory_access,
8516 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008517 },
8518
8519 {
8520 .vendor = "Intel",
8521 .name = "28F004B5/BE/BV/BX-B",
8522 .bustype = BUS_PARALLEL,
8523 .manufacture_id = INTEL_ID,
8524 .model_id = INTEL_28F004B,
8525 .total_size = 512,
8526 .page_size = 128 * 1024, /* maximal block size */
8527 .tested = TEST_UNTESTED,
8528 .probe = probe_82802ab,
8529 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8530 .block_erasers =
8531 {
8532 {
8533 .eraseblocks = {
8534 {16 * 1024, 1},
8535 {8 * 1024, 2},
8536 {96 * 1024, 1},
8537 {128 * 1024, 3},
8538 },
8539 .block_erase = erase_block_82802ab,
8540 },
8541 },
8542 .write = write_82802ab,
8543 .read = read_memmapped,
Nico Huber9eec4072023-01-12 01:17:30 +01008544 .prepare_access = prepare_memory_access,
8545 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008546 },
8547
8548 {
8549 .vendor = "Intel",
8550 .name = "28F004B5/BE/BV/BX-T",
8551 .bustype = BUS_PARALLEL,
8552 .manufacture_id = INTEL_ID,
8553 .model_id = INTEL_28F004T,
8554 .total_size = 512,
8555 .page_size = 128 * 1024, /* maximal block size */
8556 .tested = TEST_UNTESTED,
8557 .probe = probe_82802ab,
8558 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8559 .block_erasers =
8560 {
8561 {
8562 .eraseblocks = {
8563 {128 * 1024, 3},
8564 {96 * 1024, 1},
8565 {8 * 1024, 2},
8566 {16 * 1024, 1},
8567 },
8568 .block_erase = erase_block_82802ab,
8569 },
8570 },
8571 .write = write_82802ab,
8572 .read = read_memmapped,
Nico Huber9eec4072023-01-12 01:17:30 +01008573 .prepare_access = prepare_memory_access,
8574 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008575 },
8576
8577 {
8578 .vendor = "Intel",
8579 .name = "28F008S3/S5/SC",
8580 .bustype = BUS_PARALLEL,
8581 .manufacture_id = INTEL_ID,
8582 .model_id = INTEL_28F004S3,
8583 .total_size = 512,
8584 .page_size = 256,
8585 .tested = TEST_UNTESTED,
8586 .probe = probe_82802ab,
8587 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8588 .block_erasers =
8589 {
8590 {
8591 .eraseblocks = { {64 * 1024, 8} },
8592 .block_erase = erase_block_82802ab,
8593 },
8594 },
8595 .unlock = unlock_28f004s5,
8596 .write = write_82802ab,
8597 .read = read_memmapped,
Nico Huber9eec4072023-01-12 01:17:30 +01008598 .prepare_access = prepare_memory_access,
8599 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008600 },
8601
8602 {
8603 .vendor = "Intel",
8604 .name = "28F400BV/BX/CE/CV-B",
8605 .bustype = BUS_PARALLEL,
8606 .manufacture_id = INTEL_ID,
8607 .model_id = INTEL_28F400B,
8608 .total_size = 512,
8609 .page_size = 128 * 1024, /* maximal block size */
8610 .feature_bits = FEATURE_ADDR_SHIFTED,
8611 .tested = TEST_UNTESTED,
8612 .probe = probe_82802ab,
8613 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8614 .block_erasers =
8615 {
8616 {
8617 .eraseblocks = {
8618 {16 * 1024, 1},
8619 {8 * 1024, 2},
8620 {96 * 1024, 1},
8621 {128 * 1024, 3},
8622 },
8623 .block_erase = erase_block_82802ab,
8624 },
8625 },
8626 .write = write_82802ab,
8627 .read = read_memmapped,
Nico Huber9eec4072023-01-12 01:17:30 +01008628 .prepare_access = prepare_memory_access,
8629 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008630 },
8631
8632 {
8633 .vendor = "Intel",
8634 .name = "28F400BV/BX/CE/CV-T",
8635 .bustype = BUS_PARALLEL,
8636 .manufacture_id = INTEL_ID,
8637 .model_id = INTEL_28F400T,
8638 .total_size = 512,
8639 .page_size = 128 * 1024, /* maximal block size */
8640 .feature_bits = FEATURE_ADDR_SHIFTED,
8641 .tested = TEST_UNTESTED,
8642 .probe = probe_82802ab,
8643 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
8644 .block_erasers =
8645 {
8646 {
8647 .eraseblocks = {
8648 {128 * 1024, 3},
8649 {96 * 1024, 1},
8650 {8 * 1024, 2},
8651 {16 * 1024, 1},
8652 },
8653 .block_erase = erase_block_82802ab,
8654 },
8655 },
8656 .write = write_82802ab,
8657 .read = read_memmapped,
Nico Huber9eec4072023-01-12 01:17:30 +01008658 .prepare_access = prepare_memory_access,
8659 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008660 },
8661
8662 {
8663 .vendor = "Intel",
8664 .name = "82802AB",
8665 .bustype = BUS_FWH,
8666 .manufacture_id = INTEL_ID,
8667 .model_id = INTEL_82802AB,
8668 .total_size = 512,
8669 .page_size = 64 * 1024,
Alan Green88552572019-07-24 13:56:06 +10008670 .tested = TEST_OK_PREW,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008671 .probe = probe_82802ab,
8672 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
8673 .block_erasers =
8674 {
8675 {
8676 .eraseblocks = { {64 * 1024, 8} },
8677 .block_erase = erase_block_82802ab,
8678 },
8679 },
8680 .unlock = unlock_regspace2_uniform_64k,
8681 .write = write_82802ab,
8682 .read = read_memmapped,
8683 .voltage = {3000, 3600},
Nico Huberb1974022023-01-12 13:13:12 +01008684 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +01008685 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008686 },
8687
8688 {
8689 .vendor = "Intel",
8690 .name = "82802AC",
8691 .bustype = BUS_FWH,
8692 .manufacture_id = INTEL_ID,
8693 .model_id = INTEL_82802AC,
8694 .total_size = 1024,
8695 .page_size = 64 * 1024,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008696 .tested = TEST_OK_PR,
8697 .probe = probe_82802ab,
8698 .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */
8699 .block_erasers =
8700 {
8701 {
8702 .eraseblocks = { {64 * 1024, 16} },
8703 .block_erase = erase_block_82802ab,
8704 },
8705 },
8706 .unlock = unlock_regspace2_uniform_64k,
8707 .write = write_82802ab,
8708 .read = read_memmapped,
8709 .voltage = {3000, 3600},
Nico Huberb1974022023-01-12 13:13:12 +01008710 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +01008711 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008712 },
8713
8714 {
8715 .vendor = "Macronix",
8716 .name = "MX23L12854",
8717 .bustype = BUS_SPI,
8718 .manufacture_id = MACRONIX_ID,
8719 .model_id = MACRONIX_MX23L12854,
8720 .total_size = 16384,
8721 .page_size = 256,
8722 .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA},
8723 .probe = probe_spi_rdid,
8724 .probe_timing = TIMING_ZERO,
8725 .write = NULL, /* MX23L12854 is a mask ROM, so it is read-only */
8726 .read = spi_chip_read, /* Fast read (0x0B) supported */
8727 .voltage = {3000, 3600},
8728 },
8729
8730 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008731 .vendor = "Macronix",
Michael Coppola583ea322014-08-20 18:56:35 +00008732 .name = "MX23L1654",
8733 .bustype = BUS_SPI,
8734 .manufacture_id = MACRONIX_ID,
8735 .model_id = MACRONIX_MX23L1654,
8736 .total_size = 2048,
8737 .page_size = 256,
8738 .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA},
8739 .probe = probe_spi_rdid,
8740 .probe_timing = TIMING_ZERO,
8741 .write = NULL, /* MX23L1654 is a mask ROM, so it is read-only */
8742 .read = spi_chip_read, /* Fast read (0x0B) supported */
8743 .voltage = {3000, 3600},
8744 },
8745
8746 {
8747 .vendor = "Macronix",
Michael Coppola4e7f36e2014-05-03 23:01:18 +00008748 .name = "MX23L3254",
8749 .bustype = BUS_SPI,
8750 .manufacture_id = MACRONIX_ID,
8751 .model_id = MACRONIX_MX23L3254,
8752 .total_size = 4096,
8753 .page_size = 256,
Stefan Tauner6455dff2014-05-26 00:36:24 +00008754 .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA},
Michael Coppola4e7f36e2014-05-03 23:01:18 +00008755 .probe = probe_spi_rdid,
8756 .probe_timing = TIMING_ZERO,
8757 .write = NULL, /* MX23L3254 is a mask ROM, so it is read-only */
8758 .read = spi_chip_read, /* Fast read (0x0B) supported */
8759 .voltage = {3000, 3600},
8760 },
8761
8762 {
8763 .vendor = "Macronix",
Michael Coppola583ea322014-08-20 18:56:35 +00008764 .name = "MX23L6454",
8765 .bustype = BUS_SPI,
8766 .manufacture_id = MACRONIX_ID,
8767 .model_id = MACRONIX_MX23L6454,
8768 .total_size = 8192,
8769 .page_size = 256,
Stefan Tauner23e10b82016-01-23 16:16:49 +00008770 .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA},
Michael Coppola583ea322014-08-20 18:56:35 +00008771 .probe = probe_spi_rdid,
8772 .probe_timing = TIMING_ZERO,
8773 .write = NULL, /* MX23L6454 is a mask ROM, so it is read-only */
8774 .read = spi_chip_read, /* Fast read (0x0B) supported */
8775 .voltage = {3000, 3600},
8776 },
8777
8778 {
8779 .vendor = "Macronix",
Stefan Taunerf656e802013-02-02 15:35:44 +00008780 .name = "MX25L1005(C)/MX25L1006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008781 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008782 .manufacture_id = MACRONIX_ID,
8783 .model_id = MACRONIX_MX25L1005,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008784 .total_size = 128,
8785 .page_size = 256,
Stefan Taunerf656e802013-02-02 15:35:44 +00008786 /* MX25L1006E supports SFDP */
Nico Huber46552c82024-03-27 01:18:12 +01008787 /* FEATURE_FAST_READ_DOUT: MX25L1006E */
8788 .feature_bits = FEATURE_WRSR_WREN | FEATURE_FAST_READ,
Stefan Taunerd7d423b2012-10-20 09:13:16 +00008789 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008790 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008791 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00008792 .block_erasers =
8793 {
8794 {
8795 .eraseblocks = { {4 * 1024, 32} },
8796 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008797 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00008798 .eraseblocks = { {64 * 1024, 2} },
8799 .block_erase = spi_block_erase_d8,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008800 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00008801 .eraseblocks = { {128 * 1024, 1} },
8802 .block_erase = spi_block_erase_60,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008803 }, {
Carl-Daniel Hailfingerf38431a2009-09-05 02:30:58 +00008804 .eraseblocks = { {128 * 1024, 1} },
8805 .block_erase = spi_block_erase_c7,
8806 },
8807 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008808 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00008809 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008810 .write = spi_chip_write_256,
Nico Huber46552c82024-03-27 01:18:12 +01008811 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008812 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008813 },
8814
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008815 {
8816 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10008817 .name = "MX25L12805D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008818 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008819 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008820 .model_id = MACRONIX_MX25L12805D,
8821 .total_size = 16384,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008822 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008823 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
Nico Huber46552c82024-03-27 01:18:12 +01008824 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_FAST_READ,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008825 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008826 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008827 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008828 .block_erasers =
8829 {
8830 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008831 .eraseblocks = { {4 * 1024, 4096} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008832 .block_erase = spi_block_erase_20,
8833 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008834 .eraseblocks = { {64 * 1024, 256} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008835 .block_erase = spi_block_erase_d8,
8836 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008837 .eraseblocks = { {16 * 1024 * 1024, 1} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008838 .block_erase = spi_block_erase_60,
8839 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008840 .eraseblocks = { {16 * 1024 * 1024, 1} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008841 .block_erase = spi_block_erase_c7,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008842 }
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008843 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10008844 .printlock = spi_prettyprint_status_register_bp3_srwd,
8845 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008846 .write = spi_chip_write_256,
Nico Huber46552c82024-03-27 01:18:12 +01008847 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008848 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008849 },
8850
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008851 {
8852 .vendor = "Macronix",
Tao Xia571f6ad2021-07-21 16:41:53 +08008853 .name = "MX25L12833F/MX25L12835F/MX25L12845E/MX25L12865E/MX25L12873F",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008854 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008855 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008856 .model_id = MACRONIX_MX25L12805D,
8857 .total_size = 16384,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008858 .page_size = 256,
Tao Xia571f6ad2021-07-21 16:41:53 +08008859 /* OTP: MX25L12833F has 1KB total, others have 512B total; enter 0xB1, exit 0xC1 */
Nico Huber46552c82024-03-27 01:18:12 +01008860 /* *F versions: FEATURE_QPI_35 + DC bits (6, 4, 8, 10) in configuration register */
8861 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP |
8862 FEATURE_FAST_READ | FEATURE_FAST_READ_DIO | FEATURE_FAST_READ_QIO,
Stefan Tauner8179be52011-06-04 13:13:34 +00008863 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008864 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008865 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008866 .block_erasers =
8867 {
8868 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008869 .eraseblocks = { {4 * 1024, 4096} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008870 .block_erase = spi_block_erase_20,
8871 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008872 .eraseblocks = { {32 * 1024, 512} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008873 .block_erase = spi_block_erase_52,
8874 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008875 .eraseblocks = { {64 * 1024, 256} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008876 .block_erase = spi_block_erase_d8,
8877 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008878 .eraseblocks = { {16 * 1024 * 1024, 1} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008879 .block_erase = spi_block_erase_60,
8880 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10008881 .eraseblocks = { {16 * 1024 * 1024, 1} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008882 .block_erase = spi_block_erase_c7,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008883 }
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008884 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10008885 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
Nico Huber46552c82024-03-27 01:18:12 +01008886 .reg_bits =
8887 {
8888 .qe = {STATUS1, 6, RW},
8889 },
8890 .printlock = spi_prettyprint_status_register_bp3_srwd,
Alan Green1f9cc7d2019-07-01 11:10:45 +10008891 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008892 .write = spi_chip_write_256,
Nico Huber46552c82024-03-27 01:18:12 +01008893 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00008894 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00008895 },
8896
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008897 {
8898 .vendor = "Macronix",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008899 .name = "MX25L1605",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00008900 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00008901 .manufacture_id = MACRONIX_ID,
8902 .model_id = MACRONIX_MX25L1605,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008903 .total_size = 2048,
8904 .page_size = 256,
Nico Huber46552c82024-03-27 01:18:12 +01008905 .feature_bits = FEATURE_WRSR_WREN | FEATURE_FAST_READ,
Sven Schnelle4bd8a402011-03-07 10:59:06 +00008906 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00008907 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00008908 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008909 .block_erasers =
8910 {
8911 {
Stefan Tauner226037d2013-03-16 01:22:12 +00008912 .eraseblocks = { {64 * 1024, 32} },
8913 .block_erase = spi_block_erase_20,
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008914 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00008915 .eraseblocks = { {64 * 1024, 32} },
8916 .block_erase = spi_block_erase_d8,
8917 }, {
8918 .eraseblocks = { {2 * 1024 * 1024, 1} },
8919 .block_erase = spi_block_erase_60,
8920 }, {
8921 .eraseblocks = { {2 * 1024 * 1024, 1} },
8922 .block_erase = spi_block_erase_c7,
8923 },
8924 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008925 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */
Stefan Tauner226037d2013-03-16 01:22:12 +00008926 .unlock = spi_disable_blockprotect,
8927 .write = spi_chip_write_256,
Nico Huber46552c82024-03-27 01:18:12 +01008928 .read = spi_chip_read,
Stefan Tauner226037d2013-03-16 01:22:12 +00008929 .voltage = {2700, 3600},
8930 },
8931
8932 {
8933 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008934 .name = "MX25L1605A/MX25L1606E/MX25L1608E",
Stefan Tauner226037d2013-03-16 01:22:12 +00008935 .bustype = BUS_SPI,
8936 .manufacture_id = MACRONIX_ID,
8937 .model_id = MACRONIX_MX25L1605,
8938 .total_size = 2048,
8939 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00008940 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L1606E and MX25L1608E only) */
Nico Huber46552c82024-03-27 01:18:12 +01008941 /* FEATURE_FAST_READ_DOUT: MX25L1606E & MX25L1608E */
8942 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_FAST_READ,
Stefan Tauner226037d2013-03-16 01:22:12 +00008943 .tested = TEST_OK_PREW,
8944 .probe = probe_spi_rdid,
8945 .probe_timing = TIMING_ZERO,
8946 .block_erasers =
8947 {
8948 {
8949 .eraseblocks = { {4 * 1024, 512} },
8950 .block_erase = spi_block_erase_20,
8951 }, {
8952 .eraseblocks = { {64 * 1024, 32} },
Carl-Daniel Hailfinger40107122009-10-01 13:15:01 +00008953 .block_erase = spi_block_erase_52,
8954 }, {
8955 .eraseblocks = { {64 * 1024, 32} },
8956 .block_erase = spi_block_erase_d8,
8957 }, {
8958 .eraseblocks = { {2 * 1024 * 1024, 1} },
8959 .block_erase = spi_block_erase_60,
8960 }, {
8961 .eraseblocks = { {2 * 1024 * 1024, 1} },
8962 .block_erase = spi_block_erase_c7,
8963 },
8964 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00008965 .printlock = spi_prettyprint_status_register_bp3_srwd, /* MX25L1605A bp2 only */
Stefan Tauner5c316f92015-02-08 21:57:52 +00008966 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00008967 .write = spi_chip_write_256,
Nico Huber46552c82024-03-27 01:18:12 +01008968 .read = spi_chip_read,
Stefan Tauner226037d2013-03-16 01:22:12 +00008969 .voltage = {2700, 3600},
8970 },
8971
8972 {
8973 .vendor = "Macronix",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00008974 .name = "MX25L1605D/MX25L1608D/MX25L1673E",
Stefan Tauner226037d2013-03-16 01:22:12 +00008975 .bustype = BUS_SPI,
8976 .manufacture_id = MACRONIX_ID,
8977 .model_id = MACRONIX_MX25L1605,
8978 .total_size = 2048,
8979 .page_size = 256,
Nico Huber46552c82024-03-27 01:18:12 +01008980 /* FEATURE_QIO: MX25L1673E */
8981 .feature_bits = FEATURE_WRSR_WREN | FEATURE_FAST_READ | FEATURE_FAST_READ_DIO,
Stefan Tauner226037d2013-03-16 01:22:12 +00008982 .tested = TEST_OK_PREW,
8983 .probe = probe_spi_rdid,
8984 .probe_timing = TIMING_ZERO,
8985 .block_erasers =
8986 {
8987 {
8988 .eraseblocks = { {4 * 1024, 512} },
8989 .block_erase = spi_block_erase_20,
8990 }, {
8991 .eraseblocks = { {64 * 1024, 32} },
8992 .block_erase = spi_block_erase_d8,
8993 }, {
8994 .eraseblocks = { {2 * 1024 * 1024, 1} },
8995 .block_erase = spi_block_erase_60,
8996 }, {
8997 .eraseblocks = { {2 * 1024 * 1024, 1} },
8998 .block_erase = spi_block_erase_c7,
8999 },
9000 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009001 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: Continuously Program (CP) mode, for 73E is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009002 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00009003 .write = spi_chip_write_256,
Nico Huber46552c82024-03-27 01:18:12 +01009004 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009005 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009006 },
9007
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009008 {
9009 .vendor = "Macronix",
Stephan Guillouxf5c70902009-04-19 23:04:00 +00009010 .name = "MX25L1635D",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009011 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009012 .manufacture_id = MACRONIX_ID,
9013 .model_id = MACRONIX_MX25L1635D,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00009014 .total_size = 2048,
9015 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00009016 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
Nico Huber46552c82024-03-27 01:18:12 +01009017 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP |
9018 FEATURE_FAST_READ | FEATURE_FAST_READ_DIO | FEATURE_FAST_READ_QIO,
Angel Ponsc2054872021-01-15 18:57:32 +01009019 .tested = TEST_OK_PREW,
Stephan Guillouxf5c70902009-04-19 23:04:00 +00009020 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009021 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00009022 .block_erasers =
9023 {
9024 {
9025 .eraseblocks = { {4 * 1024, 512} },
9026 .block_erase = spi_block_erase_20,
9027 }, {
9028 .eraseblocks = { {64 * 1024, 32} },
9029 .block_erase = spi_block_erase_d8,
9030 }, {
9031 .eraseblocks = { {2 * 1024 * 1024, 1} },
9032 .block_erase = spi_block_erase_60,
9033 }, {
9034 .eraseblocks = { {2 * 1024 * 1024, 1} },
9035 .block_erase = spi_block_erase_c7,
9036 }
9037 },
Nico Huber46552c82024-03-27 01:18:12 +01009038 .reg_bits =
9039 {
9040 .qe = {STATUS1, 6, RW},
9041 },
9042 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner5c316f92015-02-08 21:57:52 +00009043 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009044 .write = spi_chip_write_256,
Nico Huber46552c82024-03-27 01:18:12 +01009045 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009046 .voltage = {2700, 3600},
Stephan Guillouxf5c70902009-04-19 23:04:00 +00009047 },
Stephan Guillouxfd315502009-04-20 22:54:13 +00009048
Stephan Guillouxf5c70902009-04-19 23:04:00 +00009049 {
9050 .vendor = "Macronix",
Stephan Guilloux3611b802010-09-13 19:59:28 +00009051 .name = "MX25L1635E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009052 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009053 .manufacture_id = MACRONIX_ID,
9054 .model_id = MACRONIX_MX25L1635E,
Stephan Guilloux3611b802010-09-13 19:59:28 +00009055 .total_size = 2048,
9056 .page_size = 256,
Stefan Tauner226037d2013-03-16 01:22:12 +00009057 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
Nico Huber46552c82024-03-27 01:18:12 +01009058 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP |
9059 FEATURE_FAST_READ | FEATURE_FAST_READ_DIO | FEATURE_FAST_READ_QIO,
Stephan Guilloux3611b802010-09-13 19:59:28 +00009060 .tested = TEST_UNTESTED,
9061 .probe = probe_spi_rdid,
9062 .probe_timing = TIMING_ZERO,
9063 .block_erasers =
9064 {
9065 {
9066 .eraseblocks = { {4 * 1024, 512} },
9067 .block_erase = spi_block_erase_20,
9068 }, {
9069 .eraseblocks = { {64 * 1024, 32} },
9070 .block_erase = spi_block_erase_d8,
9071 }, {
9072 .eraseblocks = { {2 * 1024 * 1024, 1} },
9073 .block_erase = spi_block_erase_60,
9074 }, {
9075 .eraseblocks = { {2 * 1024 * 1024, 1} },
9076 .block_erase = spi_block_erase_c7,
9077 }
9078 },
Nico Huber46552c82024-03-27 01:18:12 +01009079 .reg_bits =
9080 {
9081 .qe = {STATUS1, 6, RW},
9082 },
9083 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner5c316f92015-02-08 21:57:52 +00009084 .unlock = spi_disable_blockprotect_bp3_srwd,
Stephan Guilloux3611b802010-09-13 19:59:28 +00009085 .write = spi_chip_write_256,
Nico Huber46552c82024-03-27 01:18:12 +01009086 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +00009087 .voltage = {2700, 3600},
Stephan Guilloux3611b802010-09-13 19:59:28 +00009088 },
9089
9090 {
9091 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009092 .name = "MX25L2005(C)/MX25L2006E",
9093 .bustype = BUS_SPI,
9094 .manufacture_id = MACRONIX_ID,
9095 .model_id = MACRONIX_MX25L2005,
9096 .total_size = 256,
9097 .page_size = 256,
Nico Huber46552c82024-03-27 01:18:12 +01009098 /* FEATURE_FAST_READ_DOUT: MX25L2006E */
9099 .feature_bits = FEATURE_WRSR_WREN | FEATURE_FAST_READ,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009100 .tested = TEST_OK_PREW,
9101 .probe = probe_spi_rdid,
9102 .probe_timing = TIMING_ZERO,
9103 .block_erasers =
9104 {
9105 {
9106 .eraseblocks = { {4 * 1024, 64} },
9107 .block_erase = spi_block_erase_20,
9108 }, {
9109 .eraseblocks = { {64 * 1024, 4} },
9110 .block_erase = spi_block_erase_52,
9111 }, {
9112 .eraseblocks = { {64 * 1024, 4} },
9113 .block_erase = spi_block_erase_d8,
9114 }, {
9115 .eraseblocks = { {256 * 1024, 1} },
9116 .block_erase = spi_block_erase_60,
9117 }, {
9118 .eraseblocks = { {256 * 1024, 1} },
9119 .block_erase = spi_block_erase_c7,
9120 },
9121 },
9122 .printlock = spi_prettyprint_status_register_bp1_srwd,
9123 .unlock = spi_disable_blockprotect,
9124 .write = spi_chip_write_256,
Nico Huber46552c82024-03-27 01:18:12 +01009125 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009126 .voltage = {2700, 3600},
9127 },
9128
9129 {
9130 .vendor = "Macronix",
Alan Green03707302019-08-26 12:50:43 +10009131 .name = "MX25L25635F/MX25L25645G",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009132 .bustype = BUS_SPI,
9133 .manufacture_id = MACRONIX_ID,
9134 .model_id = MACRONIX_MX25L25635F,
9135 .total_size = 32768,
9136 .page_size = 256,
9137 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
Nico Huber46552c82024-03-27 01:18:12 +01009138 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP |
9139 FEATURE_4BA | FEATURE_QPI_35 | FEATURE_FAST_READ_QPI4B,
9140 .dummy_cycles = { .qpi_read_params = { 6, 4, 8, 10 } },
Alan Green1f9cc7d2019-07-01 11:10:45 +10009141 .tested = TEST_OK_PREW,
9142 .probe = probe_spi_rdid,
9143 .probe_timing = TIMING_ZERO,
9144 .block_erasers =
9145 {
9146 {
9147 .eraseblocks = { {4 * 1024, 8192} },
9148 .block_erase = spi_block_erase_21,
9149 }, {
9150 .eraseblocks = { {4 * 1024, 8192} },
9151 .block_erase = spi_block_erase_20,
9152 }, {
9153 .eraseblocks = { {32 * 1024, 1024} },
9154 .block_erase = spi_block_erase_5c,
9155 }, {
9156 .eraseblocks = { {32 * 1024, 1024} },
9157 .block_erase = spi_block_erase_52,
9158 }, {
9159 .eraseblocks = { {64 * 1024, 512} },
9160 .block_erase = spi_block_erase_dc,
9161 }, {
9162 .eraseblocks = { {64 * 1024, 512} },
9163 .block_erase = spi_block_erase_d8,
9164 }, {
9165 .eraseblocks = { {32 * 1024 * 1024, 1} },
9166 .block_erase = spi_block_erase_60,
9167 }, {
9168 .eraseblocks = { {32 * 1024 * 1024, 1} },
9169 .block_erase = spi_block_erase_c7,
9170 }
9171 },
9172 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
Nico Huber46552c82024-03-27 01:18:12 +01009173 .reg_bits = {
9174 .qe = {STATUS1, 6, RW},
9175 .dc = {{CONFIG, 6, RW}, {CONFIG, 7, RW}},
9176 },
9177 .printlock = spi_prettyprint_status_register_bp3_srwd,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009178 .unlock = spi_disable_blockprotect_bp3_srwd,
9179 .write = spi_chip_write_256,
Nico Huber46552c82024-03-27 01:18:12 +01009180 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009181 .voltage = {2700, 3600},
Nico Huberab6b18f2023-01-11 23:38:20 +01009182 .prepare_access = spi_prepare_4ba,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009183 },
9184
9185 {
9186 .vendor = "Macronix",
Stefan Tauner226037d2013-03-16 01:22:12 +00009187 .name = "MX25L3205(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009188 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009189 .manufacture_id = MACRONIX_ID,
9190 .model_id = MACRONIX_MX25L3205,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009191 .total_size = 4096,
9192 .page_size = 256,
Nico Huber46552c82024-03-27 01:18:12 +01009193 .feature_bits = FEATURE_WRSR_WREN | FEATURE_FAST_READ,
David Hendricks22e05322010-12-13 23:54:59 +00009194 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009195 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009196 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +00009197 .block_erasers =
9198 {
9199 {
Stefan Tauner226037d2013-03-16 01:22:12 +00009200 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00009201 .block_erase = spi_block_erase_20,
9202 }, {
Stefan Tauner226037d2013-03-16 01:22:12 +00009203 .eraseblocks = { {64 * 1024, 64} },
Sean Nelson6b11ad22009-12-23 17:05:59 +00009204 .block_erase = spi_block_erase_d8,
9205 }, {
9206 .eraseblocks = { {4 * 1024 * 1024, 1} },
9207 .block_erase = spi_block_erase_60,
9208 }, {
9209 .eraseblocks = { {4 * 1024 * 1024, 1} },
9210 .block_erase = spi_block_erase_c7,
9211 },
9212 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009213 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +00009214 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009215 .write = spi_chip_write_256,
Nico Huber46552c82024-03-27 01:18:12 +01009216 .read = spi_chip_read,
Stefan Tauner226037d2013-03-16 01:22:12 +00009217 .voltage = {2700, 3600},
9218 },
9219
9220 {
9221 .vendor = "Macronix",
9222 .name = "MX25L3205D/MX25L3208D",
9223 .bustype = BUS_SPI,
9224 .manufacture_id = MACRONIX_ID,
9225 .model_id = MACRONIX_MX25L3205,
9226 .total_size = 4096,
9227 .page_size = 256,
9228 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
Nico Huber46552c82024-03-27 01:18:12 +01009229 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_FAST_READ | FEATURE_FAST_READ_DIO,
Stefan Tauner226037d2013-03-16 01:22:12 +00009230 .tested = TEST_OK_PREW,
9231 .probe = probe_spi_rdid,
9232 .probe_timing = TIMING_ZERO,
9233 .block_erasers =
9234 {
9235 {
9236 .eraseblocks = { {4 * 1024, 1024} },
9237 .block_erase = spi_block_erase_20,
9238 }, {
9239 .eraseblocks = { {64 * 1024, 64} },
9240 .block_erase = spi_block_erase_d8,
9241 }, {
9242 .eraseblocks = { {4 * 1024 * 1024, 1} },
9243 .block_erase = spi_block_erase_60,
9244 }, {
9245 .eraseblocks = { {4 * 1024 * 1024, 1} },
9246 .block_erase = spi_block_erase_c7,
9247 },
9248 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009249 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009250 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00009251 .write = spi_chip_write_256,
Nico Huber46552c82024-03-27 01:18:12 +01009252 .read = spi_chip_read,
Stefan Tauner226037d2013-03-16 01:22:12 +00009253 .voltage = {2700, 3600},
9254 },
9255
9256 {
9257 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009258 .name = "MX25L3206E/MX25L3208E",
Stefan Tauner226037d2013-03-16 01:22:12 +00009259 .bustype = BUS_SPI,
9260 .manufacture_id = MACRONIX_ID,
9261 .model_id = MACRONIX_MX25L3205,
9262 .total_size = 4096,
9263 .page_size = 256,
9264 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
Nico Huber46552c82024-03-27 01:18:12 +01009265 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_FAST_READ | FEATURE_FAST_READ_DOUT,
Stefan Tauner226037d2013-03-16 01:22:12 +00009266 .tested = TEST_OK_PREW,
9267 .probe = probe_spi_rdid,
9268 .probe_timing = TIMING_ZERO,
9269 .block_erasers =
9270 {
9271 {
9272 .eraseblocks = { {4 * 1024, 1024} },
9273 .block_erase = spi_block_erase_20,
9274 }, {
9275 .eraseblocks = { {64 * 1024, 64} },
9276 .block_erase = spi_block_erase_d8,
9277 }, {
9278 .eraseblocks = { {64 * 1024, 64} },
9279 .block_erase = spi_block_erase_52,
9280 }, {
9281 .eraseblocks = { {4 * 1024 * 1024, 1} },
9282 .block_erase = spi_block_erase_60,
9283 }, {
9284 .eraseblocks = { {4 * 1024 * 1024, 1} },
9285 .block_erase = spi_block_erase_c7,
9286 },
9287 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009288 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner5c316f92015-02-08 21:57:52 +00009289 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00009290 .write = spi_chip_write_256,
Nico Huber46552c82024-03-27 01:18:12 +01009291 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009292 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009293 },
9294
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009295 {
9296 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009297 .name = "MX25L3235D",
9298 .bustype = BUS_SPI,
9299 .manufacture_id = MACRONIX_ID,
9300 .model_id = MACRONIX_MX25L3235D,
9301 .total_size = 4096,
9302 .page_size = 256,
9303 /* OTP: 256B total; enter 0xB1, exit 0xC1 */
Nico Huber46552c82024-03-27 01:18:12 +01009304 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP |
9305 FEATURE_FAST_READ | FEATURE_FAST_READ_DIO | FEATURE_FAST_READ_QIO,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009306 .tested = TEST_UNTESTED,
9307 .probe = probe_spi_rdid,
9308 .probe_timing = TIMING_ZERO,
9309 .block_erasers =
9310 {
9311 {
9312 .eraseblocks = { {4 * 1024, 1024} },
9313 .block_erase = spi_block_erase_20,
9314 }, {
9315 .eraseblocks = { {64 * 1024, 64} },
9316 .block_erase = spi_block_erase_d8,
9317 }, {
9318 .eraseblocks = { {4 * 1024 * 1024, 1} },
9319 .block_erase = spi_block_erase_60,
9320 }, {
9321 .eraseblocks = { {4 * 1024 * 1024, 1} },
9322 .block_erase = spi_block_erase_c7,
9323 }
9324 },
Nico Huber46552c82024-03-27 01:18:12 +01009325 .reg_bits =
9326 {
9327 .qe = {STATUS1, 6, RW},
9328 },
9329 .printlock = spi_prettyprint_status_register_bp3_srwd,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009330 .unlock = spi_disable_blockprotect_bp3_srwd,
9331 .write = spi_chip_write_256,
9332 .read = spi_chip_read,
9333 .voltage = {2700, 3600},
9334 },
9335
9336 {
9337 .vendor = "Macronix",
Nico Huberb6683e02021-04-21 13:04:29 +02009338 .name = "MX25L3233F/MX25L3273E",
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00009339 .bustype = BUS_SPI,
9340 .manufacture_id = MACRONIX_ID,
9341 .model_id = MACRONIX_MX25L3205,
9342 .total_size = 4096,
9343 .page_size = 256,
Nico Huber6e69e2b2021-04-21 13:03:13 +02009344 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
Nico Huber46552c82024-03-27 01:18:12 +01009345 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QIO,
Stefan Tauner23e10b82016-01-23 16:16:49 +00009346 .tested = TEST_OK_PREW,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00009347 .probe = probe_spi_rdid,
9348 .probe_timing = TIMING_ZERO,
9349 .block_erasers =
9350 {
9351 {
9352 .eraseblocks = { {4 * 1024, 1024} },
9353 .block_erase = spi_block_erase_20,
9354 }, {
9355 .eraseblocks = { {32 * 1024, 128} },
9356 .block_erase = spi_block_erase_52,
9357 }, {
9358 .eraseblocks = { {64 * 1024, 64} },
9359 .block_erase = spi_block_erase_d8,
9360 }, {
9361 .eraseblocks = { {4 * 1024 * 1024, 1} },
9362 .block_erase = spi_block_erase_60,
9363 }, {
9364 .eraseblocks = { {4 * 1024 * 1024, 1} },
9365 .block_erase = spi_block_erase_c7,
9366 },
9367 },
Nico Huber46552c82024-03-27 01:18:12 +01009368 .reg_bits =
9369 {
9370 .qe = {STATUS1, 6, RW},
9371 },
Stefan Tauner12f3d512014-05-27 21:27:27 +00009372 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner5c316f92015-02-08 21:57:52 +00009373 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00009374 .write = spi_chip_write_256,
Nico Huber46552c82024-03-27 01:18:12 +01009375 .read = spi_chip_read,
Nico Huberb6683e02021-04-21 13:04:29 +02009376 .voltage = {2700, 3600}, /* 33F 2.65V..3.6V */
Stefan Taunerc2eec2c2014-05-03 21:33:01 +00009377 },
9378
9379 {
9380 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009381 .name = "MX25L4005(A/C)/MX25L4006E",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009382 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009383 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009384 .model_id = MACRONIX_MX25L4005,
9385 .total_size = 512,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00009386 .page_size = 256,
Nico Huber46552c82024-03-27 01:18:12 +01009387 /* FEATURE_FAST_READ_DOUT: MX25L4006E */
9388 .feature_bits = FEATURE_WRSR_WREN | FEATURE_FAST_READ,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009389 .tested = TEST_OK_PREW,
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00009390 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009391 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00009392 .block_erasers =
9393 {
9394 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009395 .eraseblocks = { {4 * 1024, 128} },
Sean Nelson54596372010-01-09 05:30:14 +00009396 .block_erase = spi_block_erase_20,
9397 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009398 .eraseblocks = { {64 * 1024, 8} },
9399 .block_erase = spi_block_erase_52,
9400 }, {
9401 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson54596372010-01-09 05:30:14 +00009402 .block_erase = spi_block_erase_d8,
9403 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009404 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00009405 .block_erase = spi_block_erase_60,
9406 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009407 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00009408 .block_erase = spi_block_erase_c7,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009409 },
Sean Nelson54596372010-01-09 05:30:14 +00009410 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10009411 .printlock = spi_prettyprint_status_register_bp2_srwd,
9412 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009413 .write = spi_chip_write_256,
Nico Huber46552c82024-03-27 01:18:12 +01009414 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009415 .voltage = {2700, 3600},
Stephan Guilloux70ea9a32009-04-23 22:51:56 +00009416 },
9417
9418 {
9419 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009420 .name = "MX25L512(E)/MX25V512(C)",
9421 .bustype = BUS_SPI,
9422 .manufacture_id = MACRONIX_ID,
9423 .model_id = MACRONIX_MX25L512,
9424 .total_size = 64,
9425 .page_size = 256,
9426 /* MX25L512E supports SFDP */
Nico Huber46552c82024-03-27 01:18:12 +01009427 /* FEATURE_FAST_READ_DOUT: MX25L512E */
9428 .feature_bits = FEATURE_WRSR_WREN | FEATURE_FAST_READ,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009429 .tested = TEST_OK_PREW,
9430 .probe = probe_spi_rdid,
9431 .probe_timing = TIMING_ZERO,
9432 .block_erasers =
9433 {
9434 {
9435 .eraseblocks = { {4 * 1024, 16} },
9436 .block_erase = spi_block_erase_20,
9437 }, {
9438 .eraseblocks = { {64 * 1024, 1} },
9439 .block_erase = spi_block_erase_52,
9440 }, {
9441 .eraseblocks = { {64 * 1024, 1} },
9442 .block_erase = spi_block_erase_d8,
9443 }, {
9444 .eraseblocks = { {64 * 1024, 1} },
9445 .block_erase = spi_block_erase_60,
9446 }, {
9447 .eraseblocks = { {64 * 1024, 1} },
9448 .block_erase = spi_block_erase_c7,
9449 },
9450 },
9451 .printlock = spi_prettyprint_status_register_bp1_srwd,
9452 .unlock = spi_disable_blockprotect,
9453 .write = spi_chip_write_256,
Nico Huber46552c82024-03-27 01:18:12 +01009454 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009455 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V512(C) */
9456 },
9457
9458 {
9459 .vendor = "Macronix",
Steve Markgraf7e6f3a72020-07-13 18:22:56 +02009460 .name = "MX25L5121E",
9461 .bustype = BUS_SPI,
9462 .manufacture_id = MACRONIX_ID,
9463 .model_id = MACRONIX_MX25L5121E,
9464 .total_size = 64,
9465 .page_size = 32,
Nico Huber46552c82024-03-27 01:18:12 +01009466 .feature_bits = FEATURE_WRSR_WREN | FEATURE_FAST_READ,
Steve Markgraf7e6f3a72020-07-13 18:22:56 +02009467 .tested = TEST_OK_PREW,
9468 .probe = probe_spi_rdid,
9469 .probe_timing = TIMING_ZERO,
9470 .block_erasers =
9471 {
9472 {
9473 .eraseblocks = { {4 * 1024, 16} },
9474 .block_erase = spi_block_erase_20,
9475 }, {
9476 .eraseblocks = { {64 * 1024, 1} },
9477 .block_erase = spi_block_erase_52,
9478 }, {
9479 .eraseblocks = { {64 * 1024, 1} },
9480 .block_erase = spi_block_erase_d8,
9481 }, {
9482 .eraseblocks = { {64 * 1024, 1} },
9483 .block_erase = spi_block_erase_60,
9484 }, {
9485 .eraseblocks = { {64 * 1024, 1} },
9486 .block_erase = spi_block_erase_c7,
9487 },
9488 },
9489 .printlock = spi_prettyprint_status_register_bp1_srwd,
9490 .unlock = spi_disable_blockprotect,
9491 .write = spi_chip_write_256,
Nico Huber46552c82024-03-27 01:18:12 +01009492 .read = spi_chip_read,
Steve Markgraf7e6f3a72020-07-13 18:22:56 +02009493 .voltage = {2700, 3600},
9494 },
9495
9496 {
9497 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009498 .name = "MX25L6405",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009499 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009500 .manufacture_id = MACRONIX_ID,
9501 .model_id = MACRONIX_MX25L6405,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009502 .total_size = 8192,
9503 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009504 /* Has an additional 512B EEPROM sector */
9505 .feature_bits = FEATURE_WRSR_WREN,
Paul Menzelac427b22012-02-16 21:07:07 +00009506 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009507 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009508 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00009509 .block_erasers =
9510 {
9511 {
9512 .eraseblocks = { {64 * 1024, 128} },
9513 .block_erase = spi_block_erase_20,
9514 }, {
9515 .eraseblocks = { {64 * 1024, 128} },
9516 .block_erase = spi_block_erase_d8,
9517 }, {
9518 .eraseblocks = { {8 * 1024 * 1024, 1} },
9519 .block_erase = spi_block_erase_60,
9520 }, {
9521 .eraseblocks = { {8 * 1024 * 1024, 1} },
9522 .block_erase = spi_block_erase_c7,
9523 }
9524 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009525 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: error flag */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009526 .unlock = spi_disable_blockprotect_bp3_srwd,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009527 .write = spi_chip_write_256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009528 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +00009529 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +00009530 },
9531
Stephan Guilloux5c5b5252009-01-08 03:40:17 +00009532 {
9533 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009534 .name = "MX25L6405D",
Stefan Tauner226037d2013-03-16 01:22:12 +00009535 .bustype = BUS_SPI,
9536 .manufacture_id = MACRONIX_ID,
9537 .model_id = MACRONIX_MX25L6405,
9538 .total_size = 8192,
9539 .page_size = 256,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009540 /* OTP: 64B total; enter 0xB1, exit 0xC1 */
Nico Huber46552c82024-03-27 01:18:12 +01009541 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_FAST_READ | FEATURE_FAST_READ_DIO,
Stefan Tauner226037d2013-03-16 01:22:12 +00009542 .tested = TEST_OK_PREW,
9543 .probe = probe_spi_rdid,
9544 .probe_timing = TIMING_ZERO,
9545 .block_erasers =
9546 {
9547 {
9548 .eraseblocks = { {4 * 1024, 2048} },
9549 .block_erase = spi_block_erase_20,
9550 }, {
9551 .eraseblocks = { {64 * 1024, 128} },
9552 .block_erase = spi_block_erase_d8,
9553 }, {
9554 .eraseblocks = { {8 * 1024 * 1024, 1} },
9555 .block_erase = spi_block_erase_60,
9556 }, {
9557 .eraseblocks = { {8 * 1024 * 1024, 1} },
9558 .block_erase = spi_block_erase_c7,
9559 }
9560 },
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009561 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009562 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00009563 .write = spi_chip_write_256,
Nico Huber46552c82024-03-27 01:18:12 +01009564 .read = spi_chip_read,
Stefan Tauner226037d2013-03-16 01:22:12 +00009565 .voltage = {2700, 3600},
9566 },
9567
9568 {
9569 .vendor = "Macronix",
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009570 .name = "MX25L6406E/MX25L6408E",
9571 .bustype = BUS_SPI,
9572 .manufacture_id = MACRONIX_ID,
9573 .model_id = MACRONIX_MX25L6405,
9574 .total_size = 8192,
9575 .page_size = 256,
9576 /* MX25L6406E supports SFDP */
9577 /* OTP: 06E 64B total; enter 0xB1, exit 0xC1 */
Nico Huber46552c82024-03-27 01:18:12 +01009578 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_FAST_READ | FEATURE_FAST_READ_DOUT,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009579 .tested = TEST_OK_PREW,
9580 .probe = probe_spi_rdid,
9581 .probe_timing = TIMING_ZERO,
9582 .block_erasers =
9583 {
9584 {
9585 .eraseblocks = { {4 * 1024, 2048} },
9586 .block_erase = spi_block_erase_20,
9587 }, {
9588 .eraseblocks = { {64 * 1024, 128} },
9589 .block_erase = spi_block_erase_52,
9590 }, {
9591 .eraseblocks = { {64 * 1024, 128} },
9592 .block_erase = spi_block_erase_d8,
9593 }, {
9594 .eraseblocks = { {8 * 1024 * 1024, 1} },
9595 .block_erase = spi_block_erase_60,
9596 }, {
9597 .eraseblocks = { {8 * 1024 * 1024, 1} },
9598 .block_erase = spi_block_erase_c7,
9599 }
9600 },
9601 .printlock = spi_prettyprint_status_register_bp3_srwd,
9602 .unlock = spi_disable_blockprotect_bp3_srwd,
9603 .write = spi_chip_write_256,
Nico Huber46552c82024-03-27 01:18:12 +01009604 .read = spi_chip_read,
Stefan Tauner74dc73f2015-03-01 22:04:38 +00009605 .voltage = {2700, 3600},
9606 },
9607
9608 {
9609 .vendor = "Macronix",
Nico Huberb0072782017-12-06 21:02:57 +01009610 .name = "MX25L6436E/MX25L6445E/MX25L6465E/MX25L6473E/MX25L6473F",
Stefan Tauner226037d2013-03-16 01:22:12 +00009611 .bustype = BUS_SPI,
9612 .manufacture_id = MACRONIX_ID,
9613 .model_id = MACRONIX_MX25L6405,
9614 .total_size = 8192,
9615 .page_size = 256,
9616 /* supports SFDP */
9617 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
Nico Huber46552c82024-03-27 01:18:12 +01009618 /* FEATURE_QIO: MX25L6473E, MX25L6473F */
9619 /* FEATURE_FAST_READ_DOUT, _QOUT: MX25L6436E */
9620 /* FEATURE_FAST_READ_DIO, _QIO: MX25L6445E, MX25L6465E */
9621 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_FAST_READ,
Stefan Tauner226037d2013-03-16 01:22:12 +00009622 .tested = TEST_OK_PREW,
9623 .probe = probe_spi_rdid,
9624 .probe_timing = TIMING_ZERO,
9625 .block_erasers =
9626 {
9627 {
9628 .eraseblocks = { {4 * 1024, 2048} },
9629 .block_erase = spi_block_erase_20,
9630 }, {
9631 .eraseblocks = { {32 * 1024, 256} },
9632 .block_erase = spi_block_erase_52,
9633 }, {
9634 .eraseblocks = { {64 * 1024, 128} },
9635 .block_erase = spi_block_erase_d8,
9636 }, {
9637 .eraseblocks = { {8 * 1024 * 1024, 1} },
9638 .block_erase = spi_block_erase_60,
9639 }, {
9640 .eraseblocks = { {8 * 1024 * 1024, 1} },
9641 .block_erase = spi_block_erase_c7,
9642 }
9643 },
Nico Huber46552c82024-03-27 01:18:12 +01009644 .reg_bits =
9645 {
9646 .qe = {STATUS1, 6, RW},
9647 },
9648 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner5c316f92015-02-08 21:57:52 +00009649 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner226037d2013-03-16 01:22:12 +00009650 .write = spi_chip_write_256,
Nico Huber46552c82024-03-27 01:18:12 +01009651 .read = spi_chip_read,
Stefan Tauner226037d2013-03-16 01:22:12 +00009652 .voltage = {2700, 3600},
9653 },
9654
9655 {
9656 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009657 .name = "MX25L6495F",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +00009658 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +00009659 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009660 .model_id = MACRONIX_MX25L6495F,
9661 .total_size = 8192,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00009662 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009663 /* OTP: 1024B total; enter 0xB1, exit 0xC1 */
Stefan Tauner226037d2013-03-16 01:22:12 +00009664 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner0554ca52013-07-25 22:54:25 +00009665 .tested = TEST_OK_PREW,
Stephan Guilloux2f132fe2009-04-21 01:47:16 +00009666 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +00009667 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +00009668 .block_erasers =
9669 {
9670 {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009671 .eraseblocks = { {4 * 1024, 2048} },
Sean Nelson54596372010-01-09 05:30:14 +00009672 .block_erase = spi_block_erase_20,
9673 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009674 .eraseblocks = { {32 * 1024, 256} },
9675 .block_erase = spi_block_erase_52,
9676 }, {
Aarya Chaumal478e1792022-06-04 01:34:44 +05309677 .eraseblocks = { {64 * 1024, 128} },
9678 .block_erase = spi_block_erase_d8,
9679 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009680 .eraseblocks = { {8 * 1024 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00009681 .block_erase = spi_block_erase_60,
9682 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009683 .eraseblocks = { {8 * 1024 * 1024, 1} },
Sean Nelson54596372010-01-09 05:30:14 +00009684 .block_erase = spi_block_erase_c7,
9685 }
9686 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10009687 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +00009688 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009689 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
Stefan Tauner5c316f92015-02-08 21:57:52 +00009690 .voltage = {2700, 3600},
9691 },
9692
9693 {
9694 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009695 .name = "MX25L8005/MX25L8006E/MX25L8008E/MX25V8005",
Stefan Tauner5c316f92015-02-08 21:57:52 +00009696 .bustype = BUS_SPI,
9697 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009698 .model_id = MACRONIX_MX25L8005,
9699 .total_size = 1024,
9700 .page_size = 256,
9701 /* MX25L8006E, MX25L8008E support SFDP */
9702 /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L8006E, MX25L8008E only) */
Nico Huber46552c82024-03-27 01:18:12 +01009703 /* FEATURE_FAST_READ_DOUT: MX25L8006E, MX25L8008E */
9704 .feature_bits = FEATURE_WRSR_WREN | FEATURE_FAST_READ,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009705 .tested = TEST_OK_PREW,
9706 .probe = probe_spi_rdid,
9707 .probe_timing = TIMING_ZERO,
9708 .block_erasers =
9709 {
9710 {
9711 .eraseblocks = { {4 * 1024, 256} },
9712 .block_erase = spi_block_erase_20,
9713 }, {
9714 .eraseblocks = { {64 * 1024, 16} },
9715 .block_erase = spi_block_erase_52,
9716 }, {
9717 .eraseblocks = { {64 * 1024, 16} },
9718 .block_erase = spi_block_erase_d8,
9719 }, {
9720 .eraseblocks = { {1024 * 1024, 1} },
9721 .block_erase = spi_block_erase_60,
9722 }, {
9723 .eraseblocks = { {1024 * 1024, 1} },
9724 .block_erase = spi_block_erase_c7,
9725 },
9726 },
9727 .printlock = spi_prettyprint_status_register_bp2_srwd,
9728 .unlock = spi_disable_blockprotect,
9729 .write = spi_chip_write_256,
Nico Huber46552c82024-03-27 01:18:12 +01009730 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009731 .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V8005 */
9732 },
9733
9734 {
9735 .vendor = "Macronix",
sibradzicf62623c2020-03-14 17:21:34 +09009736 .name = "MX25R3235F",
9737 .bustype = BUS_SPI,
9738 .manufacture_id = MACRONIX_ID,
9739 .model_id = MACRONIX_MX25R3235F,
9740 .total_size = 4096,
9741 .page_size = 256,
9742 /* OTP: 1024B total; enter 0xB1, exit 0xC1 */
Nico Huber5f509992024-03-27 01:18:12 +01009743 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QIO,
sibradzicf62623c2020-03-14 17:21:34 +09009744 .tested = TEST_OK_PREW,
9745 .probe = probe_spi_rdid,
9746 .probe_timing = TIMING_ZERO,
9747 .block_erasers =
9748 {
9749 {
9750 .eraseblocks = { {4 * 1024, 1024} },
9751 .block_erase = spi_block_erase_20,
9752 }, {
sibradzicf62623c2020-03-14 17:21:34 +09009753 .eraseblocks = { {32 * 1024, 128} },
9754 .block_erase = spi_block_erase_52,
9755 }, {
Aarya Chaumal478e1792022-06-04 01:34:44 +05309756 .eraseblocks = { {64 * 1024, 64} },
9757 .block_erase = spi_block_erase_d8,
9758 }, {
sibradzicf62623c2020-03-14 17:21:34 +09009759 .eraseblocks = { {4 * 1024 * 1024, 1} },
9760 .block_erase = spi_block_erase_60,
9761 }, {
9762 .eraseblocks = { {4 * 1024 * 1024, 1} },
9763 .block_erase = spi_block_erase_c7,
9764 }
9765 },
Nico Huber5f509992024-03-27 01:18:12 +01009766 .reg_bits =
9767 {
9768 .qe = {STATUS1, 6, RW},
9769 },
9770 .printlock = spi_prettyprint_status_register_bp3_srwd,
sibradzicf62623c2020-03-14 17:21:34 +09009771 .unlock = spi_disable_blockprotect_bp3_srwd,
9772 .write = spi_chip_write_256,
Nico Huber5f509992024-03-27 01:18:12 +01009773 .read = spi_chip_read,
sibradzicf62623c2020-03-14 17:21:34 +09009774 .voltage = {1650, 3600},
9775 },
9776
9777 {
9778 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009779 .name = "MX25R6435F",
9780 .bustype = BUS_SPI,
9781 .manufacture_id = MACRONIX_ID,
9782 .model_id = MACRONIX_MX25R6435F,
9783 .total_size = 8192,
9784 .page_size = 256,
9785 /* OTP: 1024B total; enter 0xB1, exit 0xC1 */
Nico Huber5f509992024-03-27 01:18:12 +01009786 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QIO,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009787 .tested = TEST_OK_PREW,
9788 .probe = probe_spi_rdid,
9789 .probe_timing = TIMING_ZERO,
9790 .block_erasers =
9791 {
9792 {
9793 .eraseblocks = { {4 * 1024, 2048} },
9794 .block_erase = spi_block_erase_20,
9795 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009796 .eraseblocks = { {32 * 1024, 256} },
9797 .block_erase = spi_block_erase_52,
9798 }, {
Aarya Chaumal478e1792022-06-04 01:34:44 +05309799 .eraseblocks = { {64 * 1024, 128} },
9800 .block_erase = spi_block_erase_d8,
9801 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +10009802 .eraseblocks = { {8 * 1024 * 1024, 1} },
9803 .block_erase = spi_block_erase_60,
9804 }, {
9805 .eraseblocks = { {8 * 1024 * 1024, 1} },
9806 .block_erase = spi_block_erase_c7,
9807 }
9808 },
Nico Huber5f509992024-03-27 01:18:12 +01009809 .reg_bits =
9810 {
9811 .qe = {STATUS1, 6, RW},
9812 },
9813 .printlock = spi_prettyprint_status_register_bp3_srwd,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009814 .unlock = spi_disable_blockprotect_bp3_srwd,
9815 .write = spi_chip_write_256,
Nico Huber5f509992024-03-27 01:18:12 +01009816 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009817 .voltage = {1650, 3600},
9818 },
9819
9820 {
9821 .vendor = "Macronix",
9822 .name = "MX25U12835F",
9823 .bustype = BUS_SPI,
9824 .manufacture_id = MACRONIX_ID,
9825 .model_id = MACRONIX_MX25U12835E,
Stefan Tauner5c316f92015-02-08 21:57:52 +00009826 .total_size = 16384,
9827 .page_size = 256,
9828 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
Nico Huber1412d9f2024-01-06 18:25:49 +01009829 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI_35,
9830 .dummy_cycles =
9831 {
9832 /* 133MHz version has configuration register
9833 bit to toggle 8 dummy cycles for QIO, defaults: */
9834 .qpi_fast_read = 4,
9835 .qpi_fast_read_qio = 6,
9836 },
Stefan Tauner5c316f92015-02-08 21:57:52 +00009837 .tested = TEST_OK_PREW,
9838 .probe = probe_spi_rdid,
9839 .probe_timing = TIMING_ZERO,
9840 .block_erasers =
9841 {
9842 {
9843 .eraseblocks = { {4 * 1024, 4096} },
9844 .block_erase = spi_block_erase_20,
9845 }, {
9846 .eraseblocks = { {32 * 1024, 512} },
9847 .block_erase = spi_block_erase_52,
9848 }, {
9849 .eraseblocks = { {64 * 1024, 256} },
9850 .block_erase = spi_block_erase_d8,
9851 }, {
9852 .eraseblocks = { {16 * 1024 * 1024, 1} },
9853 .block_erase = spi_block_erase_60,
9854 }, {
9855 .eraseblocks = { {16 * 1024 * 1024, 1} },
9856 .block_erase = spi_block_erase_c7,
9857 }
9858 },
Angel Ponsf112e242018-09-30 20:14:17 +02009859 /* TODO: security register */
Nico Huber4fa39c52024-03-27 01:18:12 +01009860 .reg_bits =
9861 {
9862 .qe = {STATUS1, 6, RW},
9863 },
9864 .printlock = spi_prettyprint_status_register_bp3_srwd,
Angel Ponsf112e242018-09-30 20:14:17 +02009865 .unlock = spi_disable_blockprotect_bp3_srwd,
Alan Green1f9cc7d2019-07-01 11:10:45 +10009866 .write = spi_chip_write_256, /* Multi I/O supported */
Nico Huber1412d9f2024-01-06 18:25:49 +01009867 .read = spi_chip_read,
Angel Ponsf112e242018-09-30 20:14:17 +02009868 .voltage = {1650, 2000},
9869 },
9870
9871 {
9872 .vendor = "Macronix",
Vincent Palatinf800f552013-03-15 02:03:16 +00009873 .name = "MX25U1635E",
9874 .bustype = BUS_SPI,
9875 .manufacture_id = MACRONIX_ID,
9876 .model_id = MACRONIX_MX25U1635E,
9877 .total_size = 2048,
9878 .page_size = 256,
9879 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
Nico Huber1412d9f2024-01-06 18:25:49 +01009880 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_FAST_READ |
9881 FEATURE_FAST_READ_DIO | FEATURE_FAST_READ_QIO | FEATURE_QPI_35_F5,
9882 .dummy_cycles =
9883 {
9884 .qpi_fast_read = 4,
9885 .qpi_fast_read_qio = 6,
9886 },
Stefan Tauner5c316f92015-02-08 21:57:52 +00009887 .tested = TEST_OK_PR,
Vincent Palatinf800f552013-03-15 02:03:16 +00009888 .probe = probe_spi_rdid,
9889 .probe_timing = TIMING_ZERO,
9890 .block_erasers =
9891 {
9892 {
9893 .eraseblocks = { {4 * 1024, 512} },
9894 .block_erase = spi_block_erase_20,
9895 }, {
9896 .eraseblocks = { {32 * 1024, 64} },
9897 .block_erase = spi_block_erase_52,
9898 }, {
9899 .eraseblocks = { {64 * 1024, 32} },
9900 .block_erase = spi_block_erase_d8,
9901 }, {
9902 .eraseblocks = { {2 * 1024 * 1024, 1} },
9903 .block_erase = spi_block_erase_60,
9904 }, {
9905 .eraseblocks = { {2 * 1024 * 1024, 1} },
9906 .block_erase = spi_block_erase_c7,
9907 }
9908 },
9909 /* TODO: security register */
Nico Huber4fa39c52024-03-27 01:18:12 +01009910 .reg_bits =
9911 {
9912 .qe = {STATUS1, 6, RW},
9913 },
9914 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Tauner5c316f92015-02-08 21:57:52 +00009915 .unlock = spi_disable_blockprotect_bp3_srwd,
Vincent Palatinf800f552013-03-15 02:03:16 +00009916 .write = spi_chip_write_256,
Nico Huber1412d9f2024-01-06 18:25:49 +01009917 .read = spi_chip_read,
Vincent Palatinf800f552013-03-15 02:03:16 +00009918 .voltage = {1650, 2000},
9919 },
9920
9921 {
9922 .vendor = "Macronix",
David Tomaschikf75d8c52019-06-20 09:49:01 -07009923 .name = "MX25U25635F",
9924 .bustype = BUS_SPI,
9925 .manufacture_id = MACRONIX_ID,
9926 .model_id = MACRONIX_MX25U25635F,
9927 .total_size = 32768,
9928 .page_size = 256,
9929 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
Nico Huber1412d9f2024-01-06 18:25:49 +01009930 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP |
9931 FEATURE_4BA | FEATURE_QPI_35 | FEATURE_FAST_READ_QPI4B,
9932 .dummy_cycles = { .qpi_read_params = { 6, 4, 8, 10 } },
Nikolai Artemiev148254b2021-03-23 17:21:10 +11009933 .tested = TEST_OK_PREW,
David Tomaschikf75d8c52019-06-20 09:49:01 -07009934 .probe = probe_spi_rdid,
9935 .probe_timing = TIMING_ZERO,
9936 .block_erasers =
9937 {
9938 {
9939 .eraseblocks = { {4 * 1024, 8192} },
9940 .block_erase = spi_block_erase_21,
9941 }, {
9942 .eraseblocks = { {4 * 1024, 8192} },
9943 .block_erase = spi_block_erase_20,
9944 }, {
9945 .eraseblocks = { {32 * 1024, 1024} },
9946 .block_erase = spi_block_erase_5c,
9947 }, {
9948 .eraseblocks = { {32 * 1024, 1024} },
9949 .block_erase = spi_block_erase_52,
9950 }, {
9951 .eraseblocks = { {64 * 1024, 512} },
9952 .block_erase = spi_block_erase_dc,
9953 }, {
9954 .eraseblocks = { {64 * 1024, 512} },
9955 .block_erase = spi_block_erase_d8,
9956 }, {
9957 .eraseblocks = { {32 * 1024 * 1024, 1} },
9958 .block_erase = spi_block_erase_60,
9959 }, {
9960 .eraseblocks = { {32 * 1024 * 1024, 1} },
9961 .block_erase = spi_block_erase_c7,
9962 }
9963 },
9964 /* TODO: security register */
Nico Huber1412d9f2024-01-06 18:25:49 +01009965 .reg_bits =
9966 {
Nico Huber4fa39c52024-03-27 01:18:12 +01009967 .qe = {STATUS1, 6, RW},
Nico Huber1412d9f2024-01-06 18:25:49 +01009968 .dc = {{CONFIG, 6, RW}, {CONFIG, 7, RW}},
9969 },
Nico Huber4fa39c52024-03-27 01:18:12 +01009970 .printlock = spi_prettyprint_status_register_bp3_srwd,
David Tomaschikf75d8c52019-06-20 09:49:01 -07009971 .unlock = spi_disable_blockprotect_bp3_srwd,
9972 .write = spi_chip_write_256, /* Multi I/O supported */
Nico Huber1412d9f2024-01-06 18:25:49 +01009973 .read = spi_chip_read,
David Tomaschikf75d8c52019-06-20 09:49:01 -07009974 .voltage = {1650, 2000},
Nico Huberab6b18f2023-01-11 23:38:20 +01009975 .prepare_access = spi_prepare_4ba,
David Tomaschikf75d8c52019-06-20 09:49:01 -07009976 },
9977
9978 {
9979 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +10009980 .name = "MX25U3235E/F",
9981 .bustype = BUS_SPI,
9982 .manufacture_id = MACRONIX_ID,
9983 .model_id = MACRONIX_MX25U3235E,
9984 .total_size = 4096,
9985 .page_size = 256,
Nico Huber1412d9f2024-01-06 18:25:49 +01009986 /* F model supports SFDP, FAST_READ_DOUT/_QOUT */
Alan Green1f9cc7d2019-07-01 11:10:45 +10009987 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
Nico Huber1412d9f2024-01-06 18:25:49 +01009988 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_FAST_READ |
9989 FEATURE_FAST_READ_DIO | FEATURE_FAST_READ_QIO | FEATURE_QPI_35_F5,
9990 .dummy_cycles =
9991 {
9992 .qpi_fast_read = 4,
9993 .qpi_fast_read_qio = 6,
9994 },
Alan Green1f9cc7d2019-07-01 11:10:45 +10009995 .tested = TEST_OK_PREW,
9996 .probe = probe_spi_rdid,
9997 .probe_timing = TIMING_ZERO,
9998 .block_erasers =
9999 {
10000 {
10001 .eraseblocks = { {4 * 1024, 1024} },
10002 .block_erase = spi_block_erase_20,
10003 }, {
10004 .eraseblocks = { {32 * 1024, 128} },
10005 .block_erase = spi_block_erase_52,
10006 }, {
10007 .eraseblocks = { {64 * 1024, 64} },
10008 .block_erase = spi_block_erase_d8,
10009 }, {
10010 .eraseblocks = { {4 * 1024 * 1024, 1} },
10011 .block_erase = spi_block_erase_60,
10012 }, {
10013 .eraseblocks = { {4 * 1024 * 1024, 1} },
10014 .block_erase = spi_block_erase_c7,
10015 }
10016 },
10017 /* TODO: security register */
Nico Huber4fa39c52024-03-27 01:18:12 +010010018 .reg_bits =
10019 {
10020 .qe = {STATUS1, 6, RW},
10021 },
10022 .printlock = spi_prettyprint_status_register_bp3_srwd,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010023 .unlock = spi_disable_blockprotect_bp3_srwd,
10024 .write = spi_chip_write_256,
Nico Huber1412d9f2024-01-06 18:25:49 +010010025 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010026 .voltage = {1650, 2000},
10027 },
10028
10029 {
10030 .vendor = "Macronix",
Daniel Thompsoncadd4202018-06-04 13:52:22 +010010031 .name = "MX25U51245G",
10032 .bustype = BUS_SPI,
10033 .manufacture_id = MACRONIX_ID,
10034 .model_id = MACRONIX_MX25U51245G,
10035 .total_size = 65536,
10036 .page_size = 256,
10037 /* OTP: 512B factory programmed and 512B customer programmed; enter 0xB1, exit 0xC1 */
Nico Huber1412d9f2024-01-06 18:25:49 +010010038 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP |
10039 FEATURE_4BA | FEATURE_QPI_35 | FEATURE_FAST_READ_QPI4B,
10040 .dummy_cycles = { .qpi_read_params = { 6, 4, 8, 10 } },
Daniel Thompsoncadd4202018-06-04 13:52:22 +010010041 .tested = TEST_OK_PREW,
10042 .probe = probe_spi_rdid,
10043 .probe_timing = TIMING_ZERO,
10044 .block_erasers =
10045 {
10046 {
10047 .eraseblocks = { {4 * 1024, 16384} },
10048 .block_erase = spi_block_erase_21,
10049 }, {
10050 .eraseblocks = { {4 * 1024, 16384} },
10051 .block_erase = spi_block_erase_20,
10052 }, {
10053 .eraseblocks = { {32 * 1024, 2048} },
10054 .block_erase = spi_block_erase_5c,
10055 }, {
10056 .eraseblocks = { {32 * 1024, 2048} },
10057 .block_erase = spi_block_erase_52,
10058 }, {
10059 .eraseblocks = { {64 * 1024, 1024} },
10060 .block_erase = spi_block_erase_dc,
10061 }, {
10062 .eraseblocks = { {64 * 1024, 1024} },
10063 .block_erase = spi_block_erase_d8,
10064 }, {
10065 .eraseblocks = { {64 * 1024 * 1024, 1} },
10066 .block_erase = spi_block_erase_60,
10067 }, {
10068 .eraseblocks = { {64 * 1024 * 1024, 1} },
10069 .block_erase = spi_block_erase_c7,
10070 }
10071 },
10072 /* TODO: security register */
Nico Huber1412d9f2024-01-06 18:25:49 +010010073 .reg_bits =
10074 {
Nico Huber4fa39c52024-03-27 01:18:12 +010010075 .qe = {STATUS1, 6, RW},
Nico Huber1412d9f2024-01-06 18:25:49 +010010076 .dc = {{CONFIG, 6, RW}, {CONFIG, 7, RW}},
10077 },
Nico Huber4fa39c52024-03-27 01:18:12 +010010078 .printlock = spi_prettyprint_status_register_bp3_srwd,
Daniel Thompsoncadd4202018-06-04 13:52:22 +010010079 .unlock = spi_disable_blockprotect_bp3_srwd,
10080 .write = spi_chip_write_256, /* Multi I/O supported */
Nico Huber1412d9f2024-01-06 18:25:49 +010010081 .read = spi_chip_read,
Daniel Thompsoncadd4202018-06-04 13:52:22 +010010082 .voltage = {1650, 2000},
Nico Huberab6b18f2023-01-11 23:38:20 +010010083 .prepare_access = spi_prepare_4ba,
Daniel Thompsoncadd4202018-06-04 13:52:22 +010010084 },
10085
10086 {
10087 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010088 .name = "MX25U6435E/F",
Stefan Tauner40bc96f2015-01-10 09:33:14 +000010089 .bustype = BUS_SPI,
10090 .manufacture_id = MACRONIX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010091 .model_id = MACRONIX_MX25U6435E,
Stefan Tauner40bc96f2015-01-10 09:33:14 +000010092 .total_size = 8192,
10093 .page_size = 256,
Nico Huber1412d9f2024-01-06 18:25:49 +010010094 /* F model supports SFDP, FAST_READ_DOUT/_QOUT */
Alan Green1f9cc7d2019-07-01 11:10:45 +100010095 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
Nico Huber1412d9f2024-01-06 18:25:49 +010010096 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_FAST_READ |
10097 FEATURE_FAST_READ_DIO | FEATURE_FAST_READ_QIO | FEATURE_QPI_35_F5,
10098 .dummy_cycles =
10099 {
10100 .qpi_fast_read = 4,
10101 .qpi_fast_read_qio = 6,
10102 },
Stefan Tauner40bc96f2015-01-10 09:33:14 +000010103 .tested = TEST_OK_PREW,
10104 .probe = probe_spi_rdid,
10105 .probe_timing = TIMING_ZERO,
10106 .block_erasers =
10107 {
10108 {
10109 .eraseblocks = { {4 * 1024, 2048} },
10110 .block_erase = spi_block_erase_20,
10111 }, {
Stefan Tauner40bc96f2015-01-10 09:33:14 +000010112 .eraseblocks = { {32 * 1024, 256} },
10113 .block_erase = spi_block_erase_52,
10114 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010115 .eraseblocks = { {64 * 1024, 128} },
10116 .block_erase = spi_block_erase_d8,
10117 }, {
Stefan Tauner40bc96f2015-01-10 09:33:14 +000010118 .eraseblocks = { {8 * 1024 * 1024, 1} },
10119 .block_erase = spi_block_erase_60,
10120 }, {
10121 .eraseblocks = { {8 * 1024 * 1024, 1} },
10122 .block_erase = spi_block_erase_c7,
10123 }
10124 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100010125 /* TODO: security register */
Nico Huber4fa39c52024-03-27 01:18:12 +010010126 .reg_bits =
10127 {
10128 .qe = {STATUS1, 6, RW},
10129 },
10130 .printlock = spi_prettyprint_status_register_bp3_srwd,
Nathan Rennie-Waldock5a7f9422018-08-10 15:35:23 +010010131 .unlock = spi_disable_blockprotect_bp3_srwd,
10132 .write = spi_chip_write_256,
Nico Huber1412d9f2024-01-06 18:25:49 +010010133 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010134 .voltage = {1650, 2000},
10135 },
10136
10137 {
10138 .vendor = "Macronix",
10139 .name = "MX25U8032E",
10140 .bustype = BUS_SPI,
10141 .manufacture_id = MACRONIX_ID,
10142 .model_id = MACRONIX_MX25U8032E,
10143 .total_size = 1024,
10144 .page_size = 256,
10145 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
Nico Huber4fa39c52024-03-27 01:18:12 +010010146 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP |
10147 FEATURE_FAST_READ | FEATURE_FAST_READ_DIO | FEATURE_FAST_READ_QIO,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010148 .tested = TEST_OK_PREW,
10149 .probe = probe_spi_rdid,
10150 .probe_timing = TIMING_ZERO,
10151 .block_erasers =
10152 {
10153 {
10154 .eraseblocks = { {4 * 1024, 256} },
10155 .block_erase = spi_block_erase_20,
10156 }, {
10157 .eraseblocks = { {32 * 1024, 32} },
10158 .block_erase = spi_block_erase_52,
10159 }, {
10160 .eraseblocks = { {64 * 1024, 16} },
10161 .block_erase = spi_block_erase_d8,
10162 }, {
10163 .eraseblocks = { {1024 * 1024, 1} },
10164 .block_erase = spi_block_erase_60,
10165 }, {
10166 .eraseblocks = { {1024 * 1024, 1} },
10167 .block_erase = spi_block_erase_c7,
10168 }
10169 },
10170 /* TODO: security register */
Nico Huber4fa39c52024-03-27 01:18:12 +010010171 .reg_bits =
10172 {
10173 .qe = {STATUS1, 6, RW},
10174 },
10175 .printlock = spi_prettyprint_status_register_bp3_srwd,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010176 .unlock = spi_disable_blockprotect_bp3_srwd,
10177 .write = spi_chip_write_256,
Nico Huber4fa39c52024-03-27 01:18:12 +010010178 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010179 .voltage = {1650, 2000},
Nathan Rennie-Waldock5a7f9422018-08-10 15:35:23 +010010180 },
10181
10182 {
10183 .vendor = "Macronix",
Mark Panajotovic502a9132009-08-24 01:42:24 +000010184 .name = "MX29F001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010185 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010186 .manufacture_id = MACRONIX_ID,
10187 .model_id = MACRONIX_MX29F001B,
Mark Panajotovic502a9132009-08-24 01:42:24 +000010188 .total_size = 128,
10189 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010190 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
10191 .tested = TEST_UNTESTED,
10192 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +000010193 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +000010194 .block_erasers =
10195 {
10196 {
Stefan Tauner0554ca52013-07-25 22:54:25 +000010197 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +000010198 {8 * 1024, 1},
10199 {4 * 1024, 2},
10200 {8 * 1024, 2},
10201 {32 * 1024, 1},
10202 {64 * 1024, 1},
10203 },
Sean Nelson35727f72010-01-28 23:55:12 +000010204 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +000010205 }, {
10206 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000010207 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +000010208 }
10209 },
Michael Karcher1c296ca2009-11-27 17:49:42 +000010210 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +000010211 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010212 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010010213 .prepare_access = prepare_memory_access,
10214 .finish_access = finish_memory_access,
Mark Panajotovic502a9132009-08-24 01:42:24 +000010215 },
10216
10217 {
10218 .vendor = "Macronix",
10219 .name = "MX29F001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010220 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010221 .manufacture_id = MACRONIX_ID,
10222 .model_id = MACRONIX_MX29F001T,
Mark Panajotovic502a9132009-08-24 01:42:24 +000010223 .total_size = 128,
10224 .page_size = 32 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010225 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stefan Tauner74c6ec62011-05-18 01:31:46 +000010226 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +000010227 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +000010228 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +000010229 .block_erasers =
10230 {
10231 {
Stefan Tauner0554ca52013-07-25 22:54:25 +000010232 .eraseblocks = {
Sean Nelson54596372010-01-09 05:30:14 +000010233 {64 * 1024, 1},
10234 {32 * 1024, 1},
10235 {8 * 1024, 2},
10236 {4 * 1024, 2},
10237 {8 * 1024, 1},
10238 },
Sean Nelson35727f72010-01-28 23:55:12 +000010239 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +000010240 }, {
10241 .eraseblocks = { {128 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000010242 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +000010243 }
10244 },
Michael Karcher1c296ca2009-11-27 17:49:42 +000010245 .write = write_jedec_1,
Mark Panajotovic502a9132009-08-24 01:42:24 +000010246 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010247 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010010248 .prepare_access = prepare_memory_access,
10249 .finish_access = finish_memory_access,
Mark Panajotovic502a9132009-08-24 01:42:24 +000010250 },
10251
10252 {
10253 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +000010254 .name = "MX29F002(N)B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010255 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010256 .manufacture_id = MACRONIX_ID,
10257 .model_id = MACRONIX_MX29F002B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010258 .total_size = 256,
10259 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010260 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010261 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000010262 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +000010263 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +000010264 .block_erasers =
10265 {
10266 {
10267 .eraseblocks = {
10268 {16 * 1024, 1},
10269 {8 * 1024, 2},
10270 {32 * 1024, 1},
10271 {64 * 1024, 3},
10272 },
Sean Nelson35727f72010-01-28 23:55:12 +000010273 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +000010274 }, {
10275 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000010276 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +000010277 },
10278 },
Michael Karcher1c296ca2009-11-27 17:49:42 +000010279 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010280 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010281 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010010282 .prepare_access = prepare_memory_access,
10283 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000010284 },
10285
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010286 {
10287 .vendor = "Macronix",
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +000010288 .name = "MX29F002(N)T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010289 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010290 .manufacture_id = MACRONIX_ID,
10291 .model_id = MACRONIX_MX29F002T,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010292 .total_size = 256,
10293 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010294 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000010295 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +000010296 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +000010297 .probe_timing = TIMING_ZERO,
Sean Nelson6b11ad22009-12-23 17:05:59 +000010298 .block_erasers =
10299 {
10300 {
10301 .eraseblocks = {
10302 {64 * 1024, 3},
10303 {32 * 1024, 1},
10304 {8 * 1024, 2},
10305 {16 * 1024, 1},
10306 },
Sean Nelson35727f72010-01-28 23:55:12 +000010307 .block_erase = erase_sector_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +000010308 }, {
10309 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000010310 .block_erase = erase_chip_block_jedec,
Sean Nelson6b11ad22009-12-23 17:05:59 +000010311 },
10312 },
Michael Karcher1c296ca2009-11-27 17:49:42 +000010313 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010314 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010315 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010010316 .prepare_access = prepare_memory_access,
10317 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000010318 },
10319
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010320 {
10321 .vendor = "Macronix",
Daniele Forsi6a18a932014-07-13 14:53:45 +000010322 .name = "MX29F022(N)B",
10323 .bustype = BUS_PARALLEL,
10324 .manufacture_id = MACRONIX_ID,
10325 .model_id = MACRONIX_MX29F022B,
10326 .total_size = 256,
10327 .page_size = 0, /* unused */
10328 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
10329 .tested = TEST_UNTESTED,
10330 .probe = probe_jedec,
10331 .probe_timing = TIMING_ZERO,
10332 .block_erasers =
10333 {
10334 {
10335 .eraseblocks = {
10336 {16 * 1024, 1},
10337 {8 * 1024, 2},
10338 {32 * 1024, 1},
10339 {64 * 1024, 3},
10340 },
10341 .block_erase = erase_sector_jedec,
10342 }, {
10343 .eraseblocks = { {256 * 1024, 1} },
10344 .block_erase = erase_chip_block_jedec,
10345 }
10346 },
10347 .write = write_jedec_1,
10348 .read = read_memmapped,
10349 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010010350 .prepare_access = prepare_memory_access,
10351 .finish_access = finish_memory_access,
Daniele Forsi6a18a932014-07-13 14:53:45 +000010352 },
10353
10354 {
10355 .vendor = "Macronix",
10356 .name = "MX29F022(N)T",
10357 .bustype = BUS_PARALLEL,
10358 .manufacture_id = MACRONIX_ID,
10359 .model_id = MACRONIX_MX29F022T,
10360 .total_size = 256,
10361 .page_size = 0, /* unused */
10362 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
10363 .tested = TEST_OK_PREW,
10364 .probe = probe_jedec,
10365 .probe_timing = TIMING_ZERO,
10366 .block_erasers =
10367 {
10368 {
10369 .eraseblocks = {
10370 {64 * 1024, 3},
10371 {32 * 1024, 1},
10372 {8 * 1024, 2},
10373 {16 * 1024, 1},
10374 },
10375 .block_erase = erase_sector_jedec,
10376 }, {
10377 .eraseblocks = { {256 * 1024, 1} },
10378 .block_erase = erase_chip_block_jedec,
10379 }
10380 },
10381 .write = write_jedec_1,
10382 .read = read_memmapped,
10383 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010010384 .prepare_access = prepare_memory_access,
10385 .finish_access = finish_memory_access,
Daniele Forsi6a18a932014-07-13 14:53:45 +000010386 },
10387
10388 {
10389 .vendor = "Macronix",
Joshua Roysf1324e02010-09-16 00:51:51 +000010390 .name = "MX29F040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010391 .bustype = BUS_PARALLEL,
Joshua Roysf1324e02010-09-16 00:51:51 +000010392 .manufacture_id = MACRONIX_ID,
10393 .model_id = MACRONIX_MX29F040,
10394 .total_size = 512,
10395 .page_size = 64 * 1024,
10396 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
10397 .tested = TEST_UNTESTED,
10398 .probe = probe_jedec,
10399 .probe_timing = TIMING_ZERO,
10400 .block_erasers =
10401 {
10402 {
10403 .eraseblocks = { {64 * 1024, 8} },
10404 .block_erase = erase_sector_jedec,
10405 }, {
10406 .eraseblocks = { {512 * 1024, 1} },
10407 .block_erase = erase_chip_block_jedec,
10408 },
10409 },
10410 .write = write_jedec_1,
10411 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000010412 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010010413 .prepare_access = prepare_memory_access,
10414 .finish_access = finish_memory_access,
Joshua Roysf1324e02010-09-16 00:51:51 +000010415 },
10416
10417 {
10418 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010419 .name = "MX29GL128F",
10420 .bustype = BUS_PARALLEL,
10421 .manufacture_id = MACRONIX_ID,
10422 .model_id = MACRONIX_MX29GL128F,
10423 .total_size = 16384,
10424 .page_size = 128 * 1024, /* actual page size is 16 */
10425 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
10426 .tested = TEST_UNTESTED,
10427 .probe = probe_jedec_29gl,
10428 .probe_timing = TIMING_ZERO,
10429 .block_erasers =
10430 {
10431 {
10432 .eraseblocks = { {128 * 1024, 128} },
10433 .block_erase = erase_sector_jedec,
10434 }, {
10435 .eraseblocks = { {16 * 1024 * 1024, 1} },
10436 .block_erase = erase_chip_block_jedec,
10437 },
10438 },
10439 .write = write_jedec_1,
10440 .read = read_memmapped,
10441 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010010442 .prepare_access = prepare_memory_access,
10443 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010444 },
10445
10446 {
10447 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000010448 .name = "MX29GL320EB",
10449 .bustype = BUS_PARALLEL,
10450 .manufacture_id = MACRONIX_ID,
10451 .model_id = MACRONIX_MX29GL320EB,
10452 .total_size = 4096,
10453 .page_size = 128 * 1024, /* actual page size is 16 */
10454 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
10455 .tested = TEST_UNTESTED,
10456 .probe = probe_jedec_29gl,
10457 .probe_timing = TIMING_ZERO,
10458 .block_erasers =
10459 {
10460 {
10461 .eraseblocks = {
10462 {8 * 1024, 8},
10463 {64 * 1024, 63},
10464 },
10465 .block_erase = erase_sector_jedec,
10466 }, {
10467 .eraseblocks = { {4 * 1024 * 1024, 1} },
10468 .block_erase = erase_chip_block_jedec,
10469 },
10470 },
10471 .write = write_jedec_1,
10472 .read = read_memmapped,
10473 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010010474 .prepare_access = prepare_memory_access,
10475 .finish_access = finish_memory_access,
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000010476 },
10477
10478 {
10479 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010480 .name = "MX29GL320EH/L",
10481 .bustype = BUS_PARALLEL,
10482 .manufacture_id = MACRONIX_ID,
10483 .model_id = MACRONIX_MX29GL320EHL,
10484 .total_size = 4096,
10485 .page_size = 128 * 1024, /* actual page size is 16 */
10486 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
10487 .tested = TEST_UNTESTED,
10488 .probe = probe_jedec_29gl,
10489 .probe_timing = TIMING_ZERO,
10490 .block_erasers =
10491 {
10492 {
10493 .eraseblocks = { {64 * 1024, 64} },
10494 .block_erase = erase_sector_jedec,
10495 }, {
10496 .eraseblocks = { {4 * 1024 * 1024, 1} },
10497 .block_erase = erase_chip_block_jedec,
10498 },
10499 },
10500 .write = write_jedec_1,
10501 .read = read_memmapped,
10502 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010010503 .prepare_access = prepare_memory_access,
10504 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010505 },
10506
10507 {
10508 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000010509 .name = "MX29GL320ET",
10510 .bustype = BUS_PARALLEL,
10511 .manufacture_id = MACRONIX_ID,
10512 .model_id = MACRONIX_MX29GL320ET,
10513 .total_size = 4096,
10514 .page_size = 128 * 1024, /* actual page size is 16 */
10515 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
10516 .tested = TEST_UNTESTED,
10517 .probe = probe_jedec_29gl,
10518 .probe_timing = TIMING_ZERO,
10519 .block_erasers =
10520 {
10521 {
10522 .eraseblocks = {
10523 {64 * 1024, 63},
10524 {8 * 1024, 8},
10525 },
10526 .block_erase = erase_sector_jedec,
10527 }, {
10528 .eraseblocks = { {4 * 1024 * 1024, 1} },
10529 .block_erase = erase_chip_block_jedec,
10530 },
10531 },
10532 .write = write_jedec_1,
10533 .read = read_memmapped,
10534 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010010535 .prepare_access = prepare_memory_access,
10536 .finish_access = finish_memory_access,
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000010537 },
10538
10539 {
10540 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000010541 .name = "MX29GL640EB",
10542 .bustype = BUS_PARALLEL,
10543 .manufacture_id = MACRONIX_ID,
10544 .model_id = MACRONIX_MX29GL640EB,
10545 .total_size = 8192,
10546 .page_size = 128 * 1024, /* actual page size is 16 */
10547 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
10548 .tested = TEST_UNTESTED,
10549 .probe = probe_jedec_29gl,
10550 .probe_timing = TIMING_ZERO,
10551 .block_erasers =
10552 {
10553 {
10554 .eraseblocks = {
10555 {8 * 1024, 8},
10556 {64 * 1024, 127},
10557 },
10558 .block_erase = erase_sector_jedec,
10559 }, {
10560 .eraseblocks = { {8 * 1024 * 1024, 1} },
10561 .block_erase = erase_chip_block_jedec,
10562 },
10563 },
10564 .write = write_jedec_1,
10565 .read = read_memmapped,
10566 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010010567 .prepare_access = prepare_memory_access,
10568 .finish_access = finish_memory_access,
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000010569 },
10570
10571 {
10572 .vendor = "Macronix",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010573 .name = "MX29GL640EH/L",
10574 .bustype = BUS_PARALLEL,
10575 .manufacture_id = MACRONIX_ID,
10576 .model_id = MACRONIX_MX29GL640EHL,
10577 .total_size = 8192,
10578 .page_size = 128 * 1024, /* actual page size is 16 */
10579 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
10580 .tested = TEST_UNTESTED,
10581 .probe = probe_jedec_29gl,
10582 .probe_timing = TIMING_ZERO,
10583 .block_erasers =
10584 {
10585 {
10586 .eraseblocks = { {64 * 1024, 128} },
10587 .block_erase = erase_sector_jedec,
10588 }, {
10589 .eraseblocks = { {8 * 1024 * 1024, 1} },
10590 .block_erase = erase_chip_block_jedec,
10591 },
10592 },
10593 .write = write_jedec_1,
10594 .read = read_memmapped,
10595 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010010596 .prepare_access = prepare_memory_access,
10597 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010598 },
10599
10600 {
10601 .vendor = "Macronix",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000010602 .name = "MX29GL640ET",
10603 .bustype = BUS_PARALLEL,
10604 .manufacture_id = MACRONIX_ID,
10605 .model_id = MACRONIX_MX29GL640ET,
10606 .total_size = 8192,
10607 .page_size = 128 * 1024, /* actual page size is 16 */
10608 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
10609 .tested = TEST_UNTESTED,
10610 .probe = probe_jedec_29gl,
10611 .probe_timing = TIMING_ZERO,
10612 .block_erasers =
10613 {
10614 {
10615 .eraseblocks = {
10616 {64 * 1024, 127},
10617 {8 * 1024, 8},
10618 },
10619 .block_erase = erase_sector_jedec,
10620 }, {
10621 .eraseblocks = { {8 * 1024 * 1024, 1} },
10622 .block_erase = erase_chip_block_jedec,
10623 },
10624 },
10625 .write = write_jedec_1,
10626 .read = read_memmapped,
10627 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010010628 .prepare_access = prepare_memory_access,
10629 .finish_access = finish_memory_access,
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000010630 },
10631
10632 {
10633 .vendor = "Macronix",
Carl-Daniel Hailfinger350a0c32009-07-24 13:59:27 +000010634 .name = "MX29LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000010635 .bustype = BUS_PARALLEL,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000010636 .manufacture_id = MACRONIX_ID,
10637 .model_id = MACRONIX_MX29LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010638 .total_size = 512,
10639 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000010640 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
10641 .tested = TEST_UNTESTED,
10642 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +000010643 .probe_timing = TIMING_ZERO,
Sean Nelson54596372010-01-09 05:30:14 +000010644 .block_erasers =
10645 {
10646 {
Stefan Tauner6697f712014-08-06 15:09:15 +000010647 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +000010648 .block_erase = erase_sector_jedec,
Sean Nelson54596372010-01-09 05:30:14 +000010649 }, {
10650 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000010651 .block_erase = erase_chip_block_jedec,
Sean Nelson54596372010-01-09 05:30:14 +000010652 },
10653 },
Michael Karcher1c296ca2009-11-27 17:49:42 +000010654 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000010655 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000010656 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010010657 .prepare_access = prepare_memory_access,
10658 .finish_access = finish_memory_access,
Carl-Daniel Hailfinger7de86392008-12-10 10:32:05 +000010659 },
10660
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000010661 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010662 .vendor = "Macronix",
Hemanth Guruva Reddya136d422019-07-11 11:08:27 +020010663 .name = "MX66L51235F/MX25L51245G",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010664 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010665 .manufacture_id = MACRONIX_ID,
10666 .model_id = MACRONIX_MX66L51235F,
10667 .total_size = 65536,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010668 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010669 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
10670 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010671 .tested = TEST_OK_PREW,
10672 .probe = probe_spi_rdid,
10673 .probe_timing = TIMING_ZERO,
10674 .block_erasers =
10675 {
10676 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010677 .eraseblocks = { {4 * 1024, 16384} },
10678 .block_erase = spi_block_erase_21,
10679 }, {
10680 .eraseblocks = { {4 * 1024, 16384} },
10681 .block_erase = spi_block_erase_20,
10682 }, {
10683 .eraseblocks = { {32 * 1024, 2048} },
10684 .block_erase = spi_block_erase_5c,
10685 }, {
10686 .eraseblocks = { {32 * 1024, 2048} },
10687 .block_erase = spi_block_erase_52,
10688 }, {
10689 .eraseblocks = { {64 * 1024, 1024} },
10690 .block_erase = spi_block_erase_dc,
10691 }, {
10692 .eraseblocks = { {64 * 1024, 1024} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010693 .block_erase = spi_block_erase_d8,
10694 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010695 .eraseblocks = { {64 * 1024 * 1024, 1} },
10696 .block_erase = spi_block_erase_60,
10697 }, {
10698 .eraseblocks = { {64 * 1024 * 1024, 1} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010699 .block_erase = spi_block_erase_c7,
10700 }
10701 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100010702 /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */
10703 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010704 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010705 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010706 .read = spi_chip_read, /* Fast read (0x0B) supported */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010707 .voltage = {2700, 3600},
Nico Huberab6b18f2023-01-11 23:38:20 +010010708 .prepare_access = spi_prepare_4ba,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010709 },
10710
Patrick Rudolph3ba83152021-06-08 10:52:19 +020010711 {
10712 .vendor = "Macronix",
10713 .name = "MX66L1G45G",
10714 .bustype = BUS_SPI,
10715 .manufacture_id = MACRONIX_ID,
10716 .model_id = MACRONIX_MX66L1G45G,
10717 .total_size = 131072,
10718 .page_size = 256,
10719 /* OTP: 512B total; enter 0xB1, exit 0xC1 */
10720 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA,
10721 .tested = TEST_OK_PREW,
10722 .probe = probe_spi_rdid,
10723 .probe_timing = TIMING_ZERO,
10724 .block_erasers =
10725 {
10726 {
10727 .eraseblocks = { {4 * 1024, 32768} },
10728 .block_erase = spi_block_erase_21,
10729 }, {
10730 .eraseblocks = { {4 * 1024, 32768} },
10731 .block_erase = spi_block_erase_20,
10732 }, {
10733 .eraseblocks = { {32 * 1024, 4096} },
10734 .block_erase = spi_block_erase_5c,
10735 }, {
10736 .eraseblocks = { {32 * 1024, 4096} },
10737 .block_erase = spi_block_erase_52,
10738 }, {
10739 .eraseblocks = { {64 * 1024, 2048} },
10740 .block_erase = spi_block_erase_dc,
10741 }, {
10742 .eraseblocks = { {64 * 1024, 2048} },
10743 .block_erase = spi_block_erase_d8,
10744 }, {
10745 .eraseblocks = { {128 * 1024 * 1024, 1} },
10746 .block_erase = spi_block_erase_60,
10747 }, {
10748 .eraseblocks = { {128 * 1024 * 1024, 1} },
10749 .block_erase = spi_block_erase_c7,
10750 }
10751 },
10752 /* TODO: security register and SBLK/SBULK, configuration register */
10753 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
10754 .unlock = spi_disable_blockprotect_bp3_srwd,
10755 .write = spi_chip_write_256,
10756 .read = spi_chip_read, /* Fast read (0x0B) supported */
10757 .voltage = {2700, 3600},
Nico Huberab6b18f2023-01-11 23:38:20 +010010758 .prepare_access = spi_prepare_4ba,
Patrick Rudolph3ba83152021-06-08 10:52:19 +020010759 },
10760
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010761 /* The ST M25P05 is a bit of a problem. It has the same ID as the
10762 * ST M25P05-A in RES mode, but supports only 128 byte writes instead
10763 * of 256 byte writes. We rely heavily on the fact that probe_spi_res1
10764 * only is successful if RDID does not work.
10765 */
10766 {
10767 .vendor = "Micron/Numonyx/ST",
10768 .name = "M25P05",
10769 .bustype = BUS_SPI,
10770 .manufacture_id = 0, /* Not used. */
10771 .model_id = ST_M25P05_RES,
10772 .total_size = 64,
10773 .page_size = 256,
10774 .feature_bits = FEATURE_WRSR_WREN,
10775 .tested = TEST_UNTESTED,
10776 .probe = probe_spi_res1,
10777 .probe_timing = TIMING_ZERO,
10778 .block_erasers =
10779 {
10780 {
10781 .eraseblocks = { {32 * 1024, 2} },
10782 .block_erase = spi_block_erase_d8,
10783 }, {
10784 .eraseblocks = { {64 * 1024, 1} },
10785 .block_erase = spi_block_erase_c7,
10786 }
10787 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010788 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010789 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010790 .write = spi_chip_write_1, /* 128 */
10791 .read = spi_chip_read,
10792 .voltage = {2700, 3600},
10793 },
10794
10795 {
10796 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100010797 .name = "M25P05-A",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010798 .bustype = BUS_SPI,
10799 .manufacture_id = ST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100010800 .model_id = ST_M25P05A,
10801 .total_size = 64,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010802 .page_size = 256,
10803 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000010804 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010805 .probe = probe_spi_rdid,
10806 .probe_timing = TIMING_ZERO,
10807 .block_erasers =
10808 {
10809 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010810 .eraseblocks = { {32 * 1024, 2} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010811 .block_erase = spi_block_erase_d8,
10812 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010813 .eraseblocks = { {64 * 1024, 1} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010814 .block_erase = spi_block_erase_c7,
10815 }
10816 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010817 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010818 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010819 .write = spi_chip_write_256,
10820 .read = spi_chip_read,
10821 .voltage = {2700, 3600},
10822 },
10823
10824 /* The ST M25P10 has the same problem as the M25P05. */
10825 {
10826 .vendor = "Micron/Numonyx/ST",
10827 .name = "M25P10",
10828 .bustype = BUS_SPI,
10829 .manufacture_id = 0, /* Not used. */
10830 .model_id = ST_M25P10_RES,
10831 .total_size = 128,
10832 .page_size = 256,
10833 .feature_bits = FEATURE_WRSR_WREN,
10834 .tested = TEST_UNTESTED,
10835 .probe = probe_spi_res1,
10836 .probe_timing = TIMING_ZERO,
10837 .block_erasers =
10838 {
10839 {
10840 .eraseblocks = { {32 * 1024, 4} },
10841 .block_erase = spi_block_erase_d8,
10842 }, {
10843 .eraseblocks = { {128 * 1024, 1} },
10844 .block_erase = spi_block_erase_c7,
10845 }
10846 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010847 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000010848 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010849 .write = spi_chip_write_1, /* 128 */
10850 .read = spi_chip_read,
10851 .voltage = {2700, 3600},
10852 },
10853
10854 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100010855 .vendor = "Micron/Numonyx/ST",
10856 .name = "M25P10-A",
10857 .bustype = BUS_SPI,
10858 .manufacture_id = ST_ID,
10859 .model_id = ST_M25P10A,
10860 .total_size = 128,
10861 .page_size = 256,
10862 .feature_bits = FEATURE_WRSR_WREN,
10863 .tested = TEST_OK_PREW,
10864 .probe = probe_spi_rdid,
10865 .probe_timing = TIMING_ZERO,
10866 .block_erasers =
10867 {
10868 {
10869 .eraseblocks = { {32 * 1024, 4} },
10870 .block_erase = spi_block_erase_d8,
10871 }, {
10872 .eraseblocks = { {128 * 1024, 1} },
10873 .block_erase = spi_block_erase_c7,
10874 }
10875 },
10876 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
10877 .unlock = spi_disable_blockprotect_bp3_srwd,
10878 .write = spi_chip_write_256,
10879 .read = spi_chip_read,
10880 .voltage = {2700, 3600},
10881 },
10882
10883 {
10884 .vendor = "Micron/Numonyx/ST",
10885 .name = "M25P128",
10886 .bustype = BUS_SPI,
10887 .manufacture_id = ST_ID,
10888 .model_id = ST_M25P128,
10889 .total_size = 16384,
10890 .page_size = 256,
10891 .feature_bits = FEATURE_WRSR_WREN,
10892 .tested = TEST_OK_PREW,
10893 .probe = probe_spi_rdid,
10894 .probe_timing = TIMING_ZERO,
10895 .block_erasers =
10896 {
10897 {
10898 .eraseblocks = { {256 * 1024, 64} },
10899 .block_erase = spi_block_erase_d8,
10900 }, {
10901 .eraseblocks = { {16 * 1024 * 1024, 1} },
10902 .block_erase = spi_block_erase_c7,
10903 }
10904 },
10905 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
10906 .unlock = spi_disable_blockprotect_bp3_srwd,
10907 .write = spi_chip_write_256,
10908 .read = spi_chip_read,
10909 .voltage = {2700, 3600},
10910 },
10911
10912 {
10913 .vendor = "Micron/Numonyx/ST",
10914 .name = "M25P16",
10915 .bustype = BUS_SPI,
10916 .manufacture_id = ST_ID,
10917 .model_id = ST_M25P16,
10918 .total_size = 2048,
10919 .page_size = 256,
10920 .feature_bits = FEATURE_WRSR_WREN,
10921 .tested = TEST_OK_PREW,
10922 .probe = probe_spi_rdid,
10923 .probe_timing = TIMING_ZERO,
10924 .block_erasers =
10925 {
10926 {
10927 .eraseblocks = { {64 * 1024, 32} },
10928 .block_erase = spi_block_erase_d8,
10929 }, {
10930 .eraseblocks = { {2 * 1024 * 1024, 1} },
10931 .block_erase = spi_block_erase_c7,
10932 }
10933 },
10934 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
10935 .unlock = spi_disable_blockprotect_bp3_srwd,
10936 .write = spi_chip_write_256,
10937 .read = spi_chip_read,
10938 .voltage = {2700, 3600},
10939 },
10940
10941 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010942 .vendor = "Micron/Numonyx/ST", /* Numonyx */
10943 .name = "M25P20",
10944 .bustype = BUS_SPI,
10945 .manufacture_id = ST_ID,
10946 .model_id = ST_M25P20,
10947 .total_size = 256,
10948 .page_size = 256,
10949 .feature_bits = FEATURE_WRSR_WREN,
10950 .tested = TEST_UNTESTED,
10951 .probe = probe_spi_rdid,
10952 .probe_timing = TIMING_ZERO,
10953 .block_erasers =
10954 {
10955 {
10956 .eraseblocks = { {64 * 1024, 4} },
10957 .block_erase = spi_block_erase_d8,
10958 }, {
10959 .eraseblocks = { {256 * 1024, 1} },
10960 .block_erase = spi_block_erase_c7,
10961 }
10962 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010963 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010964 .unlock = spi_disable_blockprotect,
10965 .write = spi_chip_write_256,
10966 .read = spi_chip_read, /* Fast read (0x0B) supported */
10967 .voltage = {2700, 3600},
10968 },
10969
10970 {
10971 .vendor = "Micron/Numonyx/ST",
10972 .name = "M25P20-old",
10973 .bustype = BUS_SPI,
10974 .manufacture_id = 0, /* Not used. */
10975 .model_id = ST_M25P20_RES,
10976 .total_size = 256,
10977 .page_size = 256,
10978 .feature_bits = FEATURE_WRSR_WREN,
10979 .tested = TEST_OK_PREW,
10980 .probe = probe_spi_res1,
10981 .probe_timing = TIMING_ZERO,
10982 .block_erasers =
10983 {
10984 {
10985 .eraseblocks = { {64 * 1024, 4} },
10986 .block_erase = spi_block_erase_d8,
10987 }, {
10988 .eraseblocks = { {256 * 1024, 1} },
10989 .block_erase = spi_block_erase_c7,
10990 }
10991 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000010992 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000010993 .unlock = spi_disable_blockprotect,
10994 .write = spi_chip_write_256,
10995 .read = spi_chip_read, /* Fast read (0x0B) supported */
10996 .voltage = {2700, 3600},
10997 },
10998
10999 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100011000 .vendor = "Micron/Numonyx/ST",
11001 .name = "M25P32",
11002 .bustype = BUS_SPI,
11003 .manufacture_id = ST_ID,
11004 .model_id = ST_M25P32,
11005 .total_size = 4096,
11006 .page_size = 256,
11007 .feature_bits = FEATURE_WRSR_WREN,
11008 .tested = TEST_OK_PREW,
11009 .probe = probe_spi_rdid,
11010 .probe_timing = TIMING_ZERO,
11011 .block_erasers =
11012 {
11013 {
11014 .eraseblocks = { {64 * 1024, 64} },
11015 .block_erase = spi_block_erase_d8,
11016 }, {
11017 .eraseblocks = { {4 * 1024 * 1024, 1} },
11018 .block_erase = spi_block_erase_c7,
11019 }
11020 },
11021 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
11022 .unlock = spi_disable_blockprotect_bp3_srwd,
11023 .write = spi_chip_write_256,
11024 .read = spi_chip_read,
11025 .voltage = {2700, 3600},
11026 },
11027
11028 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011029 .vendor = "Micron/Numonyx/ST", /* Numonyx */
11030 .name = "M25P40",
11031 .bustype = BUS_SPI,
11032 .manufacture_id = ST_ID,
11033 .model_id = ST_M25P40,
11034 .total_size = 512,
11035 .page_size = 256,
11036 .feature_bits = FEATURE_WRSR_WREN,
11037 .tested = TEST_OK_PREW,
11038 .probe = probe_spi_rdid,
11039 .probe_timing = TIMING_ZERO,
11040 .block_erasers =
11041 {
11042 {
11043 .eraseblocks = { {64 * 1024, 8} },
11044 .block_erase = spi_block_erase_d8,
11045 }, {
11046 .eraseblocks = { {512 * 1024, 1} },
11047 .block_erase = spi_block_erase_c7,
11048 }
11049 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011050 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000011051 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011052 .write = spi_chip_write_256,
11053 .read = spi_chip_read,
11054 .voltage = {2700, 3600},
11055 },
11056
11057 {
11058 .vendor = "Micron/Numonyx/ST",
11059 .name = "M25P40-old",
11060 .bustype = BUS_SPI,
11061 .manufacture_id = 0, /* Not used. */
11062 .model_id = ST_M25P40_RES,
11063 .total_size = 512,
11064 .page_size = 256,
11065 .feature_bits = FEATURE_WRSR_WREN,
11066 .tested = TEST_UNTESTED,
11067 .probe = probe_spi_res1,
11068 .probe_timing = TIMING_ZERO,
11069 .block_erasers =
11070 {
11071 {
11072 .eraseblocks = { {64 * 1024, 8} },
11073 .block_erase = spi_block_erase_d8,
11074 }, {
11075 .eraseblocks = { {512 * 1024, 1} },
11076 .block_erase = spi_block_erase_c7,
11077 }
11078 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011079 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000011080 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011081 .write = spi_chip_write_256,
11082 .read = spi_chip_read,
11083 },
11084
11085 {
11086 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011087 .name = "M25P64",
11088 .bustype = BUS_SPI,
11089 .manufacture_id = ST_ID,
11090 .model_id = ST_M25P64,
11091 .total_size = 8192,
11092 .page_size = 256,
11093 .feature_bits = FEATURE_WRSR_WREN,
11094 .tested = TEST_OK_PREW,
11095 .probe = probe_spi_rdid,
11096 .probe_timing = TIMING_ZERO,
11097 .block_erasers =
11098 {
11099 {
11100 .eraseblocks = { {64 * 1024, 128} },
11101 .block_erase = spi_block_erase_d8,
11102 }, {
11103 .eraseblocks = { {8 * 1024 * 1024, 1} },
11104 .block_erase = spi_block_erase_c7,
11105 }
11106 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011107 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000011108 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011109 .write = spi_chip_write_256,
11110 .read = spi_chip_read,
11111 .voltage = {2700, 3600},
11112 },
11113
11114 {
11115 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100011116 .name = "M25P80",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011117 .bustype = BUS_SPI,
11118 .manufacture_id = ST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100011119 .model_id = ST_M25P80,
11120 .total_size = 1024,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011121 .page_size = 256,
11122 .feature_bits = FEATURE_WRSR_WREN,
11123 .tested = TEST_OK_PREW,
11124 .probe = probe_spi_rdid,
11125 .probe_timing = TIMING_ZERO,
11126 .block_erasers =
11127 {
11128 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100011129 .eraseblocks = { {64 * 1024, 16} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011130 .block_erase = spi_block_erase_d8,
11131 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100011132 .eraseblocks = { {1024 * 1024, 1} },
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011133 .block_erase = spi_block_erase_c7,
11134 }
11135 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011136 .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */
Stefan Tauner5c316f92015-02-08 21:57:52 +000011137 .unlock = spi_disable_blockprotect_bp3_srwd,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011138 .write = spi_chip_write_256,
11139 .read = spi_chip_read,
11140 .voltage = {2700, 3600},
11141 },
11142
11143 {
11144 .vendor = "Micron/Numonyx/ST",
11145 .name = "M25PE10",
11146 .bustype = BUS_SPI,
11147 .manufacture_id = ST_ID,
11148 .model_id = ST_M25PE10,
11149 .total_size = 128,
11150 .page_size = 256,
11151 .feature_bits = FEATURE_WRSR_WREN,
11152 .tested = TEST_UNTESTED,
11153 .probe = probe_spi_rdid,
11154 .probe_timing = TIMING_ZERO,
11155 .block_erasers =
11156 {
11157 {
11158 .eraseblocks = { {4 * 1024, 32} },
11159 .block_erase = spi_block_erase_20,
11160 }, {
11161 .eraseblocks = { {64 * 1024, 2} },
11162 .block_erase = spi_block_erase_d8,
11163 }, {
11164 .eraseblocks = { {128 * 1024, 1} },
11165 .block_erase = spi_block_erase_c7,
11166 }
11167 },
11168 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
11169 .unlock = spi_disable_blockprotect,
11170 .write = spi_chip_write_256,
11171 .read = spi_chip_read,
11172 .voltage = {2700, 3600},
11173 },
11174
11175 {
11176 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100011177 .name = "M25PE16",
11178 .bustype = BUS_SPI,
11179 .manufacture_id = ST_ID,
11180 .model_id = ST_M25PE16,
11181 .total_size = 2048,
11182 .page_size = 256,
11183 .feature_bits = FEATURE_WRSR_WREN,
11184 .tested = TEST_UNTESTED,
11185 .probe = probe_spi_rdid,
11186 .probe_timing = TIMING_ZERO,
11187 .block_erasers =
11188 {
11189 {
11190 .eraseblocks = { {4 * 1024, 512} },
11191 .block_erase = spi_block_erase_20,
11192 }, {
11193 .eraseblocks = { {64 * 1024, 32} },
11194 .block_erase = spi_block_erase_d8,
11195 }, {
11196 .eraseblocks = { {2 * 1024 * 1024, 1} },
11197 .block_erase = spi_block_erase_c7,
11198 }
11199 },
11200 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
11201 .unlock = spi_disable_blockprotect,
11202 .write = spi_chip_write_256,
11203 .read = spi_chip_read,
11204 .voltage = {2700, 3600},
11205 },
11206
11207 {
11208 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011209 .name = "M25PE20",
11210 .bustype = BUS_SPI,
11211 .manufacture_id = ST_ID,
11212 .model_id = ST_M25PE20,
11213 .total_size = 256,
11214 .page_size = 256,
11215 .feature_bits = FEATURE_WRSR_WREN,
11216 .tested = TEST_UNTESTED,
11217 .probe = probe_spi_rdid,
11218 .probe_timing = TIMING_ZERO,
11219 .block_erasers =
11220 {
11221 {
11222 .eraseblocks = { {4 * 1024, 64} },
11223 .block_erase = spi_block_erase_20,
11224 }, {
11225 .eraseblocks = { {64 * 1024, 4} },
11226 .block_erase = spi_block_erase_d8,
11227 }, {
11228 .eraseblocks = { {256 * 1024, 1} },
11229 .block_erase = spi_block_erase_c7,
11230 }
11231 },
11232 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
11233 .unlock = spi_disable_blockprotect,
11234 .write = spi_chip_write_256,
11235 .read = spi_chip_read,
11236 .voltage = {2700, 3600},
11237 },
11238
11239 {
11240 .vendor = "Micron/Numonyx/ST",
11241 .name = "M25PE40",
11242 .bustype = BUS_SPI,
11243 .manufacture_id = ST_ID,
11244 .model_id = ST_M25PE40,
11245 .total_size = 512,
11246 .page_size = 256,
11247 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011248 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011249 .probe = probe_spi_rdid,
11250 .probe_timing = TIMING_ZERO,
11251 .block_erasers =
11252 {
11253 {
11254 .eraseblocks = { {4 * 1024, 128} },
11255 .block_erase = spi_block_erase_20,
11256 }, {
11257 .eraseblocks = { {64 * 1024, 8} },
11258 .block_erase = spi_block_erase_d8,
11259 }, {
11260 .eraseblocks = { {512 * 1024, 1} },
11261 .block_erase = spi_block_erase_c7,
11262 }
11263 },
11264 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
11265 .unlock = spi_disable_blockprotect,
11266 .write = spi_chip_write_256,
11267 .read = spi_chip_read,
11268 .voltage = {2700, 3600},
11269 },
11270
11271 {
11272 .vendor = "Micron/Numonyx/ST",
11273 .name = "M25PE80",
11274 .bustype = BUS_SPI,
11275 .manufacture_id = ST_ID,
11276 .model_id = ST_M25PE80,
11277 .total_size = 1024,
11278 .page_size = 256,
11279 .feature_bits = FEATURE_WRSR_WREN,
11280 .tested = TEST_OK_PREW,
11281 .probe = probe_spi_rdid,
11282 .probe_timing = TIMING_ZERO,
11283 .block_erasers =
11284 {
11285 {
11286 .eraseblocks = { {4 * 1024, 256} },
11287 .block_erase = spi_block_erase_20,
11288 }, {
11289 .eraseblocks = { {64 * 1024, 16} },
11290 .block_erase = spi_block_erase_d8,
11291 }, {
11292 .eraseblocks = { {1024 * 1024, 1} },
11293 .block_erase = spi_block_erase_c7,
11294 }
11295 },
11296 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
11297 .unlock = spi_disable_blockprotect,
11298 .write = spi_chip_write_256,
11299 .read = spi_chip_read,
11300 .voltage = {2700, 3600},
11301 },
11302
11303 {
11304 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011305 .name = "M25PX16",
11306 .bustype = BUS_SPI,
11307 .manufacture_id = ST_ID,
11308 .model_id = ST_M25PX16,
11309 .total_size = 2048,
11310 .page_size = 256,
11311 /* OTP: 64B total; read 0x4B; write 0x42 */
11312 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11313 .tested = TEST_OK_PREW,
11314 .probe = probe_spi_rdid,
11315 .probe_timing = TIMING_ZERO,
11316 .block_erasers =
11317 {
11318 {
11319 .eraseblocks = { { 4 * 1024, 512 } },
11320 .block_erase = spi_block_erase_20,
11321 }, {
11322 .eraseblocks = { {64 * 1024, 32} },
11323 .block_erase = spi_block_erase_d8,
11324 }, {
11325 .eraseblocks = { {2 * 1024 * 1024, 1} },
11326 .block_erase = spi_block_erase_c7,
11327 }
11328 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011329 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011330 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
11331 .write = spi_chip_write_256,
11332 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000011333 .voltage = {2300, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011334 },
11335
11336 {
11337 .vendor = "Micron/Numonyx/ST",
11338 .name = "M25PX32",
11339 .bustype = BUS_SPI,
11340 .manufacture_id = ST_ID,
11341 .model_id = ST_M25PX32,
11342 .total_size = 4096,
11343 .page_size = 256,
11344 /* OTP: 64B total; read 0x4B; write 0x42 */
11345 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11346 .tested = TEST_OK_PRE,
11347 .probe = probe_spi_rdid,
11348 .probe_timing = TIMING_ZERO,
11349 .block_erasers =
11350 {
11351 {
11352 .eraseblocks = { { 4 * 1024, 1024 } },
11353 .block_erase = spi_block_erase_20,
11354 }, {
11355 .eraseblocks = { {64 * 1024, 64} },
11356 .block_erase = spi_block_erase_d8,
11357 }, {
11358 .eraseblocks = { {4 * 1024 * 1024, 1} },
11359 .block_erase = spi_block_erase_c7,
11360 }
11361 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011362 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011363 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
11364 .write = spi_chip_write_256,
11365 .read = spi_chip_read,
11366 .voltage = {2700, 3600},
11367 },
11368
11369 {
11370 .vendor = "Micron/Numonyx/ST",
11371 .name = "M25PX64",
11372 .bustype = BUS_SPI,
11373 .manufacture_id = ST_ID,
11374 .model_id = ST_M25PX64,
11375 .total_size = 8192,
11376 .page_size = 256,
11377 /* OTP: 64B total; read 0x4B; write 0x42 */
11378 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000011379 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011380 .probe = probe_spi_rdid,
11381 .probe_timing = TIMING_ZERO,
11382 .block_erasers =
11383 {
11384 {
11385 .eraseblocks = { { 4 * 1024, 2048 } },
11386 .block_erase = spi_block_erase_20,
11387 }, {
11388 .eraseblocks = { {64 * 1024, 128} },
11389 .block_erase = spi_block_erase_d8,
11390 }, {
11391 .eraseblocks = { {8 * 1024 * 1024, 1} },
11392 .block_erase = spi_block_erase_c7,
11393 }
11394 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000011395 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011396 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
11397 .write = spi_chip_write_256,
11398 .read = spi_chip_read,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000011399 .voltage = {2700, 3600},
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011400 },
11401
11402 {
11403 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100011404 .name = "M25PX80",
11405 .bustype = BUS_SPI,
11406 .manufacture_id = ST_ID,
11407 .model_id = ST_M25PX80,
11408 .total_size = 1024,
11409 .page_size = 256,
11410 /* OTP: 64B total; read 0x4B, write 0x42 */
11411 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11412 .tested = TEST_OK_PREW,
11413 .probe = probe_spi_rdid,
11414 .probe_timing = TIMING_ZERO,
11415 .block_erasers =
11416 {
11417 {
11418 .eraseblocks = { { 4 * 1024, 256 } },
11419 .block_erase = spi_block_erase_20,
11420 }, {
11421 .eraseblocks = { {64 * 1024, 16} },
11422 .block_erase = spi_block_erase_d8,
11423 }, {
11424 .eraseblocks = { {1024 * 1024, 1} },
11425 .block_erase = spi_block_erase_c7,
11426 }
11427 },
11428 .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */
11429 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */
11430 .write = spi_chip_write_256,
11431 .read = spi_chip_read,
11432 .voltage = {2700, 3600},
11433 },
11434
11435 {
11436 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011437 .name = "M45PE10",
11438 .bustype = BUS_SPI,
11439 .manufacture_id = ST_ID,
11440 .model_id = ST_M45PE10,
11441 .total_size = 128,
11442 .page_size = 256,
11443 .tested = TEST_UNTESTED,
11444 .probe = probe_spi_rdid,
11445 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011446 .block_erasers =
11447 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011448 {
11449 .eraseblocks = { {256, 512} },
11450 .block_erase = spi_block_erase_db,
11451 }, {
11452 .eraseblocks = { {64 * 1024, 2} },
11453 .block_erase = spi_block_erase_d8,
11454 }
11455 },
11456 .printlock = spi_prettyprint_status_register_default_welwip,
11457 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
11458 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
11459 .read = spi_chip_read, /* Fast read (0x0B) supported */
11460 .voltage = {2700, 3600},
11461 },
11462
11463 {
11464 .vendor = "Micron/Numonyx/ST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100011465 .name = "M45PE16",
11466 .bustype = BUS_SPI,
11467 .manufacture_id = ST_ID,
11468 .model_id = ST_M45PE16,
11469 .total_size = 2048,
11470 .page_size = 256,
11471 .tested = TEST_UNTESTED,
11472 .probe = probe_spi_rdid,
11473 .probe_timing = TIMING_ZERO,
11474 .block_erasers =
11475 {
11476 {
11477 .eraseblocks = { {256, 8192} },
11478 .block_erase = spi_block_erase_db,
11479 }, {
11480 .eraseblocks = { {64 * 1024, 32} },
11481 .block_erase = spi_block_erase_d8,
11482 }
11483 },
11484 .printlock = spi_prettyprint_status_register_default_welwip,
11485 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
11486 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
11487 .read = spi_chip_read, /* Fast read (0x0B) supported */
11488 .voltage = {2700, 3600},
11489 },
11490
11491 {
11492 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011493 .name = "M45PE20",
11494 .bustype = BUS_SPI,
11495 .manufacture_id = ST_ID,
11496 .model_id = ST_M45PE20,
11497 .total_size = 256,
11498 .page_size = 256,
11499 .tested = TEST_UNTESTED,
11500 .probe = probe_spi_rdid,
11501 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011502 .block_erasers =
11503 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011504 {
11505 .eraseblocks = { {256, 1024} },
11506 .block_erase = spi_block_erase_db,
11507 }, {
11508 .eraseblocks = { {64 * 1024, 4} },
11509 .block_erase = spi_block_erase_d8,
11510 }
11511 },
11512 .printlock = spi_prettyprint_status_register_default_welwip,
11513 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
11514 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
11515 .read = spi_chip_read, /* Fast read (0x0B) supported */
11516 .voltage = {2700, 3600},
11517 },
11518
11519 {
11520 .vendor = "Micron/Numonyx/ST",
11521 .name = "M45PE40",
11522 .bustype = BUS_SPI,
11523 .manufacture_id = ST_ID,
11524 .model_id = ST_M45PE40,
11525 .total_size = 512,
11526 .page_size = 256,
11527 .tested = TEST_UNTESTED,
11528 .probe = probe_spi_rdid,
11529 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011530 .block_erasers =
11531 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011532 {
11533 .eraseblocks = { {256, 2048} },
11534 .block_erase = spi_block_erase_db,
11535 }, {
11536 .eraseblocks = { {64 * 1024, 8} },
11537 .block_erase = spi_block_erase_d8,
11538 }
11539 },
11540 .printlock = spi_prettyprint_status_register_default_welwip,
11541 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
Stefan Tauner23e10b82016-01-23 16:16:49 +000011542 .write = spi_chip_write_256, /* Page write supported (similar to PP but allows 0->1 changes) */
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011543 .read = spi_chip_read, /* Fast read (0x0B) supported */
11544 .voltage = {2700, 3600},
11545 },
11546
11547 {
11548 .vendor = "Micron/Numonyx/ST",
11549 .name = "M45PE80",
11550 .bustype = BUS_SPI,
11551 .manufacture_id = ST_ID,
11552 .model_id = ST_M45PE80,
11553 .total_size = 1024,
11554 .page_size = 256,
11555 .tested = TEST_UNTESTED,
11556 .probe = probe_spi_rdid,
11557 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011558 .block_erasers =
11559 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011560 {
11561 .eraseblocks = { {256, 4096} },
11562 .block_erase = spi_block_erase_db,
11563 }, {
11564 .eraseblocks = { {64 * 1024, 16} },
11565 .block_erase = spi_block_erase_d8,
11566 }
11567 },
11568 .printlock = spi_prettyprint_status_register_default_welwip,
11569 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
11570 .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */
11571 .read = spi_chip_read, /* Fast read (0x0B) supported */
11572 .voltage = {2700, 3600},
11573 },
11574
11575 {
11576 .vendor = "Micron/Numonyx/ST",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011577 .name = "N25Q00A..1G", /* ..1G = 1.8V, uniform 64KB/4KB blocks/sectors */
11578 .bustype = BUS_SPI,
11579 .manufacture_id = ST_ID,
11580 .model_id = ST_N25Q00A__1G,
11581 .total_size = 131072,
11582 .page_size = 256,
11583 /* supports SFDP */
11584 /* OTP: 64B total; read 0x4B, write 0x42 */
11585 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11586 .tested = TEST_UNTESTED,
11587 .probe = probe_spi_rdid,
11588 .probe_timing = TIMING_ZERO,
11589 .block_erasers =
11590 {
11591 {
11592 .eraseblocks = { {4 * 1024, 32768} },
11593 .block_erase = spi_block_erase_21,
11594 }, {
11595 .eraseblocks = { {4 * 1024, 32768} },
11596 .block_erase = spi_block_erase_20,
11597 }, {
11598 .eraseblocks = { {64 * 1024, 2048} },
11599 .block_erase = spi_block_erase_dc,
11600 }, {
11601 .eraseblocks = { {64 * 1024, 2048} },
11602 .block_erase = spi_block_erase_d8,
11603 }, {
11604 .eraseblocks = { {32768 * 1024, 4} },
11605 .block_erase = spi_block_erase_c4,
11606 }
11607 },
11608 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11609 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11610 .write = spi_chip_write_256, /* Multi I/O supported */
11611 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11612 .voltage = {1700, 2000},
Nico Huberab6b18f2023-01-11 23:38:20 +010011613 .prepare_access = spi_prepare_4ba,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011614 },
11615
11616 {
11617 .vendor = "Micron/Numonyx/ST",
11618 .name = "N25Q00A..3G", /* ..3G = 3V, uniform 64KB/4KB blocks/sectors */
11619 .bustype = BUS_SPI,
11620 .manufacture_id = ST_ID,
11621 .model_id = ST_N25Q00A__3G,
11622 .total_size = 131072,
11623 .page_size = 256,
11624 /* supports SFDP */
11625 /* OTP: 64B total; read 0x4B, write 0x42 */
11626 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11627 .tested = TEST_UNTESTED,
11628 .probe = probe_spi_rdid,
11629 .probe_timing = TIMING_ZERO,
11630 .block_erasers =
11631 {
11632 {
11633 .eraseblocks = { {4 * 1024, 32768} },
11634 .block_erase = spi_block_erase_21,
11635 }, {
11636 .eraseblocks = { {4 * 1024, 32768} },
11637 .block_erase = spi_block_erase_20,
11638 }, {
11639 .eraseblocks = { {64 * 1024, 2048} },
11640 .block_erase = spi_block_erase_dc,
11641 }, {
11642 .eraseblocks = { {64 * 1024, 2048} },
11643 .block_erase = spi_block_erase_d8,
11644 }, {
11645 .eraseblocks = { {32768 * 1024, 4} },
11646 .block_erase = spi_block_erase_c4,
11647 }
11648 },
11649 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11650 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11651 .write = spi_chip_write_256, /* Multi I/O supported */
11652 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11653 .voltage = {2700, 3600},
Nico Huberab6b18f2023-01-11 23:38:20 +010011654 .prepare_access = spi_prepare_4ba,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011655 },
11656
11657 {
11658 .vendor = "Micron/Numonyx/ST",
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011659 .name = "N25Q016",
11660 .bustype = BUS_SPI,
11661 .manufacture_id = ST_ID,
11662 .model_id = ST_N25Q016__1E,
11663 .total_size = 2048,
11664 .page_size = 256,
11665 /* supports SFDP */
11666 /* OTP: 64B total; read 0x4B, write 0x42 */
11667 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11668 .tested = TEST_UNTESTED,
11669 .probe = probe_spi_rdid,
11670 .probe_timing = TIMING_ZERO,
11671 .block_erasers =
11672 {
11673 {
11674 .eraseblocks = { {4 * 1024, 512} },
11675 .block_erase = spi_block_erase_20,
11676 }, {
11677 .eraseblocks = { {32 * 1024, 64} },
11678 .block_erase = spi_block_erase_52,
11679 }, {
11680 .eraseblocks = { {64 * 1024, 32} },
11681 .block_erase = spi_block_erase_d8,
11682 }, {
11683 .eraseblocks = { {2 * 1024 * 1024, 1} },
11684 .block_erase = spi_block_erase_c7,
11685 }
11686 },
11687 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11688 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11689 .write = spi_chip_write_256, /* Multi I/O supported */
11690 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11691 .voltage = {1700, 2000},
11692 },
11693
11694 {
11695 .vendor = "Micron/Numonyx/ST",
11696 .name = "N25Q032..1E",
11697 .bustype = BUS_SPI,
11698 .manufacture_id = ST_ID,
11699 .model_id = ST_N25Q032__1E,
11700 .total_size = 4096,
11701 .page_size = 256,
11702 /* supports SFDP */
11703 /* OTP: 64B total; read 0x4B, write 0x42 */
11704 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11705 .tested = TEST_UNTESTED,
11706 .probe = probe_spi_rdid,
11707 .probe_timing = TIMING_ZERO,
11708 .block_erasers =
11709 {
11710 {
11711 .eraseblocks = { {4 * 1024, 1024} },
11712 .block_erase = spi_block_erase_20,
11713 }, {
11714 .eraseblocks = { {64 * 1024, 64} },
11715 .block_erase = spi_block_erase_d8,
11716 }, {
11717 .eraseblocks = { {4 * 1024 * 1024, 1} },
11718 .block_erase = spi_block_erase_c7,
11719 }
11720 },
11721 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11722 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11723 .write = spi_chip_write_256, /* Multi I/O supported */
11724 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11725 .voltage = {1700, 2000},
Sergii Dmytrukd5ba24c2022-07-25 00:28:35 +030011726 .reg_bits =
11727 {
11728 /*
11729 * There is also a volatile lock register per 64KiB sector, which is not
11730 * mutually exclusive with BP-based protection.
11731 */
11732 .srp = {STATUS1, 7, RW},
11733 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
11734 .tb = {STATUS1, 5, RW},
11735 },
Nico Huberaabb3e02023-01-13 00:22:30 +010011736 .wp_write_cfg = spi_wp_write_cfg,
11737 .wp_read_cfg = spi_wp_read_cfg,
11738 .wp_get_ranges = spi_wp_get_available_ranges,
Sergii Dmytrukd5ba24c2022-07-25 00:28:35 +030011739 .decode_range = decode_range_spi25,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011740 },
11741
11742 {
11743 .vendor = "Micron/Numonyx/ST",
11744 .name = "N25Q032..3E",
11745 .bustype = BUS_SPI,
11746 .manufacture_id = ST_ID,
11747 .model_id = ST_N25Q032__3E,
11748 .total_size = 4096,
11749 .page_size = 256,
11750 /* supports SFDP */
11751 /* OTP: 64B total; read 0x4B, write 0x42 */
11752 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11753 .tested = TEST_OK_PREW,
11754 .probe = probe_spi_rdid,
11755 .probe_timing = TIMING_ZERO,
11756 .block_erasers =
11757 {
11758 {
11759 .eraseblocks = { {4 * 1024, 1024} },
11760 .block_erase = spi_block_erase_20,
11761 }, {
11762 .eraseblocks = { {64 * 1024, 64} },
11763 .block_erase = spi_block_erase_d8,
11764 }, {
11765 .eraseblocks = { {4 * 1024 * 1024, 1} },
11766 .block_erase = spi_block_erase_c7,
11767 }
11768 },
11769 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11770 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11771 .write = spi_chip_write_256, /* Multi I/O supported */
11772 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11773 .voltage = {2700, 3600},
Sergii Dmytrukd5ba24c2022-07-25 00:28:35 +030011774 .reg_bits =
11775 {
11776 /*
11777 * There is also a volatile lock register per 64KiB sector, which is not
11778 * mutually exclusive with BP-based protection.
11779 */
11780 .srp = {STATUS1, 7, RW},
11781 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
11782 .tb = {STATUS1, 5, RW},
11783 },
Nico Huberaabb3e02023-01-13 00:22:30 +010011784 .wp_write_cfg = spi_wp_write_cfg,
11785 .wp_read_cfg = spi_wp_read_cfg,
11786 .wp_get_ranges = spi_wp_get_available_ranges,
Sergii Dmytrukd5ba24c2022-07-25 00:28:35 +030011787 .decode_range = decode_range_spi25,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011788 },
11789
11790 {
11791 .vendor = "Micron/Numonyx/ST",
11792 .name = "N25Q064..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
11793 .bustype = BUS_SPI,
11794 .manufacture_id = ST_ID,
11795 .model_id = ST_N25Q064__1E,
11796 .total_size = 8192,
11797 .page_size = 256,
11798 /* supports SFDP */
11799 /* OTP: 64B total; read 0x4B, write 0x42 */
11800 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000011801 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011802 .probe = probe_spi_rdid,
11803 .probe_timing = TIMING_ZERO,
11804 .block_erasers =
11805 {
11806 {
11807 .eraseblocks = { {4 * 1024, 2048 } },
11808 .block_erase = spi_block_erase_20,
11809 }, {
11810 .eraseblocks = { {64 * 1024, 128} },
11811 .block_erase = spi_block_erase_d8,
11812 }, {
11813 .eraseblocks = { {8 * 1024 * 1024, 1} },
11814 .block_erase = spi_block_erase_c7,
11815 }
11816 },
11817 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11818 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11819 .write = spi_chip_write_256, /* Multi I/O supported */
11820 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11821 .voltage = {1700, 2000},
Sergii Dmytrukd5ba24c2022-07-25 00:28:35 +030011822 .reg_bits =
11823 {
11824 /*
11825 * There is also a volatile lock register per 64KiB sector, which is not
11826 * mutually exclusive with BP-based protection.
11827 */
11828 .srp = {STATUS1, 7, RW},
11829 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 6, RW}},
11830 .tb = {STATUS1, 5, RW},
11831 },
Nico Huberaabb3e02023-01-13 00:22:30 +010011832 .wp_write_cfg = spi_wp_write_cfg,
11833 .wp_read_cfg = spi_wp_read_cfg,
11834 .wp_get_ranges = spi_wp_get_available_ranges,
Sergii Dmytrukd5ba24c2022-07-25 00:28:35 +030011835 .decode_range = decode_range_spi25,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011836 },
11837
11838 {
11839 .vendor = "Micron/Numonyx/ST",
11840 .name = "N25Q064..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
11841 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100011842 .manufacture_id = ST_ID,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011843 .model_id = ST_N25Q064__3E,
11844 .total_size = 8192,
11845 .page_size = 256,
11846 /* supports SFDP */
11847 /* OTP: 64B total; read 0x4B, write 0x42 */
11848 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11849 .tested = TEST_OK_PREW,
11850 .probe = probe_spi_rdid,
11851 .probe_timing = TIMING_ZERO,
11852 .block_erasers =
11853 {
11854 {
11855 .eraseblocks = { {4 * 1024, 2048 } },
11856 .block_erase = spi_block_erase_20,
11857 }, {
11858 .eraseblocks = { {64 * 1024, 128} },
11859 .block_erase = spi_block_erase_d8,
11860 }, {
11861 .eraseblocks = { {8 * 1024 * 1024, 1} },
11862 .block_erase = spi_block_erase_c7,
11863 }
11864 },
11865 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11866 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11867 .write = spi_chip_write_256, /* Multi I/O supported */
11868 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11869 .voltage = {2700, 3600},
Sergii Dmytrukd5ba24c2022-07-25 00:28:35 +030011870 .reg_bits =
11871 {
11872 /*
11873 * There is also a volatile lock register per 64KiB sector, which is not
11874 * mutually exclusive with BP-based protection.
11875 */
11876 .srp = {STATUS1, 7, RW},
11877 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 6, RW}},
11878 .tb = {STATUS1, 5, RW},
11879 },
Nico Huberaabb3e02023-01-13 00:22:30 +010011880 .wp_write_cfg = spi_wp_write_cfg,
11881 .wp_read_cfg = spi_wp_read_cfg,
11882 .wp_get_ranges = spi_wp_get_available_ranges,
Sergii Dmytrukd5ba24c2022-07-25 00:28:35 +030011883 .decode_range = decode_range_spi25,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011884 },
11885
11886 {
11887 .vendor = "Micron/Numonyx/ST",
11888 .name = "N25Q128..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
11889 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100011890 .manufacture_id = ST_ID,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011891 .model_id = ST_N25Q128__1E,
11892 .total_size = 16384,
11893 .page_size = 256,
11894 /* supports SFDP */
11895 /* OTP: 64B total; read 0x4B, write 0x42 */
11896 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Stefan Tauner23e10b82016-01-23 16:16:49 +000011897 .tested = TEST_OK_PREW,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011898 .probe = probe_spi_rdid,
11899 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011900 .block_erasers =
11901 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011902 {
11903 .eraseblocks = { {4 * 1024, 4096 } },
11904 .block_erase = spi_block_erase_20,
11905 }, {
11906 .eraseblocks = { {64 * 1024, 256} },
11907 .block_erase = spi_block_erase_d8,
11908 }, {
11909 .eraseblocks = { {16384 * 1024, 1} },
11910 .block_erase = spi_block_erase_c7,
11911 }
11912 },
11913 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11914 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11915 .write = spi_chip_write_256, /* Multi I/O supported */
11916 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11917 .voltage = {1700, 2000},
11918 },
11919
11920 {
11921 .vendor = "Micron/Numonyx/ST",
11922 .name = "N25Q128..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
11923 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100011924 .manufacture_id = ST_ID,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011925 .model_id = ST_N25Q128__3E,
11926 .total_size = 16384,
11927 .page_size = 256,
11928 /* supports SFDP */
11929 /* OTP: 64B total; read 0x4B, write 0x42 */
11930 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
11931 .tested = TEST_OK_PREW,
11932 .probe = probe_spi_rdid,
11933 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100011934 .block_erasers =
11935 {
Stefan Tauner1aa80b02013-07-25 22:58:51 +000011936 {
11937 .eraseblocks = { {4 * 1024, 4096 } },
11938 .block_erase = spi_block_erase_20,
11939 }, {
11940 .eraseblocks = { {64 * 1024, 256} },
11941 .block_erase = spi_block_erase_d8,
11942 }, {
11943 .eraseblocks = { {16384 * 1024, 1} },
11944 .block_erase = spi_block_erase_c7,
11945 }
11946 },
11947 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11948 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11949 .write = spi_chip_write_256, /* Multi I/O supported */
11950 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11951 .voltage = {2700, 3600},
11952 },
11953
11954 {
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011955 .vendor = "Micron/Numonyx/ST",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011956 .name = "N25Q256..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */
11957 .bustype = BUS_SPI,
11958 .manufacture_id = ST_ID,
11959 .model_id = ST_N25Q256__1E,
11960 .total_size = 32768,
11961 .page_size = 256,
11962 /* supports SFDP */
11963 /* OTP: 64B total; read 0x4B, write 0x42 */
11964 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
11965 .tested = TEST_UNTESTED,
11966 .probe = probe_spi_rdid,
11967 .probe_timing = TIMING_ZERO,
11968 .block_erasers =
11969 {
11970 {
11971 .eraseblocks = { {4 * 1024, 8192} },
11972 .block_erase = spi_block_erase_21,
11973 }, {
11974 .eraseblocks = { {4 * 1024, 8192} },
11975 .block_erase = spi_block_erase_20,
11976 }, {
11977 .eraseblocks = { {64 * 1024, 512} },
11978 .block_erase = spi_block_erase_dc,
11979 }, {
11980 .eraseblocks = { {64 * 1024, 512} },
11981 .block_erase = spi_block_erase_d8,
11982 }, {
11983 .eraseblocks = { {32768 * 1024, 1} },
11984 .block_erase = spi_block_erase_c7,
11985 }
11986 },
11987 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
11988 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
11989 .write = spi_chip_write_256, /* Multi I/O supported */
11990 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
11991 .voltage = {1700, 2000},
Nico Huberab6b18f2023-01-11 23:38:20 +010011992 .prepare_access = spi_prepare_4ba,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070011993 },
11994
11995 {
11996 .vendor = "Micron/Numonyx/ST",
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070011997 .name = "N25Q256..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */
11998 .bustype = BUS_SPI,
11999 .manufacture_id = ST_ID,
12000 .model_id = ST_N25Q256__3E,
12001 .total_size = 32768,
12002 .page_size = 256,
12003 /* supports SFDP */
12004 /* OTP: 64B total; read 0x4B, write 0x42 */
12005 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
12006 .tested = TEST_UNTESTED,
12007 .probe = probe_spi_rdid,
12008 .probe_timing = TIMING_ZERO,
12009 .block_erasers =
12010 {
12011 {
12012 .eraseblocks = { {4 * 1024, 8192} },
12013 .block_erase = spi_block_erase_21,
12014 }, {
12015 .eraseblocks = { {4 * 1024, 8192} },
12016 .block_erase = spi_block_erase_20,
12017 }, {
12018 .eraseblocks = { {64 * 1024, 512} },
12019 .block_erase = spi_block_erase_dc,
12020 }, {
12021 .eraseblocks = { {64 * 1024, 512} },
12022 .block_erase = spi_block_erase_d8,
12023 }, {
12024 .eraseblocks = { {32768 * 1024, 1} },
12025 .block_erase = spi_block_erase_c7,
12026 }
12027 },
12028 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
12029 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
12030 .write = spi_chip_write_256, /* Multi I/O supported */
12031 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12032 .voltage = {2700, 3600},
Nico Huberab6b18f2023-01-11 23:38:20 +010012033 .prepare_access = spi_prepare_4ba,
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070012034 },
12035
12036 {
12037 .vendor = "Micron/Numonyx/ST",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070012038 .name = "N25Q512..1G", /* ..1G = 1.8V, uniform 64KB/4KB blocks/sectors */
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070012039 .bustype = BUS_SPI,
12040 .manufacture_id = ST_ID,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070012041 .model_id = ST_N25Q512__1G,
12042 .total_size = 65536,
12043 .page_size = 256,
12044 /* supports SFDP */
12045 /* OTP: 64B total; read 0x4B, write 0x42 */
12046 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
12047 .tested = TEST_UNTESTED,
12048 .probe = probe_spi_rdid,
12049 .probe_timing = TIMING_ZERO,
12050 .block_erasers =
12051 {
12052 {
12053 .eraseblocks = { {4 * 1024, 16384} },
12054 .block_erase = spi_block_erase_21,
12055 }, {
12056 .eraseblocks = { {4 * 1024, 16384} },
12057 .block_erase = spi_block_erase_20,
12058 }, {
12059 .eraseblocks = { {64 * 1024, 1024} },
12060 .block_erase = spi_block_erase_dc,
12061 }, {
12062 .eraseblocks = { {64 * 1024, 1024} },
12063 .block_erase = spi_block_erase_d8,
12064 }, {
12065 .eraseblocks = { {32768 * 1024, 2} },
12066 .block_erase = spi_block_erase_c4,
12067 }
12068 },
12069 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
12070 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
12071 .write = spi_chip_write_256, /* Multi I/O supported */
12072 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12073 .voltage = {1700, 2000},
Nico Huberab6b18f2023-01-11 23:38:20 +010012074 .prepare_access = spi_prepare_4ba,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070012075 },
12076
12077 {
12078 .vendor = "Micron/Numonyx/ST",
12079 .name = "N25Q512..3G", /* ..3G = 3V, uniform 64KB/4KB blocks/sectors */
12080 .bustype = BUS_SPI,
12081 .manufacture_id = ST_ID,
12082 .model_id = ST_N25Q512__3G,
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070012083 .total_size = 65536,
12084 .page_size = 256,
12085 /* supports SFDP */
12086 /* OTP: 64B total; read 0x4B, write 0x42 */
12087 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
12088 .tested = TEST_OK_PREW,
12089 .probe = probe_spi_rdid,
12090 .probe_timing = TIMING_ZERO,
12091 .block_erasers =
12092 {
12093 {
12094 .eraseblocks = { {4 * 1024, 16384} },
12095 .block_erase = spi_block_erase_21,
12096 }, {
12097 .eraseblocks = { {4 * 1024, 16384} },
12098 .block_erase = spi_block_erase_20,
12099 }, {
12100 .eraseblocks = { {64 * 1024, 1024} },
12101 .block_erase = spi_block_erase_dc,
12102 }, {
12103 .eraseblocks = { {64 * 1024, 1024} },
12104 .block_erase = spi_block_erase_d8,
12105 }, {
Jacob Creedone8e7b0e2019-07-22 12:21:22 -070012106 .eraseblocks = { {32768 * 1024, 2} },
12107 .block_erase = spi_block_erase_c4,
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070012108 }
12109 },
12110 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
12111 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
12112 .write = spi_chip_write_256, /* Multi I/O supported */
12113 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12114 .voltage = {2700, 3600},
Nico Huberab6b18f2023-01-11 23:38:20 +010012115 .prepare_access = spi_prepare_4ba,
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070012116 },
12117
12118 {
Ed Swierk199ab392017-07-03 13:33:44 -070012119 .vendor = "Micron",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070012120 .name = "MT25QL01G", /* L = 3V, uniform 64KB/4KB blocks/sectors */
12121 .bustype = BUS_SPI,
12122 .manufacture_id = ST_ID,
12123 .model_id = ST_N25Q00A__3G,
12124 .total_size = 131072,
12125 .page_size = 256,
12126 /* supports SFDP */
12127 /* OTP: 64B total; read 0x4B, write 0x42 */
12128 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
12129 .tested = TEST_OK_PREW,
12130 .probe = probe_spi_rdid,
12131 .probe_timing = TIMING_ZERO,
12132 .block_erasers =
12133 {
12134 {
12135 .eraseblocks = { {4 * 1024, 32768} },
12136 .block_erase = spi_block_erase_21,
12137 }, {
12138 .eraseblocks = { {4 * 1024, 32768} },
12139 .block_erase = spi_block_erase_20,
12140 }, {
12141 .eraseblocks = { {32 * 1024, 4096} },
12142 .block_erase = spi_block_erase_5c,
12143 }, {
12144 .eraseblocks = { {32 * 1024, 4096} },
12145 .block_erase = spi_block_erase_52,
12146 }, {
12147 .eraseblocks = { {64 * 1024, 2048} },
12148 .block_erase = spi_block_erase_dc,
12149 }, {
12150 .eraseblocks = { {64 * 1024, 2048} },
12151 .block_erase = spi_block_erase_d8,
12152 }, {
12153 .eraseblocks = { {65536 * 1024, 2} },
12154 .block_erase = spi_block_erase_c4,
12155 }
12156 },
12157 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
12158 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
12159 .write = spi_chip_write_256, /* Multi I/O supported */
12160 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12161 .voltage = {2700, 3600},
Nico Huberab6b18f2023-01-11 23:38:20 +010012162 .prepare_access = spi_prepare_4ba,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070012163 },
12164
12165 {
12166 .vendor = "Micron",
12167 .name = "MT25QU01G", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
12168 .bustype = BUS_SPI,
12169 .manufacture_id = ST_ID,
12170 .model_id = ST_N25Q00A__1G,
12171 .total_size = 131072,
12172 .page_size = 256,
12173 /* supports SFDP */
12174 /* OTP: 64B total; read 0x4B, write 0x42 */
12175 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
12176 .tested = TEST_UNTESTED,
12177 .probe = probe_spi_rdid,
12178 .probe_timing = TIMING_ZERO,
12179 .block_erasers =
12180 {
12181 {
12182 .eraseblocks = { {4 * 1024, 32768} },
12183 .block_erase = spi_block_erase_21,
12184 }, {
12185 .eraseblocks = { {4 * 1024, 32768} },
12186 .block_erase = spi_block_erase_20,
12187 }, {
12188 .eraseblocks = { {32 * 1024, 4096} },
12189 .block_erase = spi_block_erase_5c,
12190 }, {
12191 .eraseblocks = { {32 * 1024, 4096} },
12192 .block_erase = spi_block_erase_52,
12193 }, {
12194 .eraseblocks = { {64 * 1024, 2048} },
12195 .block_erase = spi_block_erase_dc,
12196 }, {
12197 .eraseblocks = { {64 * 1024, 2048} },
12198 .block_erase = spi_block_erase_d8,
12199 }, {
12200 .eraseblocks = { {65536 * 1024, 2} },
12201 .block_erase = spi_block_erase_c4,
12202 }
12203 },
12204 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
12205 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
12206 .write = spi_chip_write_256, /* Multi I/O supported */
12207 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12208 .voltage = {1700, 2000},
Nico Huberab6b18f2023-01-11 23:38:20 +010012209 .prepare_access = spi_prepare_4ba,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070012210 },
12211
12212 {
12213 .vendor = "Micron",
12214 .name = "MT25QL02G", /* L = 3V, uniform 64KB/4KB blocks/sectors */
12215 .bustype = BUS_SPI,
12216 .manufacture_id = ST_ID,
12217 .model_id = ST_MT25QL02G,
12218 .total_size = 262144,
12219 .page_size = 256,
12220 /* supports SFDP */
12221 /* OTP: 64B total; read 0x4B, write 0x42 */
12222 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
12223 .tested = TEST_UNTESTED,
12224 .probe = probe_spi_rdid,
12225 .probe_timing = TIMING_ZERO,
12226 .block_erasers =
12227 {
12228 {
12229 .eraseblocks = { {4 * 1024, 65536} },
12230 .block_erase = spi_block_erase_21,
12231 }, {
12232 .eraseblocks = { {4 * 1024, 65536} },
12233 .block_erase = spi_block_erase_20,
12234 }, {
12235 .eraseblocks = { {32 * 1024, 8192} },
12236 .block_erase = spi_block_erase_5c,
12237 }, {
12238 .eraseblocks = { {32 * 1024, 8192} },
12239 .block_erase = spi_block_erase_52,
12240 }, {
12241 .eraseblocks = { {64 * 1024, 4096} },
12242 .block_erase = spi_block_erase_dc,
12243 }, {
12244 .eraseblocks = { {64 * 1024, 4096} },
12245 .block_erase = spi_block_erase_d8,
12246 }, {
12247 .eraseblocks = { {65536 * 1024, 4} },
12248 .block_erase = spi_block_erase_c4,
12249 }
12250 },
12251 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
12252 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
12253 .write = spi_chip_write_256, /* Multi I/O supported */
12254 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12255 .voltage = {2700, 3600},
Nico Huberab6b18f2023-01-11 23:38:20 +010012256 .prepare_access = spi_prepare_4ba,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070012257 },
12258
12259 {
12260 .vendor = "Micron",
12261 .name = "MT25QU02G", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
12262 .bustype = BUS_SPI,
12263 .manufacture_id = ST_ID,
12264 .model_id = ST_MT25QU02G,
12265 .total_size = 262144,
12266 .page_size = 256,
12267 /* supports SFDP */
12268 /* OTP: 64B total; read 0x4B, write 0x42 */
12269 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
12270 .tested = TEST_UNTESTED,
12271 .probe = probe_spi_rdid,
12272 .probe_timing = TIMING_ZERO,
12273 .block_erasers =
12274 {
12275 {
12276 .eraseblocks = { {4 * 1024, 65536} },
12277 .block_erase = spi_block_erase_21,
12278 }, {
12279 .eraseblocks = { {4 * 1024, 65536} },
12280 .block_erase = spi_block_erase_20,
12281 }, {
12282 .eraseblocks = { {32 * 1024, 8192} },
12283 .block_erase = spi_block_erase_5c,
12284 }, {
12285 .eraseblocks = { {32 * 1024, 8192} },
12286 .block_erase = spi_block_erase_52,
12287 }, {
12288 .eraseblocks = { {64 * 1024, 4096} },
12289 .block_erase = spi_block_erase_dc,
12290 }, {
12291 .eraseblocks = { {64 * 1024, 4096} },
12292 .block_erase = spi_block_erase_d8,
12293 }, {
12294 .eraseblocks = { {65536 * 1024, 4} },
12295 .block_erase = spi_block_erase_c4,
12296 }
12297 },
12298 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
12299 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
12300 .write = spi_chip_write_256, /* Multi I/O supported */
12301 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12302 .voltage = {1700, 2000},
Nico Huberab6b18f2023-01-11 23:38:20 +010012303 .prepare_access = spi_prepare_4ba,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070012304 },
12305
12306 {
12307 .vendor = "Micron",
12308 .name = "MT25QU128", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
12309 .bustype = BUS_SPI,
12310 .manufacture_id = ST_ID,
12311 .model_id = ST_N25Q128__1E,
12312 .total_size = 16384,
12313 .page_size = 256,
12314 /* supports SFDP */
12315 /* OTP: 64B total; read 0x4B, write 0x42 */
Nico Huber48dc0902023-03-05 17:20:55 +010012316 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070012317 .tested = TEST_UNTESTED,
12318 .probe = probe_spi_rdid,
12319 .probe_timing = TIMING_ZERO,
12320 .block_erasers =
12321 {
12322 {
12323 .eraseblocks = { {4 * 1024, 4096} },
12324 .block_erase = spi_block_erase_20,
12325 }, {
12326 .eraseblocks = { {32 * 1024, 512} },
12327 .block_erase = spi_block_erase_52,
12328 }, {
12329 .eraseblocks = { {64 * 1024, 256} },
12330 .block_erase = spi_block_erase_d8,
12331 }, {
12332 .eraseblocks = { {16384 * 1024, 1} },
12333 .block_erase = spi_block_erase_c7,
12334 }, {
12335 .eraseblocks = { {16384 * 1024, 1} },
12336 .block_erase = spi_block_erase_60,
12337 }
12338 },
12339 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
12340 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
12341 .write = spi_chip_write_256, /* Multi I/O supported */
12342 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12343 .voltage = {1700, 2000},
12344 },
12345
12346 {
12347 .vendor = "Micron",
12348 .name = "MT25QL128", /* L = 3V, uniform 64KB/4KB blocks/sectors */
12349 .bustype = BUS_SPI,
12350 .manufacture_id = ST_ID,
12351 .model_id = ST_N25Q128__3E,
12352 .total_size = 16384,
12353 .page_size = 256,
12354 /* supports SFDP */
12355 /* OTP: 64B total; read 0x4B, write 0x42 */
Rick Altherr1e563602022-12-22 10:25:34 -080012356 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
12357 .tested = TEST_OK_PREW,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070012358 .probe = probe_spi_rdid,
12359 .probe_timing = TIMING_ZERO,
12360 .block_erasers =
12361 {
12362 {
12363 .eraseblocks = { {4 * 1024, 4096} },
12364 .block_erase = spi_block_erase_20,
12365 }, {
12366 .eraseblocks = { {32 * 1024, 512} },
12367 .block_erase = spi_block_erase_52,
12368 }, {
12369 .eraseblocks = { {64 * 1024, 256} },
12370 .block_erase = spi_block_erase_d8,
12371 }, {
12372 .eraseblocks = { {16384 * 1024, 1} },
12373 .block_erase = spi_block_erase_c7,
12374 }, {
12375 .eraseblocks = { {16384 * 1024, 1} },
12376 .block_erase = spi_block_erase_60,
12377 }
12378 },
12379 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
12380 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
12381 .write = spi_chip_write_256, /* Multi I/O supported */
12382 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12383 .voltage = {2700, 3600},
12384 },
12385
12386 {
12387 .vendor = "Micron",
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070012388 .name = "MT25QL256", /* L = 3V, uniform 64KB/4KB blocks/sectors */
Ed Swierk199ab392017-07-03 13:33:44 -070012389 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100012390 .manufacture_id = ST_ID,
Ed Swierk199ab392017-07-03 13:33:44 -070012391 .model_id = ST_N25Q256__3E,
12392 .total_size = 32768,
12393 .page_size = 256,
12394 /* supports SFDP */
12395 /* OTP: 64B total; read 0x4B, write 0x42 */
Nico Huberaac81422017-11-10 22:54:13 +010012396 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
Simon Buhrowb7014f92021-02-15 13:16:57 +010012397 .tested = TEST_OK_PREW,
Ed Swierk199ab392017-07-03 13:33:44 -070012398 .probe = probe_spi_rdid,
12399 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100012400 .block_erasers =
12401 {
Ed Swierk199ab392017-07-03 13:33:44 -070012402 {
12403 .eraseblocks = { {4 * 1024, 8192} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020012404 .block_erase = spi_block_erase_21,
Ed Swierk199ab392017-07-03 13:33:44 -070012405 }, {
Nico Huberaac81422017-11-10 22:54:13 +010012406 .eraseblocks = { {4 * 1024, 8192} },
12407 .block_erase = spi_block_erase_20,
12408 }, {
Jacob Creedon045b97e2019-07-22 12:26:56 -070012409 .eraseblocks = { {32 * 1024, 1024} },
12410 .block_erase = spi_block_erase_5c,
12411 }, {
12412 .eraseblocks = { {32 * 1024, 1024} },
12413 .block_erase = spi_block_erase_52,
12414 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070012415 .eraseblocks = { {64 * 1024, 512} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020012416 .block_erase = spi_block_erase_dc,
Ed Swierk199ab392017-07-03 13:33:44 -070012417 }, {
Nico Huberaac81422017-11-10 22:54:13 +010012418 .eraseblocks = { {64 * 1024, 512} },
12419 .block_erase = spi_block_erase_d8,
12420 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070012421 .eraseblocks = { {32768 * 1024, 1} },
12422 .block_erase = spi_block_erase_c7,
Jacob Creedon045b97e2019-07-22 12:26:56 -070012423 }, {
12424 .eraseblocks = { {32768 * 1024, 1} },
12425 .block_erase = spi_block_erase_60,
Ed Swierk199ab392017-07-03 13:33:44 -070012426 }
12427 },
12428 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
12429 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
12430 .write = spi_chip_write_256, /* Multi I/O supported */
12431 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12432 .voltage = {2700, 3600},
Nico Huberab6b18f2023-01-11 23:38:20 +010012433 .prepare_access = spi_prepare_4ba,
Ed Swierk199ab392017-07-03 13:33:44 -070012434 },
12435
12436 {
12437 .vendor = "Micron",
Jacob Creedon80e8dc42019-07-22 12:35:30 -070012438 .name = "MT25QU256", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
12439 .bustype = BUS_SPI,
12440 .manufacture_id = ST_ID,
12441 .model_id = ST_N25Q256__1E,
12442 .total_size = 32768,
12443 .page_size = 256,
12444 /* supports SFDP */
12445 /* OTP: 64B total; read 0x4B, write 0x42 */
12446 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
Angel Pons59052582022-03-08 15:23:58 +010012447 .tested = TEST_OK_PREW,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070012448 .probe = probe_spi_rdid,
12449 .probe_timing = TIMING_ZERO,
12450 .block_erasers =
12451 {
12452 {
12453 .eraseblocks = { {4 * 1024, 8192} },
12454 .block_erase = spi_block_erase_21,
12455 }, {
12456 .eraseblocks = { {4 * 1024, 8192} },
12457 .block_erase = spi_block_erase_20,
12458 }, {
12459 .eraseblocks = { {32 * 1024, 1024} },
12460 .block_erase = spi_block_erase_5c,
12461 }, {
12462 .eraseblocks = { {32 * 1024, 1024} },
12463 .block_erase = spi_block_erase_52,
12464 }, {
12465 .eraseblocks = { {64 * 1024, 512} },
12466 .block_erase = spi_block_erase_dc,
12467 }, {
12468 .eraseblocks = { {64 * 1024, 512} },
12469 .block_erase = spi_block_erase_d8,
12470 }, {
12471 .eraseblocks = { {32768 * 1024, 1} },
12472 .block_erase = spi_block_erase_c7,
12473 }, {
12474 .eraseblocks = { {32768 * 1024, 1} },
12475 .block_erase = spi_block_erase_60,
12476 }
12477 },
12478 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
12479 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
12480 .write = spi_chip_write_256, /* Multi I/O supported */
12481 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12482 .voltage = {1700, 2000},
Nico Huberab6b18f2023-01-11 23:38:20 +010012483 .prepare_access = spi_prepare_4ba,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070012484 },
12485
12486 {
12487 .vendor = "Micron",
Jacob Creedon08e9d1d2019-07-22 12:04:40 -070012488 .name = "MT25QL512", /* L = 3V, uniform 64KB/4KB blocks/sectors */
Ed Swierk199ab392017-07-03 13:33:44 -070012489 .bustype = BUS_SPI,
Alan Greenfa3fcd32019-06-27 15:41:50 +100012490 .manufacture_id = ST_ID,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070012491 .model_id = ST_N25Q512__3G,
Ed Swierk199ab392017-07-03 13:33:44 -070012492 .total_size = 65536,
12493 .page_size = 256,
12494 /* supports SFDP */
12495 /* OTP: 64B total; read 0x4B, write 0x42 */
Nico Huberaac81422017-11-10 22:54:13 +010012496 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
Angel Pons3ed5a352018-09-30 16:31:09 +020012497 .tested = TEST_OK_PREW,
Ed Swierk199ab392017-07-03 13:33:44 -070012498 .probe = probe_spi_rdid,
12499 .probe_timing = TIMING_ZERO,
Alan Greenfdf5da42019-06-27 16:56:52 +100012500 .block_erasers =
12501 {
Ed Swierk199ab392017-07-03 13:33:44 -070012502 {
12503 .eraseblocks = { {4 * 1024, 16384} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020012504 .block_erase = spi_block_erase_21,
Ed Swierk199ab392017-07-03 13:33:44 -070012505 }, {
Nico Huberaac81422017-11-10 22:54:13 +010012506 .eraseblocks = { {4 * 1024, 16384} },
12507 .block_erase = spi_block_erase_20,
12508 }, {
Jacob Creedon045b97e2019-07-22 12:26:56 -070012509 .eraseblocks = { {32 * 1024, 2048} },
12510 .block_erase = spi_block_erase_5c,
12511 }, {
12512 .eraseblocks = { {32 * 1024, 2048} },
12513 .block_erase = spi_block_erase_52,
12514 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070012515 .eraseblocks = { {64 * 1024, 1024} },
Nico Huber7e3c81a2017-10-14 18:56:50 +020012516 .block_erase = spi_block_erase_dc,
Ed Swierk199ab392017-07-03 13:33:44 -070012517 }, {
Nico Huberaac81422017-11-10 22:54:13 +010012518 .eraseblocks = { {64 * 1024, 1024} },
12519 .block_erase = spi_block_erase_d8,
12520 }, {
Ed Swierk199ab392017-07-03 13:33:44 -070012521 .eraseblocks = { {65536 * 1024, 1} },
12522 .block_erase = spi_block_erase_c7,
Jacob Creedon045b97e2019-07-22 12:26:56 -070012523 }, {
12524 .eraseblocks = { {65536 * 1024, 1} },
12525 .block_erase = spi_block_erase_60,
Ed Swierk199ab392017-07-03 13:33:44 -070012526 }
12527 },
12528 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
12529 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
12530 .write = spi_chip_write_256, /* Multi I/O supported */
12531 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12532 .voltage = {2700, 3600},
Sergii Dmytrukd5ba24c2022-07-25 00:28:35 +030012533 .reg_bits =
12534 {
12535 .srp = {STATUS1, 7, RW},
12536 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 6, RW}},
12537 .tb = {STATUS1, 5, RW},
12538 },
Nico Huberaabb3e02023-01-13 00:22:30 +010012539 .wp_write_cfg = spi_wp_write_cfg,
12540 .wp_read_cfg = spi_wp_read_cfg,
12541 .wp_get_ranges = spi_wp_get_available_ranges,
Sergii Dmytrukd5ba24c2022-07-25 00:28:35 +030012542 .decode_range = decode_range_spi25,
Nico Huberab6b18f2023-01-11 23:38:20 +010012543 .prepare_access = spi_prepare_4ba,
Ed Swierk199ab392017-07-03 13:33:44 -070012544 },
12545
12546 {
Jacob Creedon80e8dc42019-07-22 12:35:30 -070012547 .vendor = "Micron",
12548 .name = "MT25QU512", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */
12549 .bustype = BUS_SPI,
12550 .manufacture_id = ST_ID,
12551 .model_id = ST_N25Q512__1G,
12552 .total_size = 65536,
12553 .page_size = 256,
12554 /* supports SFDP */
12555 /* OTP: 64B total; read 0x4B, write 0x42 */
12556 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN,
12557 .tested = TEST_OK_PREW,
12558 .probe = probe_spi_rdid,
12559 .probe_timing = TIMING_ZERO,
12560 .block_erasers =
12561 {
12562 {
12563 .eraseblocks = { {4 * 1024, 16384} },
12564 .block_erase = spi_block_erase_21,
12565 }, {
12566 .eraseblocks = { {4 * 1024, 16384} },
12567 .block_erase = spi_block_erase_20,
12568 }, {
12569 .eraseblocks = { {32 * 1024, 2048} },
12570 .block_erase = spi_block_erase_5c,
12571 }, {
12572 .eraseblocks = { {32 * 1024, 2048} },
12573 .block_erase = spi_block_erase_52,
12574 }, {
12575 .eraseblocks = { {64 * 1024, 1024} },
12576 .block_erase = spi_block_erase_dc,
12577 }, {
12578 .eraseblocks = { {64 * 1024, 1024} },
12579 .block_erase = spi_block_erase_d8,
12580 }, {
12581 .eraseblocks = { {65536 * 1024, 1} },
12582 .block_erase = spi_block_erase_c7,
12583 }, {
12584 .eraseblocks = { {65536 * 1024, 1} },
12585 .block_erase = spi_block_erase_60,
12586 }
12587 },
12588 .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */
12589 .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */
12590 .write = spi_chip_write_256, /* Multi I/O supported */
12591 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
12592 .voltage = {1700, 2000},
Nico Huberab6b18f2023-01-11 23:38:20 +010012593 .prepare_access = spi_prepare_4ba,
Jacob Creedon80e8dc42019-07-22 12:35:30 -070012594 },
12595
12596 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000012597 .vendor = "MoselVitelic",
12598 .name = "V29C51000B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012599 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012600 .manufacture_id = SYNCMOS_MVC_ID,
12601 .model_id = MVC_V29C51000B,
12602 .total_size = 64,
12603 .page_size = 512,
12604 .feature_bits = FEATURE_EITHER_RESET,
12605 .tested = TEST_UNTESTED,
12606 .probe = probe_jedec,
12607 .probe_timing = TIMING_ZERO,
12608 .block_erasers =
12609 {
12610 {
12611 .eraseblocks = { {512, 128} },
12612 .block_erase = erase_sector_jedec,
12613 }, {
12614 .eraseblocks = { {64 * 1024, 1} },
12615 .block_erase = erase_chip_block_jedec,
12616 },
12617 },
12618 .write = write_jedec_1,
12619 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012620 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010012621 .prepare_access = prepare_memory_access,
12622 .finish_access = finish_memory_access,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012623 },
12624
12625 {
12626 .vendor = "MoselVitelic",
12627 .name = "V29C51000T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012628 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012629 .manufacture_id = SYNCMOS_MVC_ID,
12630 .model_id = MVC_V29C51000T,
12631 .total_size = 64,
12632 .page_size = 512,
12633 .feature_bits = FEATURE_EITHER_RESET,
12634 .tested = TEST_UNTESTED,
12635 .probe = probe_jedec,
12636 .probe_timing = TIMING_ZERO,
12637 .block_erasers =
12638 {
12639 {
12640 .eraseblocks = { {512, 128} },
12641 .block_erase = erase_sector_jedec,
12642 }, {
12643 .eraseblocks = { {64 * 1024, 1} },
12644 .block_erase = erase_chip_block_jedec,
12645 },
12646 },
12647 .write = write_jedec_1,
12648 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012649 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010012650 .prepare_access = prepare_memory_access,
12651 .finish_access = finish_memory_access,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012652 },
12653
12654 {
12655 .vendor = "MoselVitelic",
12656 .name = "V29C51400B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012657 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012658 .manufacture_id = SYNCMOS_MVC_ID,
12659 .model_id = MVC_V29C51400B,
12660 .total_size = 512,
12661 .page_size = 1024,
12662 .feature_bits = FEATURE_EITHER_RESET,
12663 .tested = TEST_UNTESTED,
12664 .probe = probe_jedec,
12665 .probe_timing = TIMING_ZERO,
12666 .block_erasers =
12667 {
12668 {
12669 .eraseblocks = { {1024, 512} },
12670 .block_erase = erase_sector_jedec,
12671 }, {
12672 .eraseblocks = { {512 * 1024, 1} },
12673 .block_erase = erase_chip_block_jedec,
12674 },
12675 },
12676 .write = write_jedec_1,
12677 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012678 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010012679 .prepare_access = prepare_memory_access,
12680 .finish_access = finish_memory_access,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012681 },
12682
12683 {
12684 .vendor = "MoselVitelic",
12685 .name = "V29C51400T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012686 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012687 .manufacture_id = SYNCMOS_MVC_ID,
12688 .model_id = MVC_V29C51400T,
12689 .total_size = 512,
12690 .page_size = 1024,
12691 .feature_bits = FEATURE_EITHER_RESET,
12692 .tested = TEST_UNTESTED,
12693 .probe = probe_jedec,
12694 .probe_timing = TIMING_ZERO,
12695 .block_erasers =
12696 {
12697 {
12698 .eraseblocks = { {1024, 512} },
12699 .block_erase = erase_sector_jedec,
12700 }, {
12701 .eraseblocks = { {512 * 1024, 1} },
12702 .block_erase = erase_chip_block_jedec,
12703 },
12704 },
12705 .write = write_jedec_1,
12706 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012707 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010012708 .prepare_access = prepare_memory_access,
12709 .finish_access = finish_memory_access,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012710 },
12711
12712 {
12713 .vendor = "MoselVitelic",
12714 .name = "V29LC51000",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012715 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012716 .manufacture_id = SYNCMOS_MVC_ID,
12717 .model_id = MVC_V29LC51000,
12718 .total_size = 64,
12719 .page_size = 512,
12720 .feature_bits = FEATURE_EITHER_RESET,
12721 .tested = TEST_UNTESTED,
12722 .probe = probe_jedec,
12723 .probe_timing = TIMING_ZERO,
12724 .block_erasers =
12725 {
12726 {
12727 .eraseblocks = { {512, 128} },
12728 .block_erase = erase_sector_jedec,
12729 }, {
12730 .eraseblocks = { {64 * 1024, 1} },
12731 .block_erase = erase_chip_block_jedec,
12732 },
12733 },
12734 .write = write_jedec_1,
12735 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012736 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010012737 .prepare_access = prepare_memory_access,
12738 .finish_access = finish_memory_access,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012739 },
12740
12741 {
12742 .vendor = "MoselVitelic",
12743 .name = "V29LC51001",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012744 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012745 .manufacture_id = SYNCMOS_MVC_ID,
12746 .model_id = MVC_V29LC51001,
12747 .total_size = 128,
12748 .page_size = 512,
12749 .feature_bits = FEATURE_EITHER_RESET,
12750 .tested = TEST_UNTESTED,
12751 .probe = probe_jedec,
12752 .probe_timing = TIMING_ZERO,
12753 .block_erasers =
12754 {
12755 {
12756 .eraseblocks = { {512, 256} },
12757 .block_erase = erase_sector_jedec,
12758 }, {
12759 .eraseblocks = { {128 * 1024, 1} },
12760 .block_erase = erase_chip_block_jedec,
12761 },
12762 },
12763 .write = write_jedec_1,
12764 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012765 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010012766 .prepare_access = prepare_memory_access,
12767 .finish_access = finish_memory_access,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012768 },
12769
12770 {
12771 .vendor = "MoselVitelic",
12772 .name = "V29LC51002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000012773 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012774 .manufacture_id = SYNCMOS_MVC_ID,
12775 .model_id = MVC_V29LC51002,
12776 .total_size = 256,
12777 .page_size = 512,
12778 .feature_bits = FEATURE_EITHER_RESET,
12779 .tested = TEST_UNTESTED,
12780 .probe = probe_jedec,
12781 .probe_timing = TIMING_ZERO,
12782 .block_erasers =
12783 {
12784 {
12785 .eraseblocks = { {512, 512} },
12786 .block_erase = erase_sector_jedec,
12787 }, {
12788 .eraseblocks = { {256 * 1024, 1} },
12789 .block_erase = erase_chip_block_jedec,
12790 },
12791 },
12792 .write = write_jedec_1,
12793 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000012794 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010012795 .prepare_access = prepare_memory_access,
12796 .finish_access = finish_memory_access,
Mattias Mattsson4c066502010-07-29 20:01:13 +000012797 },
12798
12799 {
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012800 .vendor = "Nantronics",
12801 .name = "N25S10",
12802 .bustype = BUS_SPI,
12803 .manufacture_id = NANTRONICS_ID_NOPREFIX,
12804 .model_id = NANTRONICS_N25S10,
12805 .total_size = 128,
12806 .page_size = 256,
12807 .feature_bits = FEATURE_WRSR_WREN,
12808 .tested = TEST_UNTESTED,
12809 .probe = probe_spi_rdid,
12810 .probe_timing = TIMING_ZERO,
12811 .block_erasers =
12812 {
12813 {
12814 .eraseblocks = { {4 * 1024, 32} },
12815 .block_erase = spi_block_erase_20,
12816 }, {
12817 .eraseblocks = { {4 * 1024, 32} },
12818 .block_erase = spi_block_erase_d7,
12819 }, {
12820 .eraseblocks = { {32 * 1024, 4} },
12821 .block_erase = spi_block_erase_52,
12822 }, {
12823 .eraseblocks = { {64 * 1024, 2} },
12824 .block_erase = spi_block_erase_d8,
12825 }, {
12826 .eraseblocks = { {128 * 1024, 1} },
12827 .block_erase = spi_block_erase_60,
12828 }, {
12829 .eraseblocks = { {128 * 1024, 1} },
12830 .block_erase = spi_block_erase_c7,
12831 }
12832 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012833 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012834 .unlock = spi_disable_blockprotect_bp3_srwd,
12835 .write = spi_chip_write_256,
12836 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
12837 .voltage = {2700, 3600},
12838 },
12839
12840 {
12841 .vendor = "Nantronics",
Alan Green1f9cc7d2019-07-01 11:10:45 +100012842 .name = "N25S16",
12843 .bustype = BUS_SPI,
12844 .manufacture_id = NANTRONICS_ID_NOPREFIX,
12845 .model_id = NANTRONICS_N25S16,
12846 .total_size = 2048,
12847 .page_size = 256,
12848 .feature_bits = FEATURE_WRSR_WREN,
12849 .tested = TEST_UNTESTED,
12850 .probe = probe_spi_rdid,
12851 .probe_timing = TIMING_ZERO,
12852 .block_erasers =
12853 {
12854 {
12855 .eraseblocks = { {4 * 1024, 512} },
12856 .block_erase = spi_block_erase_20,
12857 }, {
12858 .eraseblocks = { {64 * 1024, 32} },
12859 .block_erase = spi_block_erase_d8,
12860 }, {
12861 .eraseblocks = { {2048 * 1024, 1} },
12862 .block_erase = spi_block_erase_60,
12863 }, {
12864 .eraseblocks = { {2048 * 1024, 1} },
12865 .block_erase = spi_block_erase_c7,
12866 }
12867 },
12868 .printlock = spi_prettyprint_status_register_bp3_srwd,
12869 .unlock = spi_disable_blockprotect_bp3_srwd,
12870 .write = spi_chip_write_256,
12871 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
12872 .voltage = {2700, 3600},
12873 },
12874
12875 {
12876 .vendor = "Nantronics",
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012877 .name = "N25S20",
12878 .bustype = BUS_SPI,
12879 .manufacture_id = NANTRONICS_ID_NOPREFIX,
12880 .model_id = NANTRONICS_N25S20,
12881 .total_size = 256,
12882 .page_size = 256,
12883 .feature_bits = FEATURE_WRSR_WREN,
12884 .tested = TEST_UNTESTED,
12885 .probe = probe_spi_rdid,
12886 .probe_timing = TIMING_ZERO,
12887 .block_erasers =
12888 {
12889 {
12890 .eraseblocks = { {4 * 1024, 64} },
12891 .block_erase = spi_block_erase_20,
12892 }, {
12893 .eraseblocks = { {4 * 1024, 64} },
12894 .block_erase = spi_block_erase_d7,
12895 }, {
12896 .eraseblocks = { {32 * 1024, 8} },
12897 .block_erase = spi_block_erase_52,
12898 }, {
12899 .eraseblocks = { {64 * 1024, 4} },
12900 .block_erase = spi_block_erase_d8,
12901 }, {
12902 .eraseblocks = { {256 * 1024, 1} },
12903 .block_erase = spi_block_erase_60,
12904 }, {
12905 .eraseblocks = { {256 * 1024, 1} },
12906 .block_erase = spi_block_erase_c7,
12907 }
12908 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012909 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012910 .unlock = spi_disable_blockprotect_bp3_srwd,
12911 .write = spi_chip_write_256,
12912 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
12913 .voltage = {2700, 3600},
12914 },
12915
12916 {
12917 .vendor = "Nantronics",
12918 .name = "N25S40",
12919 .bustype = BUS_SPI,
12920 .manufacture_id = NANTRONICS_ID_NOPREFIX,
12921 .model_id = NANTRONICS_N25S40,
12922 .total_size = 512,
12923 .page_size = 256,
12924 .feature_bits = FEATURE_WRSR_WREN,
12925 .tested = TEST_UNTESTED,
12926 .probe = probe_spi_rdid,
12927 .probe_timing = TIMING_ZERO,
12928 .block_erasers =
12929 {
12930 {
12931 .eraseblocks = { {4 * 1024, 128} },
12932 .block_erase = spi_block_erase_20,
12933 }, {
12934 .eraseblocks = { {4 * 1024, 128} },
12935 .block_erase = spi_block_erase_d7,
12936 }, {
12937 .eraseblocks = { {32 * 1024, 16} },
12938 .block_erase = spi_block_erase_52,
12939 }, {
12940 .eraseblocks = { {64 * 1024, 8} },
12941 .block_erase = spi_block_erase_d8,
12942 }, {
12943 .eraseblocks = { {512 * 1024, 1} },
12944 .block_erase = spi_block_erase_60,
12945 }, {
12946 .eraseblocks = { {512 * 1024, 1} },
12947 .block_erase = spi_block_erase_c7,
12948 }
12949 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012950 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012951 .unlock = spi_disable_blockprotect_bp3_srwd,
12952 .write = spi_chip_write_256,
12953 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
12954 .voltage = {2700, 3600},
12955 },
12956
12957 {
12958 .vendor = "Nantronics",
12959 .name = "N25S80",
12960 .bustype = BUS_SPI,
12961 .manufacture_id = NANTRONICS_ID_NOPREFIX,
12962 .model_id = NANTRONICS_N25S80,
12963 .total_size = 1024,
12964 .page_size = 256,
12965 .feature_bits = FEATURE_WRSR_WREN,
12966 .tested = TEST_UNTESTED,
12967 .probe = probe_spi_rdid,
12968 .probe_timing = TIMING_ZERO,
12969 .block_erasers =
12970 {
12971 {
12972 .eraseblocks = { {4 * 1024, 256} },
12973 .block_erase = spi_block_erase_20,
12974 }, {
12975 .eraseblocks = { {32 * 1024, 32} },
12976 .block_erase = spi_block_erase_52,
12977 }, {
12978 .eraseblocks = { {64 * 1024, 16} },
12979 .block_erase = spi_block_erase_d8,
12980 }, {
12981 .eraseblocks = { {1024 * 1024, 1} },
12982 .block_erase = spi_block_erase_60,
12983 }, {
12984 .eraseblocks = { {1024 * 1024, 1} },
12985 .block_erase = spi_block_erase_c7,
12986 }
12987 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000012988 .printlock = spi_prettyprint_status_register_bp3_srwd,
Stefan Taunerb6b00e92013-06-28 21:28:43 +000012989 .unlock = spi_disable_blockprotect_bp3_srwd,
12990 .write = spi_chip_write_256,
12991 .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */
12992 .voltage = {2700, 3600},
12993 },
12994
12995 {
Stefan Taunerf4451612013-04-19 01:59:15 +000012996 .vendor = "PMC",
12997 .name = "Pm25LD010(C)",
12998 .bustype = BUS_SPI,
12999 .manufacture_id = PMC_ID,
13000 .model_id = PMC_PM25LD010,
13001 .total_size = 128,
13002 .page_size = 256,
13003 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000013004 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +000013005 .probe = probe_spi_rdid,
13006 .probe_timing = TIMING_ZERO,
13007 .block_erasers =
13008 {
13009 {
13010 .eraseblocks = { {4 * 1024, 32} },
13011 .block_erase = spi_block_erase_20,
13012 }, {
13013 .eraseblocks = { {4 * 1024, 32} },
13014 .block_erase = spi_block_erase_d7,
13015 }, {
13016 .eraseblocks = { {32 * 1024, 4} },
13017 .block_erase = spi_block_erase_d8,
13018 }, {
13019 .eraseblocks = { {128 * 1024, 1} },
13020 .block_erase = spi_block_erase_60,
13021 }, {
13022 .eraseblocks = { {128 * 1024, 1} },
13023 .block_erase = spi_block_erase_c7,
13024 }
13025 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000013026 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000013027 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
13028 .write = spi_chip_write_256,
13029 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
13030 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD010 */
13031 },
13032
13033 {
13034 .vendor = "PMC",
13035 .name = "Pm25LD020(C)",
13036 .bustype = BUS_SPI,
13037 .manufacture_id = PMC_ID,
13038 .model_id = PMC_PM25LD020,
13039 .total_size = 256,
13040 .page_size = 256,
13041 .feature_bits = FEATURE_WRSR_WREN,
Angel Ponsf5822a82018-09-30 20:09:58 +020013042 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +000013043 .probe = probe_spi_rdid,
13044 .probe_timing = TIMING_ZERO,
13045 .block_erasers =
13046 {
13047 {
13048 .eraseblocks = { {4 * 1024, 64} },
13049 .block_erase = spi_block_erase_20,
13050 }, {
13051 .eraseblocks = { {4 * 1024, 64} },
13052 .block_erase = spi_block_erase_d7,
13053 }, {
13054 .eraseblocks = { {64 * 1024, 4} },
13055 .block_erase = spi_block_erase_d8,
13056 }, {
13057 .eraseblocks = { {256 * 1024, 1} },
13058 .block_erase = spi_block_erase_60,
13059 }, {
13060 .eraseblocks = { {256 * 1024, 1} },
13061 .block_erase = spi_block_erase_c7,
13062 }
13063 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000013064 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000013065 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
13066 .write = spi_chip_write_256,
13067 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
13068 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD020 */
13069 },
13070
13071 {
13072 .vendor = "PMC",
13073 .name = "Pm25LD040(C)",
13074 .bustype = BUS_SPI,
13075 .manufacture_id = PMC_ID,
13076 .model_id = PMC_PM25LV040,
13077 .total_size = 512,
13078 .page_size = 256,
13079 .feature_bits = FEATURE_WRSR_WREN,
Angel Pons05127bf2018-09-30 20:23:24 +020013080 .tested = TEST_OK_PREW,
Stefan Taunerf4451612013-04-19 01:59:15 +000013081 .probe = probe_spi_rdid,
13082 .probe_timing = TIMING_ZERO,
13083 .block_erasers =
13084 {
13085 {
13086 .eraseblocks = { {4 * 1024, 128} },
13087 .block_erase = spi_block_erase_20,
13088 }, {
13089 .eraseblocks = { {4 * 1024, 128} },
13090 .block_erase = spi_block_erase_d7,
13091 }, {
13092 .eraseblocks = { {64 * 1024, 8} },
13093 .block_erase = spi_block_erase_d8,
13094 }, {
13095 .eraseblocks = { {512 * 1024, 1} },
13096 .block_erase = spi_block_erase_60,
13097 }, {
13098 .eraseblocks = { {512 * 1024, 1} },
13099 .block_erase = spi_block_erase_c7,
13100 }
13101 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000013102 .printlock = spi_prettyprint_status_register_bp2_srwd,
Stefan Taunerf4451612013-04-19 01:59:15 +000013103 .unlock = spi_disable_blockprotect,
13104 .write = spi_chip_write_256,
13105 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
13106 .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD040 */
13107 },
13108
Steven Honeyman81a8fb72015-06-02 22:32:24 +000013109 {
13110 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013111 .name = "Pm25LD256C",
13112 .bustype = BUS_SPI,
13113 .manufacture_id = PMC_ID,
13114 .model_id = PMC_PM25LD256C,
13115 .total_size = 32,
13116 .page_size = 256,
13117 .feature_bits = FEATURE_WRSR_WREN,
13118 .tested = TEST_UNTESTED,
13119 .probe = probe_spi_rdid,
13120 .probe_timing = TIMING_ZERO,
13121 .block_erasers =
13122 {
13123 {
13124 .eraseblocks = { {4 * 1024, 8} },
13125 .block_erase = spi_block_erase_20,
13126 }, {
13127 .eraseblocks = { {4 * 1024, 8} },
13128 .block_erase = spi_block_erase_d7,
13129 }, {
13130 .eraseblocks = { {32 * 1024, 1} },
13131 .block_erase = spi_block_erase_d8,
13132 }, {
13133 .eraseblocks = { {32 * 1024, 1} },
13134 .block_erase = spi_block_erase_60,
13135 }, {
13136 .eraseblocks = { {32 * 1024, 1} },
13137 .block_erase = spi_block_erase_c7,
13138 }
13139 },
13140 .printlock = spi_prettyprint_status_register_bp2_srwd,
13141 .unlock = spi_disable_blockprotect,
13142 .write = spi_chip_write_256,
13143 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
13144 .voltage = {2700, 3600},
13145 },
13146
13147 {
13148 .vendor = "PMC",
13149 .name = "Pm25LD512(C)",
13150 .bustype = BUS_SPI,
13151 .manufacture_id = PMC_ID,
13152 .model_id = PMC_PM25LD512,
13153 .total_size = 64,
13154 .page_size = 256,
13155 .feature_bits = FEATURE_WRSR_WREN,
13156 .tested = TEST_OK_PREW,
13157 .probe = probe_spi_rdid,
13158 .probe_timing = TIMING_ZERO,
13159 .block_erasers =
13160 {
13161 {
13162 .eraseblocks = { {4 * 1024, 16} },
13163 .block_erase = spi_block_erase_20,
13164 }, {
13165 .eraseblocks = { {4 * 1024, 16} },
13166 .block_erase = spi_block_erase_d7,
13167 }, {
13168 .eraseblocks = { {32 * 1024, 2} },
13169 .block_erase = spi_block_erase_d8,
13170 }, {
13171 .eraseblocks = { {64 * 1024, 1} },
13172 .block_erase = spi_block_erase_60,
13173 }, {
13174 .eraseblocks = { {64 * 1024, 1} },
13175 .block_erase = spi_block_erase_c7,
13176 }
13177 },
13178 .printlock = spi_prettyprint_status_register_bp2_srwd,
13179 .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */
13180 .write = spi_chip_write_256,
13181 .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */
13182 .voltage = {2300, 3600},
13183 },
13184
13185 {
13186 .vendor = "PMC",
13187 .name = "Pm25LQ016",
13188 .bustype = BUS_SPI,
13189 .manufacture_id = PMC_ID,
13190 .model_id = PMC_PM25LQ016,
13191 .total_size = 2048,
13192 .page_size = 256,
13193 /* OTP: 256B total; read 0x4B, write 0xB1 */
13194 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
13195 .tested = TEST_UNTESTED,
13196 .probe = probe_spi_rdid,
13197 .probe_timing = TIMING_ZERO,
13198 .block_erasers =
13199 {
13200 {
13201 .eraseblocks = { {4 * 1024, 512} },
13202 .block_erase = spi_block_erase_20,
13203 }, {
13204 .eraseblocks = { {4 * 1024, 512} },
13205 .block_erase = spi_block_erase_d7,
13206 }, {
13207 .eraseblocks = { {64 * 1024, 32} },
13208 .block_erase = spi_block_erase_d8,
13209 }, {
13210 .eraseblocks = { {2048 * 1024, 1} },
13211 .block_erase = spi_block_erase_60,
13212 }, {
13213 .eraseblocks = { {2048 * 1024, 1} },
13214 .block_erase = spi_block_erase_c7,
13215 }
13216 },
13217 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
13218 .unlock = spi_disable_blockprotect_bp3_srwd,
13219 .write = spi_chip_write_256,
13220 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
13221 .voltage = {2300, 3600},
13222 },
13223
13224 {
13225 .vendor = "PMC",
Steven Honeyman81a8fb72015-06-02 22:32:24 +000013226 .name = "Pm25LQ020",
13227 .bustype = BUS_SPI,
13228 .manufacture_id = PMC_ID,
13229 .model_id = PMC_PM25LQ020,
13230 .total_size = 256,
13231 .page_size = 256,
13232 /* OTP: 256B total; read 0x4B, write 0xB1 */
13233 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
13234 .tested = TEST_UNTESTED,
13235 .probe = probe_spi_rdid,
13236 .probe_timing = TIMING_ZERO,
13237 .block_erasers =
13238 {
13239 {
13240 .eraseblocks = { {4 * 1024, 64} },
13241 .block_erase = spi_block_erase_20,
13242 }, {
13243 .eraseblocks = { {4 * 1024, 64} },
13244 .block_erase = spi_block_erase_d7,
13245 }, {
13246 .eraseblocks = { {64 * 1024, 4} },
13247 .block_erase = spi_block_erase_d8,
13248 }, {
13249 .eraseblocks = { {256 * 1024, 1} },
13250 .block_erase = spi_block_erase_60,
13251 }, {
13252 .eraseblocks = { {256 * 1024, 1} },
13253 .block_erase = spi_block_erase_c7,
13254 }
13255 },
13256 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
13257 .unlock = spi_disable_blockprotect_bp3_srwd,
13258 .write = spi_chip_write_256,
13259 .read = spi_chip_read,
13260 .voltage = {2300, 3600},
13261 },
13262
13263 {
13264 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013265 .name = "Pm25LQ032C",
13266 .bustype = BUS_SPI,
13267 .manufacture_id = PMC_ID,
13268 .model_id = PMC_PM25LQ032C,
13269 .total_size = 4096,
13270 .page_size = 256,
13271 /* OTP: 64B total; read 0x4B, write 0xB1 */
13272 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
13273 .tested = TEST_OK_PREW,
13274 .probe = probe_spi_rdid,
13275 .probe_timing = TIMING_ZERO,
13276 .block_erasers =
13277 {
13278 {
13279 .eraseblocks = { {4 * 1024, 1024} },
13280 .block_erase = spi_block_erase_20,
13281 }, {
13282 .eraseblocks = { {4 * 1024, 1024} },
13283 .block_erase = spi_block_erase_d7,
13284 }, {
13285 .eraseblocks = { {64 * 1024, 64} },
13286 .block_erase = spi_block_erase_d8,
13287 }, {
13288 .eraseblocks = { {4096 * 1024, 1} },
13289 .block_erase = spi_block_erase_60,
13290 }, {
13291 .eraseblocks = { {4096 * 1024, 1} },
13292 .block_erase = spi_block_erase_c7,
13293 }
13294 },
13295 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
13296 .unlock = spi_disable_blockprotect_bp3_srwd,
13297 .write = spi_chip_write_256,
13298 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
13299 .voltage = {2700, 3600},
13300 },
13301
13302 {
13303 .vendor = "PMC",
Steven Honeyman81a8fb72015-06-02 22:32:24 +000013304 .name = "Pm25LQ040",
13305 .bustype = BUS_SPI,
13306 .manufacture_id = PMC_ID,
13307 .model_id = PMC_PM25LQ040,
13308 .total_size = 512,
13309 .page_size = 256,
13310 /* OTP: 256B total; read 0x4B, write 0xB1 */
13311 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
13312 .tested = TEST_UNTESTED,
13313 .probe = probe_spi_rdid,
13314 .probe_timing = TIMING_ZERO,
13315 .block_erasers =
13316 {
13317 {
13318 .eraseblocks = { {4 * 1024, 128} },
13319 .block_erase = spi_block_erase_20,
13320 }, {
13321 .eraseblocks = { {4 * 1024, 128} },
13322 .block_erase = spi_block_erase_d7,
13323 }, {
13324 .eraseblocks = { {64 * 1024, 8} },
13325 .block_erase = spi_block_erase_d8,
13326 }, {
13327 .eraseblocks = { {512 * 1024, 1} },
13328 .block_erase = spi_block_erase_60,
13329 }, {
13330 .eraseblocks = { {512 * 1024, 1} },
13331 .block_erase = spi_block_erase_c7,
13332 }
13333 },
13334 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
13335 .unlock = spi_disable_blockprotect_bp3_srwd,
13336 .write = spi_chip_write_256,
13337 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
13338 .voltage = {2300, 3600},
13339 },
13340
13341 {
13342 .vendor = "PMC",
13343 .name = "Pm25LQ080",
13344 .bustype = BUS_SPI,
13345 .manufacture_id = PMC_ID,
13346 .model_id = PMC_PM25LQ080,
13347 .total_size = 1024,
13348 .page_size = 256,
13349 /* OTP: 64B total; read 0x4B, write 0xB1 */
13350 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
13351 .tested = TEST_UNTESTED,
13352 .probe = probe_spi_rdid,
13353 .probe_timing = TIMING_ZERO,
13354 .block_erasers =
13355 {
13356 {
13357 .eraseblocks = { {4 * 1024, 256} },
13358 .block_erase = spi_block_erase_20,
13359 }, {
13360 .eraseblocks = { {4 * 1024, 256} },
13361 .block_erase = spi_block_erase_d7,
13362 }, {
13363 .eraseblocks = { {64 * 1024, 16} },
13364 .block_erase = spi_block_erase_d8,
13365 }, {
13366 .eraseblocks = { {1024 * 1024, 1} },
13367 .block_erase = spi_block_erase_60,
13368 }, {
13369 .eraseblocks = { {1024 * 1024, 1} },
13370 .block_erase = spi_block_erase_c7,
13371 }
13372 },
13373 .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */
13374 .unlock = spi_disable_blockprotect_bp3_srwd,
13375 .write = spi_chip_write_256,
13376 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
13377 .voltage = {2300, 3600},
13378 },
13379
13380 {
13381 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013382 .name = "Pm25LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013383 .bustype = BUS_SPI,
Stefan Taunerbecda742014-05-30 19:34:00 +000013384 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013385 .model_id = PMC_PM25LV010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013386 .total_size = 128,
13387 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000013388 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerbecda742014-05-30 19:34:00 +000013389 .tested = TEST_OK_PREW,
13390 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000013391 .probe_timing = TIMING_ZERO,
13392 .block_erasers =
13393 {
13394 {
13395 .eraseblocks = { {4 * 1024, 32} },
13396 .block_erase = spi_block_erase_d7,
13397 }, {
13398 .eraseblocks = { {32 * 1024, 4} },
13399 .block_erase = spi_block_erase_d8,
13400 }, {
13401 .eraseblocks = { {128 * 1024, 1} },
13402 .block_erase = spi_block_erase_c7,
13403 }
13404 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000013405 .printlock = spi_prettyprint_status_register_bp1_srwd,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000013406 .unlock = spi_disable_blockprotect,
13407 .write = spi_chip_write_256,
13408 .read = spi_chip_read, /* Fast read (0x0B) supported */
13409 .voltage = {2700, 3600},
13410 },
13411
13412 {
13413 .vendor = "PMC",
13414 .name = "Pm25LV010A",
13415 .bustype = BUS_SPI,
13416 .manufacture_id = PMC_ID,
13417 .model_id = PMC_PM25LV010,
13418 .total_size = 128,
13419 .page_size = 256,
13420 .feature_bits = FEATURE_WRSR_WREN,
13421 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013422 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013423 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000013424 .block_erasers =
13425 {
13426 {
13427 .eraseblocks = { {4 * 1024, 32} },
13428 .block_erase = spi_block_erase_d7,
13429 }, {
13430 .eraseblocks = { {32 * 1024, 4} },
13431 .block_erase = spi_block_erase_d8,
13432 }, {
13433 .eraseblocks = { {128 * 1024, 1} },
13434 .block_erase = spi_block_erase_c7,
13435 }
13436 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000013437 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013438 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000013439 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000013440 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +000013441 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013442 },
13443
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013444 {
13445 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013446 .name = "Pm25LV016B",
13447 .bustype = BUS_SPI,
13448 .manufacture_id = PMC_ID,
13449 .model_id = PMC_PM25LV016B,
13450 .total_size = 2048,
13451 .page_size = 256,
13452 .feature_bits = FEATURE_WRSR_WREN,
13453 .tested = TEST_UNTESTED,
13454 .probe = probe_spi_rdid,
13455 .probe_timing = TIMING_ZERO,
13456 .block_erasers =
13457 {
13458 {
13459 .eraseblocks = { {4 * 1024, 512} },
13460 .block_erase = spi_block_erase_d7,
13461 }, {
13462 .eraseblocks = { {4 * 1024, 512} },
13463 .block_erase = spi_block_erase_20,
13464 }, {
13465 .eraseblocks = { {64 * 1024, 32} },
13466 .block_erase = spi_block_erase_d8,
13467 }, {
13468 .eraseblocks = { {2 * 1024 * 1024, 1} },
13469 .block_erase = spi_block_erase_60,
13470 }, {
13471 .eraseblocks = { {2 * 1024 * 1024, 1} },
13472 .block_erase = spi_block_erase_c7,
13473 }
13474 },
13475 .printlock = spi_prettyprint_status_register_bp2_srwd,
13476 .unlock = spi_disable_blockprotect,
13477 .write = spi_chip_write_256,
13478 .read = spi_chip_read, /* Fast read (0x0B) supported */
13479 .voltage = {2700, 3600},
13480 },
13481
13482 {
13483 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013484 .name = "Pm25LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013485 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013486 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013487 .model_id = PMC_PM25LV020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013488 .total_size = 256,
13489 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000013490 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013491 .tested = TEST_UNTESTED,
13492 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013493 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000013494 .block_erasers =
13495 {
13496 {
13497 .eraseblocks = { {4 * 1024, 64} },
13498 .block_erase = spi_block_erase_d7,
13499 }, {
13500 .eraseblocks = { {64 * 1024, 4} },
13501 .block_erase = spi_block_erase_d8,
13502 }, {
13503 .eraseblocks = { {256 * 1024, 1} },
13504 .block_erase = spi_block_erase_c7,
13505 }
13506 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000013507 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013508 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000013509 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013510 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013511 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013512 },
13513
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013514 {
13515 .vendor = "PMC",
13516 .name = "Pm25LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013517 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013518 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013519 .model_id = PMC_PM25LV040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013520 .total_size = 512,
13521 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000013522 .feature_bits = FEATURE_WRSR_WREN,
Stefan Tauner716e0982011-07-25 20:38:52 +000013523 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013524 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013525 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000013526 .block_erasers =
13527 {
13528 {
13529 .eraseblocks = { {4 * 1024, 128} },
13530 .block_erase = spi_block_erase_d7,
13531 }, {
13532 .eraseblocks = { {64 * 1024, 8} },
13533 .block_erase = spi_block_erase_d8,
13534 }, {
13535 .eraseblocks = { {512 * 1024, 1} },
13536 .block_erase = spi_block_erase_c7,
13537 }
13538 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000013539 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013540 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000013541 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000013542 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013543 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013544 },
13545
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013546 {
13547 .vendor = "PMC",
13548 .name = "Pm25LV080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013549 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013550 .manufacture_id = PMC_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013551 .model_id = PMC_PM25LV080B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013552 .total_size = 1024,
13553 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000013554 .feature_bits = FEATURE_WRSR_WREN,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013555 .tested = TEST_UNTESTED,
13556 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013557 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000013558 .block_erasers =
13559 {
13560 {
13561 .eraseblocks = { {4 * 1024, 256} },
13562 .block_erase = spi_block_erase_d7,
13563 }, {
13564 .eraseblocks = { {4 * 1024, 256} },
13565 .block_erase = spi_block_erase_20,
13566 }, {
13567 .eraseblocks = { {64 * 1024, 16} },
13568 .block_erase = spi_block_erase_d8,
13569 }, {
13570 .eraseblocks = { {1024 * 1024, 1} },
13571 .block_erase = spi_block_erase_60,
13572 }, {
13573 .eraseblocks = { {1024 * 1024, 1} },
13574 .block_erase = spi_block_erase_c7,
13575 }
13576 },
Stefan Tauner12f3d512014-05-27 21:27:27 +000013577 .printlock = spi_prettyprint_status_register_bp2_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013578 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000013579 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000013580 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013581 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013582 },
13583
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013584 {
13585 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013586 .name = "Pm25LV512(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013587 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013588 .manufacture_id = PMC_ID_NOPREFIX,
13589 .model_id = PMC_PM25LV512,
13590 .total_size = 64,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013591 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000013592 .feature_bits = FEATURE_WRSR_WREN,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013593 .tested = TEST_OK_PREW,
13594 .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000013595 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000013596 .block_erasers =
13597 {
13598 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013599 .eraseblocks = { {4 * 1024, 16} },
Sean Nelson5643c072010-01-19 03:23:07 +000013600 .block_erase = spi_block_erase_d7,
13601 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013602 .eraseblocks = { {32 * 1024, 2} },
Sean Nelson5643c072010-01-19 03:23:07 +000013603 .block_erase = spi_block_erase_d8,
13604 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100013605 .eraseblocks = { {64 * 1024, 1} },
Sean Nelson5643c072010-01-19 03:23:07 +000013606 .block_erase = spi_block_erase_c7,
13607 }
13608 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100013609 .printlock = spi_prettyprint_status_register_bp1_srwd,
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000013610 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000013611 .write = spi_chip_write_256,
Stefan Tauner3f5e35d2013-04-19 01:58:33 +000013612 .read = spi_chip_read, /* Fast read (0x0B) supported */
Steven Zakulec7d257b42011-07-19 08:50:18 +000013613 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000013614 },
13615
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013616 {
13617 .vendor = "PMC",
Sean Nelson72a9a022009-12-22 22:15:33 +000013618 .name = "Pm29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013619 .bustype = BUS_PARALLEL,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000013620 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013621 .model_id = PMC_PM29F002B,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000013622 .total_size = 256,
Sean Nelson72a9a022009-12-22 22:15:33 +000013623 .page_size = 8 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000013624 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000013625 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000013626 .probe = probe_jedec,
Stefan Tauner1aa80b02013-07-25 22:58:51 +000013627 .probe_timing = TIMING_FIXME,
Sean Nelson72a9a022009-12-22 22:15:33 +000013628 .block_erasers =
13629 {
13630 {
13631 .eraseblocks = {
13632 {16 * 1024, 1},
13633 {8 * 1024, 2},
13634 {96 * 1024, 1},
13635 {128 * 1024, 1},
13636 },
Sean Nelson35727f72010-01-28 23:55:12 +000013637 .block_erase = erase_sector_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000013638 }, {
13639 .eraseblocks = { {256 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000013640 .block_erase = erase_chip_block_jedec,
Sean Nelson72a9a022009-12-22 22:15:33 +000013641 },
13642 },
Sean Nelson35727f72010-01-28 23:55:12 +000013643 .write = write_jedec_1,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000013644 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013645 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010013646 .prepare_access = prepare_memory_access,
13647 .finish_access = finish_memory_access,
Uwe Hermannf983d9f2009-06-14 21:53:26 +000013648 },
13649
13650 {
13651 .vendor = "PMC",
Alan Green1f9cc7d2019-07-01 11:10:45 +100013652 .name = "Pm29F002T",
13653 .bustype = BUS_PARALLEL,
13654 .manufacture_id = PMC_ID_NOPREFIX,
13655 .model_id = PMC_PM29F002T,
13656 .total_size = 256,
13657 .page_size = 8 * 1024,
13658 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
13659 .tested = TEST_OK_PREW,
13660 .probe = probe_jedec,
13661 .probe_timing = TIMING_FIXME,
13662 .block_erasers =
13663 {
13664 {
13665 .eraseblocks = {
13666 {128 * 1024, 1},
13667 {96 * 1024, 1},
13668 {8 * 1024, 2},
13669 {16 * 1024, 1},
13670 },
13671 .block_erase = erase_sector_jedec,
13672 }, {
13673 .eraseblocks = { {256 * 1024, 1} },
13674 .block_erase = erase_chip_block_jedec,
13675 },
13676 },
13677 .write = write_jedec_1,
13678 .read = read_memmapped,
13679 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010013680 .prepare_access = prepare_memory_access,
13681 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +100013682 },
13683
13684 {
13685 .vendor = "PMC",
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000013686 .name = "Pm39LV010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013687 .bustype = BUS_PARALLEL,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000013688 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013689 .model_id = PMC_PM39F010, /* Pm39LV010 and Pm39F010 have identical IDs but different voltage */
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000013690 .total_size = 128,
13691 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000013692 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000013693 .tested = TEST_OK_PREW,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000013694 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013695 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson5643c072010-01-19 03:23:07 +000013696 .block_erasers =
13697 {
13698 {
13699 .eraseblocks = { {4 * 1024, 32} },
13700 .block_erase = erase_sector_jedec,
13701 }, {
13702 .eraseblocks = { {64 * 1024, 2} },
13703 .block_erase = erase_block_jedec,
13704 }, {
13705 .eraseblocks = { {128 * 1024, 1} },
13706 .block_erase = erase_chip_block_jedec,
13707 }
13708 },
Sean Nelson35727f72010-01-28 23:55:12 +000013709 .write = write_jedec_1,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000013710 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013711 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010013712 .prepare_access = prepare_memory_access,
13713 .finish_access = finish_memory_access,
Rudolf Marek50fdf3b2009-05-17 17:02:07 +000013714 },
13715
13716 {
13717 .vendor = "PMC",
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013718 .name = "Pm39LV020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013719 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013720 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013721 .model_id = PMC_PM39LV020,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013722 .total_size = 256,
13723 .page_size = 4096,
13724 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
13725 .tested = TEST_UNTESTED,
13726 .probe = probe_jedec,
13727 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Alan Greenfa3fcd32019-06-27 15:41:50 +100013728 .block_erasers =
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013729 {
13730 {
13731 .eraseblocks = { {4 * 1024, 64} },
13732 .block_erase = erase_sector_jedec,
13733 }, {
13734 .eraseblocks = { {64 * 1024, 4} },
13735 .block_erase = erase_block_jedec,
13736 }, {
13737 .eraseblocks = { {256 * 1024, 1} },
13738 .block_erase = erase_chip_block_jedec,
13739 }
13740 },
13741 .write = write_jedec_1,
13742 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013743 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010013744 .prepare_access = prepare_memory_access,
13745 .finish_access = finish_memory_access,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013746 },
13747
13748 {
13749 .vendor = "PMC",
13750 .name = "Pm39LV040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013751 .bustype = BUS_PARALLEL,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013752 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013753 .model_id = PMC_PM39LV040,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013754 .total_size = 512,
13755 .page_size = 4096,
13756 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000013757 .tested = TEST_OK_PR,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013758 .probe = probe_jedec,
13759 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Alan Greenfa3fcd32019-06-27 15:41:50 +100013760 .block_erasers =
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013761 {
13762 {
13763 .eraseblocks = { {4 * 1024, 128} },
13764 .block_erase = erase_sector_jedec,
13765 }, {
13766 .eraseblocks = { {64 * 1024, 8} },
13767 .block_erase = erase_block_jedec,
13768 }, {
13769 .eraseblocks = { {512 * 1024, 1} },
13770 .block_erase = erase_chip_block_jedec,
13771 }
13772 },
13773 .write = write_jedec_1,
13774 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013775 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010013776 .prepare_access = prepare_memory_access,
13777 .finish_access = finish_memory_access,
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013778 },
Kyösti Mälkkiedab1d22012-05-20 23:32:33 +000013779
13780 {
13781 .vendor = "PMC",
13782 .name = "Pm39LV512",
13783 .bustype = BUS_PARALLEL,
13784 .manufacture_id = PMC_ID_NOPREFIX,
13785 .model_id = PMC_PM39LV512,
13786 .total_size = 64,
13787 .page_size = 4096,
13788 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
13789 .tested = TEST_OK_PREW,
13790 .probe = probe_jedec,
13791 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
13792 .block_erasers =
13793 {
13794 {
13795 .eraseblocks = { {4 * 1024, 16} },
13796 .block_erase = erase_sector_jedec,
13797 }, {
13798 .eraseblocks = { {64 * 1024, 1} },
13799 .block_erase = erase_block_jedec,
13800 }, {
13801 .eraseblocks = { {64 * 1024, 1} },
13802 .block_erase = erase_chip_block_jedec,
13803 }
13804 },
13805 .write = write_jedec_1,
13806 .read = read_memmapped,
13807 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010013808 .prepare_access = prepare_memory_access,
13809 .finish_access = finish_memory_access,
Kyösti Mälkkiedab1d22012-05-20 23:32:33 +000013810 },
13811
Anders Juel Jensendfdc56f2010-03-27 23:25:14 +000013812 {
13813 .vendor = "PMC",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013814 .name = "Pm49FL002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013815 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013816 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013817 .model_id = PMC_PM49FL002,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013818 .total_size = 256,
13819 .page_size = 16 * 1024,
Nico Huberb1974022023-01-12 13:13:12 +010013820 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013821 .tested = TEST_OK_PR,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000013822 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000013823 .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */
Sean Nelson5643c072010-01-19 03:23:07 +000013824 .block_erasers =
13825 {
13826 {
13827 .eraseblocks = { {4 * 1024, 64} },
13828 .block_erase = erase_sector_jedec,
13829 }, {
13830 .eraseblocks = { {16 * 1024, 16} },
13831 .block_erase = erase_block_jedec,
13832 }, {
13833 .eraseblocks = { {256 * 1024, 1} },
13834 .block_erase = erase_chip_block_jedec,
13835 }
13836 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013837 .unlock = unlock_regspace2_uniform_32k,
Sean Nelson36172342010-02-27 18:01:15 +000013838 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013839 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013840 .voltage = {3000, 3600},
Nico Huberb1974022023-01-12 13:13:12 +010013841 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010013842 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000013843 },
13844
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013845 {
13846 .vendor = "PMC",
13847 .name = "Pm49FL004",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013848 .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013849 .manufacture_id = PMC_ID_NOPREFIX,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000013850 .model_id = PMC_PM49FL004,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013851 .total_size = 512,
13852 .page_size = 64 * 1024,
Nico Huberb1974022023-01-12 13:13:12 +010013853 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner74dc73f2015-03-01 22:04:38 +000013854 .tested = TEST_OK_PREW,
Carl-Daniel Hailfingere9404662010-01-09 02:24:17 +000013855 .probe = probe_jedec,
Stefan Tauner74dc73f2015-03-01 22:04:38 +000013856 .probe_timing = TIMING_ZERO,
Sean Nelson5643c072010-01-19 03:23:07 +000013857 .block_erasers =
13858 {
13859 {
13860 .eraseblocks = { {4 * 1024, 128} },
13861 .block_erase = erase_sector_jedec,
13862 }, {
13863 .eraseblocks = { {64 * 1024, 8} },
13864 .block_erase = erase_block_jedec,
13865 }, {
13866 .eraseblocks = { {512 * 1024, 1} },
13867 .block_erase = erase_chip_block_jedec,
13868 }
13869 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000013870 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson36172342010-02-27 18:01:15 +000013871 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000013872 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000013873 .voltage = {3000, 3600},
Nico Huberb1974022023-01-12 13:13:12 +010013874 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010013875 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000013876 },
13877
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013878 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000013879 .vendor = "SST",
Idwer Volleringf3607d12014-05-07 15:25:04 +000013880 .name = "SST25LF020A",
13881 .bustype = BUS_SPI,
13882 .manufacture_id = SST_ID,
13883 .model_id = SST_SST25VF020_REMS,
13884 .total_size = 256,
13885 .page_size = 256,
13886 .feature_bits = FEATURE_WRSR_EWSR,
13887 .tested = TEST_OK_PREW,
13888 .probe = probe_spi_rems,
13889 .probe_timing = TIMING_ZERO,
13890 .block_erasers =
13891 {
13892 {
13893 .eraseblocks = { {4 * 1024, 64} },
13894 .block_erase = spi_block_erase_20,
13895 }, {
13896 .eraseblocks = { {32 * 1024, 8} },
13897 .block_erase = spi_block_erase_52,
13898 }, {
13899 .eraseblocks = { {256 * 1024, 1} },
13900 .block_erase = spi_block_erase_60,
13901 },
13902 },
13903 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
13904 .unlock = spi_disable_blockprotect,
13905 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13906 .read = spi_chip_read, /* Fast read (0x0B) supported */
13907 .voltage = {2700, 3600},
13908 },
13909
13910 {
13911 .vendor = "SST",
Zeus Castro33670ba2011-08-17 09:50:11 +000013912 .name = "SST25LF040A",
13913 .bustype = BUS_SPI,
13914 .manufacture_id = SST_ID,
13915 .model_id = SST_SST25VF040_REMS,
13916 .total_size = 512,
13917 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000013918 .feature_bits = FEATURE_WRSR_EWSR,
Uwe Hermann4335ec82011-09-07 20:20:25 +000013919 .tested = TEST_OK_PREW,
Zeus Castro33670ba2011-08-17 09:50:11 +000013920 .probe = probe_spi_res2,
13921 .probe_timing = TIMING_ZERO,
13922 .block_erasers =
13923 {
13924 {
13925 .eraseblocks = { {4 * 1024, 128} },
13926 .block_erase = spi_block_erase_20,
13927 }, {
13928 .eraseblocks = { {32 * 1024, 16} },
13929 .block_erase = spi_block_erase_52,
13930 }, {
13931 .eraseblocks = { {512 * 1024, 1} },
13932 .block_erase = spi_block_erase_60,
13933 },
13934 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013935 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +000013936 .unlock = spi_disable_blockprotect,
13937 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13938 .read = spi_chip_read,
13939 .voltage = {3000, 3600},
13940 },
13941
13942 {
13943 .vendor = "SST",
Stefan Taunere34e3e82013-01-01 00:06:51 +000013944 .name = "SST25LF080(A)",
Zeus Castro33670ba2011-08-17 09:50:11 +000013945 .bustype = BUS_SPI,
13946 .manufacture_id = SST_ID,
13947 .model_id = SST_SST25VF080_REMS,
13948 .total_size = 1024,
13949 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000013950 .feature_bits = FEATURE_WRSR_EITHER,
Zeus Castro33670ba2011-08-17 09:50:11 +000013951 .tested = TEST_UNTESTED,
13952 .probe = probe_spi_res2,
13953 .probe_timing = TIMING_ZERO,
13954 .block_erasers =
13955 {
13956 {
13957 .eraseblocks = { {4 * 1024, 256} },
13958 .block_erase = spi_block_erase_20,
13959 }, {
13960 .eraseblocks = { {32 * 1024, 32} },
13961 .block_erase = spi_block_erase_52,
13962 }, {
13963 .eraseblocks = { {1024 * 1024, 1} },
13964 .block_erase = spi_block_erase_60,
13965 },
13966 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000013967 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Zeus Castro33670ba2011-08-17 09:50:11 +000013968 .unlock = spi_disable_blockprotect,
13969 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
13970 .read = spi_chip_read,
13971 .voltage = {3000, 3600},
13972 },
13973
13974 {
13975 .vendor = "SST",
Stefan Tauner6697f712014-08-06 15:09:15 +000013976 .name = "SST25VF010(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000013977 .bustype = BUS_SPI,
Mark Marshall90021f22010-12-03 14:48:11 +000013978 .manufacture_id = SST_ID,
13979 .model_id = SST_SST25VF010_REMS,
13980 .total_size = 128,
13981 .page_size = 256,
Steven Zakulec3603a282012-05-02 20:07:57 +000013982 .feature_bits = FEATURE_WRSR_EWSR,
Mark Marshall90021f22010-12-03 14:48:11 +000013983 .tested = TEST_OK_PREW,
13984 .probe = probe_spi_rems,
13985 .probe_timing = TIMING_ZERO,
13986 .block_erasers =
13987 {
13988 {
13989 .eraseblocks = { {4 * 1024, 32} },
13990 .block_erase = spi_block_erase_20,
13991 }, {
13992 .eraseblocks = { {32 * 1024, 4} },
13993 .block_erase = spi_block_erase_52,
13994 }, {
Cory Henderson370f5822013-10-19 23:09:16 +000013995 .eraseblocks = { {32 * 1024, 4} },
Stefan Tauner6697f712014-08-06 15:09:15 +000013996 .block_erase = spi_block_erase_d8, /* Supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000013997 }, {
Mark Marshall90021f22010-12-03 14:48:11 +000013998 .eraseblocks = { {128 * 1024, 1} },
13999 .block_erase = spi_block_erase_60,
Cory Henderson370f5822013-10-19 23:09:16 +000014000 }, {
14001 .eraseblocks = { {128 * 1024, 1} },
Stefan Tauner6697f712014-08-06 15:09:15 +000014002 .block_erase = spi_block_erase_c7, /* Supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000014003 },
14004 },
14005 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
14006 .unlock = spi_disable_blockprotect,
14007 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
Stefan Tauner6697f712014-08-06 15:09:15 +000014008 .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF010A only */
Cory Henderson370f5822013-10-19 23:09:16 +000014009 .voltage = {2700, 3600},
14010 },
14011
14012 {
14013 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100014014 .name = "SST25VF016B",
14015 .bustype = BUS_SPI,
14016 .manufacture_id = SST_ID,
14017 .model_id = SST_SST25VF016B,
14018 .total_size = 2048,
14019 .page_size = 256,
14020 .feature_bits = FEATURE_WRSR_EITHER,
14021 .tested = TEST_OK_PREW,
14022 .probe = probe_spi_rdid,
14023 .probe_timing = TIMING_ZERO,
14024 .block_erasers =
14025 {
14026 {
14027 .eraseblocks = { {4 * 1024, 512} },
14028 .block_erase = spi_block_erase_20,
14029 }, {
14030 .eraseblocks = { {32 * 1024, 64} },
14031 .block_erase = spi_block_erase_52,
14032 }, {
14033 .eraseblocks = { {64 * 1024, 32} },
14034 .block_erase = spi_block_erase_d8,
14035 }, {
14036 .eraseblocks = { {2 * 1024 * 1024, 1} },
14037 .block_erase = spi_block_erase_60,
14038 }, {
14039 .eraseblocks = { {2 * 1024 * 1024, 1} },
14040 .block_erase = spi_block_erase_c7,
14041 },
14042 },
14043 .printlock = spi_prettyprint_status_register_sst25vf016,
14044 .unlock = spi_disable_blockprotect,
14045 .write = spi_aai_write,
14046 .read = spi_chip_read,
14047 .voltage = {2700, 3600},
14048 },
14049
14050 {
14051 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +000014052 .name = "SST25VF020",
14053 .bustype = BUS_SPI,
14054 .manufacture_id = SST_ID,
14055 .model_id = SST_SST25VF020_REMS,
14056 .total_size = 256,
14057 .page_size = 256,
14058 .feature_bits = FEATURE_WRSR_EWSR,
14059 .tested = TEST_UNTESTED,
14060 .probe = probe_spi_rems,
14061 .probe_timing = TIMING_ZERO,
14062 .block_erasers =
14063 {
14064 {
14065 .eraseblocks = { {4 * 1024, 64} },
14066 .block_erase = spi_block_erase_20,
14067 }, {
14068 .eraseblocks = { {32 * 1024, 8} },
14069 .block_erase = spi_block_erase_52,
14070 }, {
14071 .eraseblocks = { {256 * 1024, 1} },
14072 .block_erase = spi_block_erase_60,
14073 },
14074 },
14075 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
14076 .unlock = spi_disable_blockprotect,
14077 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
14078 .read = spi_chip_read, /* only */
14079 .voltage = {2700, 3600},
14080 },
14081
14082 {
14083 .vendor = "SST",
14084 .name = "SST25VF020B",
14085 .bustype = BUS_SPI,
14086 .manufacture_id = SST_ID,
14087 .model_id = SST_SST25VF020B,
14088 .total_size = 256,
14089 .page_size = 256,
14090 .feature_bits = FEATURE_WRSR_EWSR,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000014091 .tested = TEST_OK_PREW,
Cory Henderson370f5822013-10-19 23:09:16 +000014092 .probe = probe_spi_rdid,
14093 .probe_timing = TIMING_ZERO,
14094 .block_erasers =
14095 {
14096 {
14097 .eraseblocks = { {4 * 1024, 64} },
14098 .block_erase = spi_block_erase_20,
14099 }, {
14100 .eraseblocks = { {32 * 1024, 8} },
14101 .block_erase = spi_block_erase_52,
14102 }, {
14103 .eraseblocks = { {64 * 1024, 4} },
14104 .block_erase = spi_block_erase_d8,
14105 }, {
14106 .eraseblocks = { {256 * 1024, 1} },
14107 .block_erase = spi_block_erase_60,
14108 }, {
14109 .eraseblocks = { {256 * 1024, 1} },
14110 .block_erase = spi_block_erase_c7,
14111 },
14112 },
14113 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 and 2nd SR */
14114 .unlock = spi_disable_blockprotect, /* FIXME: 2nd SR */
14115 .write = spi_aai_write, /* AAI supported (0xAD) */
14116 .read = spi_chip_read, /* Fast read (0x0B) supported */
14117 .voltage = {2700, 3600},
14118 },
14119
14120 {
14121 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100014122 .name = "SST25VF032B",
14123 .bustype = BUS_SPI,
14124 .manufacture_id = SST_ID,
14125 .model_id = SST_SST25VF032B,
14126 .total_size = 4096,
14127 .page_size = 256,
14128 .feature_bits = FEATURE_WRSR_EWSR,
14129 .tested = TEST_OK_PREW,
14130 .probe = probe_spi_rdid,
14131 .probe_timing = TIMING_ZERO,
14132 .block_erasers =
14133 {
14134 {
14135 .eraseblocks = { {4 * 1024, 1024} },
14136 .block_erase = spi_block_erase_20,
14137 }, {
14138 .eraseblocks = { {32 * 1024, 128} },
14139 .block_erase = spi_block_erase_52,
14140 }, {
14141 .eraseblocks = { {64 * 1024, 64} },
14142 .block_erase = spi_block_erase_d8,
14143 }, {
14144 .eraseblocks = { {4 * 1024 * 1024, 1} },
14145 .block_erase = spi_block_erase_60,
14146 }, {
14147 .eraseblocks = { {4 * 1024 * 1024, 1} },
14148 .block_erase = spi_block_erase_c7,
14149 },
14150 },
14151 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
14152 .unlock = spi_disable_blockprotect,
14153 .write = spi_aai_write,
14154 .read = spi_chip_read,
14155 .voltage = {2700, 3600},
14156 },
14157
14158 {
14159 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +000014160 .name = "SST25VF040",
14161 .bustype = BUS_SPI,
14162 .manufacture_id = SST_ID,
14163 .model_id = SST_SST25VF040_REMS,
14164 .total_size = 512,
14165 .page_size = 256,
14166 .feature_bits = FEATURE_WRSR_EWSR,
14167 .tested = TEST_OK_PR,
14168 .probe = probe_spi_rems,
14169 .probe_timing = TIMING_ZERO,
14170 .block_erasers =
14171 {
14172 {
14173 .eraseblocks = { {4 * 1024, 128} },
14174 .block_erase = spi_block_erase_20,
14175 }, {
14176 .eraseblocks = { {32 * 1024, 16} },
14177 .block_erase = spi_block_erase_52,
14178 }, {
14179 .eraseblocks = { {512 * 1024, 1} },
14180 .block_erase = spi_block_erase_60,
Mark Marshall90021f22010-12-03 14:48:11 +000014181 },
14182 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000014183 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
Mark Marshall90021f22010-12-03 14:48:11 +000014184 .unlock = spi_disable_blockprotect,
Cory Henderson370f5822013-10-19 23:09:16 +000014185 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
14186 .read = spi_chip_read,
14187 .voltage = {2700, 3600},
14188 },
14189
14190 {
14191 .vendor = "SST",
14192 .name = "SST25VF040B",
14193 .bustype = BUS_SPI,
14194 .manufacture_id = SST_ID,
14195 .model_id = SST_SST25VF040B,
14196 .total_size = 512,
14197 .page_size = 256,
14198 .feature_bits = FEATURE_WRSR_EWSR,
14199 .tested = TEST_OK_PREW,
14200 .probe = probe_spi_rdid,
14201 .probe_timing = TIMING_ZERO,
14202 .block_erasers =
14203 {
14204 {
14205 .eraseblocks = { {4 * 1024, 128} },
14206 .block_erase = spi_block_erase_20,
14207 }, {
14208 .eraseblocks = { {32 * 1024, 16} },
14209 .block_erase = spi_block_erase_52,
14210 }, {
14211 .eraseblocks = { {64 * 1024, 8} },
14212 .block_erase = spi_block_erase_d8,
14213 }, {
14214 .eraseblocks = { {512 * 1024, 1} },
14215 .block_erase = spi_block_erase_60,
14216 }, {
14217 .eraseblocks = { {512 * 1024, 1} },
14218 .block_erase = spi_block_erase_c7,
14219 },
14220 },
14221 .printlock = spi_prettyprint_status_register_sst25vf040b,
14222 .unlock = spi_disable_blockprotect,
14223 .write = spi_aai_write, /* AAI supported (0xAD) */
14224 .read = spi_chip_read, /* Fast read (0x0B) supported */
14225 .voltage = {2700, 3600},
14226 },
14227
14228 {
14229 .vendor = "SST",
14230 .name = "SST25VF040B.REMS",
14231 .bustype = BUS_SPI,
14232 .manufacture_id = SST_ID,
14233 .model_id = SST_SST25VF040B_REMS,
14234 .total_size = 512,
14235 .page_size = 256,
14236 .feature_bits = FEATURE_WRSR_EWSR,
14237 .tested = TEST_OK_PREW,
14238 .probe = probe_spi_rems,
14239 .probe_timing = TIMING_ZERO,
14240 .block_erasers =
14241 {
14242 {
14243 .eraseblocks = { {4 * 1024, 128} },
14244 .block_erase = spi_block_erase_20,
14245 }, {
14246 .eraseblocks = { {32 * 1024, 16} },
14247 .block_erase = spi_block_erase_52,
14248 }, {
14249 .eraseblocks = { {64 * 1024, 8} },
14250 .block_erase = spi_block_erase_d8,
14251 }, {
14252 .eraseblocks = { {512 * 1024, 1} },
14253 .block_erase = spi_block_erase_60,
14254 }, {
14255 .eraseblocks = { {512 * 1024, 1} },
14256 .block_erase = spi_block_erase_c7,
14257 },
14258 },
14259 .printlock = spi_prettyprint_status_register_sst25vf040b,
14260 .unlock = spi_disable_blockprotect,
14261 .write = spi_aai_write,
14262 .read = spi_chip_read,
14263 .voltage = {2700, 3600},
14264 },
14265
14266 {
14267 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100014268 .name = "SST25VF064C",
Ben Gardnerbcf61092015-11-22 02:23:31 +000014269 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +100014270 .manufacture_id = SST_ID,
14271 .model_id = SST_SST25VF064C,
14272 .total_size = 8192,
Ben Gardnerbcf61092015-11-22 02:23:31 +000014273 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100014274 .feature_bits = FEATURE_WRSR_EWSR,
Ben Gardnerbcf61092015-11-22 02:23:31 +000014275 .tested = TEST_OK_PREW,
14276 .probe = probe_spi_rdid,
14277 .probe_timing = TIMING_ZERO,
14278 .block_erasers =
14279 {
14280 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014281 .eraseblocks = { {4 * 1024, 2048} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000014282 .block_erase = spi_block_erase_20,
14283 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014284 .eraseblocks = { {32 * 1024, 256} },
14285 .block_erase = spi_block_erase_52,
14286 }, {
14287 .eraseblocks = { {64 * 1024, 128} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000014288 .block_erase = spi_block_erase_d8,
14289 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014290 .eraseblocks = { {8 * 1024 * 1024, 1} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000014291 .block_erase = spi_block_erase_60,
14292 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014293 .eraseblocks = { {8 * 1024 * 1024, 1} },
Ben Gardnerbcf61092015-11-22 02:23:31 +000014294 .block_erase = spi_block_erase_c7,
14295 },
14296 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100014297 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
14298 .unlock = spi_disable_blockprotect,
Ben Gardnerbcf61092015-11-22 02:23:31 +000014299 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100014300 .read = spi_chip_read,
14301 .voltage = {2700, 3600},
Ben Gardnerbcf61092015-11-22 02:23:31 +000014302 },
14303
14304 {
14305 .vendor = "SST",
Cory Henderson370f5822013-10-19 23:09:16 +000014306 .name = "SST25VF080B",
14307 .bustype = BUS_SPI,
14308 .manufacture_id = SST_ID,
14309 .model_id = SST_SST25VF080B,
14310 .total_size = 1024,
14311 .page_size = 256,
14312 .feature_bits = FEATURE_WRSR_EWSR,
14313 .tested = TEST_OK_PREW,
14314 .probe = probe_spi_rdid,
14315 .probe_timing = TIMING_ZERO,
14316 .block_erasers =
14317 {
14318 {
14319 .eraseblocks = { {4 * 1024, 256} },
14320 .block_erase = spi_block_erase_20,
14321 }, {
14322 .eraseblocks = { {32 * 1024, 32} },
14323 .block_erase = spi_block_erase_52,
14324 }, {
14325 .eraseblocks = { {64 * 1024, 16} },
14326 .block_erase = spi_block_erase_d8,
14327 }, {
14328 .eraseblocks = { {1024 * 1024, 1} },
14329 .block_erase = spi_block_erase_60,
14330 }, {
14331 .eraseblocks = { {1024 * 1024, 1} },
14332 .block_erase = spi_block_erase_c7,
14333 },
14334 },
14335 .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */
14336 .unlock = spi_disable_blockprotect,
14337 .write = spi_aai_write,
Mark Marshall90021f22010-12-03 14:48:11 +000014338 .read = spi_chip_read,
Steven Zakulec7d257b42011-07-19 08:50:18 +000014339 .voltage = {2700, 3600},
Mark Marshall90021f22010-12-03 14:48:11 +000014340 },
14341
14342 {
14343 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100014344 .name = "SST25VF512(A)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014345 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014346 .manufacture_id = SST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100014347 .model_id = SST_SST25VF512_REMS,
14348 .total_size = 64,
14349 .page_size = 256,
14350 .feature_bits = FEATURE_WRSR_EWSR,
14351 .tested = TEST_OK_PREW,
14352 .probe = probe_spi_rems,
14353 .probe_timing = TIMING_ZERO,
14354 .block_erasers =
14355 {
14356 {
14357 .eraseblocks = { {4 * 1024, 16} },
14358 .block_erase = spi_block_erase_20,
14359 }, {
14360 .eraseblocks = { {32 * 1024, 2} },
14361 .block_erase = spi_block_erase_52,
14362 }, {
14363 .eraseblocks = { {32 * 1024, 2} },
14364 .block_erase = spi_block_erase_d8, /* Supported by SST25VF512A only */
14365 }, {
14366 .eraseblocks = { {64 * 1024, 1} },
14367 .block_erase = spi_block_erase_60,
14368 }, {
14369 .eraseblocks = { {64 * 1024, 1} },
14370 .block_erase = spi_block_erase_c7, /* Supported by SST25VF512A only */
14371 },
14372 },
14373 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */
14374 .unlock = spi_disable_blockprotect,
14375 .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */
14376 .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF512A only */
14377 .voltage = {2700, 3600},
14378 },
14379
14380 {
14381 .vendor = "SST",
14382 .name = "SST25WF010",
14383 .bustype = BUS_SPI,
14384 .manufacture_id = SST_ID,
14385 .model_id = SST_SST25WF010,
14386 .total_size = 128,
14387 .page_size = 256,
14388 .feature_bits = FEATURE_WRSR_EITHER,
14389 .tested = TEST_UNTESTED,
14390 .probe = probe_spi_rdid,
14391 .probe_timing = TIMING_ZERO,
14392 .block_erasers =
14393 {
14394 {
14395 .eraseblocks = { {4 * 1024, 32} },
14396 .block_erase = spi_block_erase_20,
14397 }, {
14398 .eraseblocks = { {32 * 1024, 4} },
14399 .block_erase = spi_block_erase_52,
14400 }, {
14401 .eraseblocks = { {1024 * 128, 1} },
14402 .block_erase = spi_block_erase_60,
14403 }, {
14404 .eraseblocks = { {1024 * 128, 1} },
14405 .block_erase = spi_block_erase_c7,
14406 },
14407 },
14408 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
14409 .unlock = spi_disable_blockprotect_bp2_srwd,
14410 .write = spi_aai_write,
14411 .read = spi_chip_read, /* Fast read (0x0B) supported */
14412 .voltage = {1650, 1950},
14413 },
14414
14415 {
14416 .vendor = "SST",
14417 .name = "SST25WF020",
14418 .bustype = BUS_SPI,
14419 .manufacture_id = SST_ID,
14420 .model_id = SST_SST25WF020,
14421 .total_size = 256,
14422 .page_size = 256,
14423 .feature_bits = FEATURE_WRSR_EITHER,
14424 .tested = TEST_UNTESTED,
14425 .probe = probe_spi_rdid,
14426 .probe_timing = TIMING_ZERO,
14427 .block_erasers =
14428 {
14429 {
14430 .eraseblocks = { {4 * 1024, 64} },
14431 .block_erase = spi_block_erase_20,
14432 }, {
14433 .eraseblocks = { {32 * 1024, 8} },
14434 .block_erase = spi_block_erase_52,
14435 }, {
14436 .eraseblocks = { {64 * 1024, 4} },
14437 .block_erase = spi_block_erase_d8,
14438 }, {
14439 .eraseblocks = { {1024 * 256, 1} },
14440 .block_erase = spi_block_erase_60,
14441 }, {
14442 .eraseblocks = { {1024 * 256, 1} },
14443 .block_erase = spi_block_erase_c7,
14444 },
14445 },
14446 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
14447 .unlock = spi_disable_blockprotect_bp2_srwd,
14448 .write = spi_aai_write,
14449 .read = spi_chip_read, /* Fast read (0x0B) supported */
14450 .voltage = {1650, 1950},
14451 },
14452
14453 {
14454 .vendor = "SST",
14455 .name = "SST25WF020A",
14456 .bustype = BUS_SPI,
14457 .manufacture_id = SANYO_ID, /* See flashchips.h */
14458 .model_id = SST_SST25WF020A,
14459 .total_size = 256,
14460 .page_size = 256,
14461 .feature_bits = FEATURE_WRSR_WREN,
14462 .tested = TEST_UNTESTED,
14463 .probe = probe_spi_rdid,
14464 .probe_timing = TIMING_ZERO,
14465 .block_erasers =
14466 {
14467 {
14468 .eraseblocks = { {4 * 1024, 64} },
14469 .block_erase = spi_block_erase_20,
14470 }, {
14471 .eraseblocks = { {64 * 1024, 4} },
14472 .block_erase = spi_block_erase_d8,
14473 }, {
14474 .eraseblocks = { {256 * 1024, 1} },
14475 .block_erase = spi_block_erase_60,
14476 }, {
14477 .eraseblocks = { {256 * 1024, 1} },
14478 .block_erase = spi_block_erase_c7,
14479 },
14480 },
14481 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
14482 .unlock = spi_disable_blockprotect_bp2_srwd,
14483 .write = spi_chip_write_256,
14484 .read = spi_chip_read, /* Fast read (0x0B) supported */
14485 .voltage = {1650, 1950},
14486 },
14487
14488 {
14489 .vendor = "SST",
14490 .name = "SST25WF040",
14491 .bustype = BUS_SPI,
14492 .manufacture_id = SST_ID,
14493 .model_id = SST_SST25WF040,
14494 .total_size = 512,
14495 .page_size = 256,
14496 .feature_bits = FEATURE_WRSR_EITHER,
14497 .tested = TEST_UNTESTED,
14498 .probe = probe_spi_rdid,
14499 .probe_timing = TIMING_ZERO,
14500 .block_erasers =
14501 {
14502 {
14503 .eraseblocks = { {4 * 1024, 128} },
14504 .block_erase = spi_block_erase_20,
14505 }, {
14506 .eraseblocks = { {32 * 1024, 16} },
14507 .block_erase = spi_block_erase_52,
14508 }, {
14509 .eraseblocks = { {64 * 1024, 8} },
14510 .block_erase = spi_block_erase_d8,
14511 }, {
14512 .eraseblocks = { {1024 * 512, 1} },
14513 .block_erase = spi_block_erase_60,
14514 }, {
14515 .eraseblocks = { {1024 * 512, 1} },
14516 .block_erase = spi_block_erase_c7,
14517 },
14518 },
14519 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
14520 .unlock = spi_disable_blockprotect_bp2_srwd,
14521 .write = spi_aai_write,
14522 .read = spi_chip_read, /* Fast read (0x0B) supported */
14523 .voltage = {1650, 1950},
14524 },
14525
14526 {
14527 .vendor = "SST",
14528 .name = "SST25WF040B",
14529 .bustype = BUS_SPI,
14530 .manufacture_id = SANYO_ID, /* See flashchips.h */
14531 .model_id = SST_SST25WF040B,
14532 .total_size = 512,
14533 .page_size = 256,
14534 .feature_bits = FEATURE_WRSR_WREN,
14535 .tested = TEST_UNTESTED,
14536 .probe = probe_spi_rdid,
14537 .probe_timing = TIMING_ZERO,
14538 .block_erasers =
14539 {
14540 {
14541 .eraseblocks = { {4 * 1024, 128} },
14542 .block_erase = spi_block_erase_20,
14543 }, {
14544 .eraseblocks = { {64 * 1024, 8} },
14545 .block_erase = spi_block_erase_d8,
14546 }, {
14547 .eraseblocks = { {512 * 1024, 1} },
14548 .block_erase = spi_block_erase_60,
14549 }, {
14550 .eraseblocks = { {512 * 1024, 1} },
14551 .block_erase = spi_block_erase_c7,
14552 },
14553 },
14554 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
14555 .unlock = spi_disable_blockprotect_bp2_srwd,
14556 .write = spi_chip_write_256,
14557 .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */
14558 .voltage = {1650, 1950},
14559 },
14560
14561 {
14562 .vendor = "SST",
14563 .name = "SST25WF080",
14564 .bustype = BUS_SPI,
14565 .manufacture_id = SST_ID,
14566 .model_id = SST_SST25WF080,
14567 .total_size = 1024,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014568 .page_size = 256,
Stefan Taunere34e3e82013-01-01 00:06:51 +000014569 .feature_bits = FEATURE_WRSR_EITHER,
Mark Marshall90021f22010-12-03 14:48:11 +000014570 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014571 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000014572 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014573 .block_erasers =
14574 {
14575 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014576 .eraseblocks = { {4 * 1024, 256} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014577 .block_erase = spi_block_erase_20,
14578 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014579 .eraseblocks = { {32 * 1024, 32} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014580 .block_erase = spi_block_erase_52,
14581 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014582 .eraseblocks = { {64 * 1024, 16} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014583 .block_erase = spi_block_erase_d8,
14584 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014585 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014586 .block_erase = spi_block_erase_60,
14587 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014588 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014589 .block_erase = spi_block_erase_c7,
14590 },
14591 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100014592 .printlock = spi_prettyprint_status_register_sst25, /* *does* have a BP3 but it is useless */
14593 .unlock = spi_disable_blockprotect_bp3_srwd,
Joshua Roys87955bf2011-08-01 18:39:28 +000014594 .write = spi_aai_write,
Alan Green1f9cc7d2019-07-01 11:10:45 +100014595 .read = spi_chip_read, /* Fast read (0x0B) supported */
14596 .voltage = {1650, 1950},
FENG yu ningff692fb2008-12-08 18:15:10 +000014597 },
14598
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014599 {
14600 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100014601 .name = "SST25WF080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014602 .bustype = BUS_SPI,
Alan Green1f9cc7d2019-07-01 11:10:45 +100014603 .manufacture_id = SANYO_ID, /* See flashchips.h */
14604 .model_id = SST_SST25WF080B,
14605 .total_size = 1024,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014606 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100014607 .feature_bits = FEATURE_WRSR_WREN,
Stefan Taunerfcf6a8c2011-05-18 01:32:00 +000014608 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014609 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000014610 .probe_timing = TIMING_ZERO,
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014611 .block_erasers =
14612 {
14613 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014614 .eraseblocks = { {4 * 1024, 256} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014615 .block_erase = spi_block_erase_20,
14616 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014617 .eraseblocks = { {64 * 1024, 16} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014618 .block_erase = spi_block_erase_d8,
14619 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014620 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014621 .block_erase = spi_block_erase_60,
14622 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100014623 .eraseblocks = { {1024 * 1024, 1} },
Carl-Daniel Hailfingerbbfeb702009-12-23 12:16:47 +000014624 .block_erase = spi_block_erase_c7,
14625 },
14626 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100014627 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
14628 .unlock = spi_disable_blockprotect_bp2_srwd,
Helge Wagner1db7a442010-10-05 22:29:08 +000014629 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100014630 .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */
14631 .voltage = {1650, 1950},
14632 },
14633
14634 {
14635 .vendor = "SST",
14636 .name = "SST25WF512",
14637 .bustype = BUS_SPI,
14638 .manufacture_id = SST_ID,
14639 .model_id = SST_SST25WF512,
14640 .total_size = 64,
14641 .page_size = 256,
14642 .feature_bits = FEATURE_WRSR_EITHER,
14643 .tested = TEST_UNTESTED,
14644 .probe = probe_spi_rdid,
14645 .probe_timing = TIMING_ZERO,
14646 .block_erasers =
14647 {
14648 {
14649 .eraseblocks = { {4 * 1024, 16} },
14650 .block_erase = spi_block_erase_20,
14651 }, {
14652 .eraseblocks = { {32 * 1024, 2} },
14653 .block_erase = spi_block_erase_52,
14654 }, {
14655 .eraseblocks = { {1024 * 64, 1} },
14656 .block_erase = spi_block_erase_60,
14657 }, {
14658 .eraseblocks = { {1024 * 64, 1} },
14659 .block_erase = spi_block_erase_c7,
14660 },
14661 },
14662 .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */
14663 .unlock = spi_disable_blockprotect_bp2_srwd,
14664 .write = spi_aai_write,
14665 .read = spi_chip_read, /* Fast read (0x0B) supported */
14666 .voltage = {1650, 1950},
Ed Swierk86f4e6d2010-07-21 15:02:22 +000014667 },
14668
14669 {
14670 .vendor = "SST",
Nico Hubera2eaf4a2023-02-15 22:56:53 +010014671 .name = "SST26VF016",
14672 .bustype = BUS_SPI,
14673 .manufacture_id = SST_ID,
14674 .model_id = SST_SST26VF016,
14675 .total_size = 2048,
14676 .page_size = 256,
14677 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
14678 .tested = TEST_UNTESTED,
14679 .probe = probe_spi_rdid,
14680 .probe_timing = TIMING_ZERO,
14681 .block_erasers =
14682 {
14683 {
14684 .eraseblocks = { {4 * 1024, 512} },
14685 .block_erase = spi_block_erase_20,
14686 }, {
14687 .eraseblocks = {
14688 {8 * 1024, 4},
14689 {32 * 1024, 1},
14690 {64 * 1024, 30},
14691 {32 * 1024, 1},
14692 {8 * 1024, 4},
14693 },
14694 .block_erase = spi_block_erase_d8,
14695 }, {
14696 .eraseblocks = { {2 * 1024 * 1024, 1} },
14697 .block_erase = spi_block_erase_c7,
14698 },
14699 },
14700 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14701 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
14702 .write = spi_chip_write_256, /* Multi I/O supported */
14703 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
14704 .voltage = {2700, 3600},
14705 },
14706
14707 {
14708 .vendor = "SST",
Wei Hu25584de2018-04-30 14:02:08 -070014709 .name = "SST26VF016B(A)",
14710 .bustype = BUS_SPI,
14711 .manufacture_id = SST_ID,
14712 .model_id = SST_SST26VF016B,
14713 .total_size = 2048,
14714 .page_size = 256,
14715 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
14716 .tested = TEST_OK_PREW,
14717 .probe = probe_spi_rdid,
14718 .probe_timing = TIMING_ZERO,
14719 .block_erasers =
14720 {
14721 {
14722 .eraseblocks = { {4 * 1024, 512} },
14723 .block_erase = spi_block_erase_20,
14724 }, {
14725 .eraseblocks = {
14726 {8 * 1024, 4},
14727 {32 * 1024, 1},
14728 {64 * 1024, 30},
14729 {32 * 1024, 1},
14730 {8 * 1024, 4},
14731 },
14732 .block_erase = spi_block_erase_d8,
14733 }, {
14734 .eraseblocks = { {2 * 1024 * 1024, 1} },
14735 .block_erase = spi_block_erase_c7,
14736 },
14737 },
14738 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14739 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
14740 .write = spi_chip_write_256, /* Multi I/O supported */
14741 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
14742 .voltage = {2700, 3600},
14743 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100014744
Wei Hu25584de2018-04-30 14:02:08 -070014745 {
14746 .vendor = "SST",
Nico Hubera2eaf4a2023-02-15 22:56:53 +010014747 .name = "SST26VF032",
14748 .bustype = BUS_SPI,
14749 .manufacture_id = SST_ID,
14750 .model_id = SST_SST26VF032,
14751 .total_size = 4096,
14752 .page_size = 256,
14753 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
14754 .tested = TEST_UNTESTED,
14755 .probe = probe_spi_rdid,
14756 .probe_timing = TIMING_ZERO,
14757 .block_erasers =
14758 {
14759 {
14760 .eraseblocks = { {4 * 1024, 1024} },
14761 .block_erase = spi_block_erase_20,
14762 }, {
14763 .eraseblocks = {
14764 {8 * 1024, 4},
14765 {32 * 1024, 1},
14766 {64 * 1024, 62},
14767 {32 * 1024, 1},
14768 {8 * 1024, 4},
14769 },
14770 .block_erase = spi_block_erase_d8,
14771 }, {
14772 .eraseblocks = { {4 * 1024 * 1024, 1} },
14773 .block_erase = spi_block_erase_c7,
14774 },
14775 },
14776 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14777 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
14778 .write = spi_chip_write_256, /* Multi I/O supported */
14779 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
14780 .voltage = {2700, 3600},
14781 },
14782
14783 {
14784 .vendor = "SST",
Wei Hu25584de2018-04-30 14:02:08 -070014785 .name = "SST26VF032B(A)",
14786 .bustype = BUS_SPI,
14787 .manufacture_id = SST_ID,
14788 .model_id = SST_SST26VF032B,
14789 .total_size = 4096,
14790 .page_size = 256,
14791 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
14792 .tested = TEST_UNTESTED,
14793 .probe = probe_spi_rdid,
14794 .probe_timing = TIMING_ZERO,
14795 .block_erasers =
14796 {
14797 {
14798 .eraseblocks = { {4 * 1024, 1024} },
14799 .block_erase = spi_block_erase_20,
14800 }, {
14801 .eraseblocks = {
14802 {8 * 1024, 4},
14803 {32 * 1024, 1},
14804 {64 * 1024, 62},
14805 {32 * 1024, 1},
14806 {8 * 1024, 4},
14807 },
14808 .block_erase = spi_block_erase_d8,
14809 }, {
14810 .eraseblocks = { {4 * 1024 * 1024, 1} },
14811 .block_erase = spi_block_erase_c7,
14812 },
14813 },
14814 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14815 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
14816 .write = spi_chip_write_256, /* Multi I/O supported */
14817 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
14818 .voltage = {2700, 3600},
14819 },
14820
Wei Hu25584de2018-04-30 14:02:08 -070014821 {
14822 .vendor = "SST",
14823 .name = "SST26VF064B(A)",
14824 .bustype = BUS_SPI,
14825 .manufacture_id = SST_ID,
14826 .model_id = SST_SST26VF064B,
14827 .total_size = 8192,
14828 .page_size = 256,
14829 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
14830 .tested = TEST_OK_PREW,
14831 .probe = probe_spi_rdid,
14832 .probe_timing = TIMING_ZERO,
14833 .block_erasers =
14834 {
14835 {
14836 .eraseblocks = { {4 * 1024, 2048} },
14837 .block_erase = spi_block_erase_20,
14838 }, {
14839 .eraseblocks = {
14840 {8 * 1024, 4},
14841 {32 * 1024, 1},
14842 {64 * 1024, 126},
14843 {32 * 1024, 1},
14844 {8 * 1024, 4},
14845 },
14846 .block_erase = spi_block_erase_d8,
14847 }, {
14848 .eraseblocks = { {8 * 1024 * 1024, 1} },
14849 .block_erase = spi_block_erase_c7,
14850 },
14851 },
14852 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
14853 .unlock = spi_disable_blockprotect_sst26_global_unprotect,
14854 .write = spi_chip_write_256, /* Multi I/O supported */
14855 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
14856 .voltage = {2700, 3600},
14857 },
14858
14859 {
14860 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014861 .name = "SST28SF040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014862 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014863 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014864 .model_id = SST_SST28SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014865 .total_size = 512,
14866 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000014867 .feature_bits = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014868 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000014869 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000014870 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000014871 .block_erasers =
14872 {
14873 {
14874 .eraseblocks = { {128, 4096} },
14875 .block_erase = erase_sector_28sf040,
14876 }, {
14877 .eraseblocks = { {512 * 1024, 1} },
14878 .block_erase = erase_chip_28sf040,
14879 }
14880 },
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000014881 .unlock = unprotect_28sf040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014882 .write = write_28sf040,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014883 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014884 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010014885 .prepare_access = prepare_memory_access,
14886 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000014887 },
14888
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014889 {
14890 .vendor = "SST",
14891 .name = "SST29EE010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014892 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014893 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014894 .model_id = SST_SST29EE010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014895 .total_size = 128,
14896 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000014897 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000014898 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014899 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000014900 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014901 .block_erasers =
14902 {
14903 {
14904 .eraseblocks = { {128 * 1024, 1} },
14905 .block_erase = erase_chip_block_jedec,
14906 }
14907 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014908 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014909 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014910 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010014911 .prepare_access = prepare_memory_access,
14912 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000014913 },
14914
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014915 {
14916 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014917 .name = "SST29EE020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014918 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014919 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014920 .model_id = SST_SST29EE020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014921 .total_size = 256,
14922 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000014923 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000014924 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014925 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000014926 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014927 .block_erasers =
14928 {
14929 {
14930 .eraseblocks = { {256 * 1024, 1} },
14931 .block_erase = erase_chip_block_jedec,
14932 }
14933 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014934 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014935 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014936 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010014937 .prepare_access = prepare_memory_access,
14938 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000014939 },
14940
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014941 {
14942 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100014943 .name = "SST29LE010",
14944 .bustype = BUS_PARALLEL,
14945 .manufacture_id = SST_ID,
14946 .model_id = SST_SST29LE010,
14947 .total_size = 128,
14948 .page_size = 128,
14949 .feature_bits = FEATURE_LONG_RESET,
14950 .tested = TEST_UNTESTED,
14951 .probe = probe_jedec,
14952 .probe_timing = 10,
14953 .block_erasers =
14954 {
14955 {
14956 .eraseblocks = { {128 * 1024, 1} },
14957 .block_erase = erase_chip_block_jedec,
14958 }
14959 },
14960 .write = write_jedec,
14961 .read = read_memmapped,
14962 .voltage = {3000, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010014963 .prepare_access = prepare_memory_access,
14964 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +100014965 },
14966
14967 {
14968 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014969 .name = "SST29LE020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014970 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014971 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014972 .model_id = SST_SST29LE020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014973 .total_size = 256,
14974 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000014975 .feature_bits = FEATURE_LONG_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000014976 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014977 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000014978 .probe_timing = 10,
Sean Nelson51c83fb2010-01-20 20:55:53 +000014979 .block_erasers =
14980 {
14981 {
14982 .eraseblocks = { {256 * 1024, 1} },
14983 .block_erase = erase_chip_block_jedec,
14984 }
14985 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014986 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000014987 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000014988 .voltage = {3000, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010014989 .prepare_access = prepare_memory_access,
14990 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000014991 },
14992
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014993 {
14994 .vendor = "SST",
14995 .name = "SST39SF010A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000014996 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014997 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000014998 .model_id = SST_SST39SF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000014999 .total_size = 128,
15000 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000015001 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000015002 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015003 .probe = probe_jedec,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000015004 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000015005 .block_erasers =
15006 {
15007 {
15008 .eraseblocks = { {4 * 1024, 32} },
15009 .block_erase = erase_sector_jedec,
15010 }, {
15011 .eraseblocks = { {128 * 1024, 1} },
15012 .block_erase = erase_chip_block_jedec,
15013 }
15014 },
Sean Nelson35727f72010-01-28 23:55:12 +000015015 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015016 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015017 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010015018 .prepare_access = prepare_memory_access,
15019 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015020 },
15021
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015022 {
15023 .vendor = "SST",
15024 .name = "SST39SF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015025 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015026 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000015027 .model_id = SST_SST39SF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015028 .total_size = 256,
15029 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000015030 .feature_bits = FEATURE_EITHER_RESET,
Uwe Hermann19f46f22011-06-18 22:56:14 +000015031 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015032 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000015033 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000015034 .block_erasers =
15035 {
15036 {
15037 .eraseblocks = { {4 * 1024, 64} },
15038 .block_erase = erase_sector_jedec,
15039 }, {
15040 .eraseblocks = { {256 * 1024, 1} },
15041 .block_erase = erase_chip_block_jedec,
15042 }
15043 },
Sean Nelson35727f72010-01-28 23:55:12 +000015044 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015045 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015046 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010015047 .prepare_access = prepare_memory_access,
15048 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015049 },
15050
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015051 {
15052 .vendor = "SST",
15053 .name = "SST39SF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015054 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015055 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000015056 .model_id = SST_SST39SF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015057 .total_size = 512,
15058 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000015059 .feature_bits = FEATURE_EITHER_RESET,
Sylvain "ythier" Hitier3093f8f2011-09-03 11:22:27 +000015060 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015061 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000015062 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000015063 .block_erasers =
15064 {
15065 {
15066 .eraseblocks = { {4 * 1024, 128} },
15067 .block_erase = erase_sector_jedec,
15068 }, {
15069 .eraseblocks = { {512 * 1024, 1} },
15070 .block_erase = erase_chip_block_jedec,
15071 }
15072 },
Sean Nelson35727f72010-01-28 23:55:12 +000015073 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015074 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015075 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010015076 .prepare_access = prepare_memory_access,
15077 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015078 },
15079
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015080 {
15081 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100015082 .name = "SST39SF512",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015083 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015084 .manufacture_id = SST_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100015085 .model_id = SST_SST39SF512,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015086 .total_size = 64,
15087 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000015088 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd7d423b2012-10-20 09:13:16 +000015089 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015090 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000015091 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000015092 .block_erasers =
15093 {
15094 {
15095 .eraseblocks = { {4 * 1024, 16} },
15096 .block_erase = erase_sector_jedec,
15097 }, {
15098 .eraseblocks = { {64 * 1024, 1} },
15099 .block_erase = erase_chip_block_jedec,
15100 }
15101 },
Sean Nelson35727f72010-01-28 23:55:12 +000015102 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015103 .read = read_memmapped,
Alan Green1f9cc7d2019-07-01 11:10:45 +100015104 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010015105 .prepare_access = prepare_memory_access,
15106 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015107 },
15108
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015109 {
15110 .vendor = "SST",
15111 .name = "SST39VF010",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015112 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015113 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000015114 .model_id = SST_SST39VF010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015115 .total_size = 128,
15116 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000015117 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerd94d25d2012-07-28 03:17:15 +000015118 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015119 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000015120 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000015121 .block_erasers =
15122 {
15123 {
15124 .eraseblocks = { {4 * 1024, 32} },
15125 .block_erase = erase_sector_jedec,
15126 }, {
15127 .eraseblocks = { {128 * 1024, 1} },
15128 .block_erase = erase_chip_block_jedec,
15129 }
15130 },
Sean Nelson35727f72010-01-28 23:55:12 +000015131 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015132 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015133 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010015134 .prepare_access = prepare_memory_access,
15135 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015136 },
15137
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015138 {
15139 .vendor = "SST",
15140 .name = "SST39VF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015141 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015142 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000015143 .model_id = SST_SST39VF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015144 .total_size = 256,
15145 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000015146 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner5c316f92015-02-08 21:57:52 +000015147 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015148 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000015149 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000015150 .block_erasers =
15151 {
15152 {
15153 .eraseblocks = { {4 * 1024, 64} },
15154 .block_erase = erase_sector_jedec,
15155 }, {
15156 .eraseblocks = { {256 * 1024, 1} },
15157 .block_erase = erase_chip_block_jedec,
15158 }
15159 },
Sean Nelson35727f72010-01-28 23:55:12 +000015160 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015161 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015162 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010015163 .prepare_access = prepare_memory_access,
15164 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015165 },
15166
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015167 {
15168 .vendor = "SST",
15169 .name = "SST39VF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015170 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015171 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000015172 .model_id = SST_SST39VF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015173 .total_size = 512,
15174 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000015175 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner23e10b82016-01-23 16:16:49 +000015176 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015177 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000015178 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000015179 .block_erasers =
15180 {
15181 {
15182 .eraseblocks = { {4 * 1024, 128} },
15183 .block_erase = erase_sector_jedec,
15184 }, {
15185 .eraseblocks = { {512 * 1024, 1} },
15186 .block_erase = erase_chip_block_jedec,
15187 }
15188 },
Sean Nelson35727f72010-01-28 23:55:12 +000015189 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015190 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015191 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010015192 .prepare_access = prepare_memory_access,
15193 .finish_access = finish_memory_access,
Carl-Daniel Hailfinger90eff152008-12-08 23:51:45 +000015194 },
FENG yu ningff692fb2008-12-08 18:15:10 +000015195
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015196 {
15197 .vendor = "SST",
Peter Stuge8440cc02009-01-25 23:55:12 +000015198 .name = "SST39VF080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015199 .bustype = BUS_PARALLEL,
Mateusz Murawskie33890d2009-06-12 11:45:10 +000015200 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000015201 .model_id = SST_SST39VF080,
Peter Stuge8440cc02009-01-25 23:55:12 +000015202 .total_size = 1024,
15203 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000015204 .feature_bits = FEATURE_EITHER_RESET,
Peter Stuge8440cc02009-01-25 23:55:12 +000015205 .tested = TEST_UNTESTED,
15206 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000015207 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000015208 .block_erasers =
15209 {
15210 {
15211 .eraseblocks = { {4 * 1024, 256} },
15212 .block_erase = erase_sector_jedec,
15213 }, {
15214 .eraseblocks = { {64 * 1024, 16} },
15215 .block_erase = erase_block_jedec,
15216 }, {
15217 .eraseblocks = { {1024 * 1024, 1} },
15218 .block_erase = erase_chip_block_jedec,
15219 }
15220 },
Sean Nelson35727f72010-01-28 23:55:12 +000015221 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015222 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015223 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010015224 .prepare_access = prepare_memory_access,
15225 .finish_access = finish_memory_access,
Peter Stuge8440cc02009-01-25 23:55:12 +000015226 },
15227
15228 {
15229 .vendor = "SST",
Alan Green1f9cc7d2019-07-01 11:10:45 +100015230 .name = "SST39VF512",
15231 .bustype = BUS_PARALLEL,
15232 .manufacture_id = SST_ID,
15233 .model_id = SST_SST39VF512,
15234 .total_size = 64,
15235 .page_size = 4096,
15236 .feature_bits = FEATURE_EITHER_RESET,
15237 .tested = TEST_OK_PREW,
15238 .probe = probe_jedec,
15239 .probe_timing = 1, /* 150 ns */
15240 .block_erasers =
15241 {
15242 {
15243 .eraseblocks = { {4 * 1024, 16} },
15244 .block_erase = erase_sector_jedec,
15245 }, {
15246 .eraseblocks = { {64 * 1024, 1} },
15247 .block_erase = erase_chip_block_jedec,
15248 }
15249 },
15250 .write = write_jedec_1,
15251 .read = read_memmapped,
15252 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010015253 .prepare_access = prepare_memory_access,
15254 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +100015255 },
15256
15257 {
15258 .vendor = "SST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015259 .name = "SST49LF002A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015260 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015261 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000015262 .model_id = SST_SST49LF002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015263 .total_size = 256,
15264 .page_size = 16 * 1024,
Nico Huberb1974022023-01-12 13:13:12 +010015265 .feature_bits = FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000015266 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015267 .probe = probe_jedec,
15268 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000015269 .block_erasers =
15270 {
15271 {
15272 .eraseblocks = { {4 * 1024, 64} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000015273 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000015274 }, {
15275 .eraseblocks = { {16 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000015276 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000015277 }, {
15278 .eraseblocks = { {256 * 1024, 1} },
15279 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
15280 }
15281 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015282 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000015283 .unlock = unlock_sst_fwhub,
15284 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015285 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015286 .voltage = {3000, 3600},
Nico Huberb1974022023-01-12 13:13:12 +010015287 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010015288 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015289 },
15290
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015291 {
15292 .vendor = "SST",
15293 .name = "SST49LF003A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015294 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015295 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000015296 .model_id = SST_SST49LF003A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015297 .total_size = 384,
15298 .page_size = 64 * 1024,
Nico Huberb1974022023-01-12 13:13:12 +010015299 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000015300 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015301 .probe = probe_jedec,
15302 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000015303 .block_erasers =
15304 {
15305 {
15306 .eraseblocks = { {4 * 1024, 96} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000015307 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000015308 }, {
15309 .eraseblocks = { {64 * 1024, 6} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000015310 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000015311 }, {
15312 .eraseblocks = { {384 * 1024, 1} },
15313 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
15314 }
15315 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015316 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000015317 .unlock = unlock_sst_fwhub,
15318 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015319 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015320 .voltage = {3000, 3600},
Nico Huberb1974022023-01-12 13:13:12 +010015321 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010015322 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015323 },
15324
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015325 {
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000015326 /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB)
15327 * and is only honored for 64k block erase, but not 4k sector erase.
15328 */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015329 .vendor = "SST",
15330 .name = "SST49LF004A/B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015331 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015332 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000015333 .model_id = SST_SST49LF004A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015334 .total_size = 512,
15335 .page_size = 64 * 1024,
Nico Huberb1974022023-01-12 13:13:12 +010015336 .feature_bits = FEATURE_EITHER_RESET,
Idwer Vollering67f28142011-03-06 22:26:23 +000015337 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015338 .probe = probe_jedec,
15339 .probe_timing = 1, /* 150 ns */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000015340 .block_erasers =
15341 {
15342 {
15343 .eraseblocks = { {4 * 1024, 128} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000015344 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000015345 }, {
15346 .eraseblocks = { {64 * 1024, 8} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000015347 .block_erase = erase_block_jedec,
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000015348 }, {
15349 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson51c83fb2010-01-20 20:55:53 +000015350 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
Carl-Daniel Hailfingera06287c2009-09-23 22:01:33 +000015351 },
15352 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015353 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000015354 .unlock = unlock_sst_fwhub,
15355 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015356 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015357 .voltage = {3000, 3600},
Nico Huberb1974022023-01-12 13:13:12 +010015358 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010015359 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015360 },
15361
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015362 {
15363 .vendor = "SST",
15364 .name = "SST49LF004C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015365 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015366 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000015367 .model_id = SST_SST49LF004C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015368 .total_size = 512,
15369 .page_size = 4 * 1024,
15370 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015371 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000015372 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000015373 .block_erasers =
15374 {
15375 {
15376 .eraseblocks = { {4 * 1024, 128} },
15377 .block_erase = erase_sector_49lfxxxc,
15378 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000015379 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000015380 {64 * 1024, 7},
15381 {32 * 1024, 1},
15382 {8 * 1024, 2},
15383 {16 * 1024, 1},
15384 },
Sean Nelson69e58112010-03-23 17:10:28 +000015385 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000015386 }
15387 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015388 .printlock = printlock_regspace2_block_eraser_1,
15389 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000015390 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015391 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015392 .voltage = {3000, 3600},
Nico Huberb1974022023-01-12 13:13:12 +010015393 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010015394 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015395 },
15396
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015397 {
15398 .vendor = "SST",
15399 .name = "SST49LF008A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015400 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015401 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000015402 .model_id = SST_SST49LF008A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015403 .total_size = 1024,
15404 .page_size = 64 * 1024,
Nico Huberb1974022023-01-12 13:13:12 +010015405 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000015406 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015407 .probe = probe_jedec,
15408 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000015409 .block_erasers =
15410 {
15411 {
15412 .eraseblocks = { {4 * 1024, 256} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000015413 .block_erase = erase_sector_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000015414 }, {
15415 .eraseblocks = { {64 * 1024, 16} },
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000015416 .block_erase = erase_block_jedec,
Sean Nelson51c83fb2010-01-20 20:55:53 +000015417 }, {
15418 .eraseblocks = { {1024 * 1024, 1} },
15419 .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */
15420 }
15421 },
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015422 .printlock = printlock_sst_fwhub,
Sean Nelsonccf7a2a2010-03-16 03:09:10 +000015423 .unlock = unlock_sst_fwhub,
15424 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015425 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015426 .voltage = {3000, 3600},
Nico Huberb1974022023-01-12 13:13:12 +010015427 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010015428 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015429 },
15430
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015431 {
15432 .vendor = "SST",
15433 .name = "SST49LF008C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015434 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015435 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000015436 .model_id = SST_SST49LF008C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015437 .total_size = 1024,
15438 .page_size = 4 * 1024,
15439 .tested = TEST_UNTESTED,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015440 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000015441 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000015442 .block_erasers =
15443 {
15444 {
15445 .eraseblocks = { {4 * 1024, 256} },
15446 .block_erase = erase_sector_49lfxxxc,
15447 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000015448 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000015449 {64 * 1024, 15},
15450 {32 * 1024, 1},
15451 {8 * 1024, 2},
15452 {16 * 1024, 1},
15453 },
Sean Nelson69e58112010-03-23 17:10:28 +000015454 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000015455 }
15456 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015457 .printlock = printlock_regspace2_block_eraser_1,
15458 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000015459 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015460 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015461 .voltage = {3000, 3600},
Nico Huberb1974022023-01-12 13:13:12 +010015462 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010015463 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015464 },
15465
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015466 {
15467 .vendor = "SST",
15468 .name = "SST49LF016C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015469 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015470 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000015471 .model_id = SST_SST49LF016C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015472 .total_size = 2048,
15473 .page_size = 4 * 1024,
Stefan Tauner23e10b82016-01-23 16:16:49 +000015474 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015475 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000015476 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000015477 .block_erasers =
15478 {
15479 {
15480 .eraseblocks = { {4 * 1024, 512} },
15481 .block_erase = erase_sector_49lfxxxc,
15482 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000015483 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000015484 {64 * 1024, 31},
15485 {32 * 1024, 1},
15486 {8 * 1024, 2},
15487 {16 * 1024, 1},
15488 },
Sean Nelson69e58112010-03-23 17:10:28 +000015489 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000015490 }
15491 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015492 .printlock = printlock_regspace2_block_eraser_1,
15493 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000015494 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015495 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015496 .voltage = {3000, 3600},
Nico Huberb1974022023-01-12 13:13:12 +010015497 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010015498 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015499 },
15500
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015501 {
15502 .vendor = "SST",
15503 .name = "SST49LF020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015504 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015505 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000015506 .model_id = SST_SST49LF020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015507 .total_size = 256,
15508 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015509 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner8179be52011-06-04 13:13:34 +000015510 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015511 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000015512 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000015513 .block_erasers =
15514 {
15515 {
15516 .eraseblocks = { {4 * 1024, 64} },
15517 .block_erase = erase_sector_jedec,
15518 }, {
15519 .eraseblocks = { {16 * 1024, 16} },
15520 .block_erase = erase_block_jedec,
15521 }, {
15522 .eraseblocks = { {256 * 1024, 1} },
15523 .block_erase = NULL,
15524 }
15525 },
Sean Nelson35727f72010-01-28 23:55:12 +000015526 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015527 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015528 .voltage = {3000, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010015529 .prepare_access = prepare_memory_access,
15530 .finish_access = finish_memory_access,
Sven Schnellec208dfb2009-01-07 12:35:09 +000015531 },
15532
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015533 {
15534 .vendor = "SST",
15535 .name = "SST49LF020A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015536 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015537 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000015538 .model_id = SST_SST49LF020A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015539 .total_size = 256,
Carl-Daniel Hailfingerda654322009-07-23 01:44:38 +000015540 .page_size = 4 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015541 .feature_bits = FEATURE_EITHER_RESET,
Carl-Daniel Hailfingerf52f7842010-10-08 18:52:29 +000015542 .tested = TEST_OK_PRE,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015543 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000015544 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000015545 .block_erasers =
15546 {
15547 {
15548 .eraseblocks = { {4 * 1024, 64} },
15549 .block_erase = erase_sector_jedec,
15550 }, {
15551 .eraseblocks = { {16 * 1024, 16} },
15552 .block_erase = erase_block_jedec,
15553 }, {
15554 .eraseblocks = { {256 * 1024, 1} },
15555 .block_erase = NULL,
15556 }
15557 },
Sean Nelson35727f72010-01-28 23:55:12 +000015558 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015559 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015560 .voltage = {3000, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010015561 .prepare_access = prepare_memory_access,
15562 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015563 },
15564
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015565 {
15566 .vendor = "SST",
15567 .name = "SST49LF040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015568 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015569 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000015570 .model_id = SST_SST49LF040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015571 .total_size = 512,
15572 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000015573 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000015574 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015575 .probe = probe_jedec,
Uwe Hermann431f4f72010-09-05 12:41:25 +000015576 .probe_timing = 1, /* 150 ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000015577 .block_erasers =
15578 {
15579 {
15580 .eraseblocks = { {4 * 1024, 128} },
15581 .block_erase = erase_sector_jedec,
15582 }, {
15583 .eraseblocks = { {64 * 1024, 8} },
15584 .block_erase = erase_block_jedec,
15585 }, {
15586 .eraseblocks = { {512 * 1024, 1} },
15587 .block_erase = NULL,
15588 }
15589 },
Sean Nelson35727f72010-01-28 23:55:12 +000015590 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015591 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015592 .voltage = {3000, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010015593 .prepare_access = prepare_memory_access,
15594 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015595 },
15596
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015597 {
15598 .vendor = "SST",
15599 .name = "SST49LF040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015600 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015601 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000015602 .model_id = SST_SST49LF040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015603 .total_size = 512,
15604 .page_size = 64 * 1024,
Nico Huberb1974022023-01-12 13:13:12 +010015605 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner23e10b82016-01-23 16:16:49 +000015606 .tested = TEST_OK_PREW,
Sean Nelson51c83fb2010-01-20 20:55:53 +000015607 .probe = probe_jedec,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015608 .probe_timing = 1, /* 150ns */
Sean Nelson51c83fb2010-01-20 20:55:53 +000015609 .block_erasers =
15610 {
15611 {
15612 .eraseblocks = { {4 * 1024, 128} },
15613 .block_erase = erase_sector_jedec,
15614 }, {
15615 .eraseblocks = { {64 * 1024, 8} },
15616 .block_erase = erase_block_jedec,
15617 }, {
15618 .eraseblocks = { {512 * 1024, 1} },
15619 .block_erase = NULL,
15620 }
15621 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015622 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000015623 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015624 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015625 .voltage = {3000, 3600},
Nico Huberb1974022023-01-12 13:13:12 +010015626 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010015627 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015628 },
15629
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015630 {
15631 .vendor = "SST",
15632 .name = "SST49LF080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015633 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015634 .manufacture_id = SST_ID,
Elyes HAOUAS124ef382018-03-27 12:15:09 +020015635 .model_id = SST_SST49LF080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015636 .total_size = 1024,
15637 .page_size = 4096,
Sean Nelson35727f72010-01-28 23:55:12 +000015638 .feature_bits = FEATURE_EITHER_RESET,
Brandon Dowdyf07bf322011-03-06 18:31:11 +000015639 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015640 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000015641 .probe_timing = TIMING_FIXME,
Sean Nelson51c83fb2010-01-20 20:55:53 +000015642 .block_erasers =
15643 {
15644 {
15645 .eraseblocks = { {4 * 1024, 256} },
15646 .block_erase = erase_sector_jedec,
15647 }, {
15648 .eraseblocks = { {64 * 1024, 16} },
15649 .block_erase = erase_block_jedec,
15650 }, {
15651 .eraseblocks = { {1024 * 1024, 1} },
15652 .block_erase = NULL,
15653 }
15654 },
Sean Nelson35727f72010-01-28 23:55:12 +000015655 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015656 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015657 .voltage = {3000, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010015658 .prepare_access = prepare_memory_access,
15659 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015660 },
15661
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015662 {
15663 .vendor = "SST",
15664 .name = "SST49LF160C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015665 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015666 .manufacture_id = SST_ID,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000015667 .model_id = SST_SST49LF160C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015668 .total_size = 2048,
15669 .page_size = 4 * 1024,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015670 .tested = TEST_OK_PR,
Carl-Daniel Hailfinger81449a22010-03-15 03:48:42 +000015671 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000015672 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */
Sean Nelson51c83fb2010-01-20 20:55:53 +000015673 .block_erasers =
15674 {
15675 {
15676 .eraseblocks = { {4 * 1024, 512} },
15677 .block_erase = erase_sector_49lfxxxc,
15678 }, {
Stefan Tauner0554ca52013-07-25 22:54:25 +000015679 .eraseblocks = {
Sean Nelson51c83fb2010-01-20 20:55:53 +000015680 {64 * 1024, 31},
15681 {32 * 1024, 1},
15682 {8 * 1024, 2},
15683 {16 * 1024, 1},
15684 },
Sean Nelson69e58112010-03-23 17:10:28 +000015685 .block_erase = erase_block_82802ab,
Sean Nelson51c83fb2010-01-20 20:55:53 +000015686 }
15687 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015688 .printlock = printlock_regspace2_block_eraser_1,
15689 .unlock = unlock_regspace2_block_eraser_1,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000015690 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015691 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015692 .voltage = {3000, 3600},
Nico Huberb1974022023-01-12 13:13:12 +010015693 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010015694 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015695 },
15696
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015697 {
15698 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015699 .name = "M29F002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015700 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015701 .manufacture_id = ST_ID,
15702 .model_id = ST_M29F002B,
15703 .total_size = 256,
15704 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015705 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015706 .tested = TEST_UNTESTED,
15707 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000015708 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000015709 .block_erasers =
15710 {
15711 {
15712 .eraseblocks = {
15713 {16 * 1024, 1},
15714 {8 * 1024, 2},
15715 {32 * 1024, 1},
15716 {64 * 1024, 3},
15717 },
15718 .block_erase = erase_sector_jedec,
15719 }, {
15720 .eraseblocks = { {256 * 1024, 1} },
15721 .block_erase = erase_chip_block_jedec,
15722 }
15723 },
Sean Nelson35727f72010-01-28 23:55:12 +000015724 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015725 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000015726 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
Nico Huber9eec4072023-01-12 01:17:30 +010015727 .prepare_access = prepare_memory_access,
15728 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015729 },
15730
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015731 {
15732 .vendor = "ST",
15733 .name = "M29F002T/NT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015734 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015735 .manufacture_id = ST_ID,
15736 .model_id = ST_M29F002T,
15737 .total_size = 256,
15738 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015739 .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET,
Stefan Taunere34e3e82013-01-01 00:06:51 +000015740 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015741 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000015742 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000015743 .block_erasers =
15744 {
15745 {
15746 .eraseblocks = {
15747 {64 * 1024, 3},
15748 {32 * 1024, 1},
15749 {8 * 1024, 2},
15750 {16 * 1024, 1},
15751 },
15752 .block_erase = erase_sector_jedec,
15753 }, {
15754 .eraseblocks = { {256 * 1024, 1} },
15755 .block_erase = erase_chip_block_jedec,
15756 }
15757 },
Sean Nelson35727f72010-01-28 23:55:12 +000015758 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015759 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000015760 .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */
Nico Huber9eec4072023-01-12 01:17:30 +010015761 .prepare_access = prepare_memory_access,
15762 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015763 },
15764
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015765 {
15766 .vendor = "ST",
15767 .name = "M29F040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015768 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015769 .manufacture_id = ST_ID,
15770 .model_id = ST_M29F040B,
15771 .total_size = 512,
15772 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015773 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
15774 .tested = TEST_UNTESTED,
15775 .probe = probe_jedec,
David Borg204f4652010-12-04 03:26:40 +000015776 .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */
Sean Nelson56358aa2010-01-19 16:08:51 +000015777 .block_erasers =
15778 {
15779 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015780 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson35727f72010-01-28 23:55:12 +000015781 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000015782 }, {
15783 .eraseblocks = { {512 * 1024, 1} },
Sean Nelson35727f72010-01-28 23:55:12 +000015784 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000015785 }
15786 },
Sean Nelson35727f72010-01-28 23:55:12 +000015787 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015788 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015789 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010015790 .prepare_access = prepare_memory_access,
15791 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015792 },
15793
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015794 {
Sean Nelson35727f72010-01-28 23:55:12 +000015795 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015796 .vendor = "ST",
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000015797 .name = "M29F400BB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015798 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000015799 .manufacture_id = ST_ID,
15800 .model_id = ST_M29F400BB,
15801 .total_size = 512,
15802 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015803 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger79e67572010-10-13 21:49:30 +000015804 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015805 .probe = probe_jedec,
15806 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000015807 .block_erasers =
15808 {
15809 {
15810 .eraseblocks = {
15811 {16 * 1024, 1},
15812 {8 * 1024, 2},
15813 {32 * 1024, 1},
15814 {64 * 1024, 7},
15815 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015816 .block_erase = erase_sector_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000015817 }, {
15818 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015819 .block_erase = erase_chip_block_jedec,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000015820 }
15821 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015822 .write = write_jedec_1,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000015823 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015824 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010015825 .prepare_access = prepare_memory_access,
15826 .finish_access = finish_memory_access,
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000015827 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100015828
Carl-Daniel Hailfinger420cf6f2010-07-16 22:07:20 +000015829 {
15830 /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */
15831 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015832 .name = "M29F400BT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015833 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015834 .manufacture_id = ST_ID,
15835 .model_id = ST_M29F400BT,
15836 .total_size = 512,
15837 .page_size = 64 * 1024,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015838 .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015839 .tested = TEST_UNTESTED,
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015840 .probe = probe_jedec,
15841 .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt
Sean Nelson56358aa2010-01-19 16:08:51 +000015842 .block_erasers =
15843 {
15844 {
15845 .eraseblocks = {
15846 {64 * 1024, 7},
15847 {32 * 1024, 1},
15848 {8 * 1024, 2},
15849 {16 * 1024, 1},
15850 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015851 .block_erase = erase_sector_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000015852 }, {
15853 .eraseblocks = { {512 * 1024, 1} },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015854 .block_erase = erase_chip_block_jedec,
Sean Nelson56358aa2010-01-19 16:08:51 +000015855 }
15856 },
Carl-Daniel Hailfingera8cf3622014-08-08 08:33:01 +000015857 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015858 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015859 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010015860 .prepare_access = prepare_memory_access,
15861 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015862 },
15863
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015864 {
15865 .vendor = "ST",
15866 .name = "M29W010B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015867 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015868 .manufacture_id = ST_ID,
15869 .model_id = ST_M29W010B,
15870 .total_size = 128,
15871 .page_size = 16 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015872 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015873 .tested = TEST_UNTESTED,
15874 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000015875 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000015876 .block_erasers =
15877 {
15878 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015879 .eraseblocks = { {16 * 1024, 8} },
Sean Nelson56358aa2010-01-19 16:08:51 +000015880 .block_erase = erase_sector_jedec,
15881 }, {
15882 .eraseblocks = { {128 * 1024, 1} },
15883 .block_erase = erase_chip_block_jedec,
15884 }
15885 },
Sean Nelson35727f72010-01-28 23:55:12 +000015886 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015887 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015888 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010015889 .prepare_access = prepare_memory_access,
15890 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015891 },
15892
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015893 {
15894 .vendor = "ST",
15895 .name = "M29W040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015896 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015897 .manufacture_id = ST_ID,
15898 .model_id = ST_M29W040B,
15899 .total_size = 512,
15900 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000015901 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015902 .tested = TEST_UNTESTED,
15903 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000015904 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000015905 .block_erasers =
15906 {
15907 {
Stefan Tauner6697f712014-08-06 15:09:15 +000015908 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson56358aa2010-01-19 16:08:51 +000015909 .block_erase = erase_sector_jedec,
15910 }, {
15911 .eraseblocks = { {512 * 1024, 1} },
15912 .block_erase = erase_chip_block_jedec,
15913 }
15914 },
Sean Nelson35727f72010-01-28 23:55:12 +000015915 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015916 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015917 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010015918 .prepare_access = prepare_memory_access,
15919 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015920 },
15921
Stefan Taunereb582572012-09-21 12:52:50 +000015922 {
15923 .vendor = "ST",
15924 .name = "M29W512B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015925 .bustype = BUS_PARALLEL,
Alan Greenfa3fcd32019-06-27 15:41:50 +100015926 .manufacture_id = ST_ID,
Stefan Taunereb582572012-09-21 12:52:50 +000015927 .model_id = ST_M29W512B,
15928 .total_size = 64,
15929 .page_size = 64 * 1024,
15930 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Stefan Tauner0554ca52013-07-25 22:54:25 +000015931 .tested = TEST_OK_PREW,
Stefan Taunereb582572012-09-21 12:52:50 +000015932 .probe = probe_jedec,
15933 .probe_timing = TIMING_ZERO,
15934 .block_erasers =
15935 {
15936 {
15937 .eraseblocks = { {64 * 1024, 1} },
15938 .block_erase = erase_chip_block_jedec,
15939 }
15940 },
15941 .write = write_jedec_1,
15942 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015943 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010015944 .prepare_access = prepare_memory_access,
15945 .finish_access = finish_memory_access,
Stefan Taunereb582572012-09-21 12:52:50 +000015946 },
Jeffrey A. Kentba7c9222010-02-01 05:49:46 +000015947
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015948 {
15949 .vendor = "ST",
15950 .name = "M50FLW040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015951 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015952 .manufacture_id = ST_ID,
15953 .model_id = ST_M50FLW040A,
15954 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000015955 .page_size = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015956 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000015957 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000015958 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000015959 .block_erasers =
15960 {
15961 {
Sean Nelson329bde72010-01-19 16:39:19 +000015962 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000015963 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000015964 {64 * 1024, 5}, /* block */
15965 {4 * 1024, 16}, /* sector */
15966 {4 * 1024, 16}, /* sector */
15967 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000015968 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000015969 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000015970 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000015971 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000015972 }
15973 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000015974 .unlock = unlock_regspace2_uniform_64k,
Alan Greenc1863ca2019-06-27 15:08:03 +100015975 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000015976 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000015977 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
Nico Huberb1974022023-01-12 13:13:12 +010015978 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010015979 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000015980 },
15981
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015982 {
15983 .vendor = "ST",
15984 .name = "M50FLW040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000015985 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015986 .manufacture_id = ST_ID,
15987 .model_id = ST_M50FLW040B,
15988 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000015989 .page_size = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000015990 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000015991 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000015992 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000015993 .block_erasers =
15994 {
15995 {
Sean Nelson329bde72010-01-19 16:39:19 +000015996 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000015997 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000015998 {4 * 1024, 16}, /* sector */
15999 {64 * 1024, 5}, /* block */
16000 {4 * 1024, 16}, /* sector */
16001 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000016002 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000016003 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000016004 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000016005 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000016006 }
16007 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000016008 .unlock = unlock_regspace2_uniform_64k,
Alan Greenc1863ca2019-06-27 15:08:03 +100016009 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016010 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016011 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
Nico Huberb1974022023-01-12 13:13:12 +010016012 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010016013 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000016014 },
16015
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016016 {
16017 .vendor = "ST",
16018 .name = "M50FLW080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016019 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016020 .manufacture_id = ST_ID,
16021 .model_id = ST_M50FLW080A,
16022 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000016023 .page_size = 0,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000016024 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +000016025 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000016026 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000016027 .block_erasers =
16028 {
16029 {
Sean Nelson329bde72010-01-19 16:39:19 +000016030 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000016031 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000016032 {64 * 1024, 13}, /* block */
16033 {4 * 1024, 16}, /* sector */
16034 {4 * 1024, 16}, /* sector */
16035 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000016036 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000016037 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000016038 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000016039 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000016040 }
16041 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000016042 .printlock = printlock_regspace2_block_eraser_0,
16043 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000016044 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016045 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016046 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
Nico Huberb1974022023-01-12 13:13:12 +010016047 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010016048 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000016049 },
16050
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016051 {
16052 .vendor = "ST",
16053 .name = "M50FLW080B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016054 .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016055 .manufacture_id = ST_ID,
16056 .model_id = ST_M50FLW080B,
16057 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000016058 .page_size = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016059 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000016060 .probe = probe_82802ab,
Carl-Daniel Hailfinger08fa2f32010-01-10 01:34:00 +000016061 .probe_timing = TIMING_FIXME,
Sean Nelson56358aa2010-01-19 16:08:51 +000016062 .block_erasers =
16063 {
16064 {
Sean Nelson329bde72010-01-19 16:39:19 +000016065 .eraseblocks = {
Uwe Hermann431f4f72010-09-05 12:41:25 +000016066 {4 * 1024, 16}, /* sector */
Sean Nelson329bde72010-01-19 16:39:19 +000016067 {4 * 1024, 16}, /* sector */
16068 {64 * 1024, 13}, /* block */
16069 {4 * 1024, 16}, /* sector */
16070 },
Stefan Taunerbeaffd82013-09-12 08:29:06 +000016071 .block_erase = erase_sector_stm50,
Sean Nelson329bde72010-01-19 16:39:19 +000016072 }, {
Stefan Tauner6697f712014-08-06 15:09:15 +000016073 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000016074 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000016075 }
16076 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000016077 .printlock = printlock_regspace2_block_eraser_0,
16078 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000016079 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016080 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016081 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
Nico Huberb1974022023-01-12 13:13:12 +010016082 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010016083 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000016084 },
16085
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016086 {
16087 .vendor = "ST",
16088 .name = "M50FW002",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016089 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016090 .manufacture_id = ST_ID,
16091 .model_id = ST_M50FW002,
16092 .total_size = 256,
Stefan Tauner4404f732013-09-12 08:28:56 +000016093 .page_size = 0,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000016094 .tested = TEST_OK_PR,
Sean Nelson35727f72010-01-28 23:55:12 +000016095 .probe = probe_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000016096 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000016097 .block_erasers =
16098 {
16099 {
16100 .eraseblocks = {
16101 {64 * 1024, 3},
16102 {32 * 1024, 1},
16103 {8 * 1024, 2},
16104 {16 * 1024, 1},
16105 },
Sean Nelson28accc22010-03-19 18:47:06 +000016106 .block_erase = erase_block_82802ab,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000016107 }, {
Stefan Tauner5c316f92015-02-08 21:57:52 +000016108 .eraseblocks = { {256 * 1024, 1} },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000016109 .block_erase = NULL, /* Only in A/A mux mode */
Sean Nelson56358aa2010-01-19 16:08:51 +000016110 }
16111 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000016112 .printlock = printlock_regspace2_block_eraser_0,
16113 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000016114 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016115 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016116 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
Nico Huberb1974022023-01-12 13:13:12 +010016117 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010016118 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000016119 },
16120
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016121 {
16122 .vendor = "ST",
16123 .name = "M50FW016",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016124 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016125 .manufacture_id = ST_ID,
16126 .model_id = ST_M50FW016,
16127 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000016128 .page_size = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016129 .tested = TEST_UNTESTED,
16130 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000016131 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000016132 .block_erasers =
16133 {
16134 {
Stefan Tauner6697f712014-08-06 15:09:15 +000016135 .eraseblocks = { {64 * 1024, 32} },
Sean Nelson28accc22010-03-19 18:47:06 +000016136 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000016137 }
16138 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000016139 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000016140 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016141 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016142 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
Nico Huberb1974022023-01-12 13:13:12 +010016143 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010016144 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000016145 },
16146
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016147 {
16148 .vendor = "ST",
16149 .name = "M50FW040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016150 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016151 .manufacture_id = ST_ID,
16152 .model_id = ST_M50FW040,
16153 .total_size = 512,
Stefan Tauner4404f732013-09-12 08:28:56 +000016154 .page_size = 0,
Sean Nelson28accc22010-03-19 18:47:06 +000016155 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016156 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000016157 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000016158 .block_erasers =
16159 {
16160 {
Stefan Tauner6697f712014-08-06 15:09:15 +000016161 .eraseblocks = { {64 * 1024, 8} },
Sean Nelson28accc22010-03-19 18:47:06 +000016162 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000016163 }
16164 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000016165 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000016166 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016167 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016168 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
Nico Huberb1974022023-01-12 13:13:12 +010016169 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010016170 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000016171 },
16172
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016173 {
16174 .vendor = "ST",
16175 .name = "M50FW080",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016176 .bustype = BUS_FWH, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016177 .manufacture_id = ST_ID,
16178 .model_id = ST_M50FW080,
16179 .total_size = 1024,
Stefan Tauner4404f732013-09-12 08:28:56 +000016180 .page_size = 0,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000016181 .tested = TEST_OK_PR,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016182 .probe = probe_82802ab,
Paul Menzelc07a41c2011-06-19 17:23:55 +000016183 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */
Sean Nelson56358aa2010-01-19 16:08:51 +000016184 .block_erasers =
16185 {
16186 {
Stefan Tauner6697f712014-08-06 15:09:15 +000016187 .eraseblocks = { {64 * 1024, 16} },
Sean Nelson28accc22010-03-19 18:47:06 +000016188 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000016189 }
16190 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000016191 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson28accc22010-03-19 18:47:06 +000016192 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016193 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016194 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
Nico Huberb1974022023-01-12 13:13:12 +010016195 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010016196 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000016197 },
16198
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016199 {
16200 .vendor = "ST",
Stefan Tauner8c4602b2013-09-12 08:29:00 +000016201 .name = "M50LPW080",
16202 .bustype = BUS_LPC, /* A/A Mux */
16203 .manufacture_id = ST_ID,
16204 .model_id = ST_M50LPW080,
16205 .total_size = 1024,
16206 .page_size = 0,
Stefan Tauner8c4602b2013-09-12 08:29:00 +000016207 .tested = TEST_UNTESTED,
16208 .probe = probe_82802ab,
16209 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
16210 .block_erasers =
16211 {
16212 {
Stefan Tauner6697f712014-08-06 15:09:15 +000016213 .eraseblocks = { {64 * 1024, 16} },
Stefan Tauner8c4602b2013-09-12 08:29:00 +000016214 .block_erase = erase_block_82802ab,
16215 }
16216 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000016217 .unlock = unlock_regspace2_uniform_64k,
Stefan Tauner8c4602b2013-09-12 08:29:00 +000016218 .write = write_82802ab,
16219 .read = read_memmapped,
16220 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
Nico Huberb1974022023-01-12 13:13:12 +010016221 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010016222 .finish_access = finish_memory_access,
Stefan Tauner8c4602b2013-09-12 08:29:00 +000016223 },
16224
16225 {
16226 .vendor = "ST",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016227 .name = "M50LPW116",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000016228 .bustype = BUS_LPC, /* A/A Mux */
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016229 .manufacture_id = ST_ID,
16230 .model_id = ST_M50LPW116,
16231 .total_size = 2048,
Stefan Tauner4404f732013-09-12 08:28:56 +000016232 .page_size = 0,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016233 .tested = TEST_UNTESTED,
Sean Nelson35727f72010-01-28 23:55:12 +000016234 .probe = probe_82802ab,
Udu Ogahc04ee222009-09-05 01:31:32 +000016235 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000016236 .block_erasers =
16237 {
16238 {
16239 .eraseblocks = {
16240 {4 * 1024, 16},
16241 {64 * 1024, 30},
16242 {32 * 1024, 1},
16243 {8 * 1024, 2},
16244 {16 * 1024, 1},
16245 },
Sean Nelson28accc22010-03-19 18:47:06 +000016246 .block_erase = erase_block_82802ab,
Sean Nelson56358aa2010-01-19 16:08:51 +000016247 }
16248 },
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000016249 .printlock = printlock_regspace2_block_eraser_0,
16250 .unlock = unlock_regspace2_block_eraser_0,
Sean Nelson28accc22010-03-19 18:47:06 +000016251 .write = write_82802ab,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000016252 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000016253 .voltage = {3000, 3600}, /* Also has 12V fast program & erase */
Nico Huberb1974022023-01-12 13:13:12 +010016254 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010016255 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000016256 },
16257
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000016258 {
Konstantin Grudnev3d8868c2019-07-23 00:48:54 +030016259 .vendor = "ST",
16260 .name = "M95M02",
16261 .bustype = BUS_SPI,
16262 .manufacture_id = ST_ID,
16263 .model_id = ST_M95M02,
16264 .total_size = 256,
16265 .page_size = 256,
16266 .feature_bits = FEATURE_WRSR_WREN | FEATURE_NO_ERASE | FEATURE_ERASED_ZERO,
16267 .tested = TEST_OK_PREW,
Nico Huber54557862023-05-15 12:01:04 +020016268 .spi_cmd_set = SPI95,
Konstantin Grudnev3d8868c2019-07-23 00:48:54 +030016269 .probe = probe_spi_st95,
16270 .probe_timing = TIMING_ZERO,
16271 .block_erasers =
16272 {
16273 {
16274 .eraseblocks = { {256 * 1024, 1} },
16275 .block_erase = spi_block_erase_emulation,
16276 }
16277 },
16278
16279 .printlock = spi_prettyprint_status_register_bp1_srwd,
16280 .unlock = spi_disable_blockprotect_bp1_srwd,
16281 .write = spi_chip_write_256,
16282 .read = spi_chip_read,
16283 .voltage = {2500, 5500},
16284 },
16285
16286 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100016287 .vendor = "Sanyo",
16288 .name = "LE25FU106B",
16289 .bustype = BUS_SPI,
16290 .manufacture_id = SANYO_ID,
16291 .model_id = SANYO_LE25FU106B,
16292 .total_size = 128,
16293 .page_size = 256,
16294 .feature_bits = FEATURE_WRSR_WREN,
16295 .tested = TEST_UNTESTED,
16296 .probe = probe_spi_res2,
16297 .probe_timing = TIMING_ZERO,
16298 .block_erasers =
16299 {
16300 /* FIXME: Is this correct?
16301 {
16302 .eraseblocks = { {2 * 1024, 64} },
16303 .block_erase = spi_block_erase_d7,
16304 },*/
16305 {
16306 .eraseblocks = { {32 * 1024, 4} },
16307 .block_erase = spi_block_erase_d8,
16308 }, {
16309 .eraseblocks = { {128 * 1024, 1} },
16310 .block_erase = spi_block_erase_c7,
16311 }
16312 },
16313 .printlock = spi_prettyprint_status_register_bp1_srwd,
16314 .unlock = spi_disable_blockprotect_bp1_srwd,
16315 .write = spi_chip_write_256,
16316 .read = spi_chip_read,
16317 .voltage = {2300, 3600},
16318 },
16319
16320 {
16321 .vendor = "Sanyo",
16322 .name = "LE25FU206",
16323 .bustype = BUS_SPI,
16324 .manufacture_id = SANYO_ID,
16325 .model_id = SANYO_LE25FU206,
16326 .total_size = 256,
16327 .page_size = 256,
16328 .feature_bits = FEATURE_WRSR_WREN,
16329 .tested = TEST_UNTESTED,
16330 .probe = probe_spi_res2,
16331 .probe_timing = TIMING_ZERO,
16332 .block_erasers =
16333 {
16334 {
16335 .eraseblocks = { {4 * 1024, 64} },
16336 .block_erase = spi_block_erase_d7,
16337 }, {
16338 .eraseblocks = { {64 * 1024, 4} },
16339 .block_erase = spi_block_erase_d8,
16340 }, {
16341 .eraseblocks = { {256 * 1024, 1} },
16342 .block_erase = spi_block_erase_c7,
16343 }
16344 },
16345 .printlock = spi_prettyprint_status_register_bp1_srwd,
16346 .unlock = spi_disable_blockprotect_bp1_srwd,
16347 .write = spi_chip_write_256,
16348 .read = spi_chip_read,
16349 .voltage = {2300, 3600},
16350 },
16351
16352 {
16353 .vendor = "Sanyo",
16354 .name = "LE25FU206A",
16355 .bustype = BUS_SPI,
16356 .manufacture_id = SANYO_ID,
16357 .model_id = SANYO_LE25FU206A,
16358 .total_size = 256,
16359 .page_size = 256,
16360 .tested = TEST_UNTESTED,
16361 .probe = probe_spi_rdid,
16362 .probe_timing = TIMING_ZERO,
16363 .block_erasers =
16364 {
16365 {
16366 .eraseblocks = { {4 * 1024, 64} },
16367 .block_erase = spi_block_erase_20,
16368 }, {
16369 .eraseblocks = { {4 * 1024, 64} },
16370 .block_erase = spi_block_erase_d7,
16371 }, {
16372 .eraseblocks = { {64 * 1024, 4} },
16373 .block_erase = spi_block_erase_d8,
16374 }, {
16375 .eraseblocks = { {256 * 1024, 1} },
16376 .block_erase = spi_block_erase_60,
16377 }, {
16378 .eraseblocks = { {256 * 1024, 1} },
16379 .block_erase = spi_block_erase_c7,
16380 }
16381 },
16382 .printlock = spi_prettyprint_status_register_bp2_srwd,
16383 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
16384 .write = spi_chip_write_256,
16385 .read = spi_chip_read,
16386 .voltage = {2300, 3600},
16387 },
16388
16389 {
16390 .vendor = "Sanyo",
16391 .name = "LE25FU406B",
16392 .bustype = BUS_SPI,
16393 .manufacture_id = SANYO_ID,
16394 .model_id = SANYO_LE25FU406B,
16395 .total_size = 512,
16396 .page_size = 256,
16397 .feature_bits = FEATURE_WRSR_WREN,
16398 .tested = TEST_OK_PREW,
16399 .probe = probe_spi_res2,
16400 .probe_timing = TIMING_ZERO,
16401 .block_erasers =
16402 {
16403 {
16404 .eraseblocks = { {4 * 1024, 128} },
16405 .block_erase = spi_block_erase_d7,
16406 }, {
16407 .eraseblocks = { {64 * 1024, 8} },
16408 .block_erase = spi_block_erase_d8,
16409 }, {
16410 .eraseblocks = { {512 * 1024, 1} },
16411 .block_erase = spi_block_erase_c7,
16412 }
16413 },
16414 .printlock = spi_prettyprint_status_register_bp2_srwd,
16415 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
16416 .write = spi_chip_write_256,
16417 .read = spi_chip_read,
16418 .voltage = {2300, 3600},
16419 },
16420
16421 {
16422 .vendor = "Sanyo",
16423 .name = "LE25FU406C/LE25U40CMC",
16424 .bustype = BUS_SPI,
16425 .manufacture_id = SANYO_ID,
16426 .model_id = SANYO_LE25FU406C,
16427 .total_size = 512,
16428 .page_size = 256,
16429 .feature_bits = FEATURE_WRSR_WREN,
16430 .tested = TEST_OK_PREW,
16431 .probe = probe_spi_rdid,
16432 .probe_timing = TIMING_ZERO,
16433 .block_erasers =
16434 {
16435 {
16436 .eraseblocks = { {4 * 1024, 128} },
16437 .block_erase = spi_block_erase_20,
16438 }, {
16439 .eraseblocks = { {4 * 1024, 128} },
16440 .block_erase = spi_block_erase_d7,
16441 }, {
16442 .eraseblocks = { {64 * 1024, 8} },
16443 .block_erase = spi_block_erase_d8,
16444 }, {
16445 .eraseblocks = { {512 * 1024, 1} },
16446 .block_erase = spi_block_erase_60,
16447 }, {
16448 .eraseblocks = { {512 * 1024, 1} },
16449 .block_erase = spi_block_erase_c7,
16450 }
16451 },
16452 .printlock = spi_prettyprint_status_register_bp2_srwd,
16453 .unlock = spi_disable_blockprotect_bp2_srwd,
16454 .write = spi_chip_write_256,
16455 .read = spi_chip_read, /* Fast read (0x0B), dual read (0x3B) and dual I/O (0xBB) supported */
16456 .voltage = {2300, 3600},
16457 },
16458
16459 {
16460 .vendor = "Sanyo",
16461 .name = "LE25FW106",
16462 .bustype = BUS_SPI,
16463 .manufacture_id = SANYO_ID,
16464 .model_id = SANYO_LE25FW106,
16465 .total_size = 128,
16466 .page_size = 256,
16467 .feature_bits = FEATURE_WRSR_WREN,
16468 .tested = TEST_OK_PREW,
16469 .probe = probe_spi_res2,
16470 .probe_timing = TIMING_ZERO,
16471 .block_erasers =
16472 {
16473 {
16474 .eraseblocks = { {2 * 1024, 64} },
16475 .block_erase = spi_block_erase_d7,
16476 }, {
16477 .eraseblocks = { {32 * 1024, 4} },
16478 .block_erase = spi_block_erase_d8,
16479 }, {
16480 .eraseblocks = { {128 * 1024, 1} },
16481 .block_erase = spi_block_erase_c7,
16482 }
16483 },
16484 .printlock = spi_prettyprint_status_register_bp1_srwd, /* FIXME: Add ERSER error flag. */
16485 .unlock = spi_disable_blockprotect_bp1_srwd,
16486 .write = spi_chip_write_256,
16487 .read = spi_chip_read,
16488 .voltage = {2700, 3600},
16489 },
16490
16491 {
16492 .vendor = "Sanyo",
16493 .name = "LE25FW203A",
16494 .bustype = BUS_SPI,
16495 .manufacture_id = SANYO_ID,
16496 .model_id = SANYO_LE25FW203A,
16497 .total_size = 256,
16498 .page_size = 256,
16499 .tested = TEST_UNTESTED,
16500 .probe = probe_spi_rdid,
16501 .probe_timing = TIMING_ZERO,
16502 .block_erasers =
16503 {
16504 {
16505 .eraseblocks = { {256, 1024} },
16506 .block_erase = spi_block_erase_db,
16507 }, {
16508 .eraseblocks = { {64 * 1024, 4} },
16509 .block_erase = spi_block_erase_d8,
16510 }, {
16511 .eraseblocks = { {256 * 1024, 1} },
16512 .block_erase = spi_block_erase_c7,
16513 }
16514 },
16515 .printlock = spi_prettyprint_status_register_default_welwip,
16516 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
16517 .write = spi_chip_write_256,
16518 .read = spi_chip_read,
16519 .voltage = {2700, 3600},
16520 },
16521
16522 {
16523 .vendor = "Sanyo",
16524 .name = "LE25FW403A",
16525 .bustype = BUS_SPI,
16526 .manufacture_id = SANYO_ID,
16527 .model_id = SANYO_LE25FW403A,
16528 .total_size = 512,
16529 .page_size = 256,
16530 .tested = TEST_UNTESTED,
16531 .probe = probe_spi_rdid,
16532 .probe_timing = TIMING_ZERO,
16533 .block_erasers =
16534 {
16535 {
16536 .eraseblocks = { {256, 2 * 1024} },
16537 .block_erase = spi_block_erase_db,
16538 }, {
16539 .eraseblocks = { {64 * 1024, 8} },
16540 .block_erase = spi_block_erase_d8,
16541 }, {
16542 .eraseblocks = { {512 * 1024, 1} },
16543 .block_erase = spi_block_erase_c7,
16544 }
16545 },
16546 .printlock = spi_prettyprint_status_register_default_welwip,
16547 .unlock = NULL, /* #WP pin write-protects lower 64kB. */
16548 .write = spi_chip_write_256,
16549 .read = spi_chip_read,
16550 .voltage = {2700, 3600},
16551 },
16552
16553 {
16554 .vendor = "Sanyo",
16555 .name = "LE25FW406A",
16556 .bustype = BUS_SPI,
16557 .manufacture_id = SANYO_ID,
16558 .model_id = SANYO_LE25FW406A,
16559 .total_size = 512,
16560 .page_size = 256,
16561 .feature_bits = FEATURE_WRSR_WREN,
16562 .tested = TEST_OK_PREW,
16563 .probe = probe_spi_res2,
16564 .probe_timing = TIMING_ZERO,
16565 .block_erasers =
16566 {
16567 {
16568 .eraseblocks = { {4 * 1024, 128} },
16569 .block_erase = spi_block_erase_d7,
16570 }, {
16571 .eraseblocks = { {64 * 1024, 8} },
16572 .block_erase = spi_block_erase_d8,
16573 }, {
16574 .eraseblocks = { {512 * 1024, 1} },
16575 .block_erase = spi_block_erase_c7,
16576 }
16577 },
16578 .printlock = spi_prettyprint_status_register_plain,
16579 .unlock = spi_disable_blockprotect,
16580 .write = spi_chip_write_256,
16581 .read = spi_chip_read,
16582 .voltage = {2700, 3600},
16583 },
16584
16585 {
16586 .vendor = "Sanyo",
16587 .name = "LE25FW418A",
16588 .bustype = BUS_SPI,
16589 .manufacture_id = SANYO_ID,
16590 .model_id = SANYO_LE25FW418A,
16591 .total_size = 512,
16592 .page_size = 256,
16593 .feature_bits = FEATURE_WRSR_WREN,
16594 .tested = TEST_UNTESTED,
16595 .probe = probe_spi_res2,
16596 .probe_timing = TIMING_ZERO,
16597 .block_erasers =
16598 {
16599 {
16600 .eraseblocks = { {4 * 1024, 128} },
16601 .block_erase = spi_block_erase_d7,
16602 }, {
16603 .eraseblocks = { {64 * 1024, 8} },
16604 .block_erase = spi_block_erase_d8,
16605 }, {
16606 .eraseblocks = { {512 * 1024, 1} },
16607 .block_erase = spi_block_erase_c7,
16608 }
16609 },
16610 .printlock = spi_prettyprint_status_register_bp2_srwd,
16611 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
16612 .write = spi_chip_write_256,
16613 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
16614 .voltage = {2700, 3600},
16615 },
16616
16617 {
16618 .vendor = "Sanyo",
16619 .name = "LE25FW806",
16620 .bustype = BUS_SPI,
16621 .manufacture_id = SANYO_ID,
16622 .model_id = SANYO_LE25FW806,
16623 .total_size = 1024,
16624 .page_size = 256,
16625 .feature_bits = FEATURE_WRSR_WREN,
16626 .tested = TEST_UNTESTED,
16627 .probe = probe_spi_res2,
16628 .probe_timing = TIMING_ZERO,
16629 .block_erasers =
16630 {
16631 {
16632 .eraseblocks = { {4 * 1024, 256} },
16633 .block_erase = spi_block_erase_20,
16634 }, {
16635 .eraseblocks = { {4 * 1024, 256} },
16636 .block_erase = spi_block_erase_d7,
16637 }, {
16638 .eraseblocks = { {64 * 1024, 16} },
16639 .block_erase = spi_block_erase_d8,
16640 }, {
16641 .eraseblocks = { {1024 * 1024, 1} },
16642 .block_erase = spi_block_erase_c7,
16643 }
16644 },
16645 .printlock = spi_prettyprint_status_register_bp2_srwd,
16646 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
16647 .write = spi_chip_write_256,
16648 .read = spi_chip_read,
16649 .voltage = {2700, 3600},
16650 },
16651
16652 {
16653 .vendor = "Sanyo",
16654 .name = "LE25FW808",
16655 .bustype = BUS_SPI,
16656 .manufacture_id = SANYO_ID,
16657 .model_id = SANYO_LE25FW808,
16658 .total_size = 1024,
16659 .page_size = 256,
16660 .feature_bits = FEATURE_WRSR_WREN,
16661 .tested = TEST_UNTESTED,
16662 .probe = probe_spi_res2,
16663 .probe_timing = TIMING_ZERO,
16664 .block_erasers =
16665 {
16666 {
16667 .eraseblocks = { {8 * 1024, 128} },
16668 .block_erase = spi_block_erase_d7,
16669 }, {
16670 .eraseblocks = { {64 * 1024, 16} },
16671 .block_erase = spi_block_erase_d8,
16672 }, {
16673 .eraseblocks = { {1024 * 1024, 1} },
16674 .block_erase = spi_block_erase_c7,
16675 }
16676 },
16677 .printlock = spi_prettyprint_status_register_bp2_srwd,
16678 .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */
16679 .write = spi_chip_write_256,
16680 .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */
16681 .voltage = {2700, 3600},
16682 },
16683
16684 {
16685 .vendor = "Sharp",
16686 .name = "LH28F008BJT-BTLZ1",
16687 .bustype = BUS_PARALLEL,
16688 .manufacture_id = SHARP_ID,
16689 .model_id = SHARP_LH28F008BJ__PB,
16690 .total_size = 1024,
16691 .page_size = 64 * 1024,
16692 .tested = TEST_OK_PREW,
16693 .probe = probe_82802ab,
16694 .probe_timing = TIMING_ZERO,
16695 .block_erasers =
16696 {
16697 {
16698 .eraseblocks = {
16699 {8 * 1024, 8},
16700 {64 * 1024, 15}
16701 },
16702 .block_erase = erase_block_82802ab,
16703 }, {
16704 .eraseblocks = { {1024 * 1024, 1} },
16705 .block_erase = erase_sector_49lfxxxc,
16706 }
16707 },
16708 .unlock = unlock_lh28f008bjt,
16709 .write = write_82802ab,
16710 .read = read_memmapped,
16711 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010016712 .prepare_access = prepare_memory_access,
16713 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016714 },
16715
16716 {
16717 .vendor = "Sharp",
16718 .name = "LHF00L04",
16719 .bustype = BUS_FWH, /* A/A Mux */
16720 .manufacture_id = SHARP_ID,
16721 .model_id = SHARP_LHF00L04,
16722 .total_size = 1024,
16723 .page_size = 64 * 1024,
Nico Huberb1974022023-01-12 13:13:12 +010016724 .feature_bits = FEATURE_EITHER_RESET,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016725 .tested = TEST_UNTESTED,
16726 .probe = probe_82802ab,
16727 .probe_timing = TIMING_ZERO,
16728 .block_erasers =
16729 {
16730 {
16731 .eraseblocks = {
16732 {64 * 1024, 15},
16733 {8 * 1024, 8}
16734 },
16735 .block_erase = erase_block_82802ab,
16736 }, {
16737 .eraseblocks = {
16738 {1024 * 1024, 1}
16739 },
16740 .block_erase = NULL, /* 30 D0, only in A/A mux mode */
16741 },
16742 },
16743 .unlock = unlock_regspace2_uniform_64k,
16744 .write = write_82802ab,
16745 .read = read_memmapped,
16746 .voltage = {3000, 3600},
Nico Huberb1974022023-01-12 13:13:12 +010016747 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010016748 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +100016749 },
16750
16751 {
16752 .vendor = "Spansion",
16753 .name = "S25FL004A",
16754 .bustype = BUS_SPI,
16755 .manufacture_id = SPANSION_ID,
16756 .model_id = SPANSION_S25FL004A,
16757 .total_size = 512,
16758 .page_size = 256,
16759 .feature_bits = FEATURE_WRSR_WREN,
16760 .tested = TEST_UNTESTED,
16761 .probe = probe_spi_rdid,
16762 .probe_timing = TIMING_ZERO,
16763 .block_erasers =
16764 {
16765 {
16766 .eraseblocks = { {64 * 1024, 8} },
16767 .block_erase = spi_block_erase_d8,
16768 }, {
16769 .eraseblocks = { {512 * 1024, 1} },
16770 .block_erase = spi_block_erase_c7,
16771 }
16772 },
16773 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16774 .unlock = spi_disable_blockprotect,
16775 .write = spi_chip_write_256,
16776 .read = spi_chip_read,
16777 .voltage = {2700, 3600},
16778 },
16779
16780 {
16781 .vendor = "Spansion",
16782 .name = "S25FL008A",
16783 .bustype = BUS_SPI,
16784 .manufacture_id = SPANSION_ID,
16785 .model_id = SPANSION_S25FL008A,
16786 .total_size = 1024,
16787 .page_size = 256,
16788 .feature_bits = FEATURE_WRSR_WREN,
16789 .tested = TEST_OK_PRE,
16790 .probe = probe_spi_rdid,
16791 .probe_timing = TIMING_ZERO,
16792 .block_erasers =
16793 {
16794 {
16795 .eraseblocks = { {64 * 1024, 16} },
16796 .block_erase = spi_block_erase_d8,
16797 }, {
16798 .eraseblocks = { {1024 * 1024, 1} },
16799 .block_erase = spi_block_erase_c7,
16800 }
16801 },
16802 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16803 .unlock = spi_disable_blockprotect,
16804 .write = spi_chip_write_256,
16805 .read = spi_chip_read,
16806 .voltage = {2700, 3600},
16807 },
16808
16809 {
16810 .vendor = "Spansion",
16811 .name = "S25FL016A",
16812 .bustype = BUS_SPI,
16813 .manufacture_id = SPANSION_ID,
16814 .model_id = SPANSION_S25FL016A,
16815 .total_size = 2048,
16816 .page_size = 256,
16817 .feature_bits = FEATURE_WRSR_WREN,
16818 .tested = TEST_OK_PREW,
16819 .probe = probe_spi_rdid,
16820 .probe_timing = TIMING_ZERO,
16821 .block_erasers =
16822 {
16823 {
16824 .eraseblocks = { {64 * 1024, 32} },
16825 .block_erase = spi_block_erase_d8,
16826 }, {
16827 .eraseblocks = { {2 * 1024 * 1024, 1} },
16828 .block_erase = spi_block_erase_c7,
16829 }
16830 },
16831 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16832 .unlock = spi_disable_blockprotect,
16833 .write = spi_chip_write_256,
16834 .read = spi_chip_read,
16835 .voltage = {2700, 3600},
16836 },
16837
16838 {
16839 .vendor = "Spansion",
16840 .name = "S25FL032A/P",
16841 .bustype = BUS_SPI,
16842 .manufacture_id = SPANSION_ID,
16843 .model_id = SPANSION_S25FL032A,
16844 .total_size = 4096,
16845 .page_size = 256,
16846 .feature_bits = FEATURE_WRSR_WREN,
16847 .tested = TEST_OK_PREW,
16848 .probe = probe_spi_rdid,
16849 .probe_timing = TIMING_ZERO,
16850 .block_erasers =
16851 {
16852 {
16853 .eraseblocks = { {64 * 1024, 64} },
16854 .block_erase = spi_block_erase_d8,
16855 }, {
16856 .eraseblocks = { {4 * 1024 * 1024, 1} },
16857 .block_erase = spi_block_erase_c7,
16858 }
16859 },
16860 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16861 .unlock = spi_disable_blockprotect,
16862 .write = spi_chip_write_256,
16863 .read = spi_chip_read,
16864 .voltage = {2700, 3600},
16865 },
16866
16867 {
16868 .vendor = "Spansion",
16869 .name = "S25FL064A/P",
16870 .bustype = BUS_SPI,
16871 .manufacture_id = SPANSION_ID,
16872 .model_id = SPANSION_S25FL064A,
16873 .total_size = 8192,
16874 .page_size = 256,
16875 .feature_bits = FEATURE_WRSR_WREN,
16876 .tested = TEST_OK_PREW,
16877 .probe = probe_spi_rdid,
16878 .probe_timing = TIMING_ZERO,
16879 .block_erasers =
16880 {
16881 {
16882 .eraseblocks = { {64 * 1024, 128} },
16883 .block_erase = spi_block_erase_d8,
16884 }, {
16885 .eraseblocks = { {8 * 1024 * 1024, 1} },
16886 .block_erase = spi_block_erase_c7,
16887 }
16888 },
16889 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
16890 .unlock = spi_disable_blockprotect,
16891 .write = spi_chip_write_256,
16892 .read = spi_chip_read,
16893 .voltage = {2700, 3600},
16894 },
16895
16896 {
16897 .vendor = "Spansion",
16898 .name = "S25FL116K/S25FL216K", /* FIXME: separate them */
16899 .bustype = BUS_SPI,
16900 .manufacture_id = SPANSION_ID,
16901 .model_id = SPANSION_S25FL216,
16902 .total_size = 2048,
16903 .page_size = 256,
16904 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (S25FL116K only) */
16905 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16906 .tested = TEST_UNTESTED,
16907 .probe = probe_spi_rdid,
16908 .probe_timing = TIMING_ZERO,
16909 .block_erasers =
16910 {
16911 {
16912 .eraseblocks = { {4 * 1024, 512} },
16913 .block_erase = spi_block_erase_20,
16914 }, {
16915 .eraseblocks = { {64 * 1024, 32} },
16916 .block_erase = spi_block_erase_d8,
16917 }, {
16918 .eraseblocks = { { 2048 * 1024, 1} },
16919 .block_erase = spi_block_erase_60,
16920 }, {
16921 .eraseblocks = { { 2048 * 1024, 1} },
16922 .block_erase = spi_block_erase_c7,
16923 }
16924 },
16925 .printlock = spi_prettyprint_status_register_bp3_srwd,
16926 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
16927 .write = spi_chip_write_256,
16928 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
16929 .voltage = {2700, 3600},
16930 },
16931
16932 {
16933 .vendor = "Spansion",
16934 .name = "S25FL127S-256kB", /* uniform 256kB sectors */
16935 .bustype = BUS_SPI,
16936 .manufacture_id = SPANSION_ID,
16937 .model_id = SPANSION_S25FL128,
16938 .total_size = 16384,
16939 .page_size = 512,
16940 /* supports 4B addressing */
16941 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
16942 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16943 .tested = TEST_UNTESTED,
16944 .probe = probe_spi_rdid,
16945 .probe_timing = TIMING_ZERO,
16946 .block_erasers =
16947 {
16948 {
16949 .eraseblocks = { {256 * 1024, 64} },
16950 .block_erase = spi_block_erase_d8,
16951 }, {
16952 .eraseblocks = { { 16384 * 1024, 1} },
16953 .block_erase = spi_block_erase_60,
16954 }, {
16955 .eraseblocks = { { 16384 * 1024, 1} },
16956 .block_erase = spi_block_erase_c7,
16957 }
16958 },
16959 .printlock = spi_prettyprint_status_register_bp2_srwd,
16960 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
16961 .write = spi_chip_write_256, /* Multi I/O supported */
16962 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
16963 .voltage = {2700, 3600},
16964 },
16965
16966 {
16967 .vendor = "Spansion",
16968 .name = "S25FL127S-64kB", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
16969 .bustype = BUS_SPI,
16970 .manufacture_id = SPANSION_ID,
16971 .model_id = SPANSION_S25FL128,
16972 .total_size = 16384,
16973 .page_size = 256,
16974 /* supports 4B addressing */
16975 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
16976 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
16977 .tested = TEST_OK_PREW,
16978 /* FIXME: we should distinguish the configuration on probing time like we do for AT45DB chips */
16979 .probe = probe_spi_rdid,
16980 .probe_timing = TIMING_ZERO,
16981 .block_erasers =
16982 {
16983 {
16984 /* This chip supports erasing of 32 so-called "parameter sectors" with
16985 * opcode 0x20 which may be configured to be on top or bottom of the address
16986 * space. Trying to access an address outside these 4kB blocks does have no
16987 * effect on the memory contents, e.g.
16988 .eraseblocks = {
16989 {4 * 1024, 32},
16990 {64 * 1024, 254} // inaccessible
16991 },
16992 .block_erase = spi_block_erase_20,
16993 }, { */
16994 .eraseblocks = { { 64 * 1024, 256} },
16995 .block_erase = spi_block_erase_d8,
16996 }, {
16997 .eraseblocks = { { 16384 * 1024, 1} },
16998 .block_erase = spi_block_erase_60,
16999 }, {
17000 .eraseblocks = { { 16384 * 1024, 1} },
17001 .block_erase = spi_block_erase_c7,
17002 }
17003 },
17004 .printlock = spi_prettyprint_status_register_bp2_srwd,
17005 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
17006 .write = spi_chip_write_256, /* Multi I/O supported */
17007 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
17008 .voltage = {2700, 3600},
17009 },
17010
17011 {
17012 .vendor = "Spansion",
Nico Huberfffc48d2022-05-28 14:26:06 +020017013 .name = "S25FL128L",
17014 .bustype = BUS_SPI,
17015 .manufacture_id = SPANSION_ID,
17016 .model_id = SPANSION_S25FL128L,
17017 .total_size = 16384,
17018 .page_size = 256,
17019 /* 4 x 256B Security Region (OTP) */
17020 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT3 | FEATURE_OTP,
17021 .tested = TEST_UNTESTED,
17022 .probe = probe_spi_rdid,
17023 .probe_timing = TIMING_ZERO,
17024 .block_erasers =
17025 {
17026 {
17027 .eraseblocks = { {4 * 1024, 4096} },
17028 .block_erase = spi_block_erase_20,
17029 }, {
17030 .eraseblocks = { {32 * 1024, 512} },
17031 .block_erase = spi_block_erase_52,
17032 }, {
17033 .eraseblocks = { {64 * 1024, 256} },
17034 .block_erase = spi_block_erase_d8,
17035 }, {
17036 .eraseblocks = { {16384 * 1024, 1} },
17037 .block_erase = spi_block_erase_60,
17038 }, {
17039 .eraseblocks = { {16384 * 1024, 1} },
17040 .block_erase = spi_block_erase_c7,
17041 }
17042 },
17043 .printlock = spi_prettyprint_status_register_bp2_srwd,
17044 .unlock = spi_disable_blockprotect_bp2_srwd,
17045 .write = spi_chip_write_256,
17046 .read = spi_chip_read, /* Fast read (0x0B) supported */
17047 .voltage = {2700, 3600},
17048 .reg_bits =
17049 {
17050 /*
17051 * Note: This chip has a read-only Status Register 2 that is not
17052 * counted here. Registers are mapped as follows:
17053 * STATUS1 ... Status Register 1
17054 * STATUS2 ... Configuration Register 1
17055 * STATUS3 ... Configuration Register 2
17056 */
17057 .srp = {STATUS1, 7, RW},
17058 .srl = {STATUS2, 0, RW},
17059 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
17060 .tb = {STATUS1, 5, RW},
17061 .sec = {STATUS1, 6, RW},
17062 .cmp = {STATUS2, 6, RW},
17063 .wps = {STATUS3, 2, RW},
17064 },
Nico Huberaabb3e02023-01-13 00:22:30 +010017065 .wp_write_cfg = spi_wp_write_cfg,
17066 .wp_read_cfg = spi_wp_read_cfg,
17067 .wp_get_ranges = spi_wp_get_available_ranges,
Nico Huberfffc48d2022-05-28 14:26:06 +020017068 .decode_range = decode_range_spi25,
17069 },
17070
17071 {
17072 .vendor = "Spansion",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017073 .name = "S25FL128P......0", /* uniform 64 kB sectors */
17074 .bustype = BUS_SPI,
17075 .manufacture_id = SPANSION_ID,
17076 .model_id = SPANSION_S25FL128,
17077 .total_size = 16384,
17078 .page_size = 256,
17079 .feature_bits = FEATURE_WRSR_WREN,
17080 .tested = TEST_OK_PREW,
17081 .probe = probe_spi_rdid,
17082 .probe_timing = TIMING_ZERO,
17083 .block_erasers =
17084 {
17085 {
17086 .eraseblocks = { {64 * 1024, 256} },
17087 .block_erase = spi_block_erase_20,
17088 }, {
17089 .eraseblocks = { {64 * 1024, 256} },
17090 .block_erase = spi_block_erase_d8,
17091 }, {
17092 .eraseblocks = { { 16384 * 1024, 1} },
17093 .block_erase = spi_block_erase_60,
17094 }, {
17095 .eraseblocks = { { 16384 * 1024, 1} },
17096 .block_erase = spi_block_erase_c7,
17097 }
17098 },
17099 .printlock = spi_prettyprint_status_register_bp3_srwd,
17100 .unlock = spi_disable_blockprotect_bp3_srwd,
17101 .write = spi_chip_write_256,
17102 .read = spi_chip_read, /* Fast read (0x0B) supported */
17103 .voltage = {2700, 3600},
17104 },
17105
17106 {
17107 .vendor = "Spansion",
17108 .name = "S25FL128P......1", /* uniform 256kB sectors */
17109 .bustype = BUS_SPI,
17110 .manufacture_id = SPANSION_ID,
17111 .model_id = SPANSION_S25FL128,
17112 .total_size = 16384,
17113 .page_size = 256,
17114 .feature_bits = FEATURE_WRSR_WREN,
17115 .tested = TEST_UNTESTED,
17116 .probe = probe_spi_rdid,
17117 .probe_timing = TIMING_ZERO,
17118 .block_erasers =
17119 {
17120 {
17121 .eraseblocks = { {256 * 1024, 64} },
17122 .block_erase = spi_block_erase_d8,
17123 }, {
17124 .eraseblocks = { { 16384 * 1024, 1} },
17125 .block_erase = spi_block_erase_c7,
17126 }
17127 },
17128 .printlock = spi_prettyprint_status_register_bp2_srwd,
17129 .unlock = spi_disable_blockprotect_bp2_srwd,
17130 .write = spi_chip_write_256,
17131 .read = spi_chip_read, /* Fast read (0x0B) supported */
17132 .voltage = {2700, 3600},
17133 },
17134
17135 {
17136 .vendor = "Spansion",
17137 .name = "S25FL128S......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
17138 .bustype = BUS_SPI,
17139 .manufacture_id = SPANSION_ID,
17140 .model_id = SPANSION_S25FL128,
17141 .total_size = 16384,
17142 .page_size = 256,
17143 /* supports 4B addressing */
17144 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
17145 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17146 .tested = TEST_OK_PREW,
17147 .probe = probe_spi_rdid,
17148 .probe_timing = TIMING_ZERO,
17149 .block_erasers =
17150 {
17151 {
17152 /* This chip supports erasing of the 32 so-called "parameter sectors" with
17153 * opcode 0x20. Trying to access an address outside these 4kB blocks does
17154 * have no effect on the memory contents, but sets a flag in the SR.
17155 .eraseblocks = {
17156 {4 * 1024, 32},
17157 {64 * 1024, 254} // inaccessible
17158 },
17159 .block_erase = spi_block_erase_20,
17160 }, { */
17161 .eraseblocks = { { 64 * 1024, 256} },
17162 .block_erase = spi_block_erase_d8,
17163 }, {
17164 .eraseblocks = { { 16384 * 1024, 1} },
17165 .block_erase = spi_block_erase_60,
17166 }, {
17167 .eraseblocks = { { 16384 * 1024, 1} },
17168 .block_erase = spi_block_erase_c7,
17169 }
17170 },
17171 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
17172 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
17173 .write = spi_chip_write_256, /* Multi I/O supported */
17174 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
17175 .voltage = {2700, 3600},
17176 },
17177
17178 {
17179 .vendor = "Spansion",
17180 .name = "S25FL128S......1", /* uniform 256 kB sectors */
17181 .bustype = BUS_SPI,
17182 .manufacture_id = SPANSION_ID,
17183 .model_id = SPANSION_S25FL128,
17184 .total_size = 16384,
17185 .page_size = 512,
17186 /* supports 4B addressing */
17187 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
17188 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17189 .tested = TEST_UNTESTED,
17190 .probe = probe_spi_rdid,
17191 .probe_timing = TIMING_ZERO,
17192 .block_erasers =
17193 {
17194 {
17195 .eraseblocks = { {256 * 1024, 64} },
17196 .block_erase = spi_block_erase_d8,
17197 }, {
17198 .eraseblocks = { { 16384 * 1024, 1} },
17199 .block_erase = spi_block_erase_60,
17200 }, {
17201 .eraseblocks = { { 16384 * 1024, 1} },
17202 .block_erase = spi_block_erase_c7,
17203 }
17204 },
17205 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
17206 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
17207 .write = spi_chip_write_256, /* Multi I/O supported */
17208 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
17209 .voltage = {2700, 3600},
17210 },
17211
17212 {
17213 .vendor = "Spansion",
17214 .name = "S25FL129P......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
17215 .bustype = BUS_SPI,
17216 .manufacture_id = SPANSION_ID,
17217 .model_id = SPANSION_S25FL128,
17218 .total_size = 16384,
17219 .page_size = 256,
17220 /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */
17221 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17222 .tested = TEST_OK_PREW,
17223 .probe = probe_spi_rdid,
17224 .probe_timing = TIMING_ZERO,
17225 .block_erasers =
17226 {
17227 {
17228 /* FIXME: This chip supports erasing of the 32 so-called "parameter sectors" with
17229 * opcode 0x20. Trying to access an address outside these 4kB blocks does have no
17230 * effect on the memory contents, but sets a flag in the SR.
17231 .eraseblocks = {
17232 {4 * 1024, 32},
17233 {64 * 1024, 254} // inaccessible
17234 },
17235 .block_erase = spi_block_erase_20,
17236 }, { */
17237 /* FIXME: Additionally it also supports erase opcode 40h for the respective 2*4 kB pairs
17238 .eraseblocks = {
17239 {8 * 1024, 16},
17240 {64 * 1024, 254} // inaccessible
17241 },
17242 .block_erase = spi_block_erase_40,
17243 }, { */
17244 .eraseblocks = { { 64 * 1024, 256} },
17245 .block_erase = spi_block_erase_d8,
17246 }, {
17247 .eraseblocks = { { 16384 * 1024, 1} },
17248 .block_erase = spi_block_erase_60,
17249 }, {
17250 .eraseblocks = { { 16384 * 1024, 1} },
17251 .block_erase = spi_block_erase_c7,
17252 }
17253 },
17254 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */
17255 .unlock = spi_disable_blockprotect_bp2_srwd,
17256 .write = spi_chip_write_256, /* Multi I/O supported */
17257 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
17258 .voltage = {2700, 3600},
17259 },
17260
17261 {
17262 .vendor = "Spansion",
17263 .name = "S25FL129P......1", /* uniform 256 kB sectors */
17264 .bustype = BUS_SPI,
17265 .manufacture_id = SPANSION_ID,
17266 .model_id = SPANSION_S25FL128,
17267 .total_size = 16384,
17268 .page_size = 256,
17269 /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */
17270 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17271 .tested = TEST_UNTESTED,
17272 .probe = probe_spi_rdid,
17273 .probe_timing = TIMING_ZERO,
17274 .block_erasers =
17275 {
17276 {
17277 .eraseblocks = { {256 * 1024, 64} },
17278 .block_erase = spi_block_erase_d8,
17279 }, {
17280 .eraseblocks = { { 16384 * 1024, 1} },
17281 .block_erase = spi_block_erase_60,
17282 }, {
17283 .eraseblocks = { { 16384 * 1024, 1} },
17284 .block_erase = spi_block_erase_c7,
17285 }
17286 },
17287 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */
17288 .unlock = spi_disable_blockprotect_bp2_srwd,
17289 .write = spi_chip_write_256, /* Multi I/O supported */
17290 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
17291 .voltage = {2700, 3600},
17292 },
17293
17294 {
17295 .vendor = "Spansion",
17296 .name = "S25FL132K",
17297 .bustype = BUS_SPI,
17298 .manufacture_id = SPANSION_ID,
17299 .model_id = SPANSION_S25FL132K,
17300 .total_size = 4096,
17301 .page_size = 256,
17302 /* OTP: 768B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
17303 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17304 .tested = TEST_UNTESTED,
17305 .probe = probe_spi_rdid,
17306 .probe_timing = TIMING_ZERO,
17307 .block_erasers =
17308 {
17309 {
17310 .eraseblocks = { {4 * 1024, 1024} },
17311 .block_erase = spi_block_erase_20,
17312 }, {
17313 .eraseblocks = { {64 * 1024, 64} },
17314 .block_erase = spi_block_erase_d8,
17315 }, {
17316 .eraseblocks = { { 4096 * 1024, 1} },
17317 .block_erase = spi_block_erase_60,
17318 }, {
17319 .eraseblocks = { { 4096 * 1024, 1} },
17320 .block_erase = spi_block_erase_c7,
17321 }
17322 },
17323 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
17324 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
17325 .write = spi_chip_write_256,
17326 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
17327 .voltage = {2700, 3600},
17328 },
17329
17330 {
17331 .vendor = "Spansion",
17332 .name = "S25FL164K",
17333 .bustype = BUS_SPI,
17334 .manufacture_id = SPANSION_ID,
17335 .model_id = SPANSION_S25FL164K,
17336 .total_size = 8192,
17337 .page_size = 256,
17338 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
17339 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
17340 .tested = TEST_OK_PREW,
17341 .probe = probe_spi_rdid,
17342 .probe_timing = TIMING_ZERO,
17343 .block_erasers =
17344 {
17345 {
17346 .eraseblocks = { {4 * 1024, 2048} },
17347 .block_erase = spi_block_erase_20,
17348 }, {
17349 .eraseblocks = { {64 * 1024, 128} },
17350 .block_erase = spi_block_erase_d8,
17351 }, {
17352 .eraseblocks = { { 8192 * 1024, 1} },
17353 .block_erase = spi_block_erase_60,
17354 }, {
17355 .eraseblocks = { { 8192 * 1024, 1} },
17356 .block_erase = spi_block_erase_c7,
17357 }
17358 },
17359 .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */
17360 .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */
17361 .write = spi_chip_write_256,
17362 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
17363 .voltage = {2700, 3600},
17364 },
17365
17366 {
17367 .vendor = "Spansion",
17368 .name = "S25FL204K",
17369 .bustype = BUS_SPI,
17370 .manufacture_id = SPANSION_ID,
17371 .model_id = SPANSION_S25FL204,
17372 .total_size = 512,
17373 .page_size = 256,
17374 .feature_bits = FEATURE_WRSR_WREN,
17375 .tested = TEST_OK_PR,
17376 .probe = probe_spi_rdid,
17377 .probe_timing = TIMING_ZERO,
17378 .block_erasers =
17379 {
17380 {
17381 .eraseblocks = { {4 * 1024, 128} },
17382 .block_erase = spi_block_erase_20,
17383 }, {
17384 .eraseblocks = { {64 * 1024, 8} },
17385 .block_erase = spi_block_erase_d8,
17386 }, {
17387 .eraseblocks = { { 512 * 1024, 1} },
17388 .block_erase = spi_block_erase_60,
17389 }, {
17390 .eraseblocks = { { 512 * 1024, 1} },
17391 .block_erase = spi_block_erase_c7,
17392 }
17393 },
17394 .printlock = spi_prettyprint_status_register_bp3_srwd,
17395 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
17396 .write = spi_chip_write_256,
17397 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
17398 .voltage = {2700, 3600},
17399 },
17400
17401 {
17402 .vendor = "Spansion",
17403 .name = "S25FL208K",
17404 .bustype = BUS_SPI,
17405 .manufacture_id = SPANSION_ID,
17406 .model_id = SPANSION_S25FL208,
17407 .total_size = 1024,
17408 .page_size = 256,
17409 .feature_bits = FEATURE_WRSR_WREN,
17410 .tested = TEST_OK_PREW,
17411 .probe = probe_spi_rdid,
17412 .probe_timing = TIMING_ZERO,
17413 .block_erasers =
17414 {
17415 {
17416 .eraseblocks = { {4 * 1024, 256} },
17417 .block_erase = spi_block_erase_20,
17418 }, {
17419 .eraseblocks = { {64 * 1024, 16} },
17420 .block_erase = spi_block_erase_d8,
17421 }, {
17422 .eraseblocks = { { 1024 * 1024, 1} },
17423 .block_erase = spi_block_erase_60,
17424 }, {
17425 .eraseblocks = { { 1024 * 1024, 1} },
17426 .block_erase = spi_block_erase_c7,
17427 }
17428 },
17429 .printlock = spi_prettyprint_status_register_bp3_srwd,
17430 .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */
17431 .write = spi_chip_write_256,
17432 .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */
17433 .voltage = {2700, 3600},
17434 },
17435
17436 {
17437 .vendor = "Spansion",
Nico Huberfffc48d2022-05-28 14:26:06 +020017438 .name = "S25FL256L",
17439 .bustype = BUS_SPI,
17440 .manufacture_id = SPANSION_ID,
17441 .model_id = SPANSION_S25FL256L,
17442 .total_size = 32768,
17443 .page_size = 256,
17444 /* 4 x 256B Security Region (OTP) */
17445 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT3 | FEATURE_OTP |
17446 FEATURE_4BA_ENTER | FEATURE_4BA_NATIVE,
17447 .tested = TEST_UNTESTED,
17448 .probe = probe_spi_rdid,
17449 .probe_timing = TIMING_ZERO,
17450 .block_erasers =
17451 {
17452 {
17453 .eraseblocks = { {4 * 1024, 8192} },
17454 .block_erase = spi_block_erase_21,
17455 }, {
17456 .eraseblocks = { {4 * 1024, 8192} },
17457 .block_erase = spi_block_erase_20,
17458 }, {
17459 .eraseblocks = { {32 * 1024, 1024} },
17460 .block_erase = spi_block_erase_53,
17461 }, {
17462 .eraseblocks = { {32 * 1024, 1024} },
17463 .block_erase = spi_block_erase_52,
17464 }, {
17465 .eraseblocks = { {64 * 1024, 512} },
17466 .block_erase = spi_block_erase_dc,
17467 }, {
17468 .eraseblocks = { {64 * 1024, 512} },
17469 .block_erase = spi_block_erase_d8,
17470 }, {
17471 .eraseblocks = { {32768 * 1024, 1} },
17472 .block_erase = spi_block_erase_60,
17473 }, {
17474 .eraseblocks = { {32768 * 1024, 1} },
17475 .block_erase = spi_block_erase_c7,
17476 }
17477 },
17478 .printlock = spi_prettyprint_status_register_bp3_srwd,
17479 .unlock = spi_disable_blockprotect_bp3_srwd,
17480 .write = spi_chip_write_256,
17481 .read = spi_chip_read, /* Fast read (0x0B) supported */
17482 .voltage = {2700, 3600},
17483 .reg_bits =
17484 {
17485 /*
17486 * Note: This chip has a read-only Status Register 2 that is not
17487 * counted here. Registers are mapped as follows:
17488 * STATUS1 ... Status Register 1
17489 * STATUS2 ... Configuration Register 1
17490 * STATUS3 ... Configuration Register 2
17491 */
17492 .srp = {STATUS1, 7, RW},
17493 .srl = {STATUS2, 0, RW},
17494 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}},
17495 .tb = {STATUS1, 6, RW},
17496 .cmp = {STATUS2, 6, RW},
17497 .wps = {STATUS3, 2, RW},
17498 },
Nico Huberaabb3e02023-01-13 00:22:30 +010017499 .wp_write_cfg = spi_wp_write_cfg,
17500 .wp_read_cfg = spi_wp_read_cfg,
17501 .wp_get_ranges = spi_wp_get_available_ranges,
Nico Huberfffc48d2022-05-28 14:26:06 +020017502 .decode_range = decode_range_spi25,
Nico Huberab6b18f2023-01-11 23:38:20 +010017503 .prepare_access = spi_prepare_4ba,
Nico Huberfffc48d2022-05-28 14:26:06 +020017504 },
17505
17506 {
17507 .vendor = "Spansion",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017508 .name = "S25FL256S......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */
17509 .bustype = BUS_SPI,
17510 .manufacture_id = SPANSION_ID,
17511 .model_id = SPANSION_S25FL256,
17512 .total_size = 32768,
17513 .page_size = 256,
17514 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
Nico Huber9bb8a322022-05-24 15:07:34 +020017515 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP |
17516 FEATURE_4BA_NATIVE | FEATURE_4BA_ENTER_EAR7 | FEATURE_4BA_EAR_1716,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017517 .tested = TEST_OK_PREW,
17518 .probe = probe_spi_rdid,
17519 .probe_timing = TIMING_ZERO,
17520 .block_erasers =
17521 {
17522 {
17523 /* This chip supports erasing of the 32 so-called "parameter sectors" with
17524 * opcode 0x20. Trying to access an address outside these 4kB blocks does
17525 * have no effect on the memory contents, but sets a flag in the SR.
17526 .eraseblocks = {
17527 {4 * 1024, 32},
17528 {64 * 1024, 254} // inaccessible
17529 },
17530 .block_erase = spi_block_erase_20,
17531 }, { */
17532 .eraseblocks = { { 64 * 1024, 512} },
17533 .block_erase = spi_block_erase_dc,
17534 }, {
17535 .eraseblocks = { { 64 * 1024, 512} },
17536 .block_erase = spi_block_erase_d8,
17537 }, {
17538 .eraseblocks = { { 32768 * 1024, 1} },
17539 .block_erase = spi_block_erase_60,
17540 }, {
17541 .eraseblocks = { { 32768 * 1024, 1} },
17542 .block_erase = spi_block_erase_c7,
17543 }
17544 },
17545 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
17546 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
17547 .write = spi_chip_write_256, /* Multi I/O supported */
17548 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
17549 .voltage = {2700, 3600},
Nico Huberab6b18f2023-01-11 23:38:20 +010017550 .prepare_access = spi_prepare_4ba,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017551 },
17552
17553 {
Bernhard Urban-Forster05c629b2020-02-02 21:29:48 +010017554 .vendor = "Spansion",
17555 .name = "S25FL512S",
17556 .bustype = BUS_SPI,
17557 .manufacture_id = SPANSION_ID,
17558 .model_id = SPANSION_S25FL512,
17559 .total_size = 65536, /* 512 Mb (=> 64 MB)) */
17560 .page_size = 256,
17561 /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */
Nico Huber26237922022-06-20 19:37:37 +020017562 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP |
17563 FEATURE_4BA_NATIVE | FEATURE_4BA_ENTER_EAR7 | FEATURE_4BA_EAR_1716,
17564 .tested = TEST_UNTESTED,
Bernhard Urban-Forster05c629b2020-02-02 21:29:48 +010017565 .probe = probe_spi_rdid,
17566 .probe_timing = TIMING_ZERO,
17567 .block_erasers =
17568 {
17569 {
17570 .eraseblocks = { { 256 * 1024, 256} },
17571 .block_erase = spi_block_erase_dc,
17572 }, {
Nico Huberbb608ff2022-05-24 15:33:26 +020017573 .eraseblocks = { { 256 * 1024, 256} },
17574 .block_erase = spi_block_erase_d8,
17575 }, {
Bernhard Urban-Forster05c629b2020-02-02 21:29:48 +010017576 .eraseblocks = { { 65536 * 1024, 1} },
17577 .block_erase = spi_block_erase_60,
17578 }, {
17579 .eraseblocks = { { 65536 * 1024, 1} },
17580 .block_erase = spi_block_erase_c7,
17581 }
17582 },
17583 .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */
17584 .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */
17585 .write = spi_chip_write_256, /* Multi I/O supported, IGNORE for now */
17586 .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
17587 .voltage = {2700, 3600},
Nico Huberab6b18f2023-01-11 23:38:20 +010017588 .prepare_access = spi_prepare_4ba,
Bernhard Urban-Forster05c629b2020-02-02 21:29:48 +010017589 },
17590
17591 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000017592 .vendor = "SyncMOS/MoselVitelic",
17593 .name = "{F,S,V}29C51001B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017594 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017595 .manufacture_id = SYNCMOS_MVC_ID,
17596 .model_id = SM_MVC_29C51001B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017597 .total_size = 128,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017598 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000017599 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017600 .tested = TEST_UNTESTED,
17601 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000017602 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000017603 .block_erasers =
17604 {
17605 {
17606 .eraseblocks = { {512, 256} },
17607 .block_erase = erase_sector_jedec,
17608 }, {
17609 .eraseblocks = { {128 * 1024, 1} },
17610 .block_erase = erase_chip_block_jedec,
17611 },
17612 },
Sean Nelson35727f72010-01-28 23:55:12 +000017613 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017614 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017615 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010017616 .prepare_access = prepare_memory_access,
17617 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000017618 },
17619
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017620 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000017621 .vendor = "SyncMOS/MoselVitelic",
17622 .name = "{F,S,V}29C51001T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017623 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017624 .manufacture_id = SYNCMOS_MVC_ID,
17625 .model_id = SM_MVC_29C51001T,
17626 .total_size = 128,
17627 .page_size = 512,
Sean Nelson35727f72010-01-28 23:55:12 +000017628 .feature_bits = FEATURE_EITHER_RESET,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017629 .tested = TEST_UNTESTED,
17630 .probe = probe_jedec,
17631 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
17632 .block_erasers =
17633 {
17634 {
17635 .eraseblocks = { {512, 256} },
17636 .block_erase = erase_sector_jedec,
17637 }, {
17638 .eraseblocks = { {128 * 1024, 1} },
17639 .block_erase = erase_chip_block_jedec,
17640 },
17641 },
17642 .write = write_jedec_1,
17643 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017644 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010017645 .prepare_access = prepare_memory_access,
17646 .finish_access = finish_memory_access,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017647 },
17648
17649 {
17650 .vendor = "SyncMOS/MoselVitelic",
17651 .name = "{F,S,V}29C51002B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017652 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017653 .manufacture_id = SYNCMOS_MVC_ID,
17654 .model_id = SM_MVC_29C51002B,
17655 .total_size = 256,
17656 .page_size = 512,
17657 .feature_bits = FEATURE_EITHER_RESET,
17658 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017659 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000017660 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000017661 .block_erasers =
17662 {
17663 {
17664 .eraseblocks = { {512, 512} },
17665 .block_erase = erase_sector_jedec,
17666 }, {
17667 .eraseblocks = { {256 * 1024, 1} },
17668 .block_erase = erase_chip_block_jedec,
17669 },
17670 },
Sean Nelson35727f72010-01-28 23:55:12 +000017671 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017672 .read = read_memmapped,
Nico Huber9eec4072023-01-12 01:17:30 +010017673 .prepare_access = prepare_memory_access,
17674 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000017675 },
17676
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017677 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000017678 .vendor = "SyncMOS/MoselVitelic",
17679 .name = "{F,S,V}29C51002T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017680 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017681 .manufacture_id = SYNCMOS_MVC_ID,
17682 .model_id = SM_MVC_29C51002T,
17683 .total_size = 256,
17684 .page_size = 512,
17685 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000017686 .tested = TEST_OK_PREW,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017687 .probe = probe_jedec,
17688 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
17689 .block_erasers =
17690 {
17691 {
17692 .eraseblocks = { {512, 512} },
17693 .block_erase = erase_sector_jedec,
17694 }, {
17695 .eraseblocks = { {256 * 1024, 1} },
17696 .block_erase = erase_chip_block_jedec,
17697 },
17698 },
17699 .write = write_jedec_1,
17700 .read = read_memmapped,
Nico Huber9eec4072023-01-12 01:17:30 +010017701 .prepare_access = prepare_memory_access,
17702 .finish_access = finish_memory_access,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017703 },
17704
17705 {
17706 .vendor = "SyncMOS/MoselVitelic",
17707 .name = "{F,S,V}29C51004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017708 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017709 .manufacture_id = SYNCMOS_MVC_ID,
17710 .model_id = SM_MVC_29C51004B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017711 .total_size = 512,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017712 .page_size = 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000017713 .feature_bits = FEATURE_EITHER_RESET,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017714 .tested = TEST_UNTESTED,
17715 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000017716 .probe_timing = TIMING_ZERO,
Sean Nelson56358aa2010-01-19 16:08:51 +000017717 .block_erasers =
17718 {
17719 {
Mattias Mattsson4c066502010-07-29 20:01:13 +000017720 .eraseblocks = { {1024, 512} },
17721 .block_erase = erase_sector_jedec,
17722 }, {
17723 .eraseblocks = { {512 * 1024, 1} },
17724 .block_erase = erase_chip_block_jedec,
17725 },
17726 },
17727 .write = write_jedec_1,
17728 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017729 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010017730 .prepare_access = prepare_memory_access,
17731 .finish_access = finish_memory_access,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017732 },
17733
17734 {
17735 .vendor = "SyncMOS/MoselVitelic",
17736 .name = "{F,S,V}29C51004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017737 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017738 .manufacture_id = SYNCMOS_MVC_ID,
17739 .model_id = SM_MVC_29C51004T,
17740 .total_size = 512,
17741 .page_size = 1024,
17742 .feature_bits = FEATURE_EITHER_RESET,
17743 .tested = TEST_UNTESTED,
17744 .probe = probe_jedec,
17745 .probe_timing = TIMING_ZERO,
17746 .block_erasers =
17747 {
17748 {
17749 .eraseblocks = { {1024, 512} },
17750 .block_erase = erase_sector_jedec,
17751 }, {
17752 .eraseblocks = { {512 * 1024, 1} },
17753 .block_erase = erase_chip_block_jedec,
17754 },
17755 },
17756 .write = write_jedec_1,
17757 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017758 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010017759 .prepare_access = prepare_memory_access,
17760 .finish_access = finish_memory_access,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017761 },
17762
17763 {
17764 .vendor = "SyncMOS/MoselVitelic",
17765 .name = "{S,V}29C31004B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017766 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017767 .manufacture_id = SYNCMOS_MVC_ID,
17768 .model_id = SM_MVC_29C31004B,
17769 .total_size = 512,
17770 .page_size = 1024,
17771 .feature_bits = FEATURE_EITHER_RESET,
17772 .tested = TEST_UNTESTED,
17773 .probe = probe_jedec,
17774 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
17775 .block_erasers =
17776 {
17777 {
17778 .eraseblocks = { {1024, 512} },
17779 .block_erase = erase_sector_jedec,
17780 }, {
17781 .eraseblocks = { {512 * 1024, 1} },
17782 .block_erase = erase_chip_block_jedec,
17783 },
17784 },
17785 .write = write_jedec_1,
17786 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017787 .voltage = {3000, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010017788 .prepare_access = prepare_memory_access,
17789 .finish_access = finish_memory_access,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017790 },
17791
17792 {
17793 .vendor = "SyncMOS/MoselVitelic",
17794 .name = "{S,V}29C31004T",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017795 .bustype = BUS_PARALLEL,
Mattias Mattsson4c066502010-07-29 20:01:13 +000017796 .manufacture_id = SYNCMOS_MVC_ID,
17797 .model_id = SM_MVC_29C31004T,
17798 .total_size = 512,
17799 .page_size = 1024,
17800 .feature_bits = FEATURE_EITHER_RESET,
17801 .tested = TEST_UNTESTED,
17802 .probe = probe_jedec,
17803 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
17804 .block_erasers =
17805 {
17806 {
17807 .eraseblocks = { {1024, 512} },
Sean Nelson56358aa2010-01-19 16:08:51 +000017808 .block_erase = erase_sector_jedec,
17809 }, {
17810 .eraseblocks = { {512 * 1024, 1} },
17811 .block_erase = erase_chip_block_jedec,
17812 },
17813 },
Sean Nelson35727f72010-01-28 23:55:12 +000017814 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000017815 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017816 .voltage = {3000, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010017817 .prepare_access = prepare_memory_access,
17818 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000017819 },
17820
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017821 {
Uwe Hermanna106d152009-05-27 23:17:40 +000017822 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017823 .name = "TMS29F002RB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017824 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017825 .manufacture_id = TI_OLD_ID,
17826 .model_id = TI_TMS29F002RB,
17827 .total_size = 256,
17828 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000017829 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017830 .tested = TEST_UNTESTED,
17831 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000017832 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000017833 .block_erasers =
17834 {
17835 {
17836 .eraseblocks = {
17837 {16 * 1024, 1},
17838 {8 * 1024, 2},
17839 {32 * 1024, 1},
17840 {64 * 1024, 3},
17841 },
17842 .block_erase = erase_sector_jedec,
17843 }, {
17844 .eraseblocks = { {256 * 1024, 1} },
17845 .block_erase = erase_chip_block_jedec,
17846 },
17847 },
Sean Nelson35727f72010-01-28 23:55:12 +000017848 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017849 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017850 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010017851 .prepare_access = prepare_memory_access,
17852 .finish_access = finish_memory_access,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017853 },
17854
17855 {
Uwe Hermanna106d152009-05-27 23:17:40 +000017856 .vendor = "TI",
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017857 .name = "TMS29F002RT",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017858 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017859 .manufacture_id = TI_OLD_ID,
17860 .model_id = TI_TMS29F002RT,
17861 .total_size = 256,
17862 .page_size = 16384, /* Non-uniform sectors */
Sean Nelson35727f72010-01-28 23:55:12 +000017863 .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017864 .tested = TEST_UNTESTED,
17865 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000017866 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
Sean Nelson56358aa2010-01-19 16:08:51 +000017867 .block_erasers =
17868 {
17869 {
17870 .eraseblocks = {
17871 {64 * 1024, 3},
17872 {32 * 1024, 1},
17873 {8 * 1024, 2},
17874 {16 * 1024, 1},
17875 },
17876 .block_erase = erase_sector_jedec,
17877 }, {
17878 .eraseblocks = { {256 * 1024, 1} },
17879 .block_erase = erase_chip_block_jedec,
17880 },
17881 },
Sean Nelson35727f72010-01-28 23:55:12 +000017882 .write = write_jedec_1,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017883 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000017884 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010017885 .prepare_access = prepare_memory_access,
17886 .finish_access = finish_memory_access,
Carl-Daniel Hailfinger09b4fb72009-05-26 21:26:23 +000017887 },
17888
17889 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000017890 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017891 .name = "W25P16",
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000017892 .bustype = BUS_SPI,
17893 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017894 .model_id = WINBOND_NEX_W25P16,
17895 .total_size = 2048,
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000017896 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017897 .feature_bits = FEATURE_WRSR_WREN,
17898 .tested = TEST_UNTESTED,
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000017899 .probe = probe_spi_rdid,
17900 .probe_timing = TIMING_ZERO,
17901 .block_erasers =
17902 {
17903 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017904 .eraseblocks = { {64 * 1024, 32} },
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000017905 .block_erase = spi_block_erase_d8,
17906 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017907 .eraseblocks = { {2048 * 1024, 1} },
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000017908 .block_erase = spi_block_erase_c7,
17909 }
17910 },
17911 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17912 .unlock = spi_disable_blockprotect,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017913 .write = spi_chip_write_256,
17914 .read = spi_chip_read, /* Fast read (0x0B) supported */
Stefan Tauner5e27b0b2014-09-09 23:03:32 +000017915 .voltage = {2700, 3600},
17916 },
17917
17918 {
17919 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100017920 .name = "W25P32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017921 .bustype = BUS_SPI,
Rudolf Marekce1c7982010-04-20 19:34:31 +000017922 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017923 .model_id = WINBOND_NEX_W25P32,
17924 .total_size = 4096,
Rudolf Marekce1c7982010-04-20 19:34:31 +000017925 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017926 .feature_bits = FEATURE_WRSR_WREN,
17927 .tested = TEST_UNTESTED,
Rudolf Marekce1c7982010-04-20 19:34:31 +000017928 .probe = probe_spi_rdid,
17929 .probe_timing = TIMING_ZERO,
17930 .block_erasers =
17931 {
17932 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017933 .eraseblocks = { {64 * 1024, 64} },
17934 .block_erase = spi_block_erase_d8,
Rudolf Marekce1c7982010-04-20 19:34:31 +000017935 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100017936 .eraseblocks = { {4096 * 1024, 1} },
17937 .block_erase = spi_block_erase_c7,
17938 }
17939 },
17940 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
17941 .unlock = spi_disable_blockprotect,
17942 .write = spi_chip_write_256,
17943 .read = spi_chip_read, /* Fast read (0x0B) supported */
17944 .voltage = {2700, 3600},
17945 },
17946
17947 {
17948 .vendor = "Winbond",
17949 .name = "W25P80",
17950 .bustype = BUS_SPI,
17951 .manufacture_id = WINBOND_NEX_ID,
17952 .model_id = WINBOND_NEX_W25P80,
17953 .total_size = 1024,
17954 .page_size = 256,
17955 .feature_bits = FEATURE_WRSR_WREN,
17956 .tested = TEST_UNTESTED,
17957 .probe = probe_spi_rdid,
17958 .probe_timing = TIMING_ZERO,
17959 .block_erasers =
17960 {
17961 {
Rudolf Marekce1c7982010-04-20 19:34:31 +000017962 .eraseblocks = { {64 * 1024, 16} },
17963 .block_erase = spi_block_erase_d8,
17964 }, {
17965 .eraseblocks = { {1024 * 1024, 1} },
Rudolf Marekce1c7982010-04-20 19:34:31 +000017966 .block_erase = spi_block_erase_c7,
17967 }
17968 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000017969 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000017970 .unlock = spi_disable_blockprotect,
Rudolf Marekce1c7982010-04-20 19:34:31 +000017971 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100017972 .read = spi_chip_read, /* Fast read (0x0B) supported */
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017973 .voltage = {2700, 3600},
David Hendricksc4acec92010-06-24 11:39:57 +000017974 },
17975
17976 {
17977 .vendor = "Winbond",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017978 .name = "W25Q128.V",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000017979 .bustype = BUS_SPI,
Antony Rheneus0fbba982011-05-26 14:28:51 +000017980 .manufacture_id = WINBOND_NEX_ID,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017981 .model_id = WINBOND_NEX_W25Q128_V,
Antony Rheneus0fbba982011-05-26 14:28:51 +000017982 .total_size = 16384,
17983 .page_size = 256,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000017984 /* supports SFDP */
17985 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber2133f592024-01-06 18:30:01 +010017986 /* QPI: only FV & JV..M versions */
17987 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QIO |
Nico Huber3f3c1f32022-05-28 16:48:26 +020017988 FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3,
Edward O'Callaghana97e3532022-12-16 15:41:05 +110017989 .tested = TEST_OK_PREWB,
Antony Rheneus0fbba982011-05-26 14:28:51 +000017990 .probe = probe_spi_rdid,
17991 .probe_timing = TIMING_ZERO,
17992 .block_erasers =
17993 {
17994 {
17995 .eraseblocks = { {4 * 1024, 4096} },
17996 .block_erase = spi_block_erase_20,
17997 }, {
17998 .eraseblocks = { {32 * 1024, 512} },
17999 .block_erase = spi_block_erase_52,
18000 }, {
18001 .eraseblocks = { {64 * 1024, 256} },
18002 .block_erase = spi_block_erase_d8,
18003 }, {
18004 .eraseblocks = { {16 * 1024 * 1024, 1} },
18005 .block_erase = spi_block_erase_60,
18006 }, {
18007 .eraseblocks = { {16 * 1024 * 1024, 1} },
18008 .block_erase = spi_block_erase_c7,
18009 }
18010 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000018011 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Antony Rheneus0fbba982011-05-26 14:28:51 +000018012 .unlock = spi_disable_blockprotect,
18013 .write = spi_chip_write_256,
18014 .read = spi_chip_read,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018015 .voltage = {2700, 3600},
Sergii Dmytrukd1af3072021-11-08 00:00:43 +020018016 /* FIXME: Older versions (e.g. 25Q128BV) use WRSR_EXT and have no WPS. */
18017 .reg_bits =
18018 {
Nico Huber2133f592024-01-06 18:30:01 +010018019 .qe = {STATUS2, 1, RW},
Sergii Dmytrukd1af3072021-11-08 00:00:43 +020018020 .srp = {STATUS1, 7, RW},
18021 .srl = {STATUS2, 0, RW},
18022 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
18023 .tb = {STATUS1, 5, RW},
18024 .sec = {STATUS1, 6, RW},
18025 .cmp = {STATUS2, 6, RW},
18026 .wps = {STATUS3, 2, RW},
18027 },
Nico Huberaabb3e02023-01-13 00:22:30 +010018028 .wp_write_cfg = spi_wp_write_cfg,
18029 .wp_read_cfg = spi_wp_read_cfg,
18030 .wp_get_ranges = spi_wp_get_available_ranges,
Sergii Dmytrukd1af3072021-11-08 00:00:43 +020018031 .decode_range = decode_range_spi25,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018032 },
18033
18034 {
18035 .vendor = "Winbond",
Patrick Rudolph34323492018-10-04 14:59:40 +020018036 .name = "W25Q128.V..M",
18037 .bustype = BUS_SPI,
18038 .manufacture_id = WINBOND_NEX_ID,
18039 .model_id = WINBOND_NEX_W25Q128_V_M,
18040 .total_size = 16384,
18041 .page_size = 256,
Nico Huber1412d9f2024-01-06 18:25:49 +010018042 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_OTP | FEATURE_QPI_SRP,
18043 .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } },
Sergii Dmytrukc74eac22022-10-06 18:17:58 +030018044 .tested = TEST_OK_PREWB,
Patrick Rudolph34323492018-10-04 14:59:40 +020018045 .probe = probe_spi_rdid,
18046 .probe_timing = TIMING_ZERO,
18047 .block_erasers =
18048 {
18049 {
18050 .eraseblocks = { {4 * 1024, 4096} },
18051 .block_erase = spi_block_erase_20,
18052 }, {
18053 .eraseblocks = { {32 * 1024, 512} },
18054 .block_erase = spi_block_erase_52,
18055 }, {
18056 .eraseblocks = { {64 * 1024, 256} },
18057 .block_erase = spi_block_erase_d8,
18058 }, {
18059 .eraseblocks = { {16 * 1024 * 1024, 1} },
18060 .block_erase = spi_block_erase_60,
18061 }, {
18062 .eraseblocks = { {16 * 1024 * 1024, 1} },
18063 .block_erase = spi_block_erase_c7,
18064 }
18065 },
Alan Greena1fc01d2019-09-23 17:12:44 +100018066 .printlock = spi_prettyprint_status_register_plain,
Patrick Rudolph34323492018-10-04 14:59:40 +020018067 .unlock = spi_disable_blockprotect,
18068 .write = spi_chip_write_256,
18069 .read = spi_chip_read,
18070 .voltage = {2700, 3600},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110018071 .reg_bits =
18072 {
Nico Huber2133f592024-01-06 18:30:01 +010018073 .qe = {STATUS2, 1, RW},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110018074 .srp = {STATUS1, 7, RW},
18075 .srl = {STATUS2, 0, RW},
18076 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
18077 .tb = {STATUS1, 5, RW},
18078 .sec = {STATUS1, 6, RW},
18079 .cmp = {STATUS2, 6, RW},
18080 },
Nico Huberaabb3e02023-01-13 00:22:30 +010018081 .wp_write_cfg = spi_wp_write_cfg,
18082 .wp_read_cfg = spi_wp_read_cfg,
18083 .wp_get_ranges = spi_wp_get_available_ranges,
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110018084 .decode_range = decode_range_spi25,
Patrick Rudolph34323492018-10-04 14:59:40 +020018085 },
18086
18087 {
18088 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018089 .name = "W25Q128.W",
18090 .bustype = BUS_SPI,
18091 .manufacture_id = WINBOND_NEX_ID,
18092 .model_id = WINBOND_NEX_W25Q128_W,
18093 .total_size = 16384,
18094 .page_size = 256,
18095 /* supports SFDP */
18096 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber1412d9f2024-01-06 18:25:49 +010018097 /* QPI: only FW & JW..M versions */
18098 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_OTP | FEATURE_QIO,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018099 .tested = TEST_OK_PREW,
18100 .probe = probe_spi_rdid,
18101 .probe_timing = TIMING_ZERO,
18102 .block_erasers =
18103 {
18104 {
18105 .eraseblocks = { {4 * 1024, 4096} },
18106 .block_erase = spi_block_erase_20,
18107 }, {
18108 .eraseblocks = { {32 * 1024, 512} },
18109 .block_erase = spi_block_erase_52,
18110 }, {
18111 .eraseblocks = { {64 * 1024, 256} },
18112 .block_erase = spi_block_erase_d8,
18113 }, {
18114 .eraseblocks = { {16 * 1024 * 1024, 1} },
18115 .block_erase = spi_block_erase_60,
18116 }, {
18117 .eraseblocks = { {16 * 1024 * 1024, 1} },
18118 .block_erase = spi_block_erase_c7,
18119 }
18120 },
18121 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18122 .unlock = spi_disable_blockprotect,
18123 .write = spi_chip_write_256,
18124 .read = spi_chip_read,
18125 .voltage = {1650, 1950},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110018126 .reg_bits =
18127 {
Nico Huber2133f592024-01-06 18:30:01 +010018128 .qe = {STATUS2, 1, RW},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110018129 .srp = {STATUS1, 7, RW},
18130 .srl = {STATUS2, 0, RW},
18131 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
18132 .tb = {STATUS1, 5, RW},
18133 .sec = {STATUS1, 6, RW},
18134 .cmp = {STATUS2, 6, RW},
18135 },
Nico Huberaabb3e02023-01-13 00:22:30 +010018136 .wp_write_cfg = spi_wp_write_cfg,
18137 .wp_read_cfg = spi_wp_read_cfg,
18138 .wp_get_ranges = spi_wp_get_available_ranges,
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110018139 .decode_range = decode_range_spi25,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018140 },
18141
18142 {
18143 .vendor = "Winbond",
Peichao Wang1a119492019-11-11 15:26:41 +080018144 .name = "W25Q128.JW.DTR",
18145 .bustype = BUS_SPI,
18146 .manufacture_id = WINBOND_NEX_ID,
18147 .model_id = WINBOND_NEX_W25Q128_DTR,
18148 .total_size = 16384,
18149 .page_size = 256,
Nico Huber1412d9f2024-01-06 18:25:49 +010018150 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_OTP | FEATURE_QPI_SRP,
18151 .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } },
Peichao Wang1a119492019-11-11 15:26:41 +080018152 .tested = TEST_OK_PREW,
18153 .probe = probe_spi_rdid,
18154 .probe_timing = TIMING_ZERO,
18155 .block_erasers =
18156 {
18157 {
18158 .eraseblocks = { {4 * 1024, 4096} },
18159 .block_erase = spi_block_erase_20,
18160 }, {
18161 .eraseblocks = { {32 * 1024, 512} },
18162 .block_erase = spi_block_erase_52,
18163 }, {
18164 .eraseblocks = { {64 * 1024, 256} },
18165 .block_erase = spi_block_erase_d8,
18166 }, {
18167 .eraseblocks = { {16 * 1024 * 1024, 1} },
18168 .block_erase = spi_block_erase_60,
18169 }, {
18170 .eraseblocks = { {16 * 1024 * 1024, 1} },
18171 .block_erase = spi_block_erase_c7,
18172 }
18173 },
18174 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18175 .unlock = spi_disable_blockprotect,
18176 .write = spi_chip_write_256,
18177 .read = spi_chip_read,
18178 .voltage = {1650, 1950},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110018179 .reg_bits =
18180 {
Nico Huber2133f592024-01-06 18:30:01 +010018181 .qe = {STATUS2, 1, RW},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110018182 .srp = {STATUS1, 7, RW},
18183 .srl = {STATUS2, 0, RW},
18184 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
18185 .tb = {STATUS1, 5, RW},
18186 .sec = {STATUS1, 6, RW},
18187 .cmp = {STATUS2, 6, RW},
18188 },
Nico Huberaabb3e02023-01-13 00:22:30 +010018189 .wp_write_cfg = spi_wp_write_cfg,
18190 .wp_read_cfg = spi_wp_read_cfg,
18191 .wp_get_ranges = spi_wp_get_available_ranges,
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110018192 .decode_range = decode_range_spi25,
Peichao Wang1a119492019-11-11 15:26:41 +080018193 },
18194
18195 {
18196 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018197 .name = "W25Q16.V",
18198 .bustype = BUS_SPI,
18199 .manufacture_id = WINBOND_NEX_ID,
18200 .model_id = WINBOND_NEX_W25Q16_V,
18201 .total_size = 2048,
18202 .page_size = 256,
18203 /* supports SFDP */
18204 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber2133f592024-01-06 18:30:01 +010018205 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QIO,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018206 .tested = TEST_OK_PREW,
18207 .probe = probe_spi_rdid,
18208 .probe_timing = TIMING_ZERO,
18209 .block_erasers =
18210 {
18211 {
18212 .eraseblocks = { {4 * 1024, 512} },
18213 .block_erase = spi_block_erase_20,
18214 }, {
18215 .eraseblocks = { {32 * 1024, 64} },
18216 .block_erase = spi_block_erase_52,
18217 }, {
18218 .eraseblocks = { {64 * 1024, 32} },
18219 .block_erase = spi_block_erase_d8,
18220 }, {
18221 .eraseblocks = { {2 * 1024 * 1024, 1} },
18222 .block_erase = spi_block_erase_60,
18223 }, {
18224 .eraseblocks = { {2 * 1024 * 1024, 1} },
18225 .block_erase = spi_block_erase_c7,
18226 }
18227 },
Nico Huber2133f592024-01-06 18:30:01 +010018228 .reg_bits =
18229 {
18230 .qe = {STATUS2, 1, RW},
18231 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100018232 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18233 .unlock = spi_disable_blockprotect,
18234 .write = spi_chip_write_256,
18235 .read = spi_chip_read,
18236 .voltage = {2700, 3600},
18237 },
18238
18239 {
18240 .vendor = "Winbond",
18241 .name = "W25Q16.W",
18242 .bustype = BUS_SPI,
18243 .manufacture_id = WINBOND_NEX_ID,
18244 .model_id = WINBOND_NEX_W25Q16_W,
18245 .total_size = 2048,
18246 .page_size = 256,
18247 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber1412d9f2024-01-06 18:25:49 +010018248 /* QPI: only FW & JW..M versions .qpi_read_params = { 2, 4, 6, 8 } */
18249 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QIO,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018250 .tested = TEST_UNTESTED,
18251 .probe = probe_spi_rdid,
18252 .probe_timing = TIMING_ZERO,
18253 .block_erasers =
18254 {
18255 {
18256 .eraseblocks = { {4 * 1024, 512} },
18257 .block_erase = spi_block_erase_20,
18258 }, {
18259 .eraseblocks = { {32 * 1024, 64} },
18260 .block_erase = spi_block_erase_52,
18261 }, {
18262 .eraseblocks = { {64 * 1024, 32} },
18263 .block_erase = spi_block_erase_d8,
18264 }, {
18265 .eraseblocks = { {2 * 1024 * 1024, 1} },
18266 .block_erase = spi_block_erase_60,
18267 }, {
18268 .eraseblocks = { {2 * 1024 * 1024, 1} },
18269 .block_erase = spi_block_erase_c7,
18270 }
18271 },
Nico Huber2133f592024-01-06 18:30:01 +010018272 .reg_bits =
18273 {
18274 .qe = {STATUS2, 1, RW},
18275 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100018276 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18277 .unlock = spi_disable_blockprotect,
18278 .write = spi_chip_write_256,
18279 .read = spi_chip_read,
Nico Huber1412d9f2024-01-06 18:25:49 +010018280 .voltage = {1700, 1950},
Alan Green1f9cc7d2019-07-01 11:10:45 +100018281 },
18282
18283 {
18284 .vendor = "Winbond",
18285 .name = "W25Q20.W",
18286 .bustype = BUS_SPI,
18287 .manufacture_id = WINBOND_NEX_ID,
18288 .model_id = WINBOND_NEX_W25Q20_W,
18289 .total_size = 256,
18290 .page_size = 256,
18291 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber2133f592024-01-06 18:30:01 +010018292 /* W25Q20EW: FEATURE_WRSR2 */
18293 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QIO,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018294 .tested = TEST_UNTESTED,
18295 .probe = probe_spi_rdid,
18296 .probe_timing = TIMING_ZERO,
18297 .block_erasers =
18298 {
18299 {
18300 .eraseblocks = { {4 * 1024, 64} },
18301 .block_erase = spi_block_erase_20,
18302 }, {
18303 .eraseblocks = { {32 * 1024, 8} },
18304 .block_erase = spi_block_erase_52,
18305 }, {
18306 .eraseblocks = { {64 * 1024, 4} },
18307 .block_erase = spi_block_erase_d8,
18308 }, {
18309 .eraseblocks = { {256 * 1024, 1} },
18310 .block_erase = spi_block_erase_60,
18311 }, {
18312 .eraseblocks = { {256 * 1024, 1} },
18313 .block_erase = spi_block_erase_c7,
18314 }
18315 },
Nico Huber2133f592024-01-06 18:30:01 +010018316 .reg_bits =
18317 {
18318 .qe = {STATUS2, 1, RW},
18319 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100018320 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18321 .unlock = spi_disable_blockprotect,
18322 .write = spi_chip_write_256,
18323 .read = spi_chip_read,
Nico Huber2133f592024-01-06 18:30:01 +010018324 .voltage = {1700, 1950},
Alan Green1f9cc7d2019-07-01 11:10:45 +100018325 },
18326
18327 {
18328 .vendor = "Winbond",
Nico Huber5215eab2022-05-23 15:13:07 +020018329 .name = "W25Q256FV",
Boris Baykovaa6c3742016-06-11 18:29:01 +020018330 .bustype = BUS_SPI,
18331 .manufacture_id = WINBOND_NEX_ID,
18332 .model_id = WINBOND_NEX_W25Q256_V,
18333 .total_size = 32768,
18334 .page_size = 256,
18335 /* supports SFDP */
18336 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber2133f592024-01-06 18:30:01 +010018337 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_OTP |
18338 FEATURE_4BA_ENTER_WREN | FEATURE_4BA_EAR_C5C8 |
18339 FEATURE_4BA_READ | FEATURE_4BA_FAST_READ |
18340 FEATURE_QPI_SRP,
18341 .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } },
Angel Pons3130cbd2018-09-30 19:32:30 +020018342 .tested = TEST_OK_PREW,
Boris Baykovaa6c3742016-06-11 18:29:01 +020018343 .probe = probe_spi_rdid,
18344 .probe_timing = TIMING_ZERO,
18345 .block_erasers =
18346 {
18347 {
18348 .eraseblocks = { {4 * 1024, 8192} },
Nico Huber7a077222017-10-14 18:18:30 +020018349 .block_erase = spi_block_erase_20,
Boris Baykovaa6c3742016-06-11 18:29:01 +020018350 }, {
18351 .eraseblocks = { {32 * 1024, 1024} },
Nico Huber7a077222017-10-14 18:18:30 +020018352 .block_erase = spi_block_erase_52,
Boris Baykovaa6c3742016-06-11 18:29:01 +020018353 }, {
18354 .eraseblocks = { {64 * 1024, 512} },
Nico Huber7a077222017-10-14 18:18:30 +020018355 .block_erase = spi_block_erase_d8,
Boris Baykovaa6c3742016-06-11 18:29:01 +020018356 }, {
18357 .eraseblocks = { {32 * 1024 * 1024, 1} },
18358 .block_erase = spi_block_erase_60,
18359 }, {
18360 .eraseblocks = { {32 * 1024 * 1024, 1} },
18361 .block_erase = spi_block_erase_c7,
18362 }
18363 },
18364 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18365 .unlock = spi_disable_blockprotect,
18366 .write = spi_chip_write_256,
18367 .read = spi_chip_read,
18368 .voltage = {2700, 3600},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110018369 .reg_bits =
18370 {
Nico Huber2133f592024-01-06 18:30:01 +010018371 .qe = {STATUS2, 1, RW},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110018372 .srp = {STATUS1, 7, RW},
18373 .srl = {STATUS2, 0, RW},
18374 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}},
18375 .tb = {STATUS1, 6, RW},
18376 .cmp = {STATUS2, 6, RW},
18377 },
Nico Huberaabb3e02023-01-13 00:22:30 +010018378 .wp_write_cfg = spi_wp_write_cfg,
18379 .wp_read_cfg = spi_wp_read_cfg,
18380 .wp_get_ranges = spi_wp_get_available_ranges,
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110018381 .decode_range = decode_range_spi25,
Nico Huberab6b18f2023-01-11 23:38:20 +010018382 .prepare_access = spi_prepare_4ba,
Boris Baykovaa6c3742016-06-11 18:29:01 +020018383 },
18384
18385 {
18386 .vendor = "Winbond",
Nico Huber5215eab2022-05-23 15:13:07 +020018387 .name = "W25Q256JV_Q",
18388 .bustype = BUS_SPI,
18389 .manufacture_id = WINBOND_NEX_ID,
18390 .model_id = WINBOND_NEX_W25Q256_V,
18391 .total_size = 32768,
18392 .page_size = 256,
18393 /* supports SFDP */
18394 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber2133f592024-01-06 18:30:01 +010018395 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_OTP | FEATURE_4BA | FEATURE_QIO,
Nico Huberddfbbe82023-12-21 16:31:27 +010018396 .tested = TEST_OK_PREW,
Nico Huber5215eab2022-05-23 15:13:07 +020018397 .probe = probe_spi_rdid,
18398 .probe_timing = TIMING_ZERO,
18399 .block_erasers =
18400 {
18401 {
18402 .eraseblocks = { {4 * 1024, 8192} },
18403 .block_erase = spi_block_erase_21,
18404 }, {
18405 .eraseblocks = { {4 * 1024, 8192} },
18406 .block_erase = spi_block_erase_20,
18407 }, {
18408 .eraseblocks = { {32 * 1024, 1024} },
18409 .block_erase = spi_block_erase_52,
18410 }, {
18411 .eraseblocks = { {64 * 1024, 512} },
18412 .block_erase = spi_block_erase_dc,
18413 }, {
18414 .eraseblocks = { {64 * 1024, 512} },
18415 .block_erase = spi_block_erase_d8,
18416 }, {
18417 .eraseblocks = { {32 * 1024 * 1024, 1} },
18418 .block_erase = spi_block_erase_60,
18419 }, {
18420 .eraseblocks = { {32 * 1024 * 1024, 1} },
18421 .block_erase = spi_block_erase_c7,
18422 }
18423 },
18424 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18425 .unlock = spi_disable_blockprotect,
18426 .write = spi_chip_write_256,
18427 .read = spi_chip_read,
18428 .voltage = {2700, 3600},
18429 .reg_bits =
18430 {
Nico Huber2133f592024-01-06 18:30:01 +010018431 .qe = {STATUS2, 1, RW},
Nico Huber5215eab2022-05-23 15:13:07 +020018432 .srp = {STATUS1, 7, RW},
18433 .srl = {STATUS2, 0, RW},
18434 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}},
18435 .tb = {STATUS1, 6, RW},
18436 .cmp = {STATUS2, 6, RW},
18437 },
Nico Huberaabb3e02023-01-13 00:22:30 +010018438 .wp_write_cfg = spi_wp_write_cfg,
18439 .wp_read_cfg = spi_wp_read_cfg,
18440 .wp_get_ranges = spi_wp_get_available_ranges,
Nico Huber5215eab2022-05-23 15:13:07 +020018441 .decode_range = decode_range_spi25,
Nico Huberab6b18f2023-01-11 23:38:20 +010018442 .prepare_access = spi_prepare_4ba,
Nico Huber5215eab2022-05-23 15:13:07 +020018443 },
18444
18445 {
18446 .vendor = "Winbond",
David Hendricks49876792018-10-27 20:19:42 +000018447 .name = "W25Q256JV_M",
18448 .bustype = BUS_SPI,
18449 .manufacture_id = WINBOND_NEX_ID,
18450 .model_id = WINBOND_NEX_W25Q256JV_M,
18451 .total_size = 32768,
18452 .page_size = 256,
18453 /* supports SFDP */
18454 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber2133f592024-01-06 18:30:01 +010018455 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_OTP |
18456 FEATURE_4BA | FEATURE_QPI_SRP,
18457 .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } },
David Hendricks49876792018-10-27 20:19:42 +000018458 .tested = TEST_OK_PREW,
18459 .probe = probe_spi_rdid,
18460 .probe_timing = TIMING_ZERO,
18461 .block_erasers =
18462 {
18463 {
18464 .eraseblocks = { {4 * 1024, 8192} },
18465 .block_erase = spi_block_erase_21,
18466 }, {
18467 .eraseblocks = { {4 * 1024, 8192} },
18468 .block_erase = spi_block_erase_20,
18469 }, {
18470 .eraseblocks = { {32 * 1024, 1024} },
18471 .block_erase = spi_block_erase_52,
18472 }, {
18473 .eraseblocks = { {64 * 1024, 512} },
18474 .block_erase = spi_block_erase_dc,
18475 }, {
18476 .eraseblocks = { {64 * 1024, 512} },
18477 .block_erase = spi_block_erase_d8,
18478 }, {
18479 .eraseblocks = { {32 * 1024 * 1024, 1} },
18480 .block_erase = spi_block_erase_60,
18481 }, {
18482 .eraseblocks = { {32 * 1024 * 1024, 1} },
18483 .block_erase = spi_block_erase_c7,
18484 }
18485 },
18486 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18487 .unlock = spi_disable_blockprotect,
18488 .write = spi_chip_write_256,
18489 .read = spi_chip_read,
18490 .voltage = {2700, 3600},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110018491 .reg_bits =
18492 {
Nico Huber2133f592024-01-06 18:30:01 +010018493 .qe = {STATUS2, 1, RW},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110018494 .srp = {STATUS1, 7, RW},
18495 .srl = {STATUS2, 0, RW},
18496 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}},
18497 .tb = {STATUS1, 6, RW},
18498 .cmp = {STATUS2, 6, RW},
18499 },
Nico Huberaabb3e02023-01-13 00:22:30 +010018500 .wp_write_cfg = spi_wp_write_cfg,
18501 .wp_read_cfg = spi_wp_read_cfg,
18502 .wp_get_ranges = spi_wp_get_available_ranges,
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110018503 .decode_range = decode_range_spi25,
Nico Huberab6b18f2023-01-11 23:38:20 +010018504 .prepare_access = spi_prepare_4ba,
David Hendricks49876792018-10-27 20:19:42 +000018505 },
18506
18507 {
18508 .vendor = "Winbond",
Patrick Rudolph8f5bd982020-08-26 09:15:53 +020018509 .name = "W25Q256JW",
el-coderon01209852020-04-29 12:12:53 +020018510 .bustype = BUS_SPI,
18511 .manufacture_id = WINBOND_NEX_ID,
18512 .model_id = WINBOND_NEX_W25Q256_W,
18513 .total_size = 32768,
18514 .page_size = 256,
18515 /* supports SFDP */
18516 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber2133f592024-01-06 18:30:01 +010018517 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_WRSR3 |
18518 FEATURE_OTP | FEATURE_4BA | FEATURE_QIO,
el-coderon01209852020-04-29 12:12:53 +020018519 .tested = TEST_OK_PREW,
18520 .probe = probe_spi_rdid,
18521 .probe_timing = TIMING_ZERO,
18522 .block_erasers =
18523 {
18524 {
18525 .eraseblocks = { {4 * 1024, 8192} },
Patrick Rudolph8f5bd982020-08-26 09:15:53 +020018526 .block_erase = spi_block_erase_21,
18527 }, {
18528 .eraseblocks = { {4 * 1024, 8192} },
el-coderon01209852020-04-29 12:12:53 +020018529 .block_erase = spi_block_erase_20,
18530 }, {
18531 .eraseblocks = { {32 * 1024, 1024} },
18532 .block_erase = spi_block_erase_52,
18533 }, {
18534 .eraseblocks = { {64 * 1024, 512} },
Patrick Rudolph8f5bd982020-08-26 09:15:53 +020018535 .block_erase = spi_block_erase_dc,
18536 }, {
18537 .eraseblocks = { {64 * 1024, 512} },
el-coderon01209852020-04-29 12:12:53 +020018538 .block_erase = spi_block_erase_d8,
18539 }, {
18540 .eraseblocks = { {32 * 1024 * 1024, 1} },
18541 .block_erase = spi_block_erase_60,
18542 }, {
18543 .eraseblocks = { {32 * 1024 * 1024, 1} },
18544 .block_erase = spi_block_erase_c7,
18545 }
18546 },
Nico Huber2133f592024-01-06 18:30:01 +010018547 .reg_bits =
18548 {
18549 .qe = {STATUS2, 1, RW},
18550 },
el-coderon01209852020-04-29 12:12:53 +020018551 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18552 .unlock = spi_disable_blockprotect,
18553 .write = spi_chip_write_256,
18554 .read = spi_chip_read,
18555 .voltage = {1650, 1950},
Nico Huberab6b18f2023-01-11 23:38:20 +010018556 .prepare_access = spi_prepare_4ba,
el-coderon01209852020-04-29 12:12:53 +020018557 },
18558
18559 {
18560 .vendor = "Winbond",
David Hendricks31532602020-08-16 17:14:56 -070018561 .name = "W25Q256JW_DTR",
18562 .bustype = BUS_SPI,
18563 .manufacture_id = WINBOND_NEX_ID,
18564 .model_id = WINBOND_NEX_W25Q256_DTR,
18565 .total_size = 32768,
18566 .page_size = 256,
18567 /* supports SFDP */
18568 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber2133f592024-01-06 18:30:01 +010018569 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_WRSR3 |
18570 FEATURE_OTP | FEATURE_4BA | FEATURE_QPI_SRP,
18571 .dummy_cycles =
18572 {
18573 .qpi_read_params = {
18574 2, /* Datasheet Rev.K says 4 is the default, though.
18575 Will assume that the text is wrong, if not,
18576 we'll know why it doesn't work. */
18577 4, 6, 8
18578 },
18579 },
Kapil Porwal111c3802022-12-09 19:41:27 +053018580 .tested = TEST_OK_PREWB,
David Hendricks31532602020-08-16 17:14:56 -070018581 .probe = probe_spi_rdid,
18582 .probe_timing = TIMING_ZERO,
18583 .block_erasers =
18584 {
18585 {
18586 .eraseblocks = { {4 * 1024, 8192} },
18587 .block_erase = spi_block_erase_21,
18588 }, {
18589 .eraseblocks = { {4 * 1024, 8192} },
18590 .block_erase = spi_block_erase_20,
18591 }, {
18592 .eraseblocks = { {32 * 1024, 1024} },
18593 .block_erase = spi_block_erase_52,
18594 }, {
18595 .eraseblocks = { {64 * 1024, 512} },
18596 .block_erase = spi_block_erase_dc,
18597 }, {
18598 .eraseblocks = { {64 * 1024, 512} },
18599 .block_erase = spi_block_erase_d8,
18600 }, {
18601 .eraseblocks = { {32 * 1024 * 1024, 1} },
18602 .block_erase = spi_block_erase_60,
18603 }, {
18604 .eraseblocks = { {32 * 1024 * 1024, 1} },
18605 .block_erase = spi_block_erase_c7,
18606 }
18607 },
18608 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18609 .unlock = spi_disable_blockprotect,
18610 .write = spi_chip_write_256,
18611 .read = spi_chip_read,
18612 .voltage = {1700, 1950},
Kapil Porwal111c3802022-12-09 19:41:27 +053018613 .reg_bits =
18614 {
Nico Huber2133f592024-01-06 18:30:01 +010018615 .qe = {STATUS2, 1, RW},
Kapil Porwal111c3802022-12-09 19:41:27 +053018616 .srp = {STATUS1, 7, RW},
18617 .srl = {STATUS2, 0, RW},
18618 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}},
18619 .tb = {STATUS1, 6, RW},
18620 .cmp = {STATUS2, 6, RW},
18621 .wps = {STATUS3, 2, RW},
18622 },
Nico Huberaabb3e02023-01-13 00:22:30 +010018623 .wp_write_cfg = spi_wp_write_cfg,
18624 .wp_read_cfg = spi_wp_read_cfg,
18625 .wp_get_ranges = spi_wp_get_available_ranges,
Kapil Porwal111c3802022-12-09 19:41:27 +053018626 .decode_range = decode_range_spi25,
Nico Huberab6b18f2023-01-11 23:38:20 +010018627 .prepare_access = spi_prepare_4ba,
David Hendricks31532602020-08-16 17:14:56 -070018628 },
18629
18630 {
18631 .vendor = "Winbond",
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018632 .name = "W25Q32BV/W25Q32CV/W25Q32DV",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018633 .bustype = BUS_SPI,
18634 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018635 .model_id = WINBOND_NEX_W25Q32_V,
18636 .total_size = 4096,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018637 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018638 /* supports SFDP */
18639 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber2133f592024-01-06 18:30:01 +010018640 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QIO,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018641 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018642 .probe = probe_spi_rdid,
18643 .probe_timing = TIMING_ZERO,
18644 .block_erasers =
18645 {
18646 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100018647 .eraseblocks = { {4 * 1024, 1024} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018648 .block_erase = spi_block_erase_20,
18649 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100018650 .eraseblocks = { {32 * 1024, 128} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018651 .block_erase = spi_block_erase_52,
18652 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100018653 .eraseblocks = { {64 * 1024, 64} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018654 .block_erase = spi_block_erase_d8,
18655 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100018656 .eraseblocks = { {4 * 1024 * 1024, 1} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018657 .block_erase = spi_block_erase_60,
18658 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100018659 .eraseblocks = { {4 * 1024 * 1024, 1} },
18660 .block_erase = spi_block_erase_c7,
18661 }
18662 },
18663 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18664 .unlock = spi_disable_blockprotect,
18665 .write = spi_chip_write_256,
18666 .read = spi_chip_read,
18667 .voltage = {2700, 3600},
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018668 .reg_bits =
18669 {
Nico Huber2133f592024-01-06 18:30:01 +010018670 .qe = {STATUS2, 1, RW},
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018671 .srp = {STATUS1, 7, RW},
18672 .srl = {STATUS2, 0, RW},
18673 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
18674 .tb = {STATUS1, 5, RW},
18675 .sec = {STATUS1, 6, RW},
18676 .cmp = {STATUS2, 6, RW},
18677 },
Nico Huberaabb3e02023-01-13 00:22:30 +010018678 .wp_write_cfg = spi_wp_write_cfg,
18679 .wp_read_cfg = spi_wp_read_cfg,
18680 .wp_get_ranges = spi_wp_get_available_ranges,
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018681 .decode_range = decode_range_spi25,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018682 },
18683
18684 {
18685 .vendor = "Winbond",
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018686 .name = "W25Q32FV",
18687 .bustype = BUS_SPI,
18688 .manufacture_id = WINBOND_NEX_ID,
18689 .model_id = WINBOND_NEX_W25Q32_V,
18690 .total_size = 4096,
18691 .page_size = 256,
18692 /* supports SFDP */
18693 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber1412d9f2024-01-06 18:25:49 +010018694 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI_SRP |
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018695 FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3,
Nico Huber1412d9f2024-01-06 18:25:49 +010018696 .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } },
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018697 .tested = TEST_OK_PREW,
18698 .probe = probe_spi_rdid,
18699 .probe_timing = TIMING_ZERO,
18700 .block_erasers =
18701 {
18702 {
18703 .eraseblocks = { {4 * 1024, 1024} },
18704 .block_erase = spi_block_erase_20,
18705 }, {
18706 .eraseblocks = { {32 * 1024, 128} },
18707 .block_erase = spi_block_erase_52,
18708 }, {
18709 .eraseblocks = { {64 * 1024, 64} },
18710 .block_erase = spi_block_erase_d8,
18711 }, {
18712 .eraseblocks = { {4 * 1024 * 1024, 1} },
18713 .block_erase = spi_block_erase_60,
18714 }, {
18715 .eraseblocks = { {4 * 1024 * 1024, 1} },
18716 .block_erase = spi_block_erase_c7,
18717 }
18718 },
18719 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18720 .unlock = spi_disable_blockprotect,
18721 .write = spi_chip_write_256,
18722 .read = spi_chip_read,
18723 .voltage = {2700, 3600},
18724 .reg_bits =
18725 {
Nico Huber2133f592024-01-06 18:30:01 +010018726 .qe = {STATUS2, 1, RW},
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018727 .srp = {STATUS1, 7, RW},
18728 .srl = {STATUS2, 0, RW},
18729 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
18730 .tb = {STATUS1, 5, RW},
18731 .sec = {STATUS1, 6, RW},
18732 .cmp = {STATUS2, 6, RW},
18733 .wps = {STATUS3, 2, RW},
18734 },
Nico Huberaabb3e02023-01-13 00:22:30 +010018735 .wp_write_cfg = spi_wp_write_cfg,
18736 .wp_read_cfg = spi_wp_read_cfg,
18737 .wp_get_ranges = spi_wp_get_available_ranges,
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018738 .decode_range = decode_range_spi25,
18739 },
18740
18741 {
18742 .vendor = "Winbond",
18743 .name = "W25Q32JV",
18744 .bustype = BUS_SPI,
18745 .manufacture_id = WINBOND_NEX_ID,
18746 .model_id = WINBOND_NEX_W25Q32_V,
18747 .total_size = 4096,
18748 .page_size = 256,
18749 /* supports SFDP */
18750 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber2133f592024-01-06 18:30:01 +010018751 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QIO |
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018752 FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3,
18753 .tested = TEST_OK_PREW,
18754 .probe = probe_spi_rdid,
18755 .probe_timing = TIMING_ZERO,
18756 .block_erasers =
18757 {
18758 {
18759 .eraseblocks = { {4 * 1024, 1024} },
18760 .block_erase = spi_block_erase_20,
18761 }, {
18762 .eraseblocks = { {32 * 1024, 128} },
18763 .block_erase = spi_block_erase_52,
18764 }, {
18765 .eraseblocks = { {64 * 1024, 64} },
18766 .block_erase = spi_block_erase_d8,
18767 }, {
18768 .eraseblocks = { {4 * 1024 * 1024, 1} },
18769 .block_erase = spi_block_erase_60,
18770 }, {
18771 .eraseblocks = { {4 * 1024 * 1024, 1} },
18772 .block_erase = spi_block_erase_c7,
18773 }
18774 },
18775 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18776 .unlock = spi_disable_blockprotect,
18777 .write = spi_chip_write_256,
18778 .read = spi_chip_read,
18779 .voltage = {2700, 3600},
18780 .reg_bits =
18781 {
Nico Huber2133f592024-01-06 18:30:01 +010018782 .qe = {STATUS2, 1, RW},
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018783 .srp = {STATUS1, 7, RW},
18784 .srl = {STATUS2, 0, RW},
18785 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
18786 .tb = {STATUS1, 5, RW},
18787 .sec = {STATUS1, 6, RW},
18788 .cmp = {STATUS2, 6, RW},
18789 .wps = {STATUS3, 2, RW},
18790 },
Nico Huberaabb3e02023-01-13 00:22:30 +010018791 .wp_write_cfg = spi_wp_write_cfg,
18792 .wp_read_cfg = spi_wp_read_cfg,
18793 .wp_get_ranges = spi_wp_get_available_ranges,
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018794 .decode_range = decode_range_spi25,
18795 },
18796
18797 {
18798 .vendor = "Winbond",
Angel Pons0d4354e2024-05-26 16:33:51 +020018799 .name = "W25Q32JV-.M",
18800 .bustype = BUS_SPI,
18801 .manufacture_id = WINBOND_NEX_ID,
18802 .model_id = WINBOND_NEX_W25Q32JV,
18803 .total_size = 4096,
18804 .page_size = 256,
18805 /* supports SFDP */
Nico Huber1412d9f2024-01-06 18:25:49 +010018806 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI_SRP |
Angel Pons0d4354e2024-05-26 16:33:51 +020018807 FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3,
Nico Huber1412d9f2024-01-06 18:25:49 +010018808 .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } },
Angel Pons0d4354e2024-05-26 16:33:51 +020018809 .tested = TEST_OK_PREW,
18810 .probe = probe_spi_rdid,
18811 .probe_timing = TIMING_ZERO,
18812 .block_erasers =
18813 {
18814 {
18815 .eraseblocks = { {4 * 1024, 1024} },
18816 .block_erase = spi_block_erase_20,
18817 }, {
18818 .eraseblocks = { {32 * 1024, 128} },
18819 .block_erase = spi_block_erase_52,
18820 }, {
18821 .eraseblocks = { {64 * 1024, 64} },
18822 .block_erase = spi_block_erase_d8,
18823 }, {
18824 .eraseblocks = { {4 * 1024 * 1024, 1} },
18825 .block_erase = spi_block_erase_60,
18826 }, {
18827 .eraseblocks = { {4 * 1024 * 1024, 1} },
18828 .block_erase = spi_block_erase_c7,
18829 }
18830 },
18831 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
18832 .unlock = spi_disable_blockprotect_bp2_srwd,
18833 .write = spi_chip_write_256,
18834 .read = spi_chip_read,
18835 .voltage = {2700, 3600},
18836 .reg_bits =
18837 {
Nico Huber2133f592024-01-06 18:30:01 +010018838 .qe = {STATUS2, 1, RW},
Angel Pons0d4354e2024-05-26 16:33:51 +020018839 .srp = {STATUS1, 7, RW},
18840 .srl = {STATUS2, 0, RW},
18841 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
18842 .tb = {STATUS1, 5, RW},
18843 .sec = {STATUS1, 6, RW},
18844 .cmp = {STATUS2, 6, RW},
18845 .wps = {STATUS3, 2, RW},
18846 },
18847 .wp_write_cfg = spi_wp_write_cfg,
18848 .wp_read_cfg = spi_wp_read_cfg,
18849 .wp_get_ranges = spi_wp_get_available_ranges,
18850 .decode_range = decode_range_spi25,
18851 },
18852
18853 {
18854 .vendor = "Winbond",
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018855 .name = "W25Q32BW/W25Q32CW/W25Q32DW",
Alan Green1f9cc7d2019-07-01 11:10:45 +100018856 .bustype = BUS_SPI,
18857 .manufacture_id = WINBOND_NEX_ID,
18858 .model_id = WINBOND_NEX_W25Q32_W,
18859 .total_size = 4096,
18860 .page_size = 256,
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018861 /* OTP: 1024B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber1412d9f2024-01-06 18:25:49 +010018862 /* QPI: only DW version */
18863 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QIO,
Alan Green1f9cc7d2019-07-01 11:10:45 +100018864 .tested = TEST_OK_PREW,
18865 .probe = probe_spi_rdid,
18866 .probe_timing = TIMING_ZERO,
18867 .block_erasers =
18868 {
18869 {
18870 .eraseblocks = { {4 * 1024, 1024} },
18871 .block_erase = spi_block_erase_20,
18872 }, {
18873 .eraseblocks = { {32 * 1024, 128} },
18874 .block_erase = spi_block_erase_52,
18875 }, {
18876 .eraseblocks = { {64 * 1024, 64} },
18877 .block_erase = spi_block_erase_d8,
18878 }, {
18879 .eraseblocks = { {4 * 1024 * 1024, 1} },
18880 .block_erase = spi_block_erase_60,
18881 }, {
18882 .eraseblocks = { {4 * 1024 * 1024, 1} },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000018883 .block_erase = spi_block_erase_c7,
18884 }
18885 },
18886 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18887 .unlock = spi_disable_blockprotect,
18888 .write = spi_chip_write_256,
18889 .read = spi_chip_read,
Nico Huber1412d9f2024-01-06 18:25:49 +010018890 .voltage = {1700, 1950},
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018891 .reg_bits =
18892 {
Nico Huber2133f592024-01-06 18:30:01 +010018893 .qe = {STATUS2, 1, RW},
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018894 .srp = {STATUS1, 7, RW},
18895 .srl = {STATUS2, 0, RW},
18896 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
18897 .tb = {STATUS1, 5, RW},
18898 .sec = {STATUS1, 6, RW},
18899 .cmp = {STATUS2, 6, RW},
18900 },
Nico Huberaabb3e02023-01-13 00:22:30 +010018901 .wp_write_cfg = spi_wp_write_cfg,
18902 .wp_read_cfg = spi_wp_read_cfg,
18903 .wp_get_ranges = spi_wp_get_available_ranges,
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018904 .decode_range = decode_range_spi25,
18905 },
18906
18907 {
18908 .vendor = "Winbond",
18909 .name = "W25Q32FW",
18910 .bustype = BUS_SPI,
18911 .manufacture_id = WINBOND_NEX_ID,
18912 .model_id = WINBOND_NEX_W25Q32_W,
18913 .total_size = 4096,
18914 .page_size = 256,
18915 /* OTP: 768B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber1412d9f2024-01-06 18:25:49 +010018916 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI_SRP |
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018917 FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3,
Nico Huber1412d9f2024-01-06 18:25:49 +010018918 .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } },
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018919 .tested = TEST_OK_PREW,
18920 .probe = probe_spi_rdid,
18921 .probe_timing = TIMING_ZERO,
18922 .block_erasers =
18923 {
18924 {
18925 .eraseblocks = { {4 * 1024, 1024} },
18926 .block_erase = spi_block_erase_20,
18927 }, {
18928 .eraseblocks = { {32 * 1024, 128} },
18929 .block_erase = spi_block_erase_52,
18930 }, {
18931 .eraseblocks = { {64 * 1024, 64} },
18932 .block_erase = spi_block_erase_d8,
18933 }, {
18934 .eraseblocks = { {4 * 1024 * 1024, 1} },
18935 .block_erase = spi_block_erase_60,
18936 }, {
18937 .eraseblocks = { {4 * 1024 * 1024, 1} },
18938 .block_erase = spi_block_erase_c7,
18939 }
18940 },
18941 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18942 .unlock = spi_disable_blockprotect,
18943 .write = spi_chip_write_256,
18944 .read = spi_chip_read,
Nico Huber1412d9f2024-01-06 18:25:49 +010018945 .voltage = {1700, 1950},
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018946 .reg_bits =
18947 {
Nico Huber2133f592024-01-06 18:30:01 +010018948 .qe = {STATUS2, 1, RW},
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018949 .srp = {STATUS1, 7, RW},
18950 .srl = {STATUS2, 0, RW},
18951 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
18952 .tb = {STATUS1, 5, RW},
18953 .sec = {STATUS1, 6, RW},
18954 .cmp = {STATUS2, 6, RW},
18955 .wps = {STATUS3, 2, RW},
18956 },
Nico Huberaabb3e02023-01-13 00:22:30 +010018957 .wp_write_cfg = spi_wp_write_cfg,
18958 .wp_read_cfg = spi_wp_read_cfg,
18959 .wp_get_ranges = spi_wp_get_available_ranges,
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018960 .decode_range = decode_range_spi25,
18961 },
18962
18963 {
18964 .vendor = "Winbond",
18965 .name = "W25Q32JW...Q",
18966 .bustype = BUS_SPI,
18967 .manufacture_id = WINBOND_NEX_ID,
18968 .model_id = WINBOND_NEX_W25Q32_W,
18969 .total_size = 4096,
18970 .page_size = 256,
18971 /* OTP: 768B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
18972 /* QPI enable 0x38, disable 0xFF */
Nico Huber2133f592024-01-06 18:30:01 +010018973 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QIO |
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030018974 FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3,
18975 .tested = TEST_OK_PREW,
18976 .probe = probe_spi_rdid,
18977 .probe_timing = TIMING_ZERO,
18978 .block_erasers =
18979 {
18980 {
18981 .eraseblocks = { {4 * 1024, 1024} },
18982 .block_erase = spi_block_erase_20,
18983 }, {
18984 .eraseblocks = { {32 * 1024, 128} },
18985 .block_erase = spi_block_erase_52,
18986 }, {
18987 .eraseblocks = { {64 * 1024, 64} },
18988 .block_erase = spi_block_erase_d8,
18989 }, {
18990 .eraseblocks = { {4 * 1024 * 1024, 1} },
18991 .block_erase = spi_block_erase_60,
18992 }, {
18993 .eraseblocks = { {4 * 1024 * 1024, 1} },
18994 .block_erase = spi_block_erase_c7,
18995 }
18996 },
18997 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
18998 .unlock = spi_disable_blockprotect,
18999 .write = spi_chip_write_256,
19000 .read = spi_chip_read,
Nico Huber2133f592024-01-06 18:30:01 +010019001 .voltage = {1700, 1950},
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030019002 .reg_bits =
19003 {
19004 .srp = {STATUS1, 7, RW},
19005 .srl = {STATUS2, 0, RW},
19006 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
19007 .tb = {STATUS1, 5, RW},
19008 .sec = {STATUS1, 6, RW},
19009 .cmp = {STATUS2, 6, RW},
19010 .wps = {STATUS3, 2, RW},
19011 },
Nico Huberaabb3e02023-01-13 00:22:30 +010019012 .wp_write_cfg = spi_wp_write_cfg,
19013 .wp_read_cfg = spi_wp_read_cfg,
19014 .wp_get_ranges = spi_wp_get_available_ranges,
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030019015 .decode_range = decode_range_spi25,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000019016 },
19017
19018 {
19019 .vendor = "Winbond",
Nikolai Artemiev6ae79b12021-05-08 17:31:23 +100019020 .name = "W25Q32JW...M",
19021 .bustype = BUS_SPI,
19022 .manufacture_id = WINBOND_NEX_ID,
19023 .model_id = WINBOND_NEX_W25Q32JW_M,
19024 .total_size = 4096,
19025 .page_size = 256,
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030019026 /* OTP: 768B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
19027 /* QPI enable 0x38, disable 0xFF */
Nico Huber2133f592024-01-06 18:30:01 +010019028 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI_SRP |
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030019029 FEATURE_WRSR2 | FEATURE_WRSR3 | FEATURE_WRSR_EXT2,
Nico Huber2133f592024-01-06 18:30:01 +010019030 .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } },
Nikolai Artemiev6ae79b12021-05-08 17:31:23 +100019031 .tested = TEST_OK_PREW,
19032 .probe = probe_spi_rdid,
19033 .probe_timing = TIMING_ZERO,
19034 .block_erasers =
19035 {
19036 {
19037 .eraseblocks = { {4 * 1024, 1024} },
19038 .block_erase = spi_block_erase_20,
19039 }, {
19040 .eraseblocks = { {32 * 1024, 128} },
19041 .block_erase = spi_block_erase_52,
19042 }, {
19043 .eraseblocks = { {64 * 1024, 64} },
19044 .block_erase = spi_block_erase_d8,
19045 }, {
19046 .eraseblocks = { {4 * 1024 * 1024, 1} },
19047 .block_erase = spi_block_erase_60,
19048 }, {
19049 .eraseblocks = { {4 * 1024 * 1024, 1} },
19050 .block_erase = spi_block_erase_c7,
19051 }
19052 },
19053 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
19054 .unlock = spi_disable_blockprotect_bp2_srwd,
19055 .write = spi_chip_write_256,
19056 .read = spi_chip_read,
19057 .voltage = {1700, 1950},
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030019058 .reg_bits =
19059 {
Nico Huber2133f592024-01-06 18:30:01 +010019060 .qe = {STATUS2, 1, RW},
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030019061 .srp = {STATUS1, 7, RW},
19062 .srl = {STATUS2, 0, RW},
19063 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
19064 .tb = {STATUS1, 5, RW},
19065 .sec = {STATUS1, 6, RW},
19066 .cmp = {STATUS2, 6, RW},
19067 .wps = {STATUS3, 2, RW},
19068 },
Nico Huberaabb3e02023-01-13 00:22:30 +010019069 .wp_write_cfg = spi_wp_write_cfg,
19070 .wp_read_cfg = spi_wp_read_cfg,
19071 .wp_get_ranges = spi_wp_get_available_ranges,
Sergii Dmytrukb1fb3f72022-07-25 00:27:37 +030019072 .decode_range = decode_range_spi25,
Nikolai Artemiev6ae79b12021-05-08 17:31:23 +100019073 },
19074
19075 {
19076 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100019077 .name = "W25Q40.V",
19078 .bustype = BUS_SPI,
19079 .manufacture_id = WINBOND_NEX_ID,
19080 .model_id = WINBOND_NEX_W25Q40_V,
19081 .total_size = 512,
19082 .page_size = 256,
19083 /* supports SFDP */
19084 /* OTP: 756B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber2133f592024-01-06 18:30:01 +010019085 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QIO,
Alan Green1f9cc7d2019-07-01 11:10:45 +100019086 .tested = TEST_OK_PREW,
19087 .probe = probe_spi_rdid,
19088 .probe_timing = TIMING_ZERO,
19089 .block_erasers =
19090 {
19091 {
19092 .eraseblocks = { {4 * 1024, 128} },
19093 .block_erase = spi_block_erase_20,
19094 }, {
19095 .eraseblocks = { {32 * 1024, 16} },
19096 .block_erase = spi_block_erase_52,
19097 }, {
19098 .eraseblocks = { {64 * 1024, 8} },
19099 .block_erase = spi_block_erase_d8,
19100 }, {
19101 .eraseblocks = { {512 * 1024, 1} },
19102 .block_erase = spi_block_erase_60,
19103 }, {
19104 .eraseblocks = { {512 * 1024, 1} },
19105 .block_erase = spi_block_erase_c7,
19106 }
19107 },
Nico Huber2133f592024-01-06 18:30:01 +010019108 .reg_bits =
19109 {
19110 .qe = {STATUS2, 1, RW},
19111 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100019112 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19113 .unlock = spi_disable_blockprotect,
19114 .write = spi_chip_write_256, /* Multi I/O supported */
Nico Huber2133f592024-01-06 18:30:01 +010019115 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +100019116 .voltage = {2700, 3600},
19117 },
19118
19119 {
19120 .vendor = "Winbond",
Nico Huber25683572018-03-30 13:50:13 +020019121 .name = "W25Q40BW",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000019122 .bustype = BUS_SPI,
19123 .manufacture_id = WINBOND_NEX_ID,
Nico Huber25683572018-03-30 13:50:13 +020019124 .model_id = WINBOND_NEX_W25Q40BW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000019125 .total_size = 512,
19126 .page_size = 256,
19127 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber2133f592024-01-06 18:30:01 +010019128 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QIO,
Angel Pons3164a0c2018-09-30 20:26:06 +020019129 .tested = TEST_OK_PREW,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000019130 .probe = probe_spi_rdid,
19131 .probe_timing = TIMING_ZERO,
19132 .block_erasers =
19133 {
19134 {
19135 .eraseblocks = { {4 * 1024, 128} },
19136 .block_erase = spi_block_erase_20,
19137 }, {
19138 .eraseblocks = { {32 * 1024, 16} },
19139 .block_erase = spi_block_erase_52,
19140 }, {
19141 .eraseblocks = { {64 * 1024, 8} },
19142 .block_erase = spi_block_erase_d8,
19143 }, {
19144 .eraseblocks = { {512 * 1024, 1} },
19145 .block_erase = spi_block_erase_60,
19146 }, {
19147 .eraseblocks = { {512 * 1024, 1} },
19148 .block_erase = spi_block_erase_c7,
19149 }
19150 },
Nico Huber2133f592024-01-06 18:30:01 +010019151 .reg_bits =
19152 {
19153 .qe = {STATUS2, 1, RW},
19154 },
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000019155 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19156 .unlock = spi_disable_blockprotect,
19157 .write = spi_chip_write_256,
19158 .read = spi_chip_read,
Nico Huber2133f592024-01-06 18:30:01 +010019159 .voltage = {1700, 1950},
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000019160 },
19161
19162 {
19163 .vendor = "Winbond",
Nico Huber25683572018-03-30 13:50:13 +020019164 .name = "W25Q40EW",
19165 .bustype = BUS_SPI,
19166 .manufacture_id = WINBOND_NEX_ID,
19167 .model_id = WINBOND_NEX_W25Q40EW,
19168 .total_size = 512,
19169 .page_size = 256,
19170 /* OTP: 3*256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber2133f592024-01-06 18:30:01 +010019171 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_WRSR2 |
19172 FEATURE_OTP | FEATURE_QPI_SRP,
19173 .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } },
Alan Green07b8a172019-09-23 16:47:05 +100019174 .tested = TEST_OK_PREW,
Nico Huber25683572018-03-30 13:50:13 +020019175 .probe = probe_spi_rdid,
19176 .probe_timing = TIMING_ZERO,
19177 .block_erasers =
19178 {
19179 {
19180 .eraseblocks = { {4 * 1024, 128} },
19181 .block_erase = spi_block_erase_20,
19182 }, {
19183 .eraseblocks = { {32 * 1024, 16} },
19184 .block_erase = spi_block_erase_52,
19185 }, {
19186 .eraseblocks = { {64 * 1024, 8} },
19187 .block_erase = spi_block_erase_d8,
19188 }, {
19189 .eraseblocks = { {512 * 1024, 1} },
19190 .block_erase = spi_block_erase_60,
19191 }, {
19192 .eraseblocks = { {512 * 1024, 1} },
19193 .block_erase = spi_block_erase_c7,
19194 }
19195 },
Nico Huber2133f592024-01-06 18:30:01 +010019196 .reg_bits =
19197 {
19198 .qe = {STATUS2, 1, RW},
19199 },
Nico Huber25683572018-03-30 13:50:13 +020019200 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19201 .unlock = spi_disable_blockprotect,
19202 .write = spi_chip_write_256,
19203 .read = spi_chip_read,
Nico Huber2133f592024-01-06 18:30:01 +010019204 .voltage = {1650, 1950},
Nico Huber25683572018-03-30 13:50:13 +020019205 },
19206
Stanislav Sedovf5775442018-03-07 14:16:51 -080019207 {
19208 .vendor = "Winbond",
Joel Stanley55439612019-07-27 19:25:35 +093019209 .name = "W25Q512JV",
19210 .bustype = BUS_SPI,
19211 .manufacture_id = WINBOND_NEX_ID,
19212 .model_id = WINBOND_NEX_W25Q512JV,
19213 .total_size = 64 * 1024,
19214 .page_size = 256,
Nico Huber2133f592024-01-06 18:30:01 +010019215 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3 |
19216 FEATURE_OTP | FEATURE_4BA | FEATURE_QIO,
Joel Stanley55439612019-07-27 19:25:35 +093019217 .tested = TEST_OK_PREW,
19218 .probe = probe_spi_rdid,
19219 .probe_timing = TIMING_ZERO,
19220 .block_erasers =
19221 {
19222 {
19223 .eraseblocks = { {4 * 1024, 16384} },
19224 .block_erase = spi_block_erase_21,
19225 }, {
19226 .eraseblocks = { {4 * 1024, 16384} },
19227 .block_erase = spi_block_erase_20,
19228 }, {
19229 .eraseblocks = { {32 * 1024, 2048} },
19230 .block_erase = spi_block_erase_52,
19231 }, {
19232 .eraseblocks = { {64 * 1024, 1024} },
19233 .block_erase = spi_block_erase_dc,
19234 }, {
19235 .eraseblocks = { {64 * 1024, 1024} },
19236 .block_erase = spi_block_erase_d8,
19237 }, {
19238 .eraseblocks = { {64 * 1024 * 1024, 1} },
19239 .block_erase = spi_block_erase_60,
19240 }, {
19241 .eraseblocks = { {64 * 1024 * 1024, 1} },
19242 .block_erase = spi_block_erase_c7,
19243 }
19244 },
Nico Huber2133f592024-01-06 18:30:01 +010019245 .reg_bits =
19246 {
19247 .qe = {STATUS2, 1, RW},
19248 },
Joel Stanley55439612019-07-27 19:25:35 +093019249 .printlock = spi_prettyprint_status_register_plain,
19250 .unlock = spi_disable_blockprotect,
19251 .write = spi_chip_write_256,
19252 .read = spi_chip_read,
19253 .voltage = {2700, 3600},
Nico Huberab6b18f2023-01-11 23:38:20 +010019254 .prepare_access = spi_prepare_4ba,
Joel Stanley55439612019-07-27 19:25:35 +093019255 },
19256
19257 {
Felix Singer3c9bdb92022-12-15 23:30:16 +010019258 .vendor = "Winbond",
19259 .name = "W25Q512NW-IM",
19260 .bustype = BUS_SPI,
19261 .manufacture_id = WINBOND_NEX_ID,
19262 .model_id = WINBOND_NEX_W25Q512NW_IM,
19263 .total_size = 64 * 1024,
19264 .page_size = 256,
Nico Huber2133f592024-01-06 18:30:01 +010019265 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_WRSR3 |
19266 FEATURE_OTP | FEATURE_4BA | FEATURE_QPI_SRP,
19267 .dummy_cycles =
19268 {
19269 /* Actually has 3 parameter bits, but higher values only help with DTR. */
19270 .qpi_read_params = { 2, 4, 6, 8 },
19271 },
Subrata Banikf5bffd92022-12-14 12:30:43 +053019272 .tested = TEST_OK_PREWB,
Felix Singer3c9bdb92022-12-15 23:30:16 +010019273 .probe = probe_spi_rdid,
19274 .probe_timing = TIMING_ZERO,
19275 .block_erasers =
Atul Dhudase2502dbd2021-09-21 10:02:20 +053019276 {
Felix Singer3c9bdb92022-12-15 23:30:16 +010019277 {
19278 .eraseblocks = { {4 * 1024, 16384} },
19279 .block_erase = spi_block_erase_21,
19280 }, {
19281 .eraseblocks = { {4 * 1024, 16384} },
19282 .block_erase = spi_block_erase_20,
19283 }, {
19284 .eraseblocks = { {32 * 1024, 2048} },
19285 .block_erase = spi_block_erase_52,
19286 }, {
19287 .eraseblocks = { {64 * 1024, 1024} },
19288 .block_erase = spi_block_erase_dc,
19289 }, {
19290 .eraseblocks = { {64 * 1024, 1024} },
19291 .block_erase = spi_block_erase_d8,
19292 }, {
19293 .eraseblocks = { {64 * 1024 * 1024, 1} },
19294 .block_erase = spi_block_erase_60,
19295 }, {
19296 .eraseblocks = { {64 * 1024 * 1024, 1} },
19297 .block_erase = spi_block_erase_c7,
19298 }
19299 },
19300 .unlock = spi_disable_blockprotect,
19301 .write = spi_chip_write_256,
19302 .read = spi_chip_read,
19303 .voltage = {1650, 1950},
Subrata Banikf5bffd92022-12-14 12:30:43 +053019304 .reg_bits =
19305 {
Nico Huber2133f592024-01-06 18:30:01 +010019306 .qe = {STATUS2, 1, RW},
Subrata Banikf5bffd92022-12-14 12:30:43 +053019307 .srp = {STATUS1, 7, RW},
19308 .srl = {STATUS2, 0, RW},
19309 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}},
19310 .tb = {STATUS1, 6, RW},
19311 .cmp = {STATUS2, 6, RW},
19312 .wps = {STATUS3, 2, RW},
19313 },
Nico Huberaabb3e02023-01-13 00:22:30 +010019314 .wp_write_cfg = spi_wp_write_cfg,
19315 .wp_read_cfg = spi_wp_read_cfg,
19316 .wp_get_ranges = spi_wp_get_available_ranges,
Subrata Banikf5bffd92022-12-14 12:30:43 +053019317 .decode_range = decode_range_spi25,
Nico Huberab6b18f2023-01-11 23:38:20 +010019318 .prepare_access = spi_prepare_4ba,
Atul Dhudase2502dbd2021-09-21 10:02:20 +053019319 },
19320
19321 {
Joel Stanley55439612019-07-27 19:25:35 +093019322 .vendor = "Winbond",
Sergii Dmytrukd1af3072021-11-08 00:00:43 +020019323 .name = "W25Q64BV/W25Q64CV/W25Q64FV",
Stanislav Sedovf5775442018-03-07 14:16:51 -080019324 .bustype = BUS_SPI,
19325 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100019326 .model_id = WINBOND_NEX_W25Q64_V,
19327 .total_size = 8192,
Stanislav Sedovf5775442018-03-07 14:16:51 -080019328 .page_size = 256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100019329 /* supports SFDP */
19330 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber2133f592024-01-06 18:30:01 +010019331 /* QPI: only FV version */
19332 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QIO,
Sergii Dmytrukc74eac22022-10-06 18:17:58 +030019333 .tested = TEST_OK_PREWB,
Stanislav Sedovf5775442018-03-07 14:16:51 -080019334 .probe = probe_spi_rdid,
19335 .probe_timing = TIMING_ZERO,
19336 .block_erasers =
19337 {
19338 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100019339 .eraseblocks = { {4 * 1024, 2048} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080019340 .block_erase = spi_block_erase_20,
19341 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100019342 .eraseblocks = { {32 * 1024, 256} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080019343 .block_erase = spi_block_erase_52,
19344 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100019345 .eraseblocks = { {64 * 1024, 128} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080019346 .block_erase = spi_block_erase_d8,
19347 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100019348 .eraseblocks = { {8 * 1024 * 1024, 1} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080019349 .block_erase = spi_block_erase_60,
19350 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100019351 .eraseblocks = { {8 * 1024 * 1024, 1} },
Stanislav Sedovf5775442018-03-07 14:16:51 -080019352 .block_erase = spi_block_erase_c7,
19353 }
19354 },
19355 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19356 .unlock = spi_disable_blockprotect,
19357 .write = spi_chip_write_256,
19358 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +100019359 .voltage = {2700, 3600},
Sergii Dmytrukd1af3072021-11-08 00:00:43 +020019360 .reg_bits =
19361 {
Nico Huber2133f592024-01-06 18:30:01 +010019362 .qe = {STATUS2, 1, RW},
Sergii Dmytrukd1af3072021-11-08 00:00:43 +020019363 .srp = {STATUS1, 7, RW},
19364 .srl = {STATUS2, 0, RW},
19365 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
19366 .tb = {STATUS1, 5, RW},
19367 .sec = {STATUS1, 6, RW},
19368 .cmp = {STATUS2, 6, RW},
19369 },
Nico Huberaabb3e02023-01-13 00:22:30 +010019370 .wp_write_cfg = spi_wp_write_cfg,
19371 .wp_read_cfg = spi_wp_read_cfg,
19372 .wp_get_ranges = spi_wp_get_available_ranges,
Sergii Dmytrukd1af3072021-11-08 00:00:43 +020019373 .decode_range = decode_range_spi25,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000019374 },
19375
19376 {
19377 .vendor = "Winbond",
Sergii Dmytrukd1af3072021-11-08 00:00:43 +020019378 .name = "W25Q64JV-.Q",
19379 .bustype = BUS_SPI,
19380 .manufacture_id = WINBOND_NEX_ID,
19381 .model_id = WINBOND_NEX_W25Q64_V,
19382 .total_size = 8192,
19383 .page_size = 256,
19384 /* supports SFDP */
19385 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber2133f592024-01-06 18:30:01 +010019386 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QIO |
Nico Huber3f3c1f32022-05-28 16:48:26 +020019387 FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3,
Sergii Dmytrukd1af3072021-11-08 00:00:43 +020019388 .tested = TEST_OK_PREW,
19389 .probe = probe_spi_rdid,
19390 .probe_timing = TIMING_ZERO,
19391 .block_erasers =
19392 {
19393 {
19394 .eraseblocks = { {4 * 1024, 2048} },
19395 .block_erase = spi_block_erase_20,
19396 }, {
19397 .eraseblocks = { {32 * 1024, 256} },
19398 .block_erase = spi_block_erase_52,
19399 }, {
19400 .eraseblocks = { {64 * 1024, 128} },
19401 .block_erase = spi_block_erase_d8,
19402 }, {
19403 .eraseblocks = { {8 * 1024 * 1024, 1} },
19404 .block_erase = spi_block_erase_60,
19405 }, {
19406 .eraseblocks = { {8 * 1024 * 1024, 1} },
19407 .block_erase = spi_block_erase_c7,
19408 }
19409 },
19410 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19411 .unlock = spi_disable_blockprotect,
19412 .write = spi_chip_write_256,
19413 .read = spi_chip_read,
19414 .voltage = {2700, 3600},
19415 .reg_bits =
19416 {
Nico Huber2133f592024-01-06 18:30:01 +010019417 .qe = {STATUS2, 1, RW},
Sergii Dmytrukd1af3072021-11-08 00:00:43 +020019418 .srp = {STATUS1, 7, RW},
19419 .srl = {STATUS2, 0, RW},
19420 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
19421 .tb = {STATUS1, 5, RW},
19422 .sec = {STATUS1, 6, RW},
19423 .cmp = {STATUS2, 6, RW},
19424 .wps = {STATUS3, 2, RW},
19425 },
Nico Huberaabb3e02023-01-13 00:22:30 +010019426 .wp_write_cfg = spi_wp_write_cfg,
19427 .wp_read_cfg = spi_wp_read_cfg,
19428 .wp_get_ranges = spi_wp_get_available_ranges,
Sergii Dmytrukd1af3072021-11-08 00:00:43 +020019429 .decode_range = decode_range_spi25,
19430 },
19431
19432 {
19433 .vendor = "Winbond",
19434 .name = "W25Q64JV-.M",
Simon Buhrow236a38c2021-11-05 11:48:30 +010019435 .bustype = BUS_SPI,
19436 .manufacture_id = WINBOND_NEX_ID,
19437 .model_id = WINBOND_NEX_W25Q64JV,
19438 .total_size = 8192,
19439 .page_size = 256,
19440 /* supports SFDP */
Nico Huber2133f592024-01-06 18:30:01 +010019441 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3 |
19442 FEATURE_OTP | FEATURE_QPI_SRP,
Nico Huber1412d9f2024-01-06 18:25:49 +010019443 .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } },
Simon Buhrow236a38c2021-11-05 11:48:30 +010019444 .tested = TEST_OK_PREW,
19445 .probe = probe_spi_rdid,
19446 .probe_timing = TIMING_ZERO,
19447 .block_erasers =
19448 {
19449 {
19450 .eraseblocks = { {4 * 1024, 2048} },
19451 .block_erase = spi_block_erase_20,
19452 }, {
19453 .eraseblocks = { {32 * 1024, 256} },
19454 .block_erase = spi_block_erase_52,
19455 }, {
19456 .eraseblocks = { {64 * 1024, 128} },
19457 .block_erase = spi_block_erase_d8,
19458 }, {
19459 .eraseblocks = { {8 * 1024 * 1024, 1} },
19460 .block_erase = spi_block_erase_60,
19461 }, {
19462 .eraseblocks = { {8 * 1024 * 1024, 1} },
19463 .block_erase = spi_block_erase_c7,
19464 }
19465 },
Nico Huber2133f592024-01-06 18:30:01 +010019466 .reg_bits =
19467 {
19468 .qe = {STATUS2, 1, RW},
19469 },
Simon Buhrow236a38c2021-11-05 11:48:30 +010019470 .printlock = spi_prettyprint_status_register_bp2_tb_bpl,
19471 .unlock = spi_disable_blockprotect_bp2_srwd,
19472 .write = spi_chip_write_256,
19473 .read = spi_chip_read,
19474 .voltage = {2700, 3600},
19475 },
19476
19477 {
19478 .vendor = "Winbond",
Nico Hubera358b142024-04-14 18:29:06 +020019479 .name = "W25Q64DW",
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000019480 .bustype = BUS_SPI,
19481 .manufacture_id = WINBOND_NEX_ID,
19482 .model_id = WINBOND_NEX_W25Q64_W,
19483 .total_size = 8192,
19484 .page_size = 256,
19485 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber1412d9f2024-01-06 18:25:49 +010019486 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QPI_SRP,
19487 .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } },
Nico Hubera358b142024-04-14 18:29:06 +020019488 .tested = TEST_OK_PREW,
19489 .probe = probe_spi_rdid,
19490 .probe_timing = TIMING_ZERO,
19491 .block_erasers =
19492 {
19493 {
19494 .eraseblocks = { {4 * 1024, 2048} },
19495 .block_erase = spi_block_erase_20,
19496 }, {
19497 .eraseblocks = { {32 * 1024, 256} },
19498 .block_erase = spi_block_erase_52,
19499 }, {
19500 .eraseblocks = { {64 * 1024, 128} },
19501 .block_erase = spi_block_erase_d8,
19502 }, {
19503 .eraseblocks = { {8 * 1024 * 1024, 1} },
19504 .block_erase = spi_block_erase_60,
19505 }, {
19506 .eraseblocks = { {8 * 1024 * 1024, 1} },
19507 .block_erase = spi_block_erase_c7,
19508 }
19509 },
19510 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19511 .unlock = spi_disable_blockprotect,
19512 .write = spi_chip_write_256,
19513 .read = spi_chip_read,
19514 .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */
19515 .reg_bits =
19516 {
19517 .srp = {STATUS1, 7, RW},
19518 .srl = {STATUS2, 0, RW},
19519 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
19520 .tb = {STATUS1, 5, RW},
19521 .sec = {STATUS1, 6, RW},
19522 .cmp = {STATUS2, 6, RW},
19523 },
19524 .wp_write_cfg = spi_wp_write_cfg,
19525 .wp_read_cfg = spi_wp_read_cfg,
19526 .wp_get_ranges = spi_wp_get_available_ranges,
19527 .decode_range = decode_range_spi25,
19528 },
19529
19530 {
19531 .vendor = "Winbond",
19532 .name = "W25Q64FW/W25Q64JW...Q",
19533 .bustype = BUS_SPI,
19534 .manufacture_id = WINBOND_NEX_ID,
19535 .model_id = WINBOND_NEX_W25Q64_W,
19536 .total_size = 8192,
19537 .page_size = 256,
19538 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber1412d9f2024-01-06 18:25:49 +010019539 /* FEATURE_QPI_SRP (2, 4, 6, 8): only FW version */
Nico Hubera358b142024-04-14 18:29:06 +020019540 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_WRSR3 |
Nico Huber1412d9f2024-01-06 18:25:49 +010019541 FEATURE_OTP | FEATURE_QIO,
Sergii Dmytrukc74eac22022-10-06 18:17:58 +030019542 .tested = TEST_OK_PREWB,
Yung-Chieh Lob13d4e62013-06-09 14:00:46 +000019543 .probe = probe_spi_rdid,
19544 .probe_timing = TIMING_ZERO,
19545 .block_erasers =
19546 {
19547 {
19548 .eraseblocks = { {4 * 1024, 2048} },
19549 .block_erase = spi_block_erase_20,
19550 }, {
19551 .eraseblocks = { {32 * 1024, 256} },
19552 .block_erase = spi_block_erase_52,
19553 }, {
19554 .eraseblocks = { {64 * 1024, 128} },
19555 .block_erase = spi_block_erase_d8,
19556 }, {
19557 .eraseblocks = { {8 * 1024 * 1024, 1} },
19558 .block_erase = spi_block_erase_60,
19559 }, {
19560 .eraseblocks = { {8 * 1024 * 1024, 1} },
19561 .block_erase = spi_block_erase_c7,
19562 }
19563 },
19564 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19565 .unlock = spi_disable_blockprotect,
19566 .write = spi_chip_write_256,
19567 .read = spi_chip_read,
Nico Huber1412d9f2024-01-06 18:25:49 +010019568 .voltage = {1700, 1950},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110019569 .reg_bits =
19570 {
Nico Huber2133f592024-01-06 18:30:01 +010019571 .qe = {STATUS2, 1, RW},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110019572 .srp = {STATUS1, 7, RW},
19573 .srl = {STATUS2, 0, RW},
19574 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
19575 .tb = {STATUS1, 5, RW},
19576 .sec = {STATUS1, 6, RW},
19577 .cmp = {STATUS2, 6, RW},
19578 },
Nico Huberaabb3e02023-01-13 00:22:30 +010019579 .wp_write_cfg = spi_wp_write_cfg,
19580 .wp_read_cfg = spi_wp_read_cfg,
19581 .wp_get_ranges = spi_wp_get_available_ranges,
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110019582 .decode_range = decode_range_spi25,
Antony Rheneus0fbba982011-05-26 14:28:51 +000019583 },
19584
19585 {
19586 .vendor = "Winbond",
Nikolai Artemiev5fa05052021-05-14 15:26:47 +100019587 .name = "W25Q64JW...M",
Scott Chao1bbc5012020-04-08 22:10:50 +080019588 .bustype = BUS_SPI,
19589 .manufacture_id = WINBOND_NEX_ID,
Nikolai Artemiev5fa05052021-05-14 15:26:47 +100019590 .model_id = WINBOND_NEX_W25Q64JW_M,
Scott Chao1bbc5012020-04-08 22:10:50 +080019591 .total_size = 8192,
19592 .page_size = 256,
19593 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
19594 /* QPI enable 0x38, disable 0xFF */
Nico Huber1412d9f2024-01-06 18:25:49 +010019595 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_WRSR3 |
19596 FEATURE_OTP | FEATURE_QPI_SRP,
19597 .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } },
Scott Chao1bbc5012020-04-08 22:10:50 +080019598 .tested = TEST_OK_PREW,
19599 .probe = probe_spi_rdid,
19600 .probe_timing = TIMING_ZERO,
19601 .block_erasers =
19602 {
19603 {
19604 .eraseblocks = { {4 * 1024, 2048} },
19605 .block_erase = spi_block_erase_20,
19606 }, {
19607 .eraseblocks = { {32 * 1024, 256} },
19608 .block_erase = spi_block_erase_52,
19609 }, {
19610 .eraseblocks = { {64 * 1024, 128} },
19611 .block_erase = spi_block_erase_d8,
19612 }, {
19613 .eraseblocks = { {8 * 1024 * 1024, 1} },
19614 .block_erase = spi_block_erase_60,
19615 }, {
19616 .eraseblocks = { {8 * 1024 * 1024, 1} },
19617 .block_erase = spi_block_erase_c7,
19618 }
19619 },
19620 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19621 .unlock = spi_disable_blockprotect,
19622 .write = spi_chip_write_256,
19623 .read = spi_chip_read,
Nico Huber1412d9f2024-01-06 18:25:49 +010019624 .voltage = {1700, 1950},
Evan Benn29c8b5d2022-09-13 16:01:10 +100019625 .reg_bits =
19626 {
Nico Huber2133f592024-01-06 18:30:01 +010019627 .qe = {STATUS2, 1, RW},
Evan Benn29c8b5d2022-09-13 16:01:10 +100019628 .srp = {STATUS1, 7, RW},
19629 .srl = {STATUS2, 0, RW},
19630 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
19631 .tb = {STATUS1, 5, RW},
19632 .sec = {STATUS1, 6, RW},
19633 .cmp = {STATUS2, 6, RW},
19634 .wps = {STATUS3, 2, RW},
19635 },
Nico Huberaabb3e02023-01-13 00:22:30 +010019636 .wp_write_cfg = spi_wp_write_cfg,
19637 .wp_read_cfg = spi_wp_read_cfg,
19638 .wp_get_ranges = spi_wp_get_available_ranges,
Evan Benn29c8b5d2022-09-13 16:01:10 +100019639 .decode_range = decode_range_spi25,
Scott Chao1bbc5012020-04-08 22:10:50 +080019640 },
19641
19642 {
19643 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100019644 .name = "W25Q80.V",
Nico Huber70eed9f2017-04-24 22:19:27 +020019645 .bustype = BUS_SPI,
19646 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100019647 .model_id = WINBOND_NEX_W25Q80_V,
19648 .total_size = 1024,
Nico Huber70eed9f2017-04-24 22:19:27 +020019649 .page_size = 256,
19650 /* supports SFDP */
19651 /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber2133f592024-01-06 18:30:01 +010019652 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QIO,
David Hendricks48729d32017-12-08 14:44:07 -080019653 .tested = TEST_OK_PREW,
Nico Huber70eed9f2017-04-24 22:19:27 +020019654 .probe = probe_spi_rdid,
19655 .probe_timing = TIMING_ZERO,
19656 .block_erasers =
19657 {
19658 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100019659 .eraseblocks = { {4 * 1024, 256} },
Nico Huber70eed9f2017-04-24 22:19:27 +020019660 .block_erase = spi_block_erase_20,
19661 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100019662 .eraseblocks = { {32 * 1024, 32} },
Nico Huber70eed9f2017-04-24 22:19:27 +020019663 .block_erase = spi_block_erase_52,
19664 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100019665 .eraseblocks = { {64 * 1024, 16} },
Nico Huber70eed9f2017-04-24 22:19:27 +020019666 .block_erase = spi_block_erase_d8,
19667 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100019668 .eraseblocks = { {1024 * 1024, 1} },
Nico Huber70eed9f2017-04-24 22:19:27 +020019669 .block_erase = spi_block_erase_60,
19670 }, {
Alan Green1f9cc7d2019-07-01 11:10:45 +100019671 .eraseblocks = { {1024 * 1024, 1} },
Nico Huber70eed9f2017-04-24 22:19:27 +020019672 .block_erase = spi_block_erase_c7,
19673 }
19674 },
Nico Huber2133f592024-01-06 18:30:01 +010019675 .reg_bits =
19676 {
19677 .qe = {STATUS2, 1, RW},
19678 },
Nico Huber70eed9f2017-04-24 22:19:27 +020019679 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19680 .unlock = spi_disable_blockprotect,
19681 .write = spi_chip_write_256,
19682 .read = spi_chip_read,
Alan Green1f9cc7d2019-07-01 11:10:45 +100019683 .voltage = {2700, 3600},
19684 },
19685
19686 {
19687 .vendor = "Winbond",
19688 .name = "W25Q80BW",
19689 .bustype = BUS_SPI,
19690 .manufacture_id = WINBOND_NEX_ID,
19691 .model_id = WINBOND_NEX_W25Q80BW,
19692 .total_size = 1024,
19693 .page_size = 256,
19694 /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber2133f592024-01-06 18:30:01 +010019695 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QIO,
Alan Green1f9cc7d2019-07-01 11:10:45 +100019696 .tested = TEST_OK_PREW,
19697 .probe = probe_spi_rdid,
19698 .probe_timing = TIMING_ZERO,
19699 .block_erasers =
19700 {
19701 {
19702 .eraseblocks = { {4 * 1024, 256} },
19703 .block_erase = spi_block_erase_20,
19704 }, {
19705 .eraseblocks = { {32 * 1024, 32} },
19706 .block_erase = spi_block_erase_52,
19707 }, {
19708 .eraseblocks = { {64 * 1024, 16} },
19709 .block_erase = spi_block_erase_d8,
19710 }, {
19711 .eraseblocks = { {1 * 1024 * 1024, 1} },
19712 .block_erase = spi_block_erase_60,
19713 }, {
19714 .eraseblocks = { {1 * 1024 * 1024, 1} },
19715 .block_erase = spi_block_erase_c7,
19716 }
19717 },
Nico Huber2133f592024-01-06 18:30:01 +010019718 .reg_bits =
19719 {
19720 .qe = {STATUS2, 1, RW},
19721 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100019722 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19723 .unlock = spi_disable_blockprotect,
19724 .write = spi_chip_write_256,
19725 .read = spi_chip_read,
Nico Huber2133f592024-01-06 18:30:01 +010019726 .voltage = {1700, 1950},
Alan Green1f9cc7d2019-07-01 11:10:45 +100019727 },
19728
19729 {
19730 .vendor = "Winbond",
19731 .name = "W25Q80EW",
19732 .bustype = BUS_SPI,
19733 .manufacture_id = WINBOND_NEX_ID,
19734 .model_id = WINBOND_NEX_W25Q80EW,
19735 .total_size = 1024,
19736 .page_size = 256,
19737 /* OTP: 3*256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */
Nico Huber2133f592024-01-06 18:30:01 +010019738 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_WRSR2 |
19739 FEATURE_OTP | FEATURE_QPI_SRP,
19740 .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } },
Alan Green1f9cc7d2019-07-01 11:10:45 +100019741 .tested = TEST_OK_PREW,
19742 .probe = probe_spi_rdid,
19743 .probe_timing = TIMING_ZERO,
19744 .block_erasers =
19745 {
19746 {
19747 .eraseblocks = { {4 * 1024, 256} },
19748 .block_erase = spi_block_erase_20,
19749 }, {
19750 .eraseblocks = { {32 * 1024, 32} },
19751 .block_erase = spi_block_erase_52,
19752 }, {
19753 .eraseblocks = { {64 * 1024, 16} },
19754 .block_erase = spi_block_erase_d8,
19755 }, {
19756 .eraseblocks = { {1 * 1024 * 1024, 1} },
19757 .block_erase = spi_block_erase_60,
19758 }, {
19759 .eraseblocks = { {1 * 1024 * 1024, 1} },
19760 .block_erase = spi_block_erase_c7,
19761 }
19762 },
Nico Huber2133f592024-01-06 18:30:01 +010019763 .reg_bits =
19764 {
19765 .qe = {STATUS2, 1, RW},
19766 },
Alan Green1f9cc7d2019-07-01 11:10:45 +100019767 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19768 .unlock = spi_disable_blockprotect,
19769 .write = spi_chip_write_256,
19770 .read = spi_chip_read,
Nico Huber2133f592024-01-06 18:30:01 +010019771 .voltage = {1650, 1950},
Nico Huber70eed9f2017-04-24 22:19:27 +020019772 },
19773
19774 {
19775 .vendor = "Winbond",
Jacob Appelbaumebbdc022019-09-02 09:10:43 -040019776 .name = "W25X05",
19777 .bustype = BUS_SPI,
19778 .manufacture_id = WINBOND_NEX_ID,
19779 .model_id = WINBOND_NEX_W25X05,
19780 .total_size = 64,
19781 .page_size = 256,
Nico Hubera26a3c62024-04-12 19:28:28 +020019782 /* FEATURE_FAST_READ_DIO since W25X05B */
19783 .feature_bits = FEATURE_WRSR_WREN | FEATURE_FAST_READ_DOUT,
Jacob Appelbaumebbdc022019-09-02 09:10:43 -040019784 .tested = TEST_OK_PREW,
19785 .probe = probe_spi_rdid,
19786 .probe_timing = TIMING_ZERO,
19787 .block_erasers =
19788 {
19789 {
19790 .eraseblocks = { {4 * 1024, 16} },
19791 .block_erase = spi_block_erase_20,
19792 }, {
19793 .eraseblocks = { {32 * 1024, 2} },
19794 .block_erase = spi_block_erase_52,
19795 }, {
19796 .eraseblocks = { {64 * 1024, 1} },
19797 .block_erase = spi_block_erase_d8,
19798 }
19799 },
19800 .printlock = spi_prettyprint_status_register_plain,
19801 .unlock = spi_disable_blockprotect,
19802 .write = spi_chip_write_256,
19803 .read = spi_chip_read,
19804 .voltage = {2300, 3600},
19805 },
19806
19807 {
19808 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000019809 .name = "W25X10",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019810 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019811 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000019812 .model_id = WINBOND_NEX_W25X10,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019813 .total_size = 128,
19814 .page_size = 256,
Nico Hubera26a3c62024-04-12 19:28:28 +020019815 /* FEATURE_FAST_READ_DIO since W25X10B */
19816 .feature_bits = FEATURE_WRSR_WREN | FEATURE_FAST_READ_DOUT,
Stefan Taunere34e3e82013-01-01 00:06:51 +000019817 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019818 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000019819 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019820 .block_erasers =
19821 {
19822 {
19823 .eraseblocks = { {4 * 1024, 32} },
19824 .block_erase = spi_block_erase_20,
19825 }, {
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019826 .eraseblocks = { {64 * 1024, 2} },
19827 .block_erase = spi_block_erase_d8,
19828 }, {
19829 .eraseblocks = { {128 * 1024, 1} },
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019830 .block_erase = spi_block_erase_c7,
19831 }
19832 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000019833 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000019834 .unlock = spi_disable_blockprotect,
Carl-Daniel Hailfinger8d497012009-05-09 02:34:18 +000019835 .write = spi_chip_write_256,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019836 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000019837 .voltage = {2700, 3600},
FENG yu ningff692fb2008-12-08 18:15:10 +000019838 },
19839
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000019840 {
19841 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000019842 .name = "W25X16",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019843 .bustype = BUS_SPI,
Hector Martina721ae22009-07-11 19:39:11 +000019844 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000019845 .model_id = WINBOND_NEX_W25X16,
Hector Martina721ae22009-07-11 19:39:11 +000019846 .total_size = 2048,
19847 .page_size = 256,
Nico Hubera26a3c62024-04-12 19:28:28 +020019848 .feature_bits = FEATURE_WRSR_WREN | FEATURE_FAST_READ_DOUT,
Stefan Tauner8179be52011-06-04 13:13:34 +000019849 .tested = TEST_OK_PREW,
Hector Martina721ae22009-07-11 19:39:11 +000019850 .probe = probe_spi_rdid,
19851 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019852 .block_erasers =
19853 {
19854 {
19855 .eraseblocks = { {4 * 1024, 512} },
19856 .block_erase = spi_block_erase_20,
19857 }, {
19858 .eraseblocks = { {32 * 1024, 64} },
19859 .block_erase = spi_block_erase_52,
19860 }, {
19861 .eraseblocks = { {64 * 1024, 32} },
19862 .block_erase = spi_block_erase_d8,
19863 }, {
19864 .eraseblocks = { {2 * 1024 * 1024, 1} },
19865 .block_erase = spi_block_erase_60,
19866 }, {
19867 .eraseblocks = { {2 * 1024 * 1024, 1} },
19868 .block_erase = spi_block_erase_c7,
19869 }
19870 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000019871 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000019872 .unlock = spi_disable_blockprotect,
Hector Martina721ae22009-07-11 19:39:11 +000019873 .write = spi_chip_write_256,
19874 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000019875 .voltage = {2700, 3600},
Hector Martina721ae22009-07-11 19:39:11 +000019876 },
19877
19878 {
19879 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100019880 .name = "W25X20",
19881 .bustype = BUS_SPI,
19882 .manufacture_id = WINBOND_NEX_ID,
19883 .model_id = WINBOND_NEX_W25X20,
19884 .total_size = 256,
19885 .page_size = 256,
Nico Hubera26a3c62024-04-12 19:28:28 +020019886 /* FEATURE_FAST_READ_DIO since W25X20B */
19887 .feature_bits = FEATURE_WRSR_WREN | FEATURE_FAST_READ_DOUT,
Alan Green1f9cc7d2019-07-01 11:10:45 +100019888 .tested = TEST_OK_PREW,
19889 .probe = probe_spi_rdid,
19890 .probe_timing = TIMING_ZERO,
19891 .block_erasers =
19892 {
19893 {
19894 .eraseblocks = { {4 * 1024, 64} },
19895 .block_erase = spi_block_erase_20,
19896 }, {
19897 .eraseblocks = { {64 * 1024, 4} },
19898 .block_erase = spi_block_erase_d8,
19899 }, {
19900 .eraseblocks = { {256 * 1024, 1} },
19901 .block_erase = spi_block_erase_c7,
19902 }
19903 },
19904 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19905 .unlock = spi_disable_blockprotect,
19906 .write = spi_chip_write_256,
19907 .read = spi_chip_read,
19908 .voltage = {2700, 3600},
19909 },
19910
19911 {
19912 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000019913 .name = "W25X32",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019914 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000019915 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000019916 .model_id = WINBOND_NEX_W25X32,
Zheng Bao1db2b752009-11-26 11:05:01 +000019917 .total_size = 4096,
19918 .page_size = 256,
Nico Hubera26a3c62024-04-12 19:28:28 +020019919 .feature_bits = FEATURE_WRSR_WREN | FEATURE_FAST_READ_DOUT,
Stefan Taunerc2eec2c2014-05-03 21:33:01 +000019920 .tested = TEST_OK_PREW,
Zheng Bao1db2b752009-11-26 11:05:01 +000019921 .probe = probe_spi_rdid,
19922 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019923 .block_erasers =
19924 {
19925 {
19926 .eraseblocks = { {4 * 1024, 1024} },
19927 .block_erase = spi_block_erase_20,
19928 }, {
19929 .eraseblocks = { {32 * 1024, 128} },
19930 .block_erase = spi_block_erase_52,
19931 }, {
19932 .eraseblocks = { {64 * 1024, 64} },
19933 .block_erase = spi_block_erase_d8,
19934 }, {
19935 .eraseblocks = { {4 * 1024 * 1024, 1} },
19936 .block_erase = spi_block_erase_60,
19937 }, {
19938 .eraseblocks = { {4 * 1024 * 1024, 1} },
19939 .block_erase = spi_block_erase_c7,
19940 }
19941 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000019942 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000019943 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000019944 .write = spi_chip_write_256,
19945 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000019946 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000019947 },
19948
19949 {
19950 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100019951 .name = "W25X40",
19952 .bustype = BUS_SPI,
19953 .manufacture_id = WINBOND_NEX_ID,
19954 .model_id = WINBOND_NEX_W25X40,
19955 .total_size = 512,
19956 .page_size = 256,
Nico Hubera26a3c62024-04-12 19:28:28 +020019957 /* FEATURE_FAST_READ_DIO since W25X40B */
19958 .feature_bits = FEATURE_WRSR_WREN | FEATURE_FAST_READ_DOUT,
Alan Green1f9cc7d2019-07-01 11:10:45 +100019959 .tested = TEST_OK_PREW,
19960 .probe = probe_spi_rdid,
19961 .probe_timing = TIMING_ZERO,
19962 .block_erasers =
19963 {
19964 {
19965 .eraseblocks = { {4 * 1024, 128} },
19966 .block_erase = spi_block_erase_20,
19967 }, {
19968 .eraseblocks = { {64 * 1024, 8} },
19969 .block_erase = spi_block_erase_d8,
19970 }, {
19971 .eraseblocks = { {512 * 1024, 1} },
19972 .block_erase = spi_block_erase_c7,
19973 }
19974 },
19975 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
19976 .unlock = spi_disable_blockprotect,
19977 .write = spi_chip_write_256,
19978 .read = spi_chip_read,
19979 .voltage = {2700, 3600},
19980 },
19981
19982 {
19983 .vendor = "Winbond",
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000019984 .name = "W25X64",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000019985 .bustype = BUS_SPI,
Zheng Bao1db2b752009-11-26 11:05:01 +000019986 .manufacture_id = WINBOND_NEX_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000019987 .model_id = WINBOND_NEX_W25X64,
Zheng Bao1db2b752009-11-26 11:05:01 +000019988 .total_size = 8192,
19989 .page_size = 256,
Nico Hubera26a3c62024-04-12 19:28:28 +020019990 .feature_bits = FEATURE_WRSR_WREN | FEATURE_FAST_READ_DOUT,
Stefan Tauner23e10b82016-01-23 16:16:49 +000019991 .tested = TEST_OK_PREW,
Zheng Bao1db2b752009-11-26 11:05:01 +000019992 .probe = probe_spi_rdid,
19993 .probe_timing = TIMING_ZERO,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000019994 .block_erasers =
19995 {
19996 {
19997 .eraseblocks = { {4 * 1024, 2048} },
19998 .block_erase = spi_block_erase_20,
19999 }, {
20000 .eraseblocks = { {32 * 1024, 256} },
20001 .block_erase = spi_block_erase_52,
20002 }, {
20003 .eraseblocks = { {64 * 1024, 128} },
20004 .block_erase = spi_block_erase_d8,
20005 }, {
20006 .eraseblocks = { {8 * 1024 * 1024, 1} },
20007 .block_erase = spi_block_erase_60,
20008 }, {
20009 .eraseblocks = { {8 * 1024 * 1024, 1} },
20010 .block_erase = spi_block_erase_c7,
20011 }
20012 },
Stefan Tauner6ee37e22012-12-29 15:03:51 +000020013 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
Carl-Daniel Hailfinger29a1c662010-07-14 20:21:22 +000020014 .unlock = spi_disable_blockprotect,
Zheng Bao1db2b752009-11-26 11:05:01 +000020015 .write = spi_chip_write_256,
20016 .read = spi_chip_read,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000020017 .voltage = {2700, 3600},
Zheng Bao1db2b752009-11-26 11:05:01 +000020018 },
20019
20020 {
Alan Greenfa3fcd32019-06-27 15:41:50 +100020021 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100020022 .name = "W25X80",
Alan Greenfa3fcd32019-06-27 15:41:50 +100020023 .bustype = BUS_SPI,
20024 .manufacture_id = WINBOND_NEX_ID,
Alan Green1f9cc7d2019-07-01 11:10:45 +100020025 .model_id = WINBOND_NEX_W25X80,
Alan Greenfa3fcd32019-06-27 15:41:50 +100020026 .total_size = 1024,
20027 .page_size = 256,
Nico Hubera26a3c62024-04-12 19:28:28 +020020028 /* FEATURE_FAST_READ_DIO since W25X80B */
20029 .feature_bits = FEATURE_WRSR_WREN | FEATURE_FAST_READ_DOUT,
Alan Green1f9cc7d2019-07-01 11:10:45 +100020030 .tested = TEST_OK_PREW,
Alan Greenfa3fcd32019-06-27 15:41:50 +100020031 .probe = probe_spi_rdid,
20032 .probe_timing = TIMING_ZERO,
20033 .block_erasers =
David Hendricksc9ee0ed2018-02-11 17:40:53 -080020034 {
20035 {
Alan Green1f9cc7d2019-07-01 11:10:45 +100020036 .eraseblocks = { {4 * 1024, 256} },
20037 .block_erase = spi_block_erase_20,
20038 }, {
David Hendricksc9ee0ed2018-02-11 17:40:53 -080020039 .eraseblocks = { {64 * 1024, 16} },
20040 .block_erase = spi_block_erase_d8,
20041 }, {
20042 .eraseblocks = { {1024 * 1024, 1} },
20043 .block_erase = spi_block_erase_c7,
20044 }
20045 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100020046 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
20047 .unlock = spi_disable_blockprotect,
20048 .write = spi_chip_write_256,
Alan Green1f9cc7d2019-07-01 11:10:45 +100020049 .read = spi_chip_read,
Alan Greenfa3fcd32019-06-27 15:41:50 +100020050 .voltage = {2700, 3600},
David Hendricksc9ee0ed2018-02-11 17:40:53 -080020051 },
20052
Alan Greenf29ea362019-06-27 17:14:02 +100020053 /* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */
20054 {
Carl-Daniel Hailfinger2e88a9f2011-07-26 14:18:52 +000020055 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000020056 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020057 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020058 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000020059 .model_id = WINBOND_W29C010,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020060 .total_size = 128,
20061 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000020062 .feature_bits = FEATURE_LONG_RESET,
David Hendricks567b7b82011-05-18 01:31:03 +000020063 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020064 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000020065 .probe_timing = 10, /* used datasheet for the W29C011A */
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000020066 .block_erasers =
20067 {
20068 {
20069 .eraseblocks = { {128 * 1024, 1} },
20070 .block_erase = erase_chip_block_jedec,
20071 }
20072 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020073 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000020074 .read = read_memmapped,
Nico Huber9eec4072023-01-12 01:17:30 +010020075 .prepare_access = prepare_memory_access,
20076 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000020077 },
20078
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020079 {
20080 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100020081 .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old",
20082 .bustype = BUS_PARALLEL,
20083 .manufacture_id = WINBOND_ID,
20084 .model_id = WINBOND_W29C010,
20085 .total_size = 128,
20086 .page_size = 128,
20087 .feature_bits = FEATURE_LONG_RESET,
20088 .tested = TEST_OK_PREW,
20089 .probe = probe_w29ee011,
20090 .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */
20091 .block_erasers =
20092 {
20093 {
20094 .eraseblocks = { {128 * 1024, 1} },
20095 .block_erase = erase_chip_block_jedec,
20096 }
20097 },
20098 .write = write_jedec,
20099 .read = read_memmapped,
Nico Huber9eec4072023-01-12 01:17:30 +010020100 .prepare_access = prepare_memory_access,
20101 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +100020102 },
20103
20104 {
20105 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000020106 .name = "W29C020(C)/W29C022",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020107 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020108 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000020109 .model_id = WINBOND_W29C020,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020110 .total_size = 256,
20111 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000020112 .feature_bits = FEATURE_LONG_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000020113 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020114 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000020115 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000020116 .block_erasers =
20117 {
20118 {
20119 .eraseblocks = { {256 * 1024, 1} },
20120 .block_erase = erase_chip_block_jedec,
20121 }
20122 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020123 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000020124 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000020125 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010020126 .prepare_access = prepare_memory_access,
20127 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000020128 },
20129
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020130 {
20131 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000020132 .name = "W29C040/P",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020133 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020134 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000020135 .model_id = WINBOND_W29C040,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020136 .total_size = 512,
20137 .page_size = 256,
Sean Nelson35727f72010-01-28 23:55:12 +000020138 .feature_bits = FEATURE_LONG_RESET,
20139 .tested = TEST_UNTESTED,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020140 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000020141 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000020142 .block_erasers =
20143 {
20144 {
20145 .eraseblocks = { {512 * 1024, 1} },
20146 .block_erase = erase_chip_block_jedec,
20147 }
20148 },
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020149 .write = write_jedec,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000020150 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000020151 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010020152 .prepare_access = prepare_memory_access,
20153 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000020154 },
20155
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020156 {
20157 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100020158 .name = "W29C512A/W29EE512",
20159 .bustype = BUS_PARALLEL,
20160 .manufacture_id = WINBOND_ID,
20161 .model_id = WINBOND_W29C512A,
20162 .total_size = 64,
20163 .page_size = 128,
20164 .feature_bits = FEATURE_LONG_RESET,
20165 .tested = TEST_OK_PREW,
20166 .probe = probe_jedec,
20167 .probe_timing = 10,
20168 .block_erasers =
20169 {
20170 {
20171 .eraseblocks = { {64 * 1024, 1} },
20172 .block_erase = erase_chip_block_jedec,
20173 }
20174 },
20175 .write = write_jedec,
20176 .read = read_memmapped,
20177 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010020178 .prepare_access = prepare_memory_access,
20179 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +100020180 },
20181
20182 {
20183 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000020184 .name = "W29GL032CB",
20185 .bustype = BUS_PARALLEL,
20186 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
20187 .model_id = WINBOND_W29GL032CB,
20188 .total_size = 4096,
20189 .page_size = 128 * 1024, /* actual page size is 16 */
20190 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
20191 .tested = TEST_UNTESTED,
20192 .probe = probe_jedec_29gl,
20193 .probe_timing = TIMING_ZERO,
20194 .block_erasers =
20195 {
20196 {
20197 .eraseblocks = {
20198 {8 * 1024, 8},
20199 {64 * 1024, 63},
20200 },
20201 .block_erase = erase_sector_jedec,
20202 }, {
20203 .eraseblocks = { {4 * 1024 * 1024, 1} },
20204 .block_erase = erase_chip_block_jedec,
20205 },
20206 },
20207 .write = write_jedec_1,
20208 .read = read_memmapped,
20209 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010020210 .prepare_access = prepare_memory_access,
20211 .finish_access = finish_memory_access,
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000020212 },
20213
20214 {
20215 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100020216 .name = "W29GL032CH/L",
20217 .bustype = BUS_PARALLEL,
20218 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
20219 .model_id = WINBOND_W29GL032CHL,
20220 .total_size = 4096,
20221 .page_size = 128 * 1024, /* actual page size is 16 */
20222 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
20223 .tested = TEST_UNTESTED,
20224 .probe = probe_jedec_29gl,
20225 .probe_timing = TIMING_ZERO,
20226 .block_erasers =
20227 {
20228 {
20229 .eraseblocks = { {64 * 1024, 64} },
20230 .block_erase = erase_sector_jedec,
20231 }, {
20232 .eraseblocks = { {4 * 1024 * 1024, 1} },
20233 .block_erase = erase_chip_block_jedec,
20234 },
20235 },
20236 .write = write_jedec_1,
20237 .read = read_memmapped,
20238 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010020239 .prepare_access = prepare_memory_access,
20240 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +100020241 },
20242
20243 {
20244 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000020245 .name = "W29GL032CT",
20246 .bustype = BUS_PARALLEL,
20247 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
20248 .model_id = WINBOND_W29GL032CT,
20249 .total_size = 4096,
20250 .page_size = 128 * 1024, /* actual page size is 16 */
20251 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
20252 .tested = TEST_UNTESTED,
20253 .probe = probe_jedec_29gl,
20254 .probe_timing = TIMING_ZERO,
20255 .block_erasers =
20256 {
20257 {
20258 .eraseblocks = {
20259 {64 * 1024, 63},
20260 {8 * 1024, 8},
20261 },
20262 .block_erase = erase_sector_jedec,
20263 }, {
20264 .eraseblocks = { {4 * 1024 * 1024, 1} },
20265 .block_erase = erase_chip_block_jedec,
20266 },
20267 },
20268 .write = write_jedec_1,
20269 .read = read_memmapped,
20270 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010020271 .prepare_access = prepare_memory_access,
20272 .finish_access = finish_memory_access,
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000020273 },
20274
20275 {
20276 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000020277 .name = "W29GL064CB",
20278 .bustype = BUS_PARALLEL,
20279 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
20280 .model_id = WINBOND_W29GL064CB,
20281 .total_size = 8192,
20282 .page_size = 128 * 1024, /* actual page size is 16 */
20283 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
20284 .tested = TEST_UNTESTED,
20285 .probe = probe_jedec_29gl,
20286 .probe_timing = TIMING_ZERO,
20287 .block_erasers =
20288 {
20289 {
20290 .eraseblocks = {
20291 {8 * 1024, 8},
20292 {64 * 1024, 127},
20293 },
20294 .block_erase = erase_sector_jedec,
20295 }, {
20296 .eraseblocks = { {8 * 1024 * 1024, 1} },
20297 .block_erase = erase_chip_block_jedec,
20298 },
20299 },
20300 .write = write_jedec_1,
20301 .read = read_memmapped,
20302 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010020303 .prepare_access = prepare_memory_access,
20304 .finish_access = finish_memory_access,
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000020305 },
20306
20307 {
20308 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100020309 .name = "W29GL064CH/L",
20310 .bustype = BUS_PARALLEL,
20311 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
20312 .model_id = WINBOND_W29GL064CHL,
20313 .total_size = 8192,
20314 .page_size = 128 * 1024, /* actual page size is 16 */
20315 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
20316 .tested = TEST_UNTESTED,
20317 .probe = probe_jedec_29gl,
20318 .probe_timing = TIMING_ZERO,
20319 .block_erasers =
20320 {
20321 {
20322 .eraseblocks = { {64 * 1024, 128} },
20323 .block_erase = erase_sector_jedec,
20324 }, {
20325 .eraseblocks = { {8 * 1024 * 1024, 1} },
20326 .block_erase = erase_chip_block_jedec,
20327 },
20328 },
20329 .write = write_jedec_1,
20330 .read = read_memmapped,
20331 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010020332 .prepare_access = prepare_memory_access,
20333 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +100020334 },
20335
20336 {
20337 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000020338 .name = "W29GL064CT",
20339 .bustype = BUS_PARALLEL,
20340 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
20341 .model_id = WINBOND_W29GL064CT,
20342 .total_size = 8192,
20343 .page_size = 128 * 1024, /* actual page size is 16 */
20344 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
20345 .tested = TEST_UNTESTED,
20346 .probe = probe_jedec_29gl,
20347 .probe_timing = TIMING_ZERO,
20348 .block_erasers =
20349 {
20350 {
20351 .eraseblocks = {
20352 {64 * 1024, 127},
20353 {8 * 1024, 8},
20354 },
20355 .block_erase = erase_sector_jedec,
20356 }, {
20357 .eraseblocks = { {8 * 1024 * 1024, 1} },
20358 .block_erase = erase_chip_block_jedec,
20359 },
20360 },
20361 .write = write_jedec_1,
20362 .read = read_memmapped,
20363 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010020364 .prepare_access = prepare_memory_access,
20365 .finish_access = finish_memory_access,
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000020366 },
20367
20368 {
20369 .vendor = "Winbond",
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000020370 .name = "W29GL128C",
20371 .bustype = BUS_PARALLEL,
20372 .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */
20373 .model_id = WINBOND_W29GL128CHL,
20374 .total_size = 16384,
20375 .page_size = 128 * 1024, /* actual page size is 16 */
20376 .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET,
20377 .tested = TEST_UNTESTED,
20378 .probe = probe_jedec_29gl,
20379 .probe_timing = TIMING_ZERO,
20380 .block_erasers =
20381 {
20382 {
20383 .eraseblocks = { {128 * 1024, 128} },
20384 .block_erase = erase_sector_jedec,
20385 }, {
20386 .eraseblocks = { {16 * 1024 * 1024, 1} },
20387 .block_erase = erase_chip_block_jedec,
20388 },
20389 },
20390 .write = write_jedec_1,
20391 .read = read_memmapped,
20392 .voltage = {2700, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010020393 .prepare_access = prepare_memory_access,
20394 .finish_access = finish_memory_access,
Stefan Tauner03a9c3c2014-08-03 14:15:14 +000020395 },
20396
20397 {
20398 .vendor = "Winbond",
Kyösti Mälkkic31243e2012-10-28 01:50:08 +000020399 .name = "W39F010",
20400 .bustype = BUS_PARALLEL,
20401 .manufacture_id = WINBOND_ID,
20402 .model_id = WINBOND_W39F010,
20403 .total_size = 128,
20404 .page_size = 4 * 1024,
20405 .feature_bits = FEATURE_EITHER_RESET,
20406 .tested = TEST_OK_PREW,
20407 .probe = probe_jedec,
20408 .probe_timing = 10,
20409 .block_erasers =
20410 {
20411 {
20412 .eraseblocks = { {4 * 1024, 32} },
20413 .block_erase = erase_block_jedec,
20414 }, {
20415 .eraseblocks = { {128 * 1024, 1} },
20416 .block_erase = erase_chip_block_jedec,
20417 }
20418 },
20419 .printlock = printlock_w39f010,
20420 .write = write_jedec_1,
20421 .read = read_memmapped,
20422 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010020423 .prepare_access = prepare_memory_access,
20424 .finish_access = finish_memory_access,
Kyösti Mälkkic31243e2012-10-28 01:50:08 +000020425 },
20426
20427 {
20428 .vendor = "Winbond",
20429 .name = "W39L010",
20430 .bustype = BUS_PARALLEL,
20431 .manufacture_id = WINBOND_ID,
20432 .model_id = WINBOND_W39L010,
20433 .total_size = 128,
20434 .page_size = 4 * 1024,
20435 .feature_bits = FEATURE_EITHER_RESET,
20436 .tested = TEST_UNTESTED,
20437 .probe = probe_jedec,
20438 .probe_timing = 10,
20439 .block_erasers =
20440 {
20441 {
20442 .eraseblocks = { {4 * 1024, 32} },
20443 .block_erase = erase_block_jedec,
20444 }, {
20445 .eraseblocks = { {128 * 1024, 1} },
20446 .block_erase = erase_chip_block_jedec,
20447 }
20448 },
20449 .printlock = printlock_w39l010,
20450 .write = write_jedec_1,
20451 .read = read_memmapped,
20452 .voltage = {3000, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010020453 .prepare_access = prepare_memory_access,
20454 .finish_access = finish_memory_access,
Kyösti Mälkkic31243e2012-10-28 01:50:08 +000020455 },
20456
20457 {
20458 .vendor = "Winbond",
20459 .name = "W39L020",
20460 .bustype = BUS_PARALLEL,
20461 .manufacture_id = WINBOND_ID,
20462 .model_id = WINBOND_W39L020,
20463 .total_size = 256,
20464 .page_size = 4 * 1024,
20465 .feature_bits = FEATURE_EITHER_RESET,
20466 .tested = TEST_UNTESTED,
20467 .probe = probe_jedec,
20468 .probe_timing = 10,
20469 .block_erasers =
20470 {
20471 {
20472 .eraseblocks = { {4 * 1024, 64} },
20473 .block_erase = erase_block_jedec,
20474 }, {
20475 .eraseblocks = { {64 * 1024, 4} },
20476 .block_erase = erase_sector_jedec,
20477 }, {
20478 .eraseblocks = { {256 * 1024, 1} },
20479 .block_erase = erase_chip_block_jedec,
20480 }
20481 },
20482 .printlock = printlock_w39l020,
20483 .write = write_jedec_1,
20484 .read = read_memmapped,
20485 .voltage = {3000, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010020486 .prepare_access = prepare_memory_access,
20487 .finish_access = finish_memory_access,
Kyösti Mälkkic31243e2012-10-28 01:50:08 +000020488 },
20489
20490 {
20491 .vendor = "Winbond",
Michael Karcher19e0aac2011-03-06 17:58:05 +000020492 .name = "W39L040",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020493 .bustype = BUS_PARALLEL,
Michael Karcher19e0aac2011-03-06 17:58:05 +000020494 .manufacture_id = WINBOND_ID,
20495 .model_id = WINBOND_W39L040,
20496 .total_size = 512,
20497 .page_size = 64 * 1024,
20498 .feature_bits = FEATURE_EITHER_RESET,
20499 .tested = TEST_OK_PR,
20500 .probe = probe_jedec,
20501 .probe_timing = 10,
20502 .block_erasers =
20503 {
20504 {
20505 .eraseblocks = { {4 * 1024, 128} },
20506 .block_erase = erase_block_jedec,
20507 }, {
20508 .eraseblocks = { {64 * 1024, 8} },
20509 .block_erase = erase_sector_jedec,
20510 }, {
20511 .eraseblocks = { {512 * 1024, 1} },
20512 .block_erase = erase_chip_block_jedec,
20513 }
20514 },
20515 .printlock = printlock_w39l040,
20516 .write = write_jedec_1,
20517 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000020518 .voltage = {3000, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010020519 .prepare_access = prepare_memory_access,
20520 .finish_access = finish_memory_access,
Michael Karcher19e0aac2011-03-06 17:58:05 +000020521 },
20522
20523 {
20524 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020525 .name = "W39V040A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020526 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020527 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000020528 .model_id = WINBOND_W39V040A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020529 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000020530 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000020531 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000020532 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020533 .probe = probe_jedec,
Stefan Tauner716e0982011-07-25 20:38:52 +000020534 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000020535 .block_erasers =
20536 {
20537 {
20538 .eraseblocks = { {64 * 1024, 8} },
20539 .block_erase = erase_sector_jedec,
20540 }, {
20541 .eraseblocks = { {512 * 1024, 1} },
20542 .block_erase = erase_chip_block_jedec,
20543 }
20544 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000020545 .printlock = printlock_w39v040a,
Sean Nelson35727f72010-01-28 23:55:12 +000020546 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000020547 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000020548 .voltage = {3000, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010020549 .prepare_access = prepare_memory_access,
20550 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000020551 },
20552
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020553 {
20554 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000020555 .name = "W39V040B",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020556 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020557 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000020558 .model_id = WINBOND_W39V040B,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020559 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000020560 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000020561 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000020562 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020563 .probe = probe_jedec,
Paul Menzel018d4822011-10-21 12:33:07 +000020564 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000020565 .block_erasers =
20566 {
20567 {
20568 .eraseblocks = { {64 * 1024, 8} },
20569 .block_erase = erase_sector_jedec,
20570 }, {
20571 .eraseblocks = { {512 * 1024, 1} },
20572 .block_erase = erase_chip_block_jedec,
20573 }
20574 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000020575 .printlock = printlock_w39v040b,
Sean Nelson35727f72010-01-28 23:55:12 +000020576 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000020577 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000020578 .voltage = {3000, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010020579 .prepare_access = prepare_memory_access,
20580 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000020581 },
20582
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020583 {
20584 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000020585 .name = "W39V040C",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020586 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020587 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000020588 .model_id = WINBOND_W39V040C,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020589 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000020590 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000020591 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzel018d4822011-10-21 12:33:07 +000020592 .tested = TEST_OK_PREW,
Sean Nelson35727f72010-01-28 23:55:12 +000020593 .probe = probe_jedec,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000020594 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000020595 .block_erasers =
20596 {
20597 {
20598 .eraseblocks = { {64 * 1024, 8} },
20599 .block_erase = erase_sector_jedec,
20600 }, {
20601 .eraseblocks = { {512 * 1024, 1} },
20602 .block_erase = erase_chip_block_jedec,
20603 }
20604 },
Sean Nelson6e0b9122010-02-19 00:52:10 +000020605 .printlock = printlock_w39v040c,
Sean Nelson35727f72010-01-28 23:55:12 +000020606 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000020607 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000020608 .voltage = {3000, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010020609 .prepare_access = prepare_memory_access,
20610 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000020611 },
20612
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020613 {
20614 .vendor = "Winbond",
20615 .name = "W39V040FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020616 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020617 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000020618 .model_id = WINBOND_W39V040FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020619 .total_size = 512,
Sean Nelson72a9a022009-12-22 22:15:33 +000020620 .page_size = 64 * 1024,
Nico Huberb1974022023-01-12 13:13:12 +010020621 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner23e10b82016-01-23 16:16:49 +000020622 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020623 .probe = probe_jedec,
Antony Rheneus0fbba982011-05-26 14:28:51 +000020624 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000020625 .block_erasers =
20626 {
20627 {
20628 .eraseblocks = { {4 * 1024, 128} },
20629 .block_erase = erase_block_jedec,
20630 }, {
20631 .eraseblocks = { {64 * 1024, 8} },
20632 .block_erase = erase_sector_jedec,
20633 }, {
20634 .eraseblocks = { {512 * 1024, 1} },
20635 .block_erase = erase_chip_block_jedec,
20636 }
20637 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000020638 .printlock = printlock_w39v040fa,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000020639 .unlock = unlock_regspace2_uniform_64k,
Sean Nelson35727f72010-01-28 23:55:12 +000020640 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000020641 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000020642 .voltage = {3000, 3600},
Nico Huberb1974022023-01-12 13:13:12 +010020643 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010020644 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000020645 },
20646
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020647 {
20648 .vendor = "Winbond",
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000020649 .name = "W39V040FB",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020650 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000020651 .manufacture_id = WINBOND_ID,
20652 .model_id = WINBOND_W39V040B,
20653 .total_size = 512,
20654 .page_size = 64 * 1024,
Nico Huberb1974022023-01-12 13:13:12 +010020655 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner0be072c2016-03-13 15:16:30 +000020656 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000020657 .probe = probe_jedec,
Stefan Tauner0554ca52013-07-25 22:54:25 +000020658 .probe_timing = 10,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000020659 .block_erasers =
20660 {
20661 {
20662 .eraseblocks = { {64 * 1024, 8} },
20663 .block_erase = erase_sector_jedec,
20664 }, {
20665 .eraseblocks = { {512 * 1024, 1} },
20666 .block_erase = erase_chip_block_jedec,
20667 }
20668 },
20669 .printlock = printlock_w39v040fb,
Carl-Daniel Hailfingeref3ac8a2014-08-03 13:05:34 +000020670 .unlock = unlock_regspace2_uniform_64k,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000020671 .write = write_jedec_1,
20672 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000020673 .voltage = {3000, 3600}, /* Also has 12V fast program */
Nico Huberb1974022023-01-12 13:13:12 +010020674 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010020675 .finish_access = finish_memory_access,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000020676 },
20677
20678 {
20679 .vendor = "Winbond",
20680 .name = "W39V040FC",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020681 .bustype = BUS_FWH,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000020682 .manufacture_id = WINBOND_ID,
20683 .model_id = WINBOND_W39V040C,
20684 .total_size = 512,
20685 .page_size = 64 * 1024,
Nico Huberb1974022023-01-12 13:13:12 +010020686 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauneraf2db612011-12-02 21:48:17 +000020687 .tested = TEST_OK_PREW,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000020688 .probe = probe_jedec,
20689 .probe_timing = 10,
20690 .block_erasers =
20691 {
20692 {
20693 .eraseblocks = { {64 * 1024, 8} },
20694 .block_erase = erase_sector_jedec,
20695 }, {
20696 .eraseblocks = { {512 * 1024, 1} },
20697 .block_erase = erase_chip_block_jedec,
20698 }
20699 },
20700 .printlock = printlock_w39v040fc,
20701 .write = write_jedec_1,
20702 .read = read_memmapped,
Steven Zakulec7d257b42011-07-19 08:50:18 +000020703 .voltage = {3000, 3600}, /* Also has 12V fast program */
Nico Huberb1974022023-01-12 13:13:12 +010020704 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010020705 .finish_access = finish_memory_access,
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000020706 },
20707
20708 {
20709 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020710 .name = "W39V080A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020711 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020712 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000020713 .model_id = WINBOND_W39V080A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020714 .total_size = 1024,
Sean Nelson72a9a022009-12-22 22:15:33 +000020715 .page_size = 64 * 1024,
Sean Nelson35727f72010-01-28 23:55:12 +000020716 .feature_bits = FEATURE_EITHER_RESET,
Paul Menzelac427b22012-02-16 21:07:07 +000020717 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020718 .probe = probe_jedec,
Paul Menzelac427b22012-02-16 21:07:07 +000020719 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000020720 .block_erasers =
20721 {
20722 {
20723 .eraseblocks = { {64 * 1024, 16} },
20724 .block_erase = erase_sector_jedec,
20725 }, {
20726 .eraseblocks = { {1024 * 1024, 1} },
20727 .block_erase = erase_chip_block_jedec,
20728 }
20729 },
Carl-Daniel Hailfinger91882402010-12-05 16:33:59 +000020730 .printlock = printlock_w39v080a,
Sean Nelson35727f72010-01-28 23:55:12 +000020731 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000020732 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000020733 .voltage = {3000, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010020734 .prepare_access = prepare_memory_access,
20735 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000020736 },
20737
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020738 {
20739 .vendor = "Winbond",
Alan Green1f9cc7d2019-07-01 11:10:45 +100020740 .name = "W39V080FA",
20741 .bustype = BUS_FWH,
20742 .manufacture_id = WINBOND_ID,
20743 .model_id = WINBOND_W39V080FA,
20744 .total_size = 1024,
20745 .page_size = 64 * 1024,
Nico Huberb1974022023-01-12 13:13:12 +010020746 .feature_bits = FEATURE_EITHER_RESET,
Alan Green1f9cc7d2019-07-01 11:10:45 +100020747 .tested = TEST_OK_PREW,
20748 .probe = probe_jedec,
20749 .probe_timing = 10,
20750 .block_erasers =
20751 {
20752 {
20753 .eraseblocks = { {64 * 1024, 16} },
20754 .block_erase = erase_sector_jedec,
20755 }, {
20756 .eraseblocks = { {1024 * 1024, 1} },
20757 .block_erase = erase_chip_block_jedec,
20758 }
20759 },
20760 .printlock = printlock_w39v080fa,
20761 .unlock = unlock_regspace2_uniform_64k,
20762 .write = write_jedec_1,
20763 .read = read_memmapped,
20764 .voltage = {3000, 3600}, /* Also has 12V fast program */
Nico Huberb1974022023-01-12 13:13:12 +010020765 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010020766 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +100020767 },
20768
20769 {
20770 .vendor = "Winbond",
20771 .name = "W39V080FA (dual mode)",
20772 .bustype = BUS_FWH,
20773 .manufacture_id = WINBOND_ID,
20774 .model_id = WINBOND_W39V080FA_DM,
20775 .total_size = 512,
20776 .page_size = 64 * 1024,
Nico Huberb1974022023-01-12 13:13:12 +010020777 .feature_bits = FEATURE_EITHER_RESET,
Alan Green1f9cc7d2019-07-01 11:10:45 +100020778 .tested = TEST_UNTESTED,
20779 .probe = probe_jedec,
20780 .probe_timing = 10,
20781 .block_erasers =
20782 {
20783 {
20784 .eraseblocks = { {64 * 1024, 8} },
20785 .block_erase = erase_sector_jedec,
20786 }, {
20787 .eraseblocks = { {512 * 1024, 1} },
20788 .block_erase = erase_chip_block_jedec,
20789 }
20790 },
20791 .printlock = printlock_w39v080fa_dual,
20792 .write = write_jedec_1,
20793 .read = read_memmapped,
20794 .voltage = {3000, 3600}, /* Also has 12V fast program */
Nico Huberb1974022023-01-12 13:13:12 +010020795 .prepare_access = prepare_memory_register_access,
Nico Huber9eec4072023-01-12 01:17:30 +010020796 .finish_access = finish_memory_access,
Alan Green1f9cc7d2019-07-01 11:10:45 +100020797 },
20798
20799 {
20800 .vendor = "Winbond",
Mattias Mattssona745cf42010-09-14 23:56:56 +000020801 .name = "W49F002U/N",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020802 .bustype = BUS_PARALLEL,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020803 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000020804 .model_id = WINBOND_W49F002U,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020805 .total_size = 256,
20806 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000020807 .feature_bits = FEATURE_EITHER_RESET,
Stefan Tauner716e0982011-07-25 20:38:52 +000020808 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020809 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000020810 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000020811 .block_erasers =
20812 {
20813 {
20814 .eraseblocks = {
20815 {128 * 1024, 1},
20816 {96 * 1024, 1},
20817 {8 * 1024, 2},
20818 {16 * 1024, 1},
20819 },
20820 .block_erase = erase_sector_jedec,
20821 }, {
20822 .eraseblocks = { {256 * 1024, 1} },
20823 .block_erase = erase_chip_block_jedec,
20824 }
20825 },
Sean Nelson35727f72010-01-28 23:55:12 +000020826 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000020827 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000020828 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010020829 .prepare_access = prepare_memory_access,
20830 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000020831 },
20832
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020833 {
20834 .vendor = "Winbond",
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000020835 .name = "W49F020",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020836 .bustype = BUS_PARALLEL,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000020837 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000020838 .model_id = WINBOND_W49F020,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000020839 .total_size = 256,
20840 .page_size = 128,
20841 .feature_bits = FEATURE_EITHER_RESET,
20842 .tested = TEST_OK_PROBE,
20843 .probe = probe_jedec,
20844 .probe_timing = 10,
20845 .block_erasers =
20846 {
20847 {
20848 .eraseblocks = { {256 * 1024, 1} },
20849 .block_erase = erase_chip_block_jedec,
20850 }
20851 },
20852 .write = write_jedec_1,
20853 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000020854 .voltage = {4500, 5500},
Nico Huber9eec4072023-01-12 01:17:30 +010020855 .prepare_access = prepare_memory_access,
20856 .finish_access = finish_memory_access,
Carl-Daniel Hailfingerabebe6b2010-07-17 13:45:42 +000020857 },
20858
20859 {
20860 .vendor = "Winbond",
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020861 .name = "W49V002A",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020862 .bustype = BUS_LPC,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020863 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000020864 .model_id = WINBOND_W49V002A,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020865 .total_size = 256,
20866 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000020867 .feature_bits = FEATURE_EITHER_RESET,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000020868 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020869 .probe = probe_jedec,
Cristian Măgherușan-Stanciu9932c7b2011-07-07 19:56:58 +000020870 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000020871 .block_erasers =
20872 {
20873 {
20874 .eraseblocks = {
20875 {64 * 1024, 3},
20876 {32 * 1024, 1},
20877 {8 * 1024, 2},
20878 {16 * 1024, 1},
20879 },
20880 .block_erase = erase_sector_jedec,
20881 }, {
20882 .eraseblocks = { {256 * 1024, 1} },
20883 .block_erase = erase_chip_block_jedec,
20884 }
20885 },
Sean Nelson35727f72010-01-28 23:55:12 +000020886 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000020887 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000020888 .voltage = {3000, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010020889 .prepare_access = prepare_memory_access,
20890 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000020891 },
20892
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020893 {
20894 .vendor = "Winbond",
20895 .name = "W49V002FA",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000020896 .bustype = BUS_FWH,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020897 .manufacture_id = WINBOND_ID,
Mattias Mattssona745cf42010-09-14 23:56:56 +000020898 .model_id = WINBOND_W49V002FA,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020899 .total_size = 256,
20900 .page_size = 128,
Sean Nelson35727f72010-01-28 23:55:12 +000020901 .feature_bits = FEATURE_EITHER_RESET,
Stefan Taunereb582572012-09-21 12:52:50 +000020902 .tested = TEST_OK_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020903 .probe = probe_jedec,
Udu Ogahc04ee222009-09-05 01:31:32 +000020904 .probe_timing = 10,
Sean Nelsoncfc35cd2010-01-19 03:24:55 +000020905 .block_erasers =
20906 {
20907 {
20908 .eraseblocks = {
20909 {64 * 1024, 3},
20910 {32 * 1024, 1},
20911 {8 * 1024, 2},
20912 {16 * 1024, 1},
20913 },
20914 .block_erase = erase_sector_jedec,
20915 }, {
20916 .eraseblocks = { {256 * 1024, 1} },
20917 .block_erase = erase_chip_block_jedec,
20918 }
20919 },
Sean Nelson35727f72010-01-28 23:55:12 +000020920 .write = write_jedec_1,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000020921 .read = read_memmapped,
Steven Zakuleccbe370e2011-06-03 07:26:31 +000020922 .voltage = {3000, 3600},
Nico Huber9eec4072023-01-12 01:17:30 +010020923 .prepare_access = prepare_memory_access,
20924 .finish_access = finish_memory_access,
FENG yu ningff692fb2008-12-08 18:15:10 +000020925 },
20926
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000020927 {
luke heef884232020-12-28 18:22:21 +080020928 .vendor = "XMC",
20929 .name = "XM25QH128C",
20930 .bustype = BUS_SPI,
20931 .manufacture_id = ST_ID,
20932 .model_id = XMC_XM25QH128C,
20933 .total_size = 16384,
20934 .page_size = 256,
Nico Huber1412d9f2024-01-06 18:25:49 +010020935 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_OTP | FEATURE_QPI_SRP,
20936 .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } },
luke heef884232020-12-28 18:22:21 +080020937 .tested = TEST_UNTESTED,
20938 .probe = probe_spi_rdid,
20939 .probe_timing = TIMING_ZERO,
20940 .block_erasers =
20941 {
20942 {
20943 .eraseblocks = { {4 * 1024, 4096} },
20944 .block_erase = spi_block_erase_20,
20945 }, {
20946 .eraseblocks = { {32 * 1024, 512} },
20947 .block_erase = spi_block_erase_52,
20948 }, {
20949 .eraseblocks = { {64 * 1024, 256} },
20950 .block_erase = spi_block_erase_d8,
20951 }, {
20952 .eraseblocks = { {16 * 1024 * 1024, 1} },
20953 .block_erase = spi_block_erase_60,
20954 }, {
20955 .eraseblocks = { {16 * 1024 * 1024, 1} },
20956 .block_erase = spi_block_erase_c7,
20957 }
20958 },
20959 .printlock = spi_prettyprint_status_register_plain,
20960 .unlock = spi_disable_blockprotect,
20961 .write = spi_chip_write_256,
20962 .read = spi_chip_read,
20963 .voltage = {2700, 3600},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110020964 .reg_bits =
20965 {
Nico Huber96786d02024-01-06 18:30:15 +010020966 .qe = {STATUS2, 1, RW},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110020967 .srp = {STATUS1, 7, RW},
20968 .srl = {STATUS2, 0, RW},
20969 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}},
20970 .tb = {STATUS1, 5, RW},
20971 .sec = {STATUS1, 6, RW},
20972 .cmp = {STATUS2, 6, RW},
20973 },
Nico Huberaabb3e02023-01-13 00:22:30 +010020974 .wp_write_cfg = spi_wp_write_cfg,
20975 .wp_read_cfg = spi_wp_read_cfg,
20976 .wp_get_ranges = spi_wp_get_available_ranges,
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110020977 .decode_range = decode_range_spi25,
luke heef884232020-12-28 18:22:21 +080020978 },
20979
20980 {
20981 .vendor = "XMC",
20982 .name = "XM25QH256C",
20983 .bustype = BUS_SPI,
20984 .manufacture_id = ST_ID,
20985 .model_id = XMC_XM25QH256C,
20986 .total_size = 32768,
20987 .page_size = 256,
20988 /* supports SFDP */
Nico Huber96786d02024-01-06 18:30:15 +010020989 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_OTP |
20990 FEATURE_4BA_WREN | FEATURE_QPI_SRP,
20991 .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } },
luke heef884232020-12-28 18:22:21 +080020992 .tested = TEST_UNTESTED,
20993 .probe = probe_spi_rdid,
20994 .probe_timing = TIMING_ZERO,
20995 .block_erasers =
20996 {
20997 {
20998 .eraseblocks = { {4 * 1024, 8192} },
20999 .block_erase = spi_block_erase_21,
21000 }, {
21001 .eraseblocks = { {4 * 1024, 8192} },
21002 .block_erase = spi_block_erase_20,
21003 }, {
21004 .eraseblocks = { {32 * 1024, 1024} },
21005 .block_erase = spi_block_erase_52,
21006 }, {
21007 .eraseblocks = { {64 * 1024, 512} },
21008 .block_erase = spi_block_erase_dc,
21009 }, {
21010 .eraseblocks = { {64 * 1024, 512} },
21011 .block_erase = spi_block_erase_d8,
21012 }, {
21013 .eraseblocks = { {32 * 1024 * 1024, 1} },
21014 .block_erase = spi_block_erase_60,
21015 }, {
21016 .eraseblocks = { {32 * 1024 * 1024, 1} },
21017 .block_erase = spi_block_erase_c7,
21018 }
21019 },
21020 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
21021 .unlock = spi_disable_blockprotect,
21022 .write = spi_chip_write_256,
21023 .read = spi_chip_read,
21024 .voltage = {2700, 3600},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110021025 .reg_bits =
21026 {
Nico Huber96786d02024-01-06 18:30:15 +010021027 .qe = {STATUS2, 1, RW},
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110021028 .srp = {STATUS1, 7, RW},
21029 .srl = {STATUS2, 0, RW},
21030 .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}},
21031 .tb = {STATUS1, 6, RW},
21032 },
Nico Huberaabb3e02023-01-13 00:22:30 +010021033 .wp_write_cfg = spi_wp_write_cfg,
21034 .wp_read_cfg = spi_wp_read_cfg,
21035 .wp_get_ranges = spi_wp_get_available_ranges,
Nikolai Artemievd32e18b2022-02-15 18:06:55 +110021036 .decode_range = decode_range_spi25,
Nico Huberab6b18f2023-01-11 23:38:20 +010021037 .prepare_access = spi_prepare_4ba,
luke heef884232020-12-28 18:22:21 +080021038 },
21039
21040 {
21041 .vendor = "XMC",
21042 .name = "XM25QH64C",
21043 .bustype = BUS_SPI,
21044 .manufacture_id = ST_ID,
21045 .model_id = XMC_XM25QH64C,
21046 .total_size = 8192,
21047 .page_size = 256,
Nico Huber96786d02024-01-06 18:30:15 +010021048 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_OTP | FEATURE_QPI_SRP,
Nico Huber1412d9f2024-01-06 18:25:49 +010021049 .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } },
luke heef884232020-12-28 18:22:21 +080021050 .tested = TEST_UNTESTED,
21051 .probe = probe_spi_rdid,
21052 .probe_timing = TIMING_ZERO,
21053 .block_erasers =
21054 {
21055 {
21056 .eraseblocks = { {4 * 1024, 2048} },
21057 .block_erase = spi_block_erase_20,
21058 }, {
21059 .eraseblocks = { {32 * 1024, 256} },
21060 .block_erase = spi_block_erase_52,
21061 }, {
21062 .eraseblocks = { {64 * 1024, 128} },
21063 .block_erase = spi_block_erase_d8,
21064 }, {
21065 .eraseblocks = { {8 * 1024 * 1024, 1} },
21066 .block_erase = spi_block_erase_60,
21067 }, {
21068 .eraseblocks = { {8 * 1024 * 1024, 1} },
21069 .block_erase = spi_block_erase_c7,
21070 }
21071 },
Nico Huber96786d02024-01-06 18:30:15 +010021072 .reg_bits =
21073 {
21074 .qe = {STATUS2, 1, RW},
21075 },
luke heef884232020-12-28 18:22:21 +080021076 .printlock = spi_prettyprint_status_register_plain,
21077 .unlock = spi_disable_blockprotect,
21078 .write = spi_chip_write_256,
21079 .read = spi_chip_read,
21080 .voltage = {2700, 3600},
21081 },
21082
21083 {
21084 .vendor = "XMC",
21085 .name = "XM25QU128C",
21086 .bustype = BUS_SPI,
21087 .manufacture_id = ST_ID,
21088 .model_id = XMC_XM25QU128C,
21089 .total_size = 16384,
21090 .page_size = 256,
21091 /* supports SFDP */
Nico Huber96786d02024-01-06 18:30:15 +010021092 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_OTP | FEATURE_QPI_SRP,
Nico Huber1412d9f2024-01-06 18:25:49 +010021093 .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } },
luke heef884232020-12-28 18:22:21 +080021094 .tested = TEST_UNTESTED,
21095 .probe = probe_spi_rdid,
21096 .probe_timing = TIMING_ZERO,
21097 .block_erasers =
21098 {
21099 {
21100 .eraseblocks = { {4 * 1024, 4096} },
21101 .block_erase = spi_block_erase_20,
21102 }, {
21103 .eraseblocks = { {32 * 1024, 512} },
21104 .block_erase = spi_block_erase_52,
21105 }, {
21106 .eraseblocks = { {64 * 1024, 256} },
21107 .block_erase = spi_block_erase_d8,
21108 }, {
21109 .eraseblocks = { {16 * 1024 * 1024, 1} },
21110 .block_erase = spi_block_erase_60,
21111 }, {
21112 .eraseblocks = { {16 * 1024 * 1024, 1} },
21113 .block_erase = spi_block_erase_c7,
21114 }
21115 },
Nico Huber96786d02024-01-06 18:30:15 +010021116 .reg_bits =
21117 {
21118 .qe = {STATUS2, 1, RW},
21119 },
luke heef884232020-12-28 18:22:21 +080021120 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
21121 .unlock = spi_disable_blockprotect,
21122 .write = spi_chip_write_256,
21123 .read = spi_chip_read,
21124 .voltage = {1650, 1950},
21125 },
21126
21127 {
21128 .vendor = "XMC",
21129 .name = "XM25QU256C",
21130 .bustype = BUS_SPI,
21131 .manufacture_id = ST_ID,
21132 .model_id = XMC_XM25QU256C,
21133 .total_size = 32768,
21134 .page_size = 256,
21135 /* supports SFDP */
Nico Huber96786d02024-01-06 18:30:15 +010021136 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_OTP |
21137 FEATURE_4BA_WREN | FEATURE_QPI_SRP,
21138 .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } },
luke heef884232020-12-28 18:22:21 +080021139 .tested = TEST_UNTESTED,
21140 .probe = probe_spi_rdid,
21141 .probe_timing = TIMING_ZERO,
21142 .block_erasers =
21143 {
21144 {
21145 .eraseblocks = { {4 * 1024, 8192} },
21146 .block_erase = spi_block_erase_21,
21147 }, {
21148 .eraseblocks = { {4 * 1024, 8192} },
21149 .block_erase = spi_block_erase_20,
21150 }, {
21151 .eraseblocks = { {32 * 1024, 1024} },
21152 .block_erase = spi_block_erase_52,
21153 }, {
21154 .eraseblocks = { {64 * 1024, 512} },
21155 .block_erase = spi_block_erase_dc,
21156 }, {
21157 .eraseblocks = { {64 * 1024, 512} },
21158 .block_erase = spi_block_erase_d8,
21159 }, {
21160 .eraseblocks = { {32 * 1024 * 1024, 1} },
21161 .block_erase = spi_block_erase_60,
21162 }, {
21163 .eraseblocks = { {32 * 1024 * 1024, 1} },
21164 .block_erase = spi_block_erase_c7,
21165 }
21166 },
Nico Huber96786d02024-01-06 18:30:15 +010021167 .reg_bits =
21168 {
21169 .qe = {STATUS2, 1, RW},
21170 },
luke heef884232020-12-28 18:22:21 +080021171 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
21172 .unlock = spi_disable_blockprotect,
21173 .write = spi_chip_write_256,
21174 .read = spi_chip_read,
21175 .voltage = {1650, 1950},
Nico Huberab6b18f2023-01-11 23:38:20 +010021176 .prepare_access = spi_prepare_4ba,
luke heef884232020-12-28 18:22:21 +080021177 },
21178
21179 {
21180 .vendor = "XMC",
21181 .name = "XM25QU64C",
21182 .bustype = BUS_SPI,
21183 .manufacture_id = ST_ID,
21184 .model_id = XMC_XM25QU64C,
21185 .total_size = 8192,
21186 .page_size = 256,
Nico Huber96786d02024-01-06 18:30:15 +010021187 .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_OTP | FEATURE_QPI_SRP,
Nico Huber1412d9f2024-01-06 18:25:49 +010021188 .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } },
luke heef884232020-12-28 18:22:21 +080021189 .tested = TEST_UNTESTED,
21190 .probe = probe_spi_rdid,
21191 .probe_timing = TIMING_ZERO,
21192 .block_erasers =
21193 {
21194 {
21195 .eraseblocks = { {4 * 1024, 2048} },
21196 .block_erase = spi_block_erase_20,
21197 }, {
21198 .eraseblocks = { {32 * 1024, 256} },
21199 .block_erase = spi_block_erase_52,
21200 }, {
21201 .eraseblocks = { {64 * 1024, 128} },
21202 .block_erase = spi_block_erase_d8,
21203 }, {
21204 .eraseblocks = { {8 * 1024 * 1024, 1} },
21205 .block_erase = spi_block_erase_60,
21206 }, {
21207 .eraseblocks = { {8 * 1024 * 1024, 1} },
21208 .block_erase = spi_block_erase_c7,
21209 }
21210 },
Nico Huber96786d02024-01-06 18:30:15 +010021211 .reg_bits =
21212 {
21213 .qe = {STATUS2, 1, RW},
21214 },
luke heef884232020-12-28 18:22:21 +080021215 .printlock = spi_prettyprint_status_register_plain,
21216 .unlock = spi_disable_blockprotect,
21217 .write = spi_chip_write_256,
21218 .read = spi_chip_read,
21219 .voltage = {1650, 1950},
21220 },
21221
21222 {
Alan Greenfa3fcd32019-06-27 15:41:50 +100021223 .vendor = "Zetta Device",
21224 .name = "ZD25D20",
21225 .bustype = BUS_SPI,
21226 .manufacture_id = ZETTADEVICE_ID,
21227 .model_id = ZETTADEVICE_ZD25D20,
21228 .total_size = 256,
21229 .page_size = 256,
21230 .feature_bits = FEATURE_WRSR_WREN,
21231 .tested = TEST_UNTESTED,
21232 .probe = probe_spi_rdid,
21233 .probe_timing = TIMING_ZERO,
21234 .block_erasers =
David Hendricksa72d5a92018-02-11 17:58:44 -080021235 {
21236 {
21237 .eraseblocks = { {4 * 1024, 64} },
21238 .block_erase = spi_block_erase_20,
21239 }, {
21240 .eraseblocks = { {32 * 1024, 8} },
21241 .block_erase = spi_block_erase_52,
21242 }, {
21243 .eraseblocks = { {64 * 1024, 4} },
21244 .block_erase = spi_block_erase_d8,
21245 }, {
21246 .eraseblocks = { {256 * 1024, 1} },
21247 .block_erase = spi_block_erase_60,
21248 }, {
21249 .eraseblocks = { {256 * 1024, 1} },
21250 .block_erase = spi_block_erase_c7,
21251 }
21252 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100021253 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
21254 .unlock = spi_disable_blockprotect,
21255 .write = spi_chip_write_256,
21256 .read = spi_chip_read,
21257 .voltage = {2700, 3600},
David Hendricksa72d5a92018-02-11 17:58:44 -080021258 },
21259
21260 {
Alan Greenfa3fcd32019-06-27 15:41:50 +100021261 .vendor = "Zetta Device",
21262 .name = "ZD25D40",
21263 .bustype = BUS_SPI,
21264 .manufacture_id = ZETTADEVICE_ID,
21265 .model_id = ZETTADEVICE_ZD25D40,
21266 .total_size = 512,
21267 .page_size = 256,
21268 .feature_bits = FEATURE_WRSR_WREN,
21269 .tested = TEST_UNTESTED,
21270 .probe = probe_spi_rdid,
21271 .probe_timing = TIMING_ZERO,
21272 .block_erasers =
nybashcbb46e22018-02-11 17:53:49 -080021273 {
21274 {
21275 .eraseblocks = { {4 * 1024, 128} },
21276 .block_erase = spi_block_erase_20,
21277 }, {
21278 .eraseblocks = { {32 * 1024, 16} },
21279 .block_erase = spi_block_erase_52,
21280 }, {
21281 .eraseblocks = { {64 * 1024, 8} },
21282 .block_erase = spi_block_erase_d8,
21283 }, {
21284 .eraseblocks = { {512 * 1024, 1} },
21285 .block_erase = spi_block_erase_60,
21286 }, {
21287 .eraseblocks = { {512 * 1024, 1} },
21288 .block_erase = spi_block_erase_c7,
21289 }
21290 },
Alan Greenfa3fcd32019-06-27 15:41:50 +100021291 .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */
21292 .unlock = spi_disable_blockprotect,
21293 .write = spi_chip_write_256,
21294 .read = spi_chip_read,
21295 .voltage = {2700, 3600},
nybashcbb46e22018-02-11 17:53:49 -080021296 },
21297
Stefan Taunerac1b4c82012-02-17 14:51:04 +000021298 {
Alan Greendd592202019-08-23 10:11:37 +100021299 .vendor = "Unknown",
21300 .name = "SFDP-capable chip",
21301 .bustype = BUS_SPI,
21302 .manufacture_id = GENERIC_MANUF_ID,
21303 .model_id = SFDP_DEVICE_ID,
21304 .total_size = 0, /* set by probing function */
21305 .page_size = 0, /* set by probing function */
21306 .feature_bits = 0, /* set by probing function */
21307 /* We present our own "report this" text hence we do not */
21308 /* want the default "This flash part has status UNTESTED..." */
21309 /* text to be printed. */
21310 .tested = TEST_OK_PREW,
21311 .probe = probe_spi_sfdp,
21312 .block_erasers = {}, /* set by probing function */
21313 .unlock = spi_disable_blockprotect, /* is this safe? */
21314 .write = NULL, /* set by probing function */
21315 .read = spi_chip_read,
21316 /* FIXME: some vendor extensions define this */
21317 .voltage = {0},
21318 },
21319
21320 {
Carl-Daniel Hailfinger532c7172011-11-04 21:35:26 +000021321 .vendor = "Programmer",
21322 .name = "Opaque flash chip",
21323 .bustype = BUS_PROG,
21324 .manufacture_id = PROGMANUF_ID,
21325 .model_id = PROGDEV_ID,
21326 .total_size = 0,
21327 .page_size = 256,
21328 /* probe is assumed to work, rest will be filled in by probe */
21329 .tested = TEST_OK_PROBE,
21330 .probe = probe_opaque,
21331 /* eraseblock sizes will be set by the probing function */
21332 .block_erasers =
21333 {
21334 {
21335 .block_erase = erase_opaque,
21336 }
21337 },
21338 .write = write_opaque,
21339 .read = read_opaque,
21340 },
21341
21342 {
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000021343 .vendor = "AMIC",
21344 .name = "unknown AMIC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000021345 .bustype = BUS_SPI,
Daniel Lenskidf90d3a2010-07-22 11:44:38 +000021346 .manufacture_id = AMIC_ID,
21347 .model_id = GENERIC_DEVICE_ID,
21348 .total_size = 0,
21349 .page_size = 256,
21350 .tested = TEST_BAD_PREW,
21351 .probe = probe_spi_rdid4,
21352 .probe_timing = TIMING_ZERO,
21353 .write = NULL,
21354 .read = NULL,
21355 },
21356
21357 {
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021358 .vendor = "Atmel",
21359 .name = "unknown Atmel SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000021360 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021361 .manufacture_id = ATMEL_ID,
21362 .model_id = GENERIC_DEVICE_ID,
21363 .total_size = 0,
21364 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000021365 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021366 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000021367 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021368 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000021369 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000021370 },
21371
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021372 {
Carl-Daniel Hailfingerf792c7d2010-07-28 22:20:20 +000021373 .vendor = "Eon",
21374 .name = "unknown Eon SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000021375 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021376 .manufacture_id = EON_ID_NOPREFIX,
21377 .model_id = GENERIC_DEVICE_ID,
21378 .total_size = 0,
21379 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000021380 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021381 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000021382 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021383 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000021384 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000021385 },
21386
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021387 {
21388 .vendor = "Macronix",
21389 .name = "unknown Macronix SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000021390 .bustype = BUS_SPI,
Mattias Mattsson6eabe282010-09-15 23:31:03 +000021391 .manufacture_id = MACRONIX_ID,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021392 .model_id = GENERIC_DEVICE_ID,
21393 .total_size = 0,
21394 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000021395 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021396 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000021397 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021398 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000021399 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000021400 },
21401
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021402 {
21403 .vendor = "PMC",
21404 .name = "unknown PMC SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000021405 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021406 .manufacture_id = PMC_ID,
21407 .model_id = GENERIC_DEVICE_ID,
21408 .total_size = 0,
21409 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000021410 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021411 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000021412 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021413 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000021414 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000021415 },
21416
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021417 {
21418 .vendor = "SST",
21419 .name = "unknown SST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000021420 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021421 .manufacture_id = SST_ID,
21422 .model_id = GENERIC_DEVICE_ID,
21423 .total_size = 0,
21424 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000021425 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021426 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000021427 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021428 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000021429 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000021430 },
21431
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021432 {
21433 .vendor = "ST",
21434 .name = "unknown ST SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000021435 .bustype = BUS_SPI,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021436 .manufacture_id = ST_ID,
21437 .model_id = GENERIC_DEVICE_ID,
21438 .total_size = 0,
21439 .page_size = 256,
Carl-Daniel Hailfinger42882fd2009-04-22 13:33:43 +000021440 .tested = TEST_BAD_PREW,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021441 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger2bc020b2009-06-05 13:46:17 +000021442 .probe_timing = TIMING_ZERO,
Stephan Guilloux5c5b5252009-01-08 03:40:17 +000021443 .write = NULL,
Carl-Daniel Hailfinger03b4e712009-05-08 12:49:03 +000021444 .read = NULL,
FENG yu ningff692fb2008-12-08 18:15:10 +000021445 },
Uwe Hermannfc425e82008-03-16 02:06:25 +000021446
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000021447 {
Sean Nelson118e1d62009-11-24 02:08:11 +000021448 .vendor = "Sanyo",
21449 .name = "unknown Sanyo SPI chip",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000021450 .bustype = BUS_SPI,
Sean Nelson118e1d62009-11-24 02:08:11 +000021451 .manufacture_id = SANYO_ID,
21452 .model_id = GENERIC_DEVICE_ID,
21453 .total_size = 0,
21454 .page_size = 256,
21455 .tested = TEST_BAD_PREW,
21456 .probe = probe_spi_rdid,
21457 .probe_timing = TIMING_ZERO,
Sean Nelson118e1d62009-11-24 02:08:11 +000021458 .write = NULL,
21459 .read = NULL,
21460 },
21461
21462 {
Stefan Taunereb582572012-09-21 12:52:50 +000021463 .vendor = "Winbond",
21464 .name = "unknown Winbond (ex Nexcom) SPI chip",
21465 .bustype = BUS_SPI,
21466 .manufacture_id = WINBOND_NEX_ID,
21467 .model_id = GENERIC_DEVICE_ID,
21468 .total_size = 0,
21469 .page_size = 256,
21470 .tested = TEST_BAD_PREW,
21471 .probe = probe_spi_rdid,
21472 .probe_timing = TIMING_ZERO,
21473 .write = NULL,
21474 .read = NULL,
21475 },
21476
21477 {
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000021478 .vendor = "Generic",
21479 .name = "unknown SPI chip (RDID)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000021480 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000021481 .manufacture_id = GENERIC_MANUF_ID,
21482 .model_id = GENERIC_DEVICE_ID,
21483 .total_size = 0,
21484 .page_size = 256,
21485 .tested = TEST_BAD_PREW,
21486 .probe = probe_spi_rdid,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000021487 .write = NULL,
21488 },
Stefan Tauneraf2db612011-12-02 21:48:17 +000021489
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000021490 {
21491 .vendor = "Generic",
21492 .name = "unknown SPI chip (REMS)",
Carl-Daniel Hailfinger1a227952011-07-27 07:13:06 +000021493 .bustype = BUS_SPI,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000021494 .manufacture_id = GENERIC_MANUF_ID,
21495 .model_id = GENERIC_DEVICE_ID,
21496 .total_size = 0,
21497 .page_size = 256,
21498 .tested = TEST_BAD_PREW,
21499 .probe = probe_spi_rems,
Carl-Daniel Hailfinger01d49ed2009-11-20 01:12:45 +000021500 .write = NULL,
21501 },
21502
Stefan Tauner96658be2014-05-26 22:05:31 +000021503 {0}
Stephan Guilloux72cf5652009-04-21 01:46:07 +000021504};
Stefan Tauner96658be2014-05-26 22:05:31 +000021505
21506const unsigned int flashchips_size = ARRAY_SIZE(flashchips);